|
|
(self.webpackChunk=self.webpackChunk||[]).push([[8882],{27812:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});var E=ee(60499),Ae=ee(59301),pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Ge=pe,Ee=ee(7657),be=function(ce,We){return Ae.createElement(Ee.Z,(0,E.Z)({},ce,{ref:We,icon:Ge}))},Se=Ae.forwardRef(be),Ze=Se},89489:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});var E=ee(60499),Ae=ee(59301),pe={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"},Ge=pe,Ee=ee(7657),be=function(ce,We){return Ae.createElement(Ee.Z,(0,E.Z)({},ce,{ref:We,icon:Ge}))},Se=Ae.forwardRef(be),Ze=Se},59477:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});var E=ee(60499),Ae=ee(59301),pe={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"},Ge=pe,Ee=ee(7657),be=function(ce,We){return Ae.createElement(Ee.Z,(0,E.Z)({},ce,{ref:We,icon:Ge}))},Se=Ae.forwardRef(be),Ze=Se},40001:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});var E=ee(60499),Ae=ee(59301),pe={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"},Ge=pe,Ee=ee(7657),be=function(ce,We){return Ae.createElement(Ee.Z,(0,E.Z)({},ce,{ref:We,icon:Ge}))},Se=Ae.forwardRef(be),Ze=Se},26227:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});var E=ee(60499),Ae=ee(59301),pe={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"},Ge=pe,Ee=ee(7657),be=function(ce,We){return Ae.createElement(Ee.Z,(0,E.Z)({},ce,{ref:We,icon:Ge}))},Se=Ae.forwardRef(be),Ze=Se},49198:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});var E=ee(60499),Ae=ee(59301),pe={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"},Ge=pe,Ee=ee(7657),be=function(ce,We){return Ae.createElement(Ee.Z,(0,E.Z)({},ce,{ref:We,icon:Ge}))},Se=Ae.forwardRef(be),Ze=Se},73331:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});var E=ee(60499),Ae=ee(59301),pe={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"},Ge=pe,Ee=ee(7657),be=function(ce,We){return Ae.createElement(Ee.Z,(0,E.Z)({},ce,{ref:We,icon:Ge}))},Se=Ae.forwardRef(be),Ze=Se},15277:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});var E=ee(60499),Ae=ee(59301),pe={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"},Ge=pe,Ee=ee(7657),be=function(ce,We){return Ae.createElement(Ee.Z,(0,E.Z)({},ce,{ref:We,icon:Ge}))},Se=Ae.forwardRef(be),Ze=Se},52671:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});var E=ee(60499),Ae=ee(59301),pe={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"},Ge=pe,Ee=ee(7657),be=function(ce,We){return Ae.createElement(Ee.Z,(0,E.Z)({},ce,{ref:We,icon:Ge}))},Se=Ae.forwardRef(be),Ze=Se},8657:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});var E=ee(60499),Ae=ee(59301),pe={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"},Ge=pe,Ee=ee(7657),be=function(ce,We){return Ae.createElement(Ee.Z,(0,E.Z)({},ce,{ref:We,icon:Ge}))},Se=Ae.forwardRef(be),Ze=Se},56082:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});var E=ee(60499),Ae=ee(59301),pe={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"},Ge=pe,Ee=ee(7657),be=function(ce,We){return Ae.createElement(Ee.Z,(0,E.Z)({},ce,{ref:We,icon:Ge}))},Se=Ae.forwardRef(be),Ze=Se},33853:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});var E=ee(60499),Ae=ee(59301),pe={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"},Ge=pe,Ee=ee(7657),be=function(ce,We){return Ae.createElement(Ee.Z,(0,E.Z)({},ce,{ref:We,icon:Ge}))},Se=Ae.forwardRef(be),Ze=Se},63524:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});var E=ee(60499),Ae=ee(59301),pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},Ge=pe,Ee=ee(7657),be=function(ce,We){return Ae.createElement(Ee.Z,(0,E.Z)({},ce,{ref:We,icon:Ge}))},Se=Ae.forwardRef(be),Ze=Se},15075:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});var E=ee(60499),Ae=ee(59301),pe={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"},Ge=pe,Ee=ee(7657),be=function(ce,We){return Ae.createElement(Ee.Z,(0,E.Z)({},ce,{ref:We,icon:Ge}))},Se=Ae.forwardRef(be),Ze=Se},43531:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});var E=ee(60499),Ae=ee(59301),pe={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"},Ge=pe,Ee=ee(7657),be=function(ce,We){return Ae.createElement(Ee.Z,(0,E.Z)({},ce,{ref:We,icon:Ge}))},Se=Ae.forwardRef(be),Ze=Se},61485:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});var E=ee(60499),Ae=ee(59301),pe={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"},Ge=pe,Ee=ee(7657),be=function(ce,We){return Ae.createElement(Ee.Z,(0,E.Z)({},ce,{ref:We,icon:Ge}))},Se=Ae.forwardRef(be),Ze=Se},47472:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});var E=ee(60499),Ae=ee(59301),pe={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"},Ge=pe,Ee=ee(7657),be=function(ce,We){return Ae.createElement(Ee.Z,(0,E.Z)({},ce,{ref:We,icon:Ge}))},Se=Ae.forwardRef(be),Ze=Se},87395:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});var E=ee(60499),Ae=ee(59301),pe={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"},Ge=pe,Ee=ee(7657),be=function(ce,We){return Ae.createElement(Ee.Z,(0,E.Z)({},ce,{ref:We,icon:Ge}))},Se=Ae.forwardRef(be),Ze=Se},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(fn,Ht){"use strict";Ht.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},84915:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var fn={},Ht="5.0",ee={},E=null,Ae=!1,pe=!1,Ge=null,Ee=!1,be=null,Se=null,Ze=0;Ze<arguments.length;Ze++){var Ne=arguments[Ze];if(Ne!==null)switch(typeof Ne){case"number":Ht=Ne.toFixed(1);break;case"string":Ne.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ht=Ne:Ge=Ne;break;case"object":typeof Ne.is3D!="undefined"?E=Ne:ee=Ne;break;case"boolean":Ae=Ne,pe=!0;break}}E===null&&(E={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ee.material_id!==void 0&&!pe&&(Ae=!0)),Ge!==null&&ee.id===void 0&&(ee.id=Ge);var ce="",We="",De=!1,It=null,at=null,qe=null,He=!1,Be=null,ut=null,St=null,Bt=null,je=null;ee.height!==void 0&&(ee.height=Math.round(ee.height)),ee.width!==void 0&&(ee.width=Math.round(ee.width));var Te=function(Pe){return parseFloat(Pe)>4?parseFloat(Pe):5};fn.setHTML5Codebase=function(Pe,ot){Se=Pe,vt(Pe,ot)},fn.setJavaCodebase=fn.setJavaCodebaseVersion=fn.isCompiledInstalled=fn.setPreCompiledScriptPath=fn.setPreCompiledResourcePath=function(){},fn.setHTML5CodebaseVersion=function(Pe,ot){var rt=parseFloat(Pe);if(rt!==NaN&&rt<5){console.log("The GeoGebra HTML5 codebase version "+rt+" is deprecated. Using version latest instead.");return}be=Pe,de(Pe,ot)},fn.getHTML5CodebaseVersion=function(){return at},fn.getParameters=function(){return ee},fn.setFontsCSSURL=function(Pe){Bt=Pe},fn.setGiacJSURL=function(Pe){},fn.setJNLPFile=function(Pe){ce=Pe},fn.setJNLPBaseDir=function(Pe){},fn.inject=function(){function Pe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ot="auto",rt=ee.id,an,tt=!1,Rt=0;Rt<arguments.length;Rt++){var _e=arguments[Rt];typeof _e=="string"?(_e=_e.toLowerCase(),_e.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ot=_e:rt=arguments[Rt]):typeof _e=="boolean"?tt=_e:_e instanceof HTMLElement&&(an=_e)}Gt();function Gt(){if(!Ee){setTimeout(Gt,200);return}ot=zt(ot);var wt=an||document.getElementById(rt);if(!wt){console.log("possibly bug on ajax loading? ");return}if(fn.removeExistingApplet(wt,!1),ee.width===void 0&&wt.clientWidth&&(ee.width=wt.clientWidth),ee.height===void 0&&wt.clientHeight&&(ee.height=wt.clientHeight),!(ee.width&&ee.height)&&ot==="html5"&&(delete ee.width,delete ee.height),It=ot,ot==="screenshot")Ye(wt,ee);else{var ae=!1;ee.hasOwnProperty("playButton")&&ee.playButton||ee.hasOwnProperty("clickToLoad")&&ee.clickToLoad?ae=!0:ee.hasOwnProperty("playButtonAutoDecide")&&ee.playButtonAutoDecide&&(ae=(!Qe()||Pe())&&Ve()),ae?(It="screenshot",jt(wt,ee,tt,ot)):pt(wt,ee,tt)}}};function Qe(){try{return window.self!==window.top}catch(Pe){return!0}}function Ve(){return ee.hasOwnProperty("screenshotGenerator")&&ee.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}fn.getViews=function(){return E},fn.isJavaInstalled=function(){return!1};var Tt=function(Pe){var ot=function(Rt){var _e=JSON.parse(Rt),Gt=function(ne){return ne.type=="G"||ne.type=="E"},wt=_e.elements?_e.elements.filter(Gt)[0]:_e;if(!wt||!wt.url){rt();return}ee.fileName=wt.url,ht(wt.settings||{}),E.is3D=!0;var ae="https://www.geogebra.org/images/";fn.setPreviewImage(Be||wt.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),Pe()},rt=function(){ee.onError&&ee.onError(),Kt("Error: Fetching material (id "+ee.material_id+") failed.",ee)},an=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",tt="/materials/"+ee.material_id+"?scope=basic";Xe("https://"+an+"/api/proxy.php?path="+encodeURIComponent(tt),ot,rt)};function ht(Pe){var ot=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(rt){Pe[rt]=!!Pe[rt]}),ot.forEach(function(rt){ee[rt]===void 0&&Pe[rt]!==void 0&&(ee[rt]=Pe[rt])}),ee.showToolBarHelp===void 0&&(ee.showToolBarHelp=ee.showToolBar)}function Xe(Pe,ot,rt){var an=new XMLHttpRequest;an.open("GET",Pe),an.onload=function(){ot(an.responseText)},an.onerror=rt,an.send()}fn.isHTML5Installed=function(){return!0},fn.getLoadedAppletType=function(){return It},fn.setPreviewImage=function(Pe,ot,rt){Be=Pe,ut=ot,St=rt},fn.removeExistingApplet=function(Pe,ot){var rt;typeof Pe=="string"&&(Pe=document.getElementById(Pe)),It=null;var an=null;for(rt=0;rt<Pe.childNodes.length;rt++){var tt=Pe.childNodes[rt],Rt=tt.className;Rt==="applet_screenshot"?ot?(tt.style.display="block",It="screenshot"):tt.style.display="none":Rt!=="applet_scaler prerender"&&(Pe.removeChild(tt),an=Rt&&Rt.indexOf("appletParameters")!=-1?tt.id:null,rt--)}var _e=ee.id!==void 0?ee.id:an,Gt=window[_e];Gt&&typeof Gt.getBase64=="function"&&(Gt.remove(),window[_e]=null)},fn.refreshHitPoints=function(){if(Te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Pe=fn.getAppletObject();return Pe&&typeof Pe.recalculateEnvironments=="function"?(Pe.recalculateEnvironments(),!0):!1},fn.startAnimation=function(){var Pe=fn.getAppletObject();return Pe&&typeof Pe.startAnimation=="function"?(Pe.startAnimation(),!0):!1},fn.stopAnimation=function(){var Pe=fn.getAppletObject();return Pe&&typeof Pe.stopAnimation=="function"?(Pe.stopAnimation(),!0):!1},fn.getAppletObject=function(){var Pe=ee.id!==void 0?ee.id:"ggbApplet";return window[Pe]},fn.resize=function(){};var et=function(Pe,ot,rt){var an=document.createElement("param");an.setAttribute("name",ot),an.setAttribute("value",rt),Pe.appendChild(an)},Me=function(Pe){return Pe&&Pe!=="false"},pt=function(Pe,ot,rt){Te(at)<=4.2&&(rt=!0);var an=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==at||ggbHTML5LoadedCodebaseIsWebSimple&&!He)&&(an=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var tt=document.createElement("div");tt.classList.add("appletParameters","notranslate");var Rt=ot.width,_e=ot.height;if(ot.disableAutoScale=ot.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ot.disableAutoScale,ot.width!==void 0)if(Te(at)<=4.4)Me(ot.showToolBar)&&(ot.height-=7),Me(ot.showAlgebraInput)&&(ot.height-=37),ot.width<605&&Me(ot.showToolBar)&&(ot.width=605,Rt=605);else{var Gt=100;(Me(ot.showToolBar)||Me(ot.showMenuBar))&&(ot.hasOwnProperty("customToolBar")&&(ot.customToolbar=ot.customToolBar),Gt=Me(ot.showMenuBar)?245:155),Rt<Gt&&(ot.width=Gt,Rt=Gt)}tt.style.border="none",tt.style.display="inline-block";for(var wt in ot)ot.hasOwnProperty(wt)&&wt!=="appletOnLoad"&&tt.setAttribute("data-param-"+wt,ot[wt]);Bt&&tt.setAttribute("data-param-fontscssurl",Bt),fn.resize=function(){GGBAppletUtils.responsiveResize(Pe,ot)},window.addEventListener("resize",function(Ke){fn.resize()});var ae=typeof ot.appletOnLoad=="function"?ot.appletOnLoad:function(){};if(!rt&&ot.width!==void 0){ot.hasOwnProperty("showSplash")||tt.setAttribute("data-param-showSplash","false");var ne=Pe.querySelector(".applet_scaler.prerender"),te=ne!==null;if(te)var oe=ne.querySelector(".ggb_preview");else{var oe=nt(Rt,_e,ot.borderColor,!1);ne=document.createElement("div"),ne.className="applet_scaler",ne.style.position="relative",ne.style.display="block",ne.style.width=Rt+"px",ne.style.height=_e+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ne,"66%"),Te(at)>=5?(ot.appletOnLoad=function(Ke){var it=Pe.querySelector(".ggb_preview");it&&it.parentNode.removeChild(it),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ne),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(Ke)},te||ne.appendChild(oe)):tt.appendChild(oe),ne.appendChild(tt),te||Pe.appendChild(ne),setTimeout(function(){fn.resize()},1)}else{var ue=document.createElement("div");ue.className="applet_scaler",ue.style.position="relative",ue.style.display="block",ue.appendChild(tt),Pe.appendChild(ue),ot.appletOnLoad=function(Ke){fn.resize(),ae(Ke)}}function re(Ke,it){it&&typeof it.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ke,it.appletOnLoad):renderGGBElement(Ke),Kt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",it)}function le(Ke,it){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ke,params:it}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(xe){re(xe.article,xe.params)}),html5AppletsToProcess=null)},Te(at)<5&&(Ke.className+=" geogebraweb")):re(Ke,it)}if(an){scriptLoadStarted=!0;for(var ge=0;ge<tt.childNodes.length;ge++){var lt=tt.childNodes[ge].tagName;lt==="TABLE"&&(tt.removeChild(tt.childNodes[ge]),ge--)}if(ggbHTML5LoadedScript!==null){var ke=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ke!=null&&ke.parentNode.removeChild(ke)}var Ie=document.createElement("script"),Fe=function(){le(tt,ot)};Ie.src=We+qe,ggbHTML5LoadedCodebaseIsWebSimple=He,ggbHTML5LoadedCodebaseVersion=at,ggbHTML5LoadedScript=Ie.src,Kt("GeoGebra HTML5 codebase loaded: '"+We+"'.",ot),!Se&&(!be||be=="5.0")?(He?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Fe()):We.requirejs?__webpack_require__.e(4510).then(function(){var Ke=[__webpack_require__(4510)];Fe.apply(null,Ke)}.bind(this)).catch(__webpack_require__.oe):(Ie.onload=Fe,Pe.appendChild(Ie))}else le(tt,ot);ot.height=_e,ot.width=Rt},Ye=function(Pe,ot,rt){var an=nt(ot.width,ot.height,ot.borderColor,rt),tt=document.createElement("div");tt.style.position="relative",tt.style.display="block",tt.style.width=ot.width+"px",tt.style.height=ot.height+"px",tt.className="applet_screenshot applet_scaler"+(rt?" applet_screenshot_play":""),tt.appendChild(an);var Rt=GGBAppletUtils.getScale(ot,Pe,rt);rt?(Pe.appendChild(Ue()),window.GGBT_wsf_view||(Pe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(tt,"66%"),Pe.appendChild(tt),Rt!==1&&!isNaN(Rt)&&(GGBAppletUtils.scaleElement(tt,Rt),tt.style.width=ot.width+"px",tt.style.height=ot.height+"px",tt.parentNode.style.width=ot.width*Rt+"px",tt.parentNode.style.height=ot.height*Rt+"px"),fn.resize=function(){ye(Pe,an,tt,rt)},window.addEventListener("resize",function(_e){fn.resize()}),fn.resize()};function ye(Pe,ot,rt,an){if(Pe.contains(ot)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Pe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Pe)}var tt=GGBAppletUtils.getScale(ee,Pe,an);rt.parentNode!==null&&(!isNaN(tt)&&tt!==1?(GGBAppletUtils.scaleElement(rt,tt),rt.parentNode.style.width=ee.width*tt+"px",rt.parentNode.style.height=ee.height*tt+"px"):(GGBAppletUtils.scaleElement(rt,1),rt.parentNode.style.width=ee.width+"px",rt.parentNode.style.height=ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Pe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}fn.onExitFullscreen=function(Pe,ot){ot.appendChild(Pe)};var jt=function(Pe,ot,rt,an){Ye(Pe,ot,!0);for(var tt=function(){var Gt=[];for(_e=0;_e<Pe.childNodes.length;_e++)Gt.push(Pe.childNodes[_e]);if(window.GGBT_wsf_view){var wt=window.GGBT_wsf_view.renderFullScreen(Pe,ot.id),ae=document.getElementById("fullscreencontainer"),ne=jQuery(Pe).find(".fullscreencontent");ne.length>0?(wt.remove(),ne.attr("id","fullscreencontent").show(),jQuery(ae).append(ne),window.dispatchEvent(new Event("resize"))):pt(wt,ot,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else It=an,pt(Pe,ot,!1);if(!window.GGBT_wsf_view)for(_e=0;_e<Gt.length;_e++)Pe.removeChild(Gt[_e])},Rt=Pe.getElementsByClassName("ggb_preview_play"),_e=0;_e<Rt.length;_e++)Rt[_e].addEventListener("click",tt,!1),Rt[_e].addEventListener("ontouchstart",tt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Pe),Ve()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ue=function(){var Pe=document.createElement("div");if(Pe.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");}',rt=document.createElement("style");rt.styleSheet?rt.styleSheet.cssText=ot:rt.appendChild(document.createTextNode(ot)),document.getElementsByTagName("head")[0].appendChild(rt)}return Pe},nt=function(Pe,ot,rt,an){var tt=document.createElement("div");tt.className="ggb_preview",tt.style.position="absolute",tt.style.zIndex="90",tt.style.width=Pe-2+"px",tt.style.height=ot-2+"px",tt.style.top="0px",tt.style.left="0px",tt.style.overflow="hidden",tt.style.backgroundColor="white";var Rt="lightgrey";rt!==void 0&&(rt==="none"?Rt="transparent":Rt=rt),tt.style.border="1px solid "+Rt;var _e=document.createElement("img");if(_e.style.position="relative",_e.style.zIndex="1000",_e.style.top="-1px",_e.style.left="-1px",Be!==null&&_e.setAttribute("src",Be),_e.style.opacity=.7,ut!==null){var Gt,wt,ae;if(!an){Gt=document.createElement("img"),Gt.style.position="absolute",Gt.style.zIndex="1001",Gt.style.opacity=1,_e.style.opacity=.3,wt=360,wt>Pe/4*3&&(wt=Pe/4*3),ae=wt/5.8,Gt.setAttribute("src",ut),Gt.setAttribute("width",wt),Gt.setAttribute("height",ae);var ne=(Pe-wt)/2,te=(ot-ae)/2;Gt.style.left=ne+"px",Gt.style.top=te+"px",tt.appendChild(Gt)}}return tt.appendChild(_e),tt},zt=function(Pe){return Pe=Pe.toLowerCase(),Pe==="html5"||Pe==="screenshot"?Pe:"html5"},Ce=["web","webSimple","web3d","tablet","tablet3d","phone"],de=function(Pe,ot){if(at=Pe,ot){vt(at,!0);return}var rt=!Ae;if(rt){var an=Te(at);!isNaN(an)&&an<4.4&&(rt=!1)}var tt,Rt;window.location.protocol.substr(0,4)==="http"?tt=window.location.protocol:tt="http:";var _e=at.indexOf("//");_e>0?Rt=at:_e===0?Rt=tt+at:Rt="https://www.geogebra.org/apps/5.2.814.0/";for(var Gt in Ce)if(at.slice(Ce[Gt].length*-1)===Ce[Gt]||at.slice((Ce[Gt].length+1)*-1)===Ce[Gt]+"/"){vt(Rt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&rt&&!E.is3D&&!E.AV&&!E.SV&&!E.CV&&!E.EV2&&!E.CP&&!E.PC&&!E.DA&&!E.FI&&!E.PV&&!Me(ee.showToolBar)&&!Me(ee.showMenuBar)&&!Me(ee.showAlgebraInput)&&!Me(ee.enableRightClick)&&(!ee.appName||ee.appName=="classic")?Rt+="webSimple/":Rt+="web3d/",vt(Rt,!1)},vt=function(Pe,ot){if(Pe.requirejs){We=Pe;return}Pe.slice(-1)!=="/"&&(Pe+="/"),We=Pe,ot===null&&(ot=Pe.indexOf("http")===-1),De=ot,qe="web.nocache.js",He=!1;var rt=We.split("/");rt.length>1&&(!ot&&rt[rt.length-2]==="webSimple"?(qe="webSimple.nocache.js",He=!0):Ce.indexOf(rt[rt.length-2])>=0&&(qe=rt[rt.length-2]+".nocache.js")),rt=Pe.split("/"),at=rt[rt.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 an=parseFloat(at);an!==NaN&&an<5&&Pe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+an+" is deprecated. Using version latest instead."),de("5.0",ot))},Kt=function(Pe,ot){window.console&&window.console.log&&(!ot||typeof ot.showLogging=="undefined"||ot.showLogging&&ot.showLogging!=="false")&&console.log(Pe)};ee.material_id!==void 0?Tt(Lt):Lt();function Lt(){var Pe=Ht;be!==null?Pe=be:parseFloat(Pe)<5&&(Pe="5.0"),de(Pe,!1),Se!==null&&vt(Se,De),Ee=!0}return fn},GGBAppletUtils=function(){"use strict";function fn(){return window.GGBT_wsf_edit!==void 0}function Ht(Ee,be){be!=1?(Ee.style.transformOrigin="0% 0% 0px",Ee.style.webkitTransformOrigin="0% 0% 0px",Ee.style.transform="scale("+be+","+be+")",Ee.style.webkitTransform="scale("+be+","+be+")",Ee.style.maxWidth="initial",Ee.querySelector(".ggb_preview")!==null&&(Ee.querySelector(".ggb_preview").style.maxWidth="initial"),Ee.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ee.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ee.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ee.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ee.style.transform="none",Ee.style.webkitTransform="none")}function ee(Ee,be,Se,Ze,Ne,ce){var We=null;if(ce!=null&&ce!="")for(var De=Ee.parentNode;De!=null;)if((" "+De.className+" ").indexOf(" "+ce+" ")>-1){We=De;break}else De=De.parentNode;var It=0,at=0,qe=0,He=0,Be=0,ut=0,St=0;if(We)It=We.offsetWidth,at=Math.max(Ze?We.offsetWidth:0,We.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(It=Math.min(window.innerWidth,document.documentElement.clientWidth),at=Math.min(window.innerHeight,document.documentElement.clientHeight),qe=It):(It=window.innerWidth,at=window.innerHeight,qe=window.innerWidth),Ee){var Bt=Ee.getBoundingClientRect();Bt.left>0&&Bt.left<=It&&(Ne===void 0||!Ne)&&(document.dir==="rtl"?(Be=It-Bt.width-Bt.left,ut=qe<=480?10:30):(ut=Bt.left,Be=qe<=480?10:30),He=ut+Be)}if(Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var je=Ee.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(He=40,St=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(He=0,St=40)}}return Ee&&((Se===void 0||!Se)&&be>0&&be+He<It?It=be:It-=He,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Se===void 0||!Se)&&(at-=St)),{width:It,height:at}}function E(Ee,be,Se,Ze,Ne){if(Ee.isScreenshoGenerator)return 1;var ce=Ze!==void 0&&Ze,We=Ee.noScaleMargin!=null&&Ee.noScaleMargin,De=function(je){return je&&je!=="false"},It=De(Ee.autoHeight),at=ee(be,Ee.width,Se,It,ce&&window.GGBT_wsf_view||We,Ne),qe=parseInt(at.width),He=Ee.width,Be=Ee.height;if(He===void 0){var ut=be.querySelector(".appletParameters");ut&&(He=ut.offsetWidth,Be=ut.offsetHeight)}var St=qe/He,Bt=ce?1:at.height/Be;return Se!==void 0&&!Se&&(St=Math.min(1,St),Bt=Math.min(1,Bt)),Math.min(St,Bt)}function Ae(Ee,be,Se){var Ze=1,Ne,ce=!1;if(Ee.hasOwnProperty("allowUpscale")&&(ce=Ee.allowUpscale),Ee.hasOwnProperty("scale")&&(Ze=parseFloat(Ee.scale),(isNaN(Ze)||Ze===null||Ze===0)&&(Ze=1),Ze>1&&(ce=!0)),be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ce=!0),!(Ee.hasOwnProperty("disableAutoScale")&&Ee.disableAutoScale))Ne=E(Ee,be,ce,Se,Ee.scaleContainerClass);else return Ze;return ce&&(!Ee.hasOwnProperty("scale")||Ze===1)?Ne:Math.min(Ze,Ne)}function pe(Ee){var be=Math.min(window.innerWidth,document.documentElement.clientWidth),Se=Math.min(window.innerHeight,document.documentElement.clientHeight),Ze=Ee.getBoundingClientRect(),Ne=(be-Ze.width)/2,ce=(Se-Ze.height)/2;ce<0&&(ce=0),Ee.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ne<40?Ee.style.left="40px":Ee.style.left=Ne+"px",Ee.style.top=ce+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ce<40?Ee.style.top="40px":Ee.style.top=ce+"px",Ee.style.left=Ne+"px")}function Ge(Ee,be){var Se=Ee.querySelector(".appletParameters");if(Se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(be.id!==Se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ee)}if(Se.parentElement&&/fullscreen/.test(Se.parentElement.className))return;var Ze=Ae(be,Ee);fn()&&Se.setAttribute("data-param-scale",Ze);for(var Ne=null,ce=0;ce<Ee.childNodes.length;ce++)if(Ee.childNodes[ce].className!==void 0&&Ee.childNodes[ce].className.match(/^applet_scaler/)){Ne=Ee.childNodes[ce];break}if(Ne!==null&&Ne.querySelector(".noscale")!==null)return;var We=be.id!==void 0?be.id:"ggbApplet",De=window[We];(De==null||!De.recalculateEnvironments)&&Ne!==null&&!Ne.className.match(/fullscreen/)&&(Ne.parentNode.style.transform="",!isNaN(Ze)&&Ze!==1?(Ne.parentNode.style.width=be.width*Ze+"px",Ne.parentNode.style.height=be.height*Ze+"px",Ht(Ne,Ze)):(Ht(Ne,1),Ne.parentNode.style.width=be.width+"px",Ne.parentNode.style.height=be.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&pe(Ee),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Se).parents(".content-added-content"))}}return{responsiveResize:Ge,isFlexibleWorksheetEditor:fn,positionCenter:pe,getScale:Ae,scaleElement:Ht}}();__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 fn=n.location.search;return fn.indexOf(J)!=-1||fn.indexOf(K)!=-1}function q(fn,Ht){}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(fn){var Ht=s[L].bindings;s[L].bindings=function(){for(var ee=Ht?Ht():{},E=fn[webModule.__softPermutationId],Ae=O;Ae<E.length;Ae++){var pe=E[Ae];ee[pe[O]]=pe[P]}return ee}};var t;function u(){return v(),t}function v(){if(!t){var fn=o.createElement(Q);if(fn.id=L,fn.style.cssText=R+S,fn.tabIndex=-1,o.body.appendChild(fn),t=fn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ht=document.compatMode==U?V:W;t.write(Ht+X),t.close()}}}function w(fn){function Ht(E){function Ae(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var pe=Ae();if(pe){E();return}function Ge(){if(!pe){if(!Ae())return;pe=!0,E(),o.removeEventListener&&o.removeEventListener(Z,Ge,!1),Ee&&clearInterval(Ee)}}o.addEventListener&&o.addEventListener(Z,Ge,!1);var Ee=setInterval(function(){Ge()},$)}function ee(E){var Ae=u(),pe=Ae.body,Ge=Ae.createElement(_);Ge.language=ab,Ge.crossOrigin=W,Ge.src=E,webModule.__errFn&&(Ge.onerror=function(){webModule.__errFn(L,new Error(bb+E))}),pe.appendChild(Ge)}Ht(function(){ee(fn)})}webModule.__startLoadingFragment=function(fn){return C(fn)},webModule.__installRunAsyncCode=function(fn){var Ht=u(),ee=Ht.body,E=Ht.createElement(_);E.language=ab,E.text=fn,ee.appendChild(E),ee.removeChild(E)};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(fn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(fn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(fn){var Ht=c[fn];return Ht==null?null:Ht},r=d,webModule.__errFn=e}function B(){function fn(Ee){var be=Ee.lastIndexOf(rb);be==-1&&(be=Ee.length);var Se=Ee.indexOf(sb);Se==-1&&(Se=Ee.length);var Ze=Ee.lastIndexOf(tb,Math.min(Se,be));return Ze>=O?Ee.substring(O,Ze+P):W}function Ht(Ee){if(!Ee.match(/^\w+:\/\//)){var be=o.createElement(ub);be.src=Ee+vb,Ee=fn(be.src)}return Ee}function ee(){var Ee=__gwt_getMetaProperty(wb);return Ee!=null?Ee:W}function E(){for(var Ee=o.getElementsByTagName(_),be=O;be<Ee.length;++be)if(Ee[be].src.indexOf(xb)!=-1)return fn(Ee[be].src);return W}function Ae(){var Ee=o.getElementsByTagName(yb);return Ee.length>O?Ee[Ee.length-P].href:W}function pe(){var Ee=o.location;return Ee.href==Ee.protocol+zb+Ee.host+Ee.pathname+Ee.search+Ee.hash}var Ge=ee();return Ge==W&&(Ge=E()),Ge==W&&(Ge=Ae()),Ge==W&&pe()&&(Ge=fn(o.location.href)),Ge=Ht(Ge),Ge}function C(fn){return fn.match(/^\//)||fn.match(/^[a-zA-Z]+:\/\//)?fn:webModule.__moduleBase+fn}function D(){var fn=[],Ht=O,ee=[],E=[];function Ae(Ee){var be=E[Ee](),Se=ee[Ee];if(be in Se)return be;var Ze=[];for(var Ne in Se)Ze[Se[Ne]]=Ne;throw r&&r(Ee,Ze,be),null}if(__gwt_isKnownPropertyValue=function(Ee,be){return be in ee[Ee]},webModule.__getPropMap=function(){var Ee={};for(var be in ee)ee.hasOwnProperty(be)&&(Ee[be]=Ae(be));return Ee},webModule.__computePropValue=Ae,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var pe;try{pe=Cb;var Ge=pe.indexOf(Db);Ge!=-1&&(Ht=parseInt(pe.substring(Ge+P),$),pe=pe.substring(O,Ge))}catch(Ee){}return webModule.__softPermutationId=Ht,C(pe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},23216:function(fn,Ht,ee){"use strict";ee.d(Ht,{Ax:function(){return Ge},Ds:function(){return Ee},KI:function(){return Se},SI:function(){return pe},f1:function(){return Ae}});var E=ee(14185);function Ae(Ze){let Ne=!0;if(Ze.length>0){for(let ce=0;ce<Ze.length;ce++)if(Ze[ce].compile_success==0||!Ze[ce].compile_success){Ne=!1;break}}else Ne=!1;return Ne}function pe(Ze,Ne=""){let ce=[];for(let We=0;We<Ze.length;We++){let De=Ze[We],It=Ne?`${Ne}/${De.name}`:`${De.name}`;ce.push({title:De.name,type:De.type,isLeaf:De.type!=="tree",key:It})}return ce}function Ge(Ze,Ne,ce){for(let We=0;We<Ze.length;We++){let De=Ze[We];if(De.key===Ne){De.children=ce;break}De.children&&Ge(De.children,Ne,ce)}return Ze}function Ee(Ze,Ne,ce){let We;return function(){let De=this,It=arguments,at=function(){We=null,ce||Ze.apply(De,It)},qe=ce&&!We;clearTimeout(We),We=setTimeout(at,Ne),qe&&Ze.apply(De,It)}}const be=!0,Se=E.Z.API_SERVER},40254:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return We}});var E=ee(59301),Ae={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},pe=ee(92310),Ge=ee.n(pe),Ee=ee(29787),be=ee(2859),Se=ee(49317),Ze=ee(76406),Ne=(De,It,at)=>new Promise((qe,He)=>{var Be=Bt=>{try{St(at.next(Bt))}catch(je){He(je)}},ut=Bt=>{try{St(at.throw(Bt))}catch(je){He(je)}},St=Bt=>Bt.done?qe(Bt.value):Promise.resolve(Bt.value).then(Be,ut);St((at=at.apply(De,It)).next())}),We=({data:De,className:It,fullWidth:at,style:qe={},onClose:He,onOk:Be,showFullTools:ut,noAssociationId:St})=>{const Bt=(0,E.useRef)(null),je=(0,E.useRef)(null),Te=(0,E.useRef)(null),Qe=(0,E.useRef)(null),[Ve,Tt]=(0,E.useState)(!1),[ht,Xe]=(0,E.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,E.useEffect)(()=>(Te.current||(Te.current=document.createElement("style"),document.head.appendChild(Te.current)),De!=null&&De.visible?(document.body.setAttribute("data-custom","y-hidden"),Te.current.innerHTML=" html { overflow-y: hidden; }",De!=null&&De.src&&et()):(document.body.removeAttribute("data-custom"),Te.current&&(document.head.removeChild(Te.current),Te.current=null)),()=>{document.body.removeAttribute("data-custom"),Te.current&&(document.head.removeChild(Te.current),Te.current=null)}),[De==null?void 0:De.visible]);const et=()=>Ne(void 0,null,function*(){Tt(!0),Xe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ye=yield(0,Ze.ZJ)(De==null?void 0:De.src);Bt.current.src="",Bt.current.src=ye,Bt.current.onload=function(){Ye()},Tt(!1),Xe("")}),Me=ye=>Ne(void 0,null,function*(){Tt(!0),Xe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const jt=yield(0,Se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:De.title,file:ye.dataUrl}});jt!=null&&jt.id&&!St?(yield(0,Se.ZP)(`/api/attachments/${De.id}/add_subitem.json`,{method:"post",body:{subitem_id:jt==null?void 0:jt.id,settings:JSON.stringify(ye.state)}})).status===0&&Be():jt!=null&&jt.id&&Be(jt),Tt(!1),Xe("")}),pt=()=>{const ye=document.querySelector('a[href="https://markerjs.com/"]');ye&&ye.parentNode&&(ye.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(Ue=>{const nt=document.querySelector(Ue.name);nt&&nt.setAttribute("title",Ue.title)})},Ye=()=>{je.current=new be.hP(Bt.current),je.current.targetRoot=Qe.current,je.current.addEventListener("render",Me),je.current.addEventListener("beforeclose",He),ut&&(je.current.availableMarkerTypes=je.current.ALL_MARKER_TYPES,je.current.uiStyleSettings.redoButtonVisible=!0,je.current.uiStyleSettings.notesButtonVisible=!0,je.current.uiStyleSettings.zoomButtonVisible=!0,je.current.uiStyleSettings.zoomOutButtonVisible=!0,je.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=je.current.uiStyleSettings,je.current.show(),De!=null&&De.snapshotData&&je.current.restoreState(De.snapshotData),setTimeout(()=>{window.scrollTo(0,0),pt()},300)};return E.createElement(E.Fragment,null,(De==null?void 0:De.visible)&&E.createElement(Ee.Z,{spinning:Ve,tip:ht,style:{position:"absolute",width:"100vw"}},E.createElement("div",{ref:Qe,className:Ge()(Ae.imageDimensions,It,at?Ae.fullWidth:""),style:qe},E.createElement("img",{className:Ae.img,ref:Bt}))))}},9057:function(fn,Ht,ee){"use strict";var E=ee(59301),Ae=ee(77019),pe=ee(5269),Ge=ee(31691),Ee=ee(7939),be=ee(35883),Se=ee(74501),Ze=ee(48136),Ne=ee(59301);const ce=(0,E.forwardRef)(({callback:We,showSaveButton:De,value:It=""},at)=>{const qe=(0,E.useRef)(),He=[{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 "}]}]}],Be=[{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}`}]}]}],ut=je=>{qe.current.setValue(qe.current.getValue()+" "+je.value+" ")},St=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ne.createElement(Ae.Z,{className:Se.Z.lists,gutter:[10,10]},He.map((je,Te)=>Ne.createElement(pe.Z,{flex:"110px",className:Se.Z.item},Ne.createElement("div",null,Ne.createElement(be.Z,{value:`$$${je.value}$$`}),je.name),Ne.createElement("div",{className:Se.Z.children},je.children.map((Qe,Ve)=>Ne.createElement("div",{key:Ve},Ne.createElement("h1",null,Qe.name),Ne.createElement(Ae.Z,{gutter:[10,10]},Qe.data.map((Tt,ht)=>Ne.createElement(pe.Z,{key:ht,onClick:()=>ut(Tt),className:Se.Z.diamond},Ne.createElement(be.Z,{value:"`$$"+Tt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ne.createElement(Ae.Z,{className:Se.Z.lists,gutter:[10,10]},Be.map((je,Te)=>Ne.createElement(pe.Z,{flex:"110px",className:Se.Z.item},Ne.createElement("div",null,Ne.createElement(be.Z,{value:"`$$"+je.value+"$$`"}),je.name),Ne.createElement("div",{className:Se.Z.children},je.children.map((Qe,Ve)=>Ne.createElement("div",{key:Ve},Qe.name&&Ne.createElement("h1",null,Qe.name),Ne.createElement(Ae.Z,{gutter:[10,10]},Qe.data.map((Tt,ht)=>Ne.createElement(pe.Z,{key:ht,onClick:()=>ut(Tt),className:Se.Z.diamond},Ne.createElement(be.Z,{value:"`$$"+Tt.value+"$$`"}))))))))))}],Bt=()=>{var je=document.createElement("div");je.innerHTML=qe.current.getValue();var Te=je.innerText;return We&&We(Te),Te};return(0,E.useImperativeHandle)(at,()=>({getData:Bt})),Ne.createElement("div",{className:Se.Z.mathWrap},Ne.createElement(Ge.default,{defaultActiveKey:"1",items:St}),Ne.createElement("math-field",{locale:"zh_cn",className:Se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:qe,style:{width:800,marginTop:30,fontSize:18}},It||""),De&&Ne.createElement("div",{className:Se.Z.button},Ne.createElement(Ee.ZP,{size:"large",onClick:Bt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ht.Z=ce},90736:function(fn,Ht,ee){"use strict";var E=ee(59301),Ae=ee(4977),pe=ee(7939),Ge=Object.defineProperty,Ee=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,ce=(at,qe,He)=>qe in at?Ge(at,qe,{enumerable:!0,configurable:!0,writable:!0,value:He}):at[qe]=He,We=(at,qe)=>{for(var He in qe||(qe={}))Ze.call(qe,He)&&ce(at,He,qe[He]);if(Se)for(var He of Se(qe))Ne.call(qe,He)&&ce(at,He,qe[He]);return at},De=(at,qe)=>Ee(at,be(qe));const It=({img:at,buttonProps:qe={},styles:He={},customText:Be,ButtonText:ut,ButtonClick:St,Buttonclass:Bt,ButtonTwo:je,imgStyles:Te,loading:Qe=!1,className:Ve=""})=>E.createElement("section",{className:`tc animated fadeIn ${Ve}`,style:We({color:"#999",margin:"100px auto",visibility:Qe?"hidden":"visible"},He)},E.createElement("img",{src:at||Ae,style:De(We({},Te),{pointerEvents:"none",userSelect:"none"})}),E.createElement("p",{className:"mt20 font14"},Be||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ut&&E.createElement(pe.ZP,We({className:Bt,onClick:St},qe),ut),je&&je);Ht.Z=It},86974:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Bt}});var E=ee(59301),Ae={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},pe=ee(7939),Ge=ee(70557),Ee=ee(34728),be=ee(25399),Se=ee(76406),Ze=ee(84849),Ne=ee(90736),ce=ee(14185),We=ee(52078),De=ee(59301),It=Object.defineProperty,at=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Be=(je,Te,Qe)=>Te in je?It(je,Te,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):je[Te]=Qe,ut=(je,Te)=>{for(var Qe in Te||(Te={}))qe.call(Te,Qe)&&Be(je,Qe,Te[Qe]);if(at)for(var Qe of at(Te))He.call(Te,Qe)&&Be(je,Qe,Te[Qe]);return je},St=(je,Te,Qe)=>new Promise((Ve,Tt)=>{var ht=Me=>{try{et(Qe.next(Me))}catch(pt){Tt(pt)}},Xe=Me=>{try{et(Qe.throw(Me))}catch(pt){Tt(pt)}},et=Me=>Me.done?Ve(Me.value):Promise.resolve(Me.value).then(ht,Xe);et((Qe=Qe.apply(je,Te)).next())}),Bt=({editOffice:je="view",data:Te,issaver:Qe,onSaver:Ve,theme:Tt,type:ht,filename:Xe,monacoEditor:et,className:Me,style:pt,close:Ye,onClose:ye,hasMask:jt,disabledDownload:Ue,onImgDimensions:nt,showNodata:zt,recordInfo:Ce})=>{const[de,vt]=(0,E.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Kt,Lt]=(0,E.useState)(""),[Pe,ot]=(0,E.useState)(),rt=window.ENV==="build"?"/react/build":"",an=location.host.startsWith("localhost")?ce.Z.PROXY_SERVER:ce.Z.API_SERVER,Rt=10*(1024*1024),_e=(0,E.useRef)();Te!=null&&Te.startsWith("/api")&&ht!=="txt"&&(Te=ce.Z.API_SERVER+Te);const Gt=ue=>ue.substring(ue.lastIndexOf("/")+1).split(".").pop();Xe&&et&&(et.filename=Xe),(0,E.useEffect)(()=>{var ue,re;const le=(re=(ue=document.cookie)==null?void 0:ue.replace(/\s/g,""))==null?void 0:re.split(";");le==null||le.map(ge=>{let lt=ge.split("=");lt[0]==="_educoder_session"&&Lt(lt[1])})},[]),(0,E.useEffect)(()=>{ht==="office"&&(Te.indexOf("bigfilescdn.")>-1||Te.indexOf("bigfiles1")>-1?ot({url:Te,fileType:Gt(Te),model:Te.indexOf("model=edit")?"edit":"view"}):Te.indexOf("coze")>-1?ot({url:Te,fileType:"doc",model:"view"}):ae())},[ht,Te]);function wt(ue){return St(this,null,function*(){ue.data.type==="pdfdata"&&(Ve(ue.data.data),window.removeEventListener("message",wt,!1)),console.log("mess---:",ue.data)})}const ae=()=>St(void 0,null,function*(){console.log("data:",Te);let ue=Te;Te.startsWith("http")||(ue=location.origin+ue);let re=new URL(ue).pathname.split("/").pop();const le=yield(0,Ze.gJ)({attachment_id:re});le.url=an+le.url,ot(le)}),ne=()=>{if(Te.startsWith("http")||Te.startsWith("blob:")){te();return}(0,Se.Sv)(Xe||"educoder",Te,Xe)},te=()=>{Ce&&(0,We.fc)({id:Ce==null?void 0:Ce.id,watch_type:1,course_id:Ce==null?void 0:Ce.course_id}),(0,Se.Nd)(Xe||"educoder",decodeURIComponent(Te))};(0,E.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=ue=>{var re;((re=ue==null?void 0:ue.data)==null?void 0:re.type)==="closePop"&&ye()};return De.createElement("div",{style:ut({},pt||{}),className:`${jt&&Ae.bgBlack} ${ht?Ae.wrp:"hide"}`},!!ht&&Ye&&De.createElement("div",{id:"closePop",className:Ae.close,ref:_e},!!nt&&De.createElement(be.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>_e.current},De.createElement("span",{onClick:()=>{ye(),nt()}},De.createElement("i",{className:"icon-yulanpizhu"}))),!Ue&&window.parent===window&&De.createElement(be.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>_e.current},De.createElement("span",{onClick:te},De.createElement("i",{className:"icon-quxiaozhiding"}))),Qe&&De.createElement(be.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>_e.current},De.createElement("span",{className:"",onClick:()=>{const ue=document.getElementById("pdfiframe");window.addEventListener("message",wt,!1),setTimeout(()=>{ue.contentWindow.postMessage("getData","*")},300)}},De.createElement("i",{className:"icon-baocun"}))),De.createElement(be.Z,{title:"\u5173\u95ED",getPopupContainer:()=>_e.current},De.createElement("span",{className:"",onClick:()=>{ye()}},De.createElement("i",{className:"icon-guanbi1"})))),De.createElement("div",{className:`${Ae[Me]} ${Me} ${Ae.monaco} ${ht==="txt"?"show":"hide"}`},ht==="txt"&&De.createElement(De.Fragment,null,De.createElement(Ee.ZP,ut({},et)))),ht==="audio"&&De.createElement("audio",{controls:!0,src:`${(Te==null?void 0:Te.indexOf("http://"))>-1||(Te==null?void 0:Te.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Te}`,autoPlay:!0}),ht==="video"&&De.createElement(De.Fragment,null,(Te==null?void 0:Te.indexOf("http"))>-1?De.createElement("video",{controls:!0,src:`${Te}`,autoPlay:!0}):De.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Te}`,autoPlay:!0})),ht==="office"&&Pe&&De.createElement("iframe",{src:`${rt}/office.html?key=${Pe.key}&url=${btoa(Pe.url)}&callbackUrl=${an+(Pe.callbackUrl||"")}&fileType=${Pe.fileType}&title=${Pe.title||""}&model=${je}&officeServer=${ce.Z.ONLYOFFICE}&disabledDownload=${!!Ue}`}),ht==="html"&&De.createElement("iframe",{src:Te+"&disposition=inline"}),ht==="pdf"&&De.createElement("iframe",{id:"pdfiframe",src:`${rt}/js/pdf/index.html?filename=${Xe||"educoder.pdf"}&url=${encodeURIComponent(Te)}&disabledDownload=${!!Ue}&model=${je}`}),ht==="image"&&De.createElement("img",{src:`${(Te==null?void 0:Te.indexOf("http://"))>-1||(Te==null?void 0:Te.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Te}`}),(ht==="other"||ht==="download")&&De.createElement(De.Fragment,null,zt?De.createElement(Ne.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:De.createElement(pe.ZP,{icon:De.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ne,disabled:Ue},"\u4E0B\u8F7D")}):De.createElement(pe.ZP,{type:"primary",size:"middle",onClick:ne,disabled:Ue},De.createElement(Ge.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),ht==="flowChart"&&De.createElement("div",{className:"embed"},De.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Te||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(fn,Ht,ee){"use strict";ee.d(Ht,{z:function(){return et},Z:function(){return Me}});var E=ee(59301),Ae=ee(46214),pe=ee(20047),Ge=ee(64018),Ee=ee(16471),be=ee(14185),Se=ee(76406),Ze=ee(15342),Ne=ee(44104),ce=ee(7939),We=ee(1012),De=ee(86974),It=ee(59301),qe=({html:pt})=>{const Ye=(0,E.useRef)(null),ye=(0,E.useRef)(null),jt=`.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,E.useEffect)(()=>{const Ue=Ye.current.attachShadow({mode:"open"});ye.current=document.createElement("div"),ye.current.className="markdown-body",ye.current.innerHTML=pt,Ue.appendChild(ye.current);const nt=document.createElement("style");return nt.textContent=jt,Ue.appendChild(nt),()=>{Ue.innerHTML=""}},[]),(0,E.useEffect)(()=>{ye.current&&(ye.current.innerHTML=pt)},[pt]),It.createElement("div",{ref:Ye})};function He(pt){const Ye=["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"],ye=new RegExp(`\\b(${Ye.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),jt=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return pt.replace(ye,"").replace(jt,"").trim()}var Be={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},ut=Object.defineProperty,St=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Te=(pt,Ye,ye)=>Ye in pt?ut(pt,Ye,{enumerable:!0,configurable:!0,writable:!0,value:ye}):pt[Ye]=ye,Qe=(pt,Ye)=>{for(var ye in Ye||(Ye={}))Bt.call(Ye,ye)&&Te(pt,ye,Ye[ye]);if(St)for(var ye of St(Ye))je.call(Ye,ye)&&Te(pt,ye,Ye[ye]);return pt};const Ve="@\u2581\u2581@",Tt="@\u2581@",ht=/<pre[^>]*>/g;function Xe(pt){let Ye=document.createElement("div");return Ye.innerHTML=pt,Ye.childNodes.length===0?"":Ye.childNodes[0].nodeValue}const et=(pt,Ye)=>{pt=pt||"";const ye=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,jt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ue=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,nt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ye?pt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ye,(zt,Ce,de,vt,Kt,Lt,Pe)=>{const ot=Ce||vt||Lt,rt=de||Kt||Pe||"?";return be.Z.API_SERVER+"/api/attachments/"+ot+rt+"&t="+(0,Se.Jn)(ot,Date.now())+(zt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(pt=pt.replace(nt,(zt,Ce,de,vt,Kt,Lt,Pe)=>{const ot=Ce||vt||Lt,rt=de||Kt||Pe||"?";return be.Z.API_SERVER+"/attachments/download/"+ot+rt+"&t="+(0,Se.Jn)(ot,Date.now())+(zt.indexOf(")")>-1?")":"&")}).replace(ye,(zt,Ce,de,vt,Kt,Lt,Pe)=>{const ot=Ce||vt||Lt,rt=de||Kt||Pe||"?";return be.Z.API_SERVER+"/api/attachments/"+ot+rt+"&t="+(0,Se.Jn)(ot,Date.now())+(zt.indexOf(")")>-1?")":"&")}).replace(jt,(zt,Ce,de,vt,Kt)=>{const Lt=Ce||vt,Pe=de||Kt||"";return'"'+be.Z.API_SERVER+"/api/attachments/"+Lt+Pe+Lt+Pe+"&t="+(0,Se.Jn)(Lt,Date.now())}).replace(Ue,(zt,Ce,de,vt,Kt)=>{const Lt=Ce||vt,Pe=de||Kt||"";return"("+be.Z.API_SERVER+"/files/uploads/"+Lt+Pe+Lt+Pe+"&t="+(0,Se.Jn)(Lt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),pt)};var Me=({value:pt="",edit:Ye=!1,className:ye,showTextOnly:jt,showLines:Ue,style:nt={},stylesPrev:zt={},highlightKeywords:Ce,showProgramFill:de,isProgramFill:vt,disabledFill:Kt=!1,programFillValue:Lt,openEditor:Pe=()=>{},onFillChange:ot=tt=>{},onFillBlur:rt=()=>{},onFillFocus:an=()=>{}})=>{let tt=He(String(pt||""));const Rt=(0,E.useRef)(),_e=(0,E.useRef)(),[Gt,wt]=(0,E.useState)(""),[ae,ne]=(0,E.useState)("office"),[te,oe]=(0,E.useState)([]),ue=(0,E.useRef)("a"+(0,We.Z)()),re={},le=mt=>/<style[\s\S]*?>/i.test(mt||""),ge=(mt,Zt,Dt)=>{const Ut=document.createElement(mt===Tt?"input":"textarea");Ut.style.width="100%",Ut.style.height=mt===Tt?"40px":"151px",Ut.rows=5,Ut.spellcheck=!1,Ut.name="edu-program-fill",Ut.placeholder="\u8BF7\u8F93\u5165",Ut.dataset.id=Zt;const sn=Object.keys(re).length;return re[sn]=Ut,`<span class="edu-program-fill-wrap ${mt===Tt?"":"show"}" style="width:${mt===Tt?"600px":"100%"}" title=${Dt||""}><span>${Ut.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function lt(mt){return mt=mt.replace(/!\[.*?\]\(.*?\)/g,""),mt=mt.replace(/\[.*?\]\(.*?\)/g,""),mt=mt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),mt=mt.replace(/<embed.*?>/g,""),mt=mt.replace(/<img.*?>/g,""),mt=mt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),mt=mt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),mt=mt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),mt=mt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),mt}const ke=mt=>!jt&&le(tt)?mt:mt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Zt,Dt){let Ut=Dt.replace(/(\n|\r)/g,"").split("}"),sn=[];return Ut.map(pn=>{pn!=""&&sn.push(`.${ue.current} ${pn}`)}),`<style>${sn.join("}")}</style>`}),Ie=(0,E.useMemo)(()=>{(0,pe.Iy)();try{const Ut=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,sn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,pn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,mn=/\(\/attachments\/download\//g;tt=tt.replace(mn,"("+be.Z.API_SERVER+"/attachments/download/").replace(Ut,"("+be.Z.API_SERVER+"/api/attachments/").replace(sn,'"'+be.Z.API_SERVER+"/api/attachments/").replace(pn,'"'+be.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),Rt.current.style.display="none"}catch(Ut){}if(de){let Ut=-1;return tt=tt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(sn,pn,mn){var ze;return++Ut,ge(sn,Ut,(ze=Lt==null?void 0:Lt[Ut])==null?void 0:ze.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${ke(tt||"")}</pre>`}let mt=ke(tt);mt=(0,pe.ZP)(mt);const Zt=(0,pe.ez)();tt.match(/\[TOC\]/)&&(mt=mt.replace("<p>[TOC]</p>",(0,pe.Qv)()),(0,pe.Iy)()),mt=mt.replace(/(__special_katext_id_\d+__)/g,(Ut,sn)=>{const{type:pn,expression:mn}=Zt[sn];return(0,Ze.renderToString)(Xe(mn)||"",{displayMode:pn==="block",throwOnError:!1,output:"html"})}),mt=mt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,pe.AL)();const Dt=document.createElement("div");if(Dt.innerHTML=mt,jt)return Dt.innerText;if(Ce){const Ut=Ce.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return xe(Dt,Ut),Dt.innerHTML}return setTimeout(()=>Mt(),500),Dt.innerHTML},[tt,Ce]);(0,E.useEffect)(()=>{Oe.current&&Oe.current.querySelectorAll(["input","textarea"]).forEach(Zt=>{Zt.oninput=Fe,Zt.onblur=Ke,Zt.onfocus=it})},[te]),(0,E.useEffect)(()=>{var mt,Zt,Dt,Ut,sn;if(Lt!=null&&Lt.length)try{const pn=Oe.current.querySelectorAll(".edu-program-fill-score"),mn=Oe.current.querySelectorAll('[name="edu-program-fill"]');for(const[ze,bt]of mn.entries())bt.value=((mt=Lt==null?void 0:Lt[ze])==null?void 0:mt.value)||"",((Zt=Lt==null?void 0:Lt[ze])==null?void 0:Zt.type)==="warning"?bt.className="program-fill-warning":((Dt=Lt==null?void 0:Lt[ze])==null?void 0:Dt.type)==="success"?bt.className="program-fill-success":bt.className="";for(const[ze,bt]of pn.entries())bt.innerHTML=(Ut=Lt==null?void 0:Lt[ze])!=null&&Ut.score?`${(sn=Lt==null?void 0:Lt[ze])==null?void 0:sn.score}\u5206`:"";oe(Lt)}catch(pn){console.log(pn,"error")}},[Lt]);const Fe=mt=>{te[mt.target.dataset.id]=te[mt.target.dataset.id]||{},te[mt.target.dataset.id].value=mt.target.value,oe([...te]),ot(te,mt.target.dataset.id)},Ke=mt=>{te[mt.target.dataset.id]=te[mt.target.dataset.id]||{},te[mt.target.dataset.id].value=mt.target.value,oe([...te]),rt(te,mt.target.dataset.id)},it=mt=>{te[mt.target.dataset.id]=te[mt.target.dataset.id]||{},te[mt.target.dataset.id].value=mt.target.value,oe([...te]),an(te,mt.target.dataset.id)};function xe(mt,Zt){return mt.childNodes.forEach(Dt=>{var Ut;if(Dt.childNodes.length>0)xe(Dt,Zt);else if(Dt.nodeName!=="IMG")if(Dt.innerHTML)Dt.innerHTML=(Ut=Dt.innerHTML)==null?void 0:Ut.replace(new RegExp(Zt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const sn=document.createElement("span");sn.innerHTML=Dt.textContent.replace(new RegExp(Zt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Dt.replaceWith(sn)}})}const Oe=(0,E.useRef)();pe.jb.WebkitLineClamp=Ue,Ue&&(nt=Qe(Qe({},nt),pe.jb));function Ot(mt){let Zt=mt.target;if(Zt.tagName.toUpperCase()==="A"){let Dt=Zt.getAttribute("href");if(Dt.indexOf("office")>-1)mt.preventDefault(),wt(Dt),ne("office");else if(Dt.indexOf("application/pdf")>-1)mt.preventDefault(),wt(Dt),ne("pdf");else if(Dt.indexOf("text/html")>-1)mt.preventDefault(),wt(Dt),ne("html");else if(Dt.startsWith("#")){mt.preventDefault();let Ut=document.getElementById(Dt.replace("#",""));Ut&&Ut.scrollIntoView(!0)}}}const Mt=()=>{var mt;const Zt=(mt=Oe.current)==null?void 0:mt.querySelectorAll("video");Zt==null||Zt.forEach(Dt=>{if(Dt.oncontextmenu=()=>!1,Dt.src.indexOf(".m3u8")>-1&&!Dt.canPlayType("application/vnd.apple.mpegurl")){if(Ee.ZP.isSupported()){var Ut=new Ee.ZP;Ut.loadSource(Dt.src),Ut.attachMedia(Dt)}}})};(0,E.useEffect)(()=>{if(Oe.current&&Ie&&Ie.match(ht)&&window.PR.prettyPrint(),Oe.current)return Oe.current.addEventListener("click",Ot),()=>{var mt;(mt=Oe.current)==null||mt.removeEventListener("click",Ot),(0,pe.AL)(),(0,pe.Iy)()}},[Ie,Oe.current,Ot]);const Vt=mt=>{mt.target.nodeName==="IMG"&&mt.target.className.indexOf("draw-flowchart")>-1?(Rt.current.style.zIndex=1,Rt.current.style.display="flex",Rt.current.style.width=mt.target.clientWidth+"px",Rt.current.style.height=mt.target.clientHeight+"px",Rt.current.style.top=mt.target.offsetTop+"px",Rt.current.style.left=mt.target.offsetLeft+"px",mt.target.id&&(_e.current=mt.target.id)):Rt.current.style.display="none"},Ft=()=>{Rt.current.style.display="none"};return(0,E.useEffect)(()=>{var mt;const Zt=Dt=>{Dt.preventDefault(),Dt.clipboardData.setData("text",window.getSelection().toString())};return(mt=Oe.current)==null||mt.addEventListener("copy",Zt),()=>{var Dt;(Dt=Oe.current)==null||Dt.removeEventListener("copy",Zt)}},[Oe.current]),E.createElement("div",{style:{position:"relative"},onMouseLeave:Ft},jt&&E.createElement("div",{ref:Oe,className:`${Be.mdBody} `},Ie),!jt&&!le(Ie)&&E.createElement("div",{ref:Oe,style:Qe({},nt),onMouseOver:Vt,className:`${ye||""} ${Kt?"disabled-fill":""} markdown-body ${Be.mdBody} ${ue.current}`,dangerouslySetInnerHTML:{__html:Ie}}),!jt&&le(Ie)&&E.createElement(qe,{html:Ie}),E.createElement("div",{ref:Rt,className:`${Be.button} ${Ye?"":Be.previewFlowChart}`},E.createElement(Ne.Z,null,E.createElement(ce.ZP,{onClick:()=>{Ye?Pe(_e.current):(wt(_e.current),ne("flowChart"))}},Ye?"\u7F16\u8F91":"\u9884\u89C8"))),E.createElement(De.Z,{close:!0,data:Gt,type:Gt!=null&&Gt.length?ae:"",style:Qe({},zt),onClose:()=>wt("")}))}},28267:function(fn,Ht,ee){"use strict";ee.d(Ht,{h:function(){return je}});var E=ee(59301),Ae=ee(82326),pe=ee(28284),Ge=ee(7939),Ee=ee(89780),be=ee.n(Ee),Se=ee(88319),Ze=ee(94896),Ne=Object.defineProperty,ce=Object.defineProperties,We=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,qe=(Te,Qe,Ve)=>Qe in Te?Ne(Te,Qe,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[Qe]=Ve,He=(Te,Qe)=>{for(var Ve in Qe||(Qe={}))It.call(Qe,Ve)&&qe(Te,Ve,Qe[Ve]);if(De)for(var Ve of De(Qe))at.call(Qe,Ve)&&qe(Te,Ve,Qe[Ve]);return Te},Be=(Te,Qe)=>ce(Te,We(Qe));const ut=Ae.default.Option,St={labelCol:{span:4},wrapperCol:{span:20}},Bt={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"]};Ht.Z=({callback:Te,onCancel:Qe})=>{const[Ve,Tt]=(0,E.useState)("python");function ht(et){Tt(Bt[et][1])}function Xe(et){Te(et)}return E.createElement(pe.default,Be(He({},St),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Xe,style:{width:500}}),E.createElement(pe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},E.createElement(Ae.default,{getPopupContainer:et=>et.parentNode,onChange:ht},Object.keys(Bt).map(et=>E.createElement(ut,{key:et,value:et},Bt[et][0])))),E.createElement(pe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},E.createElement(je,{mode:Ve})),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Ge.ZP,{type:"ghost",onClick:Qe},"\u53D6\u6D88")))};function je({value:Te,onChange:Qe,mode:Ve,options:Tt={}}){const ht=(0,E.useRef)(),[Xe,et]=(0,E.useState)();return(0,E.useEffect)(()=>{if(Xe){let Me=function(pt){const Ye=pt.getValue();Qe&&Qe(Ye)};return Xe.on("change",Me),()=>{Xe.off("change",Me)}}},[Xe,Qe]),(0,E.useEffect)(()=>{Xe&&Xe.setOption("mode",Ve)},[Xe,Ve]),(0,E.useEffect)(()=>{Xe&&(Te!==Xe.getValue()||Te==="")&&setTimeout(()=>{Xe.setValue(Te||"")},300)},[Xe,Te]),(0,E.useEffect)(()=>{if(ht.current&&!Xe){const Me=be().fromTextArea(ht.current,He({mode:Ve,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Tt));et(Me)}},[ht.current,Xe]),E.createElement("div",{className:"my-codemirror-container"},E.createElement("textarea",{ref:ht}))}},39116:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return $n}});var E=ee(59301),Ae=ee(44283),pe=ee(89780),Ge=ee.n(pe),Ee=ee(76374),be=ee(88319),Se=ee(6313),Ze=ee(25717),Ne=ee(99498),ce=ee(25419),We=ee(67549),De=ee(35883),It=({value:hn="",className:In,showTextOnly:xn,showLines:Wn,style:lr={}})=>{const qn=(0,E.useMemo)(()=>"",[hn]);return E.createElement(E.Fragment,null,E.createElement("div",{dangerouslySetInnerHTML:{__html:qn}}))},at=Object.defineProperty,qe=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Bt=(hn,In,xn)=>In in hn?at(hn,In,{enumerable:!0,configurable:!0,writable:!0,value:xn}):hn[In]=xn,je=(hn,In)=>{for(var xn in In||(In={}))ut.call(In,xn)&&Bt(hn,xn,In[xn]);if(Be)for(var xn of Be(In))St.call(In,xn)&&Bt(hn,xn,In[xn]);return hn},Te=(hn,In)=>qe(hn,He(In));let Qe=[{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 Ve({onActionCallback:hn,title:In,icon:xn,actionName:Wn,className:lr="",children:qn}){function Gn(){hn(Wn)}return E.createElement("a",{title:In,className:lr,onClick:Gn},E.createElement("i",{className:`${xn}`}),qn)}var Tt=({watch:hn,showNullButton:In,showNullProgramButton:xn,onActionCallback:Wn,fullScreen:lr,insertTemp:qn,hidetoolBar:Gn,extraUse:cr})=>{const gr=[...Qe,{title:`${hn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${hn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return E.createElement("ul",{className:"markdown-toolbar-container"},!Gn&&gr.map((Ir,pr)=>E.createElement("li",{key:pr},Ir.actionName?E.createElement(Ve,Te(je({},Ir),{onActionCallback:Wn})):E.createElement("span",{className:"v-line"}))),In?E.createElement("li",null,E.createElement(Ve,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Wn},E.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,xn?E.createElement(E.Fragment,null,E.createElement("li",null,E.createElement(Ve,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Wn},E.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),E.createElement("li",null,E.createElement(Ve,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Wn},E.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,qn&&E.createElement("li",null,E.createElement(Ve,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${qn}`,onActionCallback:Wn},E.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),cr&&E.createElement("li",null,cr),E.createElement("li",{className:"btn-full-screen"},E.createElement(Ve,{icon:`${lr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:lr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Wn})))},ht=ee(88487),Xe=ee(28284),et=ee(37568),Me=ee(7939),pt=Object.defineProperty,Ye=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,zt=(hn,In,xn)=>In in hn?pt(hn,In,{enumerable:!0,configurable:!0,writable:!0,value:xn}):hn[In]=xn,Ce=(hn,In)=>{for(var xn in In||(In={}))Ue.call(In,xn)&&zt(hn,xn,In[xn]);if(jt)for(var xn of jt(In))nt.call(In,xn)&&zt(hn,xn,In[xn]);return hn},de=(hn,In)=>Ye(hn,ye(In));const vt={labelCol:{span:4},wrapperCol:{span:20}};var Kt=({callback:hn,onCancel:In})=>{function xn(Wn){hn(Wn)}return E.createElement(Xe.default,de(Ce({},vt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:xn,style:{width:500}}),E.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},E.createElement(et.default,null)),E.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},E.createElement(et.default,null)),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Me.ZP,{type:"ghost",onClick:In},"\u53D6\u6D88")))},Lt=ee(28267),Pe=ee(53332),ot=ee(62957),rt=ee(77019),an=ee(40254),tt=ee(59301),Rt=({callback:hn,onCancel:In})=>{const xn=document.createElement("canvas"),Wn=xn.getContext("2d");xn.width=1e3,xn.height=800,Wn.fillStyle="#ffffff",Wn.fillRect(0,0,xn.width,xn.height);const lr=xn.toDataURL("image/png");return tt.createElement(ot.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},tt.createElement(rt.Z,{style:{height:"100vh"}},tt.createElement(an.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:lr,visible:!0,title:String(Date.now())},onOk:qn=>{hn({src:qn.url})},onClose:In})))},_e=ee(36207),Gt=ee(5269),wt=ee(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ne=ee(59301),oe=(0,E.forwardRef)(({onCancel:hn,editImgId:In,callback:xn},Wn)=>{let lr=(0,E.useRef)(),qn=(0,E.useRef)(),Gn=(0,E.useRef)(),cr=(0,E.useRef)(!1);const gr=(0,E.useRef)(!1);console.log("ref:",Wn);const[Ir,pr]=(0,E.useState)(0),[tn,En]=(0,E.useState)("100vh");return(0,E.useEffect)(()=>{pr(1)},[]),(0,E.useImperativeHandle)(Wn,()=>({setHeight:En})),ne.createElement("div",{ref:gr,className:"body-overflow-initial"},ne.createElement(_e.Z,{width:"100vw",height:tn,footer:null,closable:!0,placement:"bottom",open:!!Ir,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(An=>{xn({src:`/api/attachments/${An}`,id:An})})},title:ne.createElement(rt.Z,{align:"middle"},ne.createElement(Gt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ne.createElement(Gt.Z,{onClick:()=>{En(tn==="60px"?"100vh":"60px")}},ne.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ne.createElement(Gt.Z,{onClick:()=>{window.saveDrawData(An=>{if(An===null){wt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}wt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),xn({src:`/api/attachments/${An}`,id:An,disabledClose:!0})})}},ne.createElement(Me.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ne.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${In||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:qn})))}),ue=ee(14185),re=ee(47889),le=ee(4875);const ge=re.ZP.Group,lt={margin:"0 8px"};var ke=({callback:hn,onCancel:In})=>{function xn(Wn){hn(Wn)}return E.createElement(Xe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:xn},E.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},E.createElement("span",{style:lt},"\u5355\u5143\u683C\u6570\uFF1A"),E.createElement("span",{style:lt},"\u884C\u6570"),E.createElement(Xe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},E.createElement(le.Z,null)),E.createElement("span",{style:lt},"\u5217\u6570"),E.createElement(Xe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},E.createElement(le.Z,null))),E.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},E.createElement("span",{style:lt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),E.createElement(Xe.default.Item,{name:"align"},E.createElement(ge,null,E.createElement(re.ZP,{value:"default"},E.createElement("i",{className:"fa fa-align-justify"})),E.createElement(re.ZP,{value:"left"},E.createElement("i",{className:"fa fa-align-left"})),E.createElement(re.ZP,{value:"center"},E.createElement("i",{className:"fa fa-align-center"})),E.createElement(re.ZP,{value:"right"},E.createElement("i",{className:"fa fa-align-right"}))))),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Me.ZP,{type:"ghost",onClick:In},"\u53D6\u6D88")))},Ie=ee(58755),Fe=ee(84915),Ke=ee.n(Fe),xe=(0,E.forwardRef)(({use3d:hn,width:In,height:xn,callback:Wn,showSaveButton:lr},qn)=>{const Gn=(0,E.useRef)(),cr=(0,E.useRef)(),[gr,Ir]=(0,E.useState)(!1),pr=(0,E.useRef)({id:Gn,appName:"graphing",width:In||1e3,height:xn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,E.useEffect)(()=>{cr.current=new(Ke())(pr.current,!0),window.onload=function(){cr.current.inject("applet_container")}},[]);const tn=()=>{var En=window.ggbApplet.getPNGBase64(1,!0,72);return Wn&&Wn(En),En};return(0,E.useEffect)(()=>{pr.current.appName=gr?"3D":"graphing",cr.current.inject("applet_container")},[gr]),(0,E.useEffect)(()=>{Ir(hn)},[hn]),(0,E.useImperativeHandle)(qn,()=>({getImgData:tn})),E.createElement(E.Fragment,null,E.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Gn}),E.createElement(rt.Z,{align:"middle"},E.createElement(Gt.Z,{flex:1},E.createElement(Ie.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:gr,onChange:En=>Ir(En)})),E.createElement(Gt.Z,null,E.createElement(Me.ZP,{size:"large",onClick:tn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Oe=ee(9057);const Ot="link",Mt="upload-image",Vt="add-flowchart",Ft="draw-image",mt="add-flowchart",Zt="code-block",Dt="add-table",Ut="------------",sn={default:Ut,left:`:${Ut}`,center:`:${Ut}:`,right:`${Ut}:`};var pn=ee(79006),mn=ee(76406);function ze(){}let bt=0;const $t=1e4,ft="\u2581",Et="@\u2581\u2581@",Nt="@\u2581@",vn=`
|
|
|
**\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`,kn=["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 cn(hn){return/^\d+$/.test(hn)?`${hn}px`:hn}const en=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",on={[en+"-B"]:"bold",[en+"-I"]:"italic"},gn={[Ot]:"\u6DFB\u52A0\u94FE\u63A5",[Zt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Mt]:"\u6DFB\u52A0\u56FE\u7247",[Ft]:"\u6DFB\u52A0\u753B\u56FE",[Vt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Dt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var $n=({defaultValue:hn="",onChange:In,width:xn="100%",height:Wn=400,miniToolbar:lr=!1,isFocus:qn=!1,watch:Gn,insertTemp:cr,mode:gr="markdown",id:Ir="markdown-editor-id",showResizeBar:pr=!1,noStorage:tn=!1,showNullButton:En=!1,showNullProgramButton:An=!1,hidetoolBar:yr=!1,fullScreen:st=!1,onBlur:xt,onCMBeforeChange:Le,onFullScreen:ct,className:$e="",disablePaste:dt=!1,disabled:Pt=!1,disabledFill:yn=!1,placeholder:Cn="",values:Mn="",extraUse:Qt,onAddBlank:_t})=>{const[Yt,Pn]=(0,E.useState)(null),[Fn,zn]=(0,E.useState)(hn),[jn,Dr]=(0,E.useState)(Gn),[Rr,zr]=(0,E.useState)(st),[mr,er]=(0,E.useState)(""),[or,Or]=(0,E.useState)(0),[Qr,Hr]=(0,E.useState)(Wn),[Yr,Kr]=(0,E.useState)(!1),[kr,Fr]=(0,E.useState)(0),[oi,qr]=(0,E.useState)(0),ei=(0,E.useRef)(),si=(0,E.useRef)(),ci=(0,E.useRef)(),Zr=(0,E.useRef)(),ti=(0,E.useRef)(),wr=(0,E.useRef)(),mi=(0,Ae.useDispatch)();(0,E.useEffect)(()=>{const Dn=window.scrollY||window.pageYOffset;zn(Mn),Yt==null||Yt.setValue(Mn),window.scrollTo(0,Dn)},[Mn]),(0,E.useEffect)(()=>{ct==null||ct(Rr)},[Rr]),(0,E.useEffect)(()=>{if(ei.current){let Dn=function(Un,Xn){var jr;if(dt){Xn.preventDefault();return}const Si=Xn.clipboardData;if(Si){const di=Si.types.toString(),ki=Si.items;if(di==="Files"||Si.types.indexOf("Files")>-1){if(Xn.preventDefault(),gr=="stex")return;try{let xi=ki[1];((jr=ki[0])==null?void 0:jr.kind)==="file"&&(xi=ki[0]);const wi=xi.getAsFile(),Ai=wi.name.split(".").pop();(0,Pe.I)(wi,Di=>{var Ti,so,Oo;Di.id?((Ti=wi==null?void 0:wi.type)==null?void 0:Ti.indexOf("image"))>-1?Bn.replaceSelection(`<img width="100%" src="/api/attachments/${Di.id}?type=${Di.content_type})" alt="" />`):((so=wi==null?void 0:wi.type)==null?void 0:so.indexOf("video"))>-1?Bn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Di.id}"></video>`):((Oo=wi==null?void 0:wi.type)==null?void 0:Oo.indexOf("pdf"))>-1?Bn.replaceSelection(`<a href="/api/attachments/${Di.id}?type=${wi.type}&disposition=inline" target="_blank">${wi.name}</a>`):kn.includes(Ai)?Bn.replaceSelection(`<a href="/api/attachments/${Di.id}?type=office&disposition=inline" target="_blank">${wi.name}</a>`):Bn.replaceSelection(`[${wi.name}](/api/attachments/${Di.id}?type=${Di.content_type})`):(Di==null?void 0:Di.status)===401&&(document.location.href="/user/login")})}catch(xi){wt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Bn=Ge().fromTextArea(ei.current,{mode:gr,lineNumbers:!lr,lineWrapping:!0,value:hn,autoCloseTags:!0,autoCloseBrackets:!0});return Bn.on("keyup",function(Un,Xn){Xn.keyCode===8&&(Un.getValue()==""?Bn.setOption("placeholder",Cn):Bn.setOption("placeholder",null))}),Bn.on("keydown",function(Un,Xn){if(Xn.keyCode===8){var jr=Ui(Un);jr&&Xn.preventDefault()}}),qn&&Bn.focus(),Bn.on("paste",Dn),Pt&&Bn.on("beforeChange",function(Un,Xn){(Xn.origin==="paste"||Xn.origin==="+input")&&Xn.cancel()}),Pn(Bn),()=>{Bn.off("paste",Dn)}}},[]);const Hi=(0,E.useCallback)(()=>{if(si.current)try{}catch(Dn){console.log(Dn,"---- to set md editor body height")}},[Qr,si,Rr]);(0,E.useEffect)(()=>{function Dn(){let Bn=new Ee.Z(Un=>{for(let Xn of Un)(Xn.target.offsetHeight>0||Xn.target.offsetWidth>0)&&(Hi(),Yt.setSize("100%","100%"),Yt.refresh())});return Bn.observe(ei.current.parentElement),Bn}if(Yt){const Bn=Dn();return()=>{var Un,Xn;(Un=ei.current)!=null&&Un.parentElement&&Bn.unobserve((Xn=ei.current)==null?void 0:Xn.parentElement)}}},[Yt,Hi]),(0,E.useEffect)(()=>{if(Yt){let Dn=[];for(const[Bn,Un]of Object.entries(on)){let Xn={[Bn]:()=>{yi(Un)}};Dn.push(Xn),Yt.addKeyMap(Xn)}return()=>{for(let Bn of Dn)Yt.removeKeyMap(Bn)}}},[Yt]),(0,E.useEffect)(()=>{st!==Rr&&zr(st)},[st]),(0,pn.Z)(()=>{if(!tn&&or>0){let Dn=new Date().getTime(),Bn=window.sessionStorage.getItem(Ir);Dn>=or+$t&&(!Bn||Bn!==Fn)&&(window.sessionStorage.setItem(Ir,Fn),Kr(!0))}},$t),(0,E.useEffect)(()=>{Dr(Gn)},[Yt,Gn]),(0,E.useEffect)(()=>{Yt&&qn&&Yt.focus()},[Yt,qn]),(0,E.useEffect)(()=>{if(jn&&Yt){let Dn=function(Un){let Xn=Un.target;if(Zr.current){let jr=Xn.scrollTop/Xn.scrollHeight;Zr.current.scrollTop=Zr.current.scrollHeight*jr}};const Bn=Yt.getScrollerElement();return Bn.addEventListener("scroll",Dn),()=>{Bn.removeEventListener("scroll",Dn)}}},[Yt,jn]),(0,E.useEffect)(()=>{if(Yt&&Le){let Dn=function(Bn,Un){Le(Bn,Un)};return Yt.on("beforeChange",Dn),()=>{Yt.off("beforeChange",Dn)}}},[Yt,Le]),(0,E.useEffect)(()=>{if(Yt&&xt){let Dn=function(){xt(Yt.getValue())};return Yt.on("blur",Dn),()=>{Yt.off("blur",Dn)}}},[Yt,xt]);function Ui(Dn,Bn){var Un=Dn.getDoc(),Xn=Un.getCursor(),jr=Un.getLine(Xn.line),Si=jr.charAt(Xn.ch-1),di=jr.lastIndexOf("@\u2581@",Xn.ch),ki=jr.lastIndexOf("@\u2581\u2581@",Xn.ch),xi=di>ki?di:ki,wi=di>ki?3:4;if(Et.indexOf(Si)===-1)return null;if(console.log("change1:",Bn,Dn,jr,Xn,xi,di,ki,Si),xi>=0&&Xn.ch-xi<5){var Ai=xi+wi;return Un.replaceRange("",{line:Xn.line,ch:xi},{line:Xn.line,ch:Ai}),{line:Xn.line,ch:Ai}}return null}(0,E.useEffect)(()=>{if(Yt){let Dn=function(Bn,Un){const Xn=Bn.getValue();zn(Xn),Or(new Date().getTime()),Bn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),In&&(An?In(Xn,Ln(Xn)):In(Xn))};return Yt.on("change",Dn),()=>{Yt.off("change",Dn)}}},[Yt,In]),(0,E.useEffect)(()=>{if(Yt)if(hn==null)Yt.setValue(""),zn("");else{const Dn=window.scrollY||window.pageYOffset;hn!==Yt.getValue()&&(Yt.setValue(hn),zn(hn),Yt.setCursor(Pt?1:Yt.lineCount(),0),window.scrollTo(0,Dn))}},[Yt,hn]);const yi=(0,E.useCallback)(Dn=>{const Bn=Yt.getCursor(),Un=Yt.getSelection();let Xn=Un.split(`
|
|
|
`);switch(Dn){case"bold":return Yt.replaceSelection("**"+Un+"**"),Un===""&&Yt.setCursor(Bn.line,Bn.ch+2),Yt.focus();case"italic":return Yt.replaceSelection("*"+Un+"*"),Un===""&&Yt.setCursor(Bn.line,Bn.ch+1),Yt.focus();case"code":return Yt.replaceSelection("`"+Un+"`"),Un===""&&Yt.setCursor(Bn.line,Bn.ch+1),Yt.focus();case"inline-latex":return(0,mn.Ye)(mi)?void 0:(er("inline-latex"),Yt.focus());case"latex":return Yt.replaceSelection("```latex\n"+Un+"\n```"),Yt.setCursor(Bn.line+1,Un.length+1),Yt.focus();case"line-break":return Yt.replaceSelection(`<br/>
|
|
|
`),Yt.focus();case"list-ul":return Un===""?Yt.replaceSelection("- "+Un):Yt.replaceSelection(Xn.map(jr=>jr===""?"":`- ${jr}`).join(`
|
|
|
`)),Yt.focus();case"list-ol":return Un===""?Yt.replaceSelection("1. "+Un):Yt.replaceSelection(Xn.map((jr,Si)=>jr===""?"":`${Si+1}. ${jr}`).join(`
|
|
|
`)),Yt.focus();case"add-null-ch":_t==null||_t();return;case"add-signal":return Un===""&&Yt.setCursor(Bn.line,Bn.ch),Yt.replaceSelection(Nt),Yt.focus();case"add-multiple":return Un===""&&Yt.setCursor(Bn.line,Bn.ch),Yt.replaceSelection(Et),Yt.focus();case"inster-template-1":return Un===""&&Yt.setCursor(Bn.line,Bn.ch),Yt.replaceSelection(vn),Yt.focus();case"eraser":return Yt.setValue(""),Yt.focus();case"trigger-watch":return Dr(!jn),Yt.focus();case"trigger-full-screen":return zr(!Rr),Yt.focus();case Ot:er(Ot);return;case Zt:er(Zt);return;case Mt:er(Mt);return;case Ft:er(Ft);return;case"maths-latex":if((0,mn.Ye)(mi))return;er("maths-latex");return;case Vt:ti.current="",sessionStorage.removeItem("file_id"),er(Vt);return;case Dt:er(Dt);return;default:throw new Error}},[Yt,jn,Rr]),Ii=(0,E.useCallback)((Dn,Bn)=>{var Un,Xn,jr,Si,di,ki;Dn!=null&&Dn.disabledClose||er("");const{src:xi,alt:wi,id:Ai}=Dn||{};switch(mr){case Ot:const{title:Mo,link:No}=Dn;return Yt.replaceSelection(`[${Mo}](${No})`),Yt.focus();case Zt:const{language:Ao,content:_r}=Dn;return Yt.replaceSelection(["```"+Ao,_r,"```"].join(`
|
|
|
`)),Yt.focus();case"maths-latex":for(var Di=atob(Dn),Ti=new Uint8Array(Di.length),so=0;so<Di.length;so++)Ti[so]=Di.charCodeAt(so);var Oo=new Blob([Ti],{type:"image/png"});return(0,Pe.I)(Oo,qo=>{qo.id?Yt.replaceSelection(``):(qo==null?void 0:qo.status)===401&&(document.location.href="/user/login")}),Yt.focus();case"inline-latex":return(0,mn.Ye)(mi)?void 0:(Yt.replaceSelection("`$$"+Dn+"$$`"),Yt.focus());case mt:return Ai?(Yt.getValue().indexOf(xi)===-1?Yt.replaceSelection(`<center><img id="${Ai}" width="80%" src="${xi}" class="draw-flowchart" alt="${wi||""}" /></center>`):document.getElementById(Ai).src=ue.Z.API_SERVER+xi+"?t="+Date.now(),Yt.focus()):void 0;case Mt:case Ft:const Lr=Bn,Gi=(jr=(Xn=(Un=Lr==null?void 0:Lr.name)==null?void 0:Un.split("."))==null?void 0:Xn.pop)==null?void 0:jr.call(Xn);return((Si=Lr==null?void 0:Lr.type)==null?void 0:Si.indexOf("image"))>-1||!(Lr!=null&&Lr.type)?Lr!=null&&Lr.align||Lr!=null&&Lr.width?Yt.replaceSelection(`<p style="text-align:${Lr.align||"initial"}"><img width="${Lr.width?Lr.width+"%":"initial"}" src="${xi}" alt="${wi||""}" /></p>`):Yt.replaceSelection(`<img width="100%" src="${xi}" alt="${wi||""}" />`):((di=Lr==null?void 0:Lr.type)==null?void 0:di.indexOf("video"))>-1?Yt.replaceSelection(`<video width="100%" controls src="${xi}"></video>`):((ki=Lr==null?void 0:Lr.type)==null?void 0:ki.indexOf("pdf"))>-1?Yt.replaceSelection(`<a href="${xi}?type=${Lr.type}&disposition=inline" target="_blank">${Lr.name}</a>`):kn.includes(Gi)?Yt.replaceSelection(`<a href="${xi}?type=office&disposition=inline" target="_blank">${Lr.name}</a>`):Yt.replaceSelection(`[${Lr.name}](${xi})`),Yt.focus();case Dt:const{row:_i,col:Wo,align:Qa}=Dn;let Ma=`
|
|
|
`;for(let qo=0;qo<_i;qo++){let ga=[],uo=[];for(let Ea=0;Ea<Wo;Ea++)qo===1&&uo.push(sn[Qa]),ga.push(" ");qo===1&&(Ma+=`| ${uo.join(" | ")} |
|
|
|
`),Ma+=`| ${ga.join(Wo===1?"":" | ")} |
|
|
|
`}return Yt.replaceSelection(Ma+`
|
|
|
`),Yt.focus();default:throw new Error}},[Yt,mr]),bi=(0,E.useMemo)(()=>{switch(mr){case Ot:return E.createElement(Kt,{callback:Ii,onCancel:Ri});case Zt:return E.createElement(Lt.Z,{callback:Ii,onCancel:Ri});case Mt:return E.createElement(Pe.Z,{callback:Ii,onCancel:Ri});case Vt:return E.createElement(oe,{editImgId:ti.current,callback:Ii,onCancel:Ri});case Dt:return E.createElement(ke,{callback:Ii,onCancel:Ri});case"maths-latex":return E.createElement(xe,{showSaveButton:!0,callback:Ii});case"inline-latex":return E.createElement(Oe.Z,{showSaveButton:!0,callback:Ii});default:return null}},[mr]);function Ri(){er("")}(0,E.useEffect)(()=>{if(ci.current){let Dn=function(di){jr=!0,Si=di.pageY},Bn=function(){jr=!1},Un=function(di){if(jr){let ki=di.pageY-Si;ki<0&&(ki=0),ki>300&&(ki=300);let xi=Wn+ki+"px";Hr(xi)}},Xn=ci.current,jr=!1,Si=0;return Xn.addEventListener("mousedown",Dn),document.addEventListener("mousemove",Un),document.addEventListener("mouseup",Bn),()=>{Xn.removeEventListener("mousedown",Dn),document.removeEventListener("mousemove",Un),document.removeEventListener("mouseup",Bn)}}},[Yt,ci]),(0,E.useEffect)(()=>{Hr(Wn)},[Wn]);const Ki=cn(xn),ni=cn(Qr),ar={width:Ki,height:ni},wn=(0,E.useMemo)(()=>{if(or){let Dn=new Date(or),Bn=Dn.getHours(),Un=Dn.getMinutes(),Xn=Dn.getSeconds();return Bn=Bn<10?"0"+Bn:Bn,Un=Un<10?"0"+Un:Un,Xn=Xn<10?"0"+Xn:Xn,`${Bn}:${Un}:${Xn}`}return 0},[or]),Ln=Dn=>{const Bn=[];if(An){let Un=-1;Dn=Dn.replace(/(@▁▁@|@▁@)/g,function(Xn,jr,Si){Bn.push({multiLine:Xn!==Nt})})}return Bn};function Rn(){window.sessionStorage.removeItem(Ir),Kr(!1),Or(0)}function On(){Kr(!1),Or(0),Yt.setValue(window.sessionStorage.getItem(Ir))}(0,E.useEffect)(()=>{gn[mr]&&mr!==Ft&&mr!==Vt&&setTimeout(()=>{const Dn=document.getElementsByClassName("markdown-popup-form")[0],Bn=window.innerWidth/2-Dn.offsetWidth/2,Un=window.innerHeight/2-Dn.offsetHeight/2;Fr(Bn),qr(Un)},0)},[mr]);const Qn=Dn=>{Dn.preventDefault();const Bn=Dn.clientX-kr,Un=Dn.clientY-oi;document.body.onmousemove=Xn=>{let jr=Xn.clientX-Bn,Si=Xn.clientY-Un;const di=document.getElementsByClassName("markdown-popup-form")[0],ki=window.innerWidth-di.offsetWidth,xi=window.innerHeight-di.offsetHeight;jr=Math.max(0,Math.min(jr,ki)),Si=Math.max(0,Math.min(Si,xi)),dr(Xn.clientX,Xn.clientY,Bn,Un)&&(Fr(jr),qr(Si))},document.body.onmouseup=function(){document.body.onmousemove=null}},dr=(Dn,Bn,Un,Xn)=>{const jr=document.body.clientHeight,Si=document.body.clientWidth;return Dn<20&&Un>Dn||Dn>Si-20&&Un<Dn||Bn<20&&Xn>Bn||Bn>jr-20&&Xn<Bn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return E.createElement(E.Fragment,null,E.createElement("div",{className:"markdown-editor-wrapper",ref:si},E.createElement("div",{className:`markdown-editor-container ${$e} ${jn?"on-preview":""} ${lr?"mini":""} ${Rr?"full-screen":""}`,style:ar},E.createElement(Tt,{insertTemp:cr,watch:jn,fullScreen:Rr,showNullButton:En,showNullProgramButton:An,onActionCallback:yi,hidetoolBar:yr,extraUse:Qt}),E.createElement("div",{className:"markdown-editor-body"},E.createElement("div",{className:"codemirror-container"},E.createElement("textarea",{ref:ei,placeholder:Cn})),jn?E.createElement("div",{ref:Zr,className:"preview-container"},gr==="stex"&&E.createElement(It,{value:Fn}),gr!=="stex"&&E.createElement(De.Z,{edit:!0,disabledFill:yn,showProgramFill:An,value:Fn,openEditor:Dn=>{var Bn;ti.current=Dn,(Bn=wr.current)==null||Bn.setHeight("100vh"),setTimeout(()=>{er("add-flowchart")},150)}})):null))),pr?E.createElement("a",{ref:ci,className:"editor-resize"}):null,mr===Ft&&E.createElement(Rt,{callback:Ii,onCancel:Ri}),mr===Vt&&E.createElement(oe,{ref:wr,editImgId:ti.current,callback:Ii,onCancel:Ri}),E.createElement(ht.Z,null,gn[mr]&&mr!==Ft&&mr!==Vt?E.createElement(ot.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:kr,top:oi},title:E.createElement("div",{style:{cursor:"move"},onMouseDown:Qn},gn[mr]),open:!0,onCancel:Ri,footer:null,destroyOnClose:!0,width:mr===Vt?"1200px":null,height:mr===Vt?"80vh":null,className:"markdown-popup-form"},bi):null))}},53332:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Qe},I:function(){return Tt}});var E=ee(28284),Ae=ee(6767),pe=ee(37568),Ge=ee(44104),Ee=ee(4875),be=ee(47889),Se=ee(7939),Ze=ee(23216),Ne=ee(59301),ce=ee(59301),We=Object.defineProperty,De=Object.defineProperties,It=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Be=(ht,Xe,et)=>Xe in ht?We(ht,Xe,{enumerable:!0,configurable:!0,writable:!0,value:et}):ht[Xe]=et,ut=(ht,Xe)=>{for(var et in Xe||(Xe={}))qe.call(Xe,et)&&Be(ht,et,Xe[et]);if(at)for(var et of at(Xe))He.call(Xe,et)&&Be(ht,et,Xe[et]);return ht},St=(ht,Xe)=>De(ht,It(Xe));const{useForm:Bt}=E.default,je={width:280,marginRight:10},Te={labelCol:{span:5},wrapperCol:{span:19}};var Qe=({callback:ht,onCancel:Xe})=>{const[et]=Bt();let Me=(0,Ne.useRef)();function pt(jt){Me.current.width=et.getFieldValue("width"),Me.current.align=et.getFieldValue("align"),ht(jt,Me.current)}function Ye(jt,Ue){if(jt.status===-1){Ae.ZP.error(jt.message);return}et.setFieldsValue({src:`/api/attachments/${jt.id}`,type:Ue.type})}function ye(jt){let Ue=jt.target.files[0];Me.current=Ue,Tt(Ue,Ye)}return ce.createElement(E.default,St(ut({form:et},Te),{className:"upload-image-panel",onFinish:pt,style:{width:470,overflow:"hidden"}}),ce.createElement(E.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ce.createElement("div",{className:"flex-container"},ce.createElement(E.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ce.createElement(pe.default,{style:je})),ce.createElement(Ve,{onFileChange:ye}))),ce.createElement(E.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ce.createElement(pe.default,{style:{width:264}})),ce.createElement(E.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ce.createElement(Ge.Z,null,ce.createElement(E.default.Item,{name:"width",style:{margin:0}},ce.createElement(Ee.Z,{style:{width:264}})),ce.createElement("span",{className:"ml8"},"%"))),ce.createElement(E.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ce.createElement(be.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"}]})),ce.createElement("aside",null,ce.createElement(E.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ce.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ce.createElement(Se.ZP,{type:"default",onClick:Xe},"\u53D6\u6D88"))))};function Ve({onFileChange:ht}){return ce.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ce.createElement("input",{type:"file",onChange:ht}))}function Tt(ht,Xe){if(!ht)throw new String("\u6CA1\u6709\u6587\u4EF6");let et=new FormData;et.append("editormd-image-file",ht),et.append("file_param_name","editormd-image-file"),et.append("byxhr","true");var Me=new window.XMLHttpRequest;Me.withCredentials=!0,Me.addEventListener("load",function(pt){Xe(JSON.parse(pt.target.responseText),ht)},!1),Me.addEventListener("error",function(pt){console.error(pt)},!1),Me.open("POST",`${Ze.KI}/api/attachments.json`),Me.send(et)}},88487:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return pe}});var E=ee(59301),Ae=ee(4676);class pe extends E.Component{constructor(Ee){super(Ee);const be=window.document;this.node=be.createElement("div"),be.body.appendChild(this.node)}render(){const{children:Ee}=this.props;return(0,Ae.createPortal)(Ee,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(fn,Ht,ee){"use strict";ee.d(Ht,{SV:function(){return Rt},ZP:function(){return tt}});var E=ee(59301),Ae=ee(76374);const pe={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"]},Ge={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},Ee={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std",content:["using namespace std"].join(`
|
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},be={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(`
|
|
|
`)}]},Se={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
|
`)}]};var Ze=ee(53184),Ne=ee.n(Ze),ce=(_e,Gt,wt)=>new Promise((ae,ne)=>{var te=re=>{try{ue(wt.next(re))}catch(le){ne(le)}},oe=re=>{try{ue(wt.throw(re))}catch(le){ne(le)}},ue=re=>re.done?ae(re.value):Promise.resolve(re.value).then(te,oe);ue((wt=wt.apply(_e,Gt)).next())});const We={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"]}},De=(_e,Gt,wt,ae)=>{const ne=Gt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:wt.lineNumber,endColumn:wt.column});return Array.from(new Set(ne.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:_e.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},It=(_e,Gt,wt,ae)=>{_e.languages.registerCompletionItemProvider(Gt,{provideCompletionItems(ne,te){const oe=ne.getWordUntilPosition(te),ue={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:[...De(_e,ne,te,ue),...wt.map(ge=>({label:ge,kind:_e.languages.CompletionItemKind.Keyword,documentation:ge,insertText:ge,insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue})),...ae.map(ge=>({label:ge.label,kind:_e.languages.CompletionItemKind.Snippet,documentation:ge.content,insertText:re.startsWith("#")?ge.content.replace(/#/,""):ge.content,insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue}))]}}})};var at=_e=>{We.languages.forEach(Gt=>{_e.languages.registerDocumentFormattingEditProvider(Gt,{provideDocumentFormattingEdits(wt){return ce(this,null,function*(){const ae=Ne()(wt.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:wt.getFullModelRange(),text:ae}]})}})}),It(_e,"java",Ge.keywords,Ge.quickKey),It(_e,"cpp",Ee.keywords,Ee.quickKey),It(_e,"c",pe.keywords,[]),It(_e,"python",be.keywords,be.quickKey),It(_e,"scala",Se.keywords,Se.quickKey)};const qe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var He=Object.defineProperty,Be=(_e,Gt,wt)=>Gt in _e?He(_e,Gt,{enumerable:!0,configurable:!0,writable:!0,value:wt}):_e[Gt]=wt,ut=(_e,Gt,wt)=>Be(_e,typeof Gt!="symbol"?Gt+"":Gt,wt);const St=class Hu{constructor(Gt,wt,ae){this.placeholder=Gt,this.editor=wt,this.monaco=ae,wt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Hu.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)}};ut(St,"ID","editor.widget.placeholderHint");var je=St,Te=ee(96236),Qe=ee(6767),Ve=ee(25399),Tt=ee(78267),ht=ee(33156),Xe=ee(56102),et=Object.defineProperty,Me=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Ue=(_e,Gt,wt)=>Gt in _e?et(_e,Gt,{enumerable:!0,configurable:!0,writable:!0,value:wt}):_e[Gt]=wt,nt=(_e,Gt)=>{for(var wt in Gt||(Gt={}))ye.call(Gt,wt)&&Ue(_e,wt,Gt[wt]);if(Ye)for(var wt of Ye(Gt))jt.call(Gt,wt)&&Ue(_e,wt,Gt[wt]);return _e},zt=(_e,Gt)=>Me(_e,pt(Gt)),Ce=(_e,Gt)=>{var wt={};for(var ae in _e)ye.call(_e,ae)&&Gt.indexOf(ae)<0&&(wt[ae]=_e[ae]);if(_e!=null&&Ye)for(var ae of Ye(_e))Gt.indexOf(ae)<0&&jt.call(_e,ae)&&(wt[ae]=_e[ae]);return wt},de=(_e,Gt,wt)=>new Promise((ae,ne)=>{var te=re=>{try{ue(wt.next(re))}catch(le){ne(le)}},oe=re=>{try{ue(wt.throw(re))}catch(le){ne(le)}},ue=re=>re.done?ae(re.value):Promise.resolve(re.value).then(te,oe);ue((wt=wt.apply(_e,Gt)).next())});function vt(_e){return/^\d+$/.test(_e)?`${_e}px`:_e}function Kt(){}let Lt=!1;const Pe={"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(_e=[]){let Gt=_e;if(Array.isArray(_e)){for(let wt=0;wt<_e.length;wt++){let ae=Pe[_e[wt]];if(ae)return ae}return Gt[0]}return Pe[Gt]||Gt}let rt=null;const an=()=>de(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(_e){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",_e)}});var tt=_e=>{var Gt=_e,{width:wt="100%",height:ae="100%",value:ne,language:te="javascript",style:oe={},options:ue={},overrideServices:re={},theme:le="vs-dark",onEditBlur:ge,isCopy:lt=!1,onSave:ke,autoHeight:Ie=!1,forbidCopy:Fe=!1,forbidCopyTips:Ke,onChange:it=Kt,editorDidMount:xe=Kt,onFocus:Oe=Kt,onBreakPoint:Ot=Kt,breakPointValue:Mt=[],filename:Vt="educoder.txt",errorLine:Ft,errorContent:mt="",highlightLine:Zt,openBreakPoint:Dt=!1,placeholder:Ut="",showMiniMap:sn=!0}=Gt,pn=Ce(Gt,["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 mn=(0,E.useRef)(),ze=(0,E.useRef)({}),bt=(0,E.useRef)(),$t=(0,E.useRef)(),ft=(0,E.useRef)([]),Et=(0,E.useRef)(!1),Nt=(0,E.useRef)(),vn=(0,E.useRef)(),kn=(0,E.useRef)(!1),[cn,bn]=(0,E.useState)(!1);function en(){let tn;return mn.current&&(tn=new Ae.Z(En=>{for(let An of En)(An.target.offsetHeight>0||An.target.offsetWidth>0)&&ze.current.instance.layout()}),tn.observe(mn.current)),tn}function on(){Qe.ZP.warning({content:decodeURIComponent(Ke||qe),key:"monaco-editor-tip"})}const gn=()=>{let tn=ze.current.instance;if(ne!=null&&tn&&cn){const En=tn.getModel();En&&ne!==En.getValue()&&(Lt=!0,En.setValue(ne),tn.layout(),Lt=!1)}};(0,E.useEffect)(()=>{const tn=ht.Z.subscribe("formatDocument",En=>{var An;let yr=ze.current.instance;(An=yr==null?void 0:yr.getAction)==null||An.call(yr,"editor.action.formatDocument").run()});return window.updateMonacoValue=En=>{it(En)},tn},[]),(0,E.useEffect)(()=>{var tn;let En=ze.current.instance;$t.current&&clearTimeout($t.current),$t.current=setTimeout(()=>{gn()},500),ne&&(ne!=null&&ne.length)&&((tn=En==null?void 0:En.updateOptions)==null||tn.call(En,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ne.split(/\r\n|\r|\n/g).length))+3,5)}))},[ne,cn,ze.current]),(0,E.useEffect)(()=>{if(Ft&&ze.current&&ze.current.instance){let En=ze.current.instance;En.changeViewZones(function(An){var yr=document.createElement("div");yr.style.padding="10px 20px",yr.style.width="calc(100% - 20px)",yr.className="my-error-line-wrp",yr.innerHTML=mt,An.addZone({afterLineNumber:Ft||11,heightInLines:3,domNode:yr})});var tn={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}};En.addOverlayWidget(tn),En.revealPositionInCenter({lineNumber:20,column:1})}},[Ft,ze.current,cn]);const $n=(tn="",En)=>{if(!tn||tn.trim()==="")return!0;const yr=ze.current.instance.getModel().getLineTokens(En);let st=!1;for(let xt=0;xt<2;xt++)yr.getStandardTokenType(xt)===1&&(st=!0);return st};(0,E.useEffect)(()=>{var tn;const En=(tn=ze.current)==null?void 0:tn.instance;if(En&&cn&&Fe){const An=En.onDidBlurEditorWidget(()=>{kn.current=!1}),yr=En.onDidFocusEditorText(()=>{kn.current=!0});return()=>{An.dispose(),yr.dispose()}}},[ze.current,cn,Fe]),(0,E.useEffect)(()=>{var tn;if((tn=ze.current)!=null&&tn.instance&&cn&&Dt){let En=ze.current.instance,An=En.getModel();if(!An)return;(()=>{var Qt;let _t=[],Yt=[];const Pn=An.getAllDecorations();for(let zn of Pn)zn.options.className==="highlighted-line"&&(_t.push((Qt=zn==null?void 0:zn.range)==null?void 0:Qt.startLineNumber),Yt.push(zn==null?void 0:zn.id));if(Zt===_t[0])return;An.deltaDecorations(Yt,[]);const Fn=An.getLineCount();Zt&&Zt<=Fn&&(En.deltaDecorations([],[{range:new rt.Range(Zt,1,Zt,An.getLineMaxColumn(Zt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),En.revealLineInCenter(Zt))})();const st=(Qt=!1)=>{var _t;let Yt=[],Pn=[];const Fn=An.getAllDecorations();for(let zn of Fn)zn.options.linesDecorationsClassName==="breakpoints-select"&&(Yt.push((_t=zn==null?void 0:zn.range)==null?void 0:_t.startLineNumber),Pn.push(zn==null?void 0:zn.id));if(Qt)return{lines:Yt,ids:Pn};Ot(Yt)},xt=Qt=>de(void 0,null,function*(){let _t={range:new rt.Range(Qt,1,Qt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield An.deltaDecorations([],[_t]),st()}),Le=Qt=>de(void 0,null,function*(){let _t=[];const Yt=En.getLineDecorations(Qt);for(let Pn of Yt)Pn.options.linesDecorationsClassName==="breakpoints-select"&&_t.push(Pn.id);yield An.deltaDecorations(_t,[]),st()}),ct=Qt=>{let _t=En.getLineDecorations(Qt);for(let Yt of _t)if(Yt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Tt.isEqual)(Mt,st(!0).lines)){An.deltaDecorations(st(!0).ids,[]);const Qt=Mt.map(_t=>({range:new rt.Range(_t,1,_t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));An.deltaDecorations([],Qt)}const $e=En.onDidChangeModelContent(Qt=>{let _t=En.getPosition();if(_t){let Yt=_t.lineNumber;clearTimeout(vn.current),vn.current=setTimeout(()=>{$n(An.getLineContent(Yt),Yt)?Le(Yt):ct(Yt)?(Le(Yt),xt(Yt)):st()},100)}}),dt=En.onMouseDown(Qt=>{var _t,Yt,Pn;if(Qt.target.detail&&((Pn=(Yt=(_t=Qt.target)==null?void 0:_t.element)==null?void 0:Yt.className)!=null&&Pn.includes("line-numbers"))){let Fn=Qt.target.position.lineNumber;if($n(An.getLineContent(Fn),Fn))return;ct(Fn)?Le(Fn):xt(Fn)}}),Pt=Qt=>{let _t={range:new rt.Range(Qt,1,Qt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};ft.current=En.deltaDecorations(ft.current,[_t])},yn=()=>{ft.current=En.deltaDecorations(ft.current,[])},Cn=En.onMouseMove(Qt=>{var _t,Yt,Pn;if(yn(),Qt.target.detail&&((Pn=(Yt=(_t=Qt.target)==null?void 0:_t.element)==null?void 0:Yt.className)!=null&&Pn.includes("line-numbers"))){let Fn=Qt.target.position.lineNumber;if($n(An.getLineContent(Fn),Fn))return;Pt(Fn)}}),Mn=En.onMouseLeave(()=>{yn()});return()=>{$e.dispose(),dt.dispose(),Cn.dispose(),Mn.dispose()}}},[ze.current,cn,Mt,Zt,Dt,te]),(0,E.useEffect)(()=>{var tn;(tn=ze.current)!=null&&tn.instance&&Dt&&ze.current.instance.setPosition({lineNumber:0,column:0})},[Zt]);function hn(){let tn=ze.current.instance;if(tn){const En=tn.getSelection(),An=ze.current.pastePos||{},yr=new rt.Range(An.startLineNumber||En.endLineNumber,An.startColumn||En.endColumn,An.endLineNumber||En.endLineNumber,An.endColumn||En.endColumn);setTimeout(()=>{tn.executeEdits("",[{range:yr,text:""}])},300)}}function In(tn){(window.navigator.platform.match("Mac")?tn.metaKey:tn.ctrlKey)&&tn.keyCode==83&&(tn.preventDefault(),ke())}const xn=()=>{if(Ie&&ze.current.instance){const tn=ze.current.instance.getContentHeight();Ir(tn<ae?ae:tn)}else Ir(ae)};function Wn(tn){var En=document.createEvent("MouseEvents");En.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),tn.dispatchEvent(En)}const lr=tn=>{if(!kn.current)return;const{keyCode:En,ctrlKey:An,metaKey:yr,target:st,type:xt}=tn;return(xt==="paste"||(En===67||En===86)&&(yr||An))&&st.nodeName==="TEXTAREA"&&(on(),tn.preventDefault()),!1};function qn(tn,En){var An=window.URL||window.webkitURL||window,yr=new Blob([En]),st=document.createElementNS("http://www.w3.org/1999/xhtml","a");st.href=An.createObjectURL(yr),st.download=tn,Wn(st)}(0,E.useEffect)(()=>{xn()},[xn]),(0,E.useEffect)(()=>{mn.current&&!cn&&Promise.all([ee.e(8909),ee.e(5977)]).then(ee.bind(ee,71448)).then(tn=>{try{rt=tn,ze.current.instance=rt.editor.create(mn.current,{value:ne,language:ot(te),theme:le,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:sn||!1}},re);const En=ze.current.instance;let st=[...Te.BH._menuItems].find($e=>$e[0]._debugName=="EditorContext")[1],xt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Le=($e,dt)=>{var Pt,yn;let Cn=$e._first;do dt.includes((yn=(Pt=Cn.element)==null?void 0:Pt.command)==null?void 0:yn.id)&&$e._remove(Cn);while(Cn=Cn.next)};if(xe(En,rt),setTimeout(()=>{xn(),ze.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{qn(Vt||"educoder.txt",En.getValue())}})},500),ze.current.subscription=En.onDidChangeModelContent($e=>{Et.current?clearTimeout(Nt.current):(xn(),it(En.getValue(),$e)),Nt.current=setTimeout(()=>{Et.current=!1},500)}),window.Monaco||at(rt,ot(te)),Fe&&(Le(st,xt),mn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",lr),window.removeEventListener("paste",lr),window.addEventListener("keydown",lr),window.addEventListener("paste",lr)),window.Monaco=rt,ge&&En.onDidBlurEditorWidget(()=>{ge(En.getValue())}),Oe&&En.onDidFocusEditorText(()=>{Fe&&an(),Oe(En.getValue())}),Fe){an();try{En.onDidPaste($e=>{const dt=En.getSelection(),Pt=ze.current.pastePos||{},yn=new rt.Range(Pt.startLineNumber||dt.endLineNumber,Pt.startColumn||dt.endColumn,Pt.endLineNumber||dt.endLineNumber,Pt.endColumn||dt.endColumn);En.executeEdits("",[{range:$e.range,text:""}])})}catch($e){}}let ct=en();return Ut&&typeof Ut=="string"&&new je(Ut,En,rt),bn(!0),()=>{const $e=ze.current.instance;$e.dispose();const dt=$e.getModel();dt&&dt.dispose(),ze.current.subscription&&ze.current.subscription.dispose(),ct.unobserve(mn.current)}}catch(En){}})},[]),(0,E.useEffect)(()=>{if(ze.current.instance&&cn)return document.addEventListener("keydown",In,!1),()=>{document.removeEventListener("keydown",In)}},[ke,cn]),(0,E.useEffect)(()=>{let tn=ze.current.instance;if(tn&&cn){let En=ot(te);rt.editor.setModelLanguage(tn.getModel(),En)}},[te,cn]),(0,E.useEffect)(()=>{ze.current.instance&&cn&&rt.editor.setTheme(le)},[le,cn]),(0,E.useEffect)(()=>{let tn=ze.current.instance;bt.current=ue,tn&&cn&&(tn.updateOptions(nt({},ue)),setTimeout(()=>{tn.getModel().updateOptions(nt({},ue))},200))},[JSON.stringify(ue),cn]),(0,E.useEffect)(()=>{let tn=ze.current.instance;tn&&cn&&tn.layout()},[wt,ae,cn]);const[Gn,cr]=(0,E.useState)(vt(wt)),[gr,Ir]=(0,E.useState)(vt(ae)),pr=zt(nt({},oe),{width:Gn,height:gr,position:"relative"});return E.createElement("div",{className:"my-monaco-editor",ref:mn,style:pr,onFocus:()=>{Fe&&an()}},lt&&E.createElement(Xe.CopyToClipboard,{text:ne,onCopy:()=>Qe.ZP.success("\u590D\u5236\u6210\u529F")},E.createElement(Ve.Z,{title:"\u590D\u5236\u4EE3\u7801"},E.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},E.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Rt({width:_e="100%",height:Gt="100%",original:wt,modified:ae,language:ne,options:te={}}){const oe=(0,E.useRef)(),[ue,re]=(0,E.useState)(null);function le(Ie){let Fe;return oe.current&&(Fe=new Ae.Z(Ke=>{for(let it of Ke)(it.target.offsetHeight>0||it.target.offsetWidth>0)&&Ie.layout()}),Fe.observe(oe.current)),Fe}(0,E.useEffect)(()=>(oe.current&&Promise.all([ee.e(8909),ee.e(9404)]).then(ee.bind(ee,2550)).then(Ie=>{rt=Ie;const Fe=rt.editor.createDiffEditor(oe.current,zt(nt({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},te),{wordWrap:!0}));re(Fe);let Ke=le(Fe);return()=>{Fe.dispose();const it=Fe.getModel();it&&it.dispose(),Ke.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,E.useEffect)(()=>{ue&&ue.setModel({original:rt.editor.createModel(wt,ne),modified:rt.editor.createModel(ae,ne)})},[wt,ae,ne,ue]);const ge=vt(_e),lt=vt(Gt),ke={width:ge,height:lt};return E.createElement("div",{className:"my-diff-editor",ref:oe,style:ke})}},79006:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ae}});var E=ee(59301);function Ae(pe,Ge){const Ee=(0,E.useRef)();(0,E.useEffect)(()=>{Ee.current=pe}),(0,E.useEffect)(()=>{function be(){Ee.current()}if(Ge!==null){let Se=setInterval(be,Ge);return()=>clearInterval(Se)}},[Ge])}},29633:function(fn,Ht,ee){"use strict";ee.r(Ht),ee.d(Ht,{default:function(){return $t}});var E=ee(59301),Ae=ee(44283),pe=ee(91882),Ge=ee(31691),Ee=ee(27812),be=ee(76406),Se=ee(39116),Ze=ee(14185),Ne=ee(35883),ce=ee(62957),We=ee(6767),De=Object.defineProperty,It=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,He=(ft,Et,Nt)=>Et in ft?De(ft,Et,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):ft[Et]=Nt,Be=(ft,Et)=>{for(var Nt in Et||(Et={}))at.call(Et,Nt)&&He(ft,Nt,Et[Nt]);if(It)for(var Nt of It(Et))qe.call(Et,Nt)&&He(ft,Nt,Et[Nt]);return ft},ut=(ft,Et,Nt)=>new Promise((vn,kn)=>{var cn=on=>{try{en(Nt.next(on))}catch(gn){kn(gn)}},bn=on=>{try{en(Nt.throw(on))}catch(gn){kn(gn)}},en=on=>on.done?vn(on.value):Promise.resolve(on.value).then(cn,bn);en((Nt=Nt.apply(ft,Et)).next())});const St=({shixunHomeworks:ft,dispatch:Et})=>{const Nt=(0,Ae.useParams)();return E.createElement(ce.default,{centered:!0,title:"\u63D0\u793A",open:ft.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>ut(void 0,null,function*(){(yield Et({type:"shixunHomeworks/deleteReply",payload:{object_id:ft.actionTabs.selectArr.id,object_type:"journals_for_message"}})).status===0&&(We.ZP.success("\u5220\u9664\u6210\u529F"),Et({type:"shixunHomeworks/setActionTabs",payload:{}}),Et({type:"shixunHomeworks/getReplyList",payload:Be({},ft.actionTabs.params)}))}),onCancel:()=>{Et({type:"shixunHomeworks/setActionTabs",payload:{}})}},E.createElement("p",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"))};var Bt=(0,Ae.connect)(({shixunHomeworks:ft})=>({shixunHomeworks:ft}))(St),je=ee(66649),Te=ee.n(je),Qe=ee(77019),Ve=ee(5269),Tt=ee(37568),ht=ee(7939),Xe=ee(25399),et=ee(31709),Me=ee(26227),pt=ee(63524),Ye={flex_box_center:"flex_box_center___XZOIk",flex_space_between:"flex_space_between___Yg4Dl",flex_box_vertical_center:"flex_box_vertical_center___uGbSz",flex_box_center_end:"flex_box_center_end___y3xze",flex_box_column:"flex_box_column___uiCa0",listItem:"listItem___ZZCkK",description:"description___WfCjN",liked:"liked___mHx4H",likedActive:"likedActive___zTpzg",reply:"reply___H7MjG",replyList:"replyList___Aweik",comment:"comment___ej0Vc"},ye=Object.defineProperty,jt=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,zt=(ft,Et,Nt)=>Et in ft?ye(ft,Et,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):ft[Et]=Nt,Ce=(ft,Et)=>{for(var Nt in Et||(Et={}))Ue.call(Et,Nt)&&zt(ft,Nt,Et[Nt]);if(jt)for(var Nt of jt(Et))nt.call(Et,Nt)&&zt(ft,Nt,Et[Nt]);return ft},de=(ft,Et,Nt)=>new Promise((vn,kn)=>{var cn=on=>{try{en(Nt.next(on))}catch(gn){kn(gn)}},bn=on=>{try{en(Nt.throw(on))}catch(gn){kn(gn)}},en=on=>on.done?vn(on.value):Promise.resolve(on.value).then(cn,bn);en((Nt=Nt.apply(ft,Et)).next())});Te().locale("ZH-cn");const vt=({graduation:ft,classroomList:Et,globalSetting:Nt,loading:vn,dispatch:kn})=>{var cn;const[bn,en]=(0,E.useState)(Ce({},(0,Ae.useParams)())),[on,gn]=(0,E.useState)(!1),[$n,hn]=(0,E.useState)(-1),[In,xn]=(0,E.useState)(""),{detailLeftMenus:Wn}=Et,{graduationDetail:lr,replyList:qn,detail:Gn,tasksDetail:cr}=ft,gr={1:"\u8BBE\u8BA1",2:"\u8BBA\u6587",3:"\u521B\u4F5C"},Ir={1:"\u751F\u4EA7/\u793E\u4F1A\u5B9E\u9645",2:"\u7ED3\u5408\u79D1\u7814",3:"\u5176\u5B83"},pr={1:"\u771F\u9898",2:"\u6A21\u62DF\u9898"},tn={1:"\u7EB5\u5411\u8BFE\u9898",2:"\u6A2A\u5411\u8BFE\u9898",3:"\u81EA\u9009"},En={1:"\u65B0\u9898",2:"\u5F80\u5C4A\u9898\uFF0C\u6709\u65B0\u8981\u6C42",3:"\u5F80\u5C4A\u9898\uFF0C\u65E0\u65B0\u8981\u6C42"};return bn.page_size=10,(0,E.useEffect)(()=>{kn({type:"graduation/getReplyList",payload:Ce({},bn)}),kn({type:"graduation/getTopisDetail",payload:Ce({},bn)})},[bn.categoryId]),E.createElement("section",{className:Ye.bg},E.createElement("section",{className:" edu-container"},E.createElement("aside",{className:[Ye.desc,"c-black","font14","bg-white"].join(" ")},E.createElement("h1",{className:Ye.description},Gn.description),E.createElement("div",{className:"mt30"},E.createElement("ul",{className:Ye.listItem},E.createElement("li",null,E.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u7C7B\u578B\uFF1A"),E.createElement("span",null,gr[Gn==null?void 0:Gn.topic_type]||"--")),E.createElement("li",null,E.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u6765\u6E90\uFF1A"),E.createElement("span",null,Ir[Gn==null?void 0:Gn.topic_source]||"--")),E.createElement("li",null,E.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u6027\u8D281\uFF1A"),E.createElement("span",null,pr[Gn==null?void 0:Gn.topic_property_first]||"--")),E.createElement("li",null,E.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u6027\u8D282\uFF1A"),E.createElement("span",null,tn[Gn==null?void 0:Gn.topic_property_second]||"--")),E.createElement("li",null,E.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u91CD\u590D\u60C5\u51B5\uFF1A"),E.createElement("span",null,En[Gn==null?void 0:Gn.topic_repeat]||"--")),E.createElement("li",null,E.createElement("span",{className:"c-light-black"},"\u8C03\u7814\u6216\u5B9E\u4E60\u5730\u70B9\uFF1A"),E.createElement("span",null,Gn.city||"--")),E.createElement("li",{className:"fl with50"},E.createElement("span",{className:"c-light-black"},"\u8BFE\u9898\u6765\u6E90\u5355\u4F4D\uFF1A"),E.createElement("span",null,Gn.source_unit||"--")))),E.createElement("div",{className:"pl30"},(cn=cr==null?void 0:cr.attachments)==null?void 0:cn.map((An,yr)=>E.createElement("div",null,E.createElement("a",{href:`${Ze.Z.API_SERVER}${An.url}`},E.createElement("span",{className:"iconfont icon-fujian c-green font14"}),E.createElement("span",{className:"ml10 c-black"},An.title),E.createElement("span",{className:"c-light-black ml20 font12"},An.filesize)))))),E.createElement("aside",{className:[Ye.reply,"bg-white","mt20"].join(" ")},on&&E.createElement(Se.Z,{onChange:An=>{xn(An)},height:200,isFocus:!0,watch:!0}),E.createElement(Qe.Z,{onClick:()=>{gn(!0)}},E.createElement(Ve.Z,{flex:"1"},!on&&E.createElement(Tt.default,{size:"middle",className:"current",placeholder:"\u8BF4\u70B9\u4EC0\u4E48",disabled:!0})),E.createElement(Ve.Z,null,E.createElement(ht.ZP,{type:"primary",size:"middle",onClick:()=>de(void 0,null,function*(){In===""?We.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):(yield kn({type:"graduation/createReply",payload:{journals_for_message:{jour_id:bn.categoryId,jour_type:"HomeworkCommon",reply_id:1,notes:In}}})).status===0&&(We.ZP.success("\u53D1\u5E03\u6210\u529F"),kn({type:"graduation/getReplyList",payload:Ce({},bn)}),gn(!1))})},"\u53D1\u8868")))),(qn==null?void 0:qn.comments)&&qn.comments!=""&&E.createElement("aside",{className:[Ye.replyList,"bg-white"].join(" ")},qn==null?void 0:qn.comments.map(function(An,yr){var st,xt;return E.createElement(Qe.Z,{gutter:[12,12],key:yr},E.createElement(Ve.Z,{flex:"40px"},E.createElement("img",{width:"40",src:`${Ze.Z.IMG_SERVER}/images/${(st=An==null?void 0:An.author)==null?void 0:st.image_url}`})),E.createElement(Ve.Z,{flex:"1"},E.createElement(Qe.Z,{align:"middle"},E.createElement(Ve.Z,{span:24},E.createElement("span",{className:"c-light-black"},(xt=An==null?void 0:An.author)==null?void 0:xt.name),E.createElement("span",{className:"c-light-black ml10"},Te()(An==null?void 0:An.created_on).fromNow()," \u53D1\u5E03")),E.createElement(Ve.Z,{span:24},E.createElement(Ne.Z,{value:An.content})),An.children&&E.createElement("aside",{className:Ye.comment},An.children.map(function(Le,ct){return E.createElement(Qe.Z,{key:ct},E.createElement(Ve.Z,{span:24},E.createElement(Qe.Z,null,E.createElement(Ve.Z,{flex:"1"},Le.author.name,E.createElement("span",{className:"c-light-black ml10"},Te()(Le==null?void 0:Le.created_on).fromNow())),E.createElement(Ve.Z,null,E.createElement(Xe.Z,{title:"\u5220\u9664"},E.createElement(Me.Z,{className:"current",onClick:()=>{kn({type:"graduation/setActionTabs",payload:{key:"\u5220\u9664",params:bn,selectArr:An}})}}))))),E.createElement(Ve.Z,null,E.createElement("strong",null,E.createElement(Ne.Z,{value:Le.content}))))})),E.createElement(Ve.Z,{span:24,className:"mt5 c-light-black"},$n===yr&&E.createElement("aside",null,E.createElement(Se.Z,{onChange:Le=>{xn(Le)},height:150,isFocus:!0}),E.createElement(Qe.Z,null,E.createElement(Ve.Z,{span:24,className:"tr"},E.createElement(ht.ZP,{type:"primary",size:"middle",onClick:()=>de(this,null,function*(){In===""?We.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):(yield kn({type:"graduation/createReply",payload:{journals_for_message:{jour_id:bn.categoryId,jour_type:"HomeworkCommon",m_parent_id:An.id,reply_id:1,notes:In}}}),kn({type:"graduation/getReplyList",payload:Ce({},bn)}),We.ZP.success("\u53D1\u5E03\u6210\u529F"),hn(-1))})},"\u53D1\u8868")))),$n!==yr&&E.createElement("div",{className:"tr"},E.createElement("span",{className:"iconfont icon-huifu1 mr5 ml30",onClick:()=>hn(yr)}),An.liked&&E.createElement("span",{className:"c-orange"},E.createElement(pt.Z,{className:"mr5 ml30",onClick:()=>de(this,null,function*(){yield kn({type:"graduation/replyUnLike",payload:{object_id:An.id,object_type:"message"}}),kn({type:"graduation/getReplyList",payload:Ce({},bn)})})}),An.praises_count),!An.liked&&E.createElement("span",null,E.createElement(pt.Z,{className:"mr5 ml30",onClick:()=>de(this,null,function*(){yield kn({type:"graduation/replyLike",payload:{object_id:An.id,object_type:"message"}}),kn({type:"graduation/getReplyList",payload:Ce({},bn)})})}),An.praises_count))))))}))),E.createElement("aside",{className:"tc mt30 pb30"},E.createElement(et.Z,{defaultCurrent:1,total:qn==null?void 0:qn.total_count,hideOnSinglePage:!0,current:bn.page||1,onChange:An=>{bn.page=An,kn({type:"graduation/getReplyList",payload:Ce({},bn)})}})),E.createElement(Bt,null))};var Kt=(0,Ae.connect)(({graduation:ft,classroomList:Et,loading:Nt,globalSetting:vn})=>({graduation:ft,globalSetting:vn,classroomList:Et,loading:Nt.effects}))(vt),Lt=ee(28284),Pe=ee(70858),ot=Object.defineProperty,rt=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,Rt=(ft,Et,Nt)=>Et in ft?ot(ft,Et,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):ft[Et]=Nt,_e=(ft,Et)=>{for(var Nt in Et||(Et={}))an.call(Et,Nt)&&Rt(ft,Nt,Et[Nt]);if(rt)for(var Nt of rt(Et))tt.call(Et,Nt)&&Rt(ft,Nt,Et[Nt]);return ft},Gt=(ft,Et)=>{var Nt={};for(var vn in ft)an.call(ft,vn)&&Et.indexOf(vn)<0&&(Nt[vn]=ft[vn]);if(ft!=null&&rt)for(var vn of rt(ft))Et.indexOf(vn)<0&&tt.call(ft,vn)&&(Nt[vn]=ft[vn]);return Nt},wt=(ft,Et,Nt)=>new Promise((vn,kn)=>{var cn=on=>{try{en(Nt.next(on))}catch(gn){kn(gn)}},bn=on=>{try{en(Nt.throw(on))}catch(gn){kn(gn)}},en=on=>on.done?vn(on.value):Promise.resolve(on.value).then(cn,bn);en((Nt=Nt.apply(ft,Et)).next())});const ae=ft=>{var Et=ft,{graduation:Nt,dispatch:vn}=Et,kn=Gt(Et,["graduation","dispatch"]);const cn=(0,Ae.useParams)();return E.createElement(ce.default,{centered:!0,title:"\u63D0\u793A",open:Nt.actionTabs.key==="\u62D2\u7EDD",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>wt(void 0,null,function*(){(yield vn({type:"graduation/refuseTopic",payload:_e({student_graduation_topic:Nt.actionTabs.selectArrs.id},cn)})).status===0&&(We.ZP.success("\u62D2\u7EDD\u6210\u529F"),vn({type:"graduation/setActionTabs",payload:{}}),vn({type:"graduation/getTopisDetailList",payload:_e({},Nt.actionTabs.params)}))}),onCancel:()=>{vn({type:"graduation/setActionTabs",payload:{}})}},E.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u62D2\u7EDD\u5B66\u751F\u9009\u9898?"))};var ne=(0,Ae.connect)(({graduation:ft})=>({graduation:ft}))(ae),te=ee(82326),oe=Object.defineProperty,ue=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ge=(ft,Et,Nt)=>Et in ft?oe(ft,Et,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):ft[Et]=Nt,lt=(ft,Et)=>{for(var Nt in Et||(Et={}))re.call(Et,Nt)&&ge(ft,Nt,Et[Nt]);if(ue)for(var Nt of ue(Et))le.call(Et,Nt)&&ge(ft,Nt,Et[Nt]);return ft},ke=(ft,Et)=>{var Nt={};for(var vn in ft)re.call(ft,vn)&&Et.indexOf(vn)<0&&(Nt[vn]=ft[vn]);if(ft!=null&&ue)for(var vn of ue(ft))Et.indexOf(vn)<0&&le.call(ft,vn)&&(Nt[vn]=ft[vn]);return Nt},Ie=(ft,Et,Nt)=>new Promise((vn,kn)=>{var cn=on=>{try{en(Nt.next(on))}catch(gn){kn(gn)}},bn=on=>{try{en(Nt.throw(on))}catch(gn){kn(gn)}},en=on=>on.done?vn(on.value):Promise.resolve(on.value).then(cn,bn);en((Nt=Nt.apply(ft,Et)).next())});const Fe=ft=>{var Et=ft,{graduation:Nt,dispatch:vn}=Et,kn=ke(Et,["graduation","dispatch"]),cn;const bn=(0,Ae.useParams)(),{detailList:en}=Nt,[on]=Lt.default.useForm();return E.createElement(ce.default,{centered:!0,title:"\u540C\u610F\u9009\u9898",open:Nt.actionTabs.key==="\u540C\u610F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Ie(void 0,null,function*(){var gn;yield on.validateFields();const $n=on.getFieldsValue();(yield vn({type:"graduation/agreeTopic",payload:lt({group_id:$n.group_id,course_group_name:(gn=en==null?void 0:en.group_list)==null?void 0:gn.filter(In=>In.group_id==$n.group_id)[0].group_name,student_graduation_topic:Nt.actionTabs.selectArrs.id},bn)})).status===0&&(We.ZP.success("\u540C\u610F\u6210\u529F"),vn({type:"graduation/setActionTabs",payload:{}}),vn({type:"graduation/getTopisDetailList",payload:lt({},Nt.actionTabs.params)}))}),onCancel:()=>{vn({type:"graduation/setActionTabs",payload:{}})}},E.createElement("p",null,"\u786E\u8BA4\u540C\u610F\u5B66\u751F\u7684\u9009\u9898\uFF0C\u5C06\u5B66\u751F\u52A0\u5165\u6211\u7684\u5206\u73ED"),E.createElement(Lt.default,{form:on},E.createElement(Lt.default.Item,{name:"group_id",label:"\u9009\u62E9\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5206\u73ED"}]},E.createElement(te.default,{placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED",size:"middle"},(cn=en==null?void 0:en.group_list)==null?void 0:cn.map(function(gn,$n){return E.createElement(te.default.Option,{value:gn.group_id},gn.group_name)})))))};var Ke=(0,Ae.connect)(({graduation:ft})=>({graduation:ft}))(Fe),it=Object.defineProperty,xe=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Mt=(ft,Et,Nt)=>Et in ft?it(ft,Et,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):ft[Et]=Nt,Vt=(ft,Et)=>{for(var Nt in Et||(Et={}))Oe.call(Et,Nt)&&Mt(ft,Nt,Et[Nt]);if(xe)for(var Nt of xe(Et))Ot.call(Et,Nt)&&Mt(ft,Nt,Et[Nt]);return ft};const Ft=({graduation:ft,loading:Et,dispatch:Nt})=>{const[vn,kn]=(0,E.useState)(Vt({},(0,Ae.useParams)())),cn=(0,Ae.useLocation)(),{detailList:bn}=ft,[en,on]=(0,E.useState)({}),[gn]=Lt.default.useForm(),$n=(In,xn)=>{vn.page=In,vn.limit=20,Nt({type:"graduation/getTopisDetailList",payload:Vt({},vn)})},hn=[{title:"\u5E8F\u53F7",dataIndex:"name",width:200,align:"center",render:(In,xn,Wn)=>Wn+1},{title:"\u59D3\u540D",dataIndex:"student_name"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u5206\u73ED",dataIndex:"class_group_name"},{title:"\u9009\u9898\u65F6\u95F4",dataIndex:"selected_time"},{title:"\u786E\u8BA4\u7ED3\u679C",dataIndex:"result",render:In=>In==="\u5DF2\u62D2\u7EDD"?E.createElement("span",{className:"c-orange"},"\u5DF2\u62D2\u7EDD"):In},{title:"\u64CD\u4F5C",dataInex:"action",render:(In,xn)=>E.createElement("div",null,(xn.result==="\u5F85\u786E\u8BA4"||xn.result==="\u5DF2\u540C\u610F")&&E.createElement("span",{className:"current",onClick:()=>{Nt({type:"graduation/setActionTabs",payload:{key:"\u62D2\u7EDD",selectArrs:xn,params:vn}})}},"\u62D2\u7EDD"),xn.result==="\u5F85\u786E\u8BA4"&&E.createElement("span",{className:"current ml20 c-blue",onClick:()=>{Nt({type:"graduation/setActionTabs",payload:{key:"\u540C\u610F",selectArrs:xn,params:vn}})}},"\u540C\u610F"))}];return E.createElement(E.Fragment,null,E.createElement("section",{className:"minH500 bg-white "},E.createElement(Pe.default,{loading:Et["graduation/getTopisDetailList"],pagination:!1,dataSource:bn.users_list,columns:hn}),E.createElement(ne,null),E.createElement(Ke,null)),E.createElement("aside",{className:"tc mb50 mt30"},E.createElement(et.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:$n,defaultCurrent:vn.page||1,current:vn.page||1,defaultPageSize:15,total:ft.users_count})))};var mt=(0,Ae.connect)(({graduation:ft,loading:Et})=>({graduation:ft,loading:Et.effects}))(Ft),Zt={flex_box_center:"flex_box_center___ZPOJ5",flex_space_between:"flex_space_between___GmCrk",flex_box_vertical_center:"flex_box_vertical_center___XpcAN",flex_box_center_end:"flex_box_center_end___krRXE",flex_box_column:"flex_box_column___DLzSN",title:"title___KDcLT",menuTabs:"menuTabs___nxQqE",rightMenu:"rightMenu___MVID9",shixunDetail:"shixunDetail___NvT9l"},Dt=Object.defineProperty,Ut=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,mn=(ft,Et,Nt)=>Et in ft?Dt(ft,Et,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):ft[Et]=Nt,ze=(ft,Et)=>{for(var Nt in Et||(Et={}))sn.call(Et,Nt)&&mn(ft,Nt,Et[Nt]);if(Ut)for(var Nt of Ut(Et))pn.call(Et,Nt)&&mn(ft,Nt,Et[Nt]);return ft};const bt=({graduation:ft,globalSetting:Et,loading:Nt,dispatch:vn})=>{const kn=(0,Ae.useParams)(),[cn]=(0,Ae.useSearchParams)(),bn=(0,Ae.useLocation)(),[en,on]=(0,E.useState)([]),[gn,$n]=(0,E.useState)(cn.get("tabs")||0),{detailTaskList:hn,tasksDetail:In}=ft;let xn;kn.category=cn.get("category_id"),(0,E.useEffect)(()=>{vn({type:"graduation/getTasksDetail",payload:ze({},kn)}),vn({type:"graduation/getTasksListDetail",payload:ze({},kn)})},[kn.coursesId]);const Wn=[{name:"\u4EFB\u52A1\u5217\u8868",id:0,compontent:E.createElement(mt,null)},{name:"\u4EFB\u52A1\u63CF\u8FF0",id:1,compontent:E.createElement(Kt,null)}];return E.createElement("section",null,E.createElement("div",{className:"edu-container"},hn.course_name&&E.createElement("section",{className:"animated fadeIn"},E.createElement("aside",{className:"mt10"},E.createElement(pe.Z,{separator:">"},E.createElement(pe.Z.Item,null,E.createElement(Ae.Link,{to:`/classrooms/${hn.course_id}/shixun_homework`},hn.course_name)),E.createElement(pe.Z.Item,null,E.createElement(Ae.Link,{to:`/classrooms/${hn.course_id}/graduation_tasks`},"\u6BD5\u8BBE\u4EFB\u52A1")),E.createElement(pe.Z.Item,null,"\u4EFB\u52A1\u8BE6\u60C5"))),E.createElement("aside",{className:[Zt.title,"mt20"].join(" ")},E.createElement(Ae.Link,{to:`/classrooms/${hn.course_id}/graduation_tasks`},E.createElement(Ee.Z,{className:"font16 c-black"})),E.createElement("strong",{className:"font20 ml5"},hn.task_name),E.createElement(be.VV,{status:[hn.status_name]}))),E.createElement("aside",{className:"mt30 relative"},E.createElement("aside",{className:Zt.rightMenu},E.createElement(Ae.Link,{className:Zt.shixunDetail,to:`/classrooms/${kn.coursesId}/graduation_tasks/${kn.categoryId}/edit`},E.createElement("span",{className:"iconfont icon-shixunxiangqing"}),"\u7F16\u8F91\u4EFB\u52A1")),E.createElement(Ge.default,{defaultActiveKey:gn,className:Zt.menuTabs},Wn.map((lr,qn)=>E.createElement(Ge.default.TabPane,{tab:lr.name,key:lr.id},lr.compontent))))))};var $t=(0,Ae.connect)(({graduation:ft,loading:Et,globalSetting:Nt})=>({graduation:ft,globalSetting:Nt,loading:Et.effects}))(bt)},20047:function(fn,Ht,ee){"use strict";ee.d(Ht,{AL:function(){return je},Iy:function(){return We},Qv:function(){return at},ez:function(){return Bt},jb:function(){return De}});var E=ee(32834),Ae=ee.n(E),pe=ee(11690),Ge=ee.n(pe);let Ee=1;function be(ht,Xe){const et=ht.match(/^(\s+)(?:```)/);if(et===null)return Xe;const Me=et[1];return Xe.split(`
|
|
|
`).map(pt=>{const Ye=pt.match(/^\s+/);if(Ye===null)return pt;const[ye]=Ye;return ye.length>=Me.length?pt.slice(Me.length):pt}).join(`
|
|
|
`)}let Se=[],Ze=["<ul>"];const Ne=new(Ae()).Renderer,ce=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function We(){Se.length=0,Ze=["<ul>"]}const De={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function It(ht,Xe,et,Me){if(Xe>=ht.length||ht[Xe].level<=et)return Xe;var pt=ht[Xe];Me.push("<li><a href='#"+Ee+pt.anchor+"'>"+pt.text+"</a>"),Xe++;var Ye=[];return Xe=It(ht,Xe,pt.level,Ye),Ye.length>0&&(Me.push("<ul>"),Ye.forEach(function(ye){Me.push(ye)}),Me.push("</ul>")),Me.push("</li>"),Xe=It(ht,Xe,et,Me),Xe}function at(){return It(Se,0,0,Ze),Ze.push("</ul>"),Ze.join("")}const qe={heading(ht){const Xe=ce.exec(ht);if(Ee+=1,Xe)return{type:"heading",raw:Xe[0],depth:Xe[1].length,text:Xe[2]}},fences(ht){const Xe=this.rules.block.fences.exec(ht);if(Xe){const et=Xe[0];let Me=be(et,Xe[3]||"");const pt=Xe[2]?Xe[2].trim():Xe[2];if(["latex","katex","math"].indexOf(pt)>=0){const Ye=ut(),ye=Me;Me=Ye,St[Ye]={type:"block",expression:ye}}return{type:"code",raw:et,lang:pt,text:Me}}}},He=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Be=0;const ut=()=>`__special_katext_id_${Be++}__`;let St={};function Bt(){return St}function je(){Be=0,St={}}function Te(ht){return ht=ht.replace(He,(Xe,et)=>{const Me=ut();return St[Me]={type:"inline",expression:et},Me}),ht}const Qe=Ne.listitem;Ne.listitem=function(ht){return Qe(Te(ht))};const Ve=Ne.paragraph;Ne.paragraph=function(ht){return Ve(Te(ht))};const Tt=Ne.tablecell;Ne.tablecell=function(ht,Xe){return Tt(Te(ht),Xe)},Ne.code=function(ht,Xe,et){const Me=(Xe||"").match(/\S*/)[0];return Me?["latex","katex","math"].indexOf(Me)>=0?`<p class='editormd-tex'>${ht}</p>`:`<pre class="prettyprint linenums"><code class="language-${Xe}">${et?ht:(0,pe.escape)(ht,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(et?ht:(0,pe.escape)(ht,!0))+"</code></pre>"},Ne.heading=function(ht,Xe,et){let Me=this.options.headerPrefix+et.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Se.push({anchor:Me,level:Xe,text:ht}),"<h"+Xe+' id="'+Ee+Me+'">'+ht+"</h"+Xe+">"},Ae().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ae().use({tokenizer:qe,renderer:Ne}),Ht.ZP=Ae()},9981:function(fn,Ht){"use strict";const ee=function(){const E=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Ae=1;Ae<arguments.length;Ae++){const pe=Ae<0||arguments.length<=Ae?void 0:arguments[Ae];pe&&Object.keys(pe).forEach(Ge=>{const Ee=pe[Ge];Ee!==void 0&&(E[Ge]=Ee)})}return E};Ht.Z=ee},86013:function(fn,Ht,ee){"use strict";var E=ee(59301),Ae=ee(19248);const pe=Ge=>{let Ee;return typeof Ge=="object"&&(Ge!=null&&Ge.clearIcon)?Ee=Ge:Ge&&(Ee={clearIcon:E.createElement(Ae.Z,null)}),Ee};Ht.Z=pe},97224:function(fn,Ht,ee){"use strict";ee.d(Ht,{F:function(){return E}});function E(pe){return pe!=null&&pe===pe.window}const Ae=pe=>{var Ge,Ee;if(typeof window=="undefined")return 0;let be=0;return E(pe)?be=pe.pageYOffset:pe instanceof Document?be=pe.documentElement.scrollTop:(pe instanceof HTMLElement||pe)&&(be=pe.scrollTop),pe&&!E(pe)&&typeof be!="number"&&(be=(Ee=((Ge=pe.ownerDocument)!==null&&Ge!==void 0?Ge:pe).documentElement)===null||Ee===void 0?void 0:Ee.scrollTop),be};Ht.Z=Ae},83010:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ge}});var E=ee(16089);function Ae(Ee,be,Se,Ze){const Ne=Se-be;return Ee/=Ze/2,Ee<1?Ne/2*Ee*Ee*Ee+be:Ne/2*((Ee-=2)*Ee*Ee+2)+be}var pe=ee(97224);function Ge(Ee){let be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Se=()=>window,callback:Ze,duration:Ne=450}=be,ce=Se(),We=(0,pe.Z)(ce),De=Date.now(),It=()=>{const qe=Date.now()-De,He=Ae(qe>Ne?Ne:qe,We,Ee,Ne);(0,pe.F)(ce)?ce.scrollTo(window.pageXOffset,He):ce instanceof Document||ce.constructor.name==="HTMLDocument"?ce.documentElement.scrollTop=He:ce.scrollTop=He,qe<Ne?(0,E.Z)(It):typeof Ze=="function"&&Ze()};(0,E.Z)(It)}},91882:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ue}});var E=ee(59301),Ae=ee(92310),pe=ee.n(Ae),Ge=ee(11592),Ee=ee(26112),be=ee(22703),Se=ee(48755),Ze=ee(84105),Ne=ee(19563);const ce=nt=>{let{children:zt}=nt;const{getPrefixCls:Ce}=E.useContext(Se.E_),de=Ce("breadcrumb");return E.createElement("li",{className:`${de}-separator`,"aria-hidden":"true"},zt===""?zt:zt||"/")};ce.__ANT_BREADCRUMB_SEPARATOR=!0;var We=ce,De=function(nt,zt){var Ce={};for(var de in nt)Object.prototype.hasOwnProperty.call(nt,de)&&zt.indexOf(de)<0&&(Ce[de]=nt[de]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,de=Object.getOwnPropertySymbols(nt);vt<de.length;vt++)zt.indexOf(de[vt])<0&&Object.prototype.propertyIsEnumerable.call(nt,de[vt])&&(Ce[de[vt]]=nt[de[vt]]);return Ce};function It(nt,zt){if(nt.title===void 0||nt.title===null)return null;const Ce=Object.keys(zt).join("|");return typeof nt.title=="object"?nt.title:String(nt.title).replace(new RegExp(`:(${Ce})`,"g"),(de,vt)=>zt[vt]||de)}function at(nt,zt,Ce,de){if(Ce==null)return null;const{className:vt,onClick:Kt}=zt,Lt=De(zt,["className","onClick"]),Pe=Object.assign(Object.assign({},(0,Ee.Z)(Lt,{data:!0,aria:!0})),{onClick:Kt});return de!==void 0?E.createElement("a",Object.assign({},Pe,{className:pe()(`${nt}-link`,vt),href:de}),Ce):E.createElement("span",Object.assign({},Pe,{className:pe()(`${nt}-link`,vt)}),Ce)}function qe(nt,zt){return(de,vt,Kt,Lt,Pe)=>{if(zt)return zt(de,vt,Kt,Lt);const ot=It(de,vt);return at(nt,de,ot,Pe)}}var He=function(nt,zt){var Ce={};for(var de in nt)Object.prototype.hasOwnProperty.call(nt,de)&&zt.indexOf(de)<0&&(Ce[de]=nt[de]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,de=Object.getOwnPropertySymbols(nt);vt<de.length;vt++)zt.indexOf(de[vt])<0&&Object.prototype.propertyIsEnumerable.call(nt,de[vt])&&(Ce[de[vt]]=nt[de[vt]]);return Ce};const Be=nt=>{const{prefixCls:zt,separator:Ce="/",children:de,menu:vt,overlay:Kt,dropdownProps:Lt,href:Pe}=nt,rt=(an=>{if(vt||Kt){const tt=Object.assign({},Lt);if(vt){const Rt=vt||{},{items:_e}=Rt,Gt=He(Rt,["items"]);tt.menu=Object.assign(Object.assign({},Gt),{items:_e==null?void 0:_e.map((wt,ae)=>{var{key:ne,title:te,label:oe,path:ue}=wt,re=He(wt,["key","title","label","path"]);let le=oe!=null?oe:te;return ue&&(le=E.createElement("a",{href:`${Pe}${ue}`},le)),Object.assign(Object.assign({},re),{key:ne!=null?ne:ae,label:le})})})}else Kt&&(tt.overlay=Kt);return E.createElement(Ne.Z,Object.assign({placement:"bottom"},tt),E.createElement("span",{className:`${zt}-overlay-link`},an,E.createElement(Ze.Z,null)))}return an})(de);return rt!=null?E.createElement(E.Fragment,null,E.createElement("li",null,rt),Ce&&E.createElement(We,null,Ce)):null},ut=nt=>{const{prefixCls:zt,children:Ce,href:de}=nt,vt=He(nt,["prefixCls","children","href"]),{getPrefixCls:Kt}=E.useContext(Se.E_),Lt=Kt("breadcrumb",zt);return E.createElement(Be,Object.assign({},vt,{prefixCls:Lt}),at(Lt,vt,Ce,de))};ut.__ANT_BREADCRUMB_ITEM=!0;var St=ut,Bt=ee(36237),je=ee(63356),Te=ee(16931),Qe=ee(51636);const Ve=nt=>{const{componentCls:zt,iconCls:Ce,calc:de}=nt;return{[zt]:Object.assign(Object.assign({},(0,je.Wf)(nt)),{color:nt.itemColor,fontSize:nt.fontSize,[Ce]:{fontSize:nt.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:nt.linkColor,transition:`color ${nt.motionDurationMid}`,padding:`0 ${(0,Bt.unit)(nt.paddingXXS)}`,borderRadius:nt.borderRadiusSM,height:nt.fontHeight,display:"inline-block",marginInline:de(nt.marginXXS).mul(-1).equal(),"&:hover":{color:nt.linkHoverColor,backgroundColor:nt.colorBgTextHover}},(0,je.Qy)(nt)),"li:last-child":{color:nt.lastItemColor},[`${zt}-separator`]:{marginInline:nt.separatorMargin,color:nt.separatorColor},[`${zt}-link`]:{[`
|
|
|
> ${Ce} + span,
|
|
|
> ${Ce} + a
|
|
|
`]:{marginInlineStart:nt.marginXXS}},[`${zt}-overlay-link`]:{borderRadius:nt.borderRadiusSM,height:nt.fontHeight,display:"inline-block",padding:`0 ${(0,Bt.unit)(nt.paddingXXS)}`,marginInline:de(nt.marginXXS).mul(-1).equal(),[`> ${Ce}`]:{marginInlineStart:nt.marginXXS,fontSize:nt.fontSizeIcon},"&:hover":{color:nt.linkHoverColor,backgroundColor:nt.colorBgTextHover,a:{color:nt.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${nt.componentCls}-rtl`]:{direction:"rtl"}})}},Tt=nt=>({itemColor:nt.colorTextDescription,lastItemColor:nt.colorText,iconFontSize:nt.fontSize,linkColor:nt.colorTextDescription,linkHoverColor:nt.colorText,separatorColor:nt.colorTextDescription,separatorMargin:nt.marginXS});var ht=(0,Te.I$)("Breadcrumb",nt=>{const zt=(0,Qe.mergeToken)(nt,{});return Ve(zt)},Tt),Xe=function(nt,zt){var Ce={};for(var de in nt)Object.prototype.hasOwnProperty.call(nt,de)&&zt.indexOf(de)<0&&(Ce[de]=nt[de]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,de=Object.getOwnPropertySymbols(nt);vt<de.length;vt++)zt.indexOf(de[vt])<0&&Object.prototype.propertyIsEnumerable.call(nt,de[vt])&&(Ce[de[vt]]=nt[de[vt]]);return Ce};function et(nt){const{breadcrumbName:zt,children:Ce}=nt,de=Xe(nt,["breadcrumbName","children"]),vt=Object.assign({title:zt},de);return Ce&&(vt.menu={items:Ce.map(Kt=>{var{breadcrumbName:Lt}=Kt,Pe=Xe(Kt,["breadcrumbName"]);return Object.assign(Object.assign({},Pe),{title:Lt})})}),vt}function Me(nt,zt){return(0,E.useMemo)(()=>nt||(zt?zt.map(et):null),[nt,zt])}var pt=function(nt,zt){var Ce={};for(var de in nt)Object.prototype.hasOwnProperty.call(nt,de)&&zt.indexOf(de)<0&&(Ce[de]=nt[de]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,de=Object.getOwnPropertySymbols(nt);vt<de.length;vt++)zt.indexOf(de[vt])<0&&Object.prototype.propertyIsEnumerable.call(nt,de[vt])&&(Ce[de[vt]]=nt[de[vt]]);return Ce};const Ye=(nt,zt)=>{if(zt===void 0)return zt;let Ce=(zt||"").replace(/^\//,"");return Object.keys(nt).forEach(de=>{Ce=Ce.replace(`:${de}`,nt[de])}),Ce},ye=nt=>{const{prefixCls:zt,separator:Ce="/",style:de,className:vt,rootClassName:Kt,routes:Lt,items:Pe,children:ot,itemRender:rt,params:an={}}=nt,tt=pt(nt,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Rt,direction:_e,breadcrumb:Gt}=E.useContext(Se.E_);let wt;const ae=Rt("breadcrumb",zt),[ne,te,oe]=ht(ae),ue=Me(Pe,Lt),re=qe(ae,rt);if(ue&&ue.length>0){const lt=[],ke=Pe||Lt;wt=ue.map((Ie,Fe)=>{const{path:Ke,key:it,type:xe,menu:Oe,overlay:Ot,onClick:Mt,className:Vt,separator:Ft,dropdownProps:mt}=Ie,Zt=Ye(an,Ke);Zt!==void 0&<.push(Zt);const Dt=it!=null?it:Fe;if(xe==="separator")return E.createElement(We,{key:Dt},Ft);const Ut={},sn=Fe===ue.length-1;Oe?Ut.menu=Oe:Ot&&(Ut.overlay=Ot);let{href:pn}=Ie;return lt.length&&Zt!==void 0&&(pn=`#/${lt.join("/")}`),E.createElement(Be,Object.assign({key:Dt},Ut,(0,Ee.Z)(Ie,{data:!0,aria:!0}),{className:Vt,dropdownProps:mt,href:pn,separator:sn?"":Ce,onClick:Mt,prefixCls:ae}),re(Ie,an,ke,lt,pn))})}else if(ot){const lt=(0,Ge.Z)(ot).length;wt=(0,Ge.Z)(ot).map((ke,Ie)=>{if(!ke)return ke;const Fe=Ie===lt-1;return(0,be.Tm)(ke,{separator:Fe?"":Ce,key:Ie})})}const le=pe()(ae,Gt==null?void 0:Gt.className,{[`${ae}-rtl`]:_e==="rtl"},vt,Kt,te,oe),ge=Object.assign(Object.assign({},Gt==null?void 0:Gt.style),de);return ne(E.createElement("nav",Object.assign({className:le,style:ge},tt),E.createElement("ol",null,wt)))};ye.Item=St,ye.Separator=We;var jt=ye,Ue=jt},62673:function(fn,Ht,ee){"use strict";ee.d(Ht,{default:function(){return ht}});var E=ee(59301),Ae=ee(92310),pe=ee.n(Ae),Ge=ee(16632),Ee=ee(8654),be=ee(12919),Se=ee(63872),Ze=ee(48755),Ne=ee(2171),ce=ee(83397),We=ee(56553),It=E.createContext(null),at=ee(36170),qe=ee(74632),He=function(Xe,et){var Me={};for(var pt in Xe)Object.prototype.hasOwnProperty.call(Xe,pt)&&et.indexOf(pt)<0&&(Me[pt]=Xe[pt]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,pt=Object.getOwnPropertySymbols(Xe);Ye<pt.length;Ye++)et.indexOf(pt[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Xe,pt[Ye])&&(Me[pt[Ye]]=Xe[pt[Ye]]);return Me};const Be=(Xe,et)=>{var Me;const{prefixCls:pt,className:Ye,rootClassName:ye,children:jt,indeterminate:Ue=!1,style:nt,onMouseEnter:zt,onMouseLeave:Ce,skipGroup:de=!1,disabled:vt}=Xe,Kt=He(Xe,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Lt,direction:Pe,checkbox:ot}=E.useContext(Ze.E_),rt=E.useContext(It),{isFormItemInput:an}=E.useContext(We.aM),tt=E.useContext(Ne.Z),Rt=(Me=(rt==null?void 0:rt.disabled)||vt)!==null&&Me!==void 0?Me:tt,_e=E.useRef(Kt.value),Gt=E.useRef(null),wt=(0,Ee.sQ)(et,Gt);E.useEffect(()=>{rt==null||rt.registerValue(Kt.value)},[]),E.useEffect(()=>{if(!de)return Kt.value!==_e.current&&(rt==null||rt.cancelValue(_e.current),rt==null||rt.registerValue(Kt.value),_e.current=Kt.value),()=>rt==null?void 0:rt.cancelValue(Kt.value)},[Kt.value]),E.useEffect(()=>{var Ie;!((Ie=Gt.current)===null||Ie===void 0)&&Ie.input&&(Gt.current.input.indeterminate=Ue)},[Ue]);const ae=Lt("checkbox",pt),ne=(0,ce.Z)(ae),[te,oe,ue]=(0,at.ZP)(ae,ne),re=Object.assign({},Kt);rt&&!de&&(re.onChange=function(){Kt.onChange&&Kt.onChange.apply(Kt,arguments),rt.toggleOption&&rt.toggleOption({label:jt,value:Kt.value})},re.name=rt.name,re.checked=rt.value.includes(Kt.value));const le=pe()(`${ae}-wrapper`,{[`${ae}-rtl`]:Pe==="rtl",[`${ae}-wrapper-checked`]:re.checked,[`${ae}-wrapper-disabled`]:Rt,[`${ae}-wrapper-in-form-item`]:an},ot==null?void 0:ot.className,Ye,ye,ue,ne,oe),ge=pe()({[`${ae}-indeterminate`]:Ue},Se.A,oe),[lt,ke]=(0,qe.Z)(re.onClick);return te(E.createElement(be.Z,{component:"Checkbox",disabled:Rt},E.createElement("label",{className:le,style:Object.assign(Object.assign({},ot==null?void 0:ot.style),nt),onMouseEnter:zt,onMouseLeave:Ce,onClick:lt},E.createElement(Ge.Z,Object.assign({},re,{onClick:ke,prefixCls:ae,className:ge,disabled:Rt,ref:wt})),jt!==void 0&&E.createElement("span",{className:`${ae}-label`},jt))))};var St=E.forwardRef(Be),Bt=ee(77654),je=ee(2738),Te=function(Xe,et){var Me={};for(var pt in Xe)Object.prototype.hasOwnProperty.call(Xe,pt)&&et.indexOf(pt)<0&&(Me[pt]=Xe[pt]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,pt=Object.getOwnPropertySymbols(Xe);Ye<pt.length;Ye++)et.indexOf(pt[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Xe,pt[Ye])&&(Me[pt[Ye]]=Xe[pt[Ye]]);return Me},Ve=E.forwardRef((Xe,et)=>{const{defaultValue:Me,children:pt,options:Ye=[],prefixCls:ye,className:jt,rootClassName:Ue,style:nt,onChange:zt}=Xe,Ce=Te(Xe,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:de,direction:vt}=E.useContext(Ze.E_),[Kt,Lt]=E.useState(Ce.value||Me||[]),[Pe,ot]=E.useState([]);E.useEffect(()=>{"value"in Ce&&Lt(Ce.value||[])},[Ce.value]);const rt=E.useMemo(()=>Ye.map(ge=>typeof ge=="string"||typeof ge=="number"?{label:ge,value:ge}:ge),[Ye]),an=ge=>{ot(lt=>lt.filter(ke=>ke!==ge))},tt=ge=>{ot(lt=>[].concat((0,Bt.Z)(lt),[ge]))},Rt=ge=>{const lt=Kt.indexOf(ge.value),ke=(0,Bt.Z)(Kt);lt===-1?ke.push(ge.value):ke.splice(lt,1),"value"in Ce||Lt(ke),zt==null||zt(ke.filter(Ie=>Pe.includes(Ie)).sort((Ie,Fe)=>{const Ke=rt.findIndex(xe=>xe.value===Ie),it=rt.findIndex(xe=>xe.value===Fe);return Ke-it}))},_e=de("checkbox",ye),Gt=`${_e}-group`,wt=(0,ce.Z)(_e),[ae,ne,te]=(0,at.ZP)(_e,wt),oe=(0,je.Z)(Ce,["value","disabled"]),ue=Ye.length?rt.map(ge=>E.createElement(St,{prefixCls:_e,key:ge.value.toString(),disabled:"disabled"in ge?ge.disabled:Ce.disabled,value:ge.value,checked:Kt.includes(ge.value),onChange:ge.onChange,className:`${Gt}-item`,style:ge.style,title:ge.title,id:ge.id,required:ge.required},ge.label)):pt,re={toggleOption:Rt,value:Kt,disabled:Ce.disabled,name:Ce.name,registerValue:tt,cancelValue:an},le=pe()(Gt,{[`${Gt}-rtl`]:vt==="rtl"},jt,Ue,te,wt,ne);return ae(E.createElement("div",Object.assign({className:le,style:nt},oe,{ref:et}),E.createElement(It.Provider,{value:re},ue)))});const Tt=St;Tt.Group=Ve,Tt.__ANT_CHECKBOX=!0;var ht=Tt},36170:function(fn,Ht,ee){"use strict";ee.d(Ht,{C2:function(){return be}});var E=ee(36237),Ae=ee(63356),pe=ee(51636),Ge=ee(16931);const Ee=Se=>{const{checkboxCls:Ze}=Se,Ne=`${Ze}-wrapper`;return[{[`${Ze}-group`]:Object.assign(Object.assign({},(0,Ae.Wf)(Se)),{display:"inline-flex",flexWrap:"wrap",columnGap:Se.marginXS,[`> ${Se.antCls}-row`]:{flex:1}}),[Ne]:Object.assign(Object.assign({},(0,Ae.Wf)(Se)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ne}`]:{marginInlineStart:0},[`&${Ne}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Ze]:Object.assign(Object.assign({},(0,Ae.Wf)(Se)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Se.borderRadiusSM,alignSelf:"center",[`${Ze}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Ze}-inner`]:Object.assign({},(0,Ae.oN)(Se))},[`${Ze}-inner`]:{boxSizing:"border-box",display:"block",width:Se.checkboxSize,height:Se.checkboxSize,direction:"ltr",backgroundColor:Se.colorBgContainer,border:`${(0,E.unit)(Se.lineWidth)} ${Se.lineType} ${Se.colorBorder}`,borderRadius:Se.borderRadiusSM,borderCollapse:"separate",transition:`all ${Se.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Se.calc(Se.checkboxSize).div(14).mul(5).equal(),height:Se.calc(Se.checkboxSize).div(14).mul(8).equal(),border:`${(0,E.unit)(Se.lineWidthBold)} solid ${Se.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Se.motionDurationFast} ${Se.motionEaseInBack}, opacity ${Se.motionDurationFast}`}},"& + span":{paddingInlineStart:Se.paddingXS,paddingInlineEnd:Se.paddingXS}})},{[`
|
|
|
${Ne}:not(${Ne}-disabled),
|
|
|
${Ze}:not(${Ze}-disabled)
|
|
|
`]:{[`&:hover ${Ze}-inner`]:{borderColor:Se.colorPrimary}},[`${Ne}:not(${Ne}-disabled)`]:{[`&:hover ${Ze}-checked:not(${Ze}-disabled) ${Ze}-inner`]:{backgroundColor:Se.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Ze}-checked:not(${Ze}-disabled):after`]:{borderColor:Se.colorPrimaryHover}}},{[`${Ze}-checked`]:{[`${Ze}-inner`]:{backgroundColor:Se.colorPrimary,borderColor:Se.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Se.motionDurationMid} ${Se.motionEaseOutBack} ${Se.motionDurationFast}`}}},[`
|
|
|
${Ne}-checked:not(${Ne}-disabled),
|
|
|
${Ze}-checked:not(${Ze}-disabled)
|
|
|
`]:{[`&:hover ${Ze}-inner`]:{backgroundColor:Se.colorPrimaryHover,borderColor:"transparent"}}},{[Ze]:{"&-indeterminate":{[`${Ze}-inner`]:{backgroundColor:`${Se.colorBgContainer} !important`,borderColor:`${Se.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Se.calc(Se.fontSizeLG).div(2).equal(),height:Se.calc(Se.fontSizeLG).div(2).equal(),backgroundColor:Se.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Ze}-inner`]:{backgroundColor:`${Se.colorBgContainer} !important`,borderColor:`${Se.colorPrimary} !important`}}}},{[`${Ne}-disabled`]:{cursor:"not-allowed"},[`${Ze}-disabled`]:{[`&, ${Ze}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Ze}-inner`]:{background:Se.colorBgContainerDisabled,borderColor:Se.colorBorder,"&:after":{borderColor:Se.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Se.colorTextDisabled},[`&${Ze}-indeterminate ${Ze}-inner::after`]:{background:Se.colorTextDisabled}}}]};function be(Se,Ze){const Ne=(0,pe.mergeToken)(Ze,{checkboxCls:`.${Se}`,checkboxSize:Ze.controlInteractiveSize});return[Ee(Ne)]}Ht.ZP=(0,Ge.I$)("Checkbox",(Se,Ze)=>{let{prefixCls:Ne}=Ze;return[be(Ne,Se)]})},38406:function(fn,Ht,ee){"use strict";var E=ee(59301),Ae=ee(48755),pe=ee(584);const Ge=Ee=>{const{componentName:be}=Ee,{getPrefixCls:Se}=(0,E.useContext)(Ae.E_),Ze=Se("empty");switch(be){case"Table":case"List":return E.createElement(pe.Z,{image:pe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return E.createElement(pe.Z,{image:pe.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ze}-small`});case"Table.filter":return null;default:return E.createElement(pe.Z,null)}};Ht.Z=Ge},36207:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return lt}});var E=ee(59301),Ae=ee(92310),pe=ee.n(Ae),Ge=ee(85899),Ee=ee(72190),be=ee(43403),Se=ee(34280),Ze=E.createContext(null),Ne=E.createContext({}),ce=Ze,We=ee(18642),De=ee(60499),It=ee(77900),at=ee(10228),qe=ee(26112),He=ee(42244),Be=ee(8654),ut=["prefixCls","className","containerRef"],St=function(Ie){var Fe=Ie.prefixCls,Ke=Ie.className,it=Ie.containerRef,xe=(0,He.Z)(Ie,ut),Oe=E.useContext(Ne),Ot=Oe.panel,Mt=(0,Be.x1)(Ot,it);return E.createElement("div",(0,De.Z)({className:pe()("".concat(Fe,"-content"),Ke),role:"dialog",ref:Mt},(0,qe.Z)(Ie,{aria:!0}),{"aria-modal":"true"},xe))},Bt=St,je=ee(48736);function Te(ke){return typeof ke=="string"&&String(Number(ke))===ke?((0,je.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(ke)):ke}function Qe(ke){warning(!("wrapperClassName"in ke),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!ke.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ve={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Tt(ke,Ie){var Fe,Ke,it,xe=ke.prefixCls,Oe=ke.open,Ot=ke.placement,Mt=ke.inline,Vt=ke.push,Ft=ke.forceRender,mt=ke.autoFocus,Zt=ke.keyboard,Dt=ke.classNames,Ut=ke.rootClassName,sn=ke.rootStyle,pn=ke.zIndex,mn=ke.className,ze=ke.id,bt=ke.style,$t=ke.motion,ft=ke.width,Et=ke.height,Nt=ke.children,vn=ke.mask,kn=ke.maskClosable,cn=ke.maskMotion,bn=ke.maskClassName,en=ke.maskStyle,on=ke.afterOpenChange,gn=ke.onClose,$n=ke.onMouseEnter,hn=ke.onMouseOver,In=ke.onMouseLeave,xn=ke.onClick,Wn=ke.onKeyDown,lr=ke.onKeyUp,qn=ke.styles,Gn=ke.drawerRender,cr=E.useRef(),gr=E.useRef(),Ir=E.useRef();E.useImperativeHandle(Ie,function(){return cr.current});var pr=function(_t){var Yt=_t.keyCode,Pn=_t.shiftKey;switch(Yt){case at.Z.TAB:{if(Yt===at.Z.TAB){if(!Pn&&document.activeElement===Ir.current){var Fn;(Fn=gr.current)===null||Fn===void 0||Fn.focus({preventScroll:!0})}else if(Pn&&document.activeElement===gr.current){var zn;(zn=Ir.current)===null||zn===void 0||zn.focus({preventScroll:!0})}}break}case at.Z.ESC:{gn&&Zt&&(_t.stopPropagation(),gn(_t));break}}};E.useEffect(function(){if(Oe&&mt){var Qt;(Qt=cr.current)===null||Qt===void 0||Qt.focus({preventScroll:!0})}},[Oe]);var tn=E.useState(!1),En=(0,Ee.Z)(tn,2),An=En[0],yr=En[1],st=E.useContext(ce),xt;typeof Vt=="boolean"?xt=Vt?{}:{distance:0}:xt=Vt||{};var Le=(Fe=(Ke=(it=xt)===null||it===void 0?void 0:it.distance)!==null&&Ke!==void 0?Ke:st==null?void 0:st.pushDistance)!==null&&Fe!==void 0?Fe:180,ct=E.useMemo(function(){return{pushDistance:Le,push:function(){yr(!0)},pull:function(){yr(!1)}}},[Le]);E.useEffect(function(){if(Oe){var Qt;st==null||(Qt=st.push)===null||Qt===void 0||Qt.call(st)}else{var _t;st==null||(_t=st.pull)===null||_t===void 0||_t.call(st)}},[Oe]),E.useEffect(function(){return function(){var Qt;st==null||(Qt=st.pull)===null||Qt===void 0||Qt.call(st)}},[]);var $e=vn&&E.createElement(It.default,(0,De.Z)({key:"mask"},cn,{visible:Oe}),function(Qt,_t){var Yt=Qt.className,Pn=Qt.style;return E.createElement("div",{className:pe()("".concat(xe,"-mask"),Yt,Dt==null?void 0:Dt.mask,bn),style:(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},Pn),en),qn==null?void 0:qn.mask),onClick:kn&&Oe?gn:void 0,ref:_t})}),dt=typeof $t=="function"?$t(Ot):$t,Pt={};if(An&&Le)switch(Ot){case"top":Pt.transform="translateY(".concat(Le,"px)");break;case"bottom":Pt.transform="translateY(".concat(-Le,"px)");break;case"left":Pt.transform="translateX(".concat(Le,"px)");break;default:Pt.transform="translateX(".concat(-Le,"px)");break}Ot==="left"||Ot==="right"?Pt.width=Te(ft):Pt.height=Te(Et);var yn={onMouseEnter:$n,onMouseOver:hn,onMouseLeave:In,onClick:xn,onKeyDown:Wn,onKeyUp:lr},Cn=E.createElement(It.default,(0,De.Z)({key:"panel"},dt,{visible:Oe,forceRender:Ft,onVisibleChanged:function(_t){on==null||on(_t)},removeOnLeave:!1,leavedClassName:"".concat(xe,"-content-wrapper-hidden")}),function(Qt,_t){var Yt=Qt.className,Pn=Qt.style,Fn=E.createElement(Bt,(0,De.Z)({id:ze,containerRef:_t,prefixCls:xe,className:pe()(mn,Dt==null?void 0:Dt.content),style:(0,Ge.Z)((0,Ge.Z)({},bt),qn==null?void 0:qn.content)},(0,qe.Z)(ke,{aria:!0}),yn),Nt);return E.createElement("div",(0,De.Z)({className:pe()("".concat(xe,"-content-wrapper"),Dt==null?void 0:Dt.wrapper,Yt),style:(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},Pt),Pn),qn==null?void 0:qn.wrapper)},(0,qe.Z)(ke,{data:!0})),Gn?Gn(Fn):Fn)}),Mn=(0,Ge.Z)({},sn);return pn&&(Mn.zIndex=pn),E.createElement(ce.Provider,{value:ct},E.createElement("div",{className:pe()(xe,"".concat(xe,"-").concat(Ot),Ut,(0,We.Z)((0,We.Z)({},"".concat(xe,"-open"),Oe),"".concat(xe,"-inline"),Mt)),style:Mn,tabIndex:-1,ref:cr,onKeyDown:pr},$e,E.createElement("div",{tabIndex:0,ref:gr,style:Ve,"aria-hidden":"true","data-sentinel":"start"}),Cn,E.createElement("div",{tabIndex:0,ref:Ir,style:Ve,"aria-hidden":"true","data-sentinel":"end"})))}var ht=E.forwardRef(Tt),Xe=ht,et=function(Ie){var Fe=Ie.open,Ke=Fe===void 0?!1:Fe,it=Ie.prefixCls,xe=it===void 0?"rc-drawer":it,Oe=Ie.placement,Ot=Oe===void 0?"right":Oe,Mt=Ie.autoFocus,Vt=Mt===void 0?!0:Mt,Ft=Ie.keyboard,mt=Ft===void 0?!0:Ft,Zt=Ie.width,Dt=Zt===void 0?378:Zt,Ut=Ie.mask,sn=Ut===void 0?!0:Ut,pn=Ie.maskClosable,mn=pn===void 0?!0:pn,ze=Ie.getContainer,bt=Ie.forceRender,$t=Ie.afterOpenChange,ft=Ie.destroyOnClose,Et=Ie.onMouseEnter,Nt=Ie.onMouseOver,vn=Ie.onMouseLeave,kn=Ie.onClick,cn=Ie.onKeyDown,bn=Ie.onKeyUp,en=Ie.panelRef,on=E.useState(!1),gn=(0,Ee.Z)(on,2),$n=gn[0],hn=gn[1],In=E.useState(!1),xn=(0,Ee.Z)(In,2),Wn=xn[0],lr=xn[1];(0,Se.Z)(function(){lr(!0)},[]);var qn=Wn?Ke:!1,Gn=E.useRef(),cr=E.useRef();(0,Se.Z)(function(){qn&&(cr.current=document.activeElement)},[qn]);var gr=function(An){var yr;if(hn(An),$t==null||$t(An),!An&&cr.current&&!((yr=Gn.current)!==null&&yr!==void 0&&yr.contains(cr.current))){var st;(st=cr.current)===null||st===void 0||st.focus({preventScroll:!0})}},Ir=E.useMemo(function(){return{panel:en}},[en]);if(!bt&&!$n&&!qn&&ft)return null;var pr={onMouseEnter:Et,onMouseOver:Nt,onMouseLeave:vn,onClick:kn,onKeyDown:cn,onKeyUp:bn},tn=(0,Ge.Z)((0,Ge.Z)({},Ie),{},{open:qn,prefixCls:xe,placement:Ot,autoFocus:Vt,keyboard:mt,width:Dt,mask:sn,maskClosable:mn,inline:ze===!1,afterOpenChange:gr,ref:Gn},pr);return E.createElement(Ne.Provider,{value:Ir},E.createElement(be.Z,{open:qn||bt||$n,autoDestroy:!1,getContainer:ze,autoLock:sn&&(qn||$n)},E.createElement(Xe,tn)))},Me=et,pt=Me,Ye=ee(62487),ye=ee(75030),jt=ee(86641),Ue=ee(55743),nt=ee(48755),zt=ee(91190),Ce=ee(78776),de=ee(458),Kt=ke=>{var Ie,Fe;const{prefixCls:Ke,title:it,footer:xe,extra:Oe,loading:Ot,onClose:Mt,headerStyle:Vt,bodyStyle:Ft,footerStyle:mt,children:Zt,classNames:Dt,styles:Ut}=ke,sn=(0,nt.dj)("drawer"),pn=E.useCallback(ft=>E.createElement("button",{type:"button",onClick:Mt,"aria-label":"Close",className:`${Ke}-close`},ft),[Mt]),[mn,ze]=(0,Ce.Z)((0,Ce.w)(ke),(0,Ce.w)(sn),{closable:!0,closeIconRender:pn}),bt=E.useMemo(()=>{var ft,Et;return!it&&!mn?null:E.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(ft=sn.styles)===null||ft===void 0?void 0:ft.header),Vt),Ut==null?void 0:Ut.header),className:pe()(`${Ke}-header`,{[`${Ke}-header-close-only`]:mn&&!it&&!Oe},(Et=sn.classNames)===null||Et===void 0?void 0:Et.header,Dt==null?void 0:Dt.header)},E.createElement("div",{className:`${Ke}-header-title`},ze,it&&E.createElement("div",{className:`${Ke}-title`},it)),Oe&&E.createElement("div",{className:`${Ke}-extra`},Oe))},[mn,ze,Oe,Vt,Ke,it]),$t=E.useMemo(()=>{var ft,Et;if(!xe)return null;const Nt=`${Ke}-footer`;return E.createElement("div",{className:pe()(Nt,(ft=sn.classNames)===null||ft===void 0?void 0:ft.footer,Dt==null?void 0:Dt.footer),style:Object.assign(Object.assign(Object.assign({},(Et=sn.styles)===null||Et===void 0?void 0:Et.footer),mt),Ut==null?void 0:Ut.footer)},xe)},[xe,mt,Ke]);return E.createElement(E.Fragment,null,bt,E.createElement("div",{className:pe()(`${Ke}-body`,Dt==null?void 0:Dt.body,(Ie=sn.classNames)===null||Ie===void 0?void 0:Ie.body),style:Object.assign(Object.assign(Object.assign({},(Fe=sn.styles)===null||Fe===void 0?void 0:Fe.body),Ft),Ut==null?void 0:Ut.body)},Ot?E.createElement(de.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Ke}-body-skeleton`}):Zt),$t)},Lt=ee(36237),Pe=ee(63356),ot=ee(16931),rt=ee(51636);const an=ke=>{const Ie="100%";return{left:`translateX(-${Ie})`,right:`translateX(${Ie})`,top:`translateY(-${Ie})`,bottom:`translateY(${Ie})`}[ke]},tt=(ke,Ie)=>({"&-enter, &-appear":Object.assign(Object.assign({},ke),{"&-active":Ie}),"&-leave":Object.assign(Object.assign({},Ie),{"&-active":ke})}),Rt=(ke,Ie)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ie}`}}},tt({opacity:ke},{opacity:1})),_e=(ke,Ie)=>[Rt(.7,Ie),tt({transform:an(ke)},{transform:"none"})];var wt=ke=>{const{componentCls:Ie,motionDurationSlow:Fe}=ke;return{[Ie]:{[`${Ie}-mask-motion`]:Rt(0,Fe),[`${Ie}-panel-motion`]:["left","right","top","bottom"].reduce((Ke,it)=>Object.assign(Object.assign({},Ke),{[`&-${it}`]:_e(it,Fe)}),{})}}};const ae=ke=>{const{borderRadiusSM:Ie,componentCls:Fe,zIndexPopup:Ke,colorBgMask:it,colorBgElevated:xe,motionDurationSlow:Oe,motionDurationMid:Ot,paddingXS:Mt,padding:Vt,paddingLG:Ft,fontSizeLG:mt,lineHeightLG:Zt,lineWidth:Dt,lineType:Ut,colorSplit:sn,marginXS:pn,colorIcon:mn,colorIconHover:ze,colorBgTextHover:bt,colorBgTextActive:$t,colorText:ft,fontWeightStrong:Et,footerPaddingBlock:Nt,footerPaddingInline:vn,calc:kn}=ke,cn=`${Fe}-content-wrapper`;return{[Fe]:{position:"fixed",inset:0,zIndex:Ke,pointerEvents:"none",color:ft,"&-pure":{position:"relative",background:xe,display:"flex",flexDirection:"column",[`&${Fe}-left`]:{boxShadow:ke.boxShadowDrawerLeft},[`&${Fe}-right`]:{boxShadow:ke.boxShadowDrawerRight},[`&${Fe}-top`]:{boxShadow:ke.boxShadowDrawerUp},[`&${Fe}-bottom`]:{boxShadow:ke.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Fe}-mask`]:{position:"absolute",inset:0,zIndex:Ke,background:it,pointerEvents:"auto"},[cn]:{position:"absolute",zIndex:Ke,maxWidth:"100vw",transition:`all ${Oe}`,"&-hidden":{display:"none"}},[`&-left > ${cn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:ke.boxShadowDrawerLeft},[`&-right > ${cn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:ke.boxShadowDrawerRight},[`&-top > ${cn}`]:{top:0,insetInline:0,boxShadow:ke.boxShadowDrawerUp},[`&-bottom > ${cn}`]:{bottom:0,insetInline:0,boxShadow:ke.boxShadowDrawerDown},[`${Fe}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:xe,pointerEvents:"auto"},[`${Fe}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,Lt.unit)(Vt)} ${(0,Lt.unit)(Ft)}`,fontSize:mt,lineHeight:Zt,borderBottom:`${(0,Lt.unit)(Dt)} ${Ut} ${sn}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Fe}-extra`]:{flex:"none"},[`${Fe}-close`]:Object.assign({display:"inline-flex",width:kn(mt).add(Mt).equal(),height:kn(mt).add(Mt).equal(),borderRadius:Ie,justifyContent:"center",alignItems:"center",marginInlineEnd:pn,color:mn,fontWeight:Et,fontSize:mt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Ot}`,textRendering:"auto","&:hover":{color:ze,backgroundColor:bt,textDecoration:"none"},"&:active":{backgroundColor:$t}},(0,Pe.Qy)(ke)),[`${Fe}-title`]:{flex:1,margin:0,fontWeight:ke.fontWeightStrong,fontSize:mt,lineHeight:Zt},[`${Fe}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Ft,overflow:"auto",[`${Fe}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${Fe}-footer`]:{flexShrink:0,padding:`${(0,Lt.unit)(Nt)} ${(0,Lt.unit)(vn)}`,borderTop:`${(0,Lt.unit)(Dt)} ${Ut} ${sn}`},"&-rtl":{direction:"rtl"}}}},ne=ke=>({zIndexPopup:ke.zIndexPopupBase,footerPaddingBlock:ke.paddingXS,footerPaddingInline:ke.padding});var te=(0,ot.I$)("Drawer",ke=>{const Ie=(0,rt.mergeToken)(ke,{});return[ae(Ie),wt(Ie)]},ne),oe=function(ke,Ie){var Fe={};for(var Ke in ke)Object.prototype.hasOwnProperty.call(ke,Ke)&&Ie.indexOf(Ke)<0&&(Fe[Ke]=ke[Ke]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Ke=Object.getOwnPropertySymbols(ke);it<Ke.length;it++)Ie.indexOf(Ke[it])<0&&Object.prototype.propertyIsEnumerable.call(ke,Ke[it])&&(Fe[Ke[it]]=ke[Ke[it]]);return Fe};const ue=null,re={distance:180},le=ke=>{var Ie;const{rootClassName:Fe,width:Ke,height:it,size:xe="default",mask:Oe=!0,push:Ot=re,open:Mt,afterOpenChange:Vt,onClose:Ft,prefixCls:mt,getContainer:Zt,style:Dt,className:Ut,visible:sn,afterVisibleChange:pn,maskStyle:mn,drawerStyle:ze,contentWrapperStyle:bt}=ke,$t=oe(ke,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:ft,getPrefixCls:Et,direction:Nt,className:vn,style:kn,classNames:cn,styles:bn}=(0,nt.dj)("drawer"),en=Et("drawer",mt),[on,gn,$n]=te(en),hn=Zt===void 0&&ft?()=>ft(document.body):Zt,In=pe()({"no-mask":!Oe,[`${en}-rtl`]:Nt==="rtl"},Fe,gn,$n),xn=E.useMemo(()=>Ke!=null?Ke:xe==="large"?736:378,[Ke,xe]),Wn=E.useMemo(()=>it!=null?it:xe==="large"?736:378,[it,xe]),lr={motionName:(0,jt.m)(en,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},qn=tn=>({motionName:(0,jt.m)(en,`panel-motion-${tn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Gn=(0,zt.H)(),[cr,gr]=(0,ye.Cn)("Drawer",$t.zIndex),{classNames:Ir={},styles:pr={}}=$t;return on(E.createElement(Ye.Z,{form:!0,space:!0},E.createElement(Ue.Z.Provider,{value:gr},E.createElement(pt,Object.assign({prefixCls:en,onClose:Ft,maskMotion:lr,motion:qn},$t,{classNames:{mask:pe()(Ir.mask,cn.mask),content:pe()(Ir.content,cn.content),wrapper:pe()(Ir.wrapper,cn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},pr.mask),mn),bn.mask),content:Object.assign(Object.assign(Object.assign({},pr.content),ze),bn.content),wrapper:Object.assign(Object.assign(Object.assign({},pr.wrapper),bt),bn.wrapper)},open:Mt!=null?Mt:sn,mask:Oe,push:Ot,width:xn,height:Wn,style:Object.assign(Object.assign({},kn),Dt),className:pe()(vn,Ut),rootClassName:In,getContainer:hn,afterOpenChange:Vt!=null?Vt:pn,panelRef:Gn,zIndex:cr}),E.createElement(Kt,Object.assign({prefixCls:en},$t,{onClose:Ft}))))))},ge=ke=>{const{prefixCls:Ie,style:Fe,className:Ke,placement:it="right"}=ke,xe=oe(ke,["prefixCls","style","className","placement"]),{getPrefixCls:Oe}=E.useContext(nt.E_),Ot=Oe("drawer",Ie),[Mt,Vt,Ft]=te(Ot),mt=pe()(Ot,`${Ot}-pure`,`${Ot}-${it}`,Vt,Ft,Ke);return Mt(E.createElement("div",{className:mt,style:Fe},E.createElement(Kt,Object.assign({prefixCls:Ot},xe))))};le._InternalPanelDoNotUseOrYouWillBeFired=ge;var lt=le},19563:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Lt}});var E=ee(59301),Ae=ee(33853),pe=ee(38819),Ge=ee(92310),Ee=ee.n(Ge),be=ee(96478),Se=ee(6089),Ze=ee(18929),Ne=ee(2738),ce=ee(75030),De=Pe=>typeof Pe!="object"&&typeof Pe!="function"||Pe===null,It=ee(52838),at=ee(45915),qe=ee(22703),He=ee(32383),Be=ee(55743),ut=ee(48755),St=ee(83397),Bt=ee(93041),je=ee(78857),Te=ee(57700),Qe=ee(36237),Ve=ee(63356),Tt=ee(46e3),ht=ee(93873),Xe=ee(34925),et=ee(37645),Me=ee(36305),pt=ee(16931),Ye=ee(51636),jt=Pe=>{const{componentCls:ot,menuCls:rt,colorError:an,colorTextLightSolid:tt}=Pe,Rt=`${rt}-item`;return{[`${ot}, ${ot}-menu-submenu`]:{[`${rt} ${Rt}`]:{[`&${Rt}-danger:not(${Rt}-disabled)`]:{color:an,"&:hover":{color:tt,backgroundColor:an}}}}}};const Ue=Pe=>{const{componentCls:ot,menuCls:rt,zIndexPopup:an,dropdownArrowDistance:tt,sizePopupArrow:Rt,antCls:_e,iconCls:Gt,motionDurationMid:wt,paddingBlock:ae,fontSize:ne,dropdownEdgeChildPadding:te,colorTextDisabled:oe,fontSizeIcon:ue,controlPaddingHorizontal:re,colorBgElevated:le}=Pe;return[{[ot]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:an,display:"block","&::before":{position:"absolute",insetBlock:Pe.calc(Rt).div(2).sub(tt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${_e}-btn`]:{[`& > ${Gt}-down, & > ${_e}-btn-icon > ${Gt}-down`]:{fontSize:ue}},[`${ot}-wrap`]:{position:"relative",[`${_e}-btn > ${Gt}-down`]:{fontSize:ue},[`${Gt}-down::before`]:{transition:`transform ${wt}`}},[`${ot}-wrap-open`]:{[`${Gt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${_e}-slide-down-enter${_e}-slide-down-enter-active${ot}-placement-bottomLeft,
|
|
|
&${_e}-slide-down-appear${_e}-slide-down-appear-active${ot}-placement-bottomLeft,
|
|
|
&${_e}-slide-down-enter${_e}-slide-down-enter-active${ot}-placement-bottom,
|
|
|
&${_e}-slide-down-appear${_e}-slide-down-appear-active${ot}-placement-bottom,
|
|
|
&${_e}-slide-down-enter${_e}-slide-down-enter-active${ot}-placement-bottomRight,
|
|
|
&${_e}-slide-down-appear${_e}-slide-down-appear-active${ot}-placement-bottomRight`]:{animationName:Tt.fJ},[`&${_e}-slide-up-enter${_e}-slide-up-enter-active${ot}-placement-topLeft,
|
|
|
&${_e}-slide-up-appear${_e}-slide-up-appear-active${ot}-placement-topLeft,
|
|
|
&${_e}-slide-up-enter${_e}-slide-up-enter-active${ot}-placement-top,
|
|
|
&${_e}-slide-up-appear${_e}-slide-up-appear-active${ot}-placement-top,
|
|
|
&${_e}-slide-up-enter${_e}-slide-up-enter-active${ot}-placement-topRight,
|
|
|
&${_e}-slide-up-appear${_e}-slide-up-appear-active${ot}-placement-topRight`]:{animationName:Tt.Qt},[`&${_e}-slide-down-leave${_e}-slide-down-leave-active${ot}-placement-bottomLeft,
|
|
|
&${_e}-slide-down-leave${_e}-slide-down-leave-active${ot}-placement-bottom,
|
|
|
&${_e}-slide-down-leave${_e}-slide-down-leave-active${ot}-placement-bottomRight`]:{animationName:Tt.Uw},[`&${_e}-slide-up-leave${_e}-slide-up-leave-active${ot}-placement-topLeft,
|
|
|
&${_e}-slide-up-leave${_e}-slide-up-leave-active${ot}-placement-top,
|
|
|
&${_e}-slide-up-leave${_e}-slide-up-leave-active${ot}-placement-topRight`]:{animationName:Tt.ly}}},(0,et.ZP)(Pe,le,{arrowPlacement:{top:!0,bottom:!0}}),{[`${ot} ${rt}`]:{position:"relative",margin:0},[`${rt}-submenu-popup`]:{position:"absolute",zIndex:an,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${ot}, ${ot}-menu-submenu`]:Object.assign(Object.assign({},(0,Ve.Wf)(Pe)),{[rt]:Object.assign(Object.assign({padding:te,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:Pe.borderRadiusLG,outline:"none",boxShadow:Pe.boxShadowSecondary},(0,Ve.Qy)(Pe)),{"&:empty":{padding:0,boxShadow:"none"},[`${rt}-item-group-title`]:{padding:`${(0,Qe.unit)(ae)} ${(0,Qe.unit)(re)}`,color:Pe.colorTextDescription,transition:`all ${wt}`},[`${rt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${rt}-item-icon`]:{minWidth:ne,marginInlineEnd:Pe.marginXS,fontSize:Pe.fontSizeSM},[`${rt}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${wt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${rt}-item-extra`]:{paddingInlineStart:Pe.padding,marginInlineStart:"auto",fontSize:Pe.fontSizeSM,color:Pe.colorTextDescription}},[`${rt}-item, ${rt}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,Qe.unit)(ae)} ${(0,Qe.unit)(re)}`,color:Pe.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Pe.lineHeight,cursor:"pointer",transition:`all ${wt}`,borderRadius:Pe.borderRadiusSM,"&:hover, &-active":{backgroundColor:Pe.controlItemBgHover}},(0,Ve.Qy)(Pe)),{"&-selected":{color:Pe.colorPrimary,backgroundColor:Pe.controlItemBgActive,"&:hover, &-active":{backgroundColor:Pe.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,Qe.unit)(Pe.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Pe.colorSplit},[`${ot}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Pe.paddingXS,[`${ot}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Pe.colorTextDescription,fontSize:ue,fontStyle:"normal"}}}),[`${rt}-item-group-list`]:{margin:`0 ${(0,Qe.unit)(Pe.marginXS)}`,padding:0,listStyle:"none"},[`${rt}-submenu-title`]:{paddingInlineEnd:Pe.calc(re).add(Pe.fontSizeSM).equal()},[`${rt}-submenu-vertical`]:{position:"relative"},[`${rt}-submenu${rt}-submenu-disabled ${ot}-menu-submenu-title`]:{[`&, ${ot}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:le,cursor:"not-allowed"}},[`${rt}-submenu-selected ${ot}-menu-submenu-title`]:{color:Pe.colorPrimary}})})},[(0,Tt.oN)(Pe,"slide-up"),(0,Tt.oN)(Pe,"slide-down"),(0,ht.Fm)(Pe,"move-up"),(0,ht.Fm)(Pe,"move-down"),(0,Xe._y)(Pe,"zoom-big")]]},nt=Pe=>Object.assign(Object.assign({zIndexPopup:Pe.zIndexPopupBase+50,paddingBlock:(Pe.controlHeight-Pe.fontSize*Pe.lineHeight)/2},(0,et.wZ)({contentRadius:Pe.borderRadiusLG,limitVerticalRadius:!0})),(0,Me.w)(Pe));var zt=(0,pt.I$)("Dropdown",Pe=>{const{marginXXS:ot,sizePopupArrow:rt,paddingXXS:an,componentCls:tt}=Pe,Rt=(0,Ye.mergeToken)(Pe,{menuCls:`${tt}-menu`,dropdownArrowDistance:Pe.calc(rt).div(2).add(ot).equal(),dropdownEdgeChildPadding:an});return[Ue(Rt),jt(Rt)]},nt,{resetStyle:!1});const Ce=null,de=Pe=>{var ot;const{menu:rt,arrow:an,prefixCls:tt,children:Rt,trigger:_e,disabled:Gt,dropdownRender:wt,getPopupContainer:ae,overlayClassName:ne,rootClassName:te,overlayStyle:oe,open:ue,onOpenChange:re,visible:le,onVisibleChange:ge,mouseEnterDelay:lt=.15,mouseLeaveDelay:ke=.1,autoAdjustOverflow:Ie=!0,placement:Fe="",overlay:Ke,transitionName:it}=Pe,{getPopupContainer:xe,getPrefixCls:Oe,direction:Ot,dropdown:Mt}=E.useContext(ut.E_),Vt=(0,He.ln)("Dropdown"),Ft=E.useMemo(()=>{const hn=Oe();return it!==void 0?it:Fe.includes("top")?`${hn}-slide-down`:`${hn}-slide-up`},[Oe,Fe,it]),mt=E.useMemo(()=>Fe?Fe.includes("Center")?Fe.slice(0,Fe.indexOf("Center")):Fe:Ot==="rtl"?"bottomRight":"bottomLeft",[Fe,Ot]),Zt=Oe("dropdown",tt),Dt=(0,St.Z)(Zt),[Ut,sn,pn]=zt(Zt,Dt),[,mn]=(0,Te.ZP)(),ze=E.Children.only(De(Rt)?E.createElement("span",null,Rt):Rt),bt=(0,qe.Tm)(ze,{className:Ee()(`${Zt}-trigger`,{[`${Zt}-rtl`]:Ot==="rtl"},ze.props.className),disabled:(ot=ze.props.disabled)!==null&&ot!==void 0?ot:Gt}),$t=Gt?[]:_e,ft=!!($t!=null&&$t.includes("contextMenu")),[Et,Nt]=(0,Ze.Z)(!1,{value:ue!=null?ue:le}),vn=(0,Se.Z)(hn=>{re==null||re(hn,{source:"trigger"}),ge==null||ge(hn),Nt(hn)}),kn=Ee()(ne,te,sn,pn,Dt,Mt==null?void 0:Mt.className,{[`${Zt}-rtl`]:Ot==="rtl"}),cn=(0,It.Z)({arrowPointAtCenter:typeof an=="object"&&an.pointAtCenter,autoAdjustOverflow:Ie,offset:mn.marginXXS,arrowWidth:an?mn.sizePopupArrow:0,borderRadius:mn.borderRadius}),bn=E.useCallback(()=>{rt!=null&&rt.selectable&&(rt!=null&&rt.multiple)||(re==null||re(!1,{source:"menu"}),Nt(!1))},[rt==null?void 0:rt.selectable,rt==null?void 0:rt.multiple]),en=()=>{let hn;return rt!=null&&rt.items?hn=E.createElement(Bt.default,Object.assign({},rt)):typeof Ke=="function"?hn=Ke():hn=Ke,wt&&(hn=wt(hn)),hn=E.Children.only(typeof hn=="string"?E.createElement("span",null,hn):hn),E.createElement(je.J,{prefixCls:`${Zt}-menu`,rootClassName:Ee()(pn,Dt),expandIcon:E.createElement("span",{className:`${Zt}-menu-submenu-arrow`},Ot==="rtl"?E.createElement(Ae.Z,{className:`${Zt}-menu-submenu-arrow-icon`}):E.createElement(pe.Z,{className:`${Zt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:bn,validator:In=>{let{mode:xn}=In}},hn)},[on,gn]=(0,ce.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let $n=E.createElement(be.Z,Object.assign({alignPoint:ft},(0,Ne.Z)(Pe,["rootClassName"]),{mouseEnterDelay:lt,mouseLeaveDelay:ke,visible:Et,builtinPlacements:cn,arrow:!!an,overlayClassName:kn,prefixCls:Zt,getPopupContainer:ae||xe,transitionName:Ft,trigger:$t,overlay:en,placement:mt,onVisibleChange:vn,overlayStyle:Object.assign(Object.assign(Object.assign({},Mt==null?void 0:Mt.style),oe),{zIndex:on})}),bt);return on&&($n=E.createElement(Be.Z.Provider,{value:gn},$n)),Ut($n)},vt=(0,at.Z)(de,"align",void 0,"dropdown",Pe=>Pe),Kt=Pe=>E.createElement(vt,Object.assign({},Pe),E.createElement("span",null));de._InternalPanelDoNotUseOrYouWillBeFired=Kt;var Lt=de},75727:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return at}});var E=ee(19563),Ae=ee(59301),pe=ee(18785),Ge=ee(92310),Ee=ee.n(Ge),be=ee(7939),Se=ee(48755),Ze=ee(44104),Ne=ee(70045),ce=function(qe,He){var Be={};for(var ut in qe)Object.prototype.hasOwnProperty.call(qe,ut)&&He.indexOf(ut)<0&&(Be[ut]=qe[ut]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,ut=Object.getOwnPropertySymbols(qe);St<ut.length;St++)He.indexOf(ut[St])<0&&Object.prototype.propertyIsEnumerable.call(qe,ut[St])&&(Be[ut[St]]=qe[ut[St]]);return Be};const We=qe=>{const{getPopupContainer:He,getPrefixCls:Be,direction:ut}=Ae.useContext(Se.E_),{prefixCls:St,type:Bt="default",danger:je,disabled:Te,loading:Qe,onClick:Ve,htmlType:Tt,children:ht,className:Xe,menu:et,arrow:Me,autoFocus:pt,overlay:Ye,trigger:ye,align:jt,open:Ue,onOpenChange:nt,placement:zt,getPopupContainer:Ce,href:de,icon:vt=Ae.createElement(pe.Z,null),title:Kt,buttonsRender:Lt=lt=>lt,mouseEnterDelay:Pe,mouseLeaveDelay:ot,overlayClassName:rt,overlayStyle:an,destroyPopupOnHide:tt,dropdownRender:Rt}=qe,_e=ce(qe,["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"]),Gt=Be("dropdown",St),wt=`${Gt}-button`,ae={menu:et,arrow:Me,autoFocus:pt,align:jt,disabled:Te,trigger:Te?[]:ye,onOpenChange:nt,getPopupContainer:Ce||He,mouseEnterDelay:Pe,mouseLeaveDelay:ot,overlayClassName:rt,overlayStyle:an,destroyPopupOnHide:tt,dropdownRender:Rt},{compactSize:ne,compactItemClassnames:te}=(0,Ne.ri)(Gt,ut),oe=Ee()(wt,te,Xe);"overlay"in qe&&(ae.overlay=Ye),"open"in qe&&(ae.open=Ue),"placement"in qe?ae.placement=zt:ae.placement=ut==="rtl"?"bottomLeft":"bottomRight";const ue=Ae.createElement(be.ZP,{type:Bt,danger:je,disabled:Te,loading:Qe,onClick:Ve,htmlType:Tt,href:de,title:Kt},ht),re=Ae.createElement(be.ZP,{type:Bt,danger:je,icon:vt}),[le,ge]=Lt([ue,re]);return Ae.createElement(Ze.Z.Compact,Object.assign({className:oe,size:ne,block:!0},_e),le,Ae.createElement(E.Z,Object.assign({},ae),ge))};We.__ANT_BUTTON=!0;var De=We;const It=E.Z;It.Button=De;var at=It},584:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Bt}});var E=ee(59301),Ae=ee(92310),pe=ee.n(Ae),Ge=ee(9017),Ee=ee(17835),be=ee(57700),Ze=()=>{const[,je]=(0,be.ZP)(),[Te]=(0,Ge.Z)("Empty"),Ve=new Ee.FastColor(je.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return E.createElement("svg",{style:Ve,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,(Te==null?void 0:Te.description)||"Empty"),E.createElement("g",{fill:"none",fillRule:"evenodd"},E.createElement("g",{transform:"translate(24 31.67)"},E.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),E.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"}),E.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)"}),E.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"}),E.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"})),E.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"}),E.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},E.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),E.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ce=()=>{const[,je]=(0,be.ZP)(),[Te]=(0,Ge.Z)("Empty"),{colorFill:Qe,colorFillTertiary:Ve,colorFillQuaternary:Tt,colorBgContainer:ht}=je,{borderColor:Xe,shadowColor:et,contentColor:Me}=(0,E.useMemo)(()=>({borderColor:new Ee.FastColor(Qe).onBackground(ht).toHexString(),shadowColor:new Ee.FastColor(Ve).onBackground(ht).toHexString(),contentColor:new Ee.FastColor(Tt).onBackground(ht).toHexString()}),[Qe,Ve,Tt,ht]);return E.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,(Te==null?void 0:Te.description)||"Empty"),E.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},E.createElement("ellipse",{fill:et,cx:"32",cy:"33",rx:"32",ry:"7"}),E.createElement("g",{fillRule:"nonzero",stroke:Xe},E.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"}),E.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:Me}))))},We=ee(16931),De=ee(51636);const It=je=>{const{componentCls:Te,margin:Qe,marginXS:Ve,marginXL:Tt,fontSize:ht,lineHeight:Xe}=je;return{[Te]:{marginInline:Ve,fontSize:ht,lineHeight:Xe,textAlign:"center",[`${Te}-image`]:{height:je.emptyImgHeight,marginBottom:Ve,opacity:je.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Te}-description`]:{color:je.colorTextDescription},[`${Te}-footer`]:{marginTop:Qe},"&-normal":{marginBlock:Tt,color:je.colorTextDescription,[`${Te}-description`]:{color:je.colorTextDescription},[`${Te}-image`]:{height:je.emptyImgHeightMD}},"&-small":{marginBlock:Ve,color:je.colorTextDescription,[`${Te}-image`]:{height:je.emptyImgHeightSM}}}}};var at=(0,We.I$)("Empty",je=>{const{componentCls:Te,controlHeightLG:Qe,calc:Ve}=je,Tt=(0,De.mergeToken)(je,{emptyImgCls:`${Te}-img`,emptyImgHeight:Ve(Qe).mul(2.5).equal(),emptyImgHeightMD:Qe,emptyImgHeightSM:Ve(Qe).mul(.875).equal()});return[It(Tt)]}),qe=ee(48755),He=function(je,Te){var Qe={};for(var Ve in je)Object.prototype.hasOwnProperty.call(je,Ve)&&Te.indexOf(Ve)<0&&(Qe[Ve]=je[Ve]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,Ve=Object.getOwnPropertySymbols(je);Tt<Ve.length;Tt++)Te.indexOf(Ve[Tt])<0&&Object.prototype.propertyIsEnumerable.call(je,Ve[Tt])&&(Qe[Ve[Tt]]=je[Ve[Tt]]);return Qe};const Be=E.createElement(Ze,null),ut=E.createElement(ce,null),St=je=>{const{className:Te,rootClassName:Qe,prefixCls:Ve,image:Tt=Be,description:ht,children:Xe,imageStyle:et,style:Me,classNames:pt,styles:Ye}=je,ye=He(je,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:jt,direction:Ue,className:nt,style:zt,classNames:Ce,styles:de}=(0,qe.dj)("empty"),vt=jt("empty",Ve),[Kt,Lt,Pe]=at(vt),[ot]=(0,Ge.Z)("Empty"),rt=typeof ht!="undefined"?ht:ot==null?void 0:ot.description,an=typeof rt=="string"?rt:"empty";let tt=null;return typeof Tt=="string"?tt=E.createElement("img",{alt:an,src:Tt}):tt=Tt,Kt(E.createElement("div",Object.assign({className:pe()(Lt,Pe,vt,nt,{[`${vt}-normal`]:Tt===ut,[`${vt}-rtl`]:Ue==="rtl"},Te,Qe,Ce.root,pt==null?void 0:pt.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},de.root),zt),Ye==null?void 0:Ye.root),Me)},ye),E.createElement("div",{className:pe()(`${vt}-image`,Ce.image,pt==null?void 0:pt.image),style:Object.assign(Object.assign(Object.assign({},et),de.image),Ye==null?void 0:Ye.image)},tt),rt&&E.createElement("div",{className:pe()(`${vt}-description`,Ce.description,pt==null?void 0:pt.description),style:Object.assign(Object.assign({},de.description),Ye==null?void 0:Ye.description)},rt),Xe&&E.createElement("div",{className:pe()(`${vt}-footer`,Ce.footer,pt==null?void 0:pt.footer),style:Object.assign(Object.assign({},de.footer),Ye==null?void 0:Ye.footer)},Xe)))};St.PRESENTED_IMAGE_DEFAULT=Be,St.PRESENTED_IMAGE_SIMPLE=ut;var Bt=St},28284:function(fn,Ht,ee){"use strict";ee.d(Ht,{default:function(){return xt}});var E=ee(56553),Ae=ee(77654),pe=ee(59301),Ge=ee(92310),Ee=ee.n(Ge),be=ee(77900),Se=ee(86641),Ze=ee(83397);function Ne(Le){const[ct,$e]=pe.useState(Le);return pe.useEffect(()=>{const dt=setTimeout(()=>{$e(Le)},Le.length?0:10);return()=>{clearTimeout(dt)}},[Le]),ct}var ce=ee(36237),We=ee(63356),De=ee(34925),It=ee(34961),at=ee(51636),qe=ee(16931),Be=Le=>{const{componentCls:ct}=Le,$e=`${ct}-show-help`,dt=`${ct}-show-help-item`;return{[$e]:{transition:`opacity ${Le.motionDurationFast} ${Le.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[dt]:{overflow:"hidden",transition:`height ${Le.motionDurationFast} ${Le.motionEaseInOut},
|
|
|
opacity ${Le.motionDurationFast} ${Le.motionEaseInOut},
|
|
|
transform ${Le.motionDurationFast} ${Le.motionEaseInOut} !important`,[`&${dt}-appear, &${dt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${dt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ut=Le=>({legend:{display:"block",width:"100%",marginBottom:Le.marginLG,padding:0,color:Le.colorTextDescription,fontSize:Le.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,ce.unit)(Le.lineWidth)} ${Le.lineType} ${Le.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,ce.unit)(Le.controlOutlineWidth)} ${Le.controlOutline}`},output:{display:"block",paddingTop:15,color:Le.colorText,fontSize:Le.fontSize,lineHeight:Le.lineHeight}}),St=(Le,ct)=>{const{formItemCls:$e}=Le;return{[$e]:{[`${$e}-label > label`]:{height:ct},[`${$e}-control-input`]:{minHeight:ct}}}},Bt=Le=>{const{componentCls:ct}=Le;return{[Le.componentCls]:Object.assign(Object.assign(Object.assign({},(0,We.Wf)(Le)),ut(Le)),{[`${ct}-text`]:{display:"inline-block",paddingInlineEnd:Le.paddingSM},"&-small":Object.assign({},St(Le,Le.controlHeightSM)),"&-large":Object.assign({},St(Le,Le.controlHeightLG))})}},je=Le=>{const{formItemCls:ct,iconCls:$e,rootPrefixCls:dt,antCls:Pt,labelRequiredMarkColor:yn,labelColor:Cn,labelFontSize:Mn,labelHeight:Qt,labelColonMarginInlineStart:_t,labelColonMarginInlineEnd:Yt,itemMarginBottom:Pn}=Le;return{[ct]:Object.assign(Object.assign({},(0,We.Wf)(Le)),{marginBottom:Pn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${Pt}-row`]:{display:"none"},"&-has-warning":{[`${ct}-split`]:{color:Le.colorError}},"&-has-error":{[`${ct}-split`]:{color:Le.colorWarning}},[`${ct}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Le.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Qt,color:Cn,fontSize:Mn,[`> ${$e}`]:{fontSize:Le.fontSize,verticalAlign:"top"},[`&${ct}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Le.marginXXS,color:yn,fontSize:Le.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${ct}-required-mark-hidden, &${ct}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${ct}-optional`]:{display:"inline-block",marginInlineStart:Le.marginXXS,color:Le.colorTextDescription,[`&${ct}-required-mark-hidden`]:{display:"none"}},[`${ct}-tooltip`]:{color:Le.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Le.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:_t,marginInlineEnd:Yt},[`&${ct}-no-colon::after`]:{content:'"\\a0"'}}},[`${ct}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${dt}-col-'"]):not([class*="' ${dt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Le.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[ct]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Le.colorTextDescription,fontSize:Le.fontSize,lineHeight:Le.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Le.controlHeightSM,transition:`color ${Le.motionDurationMid} ${Le.motionEaseOut}`},"&-explain":{"&-error":{color:Le.colorError},"&-warning":{color:Le.colorWarning}}},[`&-with-help ${ct}-explain`]:{height:"auto",opacity:1},[`${ct}-feedback-icon`]:{fontSize:Le.fontSize,textAlign:"center",visibility:"visible",animationName:De.kr,animationDuration:Le.motionDurationMid,animationTimingFunction:Le.motionEaseOutBack,pointerEvents:"none","&-success":{color:Le.colorSuccess},"&-error":{color:Le.colorError},"&-warning":{color:Le.colorWarning},"&-validating":{color:Le.colorPrimary}}})}},Te=(Le,ct)=>{const{formItemCls:$e}=Le;return{[`${ct}-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"}}}}},Qe=Le=>{const{componentCls:ct,formItemCls:$e,inlineItemMarginBottom:dt}=Le;return{[`${ct}-inline`]:{display:"flex",flexWrap:"wrap",[$e]:{flex:"none",marginInlineEnd:Le.margin,marginBottom:dt,"&-row":{flexWrap:"nowrap"},[`> ${$e}-label,
|
|
|
> ${$e}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${$e}-label`]:{flex:"none"},[`${ct}-text`]:{display:"inline-block"},[`${$e}-has-feedback`]:{display:"inline-block"}}}}},Ve=Le=>({padding:Le.verticalLabelPadding,margin:Le.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Tt=Le=>{const{componentCls:ct,formItemCls:$e,rootPrefixCls:dt}=Le;return{[`${$e} ${$e}-label`]:Ve(Le),[`${ct}:not(${ct}-inline)`]:{[$e]:{flexWrap:"wrap",[`${$e}-label, ${$e}-control`]:{[`&:not([class*=" ${dt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ht=Le=>{const{componentCls:ct,formItemCls:$e,antCls:dt}=Le;return{[`${ct}-vertical`]:{[`${$e}:not(${$e}-horizontal)`]:{[`${$e}-row`]:{flexDirection:"column"},[`${$e}-label > label`]:{height:"auto"},[`${$e}-control`]:{width:"100%"},[`${$e}-label,
|
|
|
${dt}-col-24${$e}-label,
|
|
|
${dt}-col-xl-24${$e}-label`]:Ve(Le)}},[`@media (max-width: ${(0,ce.unit)(Le.screenXSMax)})`]:[Tt(Le),{[ct]:{[`${$e}:not(${$e}-horizontal)`]:{[`${dt}-col-xs-24${$e}-label`]:Ve(Le)}}}],[`@media (max-width: ${(0,ce.unit)(Le.screenSMMax)})`]:{[ct]:{[`${$e}:not(${$e}-horizontal)`]:{[`${dt}-col-sm-24${$e}-label`]:Ve(Le)}}},[`@media (max-width: ${(0,ce.unit)(Le.screenMDMax)})`]:{[ct]:{[`${$e}:not(${$e}-horizontal)`]:{[`${dt}-col-md-24${$e}-label`]:Ve(Le)}}},[`@media (max-width: ${(0,ce.unit)(Le.screenLGMax)})`]:{[ct]:{[`${$e}:not(${$e}-horizontal)`]:{[`${dt}-col-lg-24${$e}-label`]:Ve(Le)}}}}},Xe=Le=>{const{formItemCls:ct,antCls:$e}=Le;return{[`${ct}-vertical`]:{[`${ct}-row`]:{flexDirection:"column"},[`${ct}-label > label`]:{height:"auto"},[`${ct}-control`]:{width:"100%"}},[`${ct}-vertical ${ct}-label,
|
|
|
${$e}-col-24${ct}-label,
|
|
|
${$e}-col-xl-24${ct}-label`]:Ve(Le),[`@media (max-width: ${(0,ce.unit)(Le.screenXSMax)})`]:[Tt(Le),{[ct]:{[`${$e}-col-xs-24${ct}-label`]:Ve(Le)}}],[`@media (max-width: ${(0,ce.unit)(Le.screenSMMax)})`]:{[ct]:{[`${$e}-col-sm-24${ct}-label`]:Ve(Le)}},[`@media (max-width: ${(0,ce.unit)(Le.screenMDMax)})`]:{[ct]:{[`${$e}-col-md-24${ct}-label`]:Ve(Le)}},[`@media (max-width: ${(0,ce.unit)(Le.screenLGMax)})`]:{[ct]:{[`${$e}-col-lg-24${ct}-label`]:Ve(Le)}}}},et=Le=>({labelRequiredMarkColor:Le.colorError,labelColor:Le.colorTextHeading,labelFontSize:Le.fontSize,labelHeight:Le.controlHeight,labelColonMarginInlineStart:Le.marginXXS/2,labelColonMarginInlineEnd:Le.marginXS,itemMarginBottom:Le.marginLG,verticalLabelPadding:`0 0 ${Le.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Me=(Le,ct)=>(0,at.mergeToken)(Le,{formItemCls:`${Le.componentCls}-item`,rootPrefixCls:ct});var pt=(0,qe.I$)("Form",(Le,ct)=>{let{rootPrefixCls:$e}=ct;const dt=Me(Le,$e);return[Bt(dt),je(dt),Be(dt),Te(dt,dt.componentCls),Te(dt,dt.formItemCls),Qe(dt),ht(dt),Xe(dt),(0,It.Z)(dt),De.kr]},et,{order:-1e3});const Ye=[];function ye(Le,ct,$e){let dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Le=="string"?Le:`${ct}-${dt}`,error:Le,errorStatus:$e}}var Ue=Le=>{let{help:ct,helpStatus:$e,errors:dt=Ye,warnings:Pt=Ye,className:yn,fieldId:Cn,onVisibleChanged:Mn}=Le;const{prefixCls:Qt}=pe.useContext(E.Rk),_t=`${Qt}-item-explain`,Yt=(0,Ze.Z)(Qt),[Pn,Fn,zn]=pt(Qt,Yt),jn=pe.useMemo(()=>(0,Se.Z)(Qt),[Qt]),Dr=Ne(dt),Rr=Ne(Pt),zr=pe.useMemo(()=>ct!=null?[ye(ct,"help",$e)]:[].concat((0,Ae.Z)(Dr.map((or,Or)=>ye(or,"error","error",Or))),(0,Ae.Z)(Rr.map((or,Or)=>ye(or,"warning","warning",Or)))),[ct,$e,Dr,Rr]),mr=pe.useMemo(()=>{const or={};return zr.forEach(Or=>{let{key:Qr}=Or;or[Qr]=(or[Qr]||0)+1}),zr.map((Or,Qr)=>Object.assign(Object.assign({},Or),{key:or[Or.key]>1?`${Or.key}-fallback-${Qr}`:Or.key}))},[zr]),er={};return Cn&&(er.id=`${Cn}_help`),Pn(pe.createElement(be.default,{motionDeadline:jn.motionDeadline,motionName:`${Qt}-show-help`,visible:!!mr.length,onVisibleChanged:Mn},or=>{const{className:Or,style:Qr}=or;return pe.createElement("div",Object.assign({},er,{className:Ee()(_t,Or,zn,Yt,yn,Fn),style:Qr}),pe.createElement(be.CSSMotionList,Object.assign({keys:mr},(0,Se.Z)(Qt),{motionName:`${Qt}-show-help-item`,component:!1}),Hr=>{const{key:Yr,error:Kr,errorStatus:kr,className:Fr,style:oi}=Hr;return pe.createElement("div",{key:Yr,className:Ee()(Fr,{[`${_t}-${kr}`]:kr}),style:oi},Kr)}))}))},nt=ee(69180),zt=ee(48755),Ce=ee(2171),de=ee(31756),vt=ee(23069),Kt=ee(76846),Lt=ee(16722);const Pe=["parentNode"],ot="form_item";function rt(Le){return Le===void 0||Le===!1?[]:Array.isArray(Le)?Le:[Le]}function an(Le,ct){if(!Le.length)return;const $e=Le.join("_");return ct?`${ct}_${$e}`:Pe.includes($e)?`${ot}_${$e}`:$e}function tt(Le,ct,$e,dt,Pt,yn){let Cn=dt;return yn!==void 0?Cn=yn:$e.validating?Cn="validating":Le.length?Cn="error":ct.length?Cn="warning":($e.touched||Pt&&$e.validated)&&(Cn="success"),Cn}var Rt=function(Le,ct){var $e={};for(var dt in Le)Object.prototype.hasOwnProperty.call(Le,dt)&&ct.indexOf(dt)<0&&($e[dt]=Le[dt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,dt=Object.getOwnPropertySymbols(Le);Pt<dt.length;Pt++)ct.indexOf(dt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Le,dt[Pt])&&($e[dt[Pt]]=Le[dt[Pt]]);return $e};function _e(Le){return rt(Le).join("_")}function Gt(Le,ct){const $e=ct.getFieldInstance(Le),dt=(0,Kt.bn)($e);if(dt)return dt;const Pt=an(rt(Le),ct.__INTERNAL__.name);if(Pt)return document.getElementById(Pt)}function wt(Le){const[ct]=(0,nt.useForm)(),$e=pe.useRef({}),dt=pe.useMemo(()=>Le!=null?Le:Object.assign(Object.assign({},ct),{__INTERNAL__:{itemRef:Pt=>yn=>{const Cn=_e(Pt);yn?$e.current[Cn]=yn:delete $e.current[Cn]}},scrollToField:function(Pt){let yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:Cn}=yn,Mn=Rt(yn,["focus"]),Qt=Gt(Pt,dt);Qt&&((0,Lt.Z)(Qt,Object.assign({scrollMode:"if-needed",block:"nearest"},Mn)),Cn&&dt.focusField(Pt))},focusField:Pt=>{var yn,Cn;const Mn=dt.getFieldInstance(Pt);typeof(Mn==null?void 0:Mn.focus)=="function"?Mn.focus():(Cn=(yn=Gt(Pt,dt))===null||yn===void 0?void 0:yn.focus)===null||Cn===void 0||Cn.call(yn)},getFieldInstance:Pt=>{const yn=_e(Pt);return $e.current[yn]}}),[Le,ct]);return[dt]}var ae=ee(98350),ne=function(Le,ct){var $e={};for(var dt in Le)Object.prototype.hasOwnProperty.call(Le,dt)&&ct.indexOf(dt)<0&&($e[dt]=Le[dt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,dt=Object.getOwnPropertySymbols(Le);Pt<dt.length;Pt++)ct.indexOf(dt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Le,dt[Pt])&&($e[dt[Pt]]=Le[dt[Pt]]);return $e};const te=(Le,ct)=>{const $e=pe.useContext(Ce.Z),{getPrefixCls:dt,direction:Pt,requiredMark:yn,colon:Cn,scrollToFirstError:Mn,className:Qt,style:_t}=(0,zt.dj)("form"),{prefixCls:Yt,className:Pn,rootClassName:Fn,size:zn,disabled:jn=$e,form:Dr,colon:Rr,labelAlign:zr,labelWrap:mr,labelCol:er,wrapperCol:or,hideRequiredMark:Or,layout:Qr="horizontal",scrollToFirstError:Hr,requiredMark:Yr,onFinishFailed:Kr,name:kr,style:Fr,feedbackIcons:oi,variant:qr}=Le,ei=ne(Le,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),si=(0,de.Z)(zn),ci=pe.useContext(ae.Z),Zr=pe.useMemo(()=>Yr!==void 0?Yr:Or?!1:yn!==void 0?yn:!0,[Or,Yr,yn]),ti=Rr!=null?Rr:Cn,wr=dt("form",Yt),mi=(0,Ze.Z)(wr),[Hi,Ui,yi]=pt(wr,mi),Ii=Ee()(wr,`${wr}-${Qr}`,{[`${wr}-hide-required-mark`]:Zr===!1,[`${wr}-rtl`]:Pt==="rtl",[`${wr}-${si}`]:si},yi,mi,Ui,Qt,Pn,Fn),[bi]=wt(Dr),{__INTERNAL__:Ri}=bi;Ri.name=kr;const Ki=pe.useMemo(()=>({name:kr,labelAlign:zr,labelCol:er,labelWrap:mr,wrapperCol:or,vertical:Qr==="vertical",colon:ti,requiredMark:Zr,itemRef:Ri.itemRef,form:bi,feedbackIcons:oi}),[kr,zr,er,or,Qr,ti,Zr,bi,oi]),ni=pe.useRef(null);pe.useImperativeHandle(ct,()=>{var Ln;return Object.assign(Object.assign({},bi),{nativeElement:(Ln=ni.current)===null||Ln===void 0?void 0:Ln.nativeElement})});const ar=(Ln,Rn)=>{if(Ln){let On={block:"nearest"};typeof Ln=="object"&&(On=Object.assign(Object.assign({},On),Ln)),bi.scrollToField(Rn,On)}},wn=Ln=>{if(Kr==null||Kr(Ln),Ln.errorFields.length){const Rn=Ln.errorFields[0].name;if(Hr!==void 0){ar(Hr,Rn);return}Mn!==void 0&&ar(Mn,Rn)}};return Hi(pe.createElement(E.pg.Provider,{value:qr},pe.createElement(Ce.n,{disabled:jn},pe.createElement(vt.Z.Provider,{value:si},pe.createElement(E.RV,{validateMessages:ci},pe.createElement(E.q3.Provider,{value:Ki},pe.createElement(nt.default,Object.assign({id:kr},ei,{name:kr,onFinishFailed:wn,form:bi,ref:ni,style:Object.assign(Object.assign({},_t),Fr),className:Ii}))))))))};var ue=pe.forwardRef(te),re=ee(41799),le=ee(8654),ge=ee(22703),lt=ee(32383),ke=ee(11592);function Ie(Le){if(typeof Le=="function")return Le;const ct=(0,ke.Z)(Le);return ct.length<=1?ct[0]:ct}const Fe=()=>{const{status:Le,errors:ct=[],warnings:$e=[]}=pe.useContext(E.aM);return{status:Le,errors:ct,warnings:$e}};Fe.Context=E.aM;var Ke=Fe,it=ee(16089);function xe(Le){const[ct,$e]=pe.useState(Le),dt=pe.useRef(null),Pt=pe.useRef([]),yn=pe.useRef(!1);pe.useEffect(()=>(yn.current=!1,()=>{yn.current=!0,it.Z.cancel(dt.current),dt.current=null}),[]);function Cn(Mn){yn.current||(dt.current===null&&(Pt.current=[],dt.current=(0,it.Z)(()=>{dt.current=null,$e(Qt=>{let _t=Qt;return Pt.current.forEach(Yt=>{_t=Yt(_t)}),_t})})),Pt.current.push(Mn))}return[ct,Cn]}function Oe(){const{itemRef:Le}=pe.useContext(E.q3),ct=pe.useRef({});function $e(dt,Pt){const yn=Pt&&typeof Pt=="object"&&(0,le.C4)(Pt),Cn=dt.join("_");return(ct.current.name!==Cn||ct.current.originRef!==yn)&&(ct.current.name=Cn,ct.current.originRef=yn,ct.current.ref=(0,le.sQ)(Le(dt),yn)),ct.current.ref}return $e}var Ot=ee(29194),Mt=ee(34280),Vt=ee(2738),Ft=ee(65970),mt=ee(70425),Zt=ee(5472);const Dt=Le=>{const{formItemCls:ct}=Le;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${ct}-control`]:{display:"flex"}}}};var Ut=(0,qe.bk)(["Form","item-item"],(Le,ct)=>{let{rootPrefixCls:$e}=ct;const dt=Me(Le,$e);return[Dt(dt)]}),sn=function(Le,ct){var $e={};for(var dt in Le)Object.prototype.hasOwnProperty.call(Le,dt)&&ct.indexOf(dt)<0&&($e[dt]=Le[dt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,dt=Object.getOwnPropertySymbols(Le);Pt<dt.length;Pt++)ct.indexOf(dt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Le,dt[Pt])&&($e[dt[Pt]]=Le[dt[Pt]]);return $e};const pn=24;var ze=Le=>{const{prefixCls:ct,status:$e,labelCol:dt,wrapperCol:Pt,children:yn,errors:Cn,warnings:Mn,_internalItemRender:Qt,extra:_t,help:Yt,fieldId:Pn,marginBottom:Fn,onErrorVisibleChanged:zn,label:jn}=Le,Dr=`${ct}-item`,Rr=pe.useContext(E.q3),zr=pe.useMemo(()=>{let ei=Object.assign({},Pt||Rr.wrapperCol||{});return jn===null&&!dt&&!Pt&&Rr.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(ci=>{const Zr=ci?[ci]:[],ti=(0,mt.U2)(Rr.labelCol,Zr),wr=typeof ti=="object"?ti:{},mi=(0,mt.U2)(ei,Zr),Hi=typeof mi=="object"?mi:{};"span"in wr&&!("offset"in Hi)&&wr.span<pn&&(ei=(0,mt.t8)(ei,[].concat(Zr,["offset"]),wr.span))}),ei},[Pt,Rr]),mr=Ee()(`${Dr}-control`,zr.className),er=pe.useMemo(()=>{const{labelCol:ei,wrapperCol:si}=Rr;return sn(Rr,["labelCol","wrapperCol"])},[Rr]),or=pe.useRef(null),[Or,Qr]=pe.useState(0);(0,Mt.Z)(()=>{_t&&or.current?Qr(or.current.clientHeight):Qr(0)},[_t]);const Hr=pe.createElement("div",{className:`${Dr}-control-input`},pe.createElement("div",{className:`${Dr}-control-input-content`},yn)),Yr=pe.useMemo(()=>({prefixCls:ct,status:$e}),[ct,$e]),Kr=Fn!==null||Cn.length||Mn.length?pe.createElement(E.Rk.Provider,{value:Yr},pe.createElement(Ue,{fieldId:Pn,errors:Cn,warnings:Mn,help:Yt,helpStatus:$e,className:`${Dr}-explain-connected`,onVisibleChanged:zn})):null,kr={};Pn&&(kr.id=`${Pn}_extra`);const Fr=_t?pe.createElement("div",Object.assign({},kr,{className:`${Dr}-extra`,ref:or}),_t):null,oi=Kr||Fr?pe.createElement("div",{className:`${Dr}-additional`,style:Fn?{minHeight:Fn+Or}:{}},Kr,Fr):null,qr=Qt&&Qt.mark==="pro_table_render"&&Qt.render?Qt.render(Le,{input:Hr,errorList:Kr,extra:Fr}):pe.createElement(pe.Fragment,null,Hr,oi);return pe.createElement(E.q3.Provider,{value:er},pe.createElement(Zt.Z,Object.assign({},zr,{className:mr}),qr),pe.createElement(Ut,{prefixCls:ct}))},bt=ee(61485),$t=ee(9017),ft=ee(85981),Et=ee(25399),Nt=function(Le,ct){var $e={};for(var dt in Le)Object.prototype.hasOwnProperty.call(Le,dt)&&ct.indexOf(dt)<0&&($e[dt]=Le[dt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,dt=Object.getOwnPropertySymbols(Le);Pt<dt.length;Pt++)ct.indexOf(dt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Le,dt[Pt])&&($e[dt[Pt]]=Le[dt[Pt]]);return $e};function vn(Le){return Le?typeof Le=="object"&&!pe.isValidElement(Le)?Le:{title:Le}:null}var cn=Le=>{let{prefixCls:ct,label:$e,htmlFor:dt,labelCol:Pt,labelAlign:yn,colon:Cn,required:Mn,requiredMark:Qt,tooltip:_t,vertical:Yt}=Le;var Pn;const[Fn]=(0,$t.Z)("Form"),{labelAlign:zn,labelCol:jn,labelWrap:Dr,colon:Rr}=pe.useContext(E.q3);if(!$e)return null;const zr=Pt||jn||{},mr=yn||zn,er=`${ct}-item-label`,or=Ee()(er,mr==="left"&&`${er}-left`,zr.className,{[`${er}-wrap`]:!!Dr});let Or=$e;const Qr=Cn===!0||Rr!==!1&&Cn!==!1;Qr&&!Yt&&typeof $e=="string"&&$e.trim()&&(Or=$e.replace(/[:|:]\s*$/,""));const Yr=vn(_t);if(Yr){const{icon:ei=pe.createElement(bt.Z,null)}=Yr,si=Nt(Yr,["icon"]),ci=pe.createElement(Et.Z,Object.assign({},si),pe.cloneElement(ei,{className:`${ct}-item-tooltip`,title:"",onClick:Zr=>{Zr.preventDefault()},tabIndex:null}));Or=pe.createElement(pe.Fragment,null,Or,ci)}const Kr=Qt==="optional",kr=typeof Qt=="function",Fr=Qt===!1;kr?Or=Qt(Or,{required:!!Mn}):Kr&&!Mn&&(Or=pe.createElement(pe.Fragment,null,Or,pe.createElement("span",{className:`${ct}-item-optional`,title:""},(Fn==null?void 0:Fn.optional)||((Pn=ft.Z.Form)===null||Pn===void 0?void 0:Pn.optional))));let oi;Fr?oi="hidden":(Kr||kr)&&(oi="optional");const qr=Ee()({[`${ct}-item-required`]:Mn,[`${ct}-item-required-mark-${oi}`]:oi,[`${ct}-item-no-colon`]:!Qr});return pe.createElement(Zt.Z,Object.assign({},zr,{className:or}),pe.createElement("label",{htmlFor:dt,className:qr,title:typeof $e=="string"?$e:""},Or))},bn=ee(29679),en=ee(19248),on=ee(96512),gn=ee(58617);const $n={success:bn.Z,warning:on.Z,error:en.Z,validating:gn.Z};function hn(Le){let{children:ct,errors:$e,warnings:dt,hasFeedback:Pt,validateStatus:yn,prefixCls:Cn,meta:Mn,noStyle:Qt}=Le;const _t=`${Cn}-item`,{feedbackIcons:Yt}=pe.useContext(E.q3),Pn=tt($e,dt,Mn,null,!!Pt,yn),{isFormItemInput:Fn,status:zn,hasFeedback:jn,feedbackIcon:Dr}=pe.useContext(E.aM),Rr=pe.useMemo(()=>{var zr;let mr;if(Pt){const or=Pt!==!0&&Pt.icons||Yt,Or=Pn&&((zr=or==null?void 0:or({status:Pn,errors:$e,warnings:dt}))===null||zr===void 0?void 0:zr[Pn]),Qr=Pn&&$n[Pn];mr=Or!==!1&&Qr?pe.createElement("span",{className:Ee()(`${_t}-feedback-icon`,`${_t}-feedback-icon-${Pn}`)},Or||pe.createElement(Qr,null)):null}const er={status:Pn||"",errors:$e,warnings:dt,hasFeedback:!!Pt,feedbackIcon:mr,isFormItemInput:!0};return Qt&&(er.status=(Pn!=null?Pn:zn)||"",er.isFormItemInput=Fn,er.hasFeedback=!!(Pt!=null?Pt:jn),er.feedbackIcon=Pt!==void 0?er.feedbackIcon:Dr),er},[Pn,Pt,Qt,Fn,zn]);return pe.createElement(E.aM.Provider,{value:Rr},ct)}var In=function(Le,ct){var $e={};for(var dt in Le)Object.prototype.hasOwnProperty.call(Le,dt)&&ct.indexOf(dt)<0&&($e[dt]=Le[dt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,dt=Object.getOwnPropertySymbols(Le);Pt<dt.length;Pt++)ct.indexOf(dt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Le,dt[Pt])&&($e[dt[Pt]]=Le[dt[Pt]]);return $e};function xn(Le){const{prefixCls:ct,className:$e,rootClassName:dt,style:Pt,help:yn,errors:Cn,warnings:Mn,validateStatus:Qt,meta:_t,hasFeedback:Yt,hidden:Pn,children:Fn,fieldId:zn,required:jn,isRequired:Dr,onSubItemMetaChange:Rr,layout:zr}=Le,mr=In(Le,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),er=`${ct}-item`,{requiredMark:or,vertical:Or}=pe.useContext(E.q3),Qr=Or||zr==="vertical",Hr=pe.useRef(null),Yr=Ne(Cn),Kr=Ne(Mn),kr=yn!=null,Fr=!!(kr||Cn.length||Mn.length),oi=!!Hr.current&&(0,Ot.Z)(Hr.current),[qr,ei]=pe.useState(null);(0,Mt.Z)(()=>{if(Fr&&Hr.current){const wr=getComputedStyle(Hr.current);ei(parseInt(wr.marginBottom,10))}},[Fr,oi]);const si=wr=>{wr||ei(null)},Zr=function(){let wr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const mi=wr?Yr:_t.errors,Hi=wr?Kr:_t.warnings;return tt(mi,Hi,_t,"",!!Yt,Qt)}(),ti=Ee()(er,$e,dt,{[`${er}-with-help`]:kr||Yr.length||Kr.length,[`${er}-has-feedback`]:Zr&&Yt,[`${er}-has-success`]:Zr==="success",[`${er}-has-warning`]:Zr==="warning",[`${er}-has-error`]:Zr==="error",[`${er}-is-validating`]:Zr==="validating",[`${er}-hidden`]:Pn,[`${er}-${zr}`]:zr});return pe.createElement("div",{className:ti,style:Pt,ref:Hr},pe.createElement(Ft.Z,Object.assign({className:`${er}-row`},(0,Vt.Z)(mr,["_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"])),pe.createElement(cn,Object.assign({htmlFor:zn},Le,{requiredMark:or,required:jn!=null?jn:Dr,prefixCls:ct,vertical:Qr})),pe.createElement(ze,Object.assign({},Le,_t,{errors:Yr,warnings:Kr,prefixCls:ct,status:Zr,help:yn,marginBottom:qr,onErrorVisibleChanged:si}),pe.createElement(E.qI.Provider,{value:Rr},pe.createElement(hn,{prefixCls:ct,meta:_t,errors:_t.errors,warnings:_t.warnings,hasFeedback:Yt,validateStatus:Zr},Fn)))),!!qr&&pe.createElement("div",{className:`${er}-margin-offset`,style:{marginBottom:-qr}}))}const Wn="__SPLIT__",lr=null;function qn(Le,ct){const $e=Object.keys(Le),dt=Object.keys(ct);return $e.length===dt.length&&$e.every(Pt=>{const yn=Le[Pt],Cn=ct[Pt];return yn===Cn||typeof yn=="function"||typeof Cn=="function"})}const Gn=pe.memo(Le=>{let{children:ct}=Le;return ct},(Le,ct)=>qn(Le.control,ct.control)&&Le.update===ct.update&&Le.childProps.length===ct.childProps.length&&Le.childProps.every(($e,dt)=>$e===ct.childProps[dt]));function cr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function gr(Le){const{name:ct,noStyle:$e,className:dt,dependencies:Pt,prefixCls:yn,shouldUpdate:Cn,rules:Mn,children:Qt,required:_t,label:Yt,messageVariables:Pn,trigger:Fn="onChange",validateTrigger:zn,hidden:jn,help:Dr,layout:Rr}=Le,{getPrefixCls:zr}=pe.useContext(zt.E_),{name:mr}=pe.useContext(E.q3),er=Ie(Qt),or=typeof er=="function",Or=pe.useContext(E.qI),{validateTrigger:Qr}=pe.useContext(nt.FieldContext),Hr=zn!==void 0?zn:Qr,Yr=ct!=null,Kr=zr("form",yn),kr=(0,Ze.Z)(Kr),[Fr,oi,qr]=pt(Kr,kr),ei=(0,lt.ln)("Form.Item"),si=pe.useContext(nt.ListContext),ci=pe.useRef(null),[Zr,ti]=xe({}),[wr,mi]=(0,re.Z)(()=>cr()),Hi=ni=>{const ar=si==null?void 0:si.getKey(ni.name);if(mi(ni.destroy?cr():ni,!0),$e&&Dr!==!1&&Or){let wn=ni.name;if(ni.destroy)wn=ci.current||wn;else if(ar!==void 0){const[Ln,Rn]=ar;wn=[Ln].concat((0,Ae.Z)(Rn)),ci.current=wn}Or(ni,wn)}},Ui=(ni,ar)=>{ti(wn=>{const Ln=Object.assign({},wn),On=[].concat((0,Ae.Z)(ni.name.slice(0,-1)),(0,Ae.Z)(ar)).join(Wn);return ni.destroy?delete Ln[On]:Ln[On]=ni,Ln})},[yi,Ii]=pe.useMemo(()=>{const ni=(0,Ae.Z)(wr.errors),ar=(0,Ae.Z)(wr.warnings);return Object.values(Zr).forEach(wn=>{ni.push.apply(ni,(0,Ae.Z)(wn.errors||[])),ar.push.apply(ar,(0,Ae.Z)(wn.warnings||[]))}),[ni,ar]},[Zr,wr.errors,wr.warnings]),bi=Oe();function Ri(ni,ar,wn){return $e&&!jn?pe.createElement(hn,{prefixCls:Kr,hasFeedback:Le.hasFeedback,validateStatus:Le.validateStatus,meta:wr,errors:yi,warnings:Ii,noStyle:!0},ni):pe.createElement(xn,Object.assign({key:"row"},Le,{className:Ee()(dt,qr,kr,oi),prefixCls:Kr,fieldId:ar,isRequired:wn,errors:yi,warnings:Ii,meta:wr,onSubItemMetaChange:Ui,layout:Rr}),ni)}if(!Yr&&!or&&!Pt)return Fr(Ri(er));let Ki={};return typeof Yt=="string"?Ki.label=Yt:ct&&(Ki.label=String(ct)),Pn&&(Ki=Object.assign(Object.assign({},Ki),Pn)),Fr(pe.createElement(nt.Field,Object.assign({},Le,{messageVariables:Ki,trigger:Fn,validateTrigger:Hr,onMetaChange:Hi}),(ni,ar,wn)=>{const Ln=rt(ct).length&&ar?ar.name:[],Rn=an(Ln,mr),On=_t!==void 0?_t:!!(Mn!=null&&Mn.some(Dn=>{if(Dn&&typeof Dn=="object"&&Dn.required&&!Dn.warningOnly)return!0;if(typeof Dn=="function"){const Bn=Dn(wn);return(Bn==null?void 0:Bn.required)&&!(Bn!=null&&Bn.warningOnly)}return!1})),Qn=Object.assign({},ni);let dr=null;if(Array.isArray(er)&&Yr)dr=er;else if(!(or&&(!(Cn||Pt)||Yr))){if(!(Pt&&!or&&!Yr))if(pe.isValidElement(er)){const Dn=Object.assign(Object.assign({},er.props),Qn);if(Dn.id||(Dn.id=Rn),Dr||yi.length>0||Ii.length>0||Le.extra){const Xn=[];(Dr||yi.length>0)&&Xn.push(`${Rn}_help`),Le.extra&&Xn.push(`${Rn}_extra`),Dn["aria-describedby"]=Xn.join(" ")}yi.length>0&&(Dn["aria-invalid"]="true"),On&&(Dn["aria-required"]="true"),(0,le.Yr)(er)&&(Dn.ref=bi(Ln,er)),new Set([].concat((0,Ae.Z)(rt(Fn)),(0,Ae.Z)(rt(Hr)))).forEach(Xn=>{Dn[Xn]=function(){for(var jr,Si,di,ki,xi,wi=arguments.length,Ai=new Array(wi),Di=0;Di<wi;Di++)Ai[Di]=arguments[Di];(di=Qn[Xn])===null||di===void 0||(jr=di).call.apply(jr,[Qn].concat(Ai)),(xi=(ki=er.props)[Xn])===null||xi===void 0||(Si=xi).call.apply(Si,[ki].concat(Ai))}});const Un=[Dn["aria-required"],Dn["aria-invalid"],Dn["aria-describedby"]];dr=pe.createElement(Gn,{control:Qn,update:er,childProps:Un},(0,ge.Tm)(er,Dn))}else or&&(Cn||Pt)&&!Yr?dr=er(wn):dr=er}return Ri(dr,Rn,On)}))}const Ir=gr;Ir.useStatus=Ke;var pr=Ir,tn=function(Le,ct){var $e={};for(var dt in Le)Object.prototype.hasOwnProperty.call(Le,dt)&&ct.indexOf(dt)<0&&($e[dt]=Le[dt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,dt=Object.getOwnPropertySymbols(Le);Pt<dt.length;Pt++)ct.indexOf(dt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Le,dt[Pt])&&($e[dt[Pt]]=Le[dt[Pt]]);return $e},An=Le=>{var{prefixCls:ct,children:$e}=Le,dt=tn(Le,["prefixCls","children"]);const{getPrefixCls:Pt}=pe.useContext(zt.E_),yn=Pt("form",ct),Cn=pe.useMemo(()=>({prefixCls:yn,status:"error"}),[yn]);return pe.createElement(nt.List,Object.assign({},dt),(Mn,Qt,_t)=>pe.createElement(E.Rk.Provider,{value:Cn},$e(Mn.map(Yt=>Object.assign(Object.assign({},Yt),{fieldKey:Yt.key})),Qt,{errors:_t.errors,warnings:_t.warnings})))};function yr(){const{form:Le}=pe.useContext(E.q3);return Le}const st=ue;st.Item=pr,st.List=An,st.ErrorList=Ue,st.useForm=wt,st.useFormInstance=yr,st.useWatch=nt.useWatch,st.Provider=E.RV,st.create=()=>{};var xt=st},4875:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return mn}});var E=ee(59301),Ae=ee(84105),pe=ee(87395),Ge=ee(92310),Ee=ee.n(Ge),be=ee(60499),Se=ee(18642),Ze=ee(43749),Ne=ee(72190),ce=ee(42244),We=ee(38705),De=ee(17212);function It(){return typeof BigInt=="function"}function at(ze){return!ze&&ze!==0&&!Number.isNaN(ze)||!String(ze).trim()}function qe(ze){var bt=ze.trim(),$t=bt.startsWith("-");$t&&(bt=bt.slice(1)),bt=bt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),bt.startsWith(".")&&(bt="0".concat(bt));var ft=bt||"0",Et=ft.split("."),Nt=Et[0]||"0",vn=Et[1]||"0";Nt==="0"&&vn==="0"&&($t=!1);var kn=$t?"-":"";return{negative:$t,negativeStr:kn,trimStr:ft,integerStr:Nt,decimalStr:vn,fullStr:"".concat(kn).concat(ft)}}function He(ze){var bt=String(ze);return!Number.isNaN(Number(bt))&&bt.includes("e")}function Be(ze){var bt=String(ze);if(He(ze)){var $t=Number(bt.slice(bt.indexOf("e-")+2)),ft=bt.match(/\.(\d+)/);return ft!=null&&ft[1]&&($t+=ft[1].length),$t}return bt.includes(".")&&St(bt)?bt.length-bt.indexOf(".")-1:0}function ut(ze){var bt=String(ze);if(He(ze)){if(ze>Number.MAX_SAFE_INTEGER)return String(It()?BigInt(ze).toString():Number.MAX_SAFE_INTEGER);if(ze<Number.MIN_SAFE_INTEGER)return String(It()?BigInt(ze).toString():Number.MIN_SAFE_INTEGER);bt=ze.toFixed(Be(bt))}return qe(bt).fullStr}function St(ze){return typeof ze=="number"?!Number.isNaN(ze):ze?/^\s*-?\d+(\.\d+)?\s*$/.test(ze)||/^\s*-?\d+\.\s*$/.test(ze)||/^\s*-?\.\d+\s*$/.test(ze):!1}var Bt=function(){function ze(bt){if((0,We.Z)(this,ze),(0,Se.Z)(this,"origin",""),(0,Se.Z)(this,"negative",void 0),(0,Se.Z)(this,"integer",void 0),(0,Se.Z)(this,"decimal",void 0),(0,Se.Z)(this,"decimalLen",void 0),(0,Se.Z)(this,"empty",void 0),(0,Se.Z)(this,"nan",void 0),at(bt)){this.empty=!0;return}if(this.origin=String(bt),bt==="-"||Number.isNaN(bt)){this.nan=!0;return}var $t=bt;if(He($t)&&($t=Number($t)),$t=typeof $t=="string"?$t:ut($t),St($t)){var ft=qe($t);this.negative=ft.negative;var Et=ft.trimStr.split(".");this.integer=BigInt(Et[0]);var Nt=Et[1]||"0";this.decimal=BigInt(Nt),this.decimalLen=Nt.length}else this.nan=!0}return(0,De.Z)(ze,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function($t){var ft="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd($t,"0"));return BigInt(ft)}},{key:"negate",value:function(){var $t=new ze(this.toString());return $t.negative=!$t.negative,$t}},{key:"cal",value:function($t,ft,Et){var Nt=Math.max(this.getDecimalStr().length,$t.getDecimalStr().length),vn=this.alignDecimal(Nt),kn=$t.alignDecimal(Nt),cn=ft(vn,kn).toString(),bn=Et(Nt),en=qe(cn),on=en.negativeStr,gn=en.trimStr,$n="".concat(on).concat(gn.padStart(bn+1,"0"));return new ze("".concat($n.slice(0,-bn),".").concat($n.slice(-bn)))}},{key:"add",value:function($t){if(this.isInvalidate())return new ze($t);var ft=new ze($t);return ft.isInvalidate()?this:this.cal(ft,function(Et,Nt){return Et+Nt},function(Et){return Et})}},{key:"multi",value:function($t){var ft=new ze($t);return this.isInvalidate()||ft.isInvalidate()?new ze(NaN):this.cal(ft,function(Et,Nt){return Et*Nt},function(Et){return Et*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function($t){return this.toString()===($t==null?void 0:$t.toString())}},{key:"lessEquals",value:function($t){return this.add($t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var $t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return $t?this.isInvalidate()?"":qe("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),ze}(),je=function(){function ze(bt){if((0,We.Z)(this,ze),(0,Se.Z)(this,"origin",""),(0,Se.Z)(this,"number",void 0),(0,Se.Z)(this,"empty",void 0),at(bt)){this.empty=!0;return}this.origin=String(bt),this.number=Number(bt)}return(0,De.Z)(ze,[{key:"negate",value:function(){return new ze(-this.toNumber())}},{key:"add",value:function($t){if(this.isInvalidate())return new ze($t);var ft=Number($t);if(Number.isNaN(ft))return this;var Et=this.number+ft;if(Et>Number.MAX_SAFE_INTEGER)return new ze(Number.MAX_SAFE_INTEGER);if(Et<Number.MIN_SAFE_INTEGER)return new ze(Number.MIN_SAFE_INTEGER);var Nt=Math.max(Be(this.number),Be(ft));return new ze(Et.toFixed(Nt))}},{key:"multi",value:function($t){var ft=Number($t);if(this.isInvalidate()||Number.isNaN(ft))return new ze(NaN);var Et=this.number*ft;if(Et>Number.MAX_SAFE_INTEGER)return new ze(Number.MAX_SAFE_INTEGER);if(Et<Number.MIN_SAFE_INTEGER)return new ze(Number.MIN_SAFE_INTEGER);var Nt=Math.max(Be(this.number),Be(ft));return new ze(Et.toFixed(Nt))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function($t){return this.toNumber()===($t==null?void 0:$t.toNumber())}},{key:"lessEquals",value:function($t){return this.add($t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var $t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return $t?this.isInvalidate()?"":ut(this.number):this.origin}}]),ze}();function Te(ze){return It()?new Bt(ze):new je(ze)}function Qe(ze,bt,$t){var ft=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(ze==="")return"";var Et=qe(ze),Nt=Et.negativeStr,vn=Et.integerStr,kn=Et.decimalStr,cn="".concat(bt).concat(kn),bn="".concat(Nt).concat(vn);if($t>=0){var en=Number(kn[$t]);if(en>=5&&!ft){var on=Te(ze).add("".concat(Nt,"0.").concat("0".repeat($t)).concat(10-en));return Qe(on.toString(),bt,$t,ft)}return $t===0?bn:"".concat(bn).concat(bt).concat(kn.padEnd($t,"0").slice(0,$t))}return cn===".0"?bn:"".concat(bn).concat(cn)}var Ve=Te,Tt=ee(36901),ht=ee(34280);function Xe(ze,bt){return typeof Proxy!="undefined"&&ze?new Proxy(ze,{get:function(ft,Et){if(bt[Et])return bt[Et];var Nt=ft[Et];return typeof Nt=="function"?Nt.bind(ft):Nt}}):ze}var et=ee(8654),Me=ee(48736);function pt(ze,bt){var $t=(0,E.useRef)(null);function ft(){try{var Nt=ze.selectionStart,vn=ze.selectionEnd,kn=ze.value,cn=kn.substring(0,Nt),bn=kn.substring(vn);$t.current={start:Nt,end:vn,value:kn,beforeTxt:cn,afterTxt:bn}}catch(en){}}function Et(){if(ze&&$t.current&&bt)try{var Nt=ze.value,vn=$t.current,kn=vn.beforeTxt,cn=vn.afterTxt,bn=vn.start,en=Nt.length;if(Nt.startsWith(kn))en=kn.length;else if(Nt.endsWith(cn))en=Nt.length-$t.current.afterTxt.length;else{var on=kn[bn-1],gn=Nt.indexOf(on,bn-1);gn!==-1&&(en=gn+1)}ze.setSelectionRange(en,en)}catch($n){(0,Me.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat($n.message))}}return[ft,Et]}var Ye=ee(49658),ye=function(){var bt=(0,E.useState)(!1),$t=(0,Ne.Z)(bt,2),ft=$t[0],Et=$t[1];return(0,ht.Z)(function(){Et((0,Ye.Z)())},[]),ft},jt=ye,Ue=ee(16089),nt=200,zt=600;function Ce(ze){var bt=ze.prefixCls,$t=ze.upNode,ft=ze.downNode,Et=ze.upDisabled,Nt=ze.downDisabled,vn=ze.onStep,kn=E.useRef(),cn=E.useRef([]),bn=E.useRef();bn.current=vn;var en=function(){clearTimeout(kn.current)},on=function(qn,Gn){qn.preventDefault(),en(),bn.current(Gn);function cr(){bn.current(Gn),kn.current=setTimeout(cr,nt)}kn.current=setTimeout(cr,zt)};E.useEffect(function(){return function(){en(),cn.current.forEach(function(lr){return Ue.Z.cancel(lr)})}},[]);var gn=jt();if(gn)return null;var $n="".concat(bt,"-handler"),hn=Ee()($n,"".concat($n,"-up"),(0,Se.Z)({},"".concat($n,"-up-disabled"),Et)),In=Ee()($n,"".concat($n,"-down"),(0,Se.Z)({},"".concat($n,"-down-disabled"),Nt)),xn=function(){return cn.current.push((0,Ue.Z)(en))},Wn={unselectable:"on",role:"button",onMouseUp:xn,onMouseLeave:xn};return E.createElement("div",{className:"".concat($n,"-wrap")},E.createElement("span",(0,be.Z)({},Wn,{onMouseDown:function(qn){on(qn,!0)},"aria-label":"Increase Value","aria-disabled":Et,className:hn}),$t||E.createElement("span",{unselectable:"on",className:"".concat(bt,"-handler-up-inner")})),E.createElement("span",(0,be.Z)({},Wn,{onMouseDown:function(qn){on(qn,!1)},"aria-label":"Decrease Value","aria-disabled":Nt,className:In}),ft||E.createElement("span",{unselectable:"on",className:"".concat(bt,"-handler-down-inner")})))}function de(ze){var bt=typeof ze=="number"?ut(ze):qe(ze).fullStr,$t=bt.includes(".");return $t?qe(bt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:ze+"0"}var vt=ee(30292),Kt=function(){var ze=(0,E.useRef)(0),bt=function(){Ue.Z.cancel(ze.current)};return(0,E.useEffect)(function(){return bt},[]),function($t){bt(),ze.current=(0,Ue.Z)(function(){$t()})}},Lt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Pe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],ot=function(bt,$t){return bt||$t.isEmpty()?$t.toString():$t.toNumber()},rt=function(bt){var $t=Ve(bt);return $t.isInvalidate()?null:$t},an=E.forwardRef(function(ze,bt){var $t=ze.prefixCls,ft=ze.className,Et=ze.style,Nt=ze.min,vn=ze.max,kn=ze.step,cn=kn===void 0?1:kn,bn=ze.defaultValue,en=ze.value,on=ze.disabled,gn=ze.readOnly,$n=ze.upHandler,hn=ze.downHandler,In=ze.keyboard,xn=ze.changeOnWheel,Wn=xn===void 0?!1:xn,lr=ze.controls,qn=lr===void 0?!0:lr,Gn=ze.classNames,cr=ze.stringMode,gr=ze.parser,Ir=ze.formatter,pr=ze.precision,tn=ze.decimalSeparator,En=ze.onChange,An=ze.onInput,yr=ze.onPressEnter,st=ze.onStep,xt=ze.changeOnBlur,Le=xt===void 0?!0:xt,ct=ze.domRef,$e=(0,ce.Z)(ze,Lt),dt="".concat($t,"-input"),Pt=E.useRef(null),yn=E.useState(!1),Cn=(0,Ne.Z)(yn,2),Mn=Cn[0],Qt=Cn[1],_t=E.useRef(!1),Yt=E.useRef(!1),Pn=E.useRef(!1),Fn=E.useState(function(){return Ve(en!=null?en:bn)}),zn=(0,Ne.Z)(Fn,2),jn=zn[0],Dr=zn[1];function Rr(Rn){en===void 0&&Dr(Rn)}var zr=E.useCallback(function(Rn,On){if(!On)return pr>=0?pr:Math.max(Be(Rn),Be(cn))},[pr,cn]),mr=E.useCallback(function(Rn){var On=String(Rn);if(gr)return gr(On);var Qn=On;return tn&&(Qn=Qn.replace(tn,".")),Qn.replace(/[^\w.-]+/g,"")},[gr,tn]),er=E.useRef(""),or=E.useCallback(function(Rn,On){if(Ir)return Ir(Rn,{userTyping:On,input:String(er.current)});var Qn=typeof Rn=="number"?ut(Rn):Rn;if(!On){var dr=zr(Qn,On);if(St(Qn)&&(tn||dr>=0)){var Dn=tn||".";Qn=Qe(Qn,Dn,dr)}}return Qn},[Ir,zr,tn]),Or=E.useState(function(){var Rn=bn!=null?bn:en;return jn.isInvalidate()&&["string","number"].includes((0,Ze.Z)(Rn))?Number.isNaN(Rn)?"":Rn:or(jn.toString(),!1)}),Qr=(0,Ne.Z)(Or,2),Hr=Qr[0],Yr=Qr[1];er.current=Hr;function Kr(Rn,On){Yr(or(Rn.isInvalidate()?Rn.toString(!1):Rn.toString(!On),On))}var kr=E.useMemo(function(){return rt(vn)},[vn,pr]),Fr=E.useMemo(function(){return rt(Nt)},[Nt,pr]),oi=E.useMemo(function(){return!kr||!jn||jn.isInvalidate()?!1:kr.lessEquals(jn)},[kr,jn]),qr=E.useMemo(function(){return!Fr||!jn||jn.isInvalidate()?!1:jn.lessEquals(Fr)},[Fr,jn]),ei=pt(Pt.current,Mn),si=(0,Ne.Z)(ei,2),ci=si[0],Zr=si[1],ti=function(On){return kr&&!On.lessEquals(kr)?kr:Fr&&!Fr.lessEquals(On)?Fr:null},wr=function(On){return!ti(On)},mi=function(On,Qn){var dr=On,Dn=wr(dr)||dr.isEmpty();if(!dr.isEmpty()&&!Qn&&(dr=ti(dr)||dr,Dn=!0),!gn&&!on&&Dn){var Bn=dr.toString(),Un=zr(Bn,Qn);return Un>=0&&(dr=Ve(Qe(Bn,".",Un)),wr(dr)||(dr=Ve(Qe(Bn,".",Un,!0)))),dr.equals(jn)||(Rr(dr),En==null||En(dr.isEmpty()?null:ot(cr,dr)),en===void 0&&Kr(dr,Qn)),dr}return jn},Hi=Kt(),Ui=function Rn(On){if(ci(),er.current=On,Yr(On),!Yt.current){var Qn=mr(On),dr=Ve(Qn);dr.isNaN()||mi(dr,!0)}An==null||An(On),Hi(function(){var Dn=On;gr||(Dn=On.replace(/。/g,".")),Dn!==On&&Rn(Dn)})},yi=function(){Yt.current=!0},Ii=function(){Yt.current=!1,Ui(Pt.current.value)},bi=function(On){Ui(On.target.value)},Ri=function(On){var Qn;if(!(On&&oi||!On&&qr)){_t.current=!1;var dr=Ve(Pn.current?de(cn):cn);On||(dr=dr.negate());var Dn=(jn||Ve(0)).add(dr.toString()),Bn=mi(Dn,!1);st==null||st(ot(cr,Bn),{offset:Pn.current?de(cn):cn,type:On?"up":"down"}),(Qn=Pt.current)===null||Qn===void 0||Qn.focus()}},Ki=function(On){var Qn=Ve(mr(Hr)),dr;Qn.isNaN()?dr=mi(jn,On):dr=mi(Qn,On),en!==void 0?Kr(jn,!1):dr.isNaN()||Kr(dr,!1)},ni=function(){_t.current=!0},ar=function(On){var Qn=On.key,dr=On.shiftKey;_t.current=!0,Pn.current=dr,Qn==="Enter"&&(Yt.current||(_t.current=!1),Ki(!1),yr==null||yr(On)),In!==!1&&!Yt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Qn)&&(Ri(Qn==="Up"||Qn==="ArrowUp"),On.preventDefault())},wn=function(){_t.current=!1,Pn.current=!1};E.useEffect(function(){if(Wn&&Mn){var Rn=function(dr){Ri(dr.deltaY<0),dr.preventDefault()},On=Pt.current;if(On)return On.addEventListener("wheel",Rn,{passive:!1}),function(){return On.removeEventListener("wheel",Rn)}}});var Ln=function(){Le&&Ki(!1),Qt(!1),_t.current=!1};return(0,ht.o)(function(){jn.isInvalidate()||Kr(jn,!1)},[pr,Ir]),(0,ht.o)(function(){var Rn=Ve(en);Dr(Rn);var On=Ve(mr(Hr));(!Rn.equals(On)||!_t.current||Ir)&&Kr(Rn,_t.current)},[en]),(0,ht.o)(function(){Ir&&Zr()},[Hr]),E.createElement("div",{ref:ct,className:Ee()($t,ft,(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)({},"".concat($t,"-focused"),Mn),"".concat($t,"-disabled"),on),"".concat($t,"-readonly"),gn),"".concat($t,"-not-a-number"),jn.isNaN()),"".concat($t,"-out-of-range"),!jn.isInvalidate()&&!wr(jn))),style:Et,onFocus:function(){Qt(!0)},onBlur:Ln,onKeyDown:ar,onKeyUp:wn,onCompositionStart:yi,onCompositionEnd:Ii,onBeforeInput:ni},qn&&E.createElement(Ce,{prefixCls:$t,upNode:$n,downNode:hn,upDisabled:oi,downDisabled:qr,onStep:Ri}),E.createElement("div",{className:"".concat(dt,"-wrap")},E.createElement("input",(0,be.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Nt,"aria-valuemax":vn,"aria-valuenow":jn.isInvalidate()?null:jn.toString(),step:cn},$e,{ref:(0,et.sQ)(Pt,bt),className:dt,value:Hr,onChange:bi,disabled:on,readOnly:gn}))))}),tt=E.forwardRef(function(ze,bt){var $t=ze.disabled,ft=ze.style,Et=ze.prefixCls,Nt=Et===void 0?"rc-input-number":Et,vn=ze.value,kn=ze.prefix,cn=ze.suffix,bn=ze.addonBefore,en=ze.addonAfter,on=ze.className,gn=ze.classNames,$n=(0,ce.Z)(ze,Pe),hn=E.useRef(null),In=E.useRef(null),xn=E.useRef(null),Wn=function(qn){xn.current&&(0,vt.nH)(xn.current,qn)};return E.useImperativeHandle(bt,function(){return Xe(xn.current,{focus:Wn,nativeElement:hn.current.nativeElement||In.current})}),E.createElement(Tt.BaseInput,{className:on,triggerFocus:Wn,prefixCls:Nt,value:vn,disabled:$t,style:ft,prefix:kn,suffix:cn,addonAfter:en,addonBefore:bn,classNames:gn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:hn},E.createElement(an,(0,be.Z)({prefixCls:Nt,disabled:$t,ref:xn,domRef:In,className:gn==null?void 0:gn.input},$n)))}),Rt=tt,_e=Rt,Gt=ee(62487),wt=ee(82855),ae=ee(48755),ne=ee(60840),te=ee(2171),oe=ee(83397),ue=ee(31756),re=ee(56553),le=ee(24971),ge=ee(70045),lt=ee(36237),ke=ee(53075),Ie=ee(64910),Fe=ee(39082),Ke=ee(63356),it=ee(56119),xe=ee(16931),Oe=ee(51636),Ot=ee(17835);const Mt=ze=>{var bt;const $t=(bt=ze.handleVisible)!==null&&bt!==void 0?bt:"auto",ft=ze.controlHeightSM-ze.lineWidth*2;return Object.assign(Object.assign({},(0,Ie.T)(ze)),{controlWidth:90,handleWidth:ft,handleFontSize:ze.fontSize/2,handleVisible:$t,handleActiveBg:ze.colorFillAlter,handleBg:ze.colorBgContainer,filledHandleBg:new Ot.FastColor(ze.colorFillSecondary).onBackground(ze.colorBgContainer).toHexString(),handleHoverColor:ze.colorPrimary,handleBorderColor:ze.colorBorder,handleOpacity:$t===!0?1:0,handleVisibleWidth:$t===!0?ft:0})},Vt=(ze,bt)=>{let{componentCls:$t,borderRadiusSM:ft,borderRadiusLG:Et}=ze;const Nt=bt==="lg"?Et:ft;return{[`&-${bt}`]:{[`${$t}-handler-wrap`]:{borderStartEndRadius:Nt,borderEndEndRadius:Nt},[`${$t}-handler-up`]:{borderStartEndRadius:Nt},[`${$t}-handler-down`]:{borderEndEndRadius:Nt}}}},Ft=ze=>{const{componentCls:bt,lineWidth:$t,lineType:ft,borderRadius:Et,inputFontSizeSM:Nt,inputFontSizeLG:vn,controlHeightLG:kn,controlHeightSM:cn,colorError:bn,paddingInlineSM:en,paddingBlockSM:on,paddingBlockLG:gn,paddingInlineLG:$n,colorTextDescription:hn,motionDurationMid:In,handleHoverColor:xn,handleOpacity:Wn,paddingInline:lr,paddingBlock:qn,handleBg:Gn,handleActiveBg:cr,colorTextDisabled:gr,borderRadiusSM:Ir,borderRadiusLG:pr,controlWidth:tn,handleBorderColor:En,filledHandleBg:An,lineHeightLG:yr,calc:st}=ze;return[{[bt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ke.Wf)(ze)),(0,ke.ik)(ze)),{display:"inline-block",width:tn,margin:0,padding:0,borderRadius:Et}),(0,Fe.qG)(ze,{[`${bt}-handler-wrap`]:{background:Gn,[`${bt}-handler-down`]:{borderBlockStart:`${(0,lt.unit)($t)} ${ft} ${En}`}}})),(0,Fe.H8)(ze,{[`${bt}-handler-wrap`]:{background:An,[`${bt}-handler-down`]:{borderBlockStart:`${(0,lt.unit)($t)} ${ft} ${En}`}},"&:focus-within":{[`${bt}-handler-wrap`]:{background:Gn}}})),(0,Fe.vc)(ze,{[`${bt}-handler-wrap`]:{background:Gn,[`${bt}-handler-down`]:{borderBlockStart:`${(0,lt.unit)($t)} ${ft} ${En}`}}})),(0,Fe.Mu)(ze)),{"&-rtl":{direction:"rtl",[`${bt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:vn,lineHeight:yr,borderRadius:pr,[`input${bt}-input`]:{height:st(kn).sub(st($t).mul(2)).equal(),padding:`${(0,lt.unit)(gn)} ${(0,lt.unit)($n)}`}},"&-sm":{padding:0,fontSize:Nt,borderRadius:Ir,[`input${bt}-input`]:{height:st(cn).sub(st($t).mul(2)).equal(),padding:`${(0,lt.unit)(on)} ${(0,lt.unit)(en)}`}},"&-out-of-range":{[`${bt}-input-wrap`]:{input:{color:bn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Ke.Wf)(ze)),(0,ke.s7)(ze)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${bt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${bt}-group-addon`]:{borderRadius:pr,fontSize:ze.fontSizeLG}},"&-sm":{[`${bt}-group-addon`]:{borderRadius:Ir}}},(0,Fe.ir)(ze)),(0,Fe.S5)(ze)),{[`&:not(${bt}-compact-first-item):not(${bt}-compact-last-item)${bt}-compact-item`]:{[`${bt}, ${bt}-group-addon`]:{borderRadius:0}},[`&:not(${bt}-compact-last-item)${bt}-compact-first-item`]:{[`${bt}, ${bt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${bt}-compact-first-item)${bt}-compact-last-item`]:{[`${bt}, ${bt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${bt}-input`]:{cursor:"not-allowed"},[bt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ke.Wf)(ze)),{width:"100%",padding:`${(0,lt.unit)(qn)} ${(0,lt.unit)(lr)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Et,outline:0,transition:`all ${In} linear`,appearance:"textfield",fontSize:"inherit"}),(0,ke.nz)(ze.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${bt}-handler-wrap, &-focused ${bt}-handler-wrap`]:{width:ze.handleWidth,opacity:1}})},{[bt]:Object.assign(Object.assign(Object.assign({[`${bt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:ze.handleVisibleWidth,opacity:Wn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Et,borderEndEndRadius:Et,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${In}`,overflow:"hidden",[`${bt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${bt}-handler-up-inner,
|
|
|
${bt}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:ze.handleFontSize}}},[`${bt}-handler`]:{height:"50%",overflow:"hidden",color:hn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,lt.unit)($t)} ${ft} ${En}`,transition:`all ${In} linear`,"&:active":{background:cr},"&:hover":{height:"60%",[`
|
|
|
${bt}-handler-up-inner,
|
|
|
${bt}-handler-down-inner
|
|
|
`]:{color:xn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Ke.Ro)()),{color:hn,transition:`all ${In} linear`,userSelect:"none"})},[`${bt}-handler-up`]:{borderStartEndRadius:Et},[`${bt}-handler-down`]:{borderEndEndRadius:Et}},Vt(ze,"lg")),Vt(ze,"sm")),{"&-disabled, &-readonly":{[`${bt}-handler-wrap`]:{display:"none"},[`${bt}-input`]:{color:"inherit"}},[`
|
|
|
${bt}-handler-up-disabled,
|
|
|
${bt}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${bt}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${bt}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:gr}})}]},mt=ze=>{const{componentCls:bt,paddingBlock:$t,paddingInline:ft,inputAffixPadding:Et,controlWidth:Nt,borderRadiusLG:vn,borderRadiusSM:kn,paddingInlineLG:cn,paddingInlineSM:bn,paddingBlockLG:en,paddingBlockSM:on,motionDurationMid:gn}=ze;return{[`${bt}-affix-wrapper`]:Object.assign(Object.assign({[`input${bt}-input`]:{padding:`${(0,lt.unit)($t)} 0`}},(0,ke.ik)(ze)),{position:"relative",display:"inline-flex",alignItems:"center",width:Nt,padding:0,paddingInlineStart:ft,"&-lg":{borderRadius:vn,paddingInlineStart:cn,[`input${bt}-input`]:{padding:`${(0,lt.unit)(en)} 0`}},"&-sm":{borderRadius:kn,paddingInlineStart:bn,[`input${bt}-input`]:{padding:`${(0,lt.unit)(on)} 0`}},[`&:not(${bt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${bt}-disabled`]:{background:"transparent"},[`> div${bt}`]:{width:"100%",border:"none",outline:"none",[`&${bt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${bt}-handler-wrap`]:{zIndex:2},[bt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Et},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:ft,marginInlineStart:Et,transition:`margin ${gn}`}},[`&:hover ${bt}-handler-wrap, &-focused ${bt}-handler-wrap`]:{width:ze.handleWidth,opacity:1},[`&:not(${bt}-affix-wrapper-without-controls):hover ${bt}-suffix`]:{marginInlineEnd:ze.calc(ze.handleWidth).add(ft).equal()}})}};var Zt=(0,xe.I$)("InputNumber",ze=>{const bt=(0,Oe.mergeToken)(ze,(0,Ie.e)(ze));return[Ft(bt),mt(bt),(0,it.c)(bt)]},Mt,{unitless:{handleOpacity:!0}}),Dt=function(ze,bt){var $t={};for(var ft in ze)Object.prototype.hasOwnProperty.call(ze,ft)&&bt.indexOf(ft)<0&&($t[ft]=ze[ft]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,ft=Object.getOwnPropertySymbols(ze);Et<ft.length;Et++)bt.indexOf(ft[Et])<0&&Object.prototype.propertyIsEnumerable.call(ze,ft[Et])&&($t[ft[Et]]=ze[ft[Et]]);return $t};const Ut=E.forwardRef((ze,bt)=>{const{getPrefixCls:$t,direction:ft}=E.useContext(ae.E_),Et=E.useRef(null);E.useImperativeHandle(bt,()=>Et.current);const{className:Nt,rootClassName:vn,size:kn,disabled:cn,prefixCls:bn,addonBefore:en,addonAfter:on,prefix:gn,suffix:$n,bordered:hn,readOnly:In,status:xn,controls:Wn,variant:lr}=ze,qn=Dt(ze,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Gn=$t("input-number",bn),cr=(0,oe.Z)(Gn),[gr,Ir,pr]=Zt(Gn,cr),{compactSize:tn,compactItemClassnames:En}=(0,ge.ri)(Gn,ft);let An=E.createElement(pe.Z,{className:`${Gn}-handler-up-inner`}),yr=E.createElement(Ae.Z,{className:`${Gn}-handler-down-inner`});const st=typeof Wn=="boolean"?Wn:void 0;typeof Wn=="object"&&(An=typeof Wn.upIcon=="undefined"?An:E.createElement("span",{className:`${Gn}-handler-up-inner`},Wn.upIcon),yr=typeof Wn.downIcon=="undefined"?yr:E.createElement("span",{className:`${Gn}-handler-down-inner`},Wn.downIcon));const{hasFeedback:xt,status:Le,isFormItemInput:ct,feedbackIcon:$e}=E.useContext(re.aM),dt=(0,wt.F)(Le,xn),Pt=(0,ue.Z)(zn=>{var jn;return(jn=kn!=null?kn:tn)!==null&&jn!==void 0?jn:zn}),yn=E.useContext(te.Z),Cn=cn!=null?cn:yn,[Mn,Qt]=(0,le.Z)("inputNumber",lr,hn),_t=xt&&E.createElement(E.Fragment,null,$e),Yt=Ee()({[`${Gn}-lg`]:Pt==="large",[`${Gn}-sm`]:Pt==="small",[`${Gn}-rtl`]:ft==="rtl",[`${Gn}-in-form-item`]:ct},Ir),Pn=`${Gn}-group`,Fn=E.createElement(_e,Object.assign({ref:Et,disabled:Cn,className:Ee()(pr,cr,Nt,vn,En),upHandler:An,downHandler:yr,prefixCls:Gn,readOnly:In,controls:st,prefix:gn,suffix:_t||$n,addonBefore:en&&E.createElement(Gt.Z,{form:!0,space:!0},en),addonAfter:on&&E.createElement(Gt.Z,{form:!0,space:!0},on),classNames:{input:Yt,variant:Ee()({[`${Gn}-${Mn}`]:Qt},(0,wt.Z)(Gn,dt,xt)),affixWrapper:Ee()({[`${Gn}-affix-wrapper-sm`]:Pt==="small",[`${Gn}-affix-wrapper-lg`]:Pt==="large",[`${Gn}-affix-wrapper-rtl`]:ft==="rtl",[`${Gn}-affix-wrapper-without-controls`]:Wn===!1||Cn},Ir),wrapper:Ee()({[`${Pn}-rtl`]:ft==="rtl"},Ir),groupWrapper:Ee()({[`${Gn}-group-wrapper-sm`]:Pt==="small",[`${Gn}-group-wrapper-lg`]:Pt==="large",[`${Gn}-group-wrapper-rtl`]:ft==="rtl",[`${Gn}-group-wrapper-${Mn}`]:Qt},(0,wt.Z)(`${Gn}-group-wrapper`,dt,xt),Ir)}},qn));return gr(Fn)}),sn=Ut,pn=ze=>E.createElement(ne.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},E.createElement(Ut,Object.assign({},ze)));sn._InternalPanelDoNotUseOrYouWillBeFired=pn;var mn=sn},49397:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return je}});var E=ee(59301),Ae=ee(92310),pe=ee.n(Ae),Ge=ee(36901),Ee=ee(8654),be=ee(62487),Se=ee(86013),Ze=ee(82855),Ne=ee(48755),ce=ee(2171),We=ee(83397),De=ee(31756),It=ee(56553),at=ee(24971),qe=ee(70045),He=ee(23826),Be=ee(53075);function ut(Te){return!!(Te.prefix||Te.suffix||Te.allowClear||Te.showCount)}var St=function(Te,Qe){var Ve={};for(var Tt in Te)Object.prototype.hasOwnProperty.call(Te,Tt)&&Qe.indexOf(Tt)<0&&(Ve[Tt]=Te[Tt]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Tt=Object.getOwnPropertySymbols(Te);ht<Tt.length;ht++)Qe.indexOf(Tt[ht])<0&&Object.prototype.propertyIsEnumerable.call(Te,Tt[ht])&&(Ve[Tt[ht]]=Te[Tt[ht]]);return Ve},je=(0,E.forwardRef)((Te,Qe)=>{const{prefixCls:Ve,bordered:Tt=!0,status:ht,size:Xe,disabled:et,onBlur:Me,onFocus:pt,suffix:Ye,allowClear:ye,addonAfter:jt,addonBefore:Ue,className:nt,style:zt,styles:Ce,rootClassName:de,onChange:vt,classNames:Kt,variant:Lt}=Te,Pe=St(Te,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:ot,direction:rt,allowClear:an,autoComplete:tt,className:Rt,style:_e,classNames:Gt,styles:wt}=(0,Ne.dj)("input"),ae=ot("input",Ve),ne=(0,E.useRef)(null),te=(0,We.Z)(ae),[oe,ue,re]=(0,Be.TI)(ae,de),[le]=(0,Be.ZP)(ae,te),{compactSize:ge,compactItemClassnames:lt}=(0,qe.ri)(ae,rt),ke=(0,De.Z)(mn=>{var ze;return(ze=Xe!=null?Xe:ge)!==null&&ze!==void 0?ze:mn}),Ie=E.useContext(ce.Z),Fe=et!=null?et:Ie,{status:Ke,hasFeedback:it,feedbackIcon:xe}=(0,E.useContext)(It.aM),Oe=(0,Ze.F)(Ke,ht),Ot=ut(Te)||!!it,Mt=(0,E.useRef)(Ot),Vt=(0,He.Z)(ne,!0),Ft=mn=>{Vt(),Me==null||Me(mn)},mt=mn=>{Vt(),pt==null||pt(mn)},Zt=mn=>{Vt(),vt==null||vt(mn)},Dt=(it||Ye)&&E.createElement(E.Fragment,null,Ye,it&&xe),Ut=(0,Se.Z)(ye!=null?ye:an),[sn,pn]=(0,at.Z)("input",Lt,Tt);return oe(le(E.createElement(Ge.default,Object.assign({ref:(0,Ee.sQ)(Qe,ne),prefixCls:ae,autoComplete:tt},Pe,{disabled:Fe,onBlur:Ft,onFocus:mt,style:Object.assign(Object.assign({},_e),zt),styles:Object.assign(Object.assign({},wt),Ce),suffix:Dt,allowClear:Ut,className:pe()(nt,de,re,te,lt,Rt),onChange:Zt,addonBefore:Ue&&E.createElement(be.Z,{form:!0,space:!0},Ue),addonAfter:jt&&E.createElement(be.Z,{form:!0,space:!0},jt),classNames:Object.assign(Object.assign(Object.assign({},Kt),Gt),{input:pe()({[`${ae}-sm`]:ke==="small",[`${ae}-lg`]:ke==="large",[`${ae}-rtl`]:rt==="rtl"},Kt==null?void 0:Kt.input,Gt.input,ue),variant:pe()({[`${ae}-${sn}`]:pn},(0,Ze.Z)(ae,Oe)),affixWrapper:pe()({[`${ae}-affix-wrapper-sm`]:ke==="small",[`${ae}-affix-wrapper-lg`]:ke==="large",[`${ae}-affix-wrapper-rtl`]:rt==="rtl"},ue),wrapper:pe()({[`${ae}-group-rtl`]:rt==="rtl"},ue),groupWrapper:pe()({[`${ae}-group-wrapper-sm`]:ke==="small",[`${ae}-group-wrapper-lg`]:ke==="large",[`${ae}-group-wrapper-rtl`]:rt==="rtl",[`${ae}-group-wrapper-${sn}`]:pn},(0,Ze.Z)(`${ae}-group-wrapper`,Oe,it),ue)})}))))})},79809:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Qe}});var E=ee(59301),Ae=ee(92310),pe=ee.n(Ae),Ge=ee(22711),Ee=ee(86013),be=ee(82855),Se=ee(48755),Ze=ee(2171),Ne=ee(83397),ce=ee(31756),We=ee(56553),De=ee(24971),It=ee(70045),at=ee(30292),qe=ee(53075),He=ee(16931),Be=ee(51636),ut=ee(64910);const St=Ve=>{const{componentCls:Tt,paddingLG:ht}=Ve,Xe=`${Tt}-textarea`;return{[`textarea${Tt}`]:{maxWidth:"100%",height:"auto",minHeight:Ve.controlHeight,lineHeight:Ve.lineHeight,verticalAlign:"bottom",transition:`all ${Ve.motionDurationSlow}`,resize:"vertical",[`&${Tt}-mouse-active`]:{transition:`all ${Ve.motionDurationSlow}, height 0s, width 0s`}},[`${Tt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Xe]:{position:"relative","&-show-count":{[`> ${Tt}`]:{height:"100%"},[`${Tt}-data-count`]:{position:"absolute",bottom:Ve.calc(Ve.fontSize).mul(Ve.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ve.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${Tt},
|
|
|
&-affix-wrapper${Xe}-has-feedback ${Tt}
|
|
|
`]:{paddingInlineEnd:ht},[`&-affix-wrapper${Tt}-affix-wrapper`]:{padding:0,[`> textarea${Tt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Ve.calc(Ve.controlHeight).sub(Ve.calc(Ve.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${Tt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Tt}-clear-icon`]:{position:"absolute",insetInlineEnd:Ve.paddingInline,insetBlockStart:Ve.paddingXS},[`${Xe}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ve.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Tt}-affix-wrapper-sm`]:{[`${Tt}-suffix`]:{[`${Tt}-clear-icon`]:{insetInlineEnd:Ve.paddingInlineSM}}}}}};var Bt=(0,He.I$)(["Input","TextArea"],Ve=>{const Tt=(0,Be.mergeToken)(Ve,(0,ut.e)(Ve));return[St(Tt)]},ut.T,{resetFont:!1}),je=function(Ve,Tt){var ht={};for(var Xe in Ve)Object.prototype.hasOwnProperty.call(Ve,Xe)&&Tt.indexOf(Xe)<0&&(ht[Xe]=Ve[Xe]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Xe=Object.getOwnPropertySymbols(Ve);et<Xe.length;et++)Tt.indexOf(Xe[et])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Xe[et])&&(ht[Xe[et]]=Ve[Xe[et]]);return ht},Qe=(0,E.forwardRef)((Ve,Tt)=>{var ht;const{prefixCls:Xe,bordered:et=!0,size:Me,disabled:pt,status:Ye,allowClear:ye,classNames:jt,rootClassName:Ue,className:nt,style:zt,styles:Ce,variant:de,showCount:vt,onMouseDown:Kt,onResize:Lt}=Ve,Pe=je(Ve,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:ot,direction:rt,allowClear:an,autoComplete:tt,className:Rt,style:_e,classNames:Gt,styles:wt}=(0,Se.dj)("textArea"),ae=E.useContext(Ze.Z),ne=pt!=null?pt:ae,{status:te,hasFeedback:oe,feedbackIcon:ue}=E.useContext(We.aM),re=(0,be.F)(te,Ye),le=E.useRef(null);E.useImperativeHandle(Tt,()=>{var pn;return{resizableTextArea:(pn=le.current)===null||pn===void 0?void 0:pn.resizableTextArea,focus:mn=>{var ze,bt;(0,at.nH)((bt=(ze=le.current)===null||ze===void 0?void 0:ze.resizableTextArea)===null||bt===void 0?void 0:bt.textArea,mn)},blur:()=>{var mn;return(mn=le.current)===null||mn===void 0?void 0:mn.blur()}}});const ge=ot("input",Xe),lt=(0,Ne.Z)(ge),[ke,Ie,Fe]=(0,qe.TI)(ge,Ue),[Ke]=Bt(ge,lt),{compactSize:it,compactItemClassnames:xe}=(0,It.ri)(ge,rt),Oe=(0,ce.Z)(pn=>{var mn;return(mn=Me!=null?Me:it)!==null&&mn!==void 0?mn:pn}),[Ot,Mt]=(0,De.Z)("textArea",de,et),Vt=(0,Ee.Z)(ye!=null?ye:an),[Ft,mt]=E.useState(!1),[Zt,Dt]=E.useState(!1),Ut=pn=>{mt(!0),Kt==null||Kt(pn);const mn=()=>{mt(!1),document.removeEventListener("mouseup",mn)};document.addEventListener("mouseup",mn)},sn=pn=>{var mn,ze;if(Lt==null||Lt(pn),Ft&&typeof getComputedStyle=="function"){const bt=(ze=(mn=le.current)===null||mn===void 0?void 0:mn.nativeElement)===null||ze===void 0?void 0:ze.querySelector("textarea");bt&&getComputedStyle(bt).resize==="both"&&Dt(!0)}};return ke(Ke(E.createElement(Ge.default,Object.assign({autoComplete:tt},Pe,{style:Object.assign(Object.assign({},_e),zt),styles:Object.assign(Object.assign({},wt),Ce),disabled:ne,allowClear:Vt,className:pe()(Fe,lt,nt,Ue,xe,Rt,Zt&&`${ge}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},jt),Gt),{textarea:pe()({[`${ge}-sm`]:Oe==="small",[`${ge}-lg`]:Oe==="large"},Ie,jt==null?void 0:jt.textarea,Gt.textarea,Ft&&`${ge}-mouse-active`),variant:pe()({[`${ge}-${Ot}`]:Mt},(0,be.Z)(ge,re)),affixWrapper:pe()(`${ge}-textarea-affix-wrapper`,{[`${ge}-affix-wrapper-rtl`]:rt==="rtl",[`${ge}-affix-wrapper-sm`]:Oe==="small",[`${ge}-affix-wrapper-lg`]:Oe==="large",[`${ge}-textarea-show-count`]:vt||((ht=Ve.count)===null||ht===void 0?void 0:ht.show)},Ie)}),prefixCls:ge,suffix:oe&&E.createElement("span",{className:`${ge}-textarea-suffix`},ue),showCount:vt,ref:le,onResize:sn,onMouseDown:Ut}))))})},23826:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ae}});var E=ee(59301);function Ae(pe,Ge){const Ee=(0,E.useRef)([]),be=()=>{Ee.current.push(setTimeout(()=>{var Se,Ze,Ne,ce;!((Se=pe.current)===null||Se===void 0)&&Se.input&&((Ze=pe.current)===null||Ze===void 0?void 0:Ze.input.getAttribute("type"))==="password"&&(!((Ne=pe.current)===null||Ne===void 0)&&Ne.input.hasAttribute("value"))&&((ce=pe.current)===null||ce===void 0||ce.input.removeAttribute("value"))}))};return(0,E.useEffect)(()=>(Ge&&be(),()=>Ee.current.forEach(Se=>{Se&&clearTimeout(Se)})),[]),be}},37568:function(fn,Ht,ee){"use strict";ee.d(Ht,{default:function(){return Gt}});var E=ee(59301),Ae=ee(92310),pe=ee.n(Ae),Ge=ee(48755),Ee=ee(56553),be=ee(53075),Ze=wt=>{const{getPrefixCls:ae,direction:ne}=(0,E.useContext)(Ge.E_),{prefixCls:te,className:oe}=wt,ue=ae("input-group",te),re=ae("input"),[le,ge,lt]=(0,be.ZP)(re),ke=pe()(ue,lt,{[`${ue}-lg`]:wt.size==="large",[`${ue}-sm`]:wt.size==="small",[`${ue}-compact`]:wt.compact,[`${ue}-rtl`]:ne==="rtl"},ge,oe),Ie=(0,E.useContext)(Ee.aM),Fe=(0,E.useMemo)(()=>Object.assign(Object.assign({},Ie),{isFormItemInput:!1}),[Ie]);return le(E.createElement("span",{className:ke,style:wt.style,onMouseEnter:wt.onMouseEnter,onMouseLeave:wt.onMouseLeave,onFocus:wt.onFocus,onBlur:wt.onBlur},E.createElement(Ee.aM.Provider,{value:Fe},wt.children)))},Ne=ee(49397),ce=ee(77654),We=ee(6089),De=ee(26112),It=ee(82855),at=ee(31756),qe=ee(16931),He=ee(51636),Be=ee(64910);const ut=wt=>{const{componentCls:ae,paddingXS:ne}=wt;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ne,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:wt.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:wt.calc(wt.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:wt.paddingXS}}}};var St=(0,qe.I$)(["Input","OTP"],wt=>{const ae=(0,He.mergeToken)(wt,(0,Be.e)(wt));return[ut(ae)]},Be.T),Bt=ee(16089),je=function(wt,ae){var ne={};for(var te in wt)Object.prototype.hasOwnProperty.call(wt,te)&&ae.indexOf(te)<0&&(ne[te]=wt[te]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,te=Object.getOwnPropertySymbols(wt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(wt,te[oe])&&(ne[te[oe]]=wt[te[oe]]);return ne},Qe=E.forwardRef((wt,ae)=>{const{value:ne,onChange:te,onActiveChange:oe,index:ue,mask:re}=wt,le=je(wt,["value","onChange","onActiveChange","index","mask"]),ge=ne&&typeof re=="string"?re:ne,lt=it=>{te(ue,it.target.value)},ke=E.useRef(null);E.useImperativeHandle(ae,()=>ke.current);const Ie=()=>{(0,Bt.Z)(()=>{var it;const xe=(it=ke.current)===null||it===void 0?void 0:it.input;document.activeElement===xe&&xe&&xe.select()})},Fe=it=>{const{key:xe,ctrlKey:Oe,metaKey:Ot}=it;xe==="ArrowLeft"?oe(ue-1):xe==="ArrowRight"?oe(ue+1):xe==="z"&&(Oe||Ot)&&it.preventDefault(),Ie()},Ke=it=>{it.key==="Backspace"&&!ne&&oe(ue-1),Ie()};return E.createElement(Ne.Z,Object.assign({type:re===!0?"password":"text"},le,{ref:ke,value:ge,onInput:lt,onFocus:Ie,onKeyDown:Fe,onKeyUp:Ke,onMouseDown:Ie,onMouseUp:Ie}))}),Ve=function(wt,ae){var ne={};for(var te in wt)Object.prototype.hasOwnProperty.call(wt,te)&&ae.indexOf(te)<0&&(ne[te]=wt[te]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,te=Object.getOwnPropertySymbols(wt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(wt,te[oe])&&(ne[te[oe]]=wt[te[oe]]);return ne};function Tt(wt){return(wt||"").split("")}const ht=wt=>{const{index:ae,prefixCls:ne,separator:te}=wt,oe=typeof te=="function"?te(ae):te;return oe?E.createElement("span",{className:`${ne}-separator`},oe):null};var et=E.forwardRef((wt,ae)=>{const{prefixCls:ne,length:te=6,size:oe,defaultValue:ue,value:re,onChange:le,formatter:ge,separator:lt,variant:ke,disabled:Ie,status:Fe,autoFocus:Ke,mask:it,type:xe,onInput:Oe,inputMode:Ot}=wt,Mt=Ve(wt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Vt,direction:Ft}=E.useContext(Ge.E_),mt=Vt("otp",ne),Zt=(0,De.Z)(Mt,{aria:!0,data:!0,attr:!0}),[Dt,Ut,sn]=St(mt),pn=(0,at.Z)(gn=>oe!=null?oe:gn),mn=E.useContext(Ee.aM),ze=(0,It.F)(mn.status,Fe),bt=E.useMemo(()=>Object.assign(Object.assign({},mn),{status:ze,hasFeedback:!1,feedbackIcon:null}),[mn,ze]),$t=E.useRef(null),ft=E.useRef({});E.useImperativeHandle(ae,()=>({focus:()=>{var gn;(gn=ft.current[0])===null||gn===void 0||gn.focus()},blur:()=>{var gn;for(let $n=0;$n<te;$n+=1)(gn=ft.current[$n])===null||gn===void 0||gn.blur()},nativeElement:$t.current}));const Et=gn=>ge?ge(gn):gn,[Nt,vn]=E.useState(()=>Tt(Et(ue||"")));E.useEffect(()=>{re!==void 0&&vn(Tt(re))},[re]);const kn=(0,We.Z)(gn=>{vn(gn),Oe&&Oe(gn),le&&gn.length===te&&gn.every($n=>$n)&&gn.some(($n,hn)=>Nt[hn]!==$n)&&le(gn.join(""))}),cn=(0,We.Z)((gn,$n)=>{let hn=(0,ce.Z)(Nt);for(let xn=0;xn<gn;xn+=1)hn[xn]||(hn[xn]="");$n.length<=1?hn[gn]=$n:hn=hn.slice(0,gn).concat(Tt($n)),hn=hn.slice(0,te);for(let xn=hn.length-1;xn>=0&&!hn[xn];xn-=1)hn.pop();const In=Et(hn.map(xn=>xn||" ").join(""));return hn=Tt(In).map((xn,Wn)=>xn===" "&&!hn[Wn]?hn[Wn]:xn),hn}),bn=(gn,$n)=>{var hn;const In=cn(gn,$n),xn=Math.min(gn+$n.length,te-1);xn!==gn&&In[gn]!==void 0&&((hn=ft.current[xn])===null||hn===void 0||hn.focus()),kn(In)},en=gn=>{var $n;($n=ft.current[gn])===null||$n===void 0||$n.focus()},on={variant:ke,disabled:Ie,status:ze,mask:it,type:xe,inputMode:Ot};return Dt(E.createElement("div",Object.assign({},Zt,{ref:$t,className:pe()(mt,{[`${mt}-sm`]:pn==="small",[`${mt}-lg`]:pn==="large",[`${mt}-rtl`]:Ft==="rtl"},sn,Ut)}),E.createElement(Ee.aM.Provider,{value:bt},Array.from({length:te}).map((gn,$n)=>{const hn=`otp-${$n}`,In=Nt[$n]||"";return E.createElement(E.Fragment,{key:hn},E.createElement(Qe,Object.assign({ref:xn=>{ft.current[$n]=xn},index:$n,size:pn,htmlSize:1,className:`${mt}-input`,onChange:bn,value:In,onActiveChange:en,autoFocus:$n===0&&Ke},on)),$n<te-1&&E.createElement(ht,{separator:lt,index:$n,prefixCls:mt}))}))))}),Me=ee(73331),pt=ee(15277),Ye=ee(2738),ye=ee(8654),jt=ee(2171),Ue=ee(23826),nt=function(wt,ae){var ne={};for(var te in wt)Object.prototype.hasOwnProperty.call(wt,te)&&ae.indexOf(te)<0&&(ne[te]=wt[te]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,te=Object.getOwnPropertySymbols(wt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(wt,te[oe])&&(ne[te[oe]]=wt[te[oe]]);return ne};const zt=wt=>wt?E.createElement(pt.Z,null):E.createElement(Me.Z,null),Ce={click:"onClick",hover:"onMouseOver"};var vt=E.forwardRef((wt,ae)=>{const{disabled:ne,action:te="click",visibilityToggle:oe=!0,iconRender:ue=zt}=wt,re=E.useContext(jt.Z),le=ne!=null?ne:re,ge=typeof oe=="object"&&oe.visible!==void 0,[lt,ke]=(0,E.useState)(()=>ge?oe.visible:!1),Ie=(0,E.useRef)(null);E.useEffect(()=>{ge&&ke(oe.visible)},[ge,oe]);const Fe=(0,Ue.Z)(Ie),Ke=()=>{var pn;if(le)return;lt&&Fe();const mn=!lt;ke(mn),typeof oe=="object"&&((pn=oe.onVisibleChange)===null||pn===void 0||pn.call(oe,mn))},it=pn=>{const mn=Ce[te]||"",ze=ue(lt),bt={[mn]:Ke,className:`${pn}-icon`,key:"passwordIcon",onMouseDown:$t=>{$t.preventDefault()},onMouseUp:$t=>{$t.preventDefault()}};return E.cloneElement(E.isValidElement(ze)?ze:E.createElement("span",null,ze),bt)},{className:xe,prefixCls:Oe,inputPrefixCls:Ot,size:Mt}=wt,Vt=nt(wt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Ft}=E.useContext(Ge.E_),mt=Ft("input",Ot),Zt=Ft("input-password",Oe),Dt=oe&&it(Zt),Ut=pe()(Zt,xe,{[`${Zt}-${Mt}`]:!!Mt}),sn=Object.assign(Object.assign({},(0,Ye.Z)(Vt,["suffix","iconRender","visibilityToggle"])),{type:lt?"text":"password",className:Ut,prefixCls:mt,suffix:Dt});return Mt&&(sn.size=Mt),E.createElement(Ne.Z,Object.assign({ref:(0,ye.sQ)(ae,Ie)},sn))}),Kt=ee(47472),Lt=ee(22703),Pe=ee(7939),ot=ee(70045),rt=function(wt,ae){var ne={};for(var te in wt)Object.prototype.hasOwnProperty.call(wt,te)&&ae.indexOf(te)<0&&(ne[te]=wt[te]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,te=Object.getOwnPropertySymbols(wt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(wt,te[oe])&&(ne[te[oe]]=wt[te[oe]]);return ne},tt=E.forwardRef((wt,ae)=>{const{prefixCls:ne,inputPrefixCls:te,className:oe,size:ue,suffix:re,enterButton:le=!1,addonAfter:ge,loading:lt,disabled:ke,onSearch:Ie,onChange:Fe,onCompositionStart:Ke,onCompositionEnd:it}=wt,xe=rt(wt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Oe,direction:Ot}=E.useContext(Ge.E_),Mt=E.useRef(!1),Vt=Oe("input-search",ne),Ft=Oe("input",te),{compactSize:mt}=(0,ot.ri)(Vt,Ot),Zt=(0,at.Z)(bn=>{var en;return(en=ue!=null?ue:mt)!==null&&en!==void 0?en:bn}),Dt=E.useRef(null),Ut=bn=>{bn!=null&&bn.target&&bn.type==="click"&&Ie&&Ie(bn.target.value,bn,{source:"clear"}),Fe==null||Fe(bn)},sn=bn=>{var en;document.activeElement===((en=Dt.current)===null||en===void 0?void 0:en.input)&&bn.preventDefault()},pn=bn=>{var en,on;Ie&&Ie((on=(en=Dt.current)===null||en===void 0?void 0:en.input)===null||on===void 0?void 0:on.value,bn,{source:"input"})},mn=bn=>{Mt.current||lt||pn(bn)},ze=typeof le=="boolean"?E.createElement(Kt.Z,null):null,bt=`${Vt}-button`;let $t;const ft=le||{},Et=ft.type&&ft.type.__ANT_BUTTON===!0;Et||ft.type==="button"?$t=(0,Lt.Tm)(ft,Object.assign({onMouseDown:sn,onClick:bn=>{var en,on;(on=(en=ft==null?void 0:ft.props)===null||en===void 0?void 0:en.onClick)===null||on===void 0||on.call(en,bn),pn(bn)},key:"enterButton"},Et?{className:bt,size:Zt}:{})):$t=E.createElement(Pe.ZP,{className:bt,type:le?"primary":void 0,size:Zt,disabled:ke,key:"enterButton",onMouseDown:sn,onClick:pn,loading:lt,icon:ze},le),ge&&($t=[$t,(0,Lt.Tm)(ge,{key:"addonAfter"})]);const Nt=pe()(Vt,{[`${Vt}-rtl`]:Ot==="rtl",[`${Vt}-${Zt}`]:!!Zt,[`${Vt}-with-button`]:!!le},oe),vn=Object.assign(Object.assign({},xe),{className:Nt,prefixCls:Ft,type:"search"}),kn=bn=>{Mt.current=!0,Ke==null||Ke(bn)},cn=bn=>{Mt.current=!1,it==null||it(bn)};return E.createElement(Ne.Z,Object.assign({ref:(0,ye.sQ)(Dt,ae),onPressEnter:mn},vn,{size:Zt,onCompositionStart:kn,onCompositionEnd:cn,addonAfter:$t,suffix:re,onChange:Ut,disabled:ke}))}),Rt=ee(79809);const _e=Ne.Z;_e.Group=Ze,_e.Search=tt,_e.TextArea=Rt.Z,_e.Password=vt,_e.OTP=et;var Gt=_e},24303:function(fn,Ht,ee){"use strict";ee.d(Ht,{D:function(){return Ve},Z:function(){return Xe}});var E=ee(59301),Ae=ee(60499),pe={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"},Ge=pe,Ee=ee(7657),be=function(Me,pt){return E.createElement(Ee.Z,(0,Ae.Z)({},Me,{ref:pt,icon:Ge}))},Se=E.forwardRef(be),Ze=Se,Ne=ee(33853),ce=ee(38819),We=ee(92310),De=ee.n(We),It=ee(2738),at=ee(48755),qe=ee(6989),He=ee(36237),Be=ee(48923),ut=ee(16931);const St=et=>{const{componentCls:Me,siderBg:pt,motionDurationMid:Ye,motionDurationSlow:ye,antCls:jt,triggerHeight:Ue,triggerColor:nt,triggerBg:zt,headerHeight:Ce,zeroTriggerWidth:de,zeroTriggerHeight:vt,borderRadiusLG:Kt,lightSiderBg:Lt,lightTriggerColor:Pe,lightTriggerBg:ot,bodyBg:rt}=et;return{[Me]:{position:"relative",minWidth:0,background:pt,transition:`all ${Ye}, background 0s`,"&-has-trigger":{paddingBottom:Ue},"&-right":{order:1},[`${Me}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${jt}-menu${jt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Me}-children`]:{overflow:"hidden"},[`${Me}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Ue,color:nt,lineHeight:(0,He.unit)(Ue),textAlign:"center",background:zt,cursor:"pointer",transition:`all ${Ye}`},[`${Me}-zero-width-trigger`]:{position:"absolute",top:Ce,insetInlineEnd:et.calc(de).mul(-1).equal(),zIndex:1,width:de,height:vt,color:nt,fontSize:et.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:pt,borderRadius:`0 ${(0,He.unit)(Kt)} ${(0,He.unit)(Kt)} 0`,cursor:"pointer",transition:`background ${ye} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ye}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:et.calc(de).mul(-1).equal(),borderRadius:`${(0,He.unit)(Kt)} 0 0 ${(0,He.unit)(Kt)}`}},"&-light":{background:Lt,[`${Me}-trigger`]:{color:Pe,background:ot},[`${Me}-zero-width-trigger`]:{color:Pe,background:ot,border:`1px solid ${rt}`,borderInlineStart:0}}}}};var Bt=(0,ut.I$)(["Layout","Sider"],et=>[St(et)],Be.eh,{deprecatedTokens:Be.jn}),je=function(et,Me){var pt={};for(var Ye in et)Object.prototype.hasOwnProperty.call(et,Ye)&&Me.indexOf(Ye)<0&&(pt[Ye]=et[Ye]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Ye=Object.getOwnPropertySymbols(et);ye<Ye.length;ye++)Me.indexOf(Ye[ye])<0&&Object.prototype.propertyIsEnumerable.call(et,Ye[ye])&&(pt[Ye[ye]]=et[Ye[ye]]);return pt};const Te={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Qe=et=>!Number.isNaN(Number.parseFloat(et))&&isFinite(et),Ve=E.createContext({}),Tt=(()=>{let et=0;return function(){let Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return et+=1,`${Me}${et}`}})();var Xe=E.forwardRef((et,Me)=>{const{prefixCls:pt,className:Ye,trigger:ye,children:jt,defaultCollapsed:Ue=!1,theme:nt="dark",style:zt={},collapsible:Ce=!1,reverseArrow:de=!1,width:vt=200,collapsedWidth:Kt=80,zeroWidthTriggerStyle:Lt,breakpoint:Pe,onCollapse:ot,onBreakpoint:rt}=et,an=je(et,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:tt}=(0,E.useContext)(qe.V),[Rt,_e]=(0,E.useState)("collapsed"in et?et.collapsed:Ue),[Gt,wt]=(0,E.useState)(!1);(0,E.useEffect)(()=>{"collapsed"in et&&_e(et.collapsed)},[et.collapsed]);const ae=(Zt,Dt)=>{"collapsed"in et||_e(Zt),ot==null||ot(Zt,Dt)},{getPrefixCls:ne,direction:te}=(0,E.useContext)(at.E_),oe=ne("layout-sider",pt),[ue,re,le]=Bt(oe),ge=(0,E.useRef)(null);ge.current=Zt=>{wt(Zt.matches),rt==null||rt(Zt.matches),Rt!==Zt.matches&&ae(Zt.matches,"responsive")},(0,E.useEffect)(()=>{function Zt(Ut){return ge.current(Ut)}let Dt;if(typeof window!="undefined"){const{matchMedia:Ut}=window;if(Ut&&Pe&&Pe in Te){Dt=Ut(`screen and (max-width: ${Te[Pe]})`);try{Dt.addEventListener("change",Zt)}catch(sn){Dt.addListener(Zt)}Zt(Dt)}}return()=>{try{Dt==null||Dt.removeEventListener("change",Zt)}catch(Ut){Dt==null||Dt.removeListener(Zt)}}},[Pe]),(0,E.useEffect)(()=>{const Zt=Tt("ant-sider-");return tt.addSider(Zt),()=>tt.removeSider(Zt)},[]);const lt=()=>{ae(!Rt,"clickTrigger")},ke=(0,It.Z)(an,["collapsed"]),Ie=Rt?Kt:vt,Fe=Qe(Ie)?`${Ie}px`:String(Ie),Ke=parseFloat(String(Kt||0))===0?E.createElement("span",{onClick:lt,className:De()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${de?"right":"left"}`),style:Lt},ye||E.createElement(Ze,null)):null,it=te==="rtl"==!de,Ot={expanded:it?E.createElement(ce.Z,null):E.createElement(Ne.Z,null),collapsed:it?E.createElement(Ne.Z,null):E.createElement(ce.Z,null)}[Rt?"collapsed":"expanded"],Mt=ye!==null?Ke||E.createElement("div",{className:`${oe}-trigger`,onClick:lt,style:{width:Fe}},ye||Ot):null,Vt=Object.assign(Object.assign({},zt),{flex:`0 0 ${Fe}`,maxWidth:Fe,minWidth:Fe,width:Fe}),Ft=De()(oe,`${oe}-${nt}`,{[`${oe}-collapsed`]:!!Rt,[`${oe}-has-trigger`]:Ce&&ye!==null&&!Ke,[`${oe}-below`]:!!Gt,[`${oe}-zero-width`]:parseFloat(Fe)===0},Ye,re,le),mt=E.useMemo(()=>({siderCollapsed:Rt}),[Rt]);return ue(E.createElement(Ve.Provider,{value:mt},E.createElement("aside",Object.assign({className:Ft},ke,{style:Vt,ref:Me}),E.createElement("div",{className:`${oe}-children`},jt),Ce||Gt&&Ke?Mt:null)))})},6989:function(fn,Ht,ee){"use strict";ee.d(Ht,{V:function(){return Ae}});var E=ee(59301);const Ae=E.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(fn,Ht,ee){"use strict";ee.d(Ht,{eh:function(){return Ge},jn:function(){return Ee}});var E=ee(36237),Ae=ee(16931);const pe=be=>{const{antCls:Se,componentCls:Ze,colorText:Ne,footerBg:ce,headerHeight:We,headerPadding:De,headerColor:It,footerPadding:at,fontSize:qe,bodyBg:He,headerBg:Be}=be;return{[Ze]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:He,"&, *":{boxSizing:"border-box"},[`&${Ze}-has-sider`]:{flexDirection:"row",[`> ${Ze}, > ${Ze}-content`]:{width:0}},[`${Ze}-header, &${Ze}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Ze}-header`]:{height:We,padding:De,color:It,lineHeight:(0,E.unit)(We),background:Be,[`${Se}-menu`]:{lineHeight:"inherit"}},[`${Ze}-footer`]:{padding:at,color:Ne,fontSize:qe,background:ce},[`${Ze}-content`]:{flex:"auto",color:Ne,minHeight:0}}},Ge=be=>{const{colorBgLayout:Se,controlHeight:Ze,controlHeightLG:Ne,colorText:ce,controlHeightSM:We,marginXXS:De,colorTextLightSolid:It,colorBgContainer:at}=be,qe=Ne*1.25;return{colorBgHeader:"#001529",colorBgBody:Se,colorBgTrigger:"#002140",bodyBg:Se,headerBg:"#001529",headerHeight:Ze*2,headerPadding:`0 ${qe}px`,headerColor:ce,footerPadding:`${We}px ${qe}px`,footerBg:Se,siderBg:"#001529",triggerHeight:Ne+De*2,triggerBg:"#002140",triggerColor:It,zeroTriggerWidth:Ne,zeroTriggerHeight:Ne,lightSiderBg:at,lightTriggerBg:at,lightTriggerColor:ce}},Ee=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Ht.ZP=(0,Ae.I$)("Layout",be=>[pe(be)],Ge,{deprecatedTokens:Ee})},78857:function(fn,Ht,ee){"use strict";ee.d(Ht,{J:function(){return be}});var E=ee(59301),Ae=ee(8654),pe=ee(62487),Ge=function(Se,Ze){var Ne={};for(var ce in Se)Object.prototype.hasOwnProperty.call(Se,ce)&&Ze.indexOf(ce)<0&&(Ne[ce]=Se[ce]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,ce=Object.getOwnPropertySymbols(Se);We<ce.length;We++)Ze.indexOf(ce[We])<0&&Object.prototype.propertyIsEnumerable.call(Se,ce[We])&&(Ne[ce[We]]=Se[ce[We]]);return Ne};const Ee=E.createContext(null),be=E.forwardRef((Se,Ze)=>{const{children:Ne}=Se,ce=Ge(Se,["children"]),We=E.useContext(Ee),De=E.useMemo(()=>Object.assign(Object.assign({},We),ce),[We,ce.prefixCls,ce.mode,ce.selectable,ce.rootClassName]),It=(0,Ae.t4)(Ne),at=(0,Ae.x1)(Ze,It?(0,Ae.C4)(Ne):null);return E.createElement(Ee.Provider,{value:De},E.createElement(pe.Z,{space:!0},It?E.cloneElement(Ne,{ref:at}):Ne))});Ht.Z=Ee},93041:function(fn,Ht,ee){"use strict";ee.d(Ht,{default:function(){return ue}});var E=ee(59301),Ae=ee(28321),pe=ee(24303),Ge=ee(18785),Ee=ee(92310),be=ee.n(Ee),Se=ee(6089),Ze=ee(2738),Ne=ee(86641),ce=ee(22703),We=ee(48755),De=ee(83397),at=(0,E.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),qe=function(re,le){var ge={};for(var lt in re)Object.prototype.hasOwnProperty.call(re,lt)&&le.indexOf(lt)<0&&(ge[lt]=re[lt]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,lt=Object.getOwnPropertySymbols(re);ke<lt.length;ke++)le.indexOf(lt[ke])<0&&Object.prototype.propertyIsEnumerable.call(re,lt[ke])&&(ge[lt[ke]]=re[lt[ke]]);return ge},Be=re=>{const{prefixCls:le,className:ge,dashed:lt}=re,ke=qe(re,["prefixCls","className","dashed"]),{getPrefixCls:Ie}=E.useContext(We.E_),Fe=Ie("menu",le),Ke=be()({[`${Fe}-item-divider-dashed`]:!!lt},ge);return E.createElement(Ae.iz,Object.assign({className:Ke},ke))},ut=ee(11592),St=ee(25399),je=re=>{var le;const{className:ge,children:lt,icon:ke,title:Ie,danger:Fe,extra:Ke}=re,{prefixCls:it,firstLevel:xe,direction:Oe,disableMenuItemTitleTooltip:Ot,inlineCollapsed:Mt}=E.useContext(at),Vt=sn=>{const pn=lt==null?void 0:lt[0],mn=E.createElement("span",{className:be()(`${it}-title-content`,{[`${it}-title-content-with-extra`]:!!Ke||Ke===0})},lt);return(!ke||E.isValidElement(lt)&<.type==="span")&<&&sn&&xe&&typeof pn=="string"?E.createElement("div",{className:`${it}-inline-collapsed-noicon`},pn.charAt(0)):mn},{siderCollapsed:Ft}=E.useContext(pe.D);let mt=Ie;typeof Ie=="undefined"?mt=xe?lt:"":Ie===!1&&(mt="");const Zt={title:mt};!Ft&&!Mt&&(Zt.title=null,Zt.open=!1);const Dt=(0,ut.Z)(lt).length;let Ut=E.createElement(Ae.ck,Object.assign({},(0,Ze.Z)(re,["title","icon","danger"]),{className:be()({[`${it}-item-danger`]:Fe,[`${it}-item-only-child`]:(ke?Dt+1:Dt)===1},ge),title:typeof Ie=="string"?Ie:void 0}),(0,ce.Tm)(ke,{className:be()(E.isValidElement(ke)?(le=ke.props)===null||le===void 0?void 0:le.className:"",`${it}-item-icon`)}),Vt(Mt));return Ot||(Ut=E.createElement(St.Z,Object.assign({},Zt,{placement:Oe==="rtl"?"left":"right",classNames:{root:`${it}-inline-collapsed-tooltip`}}),Ut)),Ut},Te=ee(78857),Qe=ee(36237),Ve=ee(17835),Tt=ee(63356),ht=ee(34961),Xe=ee(46e3),et=ee(34925),Me=ee(16931),pt=ee(51636),ye=re=>{const{componentCls:le,motionDurationSlow:ge,horizontalLineHeight:lt,colorSplit:ke,lineWidth:Ie,lineType:Fe,itemPaddingInline:Ke}=re;return{[`${le}-horizontal`]:{lineHeight:lt,border:0,borderBottom:`${(0,Qe.unit)(Ie)} ${Fe} ${ke}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${le}-item, ${le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ke},[`> ${le}-item:hover,
|
|
|
> ${le}-item-active,
|
|
|
> ${le}-submenu ${le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${le}-item, ${le}-submenu-title`]:{transition:[`border-color ${ge}`,`background ${ge}`].join(",")},[`${le}-submenu-arrow`]:{display:"none"}}}},Ue=re=>{let{componentCls:le,menuArrowOffset:ge,calc:lt}=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,Qe.unit)(lt(ge).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,Qe.unit)(ge)})`}}}}};const nt=re=>Object.assign({},(0,Tt.oN)(re));var Ce=(re,le)=>{const{componentCls:ge,itemColor:lt,itemSelectedColor:ke,subMenuItemSelectedColor:Ie,groupTitleColor:Fe,itemBg:Ke,subMenuItemBg:it,itemSelectedBg:xe,activeBarHeight:Oe,activeBarWidth:Ot,activeBarBorderWidth:Mt,motionDurationSlow:Vt,motionEaseInOut:Ft,motionEaseOut:mt,itemPaddingInline:Zt,motionDurationMid:Dt,itemHoverColor:Ut,lineType:sn,colorSplit:pn,itemDisabledColor:mn,dangerItemColor:ze,dangerItemHoverColor:bt,dangerItemSelectedColor:$t,dangerItemActiveBg:ft,dangerItemSelectedBg:Et,popupBg:Nt,itemHoverBg:vn,itemActiveBg:kn,menuSubMenuBg:cn,horizontalItemSelectedColor:bn,horizontalItemSelectedBg:en,horizontalItemBorderRadius:on,horizontalItemHoverBg:gn}=re;return{[`${ge}-${le}, ${ge}-${le} > ${ge}`]:{color:lt,background:Ke,[`&${ge}-root:focus-visible`]:Object.assign({},nt(re)),[`${ge}-item`]:{"&-group-title, &-extra":{color:Fe}},[`${ge}-submenu-selected > ${ge}-submenu-title`]:{color:Ie},[`${ge}-item, ${ge}-submenu-title`]:{color:lt,[`&:not(${ge}-item-disabled):focus-visible`]:Object.assign({},nt(re))},[`${ge}-item-disabled, ${ge}-submenu-disabled`]:{color:`${mn} !important`},[`${ge}-item:not(${ge}-item-selected):not(${ge}-submenu-selected)`]:{[`&:hover, > ${ge}-submenu-title:hover`]:{color:Ut}},[`&:not(${ge}-horizontal)`]:{[`${ge}-item:not(${ge}-item-selected)`]:{"&:hover":{backgroundColor:vn},"&:active":{backgroundColor:kn}},[`${ge}-submenu-title`]:{"&:hover":{backgroundColor:vn},"&:active":{backgroundColor:kn}}},[`${ge}-item-danger`]:{color:ze,[`&${ge}-item:hover`]:{[`&:not(${ge}-item-selected):not(${ge}-submenu-selected)`]:{color:bt}},[`&${ge}-item:active`]:{background:ft}},[`${ge}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ge}-item-selected`]:{color:ke,[`&${ge}-item-danger`]:{color:$t},"a, a:hover":{color:"inherit"}},[`& ${ge}-item-selected`]:{backgroundColor:xe,[`&${ge}-item-danger`]:{backgroundColor:Et}},[`&${ge}-submenu > ${ge}`]:{backgroundColor:cn},[`&${ge}-popup > ${ge}`]:{backgroundColor:Nt},[`&${ge}-submenu-popup > ${ge}`]:{backgroundColor:Nt},[`&${ge}-horizontal`]:Object.assign(Object.assign({},le==="dark"?{borderBottom:0}:{}),{[`> ${ge}-item, > ${ge}-submenu`]:{top:Mt,marginTop:re.calc(Mt).mul(-1).equal(),marginBottom:0,borderRadius:on,"&::after":{position:"absolute",insetInline:Zt,bottom:0,borderBottom:`${(0,Qe.unit)(Oe)} solid transparent`,transition:`border-color ${Vt} ${Ft}`,content:'""'},"&:hover, &-active, &-open":{background:gn,"&::after":{borderBottomWidth:Oe,borderBottomColor:bn}},"&-selected":{color:bn,backgroundColor:en,"&:hover":{backgroundColor:en},"&::after":{borderBottomWidth:Oe,borderBottomColor:bn}}}}),[`&${ge}-root`]:{[`&${ge}-inline, &${ge}-vertical`]:{borderInlineEnd:`${(0,Qe.unit)(Mt)} ${sn} ${pn}`}},[`&${ge}-inline`]:{[`${ge}-sub${ge}-inline`]:{background:it},[`${ge}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,Qe.unit)(Ot)} solid ${ke}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Dt} ${mt}`,`opacity ${Dt} ${mt}`].join(","),content:'""'},[`&${ge}-item-danger`]:{"&::after":{borderInlineEndColor:$t}}},[`${ge}-selected, ${ge}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Dt} ${Ft}`,`opacity ${Dt} ${Ft}`].join(",")}}}}}};const de=re=>{const{componentCls:le,itemHeight:ge,itemMarginInline:lt,padding:ke,menuArrowSize:Ie,marginXS:Fe,itemMarginBlock:Ke,itemWidth:it,itemPaddingInline:xe}=re,Oe=re.calc(Ie).add(ke).add(Fe).equal();return{[`${le}-item`]:{position:"relative",overflow:"hidden"},[`${le}-item, ${le}-submenu-title`]:{height:ge,lineHeight:(0,Qe.unit)(ge),paddingInline:xe,overflow:"hidden",textOverflow:"ellipsis",marginInline:lt,marginBlock:Ke,width:it},[`> ${le}-item,
|
|
|
> ${le}-submenu > ${le}-submenu-title`]:{height:ge,lineHeight:(0,Qe.unit)(ge)},[`${le}-item-group-list ${le}-submenu-title,
|
|
|
${le}-submenu-title`]:{paddingInlineEnd:Oe}}};var Kt=re=>{const{componentCls:le,iconCls:ge,itemHeight:lt,colorTextLightSolid:ke,dropdownWidth:Ie,controlHeightLG:Fe,motionEaseOut:Ke,paddingXL:it,itemMarginInline:xe,fontSizeLG:Oe,motionDurationFast:Ot,motionDurationSlow:Mt,paddingXS:Vt,boxShadowSecondary:Ft,collapsedWidth:mt,collapsedIconSize:Zt}=re,Dt={height:lt,lineHeight:(0,Qe.unit)(lt),listStylePosition:"inside",listStyleType:"disc"};return[{[le]:{"&-inline, &-vertical":Object.assign({[`&${le}-root`]:{boxShadow:"none"}},de(re))},[`${le}-submenu-popup`]:{[`${le}-vertical`]:Object.assign(Object.assign({},de(re)),{boxShadow:Ft})}},{[`${le}-submenu-popup ${le}-vertical${le}-sub`]:{minWidth:Ie,maxHeight:`calc(100vh - ${(0,Qe.unit)(re.calc(Fe).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 ${Ot} ${Ke}`].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`]:Dt,[`& ${le}-item-group-title`]:{paddingInlineStart:it}},[`${le}-item`]:Dt}},{[`${le}-inline-collapsed`]:{width:mt,[`&${le}-root`]:{[`${le}-item, ${le}-submenu ${le}-submenu-title`]:{[`> ${le}-inline-collapsed-noicon`]:{fontSize:Oe,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,Qe.unit)(re.calc(Zt).div(2).equal())} - ${(0,Qe.unit)(xe)})`,textOverflow:"clip",[`
|
|
|
${le}-submenu-arrow,
|
|
|
${le}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${le}-item-icon, ${ge}`]:{margin:0,fontSize:Zt,lineHeight:(0,Qe.unit)(lt),"+ span":{display:"inline-block",opacity:0}}},[`${le}-item-icon, ${ge}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${le}-item-icon, ${ge}`]:{display:"none"},"a, a:hover":{color:ke}},[`${le}-item-group-title`]:Object.assign(Object.assign({},Tt.vS),{paddingInline:Vt})}}]};const Lt=re=>{const{componentCls:le,motionDurationSlow:ge,motionDurationMid:lt,motionEaseInOut:ke,motionEaseOut:Ie,iconCls:Fe,iconSize:Ke,iconMarginInlineEnd:it}=re;return{[`${le}-item, ${le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ge}`,`background ${ge}`,`padding calc(${ge} + 0.1s) ${ke}`].join(","),[`${le}-item-icon, ${Fe}`]:{minWidth:Ke,fontSize:Ke,transition:[`font-size ${lt} ${Ie}`,`margin ${ge} ${ke}`,`color ${ge}`].join(","),"+ span":{marginInlineStart:it,opacity:1,transition:[`opacity ${ge} ${ke}`,`margin ${ge}`,`color ${ge}`].join(",")}},[`${le}-item-icon`]:Object.assign({},(0,Tt.Ro)()),[`&${le}-item-only-child`]:{[`> ${Fe}, > ${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"}}}},Pe=re=>{const{componentCls:le,motionDurationSlow:ge,motionEaseInOut:lt,borderRadius:ke,menuArrowSize:Ie,menuArrowOffset:Fe}=re;return{[`${le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:re.margin,width:Ie,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ge} ${lt}, opacity ${ge}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:re.calc(Ie).mul(.6).equal(),height:re.calc(Ie).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:ke,transition:[`background ${ge} ${lt}`,`transform ${ge} ${lt}`,`top ${ge} ${lt}`,`color ${ge} ${lt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,Qe.unit)(re.calc(Fe).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,Qe.unit)(Fe)})`}}}}},ot=re=>{const{antCls:le,componentCls:ge,fontSize:lt,motionDurationSlow:ke,motionDurationMid:Ie,motionEaseInOut:Fe,paddingXS:Ke,padding:it,colorSplit:xe,lineWidth:Oe,zIndexPopup:Ot,borderRadiusLG:Mt,subMenuItemBorderRadius:Vt,menuArrowSize:Ft,menuArrowOffset:mt,lineType:Zt,groupTitleLineHeight:Dt,groupTitleFontSize:Ut}=re;return[{"":{[ge]:Object.assign(Object.assign({},(0,Tt.dF)()),{"&-hidden":{display:"none"}})},[`${ge}-submenu-hidden`]:{display:"none"}},{[ge]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Tt.Wf)(re)),(0,Tt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:lt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ke} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ge}-item`]:{flex:"none"}},[`${ge}-item, ${ge}-submenu, ${ge}-submenu-title`]:{borderRadius:re.itemBorderRadius},[`${ge}-item-group-title`]:{padding:`${(0,Qe.unit)(Ke)} ${(0,Qe.unit)(it)}`,fontSize:Ut,lineHeight:Dt,transition:`all ${ke}`},[`&-horizontal ${ge}-submenu`]:{transition:[`border-color ${ke} ${Fe}`,`background ${ke} ${Fe}`].join(",")},[`${ge}-submenu, ${ge}-submenu-inline`]:{transition:[`border-color ${ke} ${Fe}`,`background ${ke} ${Fe}`,`padding ${Ie} ${Fe}`].join(",")},[`${ge}-submenu ${ge}-sub`]:{cursor:"initial",transition:[`background ${ke} ${Fe}`,`padding ${ke} ${Fe}`].join(",")},[`${ge}-title-content`]:{transition:`color ${ke}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${le}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${ge}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:re.padding}},[`${ge}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ge}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:xe,borderStyle:Zt,borderWidth:0,borderTopWidth:Oe,marginBlock:Oe,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Lt(re)),{[`${ge}-item-group`]:{[`${ge}-item-group-list`]:{margin:0,padding:0,[`${ge}-item, ${ge}-submenu-title`]:{paddingInline:`${(0,Qe.unit)(re.calc(lt).mul(2).equal())} ${(0,Qe.unit)(it)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ot,borderRadius:Mt,boxShadow:"none",transformOrigin:"0 0",[`&${ge}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${ge}`]:Object.assign(Object.assign(Object.assign({borderRadius:Mt},Lt(re)),Pe(re)),{[`${ge}-item, ${ge}-submenu > ${ge}-submenu-title`]:{borderRadius:Vt},[`${ge}-submenu-title::after`]:{transition:`transform ${ke} ${Fe}`}})},"\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}}}),Pe(re)),{[`&-inline-collapsed ${ge}-submenu-arrow,
|
|
|
&-inline ${ge}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,Qe.unit)(mt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,Qe.unit)(re.calc(mt).mul(-1).equal())})`}},[`${ge}-submenu-open${ge}-submenu-inline > ${ge}-submenu-title > ${ge}-submenu-arrow`]:{transform:`translateY(${(0,Qe.unit)(re.calc(Ft).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,Qe.unit)(re.calc(mt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,Qe.unit)(mt)})`}}})},{[`${le}-layout-header`]:{[ge]:{lineHeight:"inherit"}}}]},rt=re=>{var le,ge,lt;const{colorPrimary:ke,colorError:Ie,colorTextDisabled:Fe,colorErrorBg:Ke,colorText:it,colorTextDescription:xe,colorBgContainer:Oe,colorFillAlter:Ot,colorFillContent:Mt,lineWidth:Vt,lineWidthBold:Ft,controlItemBgActive:mt,colorBgTextHover:Zt,controlHeightLG:Dt,lineHeight:Ut,colorBgElevated:sn,marginXXS:pn,padding:mn,fontSize:ze,controlHeightSM:bt,fontSizeLG:$t,colorTextLightSolid:ft,colorErrorHover:Et}=re,Nt=(le=re.activeBarWidth)!==null&&le!==void 0?le:0,vn=(ge=re.activeBarBorderWidth)!==null&&ge!==void 0?ge:Vt,kn=(lt=re.itemMarginInline)!==null&<!==void 0?lt:re.marginXXS,cn=new Ve.FastColor(ft).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:re.zIndexPopupBase+50,radiusItem:re.borderRadiusLG,itemBorderRadius:re.borderRadiusLG,radiusSubMenuItem:re.borderRadiusSM,subMenuItemBorderRadius:re.borderRadiusSM,colorItemText:it,itemColor:it,colorItemTextHover:it,itemHoverColor:it,colorItemTextHoverHorizontal:ke,horizontalItemHoverColor:ke,colorGroupTitle:xe,groupTitleColor:xe,colorItemTextSelected:ke,itemSelectedColor:ke,subMenuItemSelectedColor:ke,colorItemTextSelectedHorizontal:ke,horizontalItemSelectedColor:ke,colorItemBg:Oe,itemBg:Oe,colorItemBgHover:Zt,itemHoverBg:Zt,colorItemBgActive:Mt,itemActiveBg:mt,colorSubItemBg:Ot,subMenuItemBg:Ot,colorItemBgSelected:mt,itemSelectedBg:mt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Nt,colorActiveBarHeight:Ft,activeBarHeight:Ft,colorActiveBarBorderSize:Vt,activeBarBorderWidth:vn,colorItemTextDisabled:Fe,itemDisabledColor:Fe,colorDangerItemText:Ie,dangerItemColor:Ie,colorDangerItemTextHover:Ie,dangerItemHoverColor:Ie,colorDangerItemTextSelected:Ie,dangerItemSelectedColor:Ie,colorDangerItemBgActive:Ke,dangerItemActiveBg:Ke,colorDangerItemBgSelected:Ke,dangerItemSelectedBg:Ke,itemMarginInline:kn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Dt,groupTitleLineHeight:Ut,collapsedWidth:Dt*2,popupBg:sn,itemMarginBlock:pn,itemPaddingInline:mn,horizontalLineHeight:`${Dt*1.15}px`,iconSize:ze,iconMarginInlineEnd:bt-ze,collapsedIconSize:$t,groupTitleFontSize:ze,darkItemDisabledColor:new Ve.FastColor(ft).setA(.25).toRgbString(),darkItemColor:cn,darkDangerItemColor:Ie,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ft,darkItemSelectedBg:ke,darkDangerItemSelectedBg:Ie,darkItemHoverBg:"transparent",darkGroupTitleColor:cn,darkItemHoverColor:ft,darkDangerItemHoverColor:Et,darkDangerItemSelectedColor:ft,darkDangerItemActiveBg:Ie,itemWidth:Nt?`calc(100% + ${vn}px)`:`calc(100% - ${kn*2}px)`}};var an=function(re){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:re,ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Me.I$)("Menu",ke=>{const{colorBgElevated:Ie,controlHeightLG:Fe,fontSize:Ke,darkItemColor:it,darkDangerItemColor:xe,darkItemBg:Oe,darkSubMenuItemBg:Ot,darkItemSelectedColor:Mt,darkItemSelectedBg:Vt,darkDangerItemSelectedBg:Ft,darkItemHoverBg:mt,darkGroupTitleColor:Zt,darkItemHoverColor:Dt,darkItemDisabledColor:Ut,darkDangerItemHoverColor:sn,darkDangerItemSelectedColor:pn,darkDangerItemActiveBg:mn,popupBg:ze,darkPopupBg:bt}=ke,$t=ke.calc(Ke).div(7).mul(5).equal(),ft=(0,pt.mergeToken)(ke,{menuArrowSize:$t,menuHorizontalHeight:ke.calc(Fe).mul(1.15).equal(),menuArrowOffset:ke.calc($t).mul(.25).equal(),menuSubMenuBg:Ie,calc:ke.calc,popupBg:ze}),Et=(0,pt.mergeToken)(ft,{itemColor:it,itemHoverColor:Dt,groupTitleColor:Zt,itemSelectedColor:Mt,subMenuItemSelectedColor:Mt,itemBg:Oe,popupBg:bt,subMenuItemBg:Ot,itemActiveBg:"transparent",itemSelectedBg:Vt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:mt,itemDisabledColor:Ut,dangerItemColor:xe,dangerItemHoverColor:sn,dangerItemSelectedColor:pn,dangerItemActiveBg:mn,dangerItemSelectedBg:Ft,menuSubMenuBg:Ot,horizontalItemSelectedColor:Mt,horizontalItemSelectedBg:Vt});return[ot(ft),ye(ft),Kt(ft),Ce(ft,"light"),Ce(Et,"dark"),Ue(ft),(0,ht.Z)(ft),(0,Xe.oN)(ft,"slide-up"),(0,Xe.oN)(ft,"slide-down"),(0,et._y)(ft,"zoom-big")]},rt,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:ge,unitless:{groupTitleLineHeight:!0}})(re,le)},tt=ee(75030),_e=re=>{var le;const{popupClassName:ge,icon:lt,title:ke,theme:Ie}=re,Fe=E.useContext(at),{prefixCls:Ke,inlineCollapsed:it,theme:xe}=Fe,Oe=(0,Ae.Xl)();let Ot;if(!lt)Ot=it&&!Oe.length&&ke&&typeof ke=="string"?E.createElement("div",{className:`${Ke}-inline-collapsed-noicon`},ke.charAt(0)):E.createElement("span",{className:`${Ke}-title-content`},ke);else{const Ft=E.isValidElement(ke)&&ke.type==="span";Ot=E.createElement(E.Fragment,null,(0,ce.Tm)(lt,{className:be()(E.isValidElement(lt)?(le=lt.props)===null||le===void 0?void 0:le.className:"",`${Ke}-item-icon`)}),Ft?ke:E.createElement("span",{className:`${Ke}-title-content`},ke))}const Mt=E.useMemo(()=>Object.assign(Object.assign({},Fe),{firstLevel:!1}),[Fe]),[Vt]=(0,tt.Cn)("Menu");return E.createElement(at.Provider,{value:Mt},E.createElement(Ae.Wd,Object.assign({},(0,Ze.Z)(re,["icon"]),{title:Ot,popupClassName:be()(Ke,ge,`${Ke}-${Ie||xe}`),popupStyle:Object.assign({zIndex:Vt},re.popupStyle)})))},Gt=function(re,le){var ge={};for(var lt in re)Object.prototype.hasOwnProperty.call(re,lt)&&le.indexOf(lt)<0&&(ge[lt]=re[lt]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,lt=Object.getOwnPropertySymbols(re);ke<lt.length;ke++)le.indexOf(lt[ke])<0&&Object.prototype.propertyIsEnumerable.call(re,lt[ke])&&(ge[lt[ke]]=re[lt[ke]]);return ge};function wt(re){return re===null||re===!1}const ae={item:je,submenu:_e,divider:Be};var te=(0,E.forwardRef)((re,le)=>{var ge;const lt=E.useContext(Te.Z),ke=lt||{},{getPrefixCls:Ie,getPopupContainer:Fe,direction:Ke,menu:it}=E.useContext(We.E_),xe=Ie(),{prefixCls:Oe,className:Ot,style:Mt,theme:Vt="light",expandIcon:Ft,_internalDisableMenuItemTitleTooltip:mt,inlineCollapsed:Zt,siderCollapsed:Dt,rootClassName:Ut,mode:sn,selectable:pn,onClick:mn,overflowedIndicatorPopupClassName:ze}=re,bt=Gt(re,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),$t=(0,Ze.Z)(bt,["collapsedWidth"]);(ge=ke.validator)===null||ge===void 0||ge.call(ke,{mode:sn});const ft=(0,Se.Z)(function(){var xn;mn==null||mn.apply(void 0,arguments),(xn=ke.onClick)===null||xn===void 0||xn.call(ke)}),Et=ke.mode||sn,Nt=pn!=null?pn:ke.selectable,vn=Zt!=null?Zt:Dt,kn={horizontal:{motionName:`${xe}-slide-up`},inline:(0,Ne.Z)(xe),other:{motionName:`${xe}-zoom-big`}},cn=Ie("menu",Oe||ke.prefixCls),bn=(0,De.Z)(cn),[en,on,gn]=an(cn,bn,!lt),$n=be()(`${cn}-${Vt}`,it==null?void 0:it.className,Ot),hn=E.useMemo(()=>{var xn,Wn;if(typeof Ft=="function"||wt(Ft))return Ft||null;if(typeof ke.expandIcon=="function"||wt(ke.expandIcon))return ke.expandIcon||null;if(typeof(it==null?void 0:it.expandIcon)=="function"||wt(it==null?void 0:it.expandIcon))return(it==null?void 0:it.expandIcon)||null;const lr=(xn=Ft!=null?Ft:ke==null?void 0:ke.expandIcon)!==null&&xn!==void 0?xn:it==null?void 0:it.expandIcon;return(0,ce.Tm)(lr,{className:be()(`${cn}-submenu-expand-icon`,E.isValidElement(lr)?(Wn=lr.props)===null||Wn===void 0?void 0:Wn.className:void 0)})},[Ft,ke==null?void 0:ke.expandIcon,it==null?void 0:it.expandIcon,cn]),In=E.useMemo(()=>({prefixCls:cn,inlineCollapsed:vn||!1,direction:Ke,firstLevel:!0,theme:Vt,mode:Et,disableMenuItemTitleTooltip:mt}),[cn,vn,Ke,mt,Vt]);return en(E.createElement(Te.Z.Provider,{value:null},E.createElement(at.Provider,{value:In},E.createElement(Ae.ZP,Object.assign({getPopupContainer:Fe,overflowedIndicator:E.createElement(Ge.Z,null),overflowedIndicatorPopupClassName:be()(cn,`${cn}-${Vt}`,ze),mode:Et,selectable:Nt,onClick:ft},$t,{inlineCollapsed:vn,style:Object.assign(Object.assign({},it==null?void 0:it.style),Mt),className:$n,prefixCls:cn,direction:Ke,defaultMotions:kn,expandIcon:hn,ref:le,rootClassName:be()(Ut,on,ke.rootClassName,gn,bn),_internalComponents:ae})))))});const oe=(0,E.forwardRef)((re,le)=>{const ge=(0,E.useRef)(null),lt=E.useContext(pe.D);return(0,E.useImperativeHandle)(le,()=>({menu:ge.current,focus:ke=>{var Ie;(Ie=ge.current)===null||Ie===void 0||Ie.focus(ke)}})),E.createElement(te,Object.assign({ref:ge},re,lt))});oe.Item=je,oe.SubMenu=_e,oe.Divider=Be,oe.ItemGroup=Ae.BW;var ue=oe},31709:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return it}});var E=ee(59301),Ae=ee(60499),pe={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"},Ge=pe,Ee=ee(7657),be=function(Oe,Ot){return E.createElement(Ee.Z,(0,Ae.Z)({},Oe,{ref:Ot,icon:Ge}))},Se=E.forwardRef(be),Ze=Se,Ne=ee(49198),ce=ee(33853),We=ee(38819),De=ee(92310),It=ee.n(De),at=ee(18642),qe=ee(43749),He=ee(85899),Be=ee(72190),ut=ee(18929),St=ee(10228),Bt=ee(26112),je=ee(48736),Te=ee(17119),Qe=[10,20,50,100],Ve=function(Oe){var Ot=Oe.pageSizeOptions,Mt=Ot===void 0?Qe:Ot,Vt=Oe.locale,Ft=Oe.changeSize,mt=Oe.pageSize,Zt=Oe.goButton,Dt=Oe.quickGo,Ut=Oe.rootPrefixCls,sn=Oe.disabled,pn=Oe.buildOptionText,mn=Oe.showSizeChanger,ze=Oe.sizeChangerRender,bt=E.useState(""),$t=(0,Be.Z)(bt,2),ft=$t[0],Et=$t[1],Nt=function(){return!ft||Number.isNaN(ft)?void 0:Number(ft)},vn=typeof pn=="function"?pn:function(In){return"".concat(In," ").concat(Vt.items_per_page)},kn=function(xn){Et(xn.target.value)},cn=function(xn){Zt||ft===""||(Et(""),!(xn.relatedTarget&&(xn.relatedTarget.className.indexOf("".concat(Ut,"-item-link"))>=0||xn.relatedTarget.className.indexOf("".concat(Ut,"-item"))>=0))&&(Dt==null||Dt(Nt())))},bn=function(xn){ft!==""&&(xn.keyCode===St.Z.ENTER||xn.type==="click")&&(Et(""),Dt==null||Dt(Nt()))},en=function(){return Mt.some(function(xn){return xn.toString()===mt.toString()})?Mt:Mt.concat([mt]).sort(function(xn,Wn){var lr=Number.isNaN(Number(xn))?0:Number(xn),qn=Number.isNaN(Number(Wn))?0:Number(Wn);return lr-qn})},on="".concat(Ut,"-options");if(!mn&&!Dt)return null;var gn=null,$n=null,hn=null;return mn&&ze&&(gn=ze({disabled:sn,size:mt,onSizeChange:function(xn){Ft==null||Ft(Number(xn))},"aria-label":Vt.page_size,className:"".concat(on,"-size-changer"),options:en().map(function(In){return{label:vn(In),value:In}})})),Dt&&(Zt&&(hn=typeof Zt=="boolean"?E.createElement("button",{type:"button",onClick:bn,onKeyUp:bn,disabled:sn,className:"".concat(on,"-quick-jumper-button")},Vt.jump_to_confirm):E.createElement("span",{onClick:bn,onKeyUp:bn},Zt)),$n=E.createElement("div",{className:"".concat(on,"-quick-jumper")},Vt.jump_to,E.createElement("input",{disabled:sn,type:"text",value:ft,onChange:kn,onKeyUp:bn,onBlur:cn,"aria-label":Vt.page}),Vt.page,hn)),E.createElement("li",{className:on},gn,$n)},Tt=Ve,ht=function(Oe){var Ot=Oe.rootPrefixCls,Mt=Oe.page,Vt=Oe.active,Ft=Oe.className,mt=Oe.showTitle,Zt=Oe.onClick,Dt=Oe.onKeyPress,Ut=Oe.itemRender,sn="".concat(Ot,"-item"),pn=It()(sn,"".concat(sn,"-").concat(Mt),(0,at.Z)((0,at.Z)({},"".concat(sn,"-active"),Vt),"".concat(sn,"-disabled"),!Mt),Ft),mn=function(){Zt(Mt)},ze=function(ft){Dt(ft,Zt,Mt)},bt=Ut(Mt,"page",E.createElement("a",{rel:"nofollow"},Mt));return bt?E.createElement("li",{title:mt?String(Mt):null,className:pn,onClick:mn,onKeyDown:ze,tabIndex:0},bt):null},Xe=ht,et=function(Oe,Ot,Mt){return Mt};function Me(){}function pt(xe){var Oe=Number(xe);return typeof Oe=="number"&&!Number.isNaN(Oe)&&isFinite(Oe)&&Math.floor(Oe)===Oe}function Ye(xe,Oe,Ot){var Mt=typeof xe=="undefined"?Oe:xe;return Math.floor((Ot-1)/Mt)+1}var ye=function(Oe){var Ot=Oe.prefixCls,Mt=Ot===void 0?"rc-pagination":Ot,Vt=Oe.selectPrefixCls,Ft=Vt===void 0?"rc-select":Vt,mt=Oe.className,Zt=Oe.current,Dt=Oe.defaultCurrent,Ut=Dt===void 0?1:Dt,sn=Oe.total,pn=sn===void 0?0:sn,mn=Oe.pageSize,ze=Oe.defaultPageSize,bt=ze===void 0?10:ze,$t=Oe.onChange,ft=$t===void 0?Me:$t,Et=Oe.hideOnSinglePage,Nt=Oe.align,vn=Oe.showPrevNextJumpers,kn=vn===void 0?!0:vn,cn=Oe.showQuickJumper,bn=Oe.showLessItems,en=Oe.showTitle,on=en===void 0?!0:en,gn=Oe.onShowSizeChange,$n=gn===void 0?Me:gn,hn=Oe.locale,In=hn===void 0?Te.Z:hn,xn=Oe.style,Wn=Oe.totalBoundaryShowSizeChanger,lr=Wn===void 0?50:Wn,qn=Oe.disabled,Gn=Oe.simple,cr=Oe.showTotal,gr=Oe.showSizeChanger,Ir=gr===void 0?pn>lr:gr,pr=Oe.sizeChangerRender,tn=Oe.pageSizeOptions,En=Oe.itemRender,An=En===void 0?et:En,yr=Oe.jumpPrevIcon,st=Oe.jumpNextIcon,xt=Oe.prevIcon,Le=Oe.nextIcon,ct=E.useRef(null),$e=(0,ut.Z)(10,{value:mn,defaultValue:bt}),dt=(0,Be.Z)($e,2),Pt=dt[0],yn=dt[1],Cn=(0,ut.Z)(1,{value:Zt,defaultValue:Ut,postState:function(Lr){return Math.max(1,Math.min(Lr,Ye(void 0,Pt,pn)))}}),Mn=(0,Be.Z)(Cn,2),Qt=Mn[0],_t=Mn[1],Yt=E.useState(Qt),Pn=(0,Be.Z)(Yt,2),Fn=Pn[0],zn=Pn[1];(0,E.useEffect)(function(){zn(Qt)},[Qt]);var jn=ft!==Me,Dr="current"in Oe,Rr=Math.max(1,Qt-(bn?3:5)),zr=Math.min(Ye(void 0,Pt,pn),Qt+(bn?3:5));function mr(_r,Lr){var Gi=_r||E.createElement("button",{type:"button","aria-label":Lr,className:"".concat(Mt,"-item-link")});return typeof _r=="function"&&(Gi=E.createElement(_r,(0,He.Z)({},Oe))),Gi}function er(_r){var Lr=_r.target.value,Gi=Ye(void 0,Pt,pn),_i;return Lr===""?_i=Lr:Number.isNaN(Number(Lr))?_i=Fn:Lr>=Gi?_i=Gi:_i=Number(Lr),_i}function or(_r){return pt(_r)&&_r!==Qt&&pt(pn)&&pn>0}var Or=pn>Pt?cn:!1;function Qr(_r){(_r.keyCode===St.Z.UP||_r.keyCode===St.Z.DOWN)&&_r.preventDefault()}function Hr(_r){var Lr=er(_r);switch(Lr!==Fn&&zn(Lr),_r.keyCode){case St.Z.ENTER:kr(Lr);break;case St.Z.UP:kr(Lr-1);break;case St.Z.DOWN:kr(Lr+1);break;default:break}}function Yr(_r){kr(er(_r))}function Kr(_r){var Lr=Ye(_r,Pt,pn),Gi=Qt>Lr&&Lr!==0?Lr:Qt;yn(_r),zn(Gi),$n==null||$n(Qt,_r),_t(Gi),ft==null||ft(Gi,_r)}function kr(_r){if(or(_r)&&!qn){var Lr=Ye(void 0,Pt,pn),Gi=_r;return _r>Lr?Gi=Lr:_r<1&&(Gi=1),Gi!==Fn&&zn(Gi),_t(Gi),ft==null||ft(Gi,Pt),Gi}return Qt}var Fr=Qt>1,oi=Qt<Ye(void 0,Pt,pn);function qr(){Fr&&kr(Qt-1)}function ei(){oi&&kr(Qt+1)}function si(){kr(Rr)}function ci(){kr(zr)}function Zr(_r,Lr){if(_r.key==="Enter"||_r.charCode===St.Z.ENTER||_r.keyCode===St.Z.ENTER){for(var Gi=arguments.length,_i=new Array(Gi>2?Gi-2:0),Wo=2;Wo<Gi;Wo++)_i[Wo-2]=arguments[Wo];Lr.apply(void 0,_i)}}function ti(_r){Zr(_r,qr)}function wr(_r){Zr(_r,ei)}function mi(_r){Zr(_r,si)}function Hi(_r){Zr(_r,ci)}function Ui(_r){var Lr=An(_r,"prev",mr(xt,"prev page"));return E.isValidElement(Lr)?E.cloneElement(Lr,{disabled:!Fr}):Lr}function yi(_r){var Lr=An(_r,"next",mr(Le,"next page"));return E.isValidElement(Lr)?E.cloneElement(Lr,{disabled:!oi}):Lr}function Ii(_r){(_r.type==="click"||_r.keyCode===St.Z.ENTER)&&kr(Fn)}var bi=null,Ri=(0,Bt.Z)(Oe,{aria:!0,data:!0}),Ki=cr&&E.createElement("li",{className:"".concat(Mt,"-total-text")},cr(pn,[pn===0?0:(Qt-1)*Pt+1,Qt*Pt>pn?pn:Qt*Pt])),ni=null,ar=Ye(void 0,Pt,pn);if(Et&&pn<=Pt)return null;var wn=[],Ln={rootPrefixCls:Mt,onClick:kr,onKeyPress:Zr,showTitle:on,itemRender:An,page:-1},Rn=Qt-1>0?Qt-1:0,On=Qt+1<ar?Qt+1:ar,Qn=cn&&cn.goButton,dr=(0,qe.Z)(Gn)==="object"?Gn.readOnly:!Gn,Dn=Qn,Bn=null;Gn&&(Qn&&(typeof Qn=="boolean"?Dn=E.createElement("button",{type:"button",onClick:Ii,onKeyUp:Ii},In.jump_to_confirm):Dn=E.createElement("span",{onClick:Ii,onKeyUp:Ii},Qn),Dn=E.createElement("li",{title:on?"".concat(In.jump_to).concat(Qt,"/").concat(ar):null,className:"".concat(Mt,"-simple-pager")},Dn)),Bn=E.createElement("li",{title:on?"".concat(Qt,"/").concat(ar):null,className:"".concat(Mt,"-simple-pager")},dr?Fn:E.createElement("input",{type:"text","aria-label":In.jump_to,value:Fn,disabled:qn,onKeyDown:Qr,onKeyUp:Hr,onChange:Hr,onBlur:Yr,size:3}),E.createElement("span",{className:"".concat(Mt,"-slash")},"/"),ar));var Un=bn?1:2;if(ar<=3+Un*2){ar||wn.push(E.createElement(Xe,(0,Ae.Z)({},Ln,{key:"noPager",page:1,className:"".concat(Mt,"-item-disabled")})));for(var Xn=1;Xn<=ar;Xn+=1)wn.push(E.createElement(Xe,(0,Ae.Z)({},Ln,{key:Xn,page:Xn,active:Qt===Xn})))}else{var jr=bn?In.prev_3:In.prev_5,Si=bn?In.next_3:In.next_5,di=An(Rr,"jump-prev",mr(yr,"prev page")),ki=An(zr,"jump-next",mr(st,"next page"));kn&&(bi=di?E.createElement("li",{title:on?jr:null,key:"prev",onClick:si,tabIndex:0,onKeyDown:mi,className:It()("".concat(Mt,"-jump-prev"),(0,at.Z)({},"".concat(Mt,"-jump-prev-custom-icon"),!!yr))},di):null,ni=ki?E.createElement("li",{title:on?Si:null,key:"next",onClick:ci,tabIndex:0,onKeyDown:Hi,className:It()("".concat(Mt,"-jump-next"),(0,at.Z)({},"".concat(Mt,"-jump-next-custom-icon"),!!st))},ki):null);var xi=Math.max(1,Qt-Un),wi=Math.min(Qt+Un,ar);Qt-1<=Un&&(wi=1+Un*2),ar-Qt<=Un&&(xi=ar-Un*2);for(var Ai=xi;Ai<=wi;Ai+=1)wn.push(E.createElement(Xe,(0,Ae.Z)({},Ln,{key:Ai,page:Ai,active:Qt===Ai})));if(Qt-1>=Un*2&&Qt!==3&&(wn[0]=E.cloneElement(wn[0],{className:It()("".concat(Mt,"-item-after-jump-prev"),wn[0].props.className)}),wn.unshift(bi)),ar-Qt>=Un*2&&Qt!==ar-2){var Di=wn[wn.length-1];wn[wn.length-1]=E.cloneElement(Di,{className:It()("".concat(Mt,"-item-before-jump-next"),Di.props.className)}),wn.push(ni)}xi!==1&&wn.unshift(E.createElement(Xe,(0,Ae.Z)({},Ln,{key:1,page:1}))),wi!==ar&&wn.push(E.createElement(Xe,(0,Ae.Z)({},Ln,{key:ar,page:ar})))}var Ti=Ui(Rn);if(Ti){var so=!Fr||!ar;Ti=E.createElement("li",{title:on?In.prev_page:null,onClick:qr,tabIndex:so?null:0,onKeyDown:ti,className:It()("".concat(Mt,"-prev"),(0,at.Z)({},"".concat(Mt,"-disabled"),so)),"aria-disabled":so},Ti)}var Oo=yi(On);if(Oo){var Mo,No;Gn?(Mo=!oi,No=Fr?0:null):(Mo=!oi||!ar,No=Mo?null:0),Oo=E.createElement("li",{title:on?In.next_page:null,onClick:ei,tabIndex:No,onKeyDown:wr,className:It()("".concat(Mt,"-next"),(0,at.Z)({},"".concat(Mt,"-disabled"),Mo)),"aria-disabled":Mo},Oo)}var Ao=It()(Mt,mt,(0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)({},"".concat(Mt,"-start"),Nt==="start"),"".concat(Mt,"-center"),Nt==="center"),"".concat(Mt,"-end"),Nt==="end"),"".concat(Mt,"-simple"),Gn),"".concat(Mt,"-disabled"),qn));return E.createElement("ul",(0,Ae.Z)({className:Ao,style:xn,ref:ct},Ri),Ki,Ti,Gn?Bn:wn,Oo,E.createElement(Tt,{locale:In,rootPrefixCls:Mt,disabled:qn,selectPrefixCls:Ft,changeSize:Kr,pageSize:Pt,pageSizeOptions:tn,quickGo:Or?kr:null,goButton:Dn,showSizeChanger:Ir,sizeChangerRender:pr}))},jt=ye,Ue=ee(61852),nt=ee(48755),zt=ee(31756),Ce=ee(13783),de=ee(9017),vt=ee(82326),Kt=ee(57700),Lt=ee(36237),Pe=ee(53075),ot=ee(64910),rt=ee(39082),an=ee(63356),tt=ee(51636),Rt=ee(16931);const _e=xe=>{const{componentCls:Oe}=xe;return{[`${Oe}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Oe}-item-link`]:{color:xe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Oe}-item-link`]:{color:xe.colorTextDisabled,cursor:"not-allowed"}}},[`&${Oe}-disabled`]:{cursor:"not-allowed",[`${Oe}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:xe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:xe.colorBorder,backgroundColor:xe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:xe.itemActiveBgDisabled},a:{color:xe.itemActiveColorDisabled}}},[`${Oe}-item-link`]:{color:xe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Oe}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Oe}-simple-pager`]:{color:xe.colorTextDisabled},[`${Oe}-jump-prev, ${Oe}-jump-next`]:{[`${Oe}-item-link-icon`]:{opacity:0},[`${Oe}-item-ellipsis`]:{opacity:1}}},[`&${Oe}-simple`]:{[`${Oe}-prev, ${Oe}-next`]:{[`&${Oe}-disabled ${Oe}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Gt=xe=>{const{componentCls:Oe}=xe;return{[`&${Oe}-mini ${Oe}-total-text, &${Oe}-mini ${Oe}-simple-pager`]:{height:xe.itemSizeSM,lineHeight:(0,Lt.unit)(xe.itemSizeSM)},[`&${Oe}-mini ${Oe}-item`]:{minWidth:xe.itemSizeSM,height:xe.itemSizeSM,margin:0,lineHeight:(0,Lt.unit)(xe.calc(xe.itemSizeSM).sub(2).equal())},[`&${Oe}-mini ${Oe}-prev, &${Oe}-mini ${Oe}-next`]:{minWidth:xe.itemSizeSM,height:xe.itemSizeSM,margin:0,lineHeight:(0,Lt.unit)(xe.itemSizeSM)},[`&${Oe}-mini:not(${Oe}-disabled)`]:{[`${Oe}-prev, ${Oe}-next`]:{[`&:hover ${Oe}-item-link`]:{backgroundColor:xe.colorBgTextHover},[`&:active ${Oe}-item-link`]:{backgroundColor:xe.colorBgTextActive},[`&${Oe}-disabled:hover ${Oe}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Oe}-mini ${Oe}-prev ${Oe}-item-link,
|
|
|
&${Oe}-mini ${Oe}-next ${Oe}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:xe.itemSizeSM,lineHeight:(0,Lt.unit)(xe.itemSizeSM)}},[`&${Oe}-mini ${Oe}-jump-prev, &${Oe}-mini ${Oe}-jump-next`]:{height:xe.itemSizeSM,marginInlineEnd:0,lineHeight:(0,Lt.unit)(xe.itemSizeSM)},[`&${Oe}-mini ${Oe}-options`]:{marginInlineStart:xe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:xe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:xe.itemSizeSM,lineHeight:(0,Lt.unit)(xe.itemSizeSM),input:Object.assign(Object.assign({},(0,Pe.x0)(xe)),{width:xe.paginationMiniQuickJumperInputWidth,height:xe.controlHeightSM})}}}},wt=xe=>{const{componentCls:Oe}=xe;return{[`
|
|
|
&${Oe}-simple ${Oe}-prev,
|
|
|
&${Oe}-simple ${Oe}-next
|
|
|
`]:{height:xe.itemSizeSM,lineHeight:(0,Lt.unit)(xe.itemSizeSM),verticalAlign:"top",[`${Oe}-item-link`]:{height:xe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:xe.colorBgTextHover},"&:active":{backgroundColor:xe.colorBgTextActive},"&::after":{height:xe.itemSizeSM,lineHeight:(0,Lt.unit)(xe.itemSizeSM)}}},[`&${Oe}-simple ${Oe}-simple-pager`]:{display:"inline-block",height:xe.itemSizeSM,marginInlineEnd:xe.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,Lt.unit)(xe.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:xe.itemInputBg,border:`${(0,Lt.unit)(xe.lineWidth)} ${xe.lineType} ${xe.colorBorder}`,borderRadius:xe.borderRadius,outline:"none",transition:`border-color ${xe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:xe.colorPrimary},"&:focus":{borderColor:xe.colorPrimaryHover,boxShadow:`${(0,Lt.unit)(xe.inputOutlineOffset)} 0 ${(0,Lt.unit)(xe.controlOutlineWidth)} ${xe.controlOutline}`},"&[disabled]":{color:xe.colorTextDisabled,backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder,cursor:"not-allowed"}}}}},ae=xe=>{const{componentCls:Oe}=xe;return{[`${Oe}-jump-prev, ${Oe}-jump-next`]:{outline:0,[`${Oe}-item-container`]:{position:"relative",[`${Oe}-item-link-icon`]:{color:xe.colorPrimary,fontSize:xe.fontSizeSM,opacity:0,transition:`all ${xe.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Oe}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:xe.colorTextDisabled,letterSpacing:xe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:xe.paginationEllipsisTextIndent,opacity:1,transition:`all ${xe.motionDurationMid}`}},"&:hover":{[`${Oe}-item-link-icon`]:{opacity:1},[`${Oe}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Oe}-prev,
|
|
|
${Oe}-jump-prev,
|
|
|
${Oe}-jump-next
|
|
|
`]:{marginInlineEnd:xe.marginXS},[`
|
|
|
${Oe}-prev,
|
|
|
${Oe}-next,
|
|
|
${Oe}-jump-prev,
|
|
|
${Oe}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:xe.itemSize,height:xe.itemSize,color:xe.colorText,fontFamily:xe.fontFamily,lineHeight:(0,Lt.unit)(xe.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:xe.borderRadius,cursor:"pointer",transition:`all ${xe.motionDurationMid}`},[`${Oe}-prev, ${Oe}-next`]:{outline:0,button:{color:xe.colorText,cursor:"pointer",userSelect:"none"},[`${Oe}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:xe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,Lt.unit)(xe.lineWidth)} ${xe.lineType} transparent`,borderRadius:xe.borderRadius,outline:"none",transition:`all ${xe.motionDurationMid}`},[`&:hover ${Oe}-item-link`]:{backgroundColor:xe.colorBgTextHover},[`&:active ${Oe}-item-link`]:{backgroundColor:xe.colorBgTextActive},[`&${Oe}-disabled:hover`]:{[`${Oe}-item-link`]:{backgroundColor:"transparent"}}},[`${Oe}-slash`]:{marginInlineEnd:xe.paginationSlashMarginInlineEnd,marginInlineStart:xe.paginationSlashMarginInlineStart},[`${Oe}-options`]:{display:"inline-block",marginInlineStart:xe.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:xe.controlHeight,marginInlineStart:xe.marginXS,lineHeight:(0,Lt.unit)(xe.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,Pe.ik)(xe)),(0,rt.$U)(xe,{borderColor:xe.colorBorder,hoverBorderColor:xe.colorPrimaryHover,activeBorderColor:xe.colorPrimary,activeShadow:xe.activeShadow})),{"&[disabled]":Object.assign({},(0,rt.Xy)(xe)),width:xe.calc(xe.controlHeightLG).mul(1.25).equal(),height:xe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:xe.marginXS,marginInlineEnd:xe.marginXS})}}}},ne=xe=>{const{componentCls:Oe}=xe;return{[`${Oe}-item`]:{display:"inline-block",minWidth:xe.itemSize,height:xe.itemSize,marginInlineEnd:xe.marginXS,fontFamily:xe.fontFamily,lineHeight:(0,Lt.unit)(xe.calc(xe.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:xe.itemBg,border:`${(0,Lt.unit)(xe.lineWidth)} ${xe.lineType} transparent`,borderRadius:xe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,Lt.unit)(xe.paginationItemPaddingInline)}`,color:xe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Oe}-item-active)`]:{"&:hover":{transition:`all ${xe.motionDurationMid}`,backgroundColor:xe.colorBgTextHover},"&:active":{backgroundColor:xe.colorBgTextActive}},"&-active":{fontWeight:xe.fontWeightStrong,backgroundColor:xe.itemActiveBg,borderColor:xe.colorPrimary,a:{color:xe.colorPrimary},"&:hover":{borderColor:xe.colorPrimaryHover},"&:hover a":{color:xe.colorPrimaryHover}}}}},te=xe=>{const{componentCls:Oe}=xe;return{[Oe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,an.Wf)(xe)),{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:'""'},[`${Oe}-total-text`]:{display:"inline-block",height:xe.itemSize,marginInlineEnd:xe.marginXS,lineHeight:(0,Lt.unit)(xe.calc(xe.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ne(xe)),ae(xe)),wt(xe)),Gt(xe)),_e(xe)),{[`@media only screen and (max-width: ${xe.screenLG}px)`]:{[`${Oe}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${xe.screenSM}px)`]:{[`${Oe}-options`]:{display:"none"}}}),[`&${xe.componentCls}-rtl`]:{direction:"rtl"}}},oe=xe=>{const{componentCls:Oe}=xe;return{[`${Oe}:not(${Oe}-disabled)`]:{[`${Oe}-item`]:Object.assign({},(0,an.Qy)(xe)),[`${Oe}-jump-prev, ${Oe}-jump-next`]:{"&:focus-visible":Object.assign({[`${Oe}-item-link-icon`]:{opacity:1},[`${Oe}-item-ellipsis`]:{opacity:0}},(0,an.oN)(xe))},[`${Oe}-prev, ${Oe}-next`]:{[`&:focus-visible ${Oe}-item-link`]:Object.assign({},(0,an.oN)(xe))}}}},ue=xe=>Object.assign({itemBg:xe.colorBgContainer,itemSize:xe.controlHeight,itemSizeSM:xe.controlHeightSM,itemActiveBg:xe.colorBgContainer,itemLinkBg:xe.colorBgContainer,itemActiveColorDisabled:xe.colorTextDisabled,itemActiveBgDisabled:xe.controlItemBgActiveDisabled,itemInputBg:xe.colorBgContainer,miniOptionsSizeChangerTop:0},(0,ot.T)(xe)),re=xe=>(0,tt.mergeToken)(xe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:xe.calc(xe.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:xe.calc(xe.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:xe.calc(xe.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:xe.calc(xe.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:xe.marginSM,paginationSlashMarginInlineEnd:xe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,ot.e)(xe));var le=(0,Rt.I$)("Pagination",xe=>{const Oe=re(xe);return[te(Oe),oe(Oe)]},ue);const ge=xe=>{const{componentCls:Oe}=xe;return{[`${Oe}${Oe}-bordered${Oe}-disabled:not(${Oe}-mini)`]:{"&, &:hover":{[`${Oe}-item-link`]:{borderColor:xe.colorBorder}},"&:focus-visible":{[`${Oe}-item-link`]:{borderColor:xe.colorBorder}},[`${Oe}-item, ${Oe}-item-link`]:{backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder,[`&:hover:not(${Oe}-item-active)`]:{backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder,a:{color:xe.colorTextDisabled}},[`&${Oe}-item-active`]:{backgroundColor:xe.itemActiveBgDisabled}},[`${Oe}-prev, ${Oe}-next`]:{"&:hover button":{backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder,color:xe.colorTextDisabled},[`${Oe}-item-link`]:{backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder}}},[`${Oe}${Oe}-bordered:not(${Oe}-mini)`]:{[`${Oe}-prev, ${Oe}-next`]:{"&:hover button":{borderColor:xe.colorPrimaryHover,backgroundColor:xe.itemBg},[`${Oe}-item-link`]:{backgroundColor:xe.itemLinkBg,borderColor:xe.colorBorder},[`&:hover ${Oe}-item-link`]:{borderColor:xe.colorPrimary,backgroundColor:xe.itemBg,color:xe.colorPrimary},[`&${Oe}-disabled`]:{[`${Oe}-item-link`]:{borderColor:xe.colorBorder,color:xe.colorTextDisabled}}},[`${Oe}-item`]:{backgroundColor:xe.itemBg,border:`${(0,Lt.unit)(xe.lineWidth)} ${xe.lineType} ${xe.colorBorder}`,[`&:hover:not(${Oe}-item-active)`]:{borderColor:xe.colorPrimary,backgroundColor:xe.itemBg,a:{color:xe.colorPrimary}},"&-active":{borderColor:xe.colorPrimary}}}}};var lt=(0,Rt.bk)(["Pagination","bordered"],xe=>{const Oe=re(xe);return[ge(Oe)]},ue);function ke(xe){return(0,E.useMemo)(()=>typeof xe=="boolean"?[xe,{}]:xe&&typeof xe=="object"?[!0,xe]:[void 0,void 0],[xe])}var Ie=function(xe,Oe){var Ot={};for(var Mt in xe)Object.prototype.hasOwnProperty.call(xe,Mt)&&Oe.indexOf(Mt)<0&&(Ot[Mt]=xe[Mt]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vt=0,Mt=Object.getOwnPropertySymbols(xe);Vt<Mt.length;Vt++)Oe.indexOf(Mt[Vt])<0&&Object.prototype.propertyIsEnumerable.call(xe,Mt[Vt])&&(Ot[Mt[Vt]]=xe[Mt[Vt]]);return Ot},Ke=xe=>{const{align:Oe,prefixCls:Ot,selectPrefixCls:Mt,className:Vt,rootClassName:Ft,style:mt,size:Zt,locale:Dt,responsive:Ut,showSizeChanger:sn,selectComponentClass:pn,pageSizeOptions:mn}=xe,ze=Ie(xe,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:bt}=(0,Ce.Z)(Ut),[,$t]=(0,Kt.ZP)(),{getPrefixCls:ft,direction:Et,showSizeChanger:Nt,className:vn,style:kn}=(0,nt.dj)("pagination"),cn=ft("pagination",Ot),[bn,en,on]=le(cn),gn=(0,zt.Z)(Zt),$n=gn==="small"||!!(bt&&!gn&&Ut),[hn]=(0,de.Z)("Pagination",Ue.Z),In=Object.assign(Object.assign({},hn),Dt),[xn,Wn]=ke(sn),[lr,qn]=ke(Nt),Gn=xn!=null?xn:lr,cr=Wn!=null?Wn:qn,gr=pn||vt.default,Ir=E.useMemo(()=>mn?mn.map(st=>Number(st)):void 0,[mn]),pr=st=>{var xt;const{disabled:Le,size:ct,onSizeChange:$e,"aria-label":dt,className:Pt,options:yn}=st,{className:Cn,onChange:Mn}=cr||{},Qt=(xt=yn.find(_t=>String(_t.value)===String(ct)))===null||xt===void 0?void 0:xt.value;return E.createElement(gr,Object.assign({disabled:Le,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:_t=>_t.parentNode,"aria-label":dt,options:yn},cr,{value:Qt,onChange:(_t,Yt)=>{$e==null||$e(_t),Mn==null||Mn(_t,Yt)},size:$n?"small":"middle",className:It()(Pt,Cn)}))},tn=E.useMemo(()=>{const st=E.createElement("span",{className:`${cn}-item-ellipsis`},"\u2022\u2022\u2022"),xt=E.createElement("button",{className:`${cn}-item-link`,type:"button",tabIndex:-1},Et==="rtl"?E.createElement(We.Z,null):E.createElement(ce.Z,null)),Le=E.createElement("button",{className:`${cn}-item-link`,type:"button",tabIndex:-1},Et==="rtl"?E.createElement(ce.Z,null):E.createElement(We.Z,null)),ct=E.createElement("a",{className:`${cn}-item-link`},E.createElement("div",{className:`${cn}-item-container`},Et==="rtl"?E.createElement(Ne.Z,{className:`${cn}-item-link-icon`}):E.createElement(Ze,{className:`${cn}-item-link-icon`}),st)),$e=E.createElement("a",{className:`${cn}-item-link`},E.createElement("div",{className:`${cn}-item-container`},Et==="rtl"?E.createElement(Ze,{className:`${cn}-item-link-icon`}):E.createElement(Ne.Z,{className:`${cn}-item-link-icon`}),st));return{prevIcon:xt,nextIcon:Le,jumpPrevIcon:ct,jumpNextIcon:$e}},[Et,cn]),En=ft("select",Mt),An=It()({[`${cn}-${Oe}`]:!!Oe,[`${cn}-mini`]:$n,[`${cn}-rtl`]:Et==="rtl",[`${cn}-bordered`]:$t.wireframe},vn,Vt,Ft,en,on),yr=Object.assign(Object.assign({},kn),mt);return bn(E.createElement(E.Fragment,null,$t.wireframe&&E.createElement(lt,{prefixCls:cn}),E.createElement(jt,Object.assign({},tn,ze,{style:yr,prefixCls:cn,selectPrefixCls:En,className:An,locale:In,pageSizeOptions:Ir,showSizeChanger:Gn,sizeChangerRender:pr}))))},it=Ke},82326:function(fn,Ht,ee){"use strict";var E=ee(59301),Ae=ee(92310),pe=ee.n(Ae),Ge=ee(37463),Ee=ee(2738),be=ee(75030),Se=ee(86641),Ze=ee(45915),Ne=ee(82855),ce=ee(48755),We=ee(38406),De=ee(2171),It=ee(83397),at=ee(31756),qe=ee(56553),He=ee(24971),Be=ee(70045),ut=ee(57700),St=ee(1722),Bt=ee(90376),je=ee(68525),Te=ee(90005),Qe=function(et,Me){var pt={};for(var Ye in et)Object.prototype.hasOwnProperty.call(et,Ye)&&Me.indexOf(Ye)<0&&(pt[Ye]=et[Ye]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Ye=Object.getOwnPropertySymbols(et);ye<Ye.length;ye++)Me.indexOf(Ye[ye])<0&&Object.prototype.propertyIsEnumerable.call(et,Ye[ye])&&(pt[Ye[ye]]=et[Ye[ye]]);return pt};const Ve="SECRET_COMBOBOX_MODE_DO_NOT_USE",Tt=(et,Me)=>{var pt;const{prefixCls:Ye,bordered:ye,className:jt,rootClassName:Ue,getPopupContainer:nt,popupClassName:zt,dropdownClassName:Ce,listHeight:de=256,placement:vt,listItemHeight:Kt,size:Lt,disabled:Pe,notFoundContent:ot,status:rt,builtinPlacements:an,dropdownMatchSelectWidth:tt,popupMatchSelectWidth:Rt,direction:_e,style:Gt,allowClear:wt,variant:ae,dropdownStyle:ne,transitionName:te,tagRender:oe,maxCount:ue,prefix:re}=et,le=Qe(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:ge,getPrefixCls:lt,renderEmpty:ke,direction:Ie,virtual:Fe,popupMatchSelectWidth:Ke,popupOverflow:it}=E.useContext(ce.E_),xe=(0,ce.dj)("select"),[,Oe]=(0,ut.ZP)(),Ot=Kt!=null?Kt:Oe==null?void 0:Oe.controlHeight,Mt=lt("select",Ye),Vt=lt(),Ft=_e!=null?_e:Ie,{compactSize:mt,compactItemClassnames:Zt}=(0,Be.ri)(Mt,Ft),[Dt,Ut]=(0,He.Z)("select",ae,ye),sn=(0,It.Z)(Mt),[pn,mn,ze]=(0,Bt.Z)(Mt,sn),bt=E.useMemo(()=>{const{mode:pr}=et;if(pr!=="combobox")return pr===Ve?"combobox":pr},[et.mode]),$t=bt==="multiple"||bt==="tags",ft=(0,Te.Z)(et.suffixIcon,et.showArrow),Et=(pt=Rt!=null?Rt:tt)!==null&&pt!==void 0?pt:Ke,{status:Nt,hasFeedback:vn,isFormItemInput:kn,feedbackIcon:cn}=E.useContext(qe.aM),bn=(0,Ne.F)(Nt,rt);let en;ot!==void 0?en=ot:bt==="combobox"?en=null:en=(ke==null?void 0:ke("Select"))||E.createElement(We.Z,{componentName:"Select"});const{suffixIcon:on,itemIcon:gn,removeIcon:$n,clearIcon:hn}=(0,je.Z)(Object.assign(Object.assign({},le),{multiple:$t,hasFeedback:vn,feedbackIcon:cn,showSuffixIcon:ft,prefixCls:Mt,componentName:"Select"})),In=wt===!0?{clearIcon:hn}:wt,xn=(0,Ee.Z)(le,["suffixIcon","itemIcon"]),Wn=pe()(zt||Ce,{[`${Mt}-dropdown-${Ft}`]:Ft==="rtl"},Ue,ze,sn,mn),lr=(0,at.Z)(pr=>{var tn;return(tn=Lt!=null?Lt:mt)!==null&&tn!==void 0?tn:pr}),qn=E.useContext(De.Z),Gn=Pe!=null?Pe:qn,cr=pe()({[`${Mt}-lg`]:lr==="large",[`${Mt}-sm`]:lr==="small",[`${Mt}-rtl`]:Ft==="rtl",[`${Mt}-${Dt}`]:Ut,[`${Mt}-in-form-item`]:kn},(0,Ne.Z)(Mt,bn,vn),Zt,xe.className,jt,Ue,ze,sn,mn),gr=E.useMemo(()=>vt!==void 0?vt:Ft==="rtl"?"bottomRight":"bottomLeft",[vt,Ft]),[Ir]=(0,be.Cn)("SelectLike",ne==null?void 0:ne.zIndex);return pn(E.createElement(Ge.ZP,Object.assign({ref:Me,virtual:Fe,showSearch:xe.showSearch},xn,{style:Object.assign(Object.assign({},xe.style),Gt),dropdownMatchSelectWidth:Et,transitionName:(0,Se.m)(Vt,"slide-up",te),builtinPlacements:(0,St.Z)(an,it),listHeight:de,listItemHeight:Ot,mode:bt,prefixCls:Mt,placement:gr,direction:Ft,prefix:re,suffixIcon:on,menuItemSelectedIcon:gn,removeIcon:$n,allowClear:In,notFoundContent:en,className:cr,getPopupContainer:nt||ge,dropdownClassName:Wn,disabled:Gn,dropdownStyle:Object.assign(Object.assign({},ne),{zIndex:Ir}),maxCount:$t?ue:void 0,tagRender:$t?oe:void 0})))},ht=E.forwardRef(Tt),Xe=(0,Ze.Z)(ht,"dropdownAlign");ht.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ve,ht.Option=Ge.Wx,ht.OptGroup=Ge.Xo,ht._InternalPanelDoNotUseOrYouWillBeFired=Xe,Ht.default=ht},1722:function(fn,Ht){"use strict";const ee=Ae=>{const Ge={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Ae==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Ge),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Ge),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Ge),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Ge),{points:["br","tr"],offset:[0,-4]})}};function E(Ae,pe){return Ae||ee(pe)}Ht.Z=E},90376:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ye}});var E=ee(63356),Ae=ee(56119),pe=ee(16931),Ge=ee(51636),Ee=ee(46e3),be=ee(93873);const Se=ye=>{const{optionHeight:jt,optionFontSize:Ue,optionLineHeight:nt,optionPadding:zt}=ye;return{position:"relative",display:"block",minHeight:jt,padding:zt,color:ye.colorText,fontWeight:"normal",fontSize:Ue,lineHeight:nt,boxSizing:"border-box"}};var Ne=ye=>{const{antCls:jt,componentCls:Ue}=ye,nt=`${Ue}-item`,zt=`&${jt}-slide-up-enter${jt}-slide-up-enter-active`,Ce=`&${jt}-slide-up-appear${jt}-slide-up-appear-active`,de=`&${jt}-slide-up-leave${jt}-slide-up-leave-active`,vt=`${Ue}-dropdown-placement-`,Kt=`${nt}-option-selected`;return[{[`${Ue}-dropdown`]:Object.assign(Object.assign({},(0,E.Wf)(ye)),{position:"absolute",top:-9999,zIndex:ye.zIndexPopup,boxSizing:"border-box",padding:ye.paddingXXS,overflow:"hidden",fontSize:ye.fontSize,fontVariant:"initial",backgroundColor:ye.colorBgElevated,borderRadius:ye.borderRadiusLG,outline:"none",boxShadow:ye.boxShadowSecondary,[`
|
|
|
${zt}${vt}bottomLeft,
|
|
|
${Ce}${vt}bottomLeft
|
|
|
`]:{animationName:Ee.fJ},[`
|
|
|
${zt}${vt}topLeft,
|
|
|
${Ce}${vt}topLeft,
|
|
|
${zt}${vt}topRight,
|
|
|
${Ce}${vt}topRight
|
|
|
`]:{animationName:Ee.Qt},[`${de}${vt}bottomLeft`]:{animationName:Ee.Uw},[`
|
|
|
${de}${vt}topLeft,
|
|
|
${de}${vt}topRight
|
|
|
`]:{animationName:Ee.ly},"&-hidden":{display:"none"},[nt]:Object.assign(Object.assign({},Se(ye)),{cursor:"pointer",transition:`background ${ye.motionDurationSlow} ease`,borderRadius:ye.borderRadiusSM,"&-group":{color:ye.colorTextDescription,fontSize:ye.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},E.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${nt}-option-disabled)`]:{backgroundColor:ye.optionActiveBg},[`&-selected:not(${nt}-option-disabled)`]:{color:ye.optionSelectedColor,fontWeight:ye.optionSelectedFontWeight,backgroundColor:ye.optionSelectedBg,[`${nt}-option-state`]:{color:ye.colorPrimary}},"&-disabled":{[`&${nt}-option-selected`]:{backgroundColor:ye.colorBgContainerDisabled},color:ye.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:ye.calc(ye.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Se(ye)),{color:ye.colorTextDisabled})}),[`${Kt}:has(+ ${Kt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Kt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Ee.oN)(ye,"slide-up"),(0,Ee.oN)(ye,"slide-down"),(0,be.Fm)(ye,"move-up"),(0,be.Fm)(ye,"move-down")]},ce=ee(26743),We=ee(36237);function De(ye,jt){const{componentCls:Ue,inputPaddingHorizontalBase:nt,borderRadius:zt}=ye,Ce=ye.calc(ye.controlHeight).sub(ye.calc(ye.lineWidth).mul(2)).equal(),de=jt?`${Ue}-${jt}`:"";return{[`${Ue}-single${de}`]:{fontSize:ye.fontSize,height:ye.controlHeight,[`${Ue}-selector`]:Object.assign(Object.assign({},(0,E.Wf)(ye,!0)),{display:"flex",borderRadius:zt,flex:"1 1 auto",[`${Ue}-selection-wrap:after`]:{lineHeight:(0,We.unit)(Ce)},[`${Ue}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${Ue}-selection-item,
|
|
|
${Ue}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,We.unit)(Ce),transition:`all ${ye.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Ue}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ue}-selection-item:empty:after`,`${Ue}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Ue}-show-arrow ${Ue}-selection-item,
|
|
|
&${Ue}-show-arrow ${Ue}-selection-search,
|
|
|
&${Ue}-show-arrow ${Ue}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ye.showArrowPaddingInlineEnd},[`&${Ue}-open ${Ue}-selection-item`]:{color:ye.colorTextPlaceholder},[`&:not(${Ue}-customize-input)`]:{[`${Ue}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,We.unit)(nt)}`,[`${Ue}-selection-search-input`]:{height:Ce,fontSize:ye.fontSize},"&:after":{lineHeight:(0,We.unit)(Ce)}}},[`&${Ue}-customize-input`]:{[`${Ue}-selector`]:{"&:after":{display:"none"},[`${Ue}-selection-search`]:{position:"static",width:"100%"},[`${Ue}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,We.unit)(nt)}`,"&:after":{display:"none"}}}}}}}function It(ye){const{componentCls:jt}=ye,Ue=ye.calc(ye.controlPaddingHorizontalSM).sub(ye.lineWidth).equal();return[De(ye),De((0,Ge.mergeToken)(ye,{controlHeight:ye.controlHeightSM,borderRadius:ye.borderRadiusSM}),"sm"),{[`${jt}-single${jt}-sm`]:{[`&:not(${jt}-customize-input)`]:{[`${jt}-selector`]:{padding:`0 ${(0,We.unit)(Ue)}`},[`&${jt}-show-arrow ${jt}-selection-search`]:{insetInlineEnd:ye.calc(Ue).add(ye.calc(ye.fontSize).mul(1.5)).equal()},[`
|
|
|
&${jt}-show-arrow ${jt}-selection-item,
|
|
|
&${jt}-show-arrow ${jt}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ye.calc(ye.fontSize).mul(1.5).equal()}}}},De((0,Ge.mergeToken)(ye,{controlHeight:ye.singleItemHeightLG,fontSize:ye.fontSizeLG,borderRadius:ye.borderRadiusLG}),"lg")]}const at=ye=>{const{fontSize:jt,lineHeight:Ue,lineWidth:nt,controlHeight:zt,controlHeightSM:Ce,controlHeightLG:de,paddingXXS:vt,controlPaddingHorizontal:Kt,zIndexPopupBase:Lt,colorText:Pe,fontWeightStrong:ot,controlItemBgActive:rt,controlItemBgHover:an,colorBgContainer:tt,colorFillSecondary:Rt,colorBgContainerDisabled:_e,colorTextDisabled:Gt,colorPrimaryHover:wt,colorPrimary:ae,controlOutline:ne}=ye,te=vt*2,oe=nt*2,ue=Math.min(zt-te,zt-oe),re=Math.min(Ce-te,Ce-oe),le=Math.min(de-te,de-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(vt/2),zIndexPopup:Lt+50,optionSelectedColor:Pe,optionSelectedFontWeight:ot,optionSelectedBg:rt,optionActiveBg:an,optionPadding:`${(zt-jt*Ue)/2}px ${Kt}px`,optionFontSize:jt,optionLineHeight:Ue,optionHeight:zt,selectorBg:tt,clearBg:tt,singleItemHeightLG:de,multipleItemBg:Rt,multipleItemBorderColor:"transparent",multipleItemHeight:ue,multipleItemHeightSM:re,multipleItemHeightLG:le,multipleSelectorBgDisabled:_e,multipleItemColorDisabled:Gt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(ye.fontSize*1.25),hoverBorderColor:wt,activeBorderColor:ae,activeOutlineColor:ne,selectAffixPadding:vt}},qe=(ye,jt)=>{const{componentCls:Ue,antCls:nt,controlOutlineWidth:zt}=ye;return{[`&:not(${Ue}-customize-input) ${Ue}-selector`]:{border:`${(0,We.unit)(ye.lineWidth)} ${ye.lineType} ${jt.borderColor}`,background:ye.selectorBg},[`&:not(${Ue}-disabled):not(${Ue}-customize-input):not(${nt}-pagination-size-changer)`]:{[`&:hover ${Ue}-selector`]:{borderColor:jt.hoverBorderHover},[`${Ue}-focused& ${Ue}-selector`]:{borderColor:jt.activeBorderColor,boxShadow:`0 0 0 ${(0,We.unit)(zt)} ${jt.activeOutlineColor}`,outline:0},[`${Ue}-prefix`]:{color:jt.color}}}},He=(ye,jt)=>({[`&${ye.componentCls}-status-${jt.status}`]:Object.assign({},qe(ye,jt))}),Be=ye=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},qe(ye,{borderColor:ye.colorBorder,hoverBorderHover:ye.hoverBorderColor,activeBorderColor:ye.activeBorderColor,activeOutlineColor:ye.activeOutlineColor,color:ye.colorText})),He(ye,{status:"error",borderColor:ye.colorError,hoverBorderHover:ye.colorErrorHover,activeBorderColor:ye.colorError,activeOutlineColor:ye.colorErrorOutline,color:ye.colorError})),He(ye,{status:"warning",borderColor:ye.colorWarning,hoverBorderHover:ye.colorWarningHover,activeBorderColor:ye.colorWarning,activeOutlineColor:ye.colorWarningOutline,color:ye.colorWarning})),{[`&${ye.componentCls}-disabled`]:{[`&:not(${ye.componentCls}-customize-input) ${ye.componentCls}-selector`]:{background:ye.colorBgContainerDisabled,color:ye.colorTextDisabled}},[`&${ye.componentCls}-multiple ${ye.componentCls}-selection-item`]:{background:ye.multipleItemBg,border:`${(0,We.unit)(ye.lineWidth)} ${ye.lineType} ${ye.multipleItemBorderColor}`}})}),ut=(ye,jt)=>{const{componentCls:Ue,antCls:nt}=ye;return{[`&:not(${Ue}-customize-input) ${Ue}-selector`]:{background:jt.bg,border:`${(0,We.unit)(ye.lineWidth)} ${ye.lineType} transparent`,color:jt.color},[`&:not(${Ue}-disabled):not(${Ue}-customize-input):not(${nt}-pagination-size-changer)`]:{[`&:hover ${Ue}-selector`]:{background:jt.hoverBg},[`${Ue}-focused& ${Ue}-selector`]:{background:ye.selectorBg,borderColor:jt.activeBorderColor,outline:0}}}},St=(ye,jt)=>({[`&${ye.componentCls}-status-${jt.status}`]:Object.assign({},ut(ye,jt))}),Bt=ye=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ut(ye,{bg:ye.colorFillTertiary,hoverBg:ye.colorFillSecondary,activeBorderColor:ye.activeBorderColor,color:ye.colorText})),St(ye,{status:"error",bg:ye.colorErrorBg,hoverBg:ye.colorErrorBgHover,activeBorderColor:ye.colorError,color:ye.colorError})),St(ye,{status:"warning",bg:ye.colorWarningBg,hoverBg:ye.colorWarningBgHover,activeBorderColor:ye.colorWarning,color:ye.colorWarning})),{[`&${ye.componentCls}-disabled`]:{[`&:not(${ye.componentCls}-customize-input) ${ye.componentCls}-selector`]:{borderColor:ye.colorBorder,background:ye.colorBgContainerDisabled,color:ye.colorTextDisabled}},[`&${ye.componentCls}-multiple ${ye.componentCls}-selection-item`]:{background:ye.colorBgContainer,border:`${(0,We.unit)(ye.lineWidth)} ${ye.lineType} ${ye.colorSplit}`}})}),je=ye=>({"&-borderless":{[`${ye.componentCls}-selector`]:{background:"transparent",border:`${(0,We.unit)(ye.lineWidth)} ${ye.lineType} transparent`},[`&${ye.componentCls}-disabled`]:{[`&:not(${ye.componentCls}-customize-input) ${ye.componentCls}-selector`]:{color:ye.colorTextDisabled}},[`&${ye.componentCls}-multiple ${ye.componentCls}-selection-item`]:{background:ye.multipleItemBg,border:`${(0,We.unit)(ye.lineWidth)} ${ye.lineType} ${ye.multipleItemBorderColor}`},[`&${ye.componentCls}-status-error`]:{[`${ye.componentCls}-prefix, ${ye.componentCls}-selection-item`]:{color:ye.colorError}},[`&${ye.componentCls}-status-warning`]:{[`${ye.componentCls}-prefix, ${ye.componentCls}-selection-item`]:{color:ye.colorWarning}}}}),Te=(ye,jt)=>{const{componentCls:Ue,antCls:nt}=ye;return{[`&:not(${Ue}-customize-input) ${Ue}-selector`]:{borderWidth:`0 0 ${(0,We.unit)(ye.lineWidth)} 0`,borderStyle:`none none ${ye.lineType} none`,borderColor:jt.borderColor,background:ye.selectorBg,borderRadius:0},[`&:not(${Ue}-disabled):not(${Ue}-customize-input):not(${nt}-pagination-size-changer)`]:{[`&:hover ${Ue}-selector`]:{borderColor:jt.hoverBorderHover},[`${Ue}-focused& ${Ue}-selector`]:{borderColor:jt.activeBorderColor,outline:0},[`${Ue}-prefix`]:{color:jt.color}}}},Qe=(ye,jt)=>({[`&${ye.componentCls}-status-${jt.status}`]:Object.assign({},Te(ye,jt))}),Ve=ye=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Te(ye,{borderColor:ye.colorBorder,hoverBorderHover:ye.hoverBorderColor,activeBorderColor:ye.activeBorderColor,activeOutlineColor:ye.activeOutlineColor,color:ye.colorText})),Qe(ye,{status:"error",borderColor:ye.colorError,hoverBorderHover:ye.colorErrorHover,activeBorderColor:ye.colorError,activeOutlineColor:ye.colorErrorOutline,color:ye.colorError})),Qe(ye,{status:"warning",borderColor:ye.colorWarning,hoverBorderHover:ye.colorWarningHover,activeBorderColor:ye.colorWarning,activeOutlineColor:ye.colorWarningOutline,color:ye.colorWarning})),{[`&${ye.componentCls}-disabled`]:{[`&:not(${ye.componentCls}-customize-input) ${ye.componentCls}-selector`]:{color:ye.colorTextDisabled}},[`&${ye.componentCls}-multiple ${ye.componentCls}-selection-item`]:{background:ye.multipleItemBg,border:`${(0,We.unit)(ye.lineWidth)} ${ye.lineType} ${ye.multipleItemBorderColor}`}})});var ht=ye=>({[ye.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Be(ye)),Bt(ye)),je(ye)),Ve(ye))});const Xe=ye=>{const{componentCls:jt}=ye;return{position:"relative",transition:`all ${ye.motionDurationMid} ${ye.motionEaseInOut}`,input:{cursor:"pointer"},[`${jt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${jt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},et=ye=>{const{componentCls:jt}=ye;return{[`${jt}-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"}}}},Me=ye=>{const{antCls:jt,componentCls:Ue,inputPaddingHorizontalBase:nt,iconCls:zt}=ye;return{[Ue]:Object.assign(Object.assign({},(0,E.Wf)(ye)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Ue}-customize-input) ${Ue}-selector`]:Object.assign(Object.assign({},Xe(ye)),et(ye)),[`${Ue}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},E.vS),{[`> ${jt}-typography`]:{display:"inline"}}),[`${Ue}-selection-placeholder`]:Object.assign(Object.assign({},E.vS),{flex:1,color:ye.colorTextPlaceholder,pointerEvents:"none"}),[`${Ue}-arrow`]:Object.assign(Object.assign({},(0,E.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:nt,height:ye.fontSizeIcon,marginTop:ye.calc(ye.fontSizeIcon).mul(-1).div(2).equal(),color:ye.colorTextQuaternary,fontSize:ye.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${ye.motionDurationSlow} ease`,[zt]:{verticalAlign:"top",transition:`transform ${ye.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ue}-suffix)`]:{pointerEvents:"auto"}},[`${Ue}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ue}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Ue}-prefix`]:{flex:"none",marginInlineEnd:ye.selectAffixPadding},[`${Ue}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:nt,zIndex:1,display:"inline-block",width:ye.fontSizeIcon,height:ye.fontSizeIcon,marginTop:ye.calc(ye.fontSizeIcon).mul(-1).div(2).equal(),color:ye.colorTextQuaternary,fontSize:ye.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${ye.motionDurationMid} ease, opacity ${ye.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:ye.colorTextTertiary}},[`&:hover ${Ue}-clear`]:{opacity:1,background:ye.colorBgBase,borderRadius:"50%"}}),[`${Ue}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Ue}-has-feedback`]:{[`${Ue}-clear`]:{insetInlineEnd:ye.calc(nt).add(ye.fontSize).add(ye.paddingXS).equal()}}}}}},pt=ye=>{const{componentCls:jt}=ye;return[{[jt]:{[`&${jt}-in-form-item`]:{width:"100%"}}},Me(ye),It(ye),(0,ce.ZP)(ye),Ne(ye),{[`${jt}-rtl`]:{direction:"rtl"}},(0,Ae.c)(ye,{borderElCls:`${jt}-selector`,focusElCls:`${jt}-focused`})]};var Ye=(0,pe.I$)("Select",(ye,jt)=>{let{rootPrefixCls:Ue}=jt;const nt=(0,Ge.mergeToken)(ye,{rootPrefixCls:Ue,inputPaddingHorizontalBase:ye.calc(ye.paddingSM).sub(1).equal(),multipleSelectItemHeight:ye.multipleItemHeight,selectHeight:ye.controlHeight});return[pt(nt),ht(nt)]},at,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(fn,Ht,ee){"use strict";ee.d(Ht,{_z:function(){return be},gp:function(){return Ge}});var E=ee(36237),Ae=ee(63356),pe=ee(51636);const Ge=ce=>{const{multipleSelectItemHeight:We,paddingXXS:De,lineWidth:It,INTERNAL_FIXED_ITEM_MARGIN:at}=ce,qe=ce.max(ce.calc(De).sub(It).equal(),0),He=ce.max(ce.calc(qe).sub(at).equal(),0);return{basePadding:qe,containerPadding:He,itemHeight:(0,E.unit)(We),itemLineHeight:(0,E.unit)(ce.calc(We).sub(ce.calc(ce.lineWidth).mul(2)).equal())}},Ee=ce=>{const{multipleSelectItemHeight:We,selectHeight:De,lineWidth:It}=ce;return ce.calc(De).sub(We).div(2).sub(It).equal()},be=ce=>{const{componentCls:We,iconCls:De,borderRadiusSM:It,motionDurationSlow:at,paddingXS:qe,multipleItemColorDisabled:He,multipleItemBorderColorDisabled:Be,colorIcon:ut,colorIconHover:St,INTERNAL_FIXED_ITEM_MARGIN:Bt}=ce;return{[`${We}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${We}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Bt,borderRadius:It,cursor:"default",transition:`font-size ${at}, line-height ${at}, height ${at}`,marginInlineEnd:ce.calc(Bt).mul(2).equal(),paddingInlineStart:qe,paddingInlineEnd:ce.calc(qe).div(2).equal(),[`${We}-disabled&`]:{color:He,borderColor:Be,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:ce.calc(qe).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Ae.Ro)()),{display:"inline-flex",alignItems:"center",color:ut,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${De}`]:{verticalAlign:"-0.2em"},"&:hover":{color:St}})}}}},Se=(ce,We)=>{const{componentCls:De,INTERNAL_FIXED_ITEM_MARGIN:It}=ce,at=`${De}-selection-overflow`,qe=ce.multipleSelectItemHeight,He=Ee(ce),Be=We?`${De}-${We}`:"",ut=Ge(ce);return{[`${De}-multiple${Be}`]:Object.assign(Object.assign({},be(ce)),{[`${De}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:ut.basePadding,paddingBlock:ut.containerPadding,borderRadius:ce.borderRadius,[`${De}-disabled&`]:{background:ce.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,E.unit)(It)} 0`,lineHeight:(0,E.unit)(qe),visibility:"hidden",content:'"\\a0"'}},[`${De}-selection-item`]:{height:ut.itemHeight,lineHeight:(0,E.unit)(ut.itemLineHeight)},[`${De}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,E.unit)(qe),marginBlock:It}},[`${De}-prefix`]:{marginInlineStart:ce.calc(ce.inputPaddingHorizontalBase).sub(ut.basePadding).equal()},[`${at}-item + ${at}-item,
|
|
|
${De}-prefix + ${De}-selection-wrap
|
|
|
`]:{[`${De}-selection-search`]:{marginInlineStart:0},[`${De}-selection-placeholder`]:{insetInlineStart:0}},[`${at}-item-suffix`]:{minHeight:ut.itemHeight,marginBlock:It},[`${De}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:ce.calc(ce.inputPaddingHorizontalBase).sub(He).equal(),"\n &-input,\n &-mirror\n ":{height:qe,fontFamily:ce.fontFamily,lineHeight:(0,E.unit)(qe),transition:`all ${ce.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${De}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:ce.calc(ce.inputPaddingHorizontalBase).sub(ut.basePadding).equal(),insetInlineEnd:ce.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${ce.motionDurationSlow}`}})}};function Ze(ce,We){const{componentCls:De}=ce,It=We?`${De}-${We}`:"",at={[`${De}-multiple${It}`]:{fontSize:ce.fontSize,[`${De}-selector`]:{[`${De}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${De}-show-arrow ${De}-selector,
|
|
|
&${De}-allow-clear ${De}-selector
|
|
|
`]:{paddingInlineEnd:ce.calc(ce.fontSizeIcon).add(ce.controlPaddingHorizontal).equal()}}};return[Se(ce,We),at]}const Ne=ce=>{const{componentCls:We}=ce,De=(0,pe.mergeToken)(ce,{selectHeight:ce.controlHeightSM,multipleSelectItemHeight:ce.multipleItemHeightSM,borderRadius:ce.borderRadiusSM,borderRadiusSM:ce.borderRadiusXS}),It=(0,pe.mergeToken)(ce,{fontSize:ce.fontSizeLG,selectHeight:ce.controlHeightLG,multipleSelectItemHeight:ce.multipleItemHeightLG,borderRadius:ce.borderRadiusLG,borderRadiusSM:ce.borderRadius});return[Ze(ce),Ze(De,"sm"),{[`${We}-multiple${We}-sm`]:{[`${We}-selection-placeholder`]:{insetInline:ce.calc(ce.controlPaddingHorizontalSM).sub(ce.lineWidth).equal()},[`${We}-selection-search`]:{marginInlineStart:2}}},Ze(It,"lg")]};Ht.ZP=Ne},68525:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});var E=ee(59301),Ae=ee(40001),pe=ee(19248),Ge=ee(99267),Ee=ee(84105),be=ee(58617),Se=ee(47472);function Ze(Ne){let{suffixIcon:ce,clearIcon:We,menuItemSelectedIcon:De,removeIcon:It,loading:at,multiple:qe,hasFeedback:He,prefixCls:Be,showSuffixIcon:ut,feedbackIcon:St,showArrow:Bt,componentName:je}=Ne;const Te=We!=null?We:E.createElement(pe.Z,null),Qe=Xe=>ce===null&&!He&&!Bt?null:E.createElement(E.Fragment,null,ut!==!1&&Xe,He&&St);let Ve=null;if(ce!==void 0)Ve=Qe(ce);else if(at)Ve=Qe(E.createElement(be.Z,{spin:!0}));else{const Xe=`${Be}-suffix`;Ve=et=>{let{open:Me,showSearch:pt}=et;return Qe(Me&&pt?E.createElement(Se.Z,{className:Xe}):E.createElement(Ee.Z,{className:Xe}))}}let Tt=null;De!==void 0?Tt=De:qe?Tt=E.createElement(Ae.Z,null):Tt=null;let ht=null;return It!==void 0?ht=It:ht=E.createElement(Ge.Z,null),{clearIcon:Te,suffixIcon:Ve,itemIcon:Tt,removeIcon:ht}}},90005:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return E}});function E(Ae,pe){return pe!==void 0?pe:Ae!==null}},58755:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return jt}});var E=ee(59301),Ae=ee(58617),pe=ee(92310),Ge=ee.n(pe),Ee=ee(60499),be=ee(18642),Se=ee(72190),Ze=ee(42244),Ne=ee(18929),ce=ee(10228),We=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],De=E.forwardRef(function(Ue,nt){var zt,Ce=Ue.prefixCls,de=Ce===void 0?"rc-switch":Ce,vt=Ue.className,Kt=Ue.checked,Lt=Ue.defaultChecked,Pe=Ue.disabled,ot=Ue.loadingIcon,rt=Ue.checkedChildren,an=Ue.unCheckedChildren,tt=Ue.onClick,Rt=Ue.onChange,_e=Ue.onKeyDown,Gt=(0,Ze.Z)(Ue,We),wt=(0,Ne.Z)(!1,{value:Kt,defaultValue:Lt}),ae=(0,Se.Z)(wt,2),ne=ae[0],te=ae[1];function oe(ge,lt){var ke=ne;return Pe||(ke=ge,te(ke),Rt==null||Rt(ke,lt)),ke}function ue(ge){ge.which===ce.Z.LEFT?oe(!1,ge):ge.which===ce.Z.RIGHT&&oe(!0,ge),_e==null||_e(ge)}function re(ge){var lt=oe(!ne,ge);tt==null||tt(lt,ge)}var le=Ge()(de,vt,(zt={},(0,be.Z)(zt,"".concat(de,"-checked"),ne),(0,be.Z)(zt,"".concat(de,"-disabled"),Pe),zt));return E.createElement("button",(0,Ee.Z)({},Gt,{type:"button",role:"switch","aria-checked":ne,disabled:Pe,className:le,ref:nt,onKeyDown:ue,onClick:re}),ot,E.createElement("span",{className:"".concat(de,"-inner")},E.createElement("span",{className:"".concat(de,"-inner-checked")},rt),E.createElement("span",{className:"".concat(de,"-inner-unchecked")},an)))});De.displayName="Switch";var It=De,at=ee(12919),qe=ee(48755),He=ee(2171),Be=ee(31756),ut=ee(36237),St=ee(17835),Bt=ee(63356),je=ee(16931),Te=ee(51636);const Qe=Ue=>{const{componentCls:nt,trackHeightSM:zt,trackPadding:Ce,trackMinWidthSM:de,innerMinMarginSM:vt,innerMaxMarginSM:Kt,handleSizeSM:Lt,calc:Pe}=Ue,ot=`${nt}-inner`,rt=(0,ut.unit)(Pe(Lt).add(Pe(Ce).mul(2)).equal()),an=(0,ut.unit)(Pe(Kt).mul(2).equal());return{[nt]:{[`&${nt}-small`]:{minWidth:de,height:zt,lineHeight:(0,ut.unit)(zt),[`${nt}-inner`]:{paddingInlineStart:Kt,paddingInlineEnd:vt,[`${ot}-checked, ${ot}-unchecked`]:{minHeight:zt},[`${ot}-checked`]:{marginInlineStart:`calc(-100% + ${rt} - ${an})`,marginInlineEnd:`calc(100% - ${rt} + ${an})`},[`${ot}-unchecked`]:{marginTop:Pe(zt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${nt}-handle`]:{width:Lt,height:Lt},[`${nt}-loading-icon`]:{top:Pe(Pe(Lt).sub(Ue.switchLoadingIconSize)).div(2).equal(),fontSize:Ue.switchLoadingIconSize},[`&${nt}-checked`]:{[`${nt}-inner`]:{paddingInlineStart:vt,paddingInlineEnd:Kt,[`${ot}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ot}-unchecked`]:{marginInlineStart:`calc(100% - ${rt} + ${an})`,marginInlineEnd:`calc(-100% + ${rt} - ${an})`}},[`${nt}-handle`]:{insetInlineStart:`calc(100% - ${(0,ut.unit)(Pe(Lt).add(Ce).equal())})`}},[`&:not(${nt}-disabled):active`]:{[`&:not(${nt}-checked) ${ot}`]:{[`${ot}-unchecked`]:{marginInlineStart:Pe(Ue.marginXXS).div(2).equal(),marginInlineEnd:Pe(Ue.marginXXS).mul(-1).div(2).equal()}},[`&${nt}-checked ${ot}`]:{[`${ot}-checked`]:{marginInlineStart:Pe(Ue.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Pe(Ue.marginXXS).div(2).equal()}}}}}}},Ve=Ue=>{const{componentCls:nt,handleSize:zt,calc:Ce}=Ue;return{[nt]:{[`${nt}-loading-icon${Ue.iconCls}`]:{position:"relative",top:Ce(Ce(zt).sub(Ue.fontSize)).div(2).equal(),color:Ue.switchLoadingIconColor,verticalAlign:"top"},[`&${nt}-checked ${nt}-loading-icon`]:{color:Ue.switchColor}}}},Tt=Ue=>{const{componentCls:nt,trackPadding:zt,handleBg:Ce,handleShadow:de,handleSize:vt,calc:Kt}=Ue,Lt=`${nt}-handle`;return{[nt]:{[Lt]:{position:"absolute",top:zt,insetInlineStart:zt,width:vt,height:vt,transition:`all ${Ue.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ce,borderRadius:Kt(vt).div(2).equal(),boxShadow:de,transition:`all ${Ue.switchDuration} ease-in-out`,content:'""'}},[`&${nt}-checked ${Lt}`]:{insetInlineStart:`calc(100% - ${(0,ut.unit)(Kt(vt).add(zt).equal())})`},[`&:not(${nt}-disabled):active`]:{[`${Lt}::before`]:{insetInlineEnd:Ue.switchHandleActiveInset,insetInlineStart:0},[`&${nt}-checked ${Lt}::before`]:{insetInlineEnd:0,insetInlineStart:Ue.switchHandleActiveInset}}}}},ht=Ue=>{const{componentCls:nt,trackHeight:zt,trackPadding:Ce,innerMinMargin:de,innerMaxMargin:vt,handleSize:Kt,calc:Lt}=Ue,Pe=`${nt}-inner`,ot=(0,ut.unit)(Lt(Kt).add(Lt(Ce).mul(2)).equal()),rt=(0,ut.unit)(Lt(vt).mul(2).equal());return{[nt]:{[Pe]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:vt,paddingInlineEnd:de,transition:`padding-inline-start ${Ue.switchDuration} ease-in-out, padding-inline-end ${Ue.switchDuration} ease-in-out`,[`${Pe}-checked, ${Pe}-unchecked`]:{display:"block",color:Ue.colorTextLightSolid,fontSize:Ue.fontSizeSM,transition:`margin-inline-start ${Ue.switchDuration} ease-in-out, margin-inline-end ${Ue.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:zt},[`${Pe}-checked`]:{marginInlineStart:`calc(-100% + ${ot} - ${rt})`,marginInlineEnd:`calc(100% - ${ot} + ${rt})`},[`${Pe}-unchecked`]:{marginTop:Lt(zt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${nt}-checked ${Pe}`]:{paddingInlineStart:de,paddingInlineEnd:vt,[`${Pe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Pe}-unchecked`]:{marginInlineStart:`calc(100% - ${ot} + ${rt})`,marginInlineEnd:`calc(-100% + ${ot} - ${rt})`}},[`&:not(${nt}-disabled):active`]:{[`&:not(${nt}-checked) ${Pe}`]:{[`${Pe}-unchecked`]:{marginInlineStart:Lt(Ce).mul(2).equal(),marginInlineEnd:Lt(Ce).mul(-1).mul(2).equal()}},[`&${nt}-checked ${Pe}`]:{[`${Pe}-checked`]:{marginInlineStart:Lt(Ce).mul(-1).mul(2).equal(),marginInlineEnd:Lt(Ce).mul(2).equal()}}}}}},Xe=Ue=>{const{componentCls:nt,trackHeight:zt,trackMinWidth:Ce}=Ue;return{[nt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Bt.Wf)(Ue)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ce,height:zt,lineHeight:(0,ut.unit)(zt),verticalAlign:"middle",background:Ue.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ue.motionDurationMid}`,userSelect:"none",[`&:hover:not(${nt}-disabled)`]:{background:Ue.colorTextTertiary}}),(0,Bt.Qy)(Ue)),{[`&${nt}-checked`]:{background:Ue.switchColor,[`&:hover:not(${nt}-disabled)`]:{background:Ue.colorPrimaryHover}},[`&${nt}-loading, &${nt}-disabled`]:{cursor:"not-allowed",opacity:Ue.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${nt}-rtl`]:{direction:"rtl"}})}},et=Ue=>{const{fontSize:nt,lineHeight:zt,controlHeight:Ce,colorWhite:de}=Ue,vt=nt*zt,Kt=Ce/2,Lt=2,Pe=vt-Lt*2,ot=Kt-Lt*2;return{trackHeight:vt,trackHeightSM:Kt,trackMinWidth:Pe*2+Lt*4,trackMinWidthSM:ot*2+Lt*2,trackPadding:Lt,handleBg:de,handleSize:Pe,handleSizeSM:ot,handleShadow:`0 2px 4px 0 ${new St.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Pe/2,innerMaxMargin:Pe+Lt+Lt*2,innerMinMarginSM:ot/2,innerMaxMarginSM:ot+Lt+Lt*2}};var Me=(0,je.I$)("Switch",Ue=>{const nt=(0,Te.mergeToken)(Ue,{switchDuration:Ue.motionDurationMid,switchColor:Ue.colorPrimary,switchDisabledOpacity:Ue.opacityLoading,switchLoadingIconSize:Ue.calc(Ue.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Ue.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Xe(nt),ht(nt),Tt(nt),Ve(nt),Qe(nt)]},et),pt=function(Ue,nt){var zt={};for(var Ce in Ue)Object.prototype.hasOwnProperty.call(Ue,Ce)&&nt.indexOf(Ce)<0&&(zt[Ce]=Ue[Ce]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Ce=Object.getOwnPropertySymbols(Ue);de<Ce.length;de++)nt.indexOf(Ce[de])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Ce[de])&&(zt[Ce[de]]=Ue[Ce[de]]);return zt};const ye=E.forwardRef((Ue,nt)=>{const{prefixCls:zt,size:Ce,disabled:de,loading:vt,className:Kt,rootClassName:Lt,style:Pe,checked:ot,value:rt,defaultChecked:an,defaultValue:tt,onChange:Rt}=Ue,_e=pt(Ue,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Gt,wt]=(0,Ne.Z)(!1,{value:ot!=null?ot:rt,defaultValue:an!=null?an:tt}),{getPrefixCls:ae,direction:ne,switch:te}=E.useContext(qe.E_),oe=E.useContext(He.Z),ue=(de!=null?de:oe)||vt,re=ae("switch",zt),le=E.createElement("div",{className:`${re}-handle`},vt&&E.createElement(Ae.Z,{className:`${re}-loading-icon`})),[ge,lt,ke]=Me(re),Ie=(0,Be.Z)(Ce),Fe=Ge()(te==null?void 0:te.className,{[`${re}-small`]:Ie==="small",[`${re}-loading`]:vt,[`${re}-rtl`]:ne==="rtl"},Kt,Lt,lt,ke),Ke=Object.assign(Object.assign({},te==null?void 0:te.style),Pe),it=function(){wt(arguments.length<=0?void 0:arguments[0]),Rt==null||Rt.apply(void 0,arguments)};return ge(E.createElement(at.Z,{component:"Switch"},E.createElement(It,Object.assign({},_e,{checked:Gt,onChange:it,prefixCls:re,className:Fe,style:Ke,disabled:ue,ref:nt,loadingIcon:le}))))});ye.__ANT_SWITCH=!0;var jt=ye},70858:function(fn,Ht,ee){"use strict";ee.d(Ht,{default:function(){return mu}});var E=ee(59301),Ae={},pe="rc-table-internal-hook",Ge=ee(72190),Ee=ee(6089),be=ee(34280),Se=ee(13697),Ze=ee(4676);function Ne(me){var he=E.createContext(void 0),Re=function(gt){var Ct=gt.value,Wt=gt.children,At=E.useRef(Ct);At.current=Ct;var Jt=E.useState(function(){return{getValue:function(){return At.current},listeners:new Set}}),Xt=(0,Ge.Z)(Jt,1),Sn=Xt[0];return(0,be.Z)(function(){(0,Ze.unstable_batchedUpdates)(function(){Sn.listeners.forEach(function(dn){dn(Ct)})})},[Ct]),E.createElement(he.Provider,{value:Sn},Wt)};return{Context:he,Provider:Re,defaultValue:me}}function ce(me,he){var Re=(0,Ee.Z)(typeof he=="function"?he:function(dn){if(he===void 0)return dn;if(!Array.isArray(he))return dn[he];var un={};return he.forEach(function(rn){un[rn]=dn[rn]}),un}),Je=E.useContext(me==null?void 0:me.Context),gt=Je||{},Ct=gt.listeners,Wt=gt.getValue,At=E.useRef();At.current=Re(Je?Wt():me==null?void 0:me.defaultValue);var Jt=E.useState({}),Xt=(0,Ge.Z)(Jt,2),Sn=Xt[1];return(0,be.Z)(function(){if(!Je)return;function dn(un){var rn=Re(un);(0,Se.Z)(At.current,rn,!0)||Sn({})}return Ct.add(dn),function(){Ct.delete(dn)}},[Je]),At.current}var We=ee(60499),De=ee(8654);function It(){var me=E.createContext(null);function he(){return E.useContext(me)}function Re(gt,Ct){var Wt=(0,De.Yr)(gt),At=function(Xt,Sn){var dn=Wt?{ref:Sn}:{},un=E.useRef(0),rn=E.useRef(Xt),nn=he();return nn!==null?E.createElement(gt,(0,We.Z)({},Xt,dn)):((!Ct||Ct(rn.current,Xt))&&(un.current+=1),rn.current=Xt,E.createElement(me.Provider,{value:un.current},E.createElement(gt,(0,We.Z)({},Xt,dn))))};return Wt?E.forwardRef(At):At}function Je(gt,Ct){var Wt=(0,De.Yr)(gt),At=function(Xt,Sn){var dn=Wt?{ref:Sn}:{};return he(),E.createElement(gt,(0,We.Z)({},Xt,dn))};return Wt?E.memo(E.forwardRef(At),Ct):E.memo(At,Ct)}return{makeImmutable:Re,responseImmutable:Je,useImmutableMark:he}}var at=It(),qe=at.makeImmutable,He=at.responseImmutable,Be=at.useImmutableMark,ut=It(),St=ut.makeImmutable,Bt=ut.responseImmutable,je=ut.useImmutableMark,Te=Ne(),Qe=Te;function Ve(me,he){var Re=React.useRef(0);Re.current+=1;var Je=React.useRef(me),gt=[];Object.keys(me||{}).map(function(Wt){var At;(me==null?void 0:me[Wt])!==((At=Je.current)===null||At===void 0?void 0:At[Wt])&>.push(Wt)}),Je.current=me;var Ct=React.useRef([]);return gt.length&&(Ct.current=gt),React.useDebugValue(Re.current),React.useDebugValue(Ct.current.join(", ")),he&&console.log("".concat(he,":"),Re.current,Ct.current),Re.current}var Tt=null,ht=null,Xe=ee(43749),et=ee(85899),Me=ee(18642),pt=ee(92310),Ye=ee.n(pt),ye=ee(80547),jt=ee(97938),Ue=ee(48736),nt=E.createContext({renderWithProps:!1}),zt=nt,Ce="RC_TABLE_KEY";function de(me){return me==null?[]:Array.isArray(me)?me:[me]}function vt(me){var he=[],Re={};return me.forEach(function(Je){for(var gt=Je||{},Ct=gt.key,Wt=gt.dataIndex,At=Ct||de(Wt).join("-")||Ce;Re[At];)At="".concat(At,"_next");Re[At]=!0,he.push(At)}),he}function Kt(me){return me!=null}function Lt(me){return typeof me=="number"&&!Number.isNaN(me)}function Pe(me){return me&&(0,Xe.Z)(me)==="object"&&!Array.isArray(me)&&!E.isValidElement(me)}function ot(me,he,Re,Je,gt,Ct){var Wt=E.useContext(zt),At=je(),Jt=(0,ye.Z)(function(){if(Kt(Je))return[Je];var Xt=he==null||he===""?[]:Array.isArray(he)?he:[he],Sn=(0,jt.Z)(me,Xt),dn=Sn,un=void 0;if(gt){var rn=gt(Sn,me,Re);Pe(rn)?(dn=rn.children,un=rn.props,Wt.renderWithProps=!0):dn=rn}return[dn,un]},[At,me,Je,he,gt,Re],function(Xt,Sn){if(Ct){var dn=(0,Ge.Z)(Xt,2),un=dn[1],rn=(0,Ge.Z)(Sn,2),nn=rn[1];return Ct(nn,un)}return Wt.renderWithProps?!0:!(0,Se.Z)(Xt,Sn,!0)});return Jt}function rt(me,he,Re,Je){var gt=me+he-1;return me<=Je&>>=Re}function an(me,he){return ce(Qe,function(Re){var Je=rt(me,he||1,Re.hoverStartRow,Re.hoverEndRow);return[Je,Re.onHover]})}var tt=ee(70425),Rt=function(he){var Re=he.ellipsis,Je=he.rowType,gt=he.children,Ct,Wt=Re===!0?{showTitle:!0}:Re;return Wt&&(Wt.showTitle||Je==="header")&&(typeof gt=="string"||typeof gt=="number"?Ct=gt.toString():E.isValidElement(gt)&&typeof gt.props.children=="string"&&(Ct=gt.props.children)),Ct};function _e(me){var he,Re,Je,gt,Ct,Wt,At,Jt,Xt=me.component,Sn=me.children,dn=me.ellipsis,un=me.scope,rn=me.prefixCls,nn=me.className,Hn=me.align,Tn=me.record,Kn=me.render,Yn=me.dataIndex,Vn=me.renderIndex,tr=me.shouldCellUpdate,ir=me.index,br=me.rowType,fr=me.colSpan,li=me.rowSpan,Ar=me.fixLeft,Tr=me.fixRight,Ur=me.firstFixLeft,xr=me.lastFixLeft,Cr=me.firstFixRight,nr=me.lastFixRight,_n=me.appendNode,vr=me.additionalProps,Sr=vr===void 0?{}:vr,$r=me.isSticky,rr="".concat(rn,"-cell"),pi=ce(Qe,["supportSticky","allColumnsFixedLeft","rowHoverable"]),vi=pi.supportSticky,ho=pi.allColumnsFixedLeft,io=pi.rowHoverable,Ji=ot(Tn,Yn,Vn,Sn,Kn,tr),oo=(0,Ge.Z)(Ji,2),mo=oo[0],gi=oo[1],Ci={},vo=typeof Ar=="number"&&vi,wo=typeof Tr=="number"&&vi;vo&&(Ci.position="sticky",Ci.left=Ar),wo&&(Ci.position="sticky",Ci.right=Tr);var Mr=(he=(Re=(Je=gi==null?void 0:gi.colSpan)!==null&&Je!==void 0?Je:Sr.colSpan)!==null&&Re!==void 0?Re:fr)!==null&&he!==void 0?he:1,ii=(gt=(Ct=(Wt=gi==null?void 0:gi.rowSpan)!==null&&Wt!==void 0?Wt:Sr.rowSpan)!==null&&Ct!==void 0?Ct:li)!==null&>!==void 0?gt:1,Pr=an(ir,ii),hr=(0,Ge.Z)(Pr,2),Oi=hr[0],Fi=hr[1],no=(0,tt.zX)(function(Vi){var Wi;Tn&&Fi(ir,ir+ii-1),Sr==null||(Wi=Sr.onMouseEnter)===null||Wi===void 0||Wi.call(Sr,Vi)}),Xi=(0,tt.zX)(function(Vi){var Wi;Tn&&Fi(-1,-1),Sr==null||(Wi=Sr.onMouseLeave)===null||Wi===void 0||Wi.call(Sr,Vi)});if(Mr===0||ii===0)return null;var go=(At=Sr.title)!==null&&At!==void 0?At:Rt({rowType:br,ellipsis:dn,children:mo}),ko=Ye()(rr,nn,(Jt={},(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)(Jt,"".concat(rr,"-fix-left"),vo&&vi),"".concat(rr,"-fix-left-first"),Ur&&vi),"".concat(rr,"-fix-left-last"),xr&&vi),"".concat(rr,"-fix-left-all"),xr&&ho&&vi),"".concat(rr,"-fix-right"),wo&&vi),"".concat(rr,"-fix-right-first"),Cr&&vi),"".concat(rr,"-fix-right-last"),nr&&vi),"".concat(rr,"-ellipsis"),dn),"".concat(rr,"-with-append"),_n),"".concat(rr,"-fix-sticky"),(vo||wo)&&$r&&vi),(0,Me.Z)(Jt,"".concat(rr,"-row-hover"),!gi&&Oi)),Sr.className,gi==null?void 0:gi.className),Br={};Hn&&(Br.textAlign=Hn);var Wr=(0,et.Z)((0,et.Z)((0,et.Z)((0,et.Z)({},gi==null?void 0:gi.style),Ci),Br),Sr.style),Zi=mo;return(0,Xe.Z)(Zi)==="object"&&!Array.isArray(Zi)&&!E.isValidElement(Zi)&&(Zi=null),dn&&(xr||Cr)&&(Zi=E.createElement("span",{className:"".concat(rr,"-content")},Zi)),E.createElement(Xt,(0,We.Z)({},gi,Sr,{className:ko,style:Wr,title:go,scope:un,onMouseEnter:io?no:void 0,onMouseLeave:io?Xi:void 0,colSpan:Mr!==1?Mr:null,rowSpan:ii!==1?ii:null}),_n,Zi)}var Gt=E.memo(_e);function wt(me,he,Re,Je,gt){var Ct=Re[me]||{},Wt=Re[he]||{},At,Jt;Ct.fixed==="left"?At=Je.left[gt==="rtl"?he:me]:Wt.fixed==="right"&&(Jt=Je.right[gt==="rtl"?me:he]);var Xt=!1,Sn=!1,dn=!1,un=!1,rn=Re[he+1],nn=Re[me-1],Hn=rn&&!rn.fixed||nn&&!nn.fixed||Re.every(function(tr){return tr.fixed==="left"});if(gt==="rtl"){if(At!==void 0){var Tn=nn&&nn.fixed==="left";un=!Tn&&Hn}else if(Jt!==void 0){var Kn=rn&&rn.fixed==="right";dn=!Kn&&Hn}}else if(At!==void 0){var Yn=rn&&rn.fixed==="left";Xt=!Yn&&Hn}else if(Jt!==void 0){var Vn=nn&&nn.fixed==="right";Sn=!Vn&&Hn}return{fixLeft:At,fixRight:Jt,lastFixLeft:Xt,firstFixRight:Sn,lastFixRight:dn,firstFixLeft:un,isSticky:Je.isSticky}}var ae=E.createContext({}),ne=ae;function te(me){var he=me.className,Re=me.index,Je=me.children,gt=me.colSpan,Ct=gt===void 0?1:gt,Wt=me.rowSpan,At=me.align,Jt=ce(Qe,["prefixCls","direction"]),Xt=Jt.prefixCls,Sn=Jt.direction,dn=E.useContext(ne),un=dn.scrollColumnIndex,rn=dn.stickyOffsets,nn=dn.flattenColumns,Hn=Re+Ct-1,Tn=Hn+1===un?Ct+1:Ct,Kn=wt(Re,Re+Tn-1,nn,rn,Sn);return E.createElement(Gt,(0,We.Z)({className:he,index:Re,component:"td",prefixCls:Xt,record:null,dataIndex:null,align:At,colSpan:Tn,rowSpan:Wt,render:function(){return Je}},Kn))}var oe=ee(42244),ue=["children"];function re(me){var he=me.children,Re=(0,oe.Z)(me,ue);return E.createElement("tr",Re,he)}function le(me){var he=me.children;return he}le.Row=re,le.Cell=te;var ge=le;function lt(me){var he=me.children,Re=me.stickyOffsets,Je=me.flattenColumns,gt=ce(Qe,"prefixCls"),Ct=Je.length-1,Wt=Je[Ct],At=E.useMemo(function(){return{stickyOffsets:Re,flattenColumns:Je,scrollColumnIndex:Wt!=null&&Wt.scrollbar?Ct:null}},[Wt,Je,Ct,Re]);return E.createElement(ne.Provider,{value:At},E.createElement("tfoot",{className:"".concat(gt,"-summary")},he))}var ke=Bt(lt),Ie=ge,Fe=ee(29301),Ke=ee(24514),it=ee(75152),xe=ee(26112);function Oe(me,he,Re,Je,gt,Ct,Wt){me.push({record:he,indent:Re,index:Wt});var At=Ct(he),Jt=gt==null?void 0:gt.has(At);if(he&&Array.isArray(he[Je])&&Jt)for(var Xt=0;Xt<he[Je].length;Xt+=1)Oe(me,he[Je][Xt],Re+1,Je,gt,Ct,Xt)}function Ot(me,he,Re,Je){var gt=E.useMemo(function(){if(Re!=null&&Re.size){for(var Ct=[],Wt=0;Wt<(me==null?void 0:me.length);Wt+=1){var At=me[Wt];Oe(Ct,At,0,he,Re,Je,Wt)}return Ct}return me==null?void 0:me.map(function(Jt,Xt){return{record:Jt,indent:0,index:Xt}})},[me,he,Re,Je]);return gt}function Mt(me,he,Re,Je){var gt=ce(Qe,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Ct=gt.flattenColumns,Wt=gt.expandableType,At=gt.expandedKeys,Jt=gt.childrenColumnName,Xt=gt.onTriggerExpand,Sn=gt.rowExpandable,dn=gt.onRow,un=gt.expandRowByClick,rn=gt.rowClassName,nn=Wt==="nest",Hn=Wt==="row"&&(!Sn||Sn(me)),Tn=Hn||nn,Kn=At&&At.has(he),Yn=Jt&&me&&me[Jt],Vn=(0,tt.zX)(Xt),tr=dn==null?void 0:dn(me,Re),ir=tr==null?void 0:tr.onClick,br=function(Tr){un&&Tn&&Xt(me,Tr);for(var Ur=arguments.length,xr=new Array(Ur>1?Ur-1:0),Cr=1;Cr<Ur;Cr++)xr[Cr-1]=arguments[Cr];ir==null||ir.apply(void 0,[Tr].concat(xr))},fr;typeof rn=="string"?fr=rn:typeof rn=="function"&&(fr=rn(me,Re,Je));var li=vt(Ct);return(0,et.Z)((0,et.Z)({},gt),{},{columnsKey:li,nestExpandable:nn,expanded:Kn,hasNestChildren:Yn,record:me,onTriggerExpand:Vn,rowSupportExpand:Hn,expandable:Tn,rowProps:(0,et.Z)((0,et.Z)({},tr),{},{className:Ye()(fr,tr==null?void 0:tr.className),onClick:br})})}function Vt(me){var he=me.prefixCls,Re=me.children,Je=me.component,gt=me.cellComponent,Ct=me.className,Wt=me.expanded,At=me.colSpan,Jt=me.isEmpty,Xt=ce(Qe,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Sn=Xt.scrollbarSize,dn=Xt.fixHeader,un=Xt.fixColumn,rn=Xt.componentWidth,nn=Xt.horizonScroll,Hn=Re;return(Jt?nn&&rn:un)&&(Hn=E.createElement("div",{style:{width:rn-(dn&&!Jt?Sn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(he,"-expanded-row-fixed")},Hn)),E.createElement(Je,{className:Ct,style:{display:Wt?null:"none"}},E.createElement(Gt,{component:gt,prefixCls:he,colSpan:At},Hn))}var Ft=Vt;function mt(me){var he=me.prefixCls,Re=me.record,Je=me.onExpand,gt=me.expanded,Ct=me.expandable,Wt="".concat(he,"-row-expand-icon");if(!Ct)return E.createElement("span",{className:Ye()(Wt,"".concat(he,"-row-spaced"))});var At=function(Xt){Je(Re,Xt),Xt.stopPropagation()};return E.createElement("span",{className:Ye()(Wt,(0,Me.Z)((0,Me.Z)({},"".concat(he,"-row-expanded"),gt),"".concat(he,"-row-collapsed"),!gt)),onClick:At})}function Zt(me,he,Re){var Je=[];function gt(Ct){(Ct||[]).forEach(function(Wt,At){Je.push(he(Wt,At)),gt(Wt[Re])})}return gt(me),Je}function Dt(me,he,Re,Je){return typeof me=="string"?me:typeof me=="function"?me(he,Re,Je):""}function Ut(me,he,Re,Je,gt){var Ct=me.record,Wt=me.prefixCls,At=me.columnsKey,Jt=me.fixedInfoList,Xt=me.expandIconColumnIndex,Sn=me.nestExpandable,dn=me.indentSize,un=me.expandIcon,rn=me.expanded,nn=me.hasNestChildren,Hn=me.onTriggerExpand,Tn=At[Re],Kn=Jt[Re],Yn;Re===(Xt||0)&&Sn&&(Yn=E.createElement(E.Fragment,null,E.createElement("span",{style:{paddingLeft:"".concat(dn*Je,"px")},className:"".concat(Wt,"-row-indent indent-level-").concat(Je)}),un({prefixCls:Wt,expanded:rn,expandable:nn,record:Ct,onExpand:Hn})));var Vn;return he.onCell&&(Vn=he.onCell(Ct,gt)),{key:Tn,fixedInfo:Kn,appendCellNode:Yn,additionalCellProps:Vn||{}}}function sn(me){var he=me.className,Re=me.style,Je=me.record,gt=me.index,Ct=me.renderIndex,Wt=me.rowKey,At=me.indent,Jt=At===void 0?0:At,Xt=me.rowComponent,Sn=me.cellComponent,dn=me.scopeCellComponent,un=Mt(Je,Wt,gt,Jt),rn=un.prefixCls,nn=un.flattenColumns,Hn=un.expandedRowClassName,Tn=un.expandedRowRender,Kn=un.rowProps,Yn=un.expanded,Vn=un.rowSupportExpand,tr=E.useRef(!1);tr.current||(tr.current=Yn);var ir=Dt(Hn,Je,gt,Jt),br=E.createElement(Xt,(0,We.Z)({},Kn,{"data-row-key":Wt,className:Ye()(he,"".concat(rn,"-row"),"".concat(rn,"-row-level-").concat(Jt),Kn==null?void 0:Kn.className,(0,Me.Z)({},ir,Jt>=1)),style:(0,et.Z)((0,et.Z)({},Re),Kn==null?void 0:Kn.style)}),nn.map(function(Ar,Tr){var Ur=Ar.render,xr=Ar.dataIndex,Cr=Ar.className,nr=Ut(un,Ar,Tr,Jt,gt),_n=nr.key,vr=nr.fixedInfo,Sr=nr.appendCellNode,$r=nr.additionalCellProps;return E.createElement(Gt,(0,We.Z)({className:Cr,ellipsis:Ar.ellipsis,align:Ar.align,scope:Ar.rowScope,component:Ar.rowScope?dn:Sn,prefixCls:rn,key:_n,record:Je,index:gt,renderIndex:Ct,dataIndex:xr,render:Ur,shouldCellUpdate:Ar.shouldCellUpdate},vr,{appendNode:Sr,additionalProps:$r}))})),fr;if(Vn&&(tr.current||Yn)){var li=Tn(Je,gt,Jt+1,Yn);fr=E.createElement(Ft,{expanded:Yn,className:Ye()("".concat(rn,"-expanded-row"),"".concat(rn,"-expanded-row-level-").concat(Jt+1),ir),prefixCls:rn,component:Xt,cellComponent:Sn,colSpan:nn.length,isEmpty:!1},li)}return E.createElement(E.Fragment,null,br,fr)}var pn=Bt(sn);function mn(me){var he=me.columnKey,Re=me.onColumnResize,Je=E.useRef();return(0,be.Z)(function(){Je.current&&Re(he,Je.current.offsetWidth)},[]),E.createElement(Fe.Z,{data:he},E.createElement("td",{ref:Je,style:{padding:0,border:0,height:0}},E.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var ze=ee(29194);function bt(me){var he=me.prefixCls,Re=me.columnsKey,Je=me.onColumnResize,gt=E.useRef(null);return E.createElement("tr",{"aria-hidden":"true",className:"".concat(he,"-measure-row"),style:{height:0,fontSize:0},ref:gt},E.createElement(Fe.Z.Collection,{onBatchResize:function(Wt){(0,ze.Z)(gt.current)&&Wt.forEach(function(At){var Jt=At.data,Xt=At.size;Je(Jt,Xt.offsetWidth)})}},Re.map(function(Ct){return E.createElement(mn,{key:Ct,columnKey:Ct,onColumnResize:Je})})))}function $t(me){var he=me.data,Re=me.measureColumnWidth,Je=ce(Qe,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),gt=Je.prefixCls,Ct=Je.getComponent,Wt=Je.onColumnResize,At=Je.flattenColumns,Jt=Je.getRowKey,Xt=Je.expandedKeys,Sn=Je.childrenColumnName,dn=Je.emptyNode,un=Ot(he,Sn,Xt,Jt),rn=E.useRef({renderWithProps:!1}),nn=Ct(["body","wrapper"],"tbody"),Hn=Ct(["body","row"],"tr"),Tn=Ct(["body","cell"],"td"),Kn=Ct(["body","cell"],"th"),Yn;he.length?Yn=un.map(function(tr,ir){var br=tr.record,fr=tr.indent,li=tr.index,Ar=Jt(br,ir);return E.createElement(pn,{key:Ar,rowKey:Ar,record:br,index:ir,renderIndex:li,rowComponent:Hn,cellComponent:Tn,scopeCellComponent:Kn,indent:fr})}):Yn=E.createElement(Ft,{expanded:!0,className:"".concat(gt,"-placeholder"),prefixCls:gt,component:Hn,cellComponent:Tn,colSpan:At.length,isEmpty:!0},dn);var Vn=vt(At);return E.createElement(zt.Provider,{value:rn.current},E.createElement(nn,{className:"".concat(gt,"-tbody")},Re&&E.createElement(bt,{prefixCls:gt,columnsKey:Vn,onColumnResize:Wt}),Yn))}var ft=Bt($t),Et=["expandable"],Nt="RC_TABLE_INTERNAL_COL_DEFINE";function vn(me){var he=me.expandable,Re=(0,oe.Z)(me,Et),Je;return"expandable"in me?Je=(0,et.Z)((0,et.Z)({},Re),he):Je=Re,Je.showExpandColumn===!1&&(Je.expandIconColumnIndex=-1),Je}var kn=["columnType"];function cn(me){for(var he=me.colWidths,Re=me.columns,Je=me.columCount,gt=ce(Qe,["tableLayout"]),Ct=gt.tableLayout,Wt=[],At=Je||Re.length,Jt=!1,Xt=At-1;Xt>=0;Xt-=1){var Sn=he[Xt],dn=Re&&Re[Xt],un=void 0,rn=void 0;if(dn&&(un=dn[Nt],Ct==="auto"&&(rn=dn.minWidth)),Sn||rn||un||Jt){var nn=un||{},Hn=nn.columnType,Tn=(0,oe.Z)(nn,kn);Wt.unshift(E.createElement("col",(0,We.Z)({key:Xt,style:{width:Sn,minWidth:rn}},Tn))),Jt=!0}}return E.createElement("colgroup",null,Wt)}var bn=cn,en=ee(77654),on=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function gn(me,he){return(0,E.useMemo)(function(){for(var Re=[],Je=0;Je<he;Je+=1){var gt=me[Je];if(gt!==void 0)Re[Je]=gt;else return null}return Re},[me.join("_"),he])}var $n=E.forwardRef(function(me,he){var Re=me.className,Je=me.noData,gt=me.columns,Ct=me.flattenColumns,Wt=me.colWidths,At=me.columCount,Jt=me.stickyOffsets,Xt=me.direction,Sn=me.fixHeader,dn=me.stickyTopOffset,un=me.stickyBottomOffset,rn=me.stickyClassName,nn=me.onScroll,Hn=me.maxContentScroll,Tn=me.children,Kn=(0,oe.Z)(me,on),Yn=ce(Qe,["prefixCls","scrollbarSize","isSticky","getComponent"]),Vn=Yn.prefixCls,tr=Yn.scrollbarSize,ir=Yn.isSticky,br=Yn.getComponent,fr=br(["header","table"],"table"),li=ir&&!Sn?0:tr,Ar=E.useRef(null),Tr=E.useCallback(function($r){(0,De.mH)(he,$r),(0,De.mH)(Ar,$r)},[]);E.useEffect(function(){var $r;function rr(pi){var vi=pi,ho=vi.currentTarget,io=vi.deltaX;io&&(nn({currentTarget:ho,scrollLeft:ho.scrollLeft+io}),pi.preventDefault())}return($r=Ar.current)===null||$r===void 0||$r.addEventListener("wheel",rr,{passive:!1}),function(){var pi;(pi=Ar.current)===null||pi===void 0||pi.removeEventListener("wheel",rr)}},[]);var Ur=E.useMemo(function(){return Ct.every(function($r){return $r.width})},[Ct]),xr=Ct[Ct.length-1],Cr={fixed:xr?xr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Vn,"-cell-scrollbar")}}},nr=(0,E.useMemo)(function(){return li?[].concat((0,en.Z)(gt),[Cr]):gt},[li,gt]),_n=(0,E.useMemo)(function(){return li?[].concat((0,en.Z)(Ct),[Cr]):Ct},[li,Ct]),vr=(0,E.useMemo)(function(){var $r=Jt.right,rr=Jt.left;return(0,et.Z)((0,et.Z)({},Jt),{},{left:Xt==="rtl"?[].concat((0,en.Z)(rr.map(function(pi){return pi+li})),[0]):rr,right:Xt==="rtl"?$r:[].concat((0,en.Z)($r.map(function(pi){return pi+li})),[0]),isSticky:ir})},[li,Jt,ir]),Sr=gn(Wt,At);return E.createElement("div",{style:(0,et.Z)({overflow:"hidden"},ir?{top:dn,bottom:un}:{}),ref:Tr,className:Ye()(Re,(0,Me.Z)({},rn,!!rn))},E.createElement(fr,{style:{tableLayout:"fixed",visibility:Je||Sr?null:"hidden"}},(!Je||!Hn||Ur)&&E.createElement(bn,{colWidths:Sr?[].concat((0,en.Z)(Sr),[li]):[],columCount:At+1,columns:_n}),Tn((0,et.Z)((0,et.Z)({},Kn),{},{stickyOffsets:vr,columns:nr,flattenColumns:_n}))))}),hn=E.memo($n),In=function(he){var Re=he.cells,Je=he.stickyOffsets,gt=he.flattenColumns,Ct=he.rowComponent,Wt=he.cellComponent,At=he.onHeaderRow,Jt=he.index,Xt=ce(Qe,["prefixCls","direction"]),Sn=Xt.prefixCls,dn=Xt.direction,un;At&&(un=At(Re.map(function(nn){return nn.column}),Jt));var rn=vt(Re.map(function(nn){return nn.column}));return E.createElement(Ct,un,Re.map(function(nn,Hn){var Tn=nn.column,Kn=wt(nn.colStart,nn.colEnd,gt,Je,dn),Yn;return Tn&&Tn.onHeaderCell&&(Yn=nn.column.onHeaderCell(Tn)),E.createElement(Gt,(0,We.Z)({},nn,{scope:Tn.title?nn.colSpan>1?"colgroup":"col":null,ellipsis:Tn.ellipsis,align:Tn.align,component:Wt,prefixCls:Sn,key:rn[Hn]},Kn,{additionalProps:Yn,rowType:"header"}))}))},xn=In;function Wn(me){var he=[];function Re(Wt,At){var Jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;he[Jt]=he[Jt]||[];var Xt=At,Sn=Wt.filter(Boolean).map(function(dn){var un={key:dn.key,className:dn.className||"",children:dn.title,column:dn,colStart:Xt},rn=1,nn=dn.children;return nn&&nn.length>0&&(rn=Re(nn,Xt,Jt+1).reduce(function(Hn,Tn){return Hn+Tn},0),un.hasSubColumns=!0),"colSpan"in dn&&(rn=dn.colSpan),"rowSpan"in dn&&(un.rowSpan=dn.rowSpan),un.colSpan=rn,un.colEnd=un.colStart+rn-1,he[Jt].push(un),Xt+=rn,rn});return Sn}Re(me,0);for(var Je=he.length,gt=function(At){he[At].forEach(function(Jt){!("rowSpan"in Jt)&&!Jt.hasSubColumns&&(Jt.rowSpan=Je-At)})},Ct=0;Ct<Je;Ct+=1)gt(Ct);return he}var lr=function(he){var Re=he.stickyOffsets,Je=he.columns,gt=he.flattenColumns,Ct=he.onHeaderRow,Wt=ce(Qe,["prefixCls","getComponent"]),At=Wt.prefixCls,Jt=Wt.getComponent,Xt=E.useMemo(function(){return Wn(Je)},[Je]),Sn=Jt(["header","wrapper"],"thead"),dn=Jt(["header","row"],"tr"),un=Jt(["header","cell"],"th");return E.createElement(Sn,{className:"".concat(At,"-thead")},Xt.map(function(rn,nn){var Hn=E.createElement(xn,{key:nn,flattenColumns:gt,cells:rn,stickyOffsets:Re,rowComponent:dn,cellComponent:un,onHeaderRow:Ct,index:nn});return Hn}))},qn=Bt(lr),Gn=ee(11592);function cr(me){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof he=="number"?he:he.endsWith("%")?me*parseFloat(he)/100:null}function gr(me,he,Re){return E.useMemo(function(){if(he&&he>0){var Je=0,gt=0;me.forEach(function(un){var rn=cr(he,un.width);rn?Je+=rn:gt+=1});var Ct=Math.max(he,Re),Wt=Math.max(Ct-Je,gt),At=gt,Jt=Wt/gt,Xt=0,Sn=me.map(function(un){var rn=(0,et.Z)({},un),nn=cr(he,rn.width);if(nn)rn.width=nn;else{var Hn=Math.floor(Jt);rn.width=At===1?Wt:Hn,Wt-=Hn,At-=1}return Xt+=rn.width,rn});if(Xt<Ct){var dn=Ct/Xt;Wt=Ct,Sn.forEach(function(un,rn){var nn=Math.floor(un.width*dn);un.width=rn===Sn.length-1?Wt:nn,Wt-=nn})}return[Sn,Math.max(Xt,Ct)]}return[me,he]},[me,he,Re])}var Ir=["children"],pr=["fixed"];function tn(me){return(0,Gn.Z)(me).filter(function(he){return E.isValidElement(he)}).map(function(he){var Re=he.key,Je=he.props,gt=Je.children,Ct=(0,oe.Z)(Je,Ir),Wt=(0,et.Z)({key:Re},Ct);return gt&&(Wt.children=tn(gt)),Wt})}function En(me){return me.filter(function(he){return he&&(0,Xe.Z)(he)==="object"&&!he.hidden}).map(function(he){var Re=he.children;return Re&&Re.length>0?(0,et.Z)((0,et.Z)({},he),{},{children:En(Re)}):he})}function An(me){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return me.filter(function(Re){return Re&&(0,Xe.Z)(Re)==="object"}).reduce(function(Re,Je,gt){var Ct=Je.fixed,Wt=Ct===!0?"left":Ct,At="".concat(he,"-").concat(gt),Jt=Je.children;return Jt&&Jt.length>0?[].concat((0,en.Z)(Re),(0,en.Z)(An(Jt,At).map(function(Xt){return(0,et.Z)({fixed:Wt},Xt)}))):[].concat((0,en.Z)(Re),[(0,et.Z)((0,et.Z)({key:At},Je),{},{fixed:Wt})])},[])}function yr(me){return me.map(function(he){var Re=he.fixed,Je=(0,oe.Z)(he,pr),gt=Re;return Re==="left"?gt="right":Re==="right"&&(gt="left"),(0,et.Z)({fixed:gt},Je)})}function st(me,he){var Re=me.prefixCls,Je=me.columns,gt=me.children,Ct=me.expandable,Wt=me.expandedKeys,At=me.columnTitle,Jt=me.getRowKey,Xt=me.onTriggerExpand,Sn=me.expandIcon,dn=me.rowExpandable,un=me.expandIconColumnIndex,rn=me.direction,nn=me.expandRowByClick,Hn=me.columnWidth,Tn=me.fixed,Kn=me.scrollWidth,Yn=me.clientWidth,Vn=E.useMemo(function(){var xr=Je||tn(gt)||[];return En(xr.slice())},[Je,gt]),tr=E.useMemo(function(){if(Ct){var xr=Vn.slice();if(!xr.includes(Ae)){var Cr=un||0;Cr>=0&&(Cr||Tn==="left"||!Tn)&&xr.splice(Cr,0,Ae),Tn==="right"&&xr.splice(Vn.length,0,Ae)}var nr=xr.indexOf(Ae);xr=xr.filter(function($r,rr){return $r!==Ae||rr===nr});var _n=Vn[nr],vr;Tn?vr=Tn:vr=_n?_n.fixed:null;var Sr=(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)({},Nt,{className:"".concat(Re,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",At),"fixed",vr),"className","".concat(Re,"-row-expand-icon-cell")),"width",Hn),"render",function(rr,pi,vi){var ho=Jt(pi,vi),io=Wt.has(ho),Ji=dn?dn(pi):!0,oo=Sn({prefixCls:Re,expanded:io,expandable:Ji,record:pi,onExpand:Xt});return nn?E.createElement("span",{onClick:function(gi){return gi.stopPropagation()}},oo):oo});return xr.map(function($r){return $r===Ae?Sr:$r})}return Vn.filter(function($r){return $r!==Ae})},[Ct,Vn,Jt,Wt,Sn,rn]),ir=E.useMemo(function(){var xr=tr;return he&&(xr=he(xr)),xr.length||(xr=[{render:function(){return null}}]),xr},[he,tr,rn]),br=E.useMemo(function(){return rn==="rtl"?yr(An(ir)):An(ir)},[ir,rn,Kn]),fr=E.useMemo(function(){for(var xr=-1,Cr=br.length-1;Cr>=0;Cr-=1){var nr=br[Cr].fixed;if(nr==="left"||nr===!0){xr=Cr;break}}if(xr>=0)for(var _n=0;_n<=xr;_n+=1){var vr=br[_n].fixed;if(vr!=="left"&&vr!==!0)return!0}var Sr=br.findIndex(function(pi){var vi=pi.fixed;return vi==="right"});if(Sr>=0)for(var $r=Sr;$r<br.length;$r+=1){var rr=br[$r].fixed;if(rr!=="right")return!0}return!1},[br]),li=gr(br,Kn,Yn),Ar=(0,Ge.Z)(li,2),Tr=Ar[0],Ur=Ar[1];return[ir,Tr,Ur,fr]}var xt=st;function Le(me,he,Re){var Je=vn(me),gt=Je.expandIcon,Ct=Je.expandedRowKeys,Wt=Je.defaultExpandedRowKeys,At=Je.defaultExpandAllRows,Jt=Je.expandedRowRender,Xt=Je.onExpand,Sn=Je.onExpandedRowsChange,dn=Je.childrenColumnName,un=gt||mt,rn=dn||"children",nn=E.useMemo(function(){return Jt?"row":me.expandable&&me.internalHooks===pe&&me.expandable.__PARENT_RENDER_ICON__||he.some(function(ir){return ir&&(0,Xe.Z)(ir)==="object"&&ir[rn]})?"nest":!1},[!!Jt,he]),Hn=E.useState(function(){return Wt||(At?Zt(he,Re,rn):[])}),Tn=(0,Ge.Z)(Hn,2),Kn=Tn[0],Yn=Tn[1],Vn=E.useMemo(function(){return new Set(Ct||Kn||[])},[Ct,Kn]),tr=E.useCallback(function(ir){var br=Re(ir,he.indexOf(ir)),fr,li=Vn.has(br);li?(Vn.delete(br),fr=(0,en.Z)(Vn)):fr=[].concat((0,en.Z)(Vn),[br]),Yn(fr),Xt&&Xt(!li,ir),Sn&&Sn(fr)},[Re,Vn,he,Xt,Sn]);return[Je,nn,Vn,un,rn,tr]}function ct(me,he,Re){var Je=me.map(function(gt,Ct){return wt(Ct,Ct,me,he,Re)});return(0,ye.Z)(function(){return Je},[Je],function(gt,Ct){return!(0,Se.Z)(gt,Ct)})}function $e(me){var he=(0,E.useRef)(me),Re=(0,E.useState)({}),Je=(0,Ge.Z)(Re,2),gt=Je[1],Ct=(0,E.useRef)(null),Wt=(0,E.useRef)([]);function At(Jt){Wt.current.push(Jt);var Xt=Promise.resolve();Ct.current=Xt,Xt.then(function(){if(Ct.current===Xt){var Sn=Wt.current,dn=he.current;Wt.current=[],Sn.forEach(function(un){he.current=un(he.current)}),Ct.current=null,dn!==he.current&>({})}})}return(0,E.useEffect)(function(){return function(){Ct.current=null}},[]),[he.current,At]}function dt(me){var he=(0,E.useRef)(me||null),Re=(0,E.useRef)();function Je(){window.clearTimeout(Re.current)}function gt(Wt){he.current=Wt,Je(),Re.current=window.setTimeout(function(){he.current=null,Re.current=void 0},100)}function Ct(){return he.current}return(0,E.useEffect)(function(){return Je},[]),[gt,Ct]}function Pt(){var me=E.useState(-1),he=(0,Ge.Z)(me,2),Re=he[0],Je=he[1],gt=E.useState(-1),Ct=(0,Ge.Z)(gt,2),Wt=Ct[0],At=Ct[1],Jt=E.useCallback(function(Xt,Sn){Je(Xt),At(Sn)},[]);return[Re,Wt,Jt]}var yn=ee(47273),Cn=(0,yn.Z)()?window:null;function Mn(me,he){var Re=(0,Xe.Z)(me)==="object"?me:{},Je=Re.offsetHeader,gt=Je===void 0?0:Je,Ct=Re.offsetSummary,Wt=Ct===void 0?0:Ct,At=Re.offsetScroll,Jt=At===void 0?0:At,Xt=Re.getContainer,Sn=Xt===void 0?function(){return Cn}:Xt,dn=Sn()||Cn,un=!!me;return E.useMemo(function(){return{isSticky:un,stickyClassName:un?"".concat(he,"-sticky-holder"):"",offsetHeader:gt,offsetSummary:Wt,offsetScroll:Jt,container:dn}},[un,Jt,gt,Wt,he,dn])}function Qt(me,he,Re){var Je=(0,E.useMemo)(function(){var gt=he.length,Ct=function(Xt,Sn,dn){for(var un=[],rn=0,nn=Xt;nn!==Sn;nn+=dn)un.push(rn),he[nn].fixed&&(rn+=me[nn]||0);return un},Wt=Ct(0,gt,1),At=Ct(gt-1,-1,-1).reverse();return Re==="rtl"?{left:At,right:Wt}:{left:Wt,right:At}},[me,he,Re]);return Je}var _t=Qt;function Yt(me){var he=me.className,Re=me.children;return E.createElement("div",{className:he},Re)}var Pn=Yt,Fn=ee(8224),zn=ee(16089),jn=ee(76846);function Dr(me){var he=(0,jn.bn)(me),Re=he.getBoundingClientRect(),Je=document.documentElement;return{left:Re.left+(window.pageXOffset||Je.scrollLeft)-(Je.clientLeft||document.body.clientLeft||0),top:Re.top+(window.pageYOffset||Je.scrollTop)-(Je.clientTop||document.body.clientTop||0)}}var Rr=function(he,Re){var Je,gt,Ct=he.scrollBodyRef,Wt=he.onScroll,At=he.offsetScroll,Jt=he.container,Xt=he.direction,Sn=ce(Qe,"prefixCls"),dn=((Je=Ct.current)===null||Je===void 0?void 0:Je.scrollWidth)||0,un=((gt=Ct.current)===null||gt===void 0?void 0:gt.clientWidth)||0,rn=dn&&un*(un/dn),nn=E.useRef(),Hn=$e({scrollLeft:0,isHiddenScrollBar:!0}),Tn=(0,Ge.Z)(Hn,2),Kn=Tn[0],Yn=Tn[1],Vn=E.useRef({delta:0,x:0}),tr=E.useState(!1),ir=(0,Ge.Z)(tr,2),br=ir[0],fr=ir[1],li=E.useRef(null);E.useEffect(function(){return function(){zn.Z.cancel(li.current)}},[]);var Ar=function(){fr(!1)},Tr=function(_n){_n.persist(),Vn.current.delta=_n.pageX-Kn.scrollLeft,Vn.current.x=0,fr(!0),_n.preventDefault()},Ur=function(_n){var vr,Sr=_n||((vr=window)===null||vr===void 0?void 0:vr.event),$r=Sr.buttons;if(!br||$r===0){br&&fr(!1);return}var rr=Vn.current.x+_n.pageX-Vn.current.x-Vn.current.delta,pi=Xt==="rtl";rr=Math.max(pi?rn-un:0,Math.min(pi?0:un-rn,rr));var vi=!pi||Math.abs(rr)+Math.abs(rn)<un;vi&&(Wt({scrollLeft:rr/un*(dn+2)}),Vn.current.x=_n.pageX)},xr=function(){zn.Z.cancel(li.current),li.current=(0,zn.Z)(function(){if(Ct.current){var _n=Dr(Ct.current).top,vr=_n+Ct.current.offsetHeight,Sr=Jt===window?document.documentElement.scrollTop+window.innerHeight:Dr(Jt).top+Jt.clientHeight;vr-(0,it.Z)()<=Sr||_n>=Sr-At?Yn(function($r){return(0,et.Z)((0,et.Z)({},$r),{},{isHiddenScrollBar:!0})}):Yn(function($r){return(0,et.Z)((0,et.Z)({},$r),{},{isHiddenScrollBar:!1})})}})},Cr=function(_n){Yn(function(vr){return(0,et.Z)((0,et.Z)({},vr),{},{scrollLeft:_n/dn*un||0})})};return E.useImperativeHandle(Re,function(){return{setScrollLeft:Cr,checkScrollBarVisible:xr}}),E.useEffect(function(){var nr=(0,Fn.Z)(document.body,"mouseup",Ar,!1),_n=(0,Fn.Z)(document.body,"mousemove",Ur,!1);return xr(),function(){nr.remove(),_n.remove()}},[rn,br]),E.useEffect(function(){if(Ct.current){for(var nr=[],_n=(0,jn.bn)(Ct.current);_n;)nr.push(_n),_n=_n.parentElement;return nr.forEach(function(vr){return vr.addEventListener("scroll",xr,!1)}),window.addEventListener("resize",xr,!1),window.addEventListener("scroll",xr,!1),Jt.addEventListener("scroll",xr,!1),function(){nr.forEach(function(vr){return vr.removeEventListener("scroll",xr)}),window.removeEventListener("resize",xr),window.removeEventListener("scroll",xr),Jt.removeEventListener("scroll",xr)}}},[Jt]),E.useEffect(function(){Kn.isHiddenScrollBar||Yn(function(nr){var _n=Ct.current;return _n?(0,et.Z)((0,et.Z)({},nr),{},{scrollLeft:_n.scrollLeft/_n.scrollWidth*_n.clientWidth}):nr})},[Kn.isHiddenScrollBar]),dn<=un||!rn||Kn.isHiddenScrollBar?null:E.createElement("div",{style:{height:(0,it.Z)(),width:un,bottom:At},className:"".concat(Sn,"-sticky-scroll")},E.createElement("div",{onMouseDown:Tr,ref:nn,className:Ye()("".concat(Sn,"-sticky-scroll-bar"),(0,Me.Z)({},"".concat(Sn,"-sticky-scroll-bar-active"),br)),style:{width:"".concat(rn,"px"),transform:"translate3d(".concat(Kn.scrollLeft,"px, 0, 0)")}}))},zr=E.forwardRef(Rr);function mr(me){return null}var er=mr;function or(me){return null}var Or=or,Qr="rc-table",Hr=[],Yr={};function Kr(){return"No Data"}function kr(me,he){var Re=(0,et.Z)({rowKey:"key",prefixCls:Qr,emptyText:Kr},me),Je=Re.prefixCls,gt=Re.className,Ct=Re.rowClassName,Wt=Re.style,At=Re.data,Jt=Re.rowKey,Xt=Re.scroll,Sn=Re.tableLayout,dn=Re.direction,un=Re.title,rn=Re.footer,nn=Re.summary,Hn=Re.caption,Tn=Re.id,Kn=Re.showHeader,Yn=Re.components,Vn=Re.emptyText,tr=Re.onRow,ir=Re.onHeaderRow,br=Re.onScroll,fr=Re.internalHooks,li=Re.transformColumns,Ar=Re.internalRefs,Tr=Re.tailor,Ur=Re.getContainerWidth,xr=Re.sticky,Cr=Re.rowHoverable,nr=Cr===void 0?!0:Cr,_n=At||Hr,vr=!!_n.length,Sr=fr===pe,$r=E.useCallback(function(Li,zi){return(0,jt.Z)(Yn,Li)||zi},[Yn]),rr=E.useMemo(function(){return typeof Jt=="function"?Jt:function(Li){var zi=Li&&Li[Jt];return zi}},[Jt]),pi=$r(["body"]),vi=Pt(),ho=(0,Ge.Z)(vi,3),io=ho[0],Ji=ho[1],oo=ho[2],mo=Le(Re,_n,rr),gi=(0,Ge.Z)(mo,6),Ci=gi[0],vo=gi[1],wo=gi[2],Mr=gi[3],ii=gi[4],Pr=gi[5],hr=Xt==null?void 0:Xt.x,Oi=E.useState(0),Fi=(0,Ge.Z)(Oi,2),no=Fi[0],Xi=Fi[1],go=xt((0,et.Z)((0,et.Z)((0,et.Z)({},Re),Ci),{},{expandable:!!Ci.expandedRowRender,columnTitle:Ci.columnTitle,expandedKeys:wo,getRowKey:rr,onTriggerExpand:Pr,expandIcon:Mr,expandIconColumnIndex:Ci.expandIconColumnIndex,direction:dn,scrollWidth:Sr&&Tr&&typeof hr=="number"?hr:null,clientWidth:no}),Sr?li:null),ko=(0,Ge.Z)(go,4),Br=ko[0],Wr=ko[1],Zi=ko[2],Vi=ko[3],Wi=Zi!=null?Zi:hr,Lo=E.useMemo(function(){return{columns:Br,flattenColumns:Wr}},[Br,Wr]),yo=E.useRef(),ca=E.useRef(),ao=E.useRef(),Mi=E.useRef();E.useImperativeHandle(he,function(){return{nativeElement:yo.current,scrollTo:function(zi){var Yo;if(ao.current instanceof HTMLElement){var xa=zi.index,_o=zi.top,Tl=zi.key;if(Lt(_o)){var sl;(sl=ao.current)===null||sl===void 0||sl.scrollTo({top:_o})}else{var _a,Ml=Tl!=null?Tl:rr(_n[xa]);(_a=ao.current.querySelector('[data-row-key="'.concat(Ml,'"]')))===null||_a===void 0||_a.scrollIntoView()}}else(Yo=ao.current)!==null&&Yo!==void 0&&Yo.scrollTo&&ao.current.scrollTo(zi)}}});var Yi=E.useRef(),Qi=E.useState(!1),Do=(0,Ge.Z)(Qi,2),po=Do[0],Ni=Do[1],lo=E.useState(!1),ji=(0,Ge.Z)(lo,2),Go=ji[0],Eo=ji[1],oa=E.useState(new Map),da=(0,Ge.Z)(oa,2),Va=da[0],qi=da[1],Wl=vt(Wr),aa=Wl.map(function(Li){return Va.get(Li)}),Da=E.useMemo(function(){return aa},[aa.join("_")]),ya=_t(Da,Wr,dn),fa=Xt&&Kt(Xt.y),eo=Xt&&Kt(Wi)||!!Ci.fixed,ba=eo&&Wr.some(function(Li){var zi=Li.fixed;return zi}),al=E.useRef(),Ga=Mn(xr,Je),Ua=Ga.isSticky,is=Ga.offsetHeader,os=Ga.offsetSummary,as=Ga.offsetScroll,ls=Ga.stickyClassName,Is=Ga.container,ui=E.useMemo(function(){return nn==null?void 0:nn(_n)},[nn,_n]),Ei=(fa||Ua)&&E.isValidElement(ui)&&ui.type===ge&&ui.props.fixed,co,bo,Zo;fa&&(bo={overflowY:vr?"scroll":"auto",maxHeight:Xt.y}),eo&&(co={overflowX:"auto"},fa||(bo={overflowY:"hidden"}),Zo={width:Wi===!0?"auto":Wi,minWidth:"100%"});var Bo=E.useCallback(function(Li,zi){qi(function(Yo){if(Yo.get(Li)!==zi){var xa=new Map(Yo);return xa.set(Li,zi),xa}return Yo})},[]),Aa=dt(null),Xo=(0,Ge.Z)(Aa,2),kl=Xo[0],Os=Xo[1];function Kl(Li,zi){zi&&(typeof zi=="function"?zi(Li):zi.scrollLeft!==Li&&(zi.scrollLeft=Li,zi.scrollLeft!==Li&&setTimeout(function(){zi.scrollLeft=Li},0)))}var vl=(0,Ee.Z)(function(Li){var zi=Li.currentTarget,Yo=Li.scrollLeft,xa=dn==="rtl",_o=typeof Yo=="number"?Yo:zi.scrollLeft,Tl=zi||Yr;if(!Os()||Os()===Tl){var sl;kl(Tl),Kl(_o,ca.current),Kl(_o,ao.current),Kl(_o,Yi.current),Kl(_o,(sl=al.current)===null||sl===void 0?void 0:sl.setScrollLeft)}var _a=zi||ca.current;if(_a){var Ml=Sr&&Tr&&typeof Wi=="number"?Wi:_a.scrollWidth,Fs=_a.clientWidth;if(Ml===Fs){Ni(!1),Eo(!1);return}xa?(Ni(-_o<Ml-Fs),Eo(-_o>0)):(Ni(_o>0),Eo(_o<Ml-Fs))}}),ss=(0,Ee.Z)(function(Li){vl(Li),br==null||br(Li)}),gl=function(){if(eo&&ao.current){var zi;vl({currentTarget:(0,jn.bn)(ao.current),scrollLeft:(zi=ao.current)===null||zi===void 0?void 0:zi.scrollLeft})}else Ni(!1),Eo(!1)},Ps=function(zi){var Yo,xa=zi.width;(Yo=al.current)===null||Yo===void 0||Yo.checkScrollBarVisible();var _o=yo.current?yo.current.offsetWidth:xa;Sr&&Ur&&yo.current&&(_o=Ur(yo.current,_o)||_o),_o!==no&&(gl(),Xi(_o))},us=E.useRef(!1);E.useEffect(function(){us.current&&gl()},[eo,At,Br.length]),E.useEffect(function(){us.current=!0},[]);var ks=E.useState(0),Js=(0,Ge.Z)(ks,2),ll=Js[0],Ds=Js[1],vu=E.useState(!0),Ts=(0,Ge.Z)(vu,2),Vl=Ts[0],gu=Ts[1];(0,be.Z)(function(){(!Tr||!Sr)&&(ao.current instanceof Element?Ds((0,it.o)(ao.current).width):Ds((0,it.o)(Mi.current).width)),gu((0,Ke.G)("position","sticky"))},[]),E.useEffect(function(){Sr&&Ar&&(Ar.body.current=ao.current)});var yu=E.useCallback(function(Li){return E.createElement(E.Fragment,null,E.createElement(qn,Li),Ei==="top"&&E.createElement(ke,Li,ui))},[Ei,ui]),Gl=E.useCallback(function(Li){return E.createElement(ke,Li,ui)},[ui]),Ms=$r(["table"],"table"),Ul=E.useMemo(function(){return Sn||(ba?Wi==="max-content"?"auto":"fixed":fa||Ua||Wr.some(function(Li){var zi=Li.ellipsis;return zi})?"fixed":"auto")},[fa,ba,Wr,Sn,Ua]),Ns,Xl={colWidths:Da,columCount:Wr.length,stickyOffsets:ya,onHeaderRow:ir,fixHeader:fa,scroll:Xt},Ls=E.useMemo(function(){return vr?null:typeof Vn=="function"?Vn():Vn},[vr,Vn]),Qs=E.createElement(ft,{data:_n,measureColumnWidth:fa||eo||Ua}),Bs=E.createElement(bn,{colWidths:Wr.map(function(Li){var zi=Li.width;return zi}),columns:Wr}),Rs=Hn!=null?E.createElement("caption",{className:"".concat(Je,"-caption")},Hn):void 0,bu=(0,xe.Z)(Re,{data:!0}),cs=(0,xe.Z)(Re,{aria:!0});if(fa||Ua){var yl;typeof pi=="function"?(yl=pi(_n,{scrollbarSize:ll,ref:ao,onScroll:vl}),Xl.colWidths=Wr.map(function(Li,zi){var Yo=Li.width,xa=zi===Wr.length-1?Yo-ll:Yo;return typeof xa=="number"&&!Number.isNaN(xa)?xa:0})):yl=E.createElement("div",{style:(0,et.Z)((0,et.Z)({},co),bo),onScroll:ss,ref:ao,className:Ye()("".concat(Je,"-body"))},E.createElement(Ms,(0,We.Z)({style:(0,et.Z)((0,et.Z)({},Zo),{},{tableLayout:Ul})},cs),Rs,Bs,Qs,!Ei&&ui&&E.createElement(ke,{stickyOffsets:ya,flattenColumns:Wr},ui)));var Dl=(0,et.Z)((0,et.Z)((0,et.Z)({noData:!_n.length,maxContentScroll:eo&&Wi==="max-content"},Xl),Lo),{},{direction:dn,stickyClassName:ls,onScroll:vl});Ns=E.createElement(E.Fragment,null,Kn!==!1&&E.createElement(hn,(0,We.Z)({},Dl,{stickyTopOffset:is,className:"".concat(Je,"-header"),ref:ca}),yu),yl,Ei&&Ei!=="top"&&E.createElement(hn,(0,We.Z)({},Dl,{stickyBottomOffset:os,className:"".concat(Je,"-summary"),ref:Yi}),Gl),Ua&&ao.current&&ao.current instanceof Element&&E.createElement(zr,{ref:al,offsetScroll:as,scrollBodyRef:ao,onScroll:vl,container:Is,direction:dn}))}else Ns=E.createElement("div",{style:(0,et.Z)((0,et.Z)({},co),bo),className:Ye()("".concat(Je,"-content")),onScroll:vl,ref:ao},E.createElement(Ms,(0,We.Z)({style:(0,et.Z)((0,et.Z)({},Zo),{},{tableLayout:Ul})},cs),Rs,Bs,Kn!==!1&&E.createElement(qn,(0,We.Z)({},Xl,Lo)),Qs,ui&&E.createElement(ke,{stickyOffsets:ya,flattenColumns:Wr},ui)));var As=E.createElement("div",(0,We.Z)({className:Ye()(Je,gt,(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)({},"".concat(Je,"-rtl"),dn==="rtl"),"".concat(Je,"-ping-left"),po),"".concat(Je,"-ping-right"),Go),"".concat(Je,"-layout-fixed"),Sn==="fixed"),"".concat(Je,"-fixed-header"),fa),"".concat(Je,"-fixed-column"),ba),"".concat(Je,"-fixed-column-gapped"),ba&&Vi),"".concat(Je,"-scroll-horizontal"),eo),"".concat(Je,"-has-fix-left"),Wr[0]&&Wr[0].fixed),"".concat(Je,"-has-fix-right"),Wr[Wr.length-1]&&Wr[Wr.length-1].fixed==="right")),style:Wt,id:Tn,ref:yo},bu),un&&E.createElement(Pn,{className:"".concat(Je,"-title")},un(_n)),E.createElement("div",{ref:Mi,className:"".concat(Je,"-container")},Ns),rn&&E.createElement(Pn,{className:"".concat(Je,"-footer")},rn(_n)));eo&&(As=E.createElement(Fe.Z,{onResize:Ps},As));var $s=ct(Wr,ya,dn),xu=E.useMemo(function(){return{scrollX:Wi,prefixCls:Je,getComponent:$r,scrollbarSize:ll,direction:dn,fixedInfoList:$s,isSticky:Ua,supportSticky:Vl,componentWidth:no,fixHeader:fa,fixColumn:ba,horizonScroll:eo,tableLayout:Ul,rowClassName:Ct,expandedRowClassName:Ci.expandedRowClassName,expandIcon:Mr,expandableType:vo,expandRowByClick:Ci.expandRowByClick,expandedRowRender:Ci.expandedRowRender,onTriggerExpand:Pr,expandIconColumnIndex:Ci.expandIconColumnIndex,indentSize:Ci.indentSize,allColumnsFixedLeft:Wr.every(function(Li){return Li.fixed==="left"}),emptyNode:Ls,columns:Br,flattenColumns:Wr,onColumnResize:Bo,hoverStartRow:io,hoverEndRow:Ji,onHover:oo,rowExpandable:Ci.rowExpandable,onRow:tr,getRowKey:rr,expandedKeys:wo,childrenColumnName:ii,rowHoverable:nr}},[Wi,Je,$r,ll,dn,$s,Ua,Vl,no,fa,ba,eo,Ul,Ct,Ci.expandedRowClassName,Mr,vo,Ci.expandRowByClick,Ci.expandedRowRender,Pr,Ci.expandIconColumnIndex,Ci.indentSize,Ls,Br,Wr,Bo,io,Ji,oo,Ci.rowExpandable,tr,rr,wo,ii,nr]);return E.createElement(Qe.Provider,{value:xu},As)}var Fr=E.forwardRef(kr);function oi(me){return St(Fr,me)}var qr=oi();qr.EXPAND_COLUMN=Ae,qr.INTERNAL_HOOKS=pe,qr.Column=er,qr.ColumnGroup=Or,qr.Summary=Ie;var ei=qr,si=ee(48911),ci=Ne(null),Zr=Ne(null);function ti(me,he,Re){var Je=he||1;return Re[me+Je]-(Re[me]||0)}function wr(me){var he=me.rowInfo,Re=me.column,Je=me.colIndex,gt=me.indent,Ct=me.index,Wt=me.component,At=me.renderIndex,Jt=me.record,Xt=me.style,Sn=me.className,dn=me.inverse,un=me.getHeight,rn=Re.render,nn=Re.dataIndex,Hn=Re.className,Tn=Re.width,Kn=ce(Zr,["columnsOffset"]),Yn=Kn.columnsOffset,Vn=Ut(he,Re,Je,gt,Ct),tr=Vn.key,ir=Vn.fixedInfo,br=Vn.appendCellNode,fr=Vn.additionalCellProps,li=fr.style,Ar=fr.colSpan,Tr=Ar===void 0?1:Ar,Ur=fr.rowSpan,xr=Ur===void 0?1:Ur,Cr=Je-1,nr=ti(Cr,Tr,Yn),_n=Tr>1?Tn-nr:0,vr=(0,et.Z)((0,et.Z)((0,et.Z)({},li),Xt),{},{flex:"0 0 ".concat(nr,"px"),width:"".concat(nr,"px"),marginRight:_n,pointerEvents:"auto"}),Sr=E.useMemo(function(){return dn?xr<=1:Tr===0||xr===0||xr>1},[xr,Tr,dn]);Sr?vr.visibility="hidden":dn&&(vr.height=un==null?void 0:un(xr));var $r=Sr?function(){return null}:rn,rr={};return(xr===0||Tr===0)&&(rr.rowSpan=1,rr.colSpan=1),E.createElement(Gt,(0,We.Z)({className:Ye()(Hn,Sn),ellipsis:Re.ellipsis,align:Re.align,scope:Re.rowScope,component:Wt,prefixCls:he.prefixCls,key:tr,record:Jt,index:Ct,renderIndex:At,dataIndex:nn,render:$r,shouldCellUpdate:Re.shouldCellUpdate},ir,{appendNode:br,additionalProps:(0,et.Z)((0,et.Z)({},fr),{},{style:vr},rr)}))}var mi=wr,Hi=["data","index","className","rowKey","style","extra","getHeight"],Ui=E.forwardRef(function(me,he){var Re=me.data,Je=me.index,gt=me.className,Ct=me.rowKey,Wt=me.style,At=me.extra,Jt=me.getHeight,Xt=(0,oe.Z)(me,Hi),Sn=Re.record,dn=Re.indent,un=Re.index,rn=ce(Qe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),nn=rn.scrollX,Hn=rn.flattenColumns,Tn=rn.prefixCls,Kn=rn.fixColumn,Yn=rn.componentWidth,Vn=ce(ci,["getComponent"]),tr=Vn.getComponent,ir=Mt(Sn,Ct,Je,dn),br=tr(["body","row"],"div"),fr=tr(["body","cell"],"div"),li=ir.rowSupportExpand,Ar=ir.expanded,Tr=ir.rowProps,Ur=ir.expandedRowRender,xr=ir.expandedRowClassName,Cr;if(li&&Ar){var nr=Ur(Sn,Je,dn+1,Ar),_n=Dt(xr,Sn,Je,dn),vr={};Kn&&(vr={style:(0,Me.Z)({},"--virtual-width","".concat(Yn,"px"))});var Sr="".concat(Tn,"-expanded-row-cell");Cr=E.createElement(br,{className:Ye()("".concat(Tn,"-expanded-row"),"".concat(Tn,"-expanded-row-level-").concat(dn+1),_n)},E.createElement(Gt,{component:fr,prefixCls:Tn,className:Ye()(Sr,(0,Me.Z)({},"".concat(Sr,"-fixed"),Kn)),additionalProps:vr},nr))}var $r=(0,et.Z)((0,et.Z)({},Wt),{},{width:nn});At&&($r.position="absolute",$r.pointerEvents="none");var rr=E.createElement(br,(0,We.Z)({},Tr,Xt,{"data-row-key":Ct,ref:li?null:he,className:Ye()(gt,"".concat(Tn,"-row"),Tr==null?void 0:Tr.className,(0,Me.Z)({},"".concat(Tn,"-row-extra"),At)),style:(0,et.Z)((0,et.Z)({},$r),Tr==null?void 0:Tr.style)}),Hn.map(function(pi,vi){return E.createElement(mi,{key:vi,component:fr,rowInfo:ir,column:pi,colIndex:vi,indent:dn,index:Je,renderIndex:un,record:Sn,inverse:At,getHeight:Jt})}));return li?E.createElement("div",{ref:he},rr,Cr):rr}),yi=Bt(Ui),Ii=yi,bi=E.forwardRef(function(me,he){var Re=me.data,Je=me.onScroll,gt=ce(Qe,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Ct=gt.flattenColumns,Wt=gt.onColumnResize,At=gt.getRowKey,Jt=gt.expandedKeys,Xt=gt.prefixCls,Sn=gt.childrenColumnName,dn=gt.scrollX,un=gt.direction,rn=ce(ci),nn=rn.sticky,Hn=rn.scrollY,Tn=rn.listItemHeight,Kn=rn.getComponent,Yn=rn.onScroll,Vn=E.useRef(),tr=Ot(Re,Sn,Jt,At),ir=E.useMemo(function(){var Cr=0;return Ct.map(function(nr){var _n=nr.width,vr=nr.key;return Cr+=_n,[vr,_n,Cr]})},[Ct]),br=E.useMemo(function(){return ir.map(function(Cr){return Cr[2]})},[ir]);E.useEffect(function(){ir.forEach(function(Cr){var nr=(0,Ge.Z)(Cr,2),_n=nr[0],vr=nr[1];Wt(_n,vr)})},[ir]),E.useImperativeHandle(he,function(){var Cr,nr={scrollTo:function(vr){var Sr;(Sr=Vn.current)===null||Sr===void 0||Sr.scrollTo(vr)},nativeElement:(Cr=Vn.current)===null||Cr===void 0?void 0:Cr.nativeElement};return Object.defineProperty(nr,"scrollLeft",{get:function(){var vr;return((vr=Vn.current)===null||vr===void 0?void 0:vr.getScrollInfo().x)||0},set:function(vr){var Sr;(Sr=Vn.current)===null||Sr===void 0||Sr.scrollTo({left:vr})}}),nr});var fr=function(nr,_n){var vr,Sr=(vr=tr[_n])===null||vr===void 0?void 0:vr.record,$r=nr.onCell;if($r){var rr,pi=$r(Sr,_n);return(rr=pi==null?void 0:pi.rowSpan)!==null&&rr!==void 0?rr:1}return 1},li=function(nr){var _n=nr.start,vr=nr.end,Sr=nr.getSize,$r=nr.offsetY;if(vr<0)return null;for(var rr=Ct.filter(function(Mr){return fr(Mr,_n)===0}),pi=_n,vi=function(ii){if(rr=rr.filter(function(Pr){return fr(Pr,ii)===0}),!rr.length)return pi=ii,1},ho=_n;ho>=0&&!vi(ho);ho-=1);for(var io=Ct.filter(function(Mr){return fr(Mr,vr)!==1}),Ji=vr,oo=function(ii){if(io=io.filter(function(Pr){return fr(Pr,ii)!==1}),!io.length)return Ji=Math.max(ii-1,vr),1},mo=vr;mo<tr.length&&!oo(mo);mo+=1);for(var gi=[],Ci=function(ii){var Pr=tr[ii];if(!Pr)return 1;Ct.some(function(hr){return fr(hr,ii)>1})&&gi.push(ii)},vo=pi;vo<=Ji;vo+=1)Ci(vo);var wo=gi.map(function(Mr){var ii=tr[Mr],Pr=At(ii.record,Mr),hr=function(no){var Xi=Mr+no-1,go=At(tr[Xi].record,Xi),ko=Sr(Pr,go);return ko.bottom-ko.top},Oi=Sr(Pr);return E.createElement(Ii,{key:Mr,data:ii,rowKey:Pr,index:Mr,style:{top:-$r+Oi.top},extra:!0,getHeight:hr})});return wo},Ar=E.useMemo(function(){return{columnsOffset:br}},[br]),Tr="".concat(Xt,"-tbody"),Ur=Kn(["body","wrapper"]),xr={};return nn&&(xr.position="sticky",xr.bottom=0,(0,Xe.Z)(nn)==="object"&&nn.offsetScroll&&(xr.bottom=nn.offsetScroll)),E.createElement(Zr.Provider,{value:Ar},E.createElement(si.Z,{fullHeight:!1,ref:Vn,prefixCls:"".concat(Tr,"-virtual"),styles:{horizontalScrollBar:xr},className:Tr,height:Hn,itemHeight:Tn||24,data:tr,itemKey:function(nr){return At(nr.record)},component:Ur,scrollWidth:dn,direction:un,onVirtualScroll:function(nr){var _n,vr=nr.x;Je({currentTarget:(_n=Vn.current)===null||_n===void 0?void 0:_n.nativeElement,scrollLeft:vr})},onScroll:Yn,extraRender:li},function(Cr,nr,_n){var vr=At(Cr.record,nr);return E.createElement(Ii,{data:Cr,rowKey:vr,index:nr,style:_n.style})}))}),Ri=Bt(bi),Ki=Ri,ni=function(he,Re){var Je=Re.ref,gt=Re.onScroll;return E.createElement(Ki,{ref:Je,data:he,onScroll:gt})};function ar(me,he){var Re=me.data,Je=me.columns,gt=me.scroll,Ct=me.sticky,Wt=me.prefixCls,At=Wt===void 0?Qr:Wt,Jt=me.className,Xt=me.listItemHeight,Sn=me.components,dn=me.onScroll,un=gt||{},rn=un.x,nn=un.y;typeof rn!="number"&&(rn=1),typeof nn!="number"&&(nn=500);var Hn=(0,tt.zX)(function(Yn,Vn){return(0,jt.Z)(Sn,Yn)||Vn}),Tn=(0,tt.zX)(dn),Kn=E.useMemo(function(){return{sticky:Ct,scrollY:nn,listItemHeight:Xt,getComponent:Hn,onScroll:Tn}},[Ct,nn,Xt,Hn,Tn]);return E.createElement(ci.Provider,{value:Kn},E.createElement(ei,(0,We.Z)({},me,{className:Ye()(Jt,"".concat(At,"-virtual")),scroll:(0,et.Z)((0,et.Z)({},gt),{},{x:rn}),components:(0,et.Z)((0,et.Z)({},Sn),{},{body:Re!=null&&Re.length?ni:void 0}),columns:Je,internalHooks:pe,tailor:!0,ref:he})))}var wn=E.forwardRef(ar);function Ln(me){return St(wn,me)}var Rn=Ln(),On=null,dr=me=>null,Bn=me=>null,Un=ee(84105),Xn=ee(82661),jr=ee(34643),Si=ee(34061),di=ee(18929);function ki(me){const[he,Re]=(0,E.useState)(null);return[(0,E.useCallback)((Ct,Wt,At)=>{const Jt=he!=null?he:Ct,Xt=Math.min(Jt||0,Ct),Sn=Math.max(Jt||0,Ct),dn=Wt.slice(Xt,Sn+1).map(nn=>me(nn)),un=dn.some(nn=>!At.has(nn)),rn=[];return dn.forEach(nn=>{un?(At.has(nn)||rn.push(nn),At.add(nn)):(At.delete(nn),rn.push(nn))}),Re(un?Sn:null),rn},[he]),Ct=>{Re(Ct)}]}var xi=ee(32383),wi=ee(62673),Ai=ee(75727),Di=ee(47889);const Ti={},so="SELECT_ALL",Oo="SELECT_INVERT",Mo="SELECT_NONE",No=[],Ao=(me,he)=>{let Re=[];return(he||[]).forEach(Je=>{Re.push(Je),Je&&typeof Je=="object"&&me in Je&&(Re=[].concat((0,en.Z)(Re),(0,en.Z)(Ao(me,Je[me]))))}),Re};var Lr=(me,he)=>{const{preserveSelectedRowKeys:Re,selectedRowKeys:Je,defaultSelectedRowKeys:gt,getCheckboxProps:Ct,onChange:Wt,onSelect:At,onSelectAll:Jt,onSelectInvert:Xt,onSelectNone:Sn,onSelectMultiple:dn,columnWidth:un,type:rn,selections:nn,fixed:Hn,renderCell:Tn,hideSelectAll:Kn,checkStrictly:Yn=!0}=he||{},{prefixCls:Vn,data:tr,pageData:ir,getRecordByKey:br,getRowKey:fr,expandType:li,childrenColumnName:Ar,locale:Tr,getPopupContainer:Ur}=me,xr=(0,xi.ln)("Table"),[Cr,nr]=ki(Mr=>Mr),[_n,vr]=(0,di.Z)(Je||gt||No,{value:Je}),Sr=E.useRef(new Map),$r=(0,E.useCallback)(Mr=>{if(Re){const ii=new Map;Mr.forEach(Pr=>{let hr=br(Pr);!hr&&Sr.current.has(Pr)&&(hr=Sr.current.get(Pr)),ii.set(Pr,hr)}),Sr.current=ii}},[br,Re]);E.useEffect(()=>{$r(_n)},[_n]);const rr=(0,E.useMemo)(()=>Ao(Ar,ir),[Ar,ir]),{keyEntities:pi}=(0,E.useMemo)(()=>{if(Yn)return{keyEntities:null};let Mr=tr;if(Re){const ii=new Set(rr.map((hr,Oi)=>fr(hr,Oi))),Pr=Array.from(Sr.current).reduce((hr,Oi)=>{let[Fi,no]=Oi;return ii.has(Fi)?hr:hr.concat(no)},[]);Mr=[].concat((0,en.Z)(Mr),(0,en.Z)(Pr))}return(0,Si.I8)(Mr,{externalGetKey:fr,childrenPropName:Ar})},[tr,fr,Yn,Ar,Re,rr]),vi=(0,E.useMemo)(()=>{const Mr=new Map;return rr.forEach((ii,Pr)=>{const hr=fr(ii,Pr),Oi=(Ct?Ct(ii):null)||{};Mr.set(hr,Oi)}),Mr},[rr,fr,Ct]),ho=(0,E.useCallback)(Mr=>{const ii=fr(Mr);let Pr;return vi.has(ii)?Pr=vi.get(fr(Mr)):Pr=Ct?Ct(Mr):void 0,!!(Pr!=null&&Pr.disabled)},[vi,fr]),[io,Ji]=(0,E.useMemo)(()=>{if(Yn)return[_n||[],[]];const{checkedKeys:Mr,halfCheckedKeys:ii}=(0,jr.S)(_n,!0,pi,ho);return[Mr||[],ii]},[_n,Yn,pi,ho]),oo=(0,E.useMemo)(()=>{const Mr=rn==="radio"?io.slice(0,1):io;return new Set(Mr)},[io,rn]),mo=(0,E.useMemo)(()=>rn==="radio"?new Set:new Set(Ji),[Ji,rn]);E.useEffect(()=>{he||vr(No)},[!!he]);const gi=(0,E.useCallback)((Mr,ii)=>{let Pr,hr;$r(Mr),Re?(Pr=Mr,hr=Mr.map(Oi=>Sr.current.get(Oi))):(Pr=[],hr=[],Mr.forEach(Oi=>{const Fi=br(Oi);Fi!==void 0&&(Pr.push(Oi),hr.push(Fi))})),vr(Pr),Wt==null||Wt(Pr,hr,{type:ii})},[vr,br,Wt,Re]),Ci=(0,E.useCallback)((Mr,ii,Pr,hr)=>{if(At){const Oi=Pr.map(Fi=>br(Fi));At(br(Mr),ii,Oi,hr)}gi(Pr,"single")},[At,br,gi]),vo=(0,E.useMemo)(()=>!nn||Kn?null:(nn===!0?[so,Oo,Mo]:nn).map(ii=>ii===so?{key:"all",text:Tr.selectionAll,onSelect(){gi(tr.map((Pr,hr)=>fr(Pr,hr)).filter(Pr=>{const hr=vi.get(Pr);return!(hr!=null&&hr.disabled)||oo.has(Pr)}),"all")}}:ii===Oo?{key:"invert",text:Tr.selectInvert,onSelect(){const Pr=new Set(oo);ir.forEach((Oi,Fi)=>{const no=fr(Oi,Fi),Xi=vi.get(no);Xi!=null&&Xi.disabled||(Pr.has(no)?Pr.delete(no):Pr.add(no))});const hr=Array.from(Pr);Xt&&(xr.deprecated(!1,"onSelectInvert","onChange"),Xt(hr)),gi(hr,"invert")}}:ii===Mo?{key:"none",text:Tr.selectNone,onSelect(){Sn==null||Sn(),gi(Array.from(oo).filter(Pr=>{const hr=vi.get(Pr);return hr==null?void 0:hr.disabled}),"none")}}:ii).map(ii=>Object.assign(Object.assign({},ii),{onSelect:function(){for(var Pr,hr,Oi=arguments.length,Fi=new Array(Oi),no=0;no<Oi;no++)Fi[no]=arguments[no];(hr=ii.onSelect)===null||hr===void 0||(Pr=hr).call.apply(Pr,[ii].concat(Fi)),nr(null)}})),[nn,oo,ir,fr,Xt,gi]);return[(0,E.useCallback)(Mr=>{var ii;if(!he)return Mr.filter(Mi=>Mi!==Ti);let Pr=(0,en.Z)(Mr);const hr=new Set(oo),Oi=rr.map(fr).filter(Mi=>!vi.get(Mi).disabled),Fi=Oi.every(Mi=>hr.has(Mi)),no=Oi.some(Mi=>hr.has(Mi)),Xi=()=>{const Mi=[];Fi?Oi.forEach(Qi=>{hr.delete(Qi),Mi.push(Qi)}):Oi.forEach(Qi=>{hr.has(Qi)||(hr.add(Qi),Mi.push(Qi))});const Yi=Array.from(hr);Jt==null||Jt(!Fi,Yi.map(Qi=>br(Qi)),Mi.map(Qi=>br(Qi))),gi(Yi,"all"),nr(null)};let go,ko;if(rn!=="radio"){let Mi;if(vo){const Ni={getPopupContainer:Ur,items:vo.map((lo,ji)=>{const{key:Go,text:Eo,onSelect:oa}=lo;return{key:Go!=null?Go:ji,onClick:()=>{oa==null||oa(Oi)},label:Eo}})};Mi=E.createElement("div",{className:`${Vn}-selection-extra`},E.createElement(Ai.Z,{menu:Ni,getPopupContainer:Ur},E.createElement("span",null,E.createElement(Un.Z,null))))}const Yi=rr.map((Ni,lo)=>{const ji=fr(Ni,lo),Go=vi.get(ji)||{};return Object.assign({checked:hr.has(ji)},Go)}).filter(Ni=>{let{disabled:lo}=Ni;return lo}),Qi=!!Yi.length&&Yi.length===rr.length,Do=Qi&&Yi.every(Ni=>{let{checked:lo}=Ni;return lo}),po=Qi&&Yi.some(Ni=>{let{checked:lo}=Ni;return lo});ko=E.createElement(wi.default,{checked:Qi?Do:!!rr.length&&Fi,indeterminate:Qi?!Do&&po:!Fi&&no,onChange:Xi,disabled:rr.length===0||Qi,"aria-label":Mi?"Custom selection":"Select all",skipGroup:!0}),go=!Kn&&E.createElement("div",{className:`${Vn}-selection`},ko,Mi)}let Br;rn==="radio"?Br=(Mi,Yi,Qi)=>{const Do=fr(Yi,Qi),po=hr.has(Do),Ni=vi.get(Do);return{node:E.createElement(Di.ZP,Object.assign({},Ni,{checked:po,onClick:lo=>{var ji;lo.stopPropagation(),(ji=Ni==null?void 0:Ni.onClick)===null||ji===void 0||ji.call(Ni,lo)},onChange:lo=>{var ji;hr.has(Do)||Ci(Do,!0,[Do],lo.nativeEvent),(ji=Ni==null?void 0:Ni.onChange)===null||ji===void 0||ji.call(Ni,lo)}})),checked:po}}:Br=(Mi,Yi,Qi)=>{var Do;const po=fr(Yi,Qi),Ni=hr.has(po),lo=mo.has(po),ji=vi.get(po);let Go;return li==="nest"?Go=lo:Go=(Do=ji==null?void 0:ji.indeterminate)!==null&&Do!==void 0?Do:lo,{node:E.createElement(wi.default,Object.assign({},ji,{indeterminate:Go,checked:Ni,skipGroup:!0,onClick:Eo=>{var oa;Eo.stopPropagation(),(oa=ji==null?void 0:ji.onClick)===null||oa===void 0||oa.call(ji,Eo)},onChange:Eo=>{var oa;const{nativeEvent:da}=Eo,{shiftKey:Va}=da,qi=Oi.findIndex(aa=>aa===po),Wl=io.some(aa=>Oi.includes(aa));if(Va&&Yn&&Wl){const aa=Cr(qi,Oi,hr),Da=Array.from(hr);dn==null||dn(!Ni,Da.map(ya=>br(ya)),aa.map(ya=>br(ya))),gi(Da,"multiple")}else{const aa=io;if(Yn){const Da=Ni?(0,Xn._5)(aa,po):(0,Xn.L0)(aa,po);Ci(po,!Ni,Da,da)}else{const Da=(0,jr.S)([].concat((0,en.Z)(aa),[po]),!0,pi,ho),{checkedKeys:ya,halfCheckedKeys:fa}=Da;let eo=ya;if(Ni){const ba=new Set(ya);ba.delete(po),eo=(0,jr.S)(Array.from(ba),{checked:!1,halfCheckedKeys:fa},pi,ho).checkedKeys}Ci(po,!Ni,eo,da)}}nr(Ni?null:qi),(oa=ji==null?void 0:ji.onChange)===null||oa===void 0||oa.call(ji,Eo)}})),checked:Ni}};const Wr=(Mi,Yi,Qi)=>{const{node:Do,checked:po}=Br(Mi,Yi,Qi);return Tn?Tn(po,Yi,Qi,Do):Do};if(!Pr.includes(Ti))if(Pr.findIndex(Mi=>{var Yi;return((Yi=Mi[Nt])===null||Yi===void 0?void 0:Yi.columnType)==="EXPAND_COLUMN"})===0){const[Mi,...Yi]=Pr;Pr=[Mi,Ti].concat((0,en.Z)(Yi))}else Pr=[Ti].concat((0,en.Z)(Pr));const Zi=Pr.indexOf(Ti);Pr=Pr.filter((Mi,Yi)=>Mi!==Ti||Yi===Zi);const Vi=Pr[Zi-1],Wi=Pr[Zi+1];let Lo=Hn;Lo===void 0&&((Wi==null?void 0:Wi.fixed)!==void 0?Lo=Wi.fixed:(Vi==null?void 0:Vi.fixed)!==void 0&&(Lo=Vi.fixed)),Lo&&Vi&&((ii=Vi[Nt])===null||ii===void 0?void 0:ii.columnType)==="EXPAND_COLUMN"&&Vi.fixed===void 0&&(Vi.fixed=Lo);const yo=Ye()(`${Vn}-selection-col`,{[`${Vn}-selection-col-with-dropdown`]:nn&&rn==="checkbox"}),ca=()=>he!=null&&he.columnTitle?typeof he.columnTitle=="function"?he.columnTitle(ko):he.columnTitle:go,ao={fixed:Lo,width:un,className:`${Vn}-selection-column`,title:ca(),render:Wr,onCell:he.onCell,[Nt]:{className:yo}};return Pr.map(Mi=>Mi===Ti?ao:Mi)},[fr,rr,he,io,oo,mo,un,vo,li,vi,dn,Ci,ho]),oo]},Gi=ee(2738);function _i(me,he){return me._antProxy=me._antProxy||{},Object.keys(he).forEach(Re=>{if(!(Re in me._antProxy)){const Je=me[Re];me._antProxy[Re]=Je,me[Re]=he[Re]}}),me}function Wo(me,he){return(0,E.useImperativeHandle)(me,()=>{const Re=he(),{nativeElement:Je}=Re;return typeof Proxy!="undefined"?new Proxy(Je,{get(gt,Ct){return Re[Ct]?Re[Ct]:Reflect.get(gt,Ct)}}):_i(Je,Re)})}var Qa=ee(83010),Ma=ee(48755),qo=ee(38406),ga=ee(83397),uo=ee(31756),Ea=ee(13783),qa=ee(85981),Na=ee(31709),Po=ee(29787),cl=ee(57700);function el(me){return he=>{const{prefixCls:Re,onExpand:Je,record:gt,expanded:Ct,expandable:Wt}=he,At=`${Re}-row-expand-icon`;return E.createElement("button",{type:"button",onClick:Jt=>{Je(gt,Jt),Jt.stopPropagation()},className:Ye()(At,{[`${At}-spaced`]:!Wt,[`${At}-expanded`]:Wt&&Ct,[`${At}-collapsed`]:Wt&&!Ct}),"aria-label":Ct?me.collapse:me.expand,"aria-expanded":Ct})}}var Jr=el;function fi(me){return(Re,Je)=>{const gt=Re.querySelector(`.${me}-container`);let Ct=Je;if(gt){const Wt=getComputedStyle(gt),At=parseInt(Wt.borderLeftWidth,10),Jt=parseInt(Wt.borderRightWidth,10);Ct=Je-At-Jt}return Ct}}const Vr=(me,he)=>"key"in me&&me.key!==void 0&&me.key!==null?me.key:me.dataIndex?Array.isArray(me.dataIndex)?me.dataIndex.join("."):me.dataIndex:he;function ri(me,he){return he?`${he}-${me}`:`${me}`}const $i=(me,he)=>typeof me=="function"?me(he):me,to=(me,he)=>{const Re=$i(me,he);return Object.prototype.toString.call(Re)==="[object Object]"?"":Re};var La={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"},ea=La,Ko=ee(7657),Co=function(he,Re){return E.createElement(Ko.Z,(0,We.Z)({},he,{ref:Re,icon:ea}))},Ia=E.forwardRef(Co),$a=Ia,sa=ee(9981),Fa=ee(40192);function Xa(me){const he=E.useRef(me),Re=(0,Fa.Z)();return[()=>he.current,Je=>{he.current=Je,Re()}]}var Oa=ee(7939),dl=ee(584),ms=ee(93041),Jl=ee(78857),za=ee(18287),tl=ee(47472),Pa=ee(49397),Ll=me=>{const{value:he,filterSearch:Re,tablePrefixCls:Je,locale:gt,onChange:Ct}=me;return Re?E.createElement("div",{className:`${Je}-filter-dropdown-search`},E.createElement(Pa.Z,{prefix:E.createElement(tl.Z,null),placeholder:gt.filterSearchPlaceholder,onChange:Ct,value:he,htmlSize:1,className:`${Je}-filter-dropdown-search-input`})):null},Ql=ee(10228);const ql=me=>{const{keyCode:he}=me;he===Ql.Z.ENTER&&me.stopPropagation()};var Bl=E.forwardRef((me,he)=>E.createElement("div",{className:me.className,onClick:Re=>Re.stopPropagation(),onKeyDown:ql,ref:he},me.children));function Za(me){let he=[];return(me||[]).forEach(Re=>{let{value:Je,children:gt}=Re;he.push(Je),gt&&(he=[].concat((0,en.Z)(he),(0,en.Z)(Za(gt))))}),he}function fl(me){return me.some(he=>{let{children:Re}=he;return Re})}function xl(me,he){return typeof he=="string"||typeof he=="number"?he==null?void 0:he.toString().toLowerCase().includes(me.trim().toLowerCase()):!1}function Rl(me){let{filters:he,prefixCls:Re,filteredKeys:Je,filterMultiple:gt,searchValue:Ct,filterSearch:Wt}=me;return he.map((At,Jt)=>{const Xt=String(At.value);if(At.children)return{key:Xt||Jt,label:At.text,popupClassName:`${Re}-dropdown-submenu`,children:Rl({filters:At.children,prefixCls:Re,filteredKeys:Je,filterMultiple:gt,searchValue:Ct,filterSearch:Wt})};const Sn=gt?wi.default:Di.ZP,dn={key:At.value!==void 0?Xt:Jt,label:E.createElement(E.Fragment,null,E.createElement(Sn,{checked:Je.includes(Xt)}),E.createElement("span",null,At.text))};return Ct.trim()?typeof Wt=="function"?Wt(Ct,At)?dn:null:xl(Ct,At.text)?dn:null:dn})}function hl(me){return me||[]}var es=me=>{var he,Re,Je,gt;const{tablePrefixCls:Ct,prefixCls:Wt,column:At,dropdownPrefixCls:Jt,columnKey:Xt,filterOnClose:Sn,filterMultiple:dn,filterMode:un="menu",filterSearch:rn=!1,filterState:nn,triggerFilter:Hn,locale:Tn,children:Kn,getPopupContainer:Yn,rootClassName:Vn}=me,{filterResetToDefaultFilteredValue:tr,defaultFilteredValue:ir,filterDropdownProps:br={},filterDropdownOpen:fr,filterDropdownVisible:li,onFilterDropdownVisibleChange:Ar,onFilterDropdownOpenChange:Tr}=At,[Ur,xr]=E.useState(!1),Cr=!!(nn&&(!((he=nn.filteredKeys)===null||he===void 0)&&he.length||nn.forceFiltered)),nr=Br=>{var Wr;xr(Br),(Wr=br.onOpenChange)===null||Wr===void 0||Wr.call(br,Br),Tr==null||Tr(Br),Ar==null||Ar(Br)},_n=(gt=(Je=(Re=br.open)!==null&&Re!==void 0?Re:fr)!==null&&Je!==void 0?Je:li)!==null&>!==void 0?gt:Ur,vr=nn==null?void 0:nn.filteredKeys,[Sr,$r]=Xa(hl(vr)),rr=Br=>{let{selectedKeys:Wr}=Br;$r(Wr)},pi=(Br,Wr)=>{let{node:Zi,checked:Vi}=Wr;rr(dn?{selectedKeys:Br}:{selectedKeys:Vi&&Zi.key?[Zi.key]:[]})};E.useEffect(()=>{Ur&&rr({selectedKeys:hl(vr)})},[vr]);const[vi,ho]=E.useState([]),io=Br=>{ho(Br)},[Ji,oo]=E.useState(""),mo=Br=>{const{value:Wr}=Br.target;oo(Wr)};E.useEffect(()=>{Ur||oo("")},[Ur]);const gi=Br=>{const Wr=Br!=null&&Br.length?Br:null;if(Wr===null&&(!nn||!nn.filteredKeys)||(0,Se.Z)(Wr,nn==null?void 0:nn.filteredKeys,!0))return null;Hn({column:At,key:Xt,filteredKeys:Wr})},Ci=()=>{nr(!1),gi(Sr())},vo=function(){let{confirm:Br,closeDropdown:Wr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Br&&gi([]),Wr&&nr(!1),oo(""),$r(tr?(ir||[]).map(Zi=>String(Zi)):[])},wo=function(){let{closeDropdown:Br}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Br&&nr(!1),gi(Sr())},Mr=(Br,Wr)=>{Wr.source==="trigger"&&(Br&&vr!==void 0&&$r(hl(vr)),nr(Br),!Br&&!At.filterDropdown&&Sn&&Ci())},ii=Ye()({[`${Jt}-menu-without-submenu`]:!fl(At.filters||[])}),Pr=Br=>{if(Br.target.checked){const Wr=Za(At==null?void 0:At.filters).map(Zi=>String(Zi));$r(Wr)}else $r([])},hr=Br=>{let{filters:Wr}=Br;return(Wr||[]).map((Zi,Vi)=>{const Wi=String(Zi.value),Lo={title:Zi.text,key:Zi.value!==void 0?Wi:String(Vi)};return Zi.children&&(Lo.children=hr({filters:Zi.children})),Lo})},Oi=Br=>{var Wr;return Object.assign(Object.assign({},Br),{text:Br.title,value:Br.key,children:((Wr=Br.children)===null||Wr===void 0?void 0:Wr.map(Zi=>Oi(Zi)))||[]})};let Fi;const{direction:no,renderEmpty:Xi}=E.useContext(Ma.E_);if(typeof At.filterDropdown=="function")Fi=At.filterDropdown({prefixCls:`${Jt}-custom`,setSelectedKeys:Br=>rr({selectedKeys:Br}),selectedKeys:Sr(),confirm:wo,clearFilters:vo,filters:At.filters,visible:_n,close:()=>{nr(!1)}});else if(At.filterDropdown)Fi=At.filterDropdown;else{const Br=Sr()||[],Wr=()=>{var Vi,Wi;const Lo=(Vi=Xi==null?void 0:Xi("Table.filter"))!==null&&Vi!==void 0?Vi:E.createElement(dl.Z,{image:dl.Z.PRESENTED_IMAGE_SIMPLE,description:Tn.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((At.filters||[]).length===0)return Lo;if(un==="tree")return E.createElement(E.Fragment,null,E.createElement(Ll,{filterSearch:rn,value:Ji,onChange:mo,tablePrefixCls:Ct,locale:Tn}),E.createElement("div",{className:`${Ct}-filter-dropdown-tree`},dn?E.createElement(wi.default,{checked:Br.length===Za(At.filters).length,indeterminate:Br.length>0&&Br.length<Za(At.filters).length,className:`${Ct}-filter-dropdown-checkall`,onChange:Pr},(Wi=Tn==null?void 0:Tn.filterCheckall)!==null&&Wi!==void 0?Wi:Tn==null?void 0:Tn.filterCheckAll):null,E.createElement(za.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:dn,checkStrictly:!dn,className:`${Jt}-menu`,onCheck:pi,checkedKeys:Br,selectedKeys:Br,showIcon:!1,treeData:hr({filters:At.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Ji.trim()?ao=>typeof rn=="function"?rn(Ji,Oi(ao)):xl(Ji,ao.title):void 0})));const yo=Rl({filters:At.filters||[],filterSearch:rn,prefixCls:Wt,filteredKeys:Sr(),filterMultiple:dn,searchValue:Ji}),ca=yo.every(ao=>ao===null);return E.createElement(E.Fragment,null,E.createElement(Ll,{filterSearch:rn,value:Ji,onChange:mo,tablePrefixCls:Ct,locale:Tn}),ca?Lo:E.createElement(ms.default,{selectable:!0,multiple:dn,prefixCls:`${Jt}-menu`,className:ii,onSelect:rr,onDeselect:rr,selectedKeys:Br,getPopupContainer:Yn,openKeys:vi,onOpenChange:io,items:yo}))},Zi=()=>tr?(0,Se.Z)((ir||[]).map(Vi=>String(Vi)),Br,!0):Br.length===0;Fi=E.createElement(E.Fragment,null,Wr(),E.createElement("div",{className:`${Wt}-dropdown-btns`},E.createElement(Oa.ZP,{type:"link",size:"small",disabled:Zi(),onClick:()=>vo()},Tn.filterReset),E.createElement(Oa.ZP,{type:"primary",size:"small",onClick:Ci},Tn.filterConfirm)))}At.filterDropdown&&(Fi=E.createElement(Jl.J,{selectable:void 0},Fi)),Fi=E.createElement(Bl,{className:`${Wt}-dropdown`},Fi);const go=()=>{let Br;return typeof At.filterIcon=="function"?Br=At.filterIcon(Cr):At.filterIcon?Br=At.filterIcon:Br=E.createElement($a,null),E.createElement("span",{role:"button",tabIndex:-1,className:Ye()(`${Wt}-trigger`,{active:Cr}),onClick:Wr=>{Wr.stopPropagation()}},Br)},ko=(0,sa.Z)({trigger:["click"],placement:no==="rtl"?"bottomLeft":"bottomRight",children:go(),getPopupContainer:Yn},Object.assign(Object.assign({},br),{rootClassName:Ye()(Vn,br.rootClassName),open:_n,onOpenChange:Mr,dropdownRender:()=>typeof(br==null?void 0:br.dropdownRender)=="function"?br.dropdownRender(Fi):Fi}));return E.createElement("div",{className:`${Wt}-column`},E.createElement("span",{className:`${Ct}-column-title`},Kn),E.createElement(Ai.Z,Object.assign({},ko)))};const nl=(me,he,Re)=>{let Je=[];return(me||[]).forEach((gt,Ct)=>{var Wt;const At=ri(Ct,Re);if(gt.filters||"filterDropdown"in gt||"onFilter"in gt)if("filteredValue"in gt){let Jt=gt.filteredValue;"filterDropdown"in gt||(Jt=(Wt=Jt==null?void 0:Jt.map(String))!==null&&Wt!==void 0?Wt:Jt),Je.push({column:gt,key:Vr(gt,At),filteredKeys:Jt,forceFiltered:gt.filtered})}else Je.push({column:gt,key:Vr(gt,At),filteredKeys:he&>.defaultFilteredValue?gt.defaultFilteredValue:void 0,forceFiltered:gt.filtered});"children"in gt&&(Je=[].concat((0,en.Z)(Je),(0,en.Z)(nl(gt.children,he,At))))}),Je};function ta(me,he,Re,Je,gt,Ct,Wt,At,Jt){return Re.map((Xt,Sn)=>{const dn=ri(Sn,At),{filterOnClose:un=!0,filterMultiple:rn=!0,filterMode:nn,filterSearch:Hn}=Xt;let Tn=Xt;if(Tn.filters||Tn.filterDropdown){const Kn=Vr(Tn,dn),Yn=Je.find(Vn=>{let{key:tr}=Vn;return Kn===tr});Tn=Object.assign(Object.assign({},Tn),{title:Vn=>E.createElement(es,{tablePrefixCls:me,prefixCls:`${me}-filter`,dropdownPrefixCls:he,column:Tn,columnKey:Kn,filterState:Yn,filterOnClose:un,filterMultiple:rn,filterMode:nn,filterSearch:Hn,triggerFilter:Ct,locale:gt,getPopupContainer:Wt,rootClassName:Jt},$i(Xt.title,Vn))})}return"children"in Tn&&(Tn=Object.assign(Object.assign({},Tn),{children:ta(me,he,Tn.children,Je,gt,Ct,Wt,dn,Jt)})),Tn})}const Bi=me=>{const he={};return me.forEach(Re=>{let{key:Je,filteredKeys:gt,column:Ct}=Re;const Wt=Je,{filters:At,filterDropdown:Jt}=Ct;if(Jt)he[Wt]=gt||null;else if(Array.isArray(gt)){const Xt=Za(At);he[Wt]=Xt.filter(Sn=>gt.includes(String(Sn)))}else he[Wt]=null}),he},hi=(me,he,Re)=>he.reduce((gt,Ct)=>{const{column:{onFilter:Wt,filters:At},filteredKeys:Jt}=Ct;return Wt&&Jt&&Jt.length?gt.map(Xt=>Object.assign({},Xt)).filter(Xt=>Jt.some(Sn=>{const dn=Za(At),un=dn.findIndex(nn=>String(nn)===String(Sn)),rn=un!==-1?dn[un]:Sn;return Xt[Re]&&(Xt[Re]=hi(Xt[Re],he,Re)),Wt(rn,Xt)})):gt},me),$o=me=>me.flatMap(he=>"children"in he?[he].concat((0,en.Z)($o(he.children||[]))):[he]);var So=me=>{const{prefixCls:he,dropdownPrefixCls:Re,mergedColumns:Je,onFilterChange:gt,getPopupContainer:Ct,locale:Wt,rootClassName:At}=me,Jt=(0,xi.ln)("Table"),Xt=E.useMemo(()=>$o(Je||[]),[Je]),[Sn,dn]=E.useState(()=>nl(Xt,!0)),un=E.useMemo(()=>{const Tn=nl(Xt,!1);if(Tn.length===0)return Tn;let Kn=!0,Yn=!0;if(Tn.forEach(Vn=>{let{filteredKeys:tr}=Vn;tr!==void 0?Kn=!1:Yn=!1}),Kn){const Vn=(Xt||[]).map((tr,ir)=>Vr(tr,ri(ir)));return Sn.filter(tr=>{let{key:ir}=tr;return Vn.includes(ir)}).map(tr=>{const ir=Xt[Vn.findIndex(br=>br===tr.key)];return Object.assign(Object.assign({},tr),{column:Object.assign(Object.assign({},tr.column),ir),forceFiltered:ir.filtered})})}return Tn},[Xt,Sn]),rn=E.useMemo(()=>Bi(un),[un]),nn=Tn=>{const Kn=un.filter(Yn=>{let{key:Vn}=Yn;return Vn!==Tn.key});Kn.push(Tn),dn(Kn),gt(Bi(Kn),Kn)};return[Tn=>ta(he,Re,Tn,un,Wt,nn,Ct,void 0,At),un,rn]},Ba=(me,he,Re)=>{const Je=E.useRef({});function gt(Ct){var Wt;if(!Je.current||Je.current.data!==me||Je.current.childrenColumnName!==he||Je.current.getRowKey!==Re){let Jt=function(Xt){Xt.forEach((Sn,dn)=>{const un=Re(Sn,dn);At.set(un,Sn),Sn&&typeof Sn=="object"&&he in Sn&&Jt(Sn[he]||[])})};const At=new Map;Jt(me),Je.current={data:me,childrenColumnName:he,kvMap:At,getRowKey:Re}}return(Wt=Je.current.kvMap)===null||Wt===void 0?void 0:Wt.get(Ct)}return[gt]},ka=function(me,he){var Re={};for(var Je in me)Object.prototype.hasOwnProperty.call(me,Je)&&he.indexOf(Je)<0&&(Re[Je]=me[Je]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Je=Object.getOwnPropertySymbols(me);gt<Je.length;gt++)he.indexOf(Je[gt])<0&&Object.prototype.propertyIsEnumerable.call(me,Je[gt])&&(Re[Je[gt]]=me[Je[gt]]);return Re};const Ha=10;function pa(me,he){const Re={current:me.current,pageSize:me.pageSize};return Object.keys(he&&typeof he=="object"?he:{}).forEach(gt=>{const Ct=me[gt];typeof Ct!="function"&&(Re[gt]=Ct)}),Re}function ma(me,he,Re){const Je=Re&&typeof Re=="object"?Re:{},{total:gt=0}=Je,Ct=ka(Je,["total"]),[Wt,At]=(0,E.useState)(()=>({current:"defaultCurrent"in Ct?Ct.defaultCurrent:1,pageSize:"defaultPageSize"in Ct?Ct.defaultPageSize:Ha})),Jt=(0,sa.Z)(Wt,Ct,{total:gt>0?gt:me}),Xt=Math.ceil((gt||me)/Jt.pageSize);Jt.current>Xt&&(Jt.current=Xt||1);const Sn=(un,rn)=>{At({current:un!=null?un:1,pageSize:rn||Jt.pageSize})},dn=(un,rn)=>{var nn;Re&&((nn=Re.onChange)===null||nn===void 0||nn.call(Re,un,rn)),Sn(un,rn),he(un,rn||(Jt==null?void 0:Jt.pageSize))};return Re===!1?[{},()=>{}]:[Object.assign(Object.assign({},Jt),{onChange:dn}),Sn]}var Ra=ma,rl=ee(89489),gs=ee(59477),ys=ee(25399);const Cl="ascend",Ya="descend",ja=me=>typeof me.sorter=="object"&&typeof me.sorter.multiple=="number"?me.sorter.multiple:!1,ra=me=>typeof me=="function"?me:me&&typeof me=="object"&&me.compare?me.compare:!1,il=(me,he)=>he?me[me.indexOf(he)+1]:me[0],Wa=(me,he,Re)=>{let Je=[];const gt=(Ct,Wt)=>{Je.push({column:Ct,key:Vr(Ct,Wt),multiplePriority:ja(Ct),sortOrder:Ct.sortOrder})};return(me||[]).forEach((Ct,Wt)=>{const At=ri(Wt,Re);Ct.children?("sortOrder"in Ct&>(Ct,At),Je=[].concat((0,en.Z)(Je),(0,en.Z)(Wa(Ct.children,he,At)))):Ct.sorter&&("sortOrder"in Ct?gt(Ct,At):he&&Ct.defaultSortOrder&&Je.push({column:Ct,key:Vr(Ct,At),multiplePriority:ja(Ct),sortOrder:Ct.defaultSortOrder}))}),Je},$l=(me,he,Re,Je,gt,Ct,Wt,At)=>(he||[]).map((Xt,Sn)=>{const dn=ri(Sn,At);let un=Xt;if(un.sorter){const rn=un.sortDirections||gt,nn=un.showSorterTooltip===void 0?Wt:un.showSorterTooltip,Hn=Vr(un,dn),Tn=Re.find(Ar=>{let{key:Tr}=Ar;return Tr===Hn}),Kn=Tn?Tn.sortOrder:null,Yn=il(rn,Kn);let Vn;if(Xt.sortIcon)Vn=Xt.sortIcon({sortOrder:Kn});else{const Ar=rn.includes(Cl)&&E.createElement(gs.Z,{className:Ye()(`${me}-column-sorter-up`,{active:Kn===Cl})}),Tr=rn.includes(Ya)&&E.createElement(rl.Z,{className:Ye()(`${me}-column-sorter-down`,{active:Kn===Ya})});Vn=E.createElement("span",{className:Ye()(`${me}-column-sorter`,{[`${me}-column-sorter-full`]:!!(Ar&&Tr)})},E.createElement("span",{className:`${me}-column-sorter-inner`,"aria-hidden":"true"},Ar,Tr))}const{cancelSort:tr,triggerAsc:ir,triggerDesc:br}=Ct||{};let fr=tr;Yn===Ya?fr=br:Yn===Cl&&(fr=ir);const li=typeof nn=="object"?Object.assign({title:fr},nn):{title:fr};un=Object.assign(Object.assign({},un),{className:Ye()(un.className,{[`${me}-column-sort`]:Kn}),title:Ar=>{const Tr=`${me}-column-sorters`,Ur=E.createElement("span",{className:`${me}-column-title`},$i(Xt.title,Ar)),xr=E.createElement("div",{className:Tr},Ur,Vn);return nn?typeof nn!="boolean"&&(nn==null?void 0:nn.target)==="sorter-icon"?E.createElement("div",{className:`${Tr} ${me}-column-sorters-tooltip-target-sorter`},Ur,E.createElement(ys.Z,Object.assign({},li),Vn)):E.createElement(ys.Z,Object.assign({},li),xr):xr},onHeaderCell:Ar=>{var Tr;const Ur=((Tr=Xt.onHeaderCell)===null||Tr===void 0?void 0:Tr.call(Xt,Ar))||{},xr=Ur.onClick,Cr=Ur.onKeyDown;Ur.onClick=vr=>{Je({column:Xt,key:Hn,sortOrder:Yn,multiplePriority:ja(Xt)}),xr==null||xr(vr)},Ur.onKeyDown=vr=>{vr.keyCode===Ql.Z.ENTER&&(Je({column:Xt,key:Hn,sortOrder:Yn,multiplePriority:ja(Xt)}),Cr==null||Cr(vr))};const nr=to(Xt.title,{}),_n=nr==null?void 0:nr.toString();return Kn&&(Ur["aria-sort"]=Kn==="ascend"?"ascending":"descending"),Ur["aria-label"]=_n||"",Ur.className=Ye()(Ur.className,`${me}-column-has-sorters`),Ur.tabIndex=0,Xt.ellipsis&&(Ur.title=(nr!=null?nr:"").toString()),Ur}})}return"children"in un&&(un=Object.assign(Object.assign({},un),{children:$l(me,un.children,Re,Je,gt,Ct,Wt,dn)})),un}),Hs=me=>{const{column:he,sortOrder:Re}=me;return{column:he,order:Re,field:he.dataIndex,columnKey:he.key}},bs=me=>{const he=me.filter(Re=>{let{sortOrder:Je}=Re;return Je}).map(Hs);if(he.length===0&&me.length){const Re=me.length-1;return Object.assign(Object.assign({},Hs(me[Re])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return he.length<=1?he[0]||{}:he},pl=(me,he,Re)=>{const Je=he.slice().sort((Wt,At)=>At.multiplePriority-Wt.multiplePriority),gt=me.slice(),Ct=Je.filter(Wt=>{let{column:{sorter:At},sortOrder:Jt}=Wt;return ra(At)&&Jt});return Ct.length?gt.sort((Wt,At)=>{for(let Jt=0;Jt<Ct.length;Jt+=1){const Xt=Ct[Jt],{column:{sorter:Sn},sortOrder:dn}=Xt,un=ra(Sn);if(un&&dn){const rn=un(Wt,At,dn);if(rn!==0)return dn===Cl?rn:-rn}}return 0}).map(Wt=>{const At=Wt[Re];return At?Object.assign(Object.assign({},Wt),{[Re]:pl(At,he,Re)}):Wt}):gt};var js=me=>{const{prefixCls:he,mergedColumns:Re,sortDirections:Je,tableLocale:gt,showSorterTooltip:Ct,onSorterChange:Wt}=me,[At,Jt]=E.useState(Wa(Re,!0)),Xt=(Hn,Tn)=>{const Kn=[];return Hn.forEach((Yn,Vn)=>{const tr=ri(Vn,Tn);if(Kn.push(Vr(Yn,tr)),Array.isArray(Yn.children)){const ir=Xt(Yn.children,tr);Kn.push.apply(Kn,(0,en.Z)(ir))}}),Kn},Sn=E.useMemo(()=>{let Hn=!0;const Tn=Wa(Re,!1);if(!Tn.length){const tr=Xt(Re);return At.filter(ir=>{let{key:br}=ir;return tr.includes(br)})}const Kn=[];function Yn(tr){Hn?Kn.push(tr):Kn.push(Object.assign(Object.assign({},tr),{sortOrder:null}))}let Vn=null;return Tn.forEach(tr=>{Vn===null?(Yn(tr),tr.sortOrder&&(tr.multiplePriority===!1?Hn=!1:Vn=!0)):(Vn&&tr.multiplePriority!==!1||(Hn=!1),Yn(tr))}),Kn},[Re,At]),dn=E.useMemo(()=>{var Hn,Tn;const Kn=Sn.map(Yn=>{let{column:Vn,sortOrder:tr}=Yn;return{column:Vn,order:tr}});return{sortColumns:Kn,sortColumn:(Hn=Kn[0])===null||Hn===void 0?void 0:Hn.column,sortOrder:(Tn=Kn[0])===null||Tn===void 0?void 0:Tn.order}},[Sn]),un=Hn=>{let Tn;Hn.multiplePriority===!1||!Sn.length||Sn[0].multiplePriority===!1?Tn=[Hn]:Tn=[].concat((0,en.Z)(Sn.filter(Kn=>{let{key:Yn}=Kn;return Yn!==Hn.key})),[Hn]),Jt(Tn),Wt(bs(Tn),Tn)};return[Hn=>$l(he,Hn,Sn,un,Je,gt,Ct),Sn,dn,()=>bs(Sn)]};const Fl=(me,he)=>me.map(Je=>{const gt=Object.assign({},Je);return gt.title=$i(Je.title,he),"children"in gt&&(gt.children=Fl(gt.children,he)),gt});var xs=me=>[E.useCallback(Re=>Fl(Re,me),[me])],Ws=oi((me,he)=>{const{_renderTimes:Re}=me,{_renderTimes:Je}=he;return Re!==Je}),Sl=Ln((me,he)=>{const{_renderTimes:Re}=me,{_renderTimes:Je}=he;return Re!==Je}),Gr=ee(36237),wl=ee(17835),ol=ee(63356),ou=ee(16931),au=ee(51636),Cs=me=>{const{componentCls:he,lineWidth:Re,lineType:Je,tableBorderColor:gt,tableHeaderBg:Ct,tablePaddingVertical:Wt,tablePaddingHorizontal:At,calc:Jt}=me,Xt=`${(0,Gr.unit)(Re)} ${Je} ${gt}`,Sn=(dn,un,rn)=>({[`&${he}-${dn}`]:{[`> ${he}-container`]:{[`> ${he}-content, > ${he}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${he}-expanded-row-fixed`]:{margin:`${(0,Gr.unit)(Jt(un).mul(-1).equal())}
|
|
|
${(0,Gr.unit)(Jt(Jt(rn).add(Re)).mul(-1).equal())}`}}}}}});return{[`${he}-wrapper`]:{[`${he}${he}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${he}-title`]:{border:Xt,borderBottom:0},[`> ${he}-container`]:{borderInlineStart:Xt,borderTop:Xt,[`
|
|
|
> ${he}-content,
|
|
|
> ${he}-header,
|
|
|
> ${he}-body,
|
|
|
> ${he}-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:Xt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Xt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${he}-cell-fix-right-first::after`]:{borderInlineEnd:Xt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${he}-expanded-row-fixed`]:{margin:`${(0,Gr.unit)(Jt(Wt).mul(-1).equal())} ${(0,Gr.unit)(Jt(Jt(At).add(Re)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Re,bottom:0,borderInlineEnd:Xt,content:'""'}}}}}},[`&${he}-scroll-horizontal`]:{[`> ${he}-container > ${he}-body`]:{"> table > tbody":{[`
|
|
|
> tr${he}-expanded-row,
|
|
|
> tr${he}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Sn("middle",me.tablePaddingVerticalMiddle,me.tablePaddingHorizontalMiddle)),Sn("small",me.tablePaddingVerticalSmall,me.tablePaddingHorizontalSmall)),{[`> ${he}-footer`]:{border:Xt,borderTop:0}}),[`${he}-cell`]:{[`${he}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,Gr.unit)(Re)} 0 ${(0,Gr.unit)(Re)} ${Ct}`}},[`${he}-bordered ${he}-cell-scrollbar`]:{borderInlineEnd:Xt}}}},El=me=>{const{componentCls:he}=me;return{[`${he}-wrapper`]:{[`${he}-cell-ellipsis`]:Object.assign(Object.assign({},ol.vS),{wordBreak:"keep-all",[`
|
|
|
&${he}-cell-fix-left-last,
|
|
|
&${he}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${he}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${he}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},lu=me=>{const{componentCls:he}=me;return{[`${he}-wrapper`]:{[`${he}-tbody > tr${he}-placeholder`]:{textAlign:"center",color:me.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:me.colorBgContainer}}}}},Gs=me=>{const{componentCls:he,antCls:Re,motionDurationSlow:Je,lineWidth:gt,paddingXS:Ct,lineType:Wt,tableBorderColor:At,tableExpandIconBg:Jt,tableExpandColumnWidth:Xt,borderRadius:Sn,tablePaddingVertical:dn,tablePaddingHorizontal:un,tableExpandedRowBg:rn,paddingXXS:nn,expandIconMarginTop:Hn,expandIconSize:Tn,expandIconHalfInner:Kn,expandIconScale:Yn,calc:Vn}=me,tr=`${(0,Gr.unit)(gt)} ${Wt} ${At}`,ir=Vn(nn).sub(gt).equal();return{[`${he}-wrapper`]:{[`${he}-expand-icon-col`]:{width:Xt},[`${he}-row-expand-icon-cell`]:{textAlign:"center",[`${he}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${he}-row-indent`]:{height:1,float:"left"},[`${he}-row-expand-icon`]:Object.assign(Object.assign({},(0,ol.Nd)(me)),{position:"relative",float:"left",width:Tn,height:Tn,color:"inherit",lineHeight:(0,Gr.unit)(Tn),background:Jt,border:tr,borderRadius:Sn,transform:`scale(${Yn})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Je} ease-out`,content:'""'},"&::before":{top:Kn,insetInlineEnd:ir,insetInlineStart:ir,height:gt},"&::after":{top:ir,bottom:ir,insetInlineStart:Kn,width:gt,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"}}),[`${he}-row-indent + ${he}-row-expand-icon`]:{marginTop:Hn,marginInlineEnd:Ct},[`tr${he}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:rn}},[`${Re}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${he}-expanded-row-fixed`]:{position:"relative",margin:`${(0,Gr.unit)(Vn(dn).mul(-1).equal())} ${(0,Gr.unit)(Vn(un).mul(-1).equal())}`,padding:`${(0,Gr.unit)(dn)} ${(0,Gr.unit)(un)}`}}}},Us=me=>{const{componentCls:he,antCls:Re,iconCls:Je,tableFilterDropdownWidth:gt,tableFilterDropdownSearchWidth:Ct,paddingXXS:Wt,paddingXS:At,colorText:Jt,lineWidth:Xt,lineType:Sn,tableBorderColor:dn,headerIconColor:un,fontSizeSM:rn,tablePaddingHorizontal:nn,borderRadius:Hn,motionDurationSlow:Tn,colorTextDescription:Kn,colorPrimary:Yn,tableHeaderFilterActiveBg:Vn,colorTextDisabled:tr,tableFilterDropdownBg:ir,tableFilterDropdownHeight:br,controlItemBgHover:fr,controlItemBgActive:li,boxShadowSecondary:Ar,filterDropdownMenuBg:Tr,calc:Ur}=me,xr=`${Re}-dropdown`,Cr=`${he}-filter-dropdown`,nr=`${Re}-tree`,_n=`${(0,Gr.unit)(Xt)} ${Sn} ${dn}`;return[{[`${he}-wrapper`]:{[`${he}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${he}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:Ur(Wt).mul(-1).equal(),marginInline:`${(0,Gr.unit)(Wt)} ${(0,Gr.unit)(Ur(nn).div(2).mul(-1).equal())}`,padding:`0 ${(0,Gr.unit)(Wt)}`,color:un,fontSize:rn,borderRadius:Hn,cursor:"pointer",transition:`all ${Tn}`,"&:hover":{color:Kn,background:Vn},"&.active":{color:Yn}}}},{[`${Re}-dropdown`]:{[Cr]:Object.assign(Object.assign({},(0,ol.Wf)(me)),{minWidth:gt,backgroundColor:ir,borderRadius:Hn,boxShadow:Ar,overflow:"hidden",[`${xr}-menu`]:{maxHeight:br,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Tr,"&:empty::after":{display:"block",padding:`${(0,Gr.unit)(At)} 0`,color:tr,fontSize:rn,textAlign:"center",content:'"Not Found"'}},[`${Cr}-tree`]:{paddingBlock:`${(0,Gr.unit)(At)} 0`,paddingInline:At,[nr]:{padding:0},[`${nr}-treenode ${nr}-node-content-wrapper:hover`]:{backgroundColor:fr},[`${nr}-treenode-checkbox-checked ${nr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:li}}},[`${Cr}-search`]:{padding:At,borderBottom:_n,"&-input":{input:{minWidth:Ct},[Je]:{color:tr}}},[`${Cr}-checkall`]:{width:"100%",marginBottom:Wt,marginInlineStart:Wt},[`${Cr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,Gr.unit)(Ur(At).sub(Xt).equal())} ${(0,Gr.unit)(At)}`,overflow:"hidden",borderTop:_n}})}},{[`${Re}-dropdown ${Cr}, ${Cr}-submenu`]:{[`${Re}-checkbox-wrapper + span`]:{paddingInlineStart:At,color:Jt},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},zl=me=>{const{componentCls:he,lineWidth:Re,colorSplit:Je,motionDurationSlow:gt,zIndexTableFixed:Ct,tableBg:Wt,zIndexTableSticky:At,calc:Jt}=me,Xt=Je;return{[`${he}-wrapper`]:{[`
|
|
|
${he}-cell-fix-left,
|
|
|
${he}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:Ct,background:Wt},[`
|
|
|
${he}-cell-fix-left-first::after,
|
|
|
${he}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:Jt(Re).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${gt}`,content:'""',pointerEvents:"none"},[`${he}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${he}-cell-fix-right-first::after,
|
|
|
${he}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:Jt(Re).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${gt}`,content:'""',pointerEvents:"none"},[`${he}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Jt(At).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${gt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${he}-ping-left`]:{[`&:not(${he}-has-fix-left) ${he}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${Xt}`},[`
|
|
|
${he}-cell-fix-left-first::after,
|
|
|
${he}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Xt}`},[`${he}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${he}-ping-right`]:{[`&:not(${he}-has-fix-right) ${he}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${Xt}`},[`
|
|
|
${he}-cell-fix-right-first::after,
|
|
|
${he}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Xt}`}},[`${he}-fixed-column-gapped`]:{[`
|
|
|
${he}-cell-fix-left-first::after,
|
|
|
${he}-cell-fix-left-last::after,
|
|
|
${he}-cell-fix-right-first::after,
|
|
|
${he}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:"none"}}}}},Zl=me=>{const{componentCls:he,antCls:Re,margin:Je}=me;return{[`${he}-wrapper`]:{[`${he}-pagination${Re}-pagination`]:{margin:`${(0,Gr.unit)(Je)} 0`},[`${he}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:me.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Xs=me=>{const{componentCls:he,tableRadius:Re}=me;return{[`${he}-wrapper`]:{[he]:{[`${he}-title, ${he}-header`]:{borderRadius:`${(0,Gr.unit)(Re)} ${(0,Gr.unit)(Re)} 0 0`},[`${he}-title + ${he}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${he}-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:Re,borderStartEndRadius:Re,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Re},"> *:last-child":{borderStartEndRadius:Re}}},"&-footer":{borderRadius:`0 0 ${(0,Gr.unit)(Re)} ${(0,Gr.unit)(Re)}`}}}}},Ys=me=>{const{componentCls:he}=me;return{[`${he}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${he}-pagination-left`]:{justifyContent:"flex-end"},[`${he}-pagination-right`]:{justifyContent:"flex-start"},[`${he}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${he}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${he}-row-indent`]:{float:"right"}}}}},ml=me=>{const{componentCls:he,antCls:Re,iconCls:Je,fontSizeIcon:gt,padding:Ct,paddingXS:Wt,headerIconColor:At,headerIconHoverColor:Jt,tableSelectionColumnWidth:Xt,tableSelectedRowBg:Sn,tableSelectedRowHoverBg:dn,tableRowHoverBg:un,tablePaddingHorizontal:rn,calc:nn}=me;return{[`${he}-wrapper`]:{[`${he}-selection-col`]:{width:Xt,[`&${he}-selection-col-with-dropdown`]:{width:nn(Xt).add(gt).add(nn(Ct).div(4)).equal()}},[`${he}-bordered ${he}-selection-col`]:{width:nn(Xt).add(nn(Wt).mul(2)).equal(),[`&${he}-selection-col-with-dropdown`]:{width:nn(Xt).add(gt).add(nn(Ct).div(4)).add(nn(Wt).mul(2)).equal()}},[`
|
|
|
table tr th${he}-selection-column,
|
|
|
table tr td${he}-selection-column,
|
|
|
${he}-selection-column
|
|
|
`]:{paddingInlineEnd:me.paddingXS,paddingInlineStart:me.paddingXS,textAlign:"center",[`${Re}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${he}-selection-column${he}-cell-fix-left`]:{zIndex:nn(me.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${he}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${he}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${he}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,Gr.unit)(nn(rn).div(4).equal()),[Je]:{color:At,fontSize:gt,verticalAlign:"baseline","&:hover":{color:Jt}}},[`${he}-tbody`]:{[`${he}-row`]:{[`&${he}-row-selected`]:{[`> ${he}-cell`]:{background:Sn,"&-row-hover":{background:dn}}},[`> ${he}-cell-row-hover`]:{background:un}}}}}},uu=me=>{const{componentCls:he,tableExpandColumnWidth:Re,calc:Je}=me,gt=(Ct,Wt,At,Jt)=>({[`${he}${he}-${Ct}`]:{fontSize:Jt,[`
|
|
|
${he}-title,
|
|
|
${he}-footer,
|
|
|
${he}-cell,
|
|
|
${he}-thead > tr > th,
|
|
|
${he}-tbody > tr > th,
|
|
|
${he}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${(0,Gr.unit)(Wt)} ${(0,Gr.unit)(At)}`},[`${he}-filter-trigger`]:{marginInlineEnd:(0,Gr.unit)(Je(At).div(2).mul(-1).equal())},[`${he}-expanded-row-fixed`]:{margin:`${(0,Gr.unit)(Je(Wt).mul(-1).equal())} ${(0,Gr.unit)(Je(At).mul(-1).equal())}`},[`${he}-tbody`]:{[`${he}-wrapper:only-child ${he}`]:{marginBlock:(0,Gr.unit)(Je(Wt).mul(-1).equal()),marginInline:`${(0,Gr.unit)(Je(Re).sub(At).equal())} ${(0,Gr.unit)(Je(At).mul(-1).equal())}`}},[`${he}-selection-extra`]:{paddingInlineStart:(0,Gr.unit)(Je(At).div(4).equal())}}});return{[`${he}-wrapper`]:Object.assign(Object.assign({},gt("middle",me.tablePaddingVerticalMiddle,me.tablePaddingHorizontalMiddle,me.tableFontSizeMiddle)),gt("small",me.tablePaddingVerticalSmall,me.tablePaddingHorizontalSmall,me.tableFontSizeSmall))}},cu=me=>{const{componentCls:he,marginXXS:Re,fontSizeIcon:Je,headerIconColor:gt,headerIconHoverColor:Ct}=me;return{[`${he}-wrapper`]:{[`${he}-thead th${he}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${me.motionDurationSlow}, left 0s`,"&:hover":{background:me.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:me.colorPrimary},[`
|
|
|
&${he}-cell-fix-left:hover,
|
|
|
&${he}-cell-fix-right:hover
|
|
|
`]:{background:me.tableFixedHeaderSortActiveBg}},[`${he}-thead th${he}-column-sort`]:{background:me.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${he}-column-sort`]:{background:me.tableBodySortBg},[`${he}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${he}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${he}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${he}-column-sorter`]:{marginInlineStart:Re,color:gt,fontSize:0,transition:`color ${me.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Je,"&.active":{color:me.colorPrimary}},[`${he}-column-sorter-up + ${he}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${he}-column-sorters:hover ${he}-column-sorter`]:{color:Ct}}}},du=me=>{const{componentCls:he,opacityLoading:Re,tableScrollThumbBg:Je,tableScrollThumbBgHover:gt,tableScrollThumbSize:Ct,tableScrollBg:Wt,zIndexTableSticky:At,stickyScrollBarBorderRadius:Jt,lineWidth:Xt,lineType:Sn,tableBorderColor:dn}=me,un=`${(0,Gr.unit)(Xt)} ${Sn} ${dn}`;return{[`${he}-wrapper`]:{[`${he}-sticky`]:{"&-holder":{position:"sticky",zIndex:At,background:me.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,Gr.unit)(Ct)} !important`,zIndex:At,display:"flex",alignItems:"center",background:Wt,borderTop:un,opacity:Re,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Ct,backgroundColor:Je,borderRadius:Jt,transition:`all ${me.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:gt}}}}}}},ua=me=>{const{componentCls:he,lineWidth:Re,tableBorderColor:Je,calc:gt}=me,Ct=`${(0,Gr.unit)(Re)} ${me.lineType} ${Je}`;return{[`${he}-wrapper`]:{[`${he}-summary`]:{position:"relative",zIndex:me.zIndexTableFixed,background:me.tableBg,"> tr":{"> th, > td":{borderBottom:Ct}}},[`div${he}-summary`]:{boxShadow:`0 ${(0,Gr.unit)(gt(Re).mul(-1).equal())} 0 ${Je}`}}}},ia=me=>{const{componentCls:he,motionDurationMid:Re,lineWidth:Je,lineType:gt,tableBorderColor:Ct,calc:Wt}=me,At=`${(0,Gr.unit)(Je)} ${gt} ${Ct}`,Jt=`${he}-expanded-row-cell`;return{[`${he}-wrapper`]:{[`${he}-tbody-virtual`]:{[`${he}-tbody-virtual-holder-inner`]:{[`
|
|
|
& > ${he}-row,
|
|
|
& > div:not(${he}-row) > ${he}-row
|
|
|
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${he}-cell`]:{borderBottom:At,transition:`background ${Re}`},[`${he}-expanded-row`]:{[`${Jt}${Jt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,Gr.unit)(Je)})`,borderInlineEnd:"none"}}},[`${he}-bordered`]:{[`${he}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:At,position:"absolute"},[`${he}-cell`]:{borderInlineEnd:At,[`&${he}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:Wt(Je).mul(-1).equal(),borderInlineStart:At}}},[`&${he}-virtual`]:{[`${he}-placeholder ${he}-cell`]:{borderInlineEnd:At,borderBottom:At}}}}}};const zo=me=>{const{componentCls:he,fontWeightStrong:Re,tablePaddingVertical:Je,tablePaddingHorizontal:gt,tableExpandColumnWidth:Ct,lineWidth:Wt,lineType:At,tableBorderColor:Jt,tableFontSize:Xt,tableBg:Sn,tableRadius:dn,tableHeaderTextColor:un,motionDurationMid:rn,tableHeaderBg:nn,tableHeaderCellSplitColor:Hn,tableFooterTextColor:Tn,tableFooterBg:Kn,calc:Yn}=me,Vn=`${(0,Gr.unit)(Wt)} ${At} ${Jt}`;return{[`${he}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ol.dF)()),{[he]:Object.assign(Object.assign({},(0,ol.Wf)(me)),{fontSize:Xt,background:Sn,borderRadius:`${(0,Gr.unit)(dn)} ${(0,Gr.unit)(dn)} 0 0`,scrollbarColor:`${me.tableScrollThumbBg} ${me.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,Gr.unit)(dn)} ${(0,Gr.unit)(dn)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${he}-cell,
|
|
|
${he}-thead > tr > th,
|
|
|
${he}-tbody > tr > th,
|
|
|
${he}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${(0,Gr.unit)(Je)} ${(0,Gr.unit)(gt)}`,overflowWrap:"break-word"},[`${he}-title`]:{padding:`${(0,Gr.unit)(Je)} ${(0,Gr.unit)(gt)}`},[`${he}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:un,fontWeight:Re,textAlign:"start",background:nn,borderBottom:Vn,transition:`background ${rn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${he}-selection-column):not(${he}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Hn,transform:"translateY(-50%)",transition:`background-color ${rn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${he}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${rn}, border-color ${rn}`,borderBottom:Vn,[`
|
|
|
> ${he}-wrapper:only-child,
|
|
|
> ${he}-expanded-row-fixed > ${he}-wrapper:only-child
|
|
|
`]:{[he]:{marginBlock:(0,Gr.unit)(Yn(Je).mul(-1).equal()),marginInline:`${(0,Gr.unit)(Yn(Ct).sub(gt).equal())}
|
|
|
${(0,Gr.unit)(Yn(gt).mul(-1).equal())}`,[`${he}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:un,fontWeight:Re,textAlign:"start",background:nn,borderBottom:Vn,transition:`background ${rn} ease`}}},[`${he}-footer`]:{padding:`${(0,Gr.unit)(Je)} ${(0,Gr.unit)(gt)}`,color:Tn,background:Kn}})}},jl=me=>{const{colorFillAlter:he,colorBgContainer:Re,colorTextHeading:Je,colorFillSecondary:gt,colorFillContent:Ct,controlItemBgActive:Wt,controlItemBgActiveHover:At,padding:Jt,paddingSM:Xt,paddingXS:Sn,colorBorderSecondary:dn,borderRadiusLG:un,controlHeight:rn,colorTextPlaceholder:nn,fontSize:Hn,fontSizeSM:Tn,lineHeight:Kn,lineWidth:Yn,colorIcon:Vn,colorIconHover:tr,opacityLoading:ir,controlInteractiveSize:br}=me,fr=new wl.FastColor(gt).onBackground(Re).toHexString(),li=new wl.FastColor(Ct).onBackground(Re).toHexString(),Ar=new wl.FastColor(he).onBackground(Re).toHexString(),Tr=new wl.FastColor(Vn),Ur=new wl.FastColor(tr),xr=br/2-Yn,Cr=xr*2+Yn*3;return{headerBg:Ar,headerColor:Je,headerSortActiveBg:fr,headerSortHoverBg:li,bodySortBg:Ar,rowHoverBg:Ar,rowSelectedBg:Wt,rowSelectedHoverBg:At,rowExpandedBg:he,cellPaddingBlock:Jt,cellPaddingInline:Jt,cellPaddingBlockMD:Xt,cellPaddingInlineMD:Sn,cellPaddingBlockSM:Sn,cellPaddingInlineSM:Sn,borderColor:dn,headerBorderRadius:un,footerBg:Ar,footerColor:Je,cellFontSize:Hn,cellFontSizeMD:Hn,cellFontSizeSM:Hn,headerSplitColor:dn,fixedHeaderSortActiveBg:fr,headerFilterHoverBg:Ct,filterDropdownMenuBg:Re,filterDropdownBg:Re,expandIconBg:Re,selectionColumnWidth:rn,stickyScrollBarBg:nn,stickyScrollBarBorderRadius:100,expandIconMarginTop:(Hn*Kn-Yn*3)/2-Math.ceil((Tn*1.4-Yn*3)/2),headerIconColor:Tr.clone().setA(Tr.a*ir).toRgbString(),headerIconHoverColor:Ur.clone().setA(Ur.a*ir).toRgbString(),expandIconHalfInner:xr,expandIconSize:Cr,expandIconScale:br/Cr}},_s=2;var rs=(0,ou.I$)("Table",me=>{const{colorTextHeading:he,colorSplit:Re,colorBgContainer:Je,controlInteractiveSize:gt,headerBg:Ct,headerColor:Wt,headerSortActiveBg:At,headerSortHoverBg:Jt,bodySortBg:Xt,rowHoverBg:Sn,rowSelectedBg:dn,rowSelectedHoverBg:un,rowExpandedBg:rn,cellPaddingBlock:nn,cellPaddingInline:Hn,cellPaddingBlockMD:Tn,cellPaddingInlineMD:Kn,cellPaddingBlockSM:Yn,cellPaddingInlineSM:Vn,borderColor:tr,footerBg:ir,footerColor:br,headerBorderRadius:fr,cellFontSize:li,cellFontSizeMD:Ar,cellFontSizeSM:Tr,headerSplitColor:Ur,fixedHeaderSortActiveBg:xr,headerFilterHoverBg:Cr,filterDropdownBg:nr,expandIconBg:_n,selectionColumnWidth:vr,stickyScrollBarBg:Sr,calc:$r}=me,rr=(0,au.mergeToken)(me,{tableFontSize:li,tableBg:Je,tableRadius:fr,tablePaddingVertical:nn,tablePaddingHorizontal:Hn,tablePaddingVerticalMiddle:Tn,tablePaddingHorizontalMiddle:Kn,tablePaddingVerticalSmall:Yn,tablePaddingHorizontalSmall:Vn,tableBorderColor:tr,tableHeaderTextColor:Wt,tableHeaderBg:Ct,tableFooterTextColor:br,tableFooterBg:ir,tableHeaderCellSplitColor:Ur,tableHeaderSortBg:At,tableHeaderSortHoverBg:Jt,tableBodySortBg:Xt,tableFixedHeaderSortActiveBg:xr,tableHeaderFilterActiveBg:Cr,tableFilterDropdownBg:nr,tableRowHoverBg:Sn,tableSelectedRowBg:dn,tableSelectedRowHoverBg:un,zIndexTableFixed:_s,zIndexTableSticky:$r(_s).add(1).equal({unit:!1}),tableFontSizeMiddle:Ar,tableFontSizeSmall:Tr,tableSelectionColumnWidth:vr,tableExpandIconBg:_n,tableExpandColumnWidth:$r(gt).add($r(me.padding).mul(2)).equal(),tableExpandedRowBg:rn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Sr,tableScrollThumbBgHover:he,tableScrollBg:Re});return[zo(rr),Zl(rr),ua(rr),cu(rr),Us(rr),Cs(rr),Xs(rr),Gs(rr),ua(rr),lu(rr),ml(rr),zl(rr),du(rr),El(rr),uu(rr),Ys(rr),ia(rr)]},jl,{unitless:{expandIconScale:!0}});const fu=[],hu=(me,he)=>{var Re,Je;const{prefixCls:gt,className:Ct,rootClassName:Wt,style:At,size:Jt,bordered:Xt,dropdownPrefixCls:Sn,dataSource:dn,pagination:un,rowSelection:rn,rowKey:nn="key",rowClassName:Hn,columns:Tn,children:Kn,childrenColumnName:Yn,onChange:Vn,getPopupContainer:tr,loading:ir,expandIcon:br,expandable:fr,expandedRowRender:li,expandIconColumnIndex:Ar,indentSize:Tr,scroll:Ur,sortDirections:xr,locale:Cr,showSorterTooltip:nr={target:"full-header"},virtual:_n}=me,vr=(0,xi.ln)("Table"),Sr=E.useMemo(()=>Tn||tn(Kn),[Tn,Kn]),$r=E.useMemo(()=>Sr.some(ui=>ui.responsive),[Sr]),rr=(0,Ea.Z)($r),pi=E.useMemo(()=>{const ui=new Set(Object.keys(rr).filter(Ei=>rr[Ei]));return Sr.filter(Ei=>!Ei.responsive||Ei.responsive.some(co=>ui.has(co)))},[Sr,rr]),vi=(0,Gi.Z)(me,["className","style","columns"]),{locale:ho=qa.Z,direction:io,table:Ji,renderEmpty:oo,getPrefixCls:mo,getPopupContainer:gi}=E.useContext(Ma.E_),Ci=(0,uo.Z)(Jt),vo=Object.assign(Object.assign({},ho.Table),Cr),wo=dn||fu,Mr=mo("table",gt),ii=mo("dropdown",Sn),[,Pr]=(0,cl.ZP)(),hr=(0,ga.Z)(Mr),[Oi,Fi,no]=rs(Mr,hr),Xi=Object.assign(Object.assign({childrenColumnName:Yn,expandIconColumnIndex:Ar},fr),{expandIcon:(Re=fr==null?void 0:fr.expandIcon)!==null&&Re!==void 0?Re:(Je=Ji==null?void 0:Ji.expandable)===null||Je===void 0?void 0:Je.expandIcon}),{childrenColumnName:go="children"}=Xi,ko=E.useMemo(()=>wo.some(ui=>ui==null?void 0:ui[go])?"nest":li||fr!=null&&fr.expandedRowRender?"row":null,[wo]),Br={body:E.useRef(null)},Wr=fi(Mr),Zi=E.useRef(null),Vi=E.useRef(null);Wo(he,()=>Object.assign(Object.assign({},Vi.current),{nativeElement:Zi.current}));const Wi=E.useMemo(()=>typeof nn=="function"?nn:ui=>ui==null?void 0:ui[nn],[nn]),[Lo]=Ba(wo,go,Wi),yo={},ca=function(ui,Ei){let co=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var bo,Zo,Bo,Aa;const Xo=Object.assign(Object.assign({},yo),ui);co&&((bo=yo.resetPagination)===null||bo===void 0||bo.call(yo),!((Zo=Xo.pagination)===null||Zo===void 0)&&Zo.current&&(Xo.pagination.current=1),un&&((Bo=un.onChange)===null||Bo===void 0||Bo.call(un,1,(Aa=Xo.pagination)===null||Aa===void 0?void 0:Aa.pageSize))),Ur&&Ur.scrollToFirstRowOnChange!==!1&&Br.body.current&&(0,Qa.Z)(0,{getContainer:()=>Br.body.current}),Vn==null||Vn(Xo.pagination,Xo.filters,Xo.sorter,{currentDataSource:hi(pl(wo,Xo.sorterStates,go),Xo.filterStates,go),action:Ei})},ao=(ui,Ei)=>{ca({sorter:ui,sorterStates:Ei},"sort",!1)},[Mi,Yi,Qi,Do]=js({prefixCls:Mr,mergedColumns:pi,onSorterChange:ao,sortDirections:xr||["ascend","descend"],tableLocale:vo,showSorterTooltip:nr}),po=E.useMemo(()=>pl(wo,Yi,go),[wo,Yi]);yo.sorter=Do(),yo.sorterStates=Yi;const Ni=(ui,Ei)=>{ca({filters:ui,filterStates:Ei},"filter",!0)},[lo,ji,Go]=So({prefixCls:Mr,locale:vo,dropdownPrefixCls:ii,mergedColumns:pi,onFilterChange:Ni,getPopupContainer:tr||gi,rootClassName:Ye()(Wt,hr)}),Eo=hi(po,ji,go);yo.filters=Go,yo.filterStates=ji;const oa=E.useMemo(()=>{const ui={};return Object.keys(Go).forEach(Ei=>{Go[Ei]!==null&&(ui[Ei]=Go[Ei])}),Object.assign(Object.assign({},Qi),{filters:ui})},[Qi,Go]),[da]=xs(oa),Va=(ui,Ei)=>{ca({pagination:Object.assign(Object.assign({},yo.pagination),{current:ui,pageSize:Ei})},"paginate")},[qi,Wl]=Ra(Eo.length,Va,un);yo.pagination=un===!1?{}:pa(qi,un),yo.resetPagination=Wl;const aa=E.useMemo(()=>{if(un===!1||!qi.pageSize)return Eo;const{current:ui=1,total:Ei,pageSize:co=Ha}=qi;return Eo.length<Ei?Eo.length>co?Eo.slice((ui-1)*co,ui*co):Eo:Eo.slice((ui-1)*co,ui*co)},[!!un,Eo,qi==null?void 0:qi.current,qi==null?void 0:qi.pageSize,qi==null?void 0:qi.total]),[Da,ya]=Lr({prefixCls:Mr,data:Eo,pageData:aa,getRowKey:Wi,getRecordByKey:Lo,expandType:ko,childrenColumnName:go,locale:vo,getPopupContainer:tr||gi},rn),fa=(ui,Ei,co)=>{let bo;return typeof Hn=="function"?bo=Ye()(Hn(ui,Ei,co)):bo=Ye()(Hn),Ye()({[`${Mr}-row-selected`]:ya.has(Wi(ui,Ei))},bo)};Xi.__PARENT_RENDER_ICON__=Xi.expandIcon,Xi.expandIcon=Xi.expandIcon||br||Jr(vo),ko==="nest"&&Xi.expandIconColumnIndex===void 0?Xi.expandIconColumnIndex=rn?1:0:Xi.expandIconColumnIndex>0&&rn&&(Xi.expandIconColumnIndex-=1),typeof Xi.indentSize!="number"&&(Xi.indentSize=typeof Tr=="number"?Tr:15);const eo=E.useCallback(ui=>da(Da(lo(Mi(ui)))),[Mi,lo,Da]);let ba,al;if(un!==!1&&(qi!=null&&qi.total)){let ui;qi.size?ui=qi.size:ui=Ci==="small"||Ci==="middle"?"small":void 0;const Ei=Zo=>E.createElement(Na.Z,Object.assign({},qi,{className:Ye()(`${Mr}-pagination ${Mr}-pagination-${Zo}`,qi.className),size:ui})),co=io==="rtl"?"left":"right",{position:bo}=qi;if(bo!==null&&Array.isArray(bo)){const Zo=bo.find(Xo=>Xo.includes("top")),Bo=bo.find(Xo=>Xo.includes("bottom")),Aa=bo.every(Xo=>`${Xo}`=="none");!Zo&&!Bo&&!Aa&&(al=Ei(co)),Zo&&(ba=Ei(Zo.toLowerCase().replace("top",""))),Bo&&(al=Ei(Bo.toLowerCase().replace("bottom","")))}else al=Ei(co)}let Ga;typeof ir=="boolean"?Ga={spinning:ir}:typeof ir=="object"&&(Ga=Object.assign({spinning:!0},ir));const Ua=Ye()(no,hr,`${Mr}-wrapper`,Ji==null?void 0:Ji.className,{[`${Mr}-wrapper-rtl`]:io==="rtl"},Ct,Wt,Fi),is=Object.assign(Object.assign({},Ji==null?void 0:Ji.style),At),os=typeof(Cr==null?void 0:Cr.emptyText)!="undefined"?Cr.emptyText:(oo==null?void 0:oo("Table"))||E.createElement(qo.Z,{componentName:"Table"}),as=_n?Sl:Ws,ls={},Is=E.useMemo(()=>{const{fontSize:ui,lineHeight:Ei,lineWidth:co,padding:bo,paddingXS:Zo,paddingSM:Bo}=Pr,Aa=Math.floor(ui*Ei);switch(Ci){case"middle":return Bo*2+Aa+co;case"small":return Zo*2+Aa+co;default:return bo*2+Aa+co}},[Pr,Ci]);return _n&&(ls.listItemHeight=Is),Oi(E.createElement("div",{ref:Zi,className:Ua,style:is},E.createElement(Po.Z,Object.assign({spinning:!1},Ga),ba,E.createElement(as,Object.assign({},ls,vi,{ref:Vi,columns:pi,direction:io,expandable:Xi,prefixCls:Mr,className:Ye()({[`${Mr}-middle`]:Ci==="middle",[`${Mr}-small`]:Ci==="small",[`${Mr}-bordered`]:Xt,[`${Mr}-empty`]:wo.length===0},no,hr,Fi),data:aa,rowKey:Wi,rowClassName:fa,emptyText:os,internalHooks:pe,internalRefs:Br,transformColumns:eo,getContainerWidth:Wr})),al)))};var pu=E.forwardRef(hu);const ws=(me,he)=>{const Re=E.useRef(0);return Re.current+=1,E.createElement(pu,Object.assign({},me,{ref:he,_renderTimes:Re.current}))},Ka=E.forwardRef(ws);Ka.SELECTION_COLUMN=Ti,Ka.EXPAND_COLUMN=Ae,Ka.SELECTION_ALL=so,Ka.SELECTION_INVERT=Oo,Ka.SELECTION_NONE=Mo,Ka.Column=dr,Ka.ColumnGroup=Bn,Ka.Summary=Ie;var Es=Ka,mu=Es},18287:function(fn,Ht,ee){"use strict";ee.d(Ht,{default:function(){return Lt}});var E=ee(87632),Ae=ee(77654),pe=ee(59301),Ge=ee(52671),Ee=ee(8657),be=ee(60499),Se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Ze=Se,Ne=ee(7657),ce=function(ot,rt){return pe.createElement(Ne.Z,(0,be.Z)({},ot,{ref:rt,icon:Ze}))},We=pe.forwardRef(ce),De=We,It=ee(92310),at=ee.n(It),qe=ee(82661),He=ee(34061),Be=ee(48755),ut=ee(56082),St=ee(86641),Bt=ee(57700),je=ee(12425);const Te=4;function Qe(Pe){const{dropPosition:ot,dropLevelOffset:rt,prefixCls:an,indent:tt,direction:Rt="ltr"}=Pe,_e=Rt==="ltr"?"left":"right",Gt=Rt==="ltr"?"right":"left",wt={[_e]:-rt*tt+Te,[Gt]:0};switch(ot){case-1:wt.top=-3;break;case 1:wt.bottom=-3;break;default:wt.bottom=-3,wt[_e]=tt+Te;break}return pe.createElement("div",{style:wt,className:`${an}-drop-indicator`})}var Ve=Qe,Tt=ee(85278),Xe=pe.forwardRef((Pe,ot)=>{var rt;const{getPrefixCls:an,direction:tt,virtual:Rt,tree:_e}=pe.useContext(Be.E_),{prefixCls:Gt,className:wt,showIcon:ae=!1,showLine:ne,switcherIcon:te,switcherLoadingIcon:oe,blockNode:ue=!1,children:re,checkable:le=!1,selectable:ge=!0,draggable:lt,motion:ke,style:Ie}=Pe,Fe=an("tree",Gt),Ke=an(),it=ke!=null?ke:Object.assign(Object.assign({},(0,St.Z)(Ke)),{motionAppear:!1}),xe=Object.assign(Object.assign({},Pe),{checkable:le,selectable:ge,showIcon:ae,motion:it,blockNode:ue,showLine:!!ne,dropIndicatorRender:Ve}),[Oe,Ot,Mt]=(0,je.ZP)(Fe),[,Vt]=(0,Bt.ZP)(),Ft=Vt.paddingXS/2+(((rt=Vt.Tree)===null||rt===void 0?void 0:rt.titleHeight)||Vt.controlHeightSM),mt=pe.useMemo(()=>{if(!lt)return!1;let Dt={};switch(typeof lt){case"function":Dt.nodeDraggable=lt;break;case"object":Dt=Object.assign({},lt);break;default:break}return Dt.icon!==!1&&(Dt.icon=Dt.icon||pe.createElement(ut.Z,null)),Dt},[lt]),Zt=Dt=>pe.createElement(Tt.Z,{prefixCls:Fe,switcherIcon:te,switcherLoadingIcon:oe,treeNodeProps:Dt,showLine:ne});return Oe(pe.createElement(E.ZP,Object.assign({itemHeight:Ft,ref:ot,virtual:Rt},xe,{style:Object.assign(Object.assign({},_e==null?void 0:_e.style),Ie),prefixCls:Fe,className:at()({[`${Fe}-icon-hide`]:!ae,[`${Fe}-block-node`]:ue,[`${Fe}-unselectable`]:!ge,[`${Fe}-rtl`]:tt==="rtl"},_e==null?void 0:_e.className,wt,Ot,Mt),direction:tt,checkable:le&&pe.createElement("span",{className:`${Fe}-checkbox-inner`}),selectable:ge,switcherIcon:Zt,draggable:mt}),re))});const et=0,Me=1,pt=2;function Ye(Pe,ot,rt){const{key:an,children:tt}=rt;function Rt(_e){const Gt=_e[an],wt=_e[tt];ot(Gt,_e)!==!1&&Ye(wt||[],ot,rt)}Pe.forEach(Rt)}function ye(Pe){let{treeData:ot,expandedKeys:rt,startKey:an,endKey:tt,fieldNames:Rt}=Pe;const _e=[];let Gt=et;if(an&&an===tt)return[an];if(!an||!tt)return[];function wt(ae){return ae===an||ae===tt}return Ye(ot,ae=>{if(Gt===pt)return!1;if(wt(ae)){if(_e.push(ae),Gt===et)Gt=Me;else if(Gt===Me)return Gt=pt,!1}else Gt===Me&&_e.push(ae);return rt.includes(ae)},(0,He.w$)(Rt)),_e}function jt(Pe,ot,rt){const an=(0,Ae.Z)(ot),tt=[];return Ye(Pe,(Rt,_e)=>{const Gt=an.indexOf(Rt);return Gt!==-1&&(tt.push(_e),an.splice(Gt,1)),!!an.length},(0,He.w$)(rt)),tt}var Ue=function(Pe,ot){var rt={};for(var an in Pe)Object.prototype.hasOwnProperty.call(Pe,an)&&ot.indexOf(an)<0&&(rt[an]=Pe[an]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,an=Object.getOwnPropertySymbols(Pe);tt<an.length;tt++)ot.indexOf(an[tt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,an[tt])&&(rt[an[tt]]=Pe[an[tt]]);return rt};function nt(Pe){const{isLeaf:ot,expanded:rt}=Pe;return ot?pe.createElement(Ge.Z,null):rt?pe.createElement(Ee.Z,null):pe.createElement(De,null)}function zt(Pe){let{treeData:ot,children:rt}=Pe;return ot||(0,He.zn)(rt)}const Ce=(Pe,ot)=>{var{defaultExpandAll:rt,defaultExpandParent:an,defaultExpandedKeys:tt}=Pe,Rt=Ue(Pe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const _e=pe.useRef(null),Gt=pe.useRef(null),wt=()=>{const{keyEntities:Oe}=(0,He.I8)(zt(Rt));let Ot;return rt?Ot=Object.keys(Oe):an?Ot=(0,qe.r7)(Rt.expandedKeys||tt||[],Oe):Ot=Rt.expandedKeys||tt||[],Ot},[ae,ne]=pe.useState(Rt.selectedKeys||Rt.defaultSelectedKeys||[]),[te,oe]=pe.useState(()=>wt());pe.useEffect(()=>{"selectedKeys"in Rt&&ne(Rt.selectedKeys)},[Rt.selectedKeys]),pe.useEffect(()=>{"expandedKeys"in Rt&&oe(Rt.expandedKeys)},[Rt.expandedKeys]);const ue=(Oe,Ot)=>{var Mt;return"expandedKeys"in Rt||oe(Oe),(Mt=Rt.onExpand)===null||Mt===void 0?void 0:Mt.call(Rt,Oe,Ot)},re=(Oe,Ot)=>{var Mt;const{multiple:Vt,fieldNames:Ft}=Rt,{node:mt,nativeEvent:Zt}=Ot,{key:Dt=""}=mt,Ut=zt(Rt),sn=Object.assign(Object.assign({},Ot),{selected:!0}),pn=(Zt==null?void 0:Zt.ctrlKey)||(Zt==null?void 0:Zt.metaKey),mn=Zt==null?void 0:Zt.shiftKey;let ze;Vt&&pn?(ze=Oe,_e.current=Dt,Gt.current=ze,sn.selectedNodes=jt(Ut,ze,Ft)):Vt&&mn?(ze=Array.from(new Set([].concat((0,Ae.Z)(Gt.current||[]),(0,Ae.Z)(ye({treeData:Ut,expandedKeys:te,startKey:Dt,endKey:_e.current,fieldNames:Ft}))))),sn.selectedNodes=jt(Ut,ze,Ft)):(ze=[Dt],_e.current=Dt,Gt.current=ze,sn.selectedNodes=jt(Ut,ze,Ft)),(Mt=Rt.onSelect)===null||Mt===void 0||Mt.call(Rt,ze,sn),"selectedKeys"in Rt||ne(ze)},{getPrefixCls:le,direction:ge}=pe.useContext(Be.E_),{prefixCls:lt,className:ke,showIcon:Ie=!0,expandAction:Fe="click"}=Rt,Ke=Ue(Rt,["prefixCls","className","showIcon","expandAction"]),it=le("tree",lt),xe=at()(`${it}-directory`,{[`${it}-directory-rtl`]:ge==="rtl"},ke);return pe.createElement(Xe,Object.assign({icon:nt,ref:ot,blockNode:!0},Ke,{showIcon:Ie,expandAction:Fe,prefixCls:it,className:xe,expandedKeys:te,selectedKeys:ae,onSelect:re,onExpand:ue}))};var vt=pe.forwardRef(Ce);const Kt=Xe;Kt.DirectoryTree=vt,Kt.TreeNode=E.OF;var Lt=Kt},12425:function(fn,Ht,ee){"use strict";ee.d(Ht,{ZP:function(){return qe},Yk:function(){return De},TM:function(){return It}});var E=ee(36237),Ae=ee(36170),pe=ee(63356),Ge=ee(34961),Ee=ee(51636),be=ee(16931);const Se=He=>{let{treeCls:Be,treeNodeCls:ut,directoryNodeSelectedBg:St,directoryNodeSelectedColor:Bt,motionDurationMid:je,borderRadius:Te,controlItemBgHover:Qe}=He;return{[`${Be}${Be}-directory ${ut}`]:{[`${Be}-node-content-wrapper`]:{position:"static",[`> *:not(${Be}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${je}`,content:'""',borderRadius:Te},"&:hover:before":{background:Qe}},[`${Be}-switcher, ${Be}-checkbox, ${Be}-draggable-icon`]:{zIndex:1},"&-selected":{[`${Be}-switcher, ${Be}-draggable-icon`]:{color:Bt},[`${Be}-node-content-wrapper`]:{color:Bt,background:"transparent","&:before, &:hover:before":{background:St}}}}}},Ze=new E.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ne=(He,Be)=>({[`.${He}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Be.motionDurationSlow}`}}}),ce=(He,Be)=>({[`.${He}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Be.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,E.unit)(Be.lineWidthBold)} solid ${Be.colorPrimary}`,borderRadius:"50%",content:'""'}}}),We=(He,Be)=>{const{treeCls:ut,treeNodeCls:St,treeNodePadding:Bt,titleHeight:je,indentSize:Te,nodeSelectedBg:Qe,nodeHoverBg:Ve,colorTextQuaternary:Tt,controlItemBgActiveDisabled:ht}=Be;return{[ut]:Object.assign(Object.assign({},(0,pe.Wf)(Be)),{background:Be.colorBgContainer,borderRadius:Be.borderRadius,transition:`background-color ${Be.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${ut}-rtl ${ut}-switcher_close ${ut}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${ut}-active-focused)`]:Object.assign({},(0,pe.oN)(Be)),[`${ut}-list-holder-inner`]:{alignItems:"flex-start"},[`&${ut}-block-node`]:{[`${ut}-list-holder-inner`]:{alignItems:"stretch",[`${ut}-node-content-wrapper`]:{flex:"auto"},[`${St}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${Be.colorPrimary}`,opacity:0,animationName:Ze,animationDuration:Be.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:Be.borderRadius}}},[St]:{display:"flex",alignItems:"flex-start",marginBottom:Bt,lineHeight:(0,E.unit)(je),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:Bt},[`&-disabled ${ut}-node-content-wrapper`]:{color:Be.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${ut}-checkbox-disabled + ${ut}-node-selected,&${St}-disabled${St}-selected ${ut}-node-content-wrapper`]:{backgroundColor:ht},[`${ut}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${St}-disabled)`]:{[`${ut}-node-content-wrapper`]:{"&:hover":{color:Be.nodeHoverColor}}},[`&-active ${ut}-node-content-wrapper`]:{background:Be.controlItemBgHover},[`&:not(${St}-disabled).filter-node ${ut}-title`]:{color:Be.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${ut}-draggable-icon`]:{flexShrink:0,width:je,textAlign:"center",visibility:"visible",color:Tt},[`&${St}-disabled ${ut}-draggable-icon`]:{visibility:"hidden"}}},[`${ut}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Te}},[`${ut}-draggable-icon`]:{visibility:"hidden"},[`${ut}-switcher, ${ut}-checkbox`]:{marginInlineEnd:Be.calc(Be.calc(je).sub(Be.controlInteractiveSize)).div(2).equal()},[`${ut}-switcher`]:Object.assign(Object.assign({},Ne(He,Be)),{position:"relative",flex:"none",alignSelf:"stretch",width:je,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${Be.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:je,height:je,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:Be.borderRadius,transition:`all ${Be.motionDurationSlow}`},[`&:not(${ut}-switcher-noop):hover:before`]:{backgroundColor:Be.colorBgTextHover},[`&_close ${ut}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:Be.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Be.calc(je).div(2).equal(),bottom:Be.calc(Bt).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${Be.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Be.calc(Be.calc(je).div(2).equal()).mul(.8).equal(),height:Be.calc(je).div(2).equal(),borderBottom:`1px solid ${Be.colorBorder}`,content:'""'}}}),[`${ut}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:je,paddingBlock:0,paddingInline:Be.paddingXS,background:"transparent",borderRadius:Be.borderRadius,cursor:"pointer",transition:`all ${Be.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},ce(He,Be)),{"&:hover":{backgroundColor:Ve},[`&${ut}-node-selected`]:{color:Be.nodeSelectedColor,backgroundColor:Qe},[`${ut}-iconEle`]:{display:"inline-block",width:je,height:je,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${ut}-unselectable ${ut}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${St}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${Be.colorPrimary}`},"&-show-line":{[`${ut}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Be.calc(je).div(2).equal(),bottom:Be.calc(Bt).mul(-1).equal(),borderInlineEnd:`1px solid ${Be.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${ut}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${St}-leaf-last ${ut}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,E.unit)(Be.calc(je).div(2).equal())} !important`}})}},De=function(He,Be){let ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const St=`.${He}`,Bt=`${St}-treenode`,je=Be.calc(Be.paddingXS).div(2).equal(),Te=(0,Ee.mergeToken)(Be,{treeCls:St,treeNodeCls:Bt,treeNodePadding:je});return[We(He,Te),ut&&Se(Te)].filter(Boolean)},It=He=>{const{controlHeightSM:Be,controlItemBgHover:ut,controlItemBgActive:St}=He,Bt=Be;return{titleHeight:Bt,indentSize:Bt,nodeHoverBg:ut,nodeHoverColor:He.colorText,nodeSelectedBg:St,nodeSelectedColor:He.colorText}},at=He=>{const{colorTextLightSolid:Be,colorPrimary:ut}=He;return Object.assign(Object.assign({},It(He)),{directoryNodeSelectedColor:Be,directoryNodeSelectedBg:ut})};var qe=(0,be.I$)("Tree",(He,Be)=>{let{prefixCls:ut}=Be;return[{[He.componentCls]:(0,Ae.C2)(`${ut}-checkbox`,He)},De(ut,He),(0,Ge.Z)(He)]},at)},85278:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Be}});var E=ee(59301),Ae=ee(60499),pe={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"},Ge=pe,Ee=ee(7657),be=function(St,Bt){return E.createElement(Ee.Z,(0,Ae.Z)({},St,{ref:Bt,icon:Ge}))},Se=E.forwardRef(be),Ze=Se,Ne=ee(52671),ce=ee(58617),We=ee(15075),De=ee(43531),It=ee(92310),at=ee.n(It),qe=ee(22703),Be=ut=>{const{prefixCls:St,switcherIcon:Bt,treeNodeProps:je,showLine:Te,switcherLoadingIcon:Qe}=ut,{isLeaf:Ve,expanded:Tt,loading:ht}=je;if(ht)return E.isValidElement(Qe)?Qe:E.createElement(ce.Z,{className:`${St}-switcher-loading-icon`});let Xe;if(Te&&typeof Te=="object"&&(Xe=Te.showLeafIcon),Ve){if(!Te)return null;if(typeof Xe!="boolean"&&Xe){const pt=typeof Xe=="function"?Xe(je):Xe,Ye=`${St}-switcher-line-custom-icon`;return E.isValidElement(pt)?(0,qe.Tm)(pt,{className:at()(pt.props.className||"",Ye)}):pt}return Xe?E.createElement(Ne.Z,{className:`${St}-switcher-line-icon`}):E.createElement("span",{className:`${St}-switcher-leaf-line`})}const et=`${St}-switcher-icon`,Me=typeof Bt=="function"?Bt(je):Bt;return E.isValidElement(Me)?(0,qe.Tm)(Me,{className:at()(Me.props.className||"",et)}):Me!==void 0?Me:Te?Tt?E.createElement(We.Z,{className:`${St}-switcher-line-icon`}):E.createElement(De.Z,{className:`${St}-switcher-line-icon`}):E.createElement(Ze,{className:et})}},99498:function(fn,Ht,ee){(function(E){E(ee(89780))})(function(E){E.defineOption("placeholder","",function(Ze,Ne,ce){var We=ce&&ce!=E.Init;if(Ne&&!We)Ze.on("blur",Ee),Ze.on("change",be),Ze.on("swapDoc",be),E.on(Ze.getInputField(),"compositionupdate",Ze.state.placeholderCompose=function(){Ge(Ze)}),be(Ze);else if(!Ne&&We){Ze.off("blur",Ee),Ze.off("change",be),Ze.off("swapDoc",be),E.off(Ze.getInputField(),"compositionupdate",Ze.state.placeholderCompose),Ae(Ze);var De=Ze.getWrapperElement();De.className=De.className.replace(" CodeMirror-empty","")}Ne&&!Ze.hasFocus()&&Ee(Ze)});function Ae(Ze){Ze.state.placeholder&&(Ze.state.placeholder.parentNode.removeChild(Ze.state.placeholder),Ze.state.placeholder=null)}function pe(Ze){Ae(Ze);var Ne=Ze.state.placeholder=document.createElement("pre");Ne.style.cssText="height: 0; overflow: visible",Ne.style.direction=Ze.getOption("direction"),Ne.className="CodeMirror-placeholder CodeMirror-line-like";var ce=Ze.getOption("placeholder");typeof ce=="string"&&(ce=document.createTextNode(ce)),Ne.appendChild(ce),Ze.display.lineSpace.insertBefore(Ne,Ze.display.lineSpace.firstChild)}function Ge(Ze){setTimeout(function(){var Ne=!1,ce=Ze.getInputField();ce.nodeName=="TEXTAREA"?Ne=!ce.value:Ze.lineCount()==1&&(Ne=!/[^\u200b]/.test(ce.querySelector(".CodeMirror-line").textContent)),Ne?pe(Ze):Ae(Ze)},20)}function Ee(Ze){Se(Ze)&&pe(Ze)}function be(Ze){var Ne=Ze.getWrapperElement(),ce=Se(Ze);Ne.className=Ne.className.replace(" CodeMirror-empty","")+(ce?" CodeMirror-empty":""),ce?pe(Ze):Ae(Ze)}function Se(Ze){return Ze.lineCount()===1&&Ze.getLine(0)===""}})},25717:function(fn,Ht,ee){(function(E){E(ee(89780))})(function(E){var Ae={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},pe=E.Pos;E.defineOption("autoCloseBrackets",!1,function(qe,He,Be){Be&&Be!=E.Init&&(qe.removeKeyMap(Ee),qe.state.closeBrackets=null),He&&(be(Ge(He,"pairs")),qe.state.closeBrackets=He,qe.addKeyMap(Ee))});function Ge(qe,He){return He=="pairs"&&typeof qe=="string"?qe:typeof qe=="object"&&qe[He]!=null?qe[He]:Ae[He]}var Ee={Backspace:Ne,Enter:ce};function be(qe){for(var He=0;He<qe.length;He++){var Be=qe.charAt(He),ut="'"+Be+"'";Ee[ut]||(Ee[ut]=Se(Be))}}be(Ae.pairs+"`");function Se(qe){return function(He){return De(He,qe)}}function Ze(qe){var He=qe.state.closeBrackets;if(!He||He.override)return He;var Be=qe.getModeAt(qe.getCursor());return Be.closeBrackets||He}function Ne(qe){var He=Ze(qe);if(!He||qe.getOption("disableInput"))return E.Pass;for(var Be=Ge(He,"pairs"),ut=qe.listSelections(),St=0;St<ut.length;St++){if(!ut[St].empty())return E.Pass;var Bt=It(qe,ut[St].head);if(!Bt||Be.indexOf(Bt)%2!=0)return E.Pass}for(var St=ut.length-1;St>=0;St--){var je=ut[St].head;qe.replaceRange("",pe(je.line,je.ch-1),pe(je.line,je.ch+1),"+delete")}}function ce(qe){var He=Ze(qe),Be=He&&Ge(He,"explode");if(!Be||qe.getOption("disableInput"))return E.Pass;for(var ut=qe.listSelections(),St=0;St<ut.length;St++){if(!ut[St].empty())return E.Pass;var Bt=It(qe,ut[St].head);if(!Bt||Be.indexOf(Bt)%2!=0)return E.Pass}qe.operation(function(){var je=qe.lineSeparator()||`
|
|
|
`;qe.replaceSelection(je+je,null),qe.execCommand("goCharLeft"),ut=qe.listSelections();for(var Te=0;Te<ut.length;Te++){var Qe=ut[Te].head.line;qe.indentLine(Qe,null,!0),qe.indentLine(Qe+1,null,!0)}})}function We(qe){var He=E.cmpPos(qe.anchor,qe.head)>0;return{anchor:new pe(qe.anchor.line,qe.anchor.ch+(He?-1:1)),head:new pe(qe.head.line,qe.head.ch+(He?1:-1))}}function De(qe,He){var Be=Ze(qe);if(!Be||qe.getOption("disableInput"))return E.Pass;var ut=Ge(Be,"pairs"),St=ut.indexOf(He);if(St==-1)return E.Pass;for(var Bt=Ge(Be,"closeBefore"),je=Ge(Be,"triples"),Te=ut.charAt(St+1)==He,Qe=qe.listSelections(),Ve=St%2==0,Tt,ht=0;ht<Qe.length;ht++){var Xe=Qe[ht],et=Xe.head,Me,pt=qe.getRange(et,pe(et.line,et.ch+1));if(Ve&&!Xe.empty())Me="surround";else if((Te||!Ve)&&pt==He)Te&&at(qe,et)?Me="both":je.indexOf(He)>=0&&qe.getRange(et,pe(et.line,et.ch+3))==He+He+He?Me="skipThree":Me="skip";else if(Te&&et.ch>1&&je.indexOf(He)>=0&&qe.getRange(pe(et.line,et.ch-2),et)==He+He){if(et.ch>2&&/\bstring/.test(qe.getTokenTypeAt(pe(et.line,et.ch-2))))return E.Pass;Me="addFour"}else if(Te){var Ye=et.ch==0?" ":qe.getRange(pe(et.line,et.ch-1),et);if(!E.isWordChar(pt)&&Ye!=He&&!E.isWordChar(Ye))Me="both";else return E.Pass}else if(Ve&&(pt.length===0||/\s/.test(pt)||Bt.indexOf(pt)>-1))Me="both";else return E.Pass;if(!Tt)Tt=Me;else if(Tt!=Me)return E.Pass}var ye=St%2?ut.charAt(St-1):He,jt=St%2?He:ut.charAt(St+1);qe.operation(function(){if(Tt=="skip")qe.execCommand("goCharRight");else if(Tt=="skipThree")for(var Ue=0;Ue<3;Ue++)qe.execCommand("goCharRight");else if(Tt=="surround"){for(var nt=qe.getSelections(),Ue=0;Ue<nt.length;Ue++)nt[Ue]=ye+nt[Ue]+jt;qe.replaceSelections(nt,"around"),nt=qe.listSelections().slice();for(var Ue=0;Ue<nt.length;Ue++)nt[Ue]=We(nt[Ue]);qe.setSelections(nt)}else Tt=="both"?(qe.replaceSelection(ye+jt,null),qe.triggerElectric(ye+jt),qe.execCommand("goCharLeft")):Tt=="addFour"&&(qe.replaceSelection(ye+ye+ye+ye,"before"),qe.execCommand("goCharRight"))})}function It(qe,He){var Be=qe.getRange(pe(He.line,He.ch-1),pe(He.line,He.ch+1));return Be.length==2?Be:null}function at(qe,He){var Be=qe.getTokenAt(pe(He.line,He.ch+1));return/\bstring/.test(Be.type)&&Be.start==He.ch&&(He.ch==0||!/\bstring/.test(qe.getTokenTypeAt(He)))}})},6313:function(fn,Ht,ee){(function(E){E(ee(89780),ee(32855))})(function(E){E.defineOption("autoCloseTags",!1,function(Ne,ce,We){if(We!=E.Init&&We&&Ne.removeKeyMap("autoCloseTags"),!!ce){var De={name:"autoCloseTags"};(typeof ce!="object"||ce.whenClosing!==!1)&&(De["'/'"]=function(It){return be(It)}),(typeof ce!="object"||ce.whenOpening!==!1)&&(De["'>'"]=function(It){return Ge(It)}),Ne.addKeyMap(De)}});var Ae=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],pe=["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 Ge(Ne){if(Ne.getOption("disableInput"))return E.Pass;for(var ce=Ne.listSelections(),We=[],De=Ne.getOption("autoCloseTags"),It=0;It<ce.length;It++){if(!ce[It].empty())return E.Pass;var at=ce[It].head,qe=Ne.getTokenAt(at),He=E.innerMode(Ne.getMode(),qe.state),Be=He.state,ut=He.mode.xmlCurrentTag&&He.mode.xmlCurrentTag(Be),St=ut&&ut.name;if(!St)return E.Pass;var Bt=He.mode.configuration=="html",je=typeof De=="object"&&De.dontCloseTags||Bt&&Ae,Te=typeof De=="object"&&De.indentTags||Bt&&pe;qe.end>at.ch&&(St=St.slice(0,St.length-qe.end+at.ch));var Qe=St.toLowerCase();if(!St||qe.type=="string"&&(qe.end!=at.ch||!/[\"\']/.test(qe.string.charAt(qe.string.length-1))||qe.string.length==1)||qe.type=="tag"&&ut.close||qe.string.indexOf("/")==at.ch-qe.start-1||je&&Se(je,Qe)>-1||Ze(Ne,He.mode.xmlCurrentContext&&He.mode.xmlCurrentContext(Be)||[],St,at,!0))return E.Pass;var Ve=typeof De=="object"&&De.emptyTags;if(Ve&&Se(Ve,St)>-1){We[It]={text:"/>",newPos:E.Pos(at.line,at.ch+2)};continue}var Tt=Te&&Se(Te,Qe)>-1;We[It]={indent:Tt,text:">"+(Tt?`
|
|
|
|
|
|
`:"")+"</"+St+">",newPos:Tt?E.Pos(at.line+1,0):E.Pos(at.line,at.ch+1)}}for(var ht=typeof De=="object"&&De.dontIndentOnAutoClose,It=ce.length-1;It>=0;It--){var Xe=We[It];Ne.replaceRange(Xe.text,ce[It].head,ce[It].anchor,"+insert");var et=Ne.listSelections().slice(0);et[It]={head:Xe.newPos,anchor:Xe.newPos},Ne.setSelections(et),!ht&&Xe.indent&&(Ne.indentLine(Xe.newPos.line,null,!0),Ne.indentLine(Xe.newPos.line+1,null,!0))}}function Ee(Ne,ce){for(var We=Ne.listSelections(),De=[],It=ce?"/":"</",at=Ne.getOption("autoCloseTags"),qe=typeof at=="object"&&at.dontIndentOnSlash,He=0;He<We.length;He++){if(!We[He].empty())return E.Pass;var Be=We[He].head,ut=Ne.getTokenAt(Be),St=E.innerMode(Ne.getMode(),ut.state),Bt=St.state;if(ce&&(ut.type=="string"||ut.string.charAt(0)!="<"||ut.start!=Be.ch-1))return E.Pass;var je,Te=St.mode.name!="xml"&&Ne.getMode().name=="htmlmixed";if(Te&&St.mode.name=="javascript")je=It+"script";else if(Te&&St.mode.name=="css")je=It+"style";else{var Qe=St.mode.xmlCurrentContext&&St.mode.xmlCurrentContext(Bt);if(!Qe||Qe.length&&Ze(Ne,Qe,Qe[Qe.length-1],Be))return E.Pass;je=It+Qe[Qe.length-1]}Ne.getLine(Be.line).charAt(ut.end)!=">"&&(je+=">"),De[He]=je}if(Ne.replaceSelections(De),We=Ne.listSelections(),!qe)for(var He=0;He<We.length;He++)(He==We.length-1||We[He].head.line<We[He+1].head.line)&&Ne.indentLine(We[He].head.line)}function be(Ne){return Ne.getOption("disableInput")?E.Pass:Ee(Ne,!0)}E.commands.closeTag=function(Ne){return Ee(Ne)};function Se(Ne,ce){if(Ne.indexOf)return Ne.indexOf(ce);for(var We=0,De=Ne.length;We<De;++We)if(Ne[We]==ce)return We;return-1}function Ze(Ne,ce,We,De,It){if(!E.scanForClosingTag)return!1;var at=Math.min(Ne.lastLine()+1,De.line+500),qe=E.scanForClosingTag(Ne,De,null,at);if(!qe||qe.tag!=We)return!1;for(var He=It?1:0,Be=ce.length-1;Be>=0&&ce[Be]==We;Be--)++He;De=qe.to;for(var Be=1;Be<He;Be++){var ut=E.scanForClosingTag(Ne,De,null,at);if(!ut||ut.tag!=We)return!1;De=ut.to}return!0}})},32855:function(fn,Ht,ee){(function(E){E(ee(89780))})(function(E){"use strict";var Ae=E.Pos;function pe(Be,ut){return Be.line-ut.line||Be.ch-ut.ch}var Ge="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Ee=Ge+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",be=new RegExp("<(/?)(["+Ge+"]["+Ee+"]*)","g");function Se(Be,ut,St,Bt){this.line=ut,this.ch=St,this.cm=Be,this.text=Be.getLine(ut),this.min=Bt?Math.max(Bt.from,Be.firstLine()):Be.firstLine(),this.max=Bt?Math.min(Bt.to-1,Be.lastLine()):Be.lastLine()}function Ze(Be,ut){var St=Be.cm.getTokenTypeAt(Ae(Be.line,ut));return St&&/\btag\b/.test(St)}function Ne(Be){if(!(Be.line>=Be.max))return Be.ch=0,Be.text=Be.cm.getLine(++Be.line),!0}function ce(Be){if(!(Be.line<=Be.min))return Be.text=Be.cm.getLine(--Be.line),Be.ch=Be.text.length,!0}function We(Be){for(;;){var ut=Be.text.indexOf(">",Be.ch);if(ut==-1){if(Ne(Be))continue;return}if(!Ze(Be,ut+1)){Be.ch=ut+1;continue}var St=Be.text.lastIndexOf("/",ut),Bt=St>-1&&!/\S/.test(Be.text.slice(St+1,ut));return Be.ch=ut+1,Bt?"selfClose":"regular"}}function De(Be){for(;;){var ut=Be.ch?Be.text.lastIndexOf("<",Be.ch-1):-1;if(ut==-1){if(ce(Be))continue;return}if(!Ze(Be,ut+1)){Be.ch=ut;continue}be.lastIndex=ut,Be.ch=ut;var St=be.exec(Be.text);if(St&&St.index==ut)return St}}function It(Be){for(;;){be.lastIndex=Be.ch;var ut=be.exec(Be.text);if(!ut){if(Ne(Be))continue;return}if(!Ze(Be,ut.index+1)){Be.ch=ut.index+1;continue}return Be.ch=ut.index+ut[0].length,ut}}function at(Be){for(;;){var ut=Be.ch?Be.text.lastIndexOf(">",Be.ch-1):-1;if(ut==-1){if(ce(Be))continue;return}if(!Ze(Be,ut+1)){Be.ch=ut;continue}var St=Be.text.lastIndexOf("/",ut),Bt=St>-1&&!/\S/.test(Be.text.slice(St+1,ut));return Be.ch=ut+1,Bt?"selfClose":"regular"}}function qe(Be,ut){for(var St=[];;){var Bt=It(Be),je,Te=Be.line,Qe=Be.ch-(Bt?Bt[0].length:0);if(!Bt||!(je=We(Be)))return;if(je!="selfClose")if(Bt[1]){for(var Ve=St.length-1;Ve>=0;--Ve)if(St[Ve]==Bt[2]){St.length=Ve;break}if(Ve<0&&(!ut||ut==Bt[2]))return{tag:Bt[2],from:Ae(Te,Qe),to:Ae(Be.line,Be.ch)}}else St.push(Bt[2])}}function He(Be,ut){for(var St=[];;){var Bt=at(Be);if(!Bt)return;if(Bt=="selfClose"){De(Be);continue}var je=Be.line,Te=Be.ch,Qe=De(Be);if(!Qe)return;if(Qe[1])St.push(Qe[2]);else{for(var Ve=St.length-1;Ve>=0;--Ve)if(St[Ve]==Qe[2]){St.length=Ve;break}if(Ve<0&&(!ut||ut==Qe[2]))return{tag:Qe[2],from:Ae(Be.line,Be.ch),to:Ae(je,Te)}}}}E.registerHelper("fold","xml",function(Be,ut){for(var St=new Se(Be,ut.line,0);;){var Bt=It(St);if(!Bt||St.line!=ut.line)return;var je=We(St);if(!je)return;if(!Bt[1]&&je!="selfClose"){var Te=Ae(St.line,St.ch),Qe=qe(St,Bt[2]);return Qe&&pe(Qe.from,Te)>0?{from:Te,to:Qe.from}:null}}}),E.findMatchingTag=function(Be,ut,St){var Bt=new Se(Be,ut.line,ut.ch,St);if(!(Bt.text.indexOf(">")==-1&&Bt.text.indexOf("<")==-1)){var je=We(Bt),Te=je&&Ae(Bt.line,Bt.ch),Qe=je&&De(Bt);if(!(!je||!Qe||pe(Bt,ut)>0)){var Ve={from:Ae(Bt.line,Bt.ch),to:Te,tag:Qe[2]};return je=="selfClose"?{open:Ve,close:null,at:"open"}:Qe[1]?{open:He(Bt,Qe[2]),close:Ve,at:"close"}:(Bt=new Se(Be,Te.line,Te.ch,St),{open:Ve,close:qe(Bt,Qe[2]),at:"open"})}}},E.findEnclosingTag=function(Be,ut,St,Bt){for(var je=new Se(Be,ut.line,ut.ch,St);;){var Te=He(je,Bt);if(!Te)break;var Qe=new Se(Be,ut.line,ut.ch,St),Ve=qe(Qe,Te.tag);if(Ve)return{open:Te,close:Ve}}},E.scanForClosingTag=function(Be,ut,St,Bt){var je=new Se(Be,ut.line,ut.ch,Bt?{from:0,to:Bt}:null);return qe(je,St)}})},89780:function(fn){(function(Ht,ee){fn.exports=ee()})(this,function(){"use strict";var Ht=navigator.userAgent,ee=navigator.platform,E=/gecko\/\d/i.test(Ht),Ae=/MSIE \d/.test(Ht),pe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ht),Ge=/Edge\/(\d+)/.exec(Ht),Ee=Ae||pe||Ge,be=Ee&&(Ae?document.documentMode||6:+(Ge||pe)[1]),Se=!Ge&&/WebKit\//.test(Ht),Ze=Se&&/Qt\/\d+\.\d+/.test(Ht),Ne=!Ge&&/Chrome\//.test(Ht),ce=/Opera\//.test(Ht),We=/Apple Computer/.test(navigator.vendor),De=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ht),It=/PhantomJS/.test(Ht),at=!Ge&&/AppleWebKit/.test(Ht)&&/Mobile\/\w+/.test(Ht),qe=/Android/.test(Ht),He=at||qe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ht),Be=at||/Mac/.test(ee),ut=/\bCrOS\b/.test(Ht),St=/win/i.test(ee),Bt=ce&&Ht.match(/Version\/(\d*\.\d*)/);Bt&&(Bt=Number(Bt[1])),Bt&&Bt>=15&&(ce=!1,Se=!0);var je=Be&&(Ze||ce&&(Bt==null||Bt<12.11)),Te=E||Ee&&be>=9;function Qe(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ve=function(a,y){var x=a.className,b=Qe(y).exec(x);if(b){var z=x.slice(b.index+b[0].length);a.className=x.slice(0,b.index)+(z?b[1]+z:"")}};function Tt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function ht(a,y){return Tt(a).appendChild(y)}function Xe(a,y,x,b){var z=document.createElement(a);if(x&&(z.className=x),b&&(z.style.cssText=b),typeof y=="string")z.appendChild(document.createTextNode(y));else if(y)for(var ie=0;ie<y.length;++ie)z.appendChild(y[ie]);return z}function et(a,y,x,b){var z=Xe(a,y,x,b);return z.setAttribute("role","presentation"),z}var Me;document.createRange?Me=function(a,y,x,b){var z=document.createRange();return z.setEnd(b||a,x),z.setStart(a,y),z}:Me=function(a,y,x){var b=document.body.createTextRange();try{b.moveToElementText(a.parentNode)}catch(z){return b}return b.collapse(!0),b.moveEnd("character",x),b.moveStart("character",y),b};function pt(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 Ye(){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 ye(a,y){var x=a.className;Qe(y).test(x)||(a.className+=(x?" ":"")+y)}function jt(a,y){for(var x=a.split(" "),b=0;b<x.length;b++)x[b]&&!Qe(x[b]).test(y)&&(y+=" "+x[b]);return y}var Ue=function(a){a.select()};at?Ue=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:Ee&&(Ue=function(a){try{a.select()}catch(y){}});function nt(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function zt(a,y,x){y||(y={});for(var b in a)a.hasOwnProperty(b)&&(x!==!1||!y.hasOwnProperty(b))&&(y[b]=a[b]);return y}function Ce(a,y,x,b,z){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var ie=b||0,se=z||0;;){var fe=a.indexOf(" ",ie);if(fe<0||fe>=y)return se+(y-ie);se+=fe-ie,se+=x-se%x,ie=fe+1}}var de=function(){this.id=null,this.f=null,this.time=0,this.handler=nt(this.onTimeout,this)};de.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},de.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=x)};function vt(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var Kt=50,Lt={toString:function(){return"CodeMirror.Pass"}},Pe={scroll:!1},ot={origin:"*mouse"},rt={origin:"+move"};function an(a,y,x){for(var b=0,z=0;;){var ie=a.indexOf(" ",b);ie==-1&&(ie=a.length);var se=ie-b;if(ie==a.length||z+se>=y)return b+Math.min(se,y-z);if(z+=ie-b,z+=x-z%x,b=ie+1,z>=y)return b}}var tt=[""];function Rt(a){for(;tt.length<=a;)tt.push(_e(tt)+" ");return tt[a]}function _e(a){return a[a.length-1]}function Gt(a,y){for(var x=[],b=0;b<a.length;b++)x[b]=y(a[b],b);return x}function wt(a,y,x){for(var b=0,z=x(y);b<a.length&&x(a[b])<=z;)b++;a.splice(b,0,y)}function ae(){}function ne(a,y){var x;return Object.create?x=Object.create(a):(ae.prototype=a,x=new ae),y&&zt(y,x),x}var te=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function oe(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||te.test(a))}function ue(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 ge(a){return a.charCodeAt(0)>=768&&le.test(a)}function lt(a,y,x){for(;(x<0?y>0:y<a.length)&&ge(a.charAt(y));)y+=x;return y}function ke(a,y,x){for(var b=y>x?-1:1;;){if(y==x)return y;var z=(y+x)/2,ie=b<0?Math.ceil(z):Math.floor(z);if(ie==y)return a(ie)?y:x;a(ie)?x=ie:y=ie+b}}function Ie(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var z=!1,ie=0;ie<a.length;++ie){var se=a[ie];(se.from<x&&se.to>y||y==x&&se.to==y)&&(b(Math.max(se.from,y),Math.min(se.to,x),se.level==1?"rtl":"ltr",ie),z=!0)}z||b(y,x,"ltr")}var Fe=null;function Ke(a,y,x){var b;Fe=null;for(var z=0;z<a.length;++z){var ie=a[z];if(ie.from<y&&ie.to>y)return z;ie.to==y&&(ie.from!=ie.to&&x=="before"?b=z:Fe=z),ie.from==y&&(ie.from!=ie.to&&x!="before"?b=z:Fe=z)}return b!=null?b:Fe}var it=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(we){return we<=247?a.charAt(we):1424<=we&&we<=1524?"R":1536<=we&&we<=1785?y.charAt(we-1536):1774<=we&&we<=2220?"r":8192<=we&&we<=8203?"w":we==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,z=/[stwN]/,ie=/[LRr]/,se=/[Lb1n]/,fe=/[1n]/;function ve(we,yt,kt){this.level=we,this.from=yt,this.to=kt}return function(we,yt){var kt=yt=="ltr"?"L":"R";if(we.length==0||yt=="ltr"&&!b.test(we))return!1;for(var ln=we.length,qt=[],Nn=0;Nn<ln;++Nn)qt.push(x(we.charCodeAt(Nn)));for(var Zn=0,Jn=kt;Zn<ln;++Zn){var sr=qt[Zn];sr=="m"?qt[Zn]=Jn:Jn=sr}for(var Er=0,ur=kt;Er<ln;++Er){var Nr=qt[Er];Nr=="1"&&ur=="r"?qt[Er]="n":ie.test(Nr)&&(ur=Nr,Nr=="r"&&(qt[Er]="R"))}for(var ai=1,Xr=qt[0];ai<ln-1;++ai){var Pi=qt[ai];Pi=="+"&&Xr=="1"&&qt[ai+1]=="1"?qt[ai]="1":Pi==","&&Xr==qt[ai+1]&&(Xr=="1"||Xr=="n")&&(qt[ai]=Xr),Xr=Pi}for(var fo=0;fo<ln;++fo){var Jo=qt[fo];if(Jo==",")qt[fo]="N";else if(Jo=="%"){var Io=void 0;for(Io=fo+1;Io<ln&&qt[Io]=="%";++Io);for(var Ta=fo&&qt[fo-1]=="!"||Io<ln&&qt[Io]=="1"?"1":"N",Ca=fo;Ca<Io;++Ca)qt[Ca]=Ta;fo=Io-1}}for(var Ho=0,Sa=kt;Ho<ln;++Ho){var la=qt[Ho];Sa=="L"&&la=="1"?qt[Ho]="L":ie.test(la)&&(Sa=la)}for(var Uo=0;Uo<ln;++Uo)if(z.test(qt[Uo])){var jo=void 0;for(jo=Uo+1;jo<ln&&z.test(qt[jo]);++jo);for(var To=(Uo?qt[Uo-1]:kt)=="L",wa=(jo<ln?qt[jo]:kt)=="L",hs=To==wa?To?"L":"R":kt,Nl=Uo;Nl<jo;++Nl)qt[Nl]=hs;Uo=jo-1}for(var ha=[],ul,Qo=0;Qo<ln;)if(se.test(qt[Qo])){var Eu=Qo;for(++Qo;Qo<ln&&se.test(qt[Qo]);++Qo);ha.push(new ve(0,Eu,Qo))}else{var bl=Qo,Yl=ha.length,_l=yt=="rtl"?1:0;for(++Qo;Qo<ln&&qt[Qo]!="L";++Qo);for(var va=bl;va<Qo;)if(fe.test(qt[va])){bl<va&&(ha.splice(Yl,0,new ve(1,bl,va)),Yl+=_l);var ps=va;for(++va;va<Qo&&fe.test(qt[va]);++va);ha.splice(Yl,0,new ve(2,ps,va)),Yl+=_l,bl=va}else++va;bl<Qo&&ha.splice(Yl,0,new ve(1,bl,Qo))}return yt=="ltr"&&(ha[0].level==1&&(ul=we.match(/^\s+/))&&(ha[0].from=ul[0].length,ha.unshift(new ve(0,0,ul[0].length))),_e(ha).level==1&&(ul=we.match(/\s+$/))&&(_e(ha).to-=ul[0].length,ha.push(new ve(0,ln-ul[0].length,ln)))),yt=="rtl"?ha.reverse():ha}}();function xe(a,y){var x=a.order;return x==null&&(x=a.order=it(a.text,y)),x}var Oe=[],Ot=function(a,y,x){if(a.addEventListener)a.addEventListener(y,x,!1);else if(a.attachEvent)a.attachEvent("on"+y,x);else{var b=a._handlers||(a._handlers={});b[y]=(b[y]||Oe).concat(x)}};function Mt(a,y){return a._handlers&&a._handlers[y]||Oe}function Vt(a,y,x){if(a.removeEventListener)a.removeEventListener(y,x,!1);else if(a.detachEvent)a.detachEvent("on"+y,x);else{var b=a._handlers,z=b&&b[y];if(z){var ie=vt(z,x);ie>-1&&(b[y]=z.slice(0,ie).concat(z.slice(ie+1)))}}}function Ft(a,y){var x=Mt(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),z=0;z<x.length;++z)x[z].apply(null,b)}function mt(a,y,x){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),Ft(a,x||y.type,a,y),mn(y)||y.codemirrorIgnore}function Zt(a){var y=a._handlers&&a._handlers.cursorActivity;if(y)for(var x=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),b=0;b<y.length;++b)vt(x,y[b])==-1&&x.push(y[b])}function Dt(a,y){return Mt(a,y).length>0}function Ut(a){a.prototype.on=function(y,x){Ot(this,y,x)},a.prototype.off=function(y,x){Vt(this,y,x)}}function sn(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function pn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function mn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function ze(a){sn(a),pn(a)}function bt(a){return a.target||a.srcElement}function $t(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Be&&a.ctrlKey&&y==1&&(y=3),y}var ft=function(){if(Ee&&be<9)return!1;var a=Xe("div");return"draggable"in a||"dragDrop"in a}(),Et;function Nt(a){if(Et==null){var y=Xe("span","\u200B");ht(a,Xe("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Et=y.offsetWidth<=1&&y.offsetHeight>2&&!(Ee&&be<8))}var x=Et?Xe("span","\u200B"):Xe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var vn;function kn(a){if(vn!=null)return vn;var y=ht(a,document.createTextNode("A\u062EA")),x=Me(y,0,1).getBoundingClientRect(),b=Me(y,1,2).getBoundingClientRect();return Tt(a),!x||x.left==x.right?!1:vn=b.right-x.right<3}var cn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var z=a.indexOf(`
|
|
|
`,y);z==-1&&(z=a.length);var ie=a.slice(y,a.charAt(z-1)=="\r"?z-1:z),se=ie.indexOf("\r");se!=-1?(x.push(ie.slice(0,se)),y+=se+1):(x.push(ie),y=z+1)}return x}:function(a){return a.split(/\r\n?|\n/)},bn=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(x){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},en=function(){var a=Xe("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),on=null;function gn(a){if(on!=null)return on;var y=ht(a,Xe("span","x")),x=y.getBoundingClientRect(),b=Me(y,0,1).getBoundingClientRect();return on=Math.abs(x.left-b.left)>1}var $n={},hn={};function In(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),$n[a]=y}function xn(a,y){hn[a]=y}function Wn(a){if(typeof a=="string"&&hn.hasOwnProperty(a))a=hn[a];else if(a&&typeof a.name=="string"&&hn.hasOwnProperty(a.name)){var y=hn[a.name];typeof y=="string"&&(y={name:y}),a=ne(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Wn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Wn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function lr(a,y){y=Wn(y);var x=$n[y.name];if(!x)return lr(a,"text/plain");var b=x(a,y);if(qn.hasOwnProperty(y.name)){var z=qn[y.name];for(var ie in z)z.hasOwnProperty(ie)&&(b.hasOwnProperty(ie)&&(b["_"+ie]=b[ie]),b[ie]=z[ie])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var se in y.modeProps)b[se]=y.modeProps[se];return b}var qn={};function Gn(a,y){var x=qn.hasOwnProperty(a)?qn[a]:qn[a]={};zt(y,x)}function cr(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var x={};for(var b in y){var z=y[b];z instanceof Array&&(z=z.concat([])),x[b]=z}return x}function gr(a,y){for(var x;a.innerMode&&(x=a.innerMode(y),!(!x||x.mode==a));)y=x.state,a=x.mode;return x||{mode:a,state:y}}function Ir(a,y,x){return a.startState?a.startState(y,x):!0}var pr=function(a,y,x){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};pr.prototype.eol=function(){return this.pos>=this.string.length},pr.prototype.sol=function(){return this.pos==this.lineStart},pr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},pr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},pr.prototype.eat=function(a){var y=this.string.charAt(this.pos),x;if(typeof a=="string"?x=y==a:x=y&&(a.test?a.test(y):a(y)),x)return++this.pos,y},pr.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},pr.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},pr.prototype.skipToEnd=function(){this.pos=this.string.length},pr.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},pr.prototype.backUp=function(a){this.pos-=a},pr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ce(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ce(this.string,this.lineStart,this.tabSize):0)},pr.prototype.indentation=function(){return Ce(this.string,null,this.tabSize)-(this.lineStart?Ce(this.string,this.lineStart,this.tabSize):0)},pr.prototype.match=function(a,y,x){if(typeof a=="string"){var b=function(se){return x?se.toLowerCase():se},z=this.string.substr(this.pos,a.length);if(b(z)==b(a))return y!==!1&&(this.pos+=a.length),!0}else{var ie=this.string.slice(this.pos).match(a);return ie&&ie.index>0?null:(ie&&y!==!1&&(this.pos+=ie[0].length),ie)}},pr.prototype.current=function(){return this.string.slice(this.start,this.pos)},pr.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},pr.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},pr.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function tn(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 x=a;!x.lines;)for(var b=0;;++b){var z=x.children[b],ie=z.chunkSize();if(y<ie){x=z;break}y-=ie}return x.lines[y]}function En(a,y,x){var b=[],z=y.line;return a.iter(y.line,x.line+1,function(ie){var se=ie.text;z==x.line&&(se=se.slice(0,x.ch)),z==y.line&&(se=se.slice(y.ch)),b.push(se),++z}),b}function An(a,y,x){var b=[];return a.iter(y,x,function(z){b.push(z.text)}),b}function yr(a,y){var x=y-a.height;if(x)for(var b=a;b;b=b.parent)b.height+=x}function st(a){if(a.parent==null)return null;for(var y=a.parent,x=vt(y.lines,a),b=y.parent;b;y=b,b=b.parent)for(var z=0;b.children[z]!=y;++z)x+=b.children[z].chunkSize();return x+y.first}function xt(a,y){var x=a.first;e:do{for(var b=0;b<a.children.length;++b){var z=a.children[b],ie=z.height;if(y<ie){a=z;continue e}y-=ie,x+=z.chunkSize()}return x}while(!a.lines);for(var se=0;se<a.lines.length;++se){var fe=a.lines[se],ve=fe.height;if(y<ve)break;y-=ve}return x+se}function Le(a,y){return y>=a.first&&y<a.first+a.size}function ct(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function $e(a,y,x){if(x===void 0&&(x=null),!(this instanceof $e))return new $e(a,y,x);this.line=a,this.ch=y,this.sticky=x}function dt(a,y){return a.line-y.line||a.ch-y.ch}function Pt(a,y){return a.sticky==y.sticky&&dt(a,y)==0}function yn(a){return $e(a.line,a.ch)}function Cn(a,y){return dt(a,y)<0?y:a}function Mn(a,y){return dt(a,y)<0?a:y}function Qt(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function _t(a,y){if(y.line<a.first)return $e(a.first,0);var x=a.first+a.size-1;return y.line>x?$e(x,tn(a,x).text.length):Yt(y,tn(a,y.line).text.length)}function Yt(a,y){var x=a.ch;return x==null||x>y?$e(a.line,y):x<0?$e(a.line,0):a}function Pn(a,y){for(var x=[],b=0;b<y.length;b++)x[b]=_t(a,y[b]);return x}var Fn=function(a,y){this.state=a,this.lookAhead=y},zn=function(a,y,x,b){this.state=y,this.doc=a,this.line=x,this.maxLookAhead=b||0,this.baseTokens=null,this.baseTokenPos=1};zn.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},zn.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}},zn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},zn.fromSaved=function(a,y,x){return y instanceof Fn?new zn(a,cr(a.mode,y.state),x,y.lookAhead):new zn(a,cr(a.mode,y),x)},zn.prototype.save=function(a){var y=a!==!1?cr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Fn(y,this.maxLookAhead):y};function jn(a,y,x,b){var z=[a.state.modeGen],ie={};Hr(a,y.text,a.doc.mode,x,function(we,yt){return z.push(we,yt)},ie,b);for(var se=x.state,fe=function(we){x.baseTokens=z;var yt=a.state.overlays[we],kt=1,ln=0;x.state=!0,Hr(a,y.text,yt.mode,x,function(qt,Nn){for(var Zn=kt;ln<qt;){var Jn=z[kt];Jn>qt&&z.splice(kt,1,qt,z[kt+1],Jn),kt+=2,ln=Math.min(qt,Jn)}if(Nn)if(yt.opaque)z.splice(Zn,kt-Zn,qt,"overlay "+Nn),kt=Zn+2;else for(;Zn<kt;Zn+=2){var sr=z[Zn+1];z[Zn+1]=(sr?sr+" ":"")+"overlay "+Nn}},ie),x.state=se,x.baseTokens=null,x.baseTokenPos=1},ve=0;ve<a.state.overlays.length;++ve)fe(ve);return{styles:z,classes:ie.bgClass||ie.textClass?ie:null}}function Dr(a,y,x){if(!y.styles||y.styles[0]!=a.state.modeGen){var b=Rr(a,st(y)),z=y.text.length>a.options.maxHighlightLength&&cr(a.doc.mode,b.state),ie=jn(a,y,b);z&&(b.state=z),y.stateAfter=b.save(!z),y.styles=ie.styles,ie.classes?y.styleClasses=ie.classes:y.styleClasses&&(y.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function Rr(a,y,x){var b=a.doc,z=a.display;if(!b.mode.startState)return new zn(b,!0,y);var ie=Yr(a,y,x),se=ie>b.first&&tn(b,ie-1).stateAfter,fe=se?zn.fromSaved(b,se,ie):new zn(b,Ir(b.mode),ie);return b.iter(ie,y,function(ve){zr(a,ve.text,fe);var we=fe.line;ve.stateAfter=we==y-1||we%5==0||we>=z.viewFrom&&we<z.viewTo?fe.save():null,fe.nextLine()}),x&&(b.modeFrontier=fe.line),fe}function zr(a,y,x,b){var z=a.doc.mode,ie=new pr(y,a.options.tabSize,x);for(ie.start=ie.pos=b||0,y==""&&mr(z,x.state);!ie.eol();)er(z,ie,x.state),ie.start=ie.pos}function mr(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var x=gr(a,y);if(x.mode.blankLine)return x.mode.blankLine(x.state)}}function er(a,y,x,b){for(var z=0;z<10;z++){b&&(b[0]=gr(a,x).mode);var ie=a.token(y,x);if(y.pos>y.start)return ie}throw new Error("Mode "+a.name+" failed to advance stream.")}var or=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function Or(a,y,x,b){var z=a.doc,ie=z.mode,se;y=_t(z,y);var fe=tn(z,y.line),ve=Rr(a,y.line,x),we=new pr(fe.text,a.options.tabSize,ve),yt;for(b&&(yt=[]);(b||we.pos<y.ch)&&!we.eol();)we.start=we.pos,se=er(ie,we,ve.state),b&&yt.push(new or(we,se,cr(z.mode,ve.state)));return b?yt:new or(we,se,ve.state)}function Qr(a,y){if(a)for(;;){var x=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!x)break;a=a.slice(0,x.index)+a.slice(x.index+x[0].length);var b=x[1]?"bgClass":"textClass";y[b]==null?y[b]=x[2]:new RegExp("(?:^|\\s)"+x[2]+"(?:$|\\s)").test(y[b])||(y[b]+=" "+x[2])}return a}function Hr(a,y,x,b,z,ie,se){var fe=x.flattenSpans;fe==null&&(fe=a.options.flattenSpans);var ve=0,we=null,yt=new pr(y,a.options.tabSize,b),kt,ln=a.options.addModeClass&&[null];for(y==""&&Qr(mr(x,b.state),ie);!yt.eol();){if(yt.pos>a.options.maxHighlightLength?(fe=!1,se&&zr(a,y,b,yt.pos),yt.pos=y.length,kt=null):kt=Qr(er(x,yt,b.state,ln),ie),ln){var qt=ln[0].name;qt&&(kt="m-"+(kt?qt+" "+kt:qt))}if(!fe||we!=kt){for(;ve<yt.start;)ve=Math.min(yt.start,ve+5e3),z(ve,we);we=kt}yt.start=yt.pos}for(;ve<yt.pos;){var Nn=Math.min(yt.pos,ve+5e3);z(Nn,we),ve=Nn}}function Yr(a,y,x){for(var b,z,ie=a.doc,se=x?-1:y-(a.doc.mode.innerMode?1e3:100),fe=y;fe>se;--fe){if(fe<=ie.first)return ie.first;var ve=tn(ie,fe-1),we=ve.stateAfter;if(we&&(!x||fe+(we instanceof Fn?we.lookAhead:0)<=ie.modeFrontier))return fe;var yt=Ce(ve.text,null,a.options.tabSize);(z==null||b>yt)&&(z=fe-1,b=yt)}return z}function Kr(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontier<y-10)){for(var x=a.first,b=y-1;b>x;b--){var z=tn(a,b).stateAfter;if(z&&(!(z instanceof Fn)||b+z.lookAhead<y)){x=b+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,x)}}var kr=!1,Fr=!1;function oi(){kr=!0}function qr(){Fr=!0}function ei(a,y,x){this.marker=a,this.from=y,this.to=x}function si(a,y){if(a)for(var x=0;x<a.length;++x){var b=a[x];if(b.marker==y)return b}}function ci(a,y){for(var x,b=0;b<a.length;++b)a[b]!=y&&(x||(x=[])).push(a[b]);return x}function Zr(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function ti(a,y,x){var b;if(a)for(var z=0;z<a.length;++z){var ie=a[z],se=ie.marker,fe=ie.from==null||(se.inclusiveLeft?ie.from<=y:ie.from<y);if(fe||ie.from==y&&se.type=="bookmark"&&(!x||!ie.marker.insertLeft)){var ve=ie.to==null||(se.inclusiveRight?ie.to>=y:ie.to>y);(b||(b=[])).push(new ei(se,ie.from,ve?null:ie.to))}}return b}function wr(a,y,x){var b;if(a)for(var z=0;z<a.length;++z){var ie=a[z],se=ie.marker,fe=ie.to==null||(se.inclusiveRight?ie.to>=y:ie.to>y);if(fe||ie.from==y&&se.type=="bookmark"&&(!x||ie.marker.insertLeft)){var ve=ie.from==null||(se.inclusiveLeft?ie.from<=y:ie.from<y);(b||(b=[])).push(new ei(se,ve?null:ie.from-y,ie.to==null?null:ie.to-y))}}return b}function mi(a,y){if(y.full)return null;var x=Le(a,y.from.line)&&tn(a,y.from.line).markedSpans,b=Le(a,y.to.line)&&tn(a,y.to.line).markedSpans;if(!x&&!b)return null;var z=y.from.ch,ie=y.to.ch,se=dt(y.from,y.to)==0,fe=ti(x,z,se),ve=wr(b,ie,se),we=y.text.length==1,yt=_e(y.text).length+(we?z:0);if(fe)for(var kt=0;kt<fe.length;++kt){var ln=fe[kt];if(ln.to==null){var qt=si(ve,ln.marker);qt?we&&(ln.to=qt.to==null?null:qt.to+yt):ln.to=z}}if(ve)for(var Nn=0;Nn<ve.length;++Nn){var Zn=ve[Nn];if(Zn.to!=null&&(Zn.to+=yt),Zn.from==null){var Jn=si(fe,Zn.marker);Jn||(Zn.from=yt,we&&(fe||(fe=[])).push(Zn))}else Zn.from+=yt,we&&(fe||(fe=[])).push(Zn)}fe&&(fe=Hi(fe)),ve&&ve!=fe&&(ve=Hi(ve));var sr=[fe];if(!we){var Er=y.text.length-2,ur;if(Er>0&&fe)for(var Nr=0;Nr<fe.length;++Nr)fe[Nr].to==null&&(ur||(ur=[])).push(new ei(fe[Nr].marker,null,null));for(var ai=0;ai<Er;++ai)sr.push(ur);sr.push(ve)}return sr}function Hi(a){for(var y=0;y<a.length;++y){var x=a[y];x.from!=null&&x.from==x.to&&x.marker.clearWhenEmpty!==!1&&a.splice(y--,1)}return a.length?a:null}function Ui(a,y,x){var b=null;if(a.iter(y.line,x.line+1,function(qt){if(qt.markedSpans)for(var Nn=0;Nn<qt.markedSpans.length;++Nn){var Zn=qt.markedSpans[Nn].marker;Zn.readOnly&&(!b||vt(b,Zn)==-1)&&(b||(b=[])).push(Zn)}}),!b)return null;for(var z=[{from:y,to:x}],ie=0;ie<b.length;++ie)for(var se=b[ie],fe=se.find(0),ve=0;ve<z.length;++ve){var we=z[ve];if(!(dt(we.to,fe.from)<0||dt(we.from,fe.to)>0)){var yt=[ve,1],kt=dt(we.from,fe.from),ln=dt(we.to,fe.to);(kt<0||!se.inclusiveLeft&&!kt)&&yt.push({from:we.from,to:fe.from}),(ln>0||!se.inclusiveRight&&!ln)&&yt.push({from:fe.to,to:we.to}),z.splice.apply(z,yt),ve+=yt.length-3}}return z}function yi(a){var y=a.markedSpans;if(y){for(var x=0;x<y.length;++x)y[x].marker.detachLine(a);a.markedSpans=null}}function Ii(a,y){if(y){for(var x=0;x<y.length;++x)y[x].marker.attachLine(a);a.markedSpans=y}}function bi(a){return a.inclusiveLeft?-1:0}function Ri(a){return a.inclusiveRight?1:0}function Ki(a,y){var x=a.lines.length-y.lines.length;if(x!=0)return x;var b=a.find(),z=y.find(),ie=dt(b.from,z.from)||bi(a)-bi(y);if(ie)return-ie;var se=dt(b.to,z.to)||Ri(a)-Ri(y);return se||y.id-a.id}function ni(a,y){var x=Fr&&a.markedSpans,b;if(x)for(var z=void 0,ie=0;ie<x.length;++ie)z=x[ie],z.marker.collapsed&&(y?z.from:z.to)==null&&(!b||Ki(b,z.marker)<0)&&(b=z.marker);return b}function ar(a){return ni(a,!0)}function wn(a){return ni(a,!1)}function Ln(a,y){var x=Fr&&a.markedSpans,b;if(x)for(var z=0;z<x.length;++z){var ie=x[z];ie.marker.collapsed&&(ie.from==null||ie.from<y)&&(ie.to==null||ie.to>y)&&(!b||Ki(b,ie.marker)<0)&&(b=ie.marker)}return b}function Rn(a,y,x,b,z){var ie=tn(a,y),se=Fr&&ie.markedSpans;if(se)for(var fe=0;fe<se.length;++fe){var ve=se[fe];if(ve.marker.collapsed){var we=ve.marker.find(0),yt=dt(we.from,x)||bi(ve.marker)-bi(z),kt=dt(we.to,b)||Ri(ve.marker)-Ri(z);if(!(yt>=0&&kt<=0||yt<=0&&kt>=0)&&(yt<=0&&(ve.marker.inclusiveRight&&z.inclusiveLeft?dt(we.to,x)>=0:dt(we.to,x)>0)||yt>=0&&(ve.marker.inclusiveRight&&z.inclusiveLeft?dt(we.from,b)<=0:dt(we.from,b)<0)))return!0}}}function On(a){for(var y;y=ar(a);)a=y.find(-1,!0).line;return a}function Qn(a){for(var y;y=wn(a);)a=y.find(1,!0).line;return a}function dr(a){for(var y,x;y=wn(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function Dn(a,y){var x=tn(a,y),b=On(x);return x==b?y:st(b)}function Bn(a,y){if(y>a.lastLine())return y;var x=tn(a,y),b;if(!Un(a,x))return y;for(;b=wn(x);)x=b.find(1,!0).line;return st(x)+1}function Un(a,y){var x=Fr&&y.markedSpans;if(x){for(var b=void 0,z=0;z<x.length;++z)if(b=x[z],!!b.marker.collapsed){if(b.from==null)return!0;if(!b.marker.widgetNode&&b.from==0&&b.marker.inclusiveLeft&&Xn(a,y,b))return!0}}}function Xn(a,y,x){if(x.to==null){var b=x.marker.find(1,!0);return Xn(a,b.line,si(b.line.markedSpans,x.marker))}if(x.marker.inclusiveRight&&x.to==y.text.length)return!0;for(var z=void 0,ie=0;ie<y.markedSpans.length;++ie)if(z=y.markedSpans[ie],z.marker.collapsed&&!z.marker.widgetNode&&z.from==x.to&&(z.to==null||z.to!=x.from)&&(z.marker.inclusiveLeft||x.marker.inclusiveRight)&&Xn(a,y,z))return!0}function jr(a){a=On(a);for(var y=0,x=a.parent,b=0;b<x.lines.length;++b){var z=x.lines[b];if(z==a)break;y+=z.height}for(var ie=x.parent;ie;x=ie,ie=x.parent)for(var se=0;se<ie.children.length;++se){var fe=ie.children[se];if(fe==x)break;y+=fe.height}return y}function Si(a){if(a.height==0)return 0;for(var y=a.text.length,x,b=a;x=ar(b);){var z=x.find(0,!0);b=z.from.line,y+=z.from.ch-z.to.ch}for(b=a;x=wn(b);){var ie=x.find(0,!0);y-=b.text.length-ie.from.ch,b=ie.to.line,y+=b.text.length-ie.to.ch}return y}function di(a){var y=a.display,x=a.doc;y.maxLine=tn(x,x.first),y.maxLineLength=Si(y.maxLine),y.maxLineChanged=!0,x.iter(function(b){var z=Si(b);z>y.maxLineLength&&(y.maxLineLength=z,y.maxLine=b)})}var ki=function(a,y,x){this.text=a,Ii(this,y),this.height=x?x(this):1};ki.prototype.lineNo=function(){return st(this)},Ut(ki);function xi(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),yi(a),Ii(a,x);var z=b?b(a):1;z!=a.height&&yr(a,z)}function wi(a){a.parent=null,yi(a)}var Ai={},Di={};function Ti(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Di:Ai;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function so(a,y){var x=et("span",null,null,Se?"padding-right: .1px":null),b={pre:et("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var z=0;z<=(y.rest?y.rest.length:0);z++){var ie=z?y.rest[z-1]:y.line,se=void 0;b.pos=0,b.addToken=Mo,kn(a.display.measure)&&(se=xe(ie,a.doc.direction))&&(b.addToken=Ao(b.addToken,se)),b.map=[];var fe=y!=a.display.externalMeasured&&st(ie);Lr(ie,b,Dr(a,ie,fe)),ie.styleClasses&&(ie.styleClasses.bgClass&&(b.bgClass=jt(ie.styleClasses.bgClass,b.bgClass||"")),ie.styleClasses.textClass&&(b.textClass=jt(ie.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(Nt(a.display.measure))),z==0?(y.measure.map=b.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(b.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(Se){var ve=b.content.lastChild;(/\bcm-tab\b/.test(ve.className)||ve.querySelector&&ve.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return Ft(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=jt(b.pre.className,b.textClass||"")),b}function Oo(a){var y=Xe("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Mo(a,y,x,b,z,ie,se){if(y){var fe=a.splitSpaces?No(y,a.trailingSpace):y,ve=a.cm.state.specialChars,we=!1,yt;if(!ve.test(y))a.col+=y.length,yt=document.createTextNode(fe),a.map.push(a.pos,a.pos+y.length,yt),Ee&&be<9&&(we=!0),a.pos+=y.length;else{yt=document.createDocumentFragment();for(var kt=0;;){ve.lastIndex=kt;var ln=ve.exec(y),qt=ln?ln.index-kt:y.length-kt;if(qt){var Nn=document.createTextNode(fe.slice(kt,kt+qt));Ee&&be<9?yt.appendChild(Xe("span",[Nn])):yt.appendChild(Nn),a.map.push(a.pos,a.pos+qt,Nn),a.col+=qt,a.pos+=qt}if(!ln)break;kt+=qt+1;var Zn=void 0;if(ln[0]==" "){var Jn=a.cm.options.tabSize,sr=Jn-a.col%Jn;Zn=yt.appendChild(Xe("span",Rt(sr),"cm-tab")),Zn.setAttribute("role","presentation"),Zn.setAttribute("cm-text"," "),a.col+=sr}else ln[0]=="\r"||ln[0]==`
|
|
|
`?(Zn=yt.appendChild(Xe("span",ln[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Zn.setAttribute("cm-text",ln[0]),a.col+=1):(Zn=a.cm.options.specialCharPlaceholder(ln[0]),Zn.setAttribute("cm-text",ln[0]),Ee&&be<9?yt.appendChild(Xe("span",[Zn])):yt.appendChild(Zn),a.col+=1);a.map.push(a.pos,a.pos+1,Zn),a.pos++}}if(a.trailingSpace=fe.charCodeAt(y.length-1)==32,x||b||z||we||ie||se){var Er=x||"";b&&(Er+=b),z&&(Er+=z);var ur=Xe("span",[yt],Er,ie);if(se)for(var Nr in se)se.hasOwnProperty(Nr)&&Nr!="style"&&Nr!="class"&&ur.setAttribute(Nr,se[Nr]);return a.content.appendChild(ur)}a.content.appendChild(yt)}}function No(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",z=0;z<a.length;z++){var ie=a.charAt(z);ie==" "&&x&&(z==a.length-1||a.charCodeAt(z+1)==32)&&(ie="\xA0"),b+=ie,x=ie==" "}return b}function Ao(a,y){return function(x,b,z,ie,se,fe,ve){z=z?z+" cm-force-border":"cm-force-border";for(var we=x.pos,yt=we+b.length;;){for(var kt=void 0,ln=0;ln<y.length&&(kt=y[ln],!(kt.to>we&&kt.from<=we));ln++);if(kt.to>=yt)return a(x,b,z,ie,se,fe,ve);a(x,b.slice(0,kt.to-we),z,ie,null,fe,ve),ie=null,b=b.slice(kt.to-we),we=kt.to}}}function _r(a,y,x,b){var z=!b&&x.widgetNode;z&&a.map.push(a.pos,a.pos+y,z),!b&&a.cm.display.input.needsContentAttribute&&(z||(z=a.content.appendChild(document.createElement("span"))),z.setAttribute("cm-marker",x.id)),z&&(a.cm.display.input.setUneditable(z),a.content.appendChild(z)),a.pos+=y,a.trailingSpace=!1}function Lr(a,y,x){var b=a.markedSpans,z=a.text,ie=0;if(!b){for(var se=1;se<x.length;se+=2)y.addToken(y,z.slice(ie,ie=x[se]),Ti(x[se+1],y.cm.options));return}for(var fe=z.length,ve=0,we=1,yt="",kt,ln,qt=0,Nn,Zn,Jn,sr,Er;;){if(qt==ve){Nn=Zn=Jn=ln="",Er=null,sr=null,qt=1/0;for(var ur=[],Nr=void 0,ai=0;ai<b.length;++ai){var Xr=b[ai],Pi=Xr.marker;if(Pi.type=="bookmark"&&Xr.from==ve&&Pi.widgetNode)ur.push(Pi);else if(Xr.from<=ve&&(Xr.to==null||Xr.to>ve||Pi.collapsed&&Xr.to==ve&&Xr.from==ve)){if(Xr.to!=null&&Xr.to!=ve&&qt>Xr.to&&(qt=Xr.to,Zn=""),Pi.className&&(Nn+=" "+Pi.className),Pi.css&&(ln=(ln?ln+";":"")+Pi.css),Pi.startStyle&&Xr.from==ve&&(Jn+=" "+Pi.startStyle),Pi.endStyle&&Xr.to==qt&&(Nr||(Nr=[])).push(Pi.endStyle,Xr.to),Pi.title&&((Er||(Er={})).title=Pi.title),Pi.attributes)for(var fo in Pi.attributes)(Er||(Er={}))[fo]=Pi.attributes[fo];Pi.collapsed&&(!sr||Ki(sr.marker,Pi)<0)&&(sr=Xr)}else Xr.from>ve&&qt>Xr.from&&(qt=Xr.from)}if(Nr)for(var Jo=0;Jo<Nr.length;Jo+=2)Nr[Jo+1]==qt&&(Zn+=" "+Nr[Jo]);if(!sr||sr.from==ve)for(var Io=0;Io<ur.length;++Io)_r(y,0,ur[Io]);if(sr&&(sr.from||0)==ve){if(_r(y,(sr.to==null?fe+1:sr.to)-ve,sr.marker,sr.from==null),sr.to==null)return;sr.to==ve&&(sr=!1)}}if(ve>=fe)break;for(var Ta=Math.min(fe,qt);;){if(yt){var Ca=ve+yt.length;if(!sr){var Ho=Ca>Ta?yt.slice(0,Ta-ve):yt;y.addToken(y,Ho,kt?kt+Nn:Nn,Jn,ve+Ho.length==qt?Zn:"",ln,Er)}if(Ca>=Ta){yt=yt.slice(Ta-ve),ve=Ta;break}ve=Ca,Jn=""}yt=z.slice(ie,ie=x[we++]),kt=Ti(x[we++],y.cm.options)}}}function Gi(a,y,x){this.line=y,this.rest=dr(y),this.size=this.rest?st(_e(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Un(a,y)}function _i(a,y,x){for(var b=[],z,ie=y;ie<x;ie=z){var se=new Gi(a.doc,tn(a.doc,ie),ie);z=ie+se.size,b.push(se)}return b}var Wo=null;function Qa(a){Wo?Wo.ops.push(a):a.ownsGroup=Wo={ops:[a],delayedCallbacks:[]}}function Ma(a){var y=a.delayedCallbacks,x=0;do{for(;x<y.length;x++)y[x].call(null);for(var b=0;b<a.ops.length;b++){var z=a.ops[b];if(z.cursorActivityHandlers)for(;z.cursorActivityCalled<z.cursorActivityHandlers.length;)z.cursorActivityHandlers[z.cursorActivityCalled++].call(null,z.cm)}}while(x<y.length)}function qo(a,y){var x=a.ownsGroup;if(x)try{Ma(x)}finally{Wo=null,y(x)}}var ga=null;function uo(a,y){var x=Mt(a,y);if(x.length){var b=Array.prototype.slice.call(arguments,2),z;Wo?z=Wo.delayedCallbacks:ga?z=ga:(z=ga=[],setTimeout(Ea,0));for(var ie=function(fe){z.push(function(){return x[fe].apply(null,b)})},se=0;se<x.length;++se)ie(se)}}function Ea(){var a=ga;ga=null;for(var y=0;y<a.length;++y)a[y]()}function qa(a,y,x,b){for(var z=0;z<y.changes.length;z++){var ie=y.changes[z];ie=="text"?el(a,y):ie=="gutter"?fi(a,y,x,b):ie=="class"?Jr(a,y):ie=="widget"&&Vr(a,y,b)}y.changes=null}function Na(a){return a.node==a.text&&(a.node=Xe("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),Ee&&be<8&&(a.node.style.zIndex=2)),a.node}function Po(a,y){var x=y.bgClass?y.bgClass+" "+(y.line.bgClass||""):y.line.bgClass;if(x&&(x+=" CodeMirror-linebackground"),y.background)x?y.background.className=x:(y.background.parentNode.removeChild(y.background),y.background=null);else if(x){var b=Na(y);y.background=b.insertBefore(Xe("div",null,x),b.firstChild),a.display.input.setUneditable(y.background)}}function cl(a,y){var x=a.display.externalMeasured;return x&&x.line==y.line?(a.display.externalMeasured=null,y.measure=x.measure,x.built):so(a,y)}function el(a,y){var x=y.text.className,b=cl(a,y);y.text==y.node&&(y.node=b.pre),y.text.parentNode.replaceChild(b.pre,y.text),y.text=b.pre,b.bgClass!=y.bgClass||b.textClass!=y.textClass?(y.bgClass=b.bgClass,y.textClass=b.textClass,Jr(a,y)):x&&(y.text.className=x)}function Jr(a,y){Po(a,y),y.line.wrapClass?Na(y).className=y.line.wrapClass:y.node!=y.text&&(y.node.className="");var x=y.textClass?y.textClass+" "+(y.line.textClass||""):y.line.textClass;y.text.className=x||""}function fi(a,y,x,b){if(y.gutter&&(y.node.removeChild(y.gutter),y.gutter=null),y.gutterBackground&&(y.node.removeChild(y.gutterBackground),y.gutterBackground=null),y.line.gutterClass){var z=Na(y);y.gutterBackground=Xe("div",null,"CodeMirror-gutter-background "+y.line.gutterClass,"left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px; width: "+b.gutterTotalWidth+"px"),a.display.input.setUneditable(y.gutterBackground),z.insertBefore(y.gutterBackground,y.text)}var ie=y.line.gutterMarkers;if(a.options.lineNumbers||ie){var se=Na(y),fe=y.gutter=Xe("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px");if(a.display.input.setUneditable(fe),se.insertBefore(fe,y.text),y.line.gutterClass&&(fe.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!ie||!ie["CodeMirror-linenumbers"])&&(y.lineNumber=fe.appendChild(Xe("div",ct(a.options,x),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+b.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),ie)for(var ve=0;ve<a.display.gutterSpecs.length;++ve){var we=a.display.gutterSpecs[ve].className,yt=ie.hasOwnProperty(we)&&ie[we];yt&&fe.appendChild(Xe("div",[yt],"CodeMirror-gutter-elt","left: "+b.gutterLeft[we]+"px; width: "+b.gutterWidth[we]+"px"))}}}function Vr(a,y,x){y.alignable&&(y.alignable=null);for(var b=Qe("CodeMirror-linewidget"),z=y.node.firstChild,ie=void 0;z;z=ie)ie=z.nextSibling,b.test(z.className)&&y.node.removeChild(z);$i(a,y,x)}function ri(a,y,x,b){var z=cl(a,y);return y.text=y.node=z.pre,z.bgClass&&(y.bgClass=z.bgClass),z.textClass&&(y.textClass=z.textClass),Jr(a,y),fi(a,y,x,b),$i(a,y,b),y.node}function $i(a,y,x){if(to(a,y.line,y,x,!0),y.rest)for(var b=0;b<y.rest.length;b++)to(a,y.rest[b],y,x,!1)}function to(a,y,x,b,z){if(y.widgets)for(var ie=Na(x),se=0,fe=y.widgets;se<fe.length;++se){var ve=fe[se],we=Xe("div",[ve.node],"CodeMirror-linewidget"+(ve.className?" "+ve.className:""));ve.handleMouseEvents||we.setAttribute("cm-ignore-events","true"),La(ve,we,x,b),a.display.input.setUneditable(we),z&&ve.above?ie.insertBefore(we,x.gutter||x.text):ie.appendChild(we),uo(ve,"redraw")}}function La(a,y,x,b){if(a.noHScroll){(x.alignable||(x.alignable=[])).push(y);var z=b.wrapperWidth;y.style.left=b.fixedPos+"px",a.coverGutter||(z-=b.gutterTotalWidth,y.style.paddingLeft=b.gutterTotalWidth+"px"),y.style.width=z+"px"}a.coverGutter&&(y.style.zIndex=5,y.style.position="relative",a.noHScroll||(y.style.marginLeft=-b.gutterTotalWidth+"px"))}function ea(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!pt(document.body,a.node)){var x="position: relative;";a.coverGutter&&(x+="margin-left: -"+y.display.gutters.offsetWidth+"px;"),a.noHScroll&&(x+="width: "+y.display.wrapper.clientWidth+"px;"),ht(y.display.measure,Xe("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function Ko(a,y){for(var x=bt(y);x!=a.wrapper;x=x.parentNode)if(!x||x.nodeType==1&&x.getAttribute("cm-ignore-events")=="true"||x.parentNode==a.sizer&&x!=a.mover)return!0}function Co(a){return a.lineSpace.offsetTop}function Ia(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function $a(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=ht(a.measure,Xe("pre","x","CodeMirror-line-like")),x=window.getComputedStyle?window.getComputedStyle(y):y.currentStyle,b={left:parseInt(x.paddingLeft),right:parseInt(x.paddingRight)};return!isNaN(b.left)&&!isNaN(b.right)&&(a.cachedPaddingH=b),b}function sa(a){return Kt-a.display.nativeBarWidth}function Fa(a){return a.display.scroller.clientWidth-sa(a)-a.display.barWidth}function Xa(a){return a.display.scroller.clientHeight-sa(a)-a.display.barHeight}function Oa(a,y,x){var b=a.options.lineWrapping,z=b&&Fa(a);if(!y.measure.heights||b&&y.measure.width!=z){var ie=y.measure.heights=[];if(b){y.measure.width=z;for(var se=y.text.firstChild.getClientRects(),fe=0;fe<se.length-1;fe++){var ve=se[fe],we=se[fe+1];Math.abs(ve.bottom-we.bottom)>2&&ie.push((ve.bottom+we.top)/2-x.top)}}ie.push(x.bottom-x.top)}}function dl(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;b<a.rest.length;b++)if(a.rest[b]==y)return{map:a.measure.maps[b],cache:a.measure.caches[b]};for(var z=0;z<a.rest.length;z++)if(st(a.rest[z])>x)return{map:a.measure.maps[z],cache:a.measure.caches[z],before:!0}}function ms(a,y){y=On(y);var x=st(y),b=a.display.externalMeasured=new Gi(a.doc,y,x);b.lineN=x;var z=b.built=so(a,b);return b.text=z.pre,ht(a.display.lineMeasure,z.pre),b}function Jl(a,y,x,b){return Pa(a,tl(a,y),x,b)}function za(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[ja(a,y)];var x=a.display.externalMeasured;if(x&&y>=x.lineN&&y<x.lineN+x.size)return x}function tl(a,y){var x=st(y),b=za(a,x);b&&!b.text?b=null:b&&b.changes&&(qa(a,b,x,rl(a)),a.curOp.forceUpdate=!0),b||(b=ms(a,y));var z=dl(b,y,x);return{line:y,view:b,rect:null,map:z.map,cache:z.cache,before:z.before,hasHeights:!1}}function Pa(a,y,x,b,z){y.before&&(x=-1);var ie=x+(b||""),se;return y.cache.hasOwnProperty(ie)?se=y.cache[ie]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Oa(a,y.view,y.rect),y.hasHeights=!0),se=ql(a,y,x,b),se.bogus||(y.cache[ie]=se)),{left:se.left,right:se.right,top:z?se.rtop:se.top,bottom:z?se.rbottom:se.bottom}}var vs={left:0,right:0,top:0,bottom:0};function Ll(a,y,x){for(var b,z,ie,se,fe,ve,we=0;we<a.length;we+=3)if(fe=a[we],ve=a[we+1],y<fe?(z=0,ie=1,se="left"):y<ve?(z=y-fe,ie=z+1):(we==a.length-3||y==ve&&a[we+3]>y)&&(ie=ve-fe,z=ie-1,y>=ve&&(se="right")),z!=null){if(b=a[we+2],fe==ve&&x==(b.insertLeft?"left":"right")&&(se=x),x=="left"&&z==0)for(;we&&a[we-2]==a[we-3]&&a[we-1].insertLeft;)b=a[(we-=3)+2],se="left";if(x=="right"&&z==ve-fe)for(;we<a.length-3&&a[we+3]==a[we+4]&&!a[we+5].insertLeft;)b=a[(we+=3)+2],se="right";break}return{node:b,start:z,end:ie,collapse:se,coverStart:fe,coverEnd:ve}}function Ql(a,y){var x=vs;if(y=="left")for(var b=0;b<a.length&&(x=a[b]).left==x.right;b++);else for(var z=a.length-1;z>=0&&(x=a[z]).left==x.right;z--);return x}function ql(a,y,x,b){var z=Ll(y.map,x,b),ie=z.node,se=z.start,fe=z.end,ve=z.collapse,we;if(ie.nodeType==3){for(var yt=0;yt<4;yt++){for(;se&&ge(y.line.text.charAt(z.coverStart+se));)--se;for(;z.coverStart+fe<z.coverEnd&&ge(y.line.text.charAt(z.coverStart+fe));)++fe;if(Ee&&be<9&&se==0&&fe==z.coverEnd-z.coverStart?we=ie.parentNode.getBoundingClientRect():we=Ql(Me(ie,se,fe).getClientRects(),b),we.left||we.right||se==0)break;fe=se,se=se-1,ve="right"}Ee&&be<11&&(we=Zs(a.display.measure,we))}else{se>0&&(ve=b="right");var kt;a.options.lineWrapping&&(kt=ie.getClientRects()).length>1?we=kt[b=="right"?kt.length-1:0]:we=ie.getBoundingClientRect()}if(Ee&&be<9&&!se&&(!we||!we.left&&!we.right)){var ln=ie.parentNode.getClientRects()[0];ln?we={left:ln.left,right:ln.left+Ra(a.display),top:ln.top,bottom:ln.bottom}:we=vs}for(var qt=we.top-y.rect.top,Nn=we.bottom-y.rect.top,Zn=(qt+Nn)/2,Jn=y.view.measure.heights,sr=0;sr<Jn.length-1&&!(Zn<Jn[sr]);sr++);var Er=sr?Jn[sr-1]:0,ur=Jn[sr],Nr={left:(ve=="right"?we.right:we.left)-y.rect.left,right:(ve=="left"?we.left:we.right)-y.rect.left,top:Er,bottom:ur};return!we.left&&!we.right&&(Nr.bogus=!0),a.options.singleCursorHeightPerLine||(Nr.rtop=qt,Nr.rbottom=Nn),Nr}function Zs(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!gn(a))return y;var x=screen.logicalXDPI/screen.deviceXDPI,b=screen.logicalYDPI/screen.deviceYDPI;return{left:y.left*x,right:y.right*x,top:y.top*b,bottom:y.bottom*b}}function Bl(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 Za(a){a.display.externalMeasure=null,Tt(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)Bl(a.display.view[y])}function fl(a){Za(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function xl(){return Ne&&qe?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Rl(){return Ne&&qe?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function hl(a){var y=0;if(a.widgets)for(var x=0;x<a.widgets.length;++x)a.widgets[x].above&&(y+=ea(a.widgets[x]));return y}function Al(a,y,x,b,z){if(!z){var ie=hl(y);x.top+=ie,x.bottom+=ie}if(b=="line")return x;b||(b="local");var se=jr(y);if(b=="local"?se+=Co(a.display):se-=a.display.viewOffset,b=="page"||b=="window"){var fe=a.display.lineSpace.getBoundingClientRect();se+=fe.top+(b=="window"?0:Rl());var ve=fe.left+(b=="window"?0:xl());x.left+=ve,x.right+=ve}return x.top+=se,x.bottom+=se,x}function es(a,y,x){if(x=="div")return y;var b=y.left,z=y.top;if(x=="page")b-=xl(),z-=Rl();else if(x=="local"||!x){var ie=a.display.sizer.getBoundingClientRect();b+=ie.left,z+=ie.top}var se=a.display.lineSpace.getBoundingClientRect();return{left:b-se.left,top:z-se.top}}function nl(a,y,x,b,z){return b||(b=tn(a.doc,y.line)),Al(a,b,Jl(a,b,y.ch,z),x)}function ta(a,y,x,b,z,ie){b=b||tn(a.doc,y.line),z||(z=tl(a,b));function se(Nn,Zn){var Jn=Pa(a,z,Nn,Zn?"right":"left",ie);return Zn?Jn.left=Jn.right:Jn.right=Jn.left,Al(a,b,Jn,x)}var fe=xe(b,a.doc.direction),ve=y.ch,we=y.sticky;if(ve>=b.text.length?(ve=b.text.length,we="before"):ve<=0&&(ve=0,we="after"),!fe)return se(we=="before"?ve-1:ve,we=="before");function yt(Nn,Zn,Jn){var sr=fe[Zn],Er=sr.level==1;return se(Jn?Nn-1:Nn,Er!=Jn)}var kt=Ke(fe,ve,we),ln=Fe,qt=yt(ve,kt,we=="before");return ln!=null&&(qt.other=yt(ve,ln,we!="before")),qt}function Bi(a,y){var x=0;y=_t(a.doc,y),a.options.lineWrapping||(x=Ra(a.display)*y.ch);var b=tn(a.doc,y.line),z=jr(b)+Co(a.display);return{left:x,right:x,top:z,bottom:z+b.height}}function hi(a,y,x,b,z){var ie=$e(a,y,x);return ie.xRel=z,b&&(ie.outside=b),ie}function $o(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return hi(b.first,0,null,-1,-1);var z=xt(b,x),ie=b.first+b.size-1;if(z>ie)return hi(b.first+b.size-1,tn(b,ie).text.length,null,1,1);y<0&&(y=0);for(var se=tn(b,z);;){var fe=Ba(a,se,z,y,x),ve=Ln(se,fe.ch+(fe.xRel>0||fe.outside>0?1:0));if(!ve)return fe;var we=ve.find(1);if(we.line==z)return we;se=tn(b,z=we.line)}}function na(a,y,x,b){b-=hl(y);var z=y.text.length,ie=ke(function(se){return Pa(a,x,se-1).bottom<=b},z,0);return z=ke(function(se){return Pa(a,x,se).top>b},ie,z),{begin:ie,end:z}}function So(a,y,x,b){x||(x=tl(a,y));var z=Al(a,y,Pa(a,x,b),"line").top;return na(a,y,x,z)}function Fo(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Ba(a,y,x,b,z){z-=jr(y);var ie=tl(a,y),se=hl(y),fe=0,ve=y.text.length,we=!0,yt=xe(y,a.doc.direction);if(yt){var kt=(a.options.lineWrapping?Ha:ka)(a,y,x,ie,yt,b,z);we=kt.level!=1,fe=we?kt.from:kt.to-1,ve=we?kt.to:kt.from-1}var ln=null,qt=null,Nn=ke(function(ai){var Xr=Pa(a,ie,ai);return Xr.top+=se,Xr.bottom+=se,Fo(Xr,b,z,!1)?(Xr.top<=z&&Xr.left<=b&&(ln=ai,qt=Xr),!0):!1},fe,ve),Zn,Jn,sr=!1;if(qt){var Er=b-qt.left<qt.right-b,ur=Er==we;Nn=ln+(ur?0:1),Jn=ur?"after":"before",Zn=Er?qt.left:qt.right}else{!we&&(Nn==ve||Nn==fe)&&Nn++,Jn=Nn==0?"after":Nn==y.text.length?"before":Pa(a,ie,Nn-(we?1:0)).bottom+se<=z==we?"after":"before";var Nr=ta(a,$e(x,Nn,Jn),"line",y,ie);Zn=Nr.left,sr=z<Nr.top?-1:z>=Nr.bottom?1:0}return Nn=lt(y.text,Nn,1),hi(x,Nn,Jn,sr,b-Zn)}function ka(a,y,x,b,z,ie,se){var fe=ke(function(kt){var ln=z[kt],qt=ln.level!=1;return Fo(ta(a,$e(x,qt?ln.to:ln.from,qt?"before":"after"),"line",y,b),ie,se,!0)},0,z.length-1),ve=z[fe];if(fe>0){var we=ve.level!=1,yt=ta(a,$e(x,we?ve.from:ve.to,we?"after":"before"),"line",y,b);Fo(yt,ie,se,!0)&&yt.top>se&&(ve=z[fe-1])}return ve}function Ha(a,y,x,b,z,ie,se){var fe=na(a,y,b,se),ve=fe.begin,we=fe.end;/\s/.test(y.text.charAt(we-1))&&we--;for(var yt=null,kt=null,ln=0;ln<z.length;ln++){var qt=z[ln];if(!(qt.from>=we||qt.to<=ve)){var Nn=qt.level!=1,Zn=Pa(a,b,Nn?Math.min(we,qt.to)-1:Math.max(ve,qt.from)).right,Jn=Zn<ie?ie-Zn+1e9:Zn-ie;(!yt||kt>Jn)&&(yt=qt,kt=Jn)}}return yt||(yt=z[z.length-1]),yt.from<ve&&(yt={from:ve,to:yt.to,level:yt.level}),yt.to>we&&(yt={from:yt.from,to:we,level:yt.level}),yt}var pa;function ma(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(pa==null){pa=Xe("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)pa.appendChild(document.createTextNode("x")),pa.appendChild(Xe("br"));pa.appendChild(document.createTextNode("x"))}ht(a.measure,pa);var x=pa.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),Tt(a.measure),x||1}function Ra(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=Xe("span","xxxxxxxxxx"),x=Xe("pre",[y],"CodeMirror-line-like");ht(a.measure,x);var b=y.getBoundingClientRect(),z=(b.right-b.left)/10;return z>2&&(a.cachedCharWidth=z),z||10}function rl(a){for(var y=a.display,x={},b={},z=y.gutters.clientLeft,ie=y.gutters.firstChild,se=0;ie;ie=ie.nextSibling,++se){var fe=a.display.gutterSpecs[se].className;x[fe]=ie.offsetLeft+ie.clientLeft+z,b[fe]=ie.clientWidth}return{fixedPos:gs(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function gs(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function ys(a){var y=ma(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Ra(a.display)-3);return function(z){if(Un(a.doc,z))return 0;var ie=0;if(z.widgets)for(var se=0;se<z.widgets.length;se++)z.widgets[se].height&&(ie+=z.widgets[se].height);return x?ie+(Math.ceil(z.text.length/b)||1)*y:ie+y}}function Cl(a){var y=a.doc,x=ys(a);y.iter(function(b){var z=x(b);z!=b.height&&yr(b,z)})}function Ya(a,y,x,b){var z=a.display;if(!x&&bt(y).getAttribute("cm-not-content")=="true")return null;var ie,se,fe=z.lineSpace.getBoundingClientRect();try{ie=y.clientX-fe.left,se=y.clientY-fe.top}catch(kt){return null}var ve=$o(a,ie,se),we;if(b&&ve.xRel>0&&(we=tn(a.doc,ve.line).text).length==ve.ch){var yt=Ce(we,we.length,a.options.tabSize)-we.length;ve=$e(ve.line,Math.max(0,Math.round((ie-$a(a.display).left)/Ra(a.display))-yt))}return ve}function ja(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;b<x.length;b++)if(y-=x[b].size,y<0)return b}function ra(a,y,x,b){y==null&&(y=a.doc.first),x==null&&(x=a.doc.first+a.doc.size),b||(b=0);var z=a.display;if(b&&x<z.viewTo&&(z.updateLineNumbers==null||z.updateLineNumbers>y)&&(z.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=z.viewTo)Fr&&Dn(a.doc,y)<z.viewTo&&Wa(a);else if(x<=z.viewFrom)Fr&&Bn(a.doc,x+b)>z.viewFrom?Wa(a):(z.viewFrom+=b,z.viewTo+=b);else if(y<=z.viewFrom&&x>=z.viewTo)Wa(a);else if(y<=z.viewFrom){var ie=$l(a,x,x+b,1);ie?(z.view=z.view.slice(ie.index),z.viewFrom=ie.lineN,z.viewTo+=b):Wa(a)}else if(x>=z.viewTo){var se=$l(a,y,y,-1);se?(z.view=z.view.slice(0,se.index),z.viewTo=se.lineN):Wa(a)}else{var fe=$l(a,y,y,-1),ve=$l(a,x,x+b,1);fe&&ve?(z.view=z.view.slice(0,fe.index).concat(_i(a,fe.lineN,ve.lineN)).concat(z.view.slice(ve.index)),z.viewTo+=b):Wa(a)}var we=z.externalMeasured;we&&(x<we.lineN?we.lineN+=b:y<we.lineN+we.size&&(z.externalMeasured=null))}function il(a,y,x){a.curOp.viewChanged=!0;var b=a.display,z=a.display.externalMeasured;if(z&&y>=z.lineN&&y<z.lineN+z.size&&(b.externalMeasured=null),!(y<b.viewFrom||y>=b.viewTo)){var ie=b.view[ja(a,y)];if(ie.node!=null){var se=ie.changes||(ie.changes=[]);vt(se,x)==-1&&se.push(x)}}}function Wa(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function $l(a,y,x,b){var z=ja(a,y),ie,se=a.display.view;if(!Fr||x==a.doc.first+a.doc.size)return{index:z,lineN:x};for(var fe=a.display.viewFrom,ve=0;ve<z;ve++)fe+=se[ve].size;if(fe!=y){if(b>0){if(z==se.length-1)return null;ie=fe+se[z].size-y,z++}else ie=fe-y;y+=ie,x+=ie}for(;Dn(a.doc,x)!=x;){if(z==(b<0?0:se.length-1))return null;x+=b*se[z-(b<0?1:0)].size,z+=b}return{index:z,lineN:x}}function Hs(a,y,x){var b=a.display,z=b.view;z.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=_i(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=_i(a,y,b.viewFrom).concat(b.view):b.viewFrom<y&&(b.view=b.view.slice(ja(a,y))),b.viewFrom=y,b.viewTo<x?b.view=b.view.concat(_i(a,b.viewTo,x)):b.viewTo>x&&(b.view=b.view.slice(0,ja(a,x)))),b.viewTo=x}function bs(a){for(var y=a.display.view,x=0,b=0;b<y.length;b++){var z=y[b];!z.hidden&&(!z.node||z.changes)&&++x}return x}function pl(a){a.display.input.showSelection(a.display.input.prepareSelection())}function ru(a,y){y===void 0&&(y=!0);for(var x=a.doc,b={},z=b.cursors=document.createDocumentFragment(),ie=b.selection=document.createDocumentFragment(),se=0;se<x.sel.ranges.length;se++)if(!(!y&&se==x.sel.primIndex)){var fe=x.sel.ranges[se];if(!(fe.from().line>=a.display.viewTo||fe.to().line<a.display.viewFrom)){var ve=fe.empty();(ve||a.options.showCursorWhenSelecting)&&js(a,fe.head,z),ve||Ou(a,fe,ie)}}return b}function js(a,y,x){var b=ta(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),z=x.appendChild(Xe("div","\xA0","CodeMirror-cursor"));if(z.style.left=b.left+"px",z.style.top=b.top+"px",z.style.height=Math.max(0,b.bottom-b.top)*a.options.cursorHeight+"px",b.other){var ie=x.appendChild(Xe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ie.style.display="",ie.style.left=b.other.left+"px",ie.style.top=b.other.top+"px",ie.style.height=(b.other.bottom-b.other.top)*.85+"px"}}function Fl(a,y){return a.top-y.top||a.left-y.left}function Ou(a,y,x){var b=a.display,z=a.doc,ie=document.createDocumentFragment(),se=$a(a.display),fe=se.left,ve=Math.max(b.sizerWidth,Fa(a)-b.sizer.offsetLeft)-se.right,we=z.direction=="ltr";function yt(ur,Nr,ai,Xr){Nr<0&&(Nr=0),Nr=Math.round(Nr),Xr=Math.round(Xr),ie.appendChild(Xe("div",null,"CodeMirror-selected","position: absolute; left: "+ur+`px;
|
|
|
top: `+Nr+"px; width: "+(ai==null?ve-ur:ai)+`px;
|
|
|
height: `+(Xr-Nr)+"px"))}function kt(ur,Nr,ai){var Xr=tn(z,ur),Pi=Xr.text.length,fo,Jo;function Io(Ho,Sa){return nl(a,$e(ur,Ho),"div",Xr,Sa)}function Ta(Ho,Sa,la){var Uo=So(a,Xr,null,Ho),jo=Sa=="ltr"==(la=="after")?"left":"right",To=la=="after"?Uo.begin:Uo.end-(/\s/.test(Xr.text.charAt(Uo.end-1))?2:1);return Io(To,jo)[jo]}var Ca=xe(Xr,z.direction);return Ie(Ca,Nr||0,ai==null?Pi:ai,function(Ho,Sa,la,Uo){var jo=la=="ltr",To=Io(Ho,jo?"left":"right"),wa=Io(Sa-1,jo?"right":"left"),hs=Nr==null&&Ho==0,Nl=ai==null&&Sa==Pi,ha=Uo==0,ul=!Ca||Uo==Ca.length-1;if(wa.top-To.top<=3){var Qo=(we?hs:Nl)&&ha,Eu=(we?Nl:hs)&&ul,bl=Qo?fe:(jo?To:wa).left,Yl=Eu?ve:(jo?wa:To).right;yt(bl,To.top,Yl-bl,To.bottom)}else{var _l,va,ps,Iu;jo?(_l=we&&hs&&ha?fe:To.left,va=we?ve:Ta(Ho,la,"before"),ps=we?fe:Ta(Sa,la,"after"),Iu=we&&Nl&&ul?ve:wa.right):(_l=we?Ta(Ho,la,"before"):fe,va=!we&&hs&&ha?ve:To.right,ps=!we&&Nl&&ul?fe:wa.left,Iu=we?Ta(Sa,la,"after"):ve),yt(_l,To.top,va-_l,To.bottom),To.bottom<wa.top&&yt(fe,To.bottom,null,wa.top),yt(ps,wa.top,Iu-ps,wa.bottom)}(!fo||Fl(To,fo)<0)&&(fo=To),Fl(wa,fo)<0&&(fo=wa),(!Jo||Fl(To,Jo)<0)&&(Jo=To),Fl(wa,Jo)<0&&(Jo=wa)}),{start:fo,end:Jo}}var ln=y.from(),qt=y.to();if(ln.line==qt.line)kt(ln.line,ln.ch,qt.ch);else{var Nn=tn(z,ln.line),Zn=tn(z,qt.line),Jn=On(Nn)==On(Zn),sr=kt(ln.line,ln.ch,Jn?Nn.text.length+1:null).end,Er=kt(qt.line,Jn?0:null,qt.ch).start;Jn&&(sr.top<Er.top-2?(yt(sr.right,sr.top,null,sr.bottom),yt(fe,Er.top,Er.left,Er.bottom)):yt(sr.right,sr.top,Er.left-sr.right,sr.bottom)),sr.bottom<Er.top&&yt(fe,sr.bottom,null,Er.top)}x.appendChild(ie)}function xs(a){if(a.state.focused){var y=a.display;clearInterval(y.blinker);var x=!0;y.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?y.blinker=setInterval(function(){a.hasFocus()||Sl(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function iu(a){a.state.focused||(a.display.input.focus(),Ks(a))}function Ws(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Sl(a))},100)}function Ks(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(Ft(a,"focus",a,y),a.state.focused=!0,ye(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Se&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),xs(a))}function Sl(a,y){a.state.delayingBlurEvent||(a.state.focused&&(Ft(a,"blur",a,y),a.state.focused=!1,Ve(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Gr(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b<y.view.length;b++){var z=y.view[b],ie=a.options.lineWrapping,se=void 0,fe=0;if(!z.hidden){if(Ee&&be<8){var ve=z.node.offsetTop+z.node.offsetHeight;se=ve-x,x=ve}else{var we=z.node.getBoundingClientRect();se=we.bottom-we.top,!ie&&z.text.firstChild&&(fe=z.text.firstChild.getBoundingClientRect().right-we.left-1)}var yt=z.line.height-se;if((yt>.005||yt<-.005)&&(yr(z.line,se),wl(z.line),z.rest))for(var kt=0;kt<z.rest.length;kt++)wl(z.rest[kt]);if(fe>a.display.sizerWidth){var ln=Math.ceil(fe/Ra(a.display));ln>a.display.maxLineLength&&(a.display.maxLineLength=ln,a.display.maxLine=z.line,a.display.maxLineChanged=!0)}}}}function wl(a){if(a.widgets)for(var y=0;y<a.widgets.length;++y){var x=a.widgets[y],b=x.node.parentNode;b&&(x.height=b.offsetHeight)}}function ol(a,y,x){var b=x&&x.top!=null?Math.max(0,x.top):a.scroller.scrollTop;b=Math.floor(b-Co(a));var z=x&&x.bottom!=null?x.bottom:b+a.wrapper.clientHeight,ie=xt(y,b),se=xt(y,z);if(x&&x.ensure){var fe=x.ensure.from.line,ve=x.ensure.to.line;fe<ie?(ie=fe,se=xt(y,jr(tn(y,fe))+a.wrapper.clientHeight)):Math.min(ve,y.lastLine())>=se&&(ie=xt(y,jr(tn(y,ve))-a.wrapper.clientHeight),se=ve)}return{from:ie,to:Math.max(se,ie+1)}}function ou(a,y){if(!mt(a,"scrollCursorIntoView")){var x=a.display,b=x.sizer.getBoundingClientRect(),z=null;if(y.top+b.top<0?z=!0:y.bottom+b.top>(window.innerHeight||document.documentElement.clientHeight)&&(z=!1),z!=null&&!It){var ie=Xe("div","\u200B",null,`position: absolute;
|
|
|
top: `+(y.top-x.viewOffset-Co(a.display))+`px;
|
|
|
height: `+(y.bottom-y.top+sa(a)+x.barHeight)+`px;
|
|
|
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(ie),ie.scrollIntoView(z),a.display.lineSpace.removeChild(ie)}}}function au(a,y,x,b){b==null&&(b=0);var z;!a.options.lineWrapping&&y==x&&(y=y.ch?$e(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?$e(y.line,y.ch+1,"before"):y);for(var ie=0;ie<5;ie++){var se=!1,fe=ta(a,y),ve=!x||x==y?fe:ta(a,x);z={left:Math.min(fe.left,ve.left),top:Math.min(fe.top,ve.top)-b,right:Math.max(fe.left,ve.left),bottom:Math.max(fe.bottom,ve.bottom)+b};var we=Cs(a,z),yt=a.doc.scrollTop,kt=a.doc.scrollLeft;if(we.scrollTop!=null&&(ns(a,we.scrollTop),Math.abs(a.doc.scrollTop-yt)>1&&(se=!0)),we.scrollLeft!=null&&(Il(a,we.scrollLeft),Math.abs(a.doc.scrollLeft-kt)>1&&(se=!0)),!se)break}return z}function Pu(a,y){var x=Cs(a,y);x.scrollTop!=null&&ns(a,x.scrollTop),x.scrollLeft!=null&&Il(a,x.scrollLeft)}function Cs(a,y){var x=a.display,b=ma(a.display);y.top<0&&(y.top=0);var z=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,ie=Xa(a),se={};y.bottom-y.top>ie&&(y.bottom=y.top+ie);var fe=a.doc.height+Ia(x),ve=y.top<b,we=y.bottom>fe-b;if(y.top<z)se.scrollTop=ve?0:y.top;else if(y.bottom>z+ie){var yt=Math.min(y.top,(we?fe:y.bottom)-ie);yt!=z&&(se.scrollTop=yt)}var kt=a.options.fixedGutter?0:x.gutters.offsetWidth,ln=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-kt,qt=Fa(a)-x.gutters.offsetWidth,Nn=y.right-y.left>qt;return Nn&&(y.right=y.left+qt),y.left<10?se.scrollLeft=0:y.left<ln?se.scrollLeft=Math.max(0,y.left+kt-(Nn?0:10)):y.right>qt+ln-3&&(se.scrollLeft=y.right+(Nn?0:10)-qt),se}function Vs(a,y){y!=null&&(Ss(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function El(a){Ss(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function ts(a,y,x){(y!=null||x!=null)&&Ss(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function lu(a,y){Ss(a),a.curOp.scrollToPos=y}function Ss(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=Bi(a,y.from),b=Bi(a,y.to);Gs(a,x,b,y.margin)}}function Gs(a,y,x,b){var z=Cs(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});ts(a,z.scrollLeft,z.scrollTop)}function ns(a,y){Math.abs(a.doc.scrollTop-y)<2||(E||Es(a,{top:y}),Us(a,y,!0),E&&Es(a),jl(a,100))}function Us(a,y,x){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!x)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Il(a,y,x,b){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!b)&&(a.doc.scrollLeft=y,Re(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function zl(a){var y=a.display,x=y.gutters.offsetWidth,b=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?x:0,docHeight:b,scrollHeight:b+sa(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Ol=function(a,y,x){this.cm=x;var b=this.vert=Xe("div",[Xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=Xe("div",[Xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=z.tabIndex=-1,a(b),a(z),Ot(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),Ot(z,"scroll",function(){z.clientWidth&&y(z.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ee&&be<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ol.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var z=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+z)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var ie=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+ie)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b: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=Be&&!De?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new de,this.disableVert=new de},Ol.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var z=a.getBoundingClientRect(),ie=x=="vert"?document.elementFromPoint(z.right-1,(z.top+z.bottom)/2):document.elementFromPoint((z.right+z.left)/2,z.bottom-1);ie!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},Ol.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Zl=function(){};Zl.prototype.update=function(){return{bottom:0,right:0}},Zl.prototype.setScrollLeft=function(){},Zl.prototype.setScrollTop=function(){},Zl.prototype.clear=function(){};function Hl(a,y){y||(y=zl(a));var x=a.display.barWidth,b=a.display.barHeight;Xs(a,y);for(var z=0;z<4&&x!=a.display.barWidth||b!=a.display.barHeight;z++)x!=a.display.barWidth&&a.options.lineWrapping&&Gr(a),Xs(a,zl(a)),x=a.display.barWidth,b=a.display.barHeight}function Xs(a,y){var x=a.display,b=x.scrollbars.update(y);x.sizer.style.paddingRight=(x.barWidth=b.right)+"px",x.sizer.style.paddingBottom=(x.barHeight=b.bottom)+"px",x.heightForcer.style.borderBottom=b.bottom+"px solid transparent",b.right&&b.bottom?(x.scrollbarFiller.style.display="block",x.scrollbarFiller.style.height=b.bottom+"px",x.scrollbarFiller.style.width=b.right+"px"):x.scrollbarFiller.style.display="",b.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(x.gutterFiller.style.display="block",x.gutterFiller.style.height=b.bottom+"px",x.gutterFiller.style.width=y.gutterWidth+"px"):x.gutterFiller.style.display=""}var su={native:Ol,null:Zl};function Ys(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Ve(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new su[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Ot(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,x){x=="horizontal"?Il(a,y):ns(a,y)},a),a.display.scrollbars.addClass&&ye(a.display.wrapper,a.display.scrollbars.addClass)}var ku=0;function ml(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ku},Qa(a.curOp)}function Pl(a){var y=a.curOp;y&&qo(y,function(x){for(var b=0;b<x.ops.length;b++)x.ops[b].cm.curOp=null;uu(x)})}function uu(a){for(var y=a.ops,x=0;x<y.length;x++)Du(y[x]);for(var b=0;b<y.length;b++)cu(y[b]);for(var z=0;z<y.length;z++)Tu(y[z]);for(var ie=0;ie<y.length;ie++)du(y[ie]);for(var se=0;se<y.length;se++)Mu(y[se])}function Du(a){var y=a.cm,x=y.display;fu(y),a.updateMaxLine&&di(y),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<x.viewFrom||a.scrollToPos.to.line>=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new rs(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function cu(a){a.updatedDisplay=a.mustUpdate&&ws(a.cm,a.update)}function Tu(a){var y=a.cm,x=y.display;a.updatedDisplay&&Gr(y),a.barMeasure=zl(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=Jl(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+sa(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-Fa(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function du(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&Il(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var x=a.focus&&a.focus==Ye();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,x),(a.updatedDisplay||a.startHeight!=y.doc.height)&&Hl(y,a.barMeasure),a.updatedDisplay&&he(y,a.barMeasure),a.selectionChanged&&xs(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),x&&iu(a.cm)}function Mu(a){var y=a.cm,x=y.display,b=y.doc;if(a.updatedDisplay&&Ka(y,a.update),x.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(x.wheelStartX=x.wheelStartY=null),a.scrollTop!=null&&Us(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Il(y,a.scrollLeft,!0,!0),a.scrollToPos){var z=au(y,_t(b,a.scrollToPos.from),_t(b,a.scrollToPos.to),a.scrollToPos.margin);ou(y,z)}var ie=a.maybeHiddenMarkers,se=a.maybeUnhiddenMarkers;if(ie)for(var fe=0;fe<ie.length;++fe)ie[fe].lines.length||Ft(ie[fe],"hide");if(se)for(var ve=0;ve<se.length;++ve)se[ve].lines.length&&Ft(se[ve],"unhide");x.wrapper.offsetHeight&&(b.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&Ft(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function ua(a,y){if(a.curOp)return y();ml(a);try{return y()}finally{Pl(a)}}function Vo(a,y){return function(){if(a.curOp)return y.apply(a,arguments);ml(a);try{return y.apply(a,arguments)}finally{Pl(a)}}}function ia(a){return function(){if(this.curOp)return a.apply(this,arguments);ml(this);try{return a.apply(this,arguments)}finally{Pl(this)}}}function zo(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);ml(y);try{return a.apply(this,arguments)}finally{Pl(y)}}}function jl(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,nt(_s,a))}function _s(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Rr(a,y.highlightFrontier),z=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(ie){if(b.line>=a.display.viewFrom){var se=ie.styles,fe=ie.text.length>a.options.maxHighlightLength?cr(y.mode,b.state):null,ve=jn(a,ie,b,!0);fe&&(b.state=fe),ie.styles=ve.styles;var we=ie.styleClasses,yt=ve.classes;yt?ie.styleClasses=yt:we&&(ie.styleClasses=null);for(var kt=!se||se.length!=ie.styles.length||we!=yt&&(!we||!yt||we.bgClass!=yt.bgClass||we.textClass!=yt.textClass),ln=0;!kt&&ln<se.length;++ln)kt=se[ln]!=ie.styles[ln];kt&&z.push(b.line),ie.stateAfter=b.save(),b.nextLine()}else ie.text.length<=a.options.maxHighlightLength&&zr(a,ie.text,b),ie.stateAfter=b.line%5==0?b.save():null,b.nextLine();if(+new Date>x)return jl(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),z.length&&ua(a,function(){for(var ie=0;ie<z.length;ie++)il(a,z[ie],"text")})}}var rs=function(a,y,x){var b=a.display;this.viewport=y,this.visible=ol(b,a.doc,y),this.editorIsHidden=!b.wrapper.offsetWidth,this.wrapperHeight=b.wrapper.clientHeight,this.wrapperWidth=b.wrapper.clientWidth,this.oldDisplayWidth=Fa(a),this.force=x,this.dims=rl(a),this.events=[]};rs.prototype.signal=function(a,y){Dt(a,y)&&this.events.push(arguments)},rs.prototype.finish=function(){for(var a=0;a<this.events.length;a++)Ft.apply(null,this.events[a])};function fu(a){var y=a.display;!y.scrollbarsClipped&&y.scroller.offsetWidth&&(y.nativeBarWidth=y.scroller.offsetWidth-y.scroller.clientWidth,y.heightForcer.style.height=sa(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=sa(a)+"px",y.scrollbarsClipped=!0)}function hu(a){if(a.hasFocus())return null;var y=Ye();if(!y||!pt(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var b=window.getSelection();b.anchorNode&&b.extend&&pt(a.display.lineDiv,b.anchorNode)&&(x.anchorNode=b.anchorNode,x.anchorOffset=b.anchorOffset,x.focusNode=b.focusNode,x.focusOffset=b.focusOffset)}return x}function pu(a){if(!(!a||!a.activeElt||a.activeElt==Ye())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&pt(document.body,a.anchorNode)&&pt(document.body,a.focusNode))){var y=window.getSelection(),x=document.createRange();x.setEnd(a.anchorNode,a.anchorOffset),x.collapse(!1),y.removeAllRanges(),y.addRange(x),y.extend(a.focusNode,a.focusOffset)}}function ws(a,y){var x=a.display,b=a.doc;if(y.editorIsHidden)return Wa(a),!1;if(!y.force&&y.visible.from>=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&bs(a)==0)return!1;Je(a)&&(Wa(a),y.dims=rl(a));var z=b.first+b.size,ie=Math.max(y.visible.from-a.options.viewportMargin,b.first),se=Math.min(z,y.visible.to+a.options.viewportMargin);x.viewFrom<ie&&ie-x.viewFrom<20&&(ie=Math.max(b.first,x.viewFrom)),x.viewTo>se&&x.viewTo-se<20&&(se=Math.min(z,x.viewTo)),Fr&&(ie=Dn(a.doc,ie),se=Bn(a.doc,se));var fe=ie!=x.viewFrom||se!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;Hs(a,ie,se),x.viewOffset=jr(tn(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var ve=bs(a);if(!fe&&ve==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var we=hu(a);return ve>4&&(x.lineDiv.style.display="none"),mu(a,x.updateLineNumbers,y.dims),ve>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,pu(we),Tt(x.cursorDiv),Tt(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,fe&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,jl(a,400)),x.updateLineNumbers=null,!0}function Ka(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==Fa(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Ia(a.display)-Xa(a),x.top)}),y.visible=ol(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=ol(a.display,a.doc,x));if(!ws(a,y))break;Gr(a);var z=zl(a);pl(a),Hl(a,z),he(a,z),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function Es(a,y){var x=new rs(a,y);if(ws(a,x)){Gr(a),Ka(a,x);var b=zl(a);pl(a),Hl(a,b),he(a,b),x.finish()}}function mu(a,y,x){var b=a.display,z=a.options.lineNumbers,ie=b.lineDiv,se=ie.firstChild;function fe(Nn){var Zn=Nn.nextSibling;return Se&&Be&&a.display.currentWheelTarget==Nn?Nn.style.display="none":Nn.parentNode.removeChild(Nn),Zn}for(var ve=b.view,we=b.viewFrom,yt=0;yt<ve.length;yt++){var kt=ve[yt];if(!kt.hidden)if(!kt.node||kt.node.parentNode!=ie){var ln=ri(a,kt,we,x);ie.insertBefore(ln,se)}else{for(;se!=kt.node;)se=fe(se);var qt=z&&y!=null&&y<=we&&kt.lineNumber;kt.changes&&(vt(kt.changes,"gutter")>-1&&(qt=!1),qa(a,kt,we,x)),qt&&(Tt(kt.lineNumber),kt.lineNumber.appendChild(document.createTextNode(ct(a.options,we)))),se=kt.node.nextSibling}we+=kt.size}for(;se;)se=fe(se)}function me(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function he(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+sa(a)+"px"}function Re(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=gs(y)-y.scroller.scrollLeft+a.doc.scrollLeft,z=y.gutters.offsetWidth,ie=b+"px",se=0;se<x.length;se++)if(!x[se].hidden){a.options.fixedGutter&&(x[se].gutter&&(x[se].gutter.style.left=ie),x[se].gutterBackground&&(x[se].gutterBackground.style.left=ie));var fe=x[se].alignable;if(fe)for(var ve=0;ve<fe.length;ve++)fe[ve].style.left=ie}a.options.fixedGutter&&(y.gutters.style.left=b+z+"px")}}function Je(a){if(!a.options.lineNumbers)return!1;var y=a.doc,x=ct(a.options,y.first+y.size-1),b=a.display;if(x.length!=b.lineNumChars){var z=b.measure.appendChild(Xe("div",[Xe("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ie=z.firstChild.offsetWidth,se=z.offsetWidth-ie;return b.lineGutter.style.width="",b.lineNumInnerWidth=Math.max(ie,b.lineGutter.offsetWidth-se)+1,b.lineNumWidth=b.lineNumInnerWidth+se,b.lineNumChars=b.lineNumInnerWidth?x.length:-1,b.lineGutter.style.width=b.lineNumWidth+"px",me(a.display),!0}return!1}function gt(a,y){for(var x=[],b=!1,z=0;z<a.length;z++){var ie=a[z],se=null;if(typeof ie!="string"&&(se=ie.style,ie=ie.className),ie=="CodeMirror-linenumbers")if(y)b=!0;else continue;x.push({className:ie,style:se})}return y&&!b&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function Ct(a){var y=a.gutters,x=a.gutterSpecs;Tt(y),a.lineGutter=null;for(var b=0;b<x.length;++b){var z=x[b],ie=z.className,se=z.style,fe=y.appendChild(Xe("div",null,"CodeMirror-gutter "+ie));se&&(fe.style.cssText=se),ie=="CodeMirror-linenumbers"&&(a.lineGutter=fe,fe.style.width=(a.lineNumWidth||1)+"px")}y.style.display=x.length?"":"none",me(a)}function Wt(a){Ct(a.display),ra(a),Re(a)}function At(a,y,x,b){var z=this;this.input=x,z.scrollbarFiller=Xe("div",null,"CodeMirror-scrollbar-filler"),z.scrollbarFiller.setAttribute("cm-not-content","true"),z.gutterFiller=Xe("div",null,"CodeMirror-gutter-filler"),z.gutterFiller.setAttribute("cm-not-content","true"),z.lineDiv=et("div",null,"CodeMirror-code"),z.selectionDiv=Xe("div",null,null,"position: relative; z-index: 1"),z.cursorDiv=Xe("div",null,"CodeMirror-cursors"),z.measure=Xe("div",null,"CodeMirror-measure"),z.lineMeasure=Xe("div",null,"CodeMirror-measure"),z.lineSpace=et("div",[z.measure,z.lineMeasure,z.selectionDiv,z.cursorDiv,z.lineDiv],null,"position: relative; outline: none");var ie=et("div",[z.lineSpace],"CodeMirror-lines");z.mover=Xe("div",[ie],null,"position: relative"),z.sizer=Xe("div",[z.mover],"CodeMirror-sizer"),z.sizerWidth=null,z.heightForcer=Xe("div",null,null,"position: absolute; height: "+Kt+"px; width: 1px;"),z.gutters=Xe("div",null,"CodeMirror-gutters"),z.lineGutter=null,z.scroller=Xe("div",[z.sizer,z.heightForcer,z.gutters],"CodeMirror-scroll"),z.scroller.setAttribute("tabIndex","-1"),z.wrapper=Xe("div",[z.scrollbarFiller,z.gutterFiller,z.scroller],"CodeMirror"),Ee&&be<8&&(z.gutters.style.zIndex=-1,z.scroller.style.paddingRight=0),!Se&&!(E&&He)&&(z.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(z.wrapper):a(z.wrapper)),z.viewFrom=z.viewTo=y.first,z.reportedViewFrom=z.reportedViewTo=y.first,z.view=[],z.renderedView=null,z.externalMeasured=null,z.viewOffset=0,z.lastWrapHeight=z.lastWrapWidth=0,z.updateLineNumbers=null,z.nativeBarWidth=z.barHeight=z.barWidth=0,z.scrollbarsClipped=!1,z.lineNumWidth=z.lineNumInnerWidth=z.lineNumChars=null,z.alignWidgets=!1,z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.maxLine=null,z.maxLineLength=0,z.maxLineChanged=!1,z.wheelDX=z.wheelDY=z.wheelStartX=z.wheelStartY=null,z.shift=!1,z.selForContextMenu=null,z.activeTouch=null,z.gutterSpecs=gt(b.gutters,b.lineNumbers),Ct(z),x.init(z)}var Jt=0,Xt=null;Ee?Xt=-.53:E?Xt=15:Ne?Xt=-.7:We&&(Xt=-1/3);function Sn(a){var y=a.wheelDeltaX,x=a.wheelDeltaY;return y==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(y=a.detail),x==null&&a.detail&&a.axis==a.VERTICAL_AXIS?x=a.detail:x==null&&(x=a.wheelDelta),{x:y,y:x}}function dn(a){var y=Sn(a);return y.x*=Xt,y.y*=Xt,y}function un(a,y){var x=Sn(y),b=x.x,z=x.y,ie=a.display,se=ie.scroller,fe=se.scrollWidth>se.clientWidth,ve=se.scrollHeight>se.clientHeight;if(b&&fe||z&&ve){if(z&&Be&&Se){e:for(var we=y.target,yt=ie.view;we!=se;we=we.parentNode)for(var kt=0;kt<yt.length;kt++)if(yt[kt].node==we){a.display.currentWheelTarget=we;break e}}if(b&&!E&&!ce&&Xt!=null){z&&ve&&ns(a,Math.max(0,se.scrollTop+z*Xt)),Il(a,Math.max(0,se.scrollLeft+b*Xt)),(!z||z&&ve)&&sn(y),ie.wheelStartX=null;return}if(z&&Xt!=null){var ln=z*Xt,qt=a.doc.scrollTop,Nn=qt+ie.wrapper.clientHeight;ln<0?qt=Math.max(0,qt+ln-50):Nn=Math.min(a.doc.height,Nn+ln+50),Es(a,{top:qt,bottom:Nn})}Jt<20&&(ie.wheelStartX==null?(ie.wheelStartX=se.scrollLeft,ie.wheelStartY=se.scrollTop,ie.wheelDX=b,ie.wheelDY=z,setTimeout(function(){if(ie.wheelStartX!=null){var Zn=se.scrollLeft-ie.wheelStartX,Jn=se.scrollTop-ie.wheelStartY,sr=Jn&&ie.wheelDY&&Jn/ie.wheelDY||Zn&&ie.wheelDX&&Zn/ie.wheelDX;ie.wheelStartX=ie.wheelStartY=null,sr&&(Xt=(Xt*Jt+sr)/(Jt+1),++Jt)}},200)):(ie.wheelDX+=b,ie.wheelDY+=z))}}var rn=function(a,y){this.ranges=a,this.primIndex=y};rn.prototype.primary=function(){return this.ranges[this.primIndex]},rn.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 x=this.ranges[y],b=a.ranges[y];if(!Pt(x.anchor,b.anchor)||!Pt(x.head,b.head))return!1}return!0},rn.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new nn(yn(this.ranges[y].anchor),yn(this.ranges[y].head));return new rn(a,this.primIndex)},rn.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},rn.prototype.contains=function(a,y){y||(y=a);for(var x=0;x<this.ranges.length;x++){var b=this.ranges[x];if(dt(y,b.from())>=0&&dt(a,b.to())<=0)return x}return-1};var nn=function(a,y){this.anchor=a,this.head=y};nn.prototype.from=function(){return Mn(this.anchor,this.head)},nn.prototype.to=function(){return Cn(this.anchor,this.head)},nn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Hn(a,y,x){var b=a&&a.options.selectionsMayTouch,z=y[x];y.sort(function(ln,qt){return dt(ln.from(),qt.from())}),x=vt(y,z);for(var ie=1;ie<y.length;ie++){var se=y[ie],fe=y[ie-1],ve=dt(fe.to(),se.from());if(b&&!se.empty()?ve>0:ve>=0){var we=Mn(fe.from(),se.from()),yt=Cn(fe.to(),se.to()),kt=fe.empty()?se.from()==se.head:fe.from()==fe.head;ie<=x&&--x,y.splice(--ie,2,new nn(kt?yt:we,kt?we:yt))}}return new rn(y,x)}function Tn(a,y){return new rn([new nn(a,y||a)],0)}function Kn(a){return a.text?$e(a.from.line+a.text.length-1,_e(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Yn(a,y){if(dt(a,y.from)<0)return a;if(dt(a,y.to)<=0)return Kn(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,b=a.ch;return a.line==y.to.line&&(b+=Kn(y).ch-y.to.ch),$e(x,b)}function Vn(a,y){for(var x=[],b=0;b<a.sel.ranges.length;b++){var z=a.sel.ranges[b];x.push(new nn(Yn(z.anchor,y),Yn(z.head,y)))}return Hn(a.cm,x,a.sel.primIndex)}function tr(a,y,x){return a.line==y.line?$e(x.line,a.ch-y.ch+x.ch):$e(x.line+(a.line-y.line),a.ch)}function ir(a,y,x){for(var b=[],z=$e(a.first,0),ie=z,se=0;se<y.length;se++){var fe=y[se],ve=tr(fe.from,z,ie),we=tr(Kn(fe),z,ie);if(z=fe.to,ie=we,x=="around"){var yt=a.sel.ranges[se],kt=dt(yt.head,yt.anchor)<0;b[se]=new nn(kt?we:ve,kt?ve:we)}else b[se]=new nn(ve,ve)}return new rn(b,a.sel.primIndex)}function br(a){a.doc.mode=lr(a.options,a.doc.modeOption),fr(a)}function fr(a){a.doc.iter(function(y){y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,jl(a,100),a.state.modeGen++,a.curOp&&ra(a)}function li(a,y){return y.from.ch==0&&y.to.ch==0&&_e(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Ar(a,y,x,b){function z(Er){return x?x[Er]:null}function ie(Er,ur,Nr){xi(Er,ur,Nr,b),uo(Er,"change",Er,y)}function se(Er,ur){for(var Nr=[],ai=Er;ai<ur;++ai)Nr.push(new ki(we[ai],z(ai),b));return Nr}var fe=y.from,ve=y.to,we=y.text,yt=tn(a,fe.line),kt=tn(a,ve.line),ln=_e(we),qt=z(we.length-1),Nn=ve.line-fe.line;if(y.full)a.insert(0,se(0,we.length)),a.remove(we.length,a.size-we.length);else if(li(a,y)){var Zn=se(0,we.length-1);ie(kt,kt.text,qt),Nn&&a.remove(fe.line,Nn),Zn.length&&a.insert(fe.line,Zn)}else if(yt==kt)if(we.length==1)ie(yt,yt.text.slice(0,fe.ch)+ln+yt.text.slice(ve.ch),qt);else{var Jn=se(1,we.length-1);Jn.push(new ki(ln+yt.text.slice(ve.ch),qt,b)),ie(yt,yt.text.slice(0,fe.ch)+we[0],z(0)),a.insert(fe.line+1,Jn)}else if(we.length==1)ie(yt,yt.text.slice(0,fe.ch)+we[0]+kt.text.slice(ve.ch),z(0)),a.remove(fe.line+1,Nn);else{ie(yt,yt.text.slice(0,fe.ch)+we[0],z(0)),ie(kt,ln+kt.text.slice(ve.ch),qt);var sr=se(1,we.length-1);Nn>1&&a.remove(fe.line+1,Nn-1),a.insert(fe.line+1,sr)}uo(a,"change",a,y)}function Tr(a,y,x){function b(z,ie,se){if(z.linked)for(var fe=0;fe<z.linked.length;++fe){var ve=z.linked[fe];if(ve.doc!=ie){var we=se&&ve.sharedHist;x&&!we||(y(ve.doc,we),b(ve.doc,z,we))}}}b(a,null,!0)}function Ur(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Cl(a),br(a),xr(a),a.options.lineWrapping||di(a),a.options.mode=y.modeOption,ra(a)}function xr(a){(a.doc.direction=="rtl"?ye:Ve)(a.display.lineDiv,"CodeMirror-rtl")}function Cr(a){ua(a,function(){xr(a),ra(a)})}function nr(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 _n(a,y){var x={from:yn(y.from),to:Kn(y),text:En(a,y.from,y.to)};return ho(a,x,y.from.line,y.to.line+1),Tr(a,function(b){return ho(b,x,y.from.line,y.to.line+1)},!0),x}function vr(a){for(;a.length;){var y=_e(a);if(y.ranges)a.pop();else break}}function Sr(a,y){if(y)return vr(a.done),_e(a.done);if(a.done.length&&!_e(a.done).ranges)return _e(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),_e(a.done)}function $r(a,y,x,b){var z=a.history;z.undone.length=0;var ie=+new Date,se,fe;if((z.lastOp==b||z.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&z.lastModTime>ie-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(se=Sr(z,z.lastOp==b)))fe=_e(se.changes),dt(y.from,y.to)==0&&dt(y.from,fe.to)==0?fe.to=Kn(y):se.changes.push(_n(a,y));else{var ve=_e(z.done);for((!ve||!ve.ranges)&&vi(a.sel,z.done),se={changes:[_n(a,y)],generation:z.generation},z.done.push(se);z.done.length>z.undoDepth;)z.done.shift(),z.done[0].ranges||z.done.shift()}z.done.push(x),z.generation=++z.maxGeneration,z.lastModTime=z.lastSelTime=ie,z.lastOp=z.lastSelOp=b,z.lastOrigin=z.lastSelOrigin=y.origin,fe||Ft(a,"historyAdded")}function rr(a,y,x,b){var z=y.charAt(0);return z=="*"||z=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function pi(a,y,x,b){var z=a.history,ie=b&&b.origin;x==z.lastSelOp||ie&&z.lastSelOrigin==ie&&(z.lastModTime==z.lastSelTime&&z.lastOrigin==ie||rr(a,ie,_e(z.done),y))?z.done[z.done.length-1]=y:vi(y,z.done),z.lastSelTime=+new Date,z.lastSelOrigin=ie,z.lastSelOp=x,b&&b.clearRedo!==!1&&vr(z.undone)}function vi(a,y){var x=_e(y);x&&x.ranges&&x.equals(a)||y.push(a)}function ho(a,y,x,b){var z=y["spans_"+a.id],ie=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(se){se.markedSpans&&((z||(z=y["spans_"+a.id]={}))[ie]=se.markedSpans),++ie})}function io(a){if(!a)return null;for(var y,x=0;x<a.length;++x)a[x].marker.explicitlyCleared?y||(y=a.slice(0,x)):y&&y.push(a[x]);return y?y.length?y:null:a}function Ji(a,y){var x=y["spans_"+a.id];if(!x)return null;for(var b=[],z=0;z<y.text.length;++z)b.push(io(x[z]));return b}function oo(a,y){var x=Ji(a,y),b=mi(a,y);if(!x)return b;if(!b)return x;for(var z=0;z<x.length;++z){var ie=x[z],se=b[z];if(ie&&se)e:for(var fe=0;fe<se.length;++fe){for(var ve=se[fe],we=0;we<ie.length;++we)if(ie[we].marker==ve.marker)continue e;ie.push(ve)}else se&&(x[z]=se)}return x}function mo(a,y,x){for(var b=[],z=0;z<a.length;++z){var ie=a[z];if(ie.ranges){b.push(x?rn.prototype.deepCopy.call(ie):ie);continue}var se=ie.changes,fe=[];b.push({changes:fe});for(var ve=0;ve<se.length;++ve){var we=se[ve],yt=void 0;if(fe.push({from:we.from,to:we.to,text:we.text}),y)for(var kt in we)(yt=kt.match(/^spans_(\d+)$/))&&vt(y,Number(yt[1]))>-1&&(_e(fe)[kt]=we[kt],delete we[kt])}}return b}function gi(a,y,x,b){if(b){var z=a.anchor;if(x){var ie=dt(y,z)<0;ie!=dt(x,z)<0?(z=y,y=x):ie!=dt(y,x)<0&&(y=x)}return new nn(z,y)}else return new nn(x||y,y)}function Ci(a,y,x,b,z){z==null&&(z=a.cm&&(a.cm.display.shift||a.extend)),hr(a,new rn([gi(a.sel.primary(),y,x,z)],0),b)}function vo(a,y,x){for(var b=[],z=a.cm&&(a.cm.display.shift||a.extend),ie=0;ie<a.sel.ranges.length;ie++)b[ie]=gi(a.sel.ranges[ie],y[ie],null,z);var se=Hn(a.cm,b,a.sel.primIndex);hr(a,se,x)}function wo(a,y,x,b){var z=a.sel.ranges.slice(0);z[y]=x,hr(a,Hn(a.cm,z,a.sel.primIndex),b)}function Mr(a,y,x,b){hr(a,Tn(y,x),b)}function ii(a,y,x){var b={ranges:y.ranges,update:function(z){this.ranges=[];for(var ie=0;ie<z.length;ie++)this.ranges[ie]=new nn(_t(a,z[ie].anchor),_t(a,z[ie].head))},origin:x&&x.origin};return Ft(a,"beforeSelectionChange",a,b),a.cm&&Ft(a.cm,"beforeSelectionChange",a.cm,b),b.ranges!=y.ranges?Hn(a.cm,b.ranges,b.ranges.length-1):y}function Pr(a,y,x){var b=a.history.done,z=_e(b);z&&z.ranges?(b[b.length-1]=y,Oi(a,y,x)):hr(a,y,x)}function hr(a,y,x){Oi(a,y,x),pi(a,a.sel,a.cm?a.cm.curOp.id:NaN,x)}function Oi(a,y,x){(Dt(a,"beforeSelectionChange")||a.cm&&Dt(a.cm,"beforeSelectionChange"))&&(y=ii(a,y,x));var b=x&&x.bias||(dt(y.primary().head,a.sel.primary().head)<0?-1:1);Fi(a,Xi(a,y,b,!0)),!(x&&x.scroll===!1)&&a.cm&&El(a.cm)}function Fi(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,Zt(a.cm)),uo(a,"cursorActivity",a))}function no(a){Fi(a,Xi(a,a.sel,null,!1))}function Xi(a,y,x,b){for(var z,ie=0;ie<y.ranges.length;ie++){var se=y.ranges[ie],fe=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[ie],ve=ko(a,se.anchor,fe&&fe.anchor,x,b),we=ko(a,se.head,fe&&fe.head,x,b);(z||ve!=se.anchor||we!=se.head)&&(z||(z=y.ranges.slice(0,ie)),z[ie]=new nn(ve,we))}return z?Hn(a.cm,z,y.primIndex):y}function go(a,y,x,b,z){var ie=tn(a,y.line);if(ie.markedSpans)for(var se=0;se<ie.markedSpans.length;++se){var fe=ie.markedSpans[se],ve=fe.marker,we="selectLeft"in ve?!ve.selectLeft:ve.inclusiveLeft,yt="selectRight"in ve?!ve.selectRight:ve.inclusiveRight;if((fe.from==null||(we?fe.from<=y.ch:fe.from<y.ch))&&(fe.to==null||(yt?fe.to>=y.ch:fe.to>y.ch))){if(z&&(Ft(ve,"beforeCursorEnter"),ve.explicitlyCleared))if(ie.markedSpans){--se;continue}else break;if(!ve.atomic)continue;if(x){var kt=ve.find(b<0?1:-1),ln=void 0;if((b<0?yt:we)&&(kt=Br(a,kt,-b,kt&&kt.line==y.line?ie:null)),kt&&kt.line==y.line&&(ln=dt(kt,x))&&(b<0?ln<0:ln>0))return go(a,kt,y,b,z)}var qt=ve.find(b<0?-1:1);return(b<0?we:yt)&&(qt=Br(a,qt,b,qt.line==y.line?ie:null)),qt?go(a,qt,y,b,z):null}}return y}function ko(a,y,x,b,z){var ie=b||1,se=go(a,y,x,ie,z)||!z&&go(a,y,x,ie,!0)||go(a,y,x,-ie,z)||!z&&go(a,y,x,-ie,!0);return se||(a.cantEdit=!0,$e(a.first,0))}function Br(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?_t(a,$e(y.line-1)):null:x>0&&y.ch==(b||tn(a,y.line)).text.length?y.line<a.first+a.size-1?$e(y.line+1,0):null:new $e(y.line,y.ch+x)}function Wr(a){a.setSelection($e(a.firstLine(),0),$e(a.lastLine()),Pe)}function Zi(a,y,x){var b={canceled:!1,from:y.from,to:y.to,text:y.text,origin:y.origin,cancel:function(){return b.canceled=!0}};return x&&(b.update=function(z,ie,se,fe){z&&(b.from=_t(a,z)),ie&&(b.to=_t(a,ie)),se&&(b.text=se),fe!==void 0&&(b.origin=fe)}),Ft(a,"beforeChange",a,b),a.cm&&Ft(a.cm,"beforeChange",a.cm,b),b.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:b.from,to:b.to,text:b.text,origin:b.origin}}function Vi(a,y,x){if(a.cm){if(!a.cm.curOp)return Vo(a.cm,Vi)(a,y,x);if(a.cm.state.suppressEdits)return}if(!((Dt(a,"beforeChange")||a.cm&&Dt(a.cm,"beforeChange"))&&(y=Zi(a,y,!0),!y))){var b=kr&&!x&&Ui(a,y.from,y.to);if(b)for(var z=b.length-1;z>=0;--z)Wi(a,{from:b[z].from,to:b[z].to,text:z?[""]:y.text,origin:y.origin});else Wi(a,y)}}function Wi(a,y){if(!(y.text.length==1&&y.text[0]==""&&dt(y.from,y.to)==0)){var x=Vn(a,y);$r(a,y,x,a.cm?a.cm.curOp.id:NaN),ca(a,y,x,mi(a,y));var b=[];Tr(a,function(z,ie){!ie&&vt(b,z.history)==-1&&(Do(z.history,y),b.push(z.history)),ca(z,y,null,mi(z,y))})}}function Lo(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var z=a.history,ie,se=a.sel,fe=y=="undo"?z.done:z.undone,ve=y=="undo"?z.undone:z.done,we=0;we<fe.length&&(ie=fe[we],!(x?ie.ranges&&!ie.equals(a.sel):!ie.ranges));we++);if(we!=fe.length){for(z.lastOrigin=z.lastSelOrigin=null;;)if(ie=fe.pop(),ie.ranges){if(vi(ie,ve),x&&!ie.equals(a.sel)){hr(a,ie,{clearRedo:!1});return}se=ie}else if(b){fe.push(ie);return}else break;var yt=[];vi(se,ve),ve.push({changes:yt,generation:z.generation}),z.generation=ie.generation||++z.maxGeneration;for(var kt=Dt(a,"beforeChange")||a.cm&&Dt(a.cm,"beforeChange"),ln=function(Zn){var Jn=ie.changes[Zn];if(Jn.origin=y,kt&&!Zi(a,Jn,!1))return fe.length=0,{};yt.push(_n(a,Jn));var sr=Zn?Vn(a,Jn):_e(fe);ca(a,Jn,sr,oo(a,Jn)),!Zn&&a.cm&&a.cm.scrollIntoView({from:Jn.from,to:Kn(Jn)});var Er=[];Tr(a,function(ur,Nr){!Nr&&vt(Er,ur.history)==-1&&(Do(ur.history,Jn),Er.push(ur.history)),ca(ur,Jn,null,oo(ur,Jn))})},qt=ie.changes.length-1;qt>=0;--qt){var Nn=ln(qt);if(Nn)return Nn.v}}}}function yo(a,y){if(y!=0&&(a.first+=y,a.sel=new rn(Gt(a.sel.ranges,function(z){return new nn($e(z.anchor.line+y,z.anchor.ch),$e(z.head.line+y,z.head.ch))}),a.sel.primIndex),a.cm)){ra(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;b<x.viewTo;b++)il(a.cm,b,"gutter")}}function ca(a,y,x,b){if(a.cm&&!a.cm.curOp)return Vo(a.cm,ca)(a,y,x,b);if(y.to.line<a.first){yo(a,y.text.length-1-(y.to.line-y.from.line));return}if(!(y.from.line>a.lastLine())){if(y.from.line<a.first){var z=y.text.length-1-(a.first-y.from.line);yo(a,z),y={from:$e(a.first,0),to:$e(y.to.line+z,y.to.ch),text:[_e(y.text)],origin:y.origin}}var ie=a.lastLine();y.to.line>ie&&(y={from:y.from,to:$e(ie,tn(a,ie).text.length),text:[y.text[0]],origin:y.origin}),y.removed=En(a,y.from,y.to),x||(x=Vn(a,y)),a.cm?ao(a.cm,y,b):Ar(a,y,b),Oi(a,x,Pe),a.cantEdit&&ko(a,$e(a.firstLine(),0))&&(a.cantEdit=!1)}}function ao(a,y,x){var b=a.doc,z=a.display,ie=y.from,se=y.to,fe=!1,ve=ie.line;a.options.lineWrapping||(ve=st(On(tn(b,ie.line))),b.iter(ve,se.line+1,function(qt){if(qt==z.maxLine)return fe=!0,!0})),b.sel.contains(y.from,y.to)>-1&&Zt(a),Ar(b,y,x,ys(a)),a.options.lineWrapping||(b.iter(ve,ie.line+y.text.length,function(qt){var Nn=Si(qt);Nn>z.maxLineLength&&(z.maxLine=qt,z.maxLineLength=Nn,z.maxLineChanged=!0,fe=!1)}),fe&&(a.curOp.updateMaxLine=!0)),Kr(b,ie.line),jl(a,400);var we=y.text.length-(se.line-ie.line)-1;y.full?ra(a):ie.line==se.line&&y.text.length==1&&!li(a.doc,y)?il(a,ie.line,"text"):ra(a,ie.line,se.line+1,we);var yt=Dt(a,"changes"),kt=Dt(a,"change");if(kt||yt){var ln={from:ie,to:se,text:y.text,removed:y.removed,origin:y.origin};kt&&uo(a,"change",a,ln),yt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(ln)}a.display.selForContextMenu=null}function Mi(a,y,x,b,z){var ie;b||(b=x),dt(b,x)<0&&(ie=[b,x],x=ie[0],b=ie[1]),typeof y=="string"&&(y=a.splitLines(y)),Vi(a,{from:x,to:b,text:y,origin:z})}function Yi(a,y,x,b){x<a.line?a.line+=b:y<a.line&&(a.line=y,a.ch=0)}function Qi(a,y,x,b){for(var z=0;z<a.length;++z){var ie=a[z],se=!0;if(ie.ranges){ie.copied||(ie=a[z]=ie.deepCopy(),ie.copied=!0);for(var fe=0;fe<ie.ranges.length;fe++)Yi(ie.ranges[fe].anchor,y,x,b),Yi(ie.ranges[fe].head,y,x,b);continue}for(var ve=0;ve<ie.changes.length;++ve){var we=ie.changes[ve];if(x<we.from.line)we.from=$e(we.from.line+b,we.from.ch),we.to=$e(we.to.line+b,we.to.ch);else if(y<=we.to.line){se=!1;break}}se||(a.splice(0,z+1),z=0)}}function Do(a,y){var x=y.from.line,b=y.to.line,z=y.text.length-(b-x)-1;Qi(a.done,x,b,z),Qi(a.undone,x,b,z)}function po(a,y,x,b){var z=y,ie=y;return typeof y=="number"?ie=tn(a,Qt(a,y)):z=st(y),z==null?null:(b(ie,z)&&a.cm&&il(a.cm,z,x),ie)}function Ni(a){this.lines=a,this.parent=null;for(var y=0,x=0;x<a.length;++x)a[x].parent=this,y+=a[x].height;this.height=y}Ni.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var x=a,b=a+y;x<b;++x){var z=this.lines[x];this.height-=z.height,wi(z),uo(z,"delete")}this.lines.splice(a,y)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,y,x){this.height+=x,this.lines=this.lines.slice(0,a).concat(y).concat(this.lines.slice(a));for(var b=0;b<y.length;++b)y[b].parent=this},iterN:function(a,y,x){for(var b=a+y;a<b;++a)if(x(this.lines[a]))return!0}};function lo(a){this.children=a;for(var y=0,x=0,b=0;b<a.length;++b){var z=a[b];y+=z.chunkSize(),x+=z.height,z.parent=this}this.size=y,this.height=x,this.parent=null}lo.prototype={chunkSize:function(){return this.size},removeInner:function(a,y){this.size-=y;for(var x=0;x<this.children.length;++x){var b=this.children[x],z=b.chunkSize();if(a<z){var ie=Math.min(y,z-a),se=b.height;if(b.removeInner(a,ie),this.height-=se-b.height,z==ie&&(this.children.splice(x--,1),b.parent=null),(y-=ie)==0)break;a=0}else a-=z}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof Ni))){var fe=[];this.collapse(fe),this.children=[new Ni(fe)],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,x){this.size+=y.length,this.height+=x;for(var b=0;b<this.children.length;++b){var z=this.children[b],ie=z.chunkSize();if(a<=ie){if(z.insertInner(a,y,x),z.lines&&z.lines.length>50){for(var se=z.lines.length%25+25,fe=se;fe<z.lines.length;){var ve=new Ni(z.lines.slice(fe,fe+=25));z.height-=ve.height,this.children.splice(++b,0,ve),ve.parent=this}z.lines=z.lines.slice(0,se),this.maybeSpill()}break}a-=ie}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),x=new lo(y);if(a.parent){a.size-=x.size,a.height-=x.height;var z=vt(a.parent.children,a);a.parent.children.splice(z+1,0,x)}else{var b=new lo(a.children);b.parent=a,a.children=[b,x],a=b}x.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;b<this.children.length;++b){var z=this.children[b],ie=z.chunkSize();if(a<ie){var se=Math.min(y,ie-a);if(z.iterN(a,se,x))return!0;if((y-=se)==0)break;a=0}else a-=ie}}};var ji=function(a,y,x){if(x)for(var b in x)x.hasOwnProperty(b)&&(this[b]=x[b]);this.doc=a,this.node=y};ji.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,x=this.line,b=st(x);if(!(b==null||!y)){for(var z=0;z<y.length;++z)y[z]==this&&y.splice(z--,1);y.length||(x.widgets=null);var ie=ea(this);yr(x,Math.max(0,x.height-ie)),a&&(ua(a,function(){Go(a,x,-ie),il(a,b,"widget")}),uo(a,"lineWidgetCleared",a,this,b))}},ji.prototype.changed=function(){var a=this,y=this.height,x=this.doc.cm,b=this.line;this.height=null;var z=ea(this)-y;z&&(Un(this.doc,b)||yr(b,b.height+z),x&&ua(x,function(){x.curOp.forceUpdate=!0,Go(x,b,z),uo(x,"lineWidgetChanged",x,a,st(b))}))},Ut(ji);function Go(a,y,x){jr(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Vs(a,x)}function Eo(a,y,x,b){var z=new ji(a,x,b),ie=a.cm;return ie&&z.noHScroll&&(ie.display.alignWidgets=!0),po(a,y,"widget",function(se){var fe=se.widgets||(se.widgets=[]);if(z.insertAt==null?fe.push(z):fe.splice(Math.min(fe.length-1,Math.max(0,z.insertAt)),0,z),z.line=se,ie&&!Un(a,se)){var ve=jr(se)<a.scrollTop;yr(se,se.height+ea(z)),ve&&Vs(ie,z.height),ie.curOp.forceUpdate=!0}return!0}),ie&&uo(ie,"lineWidgetAdded",ie,z,typeof y=="number"?y:st(y)),z}var oa=0,da=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++oa};da.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&ml(a),Dt(this,"clear")){var x=this.find();x&&uo(this,"clear",x.from,x.to)}for(var b=null,z=null,ie=0;ie<this.lines.length;++ie){var se=this.lines[ie],fe=si(se.markedSpans,this);a&&!this.collapsed?il(a,st(se),"text"):a&&(fe.to!=null&&(z=st(se)),fe.from!=null&&(b=st(se))),se.markedSpans=ci(se.markedSpans,fe),fe.from==null&&this.collapsed&&!Un(this.doc,se)&&a&&yr(se,ma(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var ve=0;ve<this.lines.length;++ve){var we=On(this.lines[ve]),yt=Si(we);yt>a.display.maxLineLength&&(a.display.maxLine=we,a.display.maxLineLength=yt,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&ra(a,b,z+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&no(a.doc)),a&&uo(a,"markerCleared",a,this,b,z),y&&Pl(a),this.parent&&this.parent.clear()}},da.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,z=0;z<this.lines.length;++z){var ie=this.lines[z],se=si(ie.markedSpans,this);if(se.from!=null&&(x=$e(y?ie:st(ie),se.from),a==-1))return x;if(se.to!=null&&(b=$e(y?ie:st(ie),se.to),a==1))return b}return x&&{from:x,to:b}},da.prototype.changed=function(){var a=this,y=this.find(-1,!0),x=this,b=this.doc.cm;!y||!b||ua(b,function(){var z=y.line,ie=st(y.line),se=za(b,ie);if(se&&(Bl(se),b.curOp.selectionChanged=b.curOp.forceUpdate=!0),b.curOp.updateMaxLine=!0,!Un(x.doc,z)&&x.height!=null){var fe=x.height;x.height=null;var ve=ea(x)-fe;ve&&yr(z,z.height+ve)}uo(b,"markerChanged",b,a)})},da.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||vt(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},da.prototype.detachLine=function(a){if(this.lines.splice(vt(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},Ut(da);function Va(a,y,x,b,z){if(b&&b.shared)return Wl(a,y,x,b,z);if(a.cm&&!a.cm.curOp)return Vo(a.cm,Va)(a,y,x,b,z);var ie=new da(a,z),se=dt(y,x);if(b&&zt(b,ie,!1),se>0||se==0&&ie.clearWhenEmpty!==!1)return ie;if(ie.replacedWith&&(ie.collapsed=!0,ie.widgetNode=et("span",[ie.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||ie.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(ie.widgetNode.insertLeft=!0)),ie.collapsed){if(Rn(a,y.line,y,x,ie)||y.line!=x.line&&Rn(a,x.line,y,x,ie))throw new Error("Inserting collapsed marker partially overlapping an existing one");qr()}ie.addToHistory&&$r(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var fe=y.line,ve=a.cm,we;if(a.iter(fe,x.line+1,function(kt){ve&&ie.collapsed&&!ve.options.lineWrapping&&On(kt)==ve.display.maxLine&&(we=!0),ie.collapsed&&fe!=y.line&&yr(kt,0),Zr(kt,new ei(ie,fe==y.line?y.ch:null,fe==x.line?x.ch:null)),++fe}),ie.collapsed&&a.iter(y.line,x.line+1,function(kt){Un(a,kt)&&yr(kt,0)}),ie.clearOnEnter&&Ot(ie,"beforeCursorEnter",function(){return ie.clear()}),ie.readOnly&&(oi(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ie.collapsed&&(ie.id=++oa,ie.atomic=!0),ve){if(we&&(ve.curOp.updateMaxLine=!0),ie.collapsed)ra(ve,y.line,x.line+1);else if(ie.className||ie.startStyle||ie.endStyle||ie.css||ie.attributes||ie.title)for(var yt=y.line;yt<=x.line;yt++)il(ve,yt,"text");ie.atomic&&no(ve.doc),uo(ve,"markerAdded",ve,ie)}return ie}var qi=function(a,y){this.markers=a,this.primary=y;for(var x=0;x<a.length;++x)a[x].parent=this};qi.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();uo(this,"clear")}},qi.prototype.find=function(a,y){return this.primary.find(a,y)},Ut(qi);function Wl(a,y,x,b,z){b=zt(b),b.shared=!1;var ie=[Va(a,y,x,b,z)],se=ie[0],fe=b.widgetNode;return Tr(a,function(ve){fe&&(b.widgetNode=fe.cloneNode(!0)),ie.push(Va(ve,_t(ve,y),_t(ve,x),b,z));for(var we=0;we<ve.linked.length;++we)if(ve.linked[we].isParent)return;se=_e(ie)}),new qi(ie,se)}function aa(a){return a.findMarks($e(a.first,0),a.clipPos($e(a.lastLine())),function(y){return y.parent})}function Da(a,y){for(var x=0;x<y.length;x++){var b=y[x],z=b.find(),ie=a.clipPos(z.from),se=a.clipPos(z.to);if(dt(ie,se)){var fe=Va(a,ie,se,b.primary,b.primary.type);b.markers.push(fe),fe.parent=b}}}function ya(a){for(var y=function(b){var z=a[b],ie=[z.primary.doc];Tr(z.primary.doc,function(ve){return ie.push(ve)});for(var se=0;se<z.markers.length;se++){var fe=z.markers[se];vt(ie,fe.doc)==-1&&(fe.parent=null,z.markers.splice(se--,1))}},x=0;x<a.length;x++)y(x)}var fa=0,eo=function(a,y,x,b,z){if(!(this instanceof eo))return new eo(a,y,x,b,z);x==null&&(x=0),lo.call(this,[new Ni([new ki("",null)])]),this.first=x,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=x;var ie=$e(x,0);this.sel=Tn(ie),this.history=new nr(null),this.id=++fa,this.modeOption=y,this.lineSep=b,this.direction=z=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),Ar(this,{from:ie,to:ie,text:a}),hr(this,Tn(ie),Pe)};eo.prototype=ne(lo.prototype,{constructor:eo,iter:function(a,y,x){x?this.iterN(a-this.first,y-a,x):this.iterN(this.first,this.first+this.size,a)},insert:function(a,y){for(var x=0,b=0;b<y.length;++b)x+=y[b].height;this.insertInner(a-this.first,y,x)},remove:function(a,y){this.removeInner(a-this.first,y)},getValue:function(a){var y=An(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:zo(function(a){var y=$e(this.first,0),x=this.first+this.size-1;Vi(this,{from:y,to:$e(x,tn(this,x).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&ts(this.cm,0,0),hr(this,Tn(y),Pe)}),replaceRange:function(a,y,x,b){y=_t(this,y),x=x?_t(this,x):y,Mi(this,a,y,x,b)},getRange:function(a,y,x){var b=En(this,_t(this,a),_t(this,y));return x===!1?b:b.join(x||this.lineSeparator())},getLine:function(a){var y=this.getLineHandle(a);return y&&y.text},getLineHandle:function(a){if(Le(this,a))return tn(this,a)},getLineNumber:function(a){return st(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=tn(this,a)),On(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return _t(this,a)},getCursor:function(a){var y=this.sel.primary(),x;return a==null||a=="head"?x=y.head:a=="anchor"?x=y.anchor:a=="end"||a=="to"||a===!1?x=y.to():x=y.from(),x},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:zo(function(a,y,x){Mr(this,_t(this,typeof a=="number"?$e(a,y||0):a),null,x)}),setSelection:zo(function(a,y,x){Mr(this,_t(this,a),_t(this,y||a),x)}),extendSelection:zo(function(a,y,x){Ci(this,_t(this,a),y&&_t(this,y),x)}),extendSelections:zo(function(a,y){vo(this,Pn(this,a),y)}),extendSelectionsBy:zo(function(a,y){var x=Gt(this.sel.ranges,a);vo(this,Pn(this,x),y)}),setSelections:zo(function(a,y,x){if(a.length){for(var b=[],z=0;z<a.length;z++)b[z]=new nn(_t(this,a[z].anchor),_t(this,a[z].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),hr(this,Hn(this.cm,b,y),x)}}),addSelection:zo(function(a,y,x){var b=this.sel.ranges.slice(0);b.push(new nn(_t(this,a),_t(this,y||a))),hr(this,Hn(this.cm,b,b.length-1),x)}),getSelection:function(a){for(var y=this.sel.ranges,x,b=0;b<y.length;b++){var z=En(this,y[b].from(),y[b].to());x=x?x.concat(z):z}return a===!1?x:x.join(a||this.lineSeparator())},getSelections:function(a){for(var y=[],x=this.sel.ranges,b=0;b<x.length;b++){var z=En(this,x[b].from(),x[b].to());a!==!1&&(z=z.join(a||this.lineSeparator())),y[b]=z}return y},replaceSelection:function(a,y,x){for(var b=[],z=0;z<this.sel.ranges.length;z++)b[z]=a;this.replaceSelections(b,y,x||"+input")},replaceSelections:zo(function(a,y,x){for(var b=[],z=this.sel,ie=0;ie<z.ranges.length;ie++){var se=z.ranges[ie];b[ie]={from:se.from(),to:se.to(),text:this.splitLines(a[ie]),origin:x}}for(var fe=y&&y!="end"&&ir(this,b,y),ve=b.length-1;ve>=0;ve--)Vi(this,b[ve]);fe?Pr(this,fe):this.cm&&El(this.cm)}),undo:zo(function(){Lo(this,"undo")}),redo:zo(function(){Lo(this,"redo")}),undoSelection:zo(function(){Lo(this,"undo",!0)}),redoSelection:zo(function(){Lo(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,b=0;b<a.done.length;b++)a.done[b].ranges||++y;for(var z=0;z<a.undone.length;z++)a.undone[z].ranges||++x;return{undo:y,redo:x}},clearHistory:function(){var a=this;this.history=new nr(this.history.maxGeneration),Tr(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:mo(this.history.done),undone:mo(this.history.undone)}},setHistory:function(a){var y=this.history=new nr(this.history.maxGeneration);y.done=mo(a.done.slice(0),null,!0),y.undone=mo(a.undone.slice(0),null,!0)},setGutterMarker:zo(function(a,y,x){return po(this,a,"gutter",function(b){var z=b.gutterMarkers||(b.gutterMarkers={});return z[y]=x,!x&&re(z)&&(b.gutterMarkers=null),!0})}),clearGutter:zo(function(a){var y=this;this.iter(function(x){x.gutterMarkers&&x.gutterMarkers[a]&&po(y,x,"gutter",function(){return x.gutterMarkers[a]=null,re(x.gutterMarkers)&&(x.gutterMarkers=null),!0})})}),lineInfo:function(a){var y;if(typeof a=="number"){if(!Le(this,a)||(y=a,a=tn(this,a),!a))return null}else if(y=st(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:zo(function(a,y,x){return po(this,a,y=="gutter"?"gutter":"class",function(b){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!b[z])b[z]=x;else{if(Qe(x).test(b[z]))return!1;b[z]+=" "+x}return!0})}),removeLineClass:zo(function(a,y,x){return po(this,a,y=="gutter"?"gutter":"class",function(b){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",ie=b[z];if(ie)if(x==null)b[z]=null;else{var se=ie.match(Qe(x));if(!se)return!1;var fe=se.index+se[0].length;b[z]=ie.slice(0,se.index)+(!se.index||fe==ie.length?"":" ")+ie.slice(fe)||null}else return!1;return!0})}),addLineWidget:zo(function(a,y,x){return Eo(this,a,y,x)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,x){return Va(this,_t(this,a),_t(this,y),x,x&&x.type||"range")},setBookmark:function(a,y){var x={replacedWith:y&&(y.nodeType==null?y.widget:y),insertLeft:y&&y.insertLeft,clearWhenEmpty:!1,shared:y&&y.shared,handleMouseEvents:y&&y.handleMouseEvents};return a=_t(this,a),Va(this,a,a,x,"bookmark")},findMarksAt:function(a){a=_t(this,a);var y=[],x=tn(this,a.line).markedSpans;if(x)for(var b=0;b<x.length;++b){var z=x[b];(z.from==null||z.from<=a.ch)&&(z.to==null||z.to>=a.ch)&&y.push(z.marker.parent||z.marker)}return y},findMarks:function(a,y,x){a=_t(this,a),y=_t(this,y);var b=[],z=a.line;return this.iter(a.line,y.line+1,function(ie){var se=ie.markedSpans;if(se)for(var fe=0;fe<se.length;fe++){var ve=se[fe];!(ve.to!=null&&z==a.line&&a.ch>=ve.to||ve.from==null&&z!=a.line||ve.from!=null&&z==y.line&&ve.from>=y.ch)&&(!x||x(ve.marker))&&b.push(ve.marker.parent||ve.marker)}++z}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;b<x.length;++b)x[b].from!=null&&a.push(x[b].marker)}),a},posFromIndex:function(a){var y,x=this.first,b=this.lineSeparator().length;return this.iter(function(z){var ie=z.text.length+b;if(ie>a)return y=a,!0;a-=ie,++x}),_t(this,$e(x,y))},indexFromPos:function(a){a=_t(this,a);var y=a.ch;if(a.line<this.first||a.ch<0)return 0;var x=this.lineSeparator().length;return this.iter(this.first,a.line,function(b){y+=b.text.length+x}),y},copy:function(a){var y=new eo(An(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,x=this.first+this.size;a.from!=null&&a.from>y&&(y=a.from),a.to!=null&&a.to<x&&(x=a.to);var b=new eo(An(this,y,x),a.mode||this.modeOption,y,this.lineSep,this.direction);return a.sharedHist&&(b.history=this.history),(this.linked||(this.linked=[])).push({doc:b,sharedHist:a.sharedHist}),b.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],Da(b,aa(this)),b},unlinkDoc:function(a){if(a instanceof xo&&(a=a.doc),this.linked)for(var y=0;y<this.linked.length;++y){var x=this.linked[y];if(x.doc==a){this.linked.splice(y,1),a.unlinkDoc(this),ya(aa(this));break}}if(a.history==this.history){var b=[a.id];Tr(a,function(z){return b.push(z.id)},!0),a.history=new nr(null),a.history.done=mo(this.history.done,b),a.history.undone=mo(this.history.undone,b)}},iterLinkedDocs:function(a){Tr(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):cn(a)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:zo(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(y){return y.order=null}),this.cm&&Cr(this.cm))})}),eo.prototype.eachLine=eo.prototype.iter;var ba=0;function al(a){var y=this;if(is(y),!(mt(y,a)||Ko(y.display,a))){sn(a),Ee&&(ba=+new Date);var x=Ya(y,a,!0),b=a.dataTransfer.files;if(!(!x||y.isReadOnly()))if(b&&b.length&&window.FileReader&&window.File)for(var z=b.length,ie=Array(z),se=0,fe=function(){++se==z&&Vo(y,function(){x=_t(y.doc,x);var qt={from:x,to:x,text:y.doc.splitLines(ie.filter(function(Nn){return Nn!=null}).join(y.doc.lineSeparator())),origin:"paste"};Vi(y.doc,qt),Pr(y.doc,Tn(_t(y.doc,x),_t(y.doc,Kn(qt))))})()},ve=function(qt,Nn){if(y.options.allowDropFileTypes&&vt(y.options.allowDropFileTypes,qt.type)==-1){fe();return}var Zn=new FileReader;Zn.onerror=function(){return fe()},Zn.onload=function(){var Jn=Zn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Jn)){fe();return}ie[Nn]=Jn,fe()},Zn.readAsText(qt)},we=0;we<b.length;we++)ve(b[we],we);else{if(y.state.draggingText&&y.doc.sel.contains(x)>-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var yt=a.dataTransfer.getData("Text");if(yt){var kt;if(y.state.draggingText&&!y.state.draggingText.copy&&(kt=y.listSelections()),Oi(y.doc,Tn(x,x)),kt)for(var ln=0;ln<kt.length;++ln)Mi(y.doc,"",kt[ln].anchor,kt[ln].head,"drag");y.replaceSelection(yt,"around","paste"),y.display.input.focus()}}catch(qt){}}}}function Ga(a,y){if(Ee&&(!a.state.draggingText||+new Date-ba<100)){ze(y);return}if(!(mt(a,y)||Ko(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!We)){var x=Xe("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ce&&(x.width=x.height=1,a.display.wrapper.appendChild(x),x._top=x.offsetTop),y.dataTransfer.setDragImage(x,0,0),ce&&x.parentNode.removeChild(x)}}function Ua(a,y){var x=Ya(a,y);if(x){var b=document.createDocumentFragment();js(a,x,b),a.display.dragCursor||(a.display.dragCursor=Xe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),ht(a.display.dragCursor,b)}}function is(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function os(a){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),x=[],b=0;b<y.length;b++){var z=y[b].CodeMirror;z&&x.push(z)}x.length&&x[0].operation(function(){for(var ie=0;ie<x.length;ie++)a(x[ie])})}}var as=!1;function ls(){as||(Is(),as=!0)}function Is(){var a;Ot(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,os(ui)},100))}),Ot(window,"blur",function(){return os(Sl)})}function ui(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var Ei={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"},co=0;co<10;co++)Ei[co+48]=Ei[co+96]=String(co);for(var bo=65;bo<=90;bo++)Ei[bo]=String.fromCharCode(bo);for(var Zo=1;Zo<=12;Zo++)Ei[Zo+111]=Ei[Zo+63235]="F"+Zo;var Bo={};Bo.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"},Bo.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"},Bo.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"},Bo.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"]},Bo.default=Be?Bo.macDefault:Bo.pcDefault;function Aa(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var x,b,z,ie,se=0;se<y.length-1;se++){var fe=y[se];if(/^(cmd|meta|m)$/i.test(fe))ie=!0;else if(/^a(lt)?$/i.test(fe))x=!0;else if(/^(c|ctrl|control)$/i.test(fe))b=!0;else if(/^s(hift)?$/i.test(fe))z=!0;else throw new Error("Unrecognized modifier name: "+fe)}return x&&(a="Alt-"+a),b&&(a="Ctrl-"+a),ie&&(a="Cmd-"+a),z&&(a="Shift-"+a),a}function Xo(a){var y={};for(var x in a)if(a.hasOwnProperty(x)){var b=a[x];if(/^(name|fallthrough|(de|at)tach)$/.test(x))continue;if(b=="..."){delete a[x];continue}for(var z=Gt(x.split(" "),Aa),ie=0;ie<z.length;ie++){var se=void 0,fe=void 0;ie==z.length-1?(fe=z.join(" "),se=b):(fe=z.slice(0,ie+1).join(" "),se="...");var ve=y[fe];if(!ve)y[fe]=se;else if(ve!=se)throw new Error("Inconsistent bindings for "+fe)}delete a[x]}for(var we in y)a[we]=y[we];return a}function kl(a,y,x,b){y=ss(y);var z=y.call?y.call(a,b):y[a];if(z===!1)return"nothing";if(z==="...")return"multi";if(z!=null&&x(z))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return kl(a,y.fallthrough,x,b);for(var ie=0;ie<y.fallthrough.length;ie++){var se=kl(a,y.fallthrough[ie],x,b);if(se)return se}}}function Os(a){var y=typeof a=="string"?a:Ei[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function Kl(a,y,x){var b=a;return y.altKey&&b!="Alt"&&(a="Alt-"+a),(je?y.metaKey:y.ctrlKey)&&b!="Ctrl"&&(a="Ctrl-"+a),(je?y.ctrlKey:y.metaKey)&&b!="Mod"&&(a="Cmd-"+a),!x&&y.shiftKey&&b!="Shift"&&(a="Shift-"+a),a}function vl(a,y){if(ce&&a.keyCode==34&&a.char)return!1;var x=Ei[a.keyCode];return x==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(x=a.code),Kl(x,a,y))}function ss(a){return typeof a=="string"?Bo[a]:a}function gl(a,y){for(var x=a.doc.sel.ranges,b=[],z=0;z<x.length;z++){for(var ie=y(x[z]);b.length&&dt(ie.from,_e(b).to)<=0;){var se=b.pop();if(dt(se.from,ie.from)<0){ie.from=se.from;break}}b.push(ie)}ua(a,function(){for(var fe=b.length-1;fe>=0;fe--)Mi(a.doc,"",b[fe].from,b[fe].to,"+delete");El(a)})}function Ps(a,y,x){var b=lt(a.text,y+x,x);return b<0||b>a.text.length?null:b}function us(a,y,x){var b=Ps(a,y.ch,x);return b==null?null:new $e(y.line,b,x<0?"after":"before")}function ks(a,y,x,b,z){if(a){y.doc.direction=="rtl"&&(z=-z);var ie=xe(x,y.doc.direction);if(ie){var se=z<0?_e(ie):ie[0],fe=z<0==(se.level==1),ve=fe?"after":"before",we;if(se.level>0||y.doc.direction=="rtl"){var yt=tl(y,x);we=z<0?x.text.length-1:0;var kt=Pa(y,yt,we).top;we=ke(function(ln){return Pa(y,yt,ln).top==kt},z<0==(se.level==1)?se.from:se.to-1,we),ve=="before"&&(we=Ps(x,we,1))}else we=z<0?se.to:se.from;return new $e(b,we,ve)}}return new $e(b,z<0?x.text.length:0,z<0?"before":"after")}function Js(a,y,x,b){var z=xe(y,a.doc.direction);if(!z)return us(y,x,b);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var ie=Ke(z,x.ch,x.sticky),se=z[ie];if(a.doc.direction=="ltr"&&se.level%2==0&&(b>0?se.to>x.ch:se.from<x.ch))return us(y,x,b);var fe=function(sr,Er){return Ps(y,sr instanceof $e?sr.ch:sr,Er)},ve,we=function(sr){return a.options.lineWrapping?(ve=ve||tl(a,y),So(a,y,ve,sr)):{begin:0,end:y.text.length}},yt=we(x.sticky=="before"?fe(x,-1):x.ch);if(a.doc.direction=="rtl"||se.level==1){var kt=se.level==1==b<0,ln=fe(x,kt?1:-1);if(ln!=null&&(kt?ln<=se.to&&ln<=yt.end:ln>=se.from&&ln>=yt.begin)){var qt=kt?"before":"after";return new $e(x.line,ln,qt)}}var Nn=function(sr,Er,ur){for(var Nr=function(fo,Jo){return Jo?new $e(x.line,fe(fo,1),"before"):new $e(x.line,fo,"after")};sr>=0&&sr<z.length;sr+=Er){var ai=z[sr],Xr=Er>0==(ai.level!=1),Pi=Xr?ur.begin:fe(ur.end,-1);if(ai.from<=Pi&&Pi<ai.to||(Pi=Xr?ai.from:fe(ai.to,-1),ur.begin<=Pi&&Pi<ur.end))return Nr(Pi,Xr)}},Zn=Nn(ie+b,b,yt);if(Zn)return Zn;var Jn=b>0?yt.end:fe(yt.begin,-1);return Jn!=null&&!(b>0&&Jn==y.text.length)&&(Zn=Nn(b>0?0:z.length-1,b,we(Jn)),Zn)?Zn:null}var ll={selectAll:Wr,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Pe)},killLine:function(a){return gl(a,function(y){if(y.empty()){var x=tn(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line<a.lastLine()?{from:y.head,to:$e(y.head.line+1,0)}:{from:y.head,to:$e(y.head.line,x)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return gl(a,function(y){return{from:$e(y.from().line,0),to:_t(a.doc,$e(y.to().line+1,0))}})},delLineLeft:function(a){return gl(a,function(y){return{from:$e(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return gl(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return{from:b,to:y.from()}})},delWrappedLineRight:function(a){return gl(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div");return{from:y.from(),to:b}})},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 Ds(a,y.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(y){return Ts(a,y.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(y){return vu(a,y.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div")},rt)},goLineLeft:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:0,top:x},"div")},rt)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return b.ch<a.getLine(b.line).search(/\S/)?Ts(a,y.head):b},rt)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var y=[],x=a.listSelections(),b=a.options.tabSize,z=0;z<x.length;z++){var ie=x[z].from(),se=Ce(a.getLine(ie.line),ie.ch,b);y.push(Rt(b-se%b))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return ua(a,function(){for(var y=a.listSelections(),x=[],b=0;b<y.length;b++)if(y[b].empty()){var z=y[b].head,ie=tn(a.doc,z.line).text;if(ie){if(z.ch==ie.length&&(z=new $e(z.line,z.ch-1)),z.ch>0)z=new $e(z.line,z.ch+1),a.replaceRange(ie.charAt(z.ch-1)+ie.charAt(z.ch-2),$e(z.line,z.ch-2),z,"+transpose");else if(z.line>a.doc.first){var se=tn(a.doc,z.line-1).text;se&&(z=new $e(z.line,1),a.replaceRange(ie.charAt(0)+a.doc.lineSeparator()+se.charAt(se.length-1),$e(z.line-1,se.length-1),z,"+transpose"))}}x.push(new nn(z,z))}a.setSelections(x)})},newlineAndIndent:function(a){return ua(a,function(){for(var y=a.listSelections(),x=y.length-1;x>=0;x--)a.replaceRange(a.doc.lineSeparator(),y[x].anchor,y[x].head,"+input");y=a.listSelections();for(var b=0;b<y.length;b++)a.indentLine(y[b].from().line,null,!0);El(a)})},openLine:function(a){return a.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Ds(a,y){var x=tn(a.doc,y),b=On(x);return b!=x&&(y=st(b)),ks(!0,a,b,y,1)}function vu(a,y){var x=tn(a.doc,y),b=Qn(x);return b!=x&&(y=st(b)),ks(!0,a,x,y,-1)}function Ts(a,y){var x=Ds(a,y.line),b=tn(a.doc,x.line),z=xe(b,a.doc.direction);if(!z||z[0].level==0){var ie=Math.max(x.ch,b.text.search(/\S/)),se=y.line==x.line&&y.ch<=ie&&y.ch;return $e(x.line,se?0:ie,x.sticky)}return x}function Vl(a,y,x){if(typeof y=="string"&&(y=ll[y],!y))return!1;a.display.input.ensurePolled();var b=a.display.shift,z=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),x&&(a.display.shift=!1),z=y(a)!=Lt}finally{a.display.shift=b,a.state.suppressEdits=!1}return z}function gu(a,y,x){for(var b=0;b<a.state.keyMaps.length;b++){var z=kl(y,a.state.keyMaps[b],x,a);if(z)return z}return a.options.extraKeys&&kl(y,a.options.extraKeys,x,a)||kl(y,a.options.keyMap,x,a)}var yu=new de;function Gl(a,y,x,b){var z=a.state.keySeq;if(z){if(Os(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:yu.set(50,function(){a.state.keySeq==z&&(a.state.keySeq=null,a.display.input.reset())}),Ms(a,z+" "+y,x,b))return!0}return Ms(a,y,x,b)}function Ms(a,y,x,b){var z=gu(a,y,b);return z=="multi"&&(a.state.keySeq=y),z=="handled"&&uo(a,"keyHandled",a,y,x),(z=="handled"||z=="multi")&&(sn(x),xs(a)),!!z}function Ul(a,y){var x=vl(y,!0);return x?y.shiftKey&&!a.state.keySeq?Gl(a,"Shift-"+x,y,function(b){return Vl(a,b,!0)})||Gl(a,x,y,function(b){if(typeof b=="string"?/^go[A-Z]/.test(b):b.motion)return Vl(a,b)}):Gl(a,x,y,function(b){return Vl(a,b)}):!1}function Ns(a,y,x){return Gl(a,"'"+x+"'",y,function(b){return Vl(a,b,!0)})}var Xl=null;function Ls(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=Ye(),!mt(y,a))){Ee&&be<11&&a.keyCode==27&&(a.returnValue=!1);var x=a.keyCode;y.display.shift=x==16||a.shiftKey;var b=Ul(y,a);ce&&(Xl=b?x:null,!b&&x==88&&!en&&(Be?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),E&&!Be&&!b&&x==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Qs(y)}}function Qs(a){var y=a.display.lineDiv;ye(y,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(Ve(y,"CodeMirror-crosshair"),Vt(document,"keyup",x),Vt(document,"mouseover",x))}Ot(document,"keyup",x),Ot(document,"mouseover",x)}function Bs(a){a.keyCode==16&&(this.doc.sel.shift=!1),mt(this,a)}function Rs(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(Ko(y.display,a)||mt(y,a)||a.ctrlKey&&!a.altKey||Be&&a.metaKey)){var x=a.keyCode,b=a.charCode;if(ce&&x==Xl){Xl=null,sn(a);return}if(!(ce&&(!a.which||a.which<10)&&Ul(y,a))){var z=String.fromCharCode(b==null?x:b);z!="\b"&&(Ns(y,a,z)||y.display.input.onKeyPress(a))}}}var bu=400,cs=function(a,y,x){this.time=a,this.pos=y,this.button=x};cs.prototype.compare=function(a,y,x){return this.time+bu>a&&dt(y,this.pos)==0&&x==this.button};var yl,Dl;function As(a,y){var x=+new Date;return Dl&&Dl.compare(x,a,y)?(yl=Dl=null,"triple"):yl&&yl.compare(x,a,y)?(Dl=new cs(x,a,y),yl=null,"double"):(yl=new cs(x,a,y),Dl=null,"single")}function $s(a){var y=this,x=y.display;if(!(mt(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,Ko(x,a)){Se||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!_a(y,a)){var b=Ya(y,a),z=$t(a),ie=b?As(b,z):"single";window.focus(),z==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&xu(y,z,b,ie,a))&&(z==1?b?zi(y,b,ie,a):bt(a)==x.scroller&&sn(a):z==2?(b&&Ci(y.doc,b),setTimeout(function(){return x.input.focus()},20)):z==3&&(Te?y.display.input.onContextMenu(a):Ws(y)))}}}function xu(a,y,x,b,z){var ie="Click";return b=="double"?ie="Double"+ie:b=="triple"&&(ie="Triple"+ie),ie=(y==1?"Left":y==2?"Middle":"Right")+ie,Gl(a,Kl(ie,z),z,function(se){if(typeof se=="string"&&(se=ll[se]),!se)return!1;var fe=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),fe=se(a,x)!=Lt}finally{a.state.suppressEdits=!1}return fe})}function Li(a,y,x){var b=a.getOption("configureMouse"),z=b?b(a,y,x):{};if(z.unit==null){var ie=ut?x.shiftKey&&x.metaKey:x.altKey;z.unit=ie?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(z.extend==null||a.doc.extend)&&(z.extend=a.doc.extend||x.shiftKey),z.addNew==null&&(z.addNew=Be?x.metaKey:x.ctrlKey),z.moveOnDrag==null&&(z.moveOnDrag=!(Be?x.altKey:x.ctrlKey)),z}function zi(a,y,x,b){Ee?setTimeout(nt(iu,a),0):a.curOp.focus=Ye();var z=Li(a,x,b),ie=a.doc.sel,se;a.options.dragDrop&&ft&&!a.isReadOnly()&&x=="single"&&(se=ie.contains(y))>-1&&(dt((se=ie.ranges[se]).from(),y)<0||y.xRel>0)&&(dt(se.to(),y)>0||y.xRel<0)?Yo(a,b,y,z):_o(a,b,y,z)}function Yo(a,y,x,b){var z=a.display,ie=!1,se=Vo(a,function(we){Se&&(z.scroller.draggable=!1),a.state.draggingText=!1,Vt(z.wrapper.ownerDocument,"mouseup",se),Vt(z.wrapper.ownerDocument,"mousemove",fe),Vt(z.scroller,"dragstart",ve),Vt(z.scroller,"drop",se),ie||(sn(we),b.addNew||Ci(a.doc,x,null,null,b.extend),Se&&!We||Ee&&be==9?setTimeout(function(){z.wrapper.ownerDocument.body.focus({preventScroll:!0}),z.input.focus()},20):z.input.focus())}),fe=function(we){ie=ie||Math.abs(y.clientX-we.clientX)+Math.abs(y.clientY-we.clientY)>=10},ve=function(){return ie=!0};Se&&(z.scroller.draggable=!0),a.state.draggingText=se,se.copy=!b.moveOnDrag,z.scroller.dragDrop&&z.scroller.dragDrop(),Ot(z.wrapper.ownerDocument,"mouseup",se),Ot(z.wrapper.ownerDocument,"mousemove",fe),Ot(z.scroller,"dragstart",ve),Ot(z.scroller,"drop",se),Ws(a),setTimeout(function(){return z.input.focus()},20)}function xa(a,y,x){if(x=="char")return new nn(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new nn($e(y.line,0),_t(a.doc,$e(y.line+1,0)));var b=x(a,y);return new nn(b.from,b.to)}function _o(a,y,x,b){var z=a.display,ie=a.doc;sn(y);var se,fe,ve=ie.sel,we=ve.ranges;if(b.addNew&&!b.extend?(fe=ie.sel.contains(x),fe>-1?se=we[fe]:se=new nn(x,x)):(se=ie.sel.primary(),fe=ie.sel.primIndex),b.unit=="rectangle")b.addNew||(se=new nn(x,x)),x=Ya(a,y,!0,!0),fe=-1;else{var yt=xa(a,x,b.unit);b.extend?se=gi(se,yt.anchor,yt.head,b.extend):se=yt}b.addNew?fe==-1?(fe=we.length,hr(ie,Hn(a,we.concat([se]),fe),{scroll:!1,origin:"*mouse"})):we.length>1&&we[fe].empty()&&b.unit=="char"&&!b.extend?(hr(ie,Hn(a,we.slice(0,fe).concat(we.slice(fe+1)),0),{scroll:!1,origin:"*mouse"}),ve=ie.sel):wo(ie,fe,se,ot):(fe=0,hr(ie,new rn([se],0),ot),ve=ie.sel);var kt=x;function ln(ur){if(dt(kt,ur)!=0)if(kt=ur,b.unit=="rectangle"){for(var Nr=[],ai=a.options.tabSize,Xr=Ce(tn(ie,x.line).text,x.ch,ai),Pi=Ce(tn(ie,ur.line).text,ur.ch,ai),fo=Math.min(Xr,Pi),Jo=Math.max(Xr,Pi),Io=Math.min(x.line,ur.line),Ta=Math.min(a.lastLine(),Math.max(x.line,ur.line));Io<=Ta;Io++){var Ca=tn(ie,Io).text,Ho=an(Ca,fo,ai);fo==Jo?Nr.push(new nn($e(Io,Ho),$e(Io,Ho))):Ca.length>Ho&&Nr.push(new nn($e(Io,Ho),$e(Io,an(Ca,Jo,ai))))}Nr.length||Nr.push(new nn(x,x)),hr(ie,Hn(a,ve.ranges.slice(0,fe).concat(Nr),fe),{origin:"*mouse",scroll:!1}),a.scrollIntoView(ur)}else{var Sa=se,la=xa(a,ur,b.unit),Uo=Sa.anchor,jo;dt(la.anchor,Uo)>0?(jo=la.head,Uo=Mn(Sa.from(),la.anchor)):(jo=la.anchor,Uo=Cn(Sa.to(),la.head));var To=ve.ranges.slice(0);To[fe]=Tl(a,new nn(_t(ie,Uo),jo)),hr(ie,Hn(a,To,fe),ot)}}var qt=z.wrapper.getBoundingClientRect(),Nn=0;function Zn(ur){var Nr=++Nn,ai=Ya(a,ur,!0,b.unit=="rectangle");if(ai)if(dt(ai,kt)!=0){a.curOp.focus=Ye(),ln(ai);var Xr=ol(z,ie);(ai.line>=Xr.to||ai.line<Xr.from)&&setTimeout(Vo(a,function(){Nn==Nr&&Zn(ur)}),150)}else{var Pi=ur.clientY<qt.top?-20:ur.clientY>qt.bottom?20:0;Pi&&setTimeout(Vo(a,function(){Nn==Nr&&(z.scroller.scrollTop+=Pi,Zn(ur))}),50)}}function Jn(ur){a.state.selectingText=!1,Nn=1/0,ur&&(sn(ur),z.input.focus()),Vt(z.wrapper.ownerDocument,"mousemove",sr),Vt(z.wrapper.ownerDocument,"mouseup",Er),ie.history.lastSelOrigin=null}var sr=Vo(a,function(ur){ur.buttons===0||!$t(ur)?Jn(ur):Zn(ur)}),Er=Vo(a,Jn);a.state.selectingText=Er,Ot(z.wrapper.ownerDocument,"mousemove",sr),Ot(z.wrapper.ownerDocument,"mouseup",Er)}function Tl(a,y){var x=y.anchor,b=y.head,z=tn(a.doc,x.line);if(dt(x,b)==0&&x.sticky==b.sticky)return y;var ie=xe(z);if(!ie)return y;var se=Ke(ie,x.ch,x.sticky),fe=ie[se];if(fe.from!=x.ch&&fe.to!=x.ch)return y;var ve=se+(fe.from==x.ch==(fe.level!=1)?0:1);if(ve==0||ve==ie.length)return y;var we;if(b.line!=x.line)we=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var yt=Ke(ie,b.ch,b.sticky),kt=yt-se||(b.ch-x.ch)*(fe.level==1?-1:1);yt==ve-1||yt==ve?we=kt<0:we=kt>0}var ln=ie[ve+(we?-1:0)],qt=we==(ln.level==1),Nn=qt?ln.from:ln.to,Zn=qt?"after":"before";return x.ch==Nn&&x.sticky==Zn?y:new nn(new $e(x.line,Nn,Zn),b)}function sl(a,y,x,b){var z,ie;if(y.touches)z=y.touches[0].clientX,ie=y.touches[0].clientY;else try{z=y.clientX,ie=y.clientY}catch(ln){return!1}if(z>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&sn(y);var se=a.display,fe=se.lineDiv.getBoundingClientRect();if(ie>fe.bottom||!Dt(a,x))return mn(y);ie-=fe.top-se.viewOffset;for(var ve=0;ve<a.display.gutterSpecs.length;++ve){var we=se.gutters.childNodes[ve];if(we&&we.getBoundingClientRect().right>=z){var yt=xt(a.doc,ie),kt=a.display.gutterSpecs[ve];return Ft(a,x,a,yt,kt.className,y),mn(y)}}}function _a(a,y){return sl(a,y,"gutterClick",!0)}function Ml(a,y){Ko(a.display,y)||Fs(a,y)||mt(a,y,"contextmenu")||Te||a.display.input.onContextMenu(y)}function Fs(a,y){return Dt(a,"gutterContextMenu")?sl(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-"),fl(a)}var ds={toString:function(){return"CodeMirror.Init"}},Lu={},qs={};function ju(a){var y=a.optionHandlers;function x(b,z,ie,se){a.defaults[b]=z,ie&&(y[b]=se?function(fe,ve,we){we!=ds&&ie(fe,ve,we)}:ie)}a.defineOption=x,a.Init=ds,x("value","",function(b,z){return b.setValue(z)},!0),x("mode",null,function(b,z){b.doc.modeOption=z,br(b)},!0),x("indentUnit",2,br,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){fr(b),fl(b),ra(b)},!0),x("lineSeparator",null,function(b,z){if(b.doc.lineSep=z,!!z){var ie=[],se=b.doc.first;b.doc.iter(function(ve){for(var we=0;;){var yt=ve.text.indexOf(z,we);if(yt==-1)break;we=yt+z.length,ie.push($e(se,yt))}se++});for(var fe=ie.length-1;fe>=0;fe--)Mi(b.doc,z,ie[fe],$e(ie[fe].line,ie[fe].ch+z.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,z,ie){b.state.specialChars=new RegExp(z.source+(z.test(" ")?"":"| "),"g"),ie!=ds&&b.refresh()}),x("specialCharPlaceholder",Oo,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",He?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,z){return b.getInputField().spellcheck=z},!0),x("autocorrect",!1,function(b,z){return b.getInputField().autocorrect=z},!0),x("autocapitalize",!1,function(b,z){return b.getInputField().autocapitalize=z},!0),x("rtlMoveVisually",!St),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Nu(b),Wt(b)},!0),x("keyMap","default",function(b,z,ie){var se=ss(z),fe=ie!=ds&&ss(ie);fe&&fe.detach&&fe.detach(b,se),se.attach&&se.attach(b,fe||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Ku,!0),x("gutters",[],function(b,z){b.display.gutterSpecs=gt(z,b.options.lineNumbers),Wt(b)},!0),x("fixedGutter",!0,function(b,z){b.display.gutters.style.left=z?gs(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return Hl(b)},!0),x("scrollbarStyle","native",function(b){Ys(b),Hl(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,z){b.display.gutterSpecs=gt(b.options.gutters,z),Wt(b)},!0),x("firstLineNumber",1,Wt,!0),x("lineNumberFormatter",function(b){return b},Wt,!0),x("showCursorWhenSelecting",!1,pl,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,z){z=="nocursor"&&(Sl(b),b.display.input.blur()),b.display.input.readOnlyChanged(z)}),x("screenReaderLabel",null,function(b,z){z=z===""?null:z,b.display.input.screenReaderLabelChanged(z)}),x("disableInput",!1,function(b,z){z||b.display.input.reset()},!0),x("dragDrop",!0,Wu),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,pl,!0),x("singleCursorHeightPerLine",!0,pl,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,fr,!0),x("addModeClass",!1,fr,!0),x("pollInterval",100),x("undoDepth",200,function(b,z){return b.doc.history.undoDepth=z}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,fr,!0),x("moveInputWithCursor",!0,function(b,z){z||b.display.input.resetPosition()}),x("tabindex",null,function(b,z){return b.display.input.getField().tabIndex=z||""}),x("autofocus",null),x("direction","ltr",function(b,z){return b.doc.setDirection(z)},!0),x("phrases",null)}function Wu(a,y,x){var b=x&&x!=ds;if(!y!=!b){var z=a.display.dragFunctions,ie=y?Ot:Vt;ie(a.display.scroller,"dragstart",z.start),ie(a.display.scroller,"dragenter",z.enter),ie(a.display.scroller,"dragover",z.over),ie(a.display.scroller,"dragleave",z.leave),ie(a.display.scroller,"drop",z.drop)}}function Ku(a){a.options.lineWrapping?(ye(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ve(a.display.wrapper,"CodeMirror-wrap"),di(a)),Cl(a),ra(a),fl(a),setTimeout(function(){return Hl(a)},100)}function xo(a,y){var x=this;if(!(this instanceof xo))return new xo(a,y);this.options=y=y?zt(y):{},zt(Lu,y,!1);var b=y.value;typeof b=="string"?b=new eo(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var z=new xo.inputStyles[y.inputStyle](this),ie=this.display=new At(a,b,z,y);ie.wrapper.CodeMirror=this,Nu(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ys(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 de,keySeq:null,specialChars:null},y.autofocus&&!He&&ie.input.focus(),Ee&&be<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),ls(),ml(this),this.curOp.forceUpdate=!0,Ur(this,b),y.autofocus&&!He||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ks(x)},20):Sl(this);for(var se in qs)qs.hasOwnProperty(se)&&qs[se](this,y[se],ds);Je(this),y.finishInit&&y.finishInit(this);for(var fe=0;fe<Cu.length;++fe)Cu[fe](this);Pl(this),Se&&y.lineWrapping&&getComputedStyle(ie.lineDiv).textRendering=="optimizelegibility"&&(ie.lineDiv.style.textRendering="auto")}xo.defaults=Lu,xo.optionHandlers=qs;function Vu(a){var y=a.display;Ot(y.scroller,"mousedown",Vo(a,$s)),Ee&&be<11?Ot(y.scroller,"dblclick",Vo(a,function(ve){if(!mt(a,ve)){var we=Ya(a,ve);if(!(!we||_a(a,ve)||Ko(a.display,ve))){sn(ve);var yt=a.findWordAt(we);Ci(a.doc,yt.anchor,yt.head)}}})):Ot(y.scroller,"dblclick",function(ve){return mt(a,ve)||sn(ve)}),Ot(y.scroller,"contextmenu",function(ve){return Ml(a,ve)}),Ot(y.input.getField(),"contextmenu",function(ve){y.scroller.contains(ve.target)||Ml(a,ve)});var x,b={end:0};function z(){y.activeTouch&&(x=setTimeout(function(){return y.activeTouch=null},1e3),b=y.activeTouch,b.end=+new Date)}function ie(ve){if(ve.touches.length!=1)return!1;var we=ve.touches[0];return we.radiusX<=1&&we.radiusY<=1}function se(ve,we){if(we.left==null)return!0;var yt=we.left-ve.left,kt=we.top-ve.top;return yt*yt+kt*kt>20*20}Ot(y.scroller,"touchstart",function(ve){if(!mt(a,ve)&&!ie(ve)&&!_a(a,ve)){y.input.ensurePolled(),clearTimeout(x);var we=+new Date;y.activeTouch={start:we,moved:!1,prev:we-b.end<=300?b:null},ve.touches.length==1&&(y.activeTouch.left=ve.touches[0].pageX,y.activeTouch.top=ve.touches[0].pageY)}}),Ot(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Ot(y.scroller,"touchend",function(ve){var we=y.activeTouch;if(we&&!Ko(y,ve)&&we.left!=null&&!we.moved&&new Date-we.start<300){var yt=a.coordsChar(y.activeTouch,"page"),kt;!we.prev||se(we,we.prev)?kt=new nn(yt,yt):!we.prev.prev||se(we,we.prev.prev)?kt=a.findWordAt(yt):kt=new nn($e(yt.line,0),_t(a.doc,$e(yt.line+1,0))),a.setSelection(kt.anchor,kt.head),a.focus(),sn(ve)}z()}),Ot(y.scroller,"touchcancel",z),Ot(y.scroller,"scroll",function(){y.scroller.clientHeight&&(ns(a,y.scroller.scrollTop),Il(a,y.scroller.scrollLeft,!0),Ft(a,"scroll",a))}),Ot(y.scroller,"mousewheel",function(ve){return un(a,ve)}),Ot(y.scroller,"DOMMouseScroll",function(ve){return un(a,ve)}),Ot(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(ve){mt(a,ve)||ze(ve)},over:function(ve){mt(a,ve)||(Ua(a,ve),ze(ve))},start:function(ve){return Ga(a,ve)},drop:Vo(a,al),leave:function(ve){mt(a,ve)||is(a)}};var fe=y.input.getField();Ot(fe,"keyup",function(ve){return Bs.call(a,ve)}),Ot(fe,"keydown",Vo(a,Ls)),Ot(fe,"keypress",Vo(a,Rs)),Ot(fe,"focus",function(ve){return Ks(a,ve)}),Ot(fe,"blur",function(ve){return Sl(a,ve)})}var Cu=[];xo.defineInitHook=function(a){return Cu.push(a)};function zs(a,y,x,b){var z=a.doc,ie;x==null&&(x="add"),x=="smart"&&(z.mode.indent?ie=Rr(a,y).state:x="prev");var se=a.options.tabSize,fe=tn(z,y),ve=Ce(fe.text,null,se);fe.stateAfter&&(fe.stateAfter=null);var we=fe.text.match(/^\s*/)[0],yt;if(!b&&!/\S/.test(fe.text))yt=0,x="not";else if(x=="smart"&&(yt=z.mode.indent(ie,fe.text.slice(we.length),fe.text),yt==Lt||yt>150)){if(!b)return;x="prev"}x=="prev"?y>z.first?yt=Ce(tn(z,y-1).text,null,se):yt=0:x=="add"?yt=ve+a.options.indentUnit:x=="subtract"?yt=ve-a.options.indentUnit:typeof x=="number"&&(yt=ve+x),yt=Math.max(0,yt);var kt="",ln=0;if(a.options.indentWithTabs)for(var qt=Math.floor(yt/se);qt;--qt)ln+=se,kt+=" ";if(ln<yt&&(kt+=Rt(yt-ln)),kt!=we)return Mi(z,kt,$e(y,0),$e(y,we.length),"+input"),fe.stateAfter=null,!0;for(var Nn=0;Nn<z.sel.ranges.length;Nn++){var Zn=z.sel.ranges[Nn];if(Zn.head.line==y&&Zn.head.ch<we.length){var Jn=$e(y,we.length);wo(z,Nn,new nn(Jn,Jn));break}}}var Ja=null;function eu(a){Ja=a}function Su(a,y,x,b,z){var ie=a.doc;a.display.shift=!1,b||(b=ie.sel);var se=+new Date-200,fe=z=="paste"||a.state.pasteIncoming>se,ve=cn(y),we=null;if(fe&&b.ranges.length>1)if(Ja&&Ja.text.join(`
|
|
|
`)==y){if(b.ranges.length%Ja.text.length==0){we=[];for(var yt=0;yt<Ja.text.length;yt++)we.push(ie.splitLines(Ja.text[yt]))}}else ve.length==b.ranges.length&&a.options.pasteLinesPerSelection&&(we=Gt(ve,function(sr){return[sr]}));for(var kt=a.curOp.updateInput,ln=b.ranges.length-1;ln>=0;ln--){var qt=b.ranges[ln],Nn=qt.from(),Zn=qt.to();qt.empty()&&(x&&x>0?Nn=$e(Nn.line,Nn.ch-x):a.state.overwrite&&!fe?Zn=$e(Zn.line,Math.min(tn(ie,Zn.line).text.length,Zn.ch+_e(ve).length)):fe&&Ja&&Ja.lineWise&&Ja.text.join(`
|
|
|
`)==ve.join(`
|
|
|
`)&&(Nn=Zn=$e(Nn.line,0)));var Jn={from:Nn,to:Zn,text:we?we[ln%we.length]:ve,origin:z||(fe?"paste":a.state.cutIncoming>se?"cut":"+input")};Vi(a.doc,Jn),uo(a,"inputRead",a,Jn)}y&&!fe&&Ru(a,y),El(a),a.curOp.updateInput<2&&(a.curOp.updateInput=kt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Bu(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&ua(y,function(){return Su(y,x,0,null,"paste")}),!0}function Ru(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var z=x.ranges[b];if(!(z.head.ch>100||b&&x.ranges[b-1].head.line==z.head.line)){var ie=a.getModeAt(z.head),se=!1;if(ie.electricChars){for(var fe=0;fe<ie.electricChars.length;fe++)if(y.indexOf(ie.electricChars.charAt(fe))>-1){se=zs(a,z.head.line,"smart");break}}else ie.electricInput&&ie.electricInput.test(tn(a.doc,z.head.line).text.slice(0,z.head.ch))&&(se=zs(a,z.head.line,"smart"));se&&uo(a,"electricInput",a,z.head.line)}}}function Au(a){for(var y=[],x=[],b=0;b<a.doc.sel.ranges.length;b++){var z=a.doc.sel.ranges[b].head.line,ie={anchor:$e(z,0),head:$e(z+1,0)};x.push(ie),y.push(a.getRange(ie.anchor,ie.head))}return{text:y,ranges:x}}function $u(a,y,x,b){a.setAttribute("autocorrect",x?"":"off"),a.setAttribute("autocapitalize",b?"":"off"),a.setAttribute("spellcheck",!!y)}function Fu(){var a=Xe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=Xe("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Se?a.style.width="1000px":a.setAttribute("wrap","off"),at&&(a.style.border="1px solid black"),$u(a),y}function Gu(a){var y=a.optionHandlers,x=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(b,z){var ie=this.options,se=ie[b];ie[b]==z&&b!="mode"||(ie[b]=z,y.hasOwnProperty(b)&&Vo(this,y[b])(this,z,se),Ft(this,"optionChange",this,b))},getOption:function(b){return this.options[b]},getDoc:function(){return this.doc},addKeyMap:function(b,z){this.state.keyMaps[z?"push":"unshift"](ss(b))},removeKeyMap:function(b){for(var z=this.state.keyMaps,ie=0;ie<z.length;++ie)if(z[ie]==b||z[ie].name==b)return z.splice(ie,1),!0},addOverlay:ia(function(b,z){var ie=b.token?b:a.getMode(this.options,b);if(ie.startState)throw new Error("Overlays may not be stateful.");wt(this.state.overlays,{mode:ie,modeSpec:b,opaque:z&&z.opaque,priority:z&&z.priority||0},function(se){return se.priority}),this.state.modeGen++,ra(this)}),removeOverlay:ia(function(b){for(var z=this.state.overlays,ie=0;ie<z.length;++ie){var se=z[ie].modeSpec;if(se==b||typeof b=="string"&&se.name==b){z.splice(ie,1),this.state.modeGen++,ra(this);return}}}),indentLine:ia(function(b,z,ie){typeof z!="string"&&typeof z!="number"&&(z==null?z=this.options.smartIndent?"smart":"prev":z=z?"add":"subtract"),Le(this.doc,b)&&zs(this,b,z,ie)}),indentSelection:ia(function(b){for(var z=this.doc.sel.ranges,ie=-1,se=0;se<z.length;se++){var fe=z[se];if(fe.empty())fe.head.line>ie&&(zs(this,fe.head.line,b,!0),ie=fe.head.line,se==this.doc.sel.primIndex&&El(this));else{var ve=fe.from(),we=fe.to(),yt=Math.max(ie,ve.line);ie=Math.min(this.lastLine(),we.line-(we.ch?0:1))+1;for(var kt=yt;kt<ie;++kt)zs(this,kt,b);var ln=this.doc.sel.ranges;ve.ch==0&&z.length==ln.length&&ln[se].from().ch>0&&wo(this.doc,se,new nn(ve,ln[se].to()),Pe)}}}),getTokenAt:function(b,z){return Or(this,b,z)},getLineTokens:function(b,z){return Or(this,$e(b),z,!0)},getTokenTypeAt:function(b){b=_t(this.doc,b);var z=Dr(this,tn(this.doc,b.line)),ie=0,se=(z.length-1)/2,fe=b.ch,ve;if(fe==0)ve=z[2];else for(;;){var we=ie+se>>1;if((we?z[we*2-1]:0)>=fe)se=we;else if(z[we*2+1]<fe)ie=we+1;else{ve=z[we*2+2];break}}var yt=ve?ve.indexOf("overlay "):-1;return yt<0?ve:yt==0?null:ve.slice(0,yt-1)},getModeAt:function(b){var z=this.doc.mode;return z.innerMode?a.innerMode(z,this.getTokenAt(b).state).mode:z},getHelper:function(b,z){return this.getHelpers(b,z)[0]},getHelpers:function(b,z){var ie=[];if(!x.hasOwnProperty(z))return ie;var se=x[z],fe=this.getModeAt(b);if(typeof fe[z]=="string")se[fe[z]]&&ie.push(se[fe[z]]);else if(fe[z])for(var ve=0;ve<fe[z].length;ve++){var we=se[fe[z][ve]];we&&ie.push(we)}else fe.helperType&&se[fe.helperType]?ie.push(se[fe.helperType]):se[fe.name]&&ie.push(se[fe.name]);for(var yt=0;yt<se._global.length;yt++){var kt=se._global[yt];kt.pred(fe,this)&&vt(ie,kt.val)==-1&&ie.push(kt.val)}return ie},getStateAfter:function(b,z){var ie=this.doc;return b=Qt(ie,b==null?ie.first+ie.size-1:b),Rr(this,b+1,z).state},cursorCoords:function(b,z){var ie,se=this.doc.sel.primary();return b==null?ie=se.head:typeof b=="object"?ie=_t(this.doc,b):ie=b?se.from():se.to(),ta(this,ie,z||"page")},charCoords:function(b,z){return nl(this,_t(this.doc,b),z||"page")},coordsChar:function(b,z){return b=es(this,b,z||"page"),$o(this,b.left,b.top)},lineAtHeight:function(b,z){return b=es(this,{top:b,left:0},z||"page").top,xt(this.doc,b+this.display.viewOffset)},heightAtLine:function(b,z,ie){var se=!1,fe;if(typeof b=="number"){var ve=this.doc.first+this.doc.size-1;b<this.doc.first?b=this.doc.first:b>ve&&(b=ve,se=!0),fe=tn(this.doc,b)}else fe=b;return Al(this,fe,{top:0,left:0},z||"page",ie||se).top+(se?this.doc.height-jr(fe):0)},defaultTextHeight:function(){return ma(this.display)},defaultCharWidth:function(){return Ra(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,z,ie,se,fe){var ve=this.display;b=ta(this,_t(this.doc,b));var we=b.bottom,yt=b.left;if(z.style.position="absolute",z.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(z),ve.sizer.appendChild(z),se=="over")we=b.top;else if(se=="above"||se=="near"){var kt=Math.max(ve.wrapper.clientHeight,this.doc.height),ln=Math.max(ve.sizer.clientWidth,ve.lineSpace.clientWidth);(se=="above"||b.bottom+z.offsetHeight>kt)&&b.top>z.offsetHeight?we=b.top-z.offsetHeight:b.bottom+z.offsetHeight<=kt&&(we=b.bottom),yt+z.offsetWidth>ln&&(yt=ln-z.offsetWidth)}z.style.top=we+"px",z.style.left=z.style.right="",fe=="right"?(yt=ve.sizer.clientWidth-z.offsetWidth,z.style.right="0px"):(fe=="left"?yt=0:fe=="middle"&&(yt=(ve.sizer.clientWidth-z.offsetWidth)/2),z.style.left=yt+"px"),ie&&Pu(this,{left:yt,top:we,right:yt+z.offsetWidth,bottom:we+z.offsetHeight})},triggerOnKeyDown:ia(Ls),triggerOnKeyPress:ia(Rs),triggerOnKeyUp:Bs,triggerOnMouseDown:ia($s),execCommand:function(b){if(ll.hasOwnProperty(b))return ll[b].call(null,this)},triggerElectric:ia(function(b){Ru(this,b)}),findPosH:function(b,z,ie,se){var fe=1;z<0&&(fe=-1,z=-z);for(var ve=_t(this.doc,b),we=0;we<z&&(ve=wu(this.doc,ve,fe,ie,se),!ve.hitSide);++we);return ve},moveH:ia(function(b,z){var ie=this;this.extendSelectionsBy(function(se){return ie.display.shift||ie.doc.extend||se.empty()?wu(ie.doc,se.head,b,z,ie.options.rtlMoveVisually):b<0?se.from():se.to()},rt)}),deleteH:ia(function(b,z){var ie=this.doc.sel,se=this.doc;ie.somethingSelected()?se.replaceSelection("",null,"+delete"):gl(this,function(fe){var ve=wu(se,fe.head,b,z,!1);return b<0?{from:ve,to:fe.head}:{from:fe.head,to:ve}})}),findPosV:function(b,z,ie,se){var fe=1,ve=se;z<0&&(fe=-1,z=-z);for(var we=_t(this.doc,b),yt=0;yt<z;++yt){var kt=ta(this,we,"div");if(ve==null?ve=kt.left:kt.left=ve,we=zu(this,kt,fe,ie),we.hitSide)break}return we},moveV:ia(function(b,z){var ie=this,se=this.doc,fe=[],ve=!this.display.shift&&!se.extend&&se.sel.somethingSelected();if(se.extendSelectionsBy(function(yt){if(ve)return b<0?yt.from():yt.to();var kt=ta(ie,yt.head,"div");yt.goalColumn!=null&&(kt.left=yt.goalColumn),fe.push(kt.left);var ln=zu(ie,kt,b,z);return z=="page"&&yt==se.sel.primary()&&Vs(ie,nl(ie,ln,"div").top-kt.top),ln},rt),fe.length)for(var we=0;we<se.sel.ranges.length;we++)se.sel.ranges[we].goalColumn=fe[we]}),findWordAt:function(b){var z=this.doc,ie=tn(z,b.line).text,se=b.ch,fe=b.ch;if(ie){var ve=this.getHelper(b,"wordChars");(b.sticky=="before"||fe==ie.length)&&se?--se:++fe;for(var we=ie.charAt(se),yt=ue(we,ve)?function(kt){return ue(kt,ve)}:/\s/.test(we)?function(kt){return/\s/.test(kt)}:function(kt){return!/\s/.test(kt)&&!ue(kt)};se>0&&yt(ie.charAt(se-1));)--se;for(;fe<ie.length&&yt(ie.charAt(fe));)++fe}return new nn($e(b.line,se),$e(b.line,fe))},toggleOverwrite:function(b){b!=null&&b==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ye(this.display.cursorDiv,"CodeMirror-overwrite"):Ve(this.display.cursorDiv,"CodeMirror-overwrite"),Ft(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ye()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ia(function(b,z){ts(this,b,z)}),getScrollInfo:function(){var b=this.display.scroller;return{left:b.scrollLeft,top:b.scrollTop,height:b.scrollHeight-sa(this)-this.display.barHeight,width:b.scrollWidth-sa(this)-this.display.barWidth,clientHeight:Xa(this),clientWidth:Fa(this)}},scrollIntoView:ia(function(b,z){b==null?(b={from:this.doc.sel.primary().head,to:null},z==null&&(z=this.options.cursorScrollMargin)):typeof b=="number"?b={from:$e(b,0),to:null}:b.from==null&&(b={from:b,to:null}),b.to||(b.to=b.from),b.margin=z||0,b.from.line!=null?lu(this,b):Gs(this,b.from,b.to,b.margin)}),setSize:ia(function(b,z){var ie=this,se=function(ve){return typeof ve=="number"||/^\d+$/.test(String(ve))?ve+"px":ve};b!=null&&(this.display.wrapper.style.width=se(b)),z!=null&&(this.display.wrapper.style.height=se(z)),this.options.lineWrapping&&Za(this);var fe=this.display.viewFrom;this.doc.iter(fe,this.display.viewTo,function(ve){if(ve.widgets){for(var we=0;we<ve.widgets.length;we++)if(ve.widgets[we].noHScroll){il(ie,fe,"widget");break}}++fe}),this.curOp.forceUpdate=!0,Ft(this,"refresh",this)}),operation:function(b){return ua(this,b)},startOperation:function(){return ml(this)},endOperation:function(){return Pl(this)},refresh:ia(function(){var b=this.display.cachedTextHeight;ra(this),this.curOp.forceUpdate=!0,fl(this),ts(this,this.doc.scrollLeft,this.doc.scrollTop),me(this.display),(b==null||Math.abs(b-ma(this.display))>.5||this.options.lineWrapping)&&Cl(this),Ft(this,"refresh",this)}),swapDoc:ia(function(b){var z=this.doc;return z.cm=null,this.state.selectingText&&this.state.selectingText(),Ur(this,b),fl(this),this.display.input.reset(),ts(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,uo(this,"swapDoc",this,z),z}),phrase:function(b){var z=this.options.phrases;return z&&Object.prototype.hasOwnProperty.call(z,b)?z[b]:b},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}},Ut(a),a.registerHelper=function(b,z,ie){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][z]=ie},a.registerGlobalHelper=function(b,z,ie,se){a.registerHelper(b,z,se),x[b]._global.push({pred:ie,val:se})}}function wu(a,y,x,b,z){var ie=y,se=x,fe=tn(a,y.line),ve=z&&a.direction=="rtl"?-x:x;function we(){var Er=y.line+ve;return Er<a.first||Er>=a.first+a.size?!1:(y=new $e(Er,y.ch,y.sticky),fe=tn(a,Er))}function yt(Er){var ur;if(b=="codepoint"){var Nr=fe.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(Nr)?ur=null:ur=new $e(y.line,Math.max(0,Math.min(fe.text.length,y.ch+x*(Nr>=55296&&Nr<56320?2:1))),-x)}else z?ur=Js(a.cm,fe,y,x):ur=us(fe,y,x);if(ur==null)if(!Er&&we())y=ks(z,a.cm,fe,y.line,ve);else return!1;else y=ur;return!0}if(b=="char"||b=="codepoint")yt();else if(b=="column")yt(!0);else if(b=="word"||b=="group")for(var kt=null,ln=b=="group",qt=a.cm&&a.cm.getHelper(y,"wordChars"),Nn=!0;!(x<0&&!yt(!Nn));Nn=!1){var Zn=fe.text.charAt(y.ch)||`
|
|
|
`,Jn=ue(Zn,qt)?"w":ln&&Zn==`
|
|
|
`?"n":!ln||/\s/.test(Zn)?null:"p";if(ln&&!Nn&&!Jn&&(Jn="s"),kt&&kt!=Jn){x<0&&(x=1,yt(),y.sticky="after");break}if(Jn&&(kt=Jn),x>0&&!yt(!Nn))break}var sr=ko(a,y,ie,se,!0);return Pt(ie,sr)&&(sr.hitSide=!0),sr}function zu(a,y,x,b){var z=a.doc,ie=y.left,se;if(b=="page"){var fe=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ve=Math.max(fe-.5*ma(a.display),3);se=(x>0?y.bottom:y.top)+x*ve}else b=="line"&&(se=x>0?y.bottom+3:y.top-3);for(var we;we=$o(a,ie,se),!!we.outside;){if(x<0?se<=0:se>=z.height){we.hitSide=!0;break}se+=x*5}return we}var ro=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new de,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ro.prototype.init=function(a){var y=this,x=this,b=x.cm,z=x.div=a.lineDiv;$u(z,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function ie(fe){for(var ve=fe.target;ve;ve=ve.parentNode){if(ve==z)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ve.className))break}return!1}Ot(z,"paste",function(fe){!ie(fe)||mt(b,fe)||Bu(fe,b)||be<=11&&setTimeout(Vo(b,function(){return y.updateFromDOM()}),20)}),Ot(z,"compositionstart",function(fe){y.composing={data:fe.data,done:!1}}),Ot(z,"compositionupdate",function(fe){y.composing||(y.composing={data:fe.data,done:!1})}),Ot(z,"compositionend",function(fe){y.composing&&(fe.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Ot(z,"touchstart",function(){return x.forceCompositionEnd()}),Ot(z,"input",function(){y.composing||y.readFromDOMSoon()});function se(fe){if(!(!ie(fe)||mt(b,fe))){if(b.somethingSelected())eu({lineWise:!1,text:b.getSelections()}),fe.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var ve=Au(b);eu({lineWise:!0,text:ve.text}),fe.type=="cut"&&b.operation(function(){b.setSelections(ve.ranges,0,Pe),b.replaceSelection("",null,"cut")})}else return;if(fe.clipboardData){fe.clipboardData.clearData();var we=Ja.text.join(`
|
|
|
`);if(fe.clipboardData.setData("Text",we),fe.clipboardData.getData("Text")==we){fe.preventDefault();return}}var yt=Fu(),kt=yt.firstChild;b.display.lineSpace.insertBefore(yt,b.display.lineSpace.firstChild),kt.value=Ja.text.join(`
|
|
|
`);var ln=document.activeElement;Ue(kt),setTimeout(function(){b.display.lineSpace.removeChild(yt),ln.focus(),ln==z&&x.showPrimarySelection()},50)}}Ot(z,"copy",se),Ot(z,"cut",se)},ro.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},ro.prototype.prepareSelection=function(){var a=ru(this.cm,!1);return a.focus=document.activeElement==this.div,a},ro.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},ro.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ro.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),z=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||z.line<y.display.viewFrom){a.removeAllRanges();return}var ie=tu(y,a.anchorNode,a.anchorOffset),se=tu(y,a.focusNode,a.focusOffset);if(!(ie&&!ie.bad&&se&&!se.bad&&dt(Mn(ie,se),b)==0&&dt(Cn(ie,se),z)==0)){var fe=y.display.view,ve=b.line>=y.display.viewFrom&&Zu(y,b)||{node:fe[0].measure.map[2],offset:0},we=z.line<y.display.viewTo&&Zu(y,z);if(!we){var yt=fe[fe.length-1].measure,kt=yt.maps?yt.maps[yt.maps.length-1]:yt.map;we={node:kt[kt.length-1],offset:kt[kt.length-2]-kt[kt.length-3]}}if(!ve||!we){a.removeAllRanges();return}var ln=a.rangeCount&&a.getRangeAt(0),qt;try{qt=Me(ve.node,ve.offset,we.offset,we.node)}catch(Nn){}qt&&(!E&&y.state.focused?(a.collapse(ve.node,ve.offset),qt.collapsed||(a.removeAllRanges(),a.addRange(qt))):(a.removeAllRanges(),a.addRange(qt)),ln&&a.anchorNode==null?a.addRange(ln):E&&this.startGracePeriod()),this.rememberSelection()}},ro.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)},ro.prototype.showMultipleSelections=function(a){ht(this.cm.display.cursorDiv,a.cursors),ht(this.cm.display.selectionDiv,a.selection)},ro.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},ro.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return pt(this.div,y)},ro.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ro.prototype.blur=function(){this.div.blur()},ro.prototype.getField=function(){return this.div},ro.prototype.supportsTouch=function(){return!0},ro.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():ua(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)},ro.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},ro.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(qe&&Ne&&this.cm.display.gutterSpecs.length&&Uu(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=tu(y,a.anchorNode,a.anchorOffset),b=tu(y,a.focusNode,a.focusOffset);x&&b&&ua(y,function(){hr(y.doc,Tn(x,b),Pe),(x.bad||b.bad)&&(y.curOp.selectionChanged=!0)})}}},ro.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,y=a.display,x=a.doc.sel.primary(),b=x.from(),z=x.to();if(b.ch==0&&b.line>a.firstLine()&&(b=$e(b.line-1,tn(a.doc,b.line-1).length)),z.ch==tn(a.doc,z.line).text.length&&z.line<a.lastLine()&&(z=$e(z.line+1,0)),b.line<y.viewFrom||z.line>y.viewTo-1)return!1;var ie,se,fe;b.line==y.viewFrom||(ie=ja(a,b.line))==0?(se=st(y.view[0].line),fe=y.view[0].node):(se=st(y.view[ie].line),fe=y.view[ie-1].node.nextSibling);var ve=ja(a,z.line),we,yt;if(ve==y.view.length-1?(we=y.viewTo-1,yt=y.lineDiv.lastChild):(we=st(y.view[ve+1].line)-1,yt=y.view[ve+1].node.previousSibling),!fe)return!1;for(var kt=a.doc.splitLines(Xu(a,fe,yt,se,we)),ln=En(a.doc,$e(se,0),$e(we,tn(a.doc,we).text.length));kt.length>1&&ln.length>1;)if(_e(kt)==_e(ln))kt.pop(),ln.pop(),we--;else if(kt[0]==ln[0])kt.shift(),ln.shift(),se++;else break;for(var qt=0,Nn=0,Zn=kt[0],Jn=ln[0],sr=Math.min(Zn.length,Jn.length);qt<sr&&Zn.charCodeAt(qt)==Jn.charCodeAt(qt);)++qt;for(var Er=_e(kt),ur=_e(ln),Nr=Math.min(Er.length-(kt.length==1?qt:0),ur.length-(ln.length==1?qt:0));Nn<Nr&&Er.charCodeAt(Er.length-Nn-1)==ur.charCodeAt(ur.length-Nn-1);)++Nn;if(kt.length==1&&ln.length==1&&se==b.line)for(;qt&&qt>b.ch&&Er.charCodeAt(Er.length-Nn-1)==ur.charCodeAt(ur.length-Nn-1);)qt--,Nn++;kt[kt.length-1]=Er.slice(0,Er.length-Nn).replace(/^\u200b+/,""),kt[0]=kt[0].slice(qt).replace(/\u200b+$/,"");var ai=$e(se,qt),Xr=$e(we,ln.length?_e(ln).length-Nn:0);if(kt.length>1||kt[0]||dt(ai,Xr))return Mi(a.doc,kt,ai,Xr,"+input"),!0},ro.prototype.ensurePolled=function(){this.forceCompositionEnd()},ro.prototype.reset=function(){this.forceCompositionEnd()},ro.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ro.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))},ro.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&ua(this.cm,function(){return ra(a.cm)})},ro.prototype.setUneditable=function(a){a.contentEditable="false"},ro.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Vo(this.cm,Su)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},ro.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},ro.prototype.onContextMenu=function(){},ro.prototype.resetPosition=function(){},ro.prototype.needsContentAttribute=!0;function Zu(a,y){var x=za(a,y.line);if(!x||x.hidden)return null;var b=tn(a.doc,y.line),z=dl(x,b,y.line),ie=xe(b,a.doc.direction),se="left";if(ie){var fe=Ke(ie,y.ch);se=fe%2?"right":"left"}var ve=Ll(z.map,y.ch,se);return ve.offset=ve.collapse=="right"?ve.end:ve.start,ve}function Uu(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function fs(a,y){return y&&(a.bad=!0),a}function Xu(a,y,x,b,z){var ie="",se=!1,fe=a.doc.lineSeparator(),ve=!1;function we(qt){return function(Nn){return Nn.id==qt}}function yt(){se&&(ie+=fe,ve&&(ie+=fe),se=ve=!1)}function kt(qt){qt&&(yt(),ie+=qt)}function ln(qt){if(qt.nodeType==1){var Nn=qt.getAttribute("cm-text");if(Nn){kt(Nn);return}var Zn=qt.getAttribute("cm-marker"),Jn;if(Zn){var sr=a.findMarks($e(b,0),$e(z+1,0),we(+Zn));sr.length&&(Jn=sr[0].find(0))&&kt(En(a.doc,Jn.from,Jn.to).join(fe));return}if(qt.getAttribute("contenteditable")=="false")return;var Er=/^(pre|div|p|li|table|br)$/i.test(qt.nodeName);if(!/^br$/i.test(qt.nodeName)&&qt.textContent.length==0)return;Er&&yt();for(var ur=0;ur<qt.childNodes.length;ur++)ln(qt.childNodes[ur]);/^(pre|p)$/i.test(qt.nodeName)&&(ve=!0),Er&&(se=!0)}else qt.nodeType==3&&kt(qt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ln(y),y!=x;)y=y.nextSibling,ve=!1;return ie}function tu(a,y,x){var b;if(y==a.display.lineDiv){if(b=a.display.lineDiv.childNodes[x],!b)return fs(a.clipPos($e(a.display.viewTo-1)),!0);y=null,x=0}else for(b=y;;b=b.parentNode){if(!b||b==a.display.lineDiv)return null;if(b.parentNode&&b.parentNode==a.display.lineDiv)break}for(var z=0;z<a.display.view.length;z++){var ie=a.display.view[z];if(ie.node==b)return Yu(ie,y,x)}}function Yu(a,y,x){var b=a.text.firstChild,z=!1;if(!y||!pt(b,y))return fs($e(st(a.line),0),!0);if(y==b&&(z=!0,y=b.childNodes[x],x=0,!y)){var ie=a.rest?_e(a.rest):a.line;return fs($e(st(ie),ie.text.length),z)}var se=y.nodeType==3?y:null,fe=y;for(!se&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(se=y.firstChild,x&&(x=se.nodeValue.length));fe.parentNode!=b;)fe=fe.parentNode;var ve=a.measure,we=ve.maps;function yt(Jn,sr,Er){for(var ur=-1;ur<(we?we.length:0);ur++)for(var Nr=ur<0?ve.map:we[ur],ai=0;ai<Nr.length;ai+=3){var Xr=Nr[ai+2];if(Xr==Jn||Xr==sr){var Pi=st(ur<0?a.line:a.rest[ur]),fo=Nr[ai]+Er;return(Er<0||Xr!=Jn)&&(fo=Nr[ai+(Er?1:0)]),$e(Pi,fo)}}}var kt=yt(se,fe,x);if(kt)return fs(kt,z);for(var ln=fe.nextSibling,qt=se?se.nodeValue.length-x:0;ln;ln=ln.nextSibling){if(kt=yt(ln,ln.firstChild,0),kt)return fs($e(kt.line,kt.ch-qt),z);qt+=ln.textContent.length}for(var Nn=fe.previousSibling,Zn=x;Nn;Nn=Nn.previousSibling){if(kt=yt(Nn,Nn.firstChild,-1),kt)return fs($e(kt.line,kt.ch+Zn),z);Zn+=Nn.textContent.length}}var Ro=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new de,this.hasSelection=!1,this.composing=null};Ro.prototype.init=function(a){var y=this,x=this,b=this.cm;this.createField(a);var z=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),at&&(z.style.width="0px"),Ot(z,"input",function(){Ee&&be>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Ot(z,"paste",function(se){mt(b,se)||Bu(se,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function ie(se){if(!mt(b,se)){if(b.somethingSelected())eu({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var fe=Au(b);eu({lineWise:!0,text:fe.text}),se.type=="cut"?b.setSelections(fe.ranges,null,Pe):(x.prevInput="",z.value=fe.text.join(`
|
|
|
`),Ue(z))}else return;se.type=="cut"&&(b.state.cutIncoming=+new Date)}}Ot(z,"cut",ie),Ot(z,"copy",ie),Ot(a.scroller,"paste",function(se){if(!(Ko(a,se)||mt(b,se))){if(!z.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var fe=new Event("paste");fe.clipboardData=se.clipboardData,z.dispatchEvent(fe)}}),Ot(a.lineSpace,"selectstart",function(se){Ko(a,se)||sn(se)}),Ot(z,"compositionstart",function(){var se=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:se,range:b.markText(se,b.getCursor("to"),{className:"CodeMirror-composing"})}}),Ot(z,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Ro.prototype.createField=function(a){this.wrapper=Fu(),this.textarea=this.wrapper.firstChild},Ro.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Ro.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=ru(a);if(a.options.moveInputWithCursor){var z=ta(a,x.sel.primary().head,"div"),ie=y.wrapper.getBoundingClientRect(),se=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,z.top+se.top-ie.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,z.left+se.left-ie.left))}return b},Ro.prototype.showSelection=function(a){var y=this.cm,x=y.display;ht(x.cursorDiv,a.cursors),ht(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Ro.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var x=y.getSelection();this.textarea.value=x,y.state.focused&&Ue(this.textarea),Ee&&be>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",Ee&&be>=9&&(this.hasSelection=null))}},Ro.prototype.getField=function(){return this.textarea},Ro.prototype.supportsTouch=function(){return!1},Ro.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!He||Ye()!=this.textarea))try{this.textarea.focus()}catch(a){}},Ro.prototype.blur=function(){this.textarea.blur()},Ro.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ro.prototype.receivedFocus=function(){this.slowPoll()},Ro.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Ro.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function x(){var b=y.poll();!b&&!a?(a=!0,y.polling.set(60,x)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,x)},Ro.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||bn(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var z=x.value;if(z==b&&!y.somethingSelected())return!1;if(Ee&&be>=9&&this.hasSelection===z||Be&&/[\uf700-\uf7ff]/.test(z))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var ie=z.charCodeAt(0);if(ie==8203&&!b&&(b="\u200B"),ie==8666)return this.reset(),this.cm.execCommand("undo")}for(var se=0,fe=Math.min(b.length,z.length);se<fe&&b.charCodeAt(se)==z.charCodeAt(se);)++se;return ua(y,function(){Su(y,z.slice(se),b.length-se,null,a.composing?"*compose":null),z.length>1e3||z.indexOf(`
|
|
|
`)>-1?x.value=a.prevInput="":a.prevInput=z,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ro.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ro.prototype.onKeyPress=function(){Ee&&be>=9&&(this.hasSelection=null),this.fastPoll()},Ro.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,z=y.textarea;y.contextMenuPending&&y.contextMenuPending();var ie=Ya(x,a),se=b.scroller.scrollTop;if(!ie||ce)return;var fe=x.options.resetSelectionOnContextMenu;fe&&x.doc.sel.contains(ie)==-1&&Vo(x,hr)(x.doc,Tn(ie),Pe);var ve=z.style.cssText,we=y.wrapper.style.cssText,yt=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",z.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-yt.top-5)+"px; left: "+(a.clientX-yt.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Ee?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var kt;Se&&(kt=window.scrollY),b.input.focus(),Se&&window.scrollTo(null,kt),b.input.reset(),x.somethingSelected()||(z.value=y.prevInput=" "),y.contextMenuPending=qt,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function ln(){if(z.selectionStart!=null){var Zn=x.somethingSelected(),Jn="\u200B"+(Zn?z.value:"");z.value="\u21DA",z.value=Jn,y.prevInput=Zn?"":"\u200B",z.selectionStart=1,z.selectionEnd=Jn.length,b.selForContextMenu=x.doc.sel}}function qt(){if(y.contextMenuPending==qt&&(y.contextMenuPending=!1,y.wrapper.style.cssText=we,z.style.cssText=ve,Ee&&be<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=se),z.selectionStart!=null)){(!Ee||Ee&&be<9)&&ln();var Zn=0,Jn=function(){b.selForContextMenu==x.doc.sel&&z.selectionStart==0&&z.selectionEnd>0&&y.prevInput=="\u200B"?Vo(x,Wr)(x):Zn++<10?b.detectingSelectAll=setTimeout(Jn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Jn,200)}}if(Ee&&be>=9&&ln(),Te){ze(a);var Nn=function(){Vt(window,"mouseup",Nn),setTimeout(qt,20)};Ot(window,"mouseup",Nn)}else setTimeout(qt,50)},Ro.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Ro.prototype.setUneditable=function(){},Ro.prototype.needsContentAttribute=!1;function _u(a,y){if(y=y?zt(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 x=Ye();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=fe.getValue()}var z;if(a.form&&(Ot(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var ie=a.form;z=ie.submit;try{var se=ie.submit=function(){b(),ie.submit=z,ie.submit(),ie.submit=se}}catch(ve){}}y.finishInit=function(ve){ve.save=b,ve.getTextArea=function(){return a},ve.toTextArea=function(){ve.toTextArea=isNaN,b(),a.parentNode.removeChild(ve.getWrapperElement()),a.style.display="",a.form&&(Vt(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=z))}},a.style.display="none";var fe=xo(function(ve){return a.parentNode.insertBefore(ve,a.nextSibling)},y);return fe}function Ju(a){a.off=Vt,a.on=Ot,a.wheelEventPixels=dn,a.Doc=eo,a.splitLines=cn,a.countColumn=Ce,a.findColumn=an,a.isWordChar=oe,a.Pass=Lt,a.signal=Ft,a.Line=ki,a.changeEnd=Kn,a.scrollbarModel=su,a.Pos=$e,a.cmpPos=dt,a.modes=$n,a.mimeModes=hn,a.resolveMode=Wn,a.getMode=lr,a.modeExtensions=qn,a.extendMode=Gn,a.copyState=cr,a.startState=Ir,a.innerMode=gr,a.commands=ll,a.keyMap=Bo,a.keyName=vl,a.isModifierKey=Os,a.lookupKey=kl,a.normalizeKeyMap=Xo,a.StringStream=pr,a.SharedTextMarker=qi,a.TextMarker=da,a.LineWidget=ji,a.e_preventDefault=sn,a.e_stopPropagation=pn,a.e_stop=ze,a.addClass=ye,a.contains=pt,a.rmClass=Ve,a.keyNames=Ei}ju(xo),Gu(xo);var Qu="iter insert remove copy getEditor constructor".split(" ");for(var nu in eo.prototype)eo.prototype.hasOwnProperty(nu)&&vt(Qu,nu)<0&&(xo.prototype[nu]=function(a){return function(){return a.apply(this.doc,arguments)}}(eo.prototype[nu]));return Ut(eo),xo.inputStyles={textarea:Ro,contenteditable:ro},xo.defineMode=function(a){!xo.defaults.mode&&a!="null"&&(xo.defaults.mode=a),In.apply(this,arguments)},xo.defineMIME=xn,xo.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),xo.defineMIME("text/plain","null"),xo.defineExtension=function(a,y){xo.prototype[a]=y},xo.defineDocExtension=function(a,y){eo.prototype[a]=y},xo.fromTextArea=_u,Ju(xo),xo.version="5.58.2",xo})},25419:function(fn,Ht,ee){(function(E){E(ee(89780),ee(15525),ee(98101))})(function(E){"use strict";E.defineMode("markdown",function(Ae,pe){var Ge=E.getMode(Ae,"text/html"),Ee=Ge.name=="null";function be(Ce){if(E.findModeByName){var de=E.findModeByName(Ce);de&&(Ce=de.mime||de.mimes[0])}var vt=E.getMode(Ae,Ce);return vt.name=="null"?null:vt}pe.highlightFormatting===void 0&&(pe.highlightFormatting=!1),pe.maxBlockquoteDepth===void 0&&(pe.maxBlockquoteDepth=0),pe.taskLists===void 0&&(pe.taskLists=!1),pe.strikethrough===void 0&&(pe.strikethrough=!1),pe.emoji===void 0&&(pe.emoji=!1),pe.fencedCodeBlockHighlighting===void 0&&(pe.fencedCodeBlockHighlighting=!0),pe.fencedCodeBlockDefaultMode===void 0&&(pe.fencedCodeBlockDefaultMode="text/plain"),pe.xml===void 0&&(pe.xml=!0),pe.tokenTypeOverrides===void 0&&(pe.tokenTypeOverrides={});var Se={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Ze in Se)Se.hasOwnProperty(Ze)&&pe.tokenTypeOverrides[Ze]&&(Se[Ze]=pe.tokenTypeOverrides[Ze]);var Ne=/^([*\-_])(?:\s*\1){2,}\s*$/,ce=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,We=/^\[(x| )\](?=\s)/i,De=pe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,It=/^ {0,3}(?:\={1,}|-{2,})\s*$/,at=/^[^#!\[\]*_\\<>` "'(~:]+/,qe=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,He=/^\s*\[[^\]]+?\]:.*$/,Be=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,ut=" ";function St(Ce,de,vt){return de.f=de.inline=vt,vt(Ce,de)}function Bt(Ce,de,vt){return de.f=de.block=vt,vt(Ce,de)}function je(Ce){return!Ce||!/\S/.test(Ce.string)}function Te(Ce){if(Ce.linkTitle=!1,Ce.linkHref=!1,Ce.linkText=!1,Ce.em=!1,Ce.strong=!1,Ce.strikethrough=!1,Ce.quote=0,Ce.indentedCode=!1,Ce.f==Ve){var de=Ee;if(!de){var vt=E.innerMode(Ge,Ce.htmlState);de=vt.mode.name=="xml"&&vt.state.tagStart===null&&!vt.state.context&&vt.state.tokenize.isInText}de&&(Ce.f=et,Ce.block=Qe,Ce.htmlState=null)}return Ce.trailingSpace=0,Ce.trailingSpaceNewLine=!1,Ce.prevLine=Ce.thisLine,Ce.thisLine={stream:null},null}function Qe(Ce,de){var vt=Ce.column()===de.indentation,Kt=je(de.prevLine.stream),Lt=de.indentedCode,Pe=de.prevLine.hr,ot=de.list!==!1,rt=(de.listStack[de.listStack.length-1]||0)+3;de.indentedCode=!1;var an=de.indentation;if(de.indentationDiff===null&&(de.indentationDiff=de.indentation,ot)){for(de.list=null;an<de.listStack[de.listStack.length-1];)de.listStack.pop(),de.listStack.length?de.indentation=de.listStack[de.listStack.length-1]:de.list=!1;de.list!==!1&&(de.indentationDiff=an-de.listStack[de.listStack.length-1])}var tt=!Kt&&!Pe&&!de.prevLine.header&&(!ot||!Lt)&&!de.prevLine.fencedCodeEnd,Rt=(de.list===!1||Pe||Kt)&&de.indentation<=rt&&Ce.match(Ne),_e=null;if(de.indentationDiff>=4&&(Lt||de.prevLine.fencedCodeEnd||de.prevLine.header||Kt))return Ce.skipToEnd(),de.indentedCode=!0,Se.code;if(Ce.eatSpace())return null;if(vt&&de.indentation<=rt&&(_e=Ce.match(De))&&_e[1].length<=6)return de.quote=0,de.header=_e[1].length,de.thisLine.header=!0,pe.highlightFormatting&&(de.formatting="header"),de.f=de.inline,ht(de);if(de.indentation<=rt&&Ce.eat(">"))return de.quote=vt?1:de.quote+1,pe.highlightFormatting&&(de.formatting="quote"),Ce.eatSpace(),ht(de);if(!Rt&&!de.setext&&vt&&de.indentation<=rt&&(_e=Ce.match(ce))){var Gt=_e[1]?"ol":"ul";return de.indentation=an+Ce.current().length,de.list=!0,de.quote=0,de.listStack.push(de.indentation),de.em=!1,de.strong=!1,de.code=!1,de.strikethrough=!1,pe.taskLists&&Ce.match(We,!1)&&(de.taskList=!0),de.f=de.inline,pe.highlightFormatting&&(de.formatting=["list","list-"+Gt]),ht(de)}else{if(vt&&de.indentation<=rt&&(_e=Ce.match(qe,!0)))return de.quote=0,de.fencedEndRE=new RegExp(_e[1]+"+ *$"),de.localMode=pe.fencedCodeBlockHighlighting&&be(_e[2]||pe.fencedCodeBlockDefaultMode),de.localMode&&(de.localState=E.startState(de.localMode)),de.f=de.block=Tt,pe.highlightFormatting&&(de.formatting="code-block"),de.code=-1,ht(de);if(de.setext||(!tt||!ot)&&!de.quote&&de.list===!1&&!de.code&&!Rt&&!He.test(Ce.string)&&(_e=Ce.lookAhead(1))&&(_e=_e.match(It)))return de.setext?(de.header=de.setext,de.setext=0,Ce.skipToEnd(),pe.highlightFormatting&&(de.formatting="header")):(de.header=_e[0].charAt(0)=="="?1:2,de.setext=de.header),de.thisLine.header=!0,de.f=de.inline,ht(de);if(Rt)return Ce.skipToEnd(),de.hr=!0,de.thisLine.hr=!0,Se.hr;if(Ce.peek()==="[")return St(Ce,de,jt)}return St(Ce,de,de.inline)}function Ve(Ce,de){var vt=Ge.token(Ce,de.htmlState);if(!Ee){var Kt=E.innerMode(Ge,de.htmlState);(Kt.mode.name=="xml"&&Kt.state.tagStart===null&&!Kt.state.context&&Kt.state.tokenize.isInText||de.md_inside&&Ce.current().indexOf(">")>-1)&&(de.f=et,de.block=Qe,de.htmlState=null)}return vt}function Tt(Ce,de){var vt=de.listStack[de.listStack.length-1]||0,Kt=de.indentation<vt,Lt=vt+3;if(de.fencedEndRE&&de.indentation<=Lt&&(Kt||Ce.match(de.fencedEndRE))){pe.highlightFormatting&&(de.formatting="code-block");var Pe;return Kt||(Pe=ht(de)),de.localMode=de.localState=null,de.block=Qe,de.f=et,de.fencedEndRE=null,de.code=0,de.thisLine.fencedCodeEnd=!0,Kt?Bt(Ce,de,de.block):Pe}else return de.localMode?de.localMode.token(Ce,de.localState):(Ce.skipToEnd(),Se.code)}function ht(Ce){var de=[];if(Ce.formatting){de.push(Se.formatting),typeof Ce.formatting=="string"&&(Ce.formatting=[Ce.formatting]);for(var vt=0;vt<Ce.formatting.length;vt++)de.push(Se.formatting+"-"+Ce.formatting[vt]),Ce.formatting[vt]==="header"&&de.push(Se.formatting+"-"+Ce.formatting[vt]+"-"+Ce.header),Ce.formatting[vt]==="quote"&&(!pe.maxBlockquoteDepth||pe.maxBlockquoteDepth>=Ce.quote?de.push(Se.formatting+"-"+Ce.formatting[vt]+"-"+Ce.quote):de.push("error"))}if(Ce.taskOpen)return de.push("meta"),de.length?de.join(" "):null;if(Ce.taskClosed)return de.push("property"),de.length?de.join(" "):null;if(Ce.linkHref?de.push(Se.linkHref,"url"):(Ce.strong&&de.push(Se.strong),Ce.em&&de.push(Se.em),Ce.strikethrough&&de.push(Se.strikethrough),Ce.emoji&&de.push(Se.emoji),Ce.linkText&&de.push(Se.linkText),Ce.code&&de.push(Se.code),Ce.image&&de.push(Se.image),Ce.imageAltText&&de.push(Se.imageAltText,"link"),Ce.imageMarker&&de.push(Se.imageMarker)),Ce.header&&de.push(Se.header,Se.header+"-"+Ce.header),Ce.quote&&(de.push(Se.quote),!pe.maxBlockquoteDepth||pe.maxBlockquoteDepth>=Ce.quote?de.push(Se.quote+"-"+Ce.quote):de.push(Se.quote+"-"+pe.maxBlockquoteDepth)),Ce.list!==!1){var Kt=(Ce.listStack.length-1)%3;Kt?Kt===1?de.push(Se.list2):de.push(Se.list3):de.push(Se.list1)}return Ce.trailingSpaceNewLine?de.push("trailing-space-new-line"):Ce.trailingSpace&&de.push("trailing-space-"+(Ce.trailingSpace%2?"a":"b")),de.length?de.join(" "):null}function Xe(Ce,de){if(Ce.match(at,!0))return ht(de)}function et(Ce,de){var vt=de.text(Ce,de);if(typeof vt!="undefined")return vt;if(de.list)return de.list=null,ht(de);if(de.taskList){var Kt=Ce.match(We,!0)[1]===" ";return Kt?de.taskOpen=!0:de.taskClosed=!0,pe.highlightFormatting&&(de.formatting="task"),de.taskList=!1,ht(de)}if(de.taskOpen=!1,de.taskClosed=!1,de.header&&Ce.match(/^#+$/,!0))return pe.highlightFormatting&&(de.formatting="header"),ht(de);var Lt=Ce.next();if(de.linkTitle){de.linkTitle=!1;var Pe=Lt;Lt==="("&&(Pe=")"),Pe=(Pe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ot="^\\s*(?:[^"+Pe+"\\\\]+|\\\\\\\\|\\\\.)"+Pe;if(Ce.match(new RegExp(ot),!0))return Se.linkHref}if(Lt==="`"){var rt=de.formatting;pe.highlightFormatting&&(de.formatting="code"),Ce.eatWhile("`");var an=Ce.current().length;if(de.code==0&&(!de.quote||an==1))return de.code=an,ht(de);if(an==de.code){var tt=ht(de);return de.code=0,tt}else return de.formatting=rt,ht(de)}else if(de.code)return ht(de);if(Lt==="\\"&&(Ce.next(),pe.highlightFormatting)){var Rt=ht(de),_e=Se.formatting+"-escape";return Rt?Rt+" "+_e:_e}if(Lt==="!"&&Ce.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return de.imageMarker=!0,de.image=!0,pe.highlightFormatting&&(de.formatting="image"),ht(de);if(Lt==="["&&de.imageMarker&&Ce.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return de.imageMarker=!1,de.imageAltText=!0,pe.highlightFormatting&&(de.formatting="image"),ht(de);if(Lt==="]"&&de.imageAltText){pe.highlightFormatting&&(de.formatting="image");var Rt=ht(de);return de.imageAltText=!1,de.image=!1,de.inline=de.f=pt,Rt}if(Lt==="["&&!de.image)return de.linkText&&Ce.match(/^.*?\]/)||(de.linkText=!0,pe.highlightFormatting&&(de.formatting="link")),ht(de);if(Lt==="]"&&de.linkText){pe.highlightFormatting&&(de.formatting="link");var Rt=ht(de);return de.linkText=!1,de.inline=de.f=Ce.match(/\(.*?\)| ?\[.*?\]/,!1)?pt:et,Rt}if(Lt==="<"&&Ce.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){de.f=de.inline=Me,pe.highlightFormatting&&(de.formatting="link");var Rt=ht(de);return Rt?Rt+=" ":Rt="",Rt+Se.linkInline}if(Lt==="<"&&Ce.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){de.f=de.inline=Me,pe.highlightFormatting&&(de.formatting="link");var Rt=ht(de);return Rt?Rt+=" ":Rt="",Rt+Se.linkEmail}if(pe.xml&&Lt==="<"&&Ce.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Gt=Ce.string.indexOf(">",Ce.pos);if(Gt!=-1){var wt=Ce.string.substring(Ce.start,Gt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(wt)&&(de.md_inside=!0)}return Ce.backUp(1),de.htmlState=E.startState(Ge),Bt(Ce,de,Ve)}if(pe.xml&&Lt==="<"&&Ce.match(/^\/\w*?>/))return de.md_inside=!1,"tag";if(Lt==="*"||Lt==="_"){for(var ae=1,ne=Ce.pos==1?" ":Ce.string.charAt(Ce.pos-2);ae<3&&Ce.eat(Lt);)ae++;var te=Ce.peek()||" ",oe=!/\s/.test(te)&&(!Be.test(te)||/\s/.test(ne)||Be.test(ne)),ue=!/\s/.test(ne)&&(!Be.test(ne)||/\s/.test(te)||Be.test(te)),re=null,le=null;if(ae%2&&(!de.em&&oe&&(Lt==="*"||!ue||Be.test(ne))?re=!0:de.em==Lt&&ue&&(Lt==="*"||!oe||Be.test(te))&&(re=!1)),ae>1&&(!de.strong&&oe&&(Lt==="*"||!ue||Be.test(ne))?le=!0:de.strong==Lt&&ue&&(Lt==="*"||!oe||Be.test(te))&&(le=!1)),le!=null||re!=null){pe.highlightFormatting&&(de.formatting=re==null?"strong":le==null?"em":"strong em"),re===!0&&(de.em=Lt),le===!0&&(de.strong=Lt);var tt=ht(de);return re===!1&&(de.em=!1),le===!1&&(de.strong=!1),tt}}else if(Lt===" "&&(Ce.eat("*")||Ce.eat("_"))){if(Ce.peek()===" ")return ht(de);Ce.backUp(1)}if(pe.strikethrough){if(Lt==="~"&&Ce.eatWhile(Lt)){if(de.strikethrough){pe.highlightFormatting&&(de.formatting="strikethrough");var tt=ht(de);return de.strikethrough=!1,tt}else if(Ce.match(/^[^\s]/,!1))return de.strikethrough=!0,pe.highlightFormatting&&(de.formatting="strikethrough"),ht(de)}else if(Lt===" "&&Ce.match(/^~~/,!0)){if(Ce.peek()===" ")return ht(de);Ce.backUp(2)}}if(pe.emoji&&Lt===":"&&Ce.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){de.emoji=!0,pe.highlightFormatting&&(de.formatting="emoji");var ge=ht(de);return de.emoji=!1,ge}return Lt===" "&&(Ce.match(/^ +$/,!1)?de.trailingSpace++:de.trailingSpace&&(de.trailingSpaceNewLine=!0)),ht(de)}function Me(Ce,de){var vt=Ce.next();if(vt===">"){de.f=de.inline=et,pe.highlightFormatting&&(de.formatting="link");var Kt=ht(de);return Kt?Kt+=" ":Kt="",Kt+Se.linkInline}return Ce.match(/^[^>]+/,!0),Se.linkInline}function pt(Ce,de){if(Ce.eatSpace())return null;var vt=Ce.next();return vt==="("||vt==="["?(de.f=de.inline=ye(vt==="("?")":"]"),pe.highlightFormatting&&(de.formatting="link-string"),de.linkHref=!0,ht(de)):"error"}var Ye={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ye(Ce){return function(de,vt){var Kt=de.next();if(Kt===Ce){vt.f=vt.inline=et,pe.highlightFormatting&&(vt.formatting="link-string");var Lt=ht(vt);return vt.linkHref=!1,Lt}return de.match(Ye[Ce]),vt.linkHref=!0,ht(vt)}}function jt(Ce,de){return Ce.match(/^([^\]\\]|\\.)*\]:/,!1)?(de.f=Ue,Ce.next(),pe.highlightFormatting&&(de.formatting="link"),de.linkText=!0,ht(de)):St(Ce,de,et)}function Ue(Ce,de){if(Ce.match(/^\]:/,!0)){de.f=de.inline=nt,pe.highlightFormatting&&(de.formatting="link");var vt=ht(de);return de.linkText=!1,vt}return Ce.match(/^([^\]\\]|\\.)+/,!0),Se.linkText}function nt(Ce,de){return Ce.eatSpace()?null:(Ce.match(/^[^\s]+/,!0),Ce.peek()===void 0?de.linkTitle=!0:Ce.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),de.f=de.inline=et,Se.linkHref+" url")}var zt={startState:function(){return{f:Qe,prevLine:{stream:null},thisLine:{stream:null},block:Qe,htmlState:null,indentation:0,inline:et,text:Xe,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(Ce){return{f:Ce.f,prevLine:Ce.prevLine,thisLine:Ce.thisLine,block:Ce.block,htmlState:Ce.htmlState&&E.copyState(Ge,Ce.htmlState),indentation:Ce.indentation,localMode:Ce.localMode,localState:Ce.localMode?E.copyState(Ce.localMode,Ce.localState):null,inline:Ce.inline,text:Ce.text,formatting:!1,linkText:Ce.linkText,linkTitle:Ce.linkTitle,linkHref:Ce.linkHref,code:Ce.code,em:Ce.em,strong:Ce.strong,strikethrough:Ce.strikethrough,emoji:Ce.emoji,header:Ce.header,setext:Ce.setext,hr:Ce.hr,taskList:Ce.taskList,list:Ce.list,listStack:Ce.listStack.slice(0),quote:Ce.quote,indentedCode:Ce.indentedCode,trailingSpace:Ce.trailingSpace,trailingSpaceNewLine:Ce.trailingSpaceNewLine,md_inside:Ce.md_inside,fencedEndRE:Ce.fencedEndRE}},token:function(Ce,de){if(de.formatting=!1,Ce!=de.thisLine.stream){if(de.header=0,de.hr=!1,Ce.match(/^\s*$/,!0))return Te(de),null;if(de.prevLine=de.thisLine,de.thisLine={stream:Ce},de.taskList=!1,de.trailingSpace=0,de.trailingSpaceNewLine=!1,!de.localState&&(de.f=de.block,de.f!=Ve)){var vt=Ce.match(/^\s*/,!0)[0].replace(/\t/g,ut).length;if(de.indentation=vt,de.indentationDiff=null,vt>0)return null}}return de.f(Ce,de)},innerMode:function(Ce){return Ce.block==Ve?{state:Ce.htmlState,mode:Ge}:Ce.localState?{state:Ce.localState,mode:Ce.localMode}:{state:Ce,mode:zt}},indent:function(Ce,de,vt){return Ce.block==Ve&&Ge.indent?Ge.indent(Ce.htmlState,de,vt):Ce.localState&&Ce.localMode.indent?Ce.localMode.indent(Ce.localState,de,vt):E.Pass},blankLine:Te,getType:ht,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return zt},"xml"),E.defineMIME("text/markdown","markdown"),E.defineMIME("text/x-markdown","markdown")})},98101:function(fn,Ht,ee){(function(E){E(ee(89780))})(function(E){"use strict";E.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 Ae=0;Ae<E.modeInfo.length;Ae++){var pe=E.modeInfo[Ae];pe.mimes&&(pe.mime=pe.mimes[0])}E.findModeByMIME=function(Ge){Ge=Ge.toLowerCase();for(var Ee=0;Ee<E.modeInfo.length;Ee++){var be=E.modeInfo[Ee];if(be.mime==Ge)return be;if(be.mimes){for(var Se=0;Se<be.mimes.length;Se++)if(be.mimes[Se]==Ge)return be}}if(/\+xml$/.test(Ge))return E.findModeByMIME("application/xml");if(/\+json$/.test(Ge))return E.findModeByMIME("application/json")},E.findModeByExtension=function(Ge){Ge=Ge.toLowerCase();for(var Ee=0;Ee<E.modeInfo.length;Ee++){var be=E.modeInfo[Ee];if(be.ext){for(var Se=0;Se<be.ext.length;Se++)if(be.ext[Se]==Ge)return be}}},E.findModeByFileName=function(Ge){for(var Ee=0;Ee<E.modeInfo.length;Ee++){var be=E.modeInfo[Ee];if(be.file&&be.file.test(Ge))return be}var Se=Ge.lastIndexOf("."),Ze=Se>-1&&Ge.substring(Se+1,Ge.length);if(Ze)return E.findModeByExtension(Ze)},E.findModeByName=function(Ge){Ge=Ge.toLowerCase();for(var Ee=0;Ee<E.modeInfo.length;Ee++){var be=E.modeInfo[Ee];if(be.name.toLowerCase()==Ge)return be;if(be.alias){for(var Se=0;Se<be.alias.length;Se++)if(be.alias[Se].toLowerCase()==Ge)return be}}}})},67549:function(fn,Ht,ee){(function(E){E(ee(89780))})(function(E){"use strict";E.defineMode("stex",function(Ae,pe){"use strict";function Ge(at,qe){at.cmdState.push(qe)}function Ee(at){return at.cmdState.length>0?at.cmdState[at.cmdState.length-1]:null}function be(at){var qe=at.cmdState.pop();qe&&qe.closeBracket()}function Se(at){for(var qe=at.cmdState,He=qe.length-1;He>=0;He--){var Be=qe[He];if(Be.name!="DEFAULT")return Be}return{styleIdentifier:function(){return null}}}function Ze(at,qe,He){return function(){this.name=at,this.bracketNo=0,this.style=qe,this.styles=He,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ne={};Ne.importmodule=Ze("importmodule","tag",["string","builtin"]),Ne.documentclass=Ze("documentclass","tag",["","atom"]),Ne.usepackage=Ze("usepackage","tag",["atom"]),Ne.begin=Ze("begin","tag",["atom"]),Ne.end=Ze("end","tag",["atom"]),Ne.label=Ze("label","tag",["atom"]),Ne.ref=Ze("ref","tag",["atom"]),Ne.eqref=Ze("eqref","tag",["atom"]),Ne.cite=Ze("cite","tag",["atom"]),Ne.bibitem=Ze("bibitem","tag",["atom"]),Ne.Bibitem=Ze("Bibitem","tag",["atom"]),Ne.RBibitem=Ze("RBibitem","tag",["atom"]),Ne.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ce(at,qe){at.f=qe}function We(at,qe){var He;if(at.match(/^\\[a-zA-Z@]+/)){var Be=at.current().slice(1);return He=Ne.hasOwnProperty(Be)?Ne[Be]:Ne.DEFAULT,He=new He,Ge(qe,He),ce(qe,It),He.style}if(at.match(/^\\[$&%#{}_]/)||at.match(/^\\[,;!\/\\]/))return"tag";if(at.match("\\["))return ce(qe,function(St,Bt){return De(St,Bt,"\\]")}),"keyword";if(at.match("\\("))return ce(qe,function(St,Bt){return De(St,Bt,"\\)")}),"keyword";if(at.match("$$"))return ce(qe,function(St,Bt){return De(St,Bt,"$$")}),"keyword";if(at.match("$"))return ce(qe,function(St,Bt){return De(St,Bt,"$")}),"keyword";var ut=at.next();if(ut=="%")return at.skipToEnd(),"comment";if(ut=="}"||ut=="]"){if(He=Ee(qe),He)He.closeBracket(ut),ce(qe,It);else return"error";return"bracket"}else return ut=="{"||ut=="["?(He=Ne.DEFAULT,He=new He,Ge(qe,He),"bracket"):/\d/.test(ut)?(at.eatWhile(/[\w.%]/),"atom"):(at.eatWhile(/[\w\-_]/),He=Se(qe),He.name=="begin"&&(He.argument=at.current()),He.styleIdentifier())}function De(at,qe,He){if(at.eatSpace())return null;if(He&&at.match(He))return ce(qe,We),"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 Be=at.next();return Be=="{"||Be=="}"||Be=="["||Be=="]"||Be=="("||Be==")"?"bracket":Be=="%"?(at.skipToEnd(),"comment"):"error"}function It(at,qe){var He=at.peek(),Be;return He=="{"||He=="["?(Be=Ee(qe),Be.openBracket(He),at.eat(He),ce(qe,We),"bracket"):/[ \t\r]/.test(He)?(at.eat(He),null):(ce(qe,We),be(qe),We(at,qe))}return{startState:function(){var at=pe.inMathMode?function(qe,He){return De(qe,He)}:We;return{cmdState:[],f:at}},copyState:function(at){return{cmdState:at.cmdState.slice(),f:at.f}},token:function(at,qe){return qe.f(at,qe)},blankLine:function(at){at.f=We,at.cmdState.length=0},lineComment:"%"}}),E.defineMIME("text/x-stex","stex"),E.defineMIME("text/x-latex","stex")})},15525:function(fn,Ht,ee){(function(E){E(ee(89780))})(function(E){"use strict";var Ae={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},pe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};E.defineMode("xml",function(Ge,Ee){var be=Ge.indentUnit,Se={},Ze=Ee.htmlMode?Ae:pe;for(var Ne in Ze)Se[Ne]=Ze[Ne];for(var Ne in Ee)Se[Ne]=Ee[Ne];var ce,We;function De(Me,pt){function Ye(Ue){return pt.tokenize=Ue,Ue(Me,pt)}var ye=Me.next();if(ye=="<")return Me.eat("!")?Me.eat("[")?Me.match("CDATA[")?Ye(qe("atom","]]>")):null:Me.match("--")?Ye(qe("comment","-->")):Me.match("DOCTYPE",!0,!0)?(Me.eatWhile(/[\w\._\-]/),Ye(He(1))):null:Me.eat("?")?(Me.eatWhile(/[\w\._\-]/),pt.tokenize=qe("meta","?>"),"meta"):(ce=Me.eat("/")?"closeTag":"openTag",pt.tokenize=It,"tag bracket");if(ye=="&"){var jt;return Me.eat("#")?Me.eat("x")?jt=Me.eatWhile(/[a-fA-F\d]/)&&Me.eat(";"):jt=Me.eatWhile(/[\d]/)&&Me.eat(";"):jt=Me.eatWhile(/[\w\.\-:]/)&&Me.eat(";"),jt?"atom":"error"}else return Me.eatWhile(/[^&<]/),null}De.isInText=!0;function It(Me,pt){var Ye=Me.next();if(Ye==">"||Ye=="/"&&Me.eat(">"))return pt.tokenize=De,ce=Ye==">"?"endTag":"selfcloseTag","tag bracket";if(Ye=="=")return ce="equals",null;if(Ye=="<"){pt.tokenize=De,pt.state=Bt,pt.tagName=pt.tagStart=null;var ye=pt.tokenize(Me,pt);return ye?ye+" tag error":"tag error"}else return/[\'\"]/.test(Ye)?(pt.tokenize=at(Ye),pt.stringStartCol=Me.column(),pt.tokenize(Me,pt)):(Me.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function at(Me){var pt=function(Ye,ye){for(;!Ye.eol();)if(Ye.next()==Me){ye.tokenize=It;break}return"string"};return pt.isInAttribute=!0,pt}function qe(Me,pt){return function(Ye,ye){for(;!Ye.eol();){if(Ye.match(pt)){ye.tokenize=De;break}Ye.next()}return Me}}function He(Me){return function(pt,Ye){for(var ye;(ye=pt.next())!=null;){if(ye=="<")return Ye.tokenize=He(Me+1),Ye.tokenize(pt,Ye);if(ye==">")if(Me==1){Ye.tokenize=De;break}else return Ye.tokenize=He(Me-1),Ye.tokenize(pt,Ye)}return"meta"}}function Be(Me,pt,Ye){this.prev=Me.context,this.tagName=pt,this.indent=Me.indented,this.startOfLine=Ye,(Se.doNotIndent.hasOwnProperty(pt)||Me.context&&Me.context.noIndent)&&(this.noIndent=!0)}function ut(Me){Me.context&&(Me.context=Me.context.prev)}function St(Me,pt){for(var Ye;;){if(!Me.context||(Ye=Me.context.tagName,!Se.contextGrabbers.hasOwnProperty(Ye)||!Se.contextGrabbers[Ye].hasOwnProperty(pt)))return;ut(Me)}}function Bt(Me,pt,Ye){return Me=="openTag"?(Ye.tagStart=pt.column(),je):Me=="closeTag"?Te:Bt}function je(Me,pt,Ye){return Me=="word"?(Ye.tagName=pt.current(),We="tag",Tt):Se.allowMissingTagName&&Me=="endTag"?(We="tag bracket",Tt(Me,pt,Ye)):(We="error",je)}function Te(Me,pt,Ye){if(Me=="word"){var ye=pt.current();return Ye.context&&Ye.context.tagName!=ye&&Se.implicitlyClosed.hasOwnProperty(Ye.context.tagName)&&ut(Ye),Ye.context&&Ye.context.tagName==ye||Se.matchClosing===!1?(We="tag",Qe):(We="tag error",Ve)}else return Se.allowMissingTagName&&Me=="endTag"?(We="tag bracket",Qe(Me,pt,Ye)):(We="error",Ve)}function Qe(Me,pt,Ye){return Me!="endTag"?(We="error",Qe):(ut(Ye),Bt)}function Ve(Me,pt,Ye){return We="error",Qe(Me,pt,Ye)}function Tt(Me,pt,Ye){if(Me=="word")return We="attribute",ht;if(Me=="endTag"||Me=="selfcloseTag"){var ye=Ye.tagName,jt=Ye.tagStart;return Ye.tagName=Ye.tagStart=null,Me=="selfcloseTag"||Se.autoSelfClosers.hasOwnProperty(ye)?St(Ye,ye):(St(Ye,ye),Ye.context=new Be(Ye,ye,jt==Ye.indented)),Bt}return We="error",Tt}function ht(Me,pt,Ye){return Me=="equals"?Xe:(Se.allowMissing||(We="error"),Tt(Me,pt,Ye))}function Xe(Me,pt,Ye){return Me=="string"?et:Me=="word"&&Se.allowUnquoted?(We="string",Tt):(We="error",Tt(Me,pt,Ye))}function et(Me,pt,Ye){return Me=="string"?et:Tt(Me,pt,Ye)}return{startState:function(Me){var pt={tokenize:De,state:Bt,indented:Me||0,tagName:null,tagStart:null,context:null};return Me!=null&&(pt.baseIndent=Me),pt},token:function(Me,pt){if(!pt.tagName&&Me.sol()&&(pt.indented=Me.indentation()),Me.eatSpace())return null;ce=null;var Ye=pt.tokenize(Me,pt);return(Ye||ce)&&Ye!="comment"&&(We=null,pt.state=pt.state(ce||Ye,Me,pt),We&&(Ye=We=="error"?Ye+" error":We)),Ye},indent:function(Me,pt,Ye){var ye=Me.context;if(Me.tokenize.isInAttribute)return Me.tagStart==Me.indented?Me.stringStartCol+1:Me.indented+be;if(ye&&ye.noIndent)return E.Pass;if(Me.tokenize!=It&&Me.tokenize!=De)return Ye?Ye.match(/^(\s*)/)[0].length:0;if(Me.tagName)return Se.multilineTagIndentPastTag!==!1?Me.tagStart+Me.tagName.length+2:Me.tagStart+be*(Se.multilineTagIndentFactor||1);if(Se.alignCDATA&&/<!\[CDATA\[/.test(pt))return 0;var jt=pt&&/^<(\/)?([\w_:\.-]*)/.exec(pt);if(jt&&jt[1])for(;ye;)if(ye.tagName==jt[2]){ye=ye.prev;break}else if(Se.implicitlyClosed.hasOwnProperty(ye.tagName))ye=ye.prev;else break;else if(jt)for(;ye;){var Ue=Se.contextGrabbers[ye.tagName];if(Ue&&Ue.hasOwnProperty(jt[2]))ye=ye.prev;else break}for(;ye&&ye.prev&&!ye.startOfLine;)ye=ye.prev;return ye?ye.indent+be:Me.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Se.htmlMode?"html":"xml",helperType:Se.htmlMode?"html":"xml",skipAttribute:function(Me){Me.state==Xe&&(Me.state=Tt)},xmlCurrentTag:function(Me){return Me.tagName?{name:Me.tagName,close:Me.type=="closeTag"}:null},xmlCurrentContext:function(Me){for(var pt=[],Ye=Me.context;Ye;Ye=Ye.prev)Ye.tagName&&pt.push(Ye.tagName);return pt.reverse()}}}),E.defineMIME("text/xml","xml"),E.defineMIME("application/xml","xml"),E.mimeModes.hasOwnProperty("text/html")||E.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(fn,Ht,ee){"use strict";ee.d(Ht,{hP:function(){return wt}});var E=function(ae,ne){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,oe){te.__proto__=oe}||function(te,oe){for(var ue in oe)Object.prototype.hasOwnProperty.call(oe,ue)&&(te[ue]=oe[ue])})(ae,ne)};function Ae(ae,ne){function te(){this.constructor=ae}E(ae,ne),ae.prototype=ne===null?Object.create(ne):(te.prototype=ne.prototype,new te)}function pe(ae,ne,te,oe){return new(te||(te=Promise))(function(ue,re){function le(ke){try{lt(oe.next(ke))}catch(Ie){re(Ie)}}function ge(ke){try{lt(oe.throw(ke))}catch(Ie){re(Ie)}}function lt(ke){var Ie;ke.done?ue(ke.value):(Ie=ke.value,Ie instanceof te?Ie:new te(function(Fe){Fe(Ie)})).then(le,ge)}lt((oe=oe.apply(ae,ne||[])).next())})}function Ge(ae,ne){var te,oe,ue,re,le={label:0,sent:function(){if(1&ue[0])throw ue[1];return ue[1]},trys:[],ops:[]};return re={next:ge(0),throw:ge(1),return:ge(2)},typeof Symbol=="function"&&(re[Symbol.iterator]=function(){return this}),re;function ge(lt){return function(ke){return function(Ie){if(te)throw new TypeError("Generator is already executing.");for(;le;)try{if(te=1,oe&&(ue=2&Ie[0]?oe.return:Ie[0]?oe.throw||((ue=oe.return)&&ue.call(oe),0):oe.next)&&!(ue=ue.call(oe,Ie[1])).done)return ue;switch(oe=0,ue&&(Ie=[2&Ie[0],ue.value]),Ie[0]){case 0:case 1:ue=Ie;break;case 4:return le.label++,{value:Ie[1],done:!1};case 5:le.label++,oe=Ie[1],Ie=[0];continue;case 7:Ie=le.ops.pop(),le.trys.pop();continue;default:if(ue=le.trys,!((ue=ue.length>0&&ue[ue.length-1])||Ie[0]!==6&&Ie[0]!==2)){le=0;continue}if(Ie[0]===3&&(!ue||Ie[1]>ue[0]&&Ie[1]<ue[3])){le.label=Ie[1];break}if(Ie[0]===6&&le.label<ue[1]){le.label=ue[1],ue=Ie;break}if(ue&&le.label<ue[2]){le.label=ue[2],le.ops.push(Ie);break}ue[2]&&le.ops.pop(),le.trys.pop();continue}Ie=ne.call(ae,le)}catch(Fe){Ie=[6,Fe],oe=0}finally{te=ue=0}if(5&Ie[0])throw Ie[1];return{value:Ie[0]?Ie[1]:void 0,done:!0}}([lt,ke])}}}function Ee(){for(var ae=0,ne=0,te=arguments.length;ne<te;ne++)ae+=arguments[ne].length;var oe=Array(ae),ue=0;for(ne=0;ne<te;ne++)for(var re=arguments[ne],le=0,ge=re.length;le<ge;le++,ue++)oe[ue]=re[le];return oe}var be=function(){function ae(){}return ae.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ae.setAttributes=function(ne,te){for(var oe=0,ue=te;oe<ue.length;oe++){var re=ue[oe],le=re[0],ge=re[1];ne.setAttribute(le,ge)}},ae.createRect=function(ne,te,oe){var ue=document.createElementNS("http://www.w3.org/2000/svg","rect");return ue.setAttribute("width",ne.toString()),ue.setAttribute("height",te.toString()),oe&&ae.setAttributes(ue,oe),ue},ae.createLine=function(ne,te,oe,ue,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",ue.toString()),re&&ae.setAttributes(le,re),le},ae.createPolygon=function(ne,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",ne),te&&ae.setAttributes(oe,te),oe},ae.createCircle=function(ne,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(ne/2).toString()),oe.setAttribute("cy",(ne/2).toString()),oe.setAttribute("r",ne.toString()),te&&ae.setAttributes(oe,te),oe},ae.createEllipse=function(ne,te,oe){var ue=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ue.setAttribute("cx",(ne/2).toString()),ue.setAttribute("cy",(te/2).toString()),ue.setAttribute("rx",(ne/2).toString()),ue.setAttribute("ry",(te/2).toString()),oe&&ae.setAttributes(ue,oe),ue},ae.createGroup=function(ne){var te=document.createElementNS("http://www.w3.org/2000/svg","g");return ne&&ae.setAttributes(te,ne),te},ae.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ae.createMarker=function(ne,te,oe,ue,re,le,ge){var lt=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(lt,[["id",ne],["orient",te],["markerWidth",oe.toString()],["markerHeight",ue.toString()],["refX",re.toString()],["refY",le.toString()]]),lt.appendChild(ge),lt},ae.createText=function(ne){var te=document.createElementNS("http://www.w3.org/2000/svg","text");return te.setAttribute("x","0"),te.setAttribute("y","0"),ne&&ae.setAttributes(te,ne),te},ae.createTSpan=function(ne,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=ne,te&&ae.setAttributes(oe,te),oe},ae.createImage=function(ne){var te=document.createElementNS("http://www.w3.org/2000/svg","image");return ne&&ae.setAttributes(te,ne),te},ae.createPoint=function(ne,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=ne,oe.y=te,oe},ae.createPath=function(ne,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",ne),te&&ae.setAttributes(oe,te),oe},ae}(),Se=function(){function ae(){}return ae.addKey=function(ne){ae.key=ne},Object.defineProperty(ae,"isLicensed",{get:function(){return!!ae.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ae.key)},enumerable:!1,configurable:!0}),ae}(),Ze=function(){function ae(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ae.prototype.rasterize=function(ne,te,oe){var ue=this;return new Promise(function(re){var le=oe!==void 0?oe:document.createElement("canvas");ne===null&&(ue.markersOnly=!0,ue.naturalSize=!1);var ge=document.createElementNS("http://www.w3.org/2000/svg","svg");ge.setAttribute("xmlns","http://www.w3.org/2000/svg"),ge.setAttribute("width",te.width.baseVal.valueAsString),ge.setAttribute("height",te.height.baseVal.valueAsString),ge.setAttribute("viewBox","0 0 "+te.viewBox.baseVal.width.toString()+" "+te.viewBox.baseVal.height.toString()),ge.innerHTML=te.innerHTML,ue.naturalSize===!0?(ge.width.baseVal.value=ne.naturalWidth,ge.height.baseVal.value=ne.naturalHeight):ue.width!==void 0&&ue.height!==void 0&&(ge.width.baseVal.value=ue.width,ge.height.baseVal.value=ue.height),le.width=ge.width.baseVal.value,le.height=ge.height.baseVal.value;var lt=ge.outerHTML,ke=le.getContext("2d");ue.markersOnly!==!0&&ke.drawImage(ne,0,0,le.width,le.height);var Ie=window.URL,Fe=new Image(le.width,le.height);Fe.setAttribute("crossOrigin","anonymous");var Ke=new Blob([lt],{type:"image/svg+xml"}),it=Ie.createObjectURL(Ke);Fe.onload=function(){ke.drawImage(Fe,0,0),Ie.revokeObjectURL(it);var xe=le.toDataURL(ue.imageType,ue.imageQuality);re(xe)},Fe.src=it})},ae}(),Ne=function(){},ce=function(){function ae(ne){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ne+"_"}return Object.defineProperty(ae.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ae.prototype.addClass=function(ne){return this.styleSheet===void 0&&this.addStyleSheet(),ne.name=""+this.classNamePrefix+ne.localName,this.classes.push(ne),this.styleSheet.sheet.insertRule("."+ne.name+" {"+ne.style+"}",this.styleSheet.sheet.cssRules.length),ne},ae.prototype.addRule=function(ne){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ne),this.styleSheet.sheet.insertRule(ne.selector+" {"+ne.style+"}",this.styleSheet.sheet.cssRules.length)},ae.prototype.addStyleSheet=function(){var ne;this.styleSheet=document.createElement("style"),((ne=this.styleSheetRoot)!==null&&ne!==void 0?ne:document.head).appendChild(this.styleSheet),this.addRule(new We("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new We("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new We("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new De("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new De("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},ae.prototype.removeStyleSheet=function(){var ne;this.styleSheet&&(((ne=this.styleSheetRoot)!==null&&ne!==void 0?ne:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ae}(),We=function(ae,ne){this.selector=ae,this.style=ne},De=function(ae,ne){this.localName=ae,this.style=ne},It=function(){function ae(ne,te,oe,ue,re){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ne,this.displayMode=te,this.markerItems=oe,this.uiStyleSettings=ue,this.styles=re,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ae.prototype.show=function(ne){var te=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ne,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var oe=document.createElement("div");oe.className=this.toolbarBlockStyleClass.name,oe.style.whiteSpace="nowrap",this.uiContainer.appendChild(oe),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(re){var le=document.createElement("div");le.className=""+te.toolbarButtonStyleClass.name,le.setAttribute("data-type-name",re.typeName),le.innerHTML=re.icon,le.addEventListener("click",function(){te.markerToolbarButtonClicked(le,re)}),te.buttons.push(le),te.markerButtons.push(le)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ue=document.createElement("div");ue.className=this.toolbarBlockStyleClass.name,ue.style.whiteSpace="nowrap",ue.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ue),this.addActionButton(ue,'<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(ue,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ae.prototype.addButtonClickListener=function(ne){this.buttonClickListeners.push(ne)},ae.prototype.removeButtonClickListener=function(ne){this.buttonClickListeners.indexOf(ne)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ne),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ne=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var te=0;te<this.markerButtons.length;te++)te<ne||te===ne&&this.markerButtons.length-1===ne?this.markerButtonBlock.appendChild(this.markerButtons[te]):(te===ne&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[te]))}},ae.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},ae.prototype.resetButtonStyles=function(){var ne=this;this.buttons.forEach(function(te){te.className=te.className.replace(ne.uiStyleSettings.toolbarButtonStyleColorsClassName?ne.uiStyleSettings.toolbarButtonStyleColorsClassName:ne.toolbarButtonStyleColorsClass.name,"").trim(),te.className=te.className.replace(ne.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ne.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ne.toolbarActiveButtonStyleColorsClass.name,"").trim(),te.className+=" "+(ne.uiStyleSettings.toolbarButtonStyleColorsClassName?ne.uiStyleSettings.toolbarButtonStyleColorsClassName:ne.toolbarButtonStyleColorsClass.name)})},ae.prototype.addActionButton=function(ne,te,oe){var ue=this,re=document.createElement("div");switch(re.className=""+this.toolbarButtonStyleClass.name,re.innerHTML=te,re.setAttribute("data-action",oe),re.addEventListener("click",function(){ue.actionToolbarButtonClicked(re,oe)}),oe){case"select":re.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":re.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":re.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":re.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":re.style.fill=this.uiStyleSettings.closeButtonColor}ne.appendChild(re),this.buttons.push(re)},ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new De("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 De("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new De("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new De("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 De("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var ne=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new De("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 De("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new De("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new We("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new We("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},ae.prototype.markerToolbarButtonClicked=function(ne,te){this.setActiveButton(ne),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",te)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(ne,te){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",te)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(ne){this.resetButtonStyles(),ne.className=ne.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ne.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(ne){var te=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===ne});te&&this.setActiveButton(te)},ae.prototype.setCurrentMarker=function(ne){var te=this;this.currentMarker=ne,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){te.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},ae}(),at=function(){function ae(ne,te,oe,ue){this.panels=[],this.panelButtons=[],this.markerjsContainer=ne,this.displayMode=te,this.uiStyleSettings=oe,this.styles=ue,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var ne;this.toolboxStyleClass=this.styles.addClass(new De("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 De("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new De("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new De("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new De("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 De("toolbox-panel-row_colors",`
|
|
|
background-color: `+((ne=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ne!==void 0?ne:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new De("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 De("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new De("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new We("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new We("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},ae.prototype.show=function(ne){var te;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ne,this.uiContainer.className=this.toolboxStyleClass.name+" "+((te=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&te!==void 0?te:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(ne){var te,oe,ue=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=ue.uiStyleSettings;var ge=document.createElement("div");ge.className=ue.toolboxButtonStyleClass.name+" "+((le=ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&le!==void 0?le:ue.toolboxButtonStyleColorsClass.name),ge.innerHTML=re.icon,ge.title=re.title,ge.addEventListener("click",function(){ue.panelButtonClick(re)}),ue.panelButtons.push(ge),ue.buttonRow.appendChild(ge)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(ne){var te=this,oe=-1;if(ne!==this.activePanel){oe=this.panels.indexOf(ne),this.panelRow.innerHTML="";var ue=ne.getUi();ue.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ue),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 ge,lt;re.className=te.toolboxButtonStyleClass.name+" "+(le===oe?""+((ge=te.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&ge!==void 0?ge:te.toolboxActiveButtonStyleColorsClass.name):""+((lt=te.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&<!==void 0?lt:te.toolboxButtonStyleColorsClass.name))})},ae}(),qe=function(ae,ne){this.title=ae,this.icon=ne},He=function(ae){function ne(te,oe,ue,re){var le=ae.call(this,te,re||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return le.colors=[],le.addTransparent=!1,le.colorBoxes=[],le.colors=oe,le.currentColor=ue,le.setCurrentColor=le.setCurrentColor.bind(le),le.getColorBox=le.getColorBox.bind(le),le}return Ae(ne,ae),ne.prototype.getUi=function(){var te=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(ue){var re=te.getColorBox(ue);oe.appendChild(re),te.colorBoxes.push(re)}),oe},ne.prototype.getColorBox=function(te){var oe=this,ue=this.uiStyleSettings.toolbarHeight/4,re=this.uiStyleSettings.toolbarHeight-ue,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 ge=document.createElement("div");return ge.style.display="inline-block",ge.style.width=re-2+"px",ge.style.height=re-2+"px",ge.style.backgroundColor=te,ge.style.borderRadius=re/2+"px",te==="transparent"&&(ge.style.fill=this.uiStyleSettings.toolboxAccentColor,ge.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(ge),le},ne.prototype.setCurrentColor=function(te,oe){var ue=this;this.currentColor=te,this.colorBoxes.forEach(function(re){re.style.borderColor=re===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(te)},ne}(qe),Be=function(){function ae(ne,te,oe){this._state="new",this._isSelected=!1,this._container=ne,this._overlayContainer=te,this.globalSettings=oe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ae.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(ne){return!1},Object.defineProperty(ae.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ae.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ae.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ae.prototype.pointerDown=function(ne,te){},ae.prototype.dblClick=function(ne,te){},ae.prototype.manipulate=function(ne){},ae.prototype.pointerUp=function(ne){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(ne){this.container.childNodes.length>0?this.container.insertBefore(ne,this.container.childNodes[0]):this.container.appendChild(ne)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(ne){this._state=ne.state,this.notes=ne.notes},ae.prototype.scale=function(ne,te){},ae.prototype.colorChanged=function(ne){this.onColorChanged&&this.onColorChanged(ne),this.stateChanged()},ae.prototype.fillColorChanged=function(ne){this.onFillColorChanged&&this.onFillColorChanged(ne),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ne=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ne.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ne)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),ut=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(ne){return this.topLeft.ownsTarget(ne)?this.topLeft:this.topCenter.ownsTarget(ne)?this.topCenter:this.topRight.ownsTarget(ne)?this.topRight:this.centerLeft.ownsTarget(ne)?this.centerLeft:this.centerRight.ownsTarget(ne)?this.centerRight:this.bottomLeft.ownsTarget(ne)?this.bottomLeft:this.bottomCenter.ownsTarget(ne)?this.bottomCenter:this.bottomRight.ownsTarget(ne)?this.bottomRight:void 0},ae}(),St=function(){function ae(){this.GRIP_SIZE=10,this.visual=be.createGroup(),this.visual.appendChild(be.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(be.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(ne){return ne===this.visual||ne===this.visual.childNodes[0]||ne===this.visual.childNodes[1]},ae}(),Bt=function(){function ae(){}return ae.toITransformMatrix=function(ne){return{a:ne.a,b:ne.b,c:ne.c,d:ne.d,e:ne.e,f:ne.f}},ae.toSVGMatrix=function(ne,te){return ne.a=te.a,ne.b=te.b,ne.c=te.c,ne.d=te.d,ne.e=te.e,ne.f=te.f,ne},ae}(),je=function(ae){function ne(te,oe,ue){var re=ae.call(this,te,oe,ue)||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(be.createTransform()),re.setupControlBox(),re}return Ae(ne,ae),Object.defineProperty(ne.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"visual",{get:function(){return this._visual},set:function(te){this._visual=te;var oe=be.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),ne.prototype.ownsTarget=function(te){return!!ae.prototype.ownsTarget.call(this,te)||!!(this.controlGrips.findGripByVisual(te)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(te))},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.state==="new"&&(this.left=te.x,this.top=te.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ue=this.unrotatePoint(te);if(this.manipulationStartX=ue.x,this.manipulationStartY=ue.y,this.offsetX=ue.x-this.left,this.offsetY=ue.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var re=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=re.x-this.width/2,this.top=re.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var le=this.container.transform.baseVal.getItem(0);le.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(le,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ne.prototype.pointerUp=function(te){var oe=this.state;ae.prototype.pointerUp.call(this,te),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(te),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ne.prototype.moveVisual=function(te){this.visual.style.transform="translate("+te.x+"px, "+te.y+"px)"},ne.prototype.manipulate=function(te){var oe=this.unrotatePoint(te);this.state==="creating"?this.resize(te):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(te)},ne.prototype.resize=function(te){var oe=this.manipulationStartLeft,ue=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,ue=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ue=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}ue>=0?(this.left=oe,this.width=ue):(this.left=oe+ue,this.width=-ue),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(),ue=be.createPoint(te.x,te.y);return{x:(ue=ue.matrixTransform(oe)).x,y:ue.y}},ne.prototype.unrotatePoint=function(te){if(this.rotationAngle===0)return te;var oe=this.container.getCTM();oe=oe.inverse();var ue=be.createPoint(te.x,te.y);return{x:(ue=ue.matrixTransform(oe)).x,y:ue.y}},ne.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ne.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ne.prototype.setupControlBox=function(){this.controlBox=be.createGroup();var te=be.createTransform();te.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(te),this.container.appendChild(this.controlBox),this.controlRect=be.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=be.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 ut,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 St;return te.visual.transform.baseVal.appendItem(be.createTransform()),this.controlBox.appendChild(te.visual),te},ne.prototype.positionGrips=function(){var te=this.controlGrips.topLeft.GRIP_SIZE,oe=-te/2,ue=oe,re=(this.width+this.CB_DISTANCE)/2-te/2,le=(this.height+this.CB_DISTANCE)/2-te/2,ge=this.height+this.CB_DISTANCE-te/2,lt=this.width+this.CB_DISTANCE-te/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,ue),this.positionGrip(this.controlGrips.topCenter.visual,re,ue),this.positionGrip(this.controlGrips.topRight.visual,lt,ue),this.positionGrip(this.controlGrips.centerLeft.visual,oe,le),this.positionGrip(this.controlGrips.centerRight.visual,lt,le),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,ge),this.positionGrip(this.controlGrips.bottomCenter.visual,re,ge),this.positionGrip(this.controlGrips.bottomRight.visual,lt,ge),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,re,ue-3*this.CB_DISTANCE)},ne.prototype.positionGrip=function(te,oe,ue){var re=te.transform.baseVal.getItem(0);re.setTranslate(oe,ue),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:Bt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Bt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var oe=te;this.left=oe.left,this.top=oe.top,this.width=oe.width,this.height=oe.height,this.rotationAngle=oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Bt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Bt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe);var ue=this.rotatePoint({x:this.left,y:this.top}),re=this.unrotatePoint({x:ue.x*te,y:ue.y*oe});this.left=re.x,this.top=re.y,this.width=this.width*te,this.height=this.height*oe,this.adjustControlBox()},ne}(Be),Te=function(ae){function ne(te,oe,ue){var re=ae.call(this,te,oe,ue)||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 Ae(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual)},ne.prototype.createVisual=function(){this.visual=be.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},ne.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.setSize()},ne.prototype.setSize=function(){ae.prototype.setSize.call(this),be.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ne.prototype.pointerUp=function(te){ae.prototype.pointerUp.call(this,te),this.setSize()},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.visual&&be.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.visual&&be.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.visual&&be.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.visual&&be.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ne.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},ne.prototype.restoreState=function(te){var oe=te;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.setSize()},ne.title="Rectangle marker",ne}(je),Qe=function(ae){function ne(te,oe,ue,re){var le=ae.call(this,te,re||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return le.widths=[],le.widthBoxes=[],le.widths=oe,le.currentWidth=ue,le.setCurrentWidth=le.setCurrentWidth.bind(le),le}return Ae(ne,ae),ne.prototype.getUi=function(){var te=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(ue){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=ue===te.currentWidth?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentWidth(ue,re)}),oe.appendChild(re);var le=document.createElement("div");le.innerText=ue.toString(),le.style.marginRight="5px",re.appendChild(le);var ge=document.createElement("div");ge.style.minHeight="20px",ge.style.flexGrow="2",ge.style.display="flex",ge.style.alignItems="center";var lt=document.createElement("hr");lt.style.minWidth="20px",lt.style.border="0px",lt.style.borderTop=ue+"px solid "+te.uiStyleSettings.toolboxColor,lt.style.flexGrow="2",ge.appendChild(lt),re.appendChild(ge),te.widthBoxes.push(re)}),oe},ne.prototype.setCurrentWidth=function(te,oe){var ue=this;this.currentWidth=te,this.widthBoxes.forEach(function(re){re.style.borderColor=re===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ne}(qe),Ve=function(ae){function ne(te,oe,ue,re){var le=ae.call(this,te,re||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return le.styles=[],le.styleBoxes=[],le.styles=oe,le.currentStyle=ue,le.setCurrentStyle=le.setCurrentStyle.bind(le),le}return Ae(ne,ae),ne.prototype.getUi=function(){var te=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(ue){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=ue===te.currentStyle?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentStyle(ue,re)}),oe.appendChild(re);var le=document.createElement("div");le.style.minHeight="20px",le.style.flexGrow="2",le.style.overflow="hidden";var ge=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+te.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ue!==""?'stroke-dasharray="'+ue+'"':"")+` />
|
|
|
</svg>`;le.innerHTML=ge,re.appendChild(le),te.styleBoxes.push(re)}),oe},ne.prototype.setCurrentStyle=function(te,oe){var ue=this;this.currentStyle=te,this.styleBoxes.forEach(function(re){re.style.borderColor=re===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ne}(qe),Tt=function(ae){function ne(te,oe,ue){var re=ae.call(this,te,oe,ue)||this;return re.strokeColor=ue.defaultColor,re.strokeWidth=ue.defaultStrokeWidth,re.strokeDasharray=ue.defaultStrokeDasharray,re.strokePanel=new He("Line color",ue.defaultColorSet,ue.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new Qe("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Ve("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Ae(ne,ae),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="FrameMarker",ne.title="Frame marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ne}(Te),ht=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"},Xe=function(ae){function ne(te,oe,ue){var re=ae.call(this,te,oe,ue)||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 Ae(ne,ae),ne.prototype.ownsTarget=function(te){return!!ae.prototype.ownsTarget.call(this,te)||!(!this.grip1.ownsTarget(te)&&!this.grip2.ownsTarget(te))},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.manipulationStartX=te.x,this.manipulationStartY=te.y,this.state==="new"&&(this.x1=te.x,this.y1=te.y,this.x2=te.x,this.y2=te.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ne.prototype.pointerUp=function(te){var oe=this.state;ae.prototype.pointerUp.call(this,te),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(te),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ne.prototype.adjustVisual=function(){},ne.prototype.manipulate=function(te){this.state==="creating"?this.resize(te):this.state==="move"?(this.x1=this.manipulationStartX1+te.x-this.manipulationStartX,this.y1=this.manipulationStartY1+te.y-this.manipulationStartY,this.x2=this.manipulationStartX2+te.x-this.manipulationStartX,this.y2=this.manipulationStartY2+te.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(te)},ne.prototype.resize=function(te){switch(this.activeGrip){case this.grip1:this.x1=te.x,this.y1=te.y;break;case this.grip2:case void 0:this.x2=te.x,this.y2=te.y}this.adjustVisual(),this.adjustControlBox()},ne.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ne.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ne.prototype.setupControlBox=function(){this.controlBox=be.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 St;return te.visual.transform.baseVal.appendItem(be.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,ue){var re=te.transform.baseVal.getItem(0);re.setTranslate(oe,ue),te.transform.baseVal.replaceItem(re,0)},ne.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var oe=te;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.x1=this.x1*te,this.y1=this.y1*oe,this.x2=this.x2*te,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},ne}(Be),et=function(ae){function ne(te,oe,ue){var re=ae.call(this,te,oe,ue)||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=ue.defaultColor,re.strokeWidth=ue.defaultStrokeWidth,re.strokeDasharray=ue.defaultStrokeDasharray,re.strokePanel=new He("Line color",ue.defaultColorSet,ue.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new Qe("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Ve("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Ae(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.selectorLine&&te!==this.visibleLine)},ne.prototype.createVisual=function(){this.visual=be.createGroup(),this.selectorLine=be.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=be.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ne.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),be.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),be.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),be.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.adjustVisual(),this.colorChanged(te)},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.adjustVisual()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var oe=te;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},ne.typeName="LineMarker",ne.title="Line marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ne}(Xe),Me=function(ae){function ne(te,oe,ue,re){var le=ae.call(this,te,re||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return le.fonts=[],le.fontBoxes=[],le.fonts=oe,le.currentFont=ue,le.setCurrentFont=le.setCurrentFont.bind(le),le}return Ae(ne,ae),ne.prototype.getUi=function(){var te=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(ue){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=ue===te.currentFont?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentFont(ue,re)}),oe.appendChild(re);var le=document.createElement("div");le.style.display="flex",le.style.minHeight="20px",le.style.flexGrow="2",le.style.fontFamily=ue,le.style.overflow="hidden";var ge=document.createElement("div");ge.style.whiteSpace="nowrap",ge.style.overflow="hidden",ge.style.textOverflow="ellipsis",ge.innerHTML="The quick brown fox jumps over the lazy dog",le.appendChild(ge),re.appendChild(le),te.fontBoxes.push(re)}),oe},ne.prototype.setCurrentFont=function(te,oe){var ue=this;this.currentFont=te,this.fontBoxes.forEach(function(re){re.style.borderColor=re===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ne}(qe),pt=function(ae){function ne(te,oe,ue){var re=ae.call(this,te,oe,ue)||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=ue.defaultColor,re.fontFamily=ue.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 He("Color",ue.defaultColorSet,ue.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.fontFamilyPanel=new Me("Font",ue.defaultFontFamilies,ue.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re}return Ae(ne,ae),ne.prototype.ownsTarget=function(te){if(ae.prototype.ownsTarget.call(this,te)||te===this.visual||te===this.textElement||te===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(ue){ue===te&&(oe=!0)}),oe},ne.prototype.createVisual=function(){this.visual=be.createGroup(),this.bgRectangle=be.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=be.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(be.createTransform()),this.textElement.transform.baseVal.appendItem(be.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.isMoved=!1,this.pointerDownPoint=te,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},ne.prototype.renderText=function(){var te=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(oe){te.textElement.appendChild(be.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 ue=(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(ue,re)}return oe},ne.prototype.getTextPosition=function(te){var oe=this.textElement.getBBox(),ue=0,re=0;return oe.width>0&&oe.height>0&&(ue=(this.width-oe.width*te)/2,re=this.height/2-oe.height*te/2),{x:ue,y:re}},ne.prototype.sizeText=function(){var te=this.textElement.getBBox(),oe=this.getTextScale(),ue=this.getTextPosition(oe);ue.y-=te.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ue.x+"px, "+ue.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ue.x,ue.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},ne.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(te.x-this.pointerDownPoint.x)>5||Math.abs(te.y-this.pointerDownPoint.y)>5)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.isMoved=!0,this.setSize(),this.sizeText()},ne.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(be.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),be.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ne.prototype.pointerUp=function(te){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,te),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ne.prototype.showTextEditor=function(){var te=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(te.textEditor.style.fontSize);te.textEditor.clientWidth>=Number.parseInt(te.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,te.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var ue=oe.clipboardData.getData("text"),re=window.getSelection();if(!re.rangeCount)return!1;re.deleteFromDocument(),re.getRangeAt(0).insertNode(document.createTextNode(ue)),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}),ue=this.textElement.getBBox(),re={x:ue.width*te,y:ue.height*te};oe.x-=re.x/2,oe.y-=re.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*te,12)+"px",this.textElement.style.display="none"}},ne.prototype.textEditDivClicked=function(te){this.text=te.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ne.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ne.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},ne.prototype.dblClick=function(te,oe){ae.prototype.dblClick.call(this,te,oe),this.showTextEditor()},ne.prototype.setColor=function(te){this.textElement&&be.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&&be.setAttributes(this.textElement,[["font-family",te]]),this.fontFamily=te,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ne.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ne.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){var oe=te;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},ne.typeName="TextMarker",ne.title="Text marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',ne}(je),Ye=function(ae){function ne(te,oe,ue){var re=ae.call(this,te,oe,ue)||this;return re.color="transparent",re.lineWidth=3,re.drawing=!1,re.pixelRatio=1,re.color=ue.defaultColor,re.lineWidth=ue.defaultStrokeWidth,re.pixelRatio=ue.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 He("Color",ue.defaultColorSet,ue.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.lineWidthPanel=new Qe("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.lineWidthPanel.onWidthChanged=re.setLineWidth,re}return Ae(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.drawingImage)},ne.prototype.createVisual=function(){this.visual=be.createGroup(),this.drawingImage=be.createImage(),this.visual.appendChild(this.drawingImage);var te=be.createTransform();this.visual.transform.baseVal.appendItem(te),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,oe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(te.x,te.y),this.drawing=!0):ae.prototype.pointerDown.call(this,te,oe)},ne.prototype.manipulate=function(te){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(te.x,te.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),be.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),be.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ne.prototype.pointerUp=function(te){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,te)},ne.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},ne.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},ne.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},ne.prototype.finishCreation=function(){for(var te=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ue=oe[0],re=oe[1],le=oe[2],ge=oe[3],lt=!1,ke=0;ke<this.canvasElement.height;ke++)for(var Ie=0;Ie<this.canvasElement.width;Ie++)te.data[ke*this.canvasElement.width*4+4*Ie+3]>0&&(lt=!0,ke<re&&(re=ke),Ie<ue&&(ue=Ie),ke>ge&&(ge=ke),Ie>le&&(le=Ie));if(lt){this.left=ue/this.pixelRatio,this.top=re/this.pixelRatio,this.width=(le-ue)/this.pixelRatio,this.height=(ge-re)/this.pixelRatio;var Fe=document.createElement("canvas");Fe.width=le-ue,Fe.height=ge-re,Fe.getContext("2d").putImageData(this.canvasContext.getImageData(ue,re,le-ue,ge-re),0,0),this.drawingImgUrl=Fe.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ne.prototype.setDrawingImage=function(){be.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),be.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ne.prototype.setColor=function(te){this.color=te,this.colorChanged(te)},ne.prototype.setLineWidth=function(te){this.lineWidth=te},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){this.createVisual(),ae.prototype.restoreState.call(this,te),this.drawingImgUrl=te.drawingImgUrl,this.setDrawingImage()},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.setDrawingImage()},ne.typeName="FreehandMarker",ne.title="Freehand marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',ne}(je),ye=function(ae){function ne(te,oe,ue){var re=ae.call(this,te,ue||'<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 Ae(ne,ae),ne.prototype.getUi=function(){var te=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var ue=function(ge){var lt="both";switch(ge){case 0:lt="both";break;case 1:lt="start";break;case 2:lt="end";break;case 3:lt="none"}var ke=document.createElement("div");if(ke.style.display="flex",ke.style.flexGrow="2",ke.style.alignItems="center",ke.style.justifyContent="space-between",ke.style.padding="5px",ke.style.borderWidth="2px",ke.style.borderStyle="solid",ke.style.borderColor=lt===re.currentType?re.uiStyleSettings.toolboxAccentColor:"transparent",ke.addEventListener("click",function(){te.setCurrentType(lt,ke)}),oe.appendChild(ke),lt==="both"||lt==="start"){var Ie=document.createElement("div");Ie.style.display="flex",Ie.style.alignItems="center",Ie.style.minHeight="20px",Ie.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>`,Ie.style.marginLeft="5px",ke.appendChild(Ie)}var Fe=document.createElement("div");Fe.style.display="flex",Fe.style.alignItems="center",Fe.style.minHeight="20px",Fe.style.flexGrow="2";var Ke=document.createElement("hr");if(Ke.style.minWidth="20px",Ke.style.border="0px",Ke.style.borderTop="3px solid "+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee"),Ke.style.flexGrow="2",Fe.appendChild(Ke),ke.appendChild(Fe),lt==="both"||lt==="end"){var it=document.createElement("div");it.style.display="flex",it.style.alignItems="center",it.style.minHeight="20px",it.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>`,it.style.marginRight="5px",ke.appendChild(it)}re.typeBoxes.push(ke)},re=this,le=0;le<4;le++)ue(le);return oe},ne.prototype.setCurrentType=function(te,oe){var ue=this;this.currentType=te,this.typeBoxes.forEach(function(re){re.style.borderColor=re===oe?ue.uiStyleSettings!==void 0?ue.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ne}(qe),jt=function(ae){function ne(te,oe,ue){var re=ae.call(this,te,oe,ue)||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 ye("Arrow type","end"),re.arrowTypePanel.onArrowTypeChanged=re.setArrowType,re}return Ae(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.arrow1&&te!==this.arrow2)},ne.prototype.getArrowPoints=function(te,oe){var ue=this.arrowBaseWidth+2*this.strokeWidth,re=this.arrowBaseHeight+2*this.strokeWidth;return te-ue/2+","+(oe+re/2)+" "+te+","+(oe-re/2)+" "+(te+ue/2)+","+(oe+re/2)},ne.prototype.createTips=function(){this.arrow1=be.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(be.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=be.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(be.createTransform()),this.visual.appendChild(this.arrow2)},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.state==="creating"&&this.createTips()},ne.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",be.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),be.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 ue=this.arrow2.transform.baseVal.getItem(0);ue.setRotate(te+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ue,0)}},ne.prototype.setArrowType=function(te){this.arrowType=te,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var oe=te;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},ne.typeName="ArrowMarker",ne.title="Arrow marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ne}(et),Ue=function(ae){function ne(te,oe,ue){var re=ae.call(this,te,oe,ue)||this;return re.fillColor=ue.defaultFillColor,re.strokeWidth=0,re.fillPanel=new He("Color",ue.defaultColorSet,ue.defaultFillColor),re.fillPanel.onColorChanged=re.setFillColor,re}return Ae(ne,ae),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="CoverMarker",ne.title="Cover marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ne}(Te),nt=function(ae){function ne(te,oe,ue,re){var le=ae.call(this,te,re||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return le.opacities=[],le.opacityBoxes=[],le.opacities=oe,le.currentOpacity=ue,le.setCurrentOpacity=le.setCurrentOpacity.bind(le),le}return Ae(ne,ae),ne.prototype.getUi=function(){var te=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(ue){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=ue===te.currentOpacity?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentOpacity(ue,re)}),oe.appendChild(re);var le=document.createElement("div");le.innerText=100*ue+"%",re.appendChild(le),te.opacityBoxes.push(re)}),oe},ne.prototype.setCurrentOpacity=function(te,oe){var ue=this;this.currentOpacity=te,this.opacityBoxes.forEach(function(re){re.style.borderColor=re===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ne}(qe),zt=function(ae){function ne(te,oe,ue){var re=ae.call(this,te,oe,ue)||this;return re.setOpacity=re.setOpacity.bind(re),re.fillColor=ue.defaultHighlightColor,re.strokeWidth=0,re.opacity=ue.defaultHighlightOpacity,re.fillPanel=new He("Color",ue.defaultColorSet,re.fillColor),re.fillPanel.onColorChanged=re.setFillColor,re.opacityPanel=new nt("Opacity",ue.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return Ae(ne,ae),ne.prototype.setOpacity=function(te){this.opacity=te,this.visual&&be.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="HighlightMarker",ne.title="Highlight marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',ne}(Ue),Ce='<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>',de='<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>',vt=function(ae){function ne(te,oe,ue){var re=ae.call(this,te,oe,ue)||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=ue.defaultStrokeColor,re.bgColor=ue.defaultFillColor,re.fontFamily=ue.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 He("Text color",ue.defaultColorSet,re.color,Ce),re.colorPanel.onColorChanged=re.setColor,re.bgColorPanel=new He("Fill color",ue.defaultColorSet,re.bgColor,de),re.bgColorPanel.onColorChanged=re.setBgColor,re.fontFamilyPanel=new Me("Font",ue.defaultFontFamilies,ue.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.tipGrip=new St,re.tipGrip.visual.transform.baseVal.appendItem(be.createTransform()),re.controlBox.appendChild(re.tipGrip.visual),re}return Ae(ne,ae),ne.prototype.ownsTarget=function(te){return ae.prototype.ownsTarget.call(this,te)||this.tipGrip.ownsTarget(te)||this.tip===te},ne.prototype.createTip=function(){be.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=be.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ne.prototype.pointerDown=function(te,oe){this.state==="new"&&ae.prototype.pointerDown.call(this,te,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,te,oe)},ne.prototype.pointerUp=function(te){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,te);else{var oe=this.state==="creating";ae.prototype.pointerUp.call(this,te),this.setTipPoints(oe),this.positionTip()}},ne.prototype.manipulate=function(te){if(this.tipMoving){var oe=this.unrotatePoint(te);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,te)},ne.prototype.setBgColor=function(te){this.bgRectangle&&this.tip&&(be.setAttributes(this.bgRectangle,[["fill",te]]),be.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),ue=this.height/5;te&&(this.tipPosition={x:oe+ue/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))?(ue=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+ue,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+ue}):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))?(ue=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-ue,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+ue}):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))?(ue=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-ue,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-ue},this.tipBase2Position={x:this.width,y:this.height-oe}):re<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ue=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+ue,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-ue})},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.positionTip()},ne.prototype.positionTip=function(){be.setAttributes(this.tip,[["points",this.getTipPoints()]]);var te=this.tipGrip.visual.transform.baseVal.getItem(0);te.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(te,0)},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ne.prototype.select=function(){this.positionTip(),ae.prototype.select.call(this)},ne.prototype.getState=function(){var te=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){var oe=te;this.bgColor=oe.bgColor,this.tipPosition=oe.tipPosition,ae.prototype.restoreState.call(this,te),this.createTip(),this.setTipPoints()},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.tipPosition={x:this.tipPosition.x*te,y:this.tipPosition.y*oe},this.positionTip()},ne.typeName="CalloutMarker",ne.title="Callout marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',ne}(pt),Kt=function(ae){function ne(te,oe,ue){var re=ae.call(this,te,oe,ue)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.strokeColor=ue.defaultColor,re.strokeWidth=ue.defaultStrokeWidth,re.strokeDasharray=ue.defaultStrokeDasharray,re.fillColor=ue.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 He("Line color",Ee(ue.defaultColorSet,["transparent"]),ue.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new He("Fill color",Ee(ue.defaultColorSet,["transparent"]),re.fillColor,de),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new Qe("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Ve("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.opacityPanel=new nt("Opacity",ue.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return Ae(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual)},ne.prototype.createVisual=function(){this.visual=be.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},ne.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.setSize()},ne.prototype.setSize=function(){ae.prototype.setSize.call(this),be.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ne.prototype.pointerUp=function(te){ae.prototype.pointerUp.call(this,te),this.setSize()},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.visual&&be.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.visual&&be.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(te),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.visual&&be.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.visual&&be.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ne.prototype.setOpacity=function(te){this.opacity=te,this.visual&&be.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){var oe=te;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.setSize()},ne.typeName="EllipseMarker",ne.title="Ellipse marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ne}(je),Lt=function(ae){function ne(te,oe,ue){return ae.call(this,te,oe,ue)||this}return Ae(ne,ae),Object.defineProperty(ne.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.tip1&&te!==this.tip2)},ne.prototype.createTips=function(){this.tip1=be.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(be.createTransform()),this.visual.appendChild(this.tip1),this.tip2=be.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(be.createTransform()),this.visual.appendChild(this.tip2)},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.state==="creating"&&this.createTips()},ne.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(be.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()]]),be.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 ue=this.tip2.transform.baseVal.getItem(0);ue.setRotate(te+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ue,0)}},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te),this.createTips(),this.adjustVisual()},ne.typeName="MeasurementMarker",ne.title="Measurement marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',ne}(et),Pe=function(ae){function ne(te,oe,ue){var re=ae.call(this,te,oe,ue)||this;return re.strokePanel.colors=ue.defaultColorSet,re.fillColor="transparent",re}return Ae(ne,ae),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="EllipseFrameMarker",ne.title="Ellipse frame marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ne}(Kt),ot=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(ne){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ne)||(this.undoStack.push(ne),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ne)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(ne){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ne)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var ne=this.undoStack.pop();return ne!==void 0&&this.redoStack.push(ne),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),rt=function(ae){function ne(te,oe,ue){var re=ae.call(this,te,oe,ue)||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=ue.defaultColor,re.strokeWidth=ue.defaultStrokeWidth,re.strokeDasharray=ue.defaultStrokeDasharray,re.strokePanel=new He("Line color",ue.defaultColorSet,ue.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new Qe("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Ve("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Ae(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.selectorCurve&&te!==this.visibleCurve&&!this.curveGrip.ownsTarget(te))},ne.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ne.prototype.createVisual=function(){this.visual=be.createGroup(),this.selectorCurve=be.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=be.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=te.x,this.curveY=te.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},ne.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),be.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),be.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),be.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ne.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=be.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=be.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},ne.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},ne.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var te=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-te/2,this.curveY-te/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},ne.prototype.manipulate=function(te){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+te.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+te.y-this.manipulationStartY),ae.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){this.activeGrip===this.curveGrip&&(this.curveX=te.x,this.curveY=te.y),ae.prototype.resize.call(this,te),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.adjustVisual(),this.colorChanged(te)},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.adjustVisual()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.adjustVisual()},ne.prototype.scale=function(te,oe){this.curveX=this.curveX*te,this.curveY=this.curveY*oe,ae.prototype.scale.call(this,te,oe)},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var oe=te;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},ne.typeName="CurveMarker",ne.title="Curve marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',ne}(Xe),an=function(ae){function ne(te,oe,ue){var re=ae.call(this,te,oe,ue)||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=ue.defaultColor,re.strokeWidth=ue.defaultStrokeWidth,re.strokeDasharray=ue.defaultStrokeDasharray,re.fillColor=ue.defaultFillColor,re.textColor=ue.defaultStrokeColor,re.fontFamily=ue.defaultFontFamily,re.fontSize=ue.defaultCaptionFontSize,re.captionText=ue.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 He("Line color",Ee(ue.defaultColorSet,["transparent"]),re.strokeColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new He("Fill color",Ee(ue.defaultColorSet,["transparent"]),re.fillColor,de),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new Qe("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Ve("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.fontFamilyPanel=new Me("Font",ue.defaultFontFamilies,ue.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.textColorPanel=new He("Text color",ue.defaultColorSet,re.textColor,Ce),re.textColorPanel.onColorChanged=re.setTextColor,re}return Ae(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.frame&&te!==this.captionBg&&te!==this.captionElement)},ne.prototype.createVisual=function(){this.visual=be.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=be.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=be.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=be.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},ne.prototype.setCaptionText=function(te){this.captionText=te,this.captionElement.textContent=this.captionText,this.sizeCaption()},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.isMoved=!1,this.pointerDownPoint=te,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},ne.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(te.x-this.pointerDownPoint.x)>5||Math.abs(te.y-this.pointerDownPoint.y)>5)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.setSize()},ne.prototype.sizeCaption=function(){var te=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=te.width+2*this.PADDING,this.captionBoxHeight=te.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),be.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')"]]),be.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&&be.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&&be.setAttributes(this.captionElement,[["fill",te]]),this.textColor=te,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ne.prototype.setSize=function(){ae.prototype.setSize.call(this),be.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ne.prototype.pointerUp=function(te){ae.prototype.pointerUp.call(this,te),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ne.prototype.dblClick=function(te,oe){ae.prototype.dblClick.call(this,te,oe),this.showTextEditor()},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.frame&&be.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.captionBg&&be.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(te),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.frame&&be.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.frame&&be.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},ae.prototype.getState.call(this));return te.typeName=this.typeName,te},ne.prototype.restoreState=function(te){var oe=te;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.textColor=oe.textColor,this.fontFamily=oe.fontFamily,this.captionText=oe.captionText,this.fontSize=oe.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.setSize()},ne.typeName="CaptionFrameMarker",ne.title="Caption frame marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',ne}(je),tt=function(){function ae(ne,te){te===void 0&&(te=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ne,this.cancelable=te}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),Rt=function(ae){function ne(te,oe,ue){var re=ae.call(this,te,!1)||this;return re.dataUrl=oe,re.state=ue,re}return Ae(ne,ae),ne}(tt),_e=function(ae){function ne(te,oe,ue){ue===void 0&&(ue=!1);var re=ae.call(this,te,ue)||this;return re.marker=oe,re}return Ae(ne,ae),ne}(tt),Gt=function(){function ae(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ae.prototype.addEventListener=function(ne,te){this[ne].push(te)},ae.prototype.removeEventListener=function(ne,te){var oe=this[ne].indexOf(te);oe>-1&&this[ne].splice(oe,1)},ae}(),wt=function(){function ae(ne){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ht,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 Gt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new ce(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ne,this.targetRoot=document.body,this.width=ne.clientWidth,this.height=ne.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[Tt,Ye,jt,pt,Pe,Kt,zt,vt,Lt,Ue,et,rt,an]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Tt,Ye,jt,pt,Kt,zt,vt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Tt,Ye,jt,pt,zt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ne){var te=this;this._availableMarkerTypes.splice(0),ne.forEach(function(oe){if(typeof oe=="string"){var ue=te.ALL_MARKER_TYPES.find(function(re){return re.typeName===oe});ue!==void 0&&te._availableMarkerTypes.push(ue)}else te._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ne){this._zoomLevel=ne,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Se.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var ne=this;this.styles.styleSheetRoot===void 0&&Ne.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ne.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(te){return te(new tt(ne))})},ae.prototype.render=function(){return pe(this,void 0,void 0,function(){var ne;return Ge(this,function(te){switch(te.label){case 0:return this.setCurrentMarker(),(ne=new Ze).naturalSize=this.renderAtNaturalSize,ne.imageType=this.renderImageType,ne.imageQuality=this.renderImageQuality,ne.markersOnly=this.renderMarkersOnly,ne.width=this.renderWidth,ne.height=this.renderHeight,[4,ne.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return te.sent(),[4,ne.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,te.sent()]}})})},ae.prototype.close=function(ne){var te=this;if(ne===void 0&&(ne=!1),this.isOpen){var oe=!1;ne||this.eventListeners.beforeclose.forEach(function(ue){var re=new tt(te,!0);ue(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(ue){return ue(new tt(te))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var ne,te=[],oe=0;oe<arguments.length;oe++)te[oe]=arguments[oe];(ne=this._availableMarkerTypes).push.apply(ne,te)},ae.prototype.addRenderEventListener=function(ne){this.addEventListener("render",function(te){ne(te.dataUrl,te.state)})},ae.prototype.removeRenderEventListener=function(ne){},ae.prototype.addCloseEventListener=function(ne){this.addEventListener("close",function(){ne()})},ae.prototype.removeCloseEventListener=function(ne){},ae.prototype.setupResizeObserver=function(){var ne=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ne.resize(ne.target.clientWidth,ne.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ne.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ae.prototype.onPopupTargetResize=function(){var ne=1*this.target.clientWidth/this.target.clientHeight,te=this.editorCanvas.clientWidth/ne>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ne:this.editorCanvas.clientWidth,oe=te<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ne;this.resize(te,oe)},ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ae.prototype.resize=function(ne,te){this._isResizing=!0;var oe=ne/this.imageWidth,ue=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,ue),this._isResizing=!1},ae.prototype.scaleMarkers=function(ne,te){var oe,ue=this;this._currentMarker&&this._currentMarker instanceof pt?this._currentMarker.scale(ne,te):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(re){re!==ue._currentMarker&&re.scale(ne,te)}),oe!==void 0&&this.setCurrentMarker(oe)},ae.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},ae.prototype.setTopLeft=function(){var ne=this.editingTarget.getBoundingClientRect(),te=this.editorCanvas.getBoundingClientRect();this.left=ne.left-te.left,this.top=ne.top-te.top},ae.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},ae.prototype.addDefs=function(){for(var ne,te=[],oe=0;oe<arguments.length;oe++)te[oe]=arguments[oe];this.defs=be.createDefs(),this.addDefsToImage(),(ne=this.defs).append.apply(ne,te)},ae.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ae.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},ae.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ae.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ae.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},ae.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ae.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},ae.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var ne=document.createElement("a");ne.href="https://markerjs.com/",ne.target="_blank",ne.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',ne.title="Powered by marker.js",ne.style.display="grid",ne.style.alignItems="center",ne.style.justifyItems="center",ne.style.padding="3px",ne.style.width="20px",ne.style.height="20px",this.logoUI.appendChild(ne),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ae.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var ne=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ne+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new It(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")},ae.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ae.prototype.removeMarker=function(ne){this.markerImage.removeChild(ne.container),this.markers.indexOf(ne)>-1&&this.markers.splice(this.markers.indexOf(ne),1),ne.dispose()},ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ae.prototype.toolbarButtonClicked=function(ne,te){if(ne==="marker"&&te!==void 0)this.createNewMarker(te);else if(ne==="action")switch(te){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ae.prototype.deleteSelectedMarker=function(){var ne=this;if(this._currentMarker!==void 0){var te=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ue){var re=new _e(ne,ne._currentMarker,!0);ue(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(ue){return ue(new _e(ne,oe))})}}},ae.prototype.clear=function(){var ne=this,te=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(le){var ge=new _e(ne,void 0,!0);le(ge),ge.defaultPrevented&&(te=!0)}),!te)){this.setCurrentMarker();for(var oe=function(le){var ge=ue.markers[le];ue.setCurrentMarker(ue.markers[le]),ue._currentMarker.dispose(),ue.markerImage.removeChild(ue._currentMarker.container),ue.markers.splice(ue.markers.indexOf(ue._currentMarker),1),ue.eventListeners.markerdelete.forEach(function(lt){return lt(new _e(ne,ge))})},ue=this,re=this.markers.length-1;re>=0;re--)oe(re);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var ne;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(ne=this._currentMarker.notes)!==null&&ne!==void 0?ne:"",this.overlayContainer.appendChild(this.notesArea))},ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var ne=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var te=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===te.width&&oe.height===te.height){var ue=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(te),ue<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(re){return re(new tt(ne))})}else this.undoRedoManager.replaceLastUndoStep(te),this.eventListeners.statechange.forEach(function(re){return re(new tt(ne))})}},ae.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ae.prototype.undoStep=function(){var ne=this,te=this.undoRedoManager.undo();te!==void 0&&(this.restoreState(te),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new tt(ne))}))},ae.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ae.prototype.redoStep=function(){var ne=this,te=this.undoRedoManager.redo();te!==void 0&&(this.restoreState(te),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new tt(ne))}))},ae.prototype.stepZoom=function(){var ne=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ne<this.zoomSteps.length-1?this.zoomSteps[ne+1]:this.zoomSteps[0]},ae.prototype.panTo=function(ne){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ne.x,top:this.prevPanPoint.y-ne.y}),this.prevPanPoint=ne},ae.prototype.startRenderAndClose=function(){return pe(this,void 0,void 0,function(){var ne,te,oe=this;return Ge(this,function(ue){switch(ue.label){case 0:return[4,this.render()];case 1:return ne=ue.sent(),te=this.getState(),this.eventListeners.render.forEach(function(re){return re(new Rt(oe,ne,te))}),this.close(!0),[2]}})})},ae.prototype.getState=function(ne){ne===!0&&this.setCurrentMarker();var te={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(oe){return te.markers.push(oe.getState())}),te},ae.prototype.restoreState=function(ne){var te=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ne.markers.forEach(function(oe){var ue=te._availableMarkerTypes.find(function(le){return le.typeName===oe.typeName});if(ue!==void 0){var re=te.addNewMarker(ue);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 tt(te))})},ae.prototype.addNewMarker=function(ne){var te=be.createGroup();return this.markerImage.appendChild(te),new ne(te,this.overlayContainer,this.settings)},ae.prototype.createNewMarker=function(ne){var te,oe=this;(te=typeof ne=="string"?this._availableMarkerTypes.find(function(ue){return ue.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(ue){return ue(new _e(oe,oe._currentMarker))}))},ae.prototype.markerCreated=function(ne){var te=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ne),this.setCurrentMarker(ne),ne instanceof Ye&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ye):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new _e(te,te._currentMarker))})},ae.prototype.colorChanged=function(ne){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ne,this.settings.defaultStrokeColor=ne)},ae.prototype.fillColorChanged=function(ne){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ne)},ae.prototype.markerStateChanged=function(ne){var te=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new _e(te,ne))})},ae.prototype.setCurrentMarker=function(ne){var te=this;this._currentMarker!==ne&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(oe){return oe(new _e(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 _e(te,te._currentMarker))}))},ae.prototype.onPointerDown=function(ne){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ne.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var te=this.markers.find(function(oe){return oe.ownsTarget(ne.target)});te!==void 0?(this.setCurrentMarker(te),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ne.clientX,ne.clientY),ne.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ne.clientX,y:ne.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ne.clientX,ne.clientY))},ae.prototype.onDblClick=function(ne){if(this._isFocused||this.focus(),this.mode==="select"){var te=this.markers.find(function(oe){return oe.ownsTarget(ne.target)});te!==void 0&&te!==this._currentMarker&&this.setCurrentMarker(te),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ne.clientX,ne.clientY),ne.target):this.setCurrentMarker()}},ae.prototype.onPointerMove=function(ne){this.touchPoints!==1&&ne.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ne.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ne.clientX,ne.clientY)):this.zoomLevel>1&&this.panTo({x:ne.clientX,y:ne.clientY}))},ae.prototype.onPointerUp=function(ne){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ne.clientX,ne.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(ne){this._currentMarker===void 0||this.notesArea!==void 0||ne.key!=="Delete"&&ne.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(ne,te){var oe=this.markerImage.getBoundingClientRect();return{x:(ne-oe.left)/this.zoomLevel,y:(te-oe.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ne=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ne+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(ne){Se.addKey(ne)},ae.prototype.addEventListener=function(ne,te){this.eventListeners.addEventListener(ne,te)},ae.prototype.removeEventListener=function(ne,te){this.eventListeners.removeEventListener(ne,te)},ae.prototype.renderState=function(ne){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ne),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var ne=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(te){return te(new tt(ne))}))},ae.prototype.blur=function(){var ne=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(te){return te(new tt(ne))}))},ae.instanceCounter=0,ae}()},6551:function(fn,Ht,ee){"use strict";ee.d(Ht,{ZP:function(){return Se}});var E=ee(72190),Ae=ee(59301),pe=ee(47273),Ge=0,Ee=(0,pe.Z)();function be(){var Ze;return Ee?(Ze=Ge,Ge+=1):Ze="TEST_OR_SSR",Ze}function Se(Ze){var Ne=Ae.useState(),ce=(0,E.Z)(Ne,2),We=ce[0],De=ce[1];return Ae.useEffect(function(){De("rc_select_".concat(be()))},[]),Ze||We}},37463:function(fn,Ht,ee){"use strict";ee.d(Ht,{Ac:function(){return mt},Xo:function(){return Dt},Wx:function(){return sn},ZP:function(){return yr},lk:function(){return Bt}});var E=ee(60499),Ae=ee(77654),pe=ee(18642),Ge=ee(85899),Ee=ee(72190),be=ee(42244),Se=ee(43749),Ze=ee(18929),Ne=ee(48736),ce=ee(59301),We=ee(92310),De=ee.n(We),It=ee(34280),at=ee(49658),qe=ee(8654),He=function(xt){var Le=xt.className,ct=xt.customizeIcon,$e=xt.customizeIconProps,dt=xt.children,Pt=xt.onMouseDown,yn=xt.onClick,Cn=typeof ct=="function"?ct($e):ct;return ce.createElement("span",{className:Le,onMouseDown:function(Qt){Qt.preventDefault(),Pt==null||Pt(Qt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:yn,"aria-hidden":!0},Cn!==void 0?Cn:ce.createElement("span",{className:De()(Le.split(/\s+/).map(function(Mn){return"".concat(Mn,"-icon")}))},dt))},Be=He,ut=function(xt,Le,ct,$e,dt){var Pt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,yn=arguments.length>6?arguments[6]:void 0,Cn=arguments.length>7?arguments[7]:void 0,Mn=ce.useMemo(function(){if((0,Se.Z)($e)==="object")return $e.clearIcon;if(dt)return dt},[$e,dt]),Qt=ce.useMemo(function(){return!!(!Pt&&$e&&(ct.length||yn)&&!(Cn==="combobox"&&yn===""))},[$e,Pt,ct.length,yn,Cn]);return{allowClear:Qt,clearIcon:ce.createElement(Be,{className:"".concat(xt,"-clear"),onMouseDown:Le,customizeIcon:Mn},"\xD7")}},St=ce.createContext(null);function Bt(){return ce.useContext(St)}function je(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,xt=ce.useState(!1),Le=(0,Ee.Z)(xt,2),ct=Le[0],$e=Le[1],dt=ce.useRef(null),Pt=function(){window.clearTimeout(dt.current)};ce.useEffect(function(){return Pt},[]);var yn=function(Mn,Qt){Pt(),dt.current=window.setTimeout(function(){$e(Mn),Qt&&Qt()},st)};return[ct,yn,Pt]}function Te(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,xt=ce.useRef(null),Le=ce.useRef(null);ce.useEffect(function(){return function(){window.clearTimeout(Le.current)}},[]);function ct($e){($e||xt.current===null)&&(xt.current=$e),window.clearTimeout(Le.current),Le.current=window.setTimeout(function(){xt.current=null},st)}return[function(){return xt.current},ct]}function Qe(st,xt,Le,ct){var $e=ce.useRef(null);$e.current={open:xt,triggerOpen:Le,customizedTrigger:ct},ce.useEffect(function(){function dt(Pt){var yn;if(!((yn=$e.current)!==null&&yn!==void 0&&yn.customizedTrigger)){var Cn=Pt.target;Cn.shadowRoot&&Pt.composed&&(Cn=Pt.composedPath()[0]||Cn),$e.current.open&&st().filter(function(Mn){return Mn}).every(function(Mn){return!Mn.contains(Cn)&&Mn!==Cn})&&$e.current.triggerOpen(!1)}}return window.addEventListener("mousedown",dt),function(){return window.removeEventListener("mousedown",dt)}},[])}var Ve=ee(10228);function Tt(st){return st&&![Ve.Z.ESC,Ve.Z.SHIFT,Ve.Z.BACKSPACE,Ve.Z.TAB,Ve.Z.WIN_KEY,Ve.Z.ALT,Ve.Z.META,Ve.Z.WIN_KEY_RIGHT,Ve.Z.CTRL,Ve.Z.SEMICOLON,Ve.Z.EQUALS,Ve.Z.CAPS_LOCK,Ve.Z.CONTEXT_MENU,Ve.Z.F1,Ve.Z.F2,Ve.Z.F3,Ve.Z.F4,Ve.Z.F5,Ve.Z.F6,Ve.Z.F7,Ve.Z.F8,Ve.Z.F9,Ve.Z.F10,Ve.Z.F11,Ve.Z.F12].includes(st)}var ht=ee(26112),Xe=ee(83836);function et(st,xt,Le){var ct=(0,Ge.Z)((0,Ge.Z)({},st),Le?xt:{});return Object.keys(xt).forEach(function($e){var dt=xt[$e];typeof dt=="function"&&(ct[$e]=function(){for(var Pt,yn=arguments.length,Cn=new Array(yn),Mn=0;Mn<yn;Mn++)Cn[Mn]=arguments[Mn];return dt.apply(void 0,Cn),(Pt=st[$e])===null||Pt===void 0?void 0:Pt.call.apply(Pt,[st].concat(Cn))})}),ct}var Me=et,pt=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Ye=function(xt,Le){var ct=xt.prefixCls,$e=xt.id,dt=xt.inputElement,Pt=xt.autoFocus,yn=xt.autoComplete,Cn=xt.editable,Mn=xt.activeDescendantId,Qt=xt.value,_t=xt.open,Yt=xt.attrs,Pn=(0,be.Z)(xt,pt),Fn=dt||ce.createElement("input",null),zn=Fn,jn=zn.ref,Dr=zn.props;return(0,Ne.Kp)(!("maxLength"in Fn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Fn=ce.cloneElement(Fn,(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({type:"search"},Me(Pn,Dr,!0)),{},{id:$e,ref:(0,qe.sQ)(Le,jn),autoComplete:yn||"off",autoFocus:Pt,className:De()("".concat(ct,"-selection-search-input"),Dr==null?void 0:Dr.className),role:"combobox","aria-expanded":_t||!1,"aria-haspopup":"listbox","aria-owns":"".concat($e,"_list"),"aria-autocomplete":"list","aria-controls":"".concat($e,"_list"),"aria-activedescendant":_t?Mn:void 0},Yt),{},{value:Cn?Qt:"",readOnly:!Cn,unselectable:Cn?null:"on",style:(0,Ge.Z)((0,Ge.Z)({},Dr.style),{},{opacity:Cn?null:0})})),Fn},ye=ce.forwardRef(Ye),jt=ye;function Ue(st){return Array.isArray(st)?st:st!==void 0?[st]:[]}var nt=typeof window!="undefined"&&window.document&&window.document.documentElement,zt=nt;function Ce(st){return st!=null}function de(st){return!st&&st!==0}function vt(st){return["string","number"].includes((0,Se.Z)(st))}function Kt(st){var xt=void 0;return st&&(vt(st.title)?xt=st.title.toString():vt(st.label)&&(xt=st.label.toString())),xt}function Lt(st,xt){zt?ce.useLayoutEffect(st,xt):ce.useEffect(st,xt)}function Pe(st){var xt;return(xt=st.key)!==null&&xt!==void 0?xt:st.value}var ot=function(xt){xt.preventDefault(),xt.stopPropagation()},rt=function(xt){var Le=xt.id,ct=xt.prefixCls,$e=xt.values,dt=xt.open,Pt=xt.searchValue,yn=xt.autoClearSearchValue,Cn=xt.inputRef,Mn=xt.placeholder,Qt=xt.disabled,_t=xt.mode,Yt=xt.showSearch,Pn=xt.autoFocus,Fn=xt.autoComplete,zn=xt.activeDescendantId,jn=xt.tabIndex,Dr=xt.removeIcon,Rr=xt.maxTagCount,zr=xt.maxTagTextLength,mr=xt.maxTagPlaceholder,er=mr===void 0?function(Rn){return"+ ".concat(Rn.length," ...")}:mr,or=xt.tagRender,Or=xt.onToggleOpen,Qr=xt.onRemove,Hr=xt.onInputChange,Yr=xt.onInputPaste,Kr=xt.onInputKeyDown,kr=xt.onInputMouseDown,Fr=xt.onInputCompositionStart,oi=xt.onInputCompositionEnd,qr=xt.onInputBlur,ei=ce.useRef(null),si=(0,ce.useState)(0),ci=(0,Ee.Z)(si,2),Zr=ci[0],ti=ci[1],wr=(0,ce.useState)(!1),mi=(0,Ee.Z)(wr,2),Hi=mi[0],Ui=mi[1],yi="".concat(ct,"-selection"),Ii=dt||_t==="multiple"&&yn===!1||_t==="tags"?Pt:"",bi=_t==="tags"||_t==="multiple"&&yn===!1||Yt&&(dt||Hi);Lt(function(){ti(ei.current.scrollWidth)},[Ii]);var Ri=function(On,Qn,dr,Dn,Bn){return ce.createElement("span",{title:Kt(On),className:De()("".concat(yi,"-item"),(0,pe.Z)({},"".concat(yi,"-item-disabled"),dr))},ce.createElement("span",{className:"".concat(yi,"-item-content")},Qn),Dn&&ce.createElement(Be,{className:"".concat(yi,"-item-remove"),onMouseDown:ot,onClick:Bn,customizeIcon:Dr},"\xD7"))},Ki=function(On,Qn,dr,Dn,Bn,Un){var Xn=function(Si){ot(Si),Or(!dt)};return ce.createElement("span",{onMouseDown:Xn},or({label:Qn,value:On,disabled:dr,closable:Dn,onClose:Bn,isMaxTag:!!Un}))},ni=function(On){var Qn=On.disabled,dr=On.label,Dn=On.value,Bn=!Qt&&!Qn,Un=dr;if(typeof zr=="number"&&(typeof dr=="string"||typeof dr=="number")){var Xn=String(Un);Xn.length>zr&&(Un="".concat(Xn.slice(0,zr),"..."))}var jr=function(di){di&&di.stopPropagation(),Qr(On)};return typeof or=="function"?Ki(Dn,Un,Qn,Bn,jr):Ri(On,Un,Qn,Bn,jr)},ar=function(On){if(!$e.length)return null;var Qn=typeof er=="function"?er(On):er;return typeof or=="function"?Ki(void 0,Qn,!1,!1,void 0,!0):Ri({title:Qn},Qn,!1)},wn=ce.createElement("div",{className:"".concat(yi,"-search"),style:{width:Zr},onFocus:function(){Ui(!0)},onBlur:function(){Ui(!1)}},ce.createElement(jt,{ref:Cn,open:dt,prefixCls:ct,id:Le,inputElement:null,disabled:Qt,autoFocus:Pn,autoComplete:Fn,editable:bi,activeDescendantId:zn,value:Ii,onKeyDown:Kr,onMouseDown:kr,onChange:Hr,onPaste:Yr,onCompositionStart:Fr,onCompositionEnd:oi,onBlur:qr,tabIndex:jn,attrs:(0,ht.Z)(xt,!0)}),ce.createElement("span",{ref:ei,className:"".concat(yi,"-search-mirror"),"aria-hidden":!0},Ii,"\xA0")),Ln=ce.createElement(Xe.Z,{prefixCls:"".concat(yi,"-overflow"),data:$e,renderItem:ni,renderRest:ar,suffix:wn,itemKey:Pe,maxCount:Rr});return ce.createElement("span",{className:"".concat(yi,"-wrap")},Ln,!$e.length&&!Ii&&ce.createElement("span",{className:"".concat(yi,"-placeholder")},Mn))},an=rt,tt=function(xt){var Le=xt.inputElement,ct=xt.prefixCls,$e=xt.id,dt=xt.inputRef,Pt=xt.disabled,yn=xt.autoFocus,Cn=xt.autoComplete,Mn=xt.activeDescendantId,Qt=xt.mode,_t=xt.open,Yt=xt.values,Pn=xt.placeholder,Fn=xt.tabIndex,zn=xt.showSearch,jn=xt.searchValue,Dr=xt.activeValue,Rr=xt.maxLength,zr=xt.onInputKeyDown,mr=xt.onInputMouseDown,er=xt.onInputChange,or=xt.onInputPaste,Or=xt.onInputCompositionStart,Qr=xt.onInputCompositionEnd,Hr=xt.onInputBlur,Yr=xt.title,Kr=ce.useState(!1),kr=(0,Ee.Z)(Kr,2),Fr=kr[0],oi=kr[1],qr=Qt==="combobox",ei=qr||zn,si=Yt[0],ci=jn||"";qr&&Dr&&!Fr&&(ci=Dr),ce.useEffect(function(){qr&&oi(!1)},[qr,Dr]);var Zr=Qt!=="combobox"&&!_t&&!zn?!1:!!ci,ti=Yr===void 0?Kt(si):Yr,wr=ce.useMemo(function(){return si?null:ce.createElement("span",{className:"".concat(ct,"-selection-placeholder"),style:Zr?{visibility:"hidden"}:void 0},Pn)},[si,Zr,Pn,ct]);return ce.createElement("span",{className:"".concat(ct,"-selection-wrap")},ce.createElement("span",{className:"".concat(ct,"-selection-search")},ce.createElement(jt,{ref:dt,prefixCls:ct,id:$e,open:_t,inputElement:Le,disabled:Pt,autoFocus:yn,autoComplete:Cn,editable:ei,activeDescendantId:Mn,value:ci,onKeyDown:zr,onMouseDown:mr,onChange:function(Hi){oi(!0),er(Hi)},onPaste:or,onCompositionStart:Or,onCompositionEnd:Qr,onBlur:Hr,tabIndex:Fn,attrs:(0,ht.Z)(xt,!0),maxLength:qr?Rr:void 0})),!qr&&si?ce.createElement("span",{className:"".concat(ct,"-selection-item"),title:ti,style:Zr?{visibility:"hidden"}:void 0},si.label):null,wr)},Rt=tt,_e=function(xt,Le){var ct=(0,ce.useRef)(null),$e=(0,ce.useRef)(!1),dt=xt.prefixCls,Pt=xt.open,yn=xt.mode,Cn=xt.showSearch,Mn=xt.tokenWithEnter,Qt=xt.disabled,_t=xt.prefix,Yt=xt.autoClearSearchValue,Pn=xt.onSearch,Fn=xt.onSearchSubmit,zn=xt.onToggleOpen,jn=xt.onInputKeyDown,Dr=xt.onInputBlur,Rr=xt.domRef;ce.useImperativeHandle(Le,function(){return{focus:function(ti){ct.current.focus(ti)},blur:function(){ct.current.blur()}}});var zr=Te(0),mr=(0,Ee.Z)(zr,2),er=mr[0],or=mr[1],Or=function(ti){var wr=ti.which,mi=ct.current instanceof HTMLTextAreaElement;!mi&&Pt&&(wr===Ve.Z.UP||wr===Ve.Z.DOWN)&&ti.preventDefault(),jn&&jn(ti),wr===Ve.Z.ENTER&&yn==="tags"&&!$e.current&&!Pt&&(Fn==null||Fn(ti.target.value)),!(mi&&!Pt&&~[Ve.Z.UP,Ve.Z.DOWN,Ve.Z.LEFT,Ve.Z.RIGHT].indexOf(wr))&&Tt(wr)&&zn(!0)},Qr=function(){or(!0)},Hr=(0,ce.useRef)(null),Yr=function(ti){Pn(ti,!0,$e.current)!==!1&&zn(!0)},Kr=function(){$e.current=!0},kr=function(ti){$e.current=!1,yn!=="combobox"&&Yr(ti.target.value)},Fr=function(ti){var wr=ti.target.value;if(Mn&&Hr.current&&/[\r\n]/.test(Hr.current)){var mi=Hr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");wr=wr.replace(mi,Hr.current)}Hr.current=null,Yr(wr)},oi=function(ti){var wr=ti.clipboardData,mi=wr==null?void 0:wr.getData("text");Hr.current=mi||""},qr=function(ti){var wr=ti.target;if(wr!==ct.current){var mi=document.body.style.msTouchAction!==void 0;mi?setTimeout(function(){ct.current.focus()}):ct.current.focus()}},ei=function(ti){var wr=er();ti.target!==ct.current&&!wr&&!(yn==="combobox"&&Qt)&&ti.preventDefault(),(yn!=="combobox"&&(!Cn||!wr)||!Pt)&&(Pt&&Yt!==!1&&Pn("",!0,!1),zn())},si={inputRef:ct,onInputKeyDown:Or,onInputMouseDown:Qr,onInputChange:Fr,onInputPaste:oi,onInputCompositionStart:Kr,onInputCompositionEnd:kr,onInputBlur:Dr},ci=yn==="multiple"||yn==="tags"?ce.createElement(an,(0,E.Z)({},xt,si)):ce.createElement(Rt,(0,E.Z)({},xt,si));return ce.createElement("div",{ref:Rr,className:"".concat(dt,"-selector"),onClick:qr,onMouseDown:ei},_t&&ce.createElement("div",{className:"".concat(dt,"-prefix")},_t),ci)},Gt=ce.forwardRef(_e),wt=Gt,ae=ee(68196),ne=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],te=function(xt){var Le=xt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Le,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Le,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Le,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Le,adjustY:1},htmlRegion:"scroll"}}},oe=function(xt,Le){var ct=xt.prefixCls,$e=xt.disabled,dt=xt.visible,Pt=xt.children,yn=xt.popupElement,Cn=xt.animation,Mn=xt.transitionName,Qt=xt.dropdownStyle,_t=xt.dropdownClassName,Yt=xt.direction,Pn=Yt===void 0?"ltr":Yt,Fn=xt.placement,zn=xt.builtinPlacements,jn=xt.dropdownMatchSelectWidth,Dr=xt.dropdownRender,Rr=xt.dropdownAlign,zr=xt.getPopupContainer,mr=xt.empty,er=xt.getTriggerDOMNode,or=xt.onPopupVisibleChange,Or=xt.onPopupMouseEnter,Qr=(0,be.Z)(xt,ne),Hr="".concat(ct,"-dropdown"),Yr=yn;Dr&&(Yr=Dr(yn));var Kr=ce.useMemo(function(){return zn||te(jn)},[zn,jn]),kr=Cn?"".concat(Hr,"-").concat(Cn):Mn,Fr=typeof jn=="number",oi=ce.useMemo(function(){return Fr?null:jn===!1?"minWidth":"width"},[jn,Fr]),qr=Qt;Fr&&(qr=(0,Ge.Z)((0,Ge.Z)({},qr),{},{width:jn}));var ei=ce.useRef(null);return ce.useImperativeHandle(Le,function(){return{getPopupElement:function(){var ci;return(ci=ei.current)===null||ci===void 0?void 0:ci.popupElement}}}),ce.createElement(ae.Z,(0,E.Z)({},Qr,{showAction:or?["click"]:[],hideAction:or?["click"]:[],popupPlacement:Fn||(Pn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Kr,prefixCls:Hr,popupTransitionName:kr,popup:ce.createElement("div",{onMouseEnter:Or},Yr),ref:ei,stretch:oi,popupAlign:Rr,popupVisible:dt,getPopupContainer:zr,popupClassName:De()(_t,(0,pe.Z)({},"".concat(Hr,"-empty"),mr)),popupStyle:qr,getTriggerDOMNode:er,onPopupVisibleChange:or}),Pt)},ue=ce.forwardRef(oe),re=ue,le=ee(48745);function ge(st,xt){var Le=st.key,ct;return"value"in st&&(ct=st.value),Le!=null?Le:ct!==void 0?ct:"rc-index-key-".concat(xt)}function lt(st){return typeof st!="undefined"&&!Number.isNaN(st)}function ke(st,xt){var Le=st||{},ct=Le.label,$e=Le.value,dt=Le.options,Pt=Le.groupLabel,yn=ct||(xt?"children":"label");return{label:yn,value:$e||"value",options:dt||"options",groupLabel:Pt||yn}}function Ie(st){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Le=xt.fieldNames,ct=xt.childrenAsData,$e=[],dt=ke(Le,!1),Pt=dt.label,yn=dt.value,Cn=dt.options,Mn=dt.groupLabel;function Qt(_t,Yt){Array.isArray(_t)&&_t.forEach(function(Pn){if(Yt||!(Cn in Pn)){var Fn=Pn[yn];$e.push({key:ge(Pn,$e.length),groupOption:Yt,data:Pn,label:Pn[Pt],value:Fn})}else{var zn=Pn[Mn];zn===void 0&&ct&&(zn=Pn.label),$e.push({key:ge(Pn,$e.length),group:!0,data:Pn,label:zn}),Qt(Pn[Cn],!0)}})}return Qt(st,!1),$e}function Fe(st){var xt=(0,Ge.Z)({},st);return"props"in xt||Object.defineProperty(xt,"props",{get:function(){return(0,Ne.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),xt}}),xt}var Ke=function(xt,Le,ct){if(!Le||!Le.length)return null;var $e=!1,dt=function yn(Cn,Mn){var Qt=(0,le.Z)(Mn),_t=Qt[0],Yt=Qt.slice(1);if(!_t)return[Cn];var Pn=Cn.split(_t);return $e=$e||Pn.length>1,Pn.reduce(function(Fn,zn){return[].concat((0,Ae.Z)(Fn),(0,Ae.Z)(yn(zn,Yt)))},[]).filter(Boolean)},Pt=dt(xt,Le);return $e?typeof ct!="undefined"?Pt.slice(0,ct):Pt:null},it=ce.createContext(null),xe=it;function Oe(st){var xt=st.visible,Le=st.values;if(!xt)return null;var ct=50;return ce.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Le.slice(0,ct).map(function($e){var dt=$e.label,Pt=$e.value;return["number","string"].includes((0,Se.Z)(dt))?dt:Pt}).join(", ")),Le.length>ct?", ...":null)}var Ot=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Mt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Vt=function(xt){return xt==="tags"||xt==="multiple"},Ft=ce.forwardRef(function(st,xt){var Le,ct=st.id,$e=st.prefixCls,dt=st.className,Pt=st.showSearch,yn=st.tagRender,Cn=st.direction,Mn=st.omitDomProps,Qt=st.displayValues,_t=st.onDisplayValuesChange,Yt=st.emptyOptions,Pn=st.notFoundContent,Fn=Pn===void 0?"Not Found":Pn,zn=st.onClear,jn=st.mode,Dr=st.disabled,Rr=st.loading,zr=st.getInputElement,mr=st.getRawInputElement,er=st.open,or=st.defaultOpen,Or=st.onDropdownVisibleChange,Qr=st.activeValue,Hr=st.onActiveValueChange,Yr=st.activeDescendantId,Kr=st.searchValue,kr=st.autoClearSearchValue,Fr=st.onSearch,oi=st.onSearchSplit,qr=st.tokenSeparators,ei=st.allowClear,si=st.prefix,ci=st.suffixIcon,Zr=st.clearIcon,ti=st.OptionList,wr=st.animation,mi=st.transitionName,Hi=st.dropdownStyle,Ui=st.dropdownClassName,yi=st.dropdownMatchSelectWidth,Ii=st.dropdownRender,bi=st.dropdownAlign,Ri=st.placement,Ki=st.builtinPlacements,ni=st.getPopupContainer,ar=st.showAction,wn=ar===void 0?[]:ar,Ln=st.onFocus,Rn=st.onBlur,On=st.onKeyUp,Qn=st.onKeyDown,dr=st.onMouseDown,Dn=(0,be.Z)(st,Ot),Bn=Vt(jn),Un=(Pt!==void 0?Pt:Bn)||jn==="combobox",Xn=(0,Ge.Z)({},Dn);Mt.forEach(function(Bi){delete Xn[Bi]}),Mn==null||Mn.forEach(function(Bi){delete Xn[Bi]});var jr=ce.useState(!1),Si=(0,Ee.Z)(jr,2),di=Si[0],ki=Si[1];ce.useEffect(function(){ki((0,at.Z)())},[]);var xi=ce.useRef(null),wi=ce.useRef(null),Ai=ce.useRef(null),Di=ce.useRef(null),Ti=ce.useRef(null),so=ce.useRef(!1),Oo=je(),Mo=(0,Ee.Z)(Oo,3),No=Mo[0],Ao=Mo[1],_r=Mo[2];ce.useImperativeHandle(xt,function(){var Bi,hi;return{focus:(Bi=Di.current)===null||Bi===void 0?void 0:Bi.focus,blur:(hi=Di.current)===null||hi===void 0?void 0:hi.blur,scrollTo:function(na){var So;return(So=Ti.current)===null||So===void 0?void 0:So.scrollTo(na)},nativeElement:xi.current||wi.current}});var Lr=ce.useMemo(function(){var Bi;if(jn!=="combobox")return Kr;var hi=(Bi=Qt[0])===null||Bi===void 0?void 0:Bi.value;return typeof hi=="string"||typeof hi=="number"?String(hi):""},[Kr,jn,Qt]),Gi=jn==="combobox"&&typeof zr=="function"&&zr()||null,_i=typeof mr=="function"&&mr(),Wo=(0,qe.x1)(wi,_i==null||(Le=_i.props)===null||Le===void 0?void 0:Le.ref),Qa=ce.useState(!1),Ma=(0,Ee.Z)(Qa,2),qo=Ma[0],ga=Ma[1];(0,It.Z)(function(){ga(!0)},[]);var uo=(0,Ze.Z)(!1,{defaultValue:or,value:er}),Ea=(0,Ee.Z)(uo,2),qa=Ea[0],Na=Ea[1],Po=qo?qa:!1,cl=!Fn&&Yt;(Dr||cl&&Po&&jn==="combobox")&&(Po=!1);var el=cl?!1:Po,Jr=ce.useCallback(function(Bi){var hi=Bi!==void 0?Bi:!Po;Dr||(Na(hi),Po!==hi&&(Or==null||Or(hi)))},[Dr,Po,Na,Or]),fi=ce.useMemo(function(){return(qr||[]).some(function(Bi){return[`
|
|
|
`,`\r
|
|
|
`].includes(Bi)})},[qr]),Vr=ce.useContext(xe)||{},ri=Vr.maxCount,$i=Vr.rawValues,to=function(hi,$o,na){if(!(Bn&<(ri)&&($i==null?void 0:$i.size)>=ri)){var So=!0,Fo=hi;Hr==null||Hr(null);var Ba=Ke(hi,qr,lt(ri)?ri-$i.size:void 0),ka=na?null:Ba;return jn!=="combobox"&&ka&&(Fo="",oi==null||oi(ka),Jr(!1),So=!1),Fr&&Lr!==Fo&&Fr(Fo,{source:$o?"typing":"effect"}),So}},La=function(hi){!hi||!hi.trim()||Fr(hi,{source:"submit"})};ce.useEffect(function(){!Po&&!Bn&&jn!=="combobox"&&to("",!1,!1)},[Po]),ce.useEffect(function(){qa&&Dr&&Na(!1),Dr&&!so.current&&Ao(!1)},[Dr]);var ea=Te(),Ko=(0,Ee.Z)(ea,2),Co=Ko[0],Ia=Ko[1],$a=ce.useRef(!1),sa=function(hi){var $o=Co(),na=hi.key,So=na==="Enter";if(So&&(jn!=="combobox"&&hi.preventDefault(),Po||Jr(!0)),Ia(!!Lr),na==="Backspace"&&!$o&&Bn&&!Lr&&Qt.length){for(var Fo=(0,Ae.Z)(Qt),Ba=null,ka=Fo.length-1;ka>=0;ka-=1){var Ha=Fo[ka];if(!Ha.disabled){Fo.splice(ka,1),Ba=Ha;break}}Ba&&_t(Fo,{type:"remove",values:[Ba]})}for(var pa=arguments.length,ma=new Array(pa>1?pa-1:0),Ra=1;Ra<pa;Ra++)ma[Ra-1]=arguments[Ra];if(Po&&(!So||!$a.current)){var rl;So&&($a.current=!0),(rl=Ti.current)===null||rl===void 0||rl.onKeyDown.apply(rl,[hi].concat(ma))}Qn==null||Qn.apply(void 0,[hi].concat(ma))},Fa=function(hi){for(var $o=arguments.length,na=new Array($o>1?$o-1:0),So=1;So<$o;So++)na[So-1]=arguments[So];if(Po){var Fo;(Fo=Ti.current)===null||Fo===void 0||Fo.onKeyUp.apply(Fo,[hi].concat(na))}hi.key==="Enter"&&($a.current=!1),On==null||On.apply(void 0,[hi].concat(na))},Xa=function(hi){var $o=Qt.filter(function(na){return na!==hi});_t($o,{type:"remove",values:[hi]})},Oa=function(){$a.current=!1},dl=ce.useRef(!1),ms=function(){Ao(!0),Dr||(Ln&&!dl.current&&Ln.apply(void 0,arguments),wn.includes("focus")&&Jr(!0)),dl.current=!0},Jl=function(){so.current=!0,Ao(!1,function(){dl.current=!1,so.current=!1,Jr(!1)}),!Dr&&(Lr&&(jn==="tags"?Fr(Lr,{source:"submit"}):jn==="multiple"&&Fr("",{source:"blur"})),Rn&&Rn.apply(void 0,arguments))},za=[];ce.useEffect(function(){return function(){za.forEach(function(Bi){return clearTimeout(Bi)}),za.splice(0,za.length)}},[]);var tl=function(hi){var $o,na=hi.target,So=($o=Ai.current)===null||$o===void 0?void 0:$o.getPopupElement();if(So&&So.contains(na)){var Fo=setTimeout(function(){var pa=za.indexOf(Fo);if(pa!==-1&&za.splice(pa,1),_r(),!di&&!So.contains(document.activeElement)){var ma;(ma=Di.current)===null||ma===void 0||ma.focus()}});za.push(Fo)}for(var Ba=arguments.length,ka=new Array(Ba>1?Ba-1:0),Ha=1;Ha<Ba;Ha++)ka[Ha-1]=arguments[Ha];dr==null||dr.apply(void 0,[hi].concat(ka))},Pa=ce.useState({}),vs=(0,Ee.Z)(Pa,2),Ll=vs[1];function Ql(){Ll({})}var ql;_i&&(ql=function(hi){Jr(hi)}),Qe(function(){var Bi;return[xi.current,(Bi=Ai.current)===null||Bi===void 0?void 0:Bi.getPopupElement()]},el,Jr,!!_i);var Zs=ce.useMemo(function(){return(0,Ge.Z)((0,Ge.Z)({},st),{},{notFoundContent:Fn,open:Po,triggerOpen:el,id:ct,showSearch:Un,multiple:Bn,toggleOpen:Jr})},[st,Fn,el,Po,ct,Un,Bn,Jr]),Bl=!!ci||Rr,Za;Bl&&(Za=ce.createElement(Be,{className:De()("".concat($e,"-arrow"),(0,pe.Z)({},"".concat($e,"-arrow-loading"),Rr)),customizeIcon:ci,customizeIconProps:{loading:Rr,searchValue:Lr,open:Po,focused:No,showSearch:Un}}));var fl=function(){var hi;zn==null||zn(),(hi=Di.current)===null||hi===void 0||hi.focus(),_t([],{type:"clear",values:Qt}),to("",!1,!1)},xl=ut($e,fl,Qt,ei,Zr,Dr,Lr,jn),Rl=xl.allowClear,hl=xl.clearIcon,Al=ce.createElement(ti,{ref:Ti}),es=De()($e,dt,(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($e,"-focused"),No),"".concat($e,"-multiple"),Bn),"".concat($e,"-single"),!Bn),"".concat($e,"-allow-clear"),ei),"".concat($e,"-show-arrow"),Bl),"".concat($e,"-disabled"),Dr),"".concat($e,"-loading"),Rr),"".concat($e,"-open"),Po),"".concat($e,"-customize-input"),Gi),"".concat($e,"-show-search"),Un)),nl=ce.createElement(re,{ref:Ai,disabled:Dr,prefixCls:$e,visible:el,popupElement:Al,animation:wr,transitionName:mi,dropdownStyle:Hi,dropdownClassName:Ui,direction:Cn,dropdownMatchSelectWidth:yi,dropdownRender:Ii,dropdownAlign:bi,placement:Ri,builtinPlacements:Ki,getPopupContainer:ni,empty:Yt,getTriggerDOMNode:function(hi){return wi.current||hi},onPopupVisibleChange:ql,onPopupMouseEnter:Ql},_i?ce.cloneElement(_i,{ref:Wo}):ce.createElement(wt,(0,E.Z)({},st,{domRef:wi,prefixCls:$e,inputElement:Gi,ref:Di,id:ct,prefix:si,showSearch:Un,autoClearSearchValue:kr,mode:jn,activeDescendantId:Yr,tagRender:yn,values:Qt,open:Po,onToggleOpen:Jr,activeValue:Qr,searchValue:Lr,onSearch:to,onSearchSubmit:La,onRemove:Xa,tokenWithEnter:fi,onInputBlur:Oa}))),ta;return _i?ta=nl:ta=ce.createElement("div",(0,E.Z)({className:es},Xn,{ref:xi,onMouseDown:tl,onKeyDown:sa,onKeyUp:Fa,onFocus:ms,onBlur:Jl}),ce.createElement(Oe,{visible:No&&!Po,values:Qt}),nl,Za,Rl&&hl),ce.createElement(St.Provider,{value:Zs},ta)}),mt=Ft,Zt=function(){return null};Zt.isSelectOptGroup=!0;var Dt=Zt,Ut=function(){return null};Ut.isSelectOption=!0;var sn=Ut,pn=ee(80547),mn=ee(2738),ze=ee(48911);function bt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var $t=["disabled","title","children","style","className"];function ft(st){return typeof st=="string"||typeof st=="number"}var Et=function(xt,Le){var ct=Bt(),$e=ct.prefixCls,dt=ct.id,Pt=ct.open,yn=ct.multiple,Cn=ct.mode,Mn=ct.searchValue,Qt=ct.toggleOpen,_t=ct.notFoundContent,Yt=ct.onPopupScroll,Pn=ce.useContext(xe),Fn=Pn.maxCount,zn=Pn.flattenOptions,jn=Pn.onActiveValue,Dr=Pn.defaultActiveFirstOption,Rr=Pn.onSelect,zr=Pn.menuItemSelectedIcon,mr=Pn.rawValues,er=Pn.fieldNames,or=Pn.virtual,Or=Pn.direction,Qr=Pn.listHeight,Hr=Pn.listItemHeight,Yr=Pn.optionRender,Kr="".concat($e,"-item"),kr=(0,pn.Z)(function(){return zn},[Pt,zn],function(ar,wn){return wn[0]&&ar[1]!==wn[1]}),Fr=ce.useRef(null),oi=ce.useMemo(function(){return yn&<(Fn)&&(mr==null?void 0:mr.size)>=Fn},[yn,Fn,mr==null?void 0:mr.size]),qr=function(wn){wn.preventDefault()},ei=function(wn){var Ln;(Ln=Fr.current)===null||Ln===void 0||Ln.scrollTo(typeof wn=="number"?{index:wn}:wn)},si=ce.useCallback(function(ar){return Cn==="combobox"?!1:mr.has(ar)},[Cn,(0,Ae.Z)(mr).toString(),mr.size]),ci=function(wn){for(var Ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Rn=kr.length,On=0;On<Rn;On+=1){var Qn=(wn+On*Ln+Rn)%Rn,dr=kr[Qn]||{},Dn=dr.group,Bn=dr.data;if(!Dn&&!(Bn!=null&&Bn.disabled)&&(si(Bn.value)||!oi))return Qn}return-1},Zr=ce.useState(function(){return ci(0)}),ti=(0,Ee.Z)(Zr,2),wr=ti[0],mi=ti[1],Hi=function(wn){var Ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;mi(wn);var Rn={source:Ln?"keyboard":"mouse"},On=kr[wn];if(!On){jn(null,-1,Rn);return}jn(On.value,wn,Rn)};(0,ce.useEffect)(function(){Hi(Dr!==!1?ci(0):-1)},[kr.length,Mn]);var Ui=ce.useCallback(function(ar){return Cn==="combobox"?String(ar).toLowerCase()===Mn.toLowerCase():mr.has(ar)},[Cn,Mn,(0,Ae.Z)(mr).toString(),mr.size]);(0,ce.useEffect)(function(){var ar=setTimeout(function(){if(!yn&&Pt&&mr.size===1){var Ln=Array.from(mr)[0],Rn=kr.findIndex(function(On){var Qn=On.data;return Mn?String(Qn.value).startsWith(Mn):Qn.value===Ln});Rn!==-1&&(Hi(Rn),ei(Rn))}});if(Pt){var wn;(wn=Fr.current)===null||wn===void 0||wn.scrollTo(void 0)}return function(){return clearTimeout(ar)}},[Pt,Mn]);var yi=function(wn){wn!==void 0&&Rr(wn,{selected:!mr.has(wn)}),yn||Qt(!1)};if(ce.useImperativeHandle(Le,function(){return{onKeyDown:function(wn){var Ln=wn.which,Rn=wn.ctrlKey;switch(Ln){case Ve.Z.N:case Ve.Z.P:case Ve.Z.UP:case Ve.Z.DOWN:{var On=0;if(Ln===Ve.Z.UP?On=-1:Ln===Ve.Z.DOWN?On=1:bt()&&Rn&&(Ln===Ve.Z.N?On=1:Ln===Ve.Z.P&&(On=-1)),On!==0){var Qn=ci(wr+On,On);ei(Qn),Hi(Qn,!0)}break}case Ve.Z.TAB:case Ve.Z.ENTER:{var dr,Dn=kr[wr];Dn&&!(Dn!=null&&(dr=Dn.data)!==null&&dr!==void 0&&dr.disabled)&&!oi?yi(Dn.value):yi(void 0),Pt&&wn.preventDefault();break}case Ve.Z.ESC:Qt(!1),Pt&&wn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(wn){ei(wn)}}}),kr.length===0)return ce.createElement("div",{role:"listbox",id:"".concat(dt,"_list"),className:"".concat(Kr,"-empty"),onMouseDown:qr},_t);var Ii=Object.keys(er).map(function(ar){return er[ar]}),bi=function(wn){return wn.label};function Ri(ar,wn){var Ln=ar.group;return{role:Ln?"presentation":"option",id:"".concat(dt,"_list_").concat(wn)}}var Ki=function(wn){var Ln=kr[wn];if(!Ln)return null;var Rn=Ln.data||{},On=Rn.value,Qn=Ln.group,dr=(0,ht.Z)(Rn,!0),Dn=bi(Ln);return Ln?ce.createElement("div",(0,E.Z)({"aria-label":typeof Dn=="string"&&!Qn?Dn:null},dr,{key:wn},Ri(Ln,wn),{"aria-selected":Ui(On)}),On):null},ni={role:"listbox",id:"".concat(dt,"_list")};return ce.createElement(ce.Fragment,null,or&&ce.createElement("div",(0,E.Z)({},ni,{style:{height:0,width:0,overflow:"hidden"}}),Ki(wr-1),Ki(wr),Ki(wr+1)),ce.createElement(ze.Z,{itemKey:"key",ref:Fr,data:kr,height:Qr,itemHeight:Hr,fullHeight:!1,onMouseDown:qr,onScroll:Yt,virtual:or,direction:Or,innerProps:or?null:ni},function(ar,wn){var Ln=ar.group,Rn=ar.groupOption,On=ar.data,Qn=ar.label,dr=ar.value,Dn=On.key;if(Ln){var Bn,Un=(Bn=On.title)!==null&&Bn!==void 0?Bn:ft(Qn)?Qn.toString():void 0;return ce.createElement("div",{className:De()(Kr,"".concat(Kr,"-group"),On.className),title:Un},Qn!==void 0?Qn:Dn)}var Xn=On.disabled,jr=On.title,Si=On.children,di=On.style,ki=On.className,xi=(0,be.Z)(On,$t),wi=(0,mn.Z)(xi,Ii),Ai=si(dr),Di=Xn||!Ai&&oi,Ti="".concat(Kr,"-option"),so=De()(Kr,Ti,ki,(0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)({},"".concat(Ti,"-grouped"),Rn),"".concat(Ti,"-active"),wr===wn&&!Di),"".concat(Ti,"-disabled"),Di),"".concat(Ti,"-selected"),Ai)),Oo=bi(ar),Mo=!zr||typeof zr=="function"||Ai,No=typeof Oo=="number"?Oo:Oo||dr,Ao=ft(No)?No.toString():void 0;return jr!==void 0&&(Ao=jr),ce.createElement("div",(0,E.Z)({},(0,ht.Z)(wi),or?{}:Ri(ar,wn),{"aria-selected":Ui(dr),className:so,title:Ao,onMouseMove:function(){wr===wn||Di||Hi(wn)},onClick:function(){Di||yi(dr)},style:di}),ce.createElement("div",{className:"".concat(Ti,"-content")},typeof Yr=="function"?Yr(ar,{index:wn}):No),ce.isValidElement(zr)||Ai,Mo&&ce.createElement(Be,{className:"".concat(Kr,"-option-state"),customizeIcon:zr,customizeIconProps:{value:dr,disabled:Di,isSelected:Ai}},Ai?"\u2713":null))}))},Nt=ce.forwardRef(Et),vn=Nt,kn=function(st,xt){var Le=ce.useRef({values:new Map,options:new Map}),ct=ce.useMemo(function(){var dt=Le.current,Pt=dt.values,yn=dt.options,Cn=st.map(function(_t){if(_t.label===void 0){var Yt;return(0,Ge.Z)((0,Ge.Z)({},_t),{},{label:(Yt=Pt.get(_t.value))===null||Yt===void 0?void 0:Yt.label})}return _t}),Mn=new Map,Qt=new Map;return Cn.forEach(function(_t){Mn.set(_t.value,_t),Qt.set(_t.value,xt.get(_t.value)||yn.get(_t.value))}),Le.current.values=Mn,Le.current.options=Qt,Cn},[st,xt]),$e=ce.useCallback(function(dt){return xt.get(dt)||Le.current.options.get(dt)},[xt]);return[ct,$e]};function cn(st,xt){return Ue(st).join("").toUpperCase().includes(xt)}var bn=function(st,xt,Le,ct,$e){return ce.useMemo(function(){if(!Le||ct===!1)return st;var dt=xt.options,Pt=xt.label,yn=xt.value,Cn=[],Mn=typeof ct=="function",Qt=Le.toUpperCase(),_t=Mn?ct:function(Pn,Fn){return $e?cn(Fn[$e],Qt):Fn[dt]?cn(Fn[Pt!=="children"?Pt:"label"],Qt):cn(Fn[yn],Qt)},Yt=Mn?function(Pn){return Fe(Pn)}:function(Pn){return Pn};return st.forEach(function(Pn){if(Pn[dt]){var Fn=_t(Le,Yt(Pn));if(Fn)Cn.push(Pn);else{var zn=Pn[dt].filter(function(jn){return _t(Le,Yt(jn))});zn.length&&Cn.push((0,Ge.Z)((0,Ge.Z)({},Pn),{},(0,pe.Z)({},dt,zn)))}return}_t(Le,Yt(Pn))&&Cn.push(Pn)}),Cn},[st,ct,$e,Le,xt])},en=ee(6551),on=ee(11592),gn=["children","value"],$n=["children"];function hn(st){var xt=st,Le=xt.key,ct=xt.props,$e=ct.children,dt=ct.value,Pt=(0,be.Z)(ct,gn);return(0,Ge.Z)({key:Le,value:dt!==void 0?dt:Le,children:$e},Pt)}function In(st){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,on.Z)(st).map(function(Le,ct){if(!ce.isValidElement(Le)||!Le.type)return null;var $e=Le,dt=$e.type.isSelectOptGroup,Pt=$e.key,yn=$e.props,Cn=yn.children,Mn=(0,be.Z)(yn,$n);return xt||!dt?hn(Le):(0,Ge.Z)((0,Ge.Z)({key:"__RC_SELECT_GRP__".concat(Pt===null?ct:Pt,"__"),label:Pt},Mn),{},{options:In(Cn)})}).filter(function(Le){return Le})}var xn=function(xt,Le,ct,$e,dt){return ce.useMemo(function(){var Pt=xt,yn=!xt;yn&&(Pt=In(Le));var Cn=new Map,Mn=new Map,Qt=function(Pn,Fn,zn){zn&&typeof zn=="string"&&Pn.set(Fn[zn],Fn)},_t=function Yt(Pn){for(var Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zn=0;zn<Pn.length;zn+=1){var jn=Pn[zn];!jn[ct.options]||Fn?(Cn.set(jn[ct.value],jn),Qt(Mn,jn,ct.label),Qt(Mn,jn,$e),Qt(Mn,jn,dt)):Yt(jn[ct.options],!0)}};return _t(Pt),{options:Pt,valueOptions:Cn,labelOptions:Mn}},[xt,Le,ct,$e,dt])},Wn=xn;function lr(st){var xt=ce.useRef();xt.current=st;var Le=ce.useCallback(function(){return xt.current.apply(xt,arguments)},[]);return Le}function qn(st){var xt=st.mode,Le=st.options,ct=st.children,$e=st.backfill,dt=st.allowClear,Pt=st.placeholder,yn=st.getInputElement,Cn=st.showSearch,Mn=st.onSearch,Qt=st.defaultOpen,_t=st.autoFocus,Yt=st.labelInValue,Pn=st.value,Fn=st.inputValue,zn=st.optionLabelProp,jn=isMultiple(xt),Dr=Cn!==void 0?Cn:jn||xt==="combobox",Rr=Le||convertChildrenToData(ct);if(warning(xt!=="tags"||Rr.every(function(or){return!or.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),xt==="tags"||xt==="combobox"){var zr=Rr.some(function(or){return or.options?or.options.some(function(Or){return typeof("value"in Or?Or.value:Or.key)=="number"}):typeof("value"in or?or.value:or.key)=="number"});warning(!zr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(xt!=="combobox"||!zn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(xt==="combobox"||!$e,"`backfill` only works with `combobox` mode."),warning(xt==="combobox"||!yn,"`getInputElement` only work with `combobox` mode."),noteOnce(xt!=="combobox"||!yn||!dt||!Pt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Mn&&!Dr&&xt!=="combobox"&&xt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Qt||_t,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Pn!=null){var mr=toArray(Pn);warning(!Yt||mr.every(function(or){return _typeof(or)==="object"&&("key"in or||"value"in or)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!jn||Array.isArray(Pn),"`value` should be array when `mode` is `multiple` or `tags`")}if(ct){var er=null;toNodeArray(ct).some(function(or){if(!React.isValidElement(or)||!or.type)return!1;var Or=or,Qr=Or.type;if(Qr.isSelectOption)return!1;if(Qr.isSelectOptGroup){var Hr=toNodeArray(or.props.children).every(function(Yr){return!React.isValidElement(Yr)||!or.type||Yr.type.isSelectOption?!0:(er=Yr.type,!1)});return!Hr}return er=Qr,!0}),er&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(er.displayName||er.name||er,"`.")),warning(Fn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Gn(st,xt){if(st){var Le=function ct($e){for(var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pt=0;Pt<$e.length;Pt++){var yn=$e[Pt];if(yn[xt==null?void 0:xt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!dt&&Array.isArray(yn[xt==null?void 0:xt.options])&&ct(yn[xt==null?void 0:xt.options],!0))break}};Le(st)}}var cr=null,gr=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Ir=["inputValue"];function pr(st){return!st||(0,Se.Z)(st)!=="object"}var tn=ce.forwardRef(function(st,xt){var Le=st.id,ct=st.mode,$e=st.prefixCls,dt=$e===void 0?"rc-select":$e,Pt=st.backfill,yn=st.fieldNames,Cn=st.inputValue,Mn=st.searchValue,Qt=st.onSearch,_t=st.autoClearSearchValue,Yt=_t===void 0?!0:_t,Pn=st.onSelect,Fn=st.onDeselect,zn=st.dropdownMatchSelectWidth,jn=zn===void 0?!0:zn,Dr=st.filterOption,Rr=st.filterSort,zr=st.optionFilterProp,mr=st.optionLabelProp,er=st.options,or=st.optionRender,Or=st.children,Qr=st.defaultActiveFirstOption,Hr=st.menuItemSelectedIcon,Yr=st.virtual,Kr=st.direction,kr=st.listHeight,Fr=kr===void 0?200:kr,oi=st.listItemHeight,qr=oi===void 0?20:oi,ei=st.labelRender,si=st.value,ci=st.defaultValue,Zr=st.labelInValue,ti=st.onChange,wr=st.maxCount,mi=(0,be.Z)(st,gr),Hi=(0,en.ZP)(Le),Ui=Vt(ct),yi=!!(!er&&Or),Ii=ce.useMemo(function(){return Dr===void 0&&ct==="combobox"?!1:Dr},[Dr,ct]),bi=ce.useMemo(function(){return ke(yn,yi)},[JSON.stringify(yn),yi]),Ri=(0,Ze.Z)("",{value:Mn!==void 0?Mn:Cn,postState:function(fi){return fi||""}}),Ki=(0,Ee.Z)(Ri,2),ni=Ki[0],ar=Ki[1],wn=Wn(er,Or,bi,zr,mr),Ln=wn.valueOptions,Rn=wn.labelOptions,On=wn.options,Qn=ce.useCallback(function(Jr){var fi=Ue(Jr);return fi.map(function(Vr){var ri,$i,to,La,ea;if(pr(Vr))ri=Vr;else{var Ko;to=Vr.key,$i=Vr.label,ri=(Ko=Vr.value)!==null&&Ko!==void 0?Ko:to}var Co=Ln.get(ri);if(Co){var Ia;if($i===void 0&&($i=Co==null?void 0:Co[mr||bi.label]),to===void 0&&(to=(Ia=Co==null?void 0:Co.key)!==null&&Ia!==void 0?Ia:ri),La=Co==null?void 0:Co.disabled,ea=Co==null?void 0:Co.title,0)var $a}return{label:$i,value:ri,key:to,disabled:La,title:ea}})},[bi,mr,Ln]),dr=(0,Ze.Z)(ci,{value:si}),Dn=(0,Ee.Z)(dr,2),Bn=Dn[0],Un=Dn[1],Xn=ce.useMemo(function(){var Jr,fi=Ui&&Bn===null?[]:Bn,Vr=Qn(fi);return ct==="combobox"&&de((Jr=Vr[0])===null||Jr===void 0?void 0:Jr.value)?[]:Vr},[Bn,Qn,ct,Ui]),jr=kn(Xn,Ln),Si=(0,Ee.Z)(jr,2),di=Si[0],ki=Si[1],xi=ce.useMemo(function(){if(!ct&&di.length===1){var Jr=di[0];if(Jr.value===null&&(Jr.label===null||Jr.label===void 0))return[]}return di.map(function(fi){var Vr;return(0,Ge.Z)((0,Ge.Z)({},fi),{},{label:(Vr=typeof ei=="function"?ei(fi):fi.label)!==null&&Vr!==void 0?Vr:fi.value})})},[ct,di,ei]),wi=ce.useMemo(function(){return new Set(di.map(function(Jr){return Jr.value}))},[di]);ce.useEffect(function(){if(ct==="combobox"){var Jr,fi=(Jr=di[0])===null||Jr===void 0?void 0:Jr.value;ar(Ce(fi)?String(fi):"")}},[di]);var Ai=lr(function(Jr,fi){var Vr=fi!=null?fi:Jr;return(0,pe.Z)((0,pe.Z)({},bi.value,Jr),bi.label,Vr)}),Di=ce.useMemo(function(){if(ct!=="tags")return On;var Jr=(0,Ae.Z)(On),fi=function(ri){return Ln.has(ri)};return(0,Ae.Z)(di).sort(function(Vr,ri){return Vr.value<ri.value?-1:1}).forEach(function(Vr){var ri=Vr.value;fi(ri)||Jr.push(Ai(ri,Vr.label))}),Jr},[Ai,On,Ln,di,ct]),Ti=bn(Di,bi,ni,Ii,zr),so=ce.useMemo(function(){return ct!=="tags"||!ni||Ti.some(function(Jr){return Jr[zr||"value"]===ni})||Ti.some(function(Jr){return Jr[bi.value]===ni})?Ti:[Ai(ni)].concat((0,Ae.Z)(Ti))},[Ai,zr,ct,Ti,ni,bi]),Oo=function Jr(fi){var Vr=(0,Ae.Z)(fi).sort(function(ri,$i){return Rr(ri,$i,{searchValue:ni})});return Vr.map(function(ri){return Array.isArray(ri.options)?(0,Ge.Z)((0,Ge.Z)({},ri),{},{options:ri.options.length>0?Jr(ri.options):ri.options}):ri})},Mo=ce.useMemo(function(){return Rr?Oo(so):so},[so,Rr,ni]),No=ce.useMemo(function(){return Ie(Mo,{fieldNames:bi,childrenAsData:yi})},[Mo,bi,yi]),Ao=function(fi){var Vr=Qn(fi);if(Un(Vr),ti&&(Vr.length!==di.length||Vr.some(function(to,La){var ea;return((ea=di[La])===null||ea===void 0?void 0:ea.value)!==(to==null?void 0:to.value)}))){var ri=Zr?Vr:Vr.map(function(to){return to.value}),$i=Vr.map(function(to){return Fe(ki(to.value))});ti(Ui?ri:ri[0],Ui?$i:$i[0])}},_r=ce.useState(null),Lr=(0,Ee.Z)(_r,2),Gi=Lr[0],_i=Lr[1],Wo=ce.useState(0),Qa=(0,Ee.Z)(Wo,2),Ma=Qa[0],qo=Qa[1],ga=Qr!==void 0?Qr:ct!=="combobox",uo=ce.useCallback(function(Jr,fi){var Vr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ri=Vr.source,$i=ri===void 0?"keyboard":ri;qo(fi),Pt&&ct==="combobox"&&Jr!==null&&$i==="keyboard"&&_i(String(Jr))},[Pt,ct]),Ea=function(fi,Vr,ri){var $i=function(){var Xa,Oa=ki(fi);return[Zr?{label:Oa==null?void 0:Oa[bi.label],value:fi,key:(Xa=Oa==null?void 0:Oa.key)!==null&&Xa!==void 0?Xa:fi}:fi,Fe(Oa)]};if(Vr&&Pn){var to=$i(),La=(0,Ee.Z)(to,2),ea=La[0],Ko=La[1];Pn(ea,Ko)}else if(!Vr&&Fn&&ri!=="clear"){var Co=$i(),Ia=(0,Ee.Z)(Co,2),$a=Ia[0],sa=Ia[1];Fn($a,sa)}},qa=lr(function(Jr,fi){var Vr,ri=Ui?fi.selected:!0;ri?Vr=Ui?[].concat((0,Ae.Z)(di),[Jr]):[Jr]:Vr=di.filter(function($i){return $i.value!==Jr}),Ao(Vr),Ea(Jr,ri),ct==="combobox"?_i(""):(!Vt||Yt)&&(ar(""),_i(""))}),Na=function(fi,Vr){Ao(fi);var ri=Vr.type,$i=Vr.values;(ri==="remove"||ri==="clear")&&$i.forEach(function(to){Ea(to.value,!1,ri)})},Po=function(fi,Vr){if(ar(fi),_i(null),Vr.source==="submit"){var ri=(fi||"").trim();if(ri){var $i=Array.from(new Set([].concat((0,Ae.Z)(wi),[ri])));Ao($i),Ea(ri,!0),ar("")}return}Vr.source!=="blur"&&(ct==="combobox"&&Ao(fi),Qt==null||Qt(fi))},cl=function(fi){var Vr=fi;ct!=="tags"&&(Vr=fi.map(function($i){var to=Rn.get($i);return to==null?void 0:to.value}).filter(function($i){return $i!==void 0}));var ri=Array.from(new Set([].concat((0,Ae.Z)(wi),(0,Ae.Z)(Vr))));Ao(ri),ri.forEach(function($i){Ea($i,!0)})},el=ce.useMemo(function(){var Jr=Yr!==!1&&jn!==!1;return(0,Ge.Z)((0,Ge.Z)({},wn),{},{flattenOptions:No,onActiveValue:uo,defaultActiveFirstOption:ga,onSelect:qa,menuItemSelectedIcon:Hr,rawValues:wi,fieldNames:bi,virtual:Jr,direction:Kr,listHeight:Fr,listItemHeight:qr,childrenAsData:yi,maxCount:wr,optionRender:or})},[wr,wn,No,uo,ga,qa,Hr,wi,bi,Yr,jn,Kr,Fr,qr,yi,or]);return ce.createElement(xe.Provider,{value:el},ce.createElement(mt,(0,E.Z)({},mi,{id:Hi,prefixCls:dt,ref:xt,omitDomProps:Ir,mode:ct,displayValues:xi,onDisplayValuesChange:Na,direction:Kr,searchValue:ni,onSearch:Po,autoClearSearchValue:Yt,onSearchSplit:cl,dropdownMatchSelectWidth:jn,OptionList:vn,emptyOptions:!No.length,activeValue:Gi,activeDescendantId:"".concat(Hi,"_list_").concat(Ma)})))}),En=tn;En.Option=sn,En.OptGroup=Dt;var An=En,yr=An},22711:function(fn,Ht,ee){"use strict";ee.r(Ht),ee.d(Ht,{ResizableTextArea:function(){return Me},default:function(){return jt}});var E=ee(60499),Ae=ee(18642),pe=ee(85899),Ge=ee(77654),Ee=ee(72190),be=ee(42244),Se=ee(92310),Ze=ee.n(Se),Ne=ee(36901),ce=ee(66003),We=ee(30292),De=ee(18929),It=ee(59301),at=ee(43749),qe=ee(29301),He=ee(34280),Be=ee(16089),ut=`
|
|
|
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;
|
|
|
`,St=["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"],Bt={},je;function Te(Ue){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zt=Ue.getAttribute("id")||Ue.getAttribute("data-reactid")||Ue.getAttribute("name");if(nt&&Bt[zt])return Bt[zt];var Ce=window.getComputedStyle(Ue),de=Ce.getPropertyValue("box-sizing")||Ce.getPropertyValue("-moz-box-sizing")||Ce.getPropertyValue("-webkit-box-sizing"),vt=parseFloat(Ce.getPropertyValue("padding-bottom"))+parseFloat(Ce.getPropertyValue("padding-top")),Kt=parseFloat(Ce.getPropertyValue("border-bottom-width"))+parseFloat(Ce.getPropertyValue("border-top-width")),Lt=St.map(function(ot){return"".concat(ot,":").concat(Ce.getPropertyValue(ot))}).join(";"),Pe={sizingStyle:Lt,paddingSize:vt,borderSize:Kt,boxSizing:de};return nt&&zt&&(Bt[zt]=Pe),Pe}function Qe(Ue){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ce=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;je||(je=document.createElement("textarea"),je.setAttribute("tab-index","-1"),je.setAttribute("aria-hidden","true"),je.setAttribute("name","hiddenTextarea"),document.body.appendChild(je)),Ue.getAttribute("wrap")?je.setAttribute("wrap",Ue.getAttribute("wrap")):je.removeAttribute("wrap");var de=Te(Ue,nt),vt=de.paddingSize,Kt=de.borderSize,Lt=de.boxSizing,Pe=de.sizingStyle;je.setAttribute("style","".concat(Pe,";").concat(ut)),je.value=Ue.value||Ue.placeholder||"";var ot=void 0,rt=void 0,an,tt=je.scrollHeight;if(Lt==="border-box"?tt+=Kt:Lt==="content-box"&&(tt-=vt),zt!==null||Ce!==null){je.value=" ";var Rt=je.scrollHeight-vt;zt!==null&&(ot=Rt*zt,Lt==="border-box"&&(ot=ot+vt+Kt),tt=Math.max(ot,tt)),Ce!==null&&(rt=Rt*Ce,Lt==="border-box"&&(rt=rt+vt+Kt),an=tt>rt?"":"hidden",tt=Math.min(rt,tt))}var _e={height:tt,overflowY:an,resize:"none"};return ot&&(_e.minHeight=ot),rt&&(_e.maxHeight=rt),_e}var Ve=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Tt=0,ht=1,Xe=2,et=It.forwardRef(function(Ue,nt){var zt=Ue,Ce=zt.prefixCls,de=zt.defaultValue,vt=zt.value,Kt=zt.autoSize,Lt=zt.onResize,Pe=zt.className,ot=zt.style,rt=zt.disabled,an=zt.onChange,tt=zt.onInternalAutoSize,Rt=(0,be.Z)(zt,Ve),_e=(0,De.Z)(de,{value:vt,postState:function(sn){return sn!=null?sn:""}}),Gt=(0,Ee.Z)(_e,2),wt=Gt[0],ae=Gt[1],ne=function(sn){ae(sn.target.value),an==null||an(sn)},te=It.useRef();It.useImperativeHandle(nt,function(){return{textArea:te.current}});var oe=It.useMemo(function(){return Kt&&(0,at.Z)(Kt)==="object"?[Kt.minRows,Kt.maxRows]:[]},[Kt]),ue=(0,Ee.Z)(oe,2),re=ue[0],le=ue[1],ge=!!Kt,lt=function(){try{if(document.activeElement===te.current){var sn=te.current,pn=sn.selectionStart,mn=sn.selectionEnd,ze=sn.scrollTop;te.current.setSelectionRange(pn,mn),te.current.scrollTop=ze}}catch(bt){}},ke=It.useState(Xe),Ie=(0,Ee.Z)(ke,2),Fe=Ie[0],Ke=Ie[1],it=It.useState(),xe=(0,Ee.Z)(it,2),Oe=xe[0],Ot=xe[1],Mt=function(){Ke(Tt)};(0,He.Z)(function(){ge&&Mt()},[vt,re,le,ge]),(0,He.Z)(function(){if(Fe===Tt)Ke(ht);else if(Fe===ht){var Ut=Qe(te.current,!1,re,le);Ke(Xe),Ot(Ut)}else lt()},[Fe]);var Vt=It.useRef(),Ft=function(){Be.Z.cancel(Vt.current)},mt=function(sn){Fe===Xe&&(Lt==null||Lt(sn),Kt&&(Ft(),Vt.current=(0,Be.Z)(function(){Mt()})))};It.useEffect(function(){return Ft},[]);var Zt=ge?Oe:null,Dt=(0,pe.Z)((0,pe.Z)({},ot),Zt);return(Fe===Tt||Fe===ht)&&(Dt.overflowY="hidden",Dt.overflowX="hidden"),It.createElement(qe.Z,{onResize:mt,disabled:!(Kt||Lt)},It.createElement("textarea",(0,E.Z)({},Rt,{ref:te,style:Dt,className:Ze()(Ce,Pe,(0,Ae.Z)({},"".concat(Ce,"-disabled"),rt)),disabled:rt,value:wt,onChange:ne})))}),Me=et,pt=["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"],Ye=It.forwardRef(function(Ue,nt){var zt,Ce=Ue.defaultValue,de=Ue.value,vt=Ue.onFocus,Kt=Ue.onBlur,Lt=Ue.onChange,Pe=Ue.allowClear,ot=Ue.maxLength,rt=Ue.onCompositionStart,an=Ue.onCompositionEnd,tt=Ue.suffix,Rt=Ue.prefixCls,_e=Rt===void 0?"rc-textarea":Rt,Gt=Ue.showCount,wt=Ue.count,ae=Ue.className,ne=Ue.style,te=Ue.disabled,oe=Ue.hidden,ue=Ue.classNames,re=Ue.styles,le=Ue.onResize,ge=Ue.onClear,lt=Ue.onPressEnter,ke=Ue.readOnly,Ie=Ue.autoSize,Fe=Ue.onKeyDown,Ke=(0,be.Z)(Ue,pt),it=(0,De.Z)(Ce,{value:de,defaultValue:Ce}),xe=(0,Ee.Z)(it,2),Oe=xe[0],Ot=xe[1],Mt=Oe==null?"":String(Oe),Vt=It.useState(!1),Ft=(0,Ee.Z)(Vt,2),mt=Ft[0],Zt=Ft[1],Dt=It.useRef(!1),Ut=It.useState(null),sn=(0,Ee.Z)(Ut,2),pn=sn[0],mn=sn[1],ze=(0,It.useRef)(null),bt=(0,It.useRef)(null),$t=function(){var En;return(En=bt.current)===null||En===void 0?void 0:En.textArea},ft=function(){$t().focus()};(0,It.useImperativeHandle)(nt,function(){var tn;return{resizableTextArea:bt.current,focus:ft,blur:function(){$t().blur()},nativeElement:((tn=ze.current)===null||tn===void 0?void 0:tn.nativeElement)||$t()}}),(0,It.useEffect)(function(){Zt(function(tn){return!te&&tn})},[te]);var Et=It.useState(null),Nt=(0,Ee.Z)(Et,2),vn=Nt[0],kn=Nt[1];It.useEffect(function(){if(vn){var tn;(tn=$t()).setSelectionRange.apply(tn,(0,Ge.Z)(vn))}},[vn]);var cn=(0,ce.Z)(wt,Gt),bn=(zt=cn.max)!==null&&zt!==void 0?zt:ot,en=Number(bn)>0,on=cn.strategy(Mt),gn=!!bn&&on>bn,$n=function(En,An){var yr=An;!Dt.current&&cn.exceedFormatter&&cn.max&&cn.strategy(An)>cn.max&&(yr=cn.exceedFormatter(An,{max:cn.max}),An!==yr&&kn([$t().selectionStart||0,$t().selectionEnd||0])),Ot(yr),(0,We.rJ)(En.currentTarget,En,Lt,yr)},hn=function(En){Dt.current=!0,rt==null||rt(En)},In=function(En){Dt.current=!1,$n(En,En.currentTarget.value),an==null||an(En)},xn=function(En){$n(En,En.target.value)},Wn=function(En){En.key==="Enter"&<&<(En),Fe==null||Fe(En)},lr=function(En){Zt(!0),vt==null||vt(En)},qn=function(En){Zt(!1),Kt==null||Kt(En)},Gn=function(En){Ot(""),ft(),(0,We.rJ)($t(),En,Lt)},cr=tt,gr;cn.show&&(cn.showFormatter?gr=cn.showFormatter({value:Mt,count:on,maxLength:bn}):gr="".concat(on).concat(en?" / ".concat(bn):""),cr=It.createElement(It.Fragment,null,cr,It.createElement("span",{className:Ze()("".concat(_e,"-data-count"),ue==null?void 0:ue.count),style:re==null?void 0:re.count},gr)));var Ir=function(En){var An;le==null||le(En),(An=$t())!==null&&An!==void 0&&An.style.height&&mn(!0)},pr=!Ie&&!Gt&&!Pe;return It.createElement(Ne.BaseInput,{ref:ze,value:Mt,allowClear:Pe,handleReset:Gn,suffix:cr,prefixCls:_e,classNames:(0,pe.Z)((0,pe.Z)({},ue),{},{affixWrapper:Ze()(ue==null?void 0:ue.affixWrapper,(0,Ae.Z)((0,Ae.Z)({},"".concat(_e,"-show-count"),Gt),"".concat(_e,"-textarea-allow-clear"),Pe))}),disabled:te,focused:mt,className:Ze()(ae,gn&&"".concat(_e,"-out-of-range")),style:(0,pe.Z)((0,pe.Z)({},ne),pn&&!pr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof gr=="string"?gr:void 0}},hidden:oe,readOnly:ke,onClear:ge},It.createElement(Me,(0,E.Z)({},Ke,{autoSize:Ie,maxLength:ot,onKeyDown:Wn,onChange:xn,onFocus:lr,onBlur:qn,onCompositionStart:hn,onCompositionEnd:In,className:Ze()(ue==null?void 0:ue.textarea),style:(0,pe.Z)((0,pe.Z)({},re==null?void 0:re.textarea),{},{resize:ne==null?void 0:ne.resize}),disabled:te,prefixCls:_e,onResize:Ir,ref:bt,readOnly:ke})))}),ye=Ye,jt=ye},639:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Bt}});var E=ee(60499),Ae=ee(18642),pe=ee(85899),Ge=ee(72190),Ee=ee(42244),be=ee(59301),Se=ee(92310),Ze=ee.n(Se),Ne=ee(26112),ce=ee(30699),We=function(Te){for(var Qe=Te.prefixCls,Ve=Te.level,Tt=Te.isStart,ht=Te.isEnd,Xe="".concat(Qe,"-indent-unit"),et=[],Me=0;Me<Ve;Me+=1)et.push(be.createElement("span",{key:Me,className:Ze()(Xe,(0,Ae.Z)((0,Ae.Z)({},"".concat(Xe,"-start"),Tt[Me]),"".concat(Xe,"-end"),ht[Me]))}));return be.createElement("span",{"aria-hidden":"true",className:"".concat(Qe,"-indent")},et)},De=be.memo(We),It=ee(65065),at=ee(34061),qe=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],He="open",Be="close",ut="---",St=function(Te){var Qe,Ve,Tt,ht=Te.eventKey,Xe=Te.className,et=Te.style,Me=Te.dragOver,pt=Te.dragOverGapTop,Ye=Te.dragOverGapBottom,ye=Te.isLeaf,jt=Te.isStart,Ue=Te.isEnd,nt=Te.expanded,zt=Te.selected,Ce=Te.checked,de=Te.halfChecked,vt=Te.loading,Kt=Te.domRef,Lt=Te.active,Pe=Te.data,ot=Te.onMouseMove,rt=Te.selectable,an=(0,Ee.Z)(Te,qe),tt=be.useContext(ce.k),Rt=be.useContext(ce.y),_e=be.useRef(null),Gt=be.useState(!1),wt=(0,Ge.Z)(Gt,2),ae=wt[0],ne=wt[1],te=!!(tt.disabled||Te.disabled||(Qe=Rt.nodeDisabled)!==null&&Qe!==void 0&&Qe.call(Rt,Pe)),oe=be.useMemo(function(){return!tt.checkable||Te.checkable===!1?!1:tt.checkable},[tt.checkable,Te.checkable]),ue=function(on){te||tt.onNodeSelect(on,(0,at.F)(Te))},re=function(on){te||!oe||Te.disableCheckbox||tt.onNodeCheck(on,(0,at.F)(Te),!Ce)},le=be.useMemo(function(){return typeof rt=="boolean"?rt:tt.selectable},[rt,tt.selectable]),ge=function(on){tt.onNodeClick(on,(0,at.F)(Te)),le?ue(on):re(on)},lt=function(on){tt.onNodeDoubleClick(on,(0,at.F)(Te))},ke=function(on){tt.onNodeMouseEnter(on,(0,at.F)(Te))},Ie=function(on){tt.onNodeMouseLeave(on,(0,at.F)(Te))},Fe=function(on){tt.onNodeContextMenu(on,(0,at.F)(Te))},Ke=be.useMemo(function(){return!!(tt.draggable&&(!tt.draggable.nodeDraggable||tt.draggable.nodeDraggable(Pe)))},[tt.draggable,Pe]),it=function(on){on.stopPropagation(),ne(!0),tt.onNodeDragStart(on,Te);try{on.dataTransfer.setData("text/plain","")}catch(gn){}},xe=function(on){on.preventDefault(),on.stopPropagation(),tt.onNodeDragEnter(on,Te)},Oe=function(on){on.preventDefault(),on.stopPropagation(),tt.onNodeDragOver(on,Te)},Ot=function(on){on.stopPropagation(),tt.onNodeDragLeave(on,Te)},Mt=function(on){on.stopPropagation(),ne(!1),tt.onNodeDragEnd(on,Te)},Vt=function(on){on.preventDefault(),on.stopPropagation(),ne(!1),tt.onNodeDrop(on,Te)},Ft=function(on){vt||tt.onNodeExpand(on,(0,at.F)(Te))},mt=be.useMemo(function(){var en=(0,It.Z)(tt.keyEntities,ht)||{},on=en.children;return!!(on||[]).length},[tt.keyEntities,ht]),Zt=be.useMemo(function(){return ye===!1?!1:ye||!tt.loadData&&!mt||tt.loadData&&Te.loaded&&!mt},[ye,tt.loadData,mt,Te.loaded]);be.useEffect(function(){vt||typeof tt.loadData=="function"&&nt&&!Zt&&!Te.loaded&&tt.onNodeLoad((0,at.F)(Te))},[vt,tt.loadData,tt.onNodeLoad,nt,Zt,Te]);var Dt=be.useMemo(function(){var en;return(en=tt.draggable)!==null&&en!==void 0&&en.icon?be.createElement("span",{className:"".concat(tt.prefixCls,"-draggable-icon")},tt.draggable.icon):null},[tt.draggable]),Ut=function(on){var gn=Te.switcherIcon||tt.switcherIcon;return typeof gn=="function"?gn((0,pe.Z)((0,pe.Z)({},Te),{},{isLeaf:on})):gn},sn=function(){if(Zt){var on=Ut(!0);return on!==!1?be.createElement("span",{className:Ze()("".concat(tt.prefixCls,"-switcher"),"".concat(tt.prefixCls,"-switcher-noop"))},on):null}var gn=Ut(!1);return gn!==!1?be.createElement("span",{onClick:Ft,className:Ze()("".concat(tt.prefixCls,"-switcher"),"".concat(tt.prefixCls,"-switcher_").concat(nt?He:Be))},gn):null},pn=be.useMemo(function(){if(!oe)return null;var en=typeof oe!="boolean"?oe:null;return be.createElement("span",{className:Ze()("".concat(tt.prefixCls,"-checkbox"),(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},"".concat(tt.prefixCls,"-checkbox-checked"),Ce),"".concat(tt.prefixCls,"-checkbox-indeterminate"),!Ce&&de),"".concat(tt.prefixCls,"-checkbox-disabled"),te||Te.disableCheckbox)),onClick:re,role:"checkbox","aria-checked":de?"mixed":Ce,"aria-disabled":te||Te.disableCheckbox,"aria-label":"Select ".concat(typeof Te.title=="string"?Te.title:"tree node")},en)},[oe,Ce,de,te,Te.disableCheckbox,Te.title]),mn=be.useMemo(function(){return Zt?null:nt?He:Be},[Zt,nt]),ze=be.useMemo(function(){return be.createElement("span",{className:Ze()("".concat(tt.prefixCls,"-iconEle"),"".concat(tt.prefixCls,"-icon__").concat(mn||"docu"),(0,Ae.Z)({},"".concat(tt.prefixCls,"-icon_loading"),vt))})},[tt.prefixCls,mn,vt]),bt=be.useMemo(function(){var en=!!tt.draggable,on=!Te.disabled&&en&&tt.dragOverNodeKey===ht;return on?tt.dropIndicatorRender({dropPosition:tt.dropPosition,dropLevelOffset:tt.dropLevelOffset,indent:tt.indent,prefixCls:tt.prefixCls,direction:tt.direction}):null},[tt.dropPosition,tt.dropLevelOffset,tt.indent,tt.prefixCls,tt.direction,tt.draggable,tt.dragOverNodeKey,tt.dropIndicatorRender]),$t=be.useMemo(function(){var en=Te.title,on=en===void 0?ut:en,gn="".concat(tt.prefixCls,"-node-content-wrapper"),$n;if(tt.showIcon){var hn=Te.icon||tt.icon;$n=hn?be.createElement("span",{className:Ze()("".concat(tt.prefixCls,"-iconEle"),"".concat(tt.prefixCls,"-icon__customize"))},typeof hn=="function"?hn(Te):hn):ze}else tt.loadData&&vt&&($n=ze);var In;return typeof on=="function"?In=on(Pe):tt.titleRender?In=tt.titleRender(Pe):In=on,be.createElement("span",{ref:_e,title:typeof on=="string"?on:"",className:Ze()(gn,"".concat(gn,"-").concat(mn||"normal"),(0,Ae.Z)({},"".concat(tt.prefixCls,"-node-selected"),!te&&(zt||ae))),onMouseEnter:ke,onMouseLeave:Ie,onContextMenu:Fe,onClick:ge,onDoubleClick:lt},$n,be.createElement("span",{className:"".concat(tt.prefixCls,"-title")},In),bt)},[tt.prefixCls,tt.showIcon,Te,tt.icon,ze,tt.titleRender,Pe,mn,ke,Ie,Fe,ge,lt]),ft=(0,Ne.Z)(an,{aria:!0,data:!0}),Et=(0,It.Z)(tt.keyEntities,ht)||{},Nt=Et.level,vn=Ue[Ue.length-1],kn=!te&&Ke,cn=tt.draggingNodeKey===ht,bn=rt!==void 0?{"aria-selected":!!rt}:void 0;return be.createElement("div",(0,E.Z)({ref:Kt,role:"treeitem","aria-expanded":ye?void 0:nt,className:Ze()(Xe,"".concat(tt.prefixCls,"-treenode"),(Tt={},(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)(Tt,"".concat(tt.prefixCls,"-treenode-disabled"),te),"".concat(tt.prefixCls,"-treenode-switcher-").concat(nt?"open":"close"),!ye),"".concat(tt.prefixCls,"-treenode-checkbox-checked"),Ce),"".concat(tt.prefixCls,"-treenode-checkbox-indeterminate"),de),"".concat(tt.prefixCls,"-treenode-selected"),zt),"".concat(tt.prefixCls,"-treenode-loading"),vt),"".concat(tt.prefixCls,"-treenode-active"),Lt),"".concat(tt.prefixCls,"-treenode-leaf-last"),vn),"".concat(tt.prefixCls,"-treenode-draggable"),Ke),"dragging",cn),(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)(Tt,"drop-target",tt.dropTargetKey===ht),"drop-container",tt.dropContainerKey===ht),"drag-over",!te&&Me),"drag-over-gap-top",!te&&pt),"drag-over-gap-bottom",!te&&Ye),"filter-node",(Ve=tt.filterTreeNode)===null||Ve===void 0?void 0:Ve.call(tt,(0,at.F)(Te))),"".concat(tt.prefixCls,"-treenode-leaf"),Zt))),style:et,draggable:kn,onDragStart:kn?it:void 0,onDragEnter:Ke?xe:void 0,onDragOver:Ke?Oe:void 0,onDragLeave:Ke?Ot:void 0,onDrop:Ke?Vt:void 0,onDragEnd:Ke?Mt:void 0,onMouseMove:ot},bn,ft),be.createElement(De,{prefixCls:tt.prefixCls,level:Nt,isStart:jt,isEnd:Ue}),Dt,sn(),pn,$t)};St.isTreeNode=1;var Bt=St},30699:function(fn,Ht,ee){"use strict";ee.d(Ht,{k:function(){return Ae},y:function(){return pe}});var E=ee(59301),Ae=E.createContext(null),pe=E.createContext({})},87632:function(fn,Ht,ee){"use strict";ee.d(Ht,{OF:function(){return ht.Z},y6:function(){return Be.y},ZP:function(){return te}});var E=ee(60499),Ae=ee(43749),pe=ee(85899),Ge=ee(77654),Ee=ee(38705),be=ee(17212),Se=ee(15793),Ze=ee(39153),Ne=ee(55401),ce=ee(18642),We=ee(92310),De=ee.n(We),It=ee(10228),at=ee(26112),qe=ee(48736),He=ee(59301),Be=ee(30699),ut=function(ue){var re=ue.dropPosition,le=ue.dropLevelOffset,ge=ue.indent,lt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(re){case-1:lt.top=0,lt.left=-le*ge;break;case 1:lt.bottom=0,lt.left=-le*ge;break;case 0:lt.bottom=0,lt.left=ge;break}return He.createElement("div",{style:lt})},St=ut;function Bt(oe){if(oe==null)throw new TypeError("Cannot destructure "+oe)}var je=ee(72190),Te=ee(42244),Qe=ee(34280),Ve=ee(48911),Tt=ee(77900),ht=ee(639);function Xe(oe,ue){var re=He.useState(!1),le=(0,je.Z)(re,2),ge=le[0],lt=le[1];(0,Qe.Z)(function(){if(ge)return oe(),function(){ue()}},[ge]),(0,Qe.Z)(function(){return lt(!0),function(){lt(!1)}},[])}var et=Xe,Me=ee(34061),pt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ye=He.forwardRef(function(oe,ue){var re=oe.className,le=oe.style,ge=oe.motion,lt=oe.motionNodes,ke=oe.motionType,Ie=oe.onMotionStart,Fe=oe.onMotionEnd,Ke=oe.active,it=oe.treeNodeRequiredProps,xe=(0,Te.Z)(oe,pt),Oe=He.useState(!0),Ot=(0,je.Z)(Oe,2),Mt=Ot[0],Vt=Ot[1],Ft=He.useContext(Be.k),mt=Ft.prefixCls,Zt=lt&&ke!=="hide";(0,Qe.Z)(function(){lt&&Zt!==Mt&&Vt(Zt)},[lt]);var Dt=function(){lt&&Ie()},Ut=He.useRef(!1),sn=function(){lt&&!Ut.current&&(Ut.current=!0,Fe())};et(Dt,sn);var pn=function(ze){Zt===ze&&sn()};return lt?He.createElement(Tt.default,(0,E.Z)({ref:ue,visible:Mt},ge,{motionAppear:ke==="show",onVisibleChanged:pn}),function(mn,ze){var bt=mn.className,$t=mn.style;return He.createElement("div",{ref:ze,className:De()("".concat(mt,"-treenode-motion"),bt),style:$t},lt.map(function(ft){var Et=Object.assign({},(Bt(ft.data),ft.data)),Nt=ft.title,vn=ft.key,kn=ft.isStart,cn=ft.isEnd;delete Et.children;var bn=(0,Me.H8)(vn,it);return He.createElement(ht.Z,(0,E.Z)({},Et,bn,{title:Nt,active:Ke,data:ft.data,key:vn,isStart:kn,isEnd:cn}))}))}):He.createElement(ht.Z,(0,E.Z)({domRef:ue,className:re,style:le},xe,{active:Ke}))}),ye=Ye;function jt(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],re=oe.length,le=ue.length;if(Math.abs(re-le)!==1)return{add:!1,key:null};function ge(lt,ke){var Ie=new Map;lt.forEach(function(Ke){Ie.set(Ke,!0)});var Fe=ke.filter(function(Ke){return!Ie.has(Ke)});return Fe.length===1?Fe[0]:null}return re<le?{add:!0,key:ge(oe,ue)}:{add:!1,key:ge(ue,oe)}}function Ue(oe,ue,re){var le=oe.findIndex(function(Ie){return Ie.key===re}),ge=oe[le+1],lt=ue.findIndex(function(Ie){return Ie.key===re});if(ge){var ke=ue.findIndex(function(Ie){return Ie.key===ge.key});return ue.slice(lt+1,ke)}return ue.slice(lt+1)}var nt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],zt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ce=function(){},de="RC_TREE_MOTION_".concat(Math.random()),vt={key:de},Kt={key:de,level:0,index:0,pos:"0",node:vt,nodes:[vt]},Lt={parent:null,children:[],pos:Kt.pos,data:vt,title:null,key:de,isStart:[],isEnd:[]};function Pe(oe,ue,re,le){return ue===!1||!re?oe:oe.slice(0,Math.ceil(re/le)+1)}function ot(oe){var ue=oe.key,re=oe.pos;return(0,Me.km)(ue,re)}function rt(oe){for(var ue=String(oe.data.key),re=oe;re.parent;)re=re.parent,ue="".concat(re.data.key," > ").concat(ue);return ue}var an=He.forwardRef(function(oe,ue){var re=oe.prefixCls,le=oe.data,ge=oe.selectable,lt=oe.checkable,ke=oe.expandedKeys,Ie=oe.selectedKeys,Fe=oe.checkedKeys,Ke=oe.loadedKeys,it=oe.loadingKeys,xe=oe.halfCheckedKeys,Oe=oe.keyEntities,Ot=oe.disabled,Mt=oe.dragging,Vt=oe.dragOverNodeKey,Ft=oe.dropPosition,mt=oe.motion,Zt=oe.height,Dt=oe.itemHeight,Ut=oe.virtual,sn=oe.scrollWidth,pn=oe.focusable,mn=oe.activeItem,ze=oe.focused,bt=oe.tabIndex,$t=oe.onKeyDown,ft=oe.onFocus,Et=oe.onBlur,Nt=oe.onActiveChange,vn=oe.onListChangeStart,kn=oe.onListChangeEnd,cn=(0,Te.Z)(oe,nt),bn=He.useRef(null),en=He.useRef(null);He.useImperativeHandle(ue,function(){return{scrollTo:function(yn){bn.current.scrollTo(yn)},getIndentWidth:function(){return en.current.offsetWidth}}});var on=He.useState(ke),gn=(0,je.Z)(on,2),$n=gn[0],hn=gn[1],In=He.useState(le),xn=(0,je.Z)(In,2),Wn=xn[0],lr=xn[1],qn=He.useState(le),Gn=(0,je.Z)(qn,2),cr=Gn[0],gr=Gn[1],Ir=He.useState([]),pr=(0,je.Z)(Ir,2),tn=pr[0],En=pr[1],An=He.useState(null),yr=(0,je.Z)(An,2),st=yr[0],xt=yr[1],Le=He.useRef(le);Le.current=le;function ct(){var Pt=Le.current;lr(Pt),gr(Pt),En([]),xt(null),kn()}(0,Qe.Z)(function(){hn(ke);var Pt=jt($n,ke);if(Pt.key!==null)if(Pt.add){var yn=Wn.findIndex(function(Pn){var Fn=Pn.key;return Fn===Pt.key}),Cn=Pe(Ue(Wn,le,Pt.key),Ut,Zt,Dt),Mn=Wn.slice();Mn.splice(yn+1,0,Lt),gr(Mn),En(Cn),xt("show")}else{var Qt=le.findIndex(function(Pn){var Fn=Pn.key;return Fn===Pt.key}),_t=Pe(Ue(le,Wn,Pt.key),Ut,Zt,Dt),Yt=le.slice();Yt.splice(Qt+1,0,Lt),gr(Yt),En(_t),xt("hide")}else Wn!==le&&(lr(le),gr(le))},[ke,le]),He.useEffect(function(){Mt||ct()},[Mt]);var $e=mt?cr:le,dt={expandedKeys:ke,selectedKeys:Ie,loadedKeys:Ke,loadingKeys:it,checkedKeys:Fe,halfCheckedKeys:xe,dragOverNodeKey:Vt,dropPosition:Ft,keyEntities:Oe};return He.createElement(He.Fragment,null,ze&&mn&&He.createElement("span",{style:zt,"aria-live":"assertive"},rt(mn)),He.createElement("div",null,He.createElement("input",{style:zt,disabled:pn===!1||Ot,tabIndex:pn!==!1?bt:null,onKeyDown:$t,onFocus:ft,onBlur:Et,value:"",onChange:Ce,"aria-label":"for screen reader"})),He.createElement("div",{className:"".concat(re,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},He.createElement("div",{className:"".concat(re,"-indent")},He.createElement("div",{ref:en,className:"".concat(re,"-indent-unit")}))),He.createElement(Ve.Z,(0,E.Z)({},cn,{data:$e,itemKey:ot,height:Zt,fullHeight:!1,virtual:Ut,itemHeight:Dt,scrollWidth:sn,prefixCls:"".concat(re,"-list"),ref:bn,role:"tree",onVisibleChange:function(yn){yn.every(function(Cn){return ot(Cn)!==de})&&ct()}}),function(Pt){var yn=Pt.pos,Cn=Object.assign({},(Bt(Pt.data),Pt.data)),Mn=Pt.title,Qt=Pt.key,_t=Pt.isStart,Yt=Pt.isEnd,Pn=(0,Me.km)(Qt,yn);delete Cn.key,delete Cn.children;var Fn=(0,Me.H8)(Pn,dt);return He.createElement(ye,(0,E.Z)({},Cn,Fn,{title:Mn,active:!!mn&&Qt===mn.key,pos:yn,data:Pt.data,isStart:_t,isEnd:Yt,motion:mt,motionNodes:Qt===de?tn:null,motionType:st,onMotionStart:vn,onMotionEnd:ct,treeNodeRequiredProps:dt,onMouseMove:function(){Nt(null)}}))}))}),tt=an,Rt=ee(82661),_e=ee(34643),Gt=ee(65065),wt=10,ae=function(oe){(0,Ze.Z)(re,oe);var ue=(0,Ne.Z)(re);function re(){var le;(0,Ee.Z)(this,re);for(var ge=arguments.length,lt=new Array(ge),ke=0;ke<ge;ke++)lt[ke]=arguments[ke];return le=ue.call.apply(ue,[this].concat(lt)),(0,ce.Z)((0,Se.Z)(le),"destroyed",!1),(0,ce.Z)((0,Se.Z)(le),"delayedDragEnterLogic",void 0),(0,ce.Z)((0,Se.Z)(le),"loadingRetryTimes",{}),(0,ce.Z)((0,Se.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,Me.w$)()}),(0,ce.Z)((0,Se.Z)(le),"dragStartMousePosition",null),(0,ce.Z)((0,Se.Z)(le),"dragNodeProps",null),(0,ce.Z)((0,Se.Z)(le),"currentMouseOverDroppableNodeKey",null),(0,ce.Z)((0,Se.Z)(le),"listRef",He.createRef()),(0,ce.Z)((0,Se.Z)(le),"onNodeDragStart",function(Ie,Fe){var Ke=le.state,it=Ke.expandedKeys,xe=Ke.keyEntities,Oe=le.props.onDragStart,Ot=Fe.eventKey;le.dragNodeProps=Fe,le.dragStartMousePosition={x:Ie.clientX,y:Ie.clientY};var Mt=(0,Rt._5)(it,Ot);le.setState({draggingNodeKey:Ot,dragChildrenKeys:(0,Rt.wA)(Ot,xe),indent:le.listRef.current.getIndentWidth()}),le.setExpandedKeys(Mt),window.addEventListener("dragend",le.onWindowDragEnd),Oe==null||Oe({event:Ie,node:(0,Me.F)(Fe)})}),(0,ce.Z)((0,Se.Z)(le),"onNodeDragEnter",function(Ie,Fe){var Ke=le.state,it=Ke.expandedKeys,xe=Ke.keyEntities,Oe=Ke.dragChildrenKeys,Ot=Ke.flattenNodes,Mt=Ke.indent,Vt=le.props,Ft=Vt.onDragEnter,mt=Vt.onExpand,Zt=Vt.allowDrop,Dt=Vt.direction,Ut=Fe.pos,sn=Fe.eventKey;if(le.currentMouseOverDroppableNodeKey!==sn&&(le.currentMouseOverDroppableNodeKey=sn),!le.dragNodeProps){le.resetDragState();return}var pn=(0,Rt.OM)(Ie,le.dragNodeProps,Fe,Mt,le.dragStartMousePosition,Zt,Ot,xe,it,Dt),mn=pn.dropPosition,ze=pn.dropLevelOffset,bt=pn.dropTargetKey,$t=pn.dropContainerKey,ft=pn.dropTargetPos,Et=pn.dropAllowed,Nt=pn.dragOverNodeKey;if(Oe.includes(bt)||!Et){le.resetDragState();return}if(le.delayedDragEnterLogic||(le.delayedDragEnterLogic={}),Object.keys(le.delayedDragEnterLogic).forEach(function(vn){clearTimeout(le.delayedDragEnterLogic[vn])}),le.dragNodeProps.eventKey!==Fe.eventKey&&(Ie.persist(),le.delayedDragEnterLogic[Ut]=window.setTimeout(function(){if(le.state.draggingNodeKey!==null){var vn=(0,Ge.Z)(it),kn=(0,Gt.Z)(xe,Fe.eventKey);kn&&(kn.children||[]).length&&(vn=(0,Rt.L0)(it,Fe.eventKey)),le.props.hasOwnProperty("expandedKeys")||le.setExpandedKeys(vn),mt==null||mt(vn,{node:(0,Me.F)(Fe),expanded:!0,nativeEvent:Ie.nativeEvent})}},800)),le.dragNodeProps.eventKey===bt&&ze===0){le.resetDragState();return}le.setState({dragOverNodeKey:Nt,dropPosition:mn,dropLevelOffset:ze,dropTargetKey:bt,dropContainerKey:$t,dropTargetPos:ft,dropAllowed:Et}),Ft==null||Ft({event:Ie,node:(0,Me.F)(Fe),expandedKeys:it})}),(0,ce.Z)((0,Se.Z)(le),"onNodeDragOver",function(Ie,Fe){var Ke=le.state,it=Ke.dragChildrenKeys,xe=Ke.flattenNodes,Oe=Ke.keyEntities,Ot=Ke.expandedKeys,Mt=Ke.indent,Vt=le.props,Ft=Vt.onDragOver,mt=Vt.allowDrop,Zt=Vt.direction;if(le.dragNodeProps){var Dt=(0,Rt.OM)(Ie,le.dragNodeProps,Fe,Mt,le.dragStartMousePosition,mt,xe,Oe,Ot,Zt),Ut=Dt.dropPosition,sn=Dt.dropLevelOffset,pn=Dt.dropTargetKey,mn=Dt.dropContainerKey,ze=Dt.dropTargetPos,bt=Dt.dropAllowed,$t=Dt.dragOverNodeKey;it.includes(pn)||!bt||(le.dragNodeProps.eventKey===pn&&sn===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():Ut===le.state.dropPosition&&sn===le.state.dropLevelOffset&&pn===le.state.dropTargetKey&&mn===le.state.dropContainerKey&&ze===le.state.dropTargetPos&&bt===le.state.dropAllowed&&$t===le.state.dragOverNodeKey||le.setState({dropPosition:Ut,dropLevelOffset:sn,dropTargetKey:pn,dropContainerKey:mn,dropTargetPos:ze,dropAllowed:bt,dragOverNodeKey:$t}),Ft==null||Ft({event:Ie,node:(0,Me.F)(Fe)}))}}),(0,ce.Z)((0,Se.Z)(le),"onNodeDragLeave",function(Ie,Fe){le.currentMouseOverDroppableNodeKey===Fe.eventKey&&!Ie.currentTarget.contains(Ie.relatedTarget)&&(le.resetDragState(),le.currentMouseOverDroppableNodeKey=null);var Ke=le.props.onDragLeave;Ke==null||Ke({event:Ie,node:(0,Me.F)(Fe)})}),(0,ce.Z)((0,Se.Z)(le),"onWindowDragEnd",function(Ie){le.onNodeDragEnd(Ie,null,!0),window.removeEventListener("dragend",le.onWindowDragEnd)}),(0,ce.Z)((0,Se.Z)(le),"onNodeDragEnd",function(Ie,Fe){var Ke=le.props.onDragEnd;le.setState({dragOverNodeKey:null}),le.cleanDragState(),Ke==null||Ke({event:Ie,node:(0,Me.F)(Fe)}),le.dragNodeProps=null,window.removeEventListener("dragend",le.onWindowDragEnd)}),(0,ce.Z)((0,Se.Z)(le),"onNodeDrop",function(Ie,Fe){var Ke,it=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,xe=le.state,Oe=xe.dragChildrenKeys,Ot=xe.dropPosition,Mt=xe.dropTargetKey,Vt=xe.dropTargetPos,Ft=xe.dropAllowed;if(Ft){var mt=le.props.onDrop;if(le.setState({dragOverNodeKey:null}),le.cleanDragState(),Mt!==null){var Zt=(0,pe.Z)((0,pe.Z)({},(0,Me.H8)(Mt,le.getTreeNodeRequiredProps())),{},{active:((Ke=le.getActiveItem())===null||Ke===void 0?void 0:Ke.key)===Mt,data:(0,Gt.Z)(le.state.keyEntities,Mt).node}),Dt=Oe.includes(Mt);(0,qe.ZP)(!Dt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ut=(0,Rt.yx)(Vt),sn={event:Ie,node:(0,Me.F)(Zt),dragNode:le.dragNodeProps?(0,Me.F)(le.dragNodeProps):null,dragNodesKeys:[le.dragNodeProps.eventKey].concat(Oe),dropToGap:Ot!==0,dropPosition:Ot+Number(Ut[Ut.length-1])};it||mt==null||mt(sn),le.dragNodeProps=null}}}),(0,ce.Z)((0,Se.Z)(le),"cleanDragState",function(){var Ie=le.state.draggingNodeKey;Ie!==null&&le.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),le.dragStartMousePosition=null,le.currentMouseOverDroppableNodeKey=null}),(0,ce.Z)((0,Se.Z)(le),"triggerExpandActionExpand",function(Ie,Fe){var Ke=le.state,it=Ke.expandedKeys,xe=Ke.flattenNodes,Oe=Fe.expanded,Ot=Fe.key,Mt=Fe.isLeaf;if(!(Mt||Ie.shiftKey||Ie.metaKey||Ie.ctrlKey)){var Vt=xe.filter(function(mt){return mt.key===Ot})[0],Ft=(0,Me.F)((0,pe.Z)((0,pe.Z)({},(0,Me.H8)(Ot,le.getTreeNodeRequiredProps())),{},{data:Vt.data}));le.setExpandedKeys(Oe?(0,Rt._5)(it,Ot):(0,Rt.L0)(it,Ot)),le.onNodeExpand(Ie,Ft)}}),(0,ce.Z)((0,Se.Z)(le),"onNodeClick",function(Ie,Fe){var Ke=le.props,it=Ke.onClick,xe=Ke.expandAction;xe==="click"&&le.triggerExpandActionExpand(Ie,Fe),it==null||it(Ie,Fe)}),(0,ce.Z)((0,Se.Z)(le),"onNodeDoubleClick",function(Ie,Fe){var Ke=le.props,it=Ke.onDoubleClick,xe=Ke.expandAction;xe==="doubleClick"&&le.triggerExpandActionExpand(Ie,Fe),it==null||it(Ie,Fe)}),(0,ce.Z)((0,Se.Z)(le),"onNodeSelect",function(Ie,Fe){var Ke=le.state.selectedKeys,it=le.state,xe=it.keyEntities,Oe=it.fieldNames,Ot=le.props,Mt=Ot.onSelect,Vt=Ot.multiple,Ft=Fe.selected,mt=Fe[Oe.key],Zt=!Ft;Zt?Vt?Ke=(0,Rt.L0)(Ke,mt):Ke=[mt]:Ke=(0,Rt._5)(Ke,mt);var Dt=Ke.map(function(Ut){var sn=(0,Gt.Z)(xe,Ut);return sn?sn.node:null}).filter(Boolean);le.setUncontrolledState({selectedKeys:Ke}),Mt==null||Mt(Ke,{event:"select",selected:Zt,node:Fe,selectedNodes:Dt,nativeEvent:Ie.nativeEvent})}),(0,ce.Z)((0,Se.Z)(le),"onNodeCheck",function(Ie,Fe,Ke){var it=le.state,xe=it.keyEntities,Oe=it.checkedKeys,Ot=it.halfCheckedKeys,Mt=le.props,Vt=Mt.checkStrictly,Ft=Mt.onCheck,mt=Fe.key,Zt,Dt={event:"check",node:Fe,checked:Ke,nativeEvent:Ie.nativeEvent};if(Vt){var Ut=Ke?(0,Rt.L0)(Oe,mt):(0,Rt._5)(Oe,mt),sn=(0,Rt._5)(Ot,mt);Zt={checked:Ut,halfChecked:sn},Dt.checkedNodes=Ut.map(function(ft){return(0,Gt.Z)(xe,ft)}).filter(Boolean).map(function(ft){return ft.node}),le.setUncontrolledState({checkedKeys:Ut})}else{var pn=(0,_e.S)([].concat((0,Ge.Z)(Oe),[mt]),!0,xe),mn=pn.checkedKeys,ze=pn.halfCheckedKeys;if(!Ke){var bt=new Set(mn);bt.delete(mt);var $t=(0,_e.S)(Array.from(bt),{checked:!1,halfCheckedKeys:ze},xe);mn=$t.checkedKeys,ze=$t.halfCheckedKeys}Zt=mn,Dt.checkedNodes=[],Dt.checkedNodesPositions=[],Dt.halfCheckedKeys=ze,mn.forEach(function(ft){var Et=(0,Gt.Z)(xe,ft);if(Et){var Nt=Et.node,vn=Et.pos;Dt.checkedNodes.push(Nt),Dt.checkedNodesPositions.push({node:Nt,pos:vn})}}),le.setUncontrolledState({checkedKeys:mn},!1,{halfCheckedKeys:ze})}Ft==null||Ft(Zt,Dt)}),(0,ce.Z)((0,Se.Z)(le),"onNodeLoad",function(Ie){var Fe,Ke=Ie.key,it=le.state.keyEntities,xe=(0,Gt.Z)(it,Ke);if(!(xe!=null&&(Fe=xe.children)!==null&&Fe!==void 0&&Fe.length)){var Oe=new Promise(function(Ot,Mt){le.setState(function(Vt){var Ft=Vt.loadedKeys,mt=Ft===void 0?[]:Ft,Zt=Vt.loadingKeys,Dt=Zt===void 0?[]:Zt,Ut=le.props,sn=Ut.loadData,pn=Ut.onLoad;if(!sn||mt.includes(Ke)||Dt.includes(Ke))return null;var mn=sn(Ie);return mn.then(function(){var ze=le.state.loadedKeys,bt=(0,Rt.L0)(ze,Ke);pn==null||pn(bt,{event:"load",node:Ie}),le.setUncontrolledState({loadedKeys:bt}),le.setState(function($t){return{loadingKeys:(0,Rt._5)($t.loadingKeys,Ke)}}),Ot()}).catch(function(ze){if(le.setState(function($t){return{loadingKeys:(0,Rt._5)($t.loadingKeys,Ke)}}),le.loadingRetryTimes[Ke]=(le.loadingRetryTimes[Ke]||0)+1,le.loadingRetryTimes[Ke]>=wt){var bt=le.state.loadedKeys;(0,qe.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),le.setUncontrolledState({loadedKeys:(0,Rt.L0)(bt,Ke)}),Ot()}Mt(ze)}),{loadingKeys:(0,Rt.L0)(Dt,Ke)}})});return Oe.catch(function(){}),Oe}}),(0,ce.Z)((0,Se.Z)(le),"onNodeMouseEnter",function(Ie,Fe){var Ke=le.props.onMouseEnter;Ke==null||Ke({event:Ie,node:Fe})}),(0,ce.Z)((0,Se.Z)(le),"onNodeMouseLeave",function(Ie,Fe){var Ke=le.props.onMouseLeave;Ke==null||Ke({event:Ie,node:Fe})}),(0,ce.Z)((0,Se.Z)(le),"onNodeContextMenu",function(Ie,Fe){var Ke=le.props.onRightClick;Ke&&(Ie.preventDefault(),Ke({event:Ie,node:Fe}))}),(0,ce.Z)((0,Se.Z)(le),"onFocus",function(){var Ie=le.props.onFocus;le.setState({focused:!0});for(var Fe=arguments.length,Ke=new Array(Fe),it=0;it<Fe;it++)Ke[it]=arguments[it];Ie==null||Ie.apply(void 0,Ke)}),(0,ce.Z)((0,Se.Z)(le),"onBlur",function(){var Ie=le.props.onBlur;le.setState({focused:!1}),le.onActiveChange(null);for(var Fe=arguments.length,Ke=new Array(Fe),it=0;it<Fe;it++)Ke[it]=arguments[it];Ie==null||Ie.apply(void 0,Ke)}),(0,ce.Z)((0,Se.Z)(le),"getTreeNodeRequiredProps",function(){var Ie=le.state,Fe=Ie.expandedKeys,Ke=Ie.selectedKeys,it=Ie.loadedKeys,xe=Ie.loadingKeys,Oe=Ie.checkedKeys,Ot=Ie.halfCheckedKeys,Mt=Ie.dragOverNodeKey,Vt=Ie.dropPosition,Ft=Ie.keyEntities;return{expandedKeys:Fe||[],selectedKeys:Ke||[],loadedKeys:it||[],loadingKeys:xe||[],checkedKeys:Oe||[],halfCheckedKeys:Ot||[],dragOverNodeKey:Mt,dropPosition:Vt,keyEntities:Ft}}),(0,ce.Z)((0,Se.Z)(le),"setExpandedKeys",function(Ie){var Fe=le.state,Ke=Fe.treeData,it=Fe.fieldNames,xe=(0,Me.oH)(Ke,Ie,it);le.setUncontrolledState({expandedKeys:Ie,flattenNodes:xe},!0)}),(0,ce.Z)((0,Se.Z)(le),"onNodeExpand",function(Ie,Fe){var Ke=le.state.expandedKeys,it=le.state,xe=it.listChanging,Oe=it.fieldNames,Ot=le.props,Mt=Ot.onExpand,Vt=Ot.loadData,Ft=Fe.expanded,mt=Fe[Oe.key];if(!xe){var Zt=Ke.includes(mt),Dt=!Ft;if((0,qe.ZP)(Ft&&Zt||!Ft&&!Zt,"Expand state not sync with index check"),Ke=Dt?(0,Rt.L0)(Ke,mt):(0,Rt._5)(Ke,mt),le.setExpandedKeys(Ke),Mt==null||Mt(Ke,{node:Fe,expanded:Dt,nativeEvent:Ie.nativeEvent}),Dt&&Vt){var Ut=le.onNodeLoad(Fe);Ut&&Ut.then(function(){var sn=(0,Me.oH)(le.state.treeData,Ke,Oe);le.setUncontrolledState({flattenNodes:sn})}).catch(function(){var sn=le.state.expandedKeys,pn=(0,Rt._5)(sn,mt);le.setExpandedKeys(pn)})}}}),(0,ce.Z)((0,Se.Z)(le),"onListChangeStart",function(){le.setUncontrolledState({listChanging:!0})}),(0,ce.Z)((0,Se.Z)(le),"onListChangeEnd",function(){setTimeout(function(){le.setUncontrolledState({listChanging:!1})})}),(0,ce.Z)((0,Se.Z)(le),"onActiveChange",function(Ie){var Fe=le.state.activeKey,Ke=le.props,it=Ke.onActiveChange,xe=Ke.itemScrollOffset,Oe=xe===void 0?0:xe;Fe!==Ie&&(le.setState({activeKey:Ie}),Ie!==null&&le.scrollTo({key:Ie,offset:Oe}),it==null||it(Ie))}),(0,ce.Z)((0,Se.Z)(le),"getActiveItem",function(){var Ie=le.state,Fe=Ie.activeKey,Ke=Ie.flattenNodes;return Fe===null?null:Ke.find(function(it){var xe=it.key;return xe===Fe})||null}),(0,ce.Z)((0,Se.Z)(le),"offsetActiveKey",function(Ie){var Fe=le.state,Ke=Fe.flattenNodes,it=Fe.activeKey,xe=Ke.findIndex(function(Mt){var Vt=Mt.key;return Vt===it});xe===-1&&Ie<0&&(xe=Ke.length),xe=(xe+Ie+Ke.length)%Ke.length;var Oe=Ke[xe];if(Oe){var Ot=Oe.key;le.onActiveChange(Ot)}else le.onActiveChange(null)}),(0,ce.Z)((0,Se.Z)(le),"onKeyDown",function(Ie){var Fe=le.state,Ke=Fe.activeKey,it=Fe.expandedKeys,xe=Fe.checkedKeys,Oe=Fe.fieldNames,Ot=le.props,Mt=Ot.onKeyDown,Vt=Ot.checkable,Ft=Ot.selectable;switch(Ie.which){case It.Z.UP:{le.offsetActiveKey(-1),Ie.preventDefault();break}case It.Z.DOWN:{le.offsetActiveKey(1),Ie.preventDefault();break}}var mt=le.getActiveItem();if(mt&&mt.data){var Zt=le.getTreeNodeRequiredProps(),Dt=mt.data.isLeaf===!1||!!(mt.data[Oe.children]||[]).length,Ut=(0,Me.F)((0,pe.Z)((0,pe.Z)({},(0,Me.H8)(Ke,Zt)),{},{data:mt.data,active:!0}));switch(Ie.which){case It.Z.LEFT:{Dt&&it.includes(Ke)?le.onNodeExpand({},Ut):mt.parent&&le.onActiveChange(mt.parent.key),Ie.preventDefault();break}case It.Z.RIGHT:{Dt&&!it.includes(Ke)?le.onNodeExpand({},Ut):mt.children&&mt.children.length&&le.onActiveChange(mt.children[0].key),Ie.preventDefault();break}case It.Z.ENTER:case It.Z.SPACE:{Vt&&!Ut.disabled&&Ut.checkable!==!1&&!Ut.disableCheckbox?le.onNodeCheck({},Ut,!xe.includes(Ke)):!Vt&&Ft&&!Ut.disabled&&Ut.selectable!==!1&&le.onNodeSelect({},Ut);break}}}Mt==null||Mt(Ie)}),(0,ce.Z)((0,Se.Z)(le),"setUncontrolledState",function(Ie){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!le.destroyed){var it=!1,xe=!0,Oe={};Object.keys(Ie).forEach(function(Ot){if(le.props.hasOwnProperty(Ot)){xe=!1;return}it=!0,Oe[Ot]=Ie[Ot]}),it&&(!Fe||xe)&&le.setState((0,pe.Z)((0,pe.Z)({},Oe),Ke))}}),(0,ce.Z)((0,Se.Z)(le),"scrollTo",function(Ie){le.listRef.current.scrollTo(Ie)}),le}return(0,be.Z)(re,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var ge=this.props,lt=ge.activeKey,ke=ge.itemScrollOffset,Ie=ke===void 0?0:ke;lt!==void 0&<!==this.state.activeKey&&(this.setState({activeKey:lt}),lt!==null&&this.scrollTo({key:lt,offset:Ie}))}},{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 ge=this.state,lt=ge.focused,ke=ge.flattenNodes,Ie=ge.keyEntities,Fe=ge.draggingNodeKey,Ke=ge.activeKey,it=ge.dropLevelOffset,xe=ge.dropContainerKey,Oe=ge.dropTargetKey,Ot=ge.dropPosition,Mt=ge.dragOverNodeKey,Vt=ge.indent,Ft=this.props,mt=Ft.prefixCls,Zt=Ft.className,Dt=Ft.style,Ut=Ft.showLine,sn=Ft.focusable,pn=Ft.tabIndex,mn=pn===void 0?0:pn,ze=Ft.selectable,bt=Ft.showIcon,$t=Ft.icon,ft=Ft.switcherIcon,Et=Ft.draggable,Nt=Ft.checkable,vn=Ft.checkStrictly,kn=Ft.disabled,cn=Ft.motion,bn=Ft.loadData,en=Ft.filterTreeNode,on=Ft.height,gn=Ft.itemHeight,$n=Ft.scrollWidth,hn=Ft.virtual,In=Ft.titleRender,xn=Ft.dropIndicatorRender,Wn=Ft.onContextMenu,lr=Ft.onScroll,qn=Ft.direction,Gn=Ft.rootClassName,cr=Ft.rootStyle,gr=(0,at.Z)(this.props,{aria:!0,data:!0}),Ir;Et&&((0,Ae.Z)(Et)==="object"?Ir=Et:typeof Et=="function"?Ir={nodeDraggable:Et}:Ir={});var pr={prefixCls:mt,selectable:ze,showIcon:bt,icon:$t,switcherIcon:ft,draggable:Ir,draggingNodeKey:Fe,checkable:Nt,checkStrictly:vn,disabled:kn,keyEntities:Ie,dropLevelOffset:it,dropContainerKey:xe,dropTargetKey:Oe,dropPosition:Ot,dragOverNodeKey:Mt,indent:Vt,direction:qn,dropIndicatorRender:xn,loadData:bn,filterTreeNode:en,titleRender:In,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 He.createElement(Be.k.Provider,{value:pr},He.createElement("div",{className:De()(mt,Zt,Gn,(0,ce.Z)((0,ce.Z)((0,ce.Z)({},"".concat(mt,"-show-line"),Ut),"".concat(mt,"-focused"),lt),"".concat(mt,"-active-focused"),Ke!==null)),style:cr},He.createElement(tt,(0,E.Z)({ref:this.listRef,prefixCls:mt,style:Dt,data:ke,disabled:kn,selectable:ze,checkable:!!Nt,motion:cn,dragging:Fe!==null,height:on,itemHeight:gn,virtual:hn,focusable:sn,focused:lt,tabIndex:mn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Wn,onScroll:lr,scrollWidth:$n},this.getTreeNodeRequiredProps(),gr))))}}],[{key:"getDerivedStateFromProps",value:function(ge,lt){var ke=lt.prevProps,Ie={prevProps:ge};function Fe(mn){return!ke&&ge.hasOwnProperty(mn)||ke&&ke[mn]!==ge[mn]}var Ke,it=lt.fieldNames;if(Fe("fieldNames")&&(it=(0,Me.w$)(ge.fieldNames),Ie.fieldNames=it),Fe("treeData")?Ke=ge.treeData:Fe("children")&&((0,qe.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ke=(0,Me.zn)(ge.children)),Ke){Ie.treeData=Ke;var xe=(0,Me.I8)(Ke,{fieldNames:it});Ie.keyEntities=(0,pe.Z)((0,ce.Z)({},de,Kt),xe.keyEntities)}var Oe=Ie.keyEntities||lt.keyEntities;if(Fe("expandedKeys")||ke&&Fe("autoExpandParent"))Ie.expandedKeys=ge.autoExpandParent||!ke&&ge.defaultExpandParent?(0,Rt.r7)(ge.expandedKeys,Oe):ge.expandedKeys;else if(!ke&&ge.defaultExpandAll){var Ot=(0,pe.Z)({},Oe);delete Ot[de];var Mt=[];Object.keys(Ot).forEach(function(mn){var ze=Ot[mn];ze.children&&ze.children.length&&Mt.push(ze.key)}),Ie.expandedKeys=Mt}else!ke&&ge.defaultExpandedKeys&&(Ie.expandedKeys=ge.autoExpandParent||ge.defaultExpandParent?(0,Rt.r7)(ge.defaultExpandedKeys,Oe):ge.defaultExpandedKeys);if(Ie.expandedKeys||delete Ie.expandedKeys,Ke||Ie.expandedKeys){var Vt=(0,Me.oH)(Ke||lt.treeData,Ie.expandedKeys||lt.expandedKeys,it);Ie.flattenNodes=Vt}if(ge.selectable&&(Fe("selectedKeys")?Ie.selectedKeys=(0,Rt.BT)(ge.selectedKeys,ge):!ke&&ge.defaultSelectedKeys&&(Ie.selectedKeys=(0,Rt.BT)(ge.defaultSelectedKeys,ge))),ge.checkable){var Ft;if(Fe("checkedKeys")?Ft=(0,Rt.E6)(ge.checkedKeys)||{}:!ke&&ge.defaultCheckedKeys?Ft=(0,Rt.E6)(ge.defaultCheckedKeys)||{}:Ke&&(Ft=(0,Rt.E6)(ge.checkedKeys)||{checkedKeys:lt.checkedKeys,halfCheckedKeys:lt.halfCheckedKeys}),Ft){var mt=Ft,Zt=mt.checkedKeys,Dt=Zt===void 0?[]:Zt,Ut=mt.halfCheckedKeys,sn=Ut===void 0?[]:Ut;if(!ge.checkStrictly){var pn=(0,_e.S)(Dt,!0,Oe);Dt=pn.checkedKeys,sn=pn.halfCheckedKeys}Ie.checkedKeys=Dt,Ie.halfCheckedKeys=sn}}return Fe("loadedKeys")&&(Ie.loadedKeys=ge.loadedKeys),Ie}}]),re}(He.Component);(0,ce.Z)(ae,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:St,allowDrop:function(){return!0},expandAction:!1}),(0,ce.Z)(ae,"TreeNode",ht.Z);var ne=ae,te=ne},82661:function(fn,Ht,ee){"use strict";ee.d(Ht,{BT:function(){return He},E6:function(){return St},L0:function(){return ce},OM:function(){return qe},_5:function(){return Ne},r7:function(){return Bt},wA:function(){return De},yx:function(){return We}});var E=ee(77654),Ae=ee(43749),pe=ee(48736),Ge=ee(59301),Ee=ee(639),be=ee(65065),Se=ee(34061),Ze=null;function Ne(je,Te){if(!je)return[];var Qe=je.slice(),Ve=Qe.indexOf(Te);return Ve>=0&&Qe.splice(Ve,1),Qe}function ce(je,Te){var Qe=(je||[]).slice();return Qe.indexOf(Te)===-1&&Qe.push(Te),Qe}function We(je){return je.split("-")}function De(je,Te){var Qe=[],Ve=(0,be.Z)(Te,je);function Tt(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ht.forEach(function(Xe){var et=Xe.key,Me=Xe.children;Qe.push(et),Tt(Me)})}return Tt(Ve.children),Qe}function It(je){if(je.parent){var Te=We(je.pos);return Number(Te[Te.length-1])===je.parent.children.length-1}return!1}function at(je){var Te=We(je.pos);return Number(Te[Te.length-1])===0}function qe(je,Te,Qe,Ve,Tt,ht,Xe,et,Me,pt){var Ye,ye=je.clientX,jt=je.clientY,Ue=je.target.getBoundingClientRect(),nt=Ue.top,zt=Ue.height,Ce=(pt==="rtl"?-1:1)*(((Tt==null?void 0:Tt.x)||0)-ye),de=(Ce-12)/Ve,vt=Me.filter(function(te){var oe;return(oe=et[te])===null||oe===void 0||(oe=oe.children)===null||oe===void 0?void 0:oe.length}),Kt=(0,be.Z)(et,Qe.eventKey);if(jt<nt+zt/2){var Lt=Xe.findIndex(function(te){return te.key===Kt.key}),Pe=Lt<=0?0:Lt-1,ot=Xe[Pe].key;Kt=(0,be.Z)(et,ot)}var rt=Kt.key,an=Kt,tt=Kt.key,Rt=0,_e=0;if(!vt.includes(rt))for(var Gt=0;Gt<de&&It(Kt);Gt+=1)Kt=Kt.parent,_e+=1;var wt=Te.data,ae=Kt.node,ne=!0;return at(Kt)&&Kt.level===0&&jt<nt+zt/2&&ht({dragNode:wt,dropNode:ae,dropPosition:-1})&&Kt.key===Qe.eventKey?Rt=-1:(an.children||[]).length&&vt.includes(tt)?ht({dragNode:wt,dropNode:ae,dropPosition:0})?Rt=0:ne=!1:_e===0?de>-1.5?ht({dragNode:wt,dropNode:ae,dropPosition:1})?Rt=1:ne=!1:ht({dragNode:wt,dropNode:ae,dropPosition:0})?Rt=0:ht({dragNode:wt,dropNode:ae,dropPosition:1})?Rt=1:ne=!1:ht({dragNode:wt,dropNode:ae,dropPosition:1})?Rt=1:ne=!1,{dropPosition:Rt,dropLevelOffset:_e,dropTargetKey:Kt.key,dropTargetPos:Kt.pos,dragOverNodeKey:tt,dropContainerKey:Rt===0?null:((Ye=Kt.parent)===null||Ye===void 0?void 0:Ye.key)||null,dropAllowed:ne}}function He(je,Te){if(je){var Qe=Te.multiple;return Qe?je.slice():je.length?[je[0]]:je}}var Be=function(Te){return Te};function ut(je,Te){if(!je)return[];var Qe=Te||{},Ve=Qe.processProps,Tt=Ve===void 0?Be:Ve,ht=Array.isArray(je)?je:[je];return ht.map(function(Xe){var et=Xe.children,Me=_objectWithoutProperties(Xe,Ze),pt=ut(et,Te);return React.createElement(TreeNode,_extends({key:Me.key},Tt(Me)),pt)})}function St(je){if(!je)return null;var Te;if(Array.isArray(je))Te={checkedKeys:je,halfCheckedKeys:void 0};else if((0,Ae.Z)(je)==="object")Te={checkedKeys:je.checked||void 0,halfCheckedKeys:je.halfChecked||void 0};else return(0,pe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Te}function Bt(je,Te){var Qe=new Set;function Ve(Tt){if(!Qe.has(Tt)){var ht=(0,be.Z)(Te,Tt);if(ht){Qe.add(Tt);var Xe=ht.parent,et=ht.node;et.disabled||Xe&&Ve(Xe.key)}}}return(je||[]).forEach(function(Tt){Ve(Tt)}),(0,E.Z)(Qe)}},34643:function(fn,Ht,ee){"use strict";ee.d(Ht,{S:function(){return Se}});var E=ee(48736),Ae=ee(65065);function pe(Ze,Ne){var ce=new Set;return Ze.forEach(function(We){Ne.has(We)||ce.add(We)}),ce}function Ge(Ze){var Ne=Ze||{},ce=Ne.disabled,We=Ne.disableCheckbox,De=Ne.checkable;return!!(ce||We)||De===!1}function Ee(Ze,Ne,ce,We){for(var De=new Set(Ze),It=new Set,at=0;at<=ce;at+=1){var qe=Ne.get(at)||new Set;qe.forEach(function(St){var Bt=St.key,je=St.node,Te=St.children,Qe=Te===void 0?[]:Te;De.has(Bt)&&!We(je)&&Qe.filter(function(Ve){return!We(Ve.node)}).forEach(function(Ve){De.add(Ve.key)})})}for(var He=new Set,Be=ce;Be>=0;Be-=1){var ut=Ne.get(Be)||new Set;ut.forEach(function(St){var Bt=St.parent,je=St.node;if(!(We(je)||!St.parent||He.has(St.parent.key))){if(We(St.parent.node)){He.add(Bt.key);return}var Te=!0,Qe=!1;(Bt.children||[]).filter(function(Ve){return!We(Ve.node)}).forEach(function(Ve){var Tt=Ve.key,ht=De.has(Tt);Te&&!ht&&(Te=!1),!Qe&&(ht||It.has(Tt))&&(Qe=!0)}),Te&&De.add(Bt.key),Qe&&It.add(Bt.key),He.add(Bt.key)}})}return{checkedKeys:Array.from(De),halfCheckedKeys:Array.from(pe(It,De))}}function be(Ze,Ne,ce,We,De){for(var It=new Set(Ze),at=new Set(Ne),qe=0;qe<=We;qe+=1){var He=ce.get(qe)||new Set;He.forEach(function(Bt){var je=Bt.key,Te=Bt.node,Qe=Bt.children,Ve=Qe===void 0?[]:Qe;!It.has(je)&&!at.has(je)&&!De(Te)&&Ve.filter(function(Tt){return!De(Tt.node)}).forEach(function(Tt){It.delete(Tt.key)})})}at=new Set;for(var Be=new Set,ut=We;ut>=0;ut-=1){var St=ce.get(ut)||new Set;St.forEach(function(Bt){var je=Bt.parent,Te=Bt.node;if(!(De(Te)||!Bt.parent||Be.has(Bt.parent.key))){if(De(Bt.parent.node)){Be.add(je.key);return}var Qe=!0,Ve=!1;(je.children||[]).filter(function(Tt){return!De(Tt.node)}).forEach(function(Tt){var ht=Tt.key,Xe=It.has(ht);Qe&&!Xe&&(Qe=!1),!Ve&&(Xe||at.has(ht))&&(Ve=!0)}),Qe||It.delete(je.key),Ve&&at.add(je.key),Be.add(je.key)}})}return{checkedKeys:Array.from(It),halfCheckedKeys:Array.from(pe(at,It))}}function Se(Ze,Ne,ce,We){var De=[],It;We?It=We:It=Ge;var at=new Set(Ze.filter(function(ut){var St=!!(0,Ae.Z)(ce,ut);return St||De.push(ut),St})),qe=new Map,He=0;Object.keys(ce).forEach(function(ut){var St=ce[ut],Bt=St.level,je=qe.get(Bt);je||(je=new Set,qe.set(Bt,je)),je.add(St),He=Math.max(He,Bt)}),(0,E.ZP)(!De.length,"Tree missing follow keys: ".concat(De.slice(0,100).map(function(ut){return"'".concat(ut,"'")}).join(", ")));var Be;return Ne===!0?Be=Ee(at,qe,He,It):Be=be(at,Ne.halfCheckedKeys,qe,He,It),Be}},65065:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return E}});function E(Ae,pe){return Ae[pe]}},34061:function(fn,Ht,ee){"use strict";ee.d(Ht,{F:function(){return Bt},H8:function(){return St},I8:function(){return ut},km:function(){return De},oH:function(){return He},w$:function(){return It},zn:function(){return qe}});var E=ee(43749),Ae=ee(77654),pe=ee(85899),Ge=ee(42244),Ee=ee(11592),be=ee(2738),Se=ee(48736),Ze=ee(65065),Ne=["children"];function ce(je,Te){return"".concat(je,"-").concat(Te)}function We(je){return je&&je.type&&je.type.isTreeNode}function De(je,Te){return je!=null?je:Te}function It(je){var Te=je||{},Qe=Te.title,Ve=Te._title,Tt=Te.key,ht=Te.children,Xe=Qe||"title";return{title:Xe,_title:Ve||[Xe],key:Tt||"key",children:ht||"children"}}function at(je,Te){var Qe=new Map;function Ve(Tt){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Tt||[]).forEach(function(Xe){var et=Xe[Te.key],Me=Xe[Te.children];warning(et!=null,"Tree node must have a certain key: [".concat(ht).concat(et,"]"));var pt=String(et);warning(!Qe.has(pt)||et===null||et===void 0,"Same 'key' exist in the Tree: ".concat(pt)),Qe.set(pt,!0),Ve(Me,"".concat(ht).concat(pt," > "))})}Ve(je)}function qe(je){function Te(Qe){var Ve=(0,Ee.Z)(Qe);return Ve.map(function(Tt){if(!We(Tt))return(0,Se.ZP)(!Tt,"Tree/TreeNode can only accept TreeNode as children."),null;var ht=Tt.key,Xe=Tt.props,et=Xe.children,Me=(0,Ge.Z)(Xe,Ne),pt=(0,pe.Z)({key:ht},Me),Ye=Te(et);return Ye.length&&(pt.children=Ye),pt}).filter(function(Tt){return Tt})}return Te(je)}function He(je,Te,Qe){var Ve=It(Qe),Tt=Ve._title,ht=Ve.key,Xe=Ve.children,et=new Set(Te===!0?[]:Te),Me=[];function pt(Ye){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ye.map(function(jt,Ue){for(var nt=ce(ye?ye.pos:"0",Ue),zt=De(jt[ht],nt),Ce,de=0;de<Tt.length;de+=1){var vt=Tt[de];if(jt[vt]!==void 0){Ce=jt[vt];break}}var Kt=Object.assign((0,be.Z)(jt,[].concat((0,Ae.Z)(Tt),[ht,Xe])),{title:Ce,key:zt,parent:ye,pos:nt,children:null,data:jt,isStart:[].concat((0,Ae.Z)(ye?ye.isStart:[]),[Ue===0]),isEnd:[].concat((0,Ae.Z)(ye?ye.isEnd:[]),[Ue===Ye.length-1])});return Me.push(Kt),Te===!0||et.has(zt)?Kt.children=pt(jt[Xe]||[],Kt):Kt.children=[],Kt})}return pt(je),Me}function Be(je,Te,Qe){var Ve={};(0,E.Z)(Qe)==="object"?Ve=Qe:Ve={externalGetKey:Qe},Ve=Ve||{};var Tt=Ve,ht=Tt.childrenPropName,Xe=Tt.externalGetKey,et=Tt.fieldNames,Me=It(et),pt=Me.key,Ye=Me.children,ye=ht||Ye,jt;Xe?typeof Xe=="string"?jt=function(zt){return zt[Xe]}:typeof Xe=="function"&&(jt=function(zt){return Xe(zt)}):jt=function(zt,Ce){return De(zt[pt],Ce)};function Ue(nt,zt,Ce,de){var vt=nt?nt[ye]:je,Kt=nt?ce(Ce.pos,zt):"0",Lt=nt?[].concat((0,Ae.Z)(de),[nt]):[];if(nt){var Pe=jt(nt,Kt),ot={node:nt,index:zt,pos:Kt,key:Pe,parentPos:Ce.node?Ce.pos:null,level:Ce.level+1,nodes:Lt};Te(ot)}vt&&vt.forEach(function(rt,an){Ue(rt,an,{node:nt,pos:Kt,level:Ce?Ce.level+1:-1},Lt)})}Ue(null)}function ut(je){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Qe=Te.initWrapper,Ve=Te.processEntity,Tt=Te.onProcessFinished,ht=Te.externalGetKey,Xe=Te.childrenPropName,et=Te.fieldNames,Me=arguments.length>2?arguments[2]:void 0,pt=ht||Me,Ye={},ye={},jt={posEntities:Ye,keyEntities:ye};return Qe&&(jt=Qe(jt)||jt),Be(je,function(Ue){var nt=Ue.node,zt=Ue.index,Ce=Ue.pos,de=Ue.key,vt=Ue.parentPos,Kt=Ue.level,Lt=Ue.nodes,Pe={node:nt,nodes:Lt,index:zt,key:de,pos:Ce,level:Kt},ot=De(de,Ce);Ye[Ce]=Pe,ye[ot]=Pe,Pe.parent=Ye[vt],Pe.parent&&(Pe.parent.children=Pe.parent.children||[],Pe.parent.children.push(Pe)),Ve&&Ve(Pe,jt)},{externalGetKey:pt,childrenPropName:Xe,fieldNames:et}),Tt&&Tt(jt),jt}function St(je,Te){var Qe=Te.expandedKeys,Ve=Te.selectedKeys,Tt=Te.loadedKeys,ht=Te.loadingKeys,Xe=Te.checkedKeys,et=Te.halfCheckedKeys,Me=Te.dragOverNodeKey,pt=Te.dropPosition,Ye=Te.keyEntities,ye=(0,Ze.Z)(Ye,je),jt={eventKey:je,expanded:Qe.indexOf(je)!==-1,selected:Ve.indexOf(je)!==-1,loaded:Tt.indexOf(je)!==-1,loading:ht.indexOf(je)!==-1,checked:Xe.indexOf(je)!==-1,halfChecked:et.indexOf(je)!==-1,pos:String(ye?ye.pos:""),dragOver:Me===je&&pt===0,dragOverGapTop:Me===je&&pt===-1,dragOverGapBottom:Me===je&&pt===1};return jt}function Bt(je){var Te=je.data,Qe=je.expanded,Ve=je.selected,Tt=je.checked,ht=je.loaded,Xe=je.loading,et=je.halfChecked,Me=je.dragOver,pt=je.dragOverGapTop,Ye=je.dragOverGapBottom,ye=je.pos,jt=je.active,Ue=je.eventKey,nt=(0,pe.Z)((0,pe.Z)({},Te),{},{expanded:Qe,selected:Ve,checked:Tt,loaded:ht,loading:Xe,halfChecked:et,dragOver:Me,dragOverGapTop:pt,dragOverGapBottom:Ye,pos:ye,active:jt,key:Ue});return"props"in nt||Object.defineProperty(nt,"props",{get:function(){return(0,Se.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),je}}),nt}},8224:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ae}});var E=ee(4676);function Ae(pe,Ge,Ee,be){var Se=E.unstable_batchedUpdates?function(Ne){E.unstable_batchedUpdates(Ee,Ne)}:Ee;return pe!=null&&pe.addEventListener&&pe.addEventListener(Ge,Se,be),{remove:function(){pe!=null&&pe.removeEventListener&&pe.removeEventListener(Ge,Se,be)}}}},24514:function(fn,Ht,ee){"use strict";ee.d(Ht,{G:function(){return Ge}});var E=ee(47273),Ae=function(be){if((0,E.Z)()&&window.document.documentElement){var Se=Array.isArray(be)?be:[be],Ze=window.document.documentElement;return Se.some(function(Ne){return Ne in Ze.style})}return!1},pe=function(be,Se){if(!Ae(be))return!1;var Ze=document.createElement("div"),Ne=Ze.style[be];return Ze.style[be]=Se,Ze.style[be]!==Ne};function Ge(Ee,be){return!Array.isArray(Ee)&&be!==void 0?pe(Ee,be):Ae(Ee)}},48911:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return wt}});var E=ee(60499),Ae=ee(43749),pe=ee(85899),Ge=ee(18642),Ee=ee(72190),be=ee(42244),Se=ee(92310),Ze=ee.n(Se),Ne=ee(29301),ce=ee(70425),We=ee(34280),De=ee(59301),It=ee(4676),at=De.forwardRef(function(ae,ne){var te=ae.height,oe=ae.offsetY,ue=ae.offsetX,re=ae.children,le=ae.prefixCls,ge=ae.onInnerResize,lt=ae.innerProps,ke=ae.rtl,Ie=ae.extra,Fe={},Ke={display:"flex",flexDirection:"column"};return oe!==void 0&&(Fe={height:te,position:"relative",overflow:"hidden"},Ke=(0,pe.Z)((0,pe.Z)({},Ke),{},(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({transform:"translateY(".concat(oe,"px)")},ke?"marginRight":"marginLeft",-ue),"position","absolute"),"left",0),"right",0),"top",0))),De.createElement("div",{style:Fe},De.createElement(Ne.Z,{onResize:function(xe){var Oe=xe.offsetHeight;Oe&&ge&&ge()}},De.createElement("div",(0,E.Z)({style:Ke,className:Ze()((0,Ge.Z)({},"".concat(le,"-holder-inner"),le)),ref:ne},lt),re,Ie)))});at.displayName="Filler";var qe=at;function He(ae){var ne=ae.children,te=ae.setRef,oe=De.useCallback(function(ue){te(ue)},[]);return De.cloneElement(ne,{ref:oe})}function Be(ae,ne,te,oe,ue,re,le,ge){var lt=ge.getKey;return ae.slice(ne,te+1).map(function(ke,Ie){var Fe=ne+Ie,Ke=le(ke,Fe,{style:{width:oe},offsetX:ue}),it=lt(ke);return De.createElement(He,{key:it,setRef:function(Oe){return re(ke,Oe)}},Ke)})}function ut(ae,ne,te,oe){var ue=te-ae,re=ne-te,le=Math.min(ue,re)*2;if(oe<=le){var ge=Math.floor(oe/2);return oe%2?te+ge+1:te-ge}return ue>re?te-(oe-re):te+(oe-ue)}function St(ae,ne,te){var oe=ae.length,ue=ne.length,re,le;if(oe===0&&ue===0)return null;oe<ue?(re=ae,le=ne):(re=ne,le=ae);var ge={__EMPTY_ITEM__:!0};function lt(xe){return xe!==void 0?te(xe):ge}for(var ke=null,Ie=Math.abs(oe-ue)!==1,Fe=0;Fe<le.length;Fe+=1){var Ke=lt(re[Fe]),it=lt(le[Fe]);if(Ke!==it){ke=Fe,Ie=Ie||Ke!==lt(le[Fe+1]);break}}return ke===null?null:{index:ke,multiple:Ie}}function Bt(ae,ne,te){var oe=De.useState(ae),ue=(0,Ee.Z)(oe,2),re=ue[0],le=ue[1],ge=De.useState(null),lt=(0,Ee.Z)(ge,2),ke=lt[0],Ie=lt[1];return De.useEffect(function(){var Fe=St(re||[],ae||[],ne);(Fe==null?void 0:Fe.index)!==void 0&&(te==null||te(Fe.index),Ie(ae[Fe.index])),le(ae)},[ae]),[ke]}var je=ee(16089),Te=(typeof navigator=="undefined"?"undefined":(0,Ae.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Qe=Te,Ve=function(ae,ne,te,oe){var ue=(0,De.useRef)(!1),re=(0,De.useRef)(null);function le(){clearTimeout(re.current),ue.current=!0,re.current=setTimeout(function(){ue.current=!1},50)}var ge=(0,De.useRef)({top:ae,bottom:ne,left:te,right:oe});return ge.current.top=ae,ge.current.bottom=ne,ge.current.left=te,ge.current.right=oe,function(lt,ke){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Fe=lt?ke<0&&ge.current.left||ke>0&&ge.current.right:ke<0&&ge.current.top||ke>0&&ge.current.bottom;return Ie&&Fe?(clearTimeout(re.current),ue.current=!1):(!Fe||ue.current)&&le(),!ue.current&&Fe}};function Tt(ae,ne,te,oe,ue,re,le){var ge=(0,De.useRef)(0),lt=(0,De.useRef)(null),ke=(0,De.useRef)(null),Ie=(0,De.useRef)(!1),Fe=Ve(ne,te,oe,ue);function Ke(Vt,Ft){if(je.Z.cancel(lt.current),!Fe(!1,Ft)){var mt=Vt;if(!mt._virtualHandled)mt._virtualHandled=!0;else return;ge.current+=Ft,ke.current=Ft,Qe||mt.preventDefault(),lt.current=(0,je.Z)(function(){var Zt=Ie.current?10:1;le(ge.current*Zt,!1),ge.current=0})}}function it(Vt,Ft){le(Ft,!0),Qe||Vt.preventDefault()}var xe=(0,De.useRef)(null),Oe=(0,De.useRef)(null);function Ot(Vt){if(ae){je.Z.cancel(Oe.current),Oe.current=(0,je.Z)(function(){xe.current=null},2);var Ft=Vt.deltaX,mt=Vt.deltaY,Zt=Vt.shiftKey,Dt=Ft,Ut=mt;(xe.current==="sx"||!xe.current&&Zt&&mt&&!Ft)&&(Dt=mt,Ut=0,xe.current="sx");var sn=Math.abs(Dt),pn=Math.abs(Ut);xe.current===null&&(xe.current=re&&sn>pn?"x":"y"),xe.current==="y"?Ke(Vt,Ut):it(Vt,Dt)}}function Mt(Vt){ae&&(Ie.current=Vt.detail===ke.current)}return[Ot,Mt]}function ht(ae,ne,te,oe){var ue=De.useMemo(function(){return[new Map,[]]},[ae,te.id,oe]),re=(0,Ee.Z)(ue,2),le=re[0],ge=re[1],lt=function(Ie){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ie,Ke=le.get(Ie),it=le.get(Fe);if(Ke===void 0||it===void 0)for(var xe=ae.length,Oe=ge.length;Oe<xe;Oe+=1){var Ot,Mt=ae[Oe],Vt=ne(Mt);le.set(Vt,Oe);var Ft=(Ot=te.get(Vt))!==null&&Ot!==void 0?Ot:oe;if(ge[Oe]=(ge[Oe-1]||0)+Ft,Vt===Ie&&(Ke=Oe),Vt===Fe&&(it=Oe),Ke!==void 0&&it!==void 0)break}return{top:ge[Ke-1]||0,bottom:ge[it]}};return lt}var Xe=ee(38705),et=ee(17212),Me=function(){function ae(){(0,Xe.Z)(this,ae),(0,Ge.Z)(this,"maps",void 0),(0,Ge.Z)(this,"id",0),(0,Ge.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,et.Z)(ae,[{key:"set",value:function(te,oe){this.diffRecords.set(te,this.maps[te]),this.maps[te]=oe,this.id+=1}},{key:"get",value:function(te){return this.maps[te]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ae}(),pt=Me;function Ye(ae){var ne=parseFloat(ae);return isNaN(ne)?0:ne}function ye(ae,ne,te){var oe=De.useState(0),ue=(0,Ee.Z)(oe,2),re=ue[0],le=ue[1],ge=(0,De.useRef)(new Map),lt=(0,De.useRef)(new pt),ke=(0,De.useRef)(0);function Ie(){ke.current+=1}function Fe(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ie();var xe=function(){var Mt=!1;ge.current.forEach(function(Vt,Ft){if(Vt&&Vt.offsetParent){var mt=Vt.offsetHeight,Zt=getComputedStyle(Vt),Dt=Zt.marginTop,Ut=Zt.marginBottom,sn=Ye(Dt),pn=Ye(Ut),mn=mt+sn+pn;lt.current.get(Ft)!==mn&&(lt.current.set(Ft,mn),Mt=!0)}}),Mt&&le(function(Vt){return Vt+1})};if(it)xe();else{ke.current+=1;var Oe=ke.current;Promise.resolve().then(function(){Oe===ke.current&&xe()})}}function Ke(it,xe){var Oe=ae(it),Ot=ge.current.get(Oe);xe?(ge.current.set(Oe,xe),Fe()):ge.current.delete(Oe),!Ot!=!xe&&(xe?ne==null||ne(it):te==null||te(it))}return(0,De.useEffect)(function(){return Ie},[]),[Ke,Fe,lt.current,re]}var jt=14/15;function Ue(ae,ne,te){var oe=(0,De.useRef)(!1),ue=(0,De.useRef)(0),re=(0,De.useRef)(0),le=(0,De.useRef)(null),ge=(0,De.useRef)(null),lt,ke=function(it){if(oe.current){var xe=Math.ceil(it.touches[0].pageX),Oe=Math.ceil(it.touches[0].pageY),Ot=ue.current-xe,Mt=re.current-Oe,Vt=Math.abs(Ot)>Math.abs(Mt);Vt?ue.current=xe:re.current=Oe;var Ft=te(Vt,Vt?Ot:Mt,!1,it);Ft&&it.preventDefault(),clearInterval(ge.current),Ft&&(ge.current=setInterval(function(){Vt?Ot*=jt:Mt*=jt;var mt=Math.floor(Vt?Ot:Mt);(!te(Vt,mt,!0)||Math.abs(mt)<=.1)&&clearInterval(ge.current)},16))}},Ie=function(){oe.current=!1,lt()},Fe=function(it){lt(),it.touches.length===1&&!oe.current&&(oe.current=!0,ue.current=Math.ceil(it.touches[0].pageX),re.current=Math.ceil(it.touches[0].pageY),le.current=it.target,le.current.addEventListener("touchmove",ke,{passive:!1}),le.current.addEventListener("touchend",Ie,{passive:!0}))};lt=function(){le.current&&(le.current.removeEventListener("touchmove",ke),le.current.removeEventListener("touchend",Ie))},(0,We.Z)(function(){return ae&&ne.current.addEventListener("touchstart",Fe,{passive:!0}),function(){var Ke;(Ke=ne.current)===null||Ke===void 0||Ke.removeEventListener("touchstart",Fe),lt(),clearInterval(ge.current)}},[ae])}function nt(ae){return Math.floor(Math.pow(ae,.5))}function zt(ae,ne){var te="touches"in ae?ae.touches[0]:ae;return te[ne?"pageX":"pageY"]-window[ne?"scrollX":"scrollY"]}function Ce(ae,ne,te){De.useEffect(function(){var oe=ne.current;if(ae&&oe){var ue=!1,re,le,ge=function(){je.Z.cancel(re)},lt=function Ke(){ge(),re=(0,je.Z)(function(){te(le),Ke()})},ke=function(){ue=!1,ge()},Ie=function(it){if(!(it.target.draggable||it.button!==0)){var xe=it;xe._virtualHandled||(xe._virtualHandled=!0,ue=!0)}},Fe=function(it){if(ue){var xe=zt(it,!1),Oe=oe.getBoundingClientRect(),Ot=Oe.top,Mt=Oe.bottom;if(xe<=Ot){var Vt=Ot-xe;le=-nt(Vt),lt()}else if(xe>=Mt){var Ft=xe-Mt;le=nt(Ft),lt()}else ge()}};return oe.addEventListener("mousedown",Ie),oe.ownerDocument.addEventListener("mouseup",ke),oe.ownerDocument.addEventListener("mousemove",Fe),oe.ownerDocument.addEventListener("dragend",ke),function(){oe.removeEventListener("mousedown",Ie),oe.ownerDocument.removeEventListener("mouseup",ke),oe.ownerDocument.removeEventListener("mousemove",Fe),oe.ownerDocument.removeEventListener("dragend",ke),ge()}}},[ae])}var de=10;function vt(ae,ne,te,oe,ue,re,le,ge){var lt=De.useRef(),ke=De.useState(null),Ie=(0,Ee.Z)(ke,2),Fe=Ie[0],Ke=Ie[1];return(0,We.Z)(function(){if(Fe&&Fe.times<de){if(!ae.current){Ke(function(cn){return(0,pe.Z)({},cn)});return}re();var it=Fe.targetAlign,xe=Fe.originAlign,Oe=Fe.index,Ot=Fe.offset,Mt=ae.current.clientHeight,Vt=!1,Ft=it,mt=null;if(Mt){for(var Zt=it||xe,Dt=0,Ut=0,sn=0,pn=Math.min(ne.length-1,Oe),mn=0;mn<=pn;mn+=1){var ze=ue(ne[mn]);Ut=Dt;var bt=te.get(ze);sn=Ut+(bt===void 0?oe:bt),Dt=sn}for(var $t=Zt==="top"?Ot:Mt-Ot,ft=pn;ft>=0;ft-=1){var Et=ue(ne[ft]),Nt=te.get(Et);if(Nt===void 0){Vt=!0;break}if($t-=Nt,$t<=0)break}switch(Zt){case"top":mt=Ut-Ot;break;case"bottom":mt=sn-Mt+Ot;break;default:{var vn=ae.current.scrollTop,kn=vn+Mt;Ut<vn?Ft="top":sn>kn&&(Ft="bottom")}}mt!==null&&le(mt),mt!==Fe.lastTop&&(Vt=!0)}Vt&&Ke((0,pe.Z)((0,pe.Z)({},Fe),{},{times:Fe.times+1,targetAlign:Ft,lastTop:mt}))}},[Fe,ae.current]),function(it){if(it==null){ge();return}if(je.Z.cancel(lt.current),typeof it=="number")le(it);else if(it&&(0,Ae.Z)(it)==="object"){var xe,Oe=it.align;"index"in it?xe=it.index:xe=ne.findIndex(function(Vt){return ue(Vt)===it.key});var Ot=it.offset,Mt=Ot===void 0?0:Ot;Ke({times:0,index:xe,offset:Mt,originAlign:Oe})}}}var Kt=De.forwardRef(function(ae,ne){var te=ae.prefixCls,oe=ae.rtl,ue=ae.scrollOffset,re=ae.scrollRange,le=ae.onStartMove,ge=ae.onStopMove,lt=ae.onScroll,ke=ae.horizontal,Ie=ae.spinSize,Fe=ae.containerSize,Ke=ae.style,it=ae.thumbStyle,xe=ae.showScrollBar,Oe=De.useState(!1),Ot=(0,Ee.Z)(Oe,2),Mt=Ot[0],Vt=Ot[1],Ft=De.useState(null),mt=(0,Ee.Z)(Ft,2),Zt=mt[0],Dt=mt[1],Ut=De.useState(null),sn=(0,Ee.Z)(Ut,2),pn=sn[0],mn=sn[1],ze=!oe,bt=De.useRef(),$t=De.useRef(),ft=De.useState(xe),Et=(0,Ee.Z)(ft,2),Nt=Et[0],vn=Et[1],kn=De.useRef(),cn=function(){xe===!0||xe===!1||(clearTimeout(kn.current),vn(!0),kn.current=setTimeout(function(){vn(!1)},3e3))},bn=re-Fe||0,en=Fe-Ie||0,on=De.useMemo(function(){if(ue===0||bn===0)return 0;var Gn=ue/bn;return Gn*en},[ue,bn,en]),gn=function(cr){cr.stopPropagation(),cr.preventDefault()},$n=De.useRef({top:on,dragging:Mt,pageY:Zt,startTop:pn});$n.current={top:on,dragging:Mt,pageY:Zt,startTop:pn};var hn=function(cr){Vt(!0),Dt(zt(cr,ke)),mn($n.current.top),le(),cr.stopPropagation(),cr.preventDefault()};De.useEffect(function(){var Gn=function(pr){pr.preventDefault()},cr=bt.current,gr=$t.current;return cr.addEventListener("touchstart",Gn,{passive:!1}),gr.addEventListener("touchstart",hn,{passive:!1}),function(){cr.removeEventListener("touchstart",Gn),gr.removeEventListener("touchstart",hn)}},[]);var In=De.useRef();In.current=bn;var xn=De.useRef();xn.current=en,De.useEffect(function(){if(Mt){var Gn,cr=function(pr){var tn=$n.current,En=tn.dragging,An=tn.pageY,yr=tn.startTop;je.Z.cancel(Gn);var st=bt.current.getBoundingClientRect(),xt=Fe/(ke?st.width:st.height);if(En){var Le=(zt(pr,ke)-An)*xt,ct=yr;!ze&&ke?ct-=Le:ct+=Le;var $e=In.current,dt=xn.current,Pt=dt?ct/dt:0,yn=Math.ceil(Pt*$e);yn=Math.max(yn,0),yn=Math.min(yn,$e),Gn=(0,je.Z)(function(){lt(yn,ke)})}},gr=function(){Vt(!1),ge()};return window.addEventListener("mousemove",cr,{passive:!0}),window.addEventListener("touchmove",cr,{passive:!0}),window.addEventListener("mouseup",gr,{passive:!0}),window.addEventListener("touchend",gr,{passive:!0}),function(){window.removeEventListener("mousemove",cr),window.removeEventListener("touchmove",cr),window.removeEventListener("mouseup",gr),window.removeEventListener("touchend",gr),je.Z.cancel(Gn)}}},[Mt]),De.useEffect(function(){return cn(),function(){clearTimeout(kn.current)}},[ue]),De.useImperativeHandle(ne,function(){return{delayHidden:cn}});var Wn="".concat(te,"-scrollbar"),lr={position:"absolute",visibility:Nt?null:"hidden"},qn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return ke?(Object.assign(lr,{height:8,left:0,right:0,bottom:0}),Object.assign(qn,(0,Ge.Z)({height:"100%",width:Ie},ze?"left":"right",on))):(Object.assign(lr,(0,Ge.Z)({width:8,top:0,bottom:0},ze?"right":"left",0)),Object.assign(qn,{width:"100%",height:Ie,top:on})),De.createElement("div",{ref:bt,className:Ze()(Wn,(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},"".concat(Wn,"-horizontal"),ke),"".concat(Wn,"-vertical"),!ke),"".concat(Wn,"-visible"),Nt)),style:(0,pe.Z)((0,pe.Z)({},lr),Ke),onMouseDown:gn,onMouseMove:cn},De.createElement("div",{ref:$t,className:Ze()("".concat(Wn,"-thumb"),(0,Ge.Z)({},"".concat(Wn,"-thumb-moving"),Mt)),style:(0,pe.Z)((0,pe.Z)({},qn),it),onMouseDown:hn}))}),Lt=Kt,Pe=20;function ot(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,te=ae/ne*ae;return isNaN(te)&&(te=0),te=Math.max(te,Pe),Math.floor(te)}var rt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],an=[],tt={overflowY:"auto",overflowAnchor:"none"};function Rt(ae,ne){var te=ae.prefixCls,oe=te===void 0?"rc-virtual-list":te,ue=ae.className,re=ae.height,le=ae.itemHeight,ge=ae.fullHeight,lt=ge===void 0?!0:ge,ke=ae.style,Ie=ae.data,Fe=ae.children,Ke=ae.itemKey,it=ae.virtual,xe=ae.direction,Oe=ae.scrollWidth,Ot=ae.component,Mt=Ot===void 0?"div":Ot,Vt=ae.onScroll,Ft=ae.onVirtualScroll,mt=ae.onVisibleChange,Zt=ae.innerProps,Dt=ae.extraRender,Ut=ae.styles,sn=ae.showScrollBar,pn=sn===void 0?"optional":sn,mn=(0,be.Z)(ae,rt),ze=De.useCallback(function(wn){return typeof Ke=="function"?Ke(wn):wn==null?void 0:wn[Ke]},[Ke]),bt=ye(ze,null,null),$t=(0,Ee.Z)(bt,4),ft=$t[0],Et=$t[1],Nt=$t[2],vn=$t[3],kn=!!(it!==!1&&re&&le),cn=De.useMemo(function(){return Object.values(Nt.maps).reduce(function(wn,Ln){return wn+Ln},0)},[Nt.id,Nt.maps]),bn=kn&&Ie&&(Math.max(le*Ie.length,cn)>re||!!Oe),en=xe==="rtl",on=Ze()(oe,(0,Ge.Z)({},"".concat(oe,"-rtl"),en),ue),gn=Ie||an,$n=(0,De.useRef)(),hn=(0,De.useRef)(),In=(0,De.useRef)(),xn=(0,De.useState)(0),Wn=(0,Ee.Z)(xn,2),lr=Wn[0],qn=Wn[1],Gn=(0,De.useState)(0),cr=(0,Ee.Z)(Gn,2),gr=cr[0],Ir=cr[1],pr=(0,De.useState)(!1),tn=(0,Ee.Z)(pr,2),En=tn[0],An=tn[1],yr=function(){An(!0)},st=function(){An(!1)},xt={getKey:ze};function Le(wn){qn(function(Ln){var Rn;typeof wn=="function"?Rn=wn(Ln):Rn=wn;var On=Qr(Rn);return $n.current.scrollTop=On,On})}var ct=(0,De.useRef)({start:0,end:gn.length}),$e=(0,De.useRef)(),dt=Bt(gn,ze),Pt=(0,Ee.Z)(dt,1),yn=Pt[0];$e.current=yn;var Cn=De.useMemo(function(){if(!kn)return{scrollHeight:void 0,start:0,end:gn.length-1,offset:void 0};if(!bn){var wn;return{scrollHeight:((wn=hn.current)===null||wn===void 0?void 0:wn.offsetHeight)||0,start:0,end:gn.length-1,offset:void 0}}for(var Ln=0,Rn,On,Qn,dr=gn.length,Dn=0;Dn<dr;Dn+=1){var Bn=gn[Dn],Un=ze(Bn),Xn=Nt.get(Un),jr=Ln+(Xn===void 0?le:Xn);jr>=lr&&Rn===void 0&&(Rn=Dn,On=Ln),jr>lr+re&&Qn===void 0&&(Qn=Dn),Ln=jr}return Rn===void 0&&(Rn=0,On=0,Qn=Math.ceil(re/le)),Qn===void 0&&(Qn=gn.length-1),Qn=Math.min(Qn+1,gn.length-1),{scrollHeight:Ln,start:Rn,end:Qn,offset:On}},[bn,kn,lr,gn,vn,re]),Mn=Cn.scrollHeight,Qt=Cn.start,_t=Cn.end,Yt=Cn.offset;ct.current.start=Qt,ct.current.end=_t,De.useLayoutEffect(function(){var wn=Nt.getRecord();if(wn.size===1){var Ln=Array.from(wn.keys())[0],Rn=wn.get(Ln),On=gn[Qt];if(On&&Rn===void 0){var Qn=ze(On);if(Qn===Ln){var dr=Nt.get(Ln),Dn=dr-le;Le(function(Bn){return Bn+Dn})}}}Nt.resetRecord()},[Mn]);var Pn=De.useState({width:0,height:re}),Fn=(0,Ee.Z)(Pn,2),zn=Fn[0],jn=Fn[1],Dr=function(Ln){jn({width:Ln.offsetWidth,height:Ln.offsetHeight})},Rr=(0,De.useRef)(),zr=(0,De.useRef)(),mr=De.useMemo(function(){return ot(zn.width,Oe)},[zn.width,Oe]),er=De.useMemo(function(){return ot(zn.height,Mn)},[zn.height,Mn]),or=Mn-re,Or=(0,De.useRef)(or);Or.current=or;function Qr(wn){var Ln=wn;return Number.isNaN(Or.current)||(Ln=Math.min(Ln,Or.current)),Ln=Math.max(Ln,0),Ln}var Hr=lr<=0,Yr=lr>=or,Kr=gr<=0,kr=gr>=Oe,Fr=Ve(Hr,Yr,Kr,kr),oi=function(){return{x:en?-gr:gr,y:lr}},qr=(0,De.useRef)(oi()),ei=(0,ce.zX)(function(wn){if(Ft){var Ln=(0,pe.Z)((0,pe.Z)({},oi()),wn);(qr.current.x!==Ln.x||qr.current.y!==Ln.y)&&(Ft(Ln),qr.current=Ln)}});function si(wn,Ln){var Rn=wn;Ln?((0,It.flushSync)(function(){Ir(Rn)}),ei()):Le(Rn)}function ci(wn){var Ln=wn.currentTarget.scrollTop;Ln!==lr&&Le(Ln),Vt==null||Vt(wn),ei()}var Zr=function(Ln){var Rn=Ln,On=Oe?Oe-zn.width:0;return Rn=Math.max(Rn,0),Rn=Math.min(Rn,On),Rn},ti=(0,ce.zX)(function(wn,Ln){Ln?((0,It.flushSync)(function(){Ir(function(Rn){var On=Rn+(en?-wn:wn);return Zr(On)})}),ei()):Le(function(Rn){var On=Rn+wn;return On})}),wr=Tt(kn,Hr,Yr,Kr,kr,!!Oe,ti),mi=(0,Ee.Z)(wr,2),Hi=mi[0],Ui=mi[1];Ue(kn,$n,function(wn,Ln,Rn,On){var Qn=On;return Fr(wn,Ln,Rn)?!1:!Qn||!Qn._virtualHandled?(Qn&&(Qn._virtualHandled=!0),Hi({preventDefault:function(){},deltaX:wn?Ln:0,deltaY:wn?0:Ln}),!0):!1}),Ce(bn,$n,function(wn){Le(function(Ln){return Ln+wn})}),(0,We.Z)(function(){function wn(Rn){var On=Hr&&Rn.detail<0,Qn=Yr&&Rn.detail>0;kn&&!On&&!Qn&&Rn.preventDefault()}var Ln=$n.current;return Ln.addEventListener("wheel",Hi,{passive:!1}),Ln.addEventListener("DOMMouseScroll",Ui,{passive:!0}),Ln.addEventListener("MozMousePixelScroll",wn,{passive:!1}),function(){Ln.removeEventListener("wheel",Hi),Ln.removeEventListener("DOMMouseScroll",Ui),Ln.removeEventListener("MozMousePixelScroll",wn)}},[kn,Hr,Yr]),(0,We.Z)(function(){if(Oe){var wn=Zr(gr);Ir(wn),ei({x:wn})}},[zn.width,Oe]);var yi=function(){var Ln,Rn;(Ln=Rr.current)===null||Ln===void 0||Ln.delayHidden(),(Rn=zr.current)===null||Rn===void 0||Rn.delayHidden()},Ii=vt($n,gn,Nt,le,ze,function(){return Et(!0)},Le,yi);De.useImperativeHandle(ne,function(){return{nativeElement:In.current,getScrollInfo:oi,scrollTo:function(Ln){function Rn(On){return On&&(0,Ae.Z)(On)==="object"&&("left"in On||"top"in On)}Rn(Ln)?(Ln.left!==void 0&&Ir(Zr(Ln.left)),Ii(Ln.top)):Ii(Ln)}}}),(0,We.Z)(function(){if(mt){var wn=gn.slice(Qt,_t+1);mt(wn,gn)}},[Qt,_t,gn]);var bi=ht(gn,ze,Nt,le),Ri=Dt==null?void 0:Dt({start:Qt,end:_t,virtual:bn,offsetX:gr,offsetY:Yt,rtl:en,getSize:bi}),Ki=Be(gn,Qt,_t,Oe,gr,ft,Fe,xt),ni=null;re&&(ni=(0,pe.Z)((0,Ge.Z)({},lt?"height":"maxHeight",re),tt),kn&&(ni.overflowY="hidden",Oe&&(ni.overflowX="hidden"),En&&(ni.pointerEvents="none")));var ar={};return en&&(ar.dir="rtl"),De.createElement("div",(0,E.Z)({ref:In,style:(0,pe.Z)((0,pe.Z)({},ke),{},{position:"relative"}),className:on},ar,mn),De.createElement(Ne.Z,{onResize:Dr},De.createElement(Mt,{className:"".concat(oe,"-holder"),style:ni,ref:$n,onScroll:ci,onMouseEnter:yi},De.createElement(qe,{prefixCls:oe,height:Mn,offsetX:gr,offsetY:Yt,scrollWidth:Oe,onInnerResize:Et,ref:hn,innerProps:Zt,rtl:en,extra:Ri},Ki))),bn&&Mn>re&&De.createElement(Lt,{ref:Rr,prefixCls:oe,scrollOffset:lr,scrollRange:Mn,rtl:en,onScroll:si,onStartMove:yr,onStopMove:st,spinSize:er,containerSize:zn.height,style:Ut==null?void 0:Ut.verticalScrollBar,thumbStyle:Ut==null?void 0:Ut.verticalScrollBarThumb,showScrollBar:pn}),bn&&Oe>zn.width&&De.createElement(Lt,{ref:zr,prefixCls:oe,scrollOffset:gr,scrollRange:Oe,rtl:en,onScroll:si,onStartMove:yr,onStopMove:st,spinSize:mr,containerSize:zn.width,horizontal:!0,style:Ut==null?void 0:Ut.horizontalScrollBar,thumbStyle:Ut==null?void 0:Ut.horizontalScrollBarThumb,showScrollBar:pn}))}var _e=De.forwardRef(Rt);_e.displayName="List";var Gt=_e,wt=Gt},4977:function(fn){"use strict";fn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(fn,Ht,ee){"use strict";ee.d(Ht,{Z:function(){return Ze}});const E=Ne=>typeof Ne=="object"&&Ne!=null&&Ne.nodeType===1,Ae=(Ne,ce)=>(!ce||Ne!=="hidden")&&Ne!=="visible"&&Ne!=="clip",pe=(Ne,ce)=>{if(Ne.clientHeight<Ne.scrollHeight||Ne.clientWidth<Ne.scrollWidth){const We=getComputedStyle(Ne,null);return Ae(We.overflowY,ce)||Ae(We.overflowX,ce)||(De=>{const It=(at=>{if(!at.ownerDocument||!at.ownerDocument.defaultView)return null;try{return at.ownerDocument.defaultView.frameElement}catch(qe){return null}})(De);return!!It&&(It.clientHeight<De.scrollHeight||It.clientWidth<De.scrollWidth)})(Ne)}return!1},Ge=(Ne,ce,We,De,It,at,qe,He)=>at<Ne&&qe>ce||at>Ne&&qe<ce?0:at<=Ne&&He<=We||qe>=ce&&He>=We?at-Ne-De:qe>ce&&He<We||at<Ne&&He>We?qe-ce+It:0,Ee=Ne=>{const ce=Ne.parentElement;return ce==null?Ne.getRootNode().host||null:ce},be=(Ne,ce)=>{var We,De,It,at;if(typeof document=="undefined")return[];const{scrollMode:qe,block:He,inline:Be,boundary:ut,skipOverflowHiddenElements:St}=ce,Bt=typeof ut=="function"?ut:Lt=>Lt!==ut;if(!E(Ne))throw new TypeError("Invalid target");const je=document.scrollingElement||document.documentElement,Te=[];let Qe=Ne;for(;E(Qe)&&Bt(Qe);){if(Qe=Ee(Qe),Qe===je){Te.push(Qe);break}Qe!=null&&Qe===document.body&&pe(Qe)&&!pe(document.documentElement)||Qe!=null&&pe(Qe,St)&&Te.push(Qe)}const Ve=(De=(We=window.visualViewport)==null?void 0:We.width)!=null?De:innerWidth,Tt=(at=(It=window.visualViewport)==null?void 0:It.height)!=null?at:innerHeight,{scrollX:ht,scrollY:Xe}=window,{height:et,width:Me,top:pt,right:Ye,bottom:ye,left:jt}=Ne.getBoundingClientRect(),{top:Ue,right:nt,bottom:zt,left:Ce}=(Lt=>{const Pe=window.getComputedStyle(Lt);return{top:parseFloat(Pe.scrollMarginTop)||0,right:parseFloat(Pe.scrollMarginRight)||0,bottom:parseFloat(Pe.scrollMarginBottom)||0,left:parseFloat(Pe.scrollMarginLeft)||0}})(Ne);let de=He==="start"||He==="nearest"?pt-Ue:He==="end"?ye+zt:pt+et/2-Ue+zt,vt=Be==="center"?jt+Me/2-Ce+nt:Be==="end"?Ye+nt:jt-Ce;const Kt=[];for(let Lt=0;Lt<Te.length;Lt++){const Pe=Te[Lt],{height:ot,width:rt,top:an,right:tt,bottom:Rt,left:_e}=Pe.getBoundingClientRect();if(qe==="if-needed"&&pt>=0&&jt>=0&&ye<=Tt&&Ye<=Ve&&(Pe===je&&!pe(Pe)||pt>=an&&ye<=Rt&&jt>=_e&&Ye<=tt))return Kt;const Gt=getComputedStyle(Pe),wt=parseInt(Gt.borderLeftWidth,10),ae=parseInt(Gt.borderTopWidth,10),ne=parseInt(Gt.borderRightWidth,10),te=parseInt(Gt.borderBottomWidth,10);let oe=0,ue=0;const re="offsetWidth"in Pe?Pe.offsetWidth-Pe.clientWidth-wt-ne:0,le="offsetHeight"in Pe?Pe.offsetHeight-Pe.clientHeight-ae-te:0,ge="offsetWidth"in Pe?Pe.offsetWidth===0?0:rt/Pe.offsetWidth:0,lt="offsetHeight"in Pe?Pe.offsetHeight===0?0:ot/Pe.offsetHeight:0;if(je===Pe)oe=He==="start"?de:He==="end"?de-Tt:He==="nearest"?Ge(Xe,Xe+Tt,Tt,ae,te,Xe+de,Xe+de+et,et):de-Tt/2,ue=Be==="start"?vt:Be==="center"?vt-Ve/2:Be==="end"?vt-Ve:Ge(ht,ht+Ve,Ve,wt,ne,ht+vt,ht+vt+Me,Me),oe=Math.max(0,oe+Xe),ue=Math.max(0,ue+ht);else{oe=He==="start"?de-an-ae:He==="end"?de-Rt+te+le:He==="nearest"?Ge(an,Rt,ot,ae,te+le,de,de+et,et):de-(an+ot/2)+le/2,ue=Be==="start"?vt-_e-wt:Be==="center"?vt-(_e+rt/2)+re/2:Be==="end"?vt-tt+ne+re:Ge(_e,tt,rt,wt,ne+re,vt,vt+Me,Me);const{scrollLeft:ke,scrollTop:Ie}=Pe;oe=lt===0?0:Math.max(0,Math.min(Ie+oe/lt,Pe.scrollHeight-ot/lt+le)),ue=ge===0?0:Math.max(0,Math.min(ke+ue/ge,Pe.scrollWidth-rt/ge+re)),de+=Ie-oe,vt+=ke-ue}Kt.push({el:Pe,top:oe,left:ue})}return Kt},Se=Ne=>Ne===!1?{block:"end",inline:"nearest"}:(ce=>ce===Object(ce)&&Object.keys(ce).length!==0)(Ne)?Ne:{block:"start",inline:"nearest"};function Ze(Ne,ce){if(!Ne.isConnected||!(It=>{let at=It;for(;at&&at.parentNode;){if(at.parentNode===document)return!0;at=at.parentNode instanceof ShadowRoot?at.parentNode.host:at.parentNode}return!1})(Ne))return;const We=(It=>{const at=window.getComputedStyle(It);return{top:parseFloat(at.scrollMarginTop)||0,right:parseFloat(at.scrollMarginRight)||0,bottom:parseFloat(at.scrollMarginBottom)||0,left:parseFloat(at.scrollMarginLeft)||0}})(Ne);if((It=>typeof It=="object"&&typeof It.behavior=="function")(ce))return ce.behavior(be(Ne,ce));const De=typeof ce=="boolean"||ce==null?void 0:ce.behavior;for(const{el:It,top:at,left:qe}of be(Ne,Se(ce))){const He=at-We.top+We.bottom,Be=qe-We.left+We.right;It.scroll({top:He,left:Be,behavior:De})}}}}]);
|