You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__DataSet__Detail__index.4...

1349 lines
1.8 MiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[5382],{89489:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},59477:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},40001:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},26227:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={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"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},49198:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},41464:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},73331:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},15277:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},52671:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},8657:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},56082:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},33853:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},15075:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},43531:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},61485:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},47472:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},87395:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},3706:function(){"use strict"},96772:function(){"use strict"},50718:function(In,Yt){"use strict";Yt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},45936:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var In={},Yt="5.0",Te={},te=null,Ot=!1,y=!1,je=null,be=!1,z=null,E=null,ie=0;ie<arguments.length;ie++){var oe=arguments[ie];if(oe!==null)switch(typeof oe){case"number":Yt=oe.toFixed(1);break;case"string":oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Yt=oe:je=oe;break;case"object":typeof oe.is3D!="undefined"?te=oe:Te=oe;break;case"boolean":Ot=oe,y=!0;break}}te===null&&(te={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Te.material_id!==void 0&&!y&&(Ot=!0)),je!==null&&Te.id===void 0&&(Te.id=je);var ee="",ce="",x=!1,ae=null,re=null,se=null,ue=!1,pe=null,he=null,ye=null,ge=null,xe=null;Te.height!==void 0&&(Te.height=Math.round(Te.height)),Te.width!==void 0&&(Te.width=Math.round(Te.width));var ke=function(Ke){return parseFloat(Ke)>4?parseFloat(Ke):5};In.setHTML5Codebase=function(Ke,Ye){E=Ke,tt(Ke,Ye)},In.setJavaCodebase=In.setJavaCodebaseVersion=In.isCompiledInstalled=In.setPreCompiledScriptPath=In.setPreCompiledResourcePath=function(){},In.setHTML5CodebaseVersion=function(Ke,Ye){var Xe=parseFloat(Ke);if(Xe!==NaN&&Xe<5){console.log("The GeoGebra HTML5 codebase version "+Xe+" is deprecated. Using version latest instead.");return}z=Ke,Ue(Ke,Ye)},In.getHTML5CodebaseVersion=function(){return re},In.getParameters=function(){return Te},In.setFontsCSSURL=function(Ke){ge=Ke},In.setGiacJSURL=function(Ke){},In.setJNLPFile=function(Ke){ee=Ke},In.setJNLPBaseDir=function(Ke){},In.inject=function(){function Ke(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ye="auto",Xe=Te.id,ot,Qe=!1,ft=0;ft<arguments.length;ft++){var at=arguments[ft];typeof at=="string"?(at=at.toLowerCase(),at.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ye=at:Xe=arguments[ft]):typeof at=="boolean"?Qe=at:at instanceof HTMLElement&&(ot=at)}qe();function qe(){if(!be){setTimeout(qe,200);return}Ye=nt(Ye);var Fe=ot||document.getElementById(Xe);if(!Fe){console.log("possibly bug on ajax loading? ");return}if(In.removeExistingApplet(Fe,!1),Te.width===void 0&&Fe.clientWidth&&(Te.width=Fe.clientWidth),Te.height===void 0&&Fe.clientHeight&&(Te.height=Fe.clientHeight),!(Te.width&&Te.height)&&Ye==="html5"&&(delete Te.width,delete Te.height),ae=Ye,Ye==="screenshot")Ne(Fe,Te);else{var Re=!1;Te.hasOwnProperty("playButton")&&Te.playButton||Te.hasOwnProperty("clickToLoad")&&Te.clickToLoad?Re=!0:Te.hasOwnProperty("playButtonAutoDecide")&&Te.playButtonAutoDecide&&(Re=(!De()||Ke())&&Be()),Re?(ae="screenshot",Ve(Fe,Te,Qe,Ye)):Le(Fe,Te,Qe)}}};function De(){try{return window.self!==window.top}catch(Ke){return!0}}function Be(){return Te.hasOwnProperty("screenshotGenerator")&&Te.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}In.getViews=function(){return te},In.isJavaInstalled=function(){return!1};var Ae=function(Ke){var Ye=function(ft){var at=JSON.parse(ft),qe=function(ne){return ne.type=="G"||ne.type=="E"},Fe=at.elements?at.elements.filter(qe)[0]:at;if(!Fe||!Fe.url){Xe();return}Te.fileName=Fe.url,Se(Fe.settings||{}),te.is3D=!0;var Re="https://www.geogebra.org/images/";In.setPreviewImage(pe||Fe.previewUrl,Re+"GeoGebra_loading.png",Re+"applet_play.png"),Ke()},Xe=function(){Te.onError&&Te.onError(),rt("Error: Fetching material (id "+Te.material_id+") failed.",Te)},ot=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Qe="/materials/"+Te.material_id+"?scope=basic";Ee("https://"+ot+"/api/proxy.php?path="+encodeURIComponent(Qe),Ye,Xe)};function Se(Ke){var Ye=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Xe){Ke[Xe]=!!Ke[Xe]}),Ye.forEach(function(Xe){Te[Xe]===void 0&&Ke[Xe]!==void 0&&(Te[Xe]=Ke[Xe])}),Te.showToolBarHelp===void 0&&(Te.showToolBarHelp=Te.showToolBar)}function Ee(Ke,Ye,Xe){var ot=new XMLHttpRequest;ot.open("GET",Ke),ot.onload=function(){Ye(ot.responseText)},ot.onerror=Xe,ot.send()}In.isHTML5Installed=function(){return!0},In.getLoadedAppletType=function(){return ae},In.setPreviewImage=function(Ke,Ye,Xe){pe=Ke,he=Ye,ye=Xe},In.removeExistingApplet=function(Ke,Ye){var Xe;typeof Ke=="string"&&(Ke=document.getElementById(Ke)),ae=null;var ot=null;for(Xe=0;Xe<Ke.childNodes.length;Xe++){var Qe=Ke.childNodes[Xe],ft=Qe.className;ft==="applet_screenshot"?Ye?(Qe.style.display="block",ae="screenshot"):Qe.style.display="none":ft!=="applet_scaler prerender"&&(Ke.removeChild(Qe),ot=ft&&ft.indexOf("appletParameters")!=-1?Qe.id:null,Xe--)}var at=Te.id!==void 0?Te.id:ot,qe=window[at];qe&&typeof qe.getBase64=="function"&&(qe.remove(),window[at]=null)},In.refreshHitPoints=function(){if(ke(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ke=In.getAppletObject();return Ke&&typeof Ke.recalculateEnvironments=="function"?(Ke.recalculateEnvironments(),!0):!1},In.startAnimation=function(){var Ke=In.getAppletObject();return Ke&&typeof Ke.startAnimation=="function"?(Ke.startAnimation(),!0):!1},In.stopAnimation=function(){var Ke=In.getAppletObject();return Ke&&typeof Ke.stopAnimation=="function"?(Ke.stopAnimation(),!0):!1},In.getAppletObject=function(){var Ke=Te.id!==void 0?Te.id:"ggbApplet";return window[Ke]},In.resize=function(){};var Oe=function(Ke,Ye,Xe){var ot=document.createElement("param");ot.setAttribute("name",Ye),ot.setAttribute("value",Xe),Ke.appendChild(ot)},Pe=function(Ke){return Ke&&Ke!=="false"},Le=function(Ke,Ye,Xe){ke(re)<=4.2&&(Xe=!0);var ot=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==re||ggbHTML5LoadedCodebaseIsWebSimple&&!ue)&&(ot=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Qe=document.createElement("div");Qe.classList.add("appletParameters","notranslate");var ft=Ye.width,at=Ye.height;if(Ye.disableAutoScale=Ye.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ye.disableAutoScale,Ye.width!==void 0)if(ke(re)<=4.4)Pe(Ye.showToolBar)&&(Ye.height-=7),Pe(Ye.showAlgebraInput)&&(Ye.height-=37),Ye.width<605&&Pe(Ye.showToolBar)&&(Ye.width=605,ft=605);else{var qe=100;(Pe(Ye.showToolBar)||Pe(Ye.showMenuBar))&&(Ye.hasOwnProperty("customToolBar")&&(Ye.customToolbar=Ye.customToolBar),qe=Pe(Ye.showMenuBar)?245:155),ft<qe&&(Ye.width=qe,ft=qe)}Qe.style.border="none",Qe.style.display="inline-block";for(var Fe in Ye)Ye.hasOwnProperty(Fe)&&Fe!=="appletOnLoad"&&Qe.setAttribute("data-param-"+Fe,Ye[Fe]);ge&&Qe.setAttribute("data-param-fontscssurl",ge),In.resize=function(){GGBAppletUtils.responsiveResize(Ke,Ye)},window.addEventListener("resize",function(lt){In.resize()});var Re=typeof Ye.appletOnLoad=="function"?Ye.appletOnLoad:function(){};if(!Xe&&Ye.width!==void 0){Ye.hasOwnProperty("showSplash")||Qe.setAttribute("data-param-showSplash","false");var ne=Ke.querySelector(".applet_scaler.prerender"),fe=ne!==null;if(fe)var Me=ne.querySelector(".ggb_preview");else{var Me=We(ft,at,Ye.borderColor,!1);ne=document.createElement("div"),ne.className="applet_scaler",ne.style.position="relative",ne.style.display="block",ne.style.width=ft+"px",ne.style.height=at+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ne,"66%"),ke(re)>=5?(Ye.appletOnLoad=function(lt){var vt=Ke.querySelector(".ggb_preview");vt&&vt.parentNode.removeChild(vt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ne),window.GGBT_wsf_view&&$(window).trigger("resize"),Re(lt)},fe||ne.appendChild(Me)):Qe.appendChild(Me),ne.appendChild(Qe),fe||Ke.appendChild(ne),setTimeout(function(){In.resize()},1)}else{var ze=document.createElement("div");ze.className="applet_scaler",ze.style.position="relative",ze.style.display="block",ze.appendChild(Qe),Ke.appendChild(ze),Ye.appletOnLoad=function(lt){In.resize(),Re(lt)}}function we(lt,vt){vt&&typeof vt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(lt,vt.appletOnLoad):renderGGBElement(lt),rt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",vt)}function ve(lt,vt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:lt,params:vt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ct){we(ct.article,ct.params)}),html5AppletsToProcess=null)},ke(re)<5&&(lt.className+=" geogebraweb")):we(lt,vt)}if(ot){scriptLoadStarted=!0;for(var Ie=0;Ie<Qe.childNodes.length;Ie++){var $e=Qe.childNodes[Ie].tagName;$e==="TABLE"&&(Qe.removeChild(Qe.childNodes[Ie]),Ie--)}if(ggbHTML5LoadedScript!==null){var Ge=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ge!=null&&Ge.parentNode.removeChild(Ge)}var Je=document.createElement("script"),ut=function(){ve(Qe,Ye)};Je.src=ce+se,ggbHTML5LoadedCodebaseIsWebSimple=ue,ggbHTML5LoadedCodebaseVersion=re,ggbHTML5LoadedScript=Je.src,rt("GeoGebra HTML5 codebase loaded: '"+ce+"'.",Ye),!E&&(!z||z=="5.0")?(ue?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ut()):ce.requirejs?__webpack_require__.e(2667).then(function(){var lt=[__webpack_require__(72667)];ut.apply(null,lt)}.bind(this)).catch(__webpack_require__.oe):(Je.onload=ut,Ke.appendChild(Je))}else ve(Qe,Ye);Ye.height=at,Ye.width=ft},Ne=function(Ke,Ye,Xe){var ot=We(Ye.width,Ye.height,Ye.borderColor,Xe),Qe=document.createElement("div");Qe.style.position="relative",Qe.style.display="block",Qe.style.width=Ye.width+"px",Qe.style.height=Ye.height+"px",Qe.className="applet_screenshot applet_scaler"+(Xe?" applet_screenshot_play":""),Qe.appendChild(ot);var ft=GGBAppletUtils.getScale(Ye,Ke,Xe);Xe?(Ke.appendChild(Ze()),window.GGBT_wsf_view||(Ke.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Qe,"66%"),Ke.appendChild(Qe),ft!==1&&!isNaN(ft)&&(GGBAppletUtils.scaleElement(Qe,ft),Qe.style.width=Ye.width+"px",Qe.style.height=Ye.height+"px",Qe.parentNode.style.width=Ye.width*ft+"px",Qe.parentNode.style.height=Ye.height*ft+"px"),In.resize=function(){me(Ke,ot,Qe,Xe)},window.addEventListener("resize",function(at){In.resize()}),In.resize()};function me(Ke,Ye,Xe,ot){if(Ke.contains(Ye)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ke.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ke)}var Qe=GGBAppletUtils.getScale(Te,Ke,ot);Xe.parentNode!==null&&(!isNaN(Qe)&&Qe!==1?(GGBAppletUtils.scaleElement(Xe,Qe),Xe.parentNode.style.width=Te.width*Qe+"px",Xe.parentNode.style.height=Te.height*Qe+"px"):(GGBAppletUtils.scaleElement(Xe,1),Xe.parentNode.style.width=Te.width+"px",Xe.parentNode.style.height=Te.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ke),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}In.onExitFullscreen=function(Ke,Ye){Ye.appendChild(Ke)};var Ve=function(Ke,Ye,Xe,ot){Ne(Ke,Ye,!0);for(var Qe=function(){var qe=[];for(at=0;at<Ke.childNodes.length;at++)qe.push(Ke.childNodes[at]);if(window.GGBT_wsf_view){var Fe=window.GGBT_wsf_view.renderFullScreen(Ke,Ye.id),Re=document.getElementById("fullscreencontainer"),ne=jQuery(Ke).find(".fullscreencontent");ne.length>0?(Fe.remove(),ne.attr("id","fullscreencontent").show(),jQuery(Re).append(ne),window.dispatchEvent(new Event("resize"))):Le(Fe,Ye,!1),window.GGBT_wsf_view.launchFullScreen(Re)}else ae=ot,Le(Ke,Ye,!1);if(!window.GGBT_wsf_view)for(at=0;at<qe.length;at++)Ke.removeChild(qe[at])},ft=Ke.getElementsByClassName("ggb_preview_play"),at=0;at<ft.length;at++)ft[at].addEventListener("click",Qe,!1),ft[at].addEventListener("ontouchstart",Qe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ke),Be()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ze=function(){var Ke=document.createElement("div");if(Ke.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ye='.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");}',Xe=document.createElement("style");Xe.styleSheet?Xe.styleSheet.cssText=Ye:Xe.appendChild(document.createTextNode(Ye)),document.getElementsByTagName("head")[0].appendChild(Xe)}return Ke},We=function(Ke,Ye,Xe,ot){var Qe=document.createElement("div");Qe.className="ggb_preview",Qe.style.position="absolute",Qe.style.zIndex="90",Qe.style.width=Ke-2+"px",Qe.style.height=Ye-2+"px",Qe.style.top="0px",Qe.style.left="0px",Qe.style.overflow="hidden",Qe.style.backgroundColor="white";var ft="lightgrey";Xe!==void 0&&(Xe==="none"?ft="transparent":ft=Xe),Qe.style.border="1px solid "+ft;var at=document.createElement("img");if(at.style.position="relative",at.style.zIndex="1000",at.style.top="-1px",at.style.left="-1px",pe!==null&&at.setAttribute("src",pe),at.style.opacity=.7,he!==null){var qe,Fe,Re;if(!ot){qe=document.createElement("img"),qe.style.position="absolute",qe.style.zIndex="1001",qe.style.opacity=1,at.style.opacity=.3,Fe=360,Fe>Ke/4*3&&(Fe=Ke/4*3),Re=Fe/5.8,qe.setAttribute("src",he),qe.setAttribute("width",Fe),qe.setAttribute("height",Re);var ne=(Ke-Fe)/2,fe=(Ye-Re)/2;qe.style.left=ne+"px",qe.style.top=fe+"px",Qe.appendChild(qe)}}return Qe.appendChild(at),Qe},nt=function(Ke){return Ke=Ke.toLowerCase(),Ke==="html5"||Ke==="screenshot"?Ke:"html5"},_e=["web","webSimple","web3d","tablet","tablet3d","phone"],Ue=function(Ke,Ye){if(re=Ke,Ye){tt(re,!0);return}var Xe=!Ot;if(Xe){var ot=ke(re);!isNaN(ot)&&ot<4.4&&(Xe=!1)}var Qe,ft;window.location.protocol.substr(0,4)==="http"?Qe=window.location.protocol:Qe="http:";var at=re.indexOf("//");at>0?ft=re:at===0?ft=Qe+re:ft="https://www.geogebra.org/apps/5.2.814.0/";for(var qe in _e)if(re.slice(_e[qe].length*-1)===_e[qe]||re.slice((_e[qe].length+1)*-1)===_e[qe]+"/"){tt(ft,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Xe&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!Pe(Te.showToolBar)&&!Pe(Te.showMenuBar)&&!Pe(Te.showAlgebraInput)&&!Pe(Te.enableRightClick)&&(!Te.appName||Te.appName=="classic")?ft+="webSimple/":ft+="web3d/",tt(ft,!1)},tt=function(Ke,Ye){if(Ke.requirejs){ce=Ke;return}Ke.slice(-1)!=="/"&&(Ke+="/"),ce=Ke,Ye===null&&(Ye=Ke.indexOf("http")===-1),x=Ye,se="web.nocache.js",ue=!1;var Xe=ce.split("/");Xe.length>1&&(!Ye&&Xe[Xe.length-2]==="webSimple"?(se="webSimple.nocache.js",ue=!0):_e.indexOf(Xe[Xe.length-2])>=0&&(se=Xe[Xe.length-2]+".nocache.js")),Xe=Ke.split("/"),re=Xe[Xe.length-3],re.substr(0,4)==="test"?re=re.substr(4,1)+"."+re.substr(5,1):(re.substr(0,3)==="war"||re.substr(0,4)==="beta")&&(re="5.0");var ot=parseFloat(re);ot!==NaN&&ot<5&&Ke.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ot+" is deprecated. Using version latest instead."),Ue("5.0",Ye))},rt=function(Ke,Ye){window.console&&window.console.log&&(!Ye||typeof Ye.showLogging=="undefined"||Ye.showLogging&&Ye.showLogging!=="false")&&console.log(Ke)};Te.material_id!==void 0?Ae(et):et();function et(){var Ke=Yt;z!==null?Ke=z:parseFloat(Ke)<5&&(Ke="5.0"),Ue(Ke,!1),E!==null&&tt(E,x),be=!0}return In},GGBAppletUtils=function(){"use strict";function In(){return window.GGBT_wsf_edit!==void 0}function Yt(be,z){z!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+z+","+z+")",be.style.webkitTransform="scale("+z+","+z+")",be.style.maxWidth="initial",be.querySelector(".ggb_preview")!==null&&(be.querySelector(".ggb_preview").style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(be.style.transform="none",be.style.webkitTransform="none")}function Te(be,z,E,ie,oe,ee){var ce=null;if(ee!=null&&ee!="")for(var x=be.parentNode;x!=null;)if((" "+x.className+" ").indexOf(" "+ee+" ")>-1){ce=x;break}else x=x.parentNode;var ae=0,re=0,se=0,ue=0,pe=0,he=0,ye=0;if(ce)ae=ce.offsetWidth,re=Math.max(ie?ce.offsetWidth:0,ce.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ae=Math.min(window.innerWidth,document.documentElement.clientWidth),re=Math.min(window.innerHeight,document.documentElement.clientHeight),se=ae):(ae=window.innerWidth,re=window.innerHeight,se=window.innerWidth),be){var ge=be.getBoundingClientRect();ge.left>0&&ge.left<=ae&&(oe===void 0||!oe)&&(document.dir==="rtl"?(pe=ae-ge.width-ge.left,he=se<=480?10:30):(he=ge.left,pe=se<=480?10:30),ue=he+pe)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var xe=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ue=40,ye=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ue=0,ye=40)}}return be&&((E===void 0||!E)&&z>0&&z+ue<ae?ae=z:ae-=ue,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(E===void 0||!E)&&(re-=ye)),{width:ae,height:re}}function te(be,z,E,ie,oe){if(be.isScreenshoGenerator)return 1;var ee=ie!==void 0&&ie,ce=be.noScaleMargin!=null&&be.noScaleMargin,x=function(xe){return xe&&xe!=="false"},ae=x(be.autoHeight),re=Te(z,be.width,E,ae,ee&&window.GGBT_wsf_view||ce,oe),se=parseInt(re.width),ue=be.width,pe=be.height;if(ue===void 0){var he=z.querySelector(".appletParameters");he&&(ue=he.offsetWidth,pe=he.offsetHeight)}var ye=se/ue,ge=ee?1:re.height/pe;return E!==void 0&&!E&&(ye=Math.min(1,ye),ge=Math.min(1,ge)),Math.min(ye,ge)}function Ot(be,z,E){var ie=1,oe,ee=!1;if(be.hasOwnProperty("allowUpscale")&&(ee=be.allowUpscale),be.hasOwnProperty("scale")&&(ie=parseFloat(be.scale),(isNaN(ie)||ie===null||ie===0)&&(ie=1),ie>1&&(ee=!0)),z&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ee=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))oe=te(be,z,ee,E,be.scaleContainerClass);else return ie;return ee&&(!be.hasOwnProperty("scale")||ie===1)?oe:Math.min(ie,oe)}function y(be){var z=Math.min(window.innerWidth,document.documentElement.clientWidth),E=Math.min(window.innerHeight,document.documentElement.clientHeight),ie=be.getBoundingClientRect(),oe=(z-ie.width)/2,ee=(E-ie.height)/2;ee<0&&(ee=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(oe<40?be.style.left="40px":be.style.left=oe+"px",be.style.top=ee+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee<40?be.style.top="40px":be.style.top=ee+"px",be.style.left=oe+"px")}function je(be,z){var E=be.querySelector(".appletParameters");if(E){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(z.id!==E.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(E.parentElement&&/fullscreen/.test(E.parentElement.className))return;var ie=Ot(z,be);In()&&E.setAttribute("data-param-scale",ie);for(var oe=null,ee=0;ee<be.childNodes.length;ee++)if(be.childNodes[ee].className!==void 0&&be.childNodes[ee].className.match(/^applet_scaler/)){oe=be.childNodes[ee];break}if(oe!==null&&oe.querySelector(".noscale")!==null)return;var ce=z.id!==void 0?z.id:"ggbApplet",x=window[ce];(x==null||!x.recalculateEnvironments)&&oe!==null&&!oe.className.match(/fullscreen/)&&(oe.parentNode.style.transform="",!isNaN(ie)&&ie!==1?(oe.parentNode.style.width=z.width*ie+"px",oe.parentNode.style.height=z.height*ie+"px",Yt(oe,ie)):(Yt(oe,1),oe.parentNode.style.width=z.width+"px",oe.parentNode.style.height=z.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&y(be),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(E).parents(".content-added-content"))}}return{responsiveResize:je,isFlexibleWorksheetEditor:In,positionCenter:y,getScale:Ot,scaleElement:Yt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var In=n.location.search;return In.indexOf(J)!=-1||In.indexOf(K)!=-1}function q(In,Yt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(In){var Yt=s[L].bindings;s[L].bindings=function(){for(var Te=Yt?Yt():{},te=In[webModule.__softPermutationId],Ot=O;Ot<te.length;Ot++){var y=te[Ot];Te[y[O]]=y[P]}return Te}};var t;function u(){return v(),t}function v(){if(!t){var In=o.createElement(Q);if(In.id=L,In.style.cssText=R+S,In.tabIndex=-1,o.body.appendChild(In),t=In.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Yt=document.compatMode==U?V:W;t.write(Yt+X),t.close()}}}function w(In){function Yt(te){function Ot(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var y=Ot();if(y){te();return}function je(){if(!y){if(!Ot())return;y=!0,te(),o.removeEventListener&&o.removeEventListener(Z,je,!1),be&&clearInterval(be)}}o.addEventListener&&o.addEventListener(Z,je,!1);var be=setInterval(function(){je()},$)}function Te(te){var Ot=u(),y=Ot.body,je=Ot.createElement(_);je.language=ab,je.crossOrigin=W,je.src=te,webModule.__errFn&&(je.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),y.appendChild(je)}Yt(function(){Te(In)})}webModule.__startLoadingFragment=function(In){return C(In)},webModule.__installRunAsyncCode=function(In){var Yt=u(),Te=Yt.body,te=Yt.createElement(_);te.language=ab,te.text=In,Te.appendChild(te),Te.removeChild(te)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(In){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(In){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(In){var Yt=c[In];return Yt==null?null:Yt},r=d,webModule.__errFn=e}function B(){function In(be){var z=be.lastIndexOf(rb);z==-1&&(z=be.length);var E=be.indexOf(sb);E==-1&&(E=be.length);var ie=be.lastIndexOf(tb,Math.min(E,z));return ie>=O?be.substring(O,ie+P):W}function Yt(be){if(!be.match(/^\w+:\/\//)){var z=o.createElement(ub);z.src=be+vb,be=In(z.src)}return be}function Te(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function te(){for(var be=o.getElementsByTagName(_),z=O;z<be.length;++z)if(be[z].src.indexOf(xb)!=-1)return In(be[z].src);return W}function Ot(){var be=o.getElementsByTagName(yb);return be.length>O?be[be.length-P].href:W}function y(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var je=Te();return je==W&&(je=te()),je==W&&(je=Ot()),je==W&&y()&&(je=In(o.location.href)),je=Yt(je),je}function C(In){return In.match(/^\//)||In.match(/^[a-zA-Z]+:\/\//)?In:webModule.__moduleBase+In}function D(){var In=[],Yt=O,Te=[],te=[];function Ot(be){var z=te[be](),E=Te[be];if(z in E)return z;var ie=[];for(var oe in E)ie[E[oe]]=oe;throw r&&r(be,ie,z),null}if(__gwt_isKnownPropertyValue=function(be,z){return z in Te[be]},webModule.__getPropMap=function(){var be={};for(var z in Te)Te.hasOwnProperty(z)&&(be[z]=Ot(z));return be},webModule.__computePropValue=Ot,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var y;try{y=Cb;var je=y.indexOf(Db);je!=-1&&(Yt=parseInt(y.substring(je+P),$),y=y.substring(O,je))}catch(be){}return webModule.__softPermutationId=Yt,C(y+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},8240:function(In,Yt,Te){"use strict";Te.d(Yt,{Ax:function(){return je},Ds:function(){return be},KI:function(){return E},SI:function(){return y},f1:function(){return Ot}});var te=Te(35783);function Ot(ie){let oe=!0;if(ie.length>0){for(let ee=0;ee<ie.length;ee++)if(ie[ee].compile_success==0||!ie[ee].compile_success){oe=!1;break}}else oe=!1;return oe}function y(ie,oe=""){let ee=[];for(let ce=0;ce<ie.length;ce++){let x=ie[ce],ae=oe?`${oe}/${x.name}`:`${x.name}`;ee.push({title:x.name,type:x.type,isLeaf:x.type!=="tree",key:ae})}return ee}function je(ie,oe,ee){for(let ce=0;ce<ie.length;ce++){let x=ie[ce];if(x.key===oe){x.children=ee;break}x.children&&je(x.children,oe,ee)}return ie}function be(ie,oe,ee){let ce;return function(){let x=this,ae=arguments,re=function(){ce=null,ee||ie.apply(x,ae)},se=ee&&!ce;clearTimeout(ce),ce=setTimeout(re,oe),se&&ie.apply(x,ae)}}const z=!0,E=te.Z.API_SERVER},78265:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ce}});var te=Te(59301),Ot={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},y=Te(92310),je=Te.n(y),be=Te(29787),z=Te(2859),E=Te(22972),ie=Te(68911),oe=(x,ae,re)=>new Promise((se,ue)=>{var pe=ge=>{try{ye(re.next(ge))}catch(xe){ue(xe)}},he=ge=>{try{ye(re.throw(ge))}catch(xe){ue(xe)}},ye=ge=>ge.done?se(ge.value):Promise.resolve(ge.value).then(pe,he);ye((re=re.apply(x,ae)).next())}),ce=({data:x,className:ae,fullWidth:re,style:se={},onClose:ue,onOk:pe,showFullTools:he,noAssociationId:ye})=>{const ge=(0,te.useRef)(null),xe=(0,te.useRef)(null),ke=(0,te.useRef)(null),De=(0,te.useRef)(null),[Be,Ae]=(0,te.useState)(!1),[Se,Ee]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>(ke.current||(ke.current=document.createElement("style"),document.head.appendChild(ke.current)),x!=null&&x.visible?(document.body.setAttribute("data-custom","y-hidden"),ke.current.innerHTML=" html { overflow-y: hidden; }",x!=null&&x.src&&Oe()):(document.body.removeAttribute("data-custom"),ke.current&&(document.head.removeChild(ke.current),ke.current=null)),()=>{document.body.removeAttribute("data-custom"),ke.current&&(document.head.removeChild(ke.current),ke.current=null)}),[x==null?void 0:x.visible]);const Oe=()=>oe(void 0,null,function*(){Ae(!0),Ee("\u6B63\u5728\u52A0\u8F7D\u4E2D");const me=yield(0,ie.ZJ)(x==null?void 0:x.src);ge.current.src="",ge.current.src=me,ge.current.onload=function(){Ne()},Ae(!1),Ee("")}),Pe=me=>oe(void 0,null,function*(){Ae(!0),Ee("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ve=yield(0,E.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:x.title,file:me.dataUrl}});Ve!=null&&Ve.id&&!ye?(yield(0,E.ZP)(`/api/attachments/${x.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ve==null?void 0:Ve.id,settings:JSON.stringify(me.state)}})).status===0&&pe():Ve!=null&&Ve.id&&pe(Ve),Ae(!1),Ee("")}),Le=()=>{const me=document.querySelector('a[href="https://markerjs.com/"]');me&&me.parentNode&&(me.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(Ze=>{const We=document.querySelector(Ze.name);We&&We.setAttribute("title",Ze.title)})},Ne=()=>{xe.current=new z.hP(ge.current),xe.current.targetRoot=De.current,xe.current.addEventListener("render",Pe),xe.current.addEventListener("beforeclose",ue),he&&(xe.current.availableMarkerTypes=xe.current.ALL_MARKER_TYPES,xe.current.uiStyleSettings.redoButtonVisible=!0,xe.current.uiStyleSettings.notesButtonVisible=!0,xe.current.uiStyleSettings.zoomButtonVisible=!0,xe.current.uiStyleSettings.zoomOutButtonVisible=!0,xe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=xe.current.uiStyleSettings,xe.current.show(),x!=null&&x.snapshotData&&xe.current.restoreState(x.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Le()},300)};return te.createElement(te.Fragment,null,(x==null?void 0:x.visible)&&te.createElement(be.Z,{spinning:Be,tip:Se,style:{position:"absolute",width:"100vw"}},te.createElement("div",{ref:De,className:je()(Ot.imageDimensions,ae,re?Ot.fullWidth:""),style:se},te.createElement("img",{className:Ot.img,ref:ge}))))}},9043:function(In,Yt,Te){"use strict";var te=Te(59301),Ot=Te(77019),y=Te(5269),je=Te(31691),be=Te(7939),z=Te(56375),E=Te(50718),ie=Te(48136),oe=Te(59301);const ee=(0,te.forwardRef)(({callback:ce,showSaveButton:x,value:ae=""},re)=>{const se=(0,te.useRef)(),ue=[{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 "}]}]}],pe=[{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}`}]}]}],he=xe=>{se.current.setValue(se.current.getValue()+" "+xe.value+" ")},ye=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:oe.createElement(Ot.Z,{className:E.Z.lists,gutter:[10,10]},ue.map((xe,ke)=>oe.createElement(y.Z,{flex:"110px",className:E.Z.item},oe.createElement("div",null,oe.createElement(z.Z,{value:`$$${xe.value}$$`}),xe.name),oe.createElement("div",{className:E.Z.children},xe.children.map((De,Be)=>oe.createElement("div",{key:Be},oe.createElement("h1",null,De.name),oe.createElement(Ot.Z,{gutter:[10,10]},De.data.map((Ae,Se)=>oe.createElement(y.Z,{key:Se,onClick:()=>he(Ae),className:E.Z.diamond},oe.createElement(z.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:oe.createElement(Ot.Z,{className:E.Z.lists,gutter:[10,10]},pe.map((xe,ke)=>oe.createElement(y.Z,{flex:"110px",className:E.Z.item},oe.createElement("div",null,oe.createElement(z.Z,{value:"`$$"+xe.value+"$$`"}),xe.name),oe.createElement("div",{className:E.Z.children},xe.children.map((De,Be)=>oe.createElement("div",{key:Be},De.name&&oe.createElement("h1",null,De.name),oe.createElement(Ot.Z,{gutter:[10,10]},De.data.map((Ae,Se)=>oe.createElement(y.Z,{key:Se,onClick:()=>he(Ae),className:E.Z.diamond},oe.createElement(z.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))}],ge=()=>{var xe=document.createElement("div");xe.innerHTML=se.current.getValue();var ke=xe.innerText;return ce&&ce(ke),ke};return(0,te.useImperativeHandle)(re,()=>({getData:ge})),oe.createElement("div",{className:E.Z.mathWrap},oe.createElement(je.default,{defaultActiveKey:"1",items:ye}),oe.createElement("math-field",{locale:"zh_cn",className:E.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:se,style:{width:800,marginTop:30,fontSize:18}},ae||""),x&&oe.createElement("div",{className:E.Z.button},oe.createElement(be.ZP,{size:"large",onClick:ge,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Yt.Z=ee},71347:function(In,Yt,Te){"use strict";var te=Te(59301),Ot=Te(93314),y=Te(7939),je=Object.defineProperty,be=Object.defineProperties,z=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ee=(re,se,ue)=>se in re?je(re,se,{enumerable:!0,configurable:!0,writable:!0,value:ue}):re[se]=ue,ce=(re,se)=>{for(var ue in se||(se={}))ie.call(se,ue)&&ee(re,ue,se[ue]);if(E)for(var ue of E(se))oe.call(se,ue)&&ee(re,ue,se[ue]);return re},x=(re,se)=>be(re,z(se));const ae=({img:re,buttonProps:se={},styles:ue={},customText:pe,ButtonText:he,ButtonClick:ye,Buttonclass:ge,ButtonTwo:xe,imgStyles:ke,loading:De=!1,className:Be=""})=>te.createElement("section",{className:`tc animated fadeIn ${Be}`,style:ce({color:"#999",margin:"100px auto",visibility:De?"hidden":"visible"},ue)},te.createElement("img",{src:re||Ot,style:x(ce({},ke),{pointerEvents:"none",userSelect:"none"})}),te.createElement("p",{className:"mt20 font14"},pe||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),he&&te.createElement(y.ZP,ce({className:ge,onClick:ye},se),he),xe&&xe);Yt.Z=ae},98893:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ge}});var te=Te(59301),Ot={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},y=Te(7939),je=Te(70557),be=Te(94871),z=Te(25399),E=Te(68911),ie=Te(58870),oe=Te(71347),ee=Te(35783),ce=Te(25341),x=Te(59301),ae=Object.defineProperty,re=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,pe=(xe,ke,De)=>ke in xe?ae(xe,ke,{enumerable:!0,configurable:!0,writable:!0,value:De}):xe[ke]=De,he=(xe,ke)=>{for(var De in ke||(ke={}))se.call(ke,De)&&pe(xe,De,ke[De]);if(re)for(var De of re(ke))ue.call(ke,De)&&pe(xe,De,ke[De]);return xe},ye=(xe,ke,De)=>new Promise((Be,Ae)=>{var Se=Pe=>{try{Oe(De.next(Pe))}catch(Le){Ae(Le)}},Ee=Pe=>{try{Oe(De.throw(Pe))}catch(Le){Ae(Le)}},Oe=Pe=>Pe.done?Be(Pe.value):Promise.resolve(Pe.value).then(Se,Ee);Oe((De=De.apply(xe,ke)).next())}),ge=({editOffice:xe="view",data:ke,issaver:De,onSaver:Be,theme:Ae,type:Se,filename:Ee,monacoEditor:Oe,className:Pe,style:Le,close:Ne,onClose:me,hasMask:Ve,disabledDownload:Ze,onImgDimensions:We,showNodata:nt,recordInfo:_e})=>{const[Ue,tt]=(0,te.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[rt,et]=(0,te.useState)(""),[Ke,Ye]=(0,te.useState)(),Xe=window.ENV==="build"?"/react/build":"",ot=location.host.startsWith("localhost")?ee.Z.PROXY_SERVER:ee.Z.API_SERVER,ft=10*(1024*1024),at=(0,te.useRef)();ke!=null&&ke.startsWith("/api")&&Se!=="txt"&&(ke=ee.Z.API_SERVER+ke);const qe=ze=>ze.substring(ze.lastIndexOf("/")+1).split(".").pop();Ee&&Oe&&(Oe.filename=Ee),(0,te.useEffect)(()=>{var ze,we;const ve=(we=(ze=document.cookie)==null?void 0:ze.replace(/\s/g,""))==null?void 0:we.split(";");ve==null||ve.map(Ie=>{let $e=Ie.split("=");$e[0]==="_educoder_session"&&et($e[1])})},[]),(0,te.useEffect)(()=>{Se==="office"&&(ke.indexOf("bigfilescdn.")>-1||ke.indexOf("bigfiles1")>-1?Ye({url:ke,fileType:qe(ke),model:ke.indexOf("model=edit")?"edit":"view"}):ke.indexOf("coze")>-1?Ye({url:ke,fileType:"doc",model:"view"}):Re())},[Se,ke]);function Fe(ze){return ye(this,null,function*(){ze.data.type==="pdfdata"&&(Be(ze.data.data),window.removeEventListener("message",Fe,!1)),console.log("mess---:",ze.data)})}const Re=()=>ye(void 0,null,function*(){console.log("data:",ke);let ze=ke;ke.startsWith("http")||(ze=location.origin+ze);let we=new URL(ze).pathname.split("/").pop();const ve=yield(0,ie.gJ)({attachment_id:we});ve.url=ot+ve.url,Ye(ve)}),ne=()=>{if(ke.startsWith("http")||ke.startsWith("blob:")){fe();return}(0,E.Sv)(Ee||"educoder",ke,Ee)},fe=()=>{_e&&(0,ce.fc)({id:_e==null?void 0:_e.id,watch_type:1,course_id:_e==null?void 0:_e.course_id}),(0,E.Nd)(Ee||"educoder",decodeURIComponent(ke))};(0,te.useEffect)(()=>(window.addEventListener("message",Me),()=>{window.removeEventListener("message",Me)}),[]);const Me=ze=>{var we;((we=ze==null?void 0:ze.data)==null?void 0:we.type)==="closePop"&&me()};return x.createElement("div",{style:he({},Le||{}),className:`${Ve&&Ot.bgBlack} ${Se?Ot.wrp:"hide"}`},!!Se&&Ne&&x.createElement("div",{id:"closePop",className:Ot.close,ref:at},!!We&&x.createElement(z.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>at.current},x.createElement("span",{onClick:()=>{me(),We()}},x.createElement("i",{className:"icon-yulanpizhu"}))),!Ze&&window.parent===window&&x.createElement(z.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>at.current},x.createElement("span",{onClick:fe},x.createElement("i",{className:"icon-quxiaozhiding"}))),De&&x.createElement(z.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>at.current},x.createElement("span",{className:"",onClick:()=>{const ze=document.getElementById("pdfiframe");window.addEventListener("message",Fe,!1),setTimeout(()=>{ze.contentWindow.postMessage("getData","*")},300)}},x.createElement("i",{className:"icon-baocun"}))),x.createElement(z.Z,{title:"\u5173\u95ED",getPopupContainer:()=>at.current},x.createElement("span",{className:"",onClick:()=>{me()}},x.createElement("i",{className:"icon-guanbi1"})))),x.createElement("div",{className:`${Ot[Pe]} ${Pe} ${Ot.monaco} ${Se==="txt"?"show":"hide"}`},Se==="txt"&&x.createElement(x.Fragment,null,x.createElement(be.ZP,he({},Oe)))),Se==="audio"&&x.createElement("audio",{src:`${(ke==null?void 0:ke.indexOf("http://"))>-1||(ke==null?void 0:ke.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${ke}`,autoPlay:!0}),Se==="video"&&x.createElement(x.Fragment,null,(ke==null?void 0:ke.indexOf("http"))>-1?x.createElement("video",{controls:!0,src:`${ke}`,autoPlay:!0}):x.createElement("video",{controls:!0,src:`data:video/mp4;base64,${ke}`,autoPlay:!0})),Se==="office"&&Ke&&x.createElement("iframe",{src:`${Xe}/office.html?key=${Ke.key}&url=${btoa(Ke.url)}&callbackUrl=${ot+(Ke.callbackUrl||"")}&fileType=${Ke.fileType}&title=${Ke.title||""}&model=${xe}&officeServer=${ee.Z.ONLYOFFICE}&disabledDownload=${!!Ze}`}),Se==="html"&&x.createElement("iframe",{src:ke+"&disposition=inline"}),Se==="pdf"&&x.createElement("iframe",{id:"pdfiframe",src:`${Xe}/js/pdf/index.html?filename=${Ee||"educoder.pdf"}&url=${encodeURIComponent(ke)}&disabledDownload=${!!Ze}&model=${xe}`}),Se==="image"&&x.createElement("img",{src:`${(ke==null?void 0:ke.indexOf("http://"))>-1||(ke==null?void 0:ke.indexOf("https://"))>-1?"":"data:image/png;base64,"}${ke}`}),(Se==="other"||Se==="download")&&x.createElement(x.Fragment,null,nt?x.createElement(oe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:x.createElement(y.ZP,{icon:x.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ne,disabled:Ze},"\u4E0B\u8F7D")}):x.createElement(y.ZP,{type:"primary",size:"middle",onClick:ne,disabled:Ze},x.createElement(je.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Se==="flowChart"&&x.createElement("div",{className:"embed"},x.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${ke||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},56375:function(In,Yt,Te){"use strict";Te.d(Yt,{z:function(){return Oe},Z:function(){return Pe}});var te=Te(59301),Ot=Te(64310),y=Te(74410),je=Te(64018),be=Te(16471),z=Te(35783),E=Te(68911),ie=Te(15342),oe=Te(44104),ee=Te(7939),ce=Te(1012),x=Te(98893),ae=Te(59301),se=({html:Le})=>{const Ne=(0,te.useRef)(null),me=(0,te.useRef)(null),Ve=`.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,te.useEffect)(()=>{const Ze=Ne.current.attachShadow({mode:"open"});me.current=document.createElement("div"),me.current.className="markdown-body",me.current.innerHTML=Le,Ze.appendChild(me.current);const We=document.createElement("style");return We.textContent=Ve,Ze.appendChild(We),()=>{Ze.innerHTML=""}},[]),(0,te.useEffect)(()=>{me.current&&(me.current.innerHTML=Le)},[Le]),ae.createElement("div",{ref:Ne})};function ue(Le){const Ne=["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"],me=new RegExp(`\\b(${Ne.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Ve=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return Le.replace(me,"").replace(Ve,"").trim()}var pe={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},he=Object.defineProperty,ye=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,ke=(Le,Ne,me)=>Ne in Le?he(Le,Ne,{enumerable:!0,configurable:!0,writable:!0,value:me}):Le[Ne]=me,De=(Le,Ne)=>{for(var me in Ne||(Ne={}))ge.call(Ne,me)&&ke(Le,me,Ne[me]);if(ye)for(var me of ye(Ne))xe.call(Ne,me)&&ke(Le,me,Ne[me]);return Le};const Be="@\u2581\u2581@",Ae="@\u2581@",Se=/<pre[^>]*>/g;function Ee(Le){let Ne=document.createElement("div");return Ne.innerHTML=Le,Ne.childNodes.length===0?"":Ne.childNodes[0].nodeValue}const Oe=(Le,Ne)=>{Le=Le||"";const me=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ve=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ze=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,We=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ne?Le.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(me,(nt,_e,Ue,tt,rt,et,Ke)=>{const Ye=_e||tt||et,Xe=Ue||rt||Ke||"?";return z.Z.API_SERVER+"/api/attachments/"+Ye+Xe+"&t="+(0,E.Jn)(Ye,Date.now())+(nt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Le=Le.replace(We,(nt,_e,Ue,tt,rt,et,Ke)=>{const Ye=_e||tt||et,Xe=Ue||rt||Ke||"?";return z.Z.API_SERVER+"/attachments/download/"+Ye+Xe+"&t="+(0,E.Jn)(Ye,Date.now())+(nt.indexOf(")")>-1?")":"&")}).replace(me,(nt,_e,Ue,tt,rt,et,Ke)=>{const Ye=_e||tt||et,Xe=Ue||rt||Ke||"?";return z.Z.API_SERVER+"/api/attachments/"+Ye+Xe+"&t="+(0,E.Jn)(Ye,Date.now())+(nt.indexOf(")")>-1?")":"&")}).replace(Ve,(nt,_e,Ue,tt,rt)=>{const et=_e||tt,Ke=Ue||rt||"";return'"'+z.Z.API_SERVER+"/api/attachments/"+et+Ke+et+Ke+"&t="+(0,E.Jn)(et,Date.now())}).replace(Ze,(nt,_e,Ue,tt,rt)=>{const et=_e||tt,Ke=Ue||rt||"";return"("+z.Z.API_SERVER+"/files/uploads/"+et+Ke+et+Ke+"&t="+(0,E.Jn)(et,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,`
`),Le)};var Pe=({value:Le="",edit:Ne=!1,className:me,showTextOnly:Ve,showLines:Ze,style:We={},stylesPrev:nt={},highlightKeywords:_e,showProgramFill:Ue,isProgramFill:tt,disabledFill:rt=!1,programFillValue:et,openEditor:Ke=()=>{},onFillChange:Ye=Qe=>{},onFillBlur:Xe=()=>{},onFillFocus:ot=()=>{}})=>{let Qe=ue(String(Le||""));const ft=(0,te.useRef)(),at=(0,te.useRef)(),[qe,Fe]=(0,te.useState)(""),[Re,ne]=(0,te.useState)("office"),[fe,Me]=(0,te.useState)([]),ze=(0,te.useRef)("a"+(0,ce.Z)()),we={},ve=Et=>/<style[\s\S]*?>/i.test(Et||""),Ie=(Et,kt,Nt)=>{const yt=document.createElement(Et===Ae?"input":"textarea");yt.style.width="100%",yt.style.height=Et===Ae?"40px":"151px",yt.rows=5,yt.spellcheck=!1,yt.name="edu-program-fill",yt.placeholder="\u8BF7\u8F93\u5165",yt.dataset.id=kt;const Pt=Object.keys(we).length;return we[Pt]=yt,`<span class="edu-program-fill-wrap ${Et===Ae?"":"show"}" style="width:${Et===Ae?"600px":"100%"}" title=${Nt||""}><span>${yt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function $e(Et){return Et=Et.replace(/!\[.*?\]\(.*?\)/g,""),Et=Et.replace(/\[.*?\]\(.*?\)/g,""),Et=Et.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Et=Et.replace(/<embed.*?>/g,""),Et=Et.replace(/<img.*?>/g,""),Et=Et.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Et=Et.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Et=Et.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Et=Et.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Et}const Ge=Et=>!Ve&&ve(Qe)?Et:Et.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(kt,Nt){let yt=Nt.replace(/(\n|\r)/g,"").split("}"),Pt=[];return yt.map(Kt=>{Kt!=""&&Pt.push(`.${ze.current} ${Kt}`)}),`<style>${Pt.join("}")}</style>`}),Je=(0,te.useMemo)(()=>{(0,y.Iy)();try{const yt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Pt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Kt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,nn=/\(\/attachments\/download\//g;Qe=Qe.replace(nn,"("+z.Z.API_SERVER+"/attachments/download/").replace(yt,"("+z.Z.API_SERVER+"/api/attachments/").replace(Pt,'"'+z.Z.API_SERVER+"/api/attachments/").replace(Kt,'"'+z.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,`
`),ft.current.style.display="none"}catch(yt){}if(Ue){let yt=-1;return Qe=Qe.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Pt,Kt,nn){var xt;return++yt,Ie(Pt,yt,(xt=et==null?void 0:et[yt])==null?void 0:xt.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Ge(Qe||"")}</pre>`}let Et=Ge(Qe);Et=(0,y.ZP)(Et);const kt=(0,y.ez)();Qe.match(/\[TOC\]/)&&(Et=Et.replace("<p>[TOC]</p>",(0,y.Qv)()),(0,y.Iy)()),Et=Et.replace(/(__special_katext_id_\d+__)/g,(yt,Pt)=>{const{type:Kt,expression:nn}=kt[Pt];return(0,ie.renderToString)(Ee(nn)||"",{displayMode:Kt==="block",throwOnError:!1,output:"html"})}),Et=Et.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,y.AL)();const Nt=document.createElement("div");if(Nt.innerHTML=Et,Ve)return Nt.innerText;if(_e){const yt=_e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return ct(Nt,yt),Nt.innerHTML}return setTimeout(()=>mt(),500),Nt.innerHTML},[Qe,_e]);(0,te.useEffect)(()=>{st.current&&st.current.querySelectorAll(["input","textarea"]).forEach(kt=>{kt.oninput=ut,kt.onblur=lt,kt.onfocus=vt})},[fe]),(0,te.useEffect)(()=>{var Et,kt,Nt,yt,Pt;if(et!=null&&et.length)try{const Kt=st.current.querySelectorAll(".edu-program-fill-score"),nn=st.current.querySelectorAll('[name="edu-program-fill"]');for(const[xt,Ct]of nn.entries())Ct.value=((Et=et==null?void 0:et[xt])==null?void 0:Et.value)||"",((kt=et==null?void 0:et[xt])==null?void 0:kt.type)==="warning"?Ct.className="program-fill-warning":((Nt=et==null?void 0:et[xt])==null?void 0:Nt.type)==="success"?Ct.className="program-fill-success":Ct.className="";for(const[xt,Ct]of Kt.entries())Ct.innerHTML=(yt=et==null?void 0:et[xt])!=null&&yt.score?`${(Pt=et==null?void 0:et[xt])==null?void 0:Pt.score}\u5206`:"";Me(et)}catch(Kt){console.log(Kt,"error")}},[et]);const ut=Et=>{fe[Et.target.dataset.id]=fe[Et.target.dataset.id]||{},fe[Et.target.dataset.id].value=Et.target.value,Me([...fe]),Ye(fe,Et.target.dataset.id)},lt=Et=>{fe[Et.target.dataset.id]=fe[Et.target.dataset.id]||{},fe[Et.target.dataset.id].value=Et.target.value,Me([...fe]),Xe(fe,Et.target.dataset.id)},vt=Et=>{fe[Et.target.dataset.id]=fe[Et.target.dataset.id]||{},fe[Et.target.dataset.id].value=Et.target.value,Me([...fe]),ot(fe,Et.target.dataset.id)};function ct(Et,kt){return Et.childNodes.forEach(Nt=>{var yt;if(Nt.childNodes.length>0)ct(Nt,kt);else if(Nt.nodeName!=="IMG")if(Nt.innerHTML)Nt.innerHTML=(yt=Nt.innerHTML)==null?void 0:yt.replace(new RegExp(kt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Pt=document.createElement("span");Pt.innerHTML=Nt.textContent.replace(new RegExp(kt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Nt.replaceWith(Pt)}})}const st=(0,te.useRef)();y.jb.WebkitLineClamp=Ze,Ze&&(We=De(De({},We),y.jb));function At(Et){let kt=Et.target;if(kt.tagName.toUpperCase()==="A"){let Nt=kt.getAttribute("href");if(Nt.indexOf("office")>-1)Et.preventDefault(),Fe(Nt),ne("office");else if(Nt.indexOf("application/pdf")>-1)Et.preventDefault(),Fe(Nt),ne("pdf");else if(Nt.indexOf("text/html")>-1)Et.preventDefault(),Fe(Nt),ne("html");else if(Nt.startsWith("#")){Et.preventDefault();let yt=document.getElementById(Nt.replace("#",""));yt&&yt.scrollIntoView(!0)}}}const mt=()=>{var Et;const kt=(Et=st.current)==null?void 0:Et.querySelectorAll("video");kt==null||kt.forEach(Nt=>{if(Nt.oncontextmenu=()=>!1,Nt.src.indexOf(".m3u8")>-1&&!Nt.canPlayType("application/vnd.apple.mpegurl")){if(be.ZP.isSupported()){var yt=new be.ZP;yt.loadSource(Nt.src),yt.attachMedia(Nt)}}})};(0,te.useEffect)(()=>{if(st.current&&Je&&Je.match(Se)&&window.PR.prettyPrint(),st.current)return st.current.addEventListener("click",At),()=>{var Et;(Et=st.current)==null||Et.removeEventListener("click",At),(0,y.AL)(),(0,y.Iy)()}},[Je,st.current,At]);const Dt=Et=>{Et.target.nodeName==="IMG"&&Et.target.className.indexOf("draw-flowchart")>-1?(ft.current.style.zIndex=1,ft.current.style.display="flex",ft.current.style.width=Et.target.clientWidth+"px",ft.current.style.height=Et.target.clientHeight+"px",ft.current.style.top=Et.target.offsetTop+"px",ft.current.style.left=Et.target.offsetLeft+"px",Et.target.id&&(at.current=Et.target.id)):ft.current.style.display="none"},jt=()=>{ft.current.style.display="none"};return(0,te.useEffect)(()=>{var Et;const kt=Nt=>{Nt.preventDefault(),Nt.clipboardData.setData("text",window.getSelection().toString())};return(Et=st.current)==null||Et.addEventListener("copy",kt),()=>{var Nt;(Nt=st.current)==null||Nt.removeEventListener("copy",kt)}},[st.current]),te.createElement("div",{style:{position:"relative"},onMouseLeave:jt},Ve&&te.createElement("div",{ref:st,className:`${pe.mdBody} `},Je),!Ve&&!ve(Je)&&te.createElement("div",{ref:st,style:De({},We),onMouseOver:Dt,className:`${me||""} ${rt?"disabled-fill":""} markdown-body ${pe.mdBody} ${ze.current}`,dangerouslySetInnerHTML:{__html:Je}}),!Ve&&ve(Je)&&te.createElement(se,{html:Je}),te.createElement("div",{ref:ft,className:`${pe.button} ${Ne?"":pe.previewFlowChart}`},te.createElement(oe.Z,null,te.createElement(ee.ZP,{onClick:()=>{Ne?Ke(at.current):(Fe(at.current),ne("flowChart"))}},Ne?"\u7F16\u8F91":"\u9884\u89C8"))),te.createElement(x.Z,{close:!0,data:qe,type:qe!=null&&qe.length?Re:"",style:De({},nt),onClose:()=>Fe("")}))}},14820:function(In,Yt,Te){"use strict";Te.d(Yt,{cT:function(){return Se},pe:function(){return De}});var te=Te(59301),Ot=Te(94968),y=Te(6767),je=Te(22972),be=Te(28209),z=Te.n(be),E=Te(1012),ie=Te(63823),oe=Te(47257),ee=Te.n(oe),ce=Object.defineProperty,x=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,pe=(Oe,Pe,Le)=>Pe in Oe?ce(Oe,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Oe[Pe]=Le,he=(Oe,Pe)=>{for(var Le in Pe||(Pe={}))se.call(Pe,Le)&&pe(Oe,Le,Pe[Le]);if(re)for(var Le of re(Pe))ue.call(Pe,Le)&&pe(Oe,Le,Pe[Le]);return Oe},ye=(Oe,Pe)=>x(Oe,ae(Pe)),ge=(Oe,Pe)=>{var Le={};for(var Ne in Oe)se.call(Oe,Ne)&&Pe.indexOf(Ne)<0&&(Le[Ne]=Oe[Ne]);if(Oe!=null&&re)for(var Ne of re(Oe))Pe.indexOf(Ne)<0&&ue.call(Oe,Ne)&&(Le[Ne]=Oe[Ne]);return Le},xe=(Oe,Pe,Le)=>new Promise((Ne,me)=>{var Ve=nt=>{try{We(Le.next(nt))}catch(_e){me(_e)}},Ze=nt=>{try{We(Le.throw(nt))}catch(_e){me(_e)}},We=nt=>nt.done?Ne(nt.value):Promise.resolve(nt.value).then(Ve,Ze);We((Le=Le.apply(Oe,Pe)).next())});const{Dragger:ke}=Ot.default,De=Oe=>{const Pe="bf3c199c2470cb477d907b1e0917c17b",Le="5183666c72eec9e4";var Ne=z().enc.Utf8.parse(Pe);let me=z().enc.Utf8.parse(Le);var Ve=z().AES.decrypt(Oe,Ne,{iv:me,mode:z().mode.CBC});return Ve.toString(z().enc.Utf8)};let Be;const Ae=Oe=>xe(void 0,[Oe],function*({identifier:Pe,oldFilename:Le,newFilename:Ne}){var me,Ve,Ze,We,nt,_e;const Ue=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});Ue.data=JSON.parse(De(Ue.data));const tt=new OSS({endpoint:(me=Ue==null?void 0:Ue.data)==null?void 0:me.end_point,region:(Ve=Ue==null?void 0:Ue.data)==null?void 0:Ve.region,accessKeyId:(Ze=Ue==null?void 0:Ue.data)==null?void 0:Ze.access_key_id,accessKeySecret:(We=Ue==null?void 0:Ue.data)==null?void 0:We.access_key_secret,bucket:(nt=Ue==null?void 0:Ue.data)==null?void 0:nt.bucket,stsToken:(_e=Ue==null?void 0:Ue.data)==null?void 0:_e.security_token});return new Promise((rt,et)=>{console.log(11111,`${Pe}/${Le}`,`${Pe}/${Ne}`,Ue.data),tt.copy(`/${Pe}/${Le}`,`/${Pe}/${Ne}`).then(Ke=>{console.log("\u62F7\u8D1D\u6210\u529F",Ke)}).catch(Ke=>{console.log(Ke)})})}),Se=(Oe,Pe,Le)=>xe(void 0,null,function*(){var Ne,me,Ve,Ze,We,nt;Pe.file_name=Oe.name;const _e=yield(0,je.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",De(_e.data)),_e.data=JSON.parse(De(_e.data));const Ue=Oe.name.split(".");Ue.pop();const tt=Pe.realFileName?Ue.join(""):(0,E.Z)(),rt=new(ee())({endpoint:(Ne=_e==null?void 0:_e.data)==null?void 0:Ne.end_point,region:(me=_e==null?void 0:_e.data)==null?void 0:me.region,accessKeyId:(Ve=_e==null?void 0:_e.data)==null?void 0:Ve.access_key_id,accessKeySecret:(Ze=_e==null?void 0:_e.data)==null?void 0:Ze.access_key_secret,bucket:(We=_e==null?void 0:_e.data)==null?void 0:We.bucket,stsToken:(nt=_e==null?void 0:_e.data)==null?void 0:nt.security_token});return new Promise((et,Ke)=>{var Ye;rt.multipartUpload(`${tt}`,new Blob([Oe],{type:Oe.type}),ye(he({timeout:200*1e3,partSize:102400},Le),{callback:{url:(Ye=_e==null?void 0:_e.data)==null?void 0:Ye.callback_url,host:_e==null?void 0:_e.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,je.rz)(Pe)}})).then(function(Xe){var ot;Oe.response=(ot=Xe.data)==null?void 0:ot.data,et(Xe==null?void 0:Xe.data)}).catch(function(Xe){Ke(Xe),console.log("err:",Xe)})})}),Ee=Oe=>{var Pe=Oe,{user:Le,cancelUpload:Ne}=Pe,me=ge(Pe,["user","cancelUpload"]);const[Ve,Ze]=(0,te.useState)([]);let[We,nt]=(0,te.useState)();const _e={onRemove:tt=>{Ze([...Ve.filter(rt=>rt.name!==tt.name)]),me.onChange(Ve.filter(rt=>rt.name!==tt.name))},disabled:me.disabled,multiple:!0,fileList:Ve==null?void 0:Ve.map(tt=>tt.file),customRequest:()=>{},beforeUpload:tt=>xe(void 0,null,function*(){let rt=me.maxSize||1073741824;if(Ve.filter(et=>et.name===tt.name).length){y.ZP.info(`${tt.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(tt==null?void 0:tt.size)>rt?(y.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${rt/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(Ve.push({name:tt.name,file:tt}),Ze([...Ve]),me.onChange(Ve),!1)})},Ue=(tt,rt)=>xe(void 0,null,function*(){var et,Ke,Ye,Xe,ot,Qe;rt.file_name=tt.name;const ft=tt.name,at=yield(0,je.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(at.data=JSON.parse(De(at.data)),(at==null?void 0:at.status)!==0){Ve[Ve.findIndex(Re=>Re.name===ft)].status="error",Ve[Ve.findIndex(Re=>Re.name===ft)].file.status="error",me.onChange(Ve),y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}We=new(ee())({endpoint:(et=at==null?void 0:at.data)==null?void 0:et.end_point,region:(Ke=at==null?void 0:at.data)==null?void 0:Ke.region,accessKeyId:(Ye=at==null?void 0:at.data)==null?void 0:Ye.access_key_id,accessKeySecret:(Xe=at==null?void 0:at.data)==null?void 0:Xe.access_key_secret,bucket:(ot=at==null?void 0:at.data)==null?void 0:ot.bucket,stsToken:(Qe=at==null?void 0:at.data)==null?void 0:Qe.security_token}),console.log(tt,"file"),nt(We);const qe=tt.name.split(".");qe.pop();const Fe=ft.indexOf(".")>-1?rt.realFileName?qe.join("."):(0,E.Z)():ft;return new Promise((Re,ne)=>{var fe;try{We.multipartUpload(`${me.identifier}/${Fe}${ft.indexOf(".")>-1?"."+ft.split(".").pop():""}`,new Blob([tt.file],{type:tt.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Me,ze,we)=>{try{console.log("\u8FDB\u5EA6",Me,ze,we);const ve=Ve.findIndex(Ie=>Ie.name===ft);Ve[ve].file.percent=Me*100,Ve[ve].tempCheckpoint=ze,Ze([...Ve])}catch(ve){}},checkpoint:Ve[Ve.findIndex(Me=>Me.name===ft)].tempCheckpoint,callback:{customValue:{id:ft+""},url:(fe=at==null?void 0:at.data)==null?void 0:fe.callback_url,host:at==null?void 0:at.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,je.rz)(rt)}}).then(function(Me){var ze,we,ve;const Ie=Ve.findIndex(Ge=>Ge.name===ft);let $e="done";if(((ze=Me.data)==null?void 0:ze.status)===0){tt.response=(we=Me.data)==null?void 0:we.data;const Ge=Ve.findIndex(Je=>Je.name===ft);Ve[Ge].status="done",Ve[Ge].file.status="done"}else y.ZP.warning((ve=Me.data)==null?void 0:ve.message),$e="error";Ve[Ie].status=$e,Ve[Ie].file.status=$e,me.onChange(Ve),Re(Me==null?void 0:Me.data)}).catch(function(Me){Ve[Ve.findIndex(ze=>ze.name===ft)].status="error",Ve[Ve.findIndex(ze=>ze.name===ft)].file.status="error",y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Ze([...Ve]),me.onChange(Ve),ne(Me),console.log("err:",Me)})}catch(Me){}})});return(0,te.useEffect)(()=>{Ve.every(tt=>tt==="done"||tt==="error")&&me.onComplete(Ve)},[Ve]),(0,te.useEffect)(()=>{Ne&&(We==null||We.cancel())},[Ne]),(0,te.useEffect)(()=>{me.uploading&&Ve.map(tt=>xe(void 0,null,function*(){var rt;if((!tt.status||tt.status==="error")&&!Ne){tt.status="uploading",tt.file.status="uploading";const et=yield Ue(tt,{login:(rt=Le==null?void 0:Le.userInfo)==null?void 0:rt.login,container_type:me.container_type,container_id:me.container_id,description:me.description,realFileName:me.realFileName})}}))},[me.uploading]),te.createElement(ke,ye(he({},_e),{height:me.height,className:me.className}),te.createElement("p",{className:"ant-upload-hint"},me.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Yt.ZP=(0,ie.connect)(({loading:Oe,globalSetting:Pe,user:Le})=>({globalSetting:Pe,loading:Oe.models.competitions,user:Le}))(Ee)},56383:function(In,Yt,Te){"use strict";Te.d(Yt,{h:function(){return xe}});var te=Te(59301),Ot=Te(82326),y=Te(28284),je=Te(7939),be=Te(89780),z=Te.n(be),E=Te(3706),ie=Te(96772),oe=Object.defineProperty,ee=Object.defineProperties,ce=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,se=(ke,De,Be)=>De in ke?oe(ke,De,{enumerable:!0,configurable:!0,writable:!0,value:Be}):ke[De]=Be,ue=(ke,De)=>{for(var Be in De||(De={}))ae.call(De,Be)&&se(ke,Be,De[Be]);if(x)for(var Be of x(De))re.call(De,Be)&&se(ke,Be,De[Be]);return ke},pe=(ke,De)=>ee(ke,ce(De));const he=Ot.default.Option,ye={labelCol:{span:4},wrapperCol:{span:20}},ge={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"]};Yt.Z=({callback:ke,onCancel:De})=>{const[Be,Ae]=(0,te.useState)("python");function Se(Oe){Ae(ge[Oe][1])}function Ee(Oe){ke(Oe)}return te.createElement(y.default,pe(ue({},ye),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ee,style:{width:500}}),te.createElement(y.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(Ot.default,{getPopupContainer:Oe=>Oe.parentNode,onChange:Se},Object.keys(ge).map(Oe=>te.createElement(he,{key:Oe,value:Oe},ge[Oe][0])))),te.createElement(y.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(xe,{mode:Be})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(je.ZP,{type:"ghost",onClick:De},"\u53D6\u6D88")))};function xe({value:ke,onChange:De,mode:Be,options:Ae={}}){const Se=(0,te.useRef)(),[Ee,Oe]=(0,te.useState)();return(0,te.useEffect)(()=>{if(Ee){let Pe=function(Le){const Ne=Le.getValue();De&&De(Ne)};return Ee.on("change",Pe),()=>{Ee.off("change",Pe)}}},[Ee,De]),(0,te.useEffect)(()=>{Ee&&Ee.setOption("mode",Be)},[Ee,Be]),(0,te.useEffect)(()=>{Ee&&(ke!==Ee.getValue()||ke==="")&&setTimeout(()=>{Ee.setValue(ke||"")},300)},[Ee,ke]),(0,te.useEffect)(()=>{if(Se.current&&!Ee){const Pe=z().fromTextArea(Se.current,ue({mode:Be,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ae));Oe(Pe)}},[Se.current,Ee]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:Se}))}},32862:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Wt}});var te=Te(59301),Ot=Te(63823),y=Te(89780),je=Te.n(y),be=Te(76374),z=Te(3706),E=Te(6313),ie=Te(25717),oe=Te(99498),ee=Te(25419),ce=Te(67549),x=Te(56375),ae=({value:Ht="",className:hn,showTextOnly:cn,showLines:mn,style:Bn={}})=>{const Pn=(0,te.useMemo)(()=>"",[Ht]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:Pn}}))},re=Object.defineProperty,se=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,ge=(Ht,hn,cn)=>hn in Ht?re(Ht,hn,{enumerable:!0,configurable:!0,writable:!0,value:cn}):Ht[hn]=cn,xe=(Ht,hn)=>{for(var cn in hn||(hn={}))he.call(hn,cn)&&ge(Ht,cn,hn[cn]);if(pe)for(var cn of pe(hn))ye.call(hn,cn)&&ge(Ht,cn,hn[cn]);return Ht},ke=(Ht,hn)=>se(Ht,ue(hn));let De=[{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 Be({onActionCallback:Ht,title:hn,icon:cn,actionName:mn,className:Bn="",children:Pn}){function gn(){Ht(mn)}return te.createElement("a",{title:hn,className:Bn,onClick:gn},te.createElement("i",{className:`${cn}`}),Pn)}var Ae=({watch:Ht,showNullButton:hn,showNullProgramButton:cn,onActionCallback:mn,fullScreen:Bn,insertTemp:Pn,hidetoolBar:gn,extraUse:Ln})=>{const Kn=[...De,{title:`${Ht?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ht?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return te.createElement("ul",{className:"markdown-toolbar-container"},!gn&&Kn.map((sr,nr)=>te.createElement("li",{key:nr},sr.actionName?te.createElement(Be,ke(xe({},sr),{onActionCallback:mn})):te.createElement("span",{className:"v-line"}))),hn?te.createElement("li",null,te.createElement(Be,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:mn},te.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,cn?te.createElement(te.Fragment,null,te.createElement("li",null,te.createElement(Be,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:mn},te.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),te.createElement("li",null,te.createElement(Be,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:mn},te.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Pn&&te.createElement("li",null,te.createElement(Be,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Pn}`,onActionCallback:mn},te.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ln&&te.createElement("li",null,Ln),te.createElement("li",{className:"btn-full-screen"},te.createElement(Be,{icon:`${Bn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Bn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:mn})))},Se=Te(88969),Ee=Te(28284),Oe=Te(37568),Pe=Te(7939),Le=Object.defineProperty,Ne=Object.defineProperties,me=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,nt=(Ht,hn,cn)=>hn in Ht?Le(Ht,hn,{enumerable:!0,configurable:!0,writable:!0,value:cn}):Ht[hn]=cn,_e=(Ht,hn)=>{for(var cn in hn||(hn={}))Ze.call(hn,cn)&&nt(Ht,cn,hn[cn]);if(Ve)for(var cn of Ve(hn))We.call(hn,cn)&&nt(Ht,cn,hn[cn]);return Ht},Ue=(Ht,hn)=>Ne(Ht,me(hn));const tt={labelCol:{span:4},wrapperCol:{span:20}};var rt=({callback:Ht,onCancel:hn})=>{function cn(mn){Ht(mn)}return te.createElement(Ee.default,Ue(_e({},tt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:cn,style:{width:500}}),te.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(Oe.default,null)),te.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(Oe.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Pe.ZP,{type:"ghost",onClick:hn},"\u53D6\u6D88")))},et=Te(56383),Ke=Te(79203),Ye=Te(62957),Xe=Te(77019),ot=Te(78265),Qe=Te(59301),ft=({callback:Ht,onCancel:hn})=>{const cn=document.createElement("canvas"),mn=cn.getContext("2d");cn.width=1e3,cn.height=800,mn.fillStyle="#ffffff",mn.fillRect(0,0,cn.width,cn.height);const Bn=cn.toDataURL("image/png");return Qe.createElement(Ye.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Qe.createElement(Xe.Z,{style:{height:"100vh"}},Qe.createElement(ot.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Bn,visible:!0,title:String(Date.now())},onOk:Pn=>{Ht({src:Pn.url})},onClose:hn})))},at=Te(36207),qe=Te(5269),Fe=Te(6767),Re={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ne=Te(59301),Me=(0,te.forwardRef)(({onCancel:Ht,editImgId:hn,callback:cn},mn)=>{let Bn=(0,te.useRef)(),Pn=(0,te.useRef)(),gn=(0,te.useRef)(),Ln=(0,te.useRef)(!1);const Kn=(0,te.useRef)(!1);console.log("ref:",mn);const[sr,nr]=(0,te.useState)(0),[ln,rn]=(0,te.useState)("100vh");return(0,te.useEffect)(()=>{nr(1)},[]),(0,te.useImperativeHandle)(mn,()=>({setHeight:rn})),ne.createElement("div",{ref:Kn,className:"body-overflow-initial"},ne.createElement(at.Z,{width:"100vw",height:ln,footer:null,closable:!0,placement:"bottom",open:!!sr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Re.drawerWrap}`,onClose:()=>{window.saveDrawData(Wn=>{cn({src:`/api/attachments/${Wn}`,id:Wn})})},title:ne.createElement(Xe.Z,{align:"middle"},ne.createElement(qe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ne.createElement(qe.Z,{onClick:()=>{rn(ln==="60px"?"100vh":"60px")}},ne.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ne.createElement(qe.Z,{onClick:()=>{window.saveDrawData(Wn=>{if(Wn===null){Fe.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Fe.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),cn({src:`/api/attachments/${Wn}`,id:Wn,disabledClose:!0})})}},ne.createElement(Pe.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ne.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${hn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Pn})))}),ze=Te(35783),we=Te(47889),ve=Te(4875);const Ie=we.ZP.Group,$e={margin:"0 8px"};var Ge=({callback:Ht,onCancel:hn})=>{function cn(mn){Ht(mn)}return te.createElement(Ee.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:cn},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:$e},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:$e},"\u884C\u6570"),te.createElement(Ee.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(ve.Z,null)),te.createElement("span",{style:$e},"\u5217\u6570"),te.createElement(Ee.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(ve.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:$e},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(Ee.default.Item,{name:"align"},te.createElement(Ie,null,te.createElement(we.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(we.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(we.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(we.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Pe.ZP,{type:"ghost",onClick:hn},"\u53D6\u6D88")))},Je=Te(58755),ut=Te(45936),lt=Te.n(ut),ct=(0,te.forwardRef)(({use3d:Ht,width:hn,height:cn,callback:mn,showSaveButton:Bn},Pn)=>{const gn=(0,te.useRef)(),Ln=(0,te.useRef)(),[Kn,sr]=(0,te.useState)(!1),nr=(0,te.useRef)({id:gn,appName:"graphing",width:hn||1e3,height:cn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{Ln.current=new(lt())(nr.current,!0),window.onload=function(){Ln.current.inject("applet_container")}},[]);const ln=()=>{var rn=window.ggbApplet.getPNGBase64(1,!0,72);return mn&&mn(rn),rn};return(0,te.useEffect)(()=>{nr.current.appName=Kn?"3D":"graphing",Ln.current.inject("applet_container")},[Kn]),(0,te.useEffect)(()=>{sr(Ht)},[Ht]),(0,te.useImperativeHandle)(Pn,()=>({getImgData:ln})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:gn}),te.createElement(Xe.Z,{align:"middle"},te.createElement(qe.Z,{flex:1},te.createElement(Je.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Kn,onChange:rn=>sr(rn)})),te.createElement(qe.Z,null,te.createElement(Pe.ZP,{size:"large",onClick:ln,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),st=Te(9043);const At="link",mt="upload-image",Dt="add-flowchart",jt="draw-image",Et="add-flowchart",kt="code-block",Nt="add-table",yt="------------",Pt={default:yt,left:`:${yt}`,center:`:${yt}:`,right:`${yt}:`};var Kt=Te(2408),nn=Te(68911);function xt(){}let Ct=0;const zt=1e4,en="\u2581",un="@\u2581\u2581@",Cn="@\u2581@",Nn=`
**\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`,_n=["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 yn(Ht){return/^\d+$/.test(Ht)?`${Ht}px`:Ht}const pn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",on={[pn+"-B"]:"bold",[pn+"-I"]:"italic"},Vt={[At]:"\u6DFB\u52A0\u94FE\u63A5",[kt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[mt]:"\u6DFB\u52A0\u56FE\u7247",[jt]:"\u6DFB\u52A0\u753B\u56FE",[Dt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Nt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Wt=({defaultValue:Ht="",onChange:hn,width:cn="100%",height:mn=400,miniToolbar:Bn=!1,isFocus:Pn=!1,watch:gn,insertTemp:Ln,mode:Kn="markdown",id:sr="markdown-editor-id",showResizeBar:nr=!1,noStorage:ln=!1,showNullButton:rn=!1,showNullProgramButton:Wn=!1,hidetoolBar:Zn=!1,fullScreen:Mt=!1,onBlur:Gt,onCMBeforeChange:St,onFullScreen:Rt,className:Tt="",disablePaste:_t=!1,disabled:bt=!1,disabledFill:Ut=!1,placeholder:Lt="",values:qt="",extraUse:Ft,onAddBlank:$t})=>{const[Zt,Xt]=(0,te.useState)(null),[Tn,On]=(0,te.useState)(Ht),[Mn,rr]=(0,te.useState)(gn),[lr,hr]=(0,te.useState)(Mt),[er,Qn]=(0,te.useState)(""),[Fn,pr]=(0,te.useState)(0),[wr,Sr]=(0,te.useState)(mn),[Cr,Jn]=(0,te.useState)(!1),[yr,An]=(0,te.useState)(0),[xn,tr]=(0,te.useState)(0),br=(0,te.useRef)(),Er=(0,te.useRef)(),Hr=(0,te.useRef)(),kr=(0,te.useRef)(),Ur=(0,te.useRef)(),Tr=(0,te.useRef)(),ei=(0,Ot.useDispatch)();(0,te.useEffect)(()=>{const Gn=window.scrollY||window.pageYOffset;On(qt),Zt==null||Zt.setValue(qt),window.scrollTo(0,Gn)},[qt]),(0,te.useEffect)(()=>{Rt==null||Rt(lr)},[lr]),(0,te.useEffect)(()=>{if(br.current){let Gn=function(qn,or){var ti;if(_t){or.preventDefault();return}const Ti=or.clipboardData;if(Ti){const mi=Ti.types.toString(),ki=Ti.items;if(mi==="Files"||Ti.types.indexOf("Files")>-1){if(or.preventDefault(),Kn=="stex")return;try{let Oi=ki[1];((ti=ki[0])==null?void 0:ti.kind)==="file"&&(Oi=ki[0]);const Ii=Oi.getAsFile(),_i=Ii.name.split(".").pop();(0,Ke.I)(Ii,Ni=>{var Ri,so,xo;Ni.id?((Ri=Ii==null?void 0:Ii.type)==null?void 0:Ri.indexOf("image"))>-1?zn.replaceSelection(`<img width="100%" src="/api/attachments/${Ni.id}?type=${Ni.content_type})" alt="" />`):((so=Ii==null?void 0:Ii.type)==null?void 0:so.indexOf("video"))>-1?zn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ni.id}"></video>`):((xo=Ii==null?void 0:Ii.type)==null?void 0:xo.indexOf("pdf"))>-1?zn.replaceSelection(`<a href="/api/attachments/${Ni.id}?type=${Ii.type}&disposition=inline" target="_blank">${Ii.name}</a>`):_n.includes(_i)?zn.replaceSelection(`<a href="/api/attachments/${Ni.id}?type=office&disposition=inline" target="_blank">${Ii.name}</a>`):zn.replaceSelection(`[${Ii.name}](/api/attachments/${Ni.id}?type=${Ni.content_type})`):(Ni==null?void 0:Ni.status)===401&&(document.location.href="/user/login")})}catch(Oi){Fe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const zn=je().fromTextArea(br.current,{mode:Kn,lineNumbers:!Bn,lineWrapping:!0,value:Ht,autoCloseTags:!0,autoCloseBrackets:!0});return zn.on("keyup",function(qn,or){or.keyCode===8&&(qn.getValue()==""?zn.setOption("placeholder",Lt):zn.setOption("placeholder",null))}),zn.on("keydown",function(qn,or){if(or.keyCode===8){var ti=wi(qn);ti&&or.preventDefault()}}),Pn&&zn.focus(),zn.on("paste",Gn),bt&&zn.on("beforeChange",function(qn,or){(or.origin==="paste"||or.origin==="+input")&&or.cancel()}),Xt(zn),()=>{zn.off("paste",Gn)}}},[]);const si=(0,te.useCallback)(()=>{if(Er.current)try{}catch(Gn){console.log(Gn,"---- to set md editor body height")}},[wr,Er,lr]);(0,te.useEffect)(()=>{function Gn(){let zn=new be.Z(qn=>{for(let or of qn)(or.target.offsetHeight>0||or.target.offsetWidth>0)&&(si(),Zt.setSize("100%","100%"),Zt.refresh())});return zn.observe(br.current.parentElement),zn}if(Zt){const zn=Gn();return()=>{var qn,or;(qn=br.current)!=null&&qn.parentElement&&zn.unobserve((or=br.current)==null?void 0:or.parentElement)}}},[Zt,si]),(0,te.useEffect)(()=>{if(Zt){let Gn=[];for(const[zn,qn]of Object.entries(on)){let or={[zn]:()=>{Kr(qn)}};Gn.push(or),Zt.addKeyMap(or)}return()=>{for(let zn of Gn)Zt.removeKeyMap(zn)}}},[Zt]),(0,te.useEffect)(()=>{Mt!==lr&&hr(Mt)},[Mt]),(0,Kt.Z)(()=>{if(!ln&&Fn>0){let Gn=new Date().getTime(),zn=window.sessionStorage.getItem(sr);Gn>=Fn+zt&&(!zn||zn!==Tn)&&(window.sessionStorage.setItem(sr,Tn),Jn(!0))}},zt),(0,te.useEffect)(()=>{rr(gn)},[Zt,gn]),(0,te.useEffect)(()=>{Zt&&Pn&&Zt.focus()},[Zt,Pn]),(0,te.useEffect)(()=>{if(Mn&&Zt){let Gn=function(qn){let or=qn.target;if(kr.current){let ti=or.scrollTop/or.scrollHeight;kr.current.scrollTop=kr.current.scrollHeight*ti}};const zn=Zt.getScrollerElement();return zn.addEventListener("scroll",Gn),()=>{zn.removeEventListener("scroll",Gn)}}},[Zt,Mn]),(0,te.useEffect)(()=>{if(Zt&&St){let Gn=function(zn,qn){St(zn,qn)};return Zt.on("beforeChange",Gn),()=>{Zt.off("beforeChange",Gn)}}},[Zt,St]),(0,te.useEffect)(()=>{if(Zt&&Gt){let Gn=function(){Gt(Zt.getValue())};return Zt.on("blur",Gn),()=>{Zt.off("blur",Gn)}}},[Zt,Gt]);function wi(Gn,zn){var qn=Gn.getDoc(),or=qn.getCursor(),ti=qn.getLine(or.line),Ti=ti.charAt(or.ch-1),mi=ti.lastIndexOf("@\u2581@",or.ch),ki=ti.lastIndexOf("@\u2581\u2581@",or.ch),Oi=mi>ki?mi:ki,Ii=mi>ki?3:4;if(un.indexOf(Ti)===-1)return null;if(console.log("change1:",zn,Gn,ti,or,Oi,mi,ki,Ti),Oi>=0&&or.ch-Oi<5){var _i=Oi+Ii;return qn.replaceRange("",{line:or.line,ch:Oi},{line:or.line,ch:_i}),{line:or.line,ch:_i}}return null}(0,te.useEffect)(()=>{if(Zt){let Gn=function(zn,qn){const or=zn.getValue();On(or),pr(new Date().getTime()),zn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),hn&&(Wn?hn(or,Un(or)):hn(or))};return Zt.on("change",Gn),()=>{Zt.off("change",Gn)}}},[Zt,hn]),(0,te.useEffect)(()=>{if(Zt)if(Ht==null)Zt.setValue(""),On("");else{const Gn=window.scrollY||window.pageYOffset;Ht!==Zt.getValue()&&(Zt.setValue(Ht),On(Ht),Zt.setCursor(bt?1:Zt.lineCount(),0),window.scrollTo(0,Gn))}},[Zt,Ht]);const Kr=(0,te.useCallback)(Gn=>{const zn=Zt.getCursor(),qn=Zt.getSelection();let or=qn.split(`
`);switch(Gn){case"bold":return Zt.replaceSelection("**"+qn+"**"),qn===""&&Zt.setCursor(zn.line,zn.ch+2),Zt.focus();case"italic":return Zt.replaceSelection("*"+qn+"*"),qn===""&&Zt.setCursor(zn.line,zn.ch+1),Zt.focus();case"code":return Zt.replaceSelection("`"+qn+"`"),qn===""&&Zt.setCursor(zn.line,zn.ch+1),Zt.focus();case"inline-latex":return(0,nn.Ye)(ei)?void 0:(Qn("inline-latex"),Zt.focus());case"latex":return Zt.replaceSelection("```latex\n"+qn+"\n```"),Zt.setCursor(zn.line+1,qn.length+1),Zt.focus();case"line-break":return Zt.replaceSelection(`<br/>
`),Zt.focus();case"list-ul":return qn===""?Zt.replaceSelection("- "+qn):Zt.replaceSelection(or.map(ti=>ti===""?"":`- ${ti}`).join(`
`)),Zt.focus();case"list-ol":return qn===""?Zt.replaceSelection("1. "+qn):Zt.replaceSelection(or.map((ti,Ti)=>ti===""?"":`${Ti+1}. ${ti}`).join(`
`)),Zt.focus();case"add-null-ch":$t==null||$t();return;case"add-signal":return qn===""&&Zt.setCursor(zn.line,zn.ch),Zt.replaceSelection(Cn),Zt.focus();case"add-multiple":return qn===""&&Zt.setCursor(zn.line,zn.ch),Zt.replaceSelection(un),Zt.focus();case"inster-template-1":return qn===""&&Zt.setCursor(zn.line,zn.ch),Zt.replaceSelection(Nn),Zt.focus();case"eraser":return Zt.setValue(""),Zt.focus();case"trigger-watch":return rr(!Mn),Zt.focus();case"trigger-full-screen":return hr(!lr),Zt.focus();case At:Qn(At);return;case kt:Qn(kt);return;case mt:Qn(mt);return;case jt:Qn(jt);return;case"maths-latex":if((0,nn.Ye)(ei))return;Qn("maths-latex");return;case Dt:Ur.current="",sessionStorage.removeItem("file_id"),Qn(Dt);return;case Nt:Qn(Nt);return;default:throw new Error}},[Zt,Mn,lr]),gi=(0,te.useCallback)((Gn,zn)=>{var qn,or,ti,Ti,mi,ki;Gn!=null&&Gn.disabledClose||Qn("");const{src:Oi,alt:Ii,id:_i}=Gn||{};switch(er){case At:const{title:Po,link:jo}=Gn;return Zt.replaceSelection(`[${Po}](${jo})`),Zt.focus();case kt:const{language:wo,content:ni}=Gn;return Zt.replaceSelection(["```"+wo,ni,"```"].join(`
`)),Zt.focus();case"maths-latex":for(var Ni=atob(Gn),Ri=new Uint8Array(Ni.length),so=0;so<Ni.length;so++)Ri[so]=Ni.charCodeAt(so);var xo=new Blob([Ri],{type:"image/png"});(0,Ke.I)(xo,yi=>{yi.id?Zt.replaceSelection(`![,](/api/attachments/${yi.id}?type=${yi.content_type})`):(yi==null?void 0:yi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,nn.Ye)(ei))return;Zt.replaceSelection("`$$"+Gn+"$$`");break;case Et:if(!_i)return;Zt.getValue().indexOf(Oi)===-1?Zt.replaceSelection(`<center><img id="${_i}" width="80%" src="${Oi}" class="draw-flowchart" alt="${Ii||""}" /></center>`):document.getElementById(_i).src=ze.Z.API_SERVER+Oi+"?t="+Date.now();break;case mt:case jt:const Vr=zn,Qi=(ti=(or=(qn=Vr==null?void 0:Vr.name)==null?void 0:qn.split("."))==null?void 0:or.pop)==null?void 0:ti.call(or);return((Ti=Vr==null?void 0:Vr.type)==null?void 0:Ti.indexOf("image"))>-1||!(Vr!=null&&Vr.type)?Vr!=null&&Vr.align||Vr!=null&&Vr.width?Zt.replaceSelection(`<p style="text-align:${Vr.align||"initial"}"><img width="${Vr.width?Vr.width+"%":"initial"}" src="${Oi}" alt="${Ii||""}" /></p>`):Zt.replaceSelection(`<img width="100%" src="${Oi}" alt="${Ii||""}" />`):((mi=Vr==null?void 0:Vr.type)==null?void 0:mi.indexOf("video"))>-1?Zt.replaceSelection(`<video width="100%" controls src="${Oi}"></video>`):((ki=Vr==null?void 0:Vr.type)==null?void 0:ki.indexOf("pdf"))>-1?Zt.replaceSelection(`<a href="${Oi}?type=${Vr.type}&disposition=inline" target="_blank">${Vr.name}</a>`):_n.includes(Qi)?Zt.replaceSelection(`<a href="${Oi}?type=office&disposition=inline" target="_blank">${Vr.name}</a>`):Zt.replaceSelection(`[${Vr.name}](${Oi})`),Zt.focus();case Nt:const{row:qi,col:li,align:Zi}=Gn;let Yi=`
`;for(let yi=0;yi<qi;yi++){let Fi=[],Ai=[];for(let Fo=0;Fo<li;Fo++)yi===1&&Ai.push(Pt[Zi]),Fi.push(" ");yi===1&&(Yi+=`| ${Ai.join(" | ")} |
`),Yi+=`| ${Fi.join(li===1?"":" | ")} |
`}return Zt.replaceSelection(Yi+`
`),Zt.focus();default:throw new Error}},[Zt,er]),di=(0,te.useMemo)(()=>{switch(er){case At:return te.createElement(rt,{callback:gi,onCancel:bi});case kt:return te.createElement(et.Z,{callback:gi,onCancel:bi});case mt:return te.createElement(Ke.Z,{callback:gi,onCancel:bi});case Dt:return te.createElement(Me,{editImgId:Ur.current,callback:gi,onCancel:bi});case Nt:return te.createElement(Ge,{callback:gi,onCancel:bi});case"maths-latex":return te.createElement(ct,{showSaveButton:!0,callback:gi});case"inline-latex":return te.createElement(st.Z,{showSaveButton:!0,callback:gi});default:return null}},[er]);function bi(){Qn("")}(0,te.useEffect)(()=>{if(Hr.current){let Gn=function(mi){ti=!0,Ti=mi.pageY},zn=function(){ti=!1},qn=function(mi){if(ti){let ki=mi.pageY-Ti;ki<0&&(ki=0),ki>300&&(ki=300);let Oi=mn+ki+"px";Sr(Oi)}},or=Hr.current,ti=!1,Ti=0;return or.addEventListener("mousedown",Gn),document.addEventListener("mousemove",qn),document.addEventListener("mouseup",zn),()=>{or.removeEventListener("mousedown",Gn),document.removeEventListener("mousemove",qn),document.removeEventListener("mouseup",zn)}}},[Zt,Hr]),(0,te.useEffect)(()=>{Sr(mn)},[mn]);const Or=yn(cn),Pr=yn(wr),ur={width:Or,height:Pr},Dn=(0,te.useMemo)(()=>{if(Fn){let Gn=new Date(Fn),zn=Gn.getHours(),qn=Gn.getMinutes(),or=Gn.getSeconds();return zn=zn<10?"0"+zn:zn,qn=qn<10?"0"+qn:qn,or=or<10?"0"+or:or,`${zn}:${qn}:${or}`}return 0},[Fn]),Un=Gn=>{const zn=[];if(Wn){let qn=-1;Gn=Gn.replace(/(@▁▁@|@▁@)/g,function(or,ti,Ti){zn.push({multiLine:or!==Cn})})}return zn};function Vn(){window.sessionStorage.removeItem(sr),Jn(!1),pr(0)}function $n(){Jn(!1),pr(0),Zt.setValue(window.sessionStorage.getItem(sr))}(0,te.useEffect)(()=>{Vt[er]&&er!==jt&&er!==Dt&&setTimeout(()=>{const Gn=document.getElementsByClassName("markdown-popup-form")[0],zn=window.innerWidth/2-Gn.offsetWidth/2,qn=window.innerHeight/2-Gn.offsetHeight/2;An(zn),tr(qn)},0)},[er]);const cr=Gn=>{Gn.preventDefault();const zn=Gn.clientX-yr,qn=Gn.clientY-xn;document.body.onmousemove=or=>{let ti=or.clientX-zn,Ti=or.clientY-qn;const mi=document.getElementsByClassName("markdown-popup-form")[0],ki=window.innerWidth-mi.offsetWidth,Oi=window.innerHeight-mi.offsetHeight;ti=Math.max(0,Math.min(ti,ki)),Ti=Math.max(0,Math.min(Ti,Oi)),jr(or.clientX,or.clientY,zn,qn)&&(An(ti),tr(Ti))},document.body.onmouseup=function(){document.body.onmousemove=null}},jr=(Gn,zn,qn,or)=>{const ti=document.body.clientHeight,Ti=document.body.clientWidth;return Gn<20&&qn>Gn||Gn>Ti-20&&qn<Gn||zn<20&&or>zn||zn>ti-20&&or<zn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:Er},te.createElement("div",{className:`markdown-editor-container ${Tt} ${Mn?"on-preview":""} ${Bn?"mini":""} ${lr?"full-screen":""}`,style:ur},te.createElement(Ae,{insertTemp:Ln,watch:Mn,fullScreen:lr,showNullButton:rn,showNullProgramButton:Wn,onActionCallback:Kr,hidetoolBar:Zn,extraUse:Ft}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:br,placeholder:Lt})),Mn?te.createElement("div",{ref:kr,className:"preview-container"},Kn==="stex"&&te.createElement(ae,{value:Tn}),Kn!=="stex"&&te.createElement(x.Z,{edit:!0,disabledFill:Ut,showProgramFill:Wn,value:Tn,openEditor:Gn=>{var zn;Ur.current=Gn,(zn=Tr.current)==null||zn.setHeight("100vh"),setTimeout(()=>{Qn("add-flowchart")},150)}})):null))),nr?te.createElement("a",{ref:Hr,className:"editor-resize"}):null,er===jt&&te.createElement(ft,{callback:gi,onCancel:bi}),er===Dt&&te.createElement(Me,{ref:Tr,editImgId:Ur.current,callback:gi,onCancel:bi}),te.createElement(Se.Z,null,Vt[er]&&er!==jt&&er!==Dt?te.createElement(Ye.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:yr,top:xn},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:cr},Vt[er]),open:!0,onCancel:bi,footer:null,destroyOnClose:!0,width:er===Dt?"1200px":null,height:er===Dt?"80vh":null,className:"markdown-popup-form"},di):null))}},79203:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return De},I:function(){return Ae}});var te=Te(28284),Ot=Te(6767),y=Te(37568),je=Te(44104),be=Te(4875),z=Te(47889),E=Te(7939),ie=Te(8240),oe=Te(59301),ee=Te(59301),ce=Object.defineProperty,x=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,pe=(Se,Ee,Oe)=>Ee in Se?ce(Se,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Se[Ee]=Oe,he=(Se,Ee)=>{for(var Oe in Ee||(Ee={}))se.call(Ee,Oe)&&pe(Se,Oe,Ee[Oe]);if(re)for(var Oe of re(Ee))ue.call(Ee,Oe)&&pe(Se,Oe,Ee[Oe]);return Se},ye=(Se,Ee)=>x(Se,ae(Ee));const{useForm:ge}=te.default,xe={width:280,marginRight:10},ke={labelCol:{span:5},wrapperCol:{span:19}};var De=({callback:Se,onCancel:Ee})=>{const[Oe]=ge();let Pe=(0,oe.useRef)();function Le(Ve){Pe.current.width=Oe.getFieldValue("width"),Pe.current.align=Oe.getFieldValue("align"),Se(Ve,Pe.current)}function Ne(Ve,Ze){if(Ve.status===-1){Ot.ZP.error(Ve.message);return}Oe.setFieldsValue({src:`/api/attachments/${Ve.id}`,type:Ze.type})}function me(Ve){let Ze=Ve.target.files[0];Pe.current=Ze,Ae(Ze,Ne)}return ee.createElement(te.default,ye(he({form:Oe},ke),{className:"upload-image-panel",onFinish:Le,style:{width:470,overflow:"hidden"}}),ee.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ee.createElement("div",{className:"flex-container"},ee.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ee.createElement(y.default,{style:xe})),ee.createElement(Be,{onFileChange:me}))),ee.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ee.createElement(y.default,{style:{width:264}})),ee.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ee.createElement(je.Z,null,ee.createElement(te.default.Item,{name:"width",style:{margin:0}},ee.createElement(be.Z,{style:{width:264}})),ee.createElement("span",{className:"ml8"},"%"))),ee.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ee.createElement(z.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"}]})),ee.createElement("aside",null,ee.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ee.createElement(E.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(E.ZP,{type:"default",onClick:Ee},"\u53D6\u6D88"))))};function Be({onFileChange:Se}){return ee.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ee.createElement("input",{type:"file",onChange:Se}))}function Ae(Se,Ee){if(!Se)throw new String("\u6CA1\u6709\u6587\u4EF6");let Oe=new FormData;Oe.append("editormd-image-file",Se),Oe.append("file_param_name","editormd-image-file"),Oe.append("byxhr","true");var Pe=new window.XMLHttpRequest;Pe.withCredentials=!0,Pe.addEventListener("load",function(Le){Ee(JSON.parse(Le.target.responseText),Se)},!1),Pe.addEventListener("error",function(Le){console.error(Le)},!1),Pe.open("POST",`${ie.KI}/api/attachments.json`),Pe.send(Oe)}},88969:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return y}});var te=Te(59301),Ot=Te(4676);class y extends te.Component{constructor(be){super(be);const z=window.document;this.node=z.createElement("div"),z.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,Ot.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},94871:function(In,Yt,Te){"use strict";Te.d(Yt,{SV:function(){return ft},ZP:function(){return Qe}});var te=Te(59301),Ot=Te(76374);const y={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},je={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},be={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(`
`)}]},z={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(`
`)}]},E={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 ie=Te(53184),oe=Te.n(ie),ee=(at,qe,Fe)=>new Promise((Re,ne)=>{var fe=we=>{try{ze(Fe.next(we))}catch(ve){ne(ve)}},Me=we=>{try{ze(Fe.throw(we))}catch(ve){ne(ve)}},ze=we=>we.done?Re(we.value):Promise.resolve(we.value).then(fe,Me);ze((Fe=Fe.apply(at,qe)).next())});const ce={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"]}},x=(at,qe,Fe,Re)=>{const ne=qe.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Fe.lineNumber,endColumn:Fe.column});return Array.from(new Set(ne.match(/\b\w{2,}\b/g)||[])).map(Me=>({label:Me,kind:at.languages.CompletionItemKind.Text,insertText:Me,range:Re}))},ae=(at,qe,Fe,Re)=>{at.languages.registerCompletionItemProvider(qe,{provideCompletionItems(ne,fe){const Me=ne.getWordUntilPosition(fe),ze={startLineNumber:fe.lineNumber,endLineNumber:fe.lineNumber,startColumn:Me.startColumn,endColumn:Me.endColumn},we=ne.getLineContent(fe.lineNumber).substring(Me.startColumn-2,Me.endColumn);return{suggestions:[...x(at,ne,fe,ze),...Fe.map(Ie=>({label:Ie,kind:at.languages.CompletionItemKind.Keyword,documentation:Ie,insertText:Ie,insertTextRules:at.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze})),...Re.map(Ie=>({label:Ie.label,kind:at.languages.CompletionItemKind.Snippet,documentation:Ie.content,insertText:we.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:at.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze}))]}}})};var re=at=>{ce.languages.forEach(qe=>{at.languages.registerDocumentFormattingEditProvider(qe,{provideDocumentFormattingEdits(Fe){return ee(this,null,function*(){const Re=oe()(Fe.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:Fe.getFullModelRange(),text:Re}]})}})}),ae(at,"java",je.keywords,je.quickKey),ae(at,"cpp",be.keywords,be.quickKey),ae(at,"c",y.keywords,[]),ae(at,"python",z.keywords,z.quickKey),ae(at,"scala",E.keywords,E.quickKey)};const se="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ue=Object.defineProperty,pe=(at,qe,Fe)=>qe in at?ue(at,qe,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):at[qe]=Fe,he=(at,qe,Fe)=>pe(at,typeof qe!="symbol"?qe+"":qe,Fe);const ye=class Hu{constructor(qe,Fe,Re){this.placeholder=qe,this.editor=Fe,this.monaco=Re,Fe.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)}};he(ye,"ID","editor.widget.placeholderHint");var xe=ye,ke=Te(96236),De=Te(6767),Be=Te(25399),Ae=Te(89392),Se=Te(99936),Ee=Te(56102),Oe=Object.defineProperty,Pe=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Ze=(at,qe,Fe)=>qe in at?Oe(at,qe,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):at[qe]=Fe,We=(at,qe)=>{for(var Fe in qe||(qe={}))me.call(qe,Fe)&&Ze(at,Fe,qe[Fe]);if(Ne)for(var Fe of Ne(qe))Ve.call(qe,Fe)&&Ze(at,Fe,qe[Fe]);return at},nt=(at,qe)=>Pe(at,Le(qe)),_e=(at,qe)=>{var Fe={};for(var Re in at)me.call(at,Re)&&qe.indexOf(Re)<0&&(Fe[Re]=at[Re]);if(at!=null&&Ne)for(var Re of Ne(at))qe.indexOf(Re)<0&&Ve.call(at,Re)&&(Fe[Re]=at[Re]);return Fe},Ue=(at,qe,Fe)=>new Promise((Re,ne)=>{var fe=we=>{try{ze(Fe.next(we))}catch(ve){ne(ve)}},Me=we=>{try{ze(Fe.throw(we))}catch(ve){ne(ve)}},ze=we=>we.done?Re(we.value):Promise.resolve(we.value).then(fe,Me);ze((Fe=Fe.apply(at,qe)).next())});function tt(at){return/^\d+$/.test(at)?`${at}px`:at}function rt(){}let et=!1;const Ke={"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 Ye(at=[]){let qe=at;if(Array.isArray(at)){for(let Fe=0;Fe<at.length;Fe++){let Re=Ke[at[Fe]];if(Re)return Re}return qe[0]}return Ke[qe]||qe}let Xe=null;const ot=()=>Ue(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(at){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",at)}});var Qe=at=>{var qe=at,{width:Fe="100%",height:Re="100%",value:ne,language:fe="javascript",style:Me={},options:ze={},overrideServices:we={},theme:ve="vs-dark",onEditBlur:Ie,isCopy:$e=!1,onSave:Ge,autoHeight:Je=!1,forbidCopy:ut=!1,forbidCopyTips:lt,onChange:vt=rt,editorDidMount:ct=rt,onFocus:st=rt,onBreakPoint:At=rt,breakPointValue:mt=[],filename:Dt="educoder.txt",errorLine:jt,errorContent:Et="",highlightLine:kt,openBreakPoint:Nt=!1,placeholder:yt="",showMiniMap:Pt=!0}=qe,Kt=_e(qe,["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 nn=(0,te.useRef)(),xt=(0,te.useRef)({}),Ct=(0,te.useRef)(),zt=(0,te.useRef)(),en=(0,te.useRef)([]),un=(0,te.useRef)(!1),Cn=(0,te.useRef)(),Nn=(0,te.useRef)(),_n=(0,te.useRef)(!1),[yn,Rn]=(0,te.useState)(!1);function pn(){let ln;return nn.current&&(ln=new Ot.Z(rn=>{for(let Wn of rn)(Wn.target.offsetHeight>0||Wn.target.offsetWidth>0)&&xt.current.instance.layout()}),ln.observe(nn.current)),ln}function on(){De.ZP.warning({content:decodeURIComponent(lt||se),key:"monaco-editor-tip"})}const Vt=()=>{let ln=xt.current.instance;if(ne!=null&&ln&&yn){const rn=ln.getModel();rn&&ne!==rn.getValue()&&(et=!0,rn.setValue(ne),ln.layout(),et=!1)}};(0,te.useEffect)(()=>{const ln=Se.Z.subscribe("formatDocument",rn=>{var Wn;let Zn=xt.current.instance;(Wn=Zn==null?void 0:Zn.getAction)==null||Wn.call(Zn,"editor.action.formatDocument").run()});return window.updateMonacoValue=rn=>{vt(rn)},ln},[]),(0,te.useEffect)(()=>{var ln;let rn=xt.current.instance;zt.current&&clearTimeout(zt.current),zt.current=setTimeout(()=>{Vt()},500),ne&&(ne!=null&&ne.length)&&((ln=rn==null?void 0:rn.updateOptions)==null||ln.call(rn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ne.split(/\r\n|\r|\n/g).length))+3,5)}))},[ne,yn,xt.current]),(0,te.useEffect)(()=>{if(jt&&xt.current&&xt.current.instance){let rn=xt.current.instance;rn.changeViewZones(function(Wn){var Zn=document.createElement("div");Zn.style.padding="10px 20px",Zn.style.width="calc(100% - 20px)",Zn.className="my-error-line-wrp",Zn.innerHTML=Et,Wn.addZone({afterLineNumber:jt||11,heightInLines:3,domNode:Zn})});var ln={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}};rn.addOverlayWidget(ln),rn.revealPositionInCenter({lineNumber:20,column:1})}},[jt,xt.current,yn]);const Wt=(ln="",rn)=>{if(!ln||ln.trim()==="")return!0;const Zn=xt.current.instance.getModel().getLineTokens(rn);let Mt=!1;for(let Gt=0;Gt<2;Gt++)Zn.getStandardTokenType(Gt)===1&&(Mt=!0);return Mt};(0,te.useEffect)(()=>{var ln;const rn=(ln=xt.current)==null?void 0:ln.instance;if(rn&&yn&&ut){const Wn=rn.onDidBlurEditorWidget(()=>{_n.current=!1}),Zn=rn.onDidFocusEditorText(()=>{_n.current=!0});return()=>{Wn.dispose(),Zn.dispose()}}},[xt.current,yn,ut]),(0,te.useEffect)(()=>{var ln;if((ln=xt.current)!=null&&ln.instance&&yn&&Nt){let rn=xt.current.instance,Wn=rn.getModel();if(!Wn)return;(()=>{var Ft;let $t=[],Zt=[];const Xt=Wn.getAllDecorations();for(let On of Xt)On.options.className==="highlighted-line"&&($t.push((Ft=On==null?void 0:On.range)==null?void 0:Ft.startLineNumber),Zt.push(On==null?void 0:On.id));if(kt===$t[0])return;Wn.deltaDecorations(Zt,[]);const Tn=Wn.getLineCount();kt&&kt<=Tn&&(rn.deltaDecorations([],[{range:new Xe.Range(kt,1,kt,Wn.getLineMaxColumn(kt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),rn.revealLineInCenter(kt))})();const Mt=(Ft=!1)=>{var $t;let Zt=[],Xt=[];const Tn=Wn.getAllDecorations();for(let On of Tn)On.options.linesDecorationsClassName==="breakpoints-select"&&(Zt.push(($t=On==null?void 0:On.range)==null?void 0:$t.startLineNumber),Xt.push(On==null?void 0:On.id));if(Ft)return{lines:Zt,ids:Xt};At(Zt)},Gt=Ft=>Ue(void 0,null,function*(){let $t={range:new Xe.Range(Ft,1,Ft,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Wn.deltaDecorations([],[$t]),Mt()}),St=Ft=>Ue(void 0,null,function*(){let $t=[];const Zt=rn.getLineDecorations(Ft);for(let Xt of Zt)Xt.options.linesDecorationsClassName==="breakpoints-select"&&$t.push(Xt.id);yield Wn.deltaDecorations($t,[]),Mt()}),Rt=Ft=>{let $t=rn.getLineDecorations(Ft);for(let Zt of $t)if(Zt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ae.isEqual)(mt,Mt(!0).lines)){Wn.deltaDecorations(Mt(!0).ids,[]);const Ft=mt.map($t=>({range:new Xe.Range($t,1,$t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Wn.deltaDecorations([],Ft)}const Tt=rn.onDidChangeModelContent(Ft=>{let $t=rn.getPosition();if($t){let Zt=$t.lineNumber;clearTimeout(Nn.current),Nn.current=setTimeout(()=>{Wt(Wn.getLineContent(Zt),Zt)?St(Zt):Rt(Zt)?(St(Zt),Gt(Zt)):Mt()},100)}}),_t=rn.onMouseDown(Ft=>{var $t,Zt,Xt;if(Ft.target.detail&&((Xt=(Zt=($t=Ft.target)==null?void 0:$t.element)==null?void 0:Zt.className)!=null&&Xt.includes("line-numbers"))){let Tn=Ft.target.position.lineNumber;if(Wt(Wn.getLineContent(Tn),Tn))return;Rt(Tn)?St(Tn):Gt(Tn)}}),bt=Ft=>{let $t={range:new Xe.Range(Ft,1,Ft,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};en.current=rn.deltaDecorations(en.current,[$t])},Ut=()=>{en.current=rn.deltaDecorations(en.current,[])},Lt=rn.onMouseMove(Ft=>{var $t,Zt,Xt;if(Ut(),Ft.target.detail&&((Xt=(Zt=($t=Ft.target)==null?void 0:$t.element)==null?void 0:Zt.className)!=null&&Xt.includes("line-numbers"))){let Tn=Ft.target.position.lineNumber;if(Wt(Wn.getLineContent(Tn),Tn))return;bt(Tn)}}),qt=rn.onMouseLeave(()=>{Ut()});return()=>{Tt.dispose(),_t.dispose(),Lt.dispose(),qt.dispose()}}},[xt.current,yn,mt,kt,Nt,fe]),(0,te.useEffect)(()=>{var ln;(ln=xt.current)!=null&&ln.instance&&Nt&&xt.current.instance.setPosition({lineNumber:0,column:0})},[kt]);function Ht(){let ln=xt.current.instance;if(ln){const rn=ln.getSelection(),Wn=xt.current.pastePos||{},Zn=new Xe.Range(Wn.startLineNumber||rn.endLineNumber,Wn.startColumn||rn.endColumn,Wn.endLineNumber||rn.endLineNumber,Wn.endColumn||rn.endColumn);setTimeout(()=>{ln.executeEdits("",[{range:Zn,text:""}])},300)}}function hn(ln){(window.navigator.platform.match("Mac")?ln.metaKey:ln.ctrlKey)&&ln.keyCode==83&&(ln.preventDefault(),Ge())}const cn=()=>{if(Je&&xt.current.instance){const ln=xt.current.instance.getContentHeight();sr(ln<Re?Re:ln)}else sr(Re)};function mn(ln){var rn=document.createEvent("MouseEvents");rn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),ln.dispatchEvent(rn)}const Bn=ln=>{if(!_n.current)return;const{keyCode:rn,ctrlKey:Wn,metaKey:Zn,target:Mt,type:Gt}=ln;return(Gt==="paste"||(rn===67||rn===86)&&(Zn||Wn))&&Mt.nodeName==="TEXTAREA"&&(on(),ln.preventDefault()),!1};function Pn(ln,rn){var Wn=window.URL||window.webkitURL||window,Zn=new Blob([rn]),Mt=document.createElementNS("http://www.w3.org/1999/xhtml","a");Mt.href=Wn.createObjectURL(Zn),Mt.download=ln,mn(Mt)}(0,te.useEffect)(()=>{cn()},[cn]),(0,te.useEffect)(()=>{nn.current&&!yn&&Promise.all([Te.e(8909),Te.e(1859)]).then(Te.bind(Te,71448)).then(ln=>{try{Xe=ln,xt.current.instance=Xe.editor.create(nn.current,{value:ne,language:Ye(fe),theme:ve,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Pt||!1}},we);const rn=xt.current.instance;let Mt=[...ke.BH._menuItems].find(Tt=>Tt[0]._debugName=="EditorContext")[1],Gt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],St=(Tt,_t)=>{var bt,Ut;let Lt=Tt._first;do _t.includes((Ut=(bt=Lt.element)==null?void 0:bt.command)==null?void 0:Ut.id)&&Tt._remove(Lt);while(Lt=Lt.next)};if(ct(rn,Xe),setTimeout(()=>{cn(),xt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Pn(Dt||"educoder.txt",rn.getValue())}})},500),xt.current.subscription=rn.onDidChangeModelContent(Tt=>{un.current?clearTimeout(Cn.current):(cn(),vt(rn.getValue(),Tt)),Cn.current=setTimeout(()=>{un.current=!1},500)}),window.Monaco||re(Xe,Ye(fe)),ut&&(St(Mt,Gt),nn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Bn),window.removeEventListener("paste",Bn),window.addEventListener("keydown",Bn),window.addEventListener("paste",Bn)),window.Monaco=Xe,Ie&&rn.onDidBlurEditorWidget(()=>{Ie(rn.getValue())}),st&&rn.onDidFocusEditorText(()=>{ut&&ot(),st(rn.getValue())}),ut){ot();try{rn.onDidPaste(Tt=>{const _t=rn.getSelection(),bt=xt.current.pastePos||{},Ut=new Xe.Range(bt.startLineNumber||_t.endLineNumber,bt.startColumn||_t.endColumn,bt.endLineNumber||_t.endLineNumber,bt.endColumn||_t.endColumn);rn.executeEdits("",[{range:Tt.range,text:""}])})}catch(Tt){}}let Rt=pn();return yt&&typeof yt=="string"&&new xe(yt,rn,Xe),Rn(!0),()=>{const Tt=xt.current.instance;Tt.dispose();const _t=Tt.getModel();_t&&_t.dispose(),xt.current.subscription&&xt.current.subscription.dispose(),Rt.unobserve(nn.current)}}catch(rn){}})},[]),(0,te.useEffect)(()=>{if(xt.current.instance&&yn)return document.addEventListener("keydown",hn,!1),()=>{document.removeEventListener("keydown",hn)}},[Ge,yn]),(0,te.useEffect)(()=>{let ln=xt.current.instance;if(ln&&yn){let rn=Ye(fe);Xe.editor.setModelLanguage(ln.getModel(),rn)}},[fe,yn]),(0,te.useEffect)(()=>{xt.current.instance&&yn&&Xe.editor.setTheme(ve)},[ve,yn]),(0,te.useEffect)(()=>{let ln=xt.current.instance;Ct.current=ze,ln&&yn&&(ln.updateOptions(We({},ze)),setTimeout(()=>{ln.getModel().updateOptions(We({},ze))},200))},[JSON.stringify(ze),yn]),(0,te.useEffect)(()=>{let ln=xt.current.instance;ln&&yn&&ln.layout()},[Fe,Re,yn]);const[gn,Ln]=(0,te.useState)(tt(Fe)),[Kn,sr]=(0,te.useState)(tt(Re)),nr=nt(We({},Me),{width:gn,height:Kn,position:"relative"});return te.createElement("div",{className:"my-monaco-editor",ref:nn,style:nr,onFocus:()=>{ut&&ot()}},$e&&te.createElement(Ee.CopyToClipboard,{text:ne,onCopy:()=>De.ZP.success("\u590D\u5236\u6210\u529F")},te.createElement(Be.Z,{title:"\u590D\u5236\u4EE3\u7801"},te.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},te.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ft({width:at="100%",height:qe="100%",original:Fe,modified:Re,language:ne,options:fe={}}){const Me=(0,te.useRef)(),[ze,we]=(0,te.useState)(null);function ve(Je){let ut;return Me.current&&(ut=new Ot.Z(lt=>{for(let vt of lt)(vt.target.offsetHeight>0||vt.target.offsetWidth>0)&&Je.layout()}),ut.observe(Me.current)),ut}(0,te.useEffect)(()=>(Me.current&&Promise.all([Te.e(8909),Te.e(9404)]).then(Te.bind(Te,2550)).then(Je=>{Xe=Je;const ut=Xe.editor.createDiffEditor(Me.current,nt(We({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},fe),{wordWrap:!0}));we(ut);let lt=ve(ut);return()=>{ut.dispose();const vt=ut.getModel();vt&&vt.dispose(),lt.unobserve(Me.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,te.useEffect)(()=>{ze&&ze.setModel({original:Xe.editor.createModel(Fe,ne),modified:Xe.editor.createModel(Re,ne)})},[Fe,Re,ne,ze]);const Ie=tt(at),$e=tt(qe),Ge={width:Ie,height:$e};return te.createElement("div",{className:"my-diff-editor",ref:Me,style:Ge})}},64194:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ce}});var te={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},Ot=Te(29787),y=Te(25399),je=Te(89787),be=Te(92310),z=Te.n(be),E=Te(68911),ie=Te(71347),oe=Te(59301),ce=({className:x,dataSource:ae=[],col:re=4,right:se,bottom:ue=23,precision:pe=0,wrapWidth:he=1200,trackEventItems:ye,loading:ge,onRemove:xe=()=>{},isCurrent:ke=!0,showProgress:De=!1,showAlias:Be=!1,category:Ae,hiddenClick:Se})=>{const Ee=Math.floor((he-(re-1)*se)/re),Oe=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return oe.createElement(Ot.Z,{spinning:ge},oe.createElement("div",{className:z()(te.list,x)},!!(ae!=null&&ae.length)&&(ae==null?void 0:ae.map((Pe,Le)=>{var Ne,me,Ve,Ze,We,nt,_e,Ue,tt,rt,et,Ke,Ye;const{name:Xe,id:ot,identifier:Qe,featured:ft,school_name:at,image_url:qe,excellent:Fe,is_plan:Re}=Pe;return oe.createElement("div",{key:ot,className:ke&&De?te.wrapisCurrent:te.wrap,style:{width:Ee,marginRight:(1+Le)%re===0?0:se+pe,marginBottom:ue}},oe.createElement("a",{className:te.li,onClick:ne=>{ne.preventDefault(),ne.stopPropagation(),ye&&(0,E.L9)([ye]),(0,E.xg)(`/paths/${Qe}`)}},oe.createElement("div",{className:te.img},oe.createElement("img",{className:te.cover,src:`${qe}`}),(Ne=Pe==null?void 0:Pe.subject_tags)==null?void 0:Ne.map((ne,fe)=>{var Me,ze;if(fe===0){const ve=(Me=Oe.find(Ie=>Ie.name==ne))==null?void 0:Me.swclass;return oe.createElement("span",{className:`sprite ${ve} ${te.sign}`,style:{left:"-4px"}})}const we=(ze=Oe.find(ve=>ve.name==ne))==null?void 0:ze.ptclass;return oe.createElement("span",{className:`sprite ${we} ${te.sign}`,style:{left:`${48+52*(fe-1)+2*fe}px`}})}),oe.createElement("div",{className:te.tagsDom},oe.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(Pe==null?void 0:Pe.excellent)&&oe.createElement("div",{className:te.bq},"\u5F00\u653E\u8BFE\u7A0B"),((me=Pe==null?void 0:Pe.custom_tags)==null?void 0:me.length)>0&&oe.createElement(y.Z,{title:(We=(Ze=Pe==null?void 0:Pe.custom_tags)==null?void 0:Ze[((Ve=Pe==null?void 0:Pe.custom_tags)==null?void 0:Ve.length)-1])==null?void 0:We.tag_name},oe.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},oe.createElement("span",{className:"multi-llipsis1e text-10px"},(Ue=(_e=Pe==null?void 0:Pe.custom_tags)==null?void 0:_e[((nt=Pe==null?void 0:Pe.custom_tags)==null?void 0:nt.length)-1])==null?void 0:Ue.tag_name))))),Ae=="hide"&&(Pe==null?void 0:Pe.studying)&&ke&&oe.createElement("div",{className:`${te.movebq} user-path-items`,onClick:ne=>{ne.stopPropagation(),xe(Pe)}},oe.createElement("i",{className:"iconfont icon-yichu1 font12"}),oe.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(Ae)&&ke&&oe.createElement("div",{className:`${te.hiddenbq} user-path-items`,onClick:ne=>{ne.stopPropagation(),Se(Pe)}},oe.createElement("i",{className:`iconfont ${Ae=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),oe.createElement("span",null,Ae=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),oe.createElement("div",{className:te.name},oe.createElement(y.Z,{title:Be&&(Pe!=null&&Pe.excellent_alias_name)?oe.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Xe}`,oe.createElement("br",null),oe.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Pe==null?void 0:Pe.excellent_alias_name}`)):Xe},oe.createElement("span",{className:te.e},Be&&(Pe==null?void 0:Pe.excellent_alias_name)||Xe))),ke&&De&&((tt=Pe==null?void 0:Pe.progress)==null?void 0:tt.all_score)!=0&&oe.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},oe.createElement(je.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((rt=Pe==null?void 0:Pe.progress)==null?void 0:rt.my_score)/((et=Pe==null?void 0:Pe.progress)==null?void 0:et.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Ke=Pe==null?void 0:Pe.progress)==null?void 0:Ke.my_score,"/",(Ye=Pe==null?void 0:Pe.progress)==null?void 0:Ye.all_score),(!ke||!De)&&oe.createElement(y.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${at}`},oe.createElement("div",{className:te.unit},oe.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),at)),(!ke||!De)&&oe.createElement("div",{className:te.tags},oe.createElement("div",null,oe.createElement(y.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),oe.createElement("span",null,Pe.stages_count))),oe.createElement(y.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),oe.createElement("span",null,Pe.members_count)))))))})),!ae.length&&oe.createElement(ie.Z,null)))}},29596:function(In,Yt,Te){"use strict";Te.d(Yt,{jL:function(){return je},w9:function(){return Ue},QD:function(){return mt},cQ:function(){return Le.Z},op:function(){return ut},O5:function(){return pn},_b:function(){return yt},t7:function(){return pe},Gi:function(){return Xe},YG:function(){return Ke},qp:function(){return ee},vr:function(){return Et},qE:function(){return ct},Je:function(){return ge},wb:function(){return Pe},cq:function(){return Fe},tp:function(){return ae}});var te=Te(59301),Ot={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},je=({dataSource:on=[],img:Vt,imgWidth:Wt=346,title:Ht,sunTitle:hn,bannerExtraContent:cn})=>te.createElement("div",{className:Ot.banner},te.createElement("div",{className:Ot.content},te.createElement("aside",null,te.createElement("p",null,te.createElement("b",null,Ht),te.createElement("span",null,hn)),on.length>0&&te.createElement("div",{className:Ot.btns},on.map((mn,Bn)=>te.createElement("div",{key:Bn,onClick:mn.click},mn.name,mn.sign?te.createElement("span",{className:"sprite sprite-33"}):null))),cn),Vt&&te.createElement("img",{style:{marginTop:33,marginRight:38},src:Vt,width:Wt}))),be={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},z=Te(92310),E=Te.n(z),ie=Te(89392),ee=({dataSource:on=[],value:Vt,onChange:Wt,onTitleChange:Ht,className:hn,title:cn,titleWidth:mn=41,style:Bn={},fontColor:Pn="#6A7283",showCount:gn})=>{const[Ln,Kn]=(0,te.useState)(1),[sr,nr]=(0,te.useState)(!1),ln=(0,te.useRef)(null),rn=(0,te.useRef)(null);return(0,te.useEffect)(()=>{var Wn;on.length!==0&&(((Wn=ln==null?void 0:ln.current)==null?void 0:Wn.clientHeight)>97?Kn(1):Kn(0)),on.length===0&&Kn(0),nr(!1)},[on]),te.createElement("div",{className:E()(be.row,hn,"fadeIn","animated"),style:Bn},te.createElement("div",{onClick:(0,ie.throttle)(()=>Ht==null?void 0:Ht(),2e3),style:{width:mn,marginTop:sr?12:4},className:`${be.title} ${Ht?"current":""}`},cn),te.createElement("div",{className:sr?`${be.tagsWrap} ${be.tagsBorderWrap}`:be.tagsWrap},te.createElement("div",{className:be.bar,ref:rn,style:Ln>0?{height:Ln===1?97:"auto",overflow:Ln===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},te.createElement("div",{className:be.tag,ref:ln},on==null?void 0:on.map(Wn=>te.createElement("span",{onClick:()=>Wt(Wn.id),key:Wn.id,style:{color:Pn},className:Vt===Wn.id?be.active:""},te.createElement("span",{title:Wn.name,className:be.name},Wn.name),!!gn&&te.createElement("span",{className:be.num},Wn.count))))),!!Ln&&te.createElement(te.Fragment,null,Ln===1?te.createElement("div",{onClick:()=>{var Wn;Kn(2),((Wn=ln==null?void 0:ln.current)==null?void 0:Wn.clientHeight)>245?nr(!0):nr(!1)},className:be.action},"\u5C55\u5F00",te.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):te.createElement("div",{onClick:()=>{rn.current.scrollTop=0,Kn(1),nr(!1)},className:be.action},"\u6536\u8D77",te.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ce={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},ae=({dataSource:on=[],value:Vt,onChange:Wt,className:Ht,style:hn={}})=>te.createElement("div",{style:hn,className:E()(ce.tabs,Ht)},on.map(cn=>te.createElement("span",{onClick:()=>Wt(cn.id),className:Vt===cn.id?ce.active:"",key:cn.id},cn.name))),re={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},se=Te(37568),pe=({dataSource:on=[],value:Vt="",onChange:Wt,onInputChange:Ht=()=>{},className:hn,style:cn={},placeholder:mn,allowClear:Bn=!1})=>{var Pn;const[gn,Ln]=(0,te.useState)(""),[Kn,sr]=(0,te.useState)("");(0,te.useEffect)(()=>{var rn;let Wn=Vt;(rn=JSON.stringify(Vt))!=null&&rn.includes("{")&&(Ln(Vt.id),Wn=Vt.value||"");try{sr(decodeURIComponent(Wn||""))}catch(Zn){sr(decodeURIComponent(Wn||""))}},[Vt]);const nr=()=>{Wt(encodeURIComponent(Kn),gn||null)},ln=rn=>{rn!==gn&&(Ln(rn),Wt(encodeURIComponent(Kn),rn))};return te.createElement("div",{className:E()(re.input,hn),style:cn},!!on.length&&te.createElement("div",{className:re.dropdown},te.createElement("div",{className:re.text},(Pn=on.find(rn=>rn.id===gn))==null?void 0:Pn.name,te.createElement("i",{className:"iconfont icon-zhankai4"}),te.createElement("b",{className:re.b1}),te.createElement("b",{className:re.b2})),te.createElement("div",{className:re.menu},on.map((rn,Wn)=>te.createElement("div",{key:Wn,onClick:()=>ln(rn.id)},rn.name)))),te.createElement(se.default,{onPressEnter:nr,value:Kn,onChange:rn=>{sr(rn.target.value),Ht(encodeURIComponent(rn.target.value),gn||null)},placeholder:mn,variant:"borderless",allowClear:Bn,onClear:()=>Wt("",gn||null)}),te.createElement("i",{onClick:nr,className:"iconfont icon-sousuo9 font14 current"}))},he={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},ge=({value:on,onChange:Vt,className:Wt,total:Ht,pageSize:hn,style:cn={}})=>{const mn=on<2,Bn=on>=Math.ceil(Ht/hn);return Ht<=hn?te.createElement(te.Fragment,null):te.createElement("div",{className:E()(he.quickPager,Wt),style:cn},te.createElement("div",{onClick:()=>{mn||Vt(on-1,"prev")},className:mn?he.disabled:""},"\u4E0A\u4E00\u9875"),te.createElement("div",{onClick:()=>{Bn||Vt(on+1,"next")},className:Bn?he.disabled:""},"\u4E0B\u4E00\u9875"))},xe={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},ke=Te(29787),De=Te(25399),Be=Te(63139),Ae=Te(35783),Se=Te(68911),Ee=Te(71347),Pe=({className:on,dataSource:Vt=[],col:Wt=4,right:Ht,bottom:hn=23,precision:cn=0,wrapWidth:mn=1200,trackEventItems:Bn,loading:Pn})=>{const gn=Math.floor((mn-(Wt-1)*Ht)/Wt);return te.createElement(ke.Z,{spinning:Pn},te.createElement("div",{className:E()(xe.list,on)},!!Vt.length&&Vt.map((Ln,Kn)=>{const{name:sr,id:nr,identifier:ln,power:rn,cover_image_id:Wn,pic:Zn}=Ln;return te.createElement("div",{className:xe.wrap,key:nr,style:{width:gn,marginRight:(1+Kn)%Wt===0?0:Ht+cn,marginBottom:hn}},te.createElement("a",{target:"_blank",href:`/shixuns/${ln}/challenges`,className:xe.li,onClick:Mt=>{Mt.preventDefault(),Bn&&(0,Se.L9)([Bn]),rn&&(0,Se.xg)(`/shixuns/${ln}/challenges`)}},te.createElement("div",{className:xe.img},te.createElement("img",{className:xe.cover,src:`${Zn}`}),Ln.is_jupyter&&te.createElement("span",{className:`sprite sprite-43 ${xe.sign}`}),Ln.is_jupyter_lab&&te.createElement("span",{className:`sprite sprite-42 ${xe.sign}`}),Ln.is_unity_3d&&te.createElement("span",{className:`sprite sprite-44 ${xe.sign}`})),te.createElement("div",{className:xe.name},te.createElement(De.Z,{title:sr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},te.createElement("span",{className:xe.e},sr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),te.createElement("div",{className:xe.tags},te.createElement(De.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},te.createElement("span",null,te.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),te.createElement("span",null,Ln.challenges_count))),!!Ln.myshixuns_count&&te.createElement(De.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},te.createElement("span",null,te.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),te.createElement("span",null,Ln.myshixuns_count))),te.createElement(De.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},te.createElement("span",null,te.createElement("span",null,Ln.level))),te.createElement("div",{className:xe.rate},te.createElement(Be.Z,{allowHalf:!0,disabled:!0,defaultValue:Ln.score_info}),te.createElement("span",null,"\xA0",Ln.score_info?`${Ln.score_info}\u5206`:"5\u5206")))),!rn&&te.createElement("div",{className:xe.lockWrap},te.createElement("img",{src:`${Ae.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),te.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Vt.length&&te.createElement(Ee.Z,null)))},Le=Te(64194),Ne={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},me=Te(62957),Ve=Te(96599),Ze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",We=Te(59301),nt=(on,Vt,Wt)=>new Promise((Ht,hn)=>{var cn=Pn=>{try{Bn(Wt.next(Pn))}catch(gn){hn(gn)}},mn=Pn=>{try{Bn(Wt.throw(Pn))}catch(gn){hn(gn)}},Bn=Pn=>Pn.done?Ht(Pn.value):Promise.resolve(Pn.value).then(cn,mn);Bn((Wt=Wt.apply(on,Vt)).next())}),Ue=({className:on,dataSource:Vt=[],col:Wt=4,right:Ht,bottom:hn=23,precision:cn=0,wrapWidth:mn=1200,trackEventItems:Bn,loading:Pn,category:gn,hiddenClick:Ln,handleVery:Kn=()=>!0,isCurrent:sr})=>{const[nr,ln]=me.default.useModal(),rn=Math.floor((mn-(Wt-1)*Ht)/Wt),Wn=Zn=>nt(void 0,null,function*(){nr.confirm({title:"\u7F6E\u9876",width:500,content:We.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",We.createElement("span",{className:"c-blue"},"\u201C",Zn.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return We.createElement(ke.Z,{spinning:Pn},ln,We.createElement("div",{className:E()(Ne.list,on)},!!Vt.length&&Vt.map((Zn,Mt)=>{const{subject_identifier:Gt,id:St,identifier:Rt,power:Tt}=Zn,_t=Zn.is_public!=0&&Zn.is_public;return We.createElement("div",{className:Ne.wrap,key:St,style:{width:rn,marginRight:(1+Mt)%Wt===0?0:Ht+cn,marginBottom:hn}},Zn.homepage_show&&We.createElement("div",{className:Ne.btnsTop},We.createElement(Ve.default,{color:"red"},"\u7F6E\u9876")),We.createElement("a",{className:Ne.li,onClick:bt=>{bt.preventDefault(),Kn(Zn==null?void 0:Zn.first_category_url)&&(Bn&&(0,Se.L9)([Bn]),(0,Se.xg)(Zn.first_category_url))}},We.createElement("div",{className:Ne.top},We.createElement(De.Z,{title:Zn.name},We.createElement("div",{className:Ne.name},Zn.name)),We.createElement("img",{className:Ne.img,src:Ae.Z.IMG_SERVER+"/images/"+Zn.avatar_url}),We.createElement("div",{className:Ne.text,title:Zn.creator},Zn.creator),Gt&&We.createElement("div",{className:Ne.btns},We.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),We.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),_t&&We.createElement("div",{className:Ne.sign},"\u516C\u5F00"),sr&&We.createElement("div",{className:Ne.hidden,onClick:bt=>{bt.stopPropagation(),Ln(Zn)}},We.createElement("i",{className:`iconfont ${gn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),gn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),We.createElement("div",{className:Ne.bottom},Zn.visits>0&&We.createElement(De.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},We.createElement("span",null,We.createElement("i",{className:"iconfont icon-liulanyan"}),We.createElement("span",null,Zn.visits))),Zn.course_members_count>0&&We.createElement(De.Z,{title:"\u6210\u5458",placement:"bottom"},We.createElement("span",null,We.createElement("i",{className:"iconfont icon-chengyuan"}),Zn.course_members_count)),Zn.tasks_count>0&&We.createElement(De.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},We.createElement("span",null,We.createElement("i",{className:"iconfont icon-zuoye"}),Zn.tasks_count)),Zn.is_end?We.createElement("div",{style:{color:"#6B758B"}}):We.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Zn.is_accessible&&We.createElement("div",{className:Ne.lockWrap},We.createElement("img",{src:`${Ae.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),We.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Vt.length&&We.createElement(Ee.Z,null)))},tt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},rt=Te(63823),Ke=({dataSource:on=[],value:Vt,onChange:Wt,className:Ht,style:hn={},tabBarExtraContent:cn})=>te.createElement("div",{className:E()(tt.tabs,Ht),style:hn},te.createElement("div",{className:tt.tabsWrap},on.map((mn,Bn)=>!(mn!=null&&mn.hide)&&te.createElement("aside",{className:tt.tab,onClick:()=>{Wt(mn.id),mn.link&&rt.history.push(mn.link)},key:Bn},te.createElement("div",{className:Vt===mn.id?tt.active:""},mn.name),(mn==null?void 0:mn.resetCount)==null&&(mn==null?void 0:mn.total)!==void 0&&te.createElement("span",null,"\uFF08",mn==null?void 0:mn.total,"\uFF09"),(mn==null?void 0:mn.resetCount)!==void 0&&(mn==null?void 0:mn.total)!==void 0&&te.createElement(De.Z,{title:(mn==null?void 0:mn.tip)!=null?mn==null?void 0:mn.tip:""},te.createElement("span",{style:{color:"#9096A3"}},"\uFF08",te.createElement("span",{style:{color:"#000"}},mn==null?void 0:mn.resetCount),"/",te.createElement("span",null,mn==null?void 0:mn.total),"\uFF09"))))),te.createElement("div",{className:tt.tabBar},cn)),Xe=({className:on,style:Vt={},children:Wt})=>te.createElement("div",{className:E()(on),style:Vt},Wt),ot={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Qe=Te(75727),ft=Te(93041);const at=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Fe=({sortValue:on,dropValue:Vt,className:Wt,onSort:Ht,onDrop:hn,dataSource:cn=at})=>{var mn;return te.createElement("div",{className:E()(ot.orderWrap,Wt)},te.createElement(Qe.Z,{dropdownRender:()=>te.createElement(ft.default,null,cn.map((Bn,Pn)=>te.createElement(ft.default.Item,{key:Pn,onClick:()=>hn(Bn.id)},Bn.name)))},te.createElement("span",{className:ot.orderTextWrap},(mn=cn.find(Bn=>Vt===Bn.id))==null?void 0:mn.name)),te.createElement("span",{className:ot.orderIconWrap},te.createElement("span",{className:ot.orderAsc},te.createElement("i",{className:on==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ot.cursorPointer} ${ot.active}`:`iconfont icon-sanjiaoxing-up font12 ${ot.cursorPointer}`,onClick:()=>Ht(on==="asc"?"desc":"asc")})),te.createElement("span",{className:ot.orderDesc},te.createElement("i",{className:on==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ot.cursorPointer} ${ot.active}`:`iconfont icon-sanjiaoxing-down font12 ${ot.cursorPointer}`,onClick:()=>Ht(on==="asc"?"desc":"asc")}))))},Re={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},ne=Te(7939),fe=Object.defineProperty,Me=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,ve=(on,Vt,Wt)=>Vt in on?fe(on,Vt,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):on[Vt]=Wt,Ie=(on,Vt)=>{for(var Wt in Vt||(Vt={}))ze.call(Vt,Wt)&&ve(on,Wt,Vt[Wt]);if(Me)for(var Wt of Me(Vt))we.call(Vt,Wt)&&ve(on,Wt,Vt[Wt]);return on},$e=(on,Vt)=>{var Wt={};for(var Ht in on)ze.call(on,Ht)&&Vt.indexOf(Ht)<0&&(Wt[Ht]=on[Ht]);if(on!=null&&Me)for(var Ht of Me(on))Vt.indexOf(Ht)<0&&we.call(on,Ht)&&(Wt[Ht]=on[Ht]);return Wt},Ge=(on,Vt,Wt)=>new Promise((Ht,hn)=>{var cn=Pn=>{try{Bn(Wt.next(Pn))}catch(gn){hn(gn)}},mn=Pn=>{try{Bn(Wt.throw(Pn))}catch(gn){hn(gn)}},Bn=Pn=>Pn.done?Ht(Pn.value):Promise.resolve(Pn.value).then(cn,mn);Bn((Wt=Wt.apply(on,Vt)).next())}),ut=on=>{var Vt=on,{className:Wt,style:Ht,children:hn,loading:cn=!1,openLoading:mn,onClick:Bn=()=>{},size:Pn="middle",shape:gn="round"}=Vt,Ln=$e(Vt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Kn,sr]=(0,te.useState)(!1);return te.createElement(ne.ZP,Ie({onClick:(0,ie.throttle)(nr=>Ge(void 0,null,function*(){mn&&sr(!0);try{yield Bn(nr)}catch(ln){console.log("error",ln)}mn&&sr(!1)}),2e3,{leading:!0,trailing:!1}),className:E()(Re.btn,Re[`${Pn}-${gn}`],Wt),style:Ht,size:Pn,shape:gn,loading:Kn||cn},Ln),hn)},lt={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},ct=({className:on,style:Vt,children:Wt=null,onClick:Ht,title:hn})=>te.createElement("div",{className:E()(lt.head,on),style:Vt},te.createElement("span",{className:"primary-hover",onClick:Ht},te.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),te.createElement("b",{title:hn},hn),te.createElement("div",{className:lt.node},Wt)),st={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},mt=({confirmShow:on=!0,confirmTitle:Vt,confirmClick:Wt,cancelShow:Ht=!0,cancelTitle:hn,cancelClick:cn,className:mn,style:Bn,confirmLoading:Pn=!1})=>te.createElement("div",{className:E()(st.btns,mn),style:Bn},on&&te.createElement(ne.ZP,{loading:Pn,onClick:Wt,type:"primary",className:st.confirm},Vt),Ht&&te.createElement(ne.ZP,{onClick:cn,className:st.cancel},hn)),Dt={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Et=({className:on,style:Vt={},LeftContent:Wt,children:Ht,RightContent:hn})=>te.createElement("div",{className:E()(Dt.fixedBottom,on),style:Vt},te.createElement("div",{className:Dt.wrap},te.createElement("div",{className:Dt.left},Wt),te.createElement("div",{className:Dt.center},Ht),te.createElement("div",{className:Dt.right},hn))),kt={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},yt=({className:on,style:Vt={},dataSource:Wt=[]})=>te.createElement("div",{className:E()(kt.crumbs,on),style:Vt},Wt.map((Ht,hn)=>hn<Wt.length-1?te.createElement(te.Fragment,{key:hn},Ht.path||Ht.onClick?te.createElement("span",{className:kt.hover,onClick:Ht!=null&&Ht.onClick?Ht.onClick:()=>rt.history.push(Ht.path)},Ht.name):te.createElement("span",null,Ht.name),te.createElement("span",null,"\xA0",">","\xA0")):te.createElement("span",{key:hn,style:{color:"#5F6368"}},Ht.name))),Pt=Te(11938),Kt=Object.defineProperty,nn=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,un=(on,Vt,Wt)=>Vt in on?Kt(on,Vt,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):on[Vt]=Wt,Cn=(on,Vt)=>{for(var Wt in Vt||(Vt={}))zt.call(Vt,Wt)&&un(on,Wt,Vt[Wt]);if(Ct)for(var Wt of Ct(Vt))en.call(Vt,Wt)&&un(on,Wt,Vt[Wt]);return on},Nn=(on,Vt)=>nn(on,xt(Vt)),_n=(on,Vt)=>{var Wt={};for(var Ht in on)zt.call(on,Ht)&&Vt.indexOf(Ht)<0&&(Wt[Ht]=on[Ht]);if(on!=null&&Ct)for(var Ht of Ct(on))Vt.indexOf(Ht)<0&&en.call(on,Ht)&&(Wt[Ht]=on[Ht]);return Wt};const{Countdown:yn}=Pt.default;var pn=on=>{var Vt=on,{onChange:Wt}=Vt,Ht=_n(Vt,["onChange"]);const[hn,cn]=(0,te.useState)(null);(0,te.useEffect)(()=>{typeof hn=="number"&&hn>=0&&Wt(hn)},[hn]);const mn=Bn=>{const Pn=Math.floor(Bn/1e3);cn(Pn)};return te.createElement(yn,Nn(Cn({},Ht),{onChange:mn}))}},2408:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Ot}});var te=Te(59301);function Ot(y,je){const be=(0,te.useRef)();(0,te.useEffect)(()=>{be.current=y}),(0,te.useEffect)(()=>{function z(){be.current()}if(je!==null){let E=setInterval(z,je);return()=>clearInterval(E)}},[je])}},951:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Ve}});var te=Te(59301),Ot=Te(37568),y=Te(28284),je=Te(6767),be=Te(62957),z=Te(29787),E=Te(94968),ie=Te(25399),oe=Te(89787),ee=Te(82326),ce=Te(47889),x={flex_box_center:"flex_box_center___SntrE",flex_space_between:"flex_space_between___g4tse",flex_box_vertical_center:"flex_box_vertical_center___ooGcI",flex_box_center_end:"flex_box_center_end___UM2Cs",flex_box_column:"flex_box_column___vRGBc",prompt:"prompt___a_aRk",box:"box___X84XK",row:"row___wofpN",icon:"icon___ixIOQ"},ae=Te(22972),re=Te(68911),se=Te(14820),ue=Te(1012),pe=Te(47257),he=Te.n(pe),ye=Te(46709),ge=Te(29596),xe=Te(10102),ke=Te(63823),De=Te(59301),Be=Object.defineProperty,Ae=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,Oe=(Ze,We,nt)=>We in Ze?Be(Ze,We,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Ze[We]=nt,Pe=(Ze,We)=>{for(var nt in We||(We={}))Se.call(We,nt)&&Oe(Ze,nt,We[nt]);if(Ae)for(var nt of Ae(We))Ee.call(We,nt)&&Oe(Ze,nt,We[nt]);return Ze},Le=(Ze,We,nt)=>new Promise((_e,Ue)=>{var tt=Ke=>{try{et(nt.next(Ke))}catch(Ye){Ue(Ye)}},rt=Ke=>{try{et(nt.throw(Ke))}catch(Ye){Ue(Ye)}},et=Ke=>Ke.done?_e(Ke.value):Promise.resolve(Ke.value).then(tt,rt);et((nt=nt.apply(Ze,We)).next())});const Ne=Ot.default.TextArea,me=({dataSetInfo:Ze,attachmentInfo:We,visible:nt,user:_e,dispatch:Ue,onClose:tt=()=>{},onSuccess:rt=()=>{}})=>{var et,Ke;const[Ye,Xe]=(0,te.useState)([]),[ot,Qe]=(0,te.useState)(!1),[ft,at]=(0,te.useState)(!1),[qe]=y.default.useForm(),[Fe,Re]=(0,te.useState)([]),[ne,fe]=(0,te.useState)({}),Me=(0,te.useRef)([]),[ze,we]=(0,te.useState)([]),ve=window.location.href.includes("xust.educoder.net");(0,te.useEffect)(()=>{if(nt){if(Ze){const{title:mt,is_public:Dt,desc:jt,attachments:Et,data_set_tags:kt,subject:Nt}=Ze||{},yt=Et.map(Kt=>({id:String(Math.random()).slice(-6),name:Kt.title,response:{attachment_id:Kt.id},size:Kt.size,description:Kt.description||"",percent:100,status:"done"}));Xe(yt),Re(kt);const Pt={title:mt,is_public:Dt,desc:jt,subject_id:Nt==null?void 0:Nt.id};qe.setFieldsValue(Pt)}if(We){const mt=We.map(Dt=>({id:String(Math.random()).slice(-6),name:Dt.title,response:{attachment_id:Dt.id},size:Dt.size,description:Dt.description||"",percent:100,status:"done"}));Xe(mt)}Ie(),vt()}},[nt]),(0,te.useEffect)(()=>{Me.current=Ye},[Ye]),(0,te.useEffect)(()=>{Ye!=null&&Ye.length?qe.setFields([{name:"attachments",errors:[]}]):qe.setFields([{name:"attachments",errors:["\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"]}])},[Ye.length]),(0,te.useEffect)(()=>{Fe!=null&&Fe.length?qe.setFields([{name:"tag_ids",errors:[]}]):qe.setFields([{name:"tag_ids",errors:["\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"]}])},[Fe.length]);const Ie=()=>Le(void 0,null,function*(){at(!0);const mt=yield(0,ae.ZP)("/api/data_sets/extra_info.jsoin",{method:"get"});mt.status===0&&(fe(mt==null?void 0:mt.data),at(!1))}),$e={multiple:!0,withCredentials:!0,showUploadList:!1,beforeUpload:mt=>Le(void 0,null,function*(){var Dt,jt,Et,kt,Nt,yt;if(((kt=(Et=(jt=(Dt=mt.name)==null?void 0:Dt.split("."))==null?void 0:jt.slice(0,-1))==null?void 0:Et.join("."))==null?void 0:kt.length)>60)return je.ZP.warning(`\u300A${mt.name}\u300B\u6587\u4EF6\u540D\u79F0\u8FC7\u957F\uFF0C\u65E0\u6CD5\u4E0A\u4F20`),Promise.reject();if([...ne.data_set_filenames,...Me.current.map(zt=>zt.name)].includes(mt.name))return je.ZP.warning(`\u300A${mt.name}\u300B\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`),Promise.reject();const Kt=mt.size/1024/1024/1024;let nn=ne==null?void 0:ne.data_sets_filesize;if(Me.current.forEach(zt=>{nn+=zt==null?void 0:zt.size}),nn=nn/1024/1024/1024,ve){if(Kt>100)return je.ZP.warning(`\u300A${mt.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(100GB)`),Promise.reject()}else if((0,xe.Ny)()){if(Kt>50)return je.ZP.warning(`\u300A${mt.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(50GB)`),Promise.reject()}else if(Kt>2)return je.ZP.warning(`\u300A${mt.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(2GB)`),Promise.reject();if(nn+Kt>(ve?100:(Nt=_e==null?void 0:_e.userInfo)==null?void 0:Nt.cloud_space)&&!(ne!=null&&ne.current_user_no_limit))return je.ZP.warning(`\u300A${mt.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u50A8\u5B58\u7A7A\u95F4\u5927\u5C0F\u9650\u5236(${(yt=_e==null?void 0:_e.userInfo)==null?void 0:yt.cloud_space}GB)`),Promise.reject();const Ct={id:String(Math.random()).slice(-6),name:mt.name,size:mt.size,file:mt,description:"",percent:0,status:"uploading"};return ut(Ct,{login:ne==null?void 0:ne.login,container_type:"DataSet",container_id:null,description:"",realFileName:!1}),Xe(zt=>[...zt,Ct]),Promise.reject()})},Ge=mt=>Le(void 0,null,function*(){var Dt,jt,Et;const kt=Me.current.find(Nt=>Nt.name===mt.name);(Dt=kt==null?void 0:kt.response)!=null&&Dt.attachment_id&&(yield(0,ae.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:{attachment_id:(jt=kt==null?void 0:kt.response)==null?void 0:jt.attachment_id}})),kt!=null&&kt.client&&((Et=kt==null?void 0:kt.client)==null||Et.cancel()),Xe(Nt=>Nt.filter(yt=>yt.name!==mt.name))}),Je=()=>{var mt;(mt=Me.current)==null||mt.forEach(Dt=>{var jt;Dt!=null&&Dt.client&&((jt=Dt==null?void 0:Dt.client)==null||jt.cancel())})};console.log(Ye,"fileList1");const ut=(mt,Dt)=>Le(void 0,null,function*(){var jt,Et,kt,Nt,yt,Pt,Kt,nn,xt;Dt.file_name=mt.name;const Ct=mt.name,zt=yield(0,ae.ZP)("/api/buckets/get_data_set_token.json",{method:"get"});if((zt==null?void 0:zt.status)!==0){Xe(Nn=>(Nn[Nn.findIndex(_n=>_n.name===Ct)].status="error",[...Nn])),je.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}zt.data=JSON.parse((0,se.pe)(zt.data));const en=new(he())({endpoint:(jt=zt==null?void 0:zt.data)==null?void 0:jt.end_point,region:(Et=zt==null?void 0:zt.data)==null?void 0:Et.region,accessKeyId:(kt=zt==null?void 0:zt.data)==null?void 0:kt.access_key_id,accessKeySecret:(Nt=zt==null?void 0:zt.data)==null?void 0:Nt.access_key_secret,bucket:(yt=zt==null?void 0:zt.data)==null?void 0:yt.bucket,stsToken:(Pt=zt==null?void 0:zt.data)==null?void 0:Pt.security_token}),un=mt.name.split(".");un.pop();const Cn=Dt.realFileName?un.join("."):(0,ue.Z)();en.multipartUpload(`datasets/${Dt==null?void 0:Dt.login}/${Cn}${Ct.indexOf(".")>-1?"."+Ct.split(".").pop():""}`,new Blob([mt.file],{type:mt.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Nn,_n,yn)=>{console.log("\u8FDB\u5EA6",Nn,_n,yn),Xe(Rn=>{const pn=Rn.findIndex(on=>on.name===Ct);return Rn[pn].client=en,Rn[pn].percent=Nn*100,Rn[pn].checkpoint=_n,[...Rn]})},checkpoint:(nn=Me.current[(Kt=Me.current)==null?void 0:Kt.findIndex(Nn=>Nn.name===Ct)])==null?void 0:nn.checkpoint,callback:{customValue:{id:Ct+""},url:(xt=zt==null?void 0:zt.data)==null?void 0:xt.callback_url,host:zt==null?void 0:zt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ae.rz)(Dt)}}).then(function(Nn){Xe(_n=>{var yn,Rn,pn;const on=_n.findIndex(Wt=>Wt.name===Ct);let Vt="done";return((yn=Nn.data)==null?void 0:yn.status)===0?_n[on].response=(Rn=Nn.data)==null?void 0:Rn.data:(je.ZP.warning((pn=Nn.data)==null?void 0:pn.message),Vt="error"),_n[on].status=Vt,[..._n]})}).catch(function(Nn){console.log("\u63A5\u53E3\u9519\u8BEF\uFF1A",Nn),(Nn==null?void 0:Nn.name)!=="cancel"&&Xe(_n=>{const yn=_n.findIndex(Rn=>Rn.name===Ct);return _n[yn].status="error",[..._n]})})}),lt=mt=>(mt=mt||"",mt=String(mt),mt=mt.replace(/\s+/g,""),mt);function vt(){return Le(this,null,function*(){var mt;let Dt=yield(0,ae.ZP)(`/api/users/${(mt=_e==null?void 0:_e.userInfo)==null?void 0:mt.login}/subjects.json`,{method:"get",params:{page:1,per_page:800,category:"manage",sort_by:"updated_at",sort_direction:"desc"}});Dt&&we(Dt==null?void 0:Dt.subjects)})}const ct=()=>Le(void 0,null,function*(){var mt;const Dt=qe.getFieldsValue(),{title:jt,is_public:Et,desc:kt,subject_id:Nt}=Dt,yt=[];if(lt(jt)||yt.push({name:"title",errors:["\u6570\u636E\u96C6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"]}),Ye!=null&&Ye.length||yt.push({name:"attachments",errors:["\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"]}),Fe!=null&&Fe.length||yt.push({name:"tag_ids",errors:["\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"]}),yt.length){qe.setFields(yt);return}const Pt=Ye.map(Ct=>{var zt;return{attachment_id:(zt=Ct.response)==null?void 0:zt.attachment_id,description:Ct.description}});Qe(!0);const Kt=(0,re.TG)(),nn={title:Dt.title,attachments:Pt,tag_ids:Fe.map(Ct=>Ct.id),is_public:Et,desc:kt,subject_id:Nt,homework_common_id:Kt||void 0};let xt;Ze?xt=yield(0,ae.ZP)(`/api/data_sets/${Ze==null?void 0:Ze.id}.json`,{method:"put",body:nn}):xt=yield(0,ae.ZP)("/api/data_sets.json",{method:"post",body:nn}),xt.status===0&&(je.ZP.success("\u64CD\u4F5C\u6210\u529F"),rt((mt=xt==null?void 0:xt.data)==null?void 0:mt.data_set_id),Ue({type:"user/getUserInfo"})),Qe(!1)}),st=mt=>{Re(mt)},At=Ye.some(mt=>mt.status==="uploading");return console.log("fileList",Ye),De.createElement(be.default,{destroyOnClose:!0,confirmLoading:ot,bodyStyle:{paddingLeft:16,paddingTop:20},okButtonProps:{disabled:At},title:Ze?"\u7F16\u8F91\u6570\u636E\u96C6":"\u521B\u5EFA\u6570\u636E\u96C6",width:660,onCancel:()=>{if(At){be.default.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{tt()}});return}tt()},okText:"\u786E\u5B9A",onOk:ct,open:nt,afterClose:()=>{Xe([]),Re([]),Qe(!1),at(!1),Je(),qe.resetFields()}},De.createElement(z.Z,{spinning:ft},!(ne!=null&&ne.current_user_no_limit)&&!ft&&De.createElement("div",{className:x.prompt},De.createElement("i",{className:"icon icon-tishi11 font12 mr10"}),"\u6E29\u99A8\u63D0\u793A:\u5E73\u53F0\u4E3A\u7528\u6237\u63D0\u4F9B\u4E86",De.createElement("span",{style:{color:"#3061D0",margin:"0 5px"}},ve?100:(et=_e==null?void 0:_e.userInfo)==null?void 0:et.cloud_space,"GB"),"\u7684\u6570\u636E\u96C6\u5B58\u50A8\u7A7A\u95F4\uFF0C\u60A8\u76EE\u524D\u5DF2\u4F7F\u7528\u4E86",De.createElement("span",{style:{color:"#FF9D18",margin:"0 5px"}},((ne==null?void 0:ne.data_sets_filesize)/(1024*1024*1024)).toFixed(2),"GB")),De.createElement(y.default,{form:qe,colon:!1,labelCol:{span:4},wrapperCol:{span:20},size:"large"},De.createElement(y.default.Item,{label:"\u6570\u636E\u96C6\u540D\u79F0",name:"title",rules:[{required:!0,message:"\u6570\u636E\u96C6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},De.createElement(Ot.default,{placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u96C6\u540D\u79F0",showCount:!0,maxLength:60})),De.createElement(y.default.Item,{style:{marginBottom:0},name:"attachments",label:"\u4E0A\u4F20\u6570\u636E\u96C6",rules:[{required:!0,message:"\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"}]},De.createElement("div",{style:{position:"relative"}},De.createElement(E.default,Pe({},$e),De.createElement(ge.op,{style:{borderRadius:2}},De.createElement("i",{className:"icon-shangchuan3 mr5 font14"}),"\u4E0A\u4F20\u6587\u4EF6")),De.createElement("div",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px",position:"absolute",left:"115px",top:"-2px"}},De.createElement("div",null,"1.\u5355\u4E2A\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7",ve?100:(0,xe.Ny)()?50:2,"G"),De.createElement("div",null,"2.",ne!=null&&ne.current_user_no_limit?"":`\u4E2A\u4EBA\u4E0A\u4F20\u603B\u4F53\u79EF\u4E0D\u8D85\u8FC7${ve?100:(Ke=_e==null?void 0:_e.userInfo)==null?void 0:Ke.cloud_space}GB\uFF0C`,"\u6587\u4EF6\u540D\u4E0D\u8D85\u8FC760\u5B57")))),De.createElement("div",{className:x.box},Ye.map(mt=>De.createElement("div",{key:mt.id,className:x.row},De.createElement("div",{className:x.icon},mt.status==="done"&&De.createElement("i",{className:"iconfont icon-wancheng",style:{color:"#19CB70"}}),mt.status==="error"&&De.createElement("i",{className:"iconfont icon-cuowu",style:{color:"#E30000",marginLeft:1,fontSize:13}})),De.createElement("div",{style:{width:176}},De.createElement(ie.Z,{title:mt==null?void 0:mt.name},De.createElement("div",{style:{color:mt.status==="error"?"#E30000":"#3061D0",textDecoration:"underline"}},(0,re.tP)(mt==null?void 0:mt.name,9))),mt.status==="uploading"&&De.createElement(oe.Z,{strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:mt.percent,showInfo:!1,size:[168,4]})),De.createElement("i",{onClick:()=>Ge(mt),className:"iconfont icon-shanchu14 font14 ml20 mr20",style:{cursor:"pointer",color:"#F65160"}}),De.createElement(Ot.default,{value:mt.description,onChange:Dt=>{Xe(jt=>{const Et=jt.findIndex(kt=>kt.name===mt.name);return jt[Et].description=Dt.target.value,[...jt]})},placeholder:"\u5907\u6CE8\u8BF4\u660E",showCount:!0,maxLength:255,style:{width:"286px"}})))),De.createElement(y.default.Item,{label:"\u6807\u7B7E",name:"tag_ids",rules:[{required:!0,message:"\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"}]},De.createElement(ye.Z,{isTagsValue:!0,width:"514",selectWidth:"514",placeholder:"\u6DFB\u52A0\u6807\u7B7E",getDataSet:st,tags:Fe})),De.createElement(y.default.Item,{label:"\u9009\u62E9\u8BFE\u7A0B",name:"subject_id",rules:[{required:!1,message:"\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"}]},De.createElement(ee.default,{placeholder:"\u9009\u62E9\u8BFE\u7A0B",allowClear:!0},ze==null?void 0:ze.map(mt=>De.createElement(ee.default.Option,{value:mt==null?void 0:mt.id},mt==null?void 0:mt.name)))),De.createElement(y.default.Item,{initialValue:0,label:"\u662F\u5426\u516C\u5F00",name:"is_public",rules:[{required:!0}]},De.createElement(ce.ZP.Group,null,De.createElement(ce.ZP,{value:1},"\u662F"),De.createElement(ce.ZP,{value:0},"\u5426"))),De.createElement("div",{style:{position:"relative",left:"100px",top:"-20px",width:"400px",color:"#9096A3",fontSize:"12px"}},"\u516C\u5F00\u9700\u8981\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\u540E\u53EF\u88AB\u5176\u4ED6\u7528\u6237\u8BBF\u95EE"),De.createElement(y.default.Item,{label:"\u7B80\u4ECB\u6458\u8981",name:"desc",style:{marginBottom:0}},De.createElement(Ne,{placeholder:"\u6B64\u6570\u636E\u96C6\u4E3B\u8981\u5305\u542B\u4EC0\u4E48\u5185\u5BB9\uFF0C\u53EF\u4EE5\u7528\u6765\u505A\u4EC0\u4E48\uFF1F"})))))};var Ve=(0,ke.connect)(({user:Ze,dispatch:We})=>({user:Ze,dispatch:We}))(me)},59092:function(In,Yt,Te){"use strict";Te.r(Yt),Te.d(Yt,{default:function(){return on}});var te=Te(59301),Ot=Te(63823),y=Te(29787),je=Te(91882),be=Te(25399),z=Te(62957),E=Te(62673),ie=Te(6767),oe=Te(75727),ee=Te(47889),ce=Te(70858),x={flex_box_center:"flex_box_center___eNs_C",flex_space_between:"flex_space_between___oJc0d",flex_box_vertical_center:"flex_box_vertical_center___MoDEY",flex_box_center_end:"flex_box_center_end___BtlAV",flex_box_column:"flex_box_column___nUGZ8",bg:"bg___kj21E",wrap:"wrap___TtbC8",leftContent:"leftContent___FGaJd",header:"header___kobCa",headerBack:"headerBack___TI5PF",title:"title___B5Aew",time:"time___Ab938",introduction:"introduction___JKUBJ",from:"from___WId6_",bottom:"bottom___Expju",user_img:"user_img___igguI",user_name:"user_name___xNcx6",tags_name:"tags_name___xhTee",buttonList:"buttonList___ayDi1",buttonItem:"buttonItem___p_BX_",rightContent:"rightContent___XTwKA",share:"share___o0Kxt",publicStyle:"publicStyle___I8HuS",more:"more___ZQSDV",collectStyle:"collectStyle___FwPiJ",collectActiveStyle:"collectActiveStyle___vbqkD",content:"content___dl660",addTypeRadio:"addTypeRadio___iEl2Y",addBtn:"addBtn___SYc61",shixunTooltip:"shixunTooltip___krR3m",pageStyle:"pageStyle___UXmCF",pageCan:"pageCan___yNiQI",pageUnCan:"pageUnCan___M1D84",dropList:"dropList___KP6TZ",dropName:"dropName___hgrPU"},ae=Te(35783),re={flex_box_center:"flex_box_center___Kaphe",flex_space_between:"flex_space_between___dzJWD",flex_box_vertical_center:"flex_box_vertical_center___iwu7i",flex_box_center_end:"flex_box_center_end___izksF",flex_box_column:"flex_box_column___ntJPh",content:"content___gDHym",addTypeRadio:"addTypeRadio___oUKH0",introduceNoData:"introduceNoData___iILly",introduceAdd:"introduceAdd___v9keU",introduceText:"introduceText___iTf1W",introduceButton:"introduceButton___bwZMR",close:"close___csBZw",submit:"submit___SQ6af",introduceContent:"introduceContent___Yad8G",introduceTitle:"introduceTitle___DfmXh",introContentWrap:"introContentWrap___bmjAL",action:"action___DPbIq",fileTable:"fileTable___xqsXc",addBtn:"addBtn___em6e3",wrap:"wrap___Q3aN8",colorBlue:"colorBlue____HNqk",repeatedName:"repeatedName___RIjaL",row:"row___ngnyh",icon:"icon___fQvup"},se=Te(32862),ue=Te(56375),pe=Te(28284),he=Te(37568),ye=Te(94968),ge=Te(89787),xe=Te(65212),ke=Te(66649),De=Te.n(ke),Be=Te(68911),Ae=Te(79809),Se=Te(22972),Ee=Te(47257),Oe=Te.n(Ee),Pe=Te(14820),Le=Te(1012),Ne=Te(10102),me=Te(59301),Ve=Object.defineProperty,Ze=Object.defineProperties,We=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,tt=(Vt,Wt,Ht)=>Wt in Vt?Ve(Vt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Vt[Wt]=Ht,rt=(Vt,Wt)=>{for(var Ht in Wt||(Wt={}))_e.call(Wt,Ht)&&tt(Vt,Ht,Wt[Ht]);if(nt)for(var Ht of nt(Wt))Ue.call(Wt,Ht)&&tt(Vt,Ht,Wt[Ht]);return Vt},et=(Vt,Wt)=>Ze(Vt,We(Wt)),Ke=(Vt,Wt,Ht)=>new Promise((hn,cn)=>{var mn=gn=>{try{Pn(Ht.next(gn))}catch(Ln){cn(Ln)}},Bn=gn=>{try{Pn(Ht.throw(gn))}catch(Ln){cn(Ln)}},Pn=gn=>gn.done?hn(gn.value):Promise.resolve(gn.value).then(mn,Bn);Pn((Ht=Ht.apply(Vt,Wt)).next())});const Ye=({polls:Vt,globalSetting:Wt,loading:Ht,dispatch:hn,user:cn,dataSetInfo:mn,indexType:Bn,getInfo:Pn})=>{const gn=(0,Ot.useParams)(),[Ln,Kn]=(0,te.useState)(!1),[sr,nr]=(0,te.useState)(0),ln=(0,te.useRef)(null),rn=(0,te.useRef)(null),[Wn,Zn]=(0,te.useState)(""),[Mt,Gt]=(0,te.useState)(""),[St]=pe.default.useForm(),[Rt,Tt]=(0,te.useState)([]),_t=(0,te.useRef)([]),[bt,Ut]=(0,te.useState)(!1),[Lt,qt]=(0,te.useState)(!1),[Ft,$t]=(0,te.useState)(""),Zt=Rt.some(An=>An.status==="uploading"),Xt=window.location.href.includes("xust.educoder.net"),[Tn,On]=(0,te.useState)(!1),[Mn,rr]=(0,te.useState)([]),[lr,hr]=(0,te.useState)(!1),[er,Qn]=(0,te.useState)(0),[Fn,pr]=(0,te.useState)({page:1,limit:10,type:"",id:""}),wr=(An,xn)=>Ke(void 0,null,function*(){hr(!0);const tr=yield(0,xe.iw)({container_type:An||(Fn==null?void 0:Fn.type),container_id:xn||(Fn==null?void 0:Fn.id),page:Fn.page,limit:Fn.limit});rr(tr==null?void 0:tr.data),Qn(tr==null?void 0:tr.total_count),hr(!1)});(0,te.useEffect)(()=>{var An;((An=ln==null?void 0:ln.current)==null?void 0:An.clientHeight)>80?nr(1):nr(0)},[Wn]),(0,te.useEffect)(()=>{_t.current=Rt},[Rt]),(0,te.useEffect)(()=>{Zn(mn==null?void 0:mn.introduce),Gt(mn==null?void 0:mn.introduce)},[mn==null?void 0:mn.introduce]);const Sr={multiple:!1,withCredentials:!0,showUploadList:!1,fileList:Rt==null?void 0:Rt.map(An=>An.file),beforeUpload:An=>Ke(void 0,null,function*(){var xn,tr,br,Er,Hr;if(((Er=(br=(tr=(xn=An.name)==null?void 0:xn.split("."))==null?void 0:tr.slice(0,-1))==null?void 0:br.join("."))==null?void 0:Er.length)>60)return ie.ZP.warning(`\u300A${An.name}\u300B\u6587\u4EF6\u540D\u79F0\u8FC7\u957F\uFF0C\u65E0\u6CD5\u4E0A\u4F20`),Promise.reject();if([..._t.current.map(ei=>ei.name)].includes(An.name))return ie.ZP.warning(`\u300A${An.name}\u300B\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`),Promise.reject();const Ur=An.size/1024/1024/1024;if(Xt){if(Ur>100)return ie.ZP.warning(`\u300A${An.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(100GB)`),Promise.reject()}else if(Ur>2)return ie.ZP.warning(`\u300A${An.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(2GB)`),Promise.reject();const Tr={id:String(Math.random()).slice(-6),name:An.name,size:An.size,file:An,description:"",percent:0,status:"uploading"};return yr(Tr,{login:(Hr=cn==null?void 0:cn.userInfo)==null?void 0:Hr.login,container_type:"DataSet",container_id:null,description:"",realFileName:!1}),Tt(ei=>[...ei,Tr]),Promise.reject()})},Cr=An=>Ke(void 0,null,function*(){var xn,tr,br;const Er=_t.current.find(Hr=>Hr.name===An.name);(xn=Er==null?void 0:Er.response)!=null&&xn.attachment_id&&(yield(0,Se.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:{attachment_id:(tr=Er==null?void 0:Er.response)==null?void 0:tr.attachment_id}})),Er!=null&&Er.client&&((br=Er==null?void 0:Er.client)==null||br.cancel()),Tt(Hr=>Hr.filter(kr=>kr.name!==An.name))}),Jn=()=>{var An;(An=_t.current)==null||An.forEach(xn=>{var tr;xn!=null&&xn.client&&((tr=xn==null?void 0:xn.client)==null||tr.cancel())})},yr=(An,xn)=>Ke(void 0,null,function*(){var tr,br,Er,Hr,kr,Ur,Tr,ei,si;xn.file_name=An.name;const wi=An.name,Kr=yield(0,Se.ZP)("/api/buckets/get_data_set_token.json",{method:"get"});if((Kr==null?void 0:Kr.status)!==0){Tt(Or=>(Or[Or.findIndex(Pr=>Pr.name===wi)].status="error",[...Or])),ie.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}Kr.data=JSON.parse((0,Pe.pe)(Kr.data));const gi=new(Oe())({endpoint:(tr=Kr==null?void 0:Kr.data)==null?void 0:tr.end_point,region:(br=Kr==null?void 0:Kr.data)==null?void 0:br.region,accessKeyId:(Er=Kr==null?void 0:Kr.data)==null?void 0:Er.access_key_id,accessKeySecret:(Hr=Kr==null?void 0:Kr.data)==null?void 0:Hr.access_key_secret,bucket:(kr=Kr==null?void 0:Kr.data)==null?void 0:kr.bucket,stsToken:(Ur=Kr==null?void 0:Kr.data)==null?void 0:Ur.security_token}),di=An.name.split(".");di.pop();const bi=xn.realFileName?di.join("."):(0,Le.Z)();gi.multipartUpload(`datasets/${xn==null?void 0:xn.login}/${bi}${wi.indexOf(".")>-1?"."+wi.split(".").pop():""}`,new Blob([An.file],{type:An.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Or,Pr,ur)=>{console.log("\u8FDB\u5EA6",Or,Pr,ur),console.log("client--",gi),Tt(Dn=>{const Un=Dn.findIndex(Vn=>Vn.name===wi);return Un!==-1&&(Dn[Un].client=gi,Dn[Un].percent=Or*100,Dn[Un].checkpoint=Pr),[...Dn]})},checkpoint:(ei=_t.current[(Tr=_t.current)==null?void 0:Tr.findIndex(Or=>Or.name===wi)])==null?void 0:ei.checkpoint,callback:{customValue:{id:wi+""},url:(si=Kr==null?void 0:Kr.data)==null?void 0:si.callback_url,host:Kr==null?void 0:Kr.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Se.rz)(xn)}}).then(function(Or){Tt(Pr=>{var ur,Dn,Un;const Vn=Pr.findIndex(cr=>cr.name===wi);let $n="done";return Vn!==-1&&(((ur=Or.data)==null?void 0:ur.status)===0?Pr[Vn].response=(Dn=Or.data)==null?void 0:Dn.data:(ie.ZP.warning((Un=Or.data)==null?void 0:Un.message),$n="error"),Pr[Vn].status=$n),[...Pr]})}).catch(function(Or){console.log("\u63A5\u53E3\u9519\u8BEF\uFF1A",Or),(Or==null?void 0:Or.name)!=="cancel"&&Tt(Pr=>{const ur=Pr.findIndex(Dn=>Dn.name===wi);return ur!==-1&&(Pr[ur].status="error"),[...Pr]})})});return me.createElement("div",{className:re.content},!Ln&&!Wn&&Bn&&me.createElement("div",{className:re.introduceNoData,onClick:()=>{Kn(!0)}},me.createElement("div",{className:re.introduceAdd},me.createElement("i",{className:"icon icon-tianjia4 mr5 font12"})," \u6DFB\u52A0\u6570\u636E\u96C6\u4ECB\u7ECD"),me.createElement("div",{className:re.introduceText},"\u8BA9\u4F60\u7684\u6570\u636E\u96C6\u66F4\u53D7\u6B22\u8FCE")),!Ln&&Wn&&me.createElement("div",{className:re.introduceContent},me.createElement("div",{className:re.introduceTitle},"\u6570\u636E\u96C6\u4ECB\u7ECD",Bn&&me.createElement("i",{className:"icon icon-bianji9 font14 ml10",style:{color:"#3061D0",cursor:"pointer"},onClick:()=>{Kn(!0)}})),me.createElement("div",{className:re.introContentWrap},me.createElement("div",null,me.createElement("div",{ref:rn,style:sr>0?{height:sr===1?80:"auto",overflow:sr===1?"hidden":"auto"}:{paddingRight:0}},me.createElement("div",{ref:ln},me.createElement(ue.Z,{value:Wn,style:{fontSize:"14px"}}))),!!sr&&me.createElement(te.Fragment,null,sr===1?me.createElement("div",{onClick:()=>{nr(2)},className:re.action},"\u5C55\u5F00",me.createElement("i",{className:"iconfont icon-zhankaixiaojiantou",style:{fontSize:"10px",marginLeft:"3px"}})):me.createElement("div",{onClick:()=>{nr(1)},className:re.action},"\u6536\u8D77",me.createElement("i",{className:"iconfont icon-shouqixiaojiantou",style:{fontSize:"10px",marginLeft:"3px"}})))))),Ln&&me.createElement("div",{style:{marginTop:"30px"}},me.createElement(se.Z,{watch:!0,onChange:An=>{Gt(An)},defaultValue:Mt,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26"}),me.createElement("div",{className:re.introduceButton},me.createElement("div",{className:re.close,onClick:An=>{An.stopPropagation(),Kn(!1)}},"\u53D6\u6D88"),me.createElement("div",{className:re.submit,onClick:An=>{An.stopPropagation(),(0,xe.R2)({id:gn==null?void 0:gn.id,introduce:Mt}).then(xn=>{(xn==null?void 0:xn.status)==0&&(ie.ZP.success("\u64CD\u4F5C\u6210\u529F"),Kn(!1),Pn(!0))})}},"\u786E\u8BA4"))),me.createElement("div",{className:re.fileTable},me.createElement("div",null,"\u6587\u4EF6\u5217\u8868"),Bn&&me.createElement("div",{className:re.addBtn,onClick:()=>{Ut(!0)}},"\u4E0A\u4F20\u6587\u4EF6")),me.createElement(ce.default,{dataSource:mn==null?void 0:mn.attachments,pagination:!1,style:{marginTop:"20px"},scroll:{y:300},columns:[{title:"\u6587\u4EF6",align:"left",width:400,dataIndex:"title",ellipsis:!0},{title:"\u5907\u6CE8",align:"left",dataIndex:"description",ellipsis:!0},{title:"\u521B\u5EFA\u65F6\u95F4",align:"left",ellipsis:!0,dataIndex:"created_on",render:An=>me.createElement("span",{style:{color:"#666666"}},An?De()(An).format("YYYY-MM-DD"):"--")},{title:"\u6587\u4EF6\u5927\u5C0F",align:"left",dataIndex:"filesize",ellipsis:!0},{title:"\u4E0B\u8F7D\u6570",align:"center",dataIndex:"downloads",ellipsis:!0,render:(An,xn)=>me.createElement("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:()=>Ke(void 0,null,function*(){var tr;((0,Ne.Ny)()||((tr=cn==null?void 0:cn.userInfo)==null?void 0:tr.login)==="mfflo3p2e")&&(On(!0),Fn.type=xn==null?void 0:xn.container_type,Fn.id=xn==null?void 0:xn.container_id,Fn.page=1,Fn.limit=10,pr(rt({},Fn)),yield wr(xn==null?void 0:xn.container_type,xn==null?void 0:xn.container_id))})},An||"0")},{title:"\u64CD\u4F5C",align:"right",dataIndex:"role",width:Bn?130:60,render:(An,xn,tr)=>me.createElement("span",{style:{color:"#3061D0"}},me.createElement("div",{style:{display:"flex"}},me.createElement("div",{style:{marginRight:"10px",color:"#3061D0",cursor:"pointer"},onClick:()=>Ke(void 0,null,function*(){if(!(0,Ne.bg)()){hn({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}});return}yield(0,Be.Nd)(xn.title,xn==null?void 0:xn.download_url),yield(0,xe.SG)({id:xn==null?void 0:xn.id}),Pn()})},"\u4E0B\u8F7D"),Bn&&me.createElement("div",{style:{marginRight:"10px",color:"#3061D0",cursor:"pointer"},onClick:()=>{var br,Er,Hr,kr;let Ur=(Er=xn==null?void 0:xn.title)==null?void 0:Er.substring(((br=xn==null?void 0:xn.title)==null?void 0:br.lastIndexOf("."))+1);St.setFieldsValue({title:(kr=xn==null?void 0:xn.title)==null?void 0:kr.substring(0,(Hr=xn==null?void 0:xn.title)==null?void 0:Hr.lastIndexOf(".")),description:xn==null?void 0:xn.description}),z.default.confirm({icon:null,title:"\u7F16\u8F91",width:700,centered:!0,content:me.createElement("div",null,me.createElement(pe.default,{form:St,colon:!1,labelCol:{span:3},style:{marginBottom:"-20px"},wrapperCol:{span:21}},me.createElement(pe.default.Item,{label:"\u6587\u4EF6\u540D\u79F0",name:"title",rules:[{required:!0,message:"\u5FC5\u586B\u9879"}]},me.createElement(he.default,{placeholder:"\u6587\u4EF6\u540D\u79F0\u6700\u591A\u53EF\u8F93\u5165255\u5B57",size:"large",suffix:me.createElement("span",null,".",Ur)})),me.createElement(pe.default.Item,{label:"\u5907\u6CE8",name:"description"},me.createElement(Ae.Z,{placeholder:"\u5907\u6CE8\u8BF4\u660E\uFF0C\u6700\u591A255\u5B57",size:"large"})))),onOk:()=>Ke(void 0,null,function*(){yield St.validateFields(),(0,xe.A0)({id:gn==null?void 0:gn.id,attachment_id:xn.id,filename:St.getFieldValue("title")+"."+Ur,description:St.getFieldValue("description")}).then(Tr=>{(Tr==null?void 0:Tr.status)==0&&(ie.ZP.success("\u7F16\u8F91\u6210\u529F"),Pn())})})})}},"\u7F16\u8F91"),Bn&&me.createElement("div",{style:{color:"#9096A3",cursor:"pointer"},onClick:()=>{z.default.confirm({icon:null,centered:!0,title:"\u63D0\u793A",content:"\u5220\u9664\u6570\u636E\u96C6\u4E0D\u4F1A\u5F71\u54CD\u5230\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4F46\u5220\u9664\u540E\u6570\u636E\u5C06\u4E0D\u53EF\u6062\u590D\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664",onOk:()=>Ke(void 0,null,function*(){(0,xe.Il)({attachment_id:xn==null?void 0:xn.id}).then(br=>{(br==null?void 0:br.status)==0&&(ie.ZP.success("\u5220\u9664\u6210\u529F"),hn({type:"user/getUserInfo"}),Pn(!0))})})})}},"\u5220\u9664")))}]}),me.createElement(z.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:bt,title:"\u4E0A\u4F20\u6587\u4EF6",okButtonProps:{loading:Lt,disabled:Zt},width:"1000px",onOk:()=>Ke(void 0,null,function*(){const An=Rt.map(tr=>{var br;return{attachment_id:(br=tr.response)==null?void 0:br.attachment_id,description:Ft}});if(Rt.length===0){ie.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u6587\u4EF6\uFF01");return}qt(!0);const xn=yield(0,Se.ZP)(`/api/data_sets/${gn==null?void 0:gn.id}/upload_attachments.json`,{method:"post",body:{attachments:An}});(xn==null?void 0:xn.status)==0&&(ie.ZP.success("\u4E0A\u4F20\u6210\u529F\uFF01"),Pn(),Ut(!1),hn({type:"user/getUserInfo"})),qt(!1)}),onCancel:()=>{if(Zt){z.default.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{Ut(!1)}});return}Ut(!1)},afterClose:()=>{Tt([]),$t(""),qt(!1),Jn()}},me.createElement("div",{className:re.wrap},me.createElement("div",{className:"mb10"},me.createElement("span",{style:{color:"#ff4d4f",marginRight:"5px"}},"*"),"\u9009\u62E9\u6587\u4EF6 ",me.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7",Xt?"100":"2","GB)")),me.createElement("div",null,me.createElement(ye.default.Dragger,et(rt({},Sr),{height:300}),me.createElement("div",null,me.createElement("i",{className:`iconfont icon-shangchuan font50 ${re.colorBlue}`})),me.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",me.createElement("span",{className:`${re.colorBlue} ml5`},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),me.createElement("div",{className:re.box},Rt.map(An=>me.createElement("div",{key:An.id,className:re.row},me.createElement("div",{style:{display:"flex",alignItems:"center"}},me.createElement("div",{className:re.icon},An.status==="done"&&me.createElement("i",{className:"iconfont icon-wancheng",style:{color:"#19CB70"}}),An.status==="error"&&me.createElement("i",{className:"iconfont icon-cuowu",style:{color:"#E30000",marginLeft:1,fontSize:13}})),me.createElement("div",{style:{flex:1}},me.createElement(be.Z,{title:An==null?void 0:An.name},me.createElement("div",{style:{width:"100%",color:An.status==="error"?"#E30000":"#3061D0",textDecoration:"underline"}},(0,Be.tP)(An==null?void 0:An.name,9))),An.status==="uploading"&&me.createElement(ge.Z,{strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:An.percent,showInfo:!1,style:{width:"900px"}}))),me.createElement("i",{onClick:()=>Cr(An),className:"iconfont icon-shanchu14 font14 ml20",style:{cursor:"pointer",color:"#F65160"}})))),me.createElement("div",{style:{marginTop:"20px"}},"\u5907\u6CE8\uFF1A"),me.createElement("div",null,me.createElement(he.default,{allowClear:!0,value:Ft,onChange:An=>{$t(An.target.value)},bordered:!1,showCount:!0,maxLength:255,placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))),me.createElement(z.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:Tn,title:"\u4E0B\u8F7D\u4FE1\u606F",width:"730px",onCancel:()=>{On(!1)},footer:null},me.createElement("div",null,me.createElement(ce.default,{dataSource:Mn,scroll:{y:47*6},className:"mt10 mb10",loading:lr,pagination:{total:er||0,onChange:(An,xn)=>Ke(void 0,null,function*(){Fn.page=An,Fn.limit=xn,pr(rt({},Fn)),yield wr()}),onShowSizeChange:(An,xn)=>Ke(void 0,null,function*(){Fn.page=1,Fn.limit=xn,pr(rt({},Fn)),yield wr()}),current:Fn==null?void 0:Fn.page,pageSize:Fn==null?void 0:Fn.limit,showTotal:An=>me.createElement(me.Fragment,null,"\u5171",me.createElement("span",{className:"ml5 mr5",style:{color:"#3061d0"}},An),"\u6761\u6570\u636E")},columns:[{title:"\u67E5\u770B\u4EBA",align:"left",width:150,dataIndex:"real_name",ellipsis:!0,render:An=>me.createElement("span",null,An||"--")},{title:"\u5355\u4F4D",align:"left",width:260,ellipsis:!0,dataIndex:"school_name",render:An=>me.createElement("span",null,An||"--")},{title:"\u90E8\u95E8",align:"left",width:150,ellipsis:!0,dataIndex:"department_name",render:An=>me.createElement("span",null,An||"--")},{title:"\u6240\u9009\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,render:An=>me.createElement("span",{style:{color:"#666666"}},An?De()(An).format("YYYY-MM-DD"):"--")}]}))))};var Xe=(0,Ot.connect)(({polls:Vt,loading:Wt,user:Ht,globalSetting:hn})=>({polls:Vt,globalSetting:hn,user:Ht,loading:Wt.effects}))(Ye),ot=Te(26227),Qe=Te(77019),ft=Te(5269),at=Te(7939),qe={flex_box_center:"flex_box_center___kjELP",flex_space_between:"flex_space_between___IoBKu",flex_box_vertical_center:"flex_box_vertical_center___NuujF",flex_box_center_end:"flex_box_center_end___Kc5UK",flex_box_column:"flex_box_column___ebFBu",reply:"reply___xDf2z",replyList:"replyList___zMH5f",comment:"comment___qHsYF",content:"content___vTju0",commentItem:"commentItem___aGdcc",commentParItem:"commentParItem___XkqkQ",submitStyle:"submitStyle___RwXx8"},Fe=Te(84493),Re=Te(59301),ne=Object.defineProperty,fe=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Ie=(Vt,Wt,Ht)=>Wt in Vt?ne(Vt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Vt[Wt]=Ht,$e=(Vt,Wt)=>{for(var Ht in Wt||(Wt={}))we.call(Wt,Ht)&&Ie(Vt,Ht,Wt[Ht]);if(ze)for(var Ht of ze(Wt))ve.call(Wt,Ht)&&Ie(Vt,Ht,Wt[Ht]);return Vt},Ge=(Vt,Wt)=>fe(Vt,Me(Wt)),Je=(Vt,Wt,Ht)=>new Promise((hn,cn)=>{var mn=gn=>{try{Pn(Ht.next(gn))}catch(Ln){cn(Ln)}},Bn=gn=>{try{Pn(Ht.throw(gn))}catch(Ln){cn(Ln)}},Pn=gn=>gn.done?hn(gn.value):Promise.resolve(gn.value).then(mn,Bn);Pn((Ht=Ht.apply(Vt,Wt)).next())});De().locale("ZH-cn");function ut({user:Vt,vlist:Wt=[],dispatch:Ht,params:hn,id:cn,memo_replies:mn,forumsDetail:Bn}){return Re.createElement("aside",{className:qe.comment},Wt.map(function(Pn,gn){var Ln,Kn;return Re.createElement(Qe.Z,{key:gn,className:qe.commentItem},Re.createElement(ft.Z,{span:24},Re.createElement(Qe.Z,null,Re.createElement(ft.Z,{flex:"1"},Re.createElement("a",{href:`/users/${Pn.user_login}`,target:"_blank",style:{color:"#9096A3",fontSize:"12px"}},Pn==null?void 0:Pn.username),Re.createElement("span",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px"}},Pn.time)),(Pn.can_delete||Pn.user_id===((Ln=Vt.userInfo)==null?void 0:Ln.user_id)||Pn.user_login===((Kn=Vt.userInfo)==null?void 0:Kn.login))&&Re.createElement(ft.Z,{className:"forums-comment-delete",style:{display:"none"}},Re.createElement(be.Z,{title:"\u5220\u9664"},Re.createElement(ot.Z,{className:"current",onClick:()=>{z.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Re.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>Je(this,null,function*(){const sr=yield(0,Fe.sW)({id:Pn.id,memo_type:"data_set"}),nr=mn.find(ln=>ln.id===cn).children.filter(ln=>ln.id!==Pn.id);mn.find(ln=>ln.id===cn).children=nr,Ht({type:"forumsDetail/setForumsDetailData",payload:Ge($e({},Bn.forumsDetailData),{memo_replies:[...mn],memo_type:"data_set"})})})})}}))))),Re.createElement(ft.Z,null,Re.createElement(ue.Z,{value:Pn.content,style:{color:"#232B40",fontSize:"14px"}})))}))}var lt=ut,vt=Te(59301),ct=Object.defineProperty,st=Object.defineProperties,At=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Et=(Vt,Wt,Ht)=>Wt in Vt?ct(Vt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Vt[Wt]=Ht,kt=(Vt,Wt)=>{for(var Ht in Wt||(Wt={}))Dt.call(Wt,Ht)&&Et(Vt,Ht,Wt[Ht]);if(mt)for(var Ht of mt(Wt))jt.call(Wt,Ht)&&Et(Vt,Ht,Wt[Ht]);return Vt},Nt=(Vt,Wt)=>st(Vt,At(Wt)),yt=(Vt,Wt,Ht)=>new Promise((hn,cn)=>{var mn=gn=>{try{Pn(Ht.next(gn))}catch(Ln){cn(Ln)}},Bn=gn=>{try{Pn(Ht.throw(gn))}catch(Ln){cn(Ln)}},Pn=gn=>gn.done?hn(gn.value):Promise.resolve(gn.value).then(mn,Bn);Pn((Ht=Ht.apply(Vt,Wt)).next())});De().locale("ZH-cn");const Pt=({user:Vt,forumsDetail:Wt,globalSetting:Ht,loading:hn,dispatch:cn,handleClick:mn,memoId:Bn},Pn)=>{const{memo:gn,memo_replies:Ln}=Wt.forumsDetailData||{},Kn=(0,Ot.useParams)(),[sr,nr]=(0,te.useState)(""),[ln,rn]=(0,te.useState)(""),[Wn,Zn]=(0,te.useState)(-1),[Mt,Gt]=(0,te.useState)(!1),[St,Rt]=(0,te.useState)(!1),[Tt,_t]=(0,te.useState)(1);(0,te.useEffect)(()=>{Gt((gn==null?void 0:gn.reply_for_memo_count)>10)},[gn==null?void 0:gn.reply_for_memo_count]),(0,te.useEffect)(()=>{cn({type:"forumsDetail/getForumsDetailData",payload:{id:Bn,memo_type:"data_set"}})},[]);const bt=()=>yt(void 0,null,function*(){var Lt;const qt=Tt+1;_t(qt);const Ft=yield(0,Fe.z5)({id:Bn,page:qt,memo_type:"data_set"});Ft!=null&&Ft.memo_replies&&(cn({type:"forumsDetail/setForumsDetailData",payload:Nt(kt({},Wt.forumsDetailData),{memo_replies:[...Ln,...Ft.memo_replies]})}),Gt(((Lt=Ft.memo_replies)==null?void 0:Lt.length)===10))}),Ut=Lt=>{var qt,Ft,$t,Zt;return Nt(kt({},Lt),{image_url:(qt=Vt.userInfo)==null?void 0:qt.image_url,children:[],user_id:(Ft=Vt.userInfo)==null?void 0:Ft.user_id,user_login:($t=Vt.userInfo)==null?void 0:$t.login,username:(Zt=Vt.userInfo)==null?void 0:Zt.username,time:`${(0,Be.li)((new Date().getTime()-new Date(Lt.created_at).getTime())/1e3)}\u524D`})};return vt.createElement("section",{className:qe.wrap},!!(Ln!=null&&Ln.length)&&vt.createElement("aside",{className:qe.content},vt.createElement("aside",{className:qe.replyList},Ln==null?void 0:Ln.map(function(Lt,qt){var Ft,$t,Zt;return vt.createElement(Qe.Z,{gutter:[12,12],key:qt},vt.createElement(ft.Z,{flex:"40px"},vt.createElement("a",{href:`/users/${Lt.user_login}`,target:"_blank"},vt.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",width:"46",height:"46",src:`${ae.Z.IMG_SERVER}/images/${Lt==null?void 0:Lt.image_url}`}))),vt.createElement(ft.Z,{flex:"1"},vt.createElement(Qe.Z,{align:"middle",className:qe.commentParItem},vt.createElement(ft.Z,{span:24},vt.createElement(Qe.Z,null,vt.createElement(ft.Z,{flex:"1"},vt.createElement("a",{href:`/users/${Lt.user_login}`,target:"_blank"},vt.createElement("span",{style:{color:"#9096A3",fontSize:"12px"}},Lt==null?void 0:Lt.username)),vt.createElement("span",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px"}},Lt.time)),(Lt.can_delete||Lt.user_id===((Ft=Vt.userInfo)==null?void 0:Ft.user_id)||Lt.user_login===(($t=Vt.userInfo)==null?void 0:$t.login))&&vt.createElement(ft.Z,{className:"forums-comment-par-delete",style:{display:"none"}},vt.createElement(be.Z,{title:"\u5220\u9664"},vt.createElement(ot.Z,{className:"current",onClick:()=>{z.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:vt.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>yt(this,null,function*(){const Xt=yield(0,Fe.sW)({id:Lt.id,memo_type:"data_set"}),Tn=Ln.filter(On=>On.id!==Lt.id);cn({type:"forumsDetail/setForumsDetailData",payload:Nt(kt({},Wt.forumsDetailData),{memo_replies:[...Tn],memo_type:"data_set"})})})})}}))))),vt.createElement(ft.Z,{span:24,style:{marginTop:"5px"}},vt.createElement("div",{onClick:mn},vt.createElement(ue.Z,{value:Lt.content,style:{color:"#232B40",fontSize:"14px"}}))),!!((Zt=Lt==null?void 0:Lt.children)!=null&&Zt.length)&&vt.createElement(lt,{user:Vt,id:Lt==null?void 0:Lt.id,vlist:Lt==null?void 0:Lt.children,dispatch:cn,params:Kn,memo_replies:Ln,forumsDetail:Wt}),vt.createElement(ft.Z,{span:24,className:"mt5 c-light-black"},Wn===qt?vt.createElement("aside",null,vt.createElement(se.Z,{onChange:Xt=>{rn(Xt)},height:150,isFocus:!0,placeholder:"\u6211\u8981\u56DE\u590D..."}),vt.createElement(Qe.Z,null,vt.createElement(ft.Z,{span:24,className:"tr"},vt.createElement(at.ZP,{type:"primary",size:"middle",onClick:()=>yt(this,null,function*(){if(ln==="")ie.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const Xt=yield(0,Fe.ts)({parent_id:Lt.id,content:ln,memo_type:"data_set"});rn(null),Xt&&(Zn(-1),Ln.find(Tn=>Tn.id===Xt.parent_id).children.push(Ut(Xt)),cn({type:"forumsDetail/setForumsDetailData",payload:Nt(kt({},Wt.forumsDetailData),{memo:Nt(kt({},gn),{reply_for_memo_count:(gn==null?void 0:gn.reply_for_memo_count)+1}),memo_replies:[...Ln],memo_type:"data_set"})}))}})},"\u53D1\u9001")))):vt.createElement("div",{className:"tr",style:{textAlign:"left"}},vt.createElement("span",{className:"iconfont icon-xiaopinglun mr30 current font14",onClick:()=>Zn(qt)}),vt.createElement(be.Z,{title:Lt.user_praise?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},vt.createElement("span",{className:Lt.user_praise?"c-orange":"c-gery-888"},vt.createElement("i",{className:"iconfont icon-dianzan4 mr5 current font14",onClick:()=>yt(this,null,function*(){const Xt=yield(0,Fe.vL)({id:Lt.id,container_type:"Memo",type:Lt.user_praise?0:1,memo_type:"data_set"});(Xt==null?void 0:Xt.praise_count)>=0&&(Ln.find(Tn=>Tn.id===Lt.id).user_praise=!Lt.user_praise,Ln.find(Tn=>Tn.id===Lt.id).praise_count=Xt==null?void 0:Xt.praise_count,cn({type:"forumsDetail/setForumsDetailData",payload:Nt(kt({},Wt.forumsDetailData),{memo_replies:[...Ln],memo_type:"data_set"})}))})}),Lt.praise_count>0?Lt.praise_count:"")))))))}))),Mt&&vt.createElement("aside",{className:"bg-white pb20",style:{display:"flex",justifyContent:"center",marginTop:"20px"}},vt.createElement(Qe.Z,{justify:"space-between"},vt.createElement(ft.Z,null),vt.createElement(ft.Z,null,Mt&&vt.createElement("a",{style:{color:"#3061D0",fontSize:"14px"},onClick:bt},"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA",vt.createElement("i",{className:"icon icon-zhankaixiaojiantou ",style:{fontSize:"10px",marginLeft:"3px"}}))))),vt.createElement("aside",{className:qe.reply},vt.createElement(se.Z,{onBlur:()=>Rt(!1),isFocus:St,defaultValue:sr,id:"writeForumsReviewId",onChange:Lt=>{nr(Lt)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),vt.createElement(Qe.Z,null,vt.createElement(ft.Z,{flex:"1"}),vt.createElement(ft.Z,null,vt.createElement("div",{className:qe.submitStyle,style:{width:"60px",height:"32px",textAlign:"center"},onClick:()=>yt(void 0,null,function*(){if(sr==="")ie.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const Lt=yield(0,Fe.ts)({parent_id:gn==null?void 0:gn.id,content:sr,memo_type:"data_set"});nr(null),Lt&&cn({type:"forumsDetail/setForumsDetailData",payload:Nt(kt({},Wt.forumsDetailData),{memo:Nt(kt({},gn),{reply_for_memo_count:(gn==null?void 0:gn.reply_for_memo_count)+1}),memo_replies:[Ut(Lt),...Ln],memo_type:"data_set"})})}})},"\u53D1\u9001")))))};var Kt=(0,Ot.connect)(({user:Vt,forumsDetail:Wt,loading:Ht,globalSetting:hn})=>({user:Vt,forumsDetail:Wt,globalSetting:hn,loading:Ht.models.forumsDetail}),null,null,{forwardRef:!0})((0,te.forwardRef)(Pt)),nn=Te(29596),xt=Te(951),Ct=Te(59301),zt=Object.defineProperty,en=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,Nn=(Vt,Wt,Ht)=>Wt in Vt?zt(Vt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Vt[Wt]=Ht,_n=(Vt,Wt)=>{for(var Ht in Wt||(Wt={}))un.call(Wt,Ht)&&Nn(Vt,Ht,Wt[Ht]);if(en)for(var Ht of en(Wt))Cn.call(Wt,Ht)&&Nn(Vt,Ht,Wt[Ht]);return Vt},yn=(Vt,Wt,Ht)=>new Promise((hn,cn)=>{var mn=gn=>{try{Pn(Ht.next(gn))}catch(Ln){cn(Ln)}},Bn=gn=>{try{Pn(Ht.throw(gn))}catch(Ln){cn(Ln)}},Pn=gn=>gn.done?hn(gn.value):Promise.resolve(gn.value).then(mn,Bn);Pn((Ht=Ht.apply(Vt,Wt)).next())});let Rn={public:"\u516C\u5F00\u6570\u636E\u96C6",mine:"\u6211\u7684\u6570\u636E\u96C6",share:"\u56E2\u961F\u5171\u4EAB",collect:"\u6211\u6536\u85CF\u7684"};const pn=({polls:Vt,globalSetting:Wt,loading:Ht,dispatch:hn,user:cn})=>{var mn,Bn,Pn;const gn=(0,Ot.useParams)(),[Ln]=(0,Ot.useSearchParams)(),[Kn,sr]=(0,te.useState)(!1),[nr,ln]=(0,te.useState)(1),[rn,Wn]=(0,te.useState)(null),[Zn,Mt]=(0,te.useState)(""),[Gt,St]=(0,te.useState)(),[Rt,Tt]=(0,te.useState)(1),[_t,bt]=(0,te.useState)(1),Ut=(0,te.useRef)([]),[Lt,qt]=(0,te.useState)([]),[Ft,$t]=(0,te.useState)(!1),[Zt,Xt]=(0,te.useState)(!1),[Tn,On]=(0,te.useState)(!1),[Mn,rr]=(0,te.useState)([]),[lr,hr]=(0,te.useState)(!1),[er,Qn]=(0,te.useState)(0),[Fn,pr]=(0,te.useState)({page:1,limit:10}),wr=()=>yn(void 0,null,function*(){hr(!0);const xn=yield(0,xe.iw)({container_type:rn==null?void 0:rn.container_type,container_id:rn==null?void 0:rn.container_id,page:Fn==null?void 0:Fn.page,limit:Fn==null?void 0:Fn.limit});(xn==null?void 0:xn.status)==0&&(rr(xn==null?void 0:xn.data),Qn(xn==null?void 0:xn.total_count),hr(!1))});(0,te.useEffect)(()=>{Jn(),(0,Se.ZP)("/api/teach_group_shares.json",{method:"get"}).then(xn=>{(xn==null?void 0:xn.status)==0&&qt(xn==null?void 0:xn.groups)})},[]),(0,te.useEffect)(()=>{nr==2&&Cr()},[nr,Rt]);const Sr=(xn,tr)=>(xn=Math.max(xn,0),tr=Math.max(tr,1),Math.ceil(xn/tr)),Cr=()=>{(0,xe.Ce)({id:gn==null?void 0:gn.id,page:Rt,limit:16}).then(xn=>{var tr,br;(xn==null?void 0:xn.status)==0&&(St((tr=xn==null?void 0:xn.data)==null?void 0:tr.shixuns),bt(Sr((br=xn==null?void 0:xn.data)==null?void 0:br.count,16)))})},Jn=(xn=!1)=>{Xt(!0),(0,xe.Ru)(gn==null?void 0:gn.id).then(tr=>{var br,Er;(tr==null?void 0:tr.status)==0&&(Wn(tr==null?void 0:tr.data),sr((0,Ne.Ny)()||((br=tr==null?void 0:tr.data)==null?void 0:br.is_creator)),Ut.current=(Er=tr==null?void 0:tr.data)==null?void 0:Er.share_group_ids,xn&&Mt(new Date),Xt(!1))})},yr=()=>{$t(!1)},An=()=>{Jn(),$t(!1)};return Ct.createElement(y.Z,{spinning:Zt},Ct.createElement("section",{className:x.bg},rn&&Ct.createElement(Ct.Fragment,null,Ct.createElement("div",{className:"edu-container"},Ct.createElement("aside",{className:"mt10"},Ct.createElement(je.Z,{separator:">"},Ct.createElement(je.Z.Item,null,Ct.createElement(Ot.Link,{to:"/dataset"},"\u6570\u636E\u96C6")),Ct.createElement(je.Z.Item,null,Ct.createElement(Ot.Link,{to:`/dataset?tabId=${Ln.get("tabId")}`},Rn[Ln.get("tabId")])),Ct.createElement(je.Z.Item,null,rn==null?void 0:rn.title))),Ct.createElement("aside",{className:x.wrap},Ct.createElement("div",{className:x.leftContent,style:{width:Kn?"78%":"87%"}},Ct.createElement("div",{className:x.header},Ct.createElement("div",{className:x.headerBack,onClick:()=>{Ot.history.push(`/dataset?tabId=${Ln.get("tabId")}`)}},Ct.createElement("i",{className:"iconfont icon-fanhui4 ",style:{fontSize:"10px",margin:"0 3px 0 5px"}}),"\u8FD4\u56DE"),Ct.createElement("div",{className:x.title},rn==null?void 0:rn.title),Ct.createElement("div",{className:x.time},rn==null?void 0:rn.create_at)),Ct.createElement("div",{className:x.introduction},rn==null?void 0:rn.desc),Ct.createElement("div",{className:x.bottom},((mn=rn==null?void 0:rn.user_info)==null?void 0:mn.image_url)&&Ct.createElement("img",{className:x.user_img,alt:"\u7528\u6237\u5934\u50CF",src:`${ae.Z.IMG_SERVER}/images/${(Bn=rn==null?void 0:rn.user_info)==null?void 0:Bn.image_url}`}),Ct.createElement("div",{className:x.user_name},rn==null?void 0:rn.user_info_name),(Pn=rn==null?void 0:rn.data_set_tags)==null?void 0:Pn.map((xn,tr)=>{var br;return tr<3?Ct.createElement("div",{key:tr,className:x.tags_name},xn==null?void 0:xn.tag_name):tr==3?Ct.createElement(be.Z,{key:tr,title:(br=rn==null?void 0:rn.data_set_tags)==null?void 0:br.map((Er,Hr)=>{var kr;if(Hr>2)return(Er==null?void 0:Er.tag_name)+(Hr===((kr=rn==null?void 0:rn.data_set_tags)==null?void 0:kr.length)-1?"":"\u3001")}).join("")},Ct.createElement("div",{key:tr,className:x.tags_name},"...")):null}),Ct.createElement("div",{className:x.buttonList},Ct.createElement(be.Z,{title:`\u5F15\u7528\u6570\uFF1A${rn==null?void 0:rn.used_count}`},Ct.createElement("div",{className:`${x.buttonItem} current`},Ct.createElement("i",{className:"iconfont icon-yinyong font12 mr5"}),rn==null?void 0:rn.used_count)),Ct.createElement(be.Z,{title:`\u6D4F\u89C8\u6570\uFF1A${rn==null?void 0:rn.visited_count}`},Ct.createElement("div",{className:`${x.buttonItem} current`,onClick:()=>yn(void 0,null,function*(){var xn;((0,Ne.Ny)()||((xn=cn==null?void 0:cn.userInfo)==null?void 0:xn.login)==="mfflo3p2e")&&(On(!0),Fn.page=1,Fn.limit=10,pr(_n({},Fn)),yield wr())})},Ct.createElement("i",{className:"iconfont icon-chakanrenshu font12 mr5"}),rn==null?void 0:rn.visited_count)),Ct.createElement(be.Z,{title:`\u8BC4\u8BBA\u6570\uFF1A${rn==null?void 0:rn.comment_count}`},Ct.createElement("div",{className:`${x.buttonItem} current`},Ct.createElement("i",{className:"iconfont icon-xiaopinglun font12 mr5"}),rn==null?void 0:rn.comment_count))))),Ct.createElement("div",{className:x.rightContent,style:{width:Kn?"22%":"13%"}},Kn?Ct.createElement("div",{style:{display:"flex",marginLeft:"auto"}},Ct.createElement("div",{className:x.share,onClick:()=>yn(void 0,null,function*(){z.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5171\u4EAB\u81F3\u6559\u7814\u56E2\u961F",maskClosable:!0,icon:null,content:Ct.createElement("div",{className:`font14 ${x.overflow}`},Ct.createElement("div",{className:x.tips},"\u63D0\u793A\uFF1A\u5171\u4EAB\u540E\u7684\u6570\u636E\u96C6\u652F\u6301\u56E2\u961F\u6210\u5458\u8FDB\u884C\u7F16\u8F91\uFF0C\u5982\u9700\u64A4\u9500\u672C\u6570\u636E\u96C6\u5BF9\u9009\u4E2D\u6559\u7814\u56E2\u961F\u7684\u5206\u4EAB\uFF0C\u53D6\u6D88\u9009\u4E2D\u5E76\u786E\u5B9A\u5373\u53EF\u3002"),Ct.createElement(E.default.Group,{style:{marginTop:"10px"},defaultValue:rn==null?void 0:rn.share_group_ids,onChange:xn=>{Ut.current=xn}},Lt==null?void 0:Lt.map(xn=>Ct.createElement(E.default,{key:xn==null?void 0:xn.group_id,value:xn==null?void 0:xn.group_id},xn==null?void 0:xn.name)))),onOk:()=>{(0,xe.l5)({ids:[rn==null?void 0:rn.id],clazz:"DataSet",group_ids:Ut.current}).then(xn=>{(xn==null?void 0:xn.status)==0&&(ie.ZP.success("\u5171\u4EAB\u6210\u529F"),Jn())})}})})},"\u5171\u4EAB"),Ct.createElement("div",{className:x.publicStyle,onClick:()=>{z.default.confirm({centered:!0,okText:"\u786E\u5B9A",icon:null,cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:(rn==null?void 0:rn.public_status)==0?"\u7533\u8BF7\u516C\u5F00\u9700\u8981\u5F85\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\u540E\uFF0C\u81EA\u52A8\u516C\u5F00":(rn==null?void 0:rn.public_status)==1?"\u53D6\u6D88\u516C\u5F00\u540E\uFF0C\u5176\u4ED6\u7528\u6237\u5C06\u4E0D\u53EF\u89C1\uFF0C\u540C\u65F6\u518D\u6B21\u516C\u5F00\u9700\u8981\u91CD\u65B0\u8FDB\u884C\u7533\u8BF7":"\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u540E\uFF0C\u7533\u8BF7\u8BB0\u5F55\u5C06\u5220\u9664\uFF0C\u5982\u9700\u516C\u5F00\u8BF7\u518D\u6B21\u7533\u8BF7",onOk:()=>yn(void 0,null,function*(){let xn;switch(rn==null?void 0:rn.public_status){case 0:xn=(0,xe.To)(rn==null?void 0:rn.id);break;case 1:xn=(0,xe.a6)(rn==null?void 0:rn.id);break;case 2:xn=(0,xe.Dx)(rn==null?void 0:rn.id);break;default:return}xn.then(tr=>{(tr==null?void 0:tr.status)===0&&(ie.ZP.success("\u64CD\u4F5C\u6210\u529F"),Jn())})})})}},(rn==null?void 0:rn.public_status)==0?"\u7533\u8BF7\u516C\u5F00":(rn==null?void 0:rn.public_status)==1?"\u53D6\u6D88\u516C\u5F00":"\u64A4\u9500\u7533\u8BF7\u516C\u5F00"),Ct.createElement(oe.Z,{menu:{items:[{label:Ct.createElement("div",null,"\u7F16\u8F91"),key:"4",onClick:()=>{$t(!0)}},{label:Ct.createElement("div",{onClick:()=>{z.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,content:"\u5220\u9664\u6570\u636E\u96C6\u4E2D\u7684\u6587\u4EF6\u4E0D\u4F1A\u5F71\u54CD\u5230\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4F46\u5220\u9664\u540E\u6570\u636E\u5C06\u4E0D\u53EF\u6062\u590D\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664",onOk(){return yn(this,null,function*(){(0,xe.pP)(rn==null?void 0:rn.id).then(xn=>{(xn==null?void 0:xn.status)==0&&(ie.ZP.success("\u5220\u9664\u6210\u529F"),Ot.history.push("/dataset"))})})}})}},"\u5220\u9664"),key:"5"}]}},Ct.createElement("div",{className:x.more},Ct.createElement("i",{className:"iconfont icon-gengduo6 font12"})))):Ct.createElement("div",{className:rn!=null&&rn.current_user_is_collect?x.collectActiveStyle:x.collectStyle,onClick:()=>{let xn;rn!=null&&rn.current_user_is_collect?xn=(0,xe.R9)({container_id:rn==null?void 0:rn.id,container_type:"DataSet"}):xn=(0,xe.nW)({container_id:rn==null?void 0:rn.id,container_type:"DataSet"}),xn.then(tr=>{(tr==null?void 0:tr.status)===0&&Jn()})}},Ct.createElement("i",{className:"iconfont icon-shoucang4 font12"})," ",rn==null?void 0:rn.collect_count))),Ct.createElement("div",{className:x.content},Ct.createElement("div",{style:{display:"flex",alignItems:"center"}},Ct.createElement(ee.ZP.Group,{className:x.addTypeRadio,optionType:"button",options:[{label:"\u8BE6\u60C5",value:1},{label:"\u5B9E\u8DF5\u9879\u76EE",value:2},{label:"\u8BA8\u8BBA",value:3}],onChange:xn=>{var tr;ln((tr=xn==null?void 0:xn.target)==null?void 0:tr.value)},value:nr}),Ct.createElement("div",{className:x.addBtn,onClick:()=>{window.open(`/shixuns/new?dataSetId=${gn==null?void 0:gn.id}`)}},"\u521B\u5EFA\u5B9E\u8DF5\u9879\u76EE")),nr==1&&Ct.createElement(Xe,{dataSetInfo:rn,getInfo:Jn,key:Zn,indexType:Kn}),nr==2&&Ct.createElement("div",null,Ct.createElement("div",{className:x.shixunTooltip},Ct.createElement("i",{className:"icon icon-tishi11 font12 mr10"}),"\u6E29\u99A8\u63D0\u793A\uFF1A\u4EC5\u5C55\u793A\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u4E14\u516C\u5F00\u7684\u5B9E\u8DF5\u9879\u76EE"),Ct.createElement(nn.wb,{dataSource:Gt,right:23,col:4,precision:1,loading:!1,wrapWidth:1140,trackEventItems:["\u5B9E\u8DF5\u9879\u76EE","\u9996\u9875","\u5B9E\u8BAD\u5217\u8868\u67E5\u770B\u8BE6\u60C5"]}),_t>1&&Ct.createElement("div",{className:x.pageStyle},Ct.createElement("div",{className:Rt==1?x.pageUnCan:x.pageCan,style:{marginRight:"10px"},onClick:()=>{Rt>1&&Tt(Rt-1)}},"\u4E0A\u4E00\u9875"),Ct.createElement("div",{className:Rt==_t?x.pageUnCan:x.pageCan,style:{marginLeft:"10px"},onClick:()=>{Rt<_t&&Tt(Rt+1)}},"\u4E0B\u4E00\u9875"))),nr==3&&Ct.createElement(Kt,{memoId:rn==null?void 0:rn.memo_id})))),Ct.createElement(xt.Z,{dataSetInfo:rn,visible:Ft,onClose:yr,onSuccess:An}),Ct.createElement(z.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:Tn,title:"\u6D4F\u89C8\u4FE1\u606F",width:"730px",onCancel:()=>{On(!1)},footer:null},Ct.createElement("div",null,Ct.createElement(ce.default,{dataSource:Mn,loading:lr,className:"mt10 mb10",scroll:{y:47*6},pagination:{total:er||0,onChange:(xn,tr)=>{Fn.page=xn,Fn.limit=tr,pr(_n({},Fn)),wr()},current:Fn==null?void 0:Fn.page,pageSize:Fn==null?void 0:Fn.limit,showTotal:xn=>Ct.createElement(Ct.Fragment,null,"\u5171",Ct.createElement("span",{className:"ml5 mr5",style:{color:"#3061d0"}},xn),"\u6761\u6570\u636E")},columns:[{title:"\u67E5\u770B\u4EBA",align:"left",width:150,dataIndex:"real_name",ellipsis:!0,render:xn=>Ct.createElement("span",null,xn||"--")},{title:"\u5355\u4F4D",align:"left",width:260,ellipsis:!0,dataIndex:"school_name",render:xn=>Ct.createElement("span",null,xn||"--")},{title:"\u90E8\u95E8",align:"left",width:150,ellipsis:!0,dataIndex:"department_name",render:xn=>Ct.createElement("span",null,xn||"--")},{title:"\u6240\u9009\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,render:xn=>Ct.createElement("span",{style:{color:"#666666"}},xn?De()(xn).format("YYYY-MM-DD"):"--")}]})))))};var on=(0,Ot.connect)(({polls:Vt,loading:Wt,user:Ht,globalSetting:hn})=>({polls:Vt,globalSetting:hn,user:Ht,loading:Wt.effects}))(pn)},46709:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ce}});var te=Te(59301),Ot=Te(63823),y=Te(82326),je=Te(29787),be=Te(6767),z={flex_box_center:"flex_box_center___OmLFa",flex_space_between:"flex_space_between___Pwqhp",flex_box_vertical_center:"flex_box_vertical_center___UJzms",flex_box_center_end:"flex_box_center_end___qMu25",flex_box_column:"flex_box_column___AimtA",selectList:"selectList___hGJUN",selectHeader:"selectHeader___HxdBZ",selectContent:"selectContent___oWjby",contentTitle:"contentTitle___xlVyW",contentTags:"contentTags___BGCLU",tagName:"tagName___MIGDL",tagNameActive:"tagNameActive___JCRev",activeStyle:"activeStyle___FvXnt",activeLabel:"activeLabel___RzW9T",activeValue:"activeValue___qxoch",activeItem:"activeItem___NfFjA",activeClose:"activeClose___Su7dS",activeSubmit:"activeSubmit___gjhQA"},E=Te(65212),ie=Te(59301),oe=(x,ae,re)=>new Promise((se,ue)=>{var pe=ge=>{try{ye(re.next(ge))}catch(xe){ue(xe)}},he=ge=>{try{ye(re.throw(ge))}catch(xe){ue(xe)}},ye=ge=>ge.done?se(ge.value):Promise.resolve(ge.value).then(pe,he);ye((re=re.apply(x,ae)).next())});const ee=({user:x,width:ae,selectWidth:re,tags:se,getDataSet:ue,placeholder:pe="\u5168\u90E8\u6807\u7B7E",isTagsValue:he=!1})=>{const[ye,ge]=(0,te.useState)([]),[xe,ke]=(0,te.useState)([]),[De,Be]=(0,te.useState)(!1),Ae=(0,te.useRef)(null);(0,te.useEffect)(()=>{Se()},[]);const Se=()=>oe(void 0,null,function*(){Be(!0),yield(0,E.bj)({}).then(Oe=>{(Oe==null?void 0:Oe.status)==0&&ge(Oe==null?void 0:Oe.data)}),Be(!1)}),Ee=se==null?void 0:se.map(Oe=>Oe.tag_name).join("\u3001");return ie.createElement(y.default,{onFocus:()=>{ke(se)},ref:Ae,style:{width:re?re+"px":300},placeholder:(se==null?void 0:se.length)>0?he?ie.createElement("span",{className:"c-grey-333"},Ee):`\u5DF2\u9009\u4E2D${se==null?void 0:se.length}\u4E2A\u6807\u7B7E`:pe,size:"large",dropdownStyle:{width:ae+"px",zIndex:1e3},className:z.selectStyle,dropdownRender:()=>ie.createElement("div",{className:z.selectList,style:{width:ae+"px"}},ie.createElement("div",{className:z.selectHeader},"\u8BF7\u9009\u62E91\uFF5E5\u4E2A\u6807\u7B7E"),ie.createElement(je.Z,{spinning:De},ie.createElement("div",{className:z.selectContent},ye==null?void 0:ye.map((Oe,Pe)=>{var Le;return ie.createElement("aside",{key:Pe},ie.createElement("div",{className:z.contentTitle,style:{marginTop:Pe>0?"20px":"0"}},Oe==null?void 0:Oe.tag_type_cn),ie.createElement("div",{className:z.contentTags},(Le=Oe==null?void 0:Oe.child)==null?void 0:Le.map((Ne,me)=>{var Ve;return ie.createElement("div",{key:me,className:(Ve=xe==null?void 0:xe.map(Ze=>Ze==null?void 0:Ze.id))!=null&&Ve.includes(Ne==null?void 0:Ne.id)?z.tagNameActive:z.tagName,onClick:()=>{var Ze;(Ze=xe==null?void 0:xe.map(We=>We==null?void 0:We.id))!=null&&Ze.includes(Ne==null?void 0:Ne.id)?ke(xe.filter(We=>(We==null?void 0:We.id)!=(Ne==null?void 0:Ne.id))):(xe==null?void 0:xe.length)<5?ke([...xe,Ne]):be.ZP.warning("\u6700\u591A\u53EF\u9009\u62E95\u4E2A\u6807\u7B7E")}},Ne==null?void 0:Ne.tag_name)})))}))),ie.createElement("div",{className:z.activeStyle},ie.createElement("div",{className:z.activeLabel},"\u5DF2\u9009\u6807\u7B7E:"),ie.createElement("div",{className:z.activeValue,style:{width:ae-120+"px"}},xe==null?void 0:xe.map((Oe,Pe)=>ie.createElement("div",{key:Pe,className:z.activeItem},Oe==null?void 0:Oe.tag_name,ie.createElement("i",{className:"iconfont icon-guanbi11 ml5 mr5",style:{fontSize:"10px",cursor:"pointer"},onClick:()=>{ke(xe.filter(Le=>(Le==null?void 0:Le.id)!==(Oe==null?void 0:Oe.id)))}}))))),ie.createElement("div",{style:{display:"flex",marginBottom:"20px"}},ie.createElement("div",{className:z.activeClose,onClick:Oe=>{Oe.stopPropagation(),ue([...se]),ke([]),setTimeout(()=>{Ae.current&&Ae.current.blur()},10)}},"\u53D6\u6D88"),ie.createElement("div",{className:z.activeSubmit,onClick:Oe=>{Oe.stopPropagation(),ue([...xe]),ke([]),setTimeout(()=>{Ae.current&&Ae.current.blur()},10)}},"\u786E\u8BA4")))})};var ce=(0,Ot.connect)(({user:x})=>({user:x}))(ee)},65212:function(In,Yt,Te){"use strict";Te.d(Yt,{A0:function(){return De},Ce:function(){return he},Dx:function(){return x},Il:function(){return ke},R2:function(){return pe},R9:function(){return se},Ru:function(){return ue},SG:function(){return Ae},To:function(){return ce},_S:function(){return ee},a6:function(){return ae},bj:function(){return oe},iw:function(){return Be},l5:function(){return xe},nW:function(){return re},pP:function(){return ge},pi:function(){return ye}});var te=Te(22972),Ot=Object.defineProperty,y=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,z=(Se,Ee,Oe)=>Ee in Se?Ot(Se,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Se[Ee]=Oe,E=(Se,Ee)=>{for(var Oe in Ee||(Ee={}))je.call(Ee,Oe)&&z(Se,Oe,Ee[Oe]);if(y)for(var Oe of y(Ee))be.call(Ee,Oe)&&z(Se,Oe,Ee[Oe]);return Se},ie=(Se,Ee,Oe)=>new Promise((Pe,Le)=>{var Ne=Ze=>{try{Ve(Oe.next(Ze))}catch(We){Le(We)}},me=Ze=>{try{Ve(Oe.throw(Ze))}catch(We){Le(We)}},Ve=Ze=>Ze.done?Pe(Ze.value):Promise.resolve(Ze.value).then(Ne,me);Ve((Oe=Oe.apply(Se,Ee)).next())});function oe(Se){return ie(this,null,function*(){return(0,te.ZP)("/api/data_sets/tags.json",{method:"get",params:E({},Se)})})}function ee(Se){return ie(this,null,function*(){return(0,te.ZP)("/api/data_sets.json",{method:"get",params:E({},Se)})})}function ce(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${Se}/apply_public.json`,{method:"post"})})}function x(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${Se}/revoke_apply_public.json`,{method:"post"})})}function ae(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${Se}/cancel_public.json`,{method:"post"})})}function re(Se){return ie(this,null,function*(){return(0,te.ZP)("/api/collections.json",{method:"post",body:E({},Se)})})}function se(Se){return ie(this,null,function*(){return(0,te.ZP)("/api/collections/cancel.json",{method:"delete",body:E({},Se)})})}function ue(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${Se}.json`,{method:"get"})})}function pe(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${Se==null?void 0:Se.id}/edit_introduce.json`,{method:"put",body:E({},Se)})})}function he(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${Se==null?void 0:Se.id}/used_shixuns.json`,{method:"get",params:E({},Se)})})}function ye(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/shixuns/${Se}/data_sets_list.json`,{method:"get"})})}function ge(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${Se}/delete.json`,{method:"delete"})})}function xe(Se){return ie(this,null,function*(){return(0,te.ZP)("/api/teach_group_shares.json",{method:"post",body:E({},Se)})})}function ke(Se){return ie(this,null,function*(){return(0,te.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:E({},Se)})})}function De(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${Se==null?void 0:Se.id}/edit_file_info.json`,{method:"put",body:E({},Se)})})}function Be(Se){return ie(this,null,function*(){return(0,te.ZP)("/api/visit_logs.json",{method:"get",params:E({},Se)})})}function Ae(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/attachments/${Se==null?void 0:Se.id}/update_download.json`,{method:"get"})})}},74410:function(In,Yt,Te){"use strict";Te.d(Yt,{AL:function(){return xe},Iy:function(){return ce},Qv:function(){return re},ez:function(){return ge},jb:function(){return x}});var te=Te(32834),Ot=Te.n(te),y=Te(11690),je=Te.n(y);let be=1;function z(Se,Ee){const Oe=Se.match(/^(\s+)(?:```)/);if(Oe===null)return Ee;const Pe=Oe[1];return Ee.split(`
`).map(Le=>{const Ne=Le.match(/^\s+/);if(Ne===null)return Le;const[me]=Ne;return me.length>=Pe.length?Le.slice(Pe.length):Le}).join(`
`)}let E=[],ie=["<ul>"];const oe=new(Ot()).Renderer,ee=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function ce(){E.length=0,ie=["<ul>"]}const x={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ae(Se,Ee,Oe,Pe){if(Ee>=Se.length||Se[Ee].level<=Oe)return Ee;var Le=Se[Ee];Pe.push("<li><a href='#"+be+Le.anchor+"'>"+Le.text+"</a>"),Ee++;var Ne=[];return Ee=ae(Se,Ee,Le.level,Ne),Ne.length>0&&(Pe.push("<ul>"),Ne.forEach(function(me){Pe.push(me)}),Pe.push("</ul>")),Pe.push("</li>"),Ee=ae(Se,Ee,Oe,Pe),Ee}function re(){return ae(E,0,0,ie),ie.push("</ul>"),ie.join("")}const se={heading(Se){const Ee=ee.exec(Se);if(be+=1,Ee)return{type:"heading",raw:Ee[0],depth:Ee[1].length,text:Ee[2]}},fences(Se){const Ee=this.rules.block.fences.exec(Se);if(Ee){const Oe=Ee[0];let Pe=z(Oe,Ee[3]||"");const Le=Ee[2]?Ee[2].trim():Ee[2];if(["latex","katex","math"].indexOf(Le)>=0){const Ne=he(),me=Pe;Pe=Ne,ye[Ne]={type:"block",expression:me}}return{type:"code",raw:Oe,lang:Le,text:Pe}}}},ue=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let pe=0;const he=()=>`__special_katext_id_${pe++}__`;let ye={};function ge(){return ye}function xe(){pe=0,ye={}}function ke(Se){return Se=Se.replace(ue,(Ee,Oe)=>{const Pe=he();return ye[Pe]={type:"inline",expression:Oe},Pe}),Se}const De=oe.listitem;oe.listitem=function(Se){return De(ke(Se))};const Be=oe.paragraph;oe.paragraph=function(Se){return Be(ke(Se))};const Ae=oe.tablecell;oe.tablecell=function(Se,Ee){return Ae(ke(Se),Ee)},oe.code=function(Se,Ee,Oe){const Pe=(Ee||"").match(/\S*/)[0];return Pe?["latex","katex","math"].indexOf(Pe)>=0?`<p class='editormd-tex'>${Se}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ee}">${Oe?Se:(0,y.escape)(Se,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Oe?Se:(0,y.escape)(Se,!0))+"</code></pre>"},oe.heading=function(Se,Ee,Oe){let Pe=this.options.headerPrefix+Oe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return E.push({anchor:Pe,level:Ee,text:Se}),"<h"+Ee+' id="'+be+Pe+'">'+Se+"</h"+Ee+">"},Ot().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ot().use({tokenizer:se,renderer:oe}),Yt.ZP=Ot()},47257:function(In){(function(Yt){(function(Te){if(1)In.exports=Te();else var te})(function(){var Te,te,Ot;return function(){function y(je,be,z){function E(ee,ce){if(!be[ee]){if(!je[ee]){var x=void 0;if(!ce&&x)return require(ee,!0);if(ie)return ie(ee,!0);var ae=new Error("Cannot find module '"+ee+"'");throw ae.code="MODULE_NOT_FOUND",ae}var re=be[ee]={exports:{}};je[ee][0].call(re.exports,function(se){var ue=je[ee][1][se];return E(ue||se)},re,re.exports,y,je,be,z)}return be[ee].exports}for(var ie=void 0,oe=0;oe<z.length;oe++)E(z[oe]);return E}return y}()({1:[function(y,je,be){"use strict";var z=y("./browser/client");z.Buffer=y("buffer").Buffer,z.urllib=y("../shims/xhr"),z.version=y("./browser/version").version,je.exports=z},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),ie=z(y("@babel/runtime/helpers/asyncToGenerator"));y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.slice.js");var oe=y("assert"),ee=y("../common/utils/checkBucketName"),ce=ee.checkBucketName,x=be;function ae(se){return Array.isArray?Array.isArray(se):Object.prototype.toString.call(se)==="[object Array]"}function re(se){return se?ae(se)?se:[se]:[]}x.useBucket=function(ue){return ce(ue),this.options.bucket=ue,this},x.setBucket=function(ue){return ce(ue),this.options.bucket=ue,this},x.getBucket=function(){return this.options.bucket},x.deleteBucket=function(){var se=(0,ie.default)(E.default.mark(function pe(he,ye){var ge,xe;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return ge=this._bucketRequestParams("DELETE",he,"",ye),De.next=3,this.request(ge);case 3:if(xe=De.sent,!(xe.status===200||xe.status===204)){De.next=6;break}return De.abrupt("return",{res:xe.res});case 6:return De.next=8,this.requestError(xe);case 8:throw De.sent;case 9:case"end":return De.stop()}},pe,this)}));function ue(pe,he){return se.apply(this,arguments)}return ue}(),x.putBucketACL=function(){var se=(0,ie.default)(E.default.mark(function pe(he,ye,ge){var xe,ke;return E.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return xe=this._bucketRequestParams("PUT",he,"acl",ge),xe.headers={"x-oss-acl":ye},xe.successStatuses=[200],Be.next=5,this.request(xe);case 5:return ke=Be.sent,Be.abrupt("return",{bucket:ke.headers.location&&ke.headers.location.substring(1)||null,res:ke.res});case 7:case"end":return Be.stop()}},pe,this)}));function ue(pe,he,ye){return se.apply(this,arguments)}return ue}(),x.getBucketACL=function(){var se=(0,ie.default)(E.default.mark(function pe(he,ye){var ge,xe;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return ge=this._bucketRequestParams("GET",he,"acl",ye),ge.successStatuses=[200],ge.xmlResponse=!0,De.next=5,this.request(ge);case 5:return xe=De.sent,De.abrupt("return",{acl:xe.data.AccessControlList.Grant,owner:{id:xe.data.Owner.ID,displayName:xe.data.Owner.DisplayName},res:xe.res});case 7:case"end":return De.stop()}},pe,this)}));function ue(pe,he){return se.apply(this,arguments)}return ue}(),x.putBucketLogging=function(){var se=(0,ie.default)(E.default.mark(function pe(he,ye,ge){var xe,ke,De;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return xe=this._bucketRequestParams("PUT",he,"logging",ge),ke=`<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
<LoggingEnabled>
<TargetBucket>`.concat(he,`</TargetBucket>
`),ye&&(ke+="<TargetPrefix>".concat(ye,`</TargetPrefix>
`)),ke+=`</LoggingEnabled>
</BucketLoggingStatus>`,xe.content=ke,xe.mime="xml",xe.successStatuses=[200],Ae.next=9,this.request(xe);case 9:return De=Ae.sent,Ae.abrupt("return",{res:De.res});case 11:case"end":return Ae.stop()}},pe,this)}));function ue(pe,he,ye){return se.apply(this,arguments)}return ue}(),x.getBucketLogging=function(){var se=(0,ie.default)(E.default.mark(function pe(he,ye){var ge,xe,ke;return E.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return ge=this._bucketRequestParams("GET",he,"logging",ye),ge.successStatuses=[200],ge.xmlResponse=!0,Be.next=5,this.request(ge);case 5:return xe=Be.sent,ke=xe.data.LoggingEnabled,Be.abrupt("return",{enable:!!ke,prefix:ke&&ke.TargetPrefix||null,res:xe.res});case 8:case"end":return Be.stop()}},pe,this)}));function ue(pe,he){return se.apply(this,arguments)}return ue}(),x.deleteBucketLogging=function(){var se=(0,ie.default)(E.default.mark(function pe(he,ye){var ge,xe;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return ge=this._bucketRequestParams("DELETE",he,"logging",ye),ge.successStatuses=[204,200],De.next=4,this.request(ge);case 4:return xe=De.sent,De.abrupt("return",{res:xe.res});case 6:case"end":return De.stop()}},pe,this)}));function ue(pe,he){return se.apply(this,arguments)}return ue}(),x.putBucketCORS=function(){var se=(0,ie.default)(E.default.mark(function pe(he,ye,ge){var xe,ke,De,Be,Ae,Se,Ee,Oe,Pe,Le;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:for(ye=ye||[],oe(ye.length,"rules is required"),ye.forEach(function(Ve){oe(Ve.allowedOrigin,"allowedOrigin is required"),oe(Ve.allowedMethod,"allowedMethod is required")}),xe=this._bucketRequestParams("PUT",he,"cors",ge),ke=`<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>`,De=function(Ze){ke+="<AllowedOrigin>".concat(Ze,"</AllowedOrigin>")},Be=function(Ze){ke+="<AllowedMethod>".concat(Ze,"</AllowedMethod>")},Ae=function(Ze){ke+="<AllowedHeader>".concat(Ze,"</AllowedHeader>")},Se=function(Ze){ke+="<ExposeHeader>".concat(Ze,"</ExposeHeader>")},Ee=0,Oe=ye.length;Ee<Oe;Ee++)Pe=ye[Ee],ke+="<CORSRule>",re(Pe.allowedOrigin).forEach(De),re(Pe.allowedMethod).forEach(Be),re(Pe.allowedHeader).forEach(Ae),re(Pe.exposeHeader).forEach(Se),Pe.maxAgeSeconds&&(ke+="<MaxAgeSeconds>".concat(Pe.maxAgeSeconds,"</MaxAgeSeconds>")),ke+="</CORSRule>";return ke+="</CORSConfiguration>",xe.content=ke,xe.mime="xml",xe.successStatuses=[200],me.next=16,this.request(xe);case 16:return Le=me.sent,me.abrupt("return",{res:Le.res});case 18:case"end":return me.stop()}},pe,this)}));function ue(pe,he,ye){return se.apply(this,arguments)}return ue}(),x.getBucketCORS=function(){var se=(0,ie.default)(E.default.mark(function pe(he,ye){var ge,xe,ke,De;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return ge=this._bucketRequestParams("GET",he,"cors",ye),ge.successStatuses=[200],ge.xmlResponse=!0,Ae.next=5,this.request(ge);case 5:return xe=Ae.sent,ke=[],xe.data&&xe.data.CORSRule&&(De=xe.data.CORSRule,ae(De)||(De=[De]),De.forEach(function(Se){var Ee={};Object.keys(Se).forEach(function(Oe){Ee[Oe.slice(0,1).toLowerCase()+Oe.slice(1,Oe.length)]=Se[Oe]}),ke.push(Ee)})),Ae.abrupt("return",{rules:ke,res:xe.res});case 9:case"end":return Ae.stop()}},pe,this)}));function ue(pe,he){return se.apply(this,arguments)}return ue}(),x.deleteBucketCORS=function(){var se=(0,ie.default)(E.default.mark(function pe(he,ye){var ge,xe;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return ge=this._bucketRequestParams("DELETE",he,"cors",ye),ge.successStatuses=[204],De.next=4,this.request(ge);case 4:return xe=De.sent,De.abrupt("return",{res:xe.res});case 6:case"end":return De.stop()}},pe,this)}));function ue(pe,he){return se.apply(this,arguments)}return ue}(),x.putBucketReferer=function(){var se=(0,ie.default)(E.default.mark(function pe(he,ye,ge,xe){var ke,De,Be,Ae;return E.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(ke=this._bucketRequestParams("PUT",he,"referer",xe),De=`<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
`,De+=" <AllowEmptyReferer>".concat(ye?"true":"false",`</AllowEmptyReferer>
`),ge&&ge.length>0){for(De+=` <RefererList>
`,Be=0;Be<ge.length;Be++)De+=" <Referer>".concat(ge[Be],`</Referer>
`);De+=` </RefererList>
`}else De+=` <RefererList />
`;return De+="</RefererConfiguration>",ke.content=De,ke.mime="xml",ke.successStatuses=[200],Ee.next=10,this.request(ke);case 10:return Ae=Ee.sent,Ee.abrupt("return",{res:Ae.res});case 12:case"end":return Ee.stop()}},pe,this)}));function ue(pe,he,ye,ge){return se.apply(this,arguments)}return ue}(),x.getBucketReferer=function(){var se=(0,ie.default)(E.default.mark(function pe(he,ye){var ge,xe,ke;return E.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return ge=this._bucketRequestParams("GET",he,"referer",ye),ge.successStatuses=[200],ge.xmlResponse=!0,Be.next=5,this.request(ge);case 5:return xe=Be.sent,ke=xe.data.RefererList.Referer||null,ke&&(ae(ke)||(ke=[ke])),Be.abrupt("return",{allowEmpty:xe.data.AllowEmptyReferer==="true",referers:ke,res:xe.res});case 9:case"end":return Be.stop()}},pe,this)}));function ue(pe,he){return se.apply(this,arguments)}return ue}(),x.deleteBucketReferer=function(){var se=(0,ie.default)(E.default.mark(function pe(he,ye){return E.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return xe.next=2,this.putBucketReferer(he,!0,null,ye);case 2:return xe.abrupt("return",xe.sent);case 3:case"end":return xe.stop()}},pe,this)}));function ue(pe,he){return se.apply(this,arguments)}return ue}(),x._bucketRequestParams=function(ue,pe,he,ye){return{method:ue,bucket:pe,subres:he,timeout:ye&&ye.timeout,ctx:ye&&ye.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(y,je,be){(function(z,E){(function(){"use strict";var ie=y("@babel/runtime/helpers/interopRequireDefault"),oe=ie(y("@babel/runtime/regenerator")),ee=ie(y("@babel/runtime/helpers/asyncToGenerator"));y("core-js/modules/es.function.name.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.symbol.js"),y("core-js/modules/es.symbol.description.js"),y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.regexp.to-string.js");var ce=y("debug")("ali-oss"),x=y("xml2js"),ae=y("agentkeepalive"),re=y("merge-descriptors"),se=y("platform"),ue=y("utility"),pe=y("urllib"),he=y("./version"),ye=y("bowser"),ge=y("../common/signUtils"),xe=y("../common/client/initOptions"),ke=y("../common/utils/createRequest"),De=ke.createRequest,Be=y("../common/utils/encoder"),Ae=Be.encoder,Se=y("../common/client/getReqUrl"),Ee=Se.getReqUrl,Oe=y("../common/utils/setSTSToken"),Pe=Oe.setSTSToken,Le=y("../common/utils/retry"),Ne=Le.retry,me=y("../common/utils/isFunction"),Ve=me.isFunction,Ze=new ae;function We(){var et=se.name,Ke=se.version;et&&et.toLowerCase&&et.toLowerCase()==="ie"&&Ke.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function nt(){return location&&location.protocol==="https:"}function _e(et,Ke){if(We(),!(this instanceof _e))return new _e(et,Ke);et&&et.inited?this.options=et:this.options=_e.initOptions(et),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=pe,this.agent=this.options.agent||Ze),this.ctx=Ke,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}je.exports=_e,_e.initOptions=function(Ke){Ke.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var Ye=Object.assign({secure:nt(),useFetch:!1},Ke);return xe(Ye)};var Ue=_e.prototype;Ue.debug=ce,re(Ue,y("./object")),re(Ue,y("./bucket")),re(Ue,y("../common/bucket/getBucketWebsite")),re(Ue,y("../common/bucket/putBucketWebsite")),re(Ue,y("../common/bucket/deleteBucketWebsite")),re(Ue,y("../common/bucket/getBucketLifecycle")),re(Ue,y("../common/bucket/putBucketLifecycle")),re(Ue,y("../common/bucket/deleteBucketLifecycle")),re(Ue,y("../common/bucket/putBucketVersioning")),re(Ue,y("../common/bucket/getBucketVersioning")),re(Ue,y("../common/bucket/getBucketInventory")),re(Ue,y("../common/bucket/deleteBucketInventory")),re(Ue,y("../common/bucket/listBucketInventory")),re(Ue,y("../common/bucket/putBucketInventory")),re(Ue,y("../common/bucket/abortBucketWorm")),re(Ue,y("../common/bucket/completeBucketWorm")),re(Ue,y("../common/bucket/extendBucketWorm")),re(Ue,y("../common/bucket/getBucketWorm")),re(Ue,y("../common/bucket/initiateBucketWorm")),re(Ue,y("./managed-upload")),re(Ue,y("../common/multipart-copy")),re(Ue,y("../common/multipart")),re(Ue,y("../common/parallel")),Ue.signature=function(Ke){return this.debug("authorization stringToSign: %s",Ke,"info"),ge.computeSignature(this.options.accessKeySecret,Ke,this.options.headerEncoding)},Ue._getReqUrl=Ee,Ue.authorization=function(Ke,Ye,Xe,ot){var Qe=ge.buildCanonicalString(Ke.toUpperCase(),Ye,{headers:ot,parameters:Xe});return ge.authorization(this.options.accessKeyId,this.options.accessKeySecret,Qe,this.options.headerEncoding)},Ue.request=function(){var et=(0,ee.default)(oe.default.mark(function Ke(Ye){var Xe=this;return oe.default.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(!this.options.retryMax){Qe.next=6;break}return Qe.next=3,Ne(tt.bind(this),this.options.retryMax,{errorHandler:function(at){var qe=function(Re){if(Ye.stream)return!1;var ne=[-1,-2].includes(Re.status),fe=Xe.options.requestErrorRetryHandle||function(){return!0};return ne&&fe(Re)};return!!qe(at)}})(Ye);case 3:return Qe.abrupt("return",Qe.sent);case 6:return Qe.abrupt("return",tt.call(this,Ye));case 7:case"end":return Qe.stop()}},Ke,this)}));return function(Ke){return et.apply(this,arguments)}}();function tt(et){return rt.apply(this,arguments)}function rt(){return rt=(0,ee.default)(oe.default.mark(function et(Ke){var Ye,Xe,ot,Qe,ft,at;return oe.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(!(this.options.stsToken&&Ve(this.options.refreshSTSToken))){Fe.next=3;break}return Fe.next=3,Pe.call(this);case 3:return Ye=De.call(this,Ke),this.options.useFetch||(Ye.params.mode="disable-fetch"),Qe=!!Ke.stream,Fe.prev=6,Fe.next=9,this.urllib.request(Ye.url,Ye.params);case 9:Xe=Fe.sent,this.debug("response %s %s, got %s, headers: %j",Ke.method,Ye.url,Xe.status,Xe.headers,"info"),Fe.next=16;break;case 13:Fe.prev=13,Fe.t0=Fe.catch(6),ot=Fe.t0;case 16:if(!(Xe&&Ke.successStatuses&&Ke.successStatuses.indexOf(Xe.status)===-1)){Fe.next=28;break}return Fe.next=19,this.requestError(Xe);case 19:if(ft=Fe.sent,!(ft.code==="RequestTimeTooSkewed"&&!Qe)){Fe.next=25;break}return this.options.amendTimeSkewed=+new Date(ft.serverTime)-new Date,Fe.next=24,this.request(Ke);case 24:return Fe.abrupt("return",Fe.sent);case 25:ft.params=Ke,Fe.next=32;break;case 28:if(!ot){Fe.next=32;break}return Fe.next=31,this.requestError(ot);case 31:ft=Fe.sent;case 32:if(!ft){Fe.next=34;break}throw ft;case 34:if(!Ke.xmlResponse){Fe.next=39;break}return Fe.next=37,this.parseXML(Xe.data);case 37:at=Fe.sent,Xe.data=at;case 39:return Fe.abrupt("return",Xe);case 40:case"end":return Fe.stop()}},et,this,[[6,13]])})),rt.apply(this,arguments)}Ue._getResource=function(Ke){var Ye="/";return Ke.bucket&&(Ye+="".concat(Ke.bucket,"/")),Ke.object&&(Ye+=Ae(Ke.object,this.options.headerEncoding)),Ye},Ue._escape=function(Ke){return ue.encodeURIComponent(Ke).replace(/%2F/g,"/")},Ue._getUserAgent=function(){var Ke=E&&E.browser?"js":"nodejs",Ye="aliyun-sdk-".concat(Ke,"/").concat(he.version),Xe=se.description;return!Xe&&E&&(Xe="Node.js ".concat(E.version.slice(1)," on ").concat(E.platform," ").concat(E.arch)),this._checkUserAgent("".concat(Ye," ").concat(Xe))},Ue._checkUserAgent=function(Ke){var Ye=Ke.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return Ye},Ue.checkBrowserAndVersion=function(Ke,Ye){return ye.name===Ke&&ye.version.split(".")[0]===Ye},Ue.parseXML=function(Ke){return new Promise(function(Ye,Xe){z.isBuffer(Ke)&&(Ke=Ke.toString()),x.parseString(Ke,{explicitRoot:!1,explicitArray:!1},function(ot,Qe){ot?Xe(ot):Ye(Qe)})})},Ue.requestError=function(){var et=(0,ee.default)(oe.default.mark(function Ye(Xe){var ot,Qe,ft,at;return oe.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(ot=null,!(!Xe.data||!Xe.data.length)){Fe.next=5;break}Xe.status===-1||Xe.status===-2?(ot=new Error(Xe.message),ot.name=Xe.name,ot.status=Xe.status,ot.code=Xe.name):(Xe.status===404?(ot=new Error("Object not exists"),ot.name="NoSuchKeyError",ot.status=404,ot.code="NoSuchKey"):Xe.status===412?(ot=new Error("Pre condition failed"),ot.name="PreconditionFailedError",ot.status=412,ot.code="PreconditionFailed"):(ot=new Error("Unknow error, status: ".concat(Xe.status)),ot.name="UnknownError",ot.status=Xe.status),ot.requestId=Xe.headers["x-oss-request-id"],ot.host=""),Fe.next=32;break;case 5:return Qe=String(Xe.data),this.debug("request response error data: %s",Qe,"error"),Fe.prev=7,Fe.next=10,this.parseXML(Qe);case 10:if(Fe.t0=Fe.sent,Fe.t0){Fe.next=13;break}Fe.t0={};case 13:ft=Fe.t0,Fe.next=23;break;case 16:return Fe.prev=16,Fe.t1=Fe.catch(7),this.debug(Qe,"error"),Fe.t1.message+=`
raw xml: `.concat(Qe),Fe.t1.status=Xe.status,Fe.t1.requestId=Xe.headers["x-oss-request-id"],Fe.abrupt("return",Fe.t1);case 23:at=ft.Message||"unknow request error, status: ".concat(Xe.status),ft.Condition&&(at+=" (condition: ".concat(ft.Condition,")")),ot=new Error(at),ot.name=ft.Code?"".concat(ft.Code,"Error"):"UnknownError",ot.status=Xe.status,ot.code=ft.Code,ot.requestId=ft.RequestId,ot.hostId=ft.HostId,ot.serverTime=ft.ServerTime;case 32:return this.debug("generate error %j",ot,"error"),Fe.abrupt("return",ot);case 34:case"end":return Fe.stop()}},Ye,this,[[7,16]])}));function Ke(Ye){return et.apply(this,arguments)}return Ke}()}).call(this)}).call(this,{isBuffer:y("../../node_modules/is-buffer/index.js")},y("_process"))},{"../../node_modules/is-buffer/index.js":366,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":49,"../common/signUtils":50,"../common/utils/createRequest":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(y,je,be){(function(z){(function(){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),ie=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.function.name.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.array.from.js"),y("core-js/modules/es.string.iterator.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.array.filter.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.array.iterator.js"),y("core-js/modules/es.array-buffer.slice.js"),y("core-js/modules/es.typed-array.uint8-array.js"),y("core-js/modules/es.typed-array.copy-within.js"),y("core-js/modules/es.typed-array.every.js"),y("core-js/modules/es.typed-array.fill.js"),y("core-js/modules/es.typed-array.filter.js"),y("core-js/modules/es.typed-array.find.js"),y("core-js/modules/es.typed-array.find-index.js"),y("core-js/modules/es.typed-array.for-each.js"),y("core-js/modules/es.typed-array.includes.js"),y("core-js/modules/es.typed-array.index-of.js"),y("core-js/modules/es.typed-array.iterator.js"),y("core-js/modules/es.typed-array.join.js"),y("core-js/modules/es.typed-array.last-index-of.js"),y("core-js/modules/es.typed-array.map.js"),y("core-js/modules/es.typed-array.reduce.js"),y("core-js/modules/es.typed-array.reduce-right.js"),y("core-js/modules/es.typed-array.reverse.js"),y("core-js/modules/es.typed-array.set.js"),y("core-js/modules/es.typed-array.slice.js"),y("core-js/modules/es.typed-array.some.js"),y("core-js/modules/es.typed-array.sort.js"),y("core-js/modules/es.typed-array.subarray.js"),y("core-js/modules/es.typed-array.to-locale-string.js"),y("core-js/modules/es.typed-array.to-string.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("util"),ce=y("path"),x=y("mime"),ae=y("copy-to"),re=y("../common/utils/isBlob"),se=re.isBlob,ue=y("../common/utils/isFile"),pe=ue.isFile,he=y("../common/utils/isBuffer"),ye=he.isBuffer,ge=be;ge.multipartUpload=function(){var Ae=(0,oe.default)(ie.default.mark(function Ee(Oe,Pe){var Le,Ne,me,Ve,Ze,We,nt,_e,Ue,tt=arguments;return ie.default.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:if(Le=tt.length>2&&tt[2]!==void 0?tt[2]:{},this.resetCancelFlag(),Le.disabledMD5=Le.disabledMD5===void 0?!0:!!Le.disabledMD5,!(Le.checkpoint&&Le.checkpoint.uploadId)){et.next=8;break}return Pe&&pe(Pe)&&(Le.checkpoint.file=Pe),et.next=7,this._resumeMultipart(Le.checkpoint,Le);case 7:return et.abrupt("return",et.sent);case 8:return Ne=102400,Le.mime||(pe(Pe)?Le.mime=x.getType(ce.extname(Pe.name)):se(Pe)?Le.mime=Pe.type:ye(Pe)?Le.mime="":Le.mime=x.getType(ce.extname(Pe))),Le.headers=Le.headers||{},this._convertMetaToHeaders(Le.meta,Le.headers),et.next=14,this._getFileSize(Pe);case 14:if(me=et.sent,!(me<Ne)){et.next=26;break}return Le.contentLength=me,et.next=19,this.put(Oe,Pe,Le);case 19:if(Ve=et.sent,!(Le&&Le.progress)){et.next=23;break}return et.next=23,Le.progress(1);case 23:return Ze={res:Ve.res,bucket:this.options.bucket,name:Oe,etag:Ve.res.headers.etag},(Le.headers&&Le.headers["x-oss-callback"]||Le.callback)&&(Ze.data=Ve.data),et.abrupt("return",Ze);case 26:if(!(Le.partSize&&parseInt(Le.partSize,10)!==Le.partSize)){et.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Le.partSize&&Le.partSize<Ne)){et.next=30;break}throw new Error("partSize must not be smaller than ".concat(Ne));case 30:return et.next=32,this.initMultipartUpload(Oe,Le);case 32:if(We=et.sent,nt=We.uploadId,_e=this._getPartSize(me,Le.partSize),Ue={file:Pe,name:Oe,fileSize:me,partSize:_e,uploadId:nt,doneParts:[]},!(Le&&Le.progress)){et.next=39;break}return et.next=39,Le.progress(0,Ue,We.res);case 39:return et.next=41,this._resumeMultipart(Ue,Le);case 41:return et.abrupt("return",et.sent);case 42:case"end":return et.stop()}},Ee,this)}));function Se(Ee,Oe){return Ae.apply(this,arguments)}return Se}(),ge._resumeMultipart=function(){var Ae=(0,oe.default)(ie.default.mark(function Ee(Oe,Pe){var Le,Ne,me,Ve,Ze,We,nt,_e,Ue,tt,rt,et,Ke,Ye,Xe,ot,Qe,ft,at;return ie.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(Le=this,!this.isCancel()){Fe.next=3;break}throw this._makeCancelEvent();case 3:return Ne=Oe.file,me=Oe.fileSize,Ve=Oe.partSize,Ze=Oe.uploadId,We=Oe.doneParts,nt=Oe.name,_e=[],We.length>0&&ae(We).to(_e),Ue=this._divideParts(me,Ve),tt=Ue.length,rt=!1,et=function(ne,fe){return new Promise(function(){var Me=(0,oe.default)(ie.default.mark(function ze(we,ve){var Ie,$e,Ge,Je,ut;return ie.default.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:if(vt.prev=0,ne.isCancel()){vt.next=29;break}return Ie=Ue[fe-1],vt.next=5,ne._createBuffer(Ne,Ie.start,Ie.end);case 5:return $e=vt.sent,Ge={content:$e,size:Ie.end-Ie.start},vt.prev=7,vt.next=10,ne._uploadPart(nt,Ze,fe,Ge,Pe);case 10:Je=vt.sent,vt.next=18;break;case 13:if(vt.prev=13,vt.t0=vt.catch(7),vt.t0.status!==404){vt.next=17;break}throw ne._makeAbortEvent();case 17:throw vt.t0;case 18:if(!(!ne.isCancel()&&!rt)){vt.next=26;break}if(Oe.doneParts.push({number:fe,etag:Je.res.headers.etag}),!Pe.progress){vt.next=23;break}return vt.next=23,Pe.progress(We.length/(tt+1),Oe,Je.res);case 23:we({number:fe,etag:Je.res.headers.etag}),vt.next=27;break;case 26:we();case 27:vt.next=30;break;case 29:we();case 30:vt.next=41;break;case 32:vt.prev=32,vt.t1=vt.catch(0),ut=new Error,ut.name=vt.t1.name,ut.message=vt.t1.message,ut.stack=vt.t1.stack,ut.partNum=fe,ae(vt.t1).to(ut),ve(ut);case 41:case"end":return vt.stop()}},ze,null,[[0,32],[7,13]])}));return function(ze,we){return Me.apply(this,arguments)}}())},Ke=Array.from(new Array(tt),function(Re,ne){return ne+1}),Ye=_e.map(function(Re){return Re.number}),Xe=Ke.filter(function(Re){return Ye.indexOf(Re)<0}),ot=5,Qe=Pe.parallel||ot,Fe.next=17,this._parallel(Xe,Qe,function(Re){return new Promise(function(ne,fe){et(Le,Re).then(function(Me){Me&&_e.push(Me),ne()}).catch(function(Me){fe(Me)})})});case 17:if(ft=Fe.sent,rt=!0,at=ft.find(function(Re){return Re.name==="abort"}),!at){Fe.next=22;break}throw at;case 22:if(!this.isCancel()){Fe.next=25;break}throw et=null,this._makeCancelEvent();case 25:if(!(ft&&ft.length>0)){Fe.next=28;break}throw ft[0].message="Failed to upload some parts with error: ".concat(ft[0].toString()," part_num: ").concat(ft[0].partNum),ft[0];case 28:return Fe.next=30,this.completeMultipartUpload(nt,Ze,_e,Pe);case 30:return Fe.abrupt("return",Fe.sent);case 31:case"end":return Fe.stop()}},Ee,this)}));function Se(Ee,Oe){return Ae.apply(this,arguments)}return Se}(),ge._getFileSize=function(){var Ae=(0,oe.default)(ie.default.mark(function Ee(Oe){return ie.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(!ye(Oe)){Le.next=4;break}return Le.abrupt("return",Oe.length);case 4:if(!(se(Oe)||pe(Oe))){Le.next=6;break}return Le.abrupt("return",Oe.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Le.stop()}},Ee)}));function Se(Ee){return Ae.apply(this,arguments)}return Se}();var xe=y("stream"),ke=xe.Readable;function De(Ae,Se){if(!(this instanceof De))return new De(Ae,Se);ke.call(this,Se),this.file=Ae,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}ee.inherits(De,ke),De.prototype.readFileAndPush=function(Se){if(this.fileBuffer)for(var Ee=!0;Ee&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Oe=this.start,Pe=Oe+Se;Pe=Pe>this.fileBuffer.length?this.fileBuffer.length:Pe,this.start=Pe,Ee=this.push(this.fileBuffer.slice(Oe,Pe))}},De.prototype._read=function(Se){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var Ee=16*1024;Se=Se||Ee;var Oe=this;this.reader.onload=function(Le){Oe.fileBuffer=z.from(new Uint8Array(Le.target.result)),Oe.file=null,Oe.readFileAndPush(Se)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(Se)};function Be(Ae){return Ae.arrayBuffer?Ae.arrayBuffer():new Promise(function(Se,Ee){var Oe=new FileReader;Oe.onload=function(Pe){Se(Pe.target.result)},Oe.onerror=function(Pe){Ee(Pe)},Oe.readAsArrayBuffer(Ae)})}ge._createBuffer=function(){var Ae=(0,oe.default)(ie.default.mark(function Ee(Oe,Pe,Le){var Ne,me;return ie.default.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:if(!(se(Oe)||pe(Oe))){Ze.next=8;break}return Ne=Oe.slice(Pe,Le),Ze.next=4,Be(Ne);case 4:return me=Ze.sent,Ze.abrupt("return",z.from(me));case 8:if(!ye(Oe)){Ze.next=12;break}return Ze.abrupt("return",Oe.subarray(Pe,Le));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return Ze.stop()}},Ee)}));function Se(Ee,Oe,Pe){return Ae.apply(this,arguments)}return Se}(),ge._getPartSize=function(Se,Ee){var Oe=1e4,Pe=1*1024*1024;Ee||(Ee=Pe);var Le=Math.ceil(Se/Oe);return Ee<Le&&(Ee=Le,console.warn("partSize has been set to ".concat(Ee,", because the partSize you provided causes partNumber to be greater than 10,000"))),Ee},ge._divideParts=function(Se,Ee){for(var Oe=Math.ceil(Se/Ee),Pe=[],Le=0;Le<Oe;Le++){var Ne=Ee*Le,me=Math.min(Ne+Ee,Se);Pe.push({start:Ne,end:me})}return Pe}}).call(this)}).call(this,y("buffer").Buffer)},{"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,buffer:90,"copy-to":94,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,mime:374,path:378,stream:398,util:419}],5:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault");y("core-js/modules/es.function.name.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.number.constructor.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.promise.js");var E=z(y("@babel/runtime/regenerator")),ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("fs"),ee=y("copy-to"),ce=y("path"),x=y("mime"),ae=y("../common/callback"),re=y("merge-descriptors"),se=y("../common/utils/isBlob"),ue=se.isBlob,pe=y("../common/utils/isFile"),he=pe.isFile,ye=y("../common/utils/isBuffer"),ge=ye.isBuffer,xe=y("../common/utils/obj2xml"),ke=xe.obj2xml,De=be;De.append=function(){var Be=(0,ie.default)(E.default.mark(function Se(Ee,Oe,Pe){var Le;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return Pe=Pe||{},Pe.position===void 0&&(Pe.position="0"),Pe.subres={append:"",position:Pe.position},Pe.method="POST",me.next=6,this.put(Ee,Oe,Pe);case 6:return Le=me.sent,Le.nextAppendPosition=Le.res.headers["x-oss-next-append-position"],me.abrupt("return",Le);case 9:case"end":return me.stop()}},Se,this)}));function Ae(Se,Ee,Oe){return Be.apply(this,arguments)}return Ae}(),De.put=function(){var Be=(0,ie.default)(E.default.mark(function Se(Ee,Oe,Pe){var Le,Ne,me,Ve,Ze;return E.default.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(Pe=Pe||{},Pe.disabledMD5=Pe.disabledMD5===void 0?!0:!!Pe.disabledMD5,Pe.headers=Pe.headers||{},Ee=this._objectName(Ee),!ge(Oe)){nt.next=8;break}Le=Oe,nt.next=19;break;case 8:if(!(ue(Oe)||he(Oe))){nt.next=18;break}return Pe.mime||(he(Oe)?Pe.mime=x.getType(ce.extname(Oe.name)):Pe.mime=Oe.type),nt.next=12,this._createBuffer(Oe,0,Oe.size);case 12:return Le=nt.sent,nt.next=15,this._getFileSize(Oe);case 15:Pe.contentLength=nt.sent,nt.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(Pe.meta,Pe.headers),Ne=Pe.method||"PUT",me=this._objectRequestParams(Ne,Ee,Pe),ae.encodeCallback(me,Pe),me.mime=Pe.mime,me.disabledMD5=Pe.disabledMD5,me.content=Le,me.successStatuses=[200],nt.next=29,this.request(me);case 29:return Ve=nt.sent,Ze={name:Ee,url:this._objectUrl(Ee),res:Ve.res},me.headers&&me.headers["x-oss-callback"]&&(Ze.data=JSON.parse(Ve.data.toString())),nt.abrupt("return",Ze);case 33:case"end":return nt.stop()}},Se,this)}));function Ae(Se,Ee,Oe){return Be.apply(this,arguments)}return Ae}(),De.putStream=function(){var Be=(0,ie.default)(E.default.mark(function Se(Ee,Oe,Pe){var Le,Ne,me,Ve;return E.default.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return Pe=Pe||{},Pe.headers=Pe.headers||{},Ee=this._objectName(Ee),Pe.contentLength?Pe.headers["Content-Length"]=Pe.contentLength:Pe.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Pe.meta,Pe.headers),Le=Pe.method||"PUT",Ne=this._objectRequestParams(Le,Ee,Pe),ae.encodeCallback(Ne,Pe),Ne.mime=Pe.mime,Ne.stream=Oe,Ne.successStatuses=[200],We.next=13,this.request(Ne);case 13:return me=We.sent,Ve={name:Ee,url:this._objectUrl(Ee),res:me.res},Ne.headers&&Ne.headers["x-oss-callback"]&&(Ve.data=JSON.parse(me.data.toString())),We.abrupt("return",Ve);case 17:case"end":return We.stop()}},Se,this)}));function Ae(Se,Ee,Oe){return Be.apply(this,arguments)}return Ae}(),re(De,y("../common/object/copyObject")),re(De,y("../common/object/getObjectTagging")),re(De,y("../common/object/putObjectTagging")),re(De,y("../common/object/deleteObjectTagging")),re(De,y("../common/image")),re(De,y("../common/object/getBucketVersions")),re(De,y("../common/object/getACL")),re(De,y("../common/object/putACL")),re(De,y("../common/object/head")),re(De,y("../common/object/delete")),re(De,y("../common/object/get")),re(De,y("../common/object/putSymlink")),re(De,y("../common/object/getSymlink")),re(De,y("../common/object/deleteMulti")),re(De,y("../common/object/getObjectMeta")),re(De,y("../common/object/getObjectUrl")),re(De,y("../common/object/generateObjectUrl")),re(De,y("../common/object/signatureUrl")),re(De,y("../common/object/asyncSignatureUrl")),De.putMeta=function(){var Be=(0,ie.default)(E.default.mark(function Se(Ee,Oe,Pe){var Le;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.next=2,this.copy(Ee,Ee,{meta:Oe||{},timeout:Pe&&Pe.timeout,ctx:Pe&&Pe.ctx});case 2:return Le=me.sent,me.abrupt("return",Le);case 4:case"end":return me.stop()}},Se,this)}));function Ae(Se,Ee,Oe){return Be.apply(this,arguments)}return Ae}(),De.list=function(){var Be=(0,ie.default)(E.default.mark(function Se(Ee,Oe){var Pe,Le,Ne,me,Ve;return E.default.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return Pe=this._objectRequestParams("GET","",Oe),Pe.query=Ee,Pe.xmlResponse=!0,Pe.successStatuses=[200],We.next=6,this.request(Pe);case 6:return Le=We.sent,Ne=Le.data.Contents||[],me=this,Ne&&(Array.isArray(Ne)||(Ne=[Ne]),Ne=Ne.map(function(nt){return{name:nt.Key,url:me._objectUrl(nt.Key),lastModified:nt.LastModified,etag:nt.ETag,type:nt.Type,size:Number(nt.Size),storageClass:nt.StorageClass,owner:{id:nt.Owner.ID,displayName:nt.Owner.DisplayName}}})),Ve=Le.data.CommonPrefixes||null,Ve&&(Array.isArray(Ve)||(Ve=[Ve]),Ve=Ve.map(function(nt){return nt.Prefix})),We.abrupt("return",{res:Le.res,objects:Ne,prefixes:Ve,nextMarker:Le.data.NextMarker||null,isTruncated:Le.data.IsTruncated==="true"});case 13:case"end":return We.stop()}},Se,this)}));function Ae(Se,Ee){return Be.apply(this,arguments)}return Ae}(),De.listV2=function(){var Be=(0,ie.default)(E.default.mark(function Se(Ee){var Oe,Pe,Le,Ne,me,Ve,Ze,We=arguments;return E.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return Oe=We.length>1&&We[1]!==void 0?We[1]:{},Pe=Ee["continuation-token"]||Ee.continuationToken,Pe&&(Oe.subres=Object.assign({"continuation-token":Pe},Oe.subres)),Le=this._objectRequestParams("GET","",Oe),Le.query=Object.assign({"list-type":2},Ee),delete Le.query["continuation-token"],delete Le.query.continuationToken,Le.xmlResponse=!0,Le.successStatuses=[200],_e.next=11,this.request(Le);case 11:return Ne=_e.sent,me=Ne.data.Contents||[],Ve=this,me&&(Array.isArray(me)||(me=[me]),me=me.map(function(Ue){var tt=null;return Ue.Owner&&(tt={id:Ue.Owner.ID,displayName:Ue.Owner.DisplayName}),{name:Ue.Key,url:Ve._objectUrl(Ue.Key),lastModified:Ue.LastModified,etag:Ue.ETag,type:Ue.Type,size:Number(Ue.Size),storageClass:Ue.StorageClass,owner:tt}})),Ze=Ne.data.CommonPrefixes||null,Ze&&(Array.isArray(Ze)||(Ze=[Ze]),Ze=Ze.map(function(Ue){return Ue.Prefix})),_e.abrupt("return",{res:Ne.res,objects:me,prefixes:Ze,isTruncated:Ne.data.IsTruncated==="true",keyCount:+Ne.data.KeyCount,continuationToken:Ne.data.ContinuationToken||null,nextContinuationToken:Ne.data.NextContinuationToken||null});case 18:case"end":return _e.stop()}},Se,this)}));function Ae(Se){return Be.apply(this,arguments)}return Ae}(),De.restore=function(){var Be=(0,ie.default)(E.default.mark(function Se(Ee){var Oe,Pe,Le,Ne,me=arguments;return E.default.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return Oe=me.length>1&&me[1]!==void 0?me[1]:{type:"Archive"},Oe=Oe||{},Oe.subres=Object.assign({restore:""},Oe.subres),Oe.versionId&&(Oe.subres.versionId=Oe.versionId),Pe=this._objectRequestParams("POST",Ee,Oe),Oe.type==="ColdArchive"&&(Le={RestoreRequest:{Days:Oe.Days?Oe.Days:2,JobParameters:{Tier:Oe.JobParameters?Oe.JobParameters:"Standard"}}},Pe.content=ke(Le,{headers:!0}),Pe.mime="xml"),Pe.successStatuses=[202],Ze.next=9,this.request(Pe);case 9:return Ne=Ze.sent,Ze.abrupt("return",{res:Ne.res});case 11:case"end":return Ze.stop()}},Se,this)}));function Ae(Se){return Be.apply(this,arguments)}return Ae}(),De._objectUrl=function(Ae){return this._getReqUrl({bucket:this.options.bucket,object:Ae})},De._objectRequestParams=function(Ae,Se,Ee){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Ee=Ee||{},Se=this._objectName(Se);var Oe={object:Se,bucket:this.options.bucket,method:Ae,subres:Ee&&Ee.subres,timeout:Ee&&Ee.timeout,ctx:Ee&&Ee.ctx};return Ee.headers&&(Oe.headers={},ee(Ee.headers).to(Oe.headers)),Oe},De._objectName=function(Ae){return Ae.replace(/^\/+/,"")},De._convertMetaToHeaders=function(Ae,Se){Ae&&Object.keys(Ae).forEach(function(Ee){Se["x-oss-meta-".concat(Ee)]=Ae[Ee]})},De._deleteFileSafe=function(Ae){var Se=this;return new Promise(function(Ee){oe.exists(Ae,function(Oe){Oe?oe.unlink(Ae,function(Pe){Pe&&Se.debug("unlink %j error: %s",Ae,Pe,"error"),Ee()}):Ee()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signatureUrl":48,"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"../common/utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,fs:89,"merge-descriptors":372,mime:374,path:378}],6:[function(y,je,be){"use strict";be.version="6.18.1"},{}],7:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),ie=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.abortBucketWorm=void 0;var oe=y("../utils/checkBucketName");function ee(x,ae){return ce.apply(this,arguments)}function ce(){return ce=(0,ie.default)(E.default.mark(function x(ae,re){var se,ue;return E.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return oe.checkBucketName(ae),se=this._bucketRequestParams("DELETE",ae,"worm",re),he.next=4,this.request(se);case 4:return ue=he.sent,he.abrupt("return",{res:ue.res,status:ue.status});case 6:case"end":return he.stop()}},x,this)})),ce.apply(this,arguments)}be.abortBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),ie=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.completeBucketWorm=void 0;var oe=y("../utils/checkBucketName");function ee(x,ae,re){return ce.apply(this,arguments)}function ce(){return ce=(0,ie.default)(E.default.mark(function x(ae,re,se){var ue,pe;return E.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return oe.checkBucketName(ae),ue=this._bucketRequestParams("POST",ae,{wormId:re},se),ye.next=4,this.request(ue);case 4:return pe=ye.sent,ye.abrupt("return",{res:pe.res,status:pe.status});case 6:case"end":return ye.stop()}},x,this)})),ce.apply(this,arguments)}be.completeBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.deleteBucketInventory=void 0;var oe=y("../utils/checkBucketName");function ee(x,ae){return ce.apply(this,arguments)}function ce(){return ce=(0,ie.default)(E.default.mark(function x(ae,re){var se,ue,pe,he,ye=arguments;return E.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return se=ye.length>2&&ye[2]!==void 0?ye[2]:{},ue=Object.assign({inventory:"",inventoryId:re},se.subres),oe.checkBucketName(ae),pe=this._bucketRequestParams("DELETE",ae,ue,se),pe.successStatuses=[204],xe.next=7,this.request(pe);case 7:return he=xe.sent,xe.abrupt("return",{status:he.status,res:he.res});case 9:case"end":return xe.stop()}},x,this)})),ce.apply(this,arguments)}be.deleteBucketInventory=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],10:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,ce=be;ce.deleteBucketLifecycle=function(){var x=(0,ie.default)(E.default.mark(function re(se,ue){var pe,he;return E.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ee(se),pe=this._bucketRequestParams("DELETE",se,"lifecycle",ue),pe.successStatuses=[204],ge.next=5,this.request(pe);case 5:return he=ge.sent,ge.abrupt("return",{res:he.res});case 7:case"end":return ge.stop()}},re,this)}));function ae(re,se){return x.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,ce=be;ce.deleteBucketWebsite=function(){var x=(0,ie.default)(E.default.mark(function re(se,ue){var pe,he;return E.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ee(se),pe=this._bucketRequestParams("DELETE",se,"website",ue),pe.successStatuses=[204],ge.next=5,this.request(pe);case 5:return he=ge.sent,ge.abrupt("return",{res:he.res});case 7:case"end":return ge.stop()}},re,this)}));function ae(re,se){return x.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),ie=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.extendBucketWorm=void 0;var oe=y("../utils/checkBucketName"),ee=y("../utils/obj2xml");function ce(ae,re,se,ue){return x.apply(this,arguments)}function x(){return x=(0,ie.default)(E.default.mark(function ae(re,se,ue,pe){var he,ye,ge;return E.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return oe.checkBucketName(re),he=this._bucketRequestParams("POST",re,{wormExtend:"",wormId:se},pe),ye={ExtendWormConfiguration:{RetentionPeriodInDays:ue}},he.mime="xml",he.content=ee.obj2xml(ye,{headers:!0}),he.successStatuses=[200],ke.next=8,this.request(he);case 8:return ge=ke.sent,ke.abrupt("return",{res:ge.res,status:ge.status});case 10:case"end":return ke.stop()}},ae,this)})),x.apply(this,arguments)}be.extendBucketWorm=ce},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.getBucketInventory=void 0;var oe=y("../utils/checkBucketName"),ee=y("../utils/formatInventoryConfig");function ce(ae,re){return x.apply(this,arguments)}function x(){return x=(0,ie.default)(E.default.mark(function ae(re,se){var ue,pe,he,ye,ge=arguments;return E.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ue=ge.length>2&&ge[2]!==void 0?ge[2]:{},pe=Object.assign({inventory:"",inventoryId:se},ue.subres),oe.checkBucketName(re),he=this._bucketRequestParams("GET",re,pe,ue),he.successStatuses=[200],he.xmlResponse=!0,ke.next=8,this.request(he);case 8:return ye=ke.sent,ke.abrupt("return",{status:ye.status,res:ye.res,inventory:ee.formatInventoryConfig(ye.data)});case 10:case"end":return ke.stop()}},ae,this)})),x.apply(this,arguments)}be.getBucketInventory=ce},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],14:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.map.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,ce=y("../utils/isArray"),x=ce.isArray,ae=y("../utils/formatObjKey"),re=ae.formatObjKey,se=be;se.getBucketLifecycle=function(){var ue=(0,ie.default)(E.default.mark(function he(ye,ge){var xe,ke,De;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return ee(ye),xe=this._bucketRequestParams("GET",ye,"lifecycle",ge),xe.successStatuses=[200],xe.xmlResponse=!0,Ae.next=6,this.request(xe);case 6:return ke=Ae.sent,De=ke.data.Rule||null,De&&(x(De)||(De=[De]),De=De.map(function(Se){return Se.ID&&(Se.id=Se.ID,delete Se.ID),Se.Tag&&!x(Se.Tag)&&(Se.Tag=[Se.Tag]),re(Se,"firstLowerCase")})),Ae.abrupt("return",{rules:De,res:ke.res});case 10:case"end":return Ae.stop()}},he,this)}));function pe(he,ye){return ue.apply(this,arguments)}return pe}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":61,"../utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280}],15:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,ce=be;ce.getBucketVersioning=function(){var x=(0,ie.default)(E.default.mark(function re(se,ue){var pe,he,ye;return E.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ee(se),pe=this._bucketRequestParams("GET",se,"versioning",ue),pe.xmlResponse=!0,pe.successStatuses=[200],xe.next=6,this.request(pe);case 6:return he=xe.sent,ye=he.data.Status,xe.abrupt("return",{status:he.status,versionStatus:ye,res:he.res});case 9:case"end":return xe.stop()}},re,this)}));function ae(re,se){return x.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,ce=y("../utils/isObject"),x=ce.isObject,ae=be;ae.getBucketWebsite=function(){var re=(0,ie.default)(E.default.mark(function ue(pe,he){var ye,ge,xe;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return ee(pe),ye=this._bucketRequestParams("GET",pe,"website",he),ye.successStatuses=[200],ye.xmlResponse=!0,De.next=6,this.request(ye);case 6:return ge=De.sent,xe=[],ge.data.RoutingRules&&ge.data.RoutingRules.RoutingRule&&(x(ge.data.RoutingRules.RoutingRule)?xe=[ge.data.RoutingRules.RoutingRule]:xe=ge.data.RoutingRules.RoutingRule),De.abrupt("return",{index:ge.data.IndexDocument&&ge.data.IndexDocument.Suffix||"",supportSubDir:ge.data.IndexDocument&&ge.data.IndexDocument.SupportSubDir||"false",type:ge.data.IndexDocument&&ge.data.IndexDocument.Type,routingRules:xe,error:ge.data.ErrorDocument&&ge.data.ErrorDocument.Key||null,res:ge.res});case 10:case"end":return De.stop()}},ue,this)}));function se(ue,pe){return re.apply(this,arguments)}return se}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.getBucketWorm=void 0;var oe=y("../utils/checkBucketName"),ee=y("../utils/dataFix");function ce(ae,re){return x.apply(this,arguments)}function x(){return x=(0,ie.default)(E.default.mark(function ae(re,se){var ue,pe;return E.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return oe.checkBucketName(re),ue=this._bucketRequestParams("GET",re,"worm",se),ue.successStatuses=[200],ue.xmlResponse=!0,ye.next=6,this.request(ue);case 6:return pe=ye.sent,ee.dataFix(pe.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),ye.abrupt("return",Object.assign(Object.assign({},pe.data),{res:pe.res,status:pe.status}));case 9:case"end":return ye.stop()}},ae,this)})),x.apply(this,arguments)}be.getBucketWorm=ce},{"../utils/checkBucketName":51,"../utils/dataFix":57,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],18:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),ie=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.initiateBucketWorm=void 0;var oe=y("../utils/obj2xml"),ee=y("../utils/checkBucketName");function ce(ae,re,se){return x.apply(this,arguments)}function x(){return x=(0,ie.default)(E.default.mark(function ae(re,se,ue){var pe,he,ye;return E.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ee.checkBucketName(re),pe=this._bucketRequestParams("POST",re,"worm",ue),he={InitiateWormConfiguration:{RetentionPeriodInDays:se}},pe.mime="xml",pe.content=oe.obj2xml(he,{headers:!0}),pe.successStatuses=[200],xe.next=8,this.request(pe);case 8:return ye=xe.sent,xe.abrupt("return",{res:ye.res,wormId:ye.res.headers["x-oss-worm-id"],status:ye.status});case 10:case"end":return xe.stop()}},ae,this)})),x.apply(this,arguments)}be.initiateBucketWorm=ce},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.listBucketInventory=void 0;var oe=y("../utils/checkBucketName"),ee=y("../utils/formatInventoryConfig");function ce(ae){return x.apply(this,arguments)}function x(){return x=(0,ie.default)(E.default.mark(function ae(re){var se,ue,pe,he,ye,ge,xe,ke,De=arguments;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return se=De.length>1&&De[1]!==void 0?De[1]:{},ue=se.continuationToken,pe=Object.assign({inventory:""},ue&&{"continuation-token":ue},se.subres),oe.checkBucketName(re),he=this._bucketRequestParams("GET",re,pe,se),he.successStatuses=[200],he.xmlResponse=!0,Ae.next=9,this.request(he);case 9:return ye=Ae.sent,ge=ye.data,xe=ye.res,ke=ye.status,Ae.abrupt("return",{isTruncated:ge.IsTruncated==="true",nextContinuationToken:ge.NextContinuationToken,inventoryList:ee.formatInventoryConfig(ge.InventoryConfiguration,!0),status:ke,res:xe});case 12:case"end":return Ae.stop()}},ae,this)})),x.apply(this,arguments)}be.listBucketInventory=ce},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],20:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.concat.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.putBucketInventory=void 0;var oe=y("../utils/checkBucketName"),ee=y("../utils/obj2xml");function ce(ae,re){return x.apply(this,arguments)}function x(){return x=(0,ie.default)(E.default.mark(function ae(re,se){var ue,pe,he,ye,ge,xe,ke,De,Be,Ae,Se,Ee=arguments;return E.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return ue=Ee.length>2&&Ee[2]!==void 0?Ee[2]:{},pe=Object.assign({inventory:"",inventoryId:se.id},ue.subres),oe.checkBucketName(re),he=se.OSSBucketDestination,ye=se.optionalFields,ge=se.includedObjectVersions,xe="acs:oss:::",ke="acs:ram::".concat(he.accountId,":role/"),De={InventoryConfiguration:{Id:se.id,IsEnabled:se.isEnabled,Filter:{Prefix:se.prefix||""},Destination:{OSSBucketDestination:{Format:he.format,AccountId:he.accountId,RoleArn:"".concat(ke).concat(he.rolename),Bucket:"".concat(xe).concat(he.bucket),Prefix:he.prefix||"",Encryption:he.encryption||""}},Schedule:{Frequency:se.frequency},IncludedObjectVersions:ge,OptionalFields:{Field:(ye==null?void 0:ye.field)||[]}}},Be=ee.obj2xml(De,{headers:!0,firstUpperCase:!0}),Ae=this._bucketRequestParams("PUT",re,pe,ue),Ae.successStatuses=[200],Ae.mime="xml",Ae.content=Be,Pe.next=14,this.request(Ae);case 14:return Se=Pe.sent,Pe.abrupt("return",{status:Se.status,res:Se.res});case 16:case"end":return Pe.stop()}},ae,this)})),x.apply(this,arguments)}be.putBucketInventory=ce},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287}],21:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.array.includes.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,ce=y("../utils/isArray"),x=ce.isArray,ae=y("../utils/deepCopy"),re=ae.deepCopy,se=y("../utils/isObject"),ue=se.isObject,pe=y("../utils/obj2xml"),he=pe.obj2xml,ye=y("../utils/checkObjectTag"),ge=ye.checkObjectTag,xe=y("../utils/getStrBytesCount"),ke=xe.getStrBytesCount,De=be;De.putBucketLifecycle=function(){var Oe=(0,ie.default)(E.default.mark(function Le(Ne,me,Ve){var Ze,We,nt,_e,Ue;return E.default.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(ee(Ne),x(me)){rt.next=3;break}throw new Error("rules must be Array");case 3:return Ze=this._bucketRequestParams("PUT",Ne,"lifecycle",Ve),We=[],nt={LifecycleConfiguration:{Rule:We}},me.forEach(function(et){Be(et),Ee(et),et.id&&(et.ID=et.id,delete et.id),We.push(et)}),_e=he(nt,{headers:!0,firstUpperCase:!0}),Ze.content=_e,Ze.mime="xml",Ze.successStatuses=[200],rt.next=13,this.request(Ze);case 13:return Ue=rt.sent,rt.abrupt("return",{res:Ue.res});case 15:case"end":return rt.stop()}},Le,this)}));function Pe(Le,Ne,me){return Oe.apply(this,arguments)}return Pe}();function Be(Oe){Oe.days&&(Oe.expiration={days:Oe.days}),Oe.date&&(Oe.expiration={createdBeforeDate:Oe.date})}function Ae(Oe,Pe){var Le=Oe.days,Ne=Oe.createdBeforeDate;if(!Le&&!Ne)throw new Error("".concat(Pe," must includes days or createdBeforeDate"));if(Le&&!/^[1-9][0-9]*$/.test(Le))throw new Error("days must be a positive integer");if(Ne&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(Ne))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function Se(Oe){if(!x(Oe)&&!ue(Oe))throw new Error("tag must be Object or Array");Oe=ue(Oe)?[Oe]:Oe;var Pe={},Le=re(Oe);Le.forEach(function(Ne){Pe[Ne.key]=Ne.value}),ge(Pe)}function Ee(Oe){if(Oe.id&&ke(Oe.id)>255)throw new Error("ID is composed of 255 bytes at most");if(Oe.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(Oe.status))throw new Error("Status must be Enabled or Disabled");if(Oe.transition){if(!["IA","Archive"].includes(Oe.transition.storageClass))throw new Error("StorageClass must be IA or Archive");Ae(Oe.transition,"Transition")}if(Oe.expiration){if(!Oe.expiration.expiredObjectDeleteMarker)Ae(Oe.expiration,"Expiration");else if(Oe.expiration.days||Oe.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(Oe.abortMultipartUpload&&Ae(Oe.abortMultipartUpload,"AbortMultipartUpload"),!Oe.expiration&&!Oe.abortMultipartUpload&&!Oe.transition&&!Oe.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(Oe.tag){if(Oe.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");Se(Oe.tag)}}},{"../utils/checkBucketName":51,"../utils/checkObjectTag":54,"../utils/deepCopy":58,"../utils/getStrBytesCount":62,"../utils/isArray":63,"../utils/isObject":70,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],22:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.includes.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,ce=y("../utils/obj2xml"),x=ce.obj2xml,ae=be;ae.putBucketVersioning=function(){var re=(0,ie.default)(E.default.mark(function ue(pe,he){var ye,ge,xe,ke,De=arguments;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(ye=De.length>2&&De[2]!==void 0?De[2]:{},ee(pe),["Enabled","Suspended"].includes(he)){Ae.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return ge=this._bucketRequestParams("PUT",pe,"versioning",ye),xe={VersioningConfiguration:{Status:he}},ge.mime="xml",ge.content=x(xe,{headers:!0}),Ae.next=10,this.request(ge);case 10:return ke=Ae.sent,Ae.abrupt("return",{res:ke.res,status:ke.status});case 12:case"end":return Ae.stop()}},ue,this)}));function se(ue,pe){return re.apply(this,arguments)}return se}()},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277}],23:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,ce=y("../utils/obj2xml"),x=ce.obj2xml,ae=y("../utils/isArray"),re=ae.isArray,se=be;se.putBucketWebsite=function(){var ue=(0,ie.default)(E.default.mark(function he(ye){var ge,xe,ke,De,Be,Ae,Se,Ee=arguments;return E.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(ge=Ee.length>1&&Ee[1]!==void 0?Ee[1]:{},xe=Ee.length>2?Ee[2]:void 0,ee(ye),ke=this._bucketRequestParams("PUT",ye,"website",xe),De={Suffix:ge.index||"index.html"},Be={IndexDocument:De},Ae={WebsiteConfiguration:Be},ge.supportSubDir&&(De.SupportSubDir=ge.supportSubDir),ge.type&&(De.Type=ge.type),ge.error&&(Be.ErrorDocument={Key:ge.error}),ge.routingRules===void 0){Pe.next=14;break}if(re(ge.routingRules)){Pe.next=13;break}throw new Error("RoutingRules must be Array");case 13:Be.RoutingRules={RoutingRule:ge.routingRules};case 14:return Ae=x(Ae),ke.content=Ae,ke.mime="xml",ke.successStatuses=[200],Pe.next=20,this.request(ke);case 20:return Se=Pe.sent,Pe.abrupt("return",{res:Se.res});case 22:case"end":return Pe.stop()}},he,this)}));function pe(he){return ue.apply(this,arguments)}return pe}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(y,je,be){(function(z){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),be.encodeCallback=function(ie,oe){if(ie.headers=ie.headers||{},!Object.prototype.hasOwnProperty.call(ie.headers,"x-oss-callback")&&oe.callback){var ee={callbackUrl:encodeURI(oe.callback.url),callbackBody:oe.callback.body};oe.callback.host&&(ee.callbackHost=oe.callback.host),oe.callback.contentType&&(ee.callbackBodyType=oe.callback.contentType);var ce=z.from(JSON.stringify(ee)).toString("base64");if(ie.headers["x-oss-callback"]=ce,oe.callback.customValue){var x={};Object.keys(oe.callback.customValue).forEach(function(ae){x["x:".concat(ae)]=oe.callback.customValue[ae].toString()}),ie.headers["x-oss-callback-var"]=z.from(JSON.stringify(x)).toString("base64")}}}}).call(this)}).call(this,y("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/web.dom-collections.for-each.js":339}],25:[function(y,je,be){"use strict";y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js");var z=function(re){return re&&re.__esModule?re:{default:re}};Object.defineProperty(be,"__esModule",{value:!0}),be.getReqUrl=void 0;var E=z(y("copy-to")),ie=z(y("url")),oe=z(y("merge-descriptors")),ee=z(y("is-type-of")),ce=y("../utils/isIP"),x=y("../utils/checkConfigValid");function ae(re){var se={},ue=this.options.cname;x.checkConfigValid(this.options.endpoint,"endpoint"),E.default(this.options.endpoint,!1).to(se),re.bucket&&!ue&&!ce.isIP(se.hostname)&&!this.options.sldEnable&&(se.host="".concat(re.bucket,".").concat(se.host));var pe="/";re.bucket&&this.options.sldEnable&&(pe+="".concat(re.bucket,"/")),re.object&&(pe+=this._escape(re.object).replace(/\+/g,"%2B")),se.pathname=pe;var he={};if(re.query&&oe.default(he,re.query),re.subres){var ye={};ee.default.string(re.subres)?ye[re.subres]="":ee.default.array(re.subres)?re.subres.forEach(function(ge){ye[ge]=""}):ye=re.subres,oe.default(he,ye)}return se.query=he,ie.default.format(se)}be.getReqUrl=ae},{"../utils/checkConfigValid":52,"../utils/isIP":69,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466,"merge-descriptors":372,url:472}],26:[function(y,je,be){"use strict";y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.string.trim.js");var z=y("humanize-ms"),E=y("url"),ie=y("../utils/checkBucketName"),oe=ie.checkBucketName,ee=y("../utils/setRegion"),ce=ee.setRegion,x=y("../utils/checkConfigValid"),ae=x.checkConfigValid;function re(se,ue){ae(se,"endpoint");var pe=E.parse(se);if(pe.protocol||(pe=E.parse("http".concat(ue?"s":"","://").concat(se))),pe.protocol!=="http:"&&pe.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return pe}je.exports=function(se){if(!se||!se.accessKeyId||!se.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");se.stsToken&&!se.refreshSTSToken&&!se.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),se.bucket&&oe(se.bucket);var ue=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},se);if(ue.accessKeyId=ue.accessKeyId.trim(),ue.accessKeySecret=ue.accessKeySecret.trim(),ue.timeout&&(ue.timeout=z(ue.timeout)),ue.endpoint)ue.endpoint=re(ue.endpoint,ue.secure);else if(ue.region)ue.endpoint=ce(ue.region,ue.internal,ue.secure);else throw new Error("require options.endpoint or options.region");return ue.inited=!0,ue}},{"../utils/checkBucketName":51,"../utils/checkConfigValid":52,"../utils/setRegion":75,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.trim.js":308,"humanize-ms":356,url:472}],27:[function(y,je,be){"use strict";var z=y("merge-descriptors"),E=be;z(E,y("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.concat.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,ce=y("querystring"),x=y("js-base64"),ae=x.Base64.encode,re=be;re.processObjectSave=function(){var ue=(0,ie.default)(E.default.mark(function he(ye,ge,xe,ke){var De,Be,Ae,Se;return E.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return se(ye,"sourceObject"),se(ge,"targetObject"),se(xe,"process"),ge=this._objectName(ge),ke&&ee(ke),De=this._objectRequestParams("POST",ye,{subres:"x-oss-process"}),Be=ke?",b_".concat(ae(ke)):"",ge=ae(ge),Ae={"x-oss-process":"".concat(xe,"|sys/saveas,o_").concat(ge).concat(Be)},De.content=ce.stringify(Ae),Oe.next=12,this.request(De);case 12:return Se=Oe.sent,Oe.abrupt("return",{res:Se.res,status:Se.res.status});case 14:case"end":return Oe.stop()}},he,this)}));function pe(he,ye,ge,xe){return ue.apply(this,arguments)}return pe}();function se(ue,pe){if(!ue)throw new Error("".concat(pe," is required"));if(typeof ue!="string")throw new Error("".concat(pe," must be String"))}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"js-base64":371,querystring:385}],29:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.array.from.js"),y("core-js/modules/es.string.iterator.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.array.filter.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.regexp.to-string.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("debug")("ali-oss:multipart-copy"),ee=y("copy-to"),ce=be;ce.uploadPartCopy=function(){var x=(0,ie.default)(E.default.mark(function re(se,ue,pe,he,ye){var ge,xe,ke,De,Be,Ae=arguments;return E.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return ge=Ae.length>5&&Ae[5]!==void 0?Ae[5]:{},ge.headers=ge.headers||{},xe=ge.versionId||ge.subres&&ge.subres.versionId||null,xe?ke="/".concat(ye.sourceBucketName,"/").concat(encodeURIComponent(ye.sourceKey),"?versionId=").concat(xe):ke="/".concat(ye.sourceBucketName,"/").concat(encodeURIComponent(ye.sourceKey)),ge.headers["x-oss-copy-source"]=ke,he&&(ge.headers["x-oss-copy-source-range"]="bytes=".concat(he)),ge.subres={partNumber:pe,uploadId:ue},De=this._objectRequestParams("PUT",se,ge),De.mime=ge.mime,De.successStatuses=[200],Ee.next=12,this.request(De);case 12:return Be=Ee.sent,Ee.abrupt("return",{name:se,etag:Be.res.headers.etag,res:Be.res});case 14:case"end":return Ee.stop()}},re,this)}));function ae(re,se,ue,pe,he){return x.apply(this,arguments)}return ae}(),ce.multipartUploadCopy=function(){var x=(0,ie.default)(E.default.mark(function re(se,ue){var pe,he,ye,ge,xe,ke,De,Be,Ae,Se,Ee,Oe,Pe=arguments;return E.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return pe=Pe.length>2&&Pe[2]!==void 0?Pe[2]:{},this.resetCancelFlag(),he=pe.versionId,ye=he===void 0?null:he,ge={versionId:ye},Ne.next=6,this._getObjectMeta(ue.sourceBucketName,ue.sourceKey,ge);case 6:if(xe=Ne.sent,ke=xe.res.headers["content-length"],ue.startOffset=ue.startOffset||0,ue.endOffset=ue.endOffset||ke,!(pe.checkpoint&&pe.checkpoint.uploadId)){Ne.next=14;break}return Ne.next=13,this._resumeMultipartCopy(pe.checkpoint,ue,pe);case 13:return Ne.abrupt("return",Ne.sent);case 14:if(De=102400,Be=ue.endOffset-ue.startOffset,!(Be<De)){Ne.next=18;break}throw new Error("copySize must not be smaller than ".concat(De));case 18:if(!(pe.partSize&&pe.partSize<De)){Ne.next=20;break}throw new Error("partSize must not be smaller than ".concat(De));case 20:return Ne.next=22,this.initMultipartUpload(se,pe);case 22:if(Ae=Ne.sent,Se=Ae.uploadId,Ee=this._getPartSize(Be,pe.partSize),Oe={name:se,copySize:Be,partSize:Ee,uploadId:Se,doneParts:[]},!(pe&&pe.progress)){Ne.next=29;break}return Ne.next=29,pe.progress(0,Oe,Ae.res);case 29:return Ne.next=31,this._resumeMultipartCopy(Oe,ue,pe);case 31:return Ne.abrupt("return",Ne.sent);case 32:case"end":return Ne.stop()}},re,this)}));function ae(re,se){return x.apply(this,arguments)}return ae}(),ce._resumeMultipartCopy=function(){var x=(0,ie.default)(E.default.mark(function re(se,ue,pe){var he,ye,ge,xe,ke,De,Be,Ae,Se,Ee,Oe,Pe,Le,Ne,me,Ve,Ze,We,nt,_e,Ue;return E.default.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(!this.isCancel()){rt.next=2;break}throw this._makeCancelEvent();case 2:if(he=pe.versionId,ye=he===void 0?null:he,ge={versionId:ye},xe=se.copySize,ke=se.partSize,De=se.uploadId,Be=se.doneParts,Ae=se.name,Se=this._divideMultipartCopyParts(xe,ke,ue.startOffset),Ee=Se.length,Oe={headers:{}},pe.copyheaders&&ee(pe.copyheaders).to(Oe.headers),ye&&ee(ge).to(Oe),Pe=function(Ke,Ye,Xe){return new Promise(function(){var ot=(0,ie.default)(E.default.mark(function Qe(ft,at){var qe,Fe,Re;return E.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(fe.prev=0,Ke.isCancel()){fe.next=22;break}return qe=Se[Ye-1],Fe="".concat(qe.start,"-").concat(qe.end-1),fe.prev=4,fe.next=7,Ke.uploadPartCopy(Ae,De,Ye,Fe,Xe,Oe);case 7:Re=fe.sent,fe.next=15;break;case 10:if(fe.prev=10,fe.t0=fe.catch(4),fe.t0.status!==404){fe.next=14;break}throw Ke._makeAbortEvent();case 14:throw fe.t0;case 15:if(Ke.isCancel()){fe.next=22;break}if(oe("content-range ".concat(Re.res.headers["content-range"])),Be.push({number:Ye,etag:Re.res.headers.etag}),se.doneParts=Be,!(pe&&pe.progress)){fe.next=22;break}return fe.next=22,pe.progress(Be.length/Ee,se,Re.res);case 22:ft(),fe.next=29;break;case 25:fe.prev=25,fe.t1=fe.catch(0),fe.t1.partNum=Ye,at(fe.t1);case 29:case"end":return fe.stop()}},Qe,null,[[0,25],[4,10]])}));return function(Qe,ft){return ot.apply(this,arguments)}}())},Le=Array.from(new Array(Ee),function(et,Ke){return Ke+1}),Ne=Be.map(function(et){return et.number}),me=Le.filter(function(et){return Ne.indexOf(et)<0}),Ve=5,Ze=pe.parallel||Ve,!(this.checkBrowserAndVersion("Internet Explorer","10")||Ze===1)){rt.next=28;break}We=0;case 18:if(!(We<me.length)){rt.next=26;break}if(!this.isCancel()){rt.next=21;break}throw this._makeCancelEvent();case 21:return rt.next=23,Pe(this,me[We],ue);case 23:We++,rt.next=18;break;case 26:rt.next=40;break;case 28:return rt.next=30,this._parallelNode(me,Ze,Pe,ue);case 30:if(nt=rt.sent,_e=nt.find(function(et){return et.name==="abort"}),!_e){rt.next=34;break}throw _e;case 34:if(!this.isCancel()){rt.next=36;break}throw this._makeCancelEvent();case 36:if(!(nt&&nt.length>0)){rt.next=40;break}throw Ue=nt[0],Ue.message="Failed to copy some parts with error: ".concat(Ue.toString()," part_num: ").concat(Ue.partNum),Ue;case 40:return rt.next=42,this.completeMultipartUpload(Ae,De,Be,pe);case 42:return rt.abrupt("return",rt.sent);case 43:case"end":return rt.stop()}},re,this)}));function ae(re,se,ue){return x.apply(this,arguments)}return ae}(),ce._divideMultipartCopyParts=function(ae,re,se){for(var ue=Math.ceil(ae/re),pe=[],he=0;he<ue;he++){var ye=re*he+se,ge=Math.min(ye+re,ae+se);pe.push({start:ye,end:ge})}return pe},ce._getObjectMeta=function(){var x=(0,ie.default)(E.default.mark(function re(se,ue,pe){var he,ye;return E.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return he=this.getBucket(),this.setBucket(se),xe.next=4,this.head(ue,pe);case 4:return ye=xe.sent,this.setBucket(he),xe.abrupt("return",ye);case 7:case"end":return xe.stop()}},re,this)}));function ae(re,se,ue){return x.apply(this,arguments)}return ae}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,debug:465}],30:[function(y,je,be){(function(z){(function(){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),ie=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.map.js"),y("core-js/modules/es.array.filter.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.array.sort.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.to-string.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("copy-to"),ce=y("./callback"),x=y("./utils/deepCopy"),ae=x.deepCopyWith,re=y("./utils/isBuffer"),se=re.isBuffer,ue=y("./utils/omit"),pe=ue.omit,he=be;he.listUploads=function(){var ye=(0,oe.default)(ie.default.mark(function xe(ke,De){var Be,Ae,Se,Ee;return ie.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return De=De||{},Be={},ee(De).to(Be),Be.subres="uploads",Ae=this._objectRequestParams("GET","",Be),Ae.query=ke,Ae.xmlResponse=!0,Ae.successStatuses=[200],Pe.next=10,this.request(Ae);case 10:return Se=Pe.sent,Ee=Se.data.Upload||[],Array.isArray(Ee)||(Ee=[Ee]),Ee=Ee.map(function(Le){return{name:Le.Key,uploadId:Le.UploadId,initiated:Le.Initiated}}),Pe.abrupt("return",{res:Se.res,uploads:Ee,bucket:Se.data.Bucket,nextKeyMarker:Se.data.NextKeyMarker,nextUploadIdMarker:Se.data.NextUploadIdMarker,isTruncated:Se.data.IsTruncated==="true"});case 15:case"end":return Pe.stop()}},xe,this)}));function ge(xe,ke){return ye.apply(this,arguments)}return ge}(),he.listParts=function(){var ye=(0,oe.default)(ie.default.mark(function xe(ke,De,Be,Ae){var Se,Ee,Oe;return ie.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Ae=Ae||{},Se={},ee(Ae).to(Se),Se.subres={uploadId:De},Ee=this._objectRequestParams("GET",ke,Se),Ee.query=Be,Ee.xmlResponse=!0,Ee.successStatuses=[200],Le.next=10,this.request(Ee);case 10:return Oe=Le.sent,Le.abrupt("return",{res:Oe.res,uploadId:Oe.data.UploadId,bucket:Oe.data.Bucket,name:Oe.data.Key,partNumberMarker:Oe.data.PartNumberMarker,nextPartNumberMarker:Oe.data.NextPartNumberMarker,maxParts:Oe.data.MaxParts,isTruncated:Oe.data.IsTruncated,parts:Oe.data.Part||[]});case 12:case"end":return Le.stop()}},xe,this)}));function ge(xe,ke,De,Be){return ye.apply(this,arguments)}return ge}(),he.abortMultipartUpload=function(){var ye=(0,oe.default)(ie.default.mark(function xe(ke,De,Be){var Ae,Se,Ee;return ie.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return this._stop(),Be=Be||{},Ae={},ee(Be).to(Ae),Ae.subres={uploadId:De},Se=this._objectRequestParams("DELETE",ke,Ae),Se.successStatuses=[204],Pe.next=9,this.request(Se);case 9:return Ee=Pe.sent,Pe.abrupt("return",{res:Ee.res});case 11:case"end":return Pe.stop()}},xe,this)}));function ge(xe,ke,De){return ye.apply(this,arguments)}return ge}(),he.initMultipartUpload=function(){var ye=(0,oe.default)(ie.default.mark(function xe(ke,De){var Be,Ae,Se;return ie.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return De=De||{},Be={},ee(De).to(Be),Be.headers=Be.headers||{},this._convertMetaToHeaders(De.meta,Be.headers),Be.subres="uploads",Ae=this._objectRequestParams("POST",ke,Be),Ae.mime=De.mime,Ae.xmlResponse=!0,Ae.successStatuses=[200],Oe.next=12,this.request(Ae);case 12:return Se=Oe.sent,Oe.abrupt("return",{res:Se.res,bucket:Se.data.Bucket,name:Se.data.Key,uploadId:Se.data.UploadId});case 14:case"end":return Oe.stop()}},xe,this)}));function ge(xe,ke){return ye.apply(this,arguments)}return ge}(),he.uploadPart=function(){var ye=(0,oe.default)(ie.default.mark(function xe(ke,De,Be,Ae,Se,Ee,Oe){var Pe,Le;return ie.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:if(Pe={size:Ee-Se},Le=z&&z.browser,!Le){me.next=8;break}return me.next=5,this._createBuffer(Ae,Se,Ee);case 5:Pe.content=me.sent,me.next=11;break;case 8:return me.next=10,this._createStream(Ae,Se,Ee);case 10:Pe.stream=me.sent;case 11:return me.next=13,this._uploadPart(ke,De,Be,Pe,Oe);case 13:return me.abrupt("return",me.sent);case 14:case"end":return me.stop()}},xe,this)}));function ge(xe,ke,De,Be,Ae,Se,Ee){return ye.apply(this,arguments)}return ge}(),he.completeMultipartUpload=function(){var ye=(0,oe.default)(ie.default.mark(function xe(ke,De,Be,Ae){var Se,Ee,Oe,Pe,Le,Ne,me,Ve;return ie.default.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:for(Se=Be.concat().sort(function(nt,_e){return nt.number-_e.number}).filter(function(nt,_e,Ue){return!_e||nt.number!==Ue[_e-1].number}),Ee=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,Oe=0;Oe<Se.length;Oe++)Pe=Se[Oe],Ee+=`<Part>
`,Ee+="<PartNumber>".concat(Pe.number,`</PartNumber>
`),Ee+="<ETag>".concat(Pe.etag,`</ETag>
`),Ee+=`</Part>
`;return Ee+="</CompleteMultipartUpload>",Ae=Ae||{},Le={},Le=ae(Ae,function(nt){if(se(nt))return null}),Le.subres={uploadId:De},Le.headers=pe(Le.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),Ne=this._objectRequestParams("POST",ke,Le),ce.encodeCallback(Ne,Le),Ne.mime="xml",Ne.content=Ee,Ne.headers&&Ne.headers["x-oss-callback"]||(Ne.xmlResponse=!0),Ne.successStatuses=[200],We.next=17,this.request(Ne);case 17:if(me=We.sent,!Ae.progress){We.next=21;break}return We.next=21,Ae.progress(1,null,me.res);case 21:return Ve={res:me.res,bucket:Ne.bucket,name:ke,etag:me.res.headers.etag},Ne.headers&&Ne.headers["x-oss-callback"]&&(Ve.data=JSON.parse(me.data.toString())),We.abrupt("return",Ve);case 24:case"end":return We.stop()}},xe,this)}));function ge(xe,ke,De,Be){return ye.apply(this,arguments)}return ge}(),he._uploadPart=function(){var ye=(0,oe.default)(ie.default.mark(function xe(ke,De,Be,Ae,Se){var Ee,Oe,Pe,Le;return ie.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return Se=Se||{},Ee={},ee(Se).to(Ee),Ee.headers=Ee.headers||{},Ee.headers["Content-Length"]=Ae.size,Ee.headers=pe(Ee.headers,["x-oss-server-side-encryption"]),Ee.subres={partNumber:Be,uploadId:De},Oe=this._objectRequestParams("PUT",ke,Ee),Oe.mime=Ee.mime,Pe=z&&z.browser,Pe?Oe.content=Ae.content:Oe.stream=Ae.stream,Oe.successStatuses=[200],Oe.disabledMD5=Se.disabledMD5,me.next=15,this.request(Oe);case 15:if(Le=me.sent,Le.res.headers.etag){me.next=18;break}throw new Error(`Please set the etag of expose-headers in OSS
https://help.aliyun.com/document_detail/32069.html`);case 18:return Ae.stream&&(Ae.stream=null,Oe.stream=null),me.abrupt("return",{name:ke,etag:Le.res.headers.etag,res:Le.res});case 20:case"end":return me.stop()}},xe,this)}));function ge(xe,ke,De,Be,Ae){return ye.apply(this,arguments)}return ge}()}).call(this)}).call(this,y("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("url"),ee=y("utility"),ce=y("copy-to"),x=y("../../common/signUtils"),ae=y("../utils/isIP"),re=ae.isIP,se=y("../utils/setSTSToken"),ue=se.setSTSToken,pe=y("../utils/isFunction"),he=pe.isFunction,ye=be;ye.asyncSignatureUrl=function(){var ge=(0,ie.default)(E.default.mark(function ke(De,Be){var Ae,Se,Ee,Oe,Pe;return E.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(!re(this.options.endpoint.hostname)){Ne.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(Be=Be||{},De=this._objectName(De),Be.method=Be.method||"GET",Ae=ee.timestamp()+(Be.expires||1800),Se={bucket:this.options.bucket,object:De},Ee=this._getResource(Se),!(this.options.stsToken&&he(this.options.refreshSTSToken))){Ne.next=11;break}return Ne.next=11,ue.call(this);case 11:return this.options.stsToken&&(Be["security-token"]=this.options.stsToken),Oe=x._signatureForURL(this.options.accessKeySecret,Be,Ee,Ae),Pe=oe.parse(this._getReqUrl(Se)),Pe.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Ae,Signature:Oe.Signature},ce(Oe.subResource).to(Pe.query),Ne.abrupt("return",Pe.format());case 17:case"end":return Ne.stop()}},ke,this)}));function xe(ke,De){return ge.apply(this,arguments)}return xe}()},{"../../common/signUtils":50,"../utils/isFunction":68,"../utils/isIP":69,"../utils/setSTSToken":76,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,url:472,utility:474}],32:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js");var ie=z(y("@babel/runtime/helpers/typeof")),oe=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("../utils/checkBucketName"),ce=ee.checkBucketName,x=be,ae=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];x.copy=function(){var re=(0,oe.default)(E.default.mark(function ue(pe,he,ye,ge){var xe,ke,De;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return(0,ie.default)(ye)==="object"&&(ge=ye),ge=ge||{},ge.headers=ge.headers||{},Object.keys(ge.headers).forEach(function(Se){ge.headers["x-oss-copy-source-".concat(Se.toLowerCase())]=ge.headers[Se]}),(ge.meta||Object.keys(ge.headers).find(function(Se){return ae.includes(Se.toLowerCase())}))&&(ge.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(ge.meta,ge.headers),he=this._getSourceName(he,ye),ge.versionId&&(he="".concat(he,"?versionId=").concat(ge.versionId)),ge.headers["x-oss-copy-source"]=he,xe=this._objectRequestParams("PUT",pe,ge),xe.xmlResponse=!0,xe.successStatuses=[200,304],Ae.next=14,this.request(xe);case 14:return ke=Ae.sent,De=ke.data,De&&(De={etag:De.ETag,lastModified:De.LastModified}),Ae.abrupt("return",{data:De,res:ke.res});case 18:case"end":return Ae.stop()}},ue,this)}));function se(ue,pe,he,ye){return re.apply(this,arguments)}return se}(),x._getSourceName=function(se,ue){return typeof ue=="string"?se=this._objectName(se):se[0]!=="/"?ue=this.options.bucket:(ue=se.replace(/\/(.+?)(\/.*)/,"$1"),se=se.replace(/(\/.+?\/)(.*)/,"$2")),ce(ue),se=encodeURIComponent(se),se="/".concat(ue,"/").concat(se),se}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],33:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.delete=function(){var ee=(0,ie.default)(E.default.mark(function x(ae){var re,se,ue,pe=arguments;return E.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return re=pe.length>1&&pe[1]!==void 0?pe[1]:{},re.subres=Object.assign({},re.subres),re.versionId&&(re.subres.versionId=re.versionId),se=this._objectRequestParams("DELETE",ae,re),se.successStatuses=[204],ye.next=7,this.request(se);case 7:return ue=ye.sent,ye.abrupt("return",{res:ue.res});case 9:case"end":return ye.stop()}},x,this)}));function ce(x){return ee.apply(this,arguments)}return ce}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("utility"),ee=y("../utils/obj2xml"),ce=ee.obj2xml,x=be;x.deleteMulti=function(){var ae=(0,ie.default)(E.default.mark(function se(ue){var pe,he,ye,ge,xe,ke,De,Be,Ae,Se,Ee,Oe,Pe,Le=arguments;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:if(pe=Le.length>1&&Le[1]!==void 0?Le[1]:{},he=[],!(!ue||!ue.length)){me.next=4;break}throw new Error("names is required");case 4:for(ye=0;ye<ue.length;ye++)ge={},typeof ue[ye]=="string"?ge.Key=oe.escape(this._objectName(ue[ye])):(xe=ue[ye],ke=xe.key,De=xe.versionId,ge.Key=oe.escape(this._objectName(ke)),ge.VersionId=De),he.push(ge);return Be={Delete:{Quiet:!!pe.quiet,Object:he}},Ae=ce(Be,{headers:!0}),pe.subres=Object.assign({delete:""},pe.subres),pe.versionId&&(pe.subres.versionId=pe.versionId),Se=this._objectRequestParams("POST","",pe),Se.mime="xml",Se.content=Ae,Se.xmlResponse=!0,Se.successStatuses=[200],me.next=16,this.request(Se);case 16:return Ee=me.sent,Oe=Ee.data,Pe=Oe&&Oe.Deleted||null,Pe&&(Array.isArray(Pe)||(Pe=[Pe])),me.abrupt("return",{res:Ee.res,deleted:Pe||[]});case 21:case"end":return me.stop()}},se,this)}));function re(se){return ae.apply(this,arguments)}return re}()},{"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,utility:474}],35:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.deleteObjectTagging=function(){var ee=(0,ie.default)(E.default.mark(function x(ae){var re,se,ue,pe=arguments;return E.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return re=pe.length>1&&pe[1]!==void 0?pe[1]:{},re.subres=Object.assign({tagging:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),ae=this._objectName(ae),se=this._objectRequestParams("DELETE",ae,re),se.successStatuses=[204],ye.next=8,this.request(se);case 8:return ue=ye.sent,ye.abrupt("return",{status:ue.status,res:ue.res});case 10:case"end":return ye.stop()}},x,this)}));function ce(x){return ee.apply(this,arguments)}return ce}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(y,je,be){"use strict";y("core-js/modules/es.array.concat.js");var z=y("url"),E=y("../utils/isIP"),ie=E.isIP,oe=be;oe.generateObjectUrl=function(ce,x){if(ie(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(x)x[x.length-1]!=="/"&&(x+="/");else{x=this.options.endpoint.format();var ae=z.parse(x),re=this.options.bucket;ae.hostname="".concat(re,".").concat(ae.hostname),ae.host="".concat(re,".").concat(ae.host),x=ae.format()}return x+this._escape(this._objectName(ce))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(y,je,be){(function(z){(function(){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),ie=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("fs"),ce=y("is-type-of"),x=be;x.get=function(){var ae=(0,oe.default)(ie.default.mark(function se(ue,pe){var he,ye,ge,xe,ke,De,Be,Ae,Se=arguments;return ie.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return he=Se.length>2&&Se[2]!==void 0?Se[2]:{},ye=null,ge=!1,ce.writableStream(pe)?ye=pe:ce.string(pe)?(ye=ee.createWriteStream(pe),ge=!0):he=pe,he=he||{},xe=z&&z.browser,ke=he.responseCacheControl===null?"":"no-cache",De=xe&&ke?{"response-cache-control":ke}:{},he.subres=Object.assign(De,he.subres),he.versionId&&(he.subres.versionId=he.versionId),he.process&&(he.subres["x-oss-process"]=he.process),Oe.prev=11,Ae=this._objectRequestParams("GET",ue,he),Ae.writeStream=ye,Ae.successStatuses=[200,206,304],Oe.next=17,this.request(Ae);case 17:Be=Oe.sent,ge&&ye.destroy(),Oe.next=28;break;case 21:if(Oe.prev=21,Oe.t0=Oe.catch(11),!ge){Oe.next=27;break}return ye.destroy(),Oe.next=27,this._deleteFileSafe(pe);case 27:throw Oe.t0;case 28:return Oe.abrupt("return",{res:Be.res,content:Be.data});case 29:case"end":return Oe.stop()}},se,this,[[11,21]])}));function re(se,ue){return ae.apply(this,arguments)}return re}()}).call(this)}).call(this,y("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.getACL=function(){var ee=(0,ie.default)(E.default.mark(function x(ae){var re,se,ue,pe=arguments;return E.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return re=pe.length>1&&pe[1]!==void 0?pe[1]:{},re.subres=Object.assign({acl:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),ae=this._objectName(ae),se=this._objectRequestParams("GET",ae,re),se.successStatuses=[200],se.xmlResponse=!0,ye.next=9,this.request(se);case 9:return ue=ye.sent,ye.abrupt("return",{acl:ue.data.AccessControlList.Grant,owner:{id:ue.data.Owner.ID,displayName:ue.data.Owner.DisplayName},res:ue.res});case 11:case"end":return ye.stop()}},x,this)}));function ce(x){return ee.apply(this,arguments)}return ce}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.number.constructor.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=be,ee=y("../utils/isObject"),ce=ee.isObject,x=y("../utils/isArray"),ae=x.isArray;oe.getBucketVersions=re,oe.listObjectVersions=re;function re(){return se.apply(this,arguments)}function se(){return se=(0,ie.default)(E.default.mark(function he(){var ye,ge,xe,ke,De,Be,Ae,Se,Ee=arguments;return E.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(ye=Ee.length>0&&Ee[0]!==void 0?Ee[0]:{},ge=Ee.length>1&&Ee[1]!==void 0?Ee[1]:{},!(ye.versionIdMarker&&ye.keyMarker===void 0)){Pe.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return ge.subres=Object.assign({versions:""},ge.subres),ge.versionId&&(ge.subres.versionId=ge.versionId),xe=this._objectRequestParams("GET","",ge),xe.xmlResponse=!0,xe.successStatuses=[200],xe.query=pe(ye),Pe.next=12,this.request(xe);case 12:return ke=Pe.sent,De=ke.data.Version||[],Be=ke.data.DeleteMarker||[],Ae=this,De&&(Array.isArray(De)||(De=[De]),De=De.map(function(Le){return{name:Le.Key,url:Ae._objectUrl(Le.Key),lastModified:Le.LastModified,isLatest:Le.IsLatest==="true",versionId:Le.VersionId,etag:Le.ETag,type:Le.Type,size:Number(Le.Size),storageClass:Le.StorageClass,owner:{id:Le.Owner.ID,displayName:Le.Owner.DisplayName}}})),Be&&(ae(Be)||(Be=[Be]),Be=Be.map(function(Le){return{name:Le.Key,lastModified:Le.LastModified,versionId:Le.VersionId,owner:{id:Le.Owner.ID,displayName:Le.Owner.DisplayName}}})),Se=ke.data.CommonPrefixes||null,Se&&(ae(Se)||(Se=[Se]),Se=Se.map(function(Le){return Le.Prefix})),Pe.abrupt("return",{res:ke.res,objects:De,deleteMarker:Be,prefixes:Se,nextMarker:ke.data.NextKeyMarker||null,NextVersionIdMarker:ke.data.NextVersionIdMarker||null,nextKeyMarker:ke.data.NextKeyMarker||null,nextVersionIdMarker:ke.data.NextVersionIdMarker||null,isTruncated:ke.data.IsTruncated==="true"});case 21:case"end":return Pe.stop()}},he,this)})),se.apply(this,arguments)}function ue(he){return he.replace(/([A-Z])/g,"-$1").toLowerCase()}function pe(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ye={};return ce(he)&&Object.keys(he).forEach(function(ge){ye[ue(ge)]=he[ge]}),ye}},{"../utils/isArray":63,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],40:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.getObjectMeta=function(){var ee=(0,ie.default)(E.default.mark(function x(ae,re){var se,ue;return E.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return re=re||{},ae=this._objectName(ae),re.subres=Object.assign({objectMeta:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),se=this._objectRequestParams("HEAD",ae,re),se.successStatuses=[200],he.next=8,this.request(se);case 8:return ue=he.sent,he.abrupt("return",{status:ue.status,res:ue.res});case 10:case"end":return he.stop()}},x,this)}));function ce(x,ae){return ee.apply(this,arguments)}return ce}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=be,ee=y("../utils/isObject"),ce=ee.isObject;oe.getObjectTagging=function(){var x=(0,ie.default)(E.default.mark(function re(se){var ue,pe,he,ye,ge,xe,ke=arguments;return E.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return ue=ke.length>1&&ke[1]!==void 0?ke[1]:{},ue.subres=Object.assign({tagging:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),se=this._objectName(se),pe=this._objectRequestParams("GET",se,ue),pe.successStatuses=[200],Be.next=8,this.request(pe);case 8:return he=Be.sent,Be.next=11,this.parseXML(he.data);case 11:return ye=Be.sent,ge=ye.TagSet.Tag,ge=ge&&ce(ge)?[ge]:ge||[],xe={},ge.forEach(function(Ae){xe[Ae.Key]=Ae.Value}),Be.abrupt("return",{status:he.status,res:he.res,tag:xe});case 17:case"end":return Be.stop()}},re,this)}));function ae(re){return x.apply(this,arguments)}return ae}()},{"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],42:[function(y,je,be){"use strict";var z=y("../utils/isIP"),E=z.isIP,ie=be;ie.getObjectUrl=function(ee,ce){if(E(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return ce?ce[ce.length-1]!=="/"&&(ce+="/"):ce=this.options.endpoint.format(),ce+this._escape(this._objectName(ee))}},{"../utils/isIP":69}],43:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.getSymlink=function(){var ee=(0,ie.default)(E.default.mark(function x(ae){var re,se,ue,pe,he=arguments;return E.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return re=he.length>1&&he[1]!==void 0?he[1]:{},re.subres=Object.assign({symlink:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),ae=this._objectName(ae),se=this._objectRequestParams("GET",ae,re),se.successStatuses=[200],ge.next=8,this.request(se);case 8:return ue=ge.sent,pe=ue.res.headers["x-oss-symlink-target"],ge.abrupt("return",{targetName:decodeURIComponent(pe),res:ue.res});case 11:case"end":return ge.stop()}},x,this)}));function ce(x){return ee.apply(this,arguments)}return ce}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkEnv"),ee=oe.checkEnv,ce=be;ce.head=function(){var x=(0,ie.default)(E.default.mark(function re(se){var ue,pe,he,ye,ge=arguments;return E.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ue=ge.length>1&&ge[1]!==void 0?ge[1]:{},ee("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),ue.subres=Object.assign({},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),pe=this._objectRequestParams("HEAD",se,ue),pe.successStatuses=[200,304],ke.next=8,this.request(pe);case 8:return he=ke.sent,ye={meta:null,res:he.res,status:he.status},he.status===200&&Object.keys(he.headers).forEach(function(De){De.indexOf("x-oss-meta-")===0&&(ye.meta||(ye.meta={}),ye.meta[De.substring(11)]=he.headers[De])}),ke.abrupt("return",ye);case 12:case"end":return ke.stop()}},re,this)}));function ae(re){return x.apply(this,arguments)}return ae}()},{"../utils/checkEnv":53,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],45:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.putACL=function(){var ee=(0,ie.default)(E.default.mark(function x(ae,re,se){var ue,pe;return E.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return se=se||{},se.subres=Object.assign({acl:""},se.subres),se.versionId&&(se.subres.versionId=se.versionId),se.headers=se.headers||{},se.headers["x-oss-object-acl"]=re,ae=this._objectName(ae),ue=this._objectRequestParams("PUT",ae,se),ue.successStatuses=[200],ye.next=10,this.request(ue);case 10:return pe=ye.sent,ye.abrupt("return",{res:pe.res});case 12:case"end":return ye.stop()}},x,this)}));function ce(x,ae,re){return ee.apply(this,arguments)}return ce}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.object.keys.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/obj2xml"),ee=oe.obj2xml,ce=y("../utils/checkObjectTag"),x=ce.checkObjectTag,ae=be;ae.putObjectTagging=function(){var re=(0,ie.default)(E.default.mark(function ue(pe,he){var ye,ge,xe,ke,De=arguments;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return ye=De.length>2&&De[2]!==void 0?De[2]:{},x(he),ye.subres=Object.assign({tagging:""},ye.subres),ye.versionId&&(ye.subres.versionId=ye.versionId),pe=this._objectName(pe),ge=this._objectRequestParams("PUT",pe,ye),ge.successStatuses=[200],he=Object.keys(he).map(function(Se){return{Key:Se,Value:he[Se]}}),xe={Tagging:{TagSet:{Tag:he}}},ge.mime="xml",ge.content=ee(xe),Ae.next=13,this.request(ge);case 13:return ke=Ae.sent,Ae.abrupt("return",{res:ke.res,status:ke.status});case 15:case"end":return Ae.stop()}},ue,this)}));function se(ue,pe){return re.apply(this,arguments)}return se}()},{"../utils/checkObjectTag":54,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290}],47:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.putSymlink=function(){var ee=(0,ie.default)(E.default.mark(function x(ae,re,se){var ue,pe;return E.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return se=se||{},se.headers=se.headers||{},re=this._escape(this._objectName(re)),this._convertMetaToHeaders(se.meta,se.headers),se.headers["x-oss-symlink-target"]=re,se.subres=Object.assign({symlink:""},se.subres),se.versionId&&(se.subres.versionId=se.versionId),se.storageClass&&(se.headers["x-oss-storage-class"]=se.storageClass),ae=this._objectName(ae),ue=this._objectRequestParams("PUT",ae,se),ue.successStatuses=[200],ye.next=13,this.request(ue);case 13:return pe=ye.sent,ye.abrupt("return",{res:pe.res});case 15:case"end":return ye.stop()}},x,this)}));function ce(x,ae,re){return ee.apply(this,arguments)}return ce}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(y,je,be){"use strict";var z=y("url"),E=y("utility"),ie=y("copy-to"),oe=y("../../common/signUtils"),ee=y("../utils/isIP"),ce=ee.isIP,x=be;x.signatureUrl=function(re,se){if(ce(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");se=se||{},re=this._objectName(re),se.method=se.method||"GET";var ue=E.timestamp()+(se.expires||1800),pe={bucket:this.options.bucket,object:re},he=this._getResource(pe);this.options.stsToken&&(se["security-token"]=this.options.stsToken);var ye=oe._signatureForURL(this.options.accessKeySecret,se,he,ue),ge=z.parse(this._getReqUrl(pe));return ge.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ue,Signature:ye.Signature},ie(ye.subResource).to(ge.query),ge.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.iterator.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.string.iterator.js"),y("core-js/modules/web.dom-collections.iterator.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.function.name.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("./utils/isArray"),ee=oe.isArray,ce=be;ce._parallelNode=function(){var x=(0,ie.default)(E.default.mark(function re(se,ue,pe,he){var ye,ge,xe,ke,De,Be,Ae,Se;return E.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:ye=this,ge=[],xe=[],ke=se.length/ue,De=se.length%ue,Be=De===0?ke:(se.length-De)/ue+1,Ae=1,Se=0;case 8:if(!(Se<se.length)){Oe.next=26;break}if(!ye.isCancel()){Oe.next=11;break}return Oe.abrupt("break",26);case 11:if(he?xe.push(pe(ye,se[Se],he)):xe.push(pe(ye,se[Se])),!(xe.length===ue||Ae===Be&&Se===se.length-1)){Oe.next=23;break}return Oe.prev=13,Ae+=1,Oe.next=17,Promise.all(xe);case 17:Oe.next=22;break;case 19:Oe.prev=19,Oe.t0=Oe.catch(13),ge.push(Oe.t0);case 22:xe=[];case 23:Se++,Oe.next=8;break;case 26:return Oe.abrupt("return",ge);case 27:case"end":return Oe.stop()}},re,this,[[13,19]])}));function ae(re,se,ue,pe){return x.apply(this,arguments)}return ae}(),ce._parallel=function(ae,re,se){var ue=this;return new Promise(function(pe){var he=[];if(re<=0||!ae){pe(he);return}function ye(Oe){return function(){if(Oe===null)throw new Error("Callback was already called.");var Pe=Oe;Oe=null;for(var Le=arguments.length,Ne=new Array(Le),me=0;me<Le;me++)Ne[me]=arguments[me];Pe.apply(this,Ne)}}function ge(Oe){var Pe=-1,Le=Oe.length;return function(){return++Pe<Le&&!ue.isCancel()?{value:Oe[Pe],key:Pe}:null}}var xe=ge(ae),ke=!1,De=0,Be=!1;function Ae(Oe){De-=1,Oe?(ke=!0,he.push(Oe),pe(he)):ke&&De<=0?(ke=!0,pe(he)):Be||(ue.isCancel()?pe(he):Ee())}function Se(Oe,Pe){se(Oe).then(function(Le){Pe(null,Le)}).catch(function(Le){Pe(Le)})}function Ee(){for(Be=!0;De<re&&!ke&&!ue.isCancel();){var Oe=xe();if(Oe===null||he.length>0){ke=!0,De<=0&&pe(he);return}De+=1,Se(Oe.value,ye(Ae))}Be=!1}Ee()})},ce.cancel=function(ae){this.options.cancelFlag=!0,ee(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(re){if(re.destroyed===!1){var se={name:"cancel",message:"cancel"};re.destroy(se)}}),this.multipartUploadStreams=[],ae&&this.abortMultipartUpload(ae.name,ae.uploadId,ae.options)},ce.isCancel=function(){return this.options.cancelFlag},ce.resetCancelFlag=function(){this.options.cancelFlag=!1},ce._stop=function(){this.options.cancelFlag=!0},ce._makeCancelEvent=function(){var ae={status:0,name:"cancel"};return ae},ce._makeAbortEvent=function(){var ae={status:0,name:"abort",message:"upload task has been abort"};return ae}},{"./utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.string.iterator.js":303,"core-js/modules/web.dom-collections.for-each.js":339,"core-js/modules/web.dom-collections.iterator.js":340}],50:[function(y,je,be){(function(z){(function(){"use strict";y("core-js/modules/es.string.trim.js"),y("core-js/modules/es.array.sort.js"),y("core-js/modules/es.array.join.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.to-string.js");var E=y("./../../shims/crypto/crypto.js"),ie=y("is-type-of"),oe=y("./utils/lowercaseKeyHeader"),ee=oe.lowercaseKeyHeader;be.buildCanonicalizedResource=function(x,ae){var re="".concat(x),se="?";if(ie.string(ae)&&ae.trim()!=="")re+=se+ae;else if(ie.array(ae))ae.sort(),re+=se+ae.join("&");else if(ae){var ue=function(ye,ge){return ye[0]>ge[0]?1:ye[0]<ge[0]?-1:0},pe=function(ye){re+=se+ye,(ae[ye]||ae[ye]===0)&&(re+="=".concat(ae[ye])),se="&"};Object.keys(ae).sort(ue).forEach(pe)}return re},be.buildCanonicalString=function(x,ae,re,se){re=re||{};var ue=ee(re.headers),pe="x-oss-",he=[],ye={},ge=[x.toUpperCase(),ue["content-md5"]||"",ue["content-type"],se||ue["x-oss-date"]];return Object.keys(ue).forEach(function(xe){var ke=xe.toLowerCase();ke.indexOf(pe)===0&&(ye[ke]=String(ue[xe]).trim())}),Object.keys(ye).sort().forEach(function(xe){he.push("".concat(xe,":").concat(ye[xe]))}),ge=ge.concat(he),ge.push(this.buildCanonicalizedResource(ae,re.parameters)),ge.join(`
`)},be.computeSignature=function(x,ae){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",se=E.createHmac("sha1",x);return se.update(z.from(ae,re)).digest("base64")},be.authorization=function(x,ae,re,se){return"OSS ".concat(x,":").concat(this.computeSignature(ae,re,se))},be._signatureForURL=function(x){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=arguments.length>2?arguments[2]:void 0,se=arguments.length>3?arguments[3]:void 0,ue=arguments.length>4?arguments[4]:void 0,pe={},he=ae.subResource,ye=he===void 0?{}:he;if(ae.process){var ge="x-oss-process";ye[ge]=ae.process}if(ae.trafficLimit){var xe="x-oss-traffic-limit";ye[xe]=ae.trafficLimit}if(ae.response&&Object.keys(ae.response).forEach(function(Ae){var Se="response-".concat(Ae.toLowerCase());ye[Se]=ae.response[Ae]}),Object.keys(ae).forEach(function(Ae){var Se=Ae.toLowerCase(),Ee=ae[Ae];Se.indexOf("x-oss-")===0?pe[Se]=Ee:(Se.indexOf("content-md5")===0||Se.indexOf("content-type")===0)&&(pe[Ae]=Ee)}),Object.prototype.hasOwnProperty.call(ae,"security-token")&&(ye["security-token"]=ae["security-token"]),Object.prototype.hasOwnProperty.call(ae,"callback")){var ke={callbackUrl:encodeURI(ae.callback.url),callbackBody:ae.callback.body};if(ae.callback.host&&(ke.callbackHost=ae.callback.host),ae.callback.contentType&&(ke.callbackBodyType=ae.callback.contentType),ye.callback=z.from(JSON.stringify(ke)).toString("base64"),ae.callback.customValue){var De={};Object.keys(ae.callback.customValue).forEach(function(Ae){De["x:".concat(Ae)]=ae.callback.customValue[Ae]}),ye["callback-var"]=z.from(JSON.stringify(De)).toString("base64")}}var Be=this.buildCanonicalString(ae.method,re,{headers:pe,parameters:ye},se.toString());return{Signature:this.computeSignature(x,Be,ue),subResource:ye}}}).call(this)}).call(this,y("buffer").Buffer)},{"./../../shims/crypto/crypto.js":461,"./utils/lowercaseKeyHeader":71,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.trim.js":308,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466}],51:[function(y,je,be){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.checkBucketName=void 0,be.checkBucketName=function(z){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=E?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!ie.test(z))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(y,je,be){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.checkConfigValid=void 0;var z={endpoint:E,region:/^[a-zA-Z0-9\-_]+$/};function E(ie){return typeof ie=="string"?/^[a-zA-Z0-9._:/-]+$/.test(ie):ie.host?/^[a-zA-Z0-9._:/-]+$/.test(ie.host):!1}be.checkConfigValid=function(ie,oe){if(z[oe]){var ee=!0;if(z[oe]instanceof Function?ee=z[oe](ie):ee=z[oe].test(ie),!ee)throw new Error("The ".concat(oe," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(y,je,be){(function(z){(function(){"use strict";Object.defineProperty(be,"__esModule",{value:!0}),be.checkEnv=void 0;function E(ie){z.browser&&console.warn(ie)}be.checkEnv=E}).call(this)}).call(this,y("_process"))},{_process:467}],54:[function(y,je,be){"use strict";y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.object.entries.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.checkObjectTag=void 0;var z=y("./checkValid"),E=z.checkValid,ie=y("./isObject"),oe=ie.isObject,ee=[{validator:function(re){if(typeof re!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],ce={key:[].concat(ee,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(ee,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function x(ae){if(!oe(ae))throw new Error("tag must be Object");var re=Object.entries(ae);if(re.length>10)throw new Error("maximum of 10 tags for a object");var se=["key","value"];re.forEach(function(ue){ue.forEach(function(pe,he){E(pe,ce[se[he]])})})}be.checkObjectTag=x},{"./checkValid":55,"./isObject":70,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],55:[function(y,je,be){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.checkValid=void 0;function z(E,ie){ie.forEach(function(oe){if(oe.validator)oe.validator(E);else if(oe.pattern&&!oe.pattern.test(E))throw new Error(oe.msg)})}be.checkValid=z},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(y,je,be){(function(z){(function(){"use strict";y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.includes.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.concat.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.createRequest=void 0;var E=y("./../../../shims/crypto/crypto.js"),ie=y("debug")("ali-oss"),oe=y("mime"),ee=y("dateformat"),ce=y("copy-to"),x=y("path"),ae=y("./encoder"),re=ae.encoder,se=y("./isIP"),ue=se.isIP,pe=y("./setRegion"),he=pe.setRegion,ye=y("../client/getReqUrl"),ge=ye.getReqUrl,xe=y("./isDingTalk"),ke=xe.isDingTalk;function De(Se,Ee){return Se[Ee]||Se[Ee.toLowerCase()]}function Be(Se,Ee){delete Se[Ee],delete Se[Ee.toLowerCase()]}function Ae(Se){var Ee=new Date;this.options.amendTimeSkewed&&(Ee=+new Date+this.options.amendTimeSkewed);var Oe={"x-oss-date":ee(Ee,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(Oe["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(Oe["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(Oe,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(Oe["x-oss-security-token"]=this.options.stsToken),ce(Se.headers).to(Oe),De(Oe,"Content-Type")||(Se.mime&&Se.mime.indexOf("/")>0?Oe["Content-Type"]=Se.mime:ke()?Oe["Content-Type"]="application/octet-stream":Oe["Content-Type"]=oe.getType(Se.mime||x.extname(Se.object||""))),De(Oe,"Content-Type")||Be(Oe,"Content-Type"),Se.content&&(Se.disabledMD5||(!Se.headers||!Se.headers["Content-MD5"]?Oe["Content-MD5"]=E.createHash("md5").update(z.from(Se.content,"utf8")).digest("base64"):Oe["Content-MD5"]=Se.headers["Content-MD5"]),Oe["Content-Length"]||(Oe["Content-Length"]=Se.content.length));var Pe=Object.prototype.hasOwnProperty;for(var Le in Oe)Oe[Le]&&Pe.call(Oe,Le)&&(Oe[Le]=re(String(Oe[Le]),this.options.headerEncoding));var Ne=this._getResource(Se);if(Oe.authorization=this.authorization(Se.method,Ne,Se.subres,Oe,this.options.headerEncoding),ue(this.options.endpoint.hostname)){var me=this.options,Ve=me.region,Ze=me.internal,We=me.secure,nt=he(Ve,Ze,We);Oe.host="".concat(Se.bucket,".").concat(nt.host)}var _e=ge.bind(this)(Se);ie("request %s %s, with headers %j, !!stream: %s",Se.method,_e,Oe,!!Se.stream);var Ue=Se.timeout||this.options.timeout,tt={method:Se.method,content:Se.content,stream:Se.stream,headers:Oe,timeout:Ue,writeStream:Se.writeStream,customResponse:Se.customResponse,ctx:Se.ctx||this.ctx};return this.agent&&(tt.agent=this.agent),this.httpsAgent&&(tt.httpsAgent=this.httpsAgent),tt.enableProxy=!!this.options.enableProxy,tt.proxy=this.options.proxy?this.options.proxy:null,{url:_e,params:tt}}be.createRequest=Ae}).call(this)}).call(this,y("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":461,"./encoder":59,"./isDingTalk":66,"./isIP":69,"./setRegion":75,buffer:90,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.includes.js":302,dateformat:342,debug:465,mime:374,path:378}],57:[function(y,je,be){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.entries.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.object.keys.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.dataFix=void 0;var z=y("./isObject"),E=["true","TRUE","1",1],ie=["false","FALSE","0",0];function oe(x,ae,re){if(z.isObject(x)){var se=ae.remove,ue=se===void 0?[]:se,pe=ae.rename,he=pe===void 0?{}:pe,ye=ae.camel,ge=ye===void 0?[]:ye,xe=ae.bool,ke=xe===void 0?[]:xe,De=ae.lowerFirst,Be=De===void 0?!1:De;return ue.forEach(function(Ae){return delete x[Ae]}),Object.entries(he).forEach(function(Ae){x[Ae[0]]&&(x[Ae[1]]||(x[Ae[1]]=x[Ae[0]],delete x[Ae[0]]))}),ge.forEach(function(Ae){if(x[Ae]){var Se=Ae.replace(/^(.)/,function(Ee){return Ee.toLowerCase()}).replace(/-(\w)/g,function(Ee,Oe){return Oe.toUpperCase()});x[Se]||(x[Se]=x[Ae])}}),ke.forEach(function(Ae){x[Ae]=ee(x[Ae])}),typeof re=="function"&&re(x),ce(x,Be),oe}}be.dataFix=oe;function ee(x){return x?E.includes(x)?!0:ie.includes(x)?!1:x:!1}function ce(x,ae){ae&&Object.keys(x).forEach(function(re){var se=re.replace(/^\w/,function(ue){return ue.toLowerCase()});typeof x[se]=="undefined"&&(x[se]=x[re],delete x[re])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault");y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js");var E=z(y("@babel/runtime/helpers/typeof"));Object.defineProperty(be,"__esModule",{value:!0}),be.deepCopyWith=be.deepCopy=void 0;var ie=y("./isBuffer");be.deepCopy=function(oe){if(oe===null||(0,E.default)(oe)!=="object")return oe;if(ie.isBuffer(oe))return oe.slice();var ee=Array.isArray(oe)?[]:{};return Object.keys(oe).forEach(function(ce){ee[ce]=be.deepCopy(oe[ce])}),ee},be.deepCopyWith=function(oe,ee){function ce(x,ae,re){var se=ee(x,ae,re);if(se!==void 0)return se;if(x===null||(0,E.default)(x)!=="object")return x;if(ie.isBuffer(x))return x.slice();var ue=Array.isArray(x)?[]:{};return Object.keys(x).forEach(function(pe){ue[pe]=ce(x[pe],pe,x)}),ue}return ee?ce(oe,"",null):be.deepCopy(oe)}},{"./isBuffer":65,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],59:[function(y,je,be){(function(z){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.encoder=void 0;function E(ie){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return oe==="utf-8"?ie:z.from(ie).toString("latin1")}be.encoder=E}).call(this)}).call(this,y("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(y,je,be){"use strict";y("core-js/modules/es.array.map.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.formatInventoryConfig=void 0;var z=y("../utils/dataFix"),E=y("../utils/isObject"),ie=y("../utils/isArray"),oe=y("../utils/formatObjKey");function ee(x){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ae&&E.isObject(x)&&(x=[x]),ie.isArray(x)?x=x.map(ce):x=ce(x),x}be.formatInventoryConfig=ee;function ce(x){return z.dataFix(x,{bool:["IsEnabled"]},function(ae){var re,se;ae.prefix=ae.Filter.Prefix,delete ae.Filter,ae.OSSBucketDestination=ae.Destination.OSSBucketDestination,ae.OSSBucketDestination.rolename=ae.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete ae.OSSBucketDestination.RoleArn,ae.OSSBucketDestination.bucket=ae.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete ae.OSSBucketDestination.Bucket,delete ae.Destination,ae.frequency=ae.Schedule.Frequency,delete ae.Schedule.Frequency,!((re=ae==null?void 0:ae.OptionalFields)===null||re===void 0)&&re.Field&&!ie.isArray((se=ae.OptionalFields)===null||se===void 0?void 0:se.Field)&&(ae.OptionalFields.Field=[ae.OptionalFields.Field])}),x=oe.formatObjKey(x,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),x}},{"../utils/dataFix":57,"../utils/formatObjKey":61,"../utils/isArray":63,"../utils/isObject":70,"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305}],61:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault");y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.includes.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js");var E=z(y("@babel/runtime/helpers/typeof"));Object.defineProperty(be,"__esModule",{value:!0}),be.formatObjKey=void 0;function ie(ee,ce,x){if(ee===null||(0,E.default)(ee)!=="object")return ee;var ae;if(Array.isArray(ee)){ae=[];for(var re=0;re<ee.length;re++)ae.push(ie(ee[re],ce,x))}else ae={},Object.keys(ee).forEach(function(se){ae[oe(se,ce,x)]=ie(ee[se],ce,x)});return ae}be.formatObjKey=ie;function oe(ee,ce,x){return x&&x.exclude&&x.exclude.includes(ee)||(ce==="firstUpperCase"?ee=ee.replace(/^./,function(ae){return ae.toUpperCase()}):ce==="firstLowerCase"&&(ee=ee.replace(/^./,function(ae){return ae.toLowerCase()}))),ee}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.includes.js":302,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],62:[function(y,je,be){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.getStrBytesCount=void 0;function z(E){for(var ie=0,oe=0;oe<E.length;oe++){var ee=E.charAt(oe);/^[\u00-\uff]$/.test(ee)?ie+=1:ie+=2}return ie}be.getStrBytesCount=z},{"core-js/modules/es.regexp.exec.js":300}],63:[function(y,je,be){"use strict";y("core-js/modules/es.object.to-string.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.isArray=void 0,be.isArray=function(z){return Object.prototype.toString.call(z)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(y,je,be){"use strict";Object.defineProperty(be,"__esModule",{value:!0}),be.isBlob=void 0;function z(E){return typeof Blob!="undefined"&&E instanceof Blob}be.isBlob=z},{}],65:[function(y,je,be){(function(z){(function(){"use strict";Object.defineProperty(be,"__esModule",{value:!0}),be.isBuffer=void 0;function E(ie){return z.isBuffer(ie)}be.isBuffer=E}).call(this)}).call(this,{isBuffer:y("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(y,je,be){(function(z){(function(){"use strict";y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.includes.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.isDingTalk=void 0;function E(){return!!(z.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}be.isDingTalk=E}).call(this)}).call(this,y("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(y,je,be){"use strict";Object.defineProperty(be,"__esModule",{value:!0}),be.isFile=void 0,be.isFile=function(z){return typeof File!="undefined"&&z instanceof File}},{}],68:[function(y,je,be){"use strict";Object.defineProperty(be,"__esModule",{value:!0}),be.isFunction=void 0,be.isFunction=function(z){return typeof z=="function"}},{}],69:[function(y,je,be){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.isIP=void 0,be.isIP=function(z){var E=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,ie=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return E.test(z)||ie.test(z)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(y,je,be){"use strict";y("core-js/modules/es.object.to-string.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.isObject=void 0,be.isObject=function(z){return Object.prototype.toString.call(z)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(y,je,be){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.lowercaseKeyHeader=void 0;var z=y("./isObject");function E(ie){var oe={};return z.isObject(ie)&&Object.keys(ie).forEach(function(ee){oe[ee.toLowerCase()]=ie[ee]}),oe}be.lowercaseKeyHeader=E},{"./isObject":70,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],72:[function(y,je,be){"use strict";y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.array.join.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.obj2xml=void 0;var z=y("./formatObjKey");function E(oe){return Object.prototype.toString.call(oe).replace(/(.*? |])/g,"").toLowerCase()}function ie(oe,ee){var ce="";return ee&&ee.headers&&(ce=`<?xml version="1.0" encoding="UTF-8"?>
`),ee&&ee.firstUpperCase&&(oe=z.formatObjKey(oe,"firstUpperCase")),E(oe)==="object"?Object.keys(oe).forEach(function(x){E(oe[x])!=="undefined"&&E(oe[x])!=="null"&&(E(oe[x])==="string"||E(oe[x])==="number"?ce+="<".concat(x,">").concat(oe[x],"</").concat(x,">"):E(oe[x])==="object"?ce+="<".concat(x,">").concat(ie(oe[x]),"</").concat(x,">"):E(oe[x])==="array"?ce+=oe[x].map(function(ae){return"<".concat(x,">").concat(ie(ae),"</").concat(x,">")}).join(""):ce+="<".concat(x,">").concat(oe[x].toString(),"</").concat(x,">"))}):ce+=oe.toString(),ce}be.obj2xml=ie},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(y,je,be){"use strict";y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.array.from.js"),y("core-js/modules/es.string.iterator.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.symbol.js"),y("core-js/modules/es.symbol.description.js"),y("core-js/modules/es.symbol.iterator.js"),y("core-js/modules/es.array.iterator.js"),y("core-js/modules/web.dom-collections.iterator.js"),y("core-js/modules/es.object.assign.js");function z(ee,ce){var x=typeof Symbol!="undefined"&&ee[Symbol.iterator]||ee["@@iterator"];if(!x){if(Array.isArray(ee)||(x=E(ee))||ce&&ee&&typeof ee.length=="number"){x&&(ee=x);var ae=0,re=function(){};return{s:re,n:function(){return ae>=ee.length?{done:!0}:{done:!1,value:ee[ae++]}},e:function(ye){throw ye},f:re}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var se=!0,ue=!1,pe;return{s:function(){x=x.call(ee)},n:function(){var ye=x.next();return se=ye.done,ye},e:function(ye){ue=!0,pe=ye},f:function(){try{!se&&x.return!=null&&x.return()}finally{if(ue)throw pe}}}}function E(ee,ce){if(ee){if(typeof ee=="string")return ie(ee,ce);var x=Object.prototype.toString.call(ee).slice(8,-1);if(x==="Object"&&ee.constructor&&(x=ee.constructor.name),x==="Map"||x==="Set")return Array.from(ee);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return ie(ee,ce)}}function ie(ee,ce){(ce==null||ce>ee.length)&&(ce=ee.length);for(var x=0,ae=new Array(ce);x<ce;x++)ae[x]=ee[x];return ae}Object.defineProperty(be,"__esModule",{value:!0}),be.omit=void 0;function oe(ee,ce){var x=Object.assign({},ee),ae=z(ce),re;try{for(ae.s();!(re=ae.n()).done;){var se=re.value;delete x[se]}}catch(ue){ae.e(ue)}finally{ae.f()}return x}be.omit=oe},{"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.iterator.js":312,"core-js/modules/es.symbol.js":313,"core-js/modules/web.dom-collections.iterator.js":340}],74:[function(y,je,be){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.retry=void 0;function z(E,ie){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=0,ce=oe.retryDelay,x=ce===void 0?500:ce,ae=oe.errorHandler,re=ae===void 0?function(){return!0}:ae,se=function ue(){for(var pe=arguments.length,he=new Array(pe),ye=0;ye<pe;ye++)he[ye]=arguments[ye];return new Promise(function(ge,xe){E.apply(void 0,he).then(function(ke){ee=0,ge(ke)}).catch(function(ke){ee<ie&&re(ke)?(ee++,setTimeout(function(){ge(ue.apply(void 0,he))},x)):(ee=0,xe(ke))})})};return se}be.retry=z},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(y,je,be){"use strict";var z=function(ee){return ee&&ee.__esModule?ee:{default:ee}};Object.defineProperty(be,"__esModule",{value:!0}),be.setRegion=void 0;var E=z(y("url")),ie=y("./checkConfigValid");function oe(ee){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ie.checkConfigValid(ee,"region");var ae=x?"https://":"http://",re=ce?"-internal.aliyuncs.com":".aliyuncs.com",se="vpc100-oss-cn-";return ee.substr(0,se.length)===se&&(re=".aliyuncs.com"),E.default.parse(ae+ee+re)}be.setRegion=oe},{"./checkConfigValid":52,url:472}],76:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.object.assign.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.checkCredentials=be.setSTSToken=void 0;var oe=y("./formatObjKey");function ee(){return ce.apply(this,arguments)}function ce(){return ce=(0,ie.default)(E.default.mark(function ae(){var re,se;return E.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(this.options||(this.options={}),re=new Date,!this.stsTokenFreshTime){pe.next=14;break}if(!(+re-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){pe.next=12;break}return this.stsTokenFreshTime=re,pe.next=7,this.options.refreshSTSToken();case 7:se=pe.sent,se=oe.formatObjKey(se,"firstLowerCase"),se.securityToken&&(se.stsToken=se.securityToken),x(se),Object.assign(this.options,se);case 12:pe.next=15;break;case 14:this.stsTokenFreshTime=re;case 15:return pe.abrupt("return",null);case 16:case"end":return pe.stop()}},ae,this)})),ce.apply(this,arguments)}be.setSTSToken=ee;function x(ae){var re=["accessKeySecret","accessKeyId","stsToken"],se=Object.keys(ae);re.forEach(function(ue){if(!se.find(function(pe){return pe===ue}))throw Error("refreshSTSToken must return contains ".concat(ue))})}be.checkCredentials=x},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(y,je,be){function z(ie,oe,ee,ce,x,ae,re){try{var se=ie[ae](re),ue=se.value}catch(pe){ee(pe);return}se.done?oe(ue):Promise.resolve(ue).then(ce,x)}function E(ie){return function(){var oe=this,ee=arguments;return new Promise(function(ce,x){var ae=ie.apply(oe,ee);function re(ue){z(ae,ce,x,re,se,"next",ue)}function se(ue){z(ae,ce,x,re,se,"throw",ue)}re(void 0)})}}je.exports=E,je.exports.__esModule=!0,je.exports.default=je.exports},{}],78:[function(y,je,be){function z(E){return E&&E.__esModule?E:{default:E}}je.exports=z,je.exports.__esModule=!0,je.exports.default=je.exports},{}],79:[function(y,je,be){function z(E){"@babel/helpers - typeof";return je.exports=z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},je.exports.__esModule=!0,je.exports.default=je.exports,z(E)}je.exports=z,je.exports.__esModule=!0,je.exports.default=je.exports},{}],80:[function(y,je,be){je.exports=y("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(y,je,be){je.exports=z,je.exports.HttpsAgent=z;function z(){}},{}],82:[function(y,je,be){(function(z){(function(){"use strict";var E=y("object-assign");function ie(Ve,Ze){if(Ve===Ze)return 0;for(var We=Ve.length,nt=Ze.length,_e=0,Ue=Math.min(We,nt);_e<Ue;++_e)if(Ve[_e]!==Ze[_e]){We=Ve[_e],nt=Ze[_e];break}return We<nt?-1:nt<We?1:0}function oe(Ve){return z.Buffer&&typeof z.Buffer.isBuffer=="function"?z.Buffer.isBuffer(Ve):!!(Ve!=null&&Ve._isBuffer)}var ee=y("util/"),ce=Object.prototype.hasOwnProperty,x=Array.prototype.slice,ae=function(){return function(){}.name==="foo"}();function re(Ve){return Object.prototype.toString.call(Ve)}function se(Ve){return oe(Ve)||typeof z.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Ve):Ve?!!(Ve instanceof DataView||Ve.buffer&&Ve.buffer instanceof ArrayBuffer):!1}var ue=je.exports=De,pe=/\s*function\s+([^\(\s]*)\s*/;function he(Ve){if(ee.isFunction(Ve)){if(ae)return Ve.name;var Ze=Ve.toString(),We=Ze.match(pe);return We&&We[1]}}ue.AssertionError=function(Ze){this.name="AssertionError",this.actual=Ze.actual,this.expected=Ze.expected,this.operator=Ze.operator,Ze.message?(this.message=Ze.message,this.generatedMessage=!1):(this.message=xe(this),this.generatedMessage=!0);var We=Ze.stackStartFunction||ke;if(Error.captureStackTrace)Error.captureStackTrace(this,We);else{var nt=new Error;if(nt.stack){var _e=nt.stack,Ue=he(We),tt=_e.indexOf(`
`+Ue);if(tt>=0){var rt=_e.indexOf(`
`,tt+1);_e=_e.substring(rt+1)}this.stack=_e}}},ee.inherits(ue.AssertionError,Error);function ye(Ve,Ze){return typeof Ve=="string"?Ve.length<Ze?Ve:Ve.slice(0,Ze):Ve}function ge(Ve){if(ae||!ee.isFunction(Ve))return ee.inspect(Ve);var Ze=he(Ve),We=Ze?": "+Ze:"";return"[Function"+We+"]"}function xe(Ve){return ye(ge(Ve.actual),128)+" "+Ve.operator+" "+ye(ge(Ve.expected),128)}function ke(Ve,Ze,We,nt,_e){throw new ue.AssertionError({message:We,actual:Ve,expected:Ze,operator:nt,stackStartFunction:_e})}ue.fail=ke;function De(Ve,Ze){Ve||ke(Ve,!0,Ze,"==",ue.ok)}ue.ok=De,ue.equal=function(Ze,We,nt){Ze!=We&&ke(Ze,We,nt,"==",ue.equal)},ue.notEqual=function(Ze,We,nt){Ze==We&&ke(Ze,We,nt,"!=",ue.notEqual)},ue.deepEqual=function(Ze,We,nt){Be(Ze,We,!1)||ke(Ze,We,nt,"deepEqual",ue.deepEqual)},ue.deepStrictEqual=function(Ze,We,nt){Be(Ze,We,!0)||ke(Ze,We,nt,"deepStrictEqual",ue.deepStrictEqual)};function Be(Ve,Ze,We,nt){if(Ve===Ze)return!0;if(oe(Ve)&&oe(Ze))return ie(Ve,Ze)===0;if(ee.isDate(Ve)&&ee.isDate(Ze))return Ve.getTime()===Ze.getTime();if(ee.isRegExp(Ve)&&ee.isRegExp(Ze))return Ve.source===Ze.source&&Ve.global===Ze.global&&Ve.multiline===Ze.multiline&&Ve.lastIndex===Ze.lastIndex&&Ve.ignoreCase===Ze.ignoreCase;if((Ve===null||typeof Ve!="object")&&(Ze===null||typeof Ze!="object"))return We?Ve===Ze:Ve==Ze;if(se(Ve)&&se(Ze)&&re(Ve)===re(Ze)&&!(Ve instanceof Float32Array||Ve instanceof Float64Array))return ie(new Uint8Array(Ve.buffer),new Uint8Array(Ze.buffer))===0;if(oe(Ve)!==oe(Ze))return!1;nt=nt||{actual:[],expected:[]};var _e=nt.actual.indexOf(Ve);return _e!==-1&&_e===nt.expected.indexOf(Ze)?!0:(nt.actual.push(Ve),nt.expected.push(Ze),Se(Ve,Ze,We,nt))}function Ae(Ve){return Object.prototype.toString.call(Ve)=="[object Arguments]"}function Se(Ve,Ze,We,nt){if(Ve==null||Ze===null||Ze===void 0)return!1;if(ee.isPrimitive(Ve)||ee.isPrimitive(Ze))return Ve===Ze;if(We&&Object.getPrototypeOf(Ve)!==Object.getPrototypeOf(Ze))return!1;var _e=Ae(Ve),Ue=Ae(Ze);if(_e&&!Ue||!_e&&Ue)return!1;if(_e)return Ve=x.call(Ve),Ze=x.call(Ze),Be(Ve,Ze,We);var tt=me(Ve),rt=me(Ze),et,Ke;if(tt.length!==rt.length)return!1;for(tt.sort(),rt.sort(),Ke=tt.length-1;Ke>=0;Ke--)if(tt[Ke]!==rt[Ke])return!1;for(Ke=tt.length-1;Ke>=0;Ke--)if(et=tt[Ke],!Be(Ve[et],Ze[et],We,nt))return!1;return!0}ue.notDeepEqual=function(Ze,We,nt){Be(Ze,We,!1)&&ke(Ze,We,nt,"notDeepEqual",ue.notDeepEqual)},ue.notDeepStrictEqual=Ee;function Ee(Ve,Ze,We){Be(Ve,Ze,!0)&&ke(Ve,Ze,We,"notDeepStrictEqual",Ee)}ue.strictEqual=function(Ze,We,nt){Ze!==We&&ke(Ze,We,nt,"===",ue.strictEqual)},ue.notStrictEqual=function(Ze,We,nt){Ze===We&&ke(Ze,We,nt,"!==",ue.notStrictEqual)};function Oe(Ve,Ze){if(!Ve||!Ze)return!1;if(Object.prototype.toString.call(Ze)=="[object RegExp]")return Ze.test(Ve);try{if(Ve instanceof Ze)return!0}catch(We){}return Error.isPrototypeOf(Ze)?!1:Ze.call({},Ve)===!0}function Pe(Ve){var Ze;try{Ve()}catch(We){Ze=We}return Ze}function Le(Ve,Ze,We,nt){var _e;if(typeof Ze!="function")throw new TypeError('"block" argument must be a function');typeof We=="string"&&(nt=We,We=null),_e=Pe(Ze),nt=(We&&We.name?" ("+We.name+").":".")+(nt?" "+nt:"."),Ve&&!_e&&ke(_e,We,"Missing expected exception"+nt);var Ue=typeof nt=="string",tt=!Ve&&ee.isError(_e),rt=!Ve&&_e&&!We;if((tt&&Ue&&Oe(_e,We)||rt)&&ke(_e,We,"Got unwanted exception"+nt),Ve&&_e&&We&&!Oe(_e,We)||!Ve&&_e)throw _e}ue.throws=function(Ve,Ze,We){Le(!0,Ve,Ze,We)},ue.doesNotThrow=function(Ve,Ze,We){Le(!1,Ve,Ze,We)},ue.ifError=function(Ve){if(Ve)throw Ve};function Ne(Ve,Ze){Ve||ke(Ve,!0,Ze,"==",Ne)}ue.strict=E(Ne,ue,{equal:ue.strictEqual,deepEqual:ue.deepStrictEqual,notEqual:ue.notStrictEqual,notDeepEqual:ue.notDeepStrictEqual}),ue.strict.strict=ue.strict;var me=Object.keys||function(Ve){var Ze=[];for(var We in Ve)ce.call(Ve,We)&&Ze.push(We);return Ze}}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(y,je,be){typeof Object.create=="function"?je.exports=function(E,ie){E.super_=ie,E.prototype=Object.create(ie.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}})}:je.exports=function(E,ie){E.super_=ie;var oe=function(){};oe.prototype=ie.prototype,E.prototype=new oe,E.prototype.constructor=E}},{}],84:[function(y,je,be){je.exports=function(E){return E&&typeof E=="object"&&typeof E.copy=="function"&&typeof E.fill=="function"&&typeof E.readUInt8=="function"}},{}],85:[function(y,je,be){(function(z,E){(function(){var ie=/%[sdj%]/g;be.format=function(rt){if(!Se(rt)){for(var et=[],Ke=0;Ke<arguments.length;Ke++)et.push(ce(arguments[Ke]));return et.join(" ")}for(var Ke=1,Ye=arguments,Xe=Ye.length,ot=String(rt).replace(ie,function(ft){if(ft==="%%")return"%";if(Ke>=Xe)return ft;switch(ft){case"%s":return String(Ye[Ke++]);case"%d":return Number(Ye[Ke++]);case"%j":try{return JSON.stringify(Ye[Ke++])}catch(at){return"[Circular]"}default:return ft}}),Qe=Ye[Ke];Ke<Xe;Qe=Ye[++Ke])De(Qe)||!Le(Qe)?ot+=" "+Qe:ot+=" "+ce(Qe);return ot},be.deprecate=function(rt,et){if(Oe(E.process))return function(){return be.deprecate(rt,et).apply(this,arguments)};if(z.noDeprecation===!0)return rt;var Ke=!1;function Ye(){if(!Ke){if(z.throwDeprecation)throw new Error(et);z.traceDeprecation?console.trace(et):console.error(et),Ke=!0}return rt.apply(this,arguments)}return Ye};var oe={},ee;be.debuglog=function(rt){if(Oe(ee)&&(ee=z.env.NODE_DEBUG||""),rt=rt.toUpperCase(),!oe[rt])if(new RegExp("\\b"+rt+"\\b","i").test(ee)){var et=z.pid;oe[rt]=function(){var Ke=be.format.apply(be,arguments);console.error("%s %d: %s",rt,et,Ke)}}else oe[rt]=function(){};return oe[rt]};function ce(rt,et){var Ke={seen:[],stylize:ae};return arguments.length>=3&&(Ke.depth=arguments[2]),arguments.length>=4&&(Ke.colors=arguments[3]),ke(et)?Ke.showHidden=et:et&&be._extend(Ke,et),Oe(Ke.showHidden)&&(Ke.showHidden=!1),Oe(Ke.depth)&&(Ke.depth=2),Oe(Ke.colors)&&(Ke.colors=!1),Oe(Ke.customInspect)&&(Ke.customInspect=!0),Ke.colors&&(Ke.stylize=x),se(Ke,rt,Ke.depth)}be.inspect=ce,ce.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ce.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function x(rt,et){var Ke=ce.styles[et];return Ke?"\x1B["+ce.colors[Ke][0]+"m"+rt+"\x1B["+ce.colors[Ke][1]+"m":rt}function ae(rt,et){return rt}function re(rt){var et={};return rt.forEach(function(Ke,Ye){et[Ke]=!0}),et}function se(rt,et,Ke){if(rt.customInspect&&et&&Ve(et.inspect)&&et.inspect!==be.inspect&&!(et.constructor&&et.constructor.prototype===et)){var Ye=et.inspect(Ke,rt);return Se(Ye)||(Ye=se(rt,Ye,Ke)),Ye}var Xe=ue(rt,et);if(Xe)return Xe;var ot=Object.keys(et),Qe=re(ot);if(rt.showHidden&&(ot=Object.getOwnPropertyNames(et)),me(et)&&(ot.indexOf("message")>=0||ot.indexOf("description")>=0))return pe(et);if(ot.length===0){if(Ve(et)){var ft=et.name?": "+et.name:"";return rt.stylize("[Function"+ft+"]","special")}if(Pe(et))return rt.stylize(RegExp.prototype.toString.call(et),"regexp");if(Ne(et))return rt.stylize(Date.prototype.toString.call(et),"date");if(me(et))return pe(et)}var at="",qe=!1,Fe=["{","}"];if(xe(et)&&(qe=!0,Fe=["[","]"]),Ve(et)){var Re=et.name?": "+et.name:"";at=" [Function"+Re+"]"}if(Pe(et)&&(at=" "+RegExp.prototype.toString.call(et)),Ne(et)&&(at=" "+Date.prototype.toUTCString.call(et)),me(et)&&(at=" "+pe(et)),ot.length===0&&(!qe||et.length==0))return Fe[0]+at+Fe[1];if(Ke<0)return Pe(et)?rt.stylize(RegExp.prototype.toString.call(et),"regexp"):rt.stylize("[Object]","special");rt.seen.push(et);var ne;return qe?ne=he(rt,et,Ke,Qe,ot):ne=ot.map(function(fe){return ye(rt,et,Ke,Qe,fe,qe)}),rt.seen.pop(),ge(ne,at,Fe)}function ue(rt,et){if(Oe(et))return rt.stylize("undefined","undefined");if(Se(et)){var Ke="'"+JSON.stringify(et).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return rt.stylize(Ke,"string")}if(Ae(et))return rt.stylize(""+et,"number");if(ke(et))return rt.stylize(""+et,"boolean");if(De(et))return rt.stylize("null","null")}function pe(rt){return"["+Error.prototype.toString.call(rt)+"]"}function he(rt,et,Ke,Ye,Xe){for(var ot=[],Qe=0,ft=et.length;Qe<ft;++Qe)tt(et,String(Qe))?ot.push(ye(rt,et,Ke,Ye,String(Qe),!0)):ot.push("");return Xe.forEach(function(at){at.match(/^\d+$/)||ot.push(ye(rt,et,Ke,Ye,at,!0))}),ot}function ye(rt,et,Ke,Ye,Xe,ot){var Qe,ft,at;if(at=Object.getOwnPropertyDescriptor(et,Xe)||{value:et[Xe]},at.get?at.set?ft=rt.stylize("[Getter/Setter]","special"):ft=rt.stylize("[Getter]","special"):at.set&&(ft=rt.stylize("[Setter]","special")),tt(Ye,Xe)||(Qe="["+Xe+"]"),ft||(rt.seen.indexOf(at.value)<0?(De(Ke)?ft=se(rt,at.value,null):ft=se(rt,at.value,Ke-1),ft.indexOf(`
`)>-1&&(ot?ft=ft.split(`
`).map(function(qe){return" "+qe}).join(`
`).substr(2):ft=`
`+ft.split(`
`).map(function(qe){return" "+qe}).join(`
`))):ft=rt.stylize("[Circular]","special")),Oe(Qe)){if(ot&&Xe.match(/^\d+$/))return ft;Qe=JSON.stringify(""+Xe),Qe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Qe=Qe.substr(1,Qe.length-2),Qe=rt.stylize(Qe,"name")):(Qe=Qe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Qe=rt.stylize(Qe,"string"))}return Qe+": "+ft}function ge(rt,et,Ke){var Ye=0,Xe=rt.reduce(function(ot,Qe){return Ye++,Qe.indexOf(`
`)>=0&&Ye++,ot+Qe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Xe>60?Ke[0]+(et===""?"":et+`
`)+" "+rt.join(`,
`)+" "+Ke[1]:Ke[0]+et+" "+rt.join(", ")+" "+Ke[1]}function xe(rt){return Array.isArray(rt)}be.isArray=xe;function ke(rt){return typeof rt=="boolean"}be.isBoolean=ke;function De(rt){return rt===null}be.isNull=De;function Be(rt){return rt==null}be.isNullOrUndefined=Be;function Ae(rt){return typeof rt=="number"}be.isNumber=Ae;function Se(rt){return typeof rt=="string"}be.isString=Se;function Ee(rt){return typeof rt=="symbol"}be.isSymbol=Ee;function Oe(rt){return rt===void 0}be.isUndefined=Oe;function Pe(rt){return Le(rt)&&We(rt)==="[object RegExp]"}be.isRegExp=Pe;function Le(rt){return typeof rt=="object"&&rt!==null}be.isObject=Le;function Ne(rt){return Le(rt)&&We(rt)==="[object Date]"}be.isDate=Ne;function me(rt){return Le(rt)&&(We(rt)==="[object Error]"||rt instanceof Error)}be.isError=me;function Ve(rt){return typeof rt=="function"}be.isFunction=Ve;function Ze(rt){return rt===null||typeof rt=="boolean"||typeof rt=="number"||typeof rt=="string"||typeof rt=="symbol"||typeof rt=="undefined"}be.isPrimitive=Ze,be.isBuffer=y("./support/isBuffer");function We(rt){return Object.prototype.toString.call(rt)}function nt(rt){return rt<10?"0"+rt.toString(10):rt.toString(10)}var _e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ue(){var rt=new Date,et=[nt(rt.getHours()),nt(rt.getMinutes()),nt(rt.getSeconds())].join(":");return[rt.getDate(),_e[rt.getMonth()],et].join(" ")}be.log=function(){console.log("%s - %s",Ue(),be.format.apply(be,arguments))},be.inherits=y("inherits"),be._extend=function(rt,et){if(!et||!Le(et))return rt;for(var Ke=Object.keys(et),Ye=Ke.length;Ye--;)rt[Ke[Ye]]=et[Ke[Ye]];return rt};function tt(rt,et){return Object.prototype.hasOwnProperty.call(rt,et)}}).call(this)}).call(this,y("_process"),typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(y,je,be){(function(z){(function(){"use strict";var E=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],ie=typeof globalThis=="undefined"?z:globalThis;je.exports=function(){for(var ee=[],ce=0;ce<E.length;ce++)typeof ie[E[ce]]=="function"&&(ee[ee.length]=E[ce]);return ee}}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(y,je,be){"use strict";be.byteLength=ae,be.toByteArray=se,be.fromByteArray=he;for(var z=[],E=[],ie=typeof Uint8Array!="undefined"?Uint8Array:Array,oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ee=0,ce=oe.length;ee<ce;++ee)z[ee]=oe[ee],E[oe.charCodeAt(ee)]=ee;E[45]=62,E[95]=63;function x(ye){var ge=ye.length;if(ge%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var xe=ye.indexOf("=");xe===-1&&(xe=ge);var ke=xe===ge?0:4-xe%4;return[xe,ke]}function ae(ye){var ge=x(ye),xe=ge[0],ke=ge[1];return(xe+ke)*3/4-ke}function re(ye,ge,xe){return(ge+xe)*3/4-xe}function se(ye){var ge,xe=x(ye),ke=xe[0],De=xe[1],Be=new ie(re(ye,ke,De)),Ae=0,Se=De>0?ke-4:ke,Ee;for(Ee=0;Ee<Se;Ee+=4)ge=E[ye.charCodeAt(Ee)]<<18|E[ye.charCodeAt(Ee+1)]<<12|E[ye.charCodeAt(Ee+2)]<<6|E[ye.charCodeAt(Ee+3)],Be[Ae++]=ge>>16&255,Be[Ae++]=ge>>8&255,Be[Ae++]=ge&255;return De===2&&(ge=E[ye.charCodeAt(Ee)]<<2|E[ye.charCodeAt(Ee+1)]>>4,Be[Ae++]=ge&255),De===1&&(ge=E[ye.charCodeAt(Ee)]<<10|E[ye.charCodeAt(Ee+1)]<<4|E[ye.charCodeAt(Ee+2)]>>2,Be[Ae++]=ge>>8&255,Be[Ae++]=ge&255),Be}function ue(ye){return z[ye>>18&63]+z[ye>>12&63]+z[ye>>6&63]+z[ye&63]}function pe(ye,ge,xe){for(var ke,De=[],Be=ge;Be<xe;Be+=3)ke=(ye[Be]<<16&16711680)+(ye[Be+1]<<8&65280)+(ye[Be+2]&255),De.push(ue(ke));return De.join("")}function he(ye){for(var ge,xe=ye.length,ke=xe%3,De=[],Be=16383,Ae=0,Se=xe-ke;Ae<Se;Ae+=Be)De.push(pe(ye,Ae,Ae+Be>Se?Se:Ae+Be));return ke===1?(ge=ye[xe-1],De.push(z[ge>>2]+z[ge<<4&63]+"==")):ke===2&&(ge=(ye[xe-2]<<8)+ye[xe-1],De.push(z[ge>>10]+z[ge>>4&63]+z[ge<<2&63]+"=")),De.join("")}},{}],88:[function(y,je,be){(function(z,E,ie){typeof je!="undefined"&&je.exports?je.exports=ie():typeof Te=="function"&&Te.amd?Te(E,ie):z[E]=ie()})(this,"bowser",function(){var z=!0;function E(re){function se(et){var Ke=re.match(et);return Ke&&Ke.length>1&&Ke[1]||""}function ue(et){var Ke=re.match(et);return Ke&&Ke.length>1&&Ke[2]||""}var pe=se(/(ipod|iphone|ipad)/i).toLowerCase(),he=/like android/i.test(re),ye=!he&&/android/i.test(re),ge=/nexus\s*[0-6]\s*/i.test(re),xe=!ge&&/nexus\s*[0-9]+/i.test(re),ke=/CrOS/.test(re),De=/silk/i.test(re),Be=/sailfish/i.test(re),Ae=/tizen/i.test(re),Se=/(web|hpw)(o|0)s/i.test(re),Ee=/windows phone/i.test(re),Oe=/SamsungBrowser/i.test(re),Pe=!Ee&&/windows/i.test(re),Le=!pe&&!De&&/macintosh/i.test(re),Ne=!ye&&!Be&&!Ae&&!Se&&/linux/i.test(re),me=ue(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Ve=se(/version\/(\d+(\.\d+)?)/i),Ze=/tablet/i.test(re)&&!/tablet pc/i.test(re),We=!Ze&&/[^-]mobi/i.test(re),nt=/xbox/i.test(re),_e;/opera/i.test(re)?_e={name:"Opera",opera:z,version:Ve||se(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(re)?_e={name:"Opera",opera:z,version:se(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Ve}:/SamsungBrowser/i.test(re)?_e={name:"Samsung Internet for Android",samsungBrowser:z,version:Ve||se(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(re)?_e={name:"NAVER Whale browser",whale:z,version:se(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(re)?_e={name:"MZ Browser",mzbrowser:z,version:se(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(re)?_e={name:"Opera Coast",coast:z,version:Ve||se(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(re)?_e={name:"Focus",focus:z,version:se(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(re)?_e={name:"Yandex Browser",yandexbrowser:z,version:Ve||se(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(re)?_e={name:"UC Browser",ucbrowser:z,version:se(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(re)?_e={name:"Maxthon",maxthon:z,version:se(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(re)?_e={name:"Epiphany",epiphany:z,version:se(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(re)?_e={name:"Puffin",puffin:z,version:se(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(re)?_e={name:"Sleipnir",sleipnir:z,version:se(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(re)?_e={name:"K-Meleon",kMeleon:z,version:se(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Ee?(_e={name:"Windows Phone",osname:"Windows Phone",windowsphone:z},me?(_e.msedge=z,_e.version=me):(_e.msie=z,_e.version=se(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(re)?_e={name:"Internet Explorer",msie:z,version:se(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:ke?_e={name:"Chrome",osname:"Chrome OS",chromeos:z,chromeBook:z,chrome:z,version:se(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(re)?_e={name:"Microsoft Edge",msedge:z,version:me}:/vivaldi/i.test(re)?_e={name:"Vivaldi",vivaldi:z,version:se(/vivaldi\/(\d+(\.\d+)?)/i)||Ve}:Be?_e={name:"Sailfish",osname:"Sailfish OS",sailfish:z,version:se(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(re)?_e={name:"SeaMonkey",seamonkey:z,version:se(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(re)?(_e={name:"Firefox",firefox:z,version:se(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(re)&&(_e.firefoxos=z,_e.osname="Firefox OS")):De?_e={name:"Amazon Silk",silk:z,version:se(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(re)?_e={name:"PhantomJS",phantom:z,version:se(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(re)?_e={name:"SlimerJS",slimer:z,version:se(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(re)||/rim\stablet/i.test(re)?_e={name:"BlackBerry",osname:"BlackBerry OS",blackberry:z,version:Ve||se(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:Se?(_e={name:"WebOS",osname:"WebOS",webos:z,version:Ve||se(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(re)&&(_e.touchpad=z)):/bada/i.test(re)?_e={name:"Bada",osname:"Bada",bada:z,version:se(/dolfin\/(\d+(\.\d+)?)/i)}:Ae?_e={name:"Tizen",osname:"Tizen",tizen:z,version:se(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Ve}:/qupzilla/i.test(re)?_e={name:"QupZilla",qupzilla:z,version:se(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Ve}:/chromium/i.test(re)?_e={name:"Chromium",chromium:z,version:se(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Ve}:/chrome|crios|crmo/i.test(re)?_e={name:"Chrome",chrome:z,version:se(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:ye?_e={name:"Android",version:Ve}:/safari|applewebkit/i.test(re)?(_e={name:"Safari",safari:z},Ve&&(_e.version=Ve)):pe?(_e={name:pe=="iphone"?"iPhone":pe=="ipad"?"iPad":"iPod"},Ve&&(_e.version=Ve)):/googlebot/i.test(re)?_e={name:"Googlebot",googlebot:z,version:se(/googlebot\/(\d+(\.\d+))/i)||Ve}:_e={name:se(/^(.*)\/(.*) /),version:ue(/^(.*)\/(.*) /)},!_e.msedge&&/(apple)?webkit/i.test(re)?(/(apple)?webkit\/537\.36/i.test(re)?(_e.name=_e.name||"Blink",_e.blink=z):(_e.name=_e.name||"Webkit",_e.webkit=z),!_e.version&&Ve&&(_e.version=Ve)):!_e.opera&&/gecko\//i.test(re)&&(_e.name=_e.name||"Gecko",_e.gecko=z,_e.version=_e.version||se(/gecko\/(\d+(\.\d+)?)/i)),!_e.windowsphone&&(ye||_e.silk)?(_e.android=z,_e.osname="Android"):!_e.windowsphone&&pe?(_e[pe]=z,_e.ios=z,_e.osname="iOS"):Le?(_e.mac=z,_e.osname="macOS"):nt?(_e.xbox=z,_e.osname="Xbox"):Pe?(_e.windows=z,_e.osname="Windows"):Ne&&(_e.linux=z,_e.osname="Linux");function Ue(et){switch(et){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var tt="";_e.windows?tt=Ue(se(/Windows ((NT|XP)( \d\d?.\d)?)/i)):_e.windowsphone?tt=se(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):_e.mac?(tt=se(/Mac OS X (\d+([_\.\s]\d+)*)/i),tt=tt.replace(/[_\s]/g,".")):pe?(tt=se(/os (\d+([_\s]\d+)*) like mac os x/i),tt=tt.replace(/[_\s]/g,".")):ye?tt=se(/android[ \/-](\d+(\.\d+)*)/i):_e.webos?tt=se(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):_e.blackberry?tt=se(/rim\stablet\sos\s(\d+(\.\d+)*)/i):_e.bada?tt=se(/bada\/(\d+(\.\d+)*)/i):_e.tizen&&(tt=se(/tizen[\/\s](\d+(\.\d+)*)/i)),tt&&(_e.osversion=tt);var rt=!_e.windows&&tt.split(".")[0];return Ze||xe||pe=="ipad"||ye&&(rt==3||rt>=4&&!We)||_e.silk?_e.tablet=z:(We||pe=="iphone"||pe=="ipod"||ye||ge||_e.blackberry||_e.webos||_e.bada)&&(_e.mobile=z),_e.msedge||_e.msie&&_e.version>=10||_e.yandexbrowser&&_e.version>=15||_e.vivaldi&&_e.version>=1||_e.chrome&&_e.version>=20||_e.samsungBrowser&&_e.version>=4||_e.whale&&ce([_e.version,"1.0"])===1||_e.mzbrowser&&ce([_e.version,"6.0"])===1||_e.focus&&ce([_e.version,"1.0"])===1||_e.firefox&&_e.version>=20||_e.safari&&_e.version>=6||_e.opera&&_e.version>=10||_e.ios&&_e.osversion&&_e.osversion.split(".")[0]>=6||_e.blackberry&&_e.version>=10.1||_e.chromium&&_e.version>=20?_e.a=z:_e.msie&&_e.version<10||_e.chrome&&_e.version<20||_e.firefox&&_e.version<20||_e.safari&&_e.version<6||_e.opera&&_e.version<10||_e.ios&&_e.osversion&&_e.osversion.split(".")[0]<6||_e.chromium&&_e.version<20?_e.c=z:_e.x=z,_e}var ie=E(typeof navigator!="undefined"&&navigator.userAgent||"");ie.test=function(re){for(var se=0;se<re.length;++se){var ue=re[se];if(typeof ue=="string"&&ue in ie)return!0}return!1};function oe(re){return re.split(".").length}function ee(re,se){var ue=[],pe;if(Array.prototype.map)return Array.prototype.map.call(re,se);for(pe=0;pe<re.length;pe++)ue.push(se(re[pe]));return ue}function ce(re){for(var se=Math.max(oe(re[0]),oe(re[1])),ue=ee(re,function(pe){var he=se-oe(pe);return pe=pe+new Array(he+1).join(".0"),ee(pe.split("."),function(ye){return new Array(20-ye.length).join("0")+ye}).reverse()});--se>=0;){if(ue[0][se]>ue[1][se])return 1;if(ue[0][se]===ue[1][se]){if(se===0)return 0}else return-1}}function x(re,se,ue){var pe=ie;typeof se=="string"&&(ue=se,se=void 0),se===void 0&&(se=!1),ue&&(pe=E(ue));var he=""+pe.version;for(var ye in re)if(re.hasOwnProperty(ye)&&pe[ye]){if(typeof re[ye]!="string")throw new Error("Browser version in the minVersion map should be a string: "+ye+": "+String(re));return ce([he,re[ye]])<0}return se}function ae(re,se,ue){return!x(re,se,ue)}return ie.isUnsupportedBrowser=x,ie.compareVersions=ce,ie.check=ae,ie._detect=E,ie.detect=E,ie})},{}],89:[function(y,je,be){},{}],90:[function(y,je,be){(function(z){(function(){"use strict";var E=y("base64-js"),ie=y("ieee754");be.Buffer=x,be.SlowBuffer=ke,be.INSPECT_MAX_BYTES=50;var oe=2147483647;be.kMaxLength=oe,x.TYPED_ARRAY_SUPPORT=ee(),!x.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ee(){try{var ve=new Uint8Array(1);return ve.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ve.foo()===42}catch(Ie){return!1}}Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.buffer}}),Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.byteOffset}});function ce(ve){if(ve>oe)throw new RangeError('The value "'+ve+'" is invalid for option "size"');var Ie=new Uint8Array(ve);return Ie.__proto__=x.prototype,Ie}function x(ve,Ie,$e){if(typeof ve=="number"){if(typeof Ie=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ue(ve)}return ae(ve,Ie,$e)}typeof Symbol!="undefined"&&Symbol.species!=null&&x[Symbol.species]===x&&Object.defineProperty(x,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),x.poolSize=8192;function ae(ve,Ie,$e){if(typeof ve=="string")return pe(ve,Ie);if(ArrayBuffer.isView(ve))return he(ve);if(ve==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ve);if(ze(ve,ArrayBuffer)||ve&&ze(ve.buffer,ArrayBuffer))return ye(ve,Ie,$e);if(typeof ve=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Ge=ve.valueOf&&ve.valueOf();if(Ge!=null&&Ge!==ve)return x.from(Ge,Ie,$e);var Je=ge(ve);if(Je)return Je;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ve[Symbol.toPrimitive]=="function")return x.from(ve[Symbol.toPrimitive]("string"),Ie,$e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ve)}x.from=function(ve,Ie,$e){return ae(ve,Ie,$e)},x.prototype.__proto__=Uint8Array.prototype,x.__proto__=Uint8Array;function re(ve){if(typeof ve!="number")throw new TypeError('"size" argument must be of type number');if(ve<0)throw new RangeError('The value "'+ve+'" is invalid for option "size"')}function se(ve,Ie,$e){return re(ve),ve<=0?ce(ve):Ie!==void 0?typeof $e=="string"?ce(ve).fill(Ie,$e):ce(ve).fill(Ie):ce(ve)}x.alloc=function(ve,Ie,$e){return se(ve,Ie,$e)};function ue(ve){return re(ve),ce(ve<0?0:xe(ve)|0)}x.allocUnsafe=function(ve){return ue(ve)},x.allocUnsafeSlow=function(ve){return ue(ve)};function pe(ve,Ie){if((typeof Ie!="string"||Ie==="")&&(Ie="utf8"),!x.isEncoding(Ie))throw new TypeError("Unknown encoding: "+Ie);var $e=De(ve,Ie)|0,Ge=ce($e),Je=Ge.write(ve,Ie);return Je!==$e&&(Ge=Ge.slice(0,Je)),Ge}function he(ve){for(var Ie=ve.length<0?0:xe(ve.length)|0,$e=ce(Ie),Ge=0;Ge<Ie;Ge+=1)$e[Ge]=ve[Ge]&255;return $e}function ye(ve,Ie,$e){if(Ie<0||ve.byteLength<Ie)throw new RangeError('"offset" is outside of buffer bounds');if(ve.byteLength<Ie+($e||0))throw new RangeError('"length" is outside of buffer bounds');var Ge;return Ie===void 0&&$e===void 0?Ge=new Uint8Array(ve):$e===void 0?Ge=new Uint8Array(ve,Ie):Ge=new Uint8Array(ve,Ie,$e),Ge.__proto__=x.prototype,Ge}function ge(ve){if(x.isBuffer(ve)){var Ie=xe(ve.length)|0,$e=ce(Ie);return $e.length===0||ve.copy($e,0,0,Ie),$e}if(ve.length!==void 0)return typeof ve.length!="number"||we(ve.length)?ce(0):he(ve);if(ve.type==="Buffer"&&Array.isArray(ve.data))return he(ve.data)}function xe(ve){if(ve>=oe)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+oe.toString(16)+" bytes");return ve|0}function ke(ve){return+ve!=ve&&(ve=0),x.alloc(+ve)}x.isBuffer=function(Ie){return Ie!=null&&Ie._isBuffer===!0&&Ie!==x.prototype},x.compare=function(Ie,$e){if(ze(Ie,Uint8Array)&&(Ie=x.from(Ie,Ie.offset,Ie.byteLength)),ze($e,Uint8Array)&&($e=x.from($e,$e.offset,$e.byteLength)),!x.isBuffer(Ie)||!x.isBuffer($e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ie===$e)return 0;for(var Ge=Ie.length,Je=$e.length,ut=0,lt=Math.min(Ge,Je);ut<lt;++ut)if(Ie[ut]!==$e[ut]){Ge=Ie[ut],Je=$e[ut];break}return Ge<Je?-1:Je<Ge?1:0},x.isEncoding=function(Ie){switch(String(Ie).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},x.concat=function(Ie,$e){if(!Array.isArray(Ie))throw new TypeError('"list" argument must be an Array of Buffers');if(Ie.length===0)return x.alloc(0);var Ge;if($e===void 0)for($e=0,Ge=0;Ge<Ie.length;++Ge)$e+=Ie[Ge].length;var Je=x.allocUnsafe($e),ut=0;for(Ge=0;Ge<Ie.length;++Ge){var lt=Ie[Ge];if(ze(lt,Uint8Array)&&(lt=x.from(lt)),!x.isBuffer(lt))throw new TypeError('"list" argument must be an Array of Buffers');lt.copy(Je,ut),ut+=lt.length}return Je};function De(ve,Ie){if(x.isBuffer(ve))return ve.length;if(ArrayBuffer.isView(ve)||ze(ve,ArrayBuffer))return ve.byteLength;if(typeof ve!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ve);var $e=ve.length,Ge=arguments.length>2&&arguments[2]===!0;if(!Ge&&$e===0)return 0;for(var Je=!1;;)switch(Ie){case"ascii":case"latin1":case"binary":return $e;case"utf8":case"utf-8":return Fe(ve).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $e*2;case"hex":return $e>>>1;case"base64":return fe(ve).length;default:if(Je)return Ge?-1:Fe(ve).length;Ie=(""+Ie).toLowerCase(),Je=!0}}x.byteLength=De;function Be(ve,Ie,$e){var Ge=!1;if((Ie===void 0||Ie<0)&&(Ie=0),Ie>this.length||(($e===void 0||$e>this.length)&&($e=this.length),$e<=0)||($e>>>=0,Ie>>>=0,$e<=Ie))return"";for(ve||(ve="utf8");;)switch(ve){case"hex":return rt(this,Ie,$e);case"utf8":case"utf-8":return We(this,Ie,$e);case"ascii":return Ue(this,Ie,$e);case"latin1":case"binary":return tt(this,Ie,$e);case"base64":return Ze(this,Ie,$e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,Ie,$e);default:if(Ge)throw new TypeError("Unknown encoding: "+ve);ve=(ve+"").toLowerCase(),Ge=!0}}x.prototype._isBuffer=!0;function Ae(ve,Ie,$e){var Ge=ve[Ie];ve[Ie]=ve[$e],ve[$e]=Ge}x.prototype.swap16=function(){var Ie=this.length;if(Ie%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $e=0;$e<Ie;$e+=2)Ae(this,$e,$e+1);return this},x.prototype.swap32=function(){var Ie=this.length;if(Ie%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var $e=0;$e<Ie;$e+=4)Ae(this,$e,$e+3),Ae(this,$e+1,$e+2);return this},x.prototype.swap64=function(){var Ie=this.length;if(Ie%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var $e=0;$e<Ie;$e+=8)Ae(this,$e,$e+7),Ae(this,$e+1,$e+6),Ae(this,$e+2,$e+5),Ae(this,$e+3,$e+4);return this},x.prototype.toString=function(){var Ie=this.length;return Ie===0?"":arguments.length===0?We(this,0,Ie):Be.apply(this,arguments)},x.prototype.toLocaleString=x.prototype.toString,x.prototype.equals=function(Ie){if(!x.isBuffer(Ie))throw new TypeError("Argument must be a Buffer");return this===Ie?!0:x.compare(this,Ie)===0},x.prototype.inspect=function(){var Ie="",$e=be.INSPECT_MAX_BYTES;return Ie=this.toString("hex",0,$e).replace(/(.{2})/g,"$1 ").trim(),this.length>$e&&(Ie+=" ... "),"<Buffer "+Ie+">"},x.prototype.compare=function(Ie,$e,Ge,Je,ut){if(ze(Ie,Uint8Array)&&(Ie=x.from(Ie,Ie.offset,Ie.byteLength)),!x.isBuffer(Ie))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ie);if($e===void 0&&($e=0),Ge===void 0&&(Ge=Ie?Ie.length:0),Je===void 0&&(Je=0),ut===void 0&&(ut=this.length),$e<0||Ge>Ie.length||Je<0||ut>this.length)throw new RangeError("out of range index");if(Je>=ut&&$e>=Ge)return 0;if(Je>=ut)return-1;if($e>=Ge)return 1;if($e>>>=0,Ge>>>=0,Je>>>=0,ut>>>=0,this===Ie)return 0;for(var lt=ut-Je,vt=Ge-$e,ct=Math.min(lt,vt),st=this.slice(Je,ut),At=Ie.slice($e,Ge),mt=0;mt<ct;++mt)if(st[mt]!==At[mt]){lt=st[mt],vt=At[mt];break}return lt<vt?-1:vt<lt?1:0};function Se(ve,Ie,$e,Ge,Je){if(ve.length===0)return-1;if(typeof $e=="string"?(Ge=$e,$e=0):$e>2147483647?$e=2147483647:$e<-2147483648&&($e=-2147483648),$e=+$e,we($e)&&($e=Je?0:ve.length-1),$e<0&&($e=ve.length+$e),$e>=ve.length){if(Je)return-1;$e=ve.length-1}else if($e<0)if(Je)$e=0;else return-1;if(typeof Ie=="string"&&(Ie=x.from(Ie,Ge)),x.isBuffer(Ie))return Ie.length===0?-1:Ee(ve,Ie,$e,Ge,Je);if(typeof Ie=="number")return Ie=Ie&255,typeof Uint8Array.prototype.indexOf=="function"?Je?Uint8Array.prototype.indexOf.call(ve,Ie,$e):Uint8Array.prototype.lastIndexOf.call(ve,Ie,$e):Ee(ve,[Ie],$e,Ge,Je);throw new TypeError("val must be string, number or Buffer")}function Ee(ve,Ie,$e,Ge,Je){var ut=1,lt=ve.length,vt=Ie.length;if(Ge!==void 0&&(Ge=String(Ge).toLowerCase(),Ge==="ucs2"||Ge==="ucs-2"||Ge==="utf16le"||Ge==="utf-16le")){if(ve.length<2||Ie.length<2)return-1;ut=2,lt/=2,vt/=2,$e/=2}function ct(jt,Et){return ut===1?jt[Et]:jt.readUInt16BE(Et*ut)}var st;if(Je){var At=-1;for(st=$e;st<lt;st++)if(ct(ve,st)===ct(Ie,At===-1?0:st-At)){if(At===-1&&(At=st),st-At+1===vt)return At*ut}else At!==-1&&(st-=st-At),At=-1}else for($e+vt>lt&&($e=lt-vt),st=$e;st>=0;st--){for(var mt=!0,Dt=0;Dt<vt;Dt++)if(ct(ve,st+Dt)!==ct(Ie,Dt)){mt=!1;break}if(mt)return st}return-1}x.prototype.includes=function(Ie,$e,Ge){return this.indexOf(Ie,$e,Ge)!==-1},x.prototype.indexOf=function(Ie,$e,Ge){return Se(this,Ie,$e,Ge,!0)},x.prototype.lastIndexOf=function(Ie,$e,Ge){return Se(this,Ie,$e,Ge,!1)};function Oe(ve,Ie,$e,Ge){$e=Number($e)||0;var Je=ve.length-$e;Ge?(Ge=Number(Ge),Ge>Je&&(Ge=Je)):Ge=Je;var ut=Ie.length;Ge>ut/2&&(Ge=ut/2);for(var lt=0;lt<Ge;++lt){var vt=parseInt(Ie.substr(lt*2,2),16);if(we(vt))return lt;ve[$e+lt]=vt}return lt}function Pe(ve,Ie,$e,Ge){return Me(Fe(Ie,ve.length-$e),ve,$e,Ge)}function Le(ve,Ie,$e,Ge){return Me(Re(Ie),ve,$e,Ge)}function Ne(ve,Ie,$e,Ge){return Le(ve,Ie,$e,Ge)}function me(ve,Ie,$e,Ge){return Me(fe(Ie),ve,$e,Ge)}function Ve(ve,Ie,$e,Ge){return Me(ne(Ie,ve.length-$e),ve,$e,Ge)}x.prototype.write=function(Ie,$e,Ge,Je){if($e===void 0)Je="utf8",Ge=this.length,$e=0;else if(Ge===void 0&&typeof $e=="string")Je=$e,Ge=this.length,$e=0;else if(isFinite($e))$e=$e>>>0,isFinite(Ge)?(Ge=Ge>>>0,Je===void 0&&(Je="utf8")):(Je=Ge,Ge=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ut=this.length-$e;if((Ge===void 0||Ge>ut)&&(Ge=ut),Ie.length>0&&(Ge<0||$e<0)||$e>this.length)throw new RangeError("Attempt to write outside buffer bounds");Je||(Je="utf8");for(var lt=!1;;)switch(Je){case"hex":return Oe(this,Ie,$e,Ge);case"utf8":case"utf-8":return Pe(this,Ie,$e,Ge);case"ascii":return Le(this,Ie,$e,Ge);case"latin1":case"binary":return Ne(this,Ie,$e,Ge);case"base64":return me(this,Ie,$e,Ge);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ve(this,Ie,$e,Ge);default:if(lt)throw new TypeError("Unknown encoding: "+Je);Je=(""+Je).toLowerCase(),lt=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ze(ve,Ie,$e){return Ie===0&&$e===ve.length?E.fromByteArray(ve):E.fromByteArray(ve.slice(Ie,$e))}function We(ve,Ie,$e){$e=Math.min(ve.length,$e);for(var Ge=[],Je=Ie;Je<$e;){var ut=ve[Je],lt=null,vt=ut>239?4:ut>223?3:ut>191?2:1;if(Je+vt<=$e){var ct,st,At,mt;switch(vt){case 1:ut<128&&(lt=ut);break;case 2:ct=ve[Je+1],(ct&192)===128&&(mt=(ut&31)<<6|ct&63,mt>127&&(lt=mt));break;case 3:ct=ve[Je+1],st=ve[Je+2],(ct&192)===128&&(st&192)===128&&(mt=(ut&15)<<12|(ct&63)<<6|st&63,mt>2047&&(mt<55296||mt>57343)&&(lt=mt));break;case 4:ct=ve[Je+1],st=ve[Je+2],At=ve[Je+3],(ct&192)===128&&(st&192)===128&&(At&192)===128&&(mt=(ut&15)<<18|(ct&63)<<12|(st&63)<<6|At&63,mt>65535&&mt<1114112&&(lt=mt))}}lt===null?(lt=65533,vt=1):lt>65535&&(lt-=65536,Ge.push(lt>>>10&1023|55296),lt=56320|lt&1023),Ge.push(lt),Je+=vt}return _e(Ge)}var nt=4096;function _e(ve){var Ie=ve.length;if(Ie<=nt)return String.fromCharCode.apply(String,ve);for(var $e="",Ge=0;Ge<Ie;)$e+=String.fromCharCode.apply(String,ve.slice(Ge,Ge+=nt));return $e}function Ue(ve,Ie,$e){var Ge="";$e=Math.min(ve.length,$e);for(var Je=Ie;Je<$e;++Je)Ge+=String.fromCharCode(ve[Je]&127);return Ge}function tt(ve,Ie,$e){var Ge="";$e=Math.min(ve.length,$e);for(var Je=Ie;Je<$e;++Je)Ge+=String.fromCharCode(ve[Je]);return Ge}function rt(ve,Ie,$e){var Ge=ve.length;(!Ie||Ie<0)&&(Ie=0),(!$e||$e<0||$e>Ge)&&($e=Ge);for(var Je="",ut=Ie;ut<$e;++ut)Je+=qe(ve[ut]);return Je}function et(ve,Ie,$e){for(var Ge=ve.slice(Ie,$e),Je="",ut=0;ut<Ge.length;ut+=2)Je+=String.fromCharCode(Ge[ut]+Ge[ut+1]*256);return Je}x.prototype.slice=function(Ie,$e){var Ge=this.length;Ie=~~Ie,$e=$e===void 0?Ge:~~$e,Ie<0?(Ie+=Ge,Ie<0&&(Ie=0)):Ie>Ge&&(Ie=Ge),$e<0?($e+=Ge,$e<0&&($e=0)):$e>Ge&&($e=Ge),$e<Ie&&($e=Ie);var Je=this.subarray(Ie,$e);return Je.__proto__=x.prototype,Je};function Ke(ve,Ie,$e){if(ve%1!==0||ve<0)throw new RangeError("offset is not uint");if(ve+Ie>$e)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUIntLE=function(Ie,$e,Ge){Ie=Ie>>>0,$e=$e>>>0,Ge||Ke(Ie,$e,this.length);for(var Je=this[Ie],ut=1,lt=0;++lt<$e&&(ut*=256);)Je+=this[Ie+lt]*ut;return Je},x.prototype.readUIntBE=function(Ie,$e,Ge){Ie=Ie>>>0,$e=$e>>>0,Ge||Ke(Ie,$e,this.length);for(var Je=this[Ie+--$e],ut=1;$e>0&&(ut*=256);)Je+=this[Ie+--$e]*ut;return Je},x.prototype.readUInt8=function(Ie,$e){return Ie=Ie>>>0,$e||Ke(Ie,1,this.length),this[Ie]},x.prototype.readUInt16LE=function(Ie,$e){return Ie=Ie>>>0,$e||Ke(Ie,2,this.length),this[Ie]|this[Ie+1]<<8},x.prototype.readUInt16BE=function(Ie,$e){return Ie=Ie>>>0,$e||Ke(Ie,2,this.length),this[Ie]<<8|this[Ie+1]},x.prototype.readUInt32LE=function(Ie,$e){return Ie=Ie>>>0,$e||Ke(Ie,4,this.length),(this[Ie]|this[Ie+1]<<8|this[Ie+2]<<16)+this[Ie+3]*16777216},x.prototype.readUInt32BE=function(Ie,$e){return Ie=Ie>>>0,$e||Ke(Ie,4,this.length),this[Ie]*16777216+(this[Ie+1]<<16|this[Ie+2]<<8|this[Ie+3])},x.prototype.readIntLE=function(Ie,$e,Ge){Ie=Ie>>>0,$e=$e>>>0,Ge||Ke(Ie,$e,this.length);for(var Je=this[Ie],ut=1,lt=0;++lt<$e&&(ut*=256);)Je+=this[Ie+lt]*ut;return ut*=128,Je>=ut&&(Je-=Math.pow(2,8*$e)),Je},x.prototype.readIntBE=function(Ie,$e,Ge){Ie=Ie>>>0,$e=$e>>>0,Ge||Ke(Ie,$e,this.length);for(var Je=$e,ut=1,lt=this[Ie+--Je];Je>0&&(ut*=256);)lt+=this[Ie+--Je]*ut;return ut*=128,lt>=ut&&(lt-=Math.pow(2,8*$e)),lt},x.prototype.readInt8=function(Ie,$e){return Ie=Ie>>>0,$e||Ke(Ie,1,this.length),this[Ie]&128?(255-this[Ie]+1)*-1:this[Ie]},x.prototype.readInt16LE=function(Ie,$e){Ie=Ie>>>0,$e||Ke(Ie,2,this.length);var Ge=this[Ie]|this[Ie+1]<<8;return Ge&32768?Ge|4294901760:Ge},x.prototype.readInt16BE=function(Ie,$e){Ie=Ie>>>0,$e||Ke(Ie,2,this.length);var Ge=this[Ie+1]|this[Ie]<<8;return Ge&32768?Ge|4294901760:Ge},x.prototype.readInt32LE=function(Ie,$e){return Ie=Ie>>>0,$e||Ke(Ie,4,this.length),this[Ie]|this[Ie+1]<<8|this[Ie+2]<<16|this[Ie+3]<<24},x.prototype.readInt32BE=function(Ie,$e){return Ie=Ie>>>0,$e||Ke(Ie,4,this.length),this[Ie]<<24|this[Ie+1]<<16|this[Ie+2]<<8|this[Ie+3]},x.prototype.readFloatLE=function(Ie,$e){return Ie=Ie>>>0,$e||Ke(Ie,4,this.length),ie.read(this,Ie,!0,23,4)},x.prototype.readFloatBE=function(Ie,$e){return Ie=Ie>>>0,$e||Ke(Ie,4,this.length),ie.read(this,Ie,!1,23,4)},x.prototype.readDoubleLE=function(Ie,$e){return Ie=Ie>>>0,$e||Ke(Ie,8,this.length),ie.read(this,Ie,!0,52,8)},x.prototype.readDoubleBE=function(Ie,$e){return Ie=Ie>>>0,$e||Ke(Ie,8,this.length),ie.read(this,Ie,!1,52,8)};function Ye(ve,Ie,$e,Ge,Je,ut){if(!x.isBuffer(ve))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ie>Je||Ie<ut)throw new RangeError('"value" argument is out of bounds');if($e+Ge>ve.length)throw new RangeError("Index out of range")}x.prototype.writeUIntLE=function(Ie,$e,Ge,Je){if(Ie=+Ie,$e=$e>>>0,Ge=Ge>>>0,!Je){var ut=Math.pow(2,8*Ge)-1;Ye(this,Ie,$e,Ge,ut,0)}var lt=1,vt=0;for(this[$e]=Ie&255;++vt<Ge&&(lt*=256);)this[$e+vt]=Ie/lt&255;return $e+Ge},x.prototype.writeUIntBE=function(Ie,$e,Ge,Je){if(Ie=+Ie,$e=$e>>>0,Ge=Ge>>>0,!Je){var ut=Math.pow(2,8*Ge)-1;Ye(this,Ie,$e,Ge,ut,0)}var lt=Ge-1,vt=1;for(this[$e+lt]=Ie&255;--lt>=0&&(vt*=256);)this[$e+lt]=Ie/vt&255;return $e+Ge},x.prototype.writeUInt8=function(Ie,$e,Ge){return Ie=+Ie,$e=$e>>>0,Ge||Ye(this,Ie,$e,1,255,0),this[$e]=Ie&255,$e+1},x.prototype.writeUInt16LE=function(Ie,$e,Ge){return Ie=+Ie,$e=$e>>>0,Ge||Ye(this,Ie,$e,2,65535,0),this[$e]=Ie&255,this[$e+1]=Ie>>>8,$e+2},x.prototype.writeUInt16BE=function(Ie,$e,Ge){return Ie=+Ie,$e=$e>>>0,Ge||Ye(this,Ie,$e,2,65535,0),this[$e]=Ie>>>8,this[$e+1]=Ie&255,$e+2},x.prototype.writeUInt32LE=function(Ie,$e,Ge){return Ie=+Ie,$e=$e>>>0,Ge||Ye(this,Ie,$e,4,4294967295,0),this[$e+3]=Ie>>>24,this[$e+2]=Ie>>>16,this[$e+1]=Ie>>>8,this[$e]=Ie&255,$e+4},x.prototype.writeUInt32BE=function(Ie,$e,Ge){return Ie=+Ie,$e=$e>>>0,Ge||Ye(this,Ie,$e,4,4294967295,0),this[$e]=Ie>>>24,this[$e+1]=Ie>>>16,this[$e+2]=Ie>>>8,this[$e+3]=Ie&255,$e+4},x.prototype.writeIntLE=function(Ie,$e,Ge,Je){if(Ie=+Ie,$e=$e>>>0,!Je){var ut=Math.pow(2,8*Ge-1);Ye(this,Ie,$e,Ge,ut-1,-ut)}var lt=0,vt=1,ct=0;for(this[$e]=Ie&255;++lt<Ge&&(vt*=256);)Ie<0&&ct===0&&this[$e+lt-1]!==0&&(ct=1),this[$e+lt]=(Ie/vt>>0)-ct&255;return $e+Ge},x.prototype.writeIntBE=function(Ie,$e,Ge,Je){if(Ie=+Ie,$e=$e>>>0,!Je){var ut=Math.pow(2,8*Ge-1);Ye(this,Ie,$e,Ge,ut-1,-ut)}var lt=Ge-1,vt=1,ct=0;for(this[$e+lt]=Ie&255;--lt>=0&&(vt*=256);)Ie<0&&ct===0&&this[$e+lt+1]!==0&&(ct=1),this[$e+lt]=(Ie/vt>>0)-ct&255;return $e+Ge},x.prototype.writeInt8=function(Ie,$e,Ge){return Ie=+Ie,$e=$e>>>0,Ge||Ye(this,Ie,$e,1,127,-128),Ie<0&&(Ie=255+Ie+1),this[$e]=Ie&255,$e+1},x.prototype.writeInt16LE=function(Ie,$e,Ge){return Ie=+Ie,$e=$e>>>0,Ge||Ye(this,Ie,$e,2,32767,-32768),this[$e]=Ie&255,this[$e+1]=Ie>>>8,$e+2},x.prototype.writeInt16BE=function(Ie,$e,Ge){return Ie=+Ie,$e=$e>>>0,Ge||Ye(this,Ie,$e,2,32767,-32768),this[$e]=Ie>>>8,this[$e+1]=Ie&255,$e+2},x.prototype.writeInt32LE=function(Ie,$e,Ge){return Ie=+Ie,$e=$e>>>0,Ge||Ye(this,Ie,$e,4,2147483647,-2147483648),this[$e]=Ie&255,this[$e+1]=Ie>>>8,this[$e+2]=Ie>>>16,this[$e+3]=Ie>>>24,$e+4},x.prototype.writeInt32BE=function(Ie,$e,Ge){return Ie=+Ie,$e=$e>>>0,Ge||Ye(this,Ie,$e,4,2147483647,-2147483648),Ie<0&&(Ie=4294967295+Ie+1),this[$e]=Ie>>>24,this[$e+1]=Ie>>>16,this[$e+2]=Ie>>>8,this[$e+3]=Ie&255,$e+4};function Xe(ve,Ie,$e,Ge,Je,ut){if($e+Ge>ve.length)throw new RangeError("Index out of range");if($e<0)throw new RangeError("Index out of range")}function ot(ve,Ie,$e,Ge,Je){return Ie=+Ie,$e=$e>>>0,Je||Xe(ve,Ie,$e,4,34028234663852886e22,-34028234663852886e22),ie.write(ve,Ie,$e,Ge,23,4),$e+4}x.prototype.writeFloatLE=function(Ie,$e,Ge){return ot(this,Ie,$e,!0,Ge)},x.prototype.writeFloatBE=function(Ie,$e,Ge){return ot(this,Ie,$e,!1,Ge)};function Qe(ve,Ie,$e,Ge,Je){return Ie=+Ie,$e=$e>>>0,Je||Xe(ve,Ie,$e,8,17976931348623157e292,-17976931348623157e292),ie.write(ve,Ie,$e,Ge,52,8),$e+8}x.prototype.writeDoubleLE=function(Ie,$e,Ge){return Qe(this,Ie,$e,!0,Ge)},x.prototype.writeDoubleBE=function(Ie,$e,Ge){return Qe(this,Ie,$e,!1,Ge)},x.prototype.copy=function(Ie,$e,Ge,Je){if(!x.isBuffer(Ie))throw new TypeError("argument should be a Buffer");if(Ge||(Ge=0),!Je&&Je!==0&&(Je=this.length),$e>=Ie.length&&($e=Ie.length),$e||($e=0),Je>0&&Je<Ge&&(Je=Ge),Je===Ge||Ie.length===0||this.length===0)return 0;if($e<0)throw new RangeError("targetStart out of bounds");if(Ge<0||Ge>=this.length)throw new RangeError("Index out of range");if(Je<0)throw new RangeError("sourceEnd out of bounds");Je>this.length&&(Je=this.length),Ie.length-$e<Je-Ge&&(Je=Ie.length-$e+Ge);var ut=Je-Ge;if(this===Ie&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin($e,Ge,Je);else if(this===Ie&&Ge<$e&&$e<Je)for(var lt=ut-1;lt>=0;--lt)Ie[lt+$e]=this[lt+Ge];else Uint8Array.prototype.set.call(Ie,this.subarray(Ge,Je),$e);return ut},x.prototype.fill=function(Ie,$e,Ge,Je){if(typeof Ie=="string"){if(typeof $e=="string"?(Je=$e,$e=0,Ge=this.length):typeof Ge=="string"&&(Je=Ge,Ge=this.length),Je!==void 0&&typeof Je!="string")throw new TypeError("encoding must be a string");if(typeof Je=="string"&&!x.isEncoding(Je))throw new TypeError("Unknown encoding: "+Je);if(Ie.length===1){var ut=Ie.charCodeAt(0);(Je==="utf8"&&ut<128||Je==="latin1")&&(Ie=ut)}}else typeof Ie=="number"&&(Ie=Ie&255);if($e<0||this.length<$e||this.length<Ge)throw new RangeError("Out of range index");if(Ge<=$e)return this;$e=$e>>>0,Ge=Ge===void 0?this.length:Ge>>>0,Ie||(Ie=0);var lt;if(typeof Ie=="number")for(lt=$e;lt<Ge;++lt)this[lt]=Ie;else{var vt=x.isBuffer(Ie)?Ie:x.from(Ie,Je),ct=vt.length;if(ct===0)throw new TypeError('The value "'+Ie+'" is invalid for argument "value"');for(lt=0;lt<Ge-$e;++lt)this[lt+$e]=vt[lt%ct]}return this};var ft=/[^+/0-9A-Za-z-_]/g;function at(ve){if(ve=ve.split("=")[0],ve=ve.trim().replace(ft,""),ve.length<2)return"";for(;ve.length%4!==0;)ve=ve+"=";return ve}function qe(ve){return ve<16?"0"+ve.toString(16):ve.toString(16)}function Fe(ve,Ie){Ie=Ie||1/0;for(var $e,Ge=ve.length,Je=null,ut=[],lt=0;lt<Ge;++lt){if($e=ve.charCodeAt(lt),$e>55295&&$e<57344){if(!Je){if($e>56319){(Ie-=3)>-1&&ut.push(239,191,189);continue}else if(lt+1===Ge){(Ie-=3)>-1&&ut.push(239,191,189);continue}Je=$e;continue}if($e<56320){(Ie-=3)>-1&&ut.push(239,191,189),Je=$e;continue}$e=(Je-55296<<10|$e-56320)+65536}else Je&&(Ie-=3)>-1&&ut.push(239,191,189);if(Je=null,$e<128){if((Ie-=1)<0)break;ut.push($e)}else if($e<2048){if((Ie-=2)<0)break;ut.push($e>>6|192,$e&63|128)}else if($e<65536){if((Ie-=3)<0)break;ut.push($e>>12|224,$e>>6&63|128,$e&63|128)}else if($e<1114112){if((Ie-=4)<0)break;ut.push($e>>18|240,$e>>12&63|128,$e>>6&63|128,$e&63|128)}else throw new Error("Invalid code point")}return ut}function Re(ve){for(var Ie=[],$e=0;$e<ve.length;++$e)Ie.push(ve.charCodeAt($e)&255);return Ie}function ne(ve,Ie){for(var $e,Ge,Je,ut=[],lt=0;lt<ve.length&&!((Ie-=2)<0);++lt)$e=ve.charCodeAt(lt),Ge=$e>>8,Je=$e%256,ut.push(Je),ut.push(Ge);return ut}function fe(ve){return E.toByteArray(at(ve))}function Me(ve,Ie,$e,Ge){for(var Je=0;Je<Ge&&!(Je+$e>=Ie.length||Je>=ve.length);++Je)Ie[Je+$e]=ve[Je];return Je}function ze(ve,Ie){return ve instanceof Ie||ve!=null&&ve.constructor!=null&&ve.constructor.name!=null&&ve.constructor.name===Ie.name}function we(ve){return ve!==ve}}).call(this)}).call(this,y("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(y,je,be){je.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],92:[function(y,je,be){"use strict";var z=y("get-intrinsic"),E=y("./"),ie=E(z("String.prototype.indexOf"));je.exports=function(ee,ce){var x=z(ee,!!ce);return typeof x=="function"&&ie(ee,".prototype.")>-1?E(x):x}},{"./":93,"get-intrinsic":348}],93:[function(y,je,be){"use strict";var z=y("function-bind"),E=y("get-intrinsic"),ie=E("%Function.prototype.apply%"),oe=E("%Function.prototype.call%"),ee=E("%Reflect.apply%",!0)||z.call(oe,ie),ce=E("%Object.getOwnPropertyDescriptor%",!0),x=E("%Object.defineProperty%",!0),ae=E("%Math.max%");if(x)try{x({},"a",{value:1})}catch(se){x=null}je.exports=function(ue){var pe=ee(z,oe,arguments);if(ce&&x){var he=ce(pe,"length");he.configurable&&x(pe,"length",{value:1+ae(0,ue.length-(arguments.length-1))})}return pe};var re=function(){return ee(z,ie,arguments)};x?x(je.exports,"apply",{value:re}):je.exports.apply=re},{"function-bind":347,"get-intrinsic":348}],94:[function(y,je,be){"use strict";var z=Array.prototype.slice;je.exports=E;function E(oe,ee){if(!(this instanceof E))return new E(oe,ee);this.src=oe,this._withAccess=ee}E.prototype.withAccess=function(oe){return this._withAccess=oe!==!1,this},E.prototype.pick=function(oe){return Array.isArray(oe)||(oe=z.call(arguments)),oe.length&&(this.keys=oe),this},E.prototype.to=function(oe){if(oe=oe||{},!this.src)return oe;var ee=this.keys||Object.keys(this.src);if(!this._withAccess){for(var ce=0;ce<ee.length;ce++)x=ee[ce],oe[x]===void 0&&(oe[x]=this.src[x]);return oe}for(var ce=0;ce<ee.length;ce++){var x=ee[ce];if(ie(oe,x)){var ae=this.src.__lookupGetter__(x),re=this.src.__lookupSetter__(x);ae&&oe.__defineGetter__(x,ae),re&&oe.__defineSetter__(x,re),!ae&&!re&&(oe[x]=this.src[x])}}return oe},E.prototype.toCover=function(oe){for(var ee=this.keys||Object.keys(this.src),ce=0;ce<ee.length;ce++){var x=ee[ce];delete oe[x];var ae=this.src.__lookupGetter__(x),re=this.src.__lookupSetter__(x);ae&&oe.__defineGetter__(x,ae),re&&oe.__defineSetter__(x,re),!ae&&!re&&(oe[x]=this.src[x])}},E.prototype.override=E.prototype.toCover,E.prototype.and=function(oe){var ee={};return this.to(ee),this.src=oe,this.to(ee),this.src=ee,this};function ie(oe,ee){return oe[ee]===void 0&&oe.__lookupGetter__(ee)===void 0&&oe.__lookupSetter__(ee)===void 0}},{}],95:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/is-callable"),ie=y("../internals/try-to-string"),oe=z.TypeError;je.exports=function(ee){if(E(ee))return ee;throw oe(ie(ee)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/is-constructor"),ie=y("../internals/try-to-string"),oe=z.TypeError;je.exports=function(ee){if(E(ee))return ee;throw oe(ie(ee)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/is-callable"),ie=z.String,oe=z.TypeError;je.exports=function(ee){if(typeof ee=="object"||E(ee))return ee;throw oe("Can't set "+ie(ee)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(y,je,be){var z=y("../internals/well-known-symbol"),E=y("../internals/object-create"),ie=y("../internals/object-define-property"),oe=z("unscopables"),ee=Array.prototype;ee[oe]==null&&ie.f(ee,oe,{configurable:!0,value:E(null)}),je.exports=function(ce){ee[oe][ce]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(y,je,be){"use strict";var z=y("../internals/string-multibyte").charAt;je.exports=function(E,ie,oe){return ie+(oe?z(E,ie).length:1)}},{"../internals/string-multibyte":239}],100:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/object-is-prototype-of"),ie=z.TypeError;je.exports=function(oe,ee){if(E(ee,oe))return oe;throw ie("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/is-object"),ie=z.String,oe=z.TypeError;je.exports=function(ee){if(E(ee))return ee;throw oe(ie(ee)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(y,je,be){je.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(y,je,be){"use strict";var z=y("../internals/array-buffer-native"),E=y("../internals/descriptors"),ie=y("../internals/global"),oe=y("../internals/is-callable"),ee=y("../internals/is-object"),ce=y("../internals/has-own-property"),x=y("../internals/classof"),ae=y("../internals/try-to-string"),re=y("../internals/create-non-enumerable-property"),se=y("../internals/redefine"),ue=y("../internals/object-define-property").f,pe=y("../internals/object-is-prototype-of"),he=y("../internals/object-get-prototype-of"),ye=y("../internals/object-set-prototype-of"),ge=y("../internals/well-known-symbol"),xe=y("../internals/uid"),ke=ie.Int8Array,De=ke&&ke.prototype,Be=ie.Uint8ClampedArray,Ae=Be&&Be.prototype,Se=ke&&he(ke),Ee=De&&he(De),Oe=Object.prototype,Pe=ie.TypeError,Le=ge("toStringTag"),Ne=xe("TYPED_ARRAY_TAG"),me=xe("TYPED_ARRAY_CONSTRUCTOR"),Ve=z&&!!ye&&x(ie.opera)!=="Opera",Ze=!1,We,nt,_e,Ue={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},tt={BigInt64Array:8,BigUint64Array:8},rt=function(ft){if(!ee(ft))return!1;var at=x(ft);return at==="DataView"||ce(Ue,at)||ce(tt,at)},et=function(Qe){if(!ee(Qe))return!1;var ft=x(Qe);return ce(Ue,ft)||ce(tt,ft)},Ke=function(Qe){if(et(Qe))return Qe;throw Pe("Target is not a typed array")},Ye=function(Qe){if(oe(Qe)&&(!ye||pe(Se,Qe)))return Qe;throw Pe(ae(Qe)+" is not a typed array constructor")},Xe=function(Qe,ft,at,qe){if(E){if(at)for(var Fe in Ue){var Re=ie[Fe];if(Re&&ce(Re.prototype,Qe))try{delete Re.prototype[Qe]}catch(ne){try{Re.prototype[Qe]=ft}catch(fe){}}}(!Ee[Qe]||at)&&se(Ee,Qe,at?ft:Ve&&De[Qe]||ft,qe)}},ot=function(Qe,ft,at){var qe,Fe;if(E){if(ye){if(at){for(qe in Ue)if(Fe=ie[qe],Fe&&ce(Fe,Qe))try{delete Fe[Qe]}catch(Re){}}if(!Se[Qe]||at)try{return se(Se,Qe,at?ft:Ve&&Se[Qe]||ft)}catch(Re){}else return}for(qe in Ue)Fe=ie[qe],Fe&&(!Fe[Qe]||at)&&se(Fe,Qe,ft)}};for(We in Ue)nt=ie[We],_e=nt&&nt.prototype,_e?re(_e,me,nt):Ve=!1;for(We in tt)nt=ie[We],_e=nt&&nt.prototype,_e&&re(_e,me,nt);if((!Ve||!oe(Se)||Se===Function.prototype)&&(Se=function(){throw Pe("Incorrect invocation")},Ve))for(We in Ue)ie[We]&&ye(ie[We],Se);if((!Ve||!Ee||Ee===Oe)&&(Ee=Se.prototype,Ve))for(We in Ue)ie[We]&&ye(ie[We].prototype,Ee);if(Ve&&he(Ae)!==Ee&&ye(Ae,Ee),E&&!ce(Ee,Le)){Ze=!0,ue(Ee,Le,{get:function(){return ee(this)?this[Ne]:void 0}});for(We in Ue)ie[We]&&re(ie[We],Ne,We)}je.exports={NATIVE_ARRAY_BUFFER_VIEWS:Ve,TYPED_ARRAY_CONSTRUCTOR:me,TYPED_ARRAY_TAG:Ze&&Ne,aTypedArray:Ke,aTypedArrayConstructor:Ye,exportTypedArrayMethod:Xe,exportTypedArrayStaticMethod:ot,isView:rt,isTypedArray:et,TypedArray:Se,TypedArrayPrototype:Ee}},{"../internals/array-buffer-native":102,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-define-property":198,"../internals/object-get-prototype-of":203,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/try-to-string":257,"../internals/uid":263,"../internals/well-known-symbol":268}],104:[function(y,je,be){"use strict";var z=y("../internals/global"),E=y("../internals/function-uncurry-this"),ie=y("../internals/descriptors"),oe=y("../internals/array-buffer-native"),ee=y("../internals/function-name"),ce=y("../internals/create-non-enumerable-property"),x=y("../internals/redefine-all"),ae=y("../internals/fails"),re=y("../internals/an-instance"),se=y("../internals/to-integer-or-infinity"),ue=y("../internals/to-length"),pe=y("../internals/to-index"),he=y("../internals/ieee754"),ye=y("../internals/object-get-prototype-of"),ge=y("../internals/object-set-prototype-of"),xe=y("../internals/object-get-own-property-names").f,ke=y("../internals/object-define-property").f,De=y("../internals/array-fill"),Be=y("../internals/array-slice-simple"),Ae=y("../internals/set-to-string-tag"),Se=y("../internals/internal-state"),Ee=ee.PROPER,Oe=ee.CONFIGURABLE,Pe=Se.get,Le=Se.set,Ne="ArrayBuffer",me="DataView",Ve="prototype",Ze="Wrong length",We="Wrong index",nt=z[Ne],_e=nt,Ue=_e&&_e[Ve],tt=z[me],rt=tt&&tt[Ve],et=Object.prototype,Ke=z.Array,Ye=z.RangeError,Xe=E(De),ot=E([].reverse),Qe=he.pack,ft=he.unpack,at=function(lt){return[lt&255]},qe=function(lt){return[lt&255,lt>>8&255]},Fe=function(lt){return[lt&255,lt>>8&255,lt>>16&255,lt>>24&255]},Re=function(lt){return lt[3]<<24|lt[2]<<16|lt[1]<<8|lt[0]},ne=function(lt){return Qe(lt,23,4)},fe=function(lt){return Qe(lt,52,8)},Me=function(lt,vt){ke(lt[Ve],vt,{get:function(){return Pe(this)[vt]}})},ze=function(lt,vt,ct,st){var At=pe(ct),mt=Pe(lt);if(At+vt>mt.byteLength)throw Ye(We);var Dt=Pe(mt.buffer).bytes,jt=At+mt.byteOffset,Et=Be(Dt,jt,jt+vt);return st?Et:ot(Et)},we=function(lt,vt,ct,st,At,mt){var Dt=pe(ct),jt=Pe(lt);if(Dt+vt>jt.byteLength)throw Ye(We);for(var Et=Pe(jt.buffer).bytes,kt=Dt+jt.byteOffset,Nt=st(+At),yt=0;yt<vt;yt++)Et[kt+yt]=Nt[mt?yt:vt-yt-1]};if(!oe)_e=function(vt){re(this,Ue);var ct=pe(vt);Le(this,{bytes:Xe(Ke(ct),0),byteLength:ct}),ie||(this.byteLength=ct)},Ue=_e[Ve],tt=function(vt,ct,st){re(this,rt),re(vt,Ue);var At=Pe(vt).byteLength,mt=se(ct);if(mt<0||mt>At)throw Ye("Wrong offset");if(st=st===void 0?At-mt:ue(st),mt+st>At)throw Ye(Ze);Le(this,{buffer:vt,byteLength:st,byteOffset:mt}),ie||(this.buffer=vt,this.byteLength=st,this.byteOffset=mt)},rt=tt[Ve],ie&&(Me(_e,"byteLength"),Me(tt,"buffer"),Me(tt,"byteLength"),Me(tt,"byteOffset")),x(rt,{getInt8:function(vt){return ze(this,1,vt)[0]<<24>>24},getUint8:function(vt){return ze(this,1,vt)[0]},getInt16:function(vt){var ct=ze(this,2,vt,arguments.length>1?arguments[1]:void 0);return(ct[1]<<8|ct[0])<<16>>16},getUint16:function(vt){var ct=ze(this,2,vt,arguments.length>1?arguments[1]:void 0);return ct[1]<<8|ct[0]},getInt32:function(vt){return Re(ze(this,4,vt,arguments.length>1?arguments[1]:void 0))},getUint32:function(vt){return Re(ze(this,4,vt,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(vt){return ft(ze(this,4,vt,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(vt){return ft(ze(this,8,vt,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(vt,ct){we(this,1,vt,at,ct)},setUint8:function(vt,ct){we(this,1,vt,at,ct)},setInt16:function(vt,ct){we(this,2,vt,qe,ct,arguments.length>2?arguments[2]:void 0)},setUint16:function(vt,ct){we(this,2,vt,qe,ct,arguments.length>2?arguments[2]:void 0)},setInt32:function(vt,ct){we(this,4,vt,Fe,ct,arguments.length>2?arguments[2]:void 0)},setUint32:function(vt,ct){we(this,4,vt,Fe,ct,arguments.length>2?arguments[2]:void 0)},setFloat32:function(vt,ct){we(this,4,vt,ne,ct,arguments.length>2?arguments[2]:void 0)},setFloat64:function(vt,ct){we(this,8,vt,fe,ct,arguments.length>2?arguments[2]:void 0)}});else{var ve=Ee&&nt.name!==Ne;if(!ae(function(){nt(1)})||!ae(function(){new nt(-1)})||ae(function(){return new nt,new nt(1.5),new nt(NaN),ve&&!Oe})){_e=function(vt){return re(this,Ue),new nt(pe(vt))},_e[Ve]=Ue;for(var Ie=xe(nt),$e=0,Ge;Ie.length>$e;)(Ge=Ie[$e++])in _e||ce(_e,Ge,nt[Ge]);Ue.constructor=_e}else ve&&Oe&&ce(nt,"name",Ne);ge&&ye(rt)!==et&&ge(rt,et);var Je=new tt(new _e(2)),ut=E(rt.setInt8);Je.setInt8(0,2147483648),Je.setInt8(1,2147483649),(Je.getInt8(0)||!Je.getInt8(1))&&x(rt,{setInt8:function(vt,ct){ut(this,vt,ct<<24>>24)},setUint8:function(vt,ct){ut(this,vt,ct<<24>>24)}},{unsafe:!0})}Ae(_e,Ne),Ae(tt,me),je.exports={ArrayBuffer:_e,DataView:tt}},{"../internals/an-instance":100,"../internals/array-buffer-native":102,"../internals/array-fill":106,"../internals/array-slice-simple":116,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/ieee754":169,"../internals/internal-state":173,"../internals/object-define-property":198,"../internals/object-get-own-property-names":201,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine-all":221,"../internals/set-to-string-tag":234,"../internals/to-index":246,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],105:[function(y,je,be){"use strict";var z=y("../internals/to-object"),E=y("../internals/to-absolute-index"),ie=y("../internals/length-of-array-like"),oe=Math.min;je.exports=[].copyWithin||function(ce,x){var ae=z(this),re=ie(ae),se=E(ce,re),ue=E(x,re),pe=arguments.length>2?arguments[2]:void 0,he=oe((pe===void 0?re:E(pe,re))-ue,re-se),ye=1;for(ue<se&&se<ue+he&&(ye=-1,ue+=he-1,se+=he-1);he-- >0;)ue in ae?ae[se]=ae[ue]:delete ae[se],se+=ye,ue+=ye;return ae}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(y,je,be){"use strict";var z=y("../internals/to-object"),E=y("../internals/to-absolute-index"),ie=y("../internals/length-of-array-like");je.exports=function(ee){for(var ce=z(this),x=ie(ce),ae=arguments.length,re=E(ae>1?arguments[1]:void 0,x),se=ae>2?arguments[2]:void 0,ue=se===void 0?x:E(se,x);ue>re;)ce[re++]=ee;return ce}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(y,je,be){"use strict";var z=y("../internals/array-iteration").forEach,E=y("../internals/array-method-is-strict"),ie=E("forEach");je.exports=ie?[].forEach:function(ee){return z(this,ee,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(y,je,be){var z=y("../internals/length-of-array-like");je.exports=function(E,ie){for(var oe=0,ee=z(ie),ce=new E(ee);ee>oe;)ce[oe]=ie[oe++];return ce}},{"../internals/length-of-array-like":188}],109:[function(y,je,be){"use strict";var z=y("../internals/global"),E=y("../internals/function-bind-context"),ie=y("../internals/function-call"),oe=y("../internals/to-object"),ee=y("../internals/call-with-safe-iteration-closing"),ce=y("../internals/is-array-iterator-method"),x=y("../internals/is-constructor"),ae=y("../internals/length-of-array-like"),re=y("../internals/create-property"),se=y("../internals/get-iterator"),ue=y("../internals/get-iterator-method"),pe=z.Array;je.exports=function(ye){var ge=oe(ye),xe=x(this),ke=arguments.length,De=ke>1?arguments[1]:void 0,Be=De!==void 0;Be&&(De=E(De,ke>2?arguments[2]:void 0));var Ae=ue(ge),Se=0,Ee,Oe,Pe,Le,Ne,me;if(Ae&&!(this==pe&&ce(Ae)))for(Le=se(ge,Ae),Ne=Le.next,Oe=xe?new this:[];!(Pe=ie(Ne,Le)).done;Se++)me=Be?ee(Le,De,[Pe.value,Se],!0):Pe.value,re(Oe,Se,me);else for(Ee=ae(ge),Oe=xe?new this(Ee):pe(Ee);Ee>Se;Se++)me=Be?De(ge[Se],Se):ge[Se],re(Oe,Se,me);return Oe.length=Se,Oe}},{"../internals/call-with-safe-iteration-closing":121,"../internals/create-property":131,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/is-constructor":177,"../internals/length-of-array-like":188,"../internals/to-object":250}],110:[function(y,je,be){var z=y("../internals/to-indexed-object"),E=y("../internals/to-absolute-index"),ie=y("../internals/length-of-array-like"),oe=function(ee){return function(ce,x,ae){var re=z(ce),se=ie(re),ue=E(ae,se),pe;if(ee&&x!=x){for(;se>ue;)if(pe=re[ue++],pe!=pe)return!0}else for(;se>ue;ue++)if((ee||ue in re)&&re[ue]===x)return ee||ue||0;return!ee&&-1}};je.exports={includes:oe(!0),indexOf:oe(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(y,je,be){var z=y("../internals/function-bind-context"),E=y("../internals/function-uncurry-this"),ie=y("../internals/indexed-object"),oe=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),ce=y("../internals/array-species-create"),x=E([].push),ae=function(re){var se=re==1,ue=re==2,pe=re==3,he=re==4,ye=re==6,ge=re==7,xe=re==5||ye;return function(ke,De,Be,Ae){for(var Se=oe(ke),Ee=ie(Se),Oe=z(De,Be),Pe=ee(Ee),Le=0,Ne=Ae||ce,me=se?Ne(ke,Pe):ue||ge?Ne(ke,0):void 0,Ve,Ze;Pe>Le;Le++)if((xe||Le in Ee)&&(Ve=Ee[Le],Ze=Oe(Ve,Le,Se),re))if(se)me[Le]=Ze;else if(Ze)switch(re){case 3:return!0;case 5:return Ve;case 6:return Le;case 2:x(me,Ve)}else switch(re){case 4:return!1;case 7:x(me,Ve)}return ye?-1:pe||he?he:me}};je.exports={forEach:ae(0),map:ae(1),filter:ae(2),some:ae(3),every:ae(4),find:ae(5),findIndex:ae(6),filterReject:ae(7)}},{"../internals/array-species-create":120,"../internals/function-bind-context":153,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],112:[function(y,je,be){"use strict";var z=y("../internals/function-apply"),E=y("../internals/to-indexed-object"),ie=y("../internals/to-integer-or-infinity"),oe=y("../internals/length-of-array-like"),ee=y("../internals/array-method-is-strict"),ce=Math.min,x=[].lastIndexOf,ae=!!x&&1/[1].lastIndexOf(1,-0)<0,re=ee("lastIndexOf"),se=ae||!re;je.exports=se?function(pe){if(ae)return z(x,this,arguments)||0;var he=E(this),ye=oe(he),ge=ye-1;for(arguments.length>1&&(ge=ce(ge,ie(arguments[1]))),ge<0&&(ge=ye+ge);ge>=0;ge--)if(ge in he&&he[ge]===pe)return ge||0;return-1}:x},{"../internals/array-method-is-strict":114,"../internals/function-apply":152,"../internals/length-of-array-like":188,"../internals/to-indexed-object":247,"../internals/to-integer-or-infinity":248}],113:[function(y,je,be){var z=y("../internals/fails"),E=y("../internals/well-known-symbol"),ie=y("../internals/engine-v8-version"),oe=E("species");je.exports=function(ee){return ie>=51||!z(function(){var ce=[],x=ce.constructor={};return x[oe]=function(){return{foo:1}},ce[ee](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(y,je,be){"use strict";var z=y("../internals/fails");je.exports=function(E,ie){var oe=[][E];return!!oe&&z(function(){oe.call(null,ie||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/a-callable"),ie=y("../internals/to-object"),oe=y("../internals/indexed-object"),ee=y("../internals/length-of-array-like"),ce=z.TypeError,x=function(ae){return function(re,se,ue,pe){E(se);var he=ie(re),ye=oe(he),ge=ee(he),xe=ae?ge-1:0,ke=ae?-1:1;if(ue<2)for(;;){if(xe in ye){pe=ye[xe],xe+=ke;break}if(xe+=ke,ae?xe<0:ge<=xe)throw ce("Reduce of empty array with no initial value")}for(;ae?xe>=0:ge>xe;xe+=ke)xe in ye&&(pe=se(pe,ye[xe],xe,he));return pe}};je.exports={left:x(!1),right:x(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/to-absolute-index"),ie=y("../internals/length-of-array-like"),oe=y("../internals/create-property"),ee=z.Array,ce=Math.max;je.exports=function(x,ae,re){for(var se=ie(x),ue=E(ae,se),pe=E(re===void 0?se:re,se),he=ee(ce(pe-ue,0)),ye=0;ue<pe;ue++,ye++)oe(he,ye,x[ue]);return he.length=ye,he}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(y,je,be){var z=y("../internals/function-uncurry-this");je.exports=z([].slice)},{"../internals/function-uncurry-this":157}],118:[function(y,je,be){var z=y("../internals/array-slice-simple"),E=Math.floor,ie=function(ce,x){var ae=ce.length,re=E(ae/2);return ae<8?oe(ce,x):ee(ce,ie(z(ce,0,re),x),ie(z(ce,re),x),x)},oe=function(ce,x){for(var ae=ce.length,re=1,se,ue;re<ae;){for(ue=re,se=ce[re];ue&&x(ce[ue-1],se)>0;)ce[ue]=ce[--ue];ue!==re++&&(ce[ue]=se)}return ce},ee=function(ce,x,ae,re){for(var se=x.length,ue=ae.length,pe=0,he=0;pe<se||he<ue;)ce[pe+he]=pe<se&&he<ue?re(x[pe],ae[he])<=0?x[pe++]:ae[he++]:pe<se?x[pe++]:ae[he++];return ce};je.exports=ie},{"../internals/array-slice-simple":116}],119:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/is-array"),ie=y("../internals/is-constructor"),oe=y("../internals/is-object"),ee=y("../internals/well-known-symbol"),ce=ee("species"),x=z.Array;je.exports=function(ae){var re;return E(ae)&&(re=ae.constructor,ie(re)&&(re===x||E(re.prototype))?re=void 0:oe(re)&&(re=re[ce],re===null&&(re=void 0))),re===void 0?x:re}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(y,je,be){var z=y("../internals/array-species-constructor");je.exports=function(E,ie){return new(z(E))(ie===0?0:ie)}},{"../internals/array-species-constructor":119}],121:[function(y,je,be){var z=y("../internals/an-object"),E=y("../internals/iterator-close");je.exports=function(ie,oe,ee,ce){try{return ce?oe(z(ee)[0],ee[1]):oe(ee)}catch(x){E(ie,"throw",x)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(y,je,be){var z=y("../internals/well-known-symbol"),E=z("iterator"),ie=!1;try{var oe=0,ee={next:function(){return{done:!!oe++}},return:function(){ie=!0}};ee[E]=function(){return this},Array.from(ee,function(){throw 2})}catch(ce){}je.exports=function(ce,x){if(!x&&!ie)return!1;var ae=!1;try{var re={};re[E]=function(){return{next:function(){return{done:ae=!0}}}},ce(re)}catch(se){}return ae}},{"../internals/well-known-symbol":268}],123:[function(y,je,be){var z=y("../internals/function-uncurry-this"),E=z({}.toString),ie=z("".slice);je.exports=function(oe){return ie(E(oe),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/to-string-tag-support"),ie=y("../internals/is-callable"),oe=y("../internals/classof-raw"),ee=y("../internals/well-known-symbol"),ce=ee("toStringTag"),x=z.Object,ae=oe(function(){return arguments}())=="Arguments",re=function(se,ue){try{return se[ue]}catch(pe){}};je.exports=E?oe:function(se){var ue,pe,he;return se===void 0?"Undefined":se===null?"Null":typeof(pe=re(ue=x(se),ce))=="string"?pe:ae?oe(ue):(he=oe(ue))=="Object"&&ie(ue.callee)?"Arguments":he}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(y,je,be){var z=y("../internals/has-own-property"),E=y("../internals/own-keys"),ie=y("../internals/object-get-own-property-descriptor"),oe=y("../internals/object-define-property");je.exports=function(ee,ce,x){for(var ae=E(ce),re=oe.f,se=ie.f,ue=0;ue<ae.length;ue++){var pe=ae[ue];!z(ee,pe)&&!(x&&z(x,pe))&&re(ee,pe,se(ce,pe))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(y,je,be){var z=y("../internals/well-known-symbol"),E=z("match");je.exports=function(ie){var oe=/./;try{"/./"[ie](oe)}catch(ee){try{return oe[E]=!1,"/./"[ie](oe)}catch(ce){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(y,je,be){var z=y("../internals/fails");je.exports=!z(function(){function E(){}return E.prototype.constructor=null,Object.getPrototypeOf(new E)!==E.prototype})},{"../internals/fails":150}],128:[function(y,je,be){"use strict";var z=y("../internals/iterators-core").IteratorPrototype,E=y("../internals/object-create"),ie=y("../internals/create-property-descriptor"),oe=y("../internals/set-to-string-tag"),ee=y("../internals/iterators"),ce=function(){return this};je.exports=function(x,ae,re,se){var ue=ae+" Iterator";return x.prototype=E(z,{next:ie(+!se,re)}),oe(x,ue,!1,!0),ee[ue]=ce,x}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(y,je,be){var z=y("../internals/descriptors"),E=y("../internals/object-define-property"),ie=y("../internals/create-property-descriptor");je.exports=z?function(oe,ee,ce){return E.f(oe,ee,ie(1,ce))}:function(oe,ee,ce){return oe[ee]=ce,oe}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(y,je,be){je.exports=function(z,E){return{enumerable:!(z&1),configurable:!(z&2),writable:!(z&4),value:E}}},{}],131:[function(y,je,be){"use strict";var z=y("../internals/to-property-key"),E=y("../internals/object-define-property"),ie=y("../internals/create-property-descriptor");je.exports=function(oe,ee,ce){var x=z(ee);x in oe?E.f(oe,x,ie(0,ce)):oe[x]=ce}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/function-call"),ie=y("../internals/is-pure"),oe=y("../internals/function-name"),ee=y("../internals/is-callable"),ce=y("../internals/create-iterator-constructor"),x=y("../internals/object-get-prototype-of"),ae=y("../internals/object-set-prototype-of"),re=y("../internals/set-to-string-tag"),se=y("../internals/create-non-enumerable-property"),ue=y("../internals/redefine"),pe=y("../internals/well-known-symbol"),he=y("../internals/iterators"),ye=y("../internals/iterators-core"),ge=oe.PROPER,xe=oe.CONFIGURABLE,ke=ye.IteratorPrototype,De=ye.BUGGY_SAFARI_ITERATORS,Be=pe("iterator"),Ae="keys",Se="values",Ee="entries",Oe=function(){return this};je.exports=function(Pe,Le,Ne,me,Ve,Ze,We){ce(Ne,Le,me);var nt=function(Qe){if(Qe===Ve&&et)return et;if(!De&&Qe in tt)return tt[Qe];switch(Qe){case Ae:return function(){return new Ne(this,Qe)};case Se:return function(){return new Ne(this,Qe)};case Ee:return function(){return new Ne(this,Qe)}}return function(){return new Ne(this)}},_e=Le+" Iterator",Ue=!1,tt=Pe.prototype,rt=tt[Be]||tt["@@iterator"]||Ve&&tt[Ve],et=!De&&rt||nt(Ve),Ke=Le=="Array"&&tt.entries||rt,Ye,Xe,ot;if(Ke&&(Ye=x(Ke.call(new Pe)),Ye!==Object.prototype&&Ye.next&&(!ie&&x(Ye)!==ke&&(ae?ae(Ye,ke):ee(Ye[Be])||ue(Ye,Be,Oe)),re(Ye,_e,!0,!0),ie&&(he[_e]=Oe))),ge&&Ve==Se&&rt&&rt.name!==Se&&(!ie&&xe?se(tt,"name",Se):(Ue=!0,et=function(){return E(rt,this)})),Ve)if(Xe={values:nt(Se),keys:Ze?et:nt(Ae),entries:nt(Ee)},We)for(ot in Xe)(De||Ue||!(ot in tt))&&ue(tt,ot,Xe[ot]);else z({target:Le,proto:!0,forced:De||Ue},Xe);return(!ie||We)&&tt[Be]!==et&&ue(tt,Be,et,{name:Ve}),he[Le]=et,Xe}},{"../internals/create-iterator-constructor":128,"../internals/create-non-enumerable-property":129,"../internals/export":149,"../internals/function-call":155,"../internals/function-name":156,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/well-known-symbol":268}],133:[function(y,je,be){var z=y("../internals/path"),E=y("../internals/has-own-property"),ie=y("../internals/well-known-symbol-wrapped"),oe=y("../internals/object-define-property").f;je.exports=function(ee){var ce=z.Symbol||(z.Symbol={});E(ce,ee)||oe(ce,ee,{value:ie.f(ee)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(y,je,be){var z=y("../internals/fails");je.exports=!z(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/is-object"),ie=z.document,oe=E(ie)&&E(ie.createElement);je.exports=function(ee){return oe?ie.createElement(ee):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(y,je,be){je.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],137:[function(y,je,be){var z=y("../internals/document-create-element"),E=z("span").classList,ie=E&&E.constructor&&E.constructor.prototype;je.exports=ie===Object.prototype?void 0:ie},{"../internals/document-create-element":135}],138:[function(y,je,be){var z=y("../internals/engine-user-agent"),E=z.match(/firefox\/(\d+)/i);je.exports=!!E&&+E[1]},{"../internals/engine-user-agent":145}],139:[function(y,je,be){je.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(y,je,be){var z=y("../internals/engine-user-agent");je.exports=/MSIE|Trident/.test(z)},{"../internals/engine-user-agent":145}],141:[function(y,je,be){var z=y("../internals/engine-user-agent"),E=y("../internals/global");je.exports=/ipad|iphone|ipod/i.test(z)&&E.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(y,je,be){var z=y("../internals/engine-user-agent");je.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(z)},{"../internals/engine-user-agent":145}],143:[function(y,je,be){var z=y("../internals/classof-raw"),E=y("../internals/global");je.exports=z(E.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(y,je,be){var z=y("../internals/engine-user-agent");je.exports=/web0s(?!.*chrome)/i.test(z)},{"../internals/engine-user-agent":145}],145:[function(y,je,be){var z=y("../internals/get-built-in");je.exports=z("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/engine-user-agent"),ie=z.process,oe=z.Deno,ee=ie&&ie.versions||oe&&oe.version,ce=ee&&ee.v8,x,ae;ce&&(x=ce.split("."),ae=x[0]>0&&x[0]<4?1:+(x[0]+x[1])),!ae&&E&&(x=E.match(/Edge\/(\d+)/),(!x||x[1]>=74)&&(x=E.match(/Chrome\/(\d+)/),x&&(ae=+x[1]))),je.exports=ae},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(y,je,be){var z=y("../internals/engine-user-agent"),E=z.match(/AppleWebKit\/(\d+)\./);je.exports=!!E&&+E[1]},{"../internals/engine-user-agent":145}],148:[function(y,je,be){je.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/object-get-own-property-descriptor").f,ie=y("../internals/create-non-enumerable-property"),oe=y("../internals/redefine"),ee=y("../internals/set-global"),ce=y("../internals/copy-constructor-properties"),x=y("../internals/is-forced");je.exports=function(ae,re){var se=ae.target,ue=ae.global,pe=ae.stat,he,ye,ge,xe,ke,De;if(ue?ye=z:pe?ye=z[se]||ee(se,{}):ye=(z[se]||{}).prototype,ye)for(ge in re){if(ke=re[ge],ae.noTargetGet?(De=E(ye,ge),xe=De&&De.value):xe=ye[ge],he=x(ue?ge:se+(pe?".":"#")+ge,ae.forced),!he&&xe!==void 0){if(typeof ke==typeof xe)continue;ce(ke,xe)}(ae.sham||xe&&xe.sham)&&ie(ke,"sham",!0),oe(ye,ge,ke,ae)}}},{"../internals/copy-constructor-properties":125,"../internals/create-non-enumerable-property":129,"../internals/global":163,"../internals/is-forced":178,"../internals/object-get-own-property-descriptor":199,"../internals/redefine":222,"../internals/set-global":232}],150:[function(y,je,be){je.exports=function(z){try{return!!z()}catch(E){return!0}}},{}],151:[function(y,je,be){"use strict";y("../modules/es.regexp.exec");var z=y("../internals/function-uncurry-this"),E=y("../internals/redefine"),ie=y("../internals/regexp-exec"),oe=y("../internals/fails"),ee=y("../internals/well-known-symbol"),ce=y("../internals/create-non-enumerable-property"),x=ee("species"),ae=RegExp.prototype;je.exports=function(re,se,ue,pe){var he=ee(re),ye=!oe(function(){var De={};return De[he]=function(){return 7},""[re](De)!=7}),ge=ye&&!oe(function(){var De=!1,Be=/a/;return re==="split"&&(Be={},Be.constructor={},Be.constructor[x]=function(){return Be},Be.flags="",Be[he]=/./[he]),Be.exec=function(){return De=!0,null},Be[he](""),!De});if(!ye||!ge||ue){var xe=z(/./[he]),ke=se(he,""[re],function(De,Be,Ae,Se,Ee){var Oe=z(De),Pe=Be.exec;return Pe===ie||Pe===ae.exec?ye&&!Ee?{done:!0,value:xe(Be,Ae,Se)}:{done:!0,value:Oe(Ae,Be,Se)}:{done:!1}});E(String.prototype,re,ke[0]),E(ae,he,ke[1])}pe&&ce(ae[he],"sham",!0)}},{"../internals/create-non-enumerable-property":129,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/redefine":222,"../internals/regexp-exec":224,"../internals/well-known-symbol":268,"../modules/es.regexp.exec":300}],152:[function(y,je,be){var z=y("../internals/function-bind-native"),E=Function.prototype,ie=E.apply,oe=E.call;je.exports=typeof Reflect=="object"&&Reflect.apply||(z?oe.bind(ie):function(){return oe.apply(ie,arguments)})},{"../internals/function-bind-native":154}],153:[function(y,je,be){var z=y("../internals/function-uncurry-this"),E=y("../internals/a-callable"),ie=y("../internals/function-bind-native"),oe=z(z.bind);je.exports=function(ee,ce){return E(ee),ce===void 0?ee:ie?oe(ee,ce):function(){return ee.apply(ce,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(y,je,be){var z=y("../internals/fails");je.exports=!z(function(){var E=function(){}.bind();return typeof E!="function"||E.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(y,je,be){var z=y("../internals/function-bind-native"),E=Function.prototype.call;je.exports=z?E.bind(E):function(){return E.apply(E,arguments)}},{"../internals/function-bind-native":154}],156:[function(y,je,be){var z=y("../internals/descriptors"),E=y("../internals/has-own-property"),ie=Function.prototype,oe=z&&Object.getOwnPropertyDescriptor,ee=E(ie,"name"),ce=ee&&function(){}.name==="something",x=ee&&(!z||z&&oe(ie,"name").configurable);je.exports={EXISTS:ee,PROPER:ce,CONFIGURABLE:x}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(y,je,be){var z=y("../internals/function-bind-native"),E=Function.prototype,ie=E.bind,oe=E.call,ee=z&&ie.bind(oe,oe);je.exports=z?function(ce){return ce&&ee(ce)}:function(ce){return ce&&function(){return oe.apply(ce,arguments)}}},{"../internals/function-bind-native":154}],158:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/is-callable"),ie=function(oe){return E(oe)?oe:void 0};je.exports=function(oe,ee){return arguments.length<2?ie(z[oe]):z[oe]&&z[oe][ee]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(y,je,be){var z=y("../internals/classof"),E=y("../internals/get-method"),ie=y("../internals/iterators"),oe=y("../internals/well-known-symbol"),ee=oe("iterator");je.exports=function(ce){if(ce!=null)return E(ce,ee)||E(ce,"@@iterator")||ie[z(ce)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/function-call"),ie=y("../internals/a-callable"),oe=y("../internals/an-object"),ee=y("../internals/try-to-string"),ce=y("../internals/get-iterator-method"),x=z.TypeError;je.exports=function(ae,re){var se=arguments.length<2?ce(ae):re;if(ie(se))return oe(E(se,ae));throw x(ee(ae)+" is not iterable")}},{"../internals/a-callable":95,"../internals/an-object":101,"../internals/function-call":155,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/try-to-string":257}],161:[function(y,je,be){var z=y("../internals/a-callable");je.exports=function(E,ie){var oe=E[ie];return oe==null?void 0:z(oe)}},{"../internals/a-callable":95}],162:[function(y,je,be){var z=y("../internals/function-uncurry-this"),E=y("../internals/to-object"),ie=Math.floor,oe=z("".charAt),ee=z("".replace),ce=z("".slice),x=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ae=/\$([$&'`]|\d{1,2})/g;je.exports=function(re,se,ue,pe,he,ye){var ge=ue+re.length,xe=pe.length,ke=ae;return he!==void 0&&(he=E(he),ke=x),ee(ye,ke,function(De,Be){var Ae;switch(oe(Be,0)){case"$":return"$";case"&":return re;case"`":return ce(se,0,ue);case"'":return ce(se,ge);case"<":Ae=he[ce(Be,1,-1)];break;default:var Se=+Be;if(Se===0)return De;if(Se>xe){var Ee=ie(Se/10);return Ee===0?De:Ee<=xe?pe[Ee-1]===void 0?oe(Be,1):pe[Ee-1]+oe(Be,1):De}Ae=pe[Se-1]}return Ae===void 0?"":Ae})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(y,je,be){(function(z){(function(){var E=function(ie){return ie&&ie.Math==Math&&ie};je.exports=E(typeof globalThis=="object"&&globalThis)||E(typeof window=="object"&&window)||E(typeof self=="object"&&self)||E(typeof z=="object"&&z)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(y,je,be){var z=y("../internals/function-uncurry-this"),E=y("../internals/to-object"),ie=z({}.hasOwnProperty);je.exports=Object.hasOwn||function(ee,ce){return ie(E(ee),ce)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(y,je,be){je.exports={}},{}],166:[function(y,je,be){var z=y("../internals/global");je.exports=function(E,ie){var oe=z.console;oe&&oe.error&&(arguments.length==1?oe.error(E):oe.error(E,ie))}},{"../internals/global":163}],167:[function(y,je,be){var z=y("../internals/get-built-in");je.exports=z("document","documentElement")},{"../internals/get-built-in":158}],168:[function(y,je,be){var z=y("../internals/descriptors"),E=y("../internals/fails"),ie=y("../internals/document-create-element");je.exports=!z&&!E(function(){return Object.defineProperty(ie("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(y,je,be){var z=y("../internals/global"),E=z.Array,ie=Math.abs,oe=Math.pow,ee=Math.floor,ce=Math.log,x=Math.LN2,ae=function(se,ue,pe){var he=E(pe),ye=pe*8-ue-1,ge=(1<<ye)-1,xe=ge>>1,ke=ue===23?oe(2,-24)-oe(2,-77):0,De=se<0||se===0&&1/se<0?1:0,Be=0,Ae,Se,Ee;for(se=ie(se),se!=se||se===1/0?(Se=se!=se?1:0,Ae=ge):(Ae=ee(ce(se)/x),Ee=oe(2,-Ae),se*Ee<1&&(Ae--,Ee*=2),Ae+xe>=1?se+=ke/Ee:se+=ke*oe(2,1-xe),se*Ee>=2&&(Ae++,Ee/=2),Ae+xe>=ge?(Se=0,Ae=ge):Ae+xe>=1?(Se=(se*Ee-1)*oe(2,ue),Ae=Ae+xe):(Se=se*oe(2,xe-1)*oe(2,ue),Ae=0));ue>=8;)he[Be++]=Se&255,Se/=256,ue-=8;for(Ae=Ae<<ue|Se,ye+=ue;ye>0;)he[Be++]=Ae&255,Ae/=256,ye-=8;return he[--Be]|=De*128,he},re=function(se,ue){var pe=se.length,he=pe*8-ue-1,ye=(1<<he)-1,ge=ye>>1,xe=he-7,ke=pe-1,De=se[ke--],Be=De&127,Ae;for(De>>=7;xe>0;)Be=Be*256+se[ke--],xe-=8;for(Ae=Be&(1<<-xe)-1,Be>>=-xe,xe+=ue;xe>0;)Ae=Ae*256+se[ke--],xe-=8;if(Be===0)Be=1-ge;else{if(Be===ye)return Ae?NaN:De?-1/0:1/0;Ae=Ae+oe(2,ue),Be=Be-ge}return(De?-1:1)*Ae*oe(2,Be-ue)};je.exports={pack:ae,unpack:re}},{"../internals/global":163}],170:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/function-uncurry-this"),ie=y("../internals/fails"),oe=y("../internals/classof-raw"),ee=z.Object,ce=E("".split);je.exports=ie(function(){return!ee("z").propertyIsEnumerable(0)})?function(x){return oe(x)=="String"?ce(x,""):ee(x)}:ee},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(y,je,be){var z=y("../internals/is-callable"),E=y("../internals/is-object"),ie=y("../internals/object-set-prototype-of");je.exports=function(oe,ee,ce){var x,ae;return ie&&z(x=ee.constructor)&&x!==ce&&E(ae=x.prototype)&&ae!==ce.prototype&&ie(oe,ae),oe}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(y,je,be){var z=y("../internals/function-uncurry-this"),E=y("../internals/is-callable"),ie=y("../internals/shared-store"),oe=z(Function.toString);E(ie.inspectSource)||(ie.inspectSource=function(ee){return oe(ee)}),je.exports=ie.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(y,je,be){var z=y("../internals/native-weak-map"),E=y("../internals/global"),ie=y("../internals/function-uncurry-this"),oe=y("../internals/is-object"),ee=y("../internals/create-non-enumerable-property"),ce=y("../internals/has-own-property"),x=y("../internals/shared-store"),ae=y("../internals/shared-key"),re=y("../internals/hidden-keys"),se="Object already initialized",ue=E.TypeError,pe=E.WeakMap,he,ye,ge,xe=function(Oe){return ge(Oe)?ye(Oe):he(Oe,{})},ke=function(Oe){return function(Pe){var Le;if(!oe(Pe)||(Le=ye(Pe)).type!==Oe)throw ue("Incompatible receiver, "+Oe+" required");return Le}};if(z||x.state){var De=x.state||(x.state=new pe),Be=ie(De.get),Ae=ie(De.has),Se=ie(De.set);he=function(Oe,Pe){if(Ae(De,Oe))throw new ue(se);return Pe.facade=Oe,Se(De,Oe,Pe),Pe},ye=function(Oe){return Be(De,Oe)||{}},ge=function(Oe){return Ae(De,Oe)}}else{var Ee=ae("state");re[Ee]=!0,he=function(Oe,Pe){if(ce(Oe,Ee))throw new ue(se);return Pe.facade=Oe,ee(Oe,Ee,Pe),Pe},ye=function(Oe){return ce(Oe,Ee)?Oe[Ee]:{}},ge=function(Oe){return ce(Oe,Ee)}}je.exports={set:he,get:ye,has:ge,enforce:xe,getterFor:ke}},{"../internals/create-non-enumerable-property":129,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/is-object":180,"../internals/native-weak-map":192,"../internals/shared-key":235,"../internals/shared-store":236}],174:[function(y,je,be){var z=y("../internals/well-known-symbol"),E=y("../internals/iterators"),ie=z("iterator"),oe=Array.prototype;je.exports=function(ee){return ee!==void 0&&(E.Array===ee||oe[ie]===ee)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(y,je,be){var z=y("../internals/classof-raw");je.exports=Array.isArray||function(ie){return z(ie)=="Array"}},{"../internals/classof-raw":123}],176:[function(y,je,be){je.exports=function(z){return typeof z=="function"}},{}],177:[function(y,je,be){var z=y("../internals/function-uncurry-this"),E=y("../internals/fails"),ie=y("../internals/is-callable"),oe=y("../internals/classof"),ee=y("../internals/get-built-in"),ce=y("../internals/inspect-source"),x=function(){},ae=[],re=ee("Reflect","construct"),se=/^\s*(?:class|function)\b/,ue=z(se.exec),pe=!se.exec(x),he=function(xe){if(!ie(xe))return!1;try{return re(x,ae,xe),!0}catch(ke){return!1}},ye=function(xe){if(!ie(xe))return!1;switch(oe(xe)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return pe||!!ue(se,ce(xe))}catch(ke){return!0}};ye.sham=!0,je.exports=!re||E(function(){var ge;return he(he.call)||!he(Object)||!he(function(){ge=!0})||ge})?ye:he},{"../internals/classof":124,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/inspect-source":172,"../internals/is-callable":176}],178:[function(y,je,be){var z=y("../internals/fails"),E=y("../internals/is-callable"),ie=/#|\.prototype\./,oe=function(re,se){var ue=ce[ee(re)];return ue==ae?!0:ue==x?!1:E(se)?z(se):!!se},ee=oe.normalize=function(re){return String(re).replace(ie,".").toLowerCase()},ce=oe.data={},x=oe.NATIVE="N",ae=oe.POLYFILL="P";je.exports=oe},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(y,je,be){var z=y("../internals/is-object"),E=Math.floor;je.exports=Number.isInteger||function(oe){return!z(oe)&&isFinite(oe)&&E(oe)===oe}},{"../internals/is-object":180}],180:[function(y,je,be){var z=y("../internals/is-callable");je.exports=function(E){return typeof E=="object"?E!==null:z(E)}},{"../internals/is-callable":176}],181:[function(y,je,be){je.exports=!1},{}],182:[function(y,je,be){var z=y("../internals/is-object"),E=y("../internals/classof-raw"),ie=y("../internals/well-known-symbol"),oe=ie("match");je.exports=function(ee){var ce;return z(ee)&&((ce=ee[oe])!==void 0?!!ce:E(ee)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/get-built-in"),ie=y("../internals/is-callable"),oe=y("../internals/object-is-prototype-of"),ee=y("../internals/use-symbol-as-uid"),ce=z.Object;je.exports=ee?function(x){return typeof x=="symbol"}:function(x){var ae=E("Symbol");return ie(ae)&&oe(ae.prototype,ce(x))}},{"../internals/get-built-in":158,"../internals/global":163,"../internals/is-callable":176,"../internals/object-is-prototype-of":204,"../internals/use-symbol-as-uid":264}],184:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/function-bind-context"),ie=y("../internals/function-call"),oe=y("../internals/an-object"),ee=y("../internals/try-to-string"),ce=y("../internals/is-array-iterator-method"),x=y("../internals/length-of-array-like"),ae=y("../internals/object-is-prototype-of"),re=y("../internals/get-iterator"),se=y("../internals/get-iterator-method"),ue=y("../internals/iterator-close"),pe=z.TypeError,he=function(ge,xe){this.stopped=ge,this.result=xe},ye=he.prototype;je.exports=function(ge,xe,ke){var De=ke&&ke.that,Be=!!(ke&&ke.AS_ENTRIES),Ae=!!(ke&&ke.IS_ITERATOR),Se=!!(ke&&ke.INTERRUPTED),Ee=E(xe,De),Oe,Pe,Le,Ne,me,Ve,Ze,We=function(_e){return Oe&&ue(Oe,"normal",_e),new he(!0,_e)},nt=function(_e){return Be?(oe(_e),Se?Ee(_e[0],_e[1],We):Ee(_e[0],_e[1])):Se?Ee(_e,We):Ee(_e)};if(Ae)Oe=ge;else{if(Pe=se(ge),!Pe)throw pe(ee(ge)+" is not iterable");if(ce(Pe)){for(Le=0,Ne=x(ge);Ne>Le;Le++)if(me=nt(ge[Le]),me&&ae(ye,me))return me;return new he(!1)}Oe=re(ge,Pe)}for(Ve=Oe.next;!(Ze=ie(Ve,Oe)).done;){try{me=nt(Ze.value)}catch(_e){ue(Oe,"throw",_e)}if(typeof me=="object"&&me&&ae(ye,me))return me}return new he(!1)}},{"../internals/an-object":101,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/iterator-close":185,"../internals/length-of-array-like":188,"../internals/object-is-prototype-of":204,"../internals/try-to-string":257}],185:[function(y,je,be){var z=y("../internals/function-call"),E=y("../internals/an-object"),ie=y("../internals/get-method");je.exports=function(oe,ee,ce){var x,ae;E(oe);try{if(x=ie(oe,"return"),!x){if(ee==="throw")throw ce;return ce}x=z(x,oe)}catch(re){ae=!0,x=re}if(ee==="throw")throw ce;if(ae)throw x;return E(x),ce}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(y,je,be){"use strict";var z=y("../internals/fails"),E=y("../internals/is-callable"),ie=y("../internals/object-create"),oe=y("../internals/object-get-prototype-of"),ee=y("../internals/redefine"),ce=y("../internals/well-known-symbol"),x=y("../internals/is-pure"),ae=ce("iterator"),re=!1,se,ue,pe;[].keys&&(pe=[].keys(),"next"in pe?(ue=oe(oe(pe)),ue!==Object.prototype&&(se=ue)):re=!0);var he=se==null||z(function(){var ye={};return se[ae].call(ye)!==ye});he?se={}:x&&(se=ie(se)),E(se[ae])||ee(se,ae,function(){return this}),je.exports={IteratorPrototype:se,BUGGY_SAFARI_ITERATORS:re}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(y,je,be){arguments[4][165][0].apply(be,arguments)},{dup:165}],188:[function(y,je,be){var z=y("../internals/to-length");je.exports=function(E){return z(E.length)}},{"../internals/to-length":249}],189:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/function-bind-context"),ie=y("../internals/object-get-own-property-descriptor").f,oe=y("../internals/task").set,ee=y("../internals/engine-is-ios"),ce=y("../internals/engine-is-ios-pebble"),x=y("../internals/engine-is-webos-webkit"),ae=y("../internals/engine-is-node"),re=z.MutationObserver||z.WebKitMutationObserver,se=z.document,ue=z.process,pe=z.Promise,he=ie(z,"queueMicrotask"),ye=he&&he.value,ge,xe,ke,De,Be,Ae,Se,Ee;ye||(ge=function(){var Oe,Pe;for(ae&&(Oe=ue.domain)&&Oe.exit();xe;){Pe=xe.fn,xe=xe.next;try{Pe()}catch(Le){throw xe?De():ke=void 0,Le}}ke=void 0,Oe&&Oe.enter()},!ee&&!ae&&!x&&re&&se?(Be=!0,Ae=se.createTextNode(""),new re(ge).observe(Ae,{characterData:!0}),De=function(){Ae.data=Be=!Be}):!ce&&pe&&pe.resolve?(Se=pe.resolve(void 0),Se.constructor=pe,Ee=E(Se.then,Se),De=function(){Ee(ge)}):ae?De=function(){ue.nextTick(ge)}:(oe=E(oe,z),De=function(){oe(ge)})),je.exports=ye||function(Oe){var Pe={fn:Oe,next:void 0};ke&&(ke.next=Pe),xe||(xe=Pe,De()),ke=Pe}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(y,je,be){var z=y("../internals/native-symbol");je.exports=z&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(y,je,be){var z=y("../internals/engine-v8-version"),E=y("../internals/fails");je.exports=!!Object.getOwnPropertySymbols&&!E(function(){var ie=Symbol();return!String(ie)||!(Object(ie)instanceof Symbol)||!Symbol.sham&&z&&z<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/is-callable"),ie=y("../internals/inspect-source"),oe=z.WeakMap;je.exports=E(oe)&&/native code/.test(ie(oe))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(y,je,be){"use strict";var z=y("../internals/a-callable"),E=function(ie){var oe,ee;this.promise=new ie(function(ce,x){if(oe!==void 0||ee!==void 0)throw TypeError("Bad Promise constructor");oe=ce,ee=x}),this.resolve=z(oe),this.reject=z(ee)};je.exports.f=function(ie){return new E(ie)}},{"../internals/a-callable":95}],194:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/is-regexp"),ie=z.TypeError;je.exports=function(oe){if(E(oe))throw ie("The method doesn't accept regular expressions");return oe}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(y,je,be){"use strict";var z=y("../internals/descriptors"),E=y("../internals/function-uncurry-this"),ie=y("../internals/function-call"),oe=y("../internals/fails"),ee=y("../internals/object-keys"),ce=y("../internals/object-get-own-property-symbols"),x=y("../internals/object-property-is-enumerable"),ae=y("../internals/to-object"),re=y("../internals/indexed-object"),se=Object.assign,ue=Object.defineProperty,pe=E([].concat);je.exports=!se||oe(function(){if(z&&se({b:1},se(ue({},"a",{enumerable:!0,get:function(){ue(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var he={},ye={},ge=Symbol(),xe="abcdefghijklmnopqrst";return he[ge]=7,xe.split("").forEach(function(ke){ye[ke]=ke}),se({},he)[ge]!=7||ee(se({},ye)).join("")!=xe})?function(ye,ge){for(var xe=ae(ye),ke=arguments.length,De=1,Be=ce.f,Ae=x.f;ke>De;)for(var Se=re(arguments[De++]),Ee=Be?pe(ee(Se),Be(Se)):ee(Se),Oe=Ee.length,Pe=0,Le;Oe>Pe;)Le=Ee[Pe++],(!z||ie(Ae,Se,Le))&&(xe[Le]=Se[Le]);return xe}:se},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/object-get-own-property-symbols":202,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-object":250}],196:[function(y,je,be){var z=y("../internals/an-object"),E=y("../internals/object-define-properties"),ie=y("../internals/enum-bug-keys"),oe=y("../internals/hidden-keys"),ee=y("../internals/html"),ce=y("../internals/document-create-element"),x=y("../internals/shared-key"),ae=">",re="<",se="prototype",ue="script",pe=x("IE_PROTO"),he=function(){},ye=function(Be){return re+ue+ae+Be+re+"/"+ue+ae},ge=function(Be){Be.write(ye("")),Be.close();var Ae=Be.parentWindow.Object;return Be=null,Ae},xe=function(){var Be=ce("iframe"),Ae="java"+ue+":",Se;return Be.style.display="none",ee.appendChild(Be),Be.src=String(Ae),Se=Be.contentWindow.document,Se.open(),Se.write(ye("document.F=Object")),Se.close(),Se.F},ke,De=function(){try{ke=new ActiveXObject("htmlfile")}catch(Ae){}De=typeof document!="undefined"?document.domain&&ke?ge(ke):xe():ge(ke);for(var Be=ie.length;Be--;)delete De[se][ie[Be]];return De()};oe[pe]=!0,je.exports=Object.create||function(Ae,Se){var Ee;return Ae!==null?(he[se]=z(Ae),Ee=new he,he[se]=null,Ee[pe]=Ae):Ee=De(),Se===void 0?Ee:E.f(Ee,Se)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(y,je,be){var z=y("../internals/descriptors"),E=y("../internals/v8-prototype-define-bug"),ie=y("../internals/object-define-property"),oe=y("../internals/an-object"),ee=y("../internals/to-indexed-object"),ce=y("../internals/object-keys");be.f=z&&!E?Object.defineProperties:function(ae,re){oe(ae);for(var se=ee(re),ue=ce(re),pe=ue.length,he=0,ye;pe>he;)ie.f(ae,ye=ue[he++],se[ye]);return ae}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/object-define-property":198,"../internals/object-keys":206,"../internals/to-indexed-object":247,"../internals/v8-prototype-define-bug":265}],198:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/descriptors"),ie=y("../internals/ie8-dom-define"),oe=y("../internals/v8-prototype-define-bug"),ee=y("../internals/an-object"),ce=y("../internals/to-property-key"),x=z.TypeError,ae=Object.defineProperty,re=Object.getOwnPropertyDescriptor,se="enumerable",ue="configurable",pe="writable";be.f=E?oe?function(ye,ge,xe){if(ee(ye),ge=ce(ge),ee(xe),typeof ye=="function"&&ge==="prototype"&&"value"in xe&&pe in xe&&!xe[pe]){var ke=re(ye,ge);ke&&ke[pe]&&(ye[ge]=xe.value,xe={configurable:ue in xe?xe[ue]:ke[ue],enumerable:se in xe?xe[se]:ke[se],writable:!1})}return ae(ye,ge,xe)}:ae:function(ye,ge,xe){if(ee(ye),ge=ce(ge),ee(xe),ie)try{return ae(ye,ge,xe)}catch(ke){}if("get"in xe||"set"in xe)throw x("Accessors not supported");return"value"in xe&&(ye[ge]=xe.value),ye}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(y,je,be){var z=y("../internals/descriptors"),E=y("../internals/function-call"),ie=y("../internals/object-property-is-enumerable"),oe=y("../internals/create-property-descriptor"),ee=y("../internals/to-indexed-object"),ce=y("../internals/to-property-key"),x=y("../internals/has-own-property"),ae=y("../internals/ie8-dom-define"),re=Object.getOwnPropertyDescriptor;be.f=z?re:function(ue,pe){if(ue=ee(ue),pe=ce(pe),ae)try{return re(ue,pe)}catch(he){}if(x(ue,pe))return oe(!E(ie.f,ue,pe),ue[pe])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(y,je,be){var z=y("../internals/classof-raw"),E=y("../internals/to-indexed-object"),ie=y("../internals/object-get-own-property-names").f,oe=y("../internals/array-slice-simple"),ee=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ce=function(x){try{return ie(x)}catch(ae){return oe(ee)}};je.exports.f=function(ae){return ee&&z(ae)=="Window"?ce(ae):ie(E(ae))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(y,je,be){var z=y("../internals/object-keys-internal"),E=y("../internals/enum-bug-keys"),ie=E.concat("length","prototype");be.f=Object.getOwnPropertyNames||function(ee){return z(ee,ie)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(y,je,be){be.f=Object.getOwnPropertySymbols},{}],203:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/has-own-property"),ie=y("../internals/is-callable"),oe=y("../internals/to-object"),ee=y("../internals/shared-key"),ce=y("../internals/correct-prototype-getter"),x=ee("IE_PROTO"),ae=z.Object,re=ae.prototype;je.exports=ce?ae.getPrototypeOf:function(se){var ue=oe(se);if(E(ue,x))return ue[x];var pe=ue.constructor;return ie(pe)&&ue instanceof pe?pe.prototype:ue instanceof ae?re:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(y,je,be){var z=y("../internals/function-uncurry-this");je.exports=z({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(y,je,be){var z=y("../internals/function-uncurry-this"),E=y("../internals/has-own-property"),ie=y("../internals/to-indexed-object"),oe=y("../internals/array-includes").indexOf,ee=y("../internals/hidden-keys"),ce=z([].push);je.exports=function(x,ae){var re=ie(x),se=0,ue=[],pe;for(pe in re)!E(ee,pe)&&E(re,pe)&&ce(ue,pe);for(;ae.length>se;)E(re,pe=ae[se++])&&(~oe(ue,pe)||ce(ue,pe));return ue}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[function(y,je,be){var z=y("../internals/object-keys-internal"),E=y("../internals/enum-bug-keys");je.exports=Object.keys||function(oe){return z(oe,E)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(y,je,be){"use strict";var z={}.propertyIsEnumerable,E=Object.getOwnPropertyDescriptor,ie=E&&!z.call({1:2},1);be.f=ie?function(ee){var ce=E(this,ee);return!!ce&&ce.enumerable}:z},{}],208:[function(y,je,be){var z=y("../internals/function-uncurry-this"),E=y("../internals/an-object"),ie=y("../internals/a-possible-prototype");je.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var oe=!1,ee={},ce;try{ce=z(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),ce(ee,[]),oe=ee instanceof Array}catch(x){}return function(ae,re){return E(ae),ie(re),oe?ce(ae,re):ae.__proto__=re,ae}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(y,je,be){var z=y("../internals/descriptors"),E=y("../internals/function-uncurry-this"),ie=y("../internals/object-keys"),oe=y("../internals/to-indexed-object"),ee=y("../internals/object-property-is-enumerable").f,ce=E(ee),x=E([].push),ae=function(re){return function(se){for(var ue=oe(se),pe=ie(ue),he=pe.length,ye=0,ge=[],xe;he>ye;)xe=pe[ye++],(!z||ce(ue,xe))&&x(ge,re?[xe,ue[xe]]:ue[xe]);return ge}};je.exports={entries:ae(!0),values:ae(!1)}},{"../internals/descriptors":134,"../internals/function-uncurry-this":157,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247}],210:[function(y,je,be){"use strict";var z=y("../internals/to-string-tag-support"),E=y("../internals/classof");je.exports=z?{}.toString:function(){return"[object "+E(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/function-call"),ie=y("../internals/is-callable"),oe=y("../internals/is-object"),ee=z.TypeError;je.exports=function(ce,x){var ae,re;if(x==="string"&&ie(ae=ce.toString)&&!oe(re=E(ae,ce))||ie(ae=ce.valueOf)&&!oe(re=E(ae,ce))||x!=="string"&&ie(ae=ce.toString)&&!oe(re=E(ae,ce)))return re;throw ee("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(y,je,be){var z=y("../internals/get-built-in"),E=y("../internals/function-uncurry-this"),ie=y("../internals/object-get-own-property-names"),oe=y("../internals/object-get-own-property-symbols"),ee=y("../internals/an-object"),ce=E([].concat);je.exports=z("Reflect","ownKeys")||function(ae){var re=ie.f(ee(ae)),se=oe.f;return se?ce(re,se(ae)):re}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(y,je,be){var z=y("../internals/global");je.exports=z},{"../internals/global":163}],214:[function(y,je,be){je.exports=function(z){try{return{error:!1,value:z()}}catch(E){return{error:!0,value:E}}}},{}],215:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/promise-native-constructor"),ie=y("../internals/is-callable"),oe=y("../internals/is-forced"),ee=y("../internals/inspect-source"),ce=y("../internals/well-known-symbol"),x=y("../internals/engine-is-browser"),ae=y("../internals/is-pure"),re=y("../internals/engine-v8-version"),se=E&&E.prototype,ue=ce("species"),pe=!1,he=ie(z.PromiseRejectionEvent),ye=oe("Promise",function(){var ge=ee(E),xe=ge!==String(E);if(!xe&&re===66||ae&&!(se.catch&&se.finally))return!0;if(re>=51&&/native code/.test(ge))return!1;var ke=new E(function(Ae){Ae(1)}),De=function(Ae){Ae(function(){},function(){})},Be=ke.constructor={};return Be[ue]=De,pe=ke.then(function(){})instanceof De,pe?!xe&&x&&!he:!0});je.exports={CONSTRUCTOR:ye,REJECTION_EVENT:he,SUBCLASSING:pe}},{"../internals/engine-is-browser":139,"../internals/engine-v8-version":146,"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176,"../internals/is-forced":178,"../internals/is-pure":181,"../internals/promise-native-constructor":216,"../internals/well-known-symbol":268}],216:[function(y,je,be){var z=y("../internals/global");je.exports=z.Promise},{"../internals/global":163}],217:[function(y,je,be){var z=y("../internals/an-object"),E=y("../internals/is-object"),ie=y("../internals/new-promise-capability");je.exports=function(oe,ee){if(z(oe),E(ee)&&ee.constructor===oe)return ee;var ce=ie.f(oe),x=ce.resolve;return x(ee),ce.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(y,je,be){var z=y("../internals/promise-native-constructor"),E=y("../internals/check-correctness-of-iteration"),ie=y("../internals/promise-constructor-detection").CONSTRUCTOR;je.exports=ie||!E(function(oe){z.all(oe).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(y,je,be){var z=y("../internals/object-define-property").f;je.exports=function(E,ie,oe){oe in E||z(E,oe,{configurable:!0,get:function(){return ie[oe]},set:function(ee){ie[oe]=ee}})}},{"../internals/object-define-property":198}],220:[function(y,je,be){var z=function(){this.head=null,this.tail=null};z.prototype={add:function(E){var ie={item:E,next:null};this.head?this.tail.next=ie:this.head=ie,this.tail=ie},get:function(){var E=this.head;if(E)return this.head=E.next,this.tail===E&&(this.tail=null),E.item}},je.exports=z},{}],221:[function(y,je,be){var z=y("../internals/redefine");je.exports=function(E,ie,oe){for(var ee in ie)z(E,ee,ie[ee],oe);return E}},{"../internals/redefine":222}],222:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/is-callable"),ie=y("../internals/has-own-property"),oe=y("../internals/create-non-enumerable-property"),ee=y("../internals/set-global"),ce=y("../internals/inspect-source"),x=y("../internals/internal-state"),ae=y("../internals/function-name").CONFIGURABLE,re=x.get,se=x.enforce,ue=String(String).split("String");(je.exports=function(pe,he,ye,ge){var xe=ge?!!ge.unsafe:!1,ke=ge?!!ge.enumerable:!1,De=ge?!!ge.noTargetGet:!1,Be=ge&&ge.name!==void 0?ge.name:he,Ae;if(E(ye)&&(String(Be).slice(0,7)==="Symbol("&&(Be="["+String(Be).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ie(ye,"name")||ae&&ye.name!==Be)&&oe(ye,"name",Be),Ae=se(ye),Ae.source||(Ae.source=ue.join(typeof Be=="string"?Be:""))),pe===z){ke?pe[he]=ye:ee(he,ye);return}else xe?!De&&pe[he]&&(ke=!0):delete pe[he];ke?pe[he]=ye:oe(pe,he,ye)})(Function.prototype,"toString",function(){return E(this)&&re(this).source||ce(this)})},{"../internals/create-non-enumerable-property":129,"../internals/function-name":156,"../internals/global":163,"../internals/has-own-property":164,"../internals/inspect-source":172,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/set-global":232}],223:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/function-call"),ie=y("../internals/an-object"),oe=y("../internals/is-callable"),ee=y("../internals/classof-raw"),ce=y("../internals/regexp-exec"),x=z.TypeError;je.exports=function(ae,re){var se=ae.exec;if(oe(se)){var ue=E(se,ae,re);return ue!==null&&ie(ue),ue}if(ee(ae)==="RegExp")return E(ce,ae,re);throw x("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":101,"../internals/classof-raw":123,"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/regexp-exec":224}],224:[function(y,je,be){"use strict";var z=y("../internals/function-call"),E=y("../internals/function-uncurry-this"),ie=y("../internals/to-string"),oe=y("../internals/regexp-flags"),ee=y("../internals/regexp-sticky-helpers"),ce=y("../internals/shared"),x=y("../internals/object-create"),ae=y("../internals/internal-state").get,re=y("../internals/regexp-unsupported-dot-all"),se=y("../internals/regexp-unsupported-ncg"),ue=ce("native-string-replace",String.prototype.replace),pe=RegExp.prototype.exec,he=pe,ye=E("".charAt),ge=E("".indexOf),xe=E("".replace),ke=E("".slice),De=function(){var Ee=/a/,Oe=/b*/g;return z(pe,Ee,"a"),z(pe,Oe,"a"),Ee.lastIndex!==0||Oe.lastIndex!==0}(),Be=ee.BROKEN_CARET,Ae=/()??/.exec("")[1]!==void 0,Se=De||Ae||Be||re||se;Se&&(he=function(Oe){var Pe=this,Le=ae(Pe),Ne=ie(Oe),me=Le.raw,Ve,Ze,We,nt,_e,Ue,tt;if(me)return me.lastIndex=Pe.lastIndex,Ve=z(he,me,Ne),Pe.lastIndex=me.lastIndex,Ve;var rt=Le.groups,et=Be&&Pe.sticky,Ke=z(oe,Pe),Ye=Pe.source,Xe=0,ot=Ne;if(et&&(Ke=xe(Ke,"y",""),ge(Ke,"g")===-1&&(Ke+="g"),ot=ke(Ne,Pe.lastIndex),Pe.lastIndex>0&&(!Pe.multiline||Pe.multiline&&ye(Ne,Pe.lastIndex-1)!==`
`)&&(Ye="(?: "+Ye+")",ot=" "+ot,Xe++),Ze=new RegExp("^(?:"+Ye+")",Ke)),Ae&&(Ze=new RegExp("^"+Ye+"$(?!\\s)",Ke)),De&&(We=Pe.lastIndex),nt=z(pe,et?Ze:Pe,ot),et?nt?(nt.input=ke(nt.input,Xe),nt[0]=ke(nt[0],Xe),nt.index=Pe.lastIndex,Pe.lastIndex+=nt[0].length):Pe.lastIndex=0:De&&nt&&(Pe.lastIndex=Pe.global?nt.index+nt[0].length:We),Ae&&nt&&nt.length>1&&z(ue,nt[0],Ze,function(){for(_e=1;_e<arguments.length-2;_e++)arguments[_e]===void 0&&(nt[_e]=void 0)}),nt&&rt)for(nt.groups=Ue=x(null),_e=0;_e<rt.length;_e++)tt=rt[_e],Ue[tt[0]]=nt[tt[1]];return nt}),je.exports=he},{"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/internal-state":173,"../internals/object-create":196,"../internals/regexp-flags":225,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/shared":237,"../internals/to-string":256}],225:[function(y,je,be){"use strict";var z=y("../internals/an-object");je.exports=function(){var E=z(this),ie="";return E.hasIndices&&(ie+="d"),E.global&&(ie+="g"),E.ignoreCase&&(ie+="i"),E.multiline&&(ie+="m"),E.dotAll&&(ie+="s"),E.unicode&&(ie+="u"),E.sticky&&(ie+="y"),ie}},{"../internals/an-object":101}],226:[function(y,je,be){var z=y("../internals/function-call"),E=y("../internals/has-own-property"),ie=y("../internals/object-is-prototype-of"),oe=y("../internals/regexp-flags"),ee=RegExp.prototype;je.exports=function(ce){var x=ce.flags;return x===void 0&&!("flags"in ee)&&!E(ce,"flags")&&ie(ee,ce)?z(oe,ce):x}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(y,je,be){var z=y("../internals/fails"),E=y("../internals/global"),ie=E.RegExp,oe=z(function(){var x=ie("a","y");return x.lastIndex=2,x.exec("abcd")!=null}),ee=oe||z(function(){return!ie("a","y").sticky}),ce=oe||z(function(){var x=ie("^r","gy");return x.lastIndex=2,x.exec("str")!=null});je.exports={BROKEN_CARET:ce,MISSED_STICKY:ee,UNSUPPORTED_Y:oe}},{"../internals/fails":150,"../internals/global":163}],228:[function(y,je,be){var z=y("../internals/fails"),E=y("../internals/global"),ie=E.RegExp;je.exports=z(function(){var oe=ie(".","s");return!(oe.dotAll&&oe.exec(`
`)&&oe.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(y,je,be){var z=y("../internals/fails"),E=y("../internals/global"),ie=E.RegExp;je.exports=z(function(){var oe=ie("(?<a>b)","g");return oe.exec("b").groups.a!=="b"||"b".replace(oe,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(y,je,be){var z=y("../internals/global"),E=z.TypeError;je.exports=function(ie){if(ie==null)throw E("Can't call method on "+ie);return ie}},{"../internals/global":163}],231:[function(y,je,be){je.exports=Object.is||function(E,ie){return E===ie?E!==0||1/E===1/ie:E!=E&&ie!=ie}},{}],232:[function(y,je,be){var z=y("../internals/global"),E=Object.defineProperty;je.exports=function(ie,oe){try{E(z,ie,{value:oe,configurable:!0,writable:!0})}catch(ee){z[ie]=oe}return oe}},{"../internals/global":163}],233:[function(y,je,be){"use strict";var z=y("../internals/get-built-in"),E=y("../internals/object-define-property"),ie=y("../internals/well-known-symbol"),oe=y("../internals/descriptors"),ee=ie("species");je.exports=function(ce){var x=z(ce),ae=E.f;oe&&x&&!x[ee]&&ae(x,ee,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(y,je,be){var z=y("../internals/object-define-property").f,E=y("../internals/has-own-property"),ie=y("../internals/well-known-symbol"),oe=ie("toStringTag");je.exports=function(ee,ce,x){ee&&!x&&(ee=ee.prototype),ee&&!E(ee,oe)&&z(ee,oe,{configurable:!0,value:ce})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(y,je,be){var z=y("../internals/shared"),E=y("../internals/uid"),ie=z("keys");je.exports=function(oe){return ie[oe]||(ie[oe]=E(oe))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/set-global"),ie="__core-js_shared__",oe=z[ie]||E(ie,{});je.exports=oe},{"../internals/global":163,"../internals/set-global":232}],237:[function(y,je,be){var z=y("../internals/is-pure"),E=y("../internals/shared-store");(je.exports=function(ie,oe){return E[ie]||(E[ie]=oe!==void 0?oe:{})})("versions",[]).push({version:"3.22.1",mode:z?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(y,je,be){var z=y("../internals/an-object"),E=y("../internals/a-constructor"),ie=y("../internals/well-known-symbol"),oe=ie("species");je.exports=function(ee,ce){var x=z(ee).constructor,ae;return x===void 0||(ae=z(x)[oe])==null?ce:E(ae)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(y,je,be){var z=y("../internals/function-uncurry-this"),E=y("../internals/to-integer-or-infinity"),ie=y("../internals/to-string"),oe=y("../internals/require-object-coercible"),ee=z("".charAt),ce=z("".charCodeAt),x=z("".slice),ae=function(re){return function(se,ue){var pe=ie(oe(se)),he=E(ue),ye=pe.length,ge,xe;return he<0||he>=ye?re?"":void 0:(ge=ce(pe,he),ge<55296||ge>56319||he+1===ye||(xe=ce(pe,he+1))<56320||xe>57343?re?ee(pe,he):ge:re?x(pe,he,he+2):(ge-55296<<10)+(xe-56320)+65536)}};je.exports={codeAt:ae(!1),charAt:ae(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(y,je,be){var z=y("../internals/function-name").PROPER,E=y("../internals/fails"),ie=y("../internals/whitespaces"),oe="\u200B\x85\u180E";je.exports=function(ee){return E(function(){return!!ie[ee]()||oe[ee]()!==oe||z&&ie[ee].name!==ee})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(y,je,be){var z=y("../internals/function-uncurry-this"),E=y("../internals/require-object-coercible"),ie=y("../internals/to-string"),oe=y("../internals/whitespaces"),ee=z("".replace),ce="["+oe+"]",x=RegExp("^"+ce+ce+"*"),ae=RegExp(ce+ce+"*$"),re=function(se){return function(ue){var pe=ie(E(ue));return se&1&&(pe=ee(pe,x,"")),se&2&&(pe=ee(pe,ae,"")),pe}};je.exports={start:re(1),end:re(2),trim:re(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(y,je,be){var z=y("../internals/function-call"),E=y("../internals/get-built-in"),ie=y("../internals/well-known-symbol"),oe=y("../internals/redefine");je.exports=function(){var ee=E("Symbol"),ce=ee&&ee.prototype,x=ce&&ce.valueOf,ae=ie("toPrimitive");ce&&!ce[ae]&&oe(ce,ae,function(re){return z(x,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/function-apply"),ie=y("../internals/function-bind-context"),oe=y("../internals/is-callable"),ee=y("../internals/has-own-property"),ce=y("../internals/fails"),x=y("../internals/html"),ae=y("../internals/array-slice"),re=y("../internals/document-create-element"),se=y("../internals/validate-arguments-length"),ue=y("../internals/engine-is-ios"),pe=y("../internals/engine-is-node"),he=z.setImmediate,ye=z.clearImmediate,ge=z.process,xe=z.Dispatch,ke=z.Function,De=z.MessageChannel,Be=z.String,Ae=0,Se={},Ee="onreadystatechange",Oe,Pe,Le,Ne;try{Oe=z.location}catch(nt){}var me=function(nt){if(ee(Se,nt)){var _e=Se[nt];delete Se[nt],_e()}},Ve=function(nt){return function(){me(nt)}},Ze=function(nt){me(nt.data)},We=function(nt){z.postMessage(Be(nt),Oe.protocol+"//"+Oe.host)};(!he||!ye)&&(he=function(_e){se(arguments.length,1);var Ue=oe(_e)?_e:ke(_e),tt=ae(arguments,1);return Se[++Ae]=function(){E(Ue,void 0,tt)},Pe(Ae),Ae},ye=function(_e){delete Se[_e]},pe?Pe=function(nt){ge.nextTick(Ve(nt))}:xe&&xe.now?Pe=function(nt){xe.now(Ve(nt))}:De&&!ue?(Le=new De,Ne=Le.port2,Le.port1.onmessage=Ze,Pe=ie(Ne.postMessage,Ne)):z.addEventListener&&oe(z.postMessage)&&!z.importScripts&&Oe&&Oe.protocol!=="file:"&&!ce(We)?(Pe=We,z.addEventListener("message",Ze,!1)):Ee in re("script")?Pe=function(nt){x.appendChild(re("script"))[Ee]=function(){x.removeChild(this),me(nt)}}:Pe=function(nt){setTimeout(Ve(nt),0)}),je.exports={set:he,clear:ye}},{"../internals/array-slice":117,"../internals/document-create-element":135,"../internals/engine-is-ios":142,"../internals/engine-is-node":143,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-bind-context":153,"../internals/global":163,"../internals/has-own-property":164,"../internals/html":167,"../internals/is-callable":176,"../internals/validate-arguments-length":266}],244:[function(y,je,be){var z=y("../internals/function-uncurry-this");je.exports=z(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(y,je,be){var z=y("../internals/to-integer-or-infinity"),E=Math.max,ie=Math.min;je.exports=function(oe,ee){var ce=z(oe);return ce<0?E(ce+ee,0):ie(ce,ee)}},{"../internals/to-integer-or-infinity":248}],246:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/to-integer-or-infinity"),ie=y("../internals/to-length"),oe=z.RangeError;je.exports=function(ee){if(ee===void 0)return 0;var ce=E(ee),x=ie(ce);if(ce!==x)throw oe("Wrong length or index");return x}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(y,je,be){var z=y("../internals/indexed-object"),E=y("../internals/require-object-coercible");je.exports=function(ie){return z(E(ie))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(y,je,be){var z=Math.ceil,E=Math.floor;je.exports=function(ie){var oe=+ie;return oe!==oe||oe===0?0:(oe>0?E:z)(oe)}},{}],249:[function(y,je,be){var z=y("../internals/to-integer-or-infinity"),E=Math.min;je.exports=function(ie){return ie>0?E(z(ie),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/require-object-coercible"),ie=z.Object;je.exports=function(oe){return ie(E(oe))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/to-positive-integer"),ie=z.RangeError;je.exports=function(oe,ee){var ce=E(oe);if(ce%ee)throw ie("Wrong offset");return ce}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/to-integer-or-infinity"),ie=z.RangeError;je.exports=function(oe){var ee=E(oe);if(ee<0)throw ie("The argument can't be less than 0");return ee}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/function-call"),ie=y("../internals/is-object"),oe=y("../internals/is-symbol"),ee=y("../internals/get-method"),ce=y("../internals/ordinary-to-primitive"),x=y("../internals/well-known-symbol"),ae=z.TypeError,re=x("toPrimitive");je.exports=function(se,ue){if(!ie(se)||oe(se))return se;var pe=ee(se,re),he;if(pe){if(ue===void 0&&(ue="default"),he=E(pe,se,ue),!ie(he)||oe(he))return he;throw ae("Can't convert object to primitive value")}return ue===void 0&&(ue="number"),ce(se,ue)}},{"../internals/function-call":155,"../internals/get-method":161,"../internals/global":163,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/ordinary-to-primitive":211,"../internals/well-known-symbol":268}],254:[function(y,je,be){var z=y("../internals/to-primitive"),E=y("../internals/is-symbol");je.exports=function(ie){var oe=z(ie,"string");return E(oe)?oe:oe+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(y,je,be){var z=y("../internals/well-known-symbol"),E=z("toStringTag"),ie={};ie[E]="z",je.exports=String(ie)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/classof"),ie=z.String;je.exports=function(oe){if(E(oe)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ie(oe)}},{"../internals/classof":124,"../internals/global":163}],257:[function(y,je,be){var z=y("../internals/global"),E=z.String;je.exports=function(ie){try{return E(ie)}catch(oe){return"Object"}}},{"../internals/global":163}],258:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/global"),ie=y("../internals/function-call"),oe=y("../internals/descriptors"),ee=y("../internals/typed-array-constructors-require-wrappers"),ce=y("../internals/array-buffer-view-core"),x=y("../internals/array-buffer"),ae=y("../internals/an-instance"),re=y("../internals/create-property-descriptor"),se=y("../internals/create-non-enumerable-property"),ue=y("../internals/is-integral-number"),pe=y("../internals/to-length"),he=y("../internals/to-index"),ye=y("../internals/to-offset"),ge=y("../internals/to-property-key"),xe=y("../internals/has-own-property"),ke=y("../internals/classof"),De=y("../internals/is-object"),Be=y("../internals/is-symbol"),Ae=y("../internals/object-create"),Se=y("../internals/object-is-prototype-of"),Ee=y("../internals/object-set-prototype-of"),Oe=y("../internals/object-get-own-property-names").f,Pe=y("../internals/typed-array-from"),Le=y("../internals/array-iteration").forEach,Ne=y("../internals/set-species"),me=y("../internals/object-define-property"),Ve=y("../internals/object-get-own-property-descriptor"),Ze=y("../internals/internal-state"),We=y("../internals/inherit-if-required"),nt=Ze.get,_e=Ze.set,Ue=me.f,tt=Ve.f,rt=Math.round,et=E.RangeError,Ke=x.ArrayBuffer,Ye=Ke.prototype,Xe=x.DataView,ot=ce.NATIVE_ARRAY_BUFFER_VIEWS,Qe=ce.TYPED_ARRAY_CONSTRUCTOR,ft=ce.TYPED_ARRAY_TAG,at=ce.TypedArray,qe=ce.TypedArrayPrototype,Fe=ce.aTypedArrayConstructor,Re=ce.isTypedArray,ne="BYTES_PER_ELEMENT",fe="Wrong length",Me=function(Ge,Je){Fe(Ge);for(var ut=0,lt=Je.length,vt=new Ge(lt);lt>ut;)vt[ut]=Je[ut++];return vt},ze=function(Ge,Je){Ue(Ge,Je,{get:function(){return nt(this)[Je]}})},we=function(Ge){var Je;return Se(Ye,Ge)||(Je=ke(Ge))=="ArrayBuffer"||Je=="SharedArrayBuffer"},ve=function(Ge,Je){return Re(Ge)&&!Be(Je)&&Je in Ge&&ue(+Je)&&Je>=0},Ie=function(Je,ut){return ut=ge(ut),ve(Je,ut)?re(2,Je[ut]):tt(Je,ut)},$e=function(Je,ut,lt){return ut=ge(ut),ve(Je,ut)&&De(lt)&&xe(lt,"value")&&!xe(lt,"get")&&!xe(lt,"set")&&!lt.configurable&&(!xe(lt,"writable")||lt.writable)&&(!xe(lt,"enumerable")||lt.enumerable)?(Je[ut]=lt.value,Je):Ue(Je,ut,lt)};oe?(ot||(Ve.f=Ie,me.f=$e,ze(qe,"buffer"),ze(qe,"byteOffset"),ze(qe,"byteLength"),ze(qe,"length")),z({target:"Object",stat:!0,forced:!ot},{getOwnPropertyDescriptor:Ie,defineProperty:$e}),je.exports=function(Ge,Je,ut){var lt=Ge.match(/\d+$/)[0]/8,vt=Ge+(ut?"Clamped":"")+"Array",ct="get"+Ge,st="set"+Ge,At=E[vt],mt=At,Dt=mt&&mt.prototype,jt={},Et=function(yt,Pt){var Kt=nt(yt);return Kt.view[ct](Pt*lt+Kt.byteOffset,!0)},kt=function(yt,Pt,Kt){var nn=nt(yt);ut&&(Kt=(Kt=rt(Kt))<0?0:Kt>255?255:Kt&255),nn.view[st](Pt*lt+nn.byteOffset,Kt,!0)},Nt=function(yt,Pt){Ue(yt,Pt,{get:function(){return Et(this,Pt)},set:function(Kt){return kt(this,Pt,Kt)},enumerable:!0})};ot?ee&&(mt=Je(function(yt,Pt,Kt,nn){return ae(yt,Dt),We(function(){return De(Pt)?we(Pt)?nn!==void 0?new At(Pt,ye(Kt,lt),nn):Kt!==void 0?new At(Pt,ye(Kt,lt)):new At(Pt):Re(Pt)?Me(mt,Pt):ie(Pe,mt,Pt):new At(he(Pt))}(),yt,mt)}),Ee&&Ee(mt,at),Le(Oe(At),function(yt){yt in mt||se(mt,yt,At[yt])}),mt.prototype=Dt):(mt=Je(function(yt,Pt,Kt,nn){ae(yt,Dt);var xt=0,Ct=0,zt,en,un;if(!De(Pt))un=he(Pt),en=un*lt,zt=new Ke(en);else if(we(Pt)){zt=Pt,Ct=ye(Kt,lt);var Cn=Pt.byteLength;if(nn===void 0){if(Cn%lt||(en=Cn-Ct,en<0))throw et(fe)}else if(en=pe(nn)*lt,en+Ct>Cn)throw et(fe);un=en/lt}else return Re(Pt)?Me(mt,Pt):ie(Pe,mt,Pt);for(_e(yt,{buffer:zt,byteOffset:Ct,byteLength:en,length:un,view:new Xe(zt)});xt<un;)Nt(yt,xt++)}),Ee&&Ee(mt,at),Dt=mt.prototype=Ae(qe)),Dt.constructor!==mt&&se(Dt,"constructor",mt),se(Dt,Qe,mt),ft&&se(Dt,ft,vt),jt[vt]=mt,z({global:!0,forced:mt!=At,sham:!ot},jt),ne in mt||se(mt,ne,lt),ne in Dt||se(Dt,ne,lt),Ne(vt)}):je.exports=function(){}},{"../internals/an-instance":100,"../internals/array-buffer":104,"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-integral-number":179,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/object-create":196,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/set-species":233,"../internals/to-index":246,"../internals/to-length":249,"../internals/to-offset":251,"../internals/to-property-key":254,"../internals/typed-array-constructors-require-wrappers":259,"../internals/typed-array-from":261}],259:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/fails"),ie=y("../internals/check-correctness-of-iteration"),oe=y("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,ee=z.ArrayBuffer,ce=z.Int8Array;je.exports=!oe||!E(function(){ce(1)})||!E(function(){new ce(-1)})||!ie(function(x){new ce,new ce(null),new ce(1.5),new ce(x)},!0)||E(function(){return new ce(new ee(2),1,void 0).length!==1})},{"../internals/array-buffer-view-core":103,"../internals/check-correctness-of-iteration":122,"../internals/fails":150,"../internals/global":163}],260:[function(y,je,be){var z=y("../internals/array-from-constructor-and-list"),E=y("../internals/typed-array-species-constructor");je.exports=function(ie,oe){return z(E(ie),oe)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(y,je,be){var z=y("../internals/function-bind-context"),E=y("../internals/function-call"),ie=y("../internals/a-constructor"),oe=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),ce=y("../internals/get-iterator"),x=y("../internals/get-iterator-method"),ae=y("../internals/is-array-iterator-method"),re=y("../internals/array-buffer-view-core").aTypedArrayConstructor;je.exports=function(ue){var pe=ie(this),he=oe(ue),ye=arguments.length,ge=ye>1?arguments[1]:void 0,xe=ge!==void 0,ke=x(he),De,Be,Ae,Se,Ee,Oe;if(ke&&!ae(ke))for(Ee=ce(he,ke),Oe=Ee.next,he=[];!(Se=E(Oe,Ee)).done;)he.push(Se.value);for(xe&&ye>2&&(ge=z(ge,arguments[2])),Be=ee(he),Ae=new(re(pe))(Be),De=0;Be>De;De++)Ae[De]=xe?ge(he[De],De):he[De];return Ae}},{"../internals/a-constructor":96,"../internals/array-buffer-view-core":103,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/is-array-iterator-method":174,"../internals/length-of-array-like":188,"../internals/to-object":250}],262:[function(y,je,be){var z=y("../internals/array-buffer-view-core"),E=y("../internals/species-constructor"),ie=z.TYPED_ARRAY_CONSTRUCTOR,oe=z.aTypedArrayConstructor;je.exports=function(ee){return oe(E(ee,ee[ie]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(y,je,be){var z=y("../internals/function-uncurry-this"),E=0,ie=Math.random(),oe=z(1 .toString);je.exports=function(ee){return"Symbol("+(ee===void 0?"":ee)+")_"+oe(++E+ie,36)}},{"../internals/function-uncurry-this":157}],264:[function(y,je,be){var z=y("../internals/native-symbol");je.exports=z&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(y,je,be){var z=y("../internals/descriptors"),E=y("../internals/fails");je.exports=z&&E(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(y,je,be){var z=y("../internals/global"),E=z.TypeError;je.exports=function(ie,oe){if(ie<oe)throw E("Not enough arguments");return ie}},{"../internals/global":163}],267:[function(y,je,be){var z=y("../internals/well-known-symbol");be.f=z},{"../internals/well-known-symbol":268}],268:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/shared"),ie=y("../internals/has-own-property"),oe=y("../internals/uid"),ee=y("../internals/native-symbol"),ce=y("../internals/use-symbol-as-uid"),x=E("wks"),ae=z.Symbol,re=ae&&ae.for,se=ce?ae:ae&&ae.withoutSetter||oe;je.exports=function(ue){if(!ie(x,ue)||!(ee||typeof x[ue]=="string")){var pe="Symbol."+ue;ee&&ie(ae,ue)?x[ue]=ae[ue]:ce&&re?x[ue]=re(pe):x[ue]=se(pe)}return x[ue]}},{"../internals/global":163,"../internals/has-own-property":164,"../internals/native-symbol":191,"../internals/shared":237,"../internals/uid":263,"../internals/use-symbol-as-uid":264}],269:[function(y,je,be){je.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},{}],270:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/global"),ie=y("../internals/array-buffer"),oe=y("../internals/set-species"),ee="ArrayBuffer",ce=ie[ee],x=E[ee];z({global:!0,forced:x!==ce},{ArrayBuffer:ce}),oe(ee)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/function-uncurry-this"),ie=y("../internals/fails"),oe=y("../internals/array-buffer"),ee=y("../internals/an-object"),ce=y("../internals/to-absolute-index"),x=y("../internals/to-length"),ae=y("../internals/species-constructor"),re=oe.ArrayBuffer,se=oe.DataView,ue=se.prototype,pe=E(re.prototype.slice),he=E(ue.getUint8),ye=E(ue.setUint8),ge=ie(function(){return!new re(2).slice(1,void 0).byteLength});z({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ge},{slice:function(ke,De){if(pe&&De===void 0)return pe(ee(this),ke);for(var Be=ee(this).byteLength,Ae=ce(ke,Be),Se=ce(De===void 0?Be:De,Be),Ee=new(ae(this,re))(x(Se-Ae)),Oe=new se(this),Pe=new se(Ee),Le=0;Ae<Se;)ye(Pe,Le++,he(Oe,Ae++));return Ee}})},{"../internals/an-object":101,"../internals/array-buffer":104,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/species-constructor":238,"../internals/to-absolute-index":245,"../internals/to-length":249}],272:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/global"),ie=y("../internals/fails"),oe=y("../internals/is-array"),ee=y("../internals/is-object"),ce=y("../internals/to-object"),x=y("../internals/length-of-array-like"),ae=y("../internals/create-property"),re=y("../internals/array-species-create"),se=y("../internals/array-method-has-species-support"),ue=y("../internals/well-known-symbol"),pe=y("../internals/engine-v8-version"),he=ue("isConcatSpreadable"),ye=9007199254740991,ge="Maximum allowed index exceeded",xe=E.TypeError,ke=pe>=51||!ie(function(){var Se=[];return Se[he]=!1,Se.concat()[0]!==Se}),De=se("concat"),Be=function(Se){if(!ee(Se))return!1;var Ee=Se[he];return Ee!==void 0?!!Ee:oe(Se)},Ae=!ke||!De;z({target:"Array",proto:!0,forced:Ae},{concat:function(Ee){var Oe=ce(this),Pe=re(Oe,0),Le=0,Ne,me,Ve,Ze,We;for(Ne=-1,Ve=arguments.length;Ne<Ve;Ne++)if(We=Ne===-1?Oe:arguments[Ne],Be(We)){if(Ze=x(We),Le+Ze>ye)throw xe(ge);for(me=0;me<Ze;me++,Le++)me in We&&ae(Pe,Le,We[me])}else{if(Le>=ye)throw xe(ge);ae(Pe,Le++,We)}return Pe.length=Le,Pe}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(y,je,be){var z=y("../internals/export"),E=y("../internals/array-fill"),ie=y("../internals/add-to-unscopables");z({target:"Array",proto:!0},{fill:E}),ie("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/array-iteration").filter,ie=y("../internals/array-method-has-species-support"),oe=ie("filter");z({target:"Array",proto:!0,forced:!oe},{filter:function(ce){return E(this,ce,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/array-iteration").find,ie=y("../internals/add-to-unscopables"),oe="find",ee=!0;oe in[]&&Array(1)[oe](function(){ee=!1}),z({target:"Array",proto:!0,forced:ee},{find:function(x){return E(this,x,arguments.length>1?arguments[1]:void 0)}}),ie(oe)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(y,je,be){var z=y("../internals/export"),E=y("../internals/array-from"),ie=y("../internals/check-correctness-of-iteration"),oe=!ie(function(ee){Array.from(ee)});z({target:"Array",stat:!0,forced:oe},{from:E})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/array-includes").includes,ie=y("../internals/add-to-unscopables");z({target:"Array",proto:!0},{includes:function(ee){return E(this,ee,arguments.length>1?arguments[1]:void 0)}}),ie("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(y,je,be){"use strict";var z=y("../internals/to-indexed-object"),E=y("../internals/add-to-unscopables"),ie=y("../internals/iterators"),oe=y("../internals/internal-state"),ee=y("../internals/object-define-property").f,ce=y("../internals/define-iterator"),x=y("../internals/is-pure"),ae=y("../internals/descriptors"),re="Array Iterator",se=oe.set,ue=oe.getterFor(re);je.exports=ce(Array,"Array",function(he,ye){se(this,{type:re,target:z(he),index:0,kind:ye})},function(){var he=ue(this),ye=he.target,ge=he.kind,xe=he.index++;return!ye||xe>=ye.length?(he.target=void 0,{value:void 0,done:!0}):ge=="keys"?{value:xe,done:!1}:ge=="values"?{value:ye[xe],done:!1}:{value:[xe,ye[xe]],done:!1}},"values");var pe=ie.Arguments=ie.Array;if(E("keys"),E("values"),E("entries"),!x&&ae&&pe.name!=="values")try{ee(pe,"name",{value:"values"})}catch(he){}},{"../internals/add-to-unscopables":98,"../internals/define-iterator":132,"../internals/descriptors":134,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/iterators":187,"../internals/object-define-property":198,"../internals/to-indexed-object":247}],279:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/function-uncurry-this"),ie=y("../internals/indexed-object"),oe=y("../internals/to-indexed-object"),ee=y("../internals/array-method-is-strict"),ce=E([].join),x=ie!=Object,ae=ee("join",",");z({target:"Array",proto:!0,forced:x||!ae},{join:function(se){return ce(oe(this),se===void 0?",":se)}})},{"../internals/array-method-is-strict":114,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/to-indexed-object":247}],280:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/array-iteration").map,ie=y("../internals/array-method-has-species-support"),oe=ie("map");z({target:"Array",proto:!0,forced:!oe},{map:function(ce){return E(this,ce,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/global"),ie=y("../internals/is-array"),oe=y("../internals/is-constructor"),ee=y("../internals/is-object"),ce=y("../internals/to-absolute-index"),x=y("../internals/length-of-array-like"),ae=y("../internals/to-indexed-object"),re=y("../internals/create-property"),se=y("../internals/well-known-symbol"),ue=y("../internals/array-method-has-species-support"),pe=y("../internals/array-slice"),he=ue("slice"),ye=se("species"),ge=E.Array,xe=Math.max;z({target:"Array",proto:!0,forced:!he},{slice:function(De,Be){var Ae=ae(this),Se=x(Ae),Ee=ce(De,Se),Oe=ce(Be===void 0?Se:Be,Se),Pe,Le,Ne;if(ie(Ae)&&(Pe=Ae.constructor,oe(Pe)&&(Pe===ge||ie(Pe.prototype))?Pe=void 0:ee(Pe)&&(Pe=Pe[ye],Pe===null&&(Pe=void 0)),Pe===ge||Pe===void 0))return pe(Ae,Ee,Oe);for(Le=new(Pe===void 0?ge:Pe)(xe(Oe-Ee,0)),Ne=0;Ee<Oe;Ee++,Ne++)Ee in Ae&&re(Le,Ne,Ae[Ee]);return Le.length=Ne,Le}})},{"../internals/array-method-has-species-support":113,"../internals/array-slice":117,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247,"../internals/well-known-symbol":268}],282:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/function-uncurry-this"),ie=y("../internals/a-callable"),oe=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),ce=y("../internals/to-string"),x=y("../internals/fails"),ae=y("../internals/array-sort"),re=y("../internals/array-method-is-strict"),se=y("../internals/engine-ff-version"),ue=y("../internals/engine-is-ie-or-edge"),pe=y("../internals/engine-v8-version"),he=y("../internals/engine-webkit-version"),ye=[],ge=E(ye.sort),xe=E(ye.push),ke=x(function(){ye.sort(void 0)}),De=x(function(){ye.sort(null)}),Be=re("sort"),Ae=!x(function(){if(pe)return pe<70;if(!(se&&se>3)){if(ue)return!0;if(he)return he<603;var Oe="",Pe,Le,Ne,me;for(Pe=65;Pe<76;Pe++){switch(Le=String.fromCharCode(Pe),Pe){case 66:case 69:case 70:case 72:Ne=3;break;case 68:case 71:Ne=4;break;default:Ne=2}for(me=0;me<47;me++)ye.push({k:Le+me,v:Ne})}for(ye.sort(function(Ve,Ze){return Ze.v-Ve.v}),me=0;me<ye.length;me++)Le=ye[me].k.charAt(0),Oe.charAt(Oe.length-1)!==Le&&(Oe+=Le);return Oe!=="DGBEFHACIJK"}}),Se=ke||!De||!Be||!Ae,Ee=function(Oe){return function(Pe,Le){return Le===void 0?-1:Pe===void 0?1:Oe!==void 0?+Oe(Pe,Le)||0:ce(Pe)>ce(Le)?1:-1}};z({target:"Array",proto:!0,forced:Se},{sort:function(Pe){Pe!==void 0&&ie(Pe);var Le=oe(this);if(Ae)return Pe===void 0?ge(Le):ge(Le,Pe);var Ne=[],me=ee(Le),Ve,Ze;for(Ze=0;Ze<me;Ze++)Ze in Le&&xe(Ne,Le[Ze]);for(ae(Ne,Ee(Pe)),Ve=Ne.length,Ze=0;Ze<Ve;)Le[Ze]=Ne[Ze++];for(;Ze<me;)delete Le[Ze++];return Le}})},{"../internals/a-callable":95,"../internals/array-method-is-strict":114,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-string":256}],283:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/global"),ie=y("../internals/to-absolute-index"),oe=y("../internals/to-integer-or-infinity"),ee=y("../internals/length-of-array-like"),ce=y("../internals/to-object"),x=y("../internals/array-species-create"),ae=y("../internals/create-property"),re=y("../internals/array-method-has-species-support"),se=re("splice"),ue=E.TypeError,pe=Math.max,he=Math.min,ye=9007199254740991,ge="Maximum allowed length exceeded";z({target:"Array",proto:!0,forced:!se},{splice:function(ke,De){var Be=ce(this),Ae=ee(Be),Se=ie(ke,Ae),Ee=arguments.length,Oe,Pe,Le,Ne,me,Ve;if(Ee===0?Oe=Pe=0:Ee===1?(Oe=0,Pe=Ae-Se):(Oe=Ee-2,Pe=he(pe(oe(De),0),Ae-Se)),Ae+Oe-Pe>ye)throw ue(ge);for(Le=x(Be,Pe),Ne=0;Ne<Pe;Ne++)me=Se+Ne,me in Be&&ae(Le,Ne,Be[me]);if(Le.length=Pe,Oe<Pe){for(Ne=Se;Ne<Ae-Pe;Ne++)me=Ne+Pe,Ve=Ne+Oe,me in Be?Be[Ve]=Be[me]:delete Be[Ve];for(Ne=Ae;Ne>Ae-Pe+Oe;Ne--)delete Be[Ne-1]}else if(Oe>Pe)for(Ne=Ae-Pe;Ne>Se;Ne--)me=Ne+Pe-1,Ve=Ne+Oe-1,me in Be?Be[Ve]=Be[me]:delete Be[Ve];for(Ne=0;Ne<Oe;Ne++)Be[Ne+Se]=arguments[Ne+2];return Be.length=Ae-Pe+Oe,Le}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-integer-or-infinity":248,"../internals/to-object":250}],284:[function(y,je,be){var z=y("../internals/descriptors"),E=y("../internals/function-name").EXISTS,ie=y("../internals/function-uncurry-this"),oe=y("../internals/object-define-property").f,ee=Function.prototype,ce=ie(ee.toString),x=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ae=ie(x.exec),re="name";z&&!E&&oe(ee,re,{configurable:!0,get:function(){try{return ae(x,ce(this))[1]}catch(se){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(y,je,be){var z=y("../internals/export"),E=y("../internals/get-built-in"),ie=y("../internals/function-apply"),oe=y("../internals/function-call"),ee=y("../internals/function-uncurry-this"),ce=y("../internals/fails"),x=y("../internals/is-array"),ae=y("../internals/is-callable"),re=y("../internals/is-object"),se=y("../internals/is-symbol"),ue=y("../internals/array-slice"),pe=y("../internals/native-symbol"),he=E("JSON","stringify"),ye=ee(/./.exec),ge=ee("".charAt),xe=ee("".charCodeAt),ke=ee("".replace),De=ee(1 .toString),Be=/[\uD800-\uDFFF]/g,Ae=/^[\uD800-\uDBFF]$/,Se=/^[\uDC00-\uDFFF]$/,Ee=!pe||ce(function(){var Ne=E("Symbol")();return he([Ne])!="[null]"||he({a:Ne})!="{}"||he(Object(Ne))!="{}"}),Oe=ce(function(){return he("\uDF06\uD834")!=='"\\udf06\\ud834"'||he("\uDEAD")!=='"\\udead"'}),Pe=function(Ne,me){var Ve=ue(arguments),Ze=me;if(!(!re(me)&&Ne===void 0||se(Ne)))return x(me)||(me=function(We,nt){if(ae(Ze)&&(nt=oe(Ze,this,We,nt)),!se(nt))return nt}),Ve[1]=me,ie(he,null,Ve)},Le=function(Ne,me,Ve){var Ze=ge(Ve,me-1),We=ge(Ve,me+1);return ye(Ae,Ne)&&!ye(Se,We)||ye(Se,Ne)&&!ye(Ae,Ze)?"\\u"+De(xe(Ne,0),16):Ne};he&&z({target:"JSON",stat:!0,forced:Ee||Oe},{stringify:function(me,Ve,Ze){var We=ue(arguments),nt=ie(Ee?Pe:he,null,We);return Oe&&typeof nt=="string"?ke(nt,Be,Le):nt}})},{"../internals/array-slice":117,"../internals/export":149,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/is-array":175,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/native-symbol":191}],286:[function(y,je,be){"use strict";var z=y("../internals/descriptors"),E=y("../internals/global"),ie=y("../internals/function-uncurry-this"),oe=y("../internals/is-forced"),ee=y("../internals/redefine"),ce=y("../internals/has-own-property"),x=y("../internals/inherit-if-required"),ae=y("../internals/object-is-prototype-of"),re=y("../internals/is-symbol"),se=y("../internals/to-primitive"),ue=y("../internals/fails"),pe=y("../internals/object-get-own-property-names").f,he=y("../internals/object-get-own-property-descriptor").f,ye=y("../internals/object-define-property").f,ge=y("../internals/this-number-value"),xe=y("../internals/string-trim").trim,ke="Number",De=E[ke],Be=De.prototype,Ae=E.TypeError,Se=ie("".slice),Ee=ie("".charCodeAt),Oe=function(Ze){var We=se(Ze,"number");return typeof We=="bigint"?We:Pe(We)},Pe=function(Ze){var We=se(Ze,"number"),nt,_e,Ue,tt,rt,et,Ke,Ye;if(re(We))throw Ae("Cannot convert a Symbol value to a number");if(typeof We=="string"&&We.length>2){if(We=xe(We),nt=Ee(We,0),nt===43||nt===45){if(_e=Ee(We,2),_e===88||_e===120)return NaN}else if(nt===48){switch(Ee(We,1)){case 66:case 98:Ue=2,tt=49;break;case 79:case 111:Ue=8,tt=55;break;default:return+We}for(rt=Se(We,2),et=rt.length,Ke=0;Ke<et;Ke++)if(Ye=Ee(rt,Ke),Ye<48||Ye>tt)return NaN;return parseInt(rt,Ue)}}return+We};if(oe(ke,!De(" 0o1")||!De("0b1")||De("+0x1"))){for(var Le=function(We){var nt=arguments.length<1?0:De(Oe(We)),_e=this;return ae(Be,_e)&&ue(function(){ge(_e)})?x(Object(nt),_e,Le):nt},Ne=z?pe(De):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),me=0,Ve;Ne.length>me;me++)ce(De,Ve=Ne[me])&&!ce(Le,Ve)&&ye(Le,Ve,he(De,Ve));Le.prototype=Be,Be.constructor=Le,ee(E,ke,Le)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(y,je,be){var z=y("../internals/export"),E=y("../internals/object-assign");z({target:"Object",stat:!0,forced:Object.assign!==E},{assign:E})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(y,je,be){var z=y("../internals/export"),E=y("../internals/object-to-array").entries;z({target:"Object",stat:!0},{entries:function(oe){return E(oe)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(y,je,be){var z=y("../internals/export"),E=y("../internals/native-symbol"),ie=y("../internals/fails"),oe=y("../internals/object-get-own-property-symbols"),ee=y("../internals/to-object"),ce=!E||ie(function(){oe.f(1)});z({target:"Object",stat:!0,forced:ce},{getOwnPropertySymbols:function(ae){var re=oe.f;return re?re(ee(ae)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(y,je,be){var z=y("../internals/export"),E=y("../internals/to-object"),ie=y("../internals/object-keys"),oe=y("../internals/fails"),ee=oe(function(){ie(1)});z({target:"Object",stat:!0,forced:ee},{keys:function(x){return ie(E(x))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(y,je,be){var z=y("../internals/to-string-tag-support"),E=y("../internals/redefine"),ie=y("../internals/object-to-string");z||E(Object.prototype,"toString",ie,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/function-call"),ie=y("../internals/a-callable"),oe=y("../internals/new-promise-capability"),ee=y("../internals/perform"),ce=y("../internals/iterate"),x=y("../internals/promise-statics-incorrect-iteration");z({target:"Promise",stat:!0,forced:x},{all:function(re){var se=this,ue=oe.f(se),pe=ue.resolve,he=ue.reject,ye=ee(function(){var ge=ie(se.resolve),xe=[],ke=0,De=1;ce(re,function(Be){var Ae=ke++,Se=!1;De++,E(ge,se,Be).then(function(Ee){Se||(Se=!0,xe[Ae]=Ee,--De||pe(xe))},he)}),--De||pe(xe)});return ye.error&&he(ye.value),ue.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/is-pure"),ie=y("../internals/promise-constructor-detection").CONSTRUCTOR,oe=y("../internals/promise-native-constructor"),ee=y("../internals/get-built-in"),ce=y("../internals/is-callable"),x=y("../internals/redefine"),ae=oe&&oe.prototype;if(z({target:"Promise",proto:!0,forced:ie,real:!0},{catch:function(se){return this.then(void 0,se)}}),!E&&ce(oe)){var re=ee("Promise").prototype.catch;ae.catch!==re&&x(ae,"catch",re,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/is-pure"),ie=y("../internals/engine-is-node"),oe=y("../internals/global"),ee=y("../internals/function-call"),ce=y("../internals/redefine"),x=y("../internals/redefine-all"),ae=y("../internals/object-set-prototype-of"),re=y("../internals/set-to-string-tag"),se=y("../internals/set-species"),ue=y("../internals/a-callable"),pe=y("../internals/is-callable"),he=y("../internals/is-object"),ye=y("../internals/an-instance"),ge=y("../internals/species-constructor"),xe=y("../internals/task").set,ke=y("../internals/microtask"),De=y("../internals/host-report-errors"),Be=y("../internals/perform"),Ae=y("../internals/queue"),Se=y("../internals/internal-state"),Ee=y("../internals/promise-native-constructor"),Oe=y("../internals/promise-constructor-detection"),Pe=y("../internals/new-promise-capability"),Le="Promise",Ne=Oe.CONSTRUCTOR,me=Oe.REJECTION_EVENT,Ve=Oe.SUBCLASSING,Ze=Se.getterFor(Le),We=Se.set,nt=Ee&&Ee.prototype,_e=Ee,Ue=nt,tt=oe.TypeError,rt=oe.document,et=oe.process,Ke=Pe.f,Ye=Ke,Xe=!!(rt&&rt.createEvent&&oe.dispatchEvent),ot="unhandledrejection",Qe="rejectionhandled",ft=0,at=1,qe=2,Fe=1,Re=2,ne,fe,Me,ze,we=function(st){var At;return he(st)&&pe(At=st.then)?At:!1},ve=function(st,At){var mt=At.value,Dt=At.state==at,jt=Dt?st.ok:st.fail,Et=st.resolve,kt=st.reject,Nt=st.domain,yt,Pt,Kt;try{jt?(Dt||(At.rejection===Re&&ut(At),At.rejection=Fe),jt===!0?yt=mt:(Nt&&Nt.enter(),yt=jt(mt),Nt&&(Nt.exit(),Kt=!0)),yt===st.promise?kt(tt("Promise-chain cycle")):(Pt=we(yt))?ee(Pt,yt,Et,kt):Et(yt)):kt(mt)}catch(nn){Nt&&!Kt&&Nt.exit(),kt(nn)}},Ie=function(st,At){st.notified||(st.notified=!0,ke(function(){for(var mt=st.reactions,Dt;Dt=mt.get();)ve(Dt,st);st.notified=!1,At&&!st.rejection&&Ge(st)}))},$e=function(st,At,mt){var Dt,jt;Xe?(Dt=rt.createEvent("Event"),Dt.promise=At,Dt.reason=mt,Dt.initEvent(st,!1,!0),oe.dispatchEvent(Dt)):Dt={promise:At,reason:mt},!me&&(jt=oe["on"+st])?jt(Dt):st===ot&&De("Unhandled promise rejection",mt)},Ge=function(st){ee(xe,oe,function(){var At=st.facade,mt=st.value,Dt=Je(st),jt;if(Dt&&(jt=Be(function(){ie?et.emit("unhandledRejection",mt,At):$e(ot,At,mt)}),st.rejection=ie||Je(st)?Re:Fe,jt.error))throw jt.value})},Je=function(st){return st.rejection!==Fe&&!st.parent},ut=function(st){ee(xe,oe,function(){var At=st.facade;ie?et.emit("rejectionHandled",At):$e(Qe,At,st.value)})},lt=function(st,At,mt){return function(Dt){st(At,Dt,mt)}},vt=function(st,At,mt){st.done||(st.done=!0,mt&&(st=mt),st.value=At,st.state=qe,Ie(st,!0))},ct=function(st,At,mt){if(!st.done){st.done=!0,mt&&(st=mt);try{if(st.facade===At)throw tt("Promise can't be resolved itself");var Dt=we(At);Dt?ke(function(){var jt={done:!1};try{ee(Dt,At,lt(ct,jt,st),lt(vt,jt,st))}catch(Et){vt(jt,Et,st)}}):(st.value=At,st.state=at,Ie(st,!1))}catch(jt){vt({done:!1},jt,st)}}};if(Ne&&(_e=function(At){ye(this,Ue),ue(At),ee(ne,this);var mt=Ze(this);try{At(lt(ct,mt),lt(vt,mt))}catch(Dt){vt(mt,Dt)}},Ue=_e.prototype,ne=function(At){We(this,{type:Le,done:!1,notified:!1,parent:!1,reactions:new Ae,rejection:!1,state:ft,value:void 0})},ne.prototype=x(Ue,{then:function(At,mt){var Dt=Ze(this),jt=Ke(ge(this,_e));return Dt.parent=!0,jt.ok=pe(At)?At:!0,jt.fail=pe(mt)&&mt,jt.domain=ie?et.domain:void 0,Dt.state==ft?Dt.reactions.add(jt):ke(function(){ve(jt,Dt)}),jt.promise}}),fe=function(){var st=new ne,At=Ze(st);this.promise=st,this.resolve=lt(ct,At),this.reject=lt(vt,At)},Pe.f=Ke=function(st){return st===_e||st===Me?new fe(st):Ye(st)},!E&&pe(Ee)&&nt!==Object.prototype)){ze=nt.then,Ve||ce(nt,"then",function(At,mt){var Dt=this;return new _e(function(jt,Et){ee(ze,Dt,jt,Et)}).then(At,mt)},{unsafe:!0});try{delete nt.constructor}catch(st){}ae&&ae(nt,Ue)}z({global:!0,wrap:!0,forced:Ne},{Promise:_e}),re(_e,Le,!1,!0),se(Le)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(y,je,be){y("../modules/es.promise.constructor"),y("../modules/es.promise.all"),y("../modules/es.promise.catch"),y("../modules/es.promise.race"),y("../modules/es.promise.reject"),y("../modules/es.promise.resolve")},{"../modules/es.promise.all":292,"../modules/es.promise.catch":293,"../modules/es.promise.constructor":294,"../modules/es.promise.race":296,"../modules/es.promise.reject":297,"../modules/es.promise.resolve":298}],296:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/function-call"),ie=y("../internals/a-callable"),oe=y("../internals/new-promise-capability"),ee=y("../internals/perform"),ce=y("../internals/iterate"),x=y("../internals/promise-statics-incorrect-iteration");z({target:"Promise",stat:!0,forced:x},{race:function(re){var se=this,ue=oe.f(se),pe=ue.reject,he=ee(function(){var ye=ie(se.resolve);ce(re,function(ge){E(ye,se,ge).then(ue.resolve,pe)})});return he.error&&pe(he.value),ue.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],297:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/function-call"),ie=y("../internals/new-promise-capability"),oe=y("../internals/promise-constructor-detection").CONSTRUCTOR;z({target:"Promise",stat:!0,forced:oe},{reject:function(ce){var x=ie.f(this);return E(x.reject,void 0,ce),x.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/get-built-in"),ie=y("../internals/is-pure"),oe=y("../internals/promise-native-constructor"),ee=y("../internals/promise-constructor-detection").CONSTRUCTOR,ce=y("../internals/promise-resolve"),x=E("Promise"),ae=ie&&!ee;z({target:"Promise",stat:!0,forced:ie||ee},{resolve:function(se){return ce(ae&&this===x?oe:this,se)}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/promise-resolve":217}],299:[function(y,je,be){var z=y("../internals/descriptors"),E=y("../internals/global"),ie=y("../internals/function-uncurry-this"),oe=y("../internals/is-forced"),ee=y("../internals/inherit-if-required"),ce=y("../internals/create-non-enumerable-property"),x=y("../internals/object-get-own-property-names").f,ae=y("../internals/object-is-prototype-of"),re=y("../internals/is-regexp"),se=y("../internals/to-string"),ue=y("../internals/regexp-get-flags"),pe=y("../internals/regexp-sticky-helpers"),he=y("../internals/proxy-accessor"),ye=y("../internals/redefine"),ge=y("../internals/fails"),xe=y("../internals/has-own-property"),ke=y("../internals/internal-state").enforce,De=y("../internals/set-species"),Be=y("../internals/well-known-symbol"),Ae=y("../internals/regexp-unsupported-dot-all"),Se=y("../internals/regexp-unsupported-ncg"),Ee=Be("match"),Oe=E.RegExp,Pe=Oe.prototype,Le=E.SyntaxError,Ne=ie(Pe.exec),me=ie("".charAt),Ve=ie("".replace),Ze=ie("".indexOf),We=ie("".slice),nt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,_e=/a/g,Ue=/a/g,tt=new Oe(_e)!==_e,rt=pe.MISSED_STICKY,et=pe.UNSUPPORTED_Y,Ke=z&&(!tt||rt||Ae||Se||ge(function(){return Ue[Ee]=!1,Oe(_e)!=_e||Oe(Ue)==Ue||Oe(_e,"i")!="/a/i"})),Ye=function(at){for(var qe=at.length,Fe=0,Re="",ne=!1,fe;Fe<=qe;Fe++){if(fe=me(at,Fe),fe==="\\"){Re+=fe+me(at,++Fe);continue}!ne&&fe==="."?Re+="[\\s\\S]":(fe==="["?ne=!0:fe==="]"&&(ne=!1),Re+=fe)}return Re},Xe=function(at){for(var qe=at.length,Fe=0,Re="",ne=[],fe={},Me=!1,ze=!1,we=0,ve="",Ie;Fe<=qe;Fe++){if(Ie=me(at,Fe),Ie==="\\")Ie=Ie+me(at,++Fe);else if(Ie==="]")Me=!1;else if(!Me)switch(!0){case Ie==="[":Me=!0;break;case Ie==="(":Ne(nt,We(at,Fe+1))&&(Fe+=2,ze=!0),Re+=Ie,we++;continue;case(Ie===">"&&ze):if(ve===""||xe(fe,ve))throw new Le("Invalid capture group name");fe[ve]=!0,ne[ne.length]=[ve,we],ze=!1,ve="";continue}ze?ve+=Ie:Re+=Ie}return[Re,ne]};if(oe("RegExp",Ke)){for(var ot=function(qe,Fe){var Re=ae(Pe,this),ne=re(qe),fe=Fe===void 0,Me=[],ze=qe,we,ve,Ie,$e,Ge,Je;if(!Re&&ne&&fe&&qe.constructor===ot)return qe;if((ne||ae(Pe,qe))&&(qe=qe.source,fe&&(Fe=ue(ze))),qe=qe===void 0?"":se(qe),Fe=Fe===void 0?"":se(Fe),ze=qe,Ae&&"dotAll"in _e&&(ve=!!Fe&&Ze(Fe,"s")>-1,ve&&(Fe=Ve(Fe,/s/g,""))),we=Fe,rt&&"sticky"in _e&&(Ie=!!Fe&&Ze(Fe,"y")>-1,Ie&&et&&(Fe=Ve(Fe,/y/g,""))),Se&&($e=Xe(qe),qe=$e[0],Me=$e[1]),Ge=ee(Oe(qe,Fe),Re?this:Pe,ot),(ve||Ie||Me.length)&&(Je=ke(Ge),ve&&(Je.dotAll=!0,Je.raw=ot(Ye(qe),we)),Ie&&(Je.sticky=!0),Me.length&&(Je.groups=Me)),qe!==ze)try{ce(Ge,"source",ze===""?"(?:)":ze)}catch(ut){}return Ge},Qe=x(Oe),ft=0;Qe.length>ft;)he(ot,Oe,Qe[ft++]);Pe.constructor=ot,ot.prototype=Pe,ye(E,"RegExp",ot)}De("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/regexp-exec");z({target:"RegExp",proto:!0,forced:/./.exec!==E},{exec:E})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(y,je,be){"use strict";var z=y("../internals/function-name").PROPER,E=y("../internals/redefine"),ie=y("../internals/an-object"),oe=y("../internals/to-string"),ee=y("../internals/fails"),ce=y("../internals/regexp-get-flags"),x="toString",ae=RegExp.prototype,re=ae[x],se=ee(function(){return re.call({source:"a",flags:"b"})!="/a/b"}),ue=z&&re.name!=x;(se||ue)&&E(RegExp.prototype,x,function(){var he=ie(this),ye=oe(he.source),ge=oe(ce(he));return"/"+ye+"/"+ge},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/function-uncurry-this"),ie=y("../internals/not-a-regexp"),oe=y("../internals/require-object-coercible"),ee=y("../internals/to-string"),ce=y("../internals/correct-is-regexp-logic"),x=E("".indexOf);z({target:"String",proto:!0,forced:!ce("includes")},{includes:function(re){return!!~x(ee(oe(this)),ee(ie(re)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(y,je,be){"use strict";var z=y("../internals/string-multibyte").charAt,E=y("../internals/to-string"),ie=y("../internals/internal-state"),oe=y("../internals/define-iterator"),ee="String Iterator",ce=ie.set,x=ie.getterFor(ee);oe(String,"String",function(ae){ce(this,{type:ee,string:E(ae),index:0})},function(){var re=x(this),se=re.string,ue=re.index,pe;return ue>=se.length?{value:void 0,done:!0}:(pe=z(se,ue),re.index+=pe.length,{value:pe,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(y,je,be){"use strict";var z=y("../internals/function-call"),E=y("../internals/fix-regexp-well-known-symbol-logic"),ie=y("../internals/an-object"),oe=y("../internals/to-length"),ee=y("../internals/to-string"),ce=y("../internals/require-object-coercible"),x=y("../internals/get-method"),ae=y("../internals/advance-string-index"),re=y("../internals/regexp-exec-abstract");E("match",function(se,ue,pe){return[function(ye){var ge=ce(this),xe=ye==null?void 0:x(ye,se);return xe?z(xe,ye,ge):new RegExp(ye)[se](ee(ge))},function(he){var ye=ie(this),ge=ee(he),xe=pe(ue,ye,ge);if(xe.done)return xe.value;if(!ye.global)return re(ye,ge);var ke=ye.unicode;ye.lastIndex=0;for(var De=[],Be=0,Ae;(Ae=re(ye,ge))!==null;){var Se=ee(Ae[0]);De[Be]=Se,Se===""&&(ye.lastIndex=ae(ge,oe(ye.lastIndex),ke)),Be++}return Be===0?null:De}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(y,je,be){"use strict";var z=y("../internals/function-apply"),E=y("../internals/function-call"),ie=y("../internals/function-uncurry-this"),oe=y("../internals/fix-regexp-well-known-symbol-logic"),ee=y("../internals/fails"),ce=y("../internals/an-object"),x=y("../internals/is-callable"),ae=y("../internals/to-integer-or-infinity"),re=y("../internals/to-length"),se=y("../internals/to-string"),ue=y("../internals/require-object-coercible"),pe=y("../internals/advance-string-index"),he=y("../internals/get-method"),ye=y("../internals/get-substitution"),ge=y("../internals/regexp-exec-abstract"),xe=y("../internals/well-known-symbol"),ke=xe("replace"),De=Math.max,Be=Math.min,Ae=ie([].concat),Se=ie([].push),Ee=ie("".indexOf),Oe=ie("".slice),Pe=function(Ve){return Ve===void 0?Ve:String(Ve)},Le=function(){return"a".replace(/./,"$0")==="$0"}(),Ne=function(){return/./[ke]?/./[ke]("a","$0")==="":!1}(),me=!ee(function(){var Ve=/./;return Ve.exec=function(){var Ze=[];return Ze.groups={a:"7"},Ze},"".replace(Ve,"$<a>")!=="7"});oe("replace",function(Ve,Ze,We){var nt=Ne?"$":"$0";return[function(Ue,tt){var rt=ue(this),et=Ue==null?void 0:he(Ue,ke);return et?E(et,Ue,rt,tt):E(Ze,se(rt),Ue,tt)},function(_e,Ue){var tt=ce(this),rt=se(_e);if(typeof Ue=="string"&&Ee(Ue,nt)===-1&&Ee(Ue,"$<")===-1){var et=We(Ze,tt,rt,Ue);if(et.done)return et.value}var Ke=x(Ue);Ke||(Ue=se(Ue));var Ye=tt.global;if(Ye){var Xe=tt.unicode;tt.lastIndex=0}for(var ot=[];;){var Qe=ge(tt,rt);if(Qe===null||(Se(ot,Qe),!Ye))break;var ft=se(Qe[0]);ft===""&&(tt.lastIndex=pe(rt,re(tt.lastIndex),Xe))}for(var at="",qe=0,Fe=0;Fe<ot.length;Fe++){Qe=ot[Fe];for(var Re=se(Qe[0]),ne=De(Be(ae(Qe.index),rt.length),0),fe=[],Me=1;Me<Qe.length;Me++)Se(fe,Pe(Qe[Me]));var ze=Qe.groups;if(Ke){var we=Ae([Re],fe,ne,rt);ze!==void 0&&Se(we,ze);var ve=se(z(Ue,void 0,we))}else ve=ye(Re,rt,ne,fe,ze,Ue);ne>=qe&&(at+=Oe(rt,qe,ne)+ve,qe=ne+Re.length)}return at+Oe(rt,qe)}]},!me||!Le||Ne)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/get-substitution":162,"../internals/is-callable":176,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-length":249,"../internals/to-string":256,"../internals/well-known-symbol":268}],306:[function(y,je,be){"use strict";var z=y("../internals/function-call"),E=y("../internals/fix-regexp-well-known-symbol-logic"),ie=y("../internals/an-object"),oe=y("../internals/require-object-coercible"),ee=y("../internals/same-value"),ce=y("../internals/to-string"),x=y("../internals/get-method"),ae=y("../internals/regexp-exec-abstract");E("search",function(re,se,ue){return[function(he){var ye=oe(this),ge=he==null?void 0:x(he,re);return ge?z(ge,he,ye):new RegExp(he)[re](ce(ye))},function(pe){var he=ie(this),ye=ce(pe),ge=ue(se,he,ye);if(ge.done)return ge.value;var xe=he.lastIndex;ee(xe,0)||(he.lastIndex=0);var ke=ae(he,ye);return ee(he.lastIndex,xe)||(he.lastIndex=xe),ke===null?-1:ke.index}]})},{"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/same-value":231,"../internals/to-string":256}],307:[function(y,je,be){"use strict";var z=y("../internals/function-apply"),E=y("../internals/function-call"),ie=y("../internals/function-uncurry-this"),oe=y("../internals/fix-regexp-well-known-symbol-logic"),ee=y("../internals/is-regexp"),ce=y("../internals/an-object"),x=y("../internals/require-object-coercible"),ae=y("../internals/species-constructor"),re=y("../internals/advance-string-index"),se=y("../internals/to-length"),ue=y("../internals/to-string"),pe=y("../internals/get-method"),he=y("../internals/array-slice-simple"),ye=y("../internals/regexp-exec-abstract"),ge=y("../internals/regexp-exec"),xe=y("../internals/regexp-sticky-helpers"),ke=y("../internals/fails"),De=xe.UNSUPPORTED_Y,Be=4294967295,Ae=Math.min,Se=[].push,Ee=ie(/./.exec),Oe=ie(Se),Pe=ie("".slice),Le=!ke(function(){var Ne=/(?:)/,me=Ne.exec;Ne.exec=function(){return me.apply(this,arguments)};var Ve="ab".split(Ne);return Ve.length!==2||Ve[0]!=="a"||Ve[1]!=="b"});oe("split",function(Ne,me,Ve){var Ze;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?Ze=function(We,nt){var _e=ue(x(this)),Ue=nt===void 0?Be:nt>>>0;if(Ue===0)return[];if(We===void 0)return[_e];if(!ee(We))return E(me,_e,We,Ue);for(var tt=[],rt=(We.ignoreCase?"i":"")+(We.multiline?"m":"")+(We.unicode?"u":"")+(We.sticky?"y":""),et=0,Ke=new RegExp(We.source,rt+"g"),Ye,Xe,ot;(Ye=E(ge,Ke,_e))&&(Xe=Ke.lastIndex,!(Xe>et&&(Oe(tt,Pe(_e,et,Ye.index)),Ye.length>1&&Ye.index<_e.length&&z(Se,tt,he(Ye,1)),ot=Ye[0].length,et=Xe,tt.length>=Ue)));)Ke.lastIndex===Ye.index&&Ke.lastIndex++;return et===_e.length?(ot||!Ee(Ke,""))&&Oe(tt,""):Oe(tt,Pe(_e,et)),tt.length>Ue?he(tt,0,Ue):tt}:"0".split(void 0,0).length?Ze=function(We,nt){return We===void 0&&nt===0?[]:E(me,this,We,nt)}:Ze=me,[function(nt,_e){var Ue=x(this),tt=nt==null?void 0:pe(nt,Ne);return tt?E(tt,nt,Ue,_e):E(Ze,ue(Ue),nt,_e)},function(We,nt){var _e=ce(this),Ue=ue(We),tt=Ve(Ze,_e,Ue,nt,Ze!==me);if(tt.done)return tt.value;var rt=ae(_e,RegExp),et=_e.unicode,Ke=(_e.ignoreCase?"i":"")+(_e.multiline?"m":"")+(_e.unicode?"u":"")+(De?"g":"y"),Ye=new rt(De?"^(?:"+_e.source+")":_e,Ke),Xe=nt===void 0?Be:nt>>>0;if(Xe===0)return[];if(Ue.length===0)return ye(Ye,Ue)===null?[Ue]:[];for(var ot=0,Qe=0,ft=[];Qe<Ue.length;){Ye.lastIndex=De?0:Qe;var at=ye(Ye,De?Pe(Ue,Qe):Ue),qe;if(at===null||(qe=Ae(se(Ye.lastIndex+(De?Qe:0)),Ue.length))===ot)Qe=re(Ue,Qe,et);else{if(Oe(ft,Pe(Ue,ot,Qe)),ft.length===Xe)return ft;for(var Fe=1;Fe<=at.length-1;Fe++)if(Oe(ft,at[Fe]),ft.length===Xe)return ft;Qe=ot=qe}}return Oe(ft,Pe(Ue,ot)),ft}]},!Le,De)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/array-slice-simple":116,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/is-regexp":182,"../internals/regexp-exec":224,"../internals/regexp-exec-abstract":223,"../internals/regexp-sticky-helpers":227,"../internals/require-object-coercible":230,"../internals/species-constructor":238,"../internals/to-length":249,"../internals/to-string":256}],308:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/string-trim").trim,ie=y("../internals/string-trim-forced");z({target:"String",proto:!0,forced:ie("trim")},{trim:function(){return E(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/global"),ie=y("../internals/function-call"),oe=y("../internals/function-uncurry-this"),ee=y("../internals/is-pure"),ce=y("../internals/descriptors"),x=y("../internals/native-symbol"),ae=y("../internals/fails"),re=y("../internals/has-own-property"),se=y("../internals/object-is-prototype-of"),ue=y("../internals/an-object"),pe=y("../internals/to-indexed-object"),he=y("../internals/to-property-key"),ye=y("../internals/to-string"),ge=y("../internals/create-property-descriptor"),xe=y("../internals/object-create"),ke=y("../internals/object-keys"),De=y("../internals/object-get-own-property-names"),Be=y("../internals/object-get-own-property-names-external"),Ae=y("../internals/object-get-own-property-symbols"),Se=y("../internals/object-get-own-property-descriptor"),Ee=y("../internals/object-define-property"),Oe=y("../internals/object-define-properties"),Pe=y("../internals/object-property-is-enumerable"),Le=y("../internals/redefine"),Ne=y("../internals/shared"),me=y("../internals/shared-key"),Ve=y("../internals/hidden-keys"),Ze=y("../internals/uid"),We=y("../internals/well-known-symbol"),nt=y("../internals/well-known-symbol-wrapped"),_e=y("../internals/define-well-known-symbol"),Ue=y("../internals/symbol-define-to-primitive"),tt=y("../internals/set-to-string-tag"),rt=y("../internals/internal-state"),et=y("../internals/array-iteration").forEach,Ke=me("hidden"),Ye="Symbol",Xe="prototype",ot=rt.set,Qe=rt.getterFor(Ye),ft=Object[Xe],at=E.Symbol,qe=at&&at[Xe],Fe=E.TypeError,Re=E.QObject,ne=Se.f,fe=Ee.f,Me=Be.f,ze=Pe.f,we=oe([].push),ve=Ne("symbols"),Ie=Ne("op-symbols"),$e=Ne("wks"),Ge=!Re||!Re[Xe]||!Re[Xe].findChild,Je=ce&&ae(function(){return xe(fe({},"a",{get:function(){return fe(this,"a",{value:7}).a}})).a!=7})?function(jt,Et,kt){var Nt=ne(ft,Et);Nt&&delete ft[Et],fe(jt,Et,kt),Nt&&jt!==ft&&fe(ft,Et,Nt)}:fe,ut=function(jt,Et){var kt=ve[jt]=xe(qe);return ot(kt,{type:Ye,tag:jt,description:Et}),ce||(kt.description=Et),kt},lt=function(Et,kt,Nt){Et===ft&&lt(Ie,kt,Nt),ue(Et);var yt=he(kt);return ue(Nt),re(ve,yt)?(Nt.enumerable?(re(Et,Ke)&&Et[Ke][yt]&&(Et[Ke][yt]=!1),Nt=xe(Nt,{enumerable:ge(0,!1)})):(re(Et,Ke)||fe(Et,Ke,ge(1,{})),Et[Ke][yt]=!0),Je(Et,yt,Nt)):fe(Et,yt,Nt)},vt=function(Et,kt){ue(Et);var Nt=pe(kt),yt=ke(Nt).concat(Dt(Nt));return et(yt,function(Pt){(!ce||ie(st,Nt,Pt))&&lt(Et,Pt,Nt[Pt])}),Et},ct=function(Et,kt){return kt===void 0?xe(Et):vt(xe(Et),kt)},st=function(Et){var kt=he(Et),Nt=ie(ze,this,kt);return this===ft&&re(ve,kt)&&!re(Ie,kt)?!1:Nt||!re(this,kt)||!re(ve,kt)||re(this,Ke)&&this[Ke][kt]?Nt:!0},At=function(Et,kt){var Nt=pe(Et),yt=he(kt);if(!(Nt===ft&&re(ve,yt)&&!re(Ie,yt))){var Pt=ne(Nt,yt);return Pt&&re(ve,yt)&&!(re(Nt,Ke)&&Nt[Ke][yt])&&(Pt.enumerable=!0),Pt}},mt=function(Et){var kt=Me(pe(Et)),Nt=[];return et(kt,function(yt){!re(ve,yt)&&!re(Ve,yt)&&we(Nt,yt)}),Nt},Dt=function(jt){var Et=jt===ft,kt=Me(Et?Ie:pe(jt)),Nt=[];return et(kt,function(yt){re(ve,yt)&&(!Et||re(ft,yt))&&we(Nt,ve[yt])}),Nt};x||(at=function(){if(se(qe,this))throw Fe("Symbol is not a constructor");var Et=!arguments.length||arguments[0]===void 0?void 0:ye(arguments[0]),kt=Ze(Et),Nt=function(yt){this===ft&&ie(Nt,Ie,yt),re(this,Ke)&&re(this[Ke],kt)&&(this[Ke][kt]=!1),Je(this,kt,ge(1,yt))};return ce&&Ge&&Je(ft,kt,{configurable:!0,set:Nt}),ut(kt,Et)},qe=at[Xe],Le(qe,"toString",function(){return Qe(this).tag}),Le(at,"withoutSetter",function(jt){return ut(Ze(jt),jt)}),Pe.f=st,Ee.f=lt,Oe.f=vt,Se.f=At,De.f=Be.f=mt,Ae.f=Dt,nt.f=function(jt){return ut(We(jt),jt)},ce&&(fe(qe,"description",{configurable:!0,get:function(){return Qe(this).description}}),ee||Le(ft,"propertyIsEnumerable",st,{unsafe:!0}))),z({global:!0,wrap:!0,forced:!x,sham:!x},{Symbol:at}),et(ke($e),function(jt){_e(jt)}),z({target:Ye,stat:!0,forced:!x},{useSetter:function(){Ge=!0},useSimple:function(){Ge=!1}}),z({target:"Object",stat:!0,forced:!x,sham:!ce},{create:ct,defineProperty:lt,defineProperties:vt,getOwnPropertyDescriptor:At}),z({target:"Object",stat:!0,forced:!x},{getOwnPropertyNames:mt}),Ue(),tt(at,Ye),Ve[Ke]=!0},{"../internals/an-object":101,"../internals/array-iteration":111,"../internals/create-property-descriptor":130,"../internals/define-well-known-symbol":133,"../internals/descriptors":134,"../internals/export":149,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/native-symbol":191,"../internals/object-create":196,"../internals/object-define-properties":197,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-names-external":200,"../internals/object-get-own-property-symbols":202,"../internals/object-is-prototype-of":204,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/shared":237,"../internals/shared-key":235,"../internals/symbol-define-to-primitive":242,"../internals/to-indexed-object":247,"../internals/to-property-key":254,"../internals/to-string":256,"../internals/uid":263,"../internals/well-known-symbol":268,"../internals/well-known-symbol-wrapped":267}],310:[function(y,je,be){"use strict";var z=y("../internals/export"),E=y("../internals/descriptors"),ie=y("../internals/global"),oe=y("../internals/function-uncurry-this"),ee=y("../internals/has-own-property"),ce=y("../internals/is-callable"),x=y("../internals/object-is-prototype-of"),ae=y("../internals/to-string"),re=y("../internals/object-define-property").f,se=y("../internals/copy-constructor-properties"),ue=ie.Symbol,pe=ue&&ue.prototype;if(E&&ce(ue)&&(!("description"in pe)||ue().description!==void 0)){var he={},ye=function(){var Ee=arguments.length<1||arguments[0]===void 0?void 0:ae(arguments[0]),Oe=x(pe,this)?new ue(Ee):Ee===void 0?ue():ue(Ee);return Ee===""&&(he[Oe]=!0),Oe};se(ye,ue),ye.prototype=pe,pe.constructor=ye;var ge=String(ue("test"))=="Symbol(test)",xe=oe(pe.toString),ke=oe(pe.valueOf),De=/^Symbol\((.*)\)[^)]+$/,Be=oe("".replace),Ae=oe("".slice);re(pe,"description",{configurable:!0,get:function(){var Ee=ke(this),Oe=xe(Ee);if(ee(he,Ee))return"";var Pe=ge?Ae(Oe,7,-1):Be(Oe,De,"$1");return Pe===""?void 0:Pe}}),z({global:!0,forced:!0},{Symbol:ye})}},{"../internals/copy-constructor-properties":125,"../internals/descriptors":134,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/object-define-property":198,"../internals/object-is-prototype-of":204,"../internals/to-string":256}],311:[function(y,je,be){var z=y("../internals/export"),E=y("../internals/get-built-in"),ie=y("../internals/has-own-property"),oe=y("../internals/to-string"),ee=y("../internals/shared"),ce=y("../internals/native-symbol-registry"),x=ee("string-to-symbol-registry"),ae=ee("symbol-to-string-registry");z({target:"Symbol",stat:!0,forced:!ce},{for:function(re){var se=oe(re);if(ie(x,se))return x[se];var ue=E("Symbol")(se);return x[se]=ue,ae[ue]=se,ue}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/has-own-property":164,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/to-string":256}],312:[function(y,je,be){var z=y("../internals/define-well-known-symbol");z("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(y,je,be){y("../modules/es.symbol.constructor"),y("../modules/es.symbol.for"),y("../modules/es.symbol.key-for"),y("../modules/es.json.stringify"),y("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":285,"../modules/es.object.get-own-property-symbols":289,"../modules/es.symbol.constructor":309,"../modules/es.symbol.for":311,"../modules/es.symbol.key-for":314}],314:[function(y,je,be){var z=y("../internals/export"),E=y("../internals/has-own-property"),ie=y("../internals/is-symbol"),oe=y("../internals/try-to-string"),ee=y("../internals/shared"),ce=y("../internals/native-symbol-registry"),x=ee("symbol-to-string-registry");z({target:"Symbol",stat:!0,forced:!ce},{keyFor:function(re){if(!ie(re))throw TypeError(oe(re)+" is not a symbol");if(E(x,re))return x[re]}})},{"../internals/export":149,"../internals/has-own-property":164,"../internals/is-symbol":183,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/try-to-string":257}],315:[function(y,je,be){"use strict";var z=y("../internals/function-uncurry-this"),E=y("../internals/array-buffer-view-core"),ie=y("../internals/array-copy-within"),oe=z(ie),ee=E.aTypedArray,ce=E.exportTypedArrayMethod;ce("copyWithin",function(ae,re){return oe(ee(this),ae,re,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(y,je,be){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").every,ie=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("every",function(ce){return E(ie(this),ce,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(y,je,be){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/function-call"),ie=y("../internals/array-fill"),oe=z.aTypedArray,ee=z.exportTypedArrayMethod;ee("fill",function(x){var ae=arguments.length;return E(ie,oe(this),x,ae>1?arguments[1]:void 0,ae>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(y,je,be){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").filter,ie=y("../internals/typed-array-from-species-and-list"),oe=z.aTypedArray,ee=z.exportTypedArrayMethod;ee("filter",function(x){var ae=E(oe(this),x,arguments.length>1?arguments[1]:void 0);return ie(this,ae)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(y,je,be){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").findIndex,ie=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("findIndex",function(ce){return E(ie(this),ce,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(y,je,be){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").find,ie=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("find",function(ce){return E(ie(this),ce,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(y,je,be){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").forEach,ie=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("forEach",function(ce){E(ie(this),ce,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(y,je,be){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-includes").includes,ie=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("includes",function(ce){return E(ie(this),ce,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(y,je,be){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-includes").indexOf,ie=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("indexOf",function(ce){return E(ie(this),ce,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(y,je,be){"use strict";var z=y("../internals/global"),E=y("../internals/fails"),ie=y("../internals/function-uncurry-this"),oe=y("../internals/array-buffer-view-core"),ee=y("../modules/es.array.iterator"),ce=y("../internals/well-known-symbol"),x=ce("iterator"),ae=z.Uint8Array,re=ie(ee.values),se=ie(ee.keys),ue=ie(ee.entries),pe=oe.aTypedArray,he=oe.exportTypedArrayMethod,ye=ae&&ae.prototype,ge=!E(function(){ye[x].call([1])}),xe=!!ye&&ye.values&&ye[x]===ye.values&&ye.values.name==="values",ke=function(){return re(pe(this))};he("entries",function(){return ue(pe(this))},ge),he("keys",function(){return se(pe(this))},ge),he("values",ke,ge||!xe,{name:"values"}),he(x,ke,ge||!xe,{name:"values"})},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],325:[function(y,je,be){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/function-uncurry-this"),ie=z.aTypedArray,oe=z.exportTypedArrayMethod,ee=E([].join);oe("join",function(x){return ee(ie(this),x)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(y,je,be){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/function-apply"),ie=y("../internals/array-last-index-of"),oe=z.aTypedArray,ee=z.exportTypedArrayMethod;ee("lastIndexOf",function(x){var ae=arguments.length;return E(ie,oe(this),ae>1?[x,arguments[1]]:[x])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(y,je,be){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").map,ie=y("../internals/typed-array-species-constructor"),oe=z.aTypedArray,ee=z.exportTypedArrayMethod;ee("map",function(x){return E(oe(this),x,arguments.length>1?arguments[1]:void 0,function(ae,re){return new(ie(ae))(re)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(y,je,be){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-reduce").right,ie=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("reduceRight",function(ce){var x=arguments.length;return E(ie(this),ce,x,x>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(y,je,be){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-reduce").left,ie=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("reduce",function(ce){var x=arguments.length;return E(ie(this),ce,x,x>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(y,je,be){"use strict";var z=y("../internals/array-buffer-view-core"),E=z.aTypedArray,ie=z.exportTypedArrayMethod,oe=Math.floor;ie("reverse",function(){for(var ce=this,x=E(ce).length,ae=oe(x/2),re=0,se;re<ae;)se=ce[re],ce[re++]=ce[--x],ce[x]=se;return ce})},{"../internals/array-buffer-view-core":103}],331:[function(y,je,be){"use strict";var z=y("../internals/global"),E=y("../internals/function-call"),ie=y("../internals/array-buffer-view-core"),oe=y("../internals/length-of-array-like"),ee=y("../internals/to-offset"),ce=y("../internals/to-object"),x=y("../internals/fails"),ae=z.RangeError,re=z.Int8Array,se=re&&re.prototype,ue=se&&se.set,pe=ie.aTypedArray,he=ie.exportTypedArrayMethod,ye=!x(function(){var xe=new Uint8ClampedArray(2);return E(ue,xe,{length:1,0:3},1),xe[1]!==3}),ge=ye&&ie.NATIVE_ARRAY_BUFFER_VIEWS&&x(function(){var xe=new re(2);return xe.set(1),xe.set("2",1),xe[0]!==0||xe[1]!==2});he("set",function(ke){pe(this);var De=ee(arguments.length>1?arguments[1]:void 0,1),Be=ce(ke);if(ye)return E(ue,this,Be,De);var Ae=this.length,Se=oe(Be),Ee=0;if(Se+De>Ae)throw ae("Wrong length");for(;Ee<Se;)this[De+Ee]=Be[Ee++]},!ye||ge)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-call":155,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-offset":251}],332:[function(y,je,be){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/typed-array-species-constructor"),ie=y("../internals/fails"),oe=y("../internals/array-slice"),ee=z.aTypedArray,ce=z.exportTypedArrayMethod,x=ie(function(){new Int8Array(1).slice()});ce("slice",function(re,se){for(var ue=oe(ee(this),re,se),pe=E(this),he=0,ye=ue.length,ge=new pe(ye);ye>he;)ge[he]=ue[he++];return ge},x)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(y,je,be){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").some,ie=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("some",function(ce){return E(ie(this),ce,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(y,je,be){"use strict";var z=y("../internals/global"),E=y("../internals/function-uncurry-this"),ie=y("../internals/fails"),oe=y("../internals/a-callable"),ee=y("../internals/array-sort"),ce=y("../internals/array-buffer-view-core"),x=y("../internals/engine-ff-version"),ae=y("../internals/engine-is-ie-or-edge"),re=y("../internals/engine-v8-version"),se=y("../internals/engine-webkit-version"),ue=ce.aTypedArray,pe=ce.exportTypedArrayMethod,he=z.Uint16Array,ye=he&&E(he.prototype.sort),ge=!!ye&&!(ie(function(){ye(new he(2),null)})&&ie(function(){ye(new he(2),{})})),xe=!!ye&&!ie(function(){if(re)return re<74;if(x)return x<67;if(ae)return!0;if(se)return se<602;var De=new he(516),Be=Array(516),Ae,Se;for(Ae=0;Ae<516;Ae++)Se=Ae%4,De[Ae]=515-Ae,Be[Ae]=Ae-2*Se+3;for(ye(De,function(Ee,Oe){return(Ee/4|0)-(Oe/4|0)}),Ae=0;Ae<516;Ae++)if(De[Ae]!==Be[Ae])return!0}),ke=function(De){return function(Be,Ae){return De!==void 0?+De(Be,Ae)||0:Ae!==Ae?-1:Be!==Be?1:Be===0&&Ae===0?1/Be>0&&1/Ae<0?1:-1:Be>Ae}};pe("sort",function(Be){return Be!==void 0&&oe(Be),xe?ye(this,Be):ee(ue(this),ke(Be))},!xe||ge)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(y,je,be){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/to-length"),ie=y("../internals/to-absolute-index"),oe=y("../internals/typed-array-species-constructor"),ee=z.aTypedArray,ce=z.exportTypedArrayMethod;ce("subarray",function(ae,re){var se=ee(this),ue=se.length,pe=ie(ae,ue),he=oe(se);return new he(se.buffer,se.byteOffset+pe*se.BYTES_PER_ELEMENT,E((re===void 0?ue:ie(re,ue))-pe))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(y,je,be){"use strict";var z=y("../internals/global"),E=y("../internals/function-apply"),ie=y("../internals/array-buffer-view-core"),oe=y("../internals/fails"),ee=y("../internals/array-slice"),ce=z.Int8Array,x=ie.aTypedArray,ae=ie.exportTypedArrayMethod,re=[].toLocaleString,se=!!ce&&oe(function(){re.call(new ce(1))}),ue=oe(function(){return[1,2].toLocaleString()!=new ce([1,2]).toLocaleString()})||!oe(function(){ce.prototype.toLocaleString.call([1,2])});ae("toLocaleString",function(){return E(re,se?ee(x(this)):x(this),ee(arguments))},ue)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(y,je,be){"use strict";var z=y("../internals/array-buffer-view-core").exportTypedArrayMethod,E=y("../internals/fails"),ie=y("../internals/global"),oe=y("../internals/function-uncurry-this"),ee=ie.Uint8Array,ce=ee&&ee.prototype||{},x=[].toString,ae=oe([].join);E(function(){x.call({})})&&(x=function(){return ae(this)});var re=ce.toString!=x;z("toString",x,re)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(y,je,be){var z=y("../internals/typed-array-constructor");z("Uint8",function(E){return function(oe,ee,ce){return E(this,oe,ee,ce)}})},{"../internals/typed-array-constructor":258}],339:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/dom-iterables"),ie=y("../internals/dom-token-list-prototype"),oe=y("../internals/array-for-each"),ee=y("../internals/create-non-enumerable-property"),ce=function(ae){if(ae&&ae.forEach!==oe)try{ee(ae,"forEach",oe)}catch(re){ae.forEach=oe}};for(var x in E)E[x]&&ce(z[x]&&z[x].prototype);ce(ie)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(y,je,be){var z=y("../internals/global"),E=y("../internals/dom-iterables"),ie=y("../internals/dom-token-list-prototype"),oe=y("../modules/es.array.iterator"),ee=y("../internals/create-non-enumerable-property"),ce=y("../internals/well-known-symbol"),x=ce("iterator"),ae=ce("toStringTag"),re=oe.values,se=function(pe,he){if(pe){if(pe[x]!==re)try{ee(pe,x,re)}catch(ge){pe[x]=re}if(pe[ae]||ee(pe,ae,he),E[he]){for(var ye in oe)if(pe[ye]!==oe[ye])try{ee(pe,ye,oe[ye])}catch(ge){pe[ye]=oe[ye]}}}};for(var ue in E)se(z[ue]&&z[ue].prototype,ue);se(ie,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(y,je,be){function z(xe){return Array.isArray?Array.isArray(xe):ge(xe)==="[object Array]"}be.isArray=z;function E(xe){return typeof xe=="boolean"}be.isBoolean=E;function ie(xe){return xe===null}be.isNull=ie;function oe(xe){return xe==null}be.isNullOrUndefined=oe;function ee(xe){return typeof xe=="number"}be.isNumber=ee;function ce(xe){return typeof xe=="string"}be.isString=ce;function x(xe){return typeof xe=="symbol"}be.isSymbol=x;function ae(xe){return xe===void 0}be.isUndefined=ae;function re(xe){return ge(xe)==="[object RegExp]"}be.isRegExp=re;function se(xe){return typeof xe=="object"&&xe!==null}be.isObject=se;function ue(xe){return ge(xe)==="[object Date]"}be.isDate=ue;function pe(xe){return ge(xe)==="[object Error]"||xe instanceof Error}be.isError=pe;function he(xe){return typeof xe=="function"}be.isFunction=he;function ye(xe){return xe===null||typeof xe=="boolean"||typeof xe=="number"||typeof xe=="string"||typeof xe=="symbol"||typeof xe=="undefined"}be.isPrimitive=ye,be.isBuffer=y("buffer").Buffer.isBuffer;function ge(xe){return Object.prototype.toString.call(xe)}},{buffer:90}],342:[function(y,je,be){(function(z){"use strict";var E=function(){var x=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,ae=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,re=/[^-+\dA-Z]/g;return function(se,ue,pe,he){if(arguments.length===1&&ce(se)==="string"&&!/\d/.test(se)&&(ue=se,se=void 0),se=se||new Date,se instanceof Date||(se=new Date(se)),isNaN(se))throw TypeError("Invalid date");ue=String(E.masks[ue]||ue||E.masks.default);var ye=ue.slice(0,4);(ye==="UTC:"||ye==="GMT:")&&(ue=ue.slice(4),pe=!0,ye==="GMT:"&&(he=!0));var ge=pe?"getUTC":"get",xe=se[ge+"Date"](),ke=se[ge+"Day"](),De=se[ge+"Month"](),Be=se[ge+"FullYear"](),Ae=se[ge+"Hours"](),Se=se[ge+"Minutes"](),Ee=se[ge+"Seconds"](),Oe=se[ge+"Milliseconds"](),Pe=pe?0:se.getTimezoneOffset(),Le=oe(se),Ne=ee(se),me={d:xe,dd:ie(xe),ddd:E.i18n.dayNames[ke],dddd:E.i18n.dayNames[ke+7],m:De+1,mm:ie(De+1),mmm:E.i18n.monthNames[De],mmmm:E.i18n.monthNames[De+12],yy:String(Be).slice(2),yyyy:Be,h:Ae%12||12,hh:ie(Ae%12||12),H:Ae,HH:ie(Ae),M:Se,MM:ie(Se),s:Ee,ss:ie(Ee),l:ie(Oe,3),L:ie(Math.round(Oe/10)),t:Ae<12?"a":"p",tt:Ae<12?"am":"pm",T:Ae<12?"A":"P",TT:Ae<12?"AM":"PM",Z:he?"GMT":pe?"UTC":(String(se).match(ae)||[""]).pop().replace(re,""),o:(Pe>0?"-":"+")+ie(Math.floor(Math.abs(Pe)/60)*100+Math.abs(Pe)%60,4),S:["th","st","nd","rd"][xe%10>3?0:(xe%100-xe%10!=10)*xe%10],W:Le,N:Ne};return ue.replace(x,function(Ve){return Ve in me?me[Ve]:Ve.slice(1,Ve.length-1)})}}();E.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},E.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function ie(x,ae){for(x=String(x),ae=ae||2;x.length<ae;)x="0"+x;return x}function oe(x){var ae=new Date(x.getFullYear(),x.getMonth(),x.getDate());ae.setDate(ae.getDate()-(ae.getDay()+6)%7+3);var re=new Date(ae.getFullYear(),0,4);re.setDate(re.getDate()-(re.getDay()+6)%7+3);var se=ae.getTimezoneOffset()-re.getTimezoneOffset();ae.setHours(ae.getHours()-se);var ue=(ae-re)/(864e5*7);return 1+Math.floor(ue)}function ee(x){var ae=x.getDay();return ae===0&&(ae=7),ae}function ce(x){return x===null?"null":x===void 0?"undefined":typeof x!="object"?typeof x:Array.isArray(x)?"array":{}.toString.call(x).slice(8,-1).toLowerCase()}typeof Te=="function"&&Te.amd?Te(function(){return E}):typeof be=="object"?je.exports=E:z.dateFormat=E})(this)},{}],343:[function(y,je,be){"use strict";var z=/["'&<>]/;je.exports=E;function E(ie){var oe=""+ie,ee=z.exec(oe);if(!ee)return oe;var ce,x="",ae=0,re=0;for(ae=ee.index;ae<oe.length;ae++){switch(oe.charCodeAt(ae)){case 34:ce="&quot;";break;case 38:ce="&amp;";break;case 39:ce="&#39;";break;case 60:ce="&lt;";break;case 62:ce="&gt;";break;default:continue}re!==ae&&(x+=oe.substring(re,ae)),re=ae+1,x+=ce}return re!==ae?x+oe.substring(re,ae):x}},{}],344:[function(y,je,be){"use strict";var z=typeof Reflect=="object"?Reflect:null,E=z&&typeof z.apply=="function"?z.apply:function(Ee,Oe,Pe){return Function.prototype.apply.call(Ee,Oe,Pe)},ie;z&&typeof z.ownKeys=="function"?ie=z.ownKeys:Object.getOwnPropertySymbols?ie=function(Ee){return Object.getOwnPropertyNames(Ee).concat(Object.getOwnPropertySymbols(Ee))}:ie=function(Ee){return Object.getOwnPropertyNames(Ee)};function oe(Se){console&&console.warn&&console.warn(Se)}var ee=Number.isNaN||function(Ee){return Ee!==Ee};function ce(){ce.init.call(this)}je.exports=ce,je.exports.once=De,ce.EventEmitter=ce,ce.prototype._events=void 0,ce.prototype._eventsCount=0,ce.prototype._maxListeners=void 0;var x=10;function ae(Se){if(typeof Se!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Se)}Object.defineProperty(ce,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(Se){if(typeof Se!="number"||Se<0||ee(Se))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Se+".");x=Se}}),ce.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ce.prototype.setMaxListeners=function(Ee){if(typeof Ee!="number"||Ee<0||ee(Ee))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Ee+".");return this._maxListeners=Ee,this};function re(Se){return Se._maxListeners===void 0?ce.defaultMaxListeners:Se._maxListeners}ce.prototype.getMaxListeners=function(){return re(this)},ce.prototype.emit=function(Ee){for(var Oe=[],Pe=1;Pe<arguments.length;Pe++)Oe.push(arguments[Pe]);var Le=Ee==="error",Ne=this._events;if(Ne!==void 0)Le=Le&&Ne.error===void 0;else if(!Le)return!1;if(Le){var me;if(Oe.length>0&&(me=Oe[0]),me instanceof Error)throw me;var Ve=new Error("Unhandled error."+(me?" ("+me.message+")":""));throw Ve.context=me,Ve}var Ze=Ne[Ee];if(Ze===void 0)return!1;if(typeof Ze=="function")E(Ze,this,Oe);else for(var We=Ze.length,nt=ge(Ze,We),Pe=0;Pe<We;++Pe)E(nt[Pe],this,Oe);return!0};function se(Se,Ee,Oe,Pe){var Le,Ne,me;if(ae(Oe),Ne=Se._events,Ne===void 0?(Ne=Se._events=Object.create(null),Se._eventsCount=0):(Ne.newListener!==void 0&&(Se.emit("newListener",Ee,Oe.listener?Oe.listener:Oe),Ne=Se._events),me=Ne[Ee]),me===void 0)me=Ne[Ee]=Oe,++Se._eventsCount;else if(typeof me=="function"?me=Ne[Ee]=Pe?[Oe,me]:[me,Oe]:Pe?me.unshift(Oe):me.push(Oe),Le=re(Se),Le>0&&me.length>Le&&!me.warned){me.warned=!0;var Ve=new Error("Possible EventEmitter memory leak detected. "+me.length+" "+String(Ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ve.name="MaxListenersExceededWarning",Ve.emitter=Se,Ve.type=Ee,Ve.count=me.length,oe(Ve)}return Se}ce.prototype.addListener=function(Ee,Oe){return se(this,Ee,Oe,!1)},ce.prototype.on=ce.prototype.addListener,ce.prototype.prependListener=function(Ee,Oe){return se(this,Ee,Oe,!0)};function ue(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function pe(Se,Ee,Oe){var Pe={fired:!1,wrapFn:void 0,target:Se,type:Ee,listener:Oe},Le=ue.bind(Pe);return Le.listener=Oe,Pe.wrapFn=Le,Le}ce.prototype.once=function(Ee,Oe){return ae(Oe),this.on(Ee,pe(this,Ee,Oe)),this},ce.prototype.prependOnceListener=function(Ee,Oe){return ae(Oe),this.prependListener(Ee,pe(this,Ee,Oe)),this},ce.prototype.removeListener=function(Ee,Oe){var Pe,Le,Ne,me,Ve;if(ae(Oe),Le=this._events,Le===void 0)return this;if(Pe=Le[Ee],Pe===void 0)return this;if(Pe===Oe||Pe.listener===Oe)--this._eventsCount===0?this._events=Object.create(null):(delete Le[Ee],Le.removeListener&&this.emit("removeListener",Ee,Pe.listener||Oe));else if(typeof Pe!="function"){for(Ne=-1,me=Pe.length-1;me>=0;me--)if(Pe[me]===Oe||Pe[me].listener===Oe){Ve=Pe[me].listener,Ne=me;break}if(Ne<0)return this;Ne===0?Pe.shift():xe(Pe,Ne),Pe.length===1&&(Le[Ee]=Pe[0]),Le.removeListener!==void 0&&this.emit("removeListener",Ee,Ve||Oe)}return this},ce.prototype.off=ce.prototype.removeListener,ce.prototype.removeAllListeners=function(Ee){var Oe,Pe,Le;if(Pe=this._events,Pe===void 0)return this;if(Pe.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Pe[Ee]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Pe[Ee]),this;if(arguments.length===0){var Ne=Object.keys(Pe),me;for(Le=0;Le<Ne.length;++Le)me=Ne[Le],me!=="removeListener"&&this.removeAllListeners(me);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Oe=Pe[Ee],typeof Oe=="function")this.removeListener(Ee,Oe);else if(Oe!==void 0)for(Le=Oe.length-1;Le>=0;Le--)this.removeListener(Ee,Oe[Le]);return this};function he(Se,Ee,Oe){var Pe=Se._events;if(Pe===void 0)return[];var Le=Pe[Ee];return Le===void 0?[]:typeof Le=="function"?Oe?[Le.listener||Le]:[Le]:Oe?ke(Le):ge(Le,Le.length)}ce.prototype.listeners=function(Ee){return he(this,Ee,!0)},ce.prototype.rawListeners=function(Ee){return he(this,Ee,!1)},ce.listenerCount=function(Se,Ee){return typeof Se.listenerCount=="function"?Se.listenerCount(Ee):ye.call(Se,Ee)},ce.prototype.listenerCount=ye;function ye(Se){var Ee=this._events;if(Ee!==void 0){var Oe=Ee[Se];if(typeof Oe=="function")return 1;if(Oe!==void 0)return Oe.length}return 0}ce.prototype.eventNames=function(){return this._eventsCount>0?ie(this._events):[]};function ge(Se,Ee){for(var Oe=new Array(Ee),Pe=0;Pe<Ee;++Pe)Oe[Pe]=Se[Pe];return Oe}function xe(Se,Ee){for(;Ee+1<Se.length;Ee++)Se[Ee]=Se[Ee+1];Se.pop()}function ke(Se){for(var Ee=new Array(Se.length),Oe=0;Oe<Ee.length;++Oe)Ee[Oe]=Se[Oe].listener||Se[Oe];return Ee}function De(Se,Ee){return new Promise(function(Oe,Pe){function Le(me){Se.removeListener(Ee,Ne),Pe(me)}function Ne(){typeof Se.removeListener=="function"&&Se.removeListener("error",Le),Oe([].slice.call(arguments))}Ae(Se,Ee,Ne,{once:!0}),Ee!=="error"&&Be(Se,Le,{once:!0})})}function Be(Se,Ee,Oe){typeof Se.on=="function"&&Ae(Se,"error",Ee,Oe)}function Ae(Se,Ee,Oe,Pe){if(typeof Se.on=="function")Pe.once?Se.once(Ee,Oe):Se.on(Ee,Oe);else if(typeof Se.addEventListener=="function")Se.addEventListener(Ee,function Le(Ne){Pe.once&&Se.removeEventListener(Ee,Le),Oe(Ne)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Se)}},{}],345:[function(y,je,be){"use strict";var z=y("is-callable"),E=Object.prototype.toString,ie=Object.prototype.hasOwnProperty,oe=function(re,se,ue){for(var pe=0,he=re.length;pe<he;pe++)ie.call(re,pe)&&(ue==null?se(re[pe],pe,re):se.call(ue,re[pe],pe,re))},ee=function(re,se,ue){for(var pe=0,he=re.length;pe<he;pe++)ue==null?se(re.charAt(pe),pe,re):se.call(ue,re.charAt(pe),pe,re)},ce=function(re,se,ue){for(var pe in re)ie.call(re,pe)&&(ue==null?se(re[pe],pe,re):se.call(ue,re[pe],pe,re))},x=function(re,se,ue){if(!z(se))throw new TypeError("iterator must be a function");var pe;arguments.length>=3&&(pe=ue),E.call(re)==="[object Array]"?oe(re,se,pe):typeof re=="string"?ee(re,se,pe):ce(re,se,pe)};je.exports=x},{"is-callable":367}],346:[function(y,je,be){"use strict";var z="Function.prototype.bind called on incompatible ",E=Array.prototype.slice,ie=Object.prototype.toString,oe="[object Function]";je.exports=function(ce){var x=this;if(typeof x!="function"||ie.call(x)!==oe)throw new TypeError(z+x);for(var ae=E.call(arguments,1),re,se=function(){if(this instanceof re){var ge=x.apply(this,ae.concat(E.call(arguments)));return Object(ge)===ge?ge:this}else return x.apply(ce,ae.concat(E.call(arguments)))},ue=Math.max(0,x.length-ae.length),pe=[],he=0;he<ue;he++)pe.push("$"+he);if(re=Function("binder","return function ("+pe.join(",")+"){ return binder.apply(this,arguments); }")(se),x.prototype){var ye=function(){};ye.prototype=x.prototype,re.prototype=new ye,ye.prototype=null}return re}},{}],347:[function(y,je,be){"use strict";var z=y("./implementation");je.exports=Function.prototype.bind||z},{"./implementation":346}],348:[function(y,je,be){"use strict";var z,E=SyntaxError,ie=Function,oe=TypeError,ee=function(Ze){try{return ie('"use strict"; return ('+Ze+").constructor;")()}catch(We){}},ce=Object.getOwnPropertyDescriptor;if(ce)try{ce({},"")}catch(Ze){ce=null}var x=function(){throw new oe},ae=ce?function(){try{return arguments.callee,x}catch(Ze){try{return ce(arguments,"callee").get}catch(We){return x}}}():x,re=y("has-symbols")(),se=y("has-proto")(),ue=Object.getPrototypeOf||(se?function(Ze){return Ze.__proto__}:null),pe={},he=typeof Uint8Array=="undefined"||!ue?z:ue(Uint8Array),ye={"%AggregateError%":typeof AggregateError=="undefined"?z:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?z:ArrayBuffer,"%ArrayIteratorPrototype%":re&&ue?ue([][Symbol.iterator]()):z,"%AsyncFromSyncIteratorPrototype%":z,"%AsyncFunction%":pe,"%AsyncGenerator%":pe,"%AsyncGeneratorFunction%":pe,"%AsyncIteratorPrototype%":pe,"%Atomics%":typeof Atomics=="undefined"?z:Atomics,"%BigInt%":typeof BigInt=="undefined"?z:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?z:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?z:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?z:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?z:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?z:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?z:FinalizationRegistry,"%Function%":ie,"%GeneratorFunction%":pe,"%Int8Array%":typeof Int8Array=="undefined"?z:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?z:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?z:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":re&&ue?ue(ue([][Symbol.iterator]())):z,"%JSON%":typeof JSON=="object"?JSON:z,"%Map%":typeof Map=="undefined"?z:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!re||!ue?z:ue(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?z:Promise,"%Proxy%":typeof Proxy=="undefined"?z:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?z:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?z:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!re||!ue?z:ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?z:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":re&&ue?ue(""[Symbol.iterator]()):z,"%Symbol%":re?Symbol:z,"%SyntaxError%":E,"%ThrowTypeError%":ae,"%TypedArray%":he,"%TypeError%":oe,"%Uint8Array%":typeof Uint8Array=="undefined"?z:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?z:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?z:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?z:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?z:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?z:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?z:WeakSet};if(ue)try{null.error}catch(Ze){var ge=ue(ue(Ze));ye["%Error.prototype%"]=ge}var xe=function Ze(We){var nt;if(We==="%AsyncFunction%")nt=ee("async function () {}");else if(We==="%GeneratorFunction%")nt=ee("function* () {}");else if(We==="%AsyncGeneratorFunction%")nt=ee("async function* () {}");else if(We==="%AsyncGenerator%"){var _e=Ze("%AsyncGeneratorFunction%");_e&&(nt=_e.prototype)}else if(We==="%AsyncIteratorPrototype%"){var Ue=Ze("%AsyncGenerator%");Ue&&ue&&(nt=ue(Ue.prototype))}return ye[We]=nt,nt},ke={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},De=y("function-bind"),Be=y("has"),Ae=De.call(Function.call,Array.prototype.concat),Se=De.call(Function.apply,Array.prototype.splice),Ee=De.call(Function.call,String.prototype.replace),Oe=De.call(Function.call,String.prototype.slice),Pe=De.call(Function.call,RegExp.prototype.exec),Le=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ne=/\\(\\)?/g,me=function(We){var nt=Oe(We,0,1),_e=Oe(We,-1);if(nt==="%"&&_e!=="%")throw new E("invalid intrinsic syntax, expected closing `%`");if(_e==="%"&&nt!=="%")throw new E("invalid intrinsic syntax, expected opening `%`");var Ue=[];return Ee(We,Le,function(tt,rt,et,Ke){Ue[Ue.length]=et?Ee(Ke,Ne,"$1"):rt||tt}),Ue},Ve=function(We,nt){var _e=We,Ue;if(Be(ke,_e)&&(Ue=ke[_e],_e="%"+Ue[0]+"%"),Be(ye,_e)){var tt=ye[_e];if(tt===pe&&(tt=xe(_e)),typeof tt=="undefined"&&!nt)throw new oe("intrinsic "+We+" exists, but is not available. Please file an issue!");return{alias:Ue,name:_e,value:tt}}throw new E("intrinsic "+We+" does not exist!")};je.exports=function(We,nt){if(typeof We!="string"||We.length===0)throw new oe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof nt!="boolean")throw new oe('"allowMissing" argument must be a boolean');if(Pe(/^%?[^%]*%?$/,We)===null)throw new E("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var _e=me(We),Ue=_e.length>0?_e[0]:"",tt=Ve("%"+Ue+"%",nt),rt=tt.name,et=tt.value,Ke=!1,Ye=tt.alias;Ye&&(Ue=Ye[0],Se(_e,Ae([0,1],Ye)));for(var Xe=1,ot=!0;Xe<_e.length;Xe+=1){var Qe=_e[Xe],ft=Oe(Qe,0,1),at=Oe(Qe,-1);if((ft==='"'||ft==="'"||ft==="`"||at==='"'||at==="'"||at==="`")&&ft!==at)throw new E("property names with quotes must have matching quotes");if((Qe==="constructor"||!ot)&&(Ke=!0),Ue+="."+Qe,rt="%"+Ue+"%",Be(ye,rt))et=ye[rt];else if(et!=null){if(!(Qe in et)){if(!nt)throw new oe("base intrinsic for "+We+" exists, but the property is not available.");return}if(ce&&Xe+1>=_e.length){var qe=ce(et,Qe);ot=!!qe,ot&&"get"in qe&&!("originalValue"in qe.get)?et=qe.get:et=et[Qe]}else ot=Be(et,Qe),et=et[Qe];ot&&!Ke&&(ye[rt]=et)}}return et}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(y,je,be){"use strict";var z=y("get-intrinsic"),E=z("%Object.getOwnPropertyDescriptor%",!0);if(E)try{E([],"length")}catch(ie){E=null}je.exports=E},{"get-intrinsic":348}],350:[function(y,je,be){"use strict";var z={foo:{}},E=Object;je.exports=function(){return{__proto__:z}.foo===z.foo&&!({__proto__:null}instanceof E)}},{}],351:[function(y,je,be){"use strict";var z=typeof Symbol!="undefined"&&Symbol,E=y("./shams");je.exports=function(){return typeof z!="function"||typeof Symbol!="function"||typeof z("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:E()}},{"./shams":352}],352:[function(y,je,be){"use strict";je.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var E={},ie=Symbol("test"),oe=Object(ie);if(typeof ie=="string"||Object.prototype.toString.call(ie)!=="[object Symbol]"||Object.prototype.toString.call(oe)!=="[object Symbol]")return!1;var ee=42;E[ie]=ee;for(ie in E)return!1;if(typeof Object.keys=="function"&&Object.keys(E).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(E).length!==0)return!1;var ce=Object.getOwnPropertySymbols(E);if(ce.length!==1||ce[0]!==ie||!Object.prototype.propertyIsEnumerable.call(E,ie))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var x=Object.getOwnPropertyDescriptor(E,ie);if(x.value!==ee||x.enumerable!==!0)return!1}return!0}},{}],353:[function(y,je,be){"use strict";var z=y("has-symbols/shams");je.exports=function(){return z()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(y,je,be){"use strict";var z=y("function-bind");je.exports=z.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(y,je,be){var z=y("http"),E=y("url"),ie=je.exports;for(var oe in z)z.hasOwnProperty(oe)&&(ie[oe]=z[oe]);ie.request=function(ce,x){return ce=ee(ce),z.request.call(this,ce,x)},ie.get=function(ce,x){return ce=ee(ce),z.get.call(this,ce,x)};function ee(ce){if(typeof ce=="string"&&(ce=E.parse(ce)),ce.protocol||(ce.protocol="https:"),ce.protocol!=="https:")throw new Error('Protocol "'+ce.protocol+'" not supported. Expected "https:"');return ce}},{http:468,url:472}],356:[function(y,je,be){"use strict";var z=y("util"),E=y("ms");je.exports=function(ie){if(typeof ie=="number")return ie;var oe=E(ie);if(oe===void 0){var ee=new Error(z.format("humanize-ms(%j) result undefined",ie));console.warn(ee.stack)}return oe}},{ms:376,util:419}],357:[function(y,je,be){be.read=function(z,E,ie,oe,ee){var ce,x,ae=ee*8-oe-1,re=(1<<ae)-1,se=re>>1,ue=-7,pe=ie?ee-1:0,he=ie?-1:1,ye=z[E+pe];for(pe+=he,ce=ye&(1<<-ue)-1,ye>>=-ue,ue+=ae;ue>0;ce=ce*256+z[E+pe],pe+=he,ue-=8);for(x=ce&(1<<-ue)-1,ce>>=-ue,ue+=oe;ue>0;x=x*256+z[E+pe],pe+=he,ue-=8);if(ce===0)ce=1-se;else{if(ce===re)return x?NaN:(ye?-1:1)*(1/0);x=x+Math.pow(2,oe),ce=ce-se}return(ye?-1:1)*x*Math.pow(2,ce-oe)},be.write=function(z,E,ie,oe,ee,ce){var x,ae,re,se=ce*8-ee-1,ue=(1<<se)-1,pe=ue>>1,he=ee===23?Math.pow(2,-24)-Math.pow(2,-77):0,ye=oe?0:ce-1,ge=oe?1:-1,xe=E<0||E===0&&1/E<0?1:0;for(E=Math.abs(E),isNaN(E)||E===1/0?(ae=isNaN(E)?1:0,x=ue):(x=Math.floor(Math.log(E)/Math.LN2),E*(re=Math.pow(2,-x))<1&&(x--,re*=2),x+pe>=1?E+=he/re:E+=he*Math.pow(2,1-pe),E*re>=2&&(x++,re/=2),x+pe>=ue?(ae=0,x=ue):x+pe>=1?(ae=(E*re-1)*Math.pow(2,ee),x=x+pe):(ae=E*Math.pow(2,pe-1)*Math.pow(2,ee),x=0));ee>=8;z[ie+ye]=ae&255,ye+=ge,ae/=256,ee-=8);for(x=x<<ee|ae,se+=ee;se>0;z[ie+ye]=x&255,ye+=ge,x/=256,se-=8);z[ie+ye-ge]|=xe*128}},{}],358:[function(y,je,be){"use strict";var z=[y("./nextTick"),y("./queueMicrotask"),y("./mutation.js"),y("./messageChannel"),y("./stateChange"),y("./timeout")],E,ie,oe=-1,ee=[],ce=!1;function x(){!E||!ie||(E=!1,ie.length?ee=ie.concat(ee):oe=-1,ee.length&&ae())}function ae(){if(!E){ce=!1,E=!0;for(var ye=ee.length,ge=setTimeout(x);ye;){for(ie=ee,ee=[];ie&&++oe<ye;)ie[oe].run();oe=-1,ye=ee.length}ie=null,oe=-1,E=!1,clearTimeout(ge)}}for(var re,se=-1,ue=z.length;++se<ue;)if(z[se]&&z[se].test&&z[se].test()){re=z[se].install(ae);break}function pe(ye,ge){this.fun=ye,this.array=ge}pe.prototype.run=function(){var ye=this.fun,ge=this.array;switch(ge.length){case 0:return ye();case 1:return ye(ge[0]);case 2:return ye(ge[0],ge[1]);case 3:return ye(ge[0],ge[1],ge[2]);default:return ye.apply(null,ge)}},je.exports=he;function he(ye){var ge=new Array(arguments.length-1);if(arguments.length>1)for(var xe=1;xe<arguments.length;xe++)ge[xe-1]=arguments[xe];ee.push(new pe(ye,ge)),!ce&&!E&&(ce=!0,re())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(y,je,be){(function(z){(function(){"use strict";be.test=function(){return z.setImmediate?!1:typeof z.MessageChannel!="undefined"},be.install=function(E){var ie=new z.MessageChannel;return ie.port1.onmessage=E,function(){ie.port2.postMessage(0)}}}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(y,je,be){(function(z){(function(){"use strict";var E=z.MutationObserver||z.WebKitMutationObserver;be.test=function(){return E},be.install=function(ie){var oe=0,ee=new E(ie),ce=z.document.createTextNode("");return ee.observe(ce,{characterData:!0}),function(){ce.data=oe=++oe%2}}}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(y,je,be){(function(z){(function(){"use strict";be.test=function(){return typeof z.queueMicrotask=="function"},be.install=function(E){return function(){z.queueMicrotask(E)}}}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(y,je,be){(function(z){(function(){"use strict";be.test=function(){return"document"in z&&"onreadystatechange"in z.document.createElement("script")},be.install=function(E){return function(){var ie=z.document.createElement("script");return ie.onreadystatechange=function(){E(),ie.onreadystatechange=null,ie.parentNode.removeChild(ie),ie=null},z.document.documentElement.appendChild(ie),E}}}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(y,je,be){"use strict";be.test=function(){return!0},be.install=function(z){return function(){setTimeout(z,0)}}},{}],364:[function(y,je,be){typeof Object.create=="function"?je.exports=function(E,ie){ie&&(E.super_=ie,E.prototype=Object.create(ie.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}))}:je.exports=function(E,ie){if(ie){E.super_=ie;var oe=function(){};oe.prototype=ie.prototype,E.prototype=new oe,E.prototype.constructor=E}}},{}],365:[function(y,je,be){"use strict";var z=y("has-tostringtag/shams")(),E=y("call-bind/callBound"),ie=E("Object.prototype.toString"),oe=function(ae){return z&&ae&&typeof ae=="object"&&Symbol.toStringTag in ae?!1:ie(ae)==="[object Arguments]"},ee=function(ae){return oe(ae)?!0:ae!==null&&typeof ae=="object"&&typeof ae.length=="number"&&ae.length>=0&&ie(ae)!=="[object Array]"&&ie(ae.callee)==="[object Function]"},ce=function(){return oe(arguments)}();oe.isLegacyArguments=ee,je.exports=ce?oe:ee},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(y,je,be){je.exports=function(ie){return ie!=null&&(z(ie)||E(ie)||!!ie._isBuffer)};function z(ie){return!!ie.constructor&&typeof ie.constructor.isBuffer=="function"&&ie.constructor.isBuffer(ie)}function E(ie){return typeof ie.readFloatLE=="function"&&typeof ie.slice=="function"&&z(ie.slice(0,0))}},{}],367:[function(y,je,be){"use strict";var z=Function.prototype.toString,E=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ie,oe;if(typeof E=="function"&&typeof Object.defineProperty=="function")try{ie=Object.defineProperty({},"length",{get:function(){throw oe}}),oe={},E(function(){throw 42},null,ie)}catch(Be){Be!==oe&&(E=null)}else E=null;var ee=/^\s*class\b/,ce=function(Ae){try{var Se=z.call(Ae);return ee.test(Se)}catch(Ee){return!1}},x=function(Ae){try{return ce(Ae)?!1:(z.call(Ae),!0)}catch(Se){return!1}},ae=Object.prototype.toString,re="[object Object]",se="[object Function]",ue="[object GeneratorFunction]",pe="[object HTMLAllCollection]",he="[object HTML document.all class]",ye="[object HTMLCollection]",ge=typeof Symbol=="function"&&!!Symbol.toStringTag,xe=!(0 in[,]),ke=function(){return!1};if(typeof document=="object"){var De=document.all;ae.call(De)===ae.call(document.all)&&(ke=function(Ae){if((xe||!Ae)&&(typeof Ae=="undefined"||typeof Ae=="object"))try{var Se=ae.call(Ae);return(Se===pe||Se===he||Se===ye||Se===re)&&Ae("")==null}catch(Ee){}return!1})}je.exports=E?function(Ae){if(ke(Ae))return!0;if(!Ae||typeof Ae!="function"&&typeof Ae!="object")return!1;try{E(Ae,null,ie)}catch(Se){if(Se!==oe)return!1}return!ce(Ae)&&x(Ae)}:function(Ae){if(ke(Ae))return!0;if(!Ae||typeof Ae!="function"&&typeof Ae!="object")return!1;if(ge)return x(Ae);if(ce(Ae))return!1;var Se=ae.call(Ae);return Se!==se&&Se!==ue&&!/^\[object HTML/.test(Se)?!1:x(Ae)}},{}],368:[function(y,je,be){"use strict";var z=Object.prototype.toString,E=Function.prototype.toString,ie=/^\s*(?:function)?\*/,oe=y("has-tostringtag/shams")(),ee=Object.getPrototypeOf,ce=function(){if(!oe)return!1;try{return Function("return function*() {}")()}catch(ae){}},x;je.exports=function(re){if(typeof re!="function")return!1;if(ie.test(E.call(re)))return!0;if(!oe){var se=z.call(re);return se==="[object GeneratorFunction]"}if(!ee)return!1;if(typeof x=="undefined"){var ue=ce();x=ue?ee(ue):!1}return ee(re)===x}},{"has-tostringtag/shams":353}],369:[function(y,je,be){"use strict";var z=y("which-typed-array");je.exports=function(ie){return!!z(ie)}},{"which-typed-array":420}],370:[function(y,je,be){var z={}.toString;je.exports=Array.isArray||function(E){return z.call(E)=="[object Array]"}},{}],371:[function(y,je,be){(function(z){(function(){(function(E,ie){typeof be=="object"&&typeof je!="undefined"?je.exports=ie(E):typeof Te=="function"&&Te.amd?Te(ie):ie(E)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof z!="undefined"?z:this,function(E){"use strict";E=E||{};var ie=E.Base64,oe="2.6.4",ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ce=function(We){for(var nt={},_e=0,Ue=We.length;_e<Ue;_e++)nt[We.charAt(_e)]=_e;return nt}(ee),x=String.fromCharCode,ae=function(We){if(We.length<2){var nt=We.charCodeAt(0);return nt<128?We:nt<2048?x(192|nt>>>6)+x(128|nt&63):x(224|nt>>>12&15)+x(128|nt>>>6&63)+x(128|nt&63)}else{var nt=65536+(We.charCodeAt(0)-55296)*1024+(We.charCodeAt(1)-56320);return x(240|nt>>>18&7)+x(128|nt>>>12&63)+x(128|nt>>>6&63)+x(128|nt&63)}},re=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,se=function(We){return We.replace(re,ae)},ue=function(We){var nt=[0,2,1][We.length%3],_e=We.charCodeAt(0)<<16|(We.length>1?We.charCodeAt(1):0)<<8|(We.length>2?We.charCodeAt(2):0),Ue=[ee.charAt(_e>>>18),ee.charAt(_e>>>12&63),nt>=2?"=":ee.charAt(_e>>>6&63),nt>=1?"=":ee.charAt(_e&63)];return Ue.join("")},pe=E.btoa&&typeof E.btoa=="function"?function(We){return E.btoa(We)}:function(We){if(We.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return We.replace(/[\s\S]{1,3}/g,ue)},he=function(We){return pe(se(String(We)))},ye=function(We){return We.replace(/[+\/]/g,function(nt){return nt=="+"?"-":"_"}).replace(/=/g,"")},ge=function(We,nt){return nt?ye(he(We)):he(We)},xe=function(We){return ge(We,!0)},ke;E.Uint8Array&&(ke=function(We,nt){for(var _e="",Ue=0,tt=We.length;Ue<tt;Ue+=3){var rt=We[Ue],et=We[Ue+1],Ke=We[Ue+2],Ye=rt<<16|et<<8|Ke;_e+=ee.charAt(Ye>>>18)+ee.charAt(Ye>>>12&63)+(typeof et!="undefined"?ee.charAt(Ye>>>6&63):"=")+(typeof Ke!="undefined"?ee.charAt(Ye&63):"=")}return nt?ye(_e):_e});var De=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Be=function(We){switch(We.length){case 4:var nt=(7&We.charCodeAt(0))<<18|(63&We.charCodeAt(1))<<12|(63&We.charCodeAt(2))<<6|63&We.charCodeAt(3),_e=nt-65536;return x((_e>>>10)+55296)+x((_e&1023)+56320);case 3:return x((15&We.charCodeAt(0))<<12|(63&We.charCodeAt(1))<<6|63&We.charCodeAt(2));default:return x((31&We.charCodeAt(0))<<6|63&We.charCodeAt(1))}},Ae=function(We){return We.replace(De,Be)},Se=function(We){var nt=We.length,_e=nt%4,Ue=(nt>0?ce[We.charAt(0)]<<18:0)|(nt>1?ce[We.charAt(1)]<<12:0)|(nt>2?ce[We.charAt(2)]<<6:0)|(nt>3?ce[We.charAt(3)]:0),tt=[x(Ue>>>16),x(Ue>>>8&255),x(Ue&255)];return tt.length-=[0,0,2,1][_e],tt.join("")},Ee=E.atob&&typeof E.atob=="function"?function(We){return E.atob(We)}:function(We){return We.replace(/\S{1,4}/g,Se)},Oe=function(We){return Ee(String(We).replace(/[^A-Za-z0-9\+\/]/g,""))},Pe=function(We){return Ae(Ee(We))},Le=function(We){return String(We).replace(/[-_]/g,function(nt){return nt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ne=function(We){return Pe(Le(We))},me;E.Uint8Array&&(me=function(We){return Uint8Array.from(Oe(Le(We)),function(nt){return nt.charCodeAt(0)})});var Ve=function(){var We=E.Base64;return E.Base64=ie,We};if(E.Base64={VERSION:oe,atob:Oe,btoa:pe,fromBase64:Ne,toBase64:ge,utob:se,encode:ge,encodeURI:xe,btou:Ae,decode:Ne,noConflict:Ve,fromUint8Array:ke,toUint8Array:me},typeof Object.defineProperty=="function"){var Ze=function(We){return{value:We,enumerable:!1,writable:!0,configurable:!0}};E.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ze(function(){return Ne(this)})),Object.defineProperty(String.prototype,"toBase64",Ze(function(We){return ge(this,We)})),Object.defineProperty(String.prototype,"toBase64URI",Ze(function(){return ge(this,!0)}))}}return E.Meteor&&(Base64=E.Base64),typeof je!="undefined"&&je.exports?je.exports.Base64=E.Base64:typeof Te=="function"&&Te.amd&&Te([],function(){return E.Base64}),{Base64:E.Base64}})}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(y,je,be){"use strict";je.exports=E;var z=Object.prototype.hasOwnProperty;function E(ie,oe,ee){if(!ie)throw new TypeError("argument dest is required");if(!oe)throw new TypeError("argument src is required");return ee===void 0&&(ee=!0),Object.getOwnPropertyNames(oe).forEach(function(x){if(!(!ee&&z.call(ie,x))){var ae=Object.getOwnPropertyDescriptor(oe,x);Object.defineProperty(ie,x,ae)}}),ie}},{}],373:[function(y,je,be){"use strict";y("core-js/modules/es.array.map.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.regexp.constructor.js"),y("core-js/modules/es.regexp.to-string.js");function z(){this._types=Object.create(null),this._extensions=Object.create(null);for(var E=0;E<arguments.length;E++)this.define(arguments[E]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}z.prototype.define=function(E,ie){for(var oe in E){var ee=E[oe].map(function(re){return re.toLowerCase()});oe=oe.toLowerCase();for(var ce=0;ce<ee.length;ce++){var x=ee[ce];if(x[0]!=="*"){if(!ie&&x in this._types)throw new Error('Attempt to change mapping for "'+x+'" extension from "'+this._types[x]+'" to "'+oe+'". Pass `force=true` to allow this, otherwise remove "'+x+'" from the list of extensions for "'+oe+'".');this._types[x]=oe}}if(ie||!this._extensions[oe]){var ae=ee[0];this._extensions[oe]=ae[0]!=="*"?ae:ae.substr(1)}}},z.prototype.getType=function(E){E=String(E);var ie=E.replace(/^.*[/\\]/,"").toLowerCase(),oe=ie.replace(/^.*\./,"").toLowerCase(),ee=ie.length<E.length,ce=oe.length<ie.length-1;return(ce||!ee)&&this._types[oe]||null},z.prototype.getExtension=function(E){return E=/^\s*([^;\s]*)/.test(E)&&RegExp.$1,E&&this._extensions[E.toLowerCase()]||null},je.exports=z},{"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.constructor.js":299,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305}],374:[function(y,je,be){"use strict";var z=y("./Mime");je.exports=new z(y("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(y,je,be){"use strict";je.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],376:[function(y,je,be){var z=1e3,E=z*60,ie=E*60,oe=ie*24,ee=oe*7,ce=oe*365.25;je.exports=function(ue,pe){pe=pe||{};var he=typeof ue;if(he==="string"&&ue.length>0)return x(ue);if(he==="number"&&isFinite(ue))return pe.long?re(ue):ae(ue);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(ue))};function x(ue){if(ue=String(ue),!(ue.length>100)){var pe=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(ue);if(pe){var he=parseFloat(pe[1]),ye=(pe[2]||"ms").toLowerCase();switch(ye){case"years":case"year":case"yrs":case"yr":case"y":return he*ce;case"weeks":case"week":case"w":return he*ee;case"days":case"day":case"d":return he*oe;case"hours":case"hour":case"hrs":case"hr":case"h":return he*ie;case"minutes":case"minute":case"mins":case"min":case"m":return he*E;case"seconds":case"second":case"secs":case"sec":case"s":return he*z;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return he;default:return}}}}function ae(ue){var pe=Math.abs(ue);return pe>=oe?Math.round(ue/oe)+"d":pe>=ie?Math.round(ue/ie)+"h":pe>=E?Math.round(ue/E)+"m":pe>=z?Math.round(ue/z)+"s":ue+"ms"}function re(ue){var pe=Math.abs(ue);return pe>=oe?se(ue,pe,oe,"day"):pe>=ie?se(ue,pe,ie,"hour"):pe>=E?se(ue,pe,E,"minute"):pe>=z?se(ue,pe,z,"second"):ue+" ms"}function se(ue,pe,he,ye){var ge=pe>=he*1.5;return Math.round(ue/he)+" "+ye+(ge?"s":"")}},{}],377:[function(y,je,be){"use strict";var z=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;function oe(ce){if(ce==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(ce)}function ee(){try{if(!Object.assign)return!1;var ce=new String("abc");if(ce[5]="de",Object.getOwnPropertyNames(ce)[0]==="5")return!1;for(var x={},ae=0;ae<10;ae++)x["_"+String.fromCharCode(ae)]=ae;var re=Object.getOwnPropertyNames(x).map(function(ue){return x[ue]});if(re.join("")!=="0123456789")return!1;var se={};return"abcdefghijklmnopqrst".split("").forEach(function(ue){se[ue]=ue}),Object.keys(Object.assign({},se)).join("")==="abcdefghijklmnopqrst"}catch(ue){return!1}}je.exports=ee()?Object.assign:function(ce,x){for(var ae,re=oe(ce),se,ue=1;ue<arguments.length;ue++){ae=Object(arguments[ue]);for(var pe in ae)E.call(ae,pe)&&(re[pe]=ae[pe]);if(z){se=z(ae);for(var he=0;he<se.length;he++)ie.call(ae,se[he])&&(re[se[he]]=ae[se[he]])}}return re}},{}],378:[function(y,je,be){(function(z){(function(){"use strict";function E(ce){if(typeof ce!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(ce))}function ie(ce,x){for(var ae="",re=0,se=-1,ue=0,pe,he=0;he<=ce.length;++he){if(he<ce.length)pe=ce.charCodeAt(he);else{if(pe===47)break;pe=47}if(pe===47){if(!(se===he-1||ue===1))if(se!==he-1&&ue===2){if(ae.length<2||re!==2||ae.charCodeAt(ae.length-1)!==46||ae.charCodeAt(ae.length-2)!==46){if(ae.length>2){var ye=ae.lastIndexOf("/");if(ye!==ae.length-1){ye===-1?(ae="",re=0):(ae=ae.slice(0,ye),re=ae.length-1-ae.lastIndexOf("/")),se=he,ue=0;continue}}else if(ae.length===2||ae.length===1){ae="",re=0,se=he,ue=0;continue}}x&&(ae.length>0?ae+="/..":ae="..",re=2)}else ae.length>0?ae+="/"+ce.slice(se+1,he):ae=ce.slice(se+1,he),re=he-se-1;se=he,ue=0}else pe===46&&ue!==-1?++ue:ue=-1}return ae}function oe(ce,x){var ae=x.dir||x.root,re=x.base||(x.name||"")+(x.ext||"");return ae?ae===x.root?ae+re:ae+ce+re:re}var ee={resolve:function(){for(var x="",ae=!1,re,se=arguments.length-1;se>=-1&&!ae;se--){var ue;se>=0?ue=arguments[se]:(re===void 0&&(re=z.cwd()),ue=re),E(ue),ue.length!==0&&(x=ue+"/"+x,ae=ue.charCodeAt(0)===47)}return x=ie(x,!ae),ae?x.length>0?"/"+x:"/":x.length>0?x:"."},normalize:function(x){if(E(x),x.length===0)return".";var ae=x.charCodeAt(0)===47,re=x.charCodeAt(x.length-1)===47;return x=ie(x,!ae),x.length===0&&!ae&&(x="."),x.length>0&&re&&(x+="/"),ae?"/"+x:x},isAbsolute:function(x){return E(x),x.length>0&&x.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var x,ae=0;ae<arguments.length;++ae){var re=arguments[ae];E(re),re.length>0&&(x===void 0?x=re:x+="/"+re)}return x===void 0?".":ee.normalize(x)},relative:function(x,ae){if(E(x),E(ae),x===ae||(x=ee.resolve(x),ae=ee.resolve(ae),x===ae))return"";for(var re=1;re<x.length&&x.charCodeAt(re)===47;++re);for(var se=x.length,ue=se-re,pe=1;pe<ae.length&&ae.charCodeAt(pe)===47;++pe);for(var he=ae.length,ye=he-pe,ge=ue<ye?ue:ye,xe=-1,ke=0;ke<=ge;++ke){if(ke===ge){if(ye>ge){if(ae.charCodeAt(pe+ke)===47)return ae.slice(pe+ke+1);if(ke===0)return ae.slice(pe+ke)}else ue>ge&&(x.charCodeAt(re+ke)===47?xe=ke:ke===0&&(xe=0));break}var De=x.charCodeAt(re+ke),Be=ae.charCodeAt(pe+ke);if(De!==Be)break;De===47&&(xe=ke)}var Ae="";for(ke=re+xe+1;ke<=se;++ke)(ke===se||x.charCodeAt(ke)===47)&&(Ae.length===0?Ae+="..":Ae+="/..");return Ae.length>0?Ae+ae.slice(pe+xe):(pe+=xe,ae.charCodeAt(pe)===47&&++pe,ae.slice(pe))},_makeLong:function(x){return x},dirname:function(x){if(E(x),x.length===0)return".";for(var ae=x.charCodeAt(0),re=ae===47,se=-1,ue=!0,pe=x.length-1;pe>=1;--pe)if(ae=x.charCodeAt(pe),ae===47){if(!ue){se=pe;break}}else ue=!1;return se===-1?re?"/":".":re&&se===1?"//":x.slice(0,se)},basename:function(x,ae){if(ae!==void 0&&typeof ae!="string")throw new TypeError('"ext" argument must be a string');E(x);var re=0,se=-1,ue=!0,pe;if(ae!==void 0&&ae.length>0&&ae.length<=x.length){if(ae.length===x.length&&ae===x)return"";var he=ae.length-1,ye=-1;for(pe=x.length-1;pe>=0;--pe){var ge=x.charCodeAt(pe);if(ge===47){if(!ue){re=pe+1;break}}else ye===-1&&(ue=!1,ye=pe+1),he>=0&&(ge===ae.charCodeAt(he)?--he===-1&&(se=pe):(he=-1,se=ye))}return re===se?se=ye:se===-1&&(se=x.length),x.slice(re,se)}else{for(pe=x.length-1;pe>=0;--pe)if(x.charCodeAt(pe)===47){if(!ue){re=pe+1;break}}else se===-1&&(ue=!1,se=pe+1);return se===-1?"":x.slice(re,se)}},extname:function(x){E(x);for(var ae=-1,re=0,se=-1,ue=!0,pe=0,he=x.length-1;he>=0;--he){var ye=x.charCodeAt(he);if(ye===47){if(!ue){re=he+1;break}continue}se===-1&&(ue=!1,se=he+1),ye===46?ae===-1?ae=he:pe!==1&&(pe=1):ae!==-1&&(pe=-1)}return ae===-1||se===-1||pe===0||pe===1&&ae===se-1&&ae===re+1?"":x.slice(ae,se)},format:function(x){if(x===null||typeof x!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof x);return oe("/",x)},parse:function(x){E(x);var ae={root:"",dir:"",base:"",ext:"",name:""};if(x.length===0)return ae;var re=x.charCodeAt(0),se=re===47,ue;se?(ae.root="/",ue=1):ue=0;for(var pe=-1,he=0,ye=-1,ge=!0,xe=x.length-1,ke=0;xe>=ue;--xe){if(re=x.charCodeAt(xe),re===47){if(!ge){he=xe+1;break}continue}ye===-1&&(ge=!1,ye=xe+1),re===46?pe===-1?pe=xe:ke!==1&&(ke=1):pe!==-1&&(ke=-1)}return pe===-1||ye===-1||ke===0||ke===1&&pe===ye-1&&pe===he+1?ye!==-1&&(he===0&&se?ae.base=ae.name=x.slice(1,ye):ae.base=ae.name=x.slice(he,ye)):(he===0&&se?(ae.name=x.slice(1,pe),ae.base=x.slice(1,ye)):(ae.name=x.slice(he,pe),ae.base=x.slice(he,ye)),ae.ext=x.slice(pe,ye)),he>0?ae.dir=x.slice(0,he-1):se&&(ae.dir="/"),ae},sep:"/",delimiter:":",win32:null,posix:null};ee.posix=ee,je.exports=ee}).call(this)}).call(this,y("_process"))},{_process:467}],379:[function(y,je,be){(function(z){(function(){(function(){"use strict";var E={function:!0,object:!0},ie=E[typeof window]&&window||this,oe=ie,ee=E[typeof be]&&be,ce=E[typeof je]&&je&&!je.nodeType&&je,x=ee&&ce&&typeof z=="object"&&z;x&&(x.global===x||x.window===x||x.self===x)&&(ie=x);var ae=Math.pow(2,53)-1,re=/\bOpera/,se=this,ue=Object.prototype,pe=ue.hasOwnProperty,he=ue.toString;function ye(Ne){return Ne=String(Ne),Ne.charAt(0).toUpperCase()+Ne.slice(1)}function ge(Ne,me,Ve){var Ze={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return me&&Ve&&/^Win/i.test(Ne)&&!/^Windows Phone /i.test(Ne)&&(Ze=Ze[/[\d.]+$/.exec(Ne)])&&(Ne="Windows "+Ze),Ne=String(Ne),me&&Ve&&(Ne=Ne.replace(RegExp(me,"i"),Ve)),Ne=ke(Ne.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),Ne}function xe(Ne,me){var Ve=-1,Ze=Ne?Ne.length:0;if(typeof Ze=="number"&&Ze>-1&&Ze<=ae)for(;++Ve<Ze;)me(Ne[Ve],Ve,Ne);else De(Ne,me)}function ke(Ne){return Ne=Oe(Ne),/^(?:webOS|i(?:OS|P))/.test(Ne)?Ne:ye(Ne)}function De(Ne,me){for(var Ve in Ne)pe.call(Ne,Ve)&&me(Ne[Ve],Ve,Ne)}function Be(Ne){return Ne==null?ye(Ne):he.call(Ne).slice(8,-1)}function Ae(Ne,me){var Ve=Ne!=null?typeof Ne[me]:"number";return!/^(?:boolean|number|string|undefined)$/.test(Ve)&&(Ve=="object"?!!Ne[me]:!0)}function Se(Ne){return String(Ne).replace(/([ -])(?!$)/g,"$1?")}function Ee(Ne,me){var Ve=null;return xe(Ne,function(Ze,We){Ve=me(Ve,Ze,We,Ne)}),Ve}function Oe(Ne){return String(Ne).replace(/^ +| +$/g,"")}function Pe(Ne){var me=ie,Ve=Ne&&typeof Ne=="object"&&Be(Ne)!="String";Ve&&(me=Ne,Ne=null);var Ze=me.navigator||{},We=Ze.userAgent||"";Ne||(Ne=We);var nt=Ve||se==oe,_e=Ve?!!Ze.likeChrome:/\bChrome\b/.test(Ne)&&!/internal|\n/i.test(he.toString()),Ue="Object",tt=Ve?Ue:"ScriptBridgingProxyObject",rt=Ve?Ue:"Environment",et=Ve&&me.java?"JavaPackage":Be(me.java),Ke=Ve?Ue:"RuntimeObject",Ye=/\bJava/.test(et)&&me.java,Xe=Ye&&Be(me.environment)==rt,ot=Ye?"a":"\u03B1",Qe=Ye?"b":"\u03B2",ft=me.document||{},at=me.operamini||me.opera,qe=re.test(qe=Ve&&at?at["[[Class]]"]:Be(at))?qe:at=null,Fe,Re=Ne,ne=[],fe=null,Me=Ne==We,ze=Me&&at&&typeof at.version=="function"&&at.version(),we,ve=ut([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Ie=vt(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),$e=st([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),Ge=lt({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),Je=ct(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function ut(jt){return Ee(jt,function(Et,kt){return Et||RegExp("\\b"+(kt.pattern||Se(kt))+"\\b","i").exec(Ne)&&(kt.label||kt)})}function lt(jt){return Ee(jt,function(Et,kt,Nt){return Et||(kt[$e]||kt[/^[a-z]+(?: +[a-z]+\b)*/i.exec($e)]||RegExp("\\b"+Se(Nt)+"(?:\\b|\\w*\\d)","i").exec(Ne))&&Nt})}function vt(jt){return Ee(jt,function(Et,kt){return Et||RegExp("\\b"+(kt.pattern||Se(kt))+"\\b","i").exec(Ne)&&(kt.label||kt)})}function ct(jt){return Ee(jt,function(Et,kt){var Nt=kt.pattern||Se(kt);return!Et&&(Et=RegExp("\\b"+Nt+"(?:/[\\d.]+|[ \\w.]*)","i").exec(Ne))&&(Et=ge(Et,Nt,kt.label||kt)),Et})}function st(jt){return Ee(jt,function(Et,kt){var Nt=kt.pattern||Se(kt);return!Et&&(Et=RegExp("\\b"+Nt+" *\\d+[.\\w_]*","i").exec(Ne)||RegExp("\\b"+Nt+" *\\w+-[\\w]*","i").exec(Ne)||RegExp("\\b"+Nt+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(Ne))&&((Et=String(kt.label&&!RegExp(Nt,"i").test(kt.label)?kt.label:Et).split("/"))[1]&&!/[\d.]+/.test(Et[0])&&(Et[0]+=" "+Et[1]),kt=kt.label||kt,Et=ke(Et[0].replace(RegExp(Nt,"i"),kt).replace(RegExp("; *(?:"+kt+"[_-])?","i")," ").replace(RegExp("("+kt+")[-_.]?(\\w)","i"),"$1 $2"))),Et})}function At(jt){return Ee(jt,function(Et,kt){return Et||(RegExp(kt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(Ne)||0)[1]||null})}function mt(){return this.description||""}if(ve&&(ve=[ve]),/\bAndroid\b/.test(Je)&&!$e&&(Fe=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(Ne))&&($e=Oe(Fe[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),Ge&&!$e?$e=st([Ge]):Ge&&$e&&($e=$e.replace(RegExp("^("+Se(Ge)+")[-_.\\s]","i"),Ge+" ").replace(RegExp("^("+Se(Ge)+")[-_.]?(\\w)","i"),Ge+" $2")),(Fe=/\bGoogle TV\b/.exec($e))&&($e=Fe[0]),/\bSimulator\b/i.test(Ne)&&($e=($e?$e+" ":"")+"Simulator"),Ie=="Opera Mini"&&/\bOPiOS\b/.test(Ne)&&ne.push("running in Turbo/Uncompressed mode"),Ie=="IE"&&/\blike iPhone OS\b/.test(Ne)?(Fe=Pe(Ne.replace(/like iPhone OS/,"")),Ge=Fe.manufacturer,$e=Fe.product):/^iP/.test($e)?(Ie||(Ie="Safari"),Je="iOS"+((Fe=/ OS ([\d_]+)/i.exec(Ne))?" "+Fe[1].replace(/_/g,"."):"")):Ie=="Konqueror"&&/^Linux\b/i.test(Je)?Je="Kubuntu":Ge&&Ge!="Google"&&(/Chrome/.test(Ie)&&!/\bMobile Safari\b/i.test(Ne)||/\bVita\b/.test($e))||/\bAndroid\b/.test(Je)&&/^Chrome/.test(Ie)&&/\bVersion\//i.test(Ne)?(Ie="Android Browser",Je=/\bAndroid\b/.test(Je)?Je:"Android"):Ie=="Silk"?(/\bMobi/i.test(Ne)||(Je="Android",ne.unshift("desktop mode")),/Accelerated *= *true/i.test(Ne)&&ne.unshift("accelerated")):Ie=="UC Browser"&&/\bUCWEB\b/.test(Ne)?ne.push("speed mode"):Ie=="PaleMoon"&&(Fe=/\bFirefox\/([\d.]+)\b/.exec(Ne))?ne.push("identifying as Firefox "+Fe[1]):Ie=="Firefox"&&(Fe=/\b(Mobile|Tablet|TV)\b/i.exec(Ne))?(Je||(Je="Firefox OS"),$e||($e=Fe[1])):!Ie||(Fe=!/\bMinefield\b/i.test(Ne)&&/\b(?:Firefox|Safari)\b/.exec(Ie))?(Ie&&!$e&&/[\/,]|^[^(]+?\)/.test(Ne.slice(Ne.indexOf(Fe+"/")+8))&&(Ie=null),(Fe=$e||Ge||Je)&&($e||Ge||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Je))&&(Ie=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Je)?Je:Fe)+" Browser")):Ie=="Electron"&&(Fe=(/\bChrome\/([\d.]+)\b/.exec(Ne)||0)[1])&&ne.push("Chromium "+Fe),ze||(ze=At(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",Se(Ie),"(?:Firefox|Minefield|NetFront)"])),(Fe=ve=="iCab"&&parseFloat(ze)>3&&"WebKit"||/\bOpera\b/.test(Ie)&&(/\bOPR\b/.test(Ne)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(Ne)&&!/^(?:Trident|EdgeHTML)$/.test(ve)&&"WebKit"||!ve&&/\bMSIE\b/i.test(Ne)&&(Je=="Mac OS"?"Tasman":"Trident")||ve=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Ie)&&"NetFront")&&(ve=[Fe]),Ie=="IE"&&(Fe=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(Ne)||0)[1])?(Ie+=" Mobile",Je="Windows Phone "+(/\+$/.test(Fe)?Fe:Fe+".x"),ne.unshift("desktop mode")):/\bWPDesktop\b/i.test(Ne)?(Ie="IE Mobile",Je="Windows Phone 8.x",ne.unshift("desktop mode"),ze||(ze=(/\brv:([\d.]+)/.exec(Ne)||0)[1])):Ie!="IE"&&ve=="Trident"&&(Fe=/\brv:([\d.]+)/.exec(Ne))&&(Ie&&ne.push("identifying as "+Ie+(ze?" "+ze:"")),Ie="IE",ze=Fe[1]),Me){if(Ae(me,"global"))if(Ye&&(Fe=Ye.lang.System,Re=Fe.getProperty("os.arch"),Je=Je||Fe.getProperty("os.name")+" "+Fe.getProperty("os.version")),Xe){try{ze=me.require("ringo/engine").version.join("."),Ie="RingoJS"}catch(jt){(Fe=me.system)&&Fe.global.system==me.system&&(Ie="Narwhal",Je||(Je=Fe[0].os||null))}Ie||(Ie="Rhino")}else typeof me.process=="object"&&!me.process.browser&&(Fe=me.process)&&(typeof Fe.versions=="object"&&(typeof Fe.versions.electron=="string"?(ne.push("Node "+Fe.versions.node),Ie="Electron",ze=Fe.versions.electron):typeof Fe.versions.nw=="string"&&(ne.push("Chromium "+ze,"Node "+Fe.versions.node),Ie="NW.js",ze=Fe.versions.nw)),Ie||(Ie="Node.js",Re=Fe.arch,Je=Fe.platform,ze=/[\d.]+/.exec(Fe.version),ze=ze?ze[0]:null));else Be(Fe=me.runtime)==tt?(Ie="Adobe AIR",Je=Fe.flash.system.Capabilities.os):Be(Fe=me.phantom)==Ke?(Ie="PhantomJS",ze=(Fe=Fe.version||null)&&Fe.major+"."+Fe.minor+"."+Fe.patch):typeof ft.documentMode=="number"&&(Fe=/\bTrident\/(\d+)/i.exec(Ne))?(ze=[ze,ft.documentMode],(Fe=+Fe[1]+4)!=ze[1]&&(ne.push("IE "+ze[1]+" mode"),ve&&(ve[1]=""),ze[1]=Fe),ze=Ie=="IE"?String(ze[1].toFixed(1)):ze[0]):typeof ft.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Ie)&&(ne.push("masking as "+Ie+" "+ze),Ie="IE",ze="11.0",ve=["Trident"],Je="Windows");Je=Je&&ke(Je)}if(ze&&(Fe=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(ze)||/(?:alpha|beta)(?: ?\d)?/i.exec(Ne+";"+(Me&&Ze.appMinorVersion))||/\bMinefield\b/i.test(Ne)&&"a")&&(fe=/b/i.test(Fe)?"beta":"alpha",ze=ze.replace(RegExp(Fe+"\\+?$"),"")+(fe=="beta"?Qe:ot)+(/\d+\+?/.exec(Fe)||"")),Ie=="Fennec"||Ie=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Je))Ie="Firefox Mobile";else if(Ie=="Maxthon"&&ze)ze=ze.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test($e))$e=="Xbox 360"&&(Je=null),$e=="Xbox 360"&&/\bIEMobile\b/.test(Ne)&&ne.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Ie)||Ie&&!$e&&!/Browser|Mobi/.test(Ie))&&(Je=="Windows CE"||/Mobi/i.test(Ne)))Ie+=" Mobile";else if(Ie=="IE"&&Me)try{me.external===null&&ne.unshift("platform preview")}catch(jt){ne.unshift("embedded")}else(/\bBlackBerry\b/.test($e)||/\bBB10\b/.test(Ne))&&(Fe=(RegExp($e.replace(/ +/g," *")+"/([.\\d]+)","i").exec(Ne)||0)[1]||ze)?(Fe=[Fe,/BB10/.test(Ne)],Je=(Fe[1]?($e=null,Ge="BlackBerry"):"Device Software")+" "+Fe[0],ze=null):this!=De&&$e!="Wii"&&(Me&&at||/Opera/.test(Ie)&&/\b(?:MSIE|Firefox)\b/i.test(Ne)||Ie=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Je)||Ie=="IE"&&(Je&&!/^Win/.test(Je)&&ze>5.5||/\bWindows XP\b/.test(Je)&&ze>8||ze==8&&!/\bTrident\b/.test(Ne)))&&!re.test(Fe=Pe.call(De,Ne.replace(re,"")+";"))&&Fe.name&&(Fe="ing as "+Fe.name+((Fe=Fe.version)?" "+Fe:""),re.test(Ie)?(/\bIE\b/.test(Fe)&&Je=="Mac OS"&&(Je=null),Fe="identify"+Fe):(Fe="mask"+Fe,qe?Ie=ke(qe.replace(/([a-z])([A-Z])/g,"$1 $2")):Ie="Opera",/\bIE\b/.test(Fe)&&(Je=null),Me||(ze=null)),ve=["Presto"],ne.push(Fe));(Fe=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(Ne)||0)[1])&&(Fe=[parseFloat(Fe.replace(/\.(\d)$/,".0$1")),Fe],Ie=="Safari"&&Fe[1].slice(-1)=="+"?(Ie="WebKit Nightly",fe="alpha",ze=Fe[1].slice(0,-1)):(ze==Fe[1]||ze==(Fe[2]=(/\bSafari\/([\d.]+\+?)/i.exec(Ne)||0)[1]))&&(ze=null),Fe[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(Ne)||0)[1],Fe[0]==537.36&&Fe[2]==537.36&&parseFloat(Fe[1])>=28&&ve=="WebKit"&&(ve=["Blink"]),!Me||!_e&&!Fe[1]?(ve&&(ve[1]="like Safari"),Fe=(Fe=Fe[0],Fe<400?1:Fe<500?2:Fe<526?3:Fe<533?4:Fe<534?"4+":Fe<535?5:Fe<537?6:Fe<538?7:Fe<601?8:Fe<602?9:Fe<604?10:Fe<606?11:Fe<608?12:"12")):(ve&&(ve[1]="like Chrome"),Fe=Fe[1]||(Fe=Fe[0],Fe<530?1:Fe<532?2:Fe<532.05?3:Fe<533?4:Fe<534.03?5:Fe<534.07?6:Fe<534.1?7:Fe<534.13?8:Fe<534.16?9:Fe<534.24?10:Fe<534.3?11:Fe<535.01?12:Fe<535.02?"13+":Fe<535.07?15:Fe<535.11?16:Fe<535.19?17:Fe<536.05?18:Fe<536.1?19:Fe<537.01?20:Fe<537.11?"21+":Fe<537.13?23:Fe<537.18?24:Fe<537.24?25:Fe<537.36?26:ve!="Blink"?"27":"28")),ve&&(ve[1]+=" "+(Fe+=typeof Fe=="number"?".x":/[.+]/.test(Fe)?"":"+")),Ie=="Safari"&&(!ze||parseInt(ze)>45)?ze=Fe:Ie=="Chrome"&&/\bHeadlessChrome/i.test(Ne)&&ne.unshift("headless")),Ie=="Opera"&&(Fe=/\bzbov|zvav$/.exec(Je))?(Ie+=" ",ne.unshift("desktop mode"),Fe=="zvav"?(Ie+="Mini",ze=null):Ie+="Mobile",Je=Je.replace(RegExp(" *"+Fe+"$"),"")):Ie=="Safari"&&/\bChrome\b/.exec(ve&&ve[1])?(ne.unshift("desktop mode"),Ie="Chrome Mobile",ze=null,/\bOS X\b/.test(Je)?(Ge="Apple",Je="iOS 4.3+"):Je=null):/\bSRWare Iron\b/.test(Ie)&&!ze&&(ze=At("Chrome")),ze&&ze.indexOf(Fe=/[\d.]+$/.exec(Je))==0&&Ne.indexOf("/"+Fe+"-")>-1&&(Je=Oe(Je.replace(Fe,""))),Je&&Je.indexOf(Ie)!=-1&&!RegExp(Ie+" OS").test(Je)&&(Je=Je.replace(RegExp(" *"+Se(Ie)+" *"),"")),ve&&!/\b(?:Avant|Nook)\b/.test(Ie)&&(/Browser|Lunascape|Maxthon/.test(Ie)||Ie!="Safari"&&/^iOS/.test(Je)&&/\bSafari\b/.test(ve[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Ie)&&ve[1])&&(Fe=ve[ve.length-1])&&ne.push(Fe),ne.length&&(ne=["("+ne.join("; ")+")"]),Ge&&$e&&$e.indexOf(Ge)<0&&ne.push("on "+Ge),$e&&ne.push((/^on /.test(ne[ne.length-1])?"":"on ")+$e),Je&&(Fe=/ ([\d.+]+)$/.exec(Je),we=Fe&&Je.charAt(Je.length-Fe[0].length-1)=="/",Je={architecture:32,family:Fe&&!we?Je.replace(Fe[0],""):Je,version:Fe?Fe[1]:null,toString:function(){var jt=this.version;return this.family+(jt&&!we?" "+jt:"")+(this.architecture==64?" 64-bit":"")}}),(Fe=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Re))&&!/\bi686\b/i.test(Re)?(Je&&(Je.architecture=64,Je.family=Je.family.replace(RegExp(" *"+Fe),"")),Ie&&(/\bWOW64\b/i.test(Ne)||Me&&/\w(?:86|32)$/.test(Ze.cpuClass||Ze.platform)&&!/\bWin64; x64\b/i.test(Ne))&&ne.unshift("32-bit")):Je&&/^OS X/.test(Je.family)&&Ie=="Chrome"&&parseFloat(ze)>=39&&(Je.architecture=64),Ne||(Ne=null);var Dt={};return Dt.description=Ne,Dt.layout=ve&&ve[0],Dt.manufacturer=Ge,Dt.name=Ie,Dt.prerelease=fe,Dt.product=$e,Dt.ua=Ne,Dt.version=Ie&&ze,Dt.os=Je||{architecture:null,family:null,version:null,toString:function(){return"null"}},Dt.parse=Pe,Dt.toString=mt,Dt.version&&ne.unshift(ze),Dt.name&&ne.unshift(Ie),Je&&Ie&&!(Je==String(Je).split(" ")[0]&&(Je==Ie.split(" ")[0]||$e))&&ne.push($e?"("+Je+")":"on "+Je),ne.length&&(Dt.description=ne.join(" ")),Dt}var Le=Pe();typeof Te=="function"&&typeof Te.amd=="object"&&Te.amd?(ie.platform=Le,Te(function(){return Le})):ee&&ce?De(Le,function(Ne,me){ee[me]=Ne}):ie.platform=Le}).call(this)}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(y,je,be){(function(z){(function(){"use strict";typeof z=="undefined"||!z.version||z.version.indexOf("v0.")===0||z.version.indexOf("v1.")===0&&z.version.indexOf("v1.8.")!==0?je.exports={nextTick:E}:je.exports=z;function E(ie,oe,ee,ce){if(typeof ie!="function")throw new TypeError('"callback" argument must be a function');var x=arguments.length,ae,re;switch(x){case 0:case 1:return z.nextTick(ie);case 2:return z.nextTick(function(){ie.call(null,oe)});case 3:return z.nextTick(function(){ie.call(null,oe,ee)});case 4:return z.nextTick(function(){ie.call(null,oe,ee,ce)});default:for(ae=new Array(x-1),re=0;re<ae.length;)ae[re++]=arguments[re];return z.nextTick(function(){ie.apply(null,ae)})}}}).call(this)}).call(this,y("_process"))},{_process:467}],381:[function(y,je,be){var z=je.exports={},E,ie;function oe(){throw new Error("setTimeout has not been defined")}function ee(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=oe}catch(xe){E=oe}try{typeof clearTimeout=="function"?ie=clearTimeout:ie=ee}catch(xe){ie=ee}})();function ce(xe){if(E===setTimeout)return setTimeout(xe,0);if((E===oe||!E)&&setTimeout)return E=setTimeout,setTimeout(xe,0);try{return E(xe,0)}catch(ke){try{return E.call(null,xe,0)}catch(De){return E.call(this,xe,0)}}}function x(xe){if(ie===clearTimeout)return clearTimeout(xe);if((ie===ee||!ie)&&clearTimeout)return ie=clearTimeout,clearTimeout(xe);try{return ie(xe)}catch(ke){try{return ie.call(null,xe)}catch(De){return ie.call(this,xe)}}}var ae=[],re=!1,se,ue=-1;function pe(){!re||!se||(re=!1,se.length?ae=se.concat(ae):ue=-1,ae.length&&he())}function he(){if(!re){var xe=ce(pe);re=!0;for(var ke=ae.length;ke;){for(se=ae,ae=[];++ue<ke;)se&&se[ue].run();ue=-1,ke=ae.length}se=null,re=!1,x(xe)}}z.nextTick=function(xe){var ke=new Array(arguments.length-1);if(arguments.length>1)for(var De=1;De<arguments.length;De++)ke[De-1]=arguments[De];ae.push(new ye(xe,ke)),ae.length===1&&!re&&ce(he)};function ye(xe,ke){this.fun=xe,this.array=ke}ye.prototype.run=function(){this.fun.apply(null,this.array)},z.title="browser",z.browser=!0,z.env={},z.argv=[],z.version="",z.versions={};function ge(){}z.on=ge,z.addListener=ge,z.once=ge,z.off=ge,z.removeListener=ge,z.removeAllListeners=ge,z.emit=ge,z.prependListener=ge,z.prependOnceListener=ge,z.listeners=function(xe){return[]},z.binding=function(xe){throw new Error("process.binding is not supported")},z.cwd=function(){return"/"},z.chdir=function(xe){throw new Error("process.chdir is not supported")},z.umask=function(){return 0}},{}],382:[function(y,je,be){(function(z){(function(){(function(E){var ie=typeof be=="object"&&be&&!be.nodeType&&be,oe=typeof je=="object"&&je&&!je.nodeType&&je,ee=typeof z=="object"&&z;(ee.global===ee||ee.window===ee||ee.self===ee)&&(E=ee);var ce,x=2147483647,ae=36,re=1,se=26,ue=38,pe=700,he=72,ye=128,ge="-",xe=/^xn--/,ke=/[^\x20-\x7E]/,De=/[\x2E\u3002\uFF0E\uFF61]/g,Be={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ae=ae-re,Se=Math.floor,Ee=String.fromCharCode,Oe;function Pe(et){throw new RangeError(Be[et])}function Le(et,Ke){for(var Ye=et.length,Xe=[];Ye--;)Xe[Ye]=Ke(et[Ye]);return Xe}function Ne(et,Ke){var Ye=et.split("@"),Xe="";Ye.length>1&&(Xe=Ye[0]+"@",et=Ye[1]),et=et.replace(De,".");var ot=et.split("."),Qe=Le(ot,Ke).join(".");return Xe+Qe}function me(et){for(var Ke=[],Ye=0,Xe=et.length,ot,Qe;Ye<Xe;)ot=et.charCodeAt(Ye++),ot>=55296&&ot<=56319&&Ye<Xe?(Qe=et.charCodeAt(Ye++),(Qe&64512)==56320?Ke.push(((ot&1023)<<10)+(Qe&1023)+65536):(Ke.push(ot),Ye--)):Ke.push(ot);return Ke}function Ve(et){return Le(et,function(Ke){var Ye="";return Ke>65535&&(Ke-=65536,Ye+=Ee(Ke>>>10&1023|55296),Ke=56320|Ke&1023),Ye+=Ee(Ke),Ye}).join("")}function Ze(et){return et-48<10?et-22:et-65<26?et-65:et-97<26?et-97:ae}function We(et,Ke){return et+22+75*(et<26)-((Ke!=0)<<5)}function nt(et,Ke,Ye){var Xe=0;for(et=Ye?Se(et/pe):et>>1,et+=Se(et/Ke);et>Ae*se>>1;Xe+=ae)et=Se(et/Ae);return Se(Xe+(Ae+1)*et/(et+ue))}function _e(et){var Ke=[],Ye=et.length,Xe,ot=0,Qe=ye,ft=he,at,qe,Fe,Re,ne,fe,Me,ze,we;for(at=et.lastIndexOf(ge),at<0&&(at=0),qe=0;qe<at;++qe)et.charCodeAt(qe)>=128&&Pe("not-basic"),Ke.push(et.charCodeAt(qe));for(Fe=at>0?at+1:0;Fe<Ye;){for(Re=ot,ne=1,fe=ae;Fe>=Ye&&Pe("invalid-input"),Me=Ze(et.charCodeAt(Fe++)),(Me>=ae||Me>Se((x-ot)/ne))&&Pe("overflow"),ot+=Me*ne,ze=fe<=ft?re:fe>=ft+se?se:fe-ft,!(Me<ze);fe+=ae)we=ae-ze,ne>Se(x/we)&&Pe("overflow"),ne*=we;Xe=Ke.length+1,ft=nt(ot-Re,Xe,Re==0),Se(ot/Xe)>x-Qe&&Pe("overflow"),Qe+=Se(ot/Xe),ot%=Xe,Ke.splice(ot++,0,Qe)}return Ve(Ke)}function Ue(et){var Ke,Ye,Xe,ot,Qe,ft,at,qe,Fe,Re,ne,fe=[],Me,ze,we,ve;for(et=me(et),Me=et.length,Ke=ye,Ye=0,Qe=he,ft=0;ft<Me;++ft)ne=et[ft],ne<128&&fe.push(Ee(ne));for(Xe=ot=fe.length,ot&&fe.push(ge);Xe<Me;){for(at=x,ft=0;ft<Me;++ft)ne=et[ft],ne>=Ke&&ne<at&&(at=ne);for(ze=Xe+1,at-Ke>Se((x-Ye)/ze)&&Pe("overflow"),Ye+=(at-Ke)*ze,Ke=at,ft=0;ft<Me;++ft)if(ne=et[ft],ne<Ke&&++Ye>x&&Pe("overflow"),ne==Ke){for(qe=Ye,Fe=ae;Re=Fe<=Qe?re:Fe>=Qe+se?se:Fe-Qe,!(qe<Re);Fe+=ae)ve=qe-Re,we=ae-Re,fe.push(Ee(We(Re+ve%we,0))),qe=Se(ve/we);fe.push(Ee(We(qe,0))),Qe=nt(Ye,ze,Xe==ot),Ye=0,++Xe}++Ye,++Ke}return fe.join("")}function tt(et){return Ne(et,function(Ke){return xe.test(Ke)?_e(Ke.slice(4).toLowerCase()):Ke})}function rt(et){return Ne(et,function(Ke){return ke.test(Ke)?"xn--"+Ue(Ke):Ke})}if(ce={version:"1.4.1",ucs2:{decode:me,encode:Ve},decode:_e,encode:Ue,toASCII:rt,toUnicode:tt},typeof Te=="function"&&typeof Te.amd=="object"&&Te.amd)Te("punycode",function(){return ce});else if(ie&&oe)if(je.exports==ie)oe.exports=ce;else for(Oe in ce)ce.hasOwnProperty(Oe)&&(ie[Oe]=ce[Oe]);else E.punycode=ce})(this)}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(y,je,be){"use strict";function z(ie,oe){return Object.prototype.hasOwnProperty.call(ie,oe)}je.exports=function(ie,oe,ee,ce){oe=oe||"&",ee=ee||"=";var x={};if(typeof ie!="string"||ie.length===0)return x;var ae=/\+/g;ie=ie.split(oe);var re=1e3;ce&&typeof ce.maxKeys=="number"&&(re=ce.maxKeys);var se=ie.length;re>0&&se>re&&(se=re);for(var ue=0;ue<se;++ue){var pe=ie[ue].replace(ae,"%20"),he=pe.indexOf(ee),ye,ge,xe,ke;he>=0?(ye=pe.substr(0,he),ge=pe.substr(he+1)):(ye=pe,ge=""),xe=decodeURIComponent(ye),ke=decodeURIComponent(ge),z(x,xe)?E(x[xe])?x[xe].push(ke):x[xe]=[x[xe],ke]:x[xe]=ke}return x};var E=Array.isArray||function(ie){return Object.prototype.toString.call(ie)==="[object Array]"}},{}],384:[function(y,je,be){"use strict";var z=function(ee){switch(typeof ee){case"string":return ee;case"boolean":return ee?"true":"false";case"number":return isFinite(ee)?ee:"";default:return""}};je.exports=function(ee,ce,x,ae){return ce=ce||"&",x=x||"=",ee===null&&(ee=void 0),typeof ee=="object"?ie(oe(ee),function(re){var se=encodeURIComponent(z(re))+x;return E(ee[re])?ie(ee[re],function(ue){return se+encodeURIComponent(z(ue))}).join(ce):se+encodeURIComponent(z(ee[re]))}).join(ce):ae?encodeURIComponent(z(ae))+x+encodeURIComponent(z(ee)):""};var E=Array.isArray||function(ee){return Object.prototype.toString.call(ee)==="[object Array]"};function ie(ee,ce){if(ee.map)return ee.map(ce);for(var x=[],ae=0;ae<ee.length;ae++)x.push(ce(ee[ae],ae));return x}var oe=Object.keys||function(ee){var ce=[];for(var x in ee)Object.prototype.hasOwnProperty.call(ee,x)&&ce.push(x);return ce}},{}],385:[function(y,je,be){"use strict";be.decode=be.parse=y("./decode"),be.encode=be.stringify=y("./encode")},{"./decode":383,"./encode":384}],386:[function(y,je,be){"use strict";var z=y("process-nextick-args"),E=Object.keys||function(pe){var he=[];for(var ye in pe)he.push(ye);return he};je.exports=re;var ie=Object.create(y("core-util-is"));ie.inherits=y("inherits");var oe=y("./_stream_readable"),ee=y("./_stream_writable");ie.inherits(re,oe);for(var ce=E(ee.prototype),x=0;x<ce.length;x++){var ae=ce[x];re.prototype[ae]||(re.prototype[ae]=ee.prototype[ae])}function re(pe){if(!(this instanceof re))return new re(pe);oe.call(this,pe),ee.call(this,pe),pe&&pe.readable===!1&&(this.readable=!1),pe&&pe.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,pe&&pe.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",se)}Object.defineProperty(re.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function se(){this.allowHalfOpen||this._writableState.ended||z.nextTick(ue,this)}function ue(pe){pe.end()}Object.defineProperty(re.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(pe){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=pe,this._writableState.destroyed=pe)}}),re.prototype._destroy=function(pe,he){this.push(null),this.end(),z.nextTick(he,pe)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(y,je,be){"use strict";je.exports=ie;var z=y("./_stream_transform"),E=Object.create(y("core-util-is"));E.inherits=y("inherits"),E.inherits(ie,z);function ie(oe){if(!(this instanceof ie))return new ie(oe);z.call(this,oe)}ie.prototype._transform=function(oe,ee,ce){ce(null,oe)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(y,je,be){(function(z,E){(function(){"use strict";var ie=y("process-nextick-args");je.exports=Ee;var oe=y("isarray"),ee;Ee.ReadableState=Se;var ce=y("events").EventEmitter,x=function(ne,fe){return ne.listeners(fe).length},ae=y("./internal/streams/stream"),re=y("safe-buffer").Buffer,se=E.Uint8Array||function(){};function ue(ne){return re.from(ne)}function pe(ne){return re.isBuffer(ne)||ne instanceof se}var he=Object.create(y("core-util-is"));he.inherits=y("inherits");var ye=y("util"),ge=void 0;ye&&ye.debuglog?ge=ye.debuglog("stream"):ge=function(){};var xe=y("./internal/streams/BufferList"),ke=y("./internal/streams/destroy"),De;he.inherits(Ee,ae);var Be=["error","close","destroy","pause","resume"];function Ae(ne,fe,Me){if(typeof ne.prependListener=="function")return ne.prependListener(fe,Me);!ne._events||!ne._events[fe]?ne.on(fe,Me):oe(ne._events[fe])?ne._events[fe].unshift(Me):ne._events[fe]=[Me,ne._events[fe]]}function Se(ne,fe){ee=ee||y("./_stream_duplex"),ne=ne||{};var Me=fe instanceof ee;this.objectMode=!!ne.objectMode,Me&&(this.objectMode=this.objectMode||!!ne.readableObjectMode);var ze=ne.highWaterMark,we=ne.readableHighWaterMark,ve=this.objectMode?16:16*1024;ze||ze===0?this.highWaterMark=ze:Me&&(we||we===0)?this.highWaterMark=we:this.highWaterMark=ve,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new xe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=ne.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ne.encoding&&(De||(De=y("string_decoder/").StringDecoder),this.decoder=new De(ne.encoding),this.encoding=ne.encoding)}function Ee(ne){if(ee=ee||y("./_stream_duplex"),!(this instanceof Ee))return new Ee(ne);this._readableState=new Se(ne,this),this.readable=!0,ne&&(typeof ne.read=="function"&&(this._read=ne.read),typeof ne.destroy=="function"&&(this._destroy=ne.destroy)),ae.call(this)}Object.defineProperty(Ee.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ne){this._readableState&&(this._readableState.destroyed=ne)}}),Ee.prototype.destroy=ke.destroy,Ee.prototype._undestroy=ke.undestroy,Ee.prototype._destroy=function(ne,fe){this.push(null),fe(ne)},Ee.prototype.push=function(ne,fe){var Me=this._readableState,ze;return Me.objectMode?ze=!0:typeof ne=="string"&&(fe=fe||Me.defaultEncoding,fe!==Me.encoding&&(ne=re.from(ne,fe),fe=""),ze=!0),Oe(this,ne,fe,!1,ze)},Ee.prototype.unshift=function(ne){return Oe(this,ne,null,!0,!1)};function Oe(ne,fe,Me,ze,we){var ve=ne._readableState;if(fe===null)ve.reading=!1,We(ne,ve);else{var Ie;we||(Ie=Le(ve,fe)),Ie?ne.emit("error",Ie):ve.objectMode||fe&&fe.length>0?(typeof fe!="string"&&!ve.objectMode&&Object.getPrototypeOf(fe)!==re.prototype&&(fe=ue(fe)),ze?ve.endEmitted?ne.emit("error",new Error("stream.unshift() after end event")):Pe(ne,ve,fe,!0):ve.ended?ne.emit("error",new Error("stream.push() after EOF")):(ve.reading=!1,ve.decoder&&!Me?(fe=ve.decoder.write(fe),ve.objectMode||fe.length!==0?Pe(ne,ve,fe,!1):Ue(ne,ve)):Pe(ne,ve,fe,!1))):ze||(ve.reading=!1)}return Ne(ve)}function Pe(ne,fe,Me,ze){fe.flowing&&fe.length===0&&!fe.sync?(ne.emit("data",Me),ne.read(0)):(fe.length+=fe.objectMode?1:Me.length,ze?fe.buffer.unshift(Me):fe.buffer.push(Me),fe.needReadable&&nt(ne)),Ue(ne,fe)}function Le(ne,fe){var Me;return!pe(fe)&&typeof fe!="string"&&fe!==void 0&&!ne.objectMode&&(Me=new TypeError("Invalid non-string/buffer chunk")),Me}function Ne(ne){return!ne.ended&&(ne.needReadable||ne.length<ne.highWaterMark||ne.length===0)}Ee.prototype.isPaused=function(){return this._readableState.flowing===!1},Ee.prototype.setEncoding=function(ne){return De||(De=y("string_decoder/").StringDecoder),this._readableState.decoder=new De(ne),this._readableState.encoding=ne,this};var me=8388608;function Ve(ne){return ne>=me?ne=me:(ne--,ne|=ne>>>1,ne|=ne>>>2,ne|=ne>>>4,ne|=ne>>>8,ne|=ne>>>16,ne++),ne}function Ze(ne,fe){return ne<=0||fe.length===0&&fe.ended?0:fe.objectMode?1:ne!==ne?fe.flowing&&fe.length?fe.buffer.head.data.length:fe.length:(ne>fe.highWaterMark&&(fe.highWaterMark=Ve(ne)),ne<=fe.length?ne:fe.ended?fe.length:(fe.needReadable=!0,0))}Ee.prototype.read=function(ne){ge("read",ne),ne=parseInt(ne,10);var fe=this._readableState,Me=ne;if(ne!==0&&(fe.emittedReadable=!1),ne===0&&fe.needReadable&&(fe.length>=fe.highWaterMark||fe.ended))return ge("read: emitReadable",fe.length,fe.ended),fe.length===0&&fe.ended?qe(this):nt(this),null;if(ne=Ze(ne,fe),ne===0&&fe.ended)return fe.length===0&&qe(this),null;var ze=fe.needReadable;ge("need readable",ze),(fe.length===0||fe.length-ne<fe.highWaterMark)&&(ze=!0,ge("length less than watermark",ze)),fe.ended||fe.reading?(ze=!1,ge("reading or ended",ze)):ze&&(ge("do read"),fe.reading=!0,fe.sync=!0,fe.length===0&&(fe.needReadable=!0),this._read(fe.highWaterMark),fe.sync=!1,fe.reading||(ne=Ze(Me,fe)));var we;return ne>0?we=ot(ne,fe):we=null,we===null?(fe.needReadable=!0,ne=0):fe.length-=ne,fe.length===0&&(fe.ended||(fe.needReadable=!0),Me!==ne&&fe.ended&&qe(this)),we!==null&&this.emit("data",we),we};function We(ne,fe){if(!fe.ended){if(fe.decoder){var Me=fe.decoder.end();Me&&Me.length&&(fe.buffer.push(Me),fe.length+=fe.objectMode?1:Me.length)}fe.ended=!0,nt(ne)}}function nt(ne){var fe=ne._readableState;fe.needReadable=!1,fe.emittedReadable||(ge("emitReadable",fe.flowing),fe.emittedReadable=!0,fe.sync?ie.nextTick(_e,ne):_e(ne))}function _e(ne){ge("emit readable"),ne.emit("readable"),Xe(ne)}function Ue(ne,fe){fe.readingMore||(fe.readingMore=!0,ie.nextTick(tt,ne,fe))}function tt(ne,fe){for(var Me=fe.length;!fe.reading&&!fe.flowing&&!fe.ended&&fe.length<fe.highWaterMark&&(ge("maybeReadMore read 0"),ne.read(0),Me!==fe.length);)Me=fe.length;fe.readingMore=!1}Ee.prototype._read=function(ne){this.emit("error",new Error("_read() is not implemented"))},Ee.prototype.pipe=function(ne,fe){var Me=this,ze=this._readableState;switch(ze.pipesCount){case 0:ze.pipes=ne;break;case 1:ze.pipes=[ze.pipes,ne];break;default:ze.pipes.push(ne);break}ze.pipesCount+=1,ge("pipe count=%d opts=%j",ze.pipesCount,fe);var we=(!fe||fe.end!==!1)&&ne!==z.stdout&&ne!==z.stderr,ve=we?$e:mt;ze.endEmitted?ie.nextTick(ve):Me.once("end",ve),ne.on("unpipe",Ie);function Ie(Dt,jt){ge("onunpipe"),Dt===Me&&jt&&jt.hasUnpiped===!1&&(jt.hasUnpiped=!0,ut())}function $e(){ge("onend"),ne.end()}var Ge=rt(Me);ne.on("drain",Ge);var Je=!1;function ut(){ge("cleanup"),ne.removeListener("close",st),ne.removeListener("finish",At),ne.removeListener("drain",Ge),ne.removeListener("error",ct),ne.removeListener("unpipe",Ie),Me.removeListener("end",$e),Me.removeListener("end",mt),Me.removeListener("data",vt),Je=!0,ze.awaitDrain&&(!ne._writableState||ne._writableState.needDrain)&&Ge()}var lt=!1;Me.on("data",vt);function vt(Dt){ge("ondata"),lt=!1;var jt=ne.write(Dt);jt===!1&&!lt&&((ze.pipesCount===1&&ze.pipes===ne||ze.pipesCount>1&&Re(ze.pipes,ne)!==-1)&&!Je&&(ge("false write response, pause",Me._readableState.awaitDrain),Me._readableState.awaitDrain++,lt=!0),Me.pause())}function ct(Dt){ge("onerror",Dt),mt(),ne.removeListener("error",ct),x(ne,"error")===0&&ne.emit("error",Dt)}Ae(ne,"error",ct);function st(){ne.removeListener("finish",At),mt()}ne.once("close",st);function At(){ge("onfinish"),ne.removeListener("close",st),mt()}ne.once("finish",At);function mt(){ge("unpipe"),Me.unpipe(ne)}return ne.emit("pipe",Me),ze.flowing||(ge("pipe resume"),Me.resume()),ne};function rt(ne){return function(){var fe=ne._readableState;ge("pipeOnDrain",fe.awaitDrain),fe.awaitDrain&&fe.awaitDrain--,fe.awaitDrain===0&&x(ne,"data")&&(fe.flowing=!0,Xe(ne))}}Ee.prototype.unpipe=function(ne){var fe=this._readableState,Me={hasUnpiped:!1};if(fe.pipesCount===0)return this;if(fe.pipesCount===1)return ne&&ne!==fe.pipes?this:(ne||(ne=fe.pipes),fe.pipes=null,fe.pipesCount=0,fe.flowing=!1,ne&&ne.emit("unpipe",this,Me),this);if(!ne){var ze=fe.pipes,we=fe.pipesCount;fe.pipes=null,fe.pipesCount=0,fe.flowing=!1;for(var ve=0;ve<we;ve++)ze[ve].emit("unpipe",this,Me);return this}var Ie=Re(fe.pipes,ne);return Ie===-1?this:(fe.pipes.splice(Ie,1),fe.pipesCount-=1,fe.pipesCount===1&&(fe.pipes=fe.pipes[0]),ne.emit("unpipe",this,Me),this)},Ee.prototype.on=function(ne,fe){var Me=ae.prototype.on.call(this,ne,fe);if(ne==="data")this._readableState.flowing!==!1&&this.resume();else if(ne==="readable"){var ze=this._readableState;!ze.endEmitted&&!ze.readableListening&&(ze.readableListening=ze.needReadable=!0,ze.emittedReadable=!1,ze.reading?ze.length&&nt(this):ie.nextTick(et,this))}return Me},Ee.prototype.addListener=Ee.prototype.on;function et(ne){ge("readable nexttick read 0"),ne.read(0)}Ee.prototype.resume=function(){var ne=this._readableState;return ne.flowing||(ge("resume"),ne.flowing=!0,Ke(this,ne)),this};function Ke(ne,fe){fe.resumeScheduled||(fe.resumeScheduled=!0,ie.nextTick(Ye,ne,fe))}function Ye(ne,fe){fe.reading||(ge("resume read 0"),ne.read(0)),fe.resumeScheduled=!1,fe.awaitDrain=0,ne.emit("resume"),Xe(ne),fe.flowing&&!fe.reading&&ne.read(0)}Ee.prototype.pause=function(){return ge("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ge("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Xe(ne){var fe=ne._readableState;for(ge("flow",fe.flowing);fe.flowing&&ne.read()!==null;);}Ee.prototype.wrap=function(ne){var fe=this,Me=this._readableState,ze=!1;ne.on("end",function(){if(ge("wrapped end"),Me.decoder&&!Me.ended){var Ie=Me.decoder.end();Ie&&Ie.length&&fe.push(Ie)}fe.push(null)}),ne.on("data",function(Ie){if(ge("wrapped data"),Me.decoder&&(Ie=Me.decoder.write(Ie)),!(Me.objectMode&&Ie==null)&&!(!Me.objectMode&&(!Ie||!Ie.length))){var $e=fe.push(Ie);$e||(ze=!0,ne.pause())}});for(var we in ne)this[we]===void 0&&typeof ne[we]=="function"&&(this[we]=function(Ie){return function(){return ne[Ie].apply(ne,arguments)}}(we));for(var ve=0;ve<Be.length;ve++)ne.on(Be[ve],this.emit.bind(this,Be[ve]));return this._read=function(Ie){ge("wrapped _read",Ie),ze&&(ze=!1,ne.resume())},this},Object.defineProperty(Ee.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Ee._fromList=ot;function ot(ne,fe){if(fe.length===0)return null;var Me;return fe.objectMode?Me=fe.buffer.shift():!ne||ne>=fe.length?(fe.decoder?Me=fe.buffer.join(""):fe.buffer.length===1?Me=fe.buffer.head.data:Me=fe.buffer.concat(fe.length),fe.buffer.clear()):Me=Qe(ne,fe.buffer,fe.decoder),Me}function Qe(ne,fe,Me){var ze;return ne<fe.head.data.length?(ze=fe.head.data.slice(0,ne),fe.head.data=fe.head.data.slice(ne)):ne===fe.head.data.length?ze=fe.shift():ze=Me?ft(ne,fe):at(ne,fe),ze}function ft(ne,fe){var Me=fe.head,ze=1,we=Me.data;for(ne-=we.length;Me=Me.next;){var ve=Me.data,Ie=ne>ve.length?ve.length:ne;if(Ie===ve.length?we+=ve:we+=ve.slice(0,ne),ne-=Ie,ne===0){Ie===ve.length?(++ze,Me.next?fe.head=Me.next:fe.head=fe.tail=null):(fe.head=Me,Me.data=ve.slice(Ie));break}++ze}return fe.length-=ze,we}function at(ne,fe){var Me=re.allocUnsafe(ne),ze=fe.head,we=1;for(ze.data.copy(Me),ne-=ze.data.length;ze=ze.next;){var ve=ze.data,Ie=ne>ve.length?ve.length:ne;if(ve.copy(Me,Me.length-ne,0,Ie),ne-=Ie,ne===0){Ie===ve.length?(++we,ze.next?fe.head=ze.next:fe.head=fe.tail=null):(fe.head=ze,ze.data=ve.slice(Ie));break}++we}return fe.length-=we,Me}function qe(ne){var fe=ne._readableState;if(fe.length>0)throw new Error('"endReadable()" called on non-empty stream');fe.endEmitted||(fe.ended=!0,ie.nextTick(Fe,fe,ne))}function Fe(ne,fe){!ne.endEmitted&&ne.length===0&&(ne.endEmitted=!0,fe.readable=!1,fe.emit("end"))}function Re(ne,fe){for(var Me=0,ze=ne.length;Me<ze;Me++)if(ne[Me]===fe)return Me;return-1}}).call(this)}).call(this,y("_process"),typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":386,"./internal/streams/BufferList":391,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,events:344,inherits:364,isarray:370,"process-nextick-args":380,"safe-buffer":396,"string_decoder/":413,util:89}],389:[function(y,je,be){"use strict";je.exports=oe;var z=y("./_stream_duplex"),E=Object.create(y("core-util-is"));E.inherits=y("inherits"),E.inherits(oe,z);function ie(x,ae){var re=this._transformState;re.transforming=!1;var se=re.writecb;if(!se)return this.emit("error",new Error("write callback called multiple times"));re.writechunk=null,re.writecb=null,ae!=null&&this.push(ae),se(x);var ue=this._readableState;ue.reading=!1,(ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}function oe(x){if(!(this instanceof oe))return new oe(x);z.call(this,x),this._transformState={afterTransform:ie.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,x&&(typeof x.transform=="function"&&(this._transform=x.transform),typeof x.flush=="function"&&(this._flush=x.flush)),this.on("prefinish",ee)}function ee(){var x=this;typeof this._flush=="function"?this._flush(function(ae,re){ce(x,ae,re)}):ce(this,null,null)}oe.prototype.push=function(x,ae){return this._transformState.needTransform=!1,z.prototype.push.call(this,x,ae)},oe.prototype._transform=function(x,ae,re){throw new Error("_transform() is not implemented")},oe.prototype._write=function(x,ae,re){var se=this._transformState;if(se.writecb=re,se.writechunk=x,se.writeencoding=ae,!se.transforming){var ue=this._readableState;(se.needTransform||ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}},oe.prototype._read=function(x){var ae=this._transformState;ae.writechunk!==null&&ae.writecb&&!ae.transforming?(ae.transforming=!0,this._transform(ae.writechunk,ae.writeencoding,ae.afterTransform)):ae.needTransform=!0},oe.prototype._destroy=function(x,ae){var re=this;z.prototype._destroy.call(this,x,function(se){ae(se),re.emit("close")})};function ce(x,ae,re){if(ae)return x.emit("error",ae);if(re!=null&&x.push(re),x._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(x._transformState.transforming)throw new Error("Calling transform done when still transforming");return x.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(y,je,be){(function(z,E,ie){(function(){"use strict";var oe=y("process-nextick-args");je.exports=Ae;function ee(Ye,Xe,ot){this.chunk=Ye,this.encoding=Xe,this.callback=ot,this.next=null}function ce(Ye){var Xe=this;this.next=null,this.entry=null,this.finish=function(){Ke(Xe,Ye)}}var x=!z.browser&&["v0.10","v0.9."].indexOf(z.version.slice(0,5))>-1?ie:oe.nextTick,ae;Ae.WritableState=De;var re=Object.create(y("core-util-is"));re.inherits=y("inherits");var se={deprecate:y("util-deprecate")},ue=y("./internal/streams/stream"),pe=y("safe-buffer").Buffer,he=E.Uint8Array||function(){};function ye(Ye){return pe.from(Ye)}function ge(Ye){return pe.isBuffer(Ye)||Ye instanceof he}var xe=y("./internal/streams/destroy");re.inherits(Ae,ue);function ke(){}function De(Ye,Xe){ae=ae||y("./_stream_duplex"),Ye=Ye||{};var ot=Xe instanceof ae;this.objectMode=!!Ye.objectMode,ot&&(this.objectMode=this.objectMode||!!Ye.writableObjectMode);var Qe=Ye.highWaterMark,ft=Ye.writableHighWaterMark,at=this.objectMode?16:16*1024;Qe||Qe===0?this.highWaterMark=Qe:ot&&(ft||ft===0)?this.highWaterMark=ft:this.highWaterMark=at,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var qe=Ye.decodeStrings===!1;this.decodeStrings=!qe,this.defaultEncoding=Ye.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Fe){Ve(Xe,Fe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new ce(this)}De.prototype.getBuffer=function(){for(var Xe=this.bufferedRequest,ot=[];Xe;)ot.push(Xe),Xe=Xe.next;return ot},function(){try{Object.defineProperty(De.prototype,"buffer",{get:se.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Ye){}}();var Be;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Be=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ae,Symbol.hasInstance,{value:function(Ye){return Be.call(this,Ye)?!0:this!==Ae?!1:Ye&&Ye._writableState instanceof De}})):Be=function(Ye){return Ye instanceof this};function Ae(Ye){if(ae=ae||y("./_stream_duplex"),!Be.call(Ae,this)&&!(this instanceof ae))return new Ae(Ye);this._writableState=new De(Ye,this),this.writable=!0,Ye&&(typeof Ye.write=="function"&&(this._write=Ye.write),typeof Ye.writev=="function"&&(this._writev=Ye.writev),typeof Ye.destroy=="function"&&(this._destroy=Ye.destroy),typeof Ye.final=="function"&&(this._final=Ye.final)),ue.call(this)}Ae.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Se(Ye,Xe){var ot=new Error("write after end");Ye.emit("error",ot),oe.nextTick(Xe,ot)}function Ee(Ye,Xe,ot,Qe){var ft=!0,at=!1;return ot===null?at=new TypeError("May not write null values to stream"):typeof ot!="string"&&ot!==void 0&&!Xe.objectMode&&(at=new TypeError("Invalid non-string/buffer chunk")),at&&(Ye.emit("error",at),oe.nextTick(Qe,at),ft=!1),ft}Ae.prototype.write=function(Ye,Xe,ot){var Qe=this._writableState,ft=!1,at=!Qe.objectMode&&ge(Ye);return at&&!pe.isBuffer(Ye)&&(Ye=ye(Ye)),typeof Xe=="function"&&(ot=Xe,Xe=null),at?Xe="buffer":Xe||(Xe=Qe.defaultEncoding),typeof ot!="function"&&(ot=ke),Qe.ended?Se(this,ot):(at||Ee(this,Qe,Ye,ot))&&(Qe.pendingcb++,ft=Pe(this,Qe,at,Ye,Xe,ot)),ft},Ae.prototype.cork=function(){var Ye=this._writableState;Ye.corked++},Ae.prototype.uncork=function(){var Ye=this._writableState;Ye.corked&&(Ye.corked--,!Ye.writing&&!Ye.corked&&!Ye.finished&&!Ye.bufferProcessing&&Ye.bufferedRequest&&nt(this,Ye))},Ae.prototype.setDefaultEncoding=function(Xe){if(typeof Xe=="string"&&(Xe=Xe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Xe+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Xe);return this._writableState.defaultEncoding=Xe,this};function Oe(Ye,Xe,ot){return!Ye.objectMode&&Ye.decodeStrings!==!1&&typeof Xe=="string"&&(Xe=pe.from(Xe,ot)),Xe}Object.defineProperty(Ae.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Pe(Ye,Xe,ot,Qe,ft,at){if(!ot){var qe=Oe(Xe,Qe,ft);Qe!==qe&&(ot=!0,ft="buffer",Qe=qe)}var Fe=Xe.objectMode?1:Qe.length;Xe.length+=Fe;var Re=Xe.length<Xe.highWaterMark;if(Re||(Xe.needDrain=!0),Xe.writing||Xe.corked){var ne=Xe.lastBufferedRequest;Xe.lastBufferedRequest={chunk:Qe,encoding:ft,isBuf:ot,callback:at,next:null},ne?ne.next=Xe.lastBufferedRequest:Xe.bufferedRequest=Xe.lastBufferedRequest,Xe.bufferedRequestCount+=1}else Le(Ye,Xe,!1,Fe,Qe,ft,at);return Re}function Le(Ye,Xe,ot,Qe,ft,at,qe){Xe.writelen=Qe,Xe.writecb=qe,Xe.writing=!0,Xe.sync=!0,ot?Ye._writev(ft,Xe.onwrite):Ye._write(ft,at,Xe.onwrite),Xe.sync=!1}function Ne(Ye,Xe,ot,Qe,ft){--Xe.pendingcb,ot?(oe.nextTick(ft,Qe),oe.nextTick(rt,Ye,Xe),Ye._writableState.errorEmitted=!0,Ye.emit("error",Qe)):(ft(Qe),Ye._writableState.errorEmitted=!0,Ye.emit("error",Qe),rt(Ye,Xe))}function me(Ye){Ye.writing=!1,Ye.writecb=null,Ye.length-=Ye.writelen,Ye.writelen=0}function Ve(Ye,Xe){var ot=Ye._writableState,Qe=ot.sync,ft=ot.writecb;if(me(ot),Xe)Ne(Ye,ot,Qe,Xe,ft);else{var at=_e(ot);!at&&!ot.corked&&!ot.bufferProcessing&&ot.bufferedRequest&&nt(Ye,ot),Qe?x(Ze,Ye,ot,at,ft):Ze(Ye,ot,at,ft)}}function Ze(Ye,Xe,ot,Qe){ot||We(Ye,Xe),Xe.pendingcb--,Qe(),rt(Ye,Xe)}function We(Ye,Xe){Xe.length===0&&Xe.needDrain&&(Xe.needDrain=!1,Ye.emit("drain"))}function nt(Ye,Xe){Xe.bufferProcessing=!0;var ot=Xe.bufferedRequest;if(Ye._writev&&ot&&ot.next){var Qe=Xe.bufferedRequestCount,ft=new Array(Qe),at=Xe.corkedRequestsFree;at.entry=ot;for(var qe=0,Fe=!0;ot;)ft[qe]=ot,ot.isBuf||(Fe=!1),ot=ot.next,qe+=1;ft.allBuffers=Fe,Le(Ye,Xe,!0,Xe.length,ft,"",at.finish),Xe.pendingcb++,Xe.lastBufferedRequest=null,at.next?(Xe.corkedRequestsFree=at.next,at.next=null):Xe.corkedRequestsFree=new ce(Xe),Xe.bufferedRequestCount=0}else{for(;ot;){var Re=ot.chunk,ne=ot.encoding,fe=ot.callback,Me=Xe.objectMode?1:Re.length;if(Le(Ye,Xe,!1,Me,Re,ne,fe),ot=ot.next,Xe.bufferedRequestCount--,Xe.writing)break}ot===null&&(Xe.lastBufferedRequest=null)}Xe.bufferedRequest=ot,Xe.bufferProcessing=!1}Ae.prototype._write=function(Ye,Xe,ot){ot(new Error("_write() is not implemented"))},Ae.prototype._writev=null,Ae.prototype.end=function(Ye,Xe,ot){var Qe=this._writableState;typeof Ye=="function"?(ot=Ye,Ye=null,Xe=null):typeof Xe=="function"&&(ot=Xe,Xe=null),Ye!=null&&this.write(Ye,Xe),Qe.corked&&(Qe.corked=1,this.uncork()),!Qe.ending&&!Qe.finished&&et(this,Qe,ot)};function _e(Ye){return Ye.ending&&Ye.length===0&&Ye.bufferedRequest===null&&!Ye.finished&&!Ye.writing}function Ue(Ye,Xe){Ye._final(function(ot){Xe.pendingcb--,ot&&Ye.emit("error",ot),Xe.prefinished=!0,Ye.emit("prefinish"),rt(Ye,Xe)})}function tt(Ye,Xe){!Xe.prefinished&&!Xe.finalCalled&&(typeof Ye._final=="function"?(Xe.pendingcb++,Xe.finalCalled=!0,oe.nextTick(Ue,Ye,Xe)):(Xe.prefinished=!0,Ye.emit("prefinish")))}function rt(Ye,Xe){var ot=_e(Xe);return ot&&(tt(Ye,Xe),Xe.pendingcb===0&&(Xe.finished=!0,Ye.emit("finish"))),ot}function et(Ye,Xe,ot){Xe.ending=!0,rt(Ye,Xe),ot&&(Xe.finished?oe.nextTick(ot):Ye.once("finish",ot)),Xe.ended=!0,Ye.writable=!1}function Ke(Ye,Xe,ot){var Qe=Ye.entry;for(Ye.entry=null;Qe;){var ft=Qe.callback;Xe.pendingcb--,ft(ot),Qe=Qe.next}Xe.corkedRequestsFree?Xe.corkedRequestsFree.next=Ye:Xe.corkedRequestsFree=Ye}Object.defineProperty(Ae.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Ye){this._writableState&&(this._writableState.destroyed=Ye)}}),Ae.prototype.destroy=xe.destroy,Ae.prototype._undestroy=xe.undestroy,Ae.prototype._destroy=function(Ye,Xe){this.end(),Xe(Ye)}}).call(this)}).call(this,y("_process"),typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},y("timers").setImmediate)},{"./_stream_duplex":386,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,inherits:364,"process-nextick-args":380,"safe-buffer":396,timers:414,"util-deprecate":416}],391:[function(y,je,be){"use strict";function z(ee,ce){if(!(ee instanceof ce))throw new TypeError("Cannot call a class as a function")}var E=y("safe-buffer").Buffer,ie=y("util");function oe(ee,ce,x){ee.copy(ce,x)}je.exports=function(){function ee(){z(this,ee),this.head=null,this.tail=null,this.length=0}return ee.prototype.push=function(x){var ae={data:x,next:null};this.length>0?this.tail.next=ae:this.head=ae,this.tail=ae,++this.length},ee.prototype.unshift=function(x){var ae={data:x,next:this.head};this.length===0&&(this.tail=ae),this.head=ae,++this.length},ee.prototype.shift=function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}},ee.prototype.clear=function(){this.head=this.tail=null,this.length=0},ee.prototype.join=function(x){if(this.length===0)return"";for(var ae=this.head,re=""+ae.data;ae=ae.next;)re+=x+ae.data;return re},ee.prototype.concat=function(x){if(this.length===0)return E.alloc(0);if(this.length===1)return this.head.data;for(var ae=E.allocUnsafe(x>>>0),re=this.head,se=0;re;)oe(re.data,ae,se),se+=re.data.length,re=re.next;return ae},ee}(),ie&&ie.inspect&&ie.inspect.custom&&(je.exports.prototype[ie.inspect.custom]=function(){var ee=ie.inspect({length:this.length});return this.constructor.name+" "+ee})},{"safe-buffer":396,util:89}],392:[function(y,je,be){"use strict";var z=y("process-nextick-args");function E(ee,ce){var x=this,ae=this._readableState&&this._readableState.destroyed,re=this._writableState&&this._writableState.destroyed;return ae||re?(ce?ce(ee):ee&&(!this._writableState||!this._writableState.errorEmitted)&&z.nextTick(oe,this,ee),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ee||null,function(se){!ce&&se?(z.nextTick(oe,x,se),x._writableState&&(x._writableState.errorEmitted=!0)):ce&&ce(se)}),this)}function ie(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function oe(ee,ce){ee.emit("error",ce)}je.exports={destroy:E,undestroy:ie}},{"process-nextick-args":380}],393:[function(y,je,be){je.exports=y("events").EventEmitter},{events:344}],394:[function(y,je,be){be=je.exports=y("./lib/_stream_readable.js"),be.Stream=be,be.Readable=be,be.Writable=y("./lib/_stream_writable.js"),be.Duplex=y("./lib/_stream_duplex.js"),be.Transform=y("./lib/_stream_transform.js"),be.PassThrough=y("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":386,"./lib/_stream_passthrough.js":387,"./lib/_stream_readable.js":388,"./lib/_stream_transform.js":389,"./lib/_stream_writable.js":390}],395:[function(y,je,be){var z=function(E){"use strict";var ie=Object.prototype,oe=ie.hasOwnProperty,ee,ce=typeof Symbol=="function"?Symbol:{},x=ce.iterator||"@@iterator",ae=ce.asyncIterator||"@@asyncIterator",re=ce.toStringTag||"@@toStringTag";function se(tt,rt,et){return Object.defineProperty(tt,rt,{value:et,enumerable:!0,configurable:!0,writable:!0}),tt[rt]}try{se({},"")}catch(tt){se=function(rt,et,Ke){return rt[et]=Ke}}function ue(tt,rt,et,Ke){var Ye=rt&&rt.prototype instanceof De?rt:De,Xe=Object.create(Ye.prototype),ot=new nt(Ke||[]);return Xe._invoke=me(tt,et,ot),Xe}E.wrap=ue;function pe(tt,rt,et){try{return{type:"normal",arg:tt.call(rt,et)}}catch(Ke){return{type:"throw",arg:Ke}}}var he="suspendedStart",ye="suspendedYield",ge="executing",xe="completed",ke={};function De(){}function Be(){}function Ae(){}var Se={};se(Se,x,function(){return this});var Ee=Object.getPrototypeOf,Oe=Ee&&Ee(Ee(_e([])));Oe&&Oe!==ie&&oe.call(Oe,x)&&(Se=Oe);var Pe=Ae.prototype=De.prototype=Object.create(Se);Be.prototype=Ae,se(Pe,"constructor",Ae),se(Ae,"constructor",Be),Be.displayName=se(Ae,re,"GeneratorFunction");function Le(tt){["next","throw","return"].forEach(function(rt){se(tt,rt,function(et){return this._invoke(rt,et)})})}E.isGeneratorFunction=function(tt){var rt=typeof tt=="function"&&tt.constructor;return rt?rt===Be||(rt.displayName||rt.name)==="GeneratorFunction":!1},E.mark=function(tt){return Object.setPrototypeOf?Object.setPrototypeOf(tt,Ae):(tt.__proto__=Ae,se(tt,re,"GeneratorFunction")),tt.prototype=Object.create(Pe),tt},E.awrap=function(tt){return{__await:tt}};function Ne(tt,rt){function et(Xe,ot,Qe,ft){var at=pe(tt[Xe],tt,ot);if(at.type==="throw")ft(at.arg);else{var qe=at.arg,Fe=qe.value;return Fe&&typeof Fe=="object"&&oe.call(Fe,"__await")?rt.resolve(Fe.__await).then(function(Re){et("next",Re,Qe,ft)},function(Re){et("throw",Re,Qe,ft)}):rt.resolve(Fe).then(function(Re){qe.value=Re,Qe(qe)},function(Re){return et("throw",Re,Qe,ft)})}}var Ke;function Ye(Xe,ot){function Qe(){return new rt(function(ft,at){et(Xe,ot,ft,at)})}return Ke=Ke?Ke.then(Qe,Qe):Qe()}this._invoke=Ye}Le(Ne.prototype),se(Ne.prototype,ae,function(){return this}),E.AsyncIterator=Ne,E.async=function(tt,rt,et,Ke,Ye){Ye===void 0&&(Ye=Promise);var Xe=new Ne(ue(tt,rt,et,Ke),Ye);return E.isGeneratorFunction(rt)?Xe:Xe.next().then(function(ot){return ot.done?ot.value:Xe.next()})};function me(tt,rt,et){var Ke=he;return function(Xe,ot){if(Ke===ge)throw new Error("Generator is already running");if(Ke===xe){if(Xe==="throw")throw ot;return Ue()}for(et.method=Xe,et.arg=ot;;){var Qe=et.delegate;if(Qe){var ft=Ve(Qe,et);if(ft){if(ft===ke)continue;return ft}}if(et.method==="next")et.sent=et._sent=et.arg;else if(et.method==="throw"){if(Ke===he)throw Ke=xe,et.arg;et.dispatchException(et.arg)}else et.method==="return"&&et.abrupt("return",et.arg);Ke=ge;var at=pe(tt,rt,et);if(at.type==="normal"){if(Ke=et.done?xe:ye,at.arg===ke)continue;return{value:at.arg,done:et.done}}else at.type==="throw"&&(Ke=xe,et.method="throw",et.arg=at.arg)}}}function Ve(tt,rt){var et=tt.iterator[rt.method];if(et===ee){if(rt.delegate=null,rt.method==="throw"){if(tt.iterator.return&&(rt.method="return",rt.arg=ee,Ve(tt,rt),rt.method==="throw"))return ke;rt.method="throw",rt.arg=new TypeError("The iterator does not provide a 'throw' method")}return ke}var Ke=pe(et,tt.iterator,rt.arg);if(Ke.type==="throw")return rt.method="throw",rt.arg=Ke.arg,rt.delegate=null,ke;var Ye=Ke.arg;if(!Ye)return rt.method="throw",rt.arg=new TypeError("iterator result is not an object"),rt.delegate=null,ke;if(Ye.done)rt[tt.resultName]=Ye.value,rt.next=tt.nextLoc,rt.method!=="return"&&(rt.method="next",rt.arg=ee);else return Ye;return rt.delegate=null,ke}Le(Pe),se(Pe,re,"Generator"),se(Pe,x,function(){return this}),se(Pe,"toString",function(){return"[object Generator]"});function Ze(tt){var rt={tryLoc:tt[0]};1 in tt&&(rt.catchLoc=tt[1]),2 in tt&&(rt.finallyLoc=tt[2],rt.afterLoc=tt[3]),this.tryEntries.push(rt)}function We(tt){var rt=tt.completion||{};rt.type="normal",delete rt.arg,tt.completion=rt}function nt(tt){this.tryEntries=[{tryLoc:"root"}],tt.forEach(Ze,this),this.reset(!0)}E.keys=function(tt){var rt=[];for(var et in tt)rt.push(et);return rt.reverse(),function Ke(){for(;rt.length;){var Ye=rt.pop();if(Ye in tt)return Ke.value=Ye,Ke.done=!1,Ke}return Ke.done=!0,Ke}};function _e(tt){if(tt){var rt=tt[x];if(rt)return rt.call(tt);if(typeof tt.next=="function")return tt;if(!isNaN(tt.length)){var et=-1,Ke=function Ye(){for(;++et<tt.length;)if(oe.call(tt,et))return Ye.value=tt[et],Ye.done=!1,Ye;return Ye.value=ee,Ye.done=!0,Ye};return Ke.next=Ke}}return{next:Ue}}E.values=_e;function Ue(){return{value:ee,done:!0}}return nt.prototype={constructor:nt,reset:function(tt){if(this.prev=0,this.next=0,this.sent=this._sent=ee,this.done=!1,this.delegate=null,this.method="next",this.arg=ee,this.tryEntries.forEach(We),!tt)for(var rt in this)rt.charAt(0)==="t"&&oe.call(this,rt)&&!isNaN(+rt.slice(1))&&(this[rt]=ee)},stop:function(){this.done=!0;var tt=this.tryEntries[0],rt=tt.completion;if(rt.type==="throw")throw rt.arg;return this.rval},dispatchException:function(tt){if(this.done)throw tt;var rt=this;function et(ft,at){return Xe.type="throw",Xe.arg=tt,rt.next=ft,at&&(rt.method="next",rt.arg=ee),!!at}for(var Ke=this.tryEntries.length-1;Ke>=0;--Ke){var Ye=this.tryEntries[Ke],Xe=Ye.completion;if(Ye.tryLoc==="root")return et("end");if(Ye.tryLoc<=this.prev){var ot=oe.call(Ye,"catchLoc"),Qe=oe.call(Ye,"finallyLoc");if(ot&&Qe){if(this.prev<Ye.catchLoc)return et(Ye.catchLoc,!0);if(this.prev<Ye.finallyLoc)return et(Ye.finallyLoc)}else if(ot){if(this.prev<Ye.catchLoc)return et(Ye.catchLoc,!0)}else if(Qe){if(this.prev<Ye.finallyLoc)return et(Ye.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(tt,rt){for(var et=this.tryEntries.length-1;et>=0;--et){var Ke=this.tryEntries[et];if(Ke.tryLoc<=this.prev&&oe.call(Ke,"finallyLoc")&&this.prev<Ke.finallyLoc){var Ye=Ke;break}}Ye&&(tt==="break"||tt==="continue")&&Ye.tryLoc<=rt&&rt<=Ye.finallyLoc&&(Ye=null);var Xe=Ye?Ye.completion:{};return Xe.type=tt,Xe.arg=rt,Ye?(this.method="next",this.next=Ye.finallyLoc,ke):this.complete(Xe)},complete:function(tt,rt){if(tt.type==="throw")throw tt.arg;return tt.type==="break"||tt.type==="continue"?this.next=tt.arg:tt.type==="return"?(this.rval=this.arg=tt.arg,this.method="return",this.next="end"):tt.type==="normal"&&rt&&(this.next=rt),ke},finish:function(tt){for(var rt=this.tryEntries.length-1;rt>=0;--rt){var et=this.tryEntries[rt];if(et.finallyLoc===tt)return this.complete(et.completion,et.afterLoc),We(et),ke}},catch:function(tt){for(var rt=this.tryEntries.length-1;rt>=0;--rt){var et=this.tryEntries[rt];if(et.tryLoc===tt){var Ke=et.completion;if(Ke.type==="throw"){var Ye=Ke.arg;We(et)}return Ye}}throw new Error("illegal catch attempt")},delegateYield:function(tt,rt,et){return this.delegate={iterator:_e(tt),resultName:rt,nextLoc:et},this.method==="next"&&(this.arg=ee),ke}},E}(typeof je=="object"?je.exports:{});try{regeneratorRuntime=z}catch(E){typeof globalThis=="object"?globalThis.regeneratorRuntime=z:Function("r","regeneratorRuntime = r")(z)}},{}],396:[function(y,je,be){var z=y("buffer"),E=z.Buffer;function ie(ee,ce){for(var x in ee)ce[x]=ee[x]}E.from&&E.alloc&&E.allocUnsafe&&E.allocUnsafeSlow?je.exports=z:(ie(z,be),be.Buffer=oe);function oe(ee,ce,x){return E(ee,ce,x)}ie(E,oe),oe.from=function(ee,ce,x){if(typeof ee=="number")throw new TypeError("Argument must not be a number");return E(ee,ce,x)},oe.alloc=function(ee,ce,x){if(typeof ee!="number")throw new TypeError("Argument must be a number");var ae=E(ee);return ce!==void 0?typeof x=="string"?ae.fill(ce,x):ae.fill(ce):ae.fill(0),ae},oe.allocUnsafe=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return E(ee)},oe.allocUnsafeSlow=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return z.SlowBuffer(ee)}},{buffer:90}],397:[function(y,je,be){(function(z){(function(){(function(E){E.parser=function(qe,Fe){return new oe(qe,Fe)},E.SAXParser=oe,E.SAXStream=ue,E.createStream=se,E.MAX_BUFFER_LENGTH=64*1024;var ie=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];E.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function oe(qe,Fe){if(!(this instanceof oe))return new oe(qe,Fe);var Re=this;ce(Re),Re.q=Re.c="",Re.bufferCheckPosition=E.MAX_BUFFER_LENGTH,Re.opt=Fe||{},Re.opt.lowercase=Re.opt.lowercase||Re.opt.lowercasetags,Re.looseCase=Re.opt.lowercase?"toLowerCase":"toUpperCase",Re.tags=[],Re.closed=Re.closedRoot=Re.sawRoot=!1,Re.tag=Re.error=null,Re.strict=!!qe,Re.noscript=!!(qe||Re.opt.noscript),Re.state=Ne.BEGIN,Re.strictEntities=Re.opt.strictEntities,Re.ENTITIES=Re.strictEntities?Object.create(E.XML_ENTITIES):Object.create(E.ENTITIES),Re.attribList=[],Re.opt.xmlns&&(Re.ns=Object.create(xe)),Re.trackPosition=Re.opt.position!==!1,Re.trackPosition&&(Re.position=Re.line=Re.column=0),Ve(Re,"onready")}Object.create||(Object.create=function(qe){function Fe(){}Fe.prototype=qe;var Re=new Fe;return Re}),Object.keys||(Object.keys=function(qe){var Fe=[];for(var Re in qe)qe.hasOwnProperty(Re)&&Fe.push(Re);return Fe});function ee(qe){for(var Fe=Math.max(E.MAX_BUFFER_LENGTH,10),Re=0,ne=0,fe=ie.length;ne<fe;ne++){var Me=qe[ie[ne]].length;if(Me>Fe)switch(ie[ne]){case"textNode":We(qe);break;case"cdata":Ze(qe,"oncdata",qe.cdata),qe.cdata="";break;case"script":Ze(qe,"onscript",qe.script),qe.script="";break;default:_e(qe,"Max buffer length exceeded: "+ie[ne])}Re=Math.max(Re,Me)}var ze=E.MAX_BUFFER_LENGTH-Re;qe.bufferCheckPosition=ze+qe.position}function ce(qe){for(var Fe=0,Re=ie.length;Fe<Re;Fe++)qe[ie[Fe]]=""}function x(qe){We(qe),qe.cdata!==""&&(Ze(qe,"oncdata",qe.cdata),qe.cdata=""),qe.script!==""&&(Ze(qe,"onscript",qe.script),qe.script="")}oe.prototype={end:function(){Ue(this)},write:at,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){x(this)}};var ae;try{ae=y("stream").Stream}catch(qe){ae=function(){}}var re=E.EVENTS.filter(function(qe){return qe!=="error"&&qe!=="end"});function se(qe,Fe){return new ue(qe,Fe)}function ue(qe,Fe){if(!(this instanceof ue))return new ue(qe,Fe);ae.apply(this),this._parser=new oe(qe,Fe),this.writable=!0,this.readable=!0;var Re=this;this._parser.onend=function(){Re.emit("end")},this._parser.onerror=function(ne){Re.emit("error",ne),Re._parser.error=null},this._decoder=null,re.forEach(function(ne){Object.defineProperty(Re,"on"+ne,{get:function(){return Re._parser["on"+ne]},set:function(fe){if(!fe)return Re.removeAllListeners(ne),Re._parser["on"+ne]=fe,fe;Re.on(ne,fe)},enumerable:!0,configurable:!1})})}ue.prototype=Object.create(ae.prototype,{constructor:{value:ue}}),ue.prototype.write=function(qe){if(typeof z=="function"&&typeof z.isBuffer=="function"&&z.isBuffer(qe)){if(!this._decoder){var Fe=y("string_decoder").StringDecoder;this._decoder=new Fe("utf8")}qe=this._decoder.write(qe)}return this._parser.write(qe.toString()),this.emit("data",qe),!0},ue.prototype.end=function(qe){return qe&&qe.length&&this.write(qe),this._parser.end(),!0},ue.prototype.on=function(qe,Fe){var Re=this;return!Re._parser["on"+qe]&&re.indexOf(qe)!==-1&&(Re._parser["on"+qe]=function(){var ne=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);ne.splice(0,0,qe),Re.emit.apply(Re,ne)}),ae.prototype.on.call(Re,qe,Fe)};var pe="[CDATA[",he="DOCTYPE",ye="http://www.w3.org/XML/1998/namespace",ge="http://www.w3.org/2000/xmlns/",xe={xml:ye,xmlns:ge},ke=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,De=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,Be=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Ae=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function Se(qe){return qe===" "||qe===`
`||qe==="\r"||qe===" "}function Ee(qe){return qe==='"'||qe==="'"}function Oe(qe){return qe===">"||Se(qe)}function Pe(qe,Fe){return qe.test(Fe)}function Le(qe,Fe){return!Pe(qe,Fe)}var Ne=0;E.STATE={BEGIN:Ne++,BEGIN_WHITESPACE:Ne++,TEXT:Ne++,TEXT_ENTITY:Ne++,OPEN_WAKA:Ne++,SGML_DECL:Ne++,SGML_DECL_QUOTED:Ne++,DOCTYPE:Ne++,DOCTYPE_QUOTED:Ne++,DOCTYPE_DTD:Ne++,DOCTYPE_DTD_QUOTED:Ne++,COMMENT_STARTING:Ne++,COMMENT:Ne++,COMMENT_ENDING:Ne++,COMMENT_ENDED:Ne++,CDATA:Ne++,CDATA_ENDING:Ne++,CDATA_ENDING_2:Ne++,PROC_INST:Ne++,PROC_INST_BODY:Ne++,PROC_INST_ENDING:Ne++,OPEN_TAG:Ne++,OPEN_TAG_SLASH:Ne++,ATTRIB:Ne++,ATTRIB_NAME:Ne++,ATTRIB_NAME_SAW_WHITE:Ne++,ATTRIB_VALUE:Ne++,ATTRIB_VALUE_QUOTED:Ne++,ATTRIB_VALUE_CLOSED:Ne++,ATTRIB_VALUE_UNQUOTED:Ne++,ATTRIB_VALUE_ENTITY_Q:Ne++,ATTRIB_VALUE_ENTITY_U:Ne++,CLOSE_TAG:Ne++,CLOSE_TAG_SAW_WHITE:Ne++,SCRIPT:Ne++,SCRIPT_ENDING:Ne++},E.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},E.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(E.ENTITIES).forEach(function(qe){var Fe=E.ENTITIES[qe],Re=typeof Fe=="number"?String.fromCharCode(Fe):Fe;E.ENTITIES[qe]=Re});for(var me in E.STATE)E.STATE[E.STATE[me]]=me;Ne=E.STATE;function Ve(qe,Fe,Re){qe[Fe]&&qe[Fe](Re)}function Ze(qe,Fe,Re){qe.textNode&&We(qe),Ve(qe,Fe,Re)}function We(qe){qe.textNode=nt(qe.opt,qe.textNode),qe.textNode&&Ve(qe,"ontext",qe.textNode),qe.textNode=""}function nt(qe,Fe){return qe.trim&&(Fe=Fe.trim()),qe.normalize&&(Fe=Fe.replace(/\s+/g," ")),Fe}function _e(qe,Fe){return We(qe),qe.trackPosition&&(Fe+=`
Line: `+qe.line+`
Column: `+qe.column+`
Char: `+qe.c),Fe=new Error(Fe),qe.error=Fe,Ve(qe,"onerror",Fe),qe}function Ue(qe){return qe.sawRoot&&!qe.closedRoot&&tt(qe,"Unclosed root tag"),qe.state!==Ne.BEGIN&&qe.state!==Ne.BEGIN_WHITESPACE&&qe.state!==Ne.TEXT&&_e(qe,"Unexpected end"),We(qe),qe.c="",qe.closed=!0,Ve(qe,"onend"),oe.call(qe,qe.strict,qe.opt),qe}function tt(qe,Fe){if(typeof qe!="object"||!(qe instanceof oe))throw new Error("bad call to strictFail");qe.strict&&_e(qe,Fe)}function rt(qe){qe.strict||(qe.tagName=qe.tagName[qe.looseCase]());var Fe=qe.tags[qe.tags.length-1]||qe,Re=qe.tag={name:qe.tagName,attributes:{}};qe.opt.xmlns&&(Re.ns=Fe.ns),qe.attribList.length=0,Ze(qe,"onopentagstart",Re)}function et(qe,Fe){var Re=qe.indexOf(":"),ne=Re<0?["",qe]:qe.split(":"),fe=ne[0],Me=ne[1];return Fe&&qe==="xmlns"&&(fe="xmlns",Me=""),{prefix:fe,local:Me}}function Ke(qe){if(qe.strict||(qe.attribName=qe.attribName[qe.looseCase]()),qe.attribList.indexOf(qe.attribName)!==-1||qe.tag.attributes.hasOwnProperty(qe.attribName)){qe.attribName=qe.attribValue="";return}if(qe.opt.xmlns){var Fe=et(qe.attribName,!0),Re=Fe.prefix,ne=Fe.local;if(Re==="xmlns")if(ne==="xml"&&qe.attribValue!==ye)tt(qe,"xml: prefix must be bound to "+ye+`
Actual: `+qe.attribValue);else if(ne==="xmlns"&&qe.attribValue!==ge)tt(qe,"xmlns: prefix must be bound to "+ge+`
Actual: `+qe.attribValue);else{var fe=qe.tag,Me=qe.tags[qe.tags.length-1]||qe;fe.ns===Me.ns&&(fe.ns=Object.create(Me.ns)),fe.ns[ne]=qe.attribValue}qe.attribList.push([qe.attribName,qe.attribValue])}else qe.tag.attributes[qe.attribName]=qe.attribValue,Ze(qe,"onattribute",{name:qe.attribName,value:qe.attribValue});qe.attribName=qe.attribValue=""}function Ye(qe,Fe){if(qe.opt.xmlns){var Re=qe.tag,ne=et(qe.tagName);Re.prefix=ne.prefix,Re.local=ne.local,Re.uri=Re.ns[ne.prefix]||"",Re.prefix&&!Re.uri&&(tt(qe,"Unbound namespace prefix: "+JSON.stringify(qe.tagName)),Re.uri=ne.prefix);var fe=qe.tags[qe.tags.length-1]||qe;Re.ns&&fe.ns!==Re.ns&&Object.keys(Re.ns).forEach(function(vt){Ze(qe,"onopennamespace",{prefix:vt,uri:Re.ns[vt]})});for(var Me=0,ze=qe.attribList.length;Me<ze;Me++){var we=qe.attribList[Me],ve=we[0],Ie=we[1],$e=et(ve,!0),Ge=$e.prefix,Je=$e.local,ut=Ge===""?"":Re.ns[Ge]||"",lt={name:ve,value:Ie,prefix:Ge,local:Je,uri:ut};Ge&&Ge!=="xmlns"&&!ut&&(tt(qe,"Unbound namespace prefix: "+JSON.stringify(Ge)),lt.uri=Ge),qe.tag.attributes[ve]=lt,Ze(qe,"onattribute",lt)}qe.attribList.length=0}qe.tag.isSelfClosing=!!Fe,qe.sawRoot=!0,qe.tags.push(qe.tag),Ze(qe,"onopentag",qe.tag),Fe||(!qe.noscript&&qe.tagName.toLowerCase()==="script"?qe.state=Ne.SCRIPT:qe.state=Ne.TEXT,qe.tag=null,qe.tagName=""),qe.attribName=qe.attribValue="",qe.attribList.length=0}function Xe(qe){if(!qe.tagName){tt(qe,"Weird empty close tag."),qe.textNode+="</>",qe.state=Ne.TEXT;return}if(qe.script){if(qe.tagName!=="script"){qe.script+="</"+qe.tagName+">",qe.tagName="",qe.state=Ne.SCRIPT;return}Ze(qe,"onscript",qe.script),qe.script=""}var Fe=qe.tags.length,Re=qe.tagName;qe.strict||(Re=Re[qe.looseCase]());for(var ne=Re;Fe--;){var fe=qe.tags[Fe];if(fe.name!==ne)tt(qe,"Unexpected close tag");else break}if(Fe<0){tt(qe,"Unmatched closing tag: "+qe.tagName),qe.textNode+="</"+qe.tagName+">",qe.state=Ne.TEXT;return}qe.tagName=Re;for(var Me=qe.tags.length;Me-- >Fe;){var ze=qe.tag=qe.tags.pop();qe.tagName=qe.tag.name,Ze(qe,"onclosetag",qe.tagName);var we={};for(var ve in ze.ns)we[ve]=ze.ns[ve];var Ie=qe.tags[qe.tags.length-1]||qe;qe.opt.xmlns&&ze.ns!==Ie.ns&&Object.keys(ze.ns).forEach(function($e){var Ge=ze.ns[$e];Ze(qe,"onclosenamespace",{prefix:$e,uri:Ge})})}Fe===0&&(qe.closedRoot=!0),qe.tagName=qe.attribValue=qe.attribName="",qe.attribList.length=0,qe.state=Ne.TEXT}function ot(qe){var Fe=qe.entity,Re=Fe.toLowerCase(),ne,fe="";return qe.ENTITIES[Fe]?qe.ENTITIES[Fe]:qe.ENTITIES[Re]?qe.ENTITIES[Re]:(Fe=Re,Fe.charAt(0)==="#"&&(Fe.charAt(1)==="x"?(Fe=Fe.slice(2),ne=parseInt(Fe,16),fe=ne.toString(16)):(Fe=Fe.slice(1),ne=parseInt(Fe,10),fe=ne.toString(10))),Fe=Fe.replace(/^0+/,""),isNaN(ne)||fe.toLowerCase()!==Fe?(tt(qe,"Invalid character entity"),"&"+qe.entity+";"):String.fromCodePoint(ne))}function Qe(qe,Fe){Fe==="<"?(qe.state=Ne.OPEN_WAKA,qe.startTagPosition=qe.position):Se(Fe)||(tt(qe,"Non-whitespace before first tag."),qe.textNode=Fe,qe.state=Ne.TEXT)}function ft(qe,Fe){var Re="";return Fe<qe.length&&(Re=qe.charAt(Fe)),Re}function at(qe){var Fe=this;if(this.error)throw this.error;if(Fe.closed)return _e(Fe,"Cannot write after close. Assign an onready handler.");if(qe===null)return Ue(Fe);typeof qe=="object"&&(qe=qe.toString());for(var Re=0,ne="";ne=ft(qe,Re++),Fe.c=ne,!!ne;)switch(Fe.trackPosition&&(Fe.position++,ne===`
`?(Fe.line++,Fe.column=0):Fe.column++),Fe.state){case Ne.BEGIN:if(Fe.state=Ne.BEGIN_WHITESPACE,ne==="\uFEFF")continue;Qe(Fe,ne);continue;case Ne.BEGIN_WHITESPACE:Qe(Fe,ne);continue;case Ne.TEXT:if(Fe.sawRoot&&!Fe.closedRoot){for(var fe=Re-1;ne&&ne!=="<"&&ne!=="&";)ne=ft(qe,Re++),ne&&Fe.trackPosition&&(Fe.position++,ne===`
`?(Fe.line++,Fe.column=0):Fe.column++);Fe.textNode+=qe.substring(fe,Re-1)}ne==="<"&&!(Fe.sawRoot&&Fe.closedRoot&&!Fe.strict)?(Fe.state=Ne.OPEN_WAKA,Fe.startTagPosition=Fe.position):(!Se(ne)&&(!Fe.sawRoot||Fe.closedRoot)&&tt(Fe,"Text data outside of root node."),ne==="&"?Fe.state=Ne.TEXT_ENTITY:Fe.textNode+=ne);continue;case Ne.SCRIPT:ne==="<"?Fe.state=Ne.SCRIPT_ENDING:Fe.script+=ne;continue;case Ne.SCRIPT_ENDING:ne==="/"?Fe.state=Ne.CLOSE_TAG:(Fe.script+="<"+ne,Fe.state=Ne.SCRIPT);continue;case Ne.OPEN_WAKA:if(ne==="!")Fe.state=Ne.SGML_DECL,Fe.sgmlDecl="";else if(!Se(ne))if(Pe(ke,ne))Fe.state=Ne.OPEN_TAG,Fe.tagName=ne;else if(ne==="/")Fe.state=Ne.CLOSE_TAG,Fe.tagName="";else if(ne==="?")Fe.state=Ne.PROC_INST,Fe.procInstName=Fe.procInstBody="";else{if(tt(Fe,"Unencoded <"),Fe.startTagPosition+1<Fe.position){var Me=Fe.position-Fe.startTagPosition;ne=new Array(Me).join(" ")+ne}Fe.textNode+="<"+ne,Fe.state=Ne.TEXT}continue;case Ne.SGML_DECL:(Fe.sgmlDecl+ne).toUpperCase()===pe?(Ze(Fe,"onopencdata"),Fe.state=Ne.CDATA,Fe.sgmlDecl="",Fe.cdata=""):Fe.sgmlDecl+ne==="--"?(Fe.state=Ne.COMMENT,Fe.comment="",Fe.sgmlDecl=""):(Fe.sgmlDecl+ne).toUpperCase()===he?(Fe.state=Ne.DOCTYPE,(Fe.doctype||Fe.sawRoot)&&tt(Fe,"Inappropriately located doctype declaration"),Fe.doctype="",Fe.sgmlDecl=""):ne===">"?(Ze(Fe,"onsgmldeclaration",Fe.sgmlDecl),Fe.sgmlDecl="",Fe.state=Ne.TEXT):(Ee(ne)&&(Fe.state=Ne.SGML_DECL_QUOTED),Fe.sgmlDecl+=ne);continue;case Ne.SGML_DECL_QUOTED:ne===Fe.q&&(Fe.state=Ne.SGML_DECL,Fe.q=""),Fe.sgmlDecl+=ne;continue;case Ne.DOCTYPE:ne===">"?(Fe.state=Ne.TEXT,Ze(Fe,"ondoctype",Fe.doctype),Fe.doctype=!0):(Fe.doctype+=ne,ne==="["?Fe.state=Ne.DOCTYPE_DTD:Ee(ne)&&(Fe.state=Ne.DOCTYPE_QUOTED,Fe.q=ne));continue;case Ne.DOCTYPE_QUOTED:Fe.doctype+=ne,ne===Fe.q&&(Fe.q="",Fe.state=Ne.DOCTYPE);continue;case Ne.DOCTYPE_DTD:Fe.doctype+=ne,ne==="]"?Fe.state=Ne.DOCTYPE:Ee(ne)&&(Fe.state=Ne.DOCTYPE_DTD_QUOTED,Fe.q=ne);continue;case Ne.DOCTYPE_DTD_QUOTED:Fe.doctype+=ne,ne===Fe.q&&(Fe.state=Ne.DOCTYPE_DTD,Fe.q="");continue;case Ne.COMMENT:ne==="-"?Fe.state=Ne.COMMENT_ENDING:Fe.comment+=ne;continue;case Ne.COMMENT_ENDING:ne==="-"?(Fe.state=Ne.COMMENT_ENDED,Fe.comment=nt(Fe.opt,Fe.comment),Fe.comment&&Ze(Fe,"oncomment",Fe.comment),Fe.comment=""):(Fe.comment+="-"+ne,Fe.state=Ne.COMMENT);continue;case Ne.COMMENT_ENDED:ne!==">"?(tt(Fe,"Malformed comment"),Fe.comment+="--"+ne,Fe.state=Ne.COMMENT):Fe.state=Ne.TEXT;continue;case Ne.CDATA:ne==="]"?Fe.state=Ne.CDATA_ENDING:Fe.cdata+=ne;continue;case Ne.CDATA_ENDING:ne==="]"?Fe.state=Ne.CDATA_ENDING_2:(Fe.cdata+="]"+ne,Fe.state=Ne.CDATA);continue;case Ne.CDATA_ENDING_2:ne===">"?(Fe.cdata&&Ze(Fe,"oncdata",Fe.cdata),Ze(Fe,"onclosecdata"),Fe.cdata="",Fe.state=Ne.TEXT):ne==="]"?Fe.cdata+="]":(Fe.cdata+="]]"+ne,Fe.state=Ne.CDATA);continue;case Ne.PROC_INST:ne==="?"?Fe.state=Ne.PROC_INST_ENDING:Se(ne)?Fe.state=Ne.PROC_INST_BODY:Fe.procInstName+=ne;continue;case Ne.PROC_INST_BODY:if(!Fe.procInstBody&&Se(ne))continue;ne==="?"?Fe.state=Ne.PROC_INST_ENDING:Fe.procInstBody+=ne;continue;case Ne.PROC_INST_ENDING:ne===">"?(Ze(Fe,"onprocessinginstruction",{name:Fe.procInstName,body:Fe.procInstBody}),Fe.procInstName=Fe.procInstBody="",Fe.state=Ne.TEXT):(Fe.procInstBody+="?"+ne,Fe.state=Ne.PROC_INST_BODY);continue;case Ne.OPEN_TAG:Pe(De,ne)?Fe.tagName+=ne:(rt(Fe),ne===">"?Ye(Fe):ne==="/"?Fe.state=Ne.OPEN_TAG_SLASH:(Se(ne)||tt(Fe,"Invalid character in tag name"),Fe.state=Ne.ATTRIB));continue;case Ne.OPEN_TAG_SLASH:ne===">"?(Ye(Fe,!0),Xe(Fe)):(tt(Fe,"Forward-slash in opening tag not followed by >"),Fe.state=Ne.ATTRIB);continue;case Ne.ATTRIB:if(Se(ne))continue;ne===">"?Ye(Fe):ne==="/"?Fe.state=Ne.OPEN_TAG_SLASH:Pe(ke,ne)?(Fe.attribName=ne,Fe.attribValue="",Fe.state=Ne.ATTRIB_NAME):tt(Fe,"Invalid attribute name");continue;case Ne.ATTRIB_NAME:ne==="="?Fe.state=Ne.ATTRIB_VALUE:ne===">"?(tt(Fe,"Attribute without value"),Fe.attribValue=Fe.attribName,Ke(Fe),Ye(Fe)):Se(ne)?Fe.state=Ne.ATTRIB_NAME_SAW_WHITE:Pe(De,ne)?Fe.attribName+=ne:tt(Fe,"Invalid attribute name");continue;case Ne.ATTRIB_NAME_SAW_WHITE:if(ne==="=")Fe.state=Ne.ATTRIB_VALUE;else{if(Se(ne))continue;tt(Fe,"Attribute without value"),Fe.tag.attributes[Fe.attribName]="",Fe.attribValue="",Ze(Fe,"onattribute",{name:Fe.attribName,value:""}),Fe.attribName="",ne===">"?Ye(Fe):Pe(ke,ne)?(Fe.attribName=ne,Fe.state=Ne.ATTRIB_NAME):(tt(Fe,"Invalid attribute name"),Fe.state=Ne.ATTRIB)}continue;case Ne.ATTRIB_VALUE:if(Se(ne))continue;Ee(ne)?(Fe.q=ne,Fe.state=Ne.ATTRIB_VALUE_QUOTED):(tt(Fe,"Unquoted attribute value"),Fe.state=Ne.ATTRIB_VALUE_UNQUOTED,Fe.attribValue=ne);continue;case Ne.ATTRIB_VALUE_QUOTED:if(ne!==Fe.q){ne==="&"?Fe.state=Ne.ATTRIB_VALUE_ENTITY_Q:Fe.attribValue+=ne;continue}Ke(Fe),Fe.q="",Fe.state=Ne.ATTRIB_VALUE_CLOSED;continue;case Ne.ATTRIB_VALUE_CLOSED:Se(ne)?Fe.state=Ne.ATTRIB:ne===">"?Ye(Fe):ne==="/"?Fe.state=Ne.OPEN_TAG_SLASH:Pe(ke,ne)?(tt(Fe,"No whitespace between attributes"),Fe.attribName=ne,Fe.attribValue="",Fe.state=Ne.ATTRIB_NAME):tt(Fe,"Invalid attribute name");continue;case Ne.ATTRIB_VALUE_UNQUOTED:if(!Oe(ne)){ne==="&"?Fe.state=Ne.ATTRIB_VALUE_ENTITY_U:Fe.attribValue+=ne;continue}Ke(Fe),ne===">"?Ye(Fe):Fe.state=Ne.ATTRIB;continue;case Ne.CLOSE_TAG:if(Fe.tagName)ne===">"?Xe(Fe):Pe(De,ne)?Fe.tagName+=ne:Fe.script?(Fe.script+="</"+Fe.tagName,Fe.tagName="",Fe.state=Ne.SCRIPT):(Se(ne)||tt(Fe,"Invalid tagname in closing tag"),Fe.state=Ne.CLOSE_TAG_SAW_WHITE);else{if(Se(ne))continue;Le(ke,ne)?Fe.script?(Fe.script+="</"+ne,Fe.state=Ne.SCRIPT):tt(Fe,"Invalid tagname in closing tag."):Fe.tagName=ne}continue;case Ne.CLOSE_TAG_SAW_WHITE:if(Se(ne))continue;ne===">"?Xe(Fe):tt(Fe,"Invalid characters in closing tag");continue;case Ne.TEXT_ENTITY:case Ne.ATTRIB_VALUE_ENTITY_Q:case Ne.ATTRIB_VALUE_ENTITY_U:var ze,we;switch(Fe.state){case Ne.TEXT_ENTITY:ze=Ne.TEXT,we="textNode";break;case Ne.ATTRIB_VALUE_ENTITY_Q:ze=Ne.ATTRIB_VALUE_QUOTED,we="attribValue";break;case Ne.ATTRIB_VALUE_ENTITY_U:ze=Ne.ATTRIB_VALUE_UNQUOTED,we="attribValue";break}ne===";"?(Fe[we]+=ot(Fe),Fe.entity="",Fe.state=ze):Pe(Fe.entity.length?Ae:Be,ne)?Fe.entity+=ne:(tt(Fe,"Invalid character in entity name"),Fe[we]+="&"+Fe.entity+ne,Fe.entity="",Fe.state=ze);continue;default:throw new Error(Fe,"Unknown state: "+Fe.state)}return Fe.position>=Fe.bufferCheckPosition&&ee(Fe),Fe}String.fromCodePoint||function(){var qe=String.fromCharCode,Fe=Math.floor,Re=function(){var ne=16384,fe=[],Me,ze,we=-1,ve=arguments.length;if(!ve)return"";for(var Ie="";++we<ve;){var $e=Number(arguments[we]);if(!isFinite($e)||$e<0||$e>1114111||Fe($e)!==$e)throw RangeError("Invalid code point: "+$e);$e<=65535?fe.push($e):($e-=65536,Me=($e>>10)+55296,ze=$e%1024+56320,fe.push(Me,ze)),(we+1===ve||fe.length>ne)&&(Ie+=qe.apply(null,fe),fe.length=0)}return Ie};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Re,configurable:!0,writable:!0}):String.fromCodePoint=Re}()})(typeof be=="undefined"?this.sax={}:be)}).call(this)}).call(this,y("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(y,je,be){je.exports=ie;var z=y("events").EventEmitter,E=y("inherits");E(ie,z),ie.Readable=y("readable-stream/lib/_stream_readable.js"),ie.Writable=y("readable-stream/lib/_stream_writable.js"),ie.Duplex=y("readable-stream/lib/_stream_duplex.js"),ie.Transform=y("readable-stream/lib/_stream_transform.js"),ie.PassThrough=y("readable-stream/lib/_stream_passthrough.js"),ie.finished=y("readable-stream/lib/internal/streams/end-of-stream.js"),ie.pipeline=y("readable-stream/lib/internal/streams/pipeline.js"),ie.Stream=ie;function ie(){z.call(this)}ie.prototype.pipe=function(oe,ee){var ce=this;function x(ye){oe.writable&&oe.write(ye)===!1&&ce.pause&&ce.pause()}ce.on("data",x);function ae(){ce.readable&&ce.resume&&ce.resume()}oe.on("drain",ae),!oe._isStdio&&(!ee||ee.end!==!1)&&(ce.on("end",se),ce.on("close",ue));var re=!1;function se(){re||(re=!0,oe.end())}function ue(){re||(re=!0,typeof oe.destroy=="function"&&oe.destroy())}function pe(ye){if(he(),z.listenerCount(this,"error")===0)throw ye}ce.on("error",pe),oe.on("error",pe);function he(){ce.removeListener("data",x),oe.removeListener("drain",ae),ce.removeListener("end",se),ce.removeListener("close",ue),ce.removeListener("error",pe),oe.removeListener("error",pe),ce.removeListener("end",he),ce.removeListener("close",he),oe.removeListener("close",he)}return ce.on("end",he),ce.on("close",he),oe.on("close",he),oe.emit("pipe",ce),oe}},{events:344,inherits:364,"readable-stream/lib/_stream_duplex.js":400,"readable-stream/lib/_stream_passthrough.js":401,"readable-stream/lib/_stream_readable.js":402,"readable-stream/lib/_stream_transform.js":403,"readable-stream/lib/_stream_writable.js":404,"readable-stream/lib/internal/streams/end-of-stream.js":408,"readable-stream/lib/internal/streams/pipeline.js":410}],399:[function(y,je,be){"use strict";function z(ae,re){ae.prototype=Object.create(re.prototype),ae.prototype.constructor=ae,ae.__proto__=re}var E={};function ie(ae,re,se){se||(se=Error);function ue(he,ye,ge){return typeof re=="string"?re:re(he,ye,ge)}var pe=function(he){z(ye,he);function ye(ge,xe,ke){return he.call(this,ue(ge,xe,ke))||this}return ye}(se);pe.prototype.name=se.name,pe.prototype.code=ae,E[ae]=pe}function oe(ae,re){if(Array.isArray(ae)){var se=ae.length;return ae=ae.map(function(ue){return String(ue)}),se>2?"one of ".concat(re," ").concat(ae.slice(0,se-1).join(", "),", or ")+ae[se-1]:se===2?"one of ".concat(re," ").concat(ae[0]," or ").concat(ae[1]):"of ".concat(re," ").concat(ae[0])}else return"of ".concat(re," ").concat(String(ae))}function ee(ae,re,se){return ae.substr(!se||se<0?0:+se,re.length)===re}function ce(ae,re,se){return(se===void 0||se>ae.length)&&(se=ae.length),ae.substring(se-re.length,se)===re}function x(ae,re,se){return typeof se!="number"&&(se=0),se+re.length>ae.length?!1:ae.indexOf(re,se)!==-1}ie("ERR_INVALID_OPT_VALUE",function(ae,re){return'The value "'+re+'" is invalid for option "'+ae+'"'},TypeError),ie("ERR_INVALID_ARG_TYPE",function(ae,re,se){var ue;typeof re=="string"&&ee(re,"not ")?(ue="must not be",re=re.replace(/^not /,"")):ue="must be";var pe;if(ce(ae," argument"))pe="The ".concat(ae," ").concat(ue," ").concat(oe(re,"type"));else{var he=x(ae,".")?"property":"argument";pe='The "'.concat(ae,'" ').concat(he," ").concat(ue," ").concat(oe(re,"type"))}return pe+=". Received type ".concat(typeof se),pe},TypeError),ie("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ie("ERR_METHOD_NOT_IMPLEMENTED",function(ae){return"The "+ae+" method is not implemented"}),ie("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ie("ERR_STREAM_DESTROYED",function(ae){return"Cannot call "+ae+" after a stream was destroyed"}),ie("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ie("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ie("ERR_STREAM_WRITE_AFTER_END","write after end"),ie("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ie("ERR_UNKNOWN_ENCODING",function(ae){return"Unknown encoding: "+ae},TypeError),ie("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),je.exports.codes=E},{}],400:[function(y,je,be){(function(z){(function(){"use strict";var E=Object.keys||function(ue){var pe=[];for(var he in ue)pe.push(he);return pe};je.exports=ae;var ie=y("./_stream_readable"),oe=y("./_stream_writable");y("inherits")(ae,ie);for(var ee=E(oe.prototype),ce=0;ce<ee.length;ce++){var x=ee[ce];ae.prototype[x]||(ae.prototype[x]=oe.prototype[x])}function ae(ue){if(!(this instanceof ae))return new ae(ue);ie.call(this,ue),oe.call(this,ue),this.allowHalfOpen=!0,ue&&(ue.readable===!1&&(this.readable=!1),ue.writable===!1&&(this.writable=!1),ue.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",re)))}Object.defineProperty(ae.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(ae.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ae.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function re(){this._writableState.ended||z.nextTick(se,this)}function se(ue){ue.end()}Object.defineProperty(ae.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(pe){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=pe,this._writableState.destroyed=pe)}})}).call(this)}).call(this,y("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(y,je,be){"use strict";je.exports=E;var z=y("./_stream_transform");y("inherits")(E,z);function E(ie){if(!(this instanceof E))return new E(ie);z.call(this,ie)}E.prototype._transform=function(ie,oe,ee){ee(null,ie)}},{"./_stream_transform":403,inherits:364}],402:[function(y,je,be){(function(z,E){(function(){"use strict";je.exports=Ze;var ie;Ze.ReadableState=Ve;var oe=y("events").EventEmitter,ee=function(ve,Ie){return ve.listeners(Ie).length},ce=y("./internal/streams/stream"),x=y("buffer").Buffer,ae=(typeof E!="undefined"?E:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function re(we){return x.from(we)}function se(we){return x.isBuffer(we)||we instanceof ae}var ue=y("util"),pe;ue&&ue.debuglog?pe=ue.debuglog("stream"):pe=function(){};var he=y("./internal/streams/buffer_list"),ye=y("./internal/streams/destroy"),ge=y("./internal/streams/state"),xe=ge.getHighWaterMark,ke=y("../errors").codes,De=ke.ERR_INVALID_ARG_TYPE,Be=ke.ERR_STREAM_PUSH_AFTER_EOF,Ae=ke.ERR_METHOD_NOT_IMPLEMENTED,Se=ke.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ee,Oe,Pe;y("inherits")(Ze,ce);var Le=ye.errorOrDestroy,Ne=["error","close","destroy","pause","resume"];function me(we,ve,Ie){if(typeof we.prependListener=="function")return we.prependListener(ve,Ie);!we._events||!we._events[ve]?we.on(ve,Ie):Array.isArray(we._events[ve])?we._events[ve].unshift(Ie):we._events[ve]=[Ie,we._events[ve]]}function Ve(we,ve,Ie){ie=ie||y("./_stream_duplex"),we=we||{},typeof Ie!="boolean"&&(Ie=ve instanceof ie),this.objectMode=!!we.objectMode,Ie&&(this.objectMode=this.objectMode||!!we.readableObjectMode),this.highWaterMark=xe(this,we,"readableHighWaterMark",Ie),this.buffer=new he,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=we.emitClose!==!1,this.autoDestroy=!!we.autoDestroy,this.destroyed=!1,this.defaultEncoding=we.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,we.encoding&&(Ee||(Ee=y("string_decoder/").StringDecoder),this.decoder=new Ee(we.encoding),this.encoding=we.encoding)}function Ze(we){if(ie=ie||y("./_stream_duplex"),!(this instanceof Ze))return new Ze(we);var ve=this instanceof ie;this._readableState=new Ve(we,this,ve),this.readable=!0,we&&(typeof we.read=="function"&&(this._read=we.read),typeof we.destroy=="function"&&(this._destroy=we.destroy)),ce.call(this)}Object.defineProperty(Ze.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ve){this._readableState&&(this._readableState.destroyed=ve)}}),Ze.prototype.destroy=ye.destroy,Ze.prototype._undestroy=ye.undestroy,Ze.prototype._destroy=function(we,ve){ve(we)},Ze.prototype.push=function(we,ve){var Ie=this._readableState,$e;return Ie.objectMode?$e=!0:typeof we=="string"&&(ve=ve||Ie.defaultEncoding,ve!==Ie.encoding&&(we=x.from(we,ve),ve=""),$e=!0),We(this,we,ve,!1,$e)},Ze.prototype.unshift=function(we){return We(this,we,null,!0,!1)};function We(we,ve,Ie,$e,Ge){pe("readableAddChunk",ve);var Je=we._readableState;if(ve===null)Je.reading=!1,et(we,Je);else{var ut;if(Ge||(ut=_e(Je,ve)),ut)Le(we,ut);else if(Je.objectMode||ve&&ve.length>0)if(typeof ve!="string"&&!Je.objectMode&&Object.getPrototypeOf(ve)!==x.prototype&&(ve=re(ve)),$e)Je.endEmitted?Le(we,new Se):nt(we,Je,ve,!0);else if(Je.ended)Le(we,new Be);else{if(Je.destroyed)return!1;Je.reading=!1,Je.decoder&&!Ie?(ve=Je.decoder.write(ve),Je.objectMode||ve.length!==0?nt(we,Je,ve,!1):Xe(we,Je)):nt(we,Je,ve,!1)}else $e||(Je.reading=!1,Xe(we,Je))}return!Je.ended&&(Je.length<Je.highWaterMark||Je.length===0)}function nt(we,ve,Ie,$e){ve.flowing&&ve.length===0&&!ve.sync?(ve.awaitDrain=0,we.emit("data",Ie)):(ve.length+=ve.objectMode?1:Ie.length,$e?ve.buffer.unshift(Ie):ve.buffer.push(Ie),ve.needReadable&&Ke(we)),Xe(we,ve)}function _e(we,ve){var Ie;return!se(ve)&&typeof ve!="string"&&ve!==void 0&&!we.objectMode&&(Ie=new De("chunk",["string","Buffer","Uint8Array"],ve)),Ie}Ze.prototype.isPaused=function(){return this._readableState.flowing===!1},Ze.prototype.setEncoding=function(we){Ee||(Ee=y("string_decoder/").StringDecoder);var ve=new Ee(we);this._readableState.decoder=ve,this._readableState.encoding=this._readableState.decoder.encoding;for(var Ie=this._readableState.buffer.head,$e="";Ie!==null;)$e+=ve.write(Ie.data),Ie=Ie.next;return this._readableState.buffer.clear(),$e!==""&&this._readableState.buffer.push($e),this._readableState.length=$e.length,this};var Ue=1073741824;function tt(we){return we>=Ue?we=Ue:(we--,we|=we>>>1,we|=we>>>2,we|=we>>>4,we|=we>>>8,we|=we>>>16,we++),we}function rt(we,ve){return we<=0||ve.length===0&&ve.ended?0:ve.objectMode?1:we!==we?ve.flowing&&ve.length?ve.buffer.head.data.length:ve.length:(we>ve.highWaterMark&&(ve.highWaterMark=tt(we)),we<=ve.length?we:ve.ended?ve.length:(ve.needReadable=!0,0))}Ze.prototype.read=function(we){pe("read",we),we=parseInt(we,10);var ve=this._readableState,Ie=we;if(we!==0&&(ve.emittedReadable=!1),we===0&&ve.needReadable&&((ve.highWaterMark!==0?ve.length>=ve.highWaterMark:ve.length>0)||ve.ended))return pe("read: emitReadable",ve.length,ve.ended),ve.length===0&&ve.ended?fe(this):Ke(this),null;if(we=rt(we,ve),we===0&&ve.ended)return ve.length===0&&fe(this),null;var $e=ve.needReadable;pe("need readable",$e),(ve.length===0||ve.length-we<ve.highWaterMark)&&($e=!0,pe("length less than watermark",$e)),ve.ended||ve.reading?($e=!1,pe("reading or ended",$e)):$e&&(pe("do read"),ve.reading=!0,ve.sync=!0,ve.length===0&&(ve.needReadable=!0),this._read(ve.highWaterMark),ve.sync=!1,ve.reading||(we=rt(Ie,ve)));var Ge;return we>0?Ge=ne(we,ve):Ge=null,Ge===null?(ve.needReadable=ve.length<=ve.highWaterMark,we=0):(ve.length-=we,ve.awaitDrain=0),ve.length===0&&(ve.ended||(ve.needReadable=!0),Ie!==we&&ve.ended&&fe(this)),Ge!==null&&this.emit("data",Ge),Ge};function et(we,ve){if(pe("onEofChunk"),!ve.ended){if(ve.decoder){var Ie=ve.decoder.end();Ie&&Ie.length&&(ve.buffer.push(Ie),ve.length+=ve.objectMode?1:Ie.length)}ve.ended=!0,ve.sync?Ke(we):(ve.needReadable=!1,ve.emittedReadable||(ve.emittedReadable=!0,Ye(we)))}}function Ke(we){var ve=we._readableState;pe("emitReadable",ve.needReadable,ve.emittedReadable),ve.needReadable=!1,ve.emittedReadable||(pe("emitReadable",ve.flowing),ve.emittedReadable=!0,z.nextTick(Ye,we))}function Ye(we){var ve=we._readableState;pe("emitReadable_",ve.destroyed,ve.length,ve.ended),!ve.destroyed&&(ve.length||ve.ended)&&(we.emit("readable"),ve.emittedReadable=!1),ve.needReadable=!ve.flowing&&!ve.ended&&ve.length<=ve.highWaterMark,Re(we)}function Xe(we,ve){ve.readingMore||(ve.readingMore=!0,z.nextTick(ot,we,ve))}function ot(we,ve){for(;!ve.reading&&!ve.ended&&(ve.length<ve.highWaterMark||ve.flowing&&ve.length===0);){var Ie=ve.length;if(pe("maybeReadMore read 0"),we.read(0),Ie===ve.length)break}ve.readingMore=!1}Ze.prototype._read=function(we){Le(this,new Ae("_read()"))},Ze.prototype.pipe=function(we,ve){var Ie=this,$e=this._readableState;switch($e.pipesCount){case 0:$e.pipes=we;break;case 1:$e.pipes=[$e.pipes,we];break;default:$e.pipes.push(we);break}$e.pipesCount+=1,pe("pipe count=%d opts=%j",$e.pipesCount,ve);var Ge=(!ve||ve.end!==!1)&&we!==z.stdout&&we!==z.stderr,Je=Ge?lt:Et;$e.endEmitted?z.nextTick(Je):Ie.once("end",Je),we.on("unpipe",ut);function ut(kt,Nt){pe("onunpipe"),kt===Ie&&Nt&&Nt.hasUnpiped===!1&&(Nt.hasUnpiped=!0,st())}function lt(){pe("onend"),we.end()}var vt=Qe(Ie);we.on("drain",vt);var ct=!1;function st(){pe("cleanup"),we.removeListener("close",Dt),we.removeListener("finish",jt),we.removeListener("drain",vt),we.removeListener("error",mt),we.removeListener("unpipe",ut),Ie.removeListener("end",lt),Ie.removeListener("end",Et),Ie.removeListener("data",At),ct=!0,$e.awaitDrain&&(!we._writableState||we._writableState.needDrain)&&vt()}Ie.on("data",At);function At(kt){pe("ondata");var Nt=we.write(kt);pe("dest.write",Nt),Nt===!1&&(($e.pipesCount===1&&$e.pipes===we||$e.pipesCount>1&&ze($e.pipes,we)!==-1)&&!ct&&(pe("false write response, pause",$e.awaitDrain),$e.awaitDrain++),Ie.pause())}function mt(kt){pe("onerror",kt),Et(),we.removeListener("error",mt),ee(we,"error")===0&&Le(we,kt)}me(we,"error",mt);function Dt(){we.removeListener("finish",jt),Et()}we.once("close",Dt);function jt(){pe("onfinish"),we.removeListener("close",Dt),Et()}we.once("finish",jt);function Et(){pe("unpipe"),Ie.unpipe(we)}return we.emit("pipe",Ie),$e.flowing||(pe("pipe resume"),Ie.resume()),we};function Qe(we){return function(){var Ie=we._readableState;pe("pipeOnDrain",Ie.awaitDrain),Ie.awaitDrain&&Ie.awaitDrain--,Ie.awaitDrain===0&&ee(we,"data")&&(Ie.flowing=!0,Re(we))}}Ze.prototype.unpipe=function(we){var ve=this._readableState,Ie={hasUnpiped:!1};if(ve.pipesCount===0)return this;if(ve.pipesCount===1)return we&&we!==ve.pipes?this:(we||(we=ve.pipes),ve.pipes=null,ve.pipesCount=0,ve.flowing=!1,we&&we.emit("unpipe",this,Ie),this);if(!we){var $e=ve.pipes,Ge=ve.pipesCount;ve.pipes=null,ve.pipesCount=0,ve.flowing=!1;for(var Je=0;Je<Ge;Je++)$e[Je].emit("unpipe",this,{hasUnpiped:!1});return this}var ut=ze(ve.pipes,we);return ut===-1?this:(ve.pipes.splice(ut,1),ve.pipesCount-=1,ve.pipesCount===1&&(ve.pipes=ve.pipes[0]),we.emit("unpipe",this,Ie),this)},Ze.prototype.on=function(we,ve){var Ie=ce.prototype.on.call(this,we,ve),$e=this._readableState;return we==="data"?($e.readableListening=this.listenerCount("readable")>0,$e.flowing!==!1&&this.resume()):we==="readable"&&!$e.endEmitted&&!$e.readableListening&&($e.readableListening=$e.needReadable=!0,$e.flowing=!1,$e.emittedReadable=!1,pe("on readable",$e.length,$e.reading),$e.length?Ke(this):$e.reading||z.nextTick(at,this)),Ie},Ze.prototype.addListener=Ze.prototype.on,Ze.prototype.removeListener=function(we,ve){var Ie=ce.prototype.removeListener.call(this,we,ve);return we==="readable"&&z.nextTick(ft,this),Ie},Ze.prototype.removeAllListeners=function(we){var ve=ce.prototype.removeAllListeners.apply(this,arguments);return(we==="readable"||we===void 0)&&z.nextTick(ft,this),ve};function ft(we){var ve=we._readableState;ve.readableListening=we.listenerCount("readable")>0,ve.resumeScheduled&&!ve.paused?ve.flowing=!0:we.listenerCount("data")>0&&we.resume()}function at(we){pe("readable nexttick read 0"),we.read(0)}Ze.prototype.resume=function(){var we=this._readableState;return we.flowing||(pe("resume"),we.flowing=!we.readableListening,qe(this,we)),we.paused=!1,this};function qe(we,ve){ve.resumeScheduled||(ve.resumeScheduled=!0,z.nextTick(Fe,we,ve))}function Fe(we,ve){pe("resume",ve.reading),ve.reading||we.read(0),ve.resumeScheduled=!1,we.emit("resume"),Re(we),ve.flowing&&!ve.reading&&we.read(0)}Ze.prototype.pause=function(){return pe("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(pe("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Re(we){var ve=we._readableState;for(pe("flow",ve.flowing);ve.flowing&&we.read()!==null;);}Ze.prototype.wrap=function(we){var ve=this,Ie=this._readableState,$e=!1;we.on("end",function(){if(pe("wrapped end"),Ie.decoder&&!Ie.ended){var ut=Ie.decoder.end();ut&&ut.length&&ve.push(ut)}ve.push(null)}),we.on("data",function(ut){if(pe("wrapped data"),Ie.decoder&&(ut=Ie.decoder.write(ut)),!(Ie.objectMode&&ut==null)&&!(!Ie.objectMode&&(!ut||!ut.length))){var lt=ve.push(ut);lt||($e=!0,we.pause())}});for(var Ge in we)this[Ge]===void 0&&typeof we[Ge]=="function"&&(this[Ge]=function(lt){return function(){return we[lt].apply(we,arguments)}}(Ge));for(var Je=0;Je<Ne.length;Je++)we.on(Ne[Je],this.emit.bind(this,Ne[Je]));return this._read=function(ut){pe("wrapped _read",ut),$e&&($e=!1,we.resume())},this},typeof Symbol=="function"&&(Ze.prototype[Symbol.asyncIterator]=function(){return Oe===void 0&&(Oe=y("./internal/streams/async_iterator")),Oe(this)}),Object.defineProperty(Ze.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Ze.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Ze.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(ve){this._readableState&&(this._readableState.flowing=ve)}}),Ze._fromList=ne,Object.defineProperty(Ze.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ne(we,ve){if(ve.length===0)return null;var Ie;return ve.objectMode?Ie=ve.buffer.shift():!we||we>=ve.length?(ve.decoder?Ie=ve.buffer.join(""):ve.buffer.length===1?Ie=ve.buffer.first():Ie=ve.buffer.concat(ve.length),ve.buffer.clear()):Ie=ve.buffer.consume(we,ve.decoder),Ie}function fe(we){var ve=we._readableState;pe("endReadable",ve.endEmitted),ve.endEmitted||(ve.ended=!0,z.nextTick(Me,ve,we))}function Me(we,ve){if(pe("endReadableNT",we.endEmitted,we.length),!we.endEmitted&&we.length===0&&(we.endEmitted=!0,ve.readable=!1,ve.emit("end"),we.autoDestroy)){var Ie=ve._writableState;(!Ie||Ie.autoDestroy&&Ie.finished)&&ve.destroy()}}typeof Symbol=="function"&&(Ze.from=function(we,ve){return Pe===void 0&&(Pe=y("./internal/streams/from")),Pe(Ze,we,ve)});function ze(we,ve){for(var Ie=0,$e=we.length;Ie<$e;Ie++)if(we[Ie]===ve)return Ie;return-1}}).call(this)}).call(this,y("_process"),typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/async_iterator":405,"./internal/streams/buffer_list":406,"./internal/streams/destroy":407,"./internal/streams/from":409,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,events:344,inherits:364,"string_decoder/":413,util:89}],403:[function(y,je,be){"use strict";je.exports=ae;var z=y("../errors").codes,E=z.ERR_METHOD_NOT_IMPLEMENTED,ie=z.ERR_MULTIPLE_CALLBACK,oe=z.ERR_TRANSFORM_ALREADY_TRANSFORMING,ee=z.ERR_TRANSFORM_WITH_LENGTH_0,ce=y("./_stream_duplex");y("inherits")(ae,ce);function x(ue,pe){var he=this._transformState;he.transforming=!1;var ye=he.writecb;if(ye===null)return this.emit("error",new ie);he.writechunk=null,he.writecb=null,pe!=null&&this.push(pe),ye(ue);var ge=this._readableState;ge.reading=!1,(ge.needReadable||ge.length<ge.highWaterMark)&&this._read(ge.highWaterMark)}function ae(ue){if(!(this instanceof ae))return new ae(ue);ce.call(this,ue),this._transformState={afterTransform:x.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,ue&&(typeof ue.transform=="function"&&(this._transform=ue.transform),typeof ue.flush=="function"&&(this._flush=ue.flush)),this.on("prefinish",re)}function re(){var ue=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(pe,he){se(ue,pe,he)}):se(this,null,null)}ae.prototype.push=function(ue,pe){return this._transformState.needTransform=!1,ce.prototype.push.call(this,ue,pe)},ae.prototype._transform=function(ue,pe,he){he(new E("_transform()"))},ae.prototype._write=function(ue,pe,he){var ye=this._transformState;if(ye.writecb=he,ye.writechunk=ue,ye.writeencoding=pe,!ye.transforming){var ge=this._readableState;(ye.needTransform||ge.needReadable||ge.length<ge.highWaterMark)&&this._read(ge.highWaterMark)}},ae.prototype._read=function(ue){var pe=this._transformState;pe.writechunk!==null&&!pe.transforming?(pe.transforming=!0,this._transform(pe.writechunk,pe.writeencoding,pe.afterTransform)):pe.needTransform=!0},ae.prototype._destroy=function(ue,pe){ce.prototype._destroy.call(this,ue,function(he){pe(he)})};function se(ue,pe,he){if(pe)return ue.emit("error",pe);if(he!=null&&ue.push(he),ue._writableState.length)throw new ee;if(ue._transformState.transforming)throw new oe;return ue.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(y,je,be){(function(z,E){(function(){"use strict";je.exports=Ve;function ie(Re,ne,fe){this.chunk=Re,this.encoding=ne,this.callback=fe,this.next=null}function oe(Re){var ne=this;this.next=null,this.entry=null,this.finish=function(){Fe(ne,Re)}}var ee;Ve.WritableState=Ne;var ce={deprecate:y("util-deprecate")},x=y("./internal/streams/stream"),ae=y("buffer").Buffer,re=(typeof E!="undefined"?E:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function se(Re){return ae.from(Re)}function ue(Re){return ae.isBuffer(Re)||Re instanceof re}var pe=y("./internal/streams/destroy"),he=y("./internal/streams/state"),ye=he.getHighWaterMark,ge=y("../errors").codes,xe=ge.ERR_INVALID_ARG_TYPE,ke=ge.ERR_METHOD_NOT_IMPLEMENTED,De=ge.ERR_MULTIPLE_CALLBACK,Be=ge.ERR_STREAM_CANNOT_PIPE,Ae=ge.ERR_STREAM_DESTROYED,Se=ge.ERR_STREAM_NULL_VALUES,Ee=ge.ERR_STREAM_WRITE_AFTER_END,Oe=ge.ERR_UNKNOWN_ENCODING,Pe=pe.errorOrDestroy;y("inherits")(Ve,x);function Le(){}function Ne(Re,ne,fe){ee=ee||y("./_stream_duplex"),Re=Re||{},typeof fe!="boolean"&&(fe=ne instanceof ee),this.objectMode=!!Re.objectMode,fe&&(this.objectMode=this.objectMode||!!Re.writableObjectMode),this.highWaterMark=ye(this,Re,"writableHighWaterMark",fe),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Me=Re.decodeStrings===!1;this.decodeStrings=!Me,this.defaultEncoding=Re.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ze){et(ne,ze)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Re.emitClose!==!1,this.autoDestroy=!!Re.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new oe(this)}Ne.prototype.getBuffer=function(){for(var ne=this.bufferedRequest,fe=[];ne;)fe.push(ne),ne=ne.next;return fe},function(){try{Object.defineProperty(Ne.prototype,"buffer",{get:ce.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Re){}}();var me;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(me=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ve,Symbol.hasInstance,{value:function(ne){return me.call(this,ne)?!0:this!==Ve?!1:ne&&ne._writableState instanceof Ne}})):me=function(ne){return ne instanceof this};function Ve(Re){ee=ee||y("./_stream_duplex");var ne=this instanceof ee;if(!ne&&!me.call(Ve,this))return new Ve(Re);this._writableState=new Ne(Re,this,ne),this.writable=!0,Re&&(typeof Re.write=="function"&&(this._write=Re.write),typeof Re.writev=="function"&&(this._writev=Re.writev),typeof Re.destroy=="function"&&(this._destroy=Re.destroy),typeof Re.final=="function"&&(this._final=Re.final)),x.call(this)}Ve.prototype.pipe=function(){Pe(this,new Be)};function Ze(Re,ne){var fe=new Ee;Pe(Re,fe),z.nextTick(ne,fe)}function We(Re,ne,fe,Me){var ze;return fe===null?ze=new Se:typeof fe!="string"&&!ne.objectMode&&(ze=new xe("chunk",["string","Buffer"],fe)),ze?(Pe(Re,ze),z.nextTick(Me,ze),!1):!0}Ve.prototype.write=function(Re,ne,fe){var Me=this._writableState,ze=!1,we=!Me.objectMode&&ue(Re);return we&&!ae.isBuffer(Re)&&(Re=se(Re)),typeof ne=="function"&&(fe=ne,ne=null),we?ne="buffer":ne||(ne=Me.defaultEncoding),typeof fe!="function"&&(fe=Le),Me.ending?Ze(this,fe):(we||We(this,Me,Re,fe))&&(Me.pendingcb++,ze=_e(this,Me,we,Re,ne,fe)),ze},Ve.prototype.cork=function(){this._writableState.corked++},Ve.prototype.uncork=function(){var Re=this._writableState;Re.corked&&(Re.corked--,!Re.writing&&!Re.corked&&!Re.bufferProcessing&&Re.bufferedRequest&&Xe(this,Re))},Ve.prototype.setDefaultEncoding=function(ne){if(typeof ne=="string"&&(ne=ne.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((ne+"").toLowerCase())>-1))throw new Oe(ne);return this._writableState.defaultEncoding=ne,this},Object.defineProperty(Ve.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function nt(Re,ne,fe){return!Re.objectMode&&Re.decodeStrings!==!1&&typeof ne=="string"&&(ne=ae.from(ne,fe)),ne}Object.defineProperty(Ve.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function _e(Re,ne,fe,Me,ze,we){if(!fe){var ve=nt(ne,Me,ze);Me!==ve&&(fe=!0,ze="buffer",Me=ve)}var Ie=ne.objectMode?1:Me.length;ne.length+=Ie;var $e=ne.length<ne.highWaterMark;if($e||(ne.needDrain=!0),ne.writing||ne.corked){var Ge=ne.lastBufferedRequest;ne.lastBufferedRequest={chunk:Me,encoding:ze,isBuf:fe,callback:we,next:null},Ge?Ge.next=ne.lastBufferedRequest:ne.bufferedRequest=ne.lastBufferedRequest,ne.bufferedRequestCount+=1}else Ue(Re,ne,!1,Ie,Me,ze,we);return $e}function Ue(Re,ne,fe,Me,ze,we,ve){ne.writelen=Me,ne.writecb=ve,ne.writing=!0,ne.sync=!0,ne.destroyed?ne.onwrite(new Ae("write")):fe?Re._writev(ze,ne.onwrite):Re._write(ze,we,ne.onwrite),ne.sync=!1}function tt(Re,ne,fe,Me,ze){--ne.pendingcb,fe?(z.nextTick(ze,Me),z.nextTick(at,Re,ne),Re._writableState.errorEmitted=!0,Pe(Re,Me)):(ze(Me),Re._writableState.errorEmitted=!0,Pe(Re,Me),at(Re,ne))}function rt(Re){Re.writing=!1,Re.writecb=null,Re.length-=Re.writelen,Re.writelen=0}function et(Re,ne){var fe=Re._writableState,Me=fe.sync,ze=fe.writecb;if(typeof ze!="function")throw new De;if(rt(fe),ne)tt(Re,fe,Me,ne,ze);else{var we=ot(fe)||Re.destroyed;!we&&!fe.corked&&!fe.bufferProcessing&&fe.bufferedRequest&&Xe(Re,fe),Me?z.nextTick(Ke,Re,fe,we,ze):Ke(Re,fe,we,ze)}}function Ke(Re,ne,fe,Me){fe||Ye(Re,ne),ne.pendingcb--,Me(),at(Re,ne)}function Ye(Re,ne){ne.length===0&&ne.needDrain&&(ne.needDrain=!1,Re.emit("drain"))}function Xe(Re,ne){ne.bufferProcessing=!0;var fe=ne.bufferedRequest;if(Re._writev&&fe&&fe.next){var Me=ne.bufferedRequestCount,ze=new Array(Me),we=ne.corkedRequestsFree;we.entry=fe;for(var ve=0,Ie=!0;fe;)ze[ve]=fe,fe.isBuf||(Ie=!1),fe=fe.next,ve+=1;ze.allBuffers=Ie,Ue(Re,ne,!0,ne.length,ze,"",we.finish),ne.pendingcb++,ne.lastBufferedRequest=null,we.next?(ne.corkedRequestsFree=we.next,we.next=null):ne.corkedRequestsFree=new oe(ne),ne.bufferedRequestCount=0}else{for(;fe;){var $e=fe.chunk,Ge=fe.encoding,Je=fe.callback,ut=ne.objectMode?1:$e.length;if(Ue(Re,ne,!1,ut,$e,Ge,Je),fe=fe.next,ne.bufferedRequestCount--,ne.writing)break}fe===null&&(ne.lastBufferedRequest=null)}ne.bufferedRequest=fe,ne.bufferProcessing=!1}Ve.prototype._write=function(Re,ne,fe){fe(new ke("_write()"))},Ve.prototype._writev=null,Ve.prototype.end=function(Re,ne,fe){var Me=this._writableState;return typeof Re=="function"?(fe=Re,Re=null,ne=null):typeof ne=="function"&&(fe=ne,ne=null),Re!=null&&this.write(Re,ne),Me.corked&&(Me.corked=1,this.uncork()),Me.ending||qe(this,Me,fe),this},Object.defineProperty(Ve.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ot(Re){return Re.ending&&Re.length===0&&Re.bufferedRequest===null&&!Re.finished&&!Re.writing}function Qe(Re,ne){Re._final(function(fe){ne.pendingcb--,fe&&Pe(Re,fe),ne.prefinished=!0,Re.emit("prefinish"),at(Re,ne)})}function ft(Re,ne){!ne.prefinished&&!ne.finalCalled&&(typeof Re._final=="function"&&!ne.destroyed?(ne.pendingcb++,ne.finalCalled=!0,z.nextTick(Qe,Re,ne)):(ne.prefinished=!0,Re.emit("prefinish")))}function at(Re,ne){var fe=ot(ne);if(fe&&(ft(Re,ne),ne.pendingcb===0&&(ne.finished=!0,Re.emit("finish"),ne.autoDestroy))){var Me=Re._readableState;(!Me||Me.autoDestroy&&Me.endEmitted)&&Re.destroy()}return fe}function qe(Re,ne,fe){ne.ending=!0,at(Re,ne),fe&&(ne.finished?z.nextTick(fe):Re.once("finish",fe)),ne.ended=!0,Re.writable=!1}function Fe(Re,ne,fe){var Me=Re.entry;for(Re.entry=null;Me;){var ze=Me.callback;ne.pendingcb--,ze(fe),Me=Me.next}ne.corkedRequestsFree.next=Re}Object.defineProperty(Ve.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(ne){this._writableState&&(this._writableState.destroyed=ne)}}),Ve.prototype.destroy=pe.destroy,Ve.prototype._undestroy=pe.undestroy,Ve.prototype._destroy=function(Re,ne){ne(Re)}}).call(this)}).call(this,y("_process"),typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/destroy":407,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,inherits:364,"util-deprecate":416}],405:[function(y,je,be){(function(z){(function(){"use strict";var E;function ie(Se,Ee,Oe){return Ee=oe(Ee),Ee in Se?Object.defineProperty(Se,Ee,{value:Oe,enumerable:!0,configurable:!0,writable:!0}):Se[Ee]=Oe,Se}function oe(Se){var Ee=ee(Se,"string");return typeof Ee=="symbol"?Ee:String(Ee)}function ee(Se,Ee){if(typeof Se!="object"||Se===null)return Se;var Oe=Se[Symbol.toPrimitive];if(Oe!==void 0){var Pe=Oe.call(Se,Ee||"default");if(typeof Pe!="object")return Pe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ee==="string"?String:Number)(Se)}var ce=y("./end-of-stream"),x=Symbol("lastResolve"),ae=Symbol("lastReject"),re=Symbol("error"),se=Symbol("ended"),ue=Symbol("lastPromise"),pe=Symbol("handlePromise"),he=Symbol("stream");function ye(Se,Ee){return{value:Se,done:Ee}}function ge(Se){var Ee=Se[x];if(Ee!==null){var Oe=Se[he].read();Oe!==null&&(Se[ue]=null,Se[x]=null,Se[ae]=null,Ee(ye(Oe,!1)))}}function xe(Se){z.nextTick(ge,Se)}function ke(Se,Ee){return function(Oe,Pe){Se.then(function(){if(Ee[se]){Oe(ye(void 0,!0));return}Ee[pe](Oe,Pe)},Pe)}}var De=Object.getPrototypeOf(function(){}),Be=Object.setPrototypeOf((E={get stream(){return this[he]},next:function(){var Ee=this,Oe=this[re];if(Oe!==null)return Promise.reject(Oe);if(this[se])return Promise.resolve(ye(void 0,!0));if(this[he].destroyed)return new Promise(function(me,Ve){z.nextTick(function(){Ee[re]?Ve(Ee[re]):me(ye(void 0,!0))})});var Pe=this[ue],Le;if(Pe)Le=new Promise(ke(Pe,this));else{var Ne=this[he].read();if(Ne!==null)return Promise.resolve(ye(Ne,!1));Le=new Promise(this[pe])}return this[ue]=Le,Le}},ie(E,Symbol.asyncIterator,function(){return this}),ie(E,"return",function(){var Ee=this;return new Promise(function(Oe,Pe){Ee[he].destroy(null,function(Le){if(Le){Pe(Le);return}Oe(ye(void 0,!0))})})}),E),De),Ae=function(Ee){var Oe,Pe=Object.create(Be,(Oe={},ie(Oe,he,{value:Ee,writable:!0}),ie(Oe,x,{value:null,writable:!0}),ie(Oe,ae,{value:null,writable:!0}),ie(Oe,re,{value:null,writable:!0}),ie(Oe,se,{value:Ee._readableState.endEmitted,writable:!0}),ie(Oe,pe,{value:function(Ne,me){var Ve=Pe[he].read();Ve?(Pe[ue]=null,Pe[x]=null,Pe[ae]=null,Ne(ye(Ve,!1))):(Pe[x]=Ne,Pe[ae]=me)},writable:!0}),Oe));return Pe[ue]=null,ce(Ee,function(Le){if(Le&&Le.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Ne=Pe[ae];Ne!==null&&(Pe[ue]=null,Pe[x]=null,Pe[ae]=null,Ne(Le)),Pe[re]=Le;return}var me=Pe[x];me!==null&&(Pe[ue]=null,Pe[x]=null,Pe[ae]=null,me(ye(void 0,!0))),Pe[se]=!0}),Ee.on("readable",xe.bind(null,Pe)),Pe};je.exports=Ae}).call(this)}).call(this,y("_process"))},{"./end-of-stream":408,_process:467}],406:[function(y,je,be){"use strict";function z(ge,xe){var ke=Object.keys(ge);if(Object.getOwnPropertySymbols){var De=Object.getOwnPropertySymbols(ge);xe&&(De=De.filter(function(Be){return Object.getOwnPropertyDescriptor(ge,Be).enumerable})),ke.push.apply(ke,De)}return ke}function E(ge){for(var xe=1;xe<arguments.length;xe++){var ke=arguments[xe]!=null?arguments[xe]:{};xe%2?z(Object(ke),!0).forEach(function(De){ie(ge,De,ke[De])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ge,Object.getOwnPropertyDescriptors(ke)):z(Object(ke)).forEach(function(De){Object.defineProperty(ge,De,Object.getOwnPropertyDescriptor(ke,De))})}return ge}function ie(ge,xe,ke){return xe=x(xe),xe in ge?Object.defineProperty(ge,xe,{value:ke,enumerable:!0,configurable:!0,writable:!0}):ge[xe]=ke,ge}function oe(ge,xe){if(!(ge instanceof xe))throw new TypeError("Cannot call a class as a function")}function ee(ge,xe){for(var ke=0;ke<xe.length;ke++){var De=xe[ke];De.enumerable=De.enumerable||!1,De.configurable=!0,"value"in De&&(De.writable=!0),Object.defineProperty(ge,x(De.key),De)}}function ce(ge,xe,ke){return xe&&ee(ge.prototype,xe),ke&&ee(ge,ke),Object.defineProperty(ge,"prototype",{writable:!1}),ge}function x(ge){var xe=ae(ge,"string");return typeof xe=="symbol"?xe:String(xe)}function ae(ge,xe){if(typeof ge!="object"||ge===null)return ge;var ke=ge[Symbol.toPrimitive];if(ke!==void 0){var De=ke.call(ge,xe||"default");if(typeof De!="object")return De;throw new TypeError("@@toPrimitive must return a primitive value.")}return(xe==="string"?String:Number)(ge)}var re=y("buffer"),se=re.Buffer,ue=y("util"),pe=ue.inspect,he=pe&&pe.custom||"inspect";function ye(ge,xe,ke){se.prototype.copy.call(ge,xe,ke)}je.exports=function(){function ge(){oe(this,ge),this.head=null,this.tail=null,this.length=0}return ce(ge,[{key:"push",value:function(ke){var De={data:ke,next:null};this.length>0?this.tail.next=De:this.head=De,this.tail=De,++this.length}},{key:"unshift",value:function(ke){var De={data:ke,next:this.head};this.length===0&&(this.tail=De),this.head=De,++this.length}},{key:"shift",value:function(){if(this.length!==0){var ke=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,ke}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(ke){if(this.length===0)return"";for(var De=this.head,Be=""+De.data;De=De.next;)Be+=ke+De.data;return Be}},{key:"concat",value:function(ke){if(this.length===0)return se.alloc(0);for(var De=se.allocUnsafe(ke>>>0),Be=this.head,Ae=0;Be;)ye(Be.data,De,Ae),Ae+=Be.data.length,Be=Be.next;return De}},{key:"consume",value:function(ke,De){var Be;return ke<this.head.data.length?(Be=this.head.data.slice(0,ke),this.head.data=this.head.data.slice(ke)):ke===this.head.data.length?Be=this.shift():Be=De?this._getString(ke):this._getBuffer(ke),Be}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(ke){var De=this.head,Be=1,Ae=De.data;for(ke-=Ae.length;De=De.next;){var Se=De.data,Ee=ke>Se.length?Se.length:ke;if(Ee===Se.length?Ae+=Se:Ae+=Se.slice(0,ke),ke-=Ee,ke===0){Ee===Se.length?(++Be,De.next?this.head=De.next:this.head=this.tail=null):(this.head=De,De.data=Se.slice(Ee));break}++Be}return this.length-=Be,Ae}},{key:"_getBuffer",value:function(ke){var De=se.allocUnsafe(ke),Be=this.head,Ae=1;for(Be.data.copy(De),ke-=Be.data.length;Be=Be.next;){var Se=Be.data,Ee=ke>Se.length?Se.length:ke;if(Se.copy(De,De.length-ke,0,Ee),ke-=Ee,ke===0){Ee===Se.length?(++Ae,Be.next?this.head=Be.next:this.head=this.tail=null):(this.head=Be,Be.data=Se.slice(Ee));break}++Ae}return this.length-=Ae,De}},{key:he,value:function(ke,De){return pe(this,E(E({},De),{},{depth:0,customInspect:!1}))}}]),ge}()},{buffer:90,util:89}],407:[function(y,je,be){(function(z){(function(){"use strict";function E(ae,re){var se=this,ue=this._readableState&&this._readableState.destroyed,pe=this._writableState&&this._writableState.destroyed;return ue||pe?(re?re(ae):ae&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,z.nextTick(ce,this,ae)):z.nextTick(ce,this,ae)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ae||null,function(he){!re&&he?se._writableState?se._writableState.errorEmitted?z.nextTick(oe,se):(se._writableState.errorEmitted=!0,z.nextTick(ie,se,he)):z.nextTick(ie,se,he):re?(z.nextTick(oe,se),re(he)):z.nextTick(oe,se)}),this)}function ie(ae,re){ce(ae,re),oe(ae)}function oe(ae){ae._writableState&&!ae._writableState.emitClose||ae._readableState&&!ae._readableState.emitClose||ae.emit("close")}function ee(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ce(ae,re){ae.emit("error",re)}function x(ae,re){var se=ae._readableState,ue=ae._writableState;se&&se.autoDestroy||ue&&ue.autoDestroy?ae.destroy(re):ae.emit("error",re)}je.exports={destroy:E,undestroy:ee,errorOrDestroy:x}}).call(this)}).call(this,y("_process"))},{_process:467}],408:[function(y,je,be){"use strict";var z=y("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function E(ce){var x=!1;return function(){if(!x){x=!0;for(var ae=arguments.length,re=new Array(ae),se=0;se<ae;se++)re[se]=arguments[se];ce.apply(this,re)}}}function ie(){}function oe(ce){return ce.setHeader&&typeof ce.abort=="function"}function ee(ce,x,ae){if(typeof x=="function")return ee(ce,null,x);x||(x={}),ae=E(ae||ie);var re=x.readable||x.readable!==!1&&ce.readable,se=x.writable||x.writable!==!1&&ce.writable,ue=function(){ce.writable||he()},pe=ce._writableState&&ce._writableState.finished,he=function(){se=!1,pe=!0,re||ae.call(ce)},ye=ce._readableState&&ce._readableState.endEmitted,ge=function(){re=!1,ye=!0,se||ae.call(ce)},xe=function(Ae){ae.call(ce,Ae)},ke=function(){var Ae;if(re&&!ye)return(!ce._readableState||!ce._readableState.ended)&&(Ae=new z),ae.call(ce,Ae);if(se&&!pe)return(!ce._writableState||!ce._writableState.ended)&&(Ae=new z),ae.call(ce,Ae)},De=function(){ce.req.on("finish",he)};return oe(ce)?(ce.on("complete",he),ce.on("abort",ke),ce.req?De():ce.on("request",De)):se&&!ce._writableState&&(ce.on("end",ue),ce.on("close",ue)),ce.on("end",ge),ce.on("finish",he),x.error!==!1&&ce.on("error",xe),ce.on("close",ke),function(){ce.removeListener("complete",he),ce.removeListener("abort",ke),ce.removeListener("request",De),ce.req&&ce.req.removeListener("finish",he),ce.removeListener("end",ue),ce.removeListener("close",ue),ce.removeListener("finish",he),ce.removeListener("end",ge),ce.removeListener("error",xe),ce.removeListener("close",ke)}}je.exports=ee},{"../../../errors":399}],409:[function(y,je,be){je.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(y,je,be){"use strict";var z;function E(he){var ye=!1;return function(){ye||(ye=!0,he.apply(void 0,arguments))}}var ie=y("../../../errors").codes,oe=ie.ERR_MISSING_ARGS,ee=ie.ERR_STREAM_DESTROYED;function ce(he){if(he)throw he}function x(he){return he.setHeader&&typeof he.abort=="function"}function ae(he,ye,ge,xe){xe=E(xe);var ke=!1;he.on("close",function(){ke=!0}),z===void 0&&(z=y("./end-of-stream")),z(he,{readable:ye,writable:ge},function(Be){if(Be)return xe(Be);ke=!0,xe()});var De=!1;return function(Be){if(!ke&&!De){if(De=!0,x(he))return he.abort();if(typeof he.destroy=="function")return he.destroy();xe(Be||new ee("pipe"))}}}function re(he){he()}function se(he,ye){return he.pipe(ye)}function ue(he){return!he.length||typeof he[he.length-1]!="function"?ce:he.pop()}function pe(){for(var he=arguments.length,ye=new Array(he),ge=0;ge<he;ge++)ye[ge]=arguments[ge];var xe=ue(ye);if(Array.isArray(ye[0])&&(ye=ye[0]),ye.length<2)throw new oe("streams");var ke,De=ye.map(function(Be,Ae){var Se=Ae<ye.length-1,Ee=Ae>0;return ae(Be,Se,Ee,function(Oe){ke||(ke=Oe),Oe&&De.forEach(re),!Se&&(De.forEach(re),xe(ke))})});return ye.reduce(se)}je.exports=pe},{"../../../errors":399,"./end-of-stream":408}],411:[function(y,je,be){"use strict";var z=y("../../../errors").codes.ERR_INVALID_OPT_VALUE;function E(oe,ee,ce){return oe.highWaterMark!=null?oe.highWaterMark:ee?oe[ce]:null}function ie(oe,ee,ce,x){var ae=E(ee,x,ce);if(ae!=null){if(!(isFinite(ae)&&Math.floor(ae)===ae)||ae<0){var re=x?ce:"highWaterMark";throw new z(re,ae)}return Math.floor(ae)}return oe.objectMode?16:16*1024}je.exports={getHighWaterMark:ie}},{"../../../errors":399}],412:[function(y,je,be){arguments[4][393][0].apply(be,arguments)},{dup:393,events:344}],413:[function(y,je,be){"use strict";var z=y("safe-buffer").Buffer,E=z.isEncoding||function(De){switch(De=""+De,De&&De.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ie(De){if(!De)return"utf8";for(var Be;;)switch(De){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return De;default:if(Be)return;De=(""+De).toLowerCase(),Be=!0}}function oe(De){var Be=ie(De);if(typeof Be!="string"&&(z.isEncoding===E||!E(De)))throw new Error("Unknown encoding: "+De);return Be||De}be.StringDecoder=ee;function ee(De){this.encoding=oe(De);var Be;switch(this.encoding){case"utf16le":this.text=pe,this.end=he,Be=4;break;case"utf8":this.fillLast=re,Be=4;break;case"base64":this.text=ye,this.end=ge,Be=3;break;default:this.write=xe,this.end=ke;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=z.allocUnsafe(Be)}ee.prototype.write=function(De){if(De.length===0)return"";var Be,Ae;if(this.lastNeed){if(Be=this.fillLast(De),Be===void 0)return"";Ae=this.lastNeed,this.lastNeed=0}else Ae=0;return Ae<De.length?Be?Be+this.text(De,Ae):this.text(De,Ae):Be||""},ee.prototype.end=ue,ee.prototype.text=se,ee.prototype.fillLast=function(De){if(this.lastNeed<=De.length)return De.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);De.copy(this.lastChar,this.lastTotal-this.lastNeed,0,De.length),this.lastNeed-=De.length};function ce(De){return De<=127?0:De>>5===6?2:De>>4===14?3:De>>3===30?4:De>>6===2?-1:-2}function x(De,Be,Ae){var Se=Be.length-1;if(Se<Ae)return 0;var Ee=ce(Be[Se]);return Ee>=0?(Ee>0&&(De.lastNeed=Ee-1),Ee):--Se<Ae||Ee===-2?0:(Ee=ce(Be[Se]),Ee>=0?(Ee>0&&(De.lastNeed=Ee-2),Ee):--Se<Ae||Ee===-2?0:(Ee=ce(Be[Se]),Ee>=0?(Ee>0&&(Ee===2?Ee=0:De.lastNeed=Ee-3),Ee):0))}function ae(De,Be,Ae){if((Be[0]&192)!==128)return De.lastNeed=0,"\uFFFD";if(De.lastNeed>1&&Be.length>1){if((Be[1]&192)!==128)return De.lastNeed=1,"\uFFFD";if(De.lastNeed>2&&Be.length>2&&(Be[2]&192)!==128)return De.lastNeed=2,"\uFFFD"}}function re(De){var Be=this.lastTotal-this.lastNeed,Ae=ae(this,De,Be);if(Ae!==void 0)return Ae;if(this.lastNeed<=De.length)return De.copy(this.lastChar,Be,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);De.copy(this.lastChar,Be,0,De.length),this.lastNeed-=De.length}function se(De,Be){var Ae=x(this,De,Be);if(!this.lastNeed)return De.toString("utf8",Be);this.lastTotal=Ae;var Se=De.length-(Ae-this.lastNeed);return De.copy(this.lastChar,0,Se),De.toString("utf8",Be,Se)}function ue(De){var Be=De&&De.length?this.write(De):"";return this.lastNeed?Be+"\uFFFD":Be}function pe(De,Be){if((De.length-Be)%2===0){var Ae=De.toString("utf16le",Be);if(Ae){var Se=Ae.charCodeAt(Ae.length-1);if(Se>=55296&&Se<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=De[De.length-2],this.lastChar[1]=De[De.length-1],Ae.slice(0,-1)}return Ae}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=De[De.length-1],De.toString("utf16le",Be,De.length-1)}function he(De){var Be=De&&De.length?this.write(De):"";if(this.lastNeed){var Ae=this.lastTotal-this.lastNeed;return Be+this.lastChar.toString("utf16le",0,Ae)}return Be}function ye(De,Be){var Ae=(De.length-Be)%3;return Ae===0?De.toString("base64",Be):(this.lastNeed=3-Ae,this.lastTotal=3,Ae===1?this.lastChar[0]=De[De.length-1]:(this.lastChar[0]=De[De.length-2],this.lastChar[1]=De[De.length-1]),De.toString("base64",Be,De.length-Ae))}function ge(De){var Be=De&&De.length?this.write(De):"";return this.lastNeed?Be+this.lastChar.toString("base64",0,3-this.lastNeed):Be}function xe(De){return De.toString(this.encoding)}function ke(De){return De&&De.length?this.write(De):""}},{"safe-buffer":396}],414:[function(y,je,be){(function(z,E){(function(){var ie=y("process/browser.js").nextTick,oe=Function.prototype.apply,ee=Array.prototype.slice,ce={},x=0;be.setTimeout=function(){return new ae(oe.call(setTimeout,window,arguments),clearTimeout)},be.setInterval=function(){return new ae(oe.call(setInterval,window,arguments),clearInterval)},be.clearTimeout=be.clearInterval=function(re){re.close()};function ae(re,se){this._id=re,this._clearFn=se}ae.prototype.unref=ae.prototype.ref=function(){},ae.prototype.close=function(){this._clearFn.call(window,this._id)},be.enroll=function(re,se){clearTimeout(re._idleTimeoutId),re._idleTimeout=se},be.unenroll=function(re){clearTimeout(re._idleTimeoutId),re._idleTimeout=-1},be._unrefActive=be.active=function(re){clearTimeout(re._idleTimeoutId);var se=re._idleTimeout;se>=0&&(re._idleTimeoutId=setTimeout(function(){re._onTimeout&&re._onTimeout()},se))},be.setImmediate=typeof z=="function"?z:function(re){var se=x++,ue=arguments.length<2?!1:ee.call(arguments,1);return ce[se]=!0,ie(function(){ce[se]&&(ue?re.apply(null,ue):re.call(null),be.clearImmediate(se))}),se},be.clearImmediate=typeof E=="function"?E:function(re){delete ce[re]}}).call(this)}).call(this,y("timers").setImmediate,y("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(y,je,be){var z=y("buffer").Buffer;je.exports=function(E){if(E instanceof Uint8Array){if(E.byteOffset===0&&E.byteLength===E.buffer.byteLength)return E.buffer;if(typeof E.buffer.slice=="function")return E.buffer.slice(E.byteOffset,E.byteOffset+E.byteLength)}if(z.isBuffer(E)){for(var ie=new Uint8Array(E.length),oe=E.length,ee=0;ee<oe;ee++)ie[ee]=E[ee];return ie.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(y,je,be){(function(z){(function(){je.exports=E;function E(oe,ee){if(ie("noDeprecation"))return oe;var ce=!1;function x(){if(!ce){if(ie("throwDeprecation"))throw new Error(ee);ie("traceDeprecation")?console.trace(ee):console.warn(ee),ce=!0}return oe.apply(this,arguments)}return x}function ie(oe){try{if(!z.localStorage)return!1}catch(ce){return!1}var ee=z.localStorage[oe];return ee==null?!1:String(ee).toLowerCase()==="true"}}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(y,je,be){arguments[4][84][0].apply(be,arguments)},{dup:84}],418:[function(y,je,be){"use strict";var z=y("is-arguments"),E=y("is-generator-function"),ie=y("which-typed-array"),oe=y("is-typed-array");function ee(Ge){return Ge.call.bind(Ge)}var ce=typeof BigInt!="undefined",x=typeof Symbol!="undefined",ae=ee(Object.prototype.toString),re=ee(Number.prototype.valueOf),se=ee(String.prototype.valueOf),ue=ee(Boolean.prototype.valueOf);if(ce)var pe=ee(BigInt.prototype.valueOf);if(x)var he=ee(Symbol.prototype.valueOf);function ye(Ge,Je){if(typeof Ge!="object")return!1;try{return Je(Ge),!0}catch(ut){return!1}}be.isArgumentsObject=z,be.isGeneratorFunction=E,be.isTypedArray=oe;function ge(Ge){return typeof Promise!="undefined"&&Ge instanceof Promise||Ge!==null&&typeof Ge=="object"&&typeof Ge.then=="function"&&typeof Ge.catch=="function"}be.isPromise=ge;function xe(Ge){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(Ge):oe(Ge)||Xe(Ge)}be.isArrayBufferView=xe;function ke(Ge){return ie(Ge)==="Uint8Array"}be.isUint8Array=ke;function De(Ge){return ie(Ge)==="Uint8ClampedArray"}be.isUint8ClampedArray=De;function Be(Ge){return ie(Ge)==="Uint16Array"}be.isUint16Array=Be;function Ae(Ge){return ie(Ge)==="Uint32Array"}be.isUint32Array=Ae;function Se(Ge){return ie(Ge)==="Int8Array"}be.isInt8Array=Se;function Ee(Ge){return ie(Ge)==="Int16Array"}be.isInt16Array=Ee;function Oe(Ge){return ie(Ge)==="Int32Array"}be.isInt32Array=Oe;function Pe(Ge){return ie(Ge)==="Float32Array"}be.isFloat32Array=Pe;function Le(Ge){return ie(Ge)==="Float64Array"}be.isFloat64Array=Le;function Ne(Ge){return ie(Ge)==="BigInt64Array"}be.isBigInt64Array=Ne;function me(Ge){return ie(Ge)==="BigUint64Array"}be.isBigUint64Array=me;function Ve(Ge){return ae(Ge)==="[object Map]"}Ve.working=typeof Map!="undefined"&&Ve(new Map);function Ze(Ge){return typeof Map=="undefined"?!1:Ve.working?Ve(Ge):Ge instanceof Map}be.isMap=Ze;function We(Ge){return ae(Ge)==="[object Set]"}We.working=typeof Set!="undefined"&&We(new Set);function nt(Ge){return typeof Set=="undefined"?!1:We.working?We(Ge):Ge instanceof Set}be.isSet=nt;function _e(Ge){return ae(Ge)==="[object WeakMap]"}_e.working=typeof WeakMap!="undefined"&&_e(new WeakMap);function Ue(Ge){return typeof WeakMap=="undefined"?!1:_e.working?_e(Ge):Ge instanceof WeakMap}be.isWeakMap=Ue;function tt(Ge){return ae(Ge)==="[object WeakSet]"}tt.working=typeof WeakSet!="undefined"&&tt(new WeakSet);function rt(Ge){return tt(Ge)}be.isWeakSet=rt;function et(Ge){return ae(Ge)==="[object ArrayBuffer]"}et.working=typeof ArrayBuffer!="undefined"&&et(new ArrayBuffer);function Ke(Ge){return typeof ArrayBuffer=="undefined"?!1:et.working?et(Ge):Ge instanceof ArrayBuffer}be.isArrayBuffer=Ke;function Ye(Ge){return ae(Ge)==="[object DataView]"}Ye.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&Ye(new DataView(new ArrayBuffer(1),0,1));function Xe(Ge){return typeof DataView=="undefined"?!1:Ye.working?Ye(Ge):Ge instanceof DataView}be.isDataView=Xe;var ot=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Qe(Ge){return ae(Ge)==="[object SharedArrayBuffer]"}function ft(Ge){return typeof ot=="undefined"?!1:(typeof Qe.working=="undefined"&&(Qe.working=Qe(new ot)),Qe.working?Qe(Ge):Ge instanceof ot)}be.isSharedArrayBuffer=ft;function at(Ge){return ae(Ge)==="[object AsyncFunction]"}be.isAsyncFunction=at;function qe(Ge){return ae(Ge)==="[object Map Iterator]"}be.isMapIterator=qe;function Fe(Ge){return ae(Ge)==="[object Set Iterator]"}be.isSetIterator=Fe;function Re(Ge){return ae(Ge)==="[object Generator]"}be.isGeneratorObject=Re;function ne(Ge){return ae(Ge)==="[object WebAssembly.Module]"}be.isWebAssemblyCompiledModule=ne;function fe(Ge){return ye(Ge,re)}be.isNumberObject=fe;function Me(Ge){return ye(Ge,se)}be.isStringObject=Me;function ze(Ge){return ye(Ge,ue)}be.isBooleanObject=ze;function we(Ge){return ce&&ye(Ge,pe)}be.isBigIntObject=we;function ve(Ge){return x&&ye(Ge,he)}be.isSymbolObject=ve;function Ie(Ge){return fe(Ge)||Me(Ge)||ze(Ge)||we(Ge)||ve(Ge)}be.isBoxedPrimitive=Ie;function $e(Ge){return typeof Uint8Array!="undefined"&&(Ke(Ge)||ft(Ge))}be.isAnyArrayBuffer=$e,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Ge){Object.defineProperty(be,Ge,{enumerable:!1,value:function(){throw new Error(Ge+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(y,je,be){(function(z){(function(){var E=Object.getOwnPropertyDescriptors||function(ot){for(var Qe=Object.keys(ot),ft={},at=0;at<Qe.length;at++)ft[Qe[at]]=Object.getOwnPropertyDescriptor(ot,Qe[at]);return ft},ie=/%[sdj%]/g;be.format=function(Xe){if(!Ee(Xe)){for(var ot=[],Qe=0;Qe<arguments.length;Qe++)ot.push(x(arguments[Qe]));return ot.join(" ")}for(var Qe=1,ft=arguments,at=ft.length,qe=String(Xe).replace(ie,function(Re){if(Re==="%%")return"%";if(Qe>=at)return Re;switch(Re){case"%s":return String(ft[Qe++]);case"%d":return Number(ft[Qe++]);case"%j":try{return JSON.stringify(ft[Qe++])}catch(ne){return"[Circular]"}default:return Re}}),Fe=ft[Qe];Qe<at;Fe=ft[++Qe])Be(Fe)||!Ne(Fe)?qe+=" "+Fe:qe+=" "+x(Fe);return qe},be.deprecate=function(Xe,ot){if(typeof z!="undefined"&&z.noDeprecation===!0)return Xe;if(typeof z=="undefined")return function(){return be.deprecate(Xe,ot).apply(this,arguments)};var Qe=!1;function ft(){if(!Qe){if(z.throwDeprecation)throw new Error(ot);z.traceDeprecation?console.trace(ot):console.error(ot),Qe=!0}return Xe.apply(this,arguments)}return ft};var oe={},ee=/^$/;if(z.env.NODE_DEBUG){var ce=z.env.NODE_DEBUG;ce=ce.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ee=new RegExp("^"+ce+"$","i")}be.debuglog=function(Xe){if(Xe=Xe.toUpperCase(),!oe[Xe])if(ee.test(Xe)){var ot=z.pid;oe[Xe]=function(){var Qe=be.format.apply(be,arguments);console.error("%s %d: %s",Xe,ot,Qe)}}else oe[Xe]=function(){};return oe[Xe]};function x(Xe,ot){var Qe={seen:[],stylize:re};return arguments.length>=3&&(Qe.depth=arguments[2]),arguments.length>=4&&(Qe.colors=arguments[3]),De(ot)?Qe.showHidden=ot:ot&&be._extend(Qe,ot),Pe(Qe.showHidden)&&(Qe.showHidden=!1),Pe(Qe.depth)&&(Qe.depth=2),Pe(Qe.colors)&&(Qe.colors=!1),Pe(Qe.customInspect)&&(Qe.customInspect=!0),Qe.colors&&(Qe.stylize=ae),ue(Qe,Xe,Qe.depth)}be.inspect=x,x.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},x.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ae(Xe,ot){var Qe=x.styles[ot];return Qe?"\x1B["+x.colors[Qe][0]+"m"+Xe+"\x1B["+x.colors[Qe][1]+"m":Xe}function re(Xe,ot){return Xe}function se(Xe){var ot={};return Xe.forEach(function(Qe,ft){ot[Qe]=!0}),ot}function ue(Xe,ot,Qe){if(Xe.customInspect&&ot&&Ze(ot.inspect)&&ot.inspect!==be.inspect&&!(ot.constructor&&ot.constructor.prototype===ot)){var ft=ot.inspect(Qe,Xe);return Ee(ft)||(ft=ue(Xe,ft,Qe)),ft}var at=pe(Xe,ot);if(at)return at;var qe=Object.keys(ot),Fe=se(qe);if(Xe.showHidden&&(qe=Object.getOwnPropertyNames(ot)),Ve(ot)&&(qe.indexOf("message")>=0||qe.indexOf("description")>=0))return he(ot);if(qe.length===0){if(Ze(ot)){var Re=ot.name?": "+ot.name:"";return Xe.stylize("[Function"+Re+"]","special")}if(Le(ot))return Xe.stylize(RegExp.prototype.toString.call(ot),"regexp");if(me(ot))return Xe.stylize(Date.prototype.toString.call(ot),"date");if(Ve(ot))return he(ot)}var ne="",fe=!1,Me=["{","}"];if(ke(ot)&&(fe=!0,Me=["[","]"]),Ze(ot)){var ze=ot.name?": "+ot.name:"";ne=" [Function"+ze+"]"}if(Le(ot)&&(ne=" "+RegExp.prototype.toString.call(ot)),me(ot)&&(ne=" "+Date.prototype.toUTCString.call(ot)),Ve(ot)&&(ne=" "+he(ot)),qe.length===0&&(!fe||ot.length==0))return Me[0]+ne+Me[1];if(Qe<0)return Le(ot)?Xe.stylize(RegExp.prototype.toString.call(ot),"regexp"):Xe.stylize("[Object]","special");Xe.seen.push(ot);var we;return fe?we=ye(Xe,ot,Qe,Fe,qe):we=qe.map(function(ve){return ge(Xe,ot,Qe,Fe,ve,fe)}),Xe.seen.pop(),xe(we,ne,Me)}function pe(Xe,ot){if(Pe(ot))return Xe.stylize("undefined","undefined");if(Ee(ot)){var Qe="'"+JSON.stringify(ot).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Xe.stylize(Qe,"string")}if(Se(ot))return Xe.stylize(""+ot,"number");if(De(ot))return Xe.stylize(""+ot,"boolean");if(Be(ot))return Xe.stylize("null","null")}function he(Xe){return"["+Error.prototype.toString.call(Xe)+"]"}function ye(Xe,ot,Qe,ft,at){for(var qe=[],Fe=0,Re=ot.length;Fe<Re;++Fe)rt(ot,String(Fe))?qe.push(ge(Xe,ot,Qe,ft,String(Fe),!0)):qe.push("");return at.forEach(function(ne){ne.match(/^\d+$/)||qe.push(ge(Xe,ot,Qe,ft,ne,!0))}),qe}function ge(Xe,ot,Qe,ft,at,qe){var Fe,Re,ne;if(ne=Object.getOwnPropertyDescriptor(ot,at)||{value:ot[at]},ne.get?ne.set?Re=Xe.stylize("[Getter/Setter]","special"):Re=Xe.stylize("[Getter]","special"):ne.set&&(Re=Xe.stylize("[Setter]","special")),rt(ft,at)||(Fe="["+at+"]"),Re||(Xe.seen.indexOf(ne.value)<0?(Be(Qe)?Re=ue(Xe,ne.value,null):Re=ue(Xe,ne.value,Qe-1),Re.indexOf(`
`)>-1&&(qe?Re=Re.split(`
`).map(function(fe){return" "+fe}).join(`
`).slice(2):Re=`
`+Re.split(`
`).map(function(fe){return" "+fe}).join(`
`))):Re=Xe.stylize("[Circular]","special")),Pe(Fe)){if(qe&&at.match(/^\d+$/))return Re;Fe=JSON.stringify(""+at),Fe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Fe=Fe.slice(1,-1),Fe=Xe.stylize(Fe,"name")):(Fe=Fe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Fe=Xe.stylize(Fe,"string"))}return Fe+": "+Re}function xe(Xe,ot,Qe){var ft=0,at=Xe.reduce(function(qe,Fe){return ft++,Fe.indexOf(`
`)>=0&&ft++,qe+Fe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return at>60?Qe[0]+(ot===""?"":ot+`
`)+" "+Xe.join(`,
`)+" "+Qe[1]:Qe[0]+ot+" "+Xe.join(", ")+" "+Qe[1]}be.types=y("./support/types");function ke(Xe){return Array.isArray(Xe)}be.isArray=ke;function De(Xe){return typeof Xe=="boolean"}be.isBoolean=De;function Be(Xe){return Xe===null}be.isNull=Be;function Ae(Xe){return Xe==null}be.isNullOrUndefined=Ae;function Se(Xe){return typeof Xe=="number"}be.isNumber=Se;function Ee(Xe){return typeof Xe=="string"}be.isString=Ee;function Oe(Xe){return typeof Xe=="symbol"}be.isSymbol=Oe;function Pe(Xe){return Xe===void 0}be.isUndefined=Pe;function Le(Xe){return Ne(Xe)&&nt(Xe)==="[object RegExp]"}be.isRegExp=Le,be.types.isRegExp=Le;function Ne(Xe){return typeof Xe=="object"&&Xe!==null}be.isObject=Ne;function me(Xe){return Ne(Xe)&&nt(Xe)==="[object Date]"}be.isDate=me,be.types.isDate=me;function Ve(Xe){return Ne(Xe)&&(nt(Xe)==="[object Error]"||Xe instanceof Error)}be.isError=Ve,be.types.isNativeError=Ve;function Ze(Xe){return typeof Xe=="function"}be.isFunction=Ze;function We(Xe){return Xe===null||typeof Xe=="boolean"||typeof Xe=="number"||typeof Xe=="string"||typeof Xe=="symbol"||typeof Xe=="undefined"}be.isPrimitive=We,be.isBuffer=y("./support/isBuffer");function nt(Xe){return Object.prototype.toString.call(Xe)}function _e(Xe){return Xe<10?"0"+Xe.toString(10):Xe.toString(10)}var Ue=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function tt(){var Xe=new Date,ot=[_e(Xe.getHours()),_e(Xe.getMinutes()),_e(Xe.getSeconds())].join(":");return[Xe.getDate(),Ue[Xe.getMonth()],ot].join(" ")}be.log=function(){console.log("%s - %s",tt(),be.format.apply(be,arguments))},be.inherits=y("inherits"),be._extend=function(Xe,ot){if(!ot||!Ne(ot))return Xe;for(var Qe=Object.keys(ot),ft=Qe.length;ft--;)Xe[Qe[ft]]=ot[Qe[ft]];return Xe};function rt(Xe,ot){return Object.prototype.hasOwnProperty.call(Xe,ot)}var et=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;be.promisify=function(ot){if(typeof ot!="function")throw new TypeError('The "original" argument must be of type Function');if(et&&ot[et]){var Qe=ot[et];if(typeof Qe!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Qe,et,{value:Qe,enumerable:!1,writable:!1,configurable:!0}),Qe}function Qe(){for(var ft,at,qe=new Promise(function(ne,fe){ft=ne,at=fe}),Fe=[],Re=0;Re<arguments.length;Re++)Fe.push(arguments[Re]);Fe.push(function(ne,fe){ne?at(ne):ft(fe)});try{ot.apply(this,Fe)}catch(ne){at(ne)}return qe}return Object.setPrototypeOf(Qe,Object.getPrototypeOf(ot)),et&&Object.defineProperty(Qe,et,{value:Qe,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Qe,E(ot))},be.promisify.custom=et;function Ke(Xe,ot){if(!Xe){var Qe=new Error("Promise was rejected with a falsy value");Qe.reason=Xe,Xe=Qe}return ot(Xe)}function Ye(Xe){if(typeof Xe!="function")throw new TypeError('The "original" argument must be of type Function');function ot(){for(var Qe=[],ft=0;ft<arguments.length;ft++)Qe.push(arguments[ft]);var at=Qe.pop();if(typeof at!="function")throw new TypeError("The last argument must be of type Function");var qe=this,Fe=function(){return at.apply(qe,arguments)};Xe.apply(this,Qe).then(function(Re){z.nextTick(Fe.bind(null,null,Re))},function(Re){z.nextTick(Ke.bind(null,Re,Fe))})}return Object.setPrototypeOf(ot,Object.getPrototypeOf(Xe)),Object.defineProperties(ot,E(Xe)),ot}be.callbackify=Ye}).call(this)}).call(this,y("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(y,je,be){(function(z){(function(){"use strict";var E=y("for-each"),ie=y("available-typed-arrays"),oe=y("call-bind"),ee=y("call-bind/callBound"),ce=y("gopd"),x=ee("Object.prototype.toString"),ae=y("has-tostringtag/shams")(),re=typeof globalThis=="undefined"?z:globalThis,se=ie(),ue=ee("String.prototype.slice"),pe=Object.getPrototypeOf,he=ee("Array.prototype.indexOf",!0)||function(De,Be){for(var Ae=0;Ae<De.length;Ae+=1)if(De[Ae]===Be)return Ae;return-1},ye={__proto__:null};ae&&ce&&pe?E(se,function(ke){var De=new re[ke];if(Symbol.toStringTag in De){var Be=pe(De),Ae=ce(Be,Symbol.toStringTag);if(!Ae){var Se=pe(Be);Ae=ce(Se,Symbol.toStringTag)}ye["$"+ke]=oe(Ae.get)}}):E(se,function(ke){var De=new re[ke];ye["$"+ke]=oe(De.slice)});var ge=function(De){var Be=!1;return E(ye,function(Ae,Se){if(!Be)try{"$"+Ae(De)===Se&&(Be=ue(Se,1))}catch(Ee){}}),Be},xe=function(De){var Be=!1;return E(ye,function(Ae,Se){if(!Be)try{Ae(De),Be=ue(Se,1)}catch(Ee){}}),Be};je.exports=function(De){if(!De||typeof De!="object")return!1;if(!ae){var Be=ue(x(De),8,-1);return he(se,Be)>-1?Be:Be!=="Object"?!1:xe(De)}return ce?ge(De):null}}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"available-typed-arrays":86,"call-bind":93,"call-bind/callBound":92,"for-each":345,gopd:349,"has-tostringtag/shams":353}],421:[function(y,je,be){(function(){"use strict";be.stripBOM=function(z){return z[0]==="\uFEFF"?z.substring(1):z}}).call(this)},{}],422:[function(y,je,be){(function(){"use strict";var z,E,ie,oe,ee,ce={}.hasOwnProperty;z=y("xmlbuilder"),E=y("./defaults").defaults,oe=function(x){return typeof x=="string"&&(x.indexOf("&")>=0||x.indexOf(">")>=0||x.indexOf("<")>=0)},ee=function(x){return"<![CDATA["+ie(x)+"]]>"},ie=function(x){return x.replace("]]>","]]]]><![CDATA[>")},be.Builder=function(){function x(ae){var re,se,ue;this.options={},se=E["0.2"];for(re in se)ce.call(se,re)&&(ue=se[re],this.options[re]=ue);for(re in ae)ce.call(ae,re)&&(ue=ae[re],this.options[re]=ue)}return x.prototype.buildObject=function(ae){var re,se,ue,pe,he;return re=this.options.attrkey,se=this.options.charkey,Object.keys(ae).length===1&&this.options.rootName===E["0.2"].rootName?(he=Object.keys(ae)[0],ae=ae[he]):he=this.options.rootName,ue=function(ye){return function(ge,xe){var ke,De,Be,Ae,Se,Ee;if(typeof xe!="object")ye.options.cdata&&oe(xe)?ge.raw(ee(xe)):ge.txt(xe);else if(Array.isArray(xe)){for(Ae in xe)if(ce.call(xe,Ae)){De=xe[Ae];for(Se in De)Be=De[Se],ge=ue(ge.ele(Se),Be).up()}}else for(Se in xe)if(ce.call(xe,Se))if(De=xe[Se],Se===re){if(typeof De=="object")for(ke in De)Ee=De[ke],ge=ge.att(ke,Ee)}else if(Se===se)ye.options.cdata&&oe(De)?ge=ge.raw(ee(De)):ge=ge.txt(De);else if(Array.isArray(De))for(Ae in De)ce.call(De,Ae)&&(Be=De[Ae],typeof Be=="string"?ye.options.cdata&&oe(Be)?ge=ge.ele(Se).raw(ee(Be)).up():ge=ge.ele(Se,Be).up():ge=ue(ge.ele(Se),Be).up());else typeof De=="object"?ge=ue(ge.ele(Se),De).up():typeof De=="string"&&ye.options.cdata&&oe(De)?ge=ge.ele(Se).raw(ee(De)).up():(De==null&&(De=""),ge=ge.ele(Se,De.toString()).up());return ge}}(this),pe=z.create(he,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ue(pe,ae).end(this.options.renderOpts)},x}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(y,je,be){(function(){be.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],424:[function(y,je,be){(function(){"use strict";var z,E,ie,oe,ee,ce,x,ae,re,se=function(he,ye){return function(){return he.apply(ye,arguments)}},ue=function(he,ye){for(var ge in ye)pe.call(ye,ge)&&(he[ge]=ye[ge]);function xe(){this.constructor=he}return xe.prototype=ye.prototype,he.prototype=new xe,he.__super__=ye.prototype,he},pe={}.hasOwnProperty;ae=y("sax"),oe=y("events"),z=y("./bom"),x=y("./processors"),re=y("timers").setImmediate,E=y("./defaults").defaults,ee=function(he){return typeof he=="object"&&he!=null&&Object.keys(he).length===0},ce=function(he,ye,ge){var xe,ke,De;for(xe=0,ke=he.length;xe<ke;xe++)De=he[xe],ye=De(ye,ge);return ye},ie=function(he,ye,ge){var xe;return xe=Object.create(null),xe.value=ge,xe.writable=!0,xe.enumerable=!0,xe.configurable=!0,Object.defineProperty(he,ye,xe)},be.Parser=function(he){ue(ye,he);function ye(ge){this.parseStringPromise=se(this.parseStringPromise,this),this.parseString=se(this.parseString,this),this.reset=se(this.reset,this),this.assignOrPush=se(this.assignOrPush,this),this.processAsync=se(this.processAsync,this);var xe,ke,De;if(!(this instanceof be.Parser))return new be.Parser(ge);this.options={},ke=E["0.2"];for(xe in ke)pe.call(ke,xe)&&(De=ke[xe],this.options[xe]=De);for(xe in ge)pe.call(ge,xe)&&(De=ge[xe],this.options[xe]=De);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(x.normalize)),this.reset()}return ye.prototype.processAsync=function(){var ge,xe;try{return this.remaining.length<=this.options.chunkSize?(ge=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(ge),this.saxParser.close()):(ge=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(ge),re(this.processAsync))}catch(ke){if(xe=ke,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(xe)}},ye.prototype.assignOrPush=function(ge,xe,ke){return xe in ge?(ge[xe]instanceof Array||ie(ge,xe,[ge[xe]]),ge[xe].push(ke)):this.options.explicitArray?ie(ge,xe,[ke]):ie(ge,xe,ke)},ye.prototype.reset=function(){var ge,xe,ke,De;return this.removeAllListeners(),this.saxParser=ae.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Be){return function(Ae){if(Be.saxParser.resume(),!Be.saxParser.errThrown)return Be.saxParser.errThrown=!0,Be.emit("error",Ae)}}(this),this.saxParser.onend=function(Be){return function(){if(!Be.saxParser.ended)return Be.saxParser.ended=!0,Be.emit("end",Be.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,De=[],ge=this.options.attrkey,xe=this.options.charkey,this.saxParser.onopentag=function(Be){return function(Ae){var Se,Ee,Oe,Pe,Le;if(Oe={},Oe[xe]="",!Be.options.ignoreAttrs){Le=Ae.attributes;for(Se in Le)pe.call(Le,Se)&&(!(ge in Oe)&&!Be.options.mergeAttrs&&(Oe[ge]={}),Ee=Be.options.attrValueProcessors?ce(Be.options.attrValueProcessors,Ae.attributes[Se],Se):Ae.attributes[Se],Pe=Be.options.attrNameProcessors?ce(Be.options.attrNameProcessors,Se):Se,Be.options.mergeAttrs?Be.assignOrPush(Oe,Pe,Ee):ie(Oe[ge],Pe,Ee))}return Oe["#name"]=Be.options.tagNameProcessors?ce(Be.options.tagNameProcessors,Ae.name):Ae.name,Be.options.xmlns&&(Oe[Be.options.xmlnskey]={uri:Ae.uri,local:Ae.local}),De.push(Oe)}}(this),this.saxParser.onclosetag=function(Be){return function(){var Ae,Se,Ee,Oe,Pe,Le,Ne,me,Ve,Ze;if(Le=De.pop(),Pe=Le["#name"],(!Be.options.explicitChildren||!Be.options.preserveChildrenOrder)&&delete Le["#name"],Le.cdata===!0&&(Ae=Le.cdata,delete Le.cdata),Ve=De[De.length-1],Le[xe].match(/^\s*$/)&&!Ae?(Se=Le[xe],delete Le[xe]):(Be.options.trim&&(Le[xe]=Le[xe].trim()),Be.options.normalize&&(Le[xe]=Le[xe].replace(/\s{2,}/g," ").trim()),Le[xe]=Be.options.valueProcessors?ce(Be.options.valueProcessors,Le[xe],Pe):Le[xe],Object.keys(Le).length===1&&xe in Le&&!Be.EXPLICIT_CHARKEY&&(Le=Le[xe])),ee(Le)&&(typeof Be.options.emptyTag=="function"?Le=Be.options.emptyTag():Le=Be.options.emptyTag!==""?Be.options.emptyTag:Se),Be.options.validator!=null&&(Ze="/"+function(){var We,nt,_e;for(_e=[],We=0,nt=De.length;We<nt;We++)Oe=De[We],_e.push(Oe["#name"]);return _e}().concat(Pe).join("/"),function(){var We;try{return Le=Be.options.validator(Ze,Ve&&Ve[Pe],Le)}catch(nt){return We=nt,Be.emit("error",We)}}()),Be.options.explicitChildren&&!Be.options.mergeAttrs&&typeof Le=="object"){if(!Be.options.preserveChildrenOrder)Oe={},Be.options.attrkey in Le&&(Oe[Be.options.attrkey]=Le[Be.options.attrkey],delete Le[Be.options.attrkey]),!Be.options.charsAsChildren&&Be.options.charkey in Le&&(Oe[Be.options.charkey]=Le[Be.options.charkey],delete Le[Be.options.charkey]),Object.getOwnPropertyNames(Le).length>0&&(Oe[Be.options.childkey]=Le),Le=Oe;else if(Ve){Ve[Be.options.childkey]=Ve[Be.options.childkey]||[],Ne={};for(Ee in Le)pe.call(Le,Ee)&&ie(Ne,Ee,Le[Ee]);Ve[Be.options.childkey].push(Ne),delete Le["#name"],Object.keys(Le).length===1&&xe in Le&&!Be.EXPLICIT_CHARKEY&&(Le=Le[xe])}}return De.length>0?Be.assignOrPush(Ve,Pe,Le):(Be.options.explicitRoot&&(me=Le,Le={},ie(Le,Pe,me)),Be.resultObject=Le,Be.saxParser.ended=!0,Be.emit("end",Be.resultObject))}}(this),ke=function(Be){return function(Ae){var Se,Ee;if(Ee=De[De.length-1],Ee)return Ee[xe]+=Ae,Be.options.explicitChildren&&Be.options.preserveChildrenOrder&&Be.options.charsAsChildren&&(Be.options.includeWhiteChars||Ae.replace(/\\n/g,"").trim()!=="")&&(Ee[Be.options.childkey]=Ee[Be.options.childkey]||[],Se={"#name":"__text__"},Se[xe]=Ae,Be.options.normalize&&(Se[xe]=Se[xe].replace(/\s{2,}/g," ").trim()),Ee[Be.options.childkey].push(Se)),Ee}}(this),this.saxParser.ontext=ke,this.saxParser.oncdata=function(Be){return function(Ae){var Se;if(Se=ke(Ae),Se)return Se.cdata=!0}}(this)},ye.prototype.parseString=function(ge,xe){var ke;xe!=null&&typeof xe=="function"&&(this.on("end",function(De){return this.reset(),xe(null,De)}),this.on("error",function(De){return this.reset(),xe(De)}));try{return ge=ge.toString(),ge.trim()===""?(this.emit("end",null),!0):(ge=z.stripBOM(ge),this.options.async?(this.remaining=ge,re(this.processAsync),this.saxParser):this.saxParser.write(ge).close())}catch(De){if(ke=De,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw ke}else return this.emit("error",ke),this.saxParser.errThrown=!0}},ye.prototype.parseStringPromise=function(ge){return new Promise(function(xe){return function(ke,De){return xe.parseString(ge,function(Be,Ae){return Be?De(Be):ke(Ae)})}}(this))},ye}(oe),be.parseString=function(he,ye,ge){var xe,ke,De;return ge!=null?(typeof ge=="function"&&(xe=ge),typeof ye=="object"&&(ke=ye)):(typeof ye=="function"&&(xe=ye),ke={}),De=new be.Parser(ke),De.parseString(he,xe)},be.parseStringPromise=function(he,ye){var ge,xe;return typeof ye=="object"&&(ge=ye),xe=new be.Parser(ge),xe.parseStringPromise(he)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(y,je,be){(function(){"use strict";var z;z=new RegExp(/(?!xmlns)^.*:/),be.normalize=function(E){return E.toLowerCase()},be.firstCharLowerCase=function(E){return E.charAt(0).toLowerCase()+E.slice(1)},be.stripPrefix=function(E){return E.replace(z,"")},be.parseNumbers=function(E){return isNaN(E)||(E=E%1===0?parseInt(E,10):parseFloat(E)),E},be.parseBooleans=function(E){return/^(?:true|false)$/i.test(E)&&(E=E.toLowerCase()==="true"),E}}).call(this)},{}],426:[function(y,je,be){(function(){"use strict";var z,E,ie,oe,ee=function(x,ae){for(var re in ae)ce.call(ae,re)&&(x[re]=ae[re]);function se(){this.constructor=x}return se.prototype=ae.prototype,x.prototype=new se,x.__super__=ae.prototype,x},ce={}.hasOwnProperty;E=y("./defaults"),z=y("./builder"),ie=y("./parser"),oe=y("./processors"),be.defaults=E.defaults,be.processors=oe,be.ValidationError=function(x){ee(ae,x);function ae(re){this.message=re}return ae}(Error),be.Builder=z.Builder,be.Parser=ie.Parser,be.parseString=ie.parseString,be.parseStringPromise=ie.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(y,je,be){(function(){je.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(y,je,be){(function(){je.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],429:[function(y,je,be){(function(){var z,E,ie,oe,ee,ce,x,ae=[].slice,re={}.hasOwnProperty;z=function(){var se,ue,pe,he,ye,ge;if(ge=arguments[0],ye=2<=arguments.length?ae.call(arguments,1):[],ee(Object.assign))Object.assign.apply(null,arguments);else for(se=0,pe=ye.length;se<pe;se++)if(he=ye[se],he!=null)for(ue in he)re.call(he,ue)&&(ge[ue]=he[ue]);return ge},ee=function(se){return!!se&&Object.prototype.toString.call(se)==="[object Function]"},ce=function(se){var ue;return!!se&&((ue=typeof se)=="function"||ue==="object")},ie=function(se){return ee(Array.isArray)?Array.isArray(se):Object.prototype.toString.call(se)==="[object Array]"},oe=function(se){var ue;if(ie(se))return!se.length;for(ue in se)if(re.call(se,ue))return!1;return!0},x=function(se){var ue,pe;return ce(se)&&(pe=Object.getPrototypeOf(se))&&(ue=pe.constructor)&&typeof ue=="function"&&ue instanceof ue&&Function.prototype.toString.call(ue)===Function.prototype.toString.call(Object)},E=function(se){return ee(se.valueOf)?se.valueOf():se},je.exports.assign=z,je.exports.isFunction=ee,je.exports.isObject=ce,je.exports.isArray=ie,je.exports.isEmpty=oe,je.exports.isPlainObject=x,je.exports.getValue=E}).call(this)},{}],430:[function(y,je,be){(function(){je.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(y,je,be){(function(){var z,E,ie;z=y("./NodeType"),ie=y("./XMLNode"),je.exports=E=function(){function oe(ee,ce,x){if(this.parent=ee,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),ce==null)throw new Error("Missing attribute name. "+this.debugInfo(ce));this.name=this.stringify.name(ce),this.value=this.stringify.attValue(x),this.type=z.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(oe.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(oe.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(oe.prototype,"textContent",{get:function(){return this.value},set:function(ee){return this.value=ee||""}}),Object.defineProperty(oe.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(oe.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(oe.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(oe.prototype,"specified",{get:function(){return!0}}),oe.prototype.clone=function(){return Object.create(this)},oe.prototype.toString=function(ee){return this.options.writer.attribute(this,this.options.writer.filterOptions(ee))},oe.prototype.debugInfo=function(ee){return ee=ee||this.name,ee==null?"parent: <"+this.parent.name+">":"attribute: {"+ee+"}, parent: <"+this.parent.name+">"},oe.prototype.isEqualNode=function(ee){return!(ee.namespaceURI!==this.namespaceURI||ee.prefix!==this.prefix||ee.localName!==this.localName||ee.value!==this.value)},oe}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(y,je,be){(function(){var z,E,ie,oe=function(ce,x){for(var ae in x)ee.call(x,ae)&&(ce[ae]=x[ae]);function re(){this.constructor=ce}return re.prototype=x.prototype,ce.prototype=new re,ce.__super__=x.prototype,ce},ee={}.hasOwnProperty;z=y("./NodeType"),ie=y("./XMLCharacterData"),je.exports=E=function(ce){oe(x,ce);function x(ae,re){if(x.__super__.constructor.call(this,ae),re==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=z.CData,this.value=this.stringify.cdata(re)}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(ae){return this.options.writer.cdata(this,this.options.writer.filterOptions(ae))},x}(ie)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(y,je,be){(function(){var z,E,ie=function(ee,ce){for(var x in ce)oe.call(ce,x)&&(ee[x]=ce[x]);function ae(){this.constructor=ee}return ae.prototype=ce.prototype,ee.prototype=new ae,ee.__super__=ce.prototype,ee},oe={}.hasOwnProperty;E=y("./XMLNode"),je.exports=z=function(ee){ie(ce,ee);function ce(x){ce.__super__.constructor.call(this,x),this.value=""}return Object.defineProperty(ce.prototype,"data",{get:function(){return this.value},set:function(x){return this.value=x||""}}),Object.defineProperty(ce.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(ce.prototype,"textContent",{get:function(){return this.value},set:function(x){return this.value=x||""}}),ce.prototype.clone=function(){return Object.create(this)},ce.prototype.substringData=function(x,ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.appendData=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.insertData=function(x,ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.deleteData=function(x,ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.replaceData=function(x,ae,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.isEqualNode=function(x){return!(!ce.__super__.isEqualNode.apply(this,arguments).isEqualNode(x)||x.data!==this.data)},ce}(E)}).call(this)},{"./XMLNode":450}],434:[function(y,je,be){(function(){var z,E,ie,oe=function(ce,x){for(var ae in x)ee.call(x,ae)&&(ce[ae]=x[ae]);function re(){this.constructor=ce}return re.prototype=x.prototype,ce.prototype=new re,ce.__super__=x.prototype,ce},ee={}.hasOwnProperty;z=y("./NodeType"),E=y("./XMLCharacterData"),je.exports=ie=function(ce){oe(x,ce);function x(ae,re){if(x.__super__.constructor.call(this,ae),re==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=z.Comment,this.value=this.stringify.comment(re)}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(ae){return this.options.writer.comment(this,this.options.writer.filterOptions(ae))},x}(E)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(y,je,be){(function(){var z,E,ie;E=y("./XMLDOMErrorHandler"),ie=y("./XMLDOMStringList"),je.exports=z=function(){function oe(){var ee;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new E,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=ee=Object.create(this.defaultParams)}return Object.defineProperty(oe.prototype,"parameterNames",{get:function(){return new ie(Object.keys(this.defaultParams))}}),oe.prototype.getParameter=function(ee){return this.params.hasOwnProperty(ee)?this.params[ee]:null},oe.prototype.canSetParameter=function(ee,ce){return!0},oe.prototype.setParameter=function(ee,ce){return ce!=null?this.params[ee]=ce:delete this.params[ee]},oe}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(y,je,be){(function(){var z;je.exports=z=function(){function E(){}return E.prototype.handleError=function(ie){throw new Error(ie)},E}()}).call(this)},{}],437:[function(y,je,be){(function(){var z;je.exports=z=function(){function E(){}return E.prototype.hasFeature=function(ie,oe){return!0},E.prototype.createDocumentType=function(ie,oe,ee){throw new Error("This DOM method is not implemented.")},E.prototype.createDocument=function(ie,oe,ee){throw new Error("This DOM method is not implemented.")},E.prototype.createHTMLDocument=function(ie){throw new Error("This DOM method is not implemented.")},E.prototype.getFeature=function(ie,oe){throw new Error("This DOM method is not implemented.")},E}()}).call(this)},{}],438:[function(y,je,be){(function(){var z;je.exports=z=function(){function E(ie){this.arr=ie||[]}return Object.defineProperty(E.prototype,"length",{get:function(){return this.arr.length}}),E.prototype.item=function(ie){return this.arr[ie]||null},E.prototype.contains=function(ie){return this.arr.indexOf(ie)!==-1},E}()}).call(this)},{}],439:[function(y,je,be){(function(){var z,E,ie,oe=function(ce,x){for(var ae in x)ee.call(x,ae)&&(ce[ae]=x[ae]);function re(){this.constructor=ce}return re.prototype=x.prototype,ce.prototype=new re,ce.__super__=x.prototype,ce},ee={}.hasOwnProperty;ie=y("./XMLNode"),z=y("./NodeType"),je.exports=E=function(ce){oe(x,ce);function x(ae,re,se,ue,pe,he){if(x.__super__.constructor.call(this,ae),re==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(se==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(re));if(!ue)throw new Error("Missing DTD attribute type. "+this.debugInfo(re));if(!pe)throw new Error("Missing DTD attribute default. "+this.debugInfo(re));if(pe.indexOf("#")!==0&&(pe="#"+pe),!pe.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(re));if(he&&!pe.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(re));this.elementName=this.stringify.name(re),this.type=z.AttributeDeclaration,this.attributeName=this.stringify.name(se),this.attributeType=this.stringify.dtdAttType(ue),he&&(this.defaultValue=this.stringify.dtdAttDefault(he)),this.defaultValueType=pe}return x.prototype.toString=function(ae){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(ae))},x}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(y,je,be){(function(){var z,E,ie,oe=function(ce,x){for(var ae in x)ee.call(x,ae)&&(ce[ae]=x[ae]);function re(){this.constructor=ce}return re.prototype=x.prototype,ce.prototype=new re,ce.__super__=x.prototype,ce},ee={}.hasOwnProperty;ie=y("./XMLNode"),z=y("./NodeType"),je.exports=E=function(ce){oe(x,ce);function x(ae,re,se){if(x.__super__.constructor.call(this,ae),re==null)throw new Error("Missing DTD element name. "+this.debugInfo());se||(se="(#PCDATA)"),Array.isArray(se)&&(se="("+se.join(",")+")"),this.name=this.stringify.name(re),this.type=z.ElementDeclaration,this.value=this.stringify.dtdElementValue(se)}return x.prototype.toString=function(ae){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(ae))},x}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(y,je,be){(function(){var z,E,ie,oe,ee=function(x,ae){for(var re in ae)ce.call(ae,re)&&(x[re]=ae[re]);function se(){this.constructor=x}return se.prototype=ae.prototype,x.prototype=new se,x.__super__=ae.prototype,x},ce={}.hasOwnProperty;oe=y("./Utility").isObject,ie=y("./XMLNode"),z=y("./NodeType"),je.exports=E=function(x){ee(ae,x);function ae(re,se,ue,pe){if(ae.__super__.constructor.call(this,re),ue==null)throw new Error("Missing DTD entity name. "+this.debugInfo(ue));if(pe==null)throw new Error("Missing DTD entity value. "+this.debugInfo(ue));if(this.pe=!!se,this.name=this.stringify.name(ue),this.type=z.EntityDeclaration,!oe(pe))this.value=this.stringify.dtdEntityValue(pe),this.internal=!0;else{if(!pe.pubID&&!pe.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ue));if(pe.pubID&&!pe.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ue));if(this.internal=!1,pe.pubID!=null&&(this.pubID=this.stringify.dtdPubID(pe.pubID)),pe.sysID!=null&&(this.sysID=this.stringify.dtdSysID(pe.sysID)),pe.nData!=null&&(this.nData=this.stringify.dtdNData(pe.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ue))}}return Object.defineProperty(ae.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ae.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(ae.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(ae.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ae.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(ae.prototype,"xmlVersion",{get:function(){return null}}),ae.prototype.toString=function(re){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(re))},ae}(ie)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(y,je,be){(function(){var z,E,ie,oe=function(ce,x){for(var ae in x)ee.call(x,ae)&&(ce[ae]=x[ae]);function re(){this.constructor=ce}return re.prototype=x.prototype,ce.prototype=new re,ce.__super__=x.prototype,ce},ee={}.hasOwnProperty;ie=y("./XMLNode"),z=y("./NodeType"),je.exports=E=function(ce){oe(x,ce);function x(ae,re,se){if(x.__super__.constructor.call(this,ae),re==null)throw new Error("Missing DTD notation name. "+this.debugInfo(re));if(!se.pubID&&!se.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(re));this.name=this.stringify.name(re),this.type=z.NotationDeclaration,se.pubID!=null&&(this.pubID=this.stringify.dtdPubID(se.pubID)),se.sysID!=null&&(this.sysID=this.stringify.dtdSysID(se.sysID))}return Object.defineProperty(x.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(x.prototype,"systemId",{get:function(){return this.sysID}}),x.prototype.toString=function(ae){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(ae))},x}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(y,je,be){(function(){var z,E,ie,oe,ee=function(x,ae){for(var re in ae)ce.call(ae,re)&&(x[re]=ae[re]);function se(){this.constructor=x}return se.prototype=ae.prototype,x.prototype=new se,x.__super__=ae.prototype,x},ce={}.hasOwnProperty;oe=y("./Utility").isObject,ie=y("./XMLNode"),z=y("./NodeType"),je.exports=E=function(x){ee(ae,x);function ae(re,se,ue,pe){var he;ae.__super__.constructor.call(this,re),oe(se)&&(he=se,se=he.version,ue=he.encoding,pe=he.standalone),se||(se="1.0"),this.type=z.Declaration,this.version=this.stringify.xmlVersion(se),ue!=null&&(this.encoding=this.stringify.xmlEncoding(ue)),pe!=null&&(this.standalone=this.stringify.xmlStandalone(pe))}return ae.prototype.toString=function(re){return this.options.writer.declaration(this,this.options.writer.filterOptions(re))},ae}(ie)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(y,je,be){(function(){var z,E,ie,oe,ee,ce,x,ae,re,se=function(pe,he){for(var ye in he)ue.call(he,ye)&&(pe[ye]=he[ye]);function ge(){this.constructor=pe}return ge.prototype=he.prototype,pe.prototype=new ge,pe.__super__=he.prototype,pe},ue={}.hasOwnProperty;re=y("./Utility").isObject,ae=y("./XMLNode"),z=y("./NodeType"),E=y("./XMLDTDAttList"),oe=y("./XMLDTDEntity"),ie=y("./XMLDTDElement"),ee=y("./XMLDTDNotation"),x=y("./XMLNamedNodeMap"),je.exports=ce=function(pe){se(he,pe);function he(ye,ge,xe){var ke,De,Be,Ae,Se,Ee;if(he.__super__.constructor.call(this,ye),this.type=z.DocType,ye.children){for(Ae=ye.children,De=0,Be=Ae.length;De<Be;De++)if(ke=Ae[De],ke.type===z.Element){this.name=ke.name;break}}this.documentObject=ye,re(ge)&&(Se=ge,ge=Se.pubID,xe=Se.sysID),xe==null&&(Ee=[ge,xe],xe=Ee[0],ge=Ee[1]),ge!=null&&(this.pubID=this.stringify.dtdPubID(ge)),xe!=null&&(this.sysID=this.stringify.dtdSysID(xe))}return Object.defineProperty(he.prototype,"entities",{get:function(){var ye,ge,xe,ke,De;for(ke={},De=this.children,ge=0,xe=De.length;ge<xe;ge++)ye=De[ge],ye.type===z.EntityDeclaration&&!ye.pe&&(ke[ye.name]=ye);return new x(ke)}}),Object.defineProperty(he.prototype,"notations",{get:function(){var ye,ge,xe,ke,De;for(ke={},De=this.children,ge=0,xe=De.length;ge<xe;ge++)ye=De[ge],ye.type===z.NotationDeclaration&&(ke[ye.name]=ye);return new x(ke)}}),Object.defineProperty(he.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(he.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(he.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),he.prototype.element=function(ye,ge){var xe;return xe=new ie(this,ye,ge),this.children.push(xe),this},he.prototype.attList=function(ye,ge,xe,ke,De){var Be;return Be=new E(this,ye,ge,xe,ke,De),this.children.push(Be),this},he.prototype.entity=function(ye,ge){var xe;return xe=new oe(this,!1,ye,ge),this.children.push(xe),this},he.prototype.pEntity=function(ye,ge){var xe;return xe=new oe(this,!0,ye,ge),this.children.push(xe),this},he.prototype.notation=function(ye,ge){var xe;return xe=new ee(this,ye,ge),this.children.push(xe),this},he.prototype.toString=function(ye){return this.options.writer.docType(this,this.options.writer.filterOptions(ye))},he.prototype.ele=function(ye,ge){return this.element(ye,ge)},he.prototype.att=function(ye,ge,xe,ke,De){return this.attList(ye,ge,xe,ke,De)},he.prototype.ent=function(ye,ge){return this.entity(ye,ge)},he.prototype.pent=function(ye,ge){return this.pEntity(ye,ge)},he.prototype.not=function(ye,ge){return this.notation(ye,ge)},he.prototype.up=function(){return this.root()||this.documentObject},he.prototype.isEqualNode=function(ye){return!(!he.__super__.isEqualNode.apply(this,arguments).isEqualNode(ye)||ye.name!==this.name||ye.publicId!==this.publicId||ye.systemId!==this.systemId)},he}(ae)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(y,je,be){(function(){var z,E,ie,oe,ee,ce,x,ae,re=function(ue,pe){for(var he in pe)se.call(pe,he)&&(ue[he]=pe[he]);function ye(){this.constructor=ue}return ye.prototype=pe.prototype,ue.prototype=new ye,ue.__super__=pe.prototype,ue},se={}.hasOwnProperty;ae=y("./Utility").isPlainObject,ie=y("./XMLDOMImplementation"),E=y("./XMLDOMConfiguration"),ee=y("./XMLNode"),z=y("./NodeType"),x=y("./XMLStringifier"),ce=y("./XMLStringWriter"),je.exports=oe=function(ue){re(pe,ue);function pe(he){pe.__super__.constructor.call(this,null),this.name="#document",this.type=z.Document,this.documentURI=null,this.domConfig=new E,he||(he={}),he.writer||(he.writer=new ce),this.options=he,this.stringify=new x(he)}return Object.defineProperty(pe.prototype,"implementation",{value:new ie}),Object.defineProperty(pe.prototype,"doctype",{get:function(){var he,ye,ge,xe;for(xe=this.children,ye=0,ge=xe.length;ye<ge;ye++)if(he=xe[ye],he.type===z.DocType)return he;return null}}),Object.defineProperty(pe.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(pe.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(pe.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(pe.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===z.Declaration?this.children[0].encoding:null}}),Object.defineProperty(pe.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===z.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(pe.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===z.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(pe.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(pe.prototype,"origin",{get:function(){return null}}),Object.defineProperty(pe.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(pe.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(pe.prototype,"contentType",{get:function(){return null}}),pe.prototype.end=function(he){var ye;return ye={},he?ae(he)&&(ye=he,he=this.options.writer):he=this.options.writer,he.document(this,he.filterOptions(ye))},pe.prototype.toString=function(he){return this.options.writer.document(this,this.options.writer.filterOptions(he))},pe.prototype.createElement=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.createTextNode=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.createComment=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.createCDATASection=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.createProcessingInstruction=function(he,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.createAttribute=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.createEntityReference=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagName=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.importNode=function(he,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.createElementNS=function(he,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.createAttributeNS=function(he,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagNameNS=function(he,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementById=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.adoptNode=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.renameNode=function(he,ye,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByClassName=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.createEvent=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.createNodeIterator=function(he,ye,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.createTreeWalker=function(he,ye,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(y,je,be){(function(){var z,E,ie,oe,ee,ce,x,ae,re,se,ue,pe,he,ye,ge,xe,ke,De,Be,Ae,Se,Ee,Oe,Pe,Le={}.hasOwnProperty;Pe=y("./Utility"),Ee=Pe.isObject,Se=Pe.isFunction,Oe=Pe.isPlainObject,Ae=Pe.getValue,z=y("./NodeType"),pe=y("./XMLDocument"),ye=y("./XMLElement"),oe=y("./XMLCData"),ee=y("./XMLComment"),xe=y("./XMLRaw"),Be=y("./XMLText"),ge=y("./XMLProcessingInstruction"),se=y("./XMLDeclaration"),ue=y("./XMLDocType"),ce=y("./XMLDTDAttList"),ae=y("./XMLDTDEntity"),x=y("./XMLDTDElement"),re=y("./XMLDTDNotation"),ie=y("./XMLAttribute"),De=y("./XMLStringifier"),ke=y("./XMLStringWriter"),E=y("./WriterState"),je.exports=he=function(){function Ne(me,Ve,Ze){var We;this.name="?xml",this.type=z.Document,me||(me={}),We={},me.writer?Oe(me.writer)&&(We=me.writer,me.writer=new ke):me.writer=new ke,this.options=me,this.writer=me.writer,this.writerOptions=this.writer.filterOptions(We),this.stringify=new De(me),this.onDataCallback=Ve||function(){},this.onEndCallback=Ze||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Ne.prototype.createChildNode=function(me){var Ve,Ze,We,nt,_e,Ue,tt,rt;switch(me.type){case z.CData:this.cdata(me.value);break;case z.Comment:this.comment(me.value);break;case z.Element:We={},tt=me.attribs;for(Ze in tt)Le.call(tt,Ze)&&(Ve=tt[Ze],We[Ze]=Ve.value);this.node(me.name,We);break;case z.Dummy:this.dummy();break;case z.Raw:this.raw(me.value);break;case z.Text:this.text(me.value);break;case z.ProcessingInstruction:this.instruction(me.target,me.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+me.constructor.name)}for(rt=me.children,_e=0,Ue=rt.length;_e<Ue;_e++)nt=rt[_e],this.createChildNode(nt),nt.type===z.Element&&this.up();return this},Ne.prototype.dummy=function(){return this},Ne.prototype.node=function(me,Ve,Ze){var We;if(me==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(me));return this.openCurrent(),me=Ae(me),Ve==null&&(Ve={}),Ve=Ae(Ve),Ee(Ve)||(We=[Ve,Ze],Ze=We[0],Ve=We[1]),this.currentNode=new ye(this,me,Ve),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,Ze!=null&&this.text(Ze),this},Ne.prototype.element=function(me,Ve,Ze){var We,nt,_e,Ue,tt,rt;if(this.currentNode&&this.currentNode.type===z.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(me)||Ee(me)||Se(me))for(Ue=this.options.noValidation,this.options.noValidation=!0,rt=new pe(this.options).element("TEMP_ROOT"),rt.element(me),this.options.noValidation=Ue,tt=rt.children,nt=0,_e=tt.length;nt<_e;nt++)We=tt[nt],this.createChildNode(We),We.type===z.Element&&this.up();else this.node(me,Ve,Ze);return this},Ne.prototype.attribute=function(me,Ve){var Ze,We;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(me));if(me!=null&&(me=Ae(me)),Ee(me))for(Ze in me)Le.call(me,Ze)&&(We=me[Ze],this.attribute(Ze,We));else Se(Ve)&&(Ve=Ve.apply()),this.options.keepNullAttributes&&Ve==null?this.currentNode.attribs[me]=new ie(this,me,""):Ve!=null&&(this.currentNode.attribs[me]=new ie(this,me,Ve));return this},Ne.prototype.text=function(me){var Ve;return this.openCurrent(),Ve=new Be(this,me),this.onData(this.writer.text(Ve,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ne.prototype.cdata=function(me){var Ve;return this.openCurrent(),Ve=new oe(this,me),this.onData(this.writer.cdata(Ve,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ne.prototype.comment=function(me){var Ve;return this.openCurrent(),Ve=new ee(this,me),this.onData(this.writer.comment(Ve,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ne.prototype.raw=function(me){var Ve;return this.openCurrent(),Ve=new xe(this,me),this.onData(this.writer.raw(Ve,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ne.prototype.instruction=function(me,Ve){var Ze,We,nt,_e,Ue;if(this.openCurrent(),me!=null&&(me=Ae(me)),Ve!=null&&(Ve=Ae(Ve)),Array.isArray(me))for(Ze=0,_e=me.length;Ze<_e;Ze++)We=me[Ze],this.instruction(We);else if(Ee(me))for(We in me)Le.call(me,We)&&(nt=me[We],this.instruction(We,nt));else Se(Ve)&&(Ve=Ve.apply()),Ue=new ge(this,me,Ve),this.onData(this.writer.processingInstruction(Ue,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},Ne.prototype.declaration=function(me,Ve,Ze){var We;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return We=new se(this,me,Ve,Ze),this.onData(this.writer.declaration(We,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ne.prototype.doctype=function(me,Ve,Ze){if(this.openCurrent(),me==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new ue(this,Ve,Ze),this.currentNode.rootNodeName=me,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Ne.prototype.dtdElement=function(me,Ve){var Ze;return this.openCurrent(),Ze=new x(this,me,Ve),this.onData(this.writer.dtdElement(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ne.prototype.attList=function(me,Ve,Ze,We,nt){var _e;return this.openCurrent(),_e=new ce(this,me,Ve,Ze,We,nt),this.onData(this.writer.dtdAttList(_e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ne.prototype.entity=function(me,Ve){var Ze;return this.openCurrent(),Ze=new ae(this,!1,me,Ve),this.onData(this.writer.dtdEntity(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ne.prototype.pEntity=function(me,Ve){var Ze;return this.openCurrent(),Ze=new ae(this,!0,me,Ve),this.onData(this.writer.dtdEntity(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ne.prototype.notation=function(me,Ve){var Ze;return this.openCurrent(),Ze=new re(this,me,Ve),this.onData(this.writer.dtdNotation(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ne.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},Ne.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Ne.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Ne.prototype.openNode=function(me){var Ve,Ze,We,nt;if(!me.isOpen){if(!this.root&&this.currentLevel===0&&me.type===z.Element&&(this.root=me),Ze="",me.type===z.Element){this.writerOptions.state=E.OpenTag,Ze=this.writer.indent(me,this.writerOptions,this.currentLevel)+"<"+me.name,nt=me.attribs;for(We in nt)Le.call(nt,We)&&(Ve=nt[We],Ze+=this.writer.attribute(Ve,this.writerOptions,this.currentLevel));Ze+=(me.children?">":"/>")+this.writer.endline(me,this.writerOptions,this.currentLevel),this.writerOptions.state=E.InsideTag}else this.writerOptions.state=E.OpenTag,Ze=this.writer.indent(me,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+me.rootNodeName,me.pubID&&me.sysID?Ze+=' PUBLIC "'+me.pubID+'" "'+me.sysID+'"':me.sysID&&(Ze+=' SYSTEM "'+me.sysID+'"'),me.children?(Ze+=" [",this.writerOptions.state=E.InsideTag):(this.writerOptions.state=E.CloseTag,Ze+=">"),Ze+=this.writer.endline(me,this.writerOptions,this.currentLevel);return this.onData(Ze,this.currentLevel),me.isOpen=!0}},Ne.prototype.closeNode=function(me){var Ve;if(!me.isClosed)return Ve="",this.writerOptions.state=E.CloseTag,me.type===z.Element?Ve=this.writer.indent(me,this.writerOptions,this.currentLevel)+"</"+me.name+">"+this.writer.endline(me,this.writerOptions,this.currentLevel):Ve=this.writer.indent(me,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(me,this.writerOptions,this.currentLevel),this.writerOptions.state=E.None,this.onData(Ve,this.currentLevel),me.isClosed=!0},Ne.prototype.onData=function(me,Ve){return this.documentStarted=!0,this.onDataCallback(me,Ve+1)},Ne.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Ne.prototype.debugInfo=function(me){return me==null?"":"node: <"+me+">"},Ne.prototype.ele=function(){return this.element.apply(this,arguments)},Ne.prototype.nod=function(me,Ve,Ze){return this.node(me,Ve,Ze)},Ne.prototype.txt=function(me){return this.text(me)},Ne.prototype.dat=function(me){return this.cdata(me)},Ne.prototype.com=function(me){return this.comment(me)},Ne.prototype.ins=function(me,Ve){return this.instruction(me,Ve)},Ne.prototype.dec=function(me,Ve,Ze){return this.declaration(me,Ve,Ze)},Ne.prototype.dtd=function(me,Ve,Ze){return this.doctype(me,Ve,Ze)},Ne.prototype.e=function(me,Ve,Ze){return this.element(me,Ve,Ze)},Ne.prototype.n=function(me,Ve,Ze){return this.node(me,Ve,Ze)},Ne.prototype.t=function(me){return this.text(me)},Ne.prototype.d=function(me){return this.cdata(me)},Ne.prototype.c=function(me){return this.comment(me)},Ne.prototype.r=function(me){return this.raw(me)},Ne.prototype.i=function(me,Ve){return this.instruction(me,Ve)},Ne.prototype.att=function(){return this.currentNode&&this.currentNode.type===z.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ne.prototype.a=function(){return this.currentNode&&this.currentNode.type===z.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ne.prototype.ent=function(me,Ve){return this.entity(me,Ve)},Ne.prototype.pent=function(me,Ve){return this.pEntity(me,Ve)},Ne.prototype.not=function(me,Ve){return this.notation(me,Ve)},Ne}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLAttribute":431,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDocument":445,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLStringWriter":455,"./XMLStringifier":456,"./XMLText":457}],447:[function(y,je,be){(function(){var z,E,ie,oe=function(ce,x){for(var ae in x)ee.call(x,ae)&&(ce[ae]=x[ae]);function re(){this.constructor=ce}return re.prototype=x.prototype,ce.prototype=new re,ce.__super__=x.prototype,ce},ee={}.hasOwnProperty;ie=y("./XMLNode"),z=y("./NodeType"),je.exports=E=function(ce){oe(x,ce);function x(ae){x.__super__.constructor.call(this,ae),this.type=z.Dummy}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(ae){return""},x}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(y,je,be){(function(){var z,E,ie,oe,ee,ce,x,ae,re,se=function(pe,he){for(var ye in he)ue.call(he,ye)&&(pe[ye]=he[ye]);function ge(){this.constructor=pe}return ge.prototype=he.prototype,pe.prototype=new ge,pe.__super__=he.prototype,pe},ue={}.hasOwnProperty;re=y("./Utility"),ae=re.isObject,x=re.isFunction,ce=re.getValue,ee=y("./XMLNode"),z=y("./NodeType"),E=y("./XMLAttribute"),oe=y("./XMLNamedNodeMap"),je.exports=ie=function(pe){se(he,pe);function he(ye,ge,xe){var ke,De,Be,Ae;if(he.__super__.constructor.call(this,ye),ge==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(ge),this.type=z.Element,this.attribs={},this.schemaTypeInfo=null,xe!=null&&this.attribute(xe),ye.type===z.Document&&(this.isRoot=!0,this.documentObject=ye,ye.rootObject=this,ye.children)){for(Ae=ye.children,De=0,Be=Ae.length;De<Be;De++)if(ke=Ae[De],ke.type===z.DocType){ke.name=this.name;break}}}return Object.defineProperty(he.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(he.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(he.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(he.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(he.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(he.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(he.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(he.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new oe(this.attribs)),this.attributeMap}}),he.prototype.clone=function(){var ye,ge,xe,ke;xe=Object.create(this),xe.isRoot&&(xe.documentObject=null),xe.attribs={},ke=this.attribs;for(ge in ke)ue.call(ke,ge)&&(ye=ke[ge],xe.attribs[ge]=ye.clone());return xe.children=[],this.children.forEach(function(De){var Be;return Be=De.clone(),Be.parent=xe,xe.children.push(Be)}),xe},he.prototype.attribute=function(ye,ge){var xe,ke;if(ye!=null&&(ye=ce(ye)),ae(ye))for(xe in ye)ue.call(ye,xe)&&(ke=ye[xe],this.attribute(xe,ke));else x(ge)&&(ge=ge.apply()),this.options.keepNullAttributes&&ge==null?this.attribs[ye]=new E(this,ye,""):ge!=null&&(this.attribs[ye]=new E(this,ye,ge));return this},he.prototype.removeAttribute=function(ye){var ge,xe,ke;if(ye==null)throw new Error("Missing attribute name. "+this.debugInfo());if(ye=ce(ye),Array.isArray(ye))for(xe=0,ke=ye.length;xe<ke;xe++)ge=ye[xe],delete this.attribs[ge];else delete this.attribs[ye];return this},he.prototype.toString=function(ye){return this.options.writer.element(this,this.options.writer.filterOptions(ye))},he.prototype.att=function(ye,ge){return this.attribute(ye,ge)},he.prototype.a=function(ye,ge){return this.attribute(ye,ge)},he.prototype.getAttribute=function(ye){return this.attribs.hasOwnProperty(ye)?this.attribs[ye].value:null},he.prototype.setAttribute=function(ye,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getAttributeNode=function(ye){return this.attribs.hasOwnProperty(ye)?this.attribs[ye]:null},he.prototype.setAttributeNode=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.removeAttributeNode=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagName=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getAttributeNS=function(ye,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.setAttributeNS=function(ye,ge,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.removeAttributeNS=function(ye,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getAttributeNodeNS=function(ye,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.setAttributeNodeNS=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagNameNS=function(ye,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.hasAttribute=function(ye){return this.attribs.hasOwnProperty(ye)},he.prototype.hasAttributeNS=function(ye,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.setIdAttribute=function(ye,ge){return this.attribs.hasOwnProperty(ye)?this.attribs[ye].isId:ge},he.prototype.setIdAttributeNS=function(ye,ge,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.setIdAttributeNode=function(ye,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagName=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagNameNS=function(ye,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByClassName=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.isEqualNode=function(ye){var ge,xe,ke;if(!he.__super__.isEqualNode.apply(this,arguments).isEqualNode(ye)||ye.namespaceURI!==this.namespaceURI||ye.prefix!==this.prefix||ye.localName!==this.localName||ye.attribs.length!==this.attribs.length)return!1;for(ge=xe=0,ke=this.attribs.length-1;0<=ke?xe<=ke:xe>=ke;ge=0<=ke?++xe:--xe)if(!this.attribs[ge].isEqualNode(ye.attribs[ge]))return!1;return!0},he}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(y,je,be){(function(){var z;je.exports=z=function(){function E(ie){this.nodes=ie}return Object.defineProperty(E.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),E.prototype.clone=function(){return this.nodes=null},E.prototype.getNamedItem=function(ie){return this.nodes[ie]},E.prototype.setNamedItem=function(ie){var oe;return oe=this.nodes[ie.nodeName],this.nodes[ie.nodeName]=ie,oe||null},E.prototype.removeNamedItem=function(ie){var oe;return oe=this.nodes[ie],delete this.nodes[ie],oe||null},E.prototype.item=function(ie){return this.nodes[Object.keys(this.nodes)[ie]]||null},E.prototype.getNamedItemNS=function(ie,oe){throw new Error("This DOM method is not implemented.")},E.prototype.setNamedItemNS=function(ie){throw new Error("This DOM method is not implemented.")},E.prototype.removeNamedItemNS=function(ie,oe){throw new Error("This DOM method is not implemented.")},E}()}).call(this)},{}],450:[function(y,je,be){(function(){var z,E,ie,oe,ee,ce,x,ae,re,se,ue,pe,he,ye,ge,xe,ke,De,Be,Ae={}.hasOwnProperty;Be=y("./Utility"),De=Be.isObject,ke=Be.isFunction,xe=Be.isEmpty,ge=Be.getValue,ae=null,ie=null,oe=null,ee=null,ce=null,he=null,ye=null,pe=null,x=null,E=null,ue=null,re=null,z=null,je.exports=se=function(){function Se(Ee){this.parent=Ee,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,ae||(ae=y("./XMLElement"),ie=y("./XMLCData"),oe=y("./XMLComment"),ee=y("./XMLDeclaration"),ce=y("./XMLDocType"),he=y("./XMLRaw"),ye=y("./XMLText"),pe=y("./XMLProcessingInstruction"),x=y("./XMLDummy"),E=y("./NodeType"),ue=y("./XMLNodeList"),re=y("./XMLNamedNodeMap"),z=y("./DocumentPosition"))}return Object.defineProperty(Se.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(Se.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(Se.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(Se.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(Se.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new ue(this.children)),this.childNodeList}}),Object.defineProperty(Se.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(Se.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(Se.prototype,"previousSibling",{get:function(){var Ee;return Ee=this.parent.children.indexOf(this),this.parent.children[Ee-1]||null}}),Object.defineProperty(Se.prototype,"nextSibling",{get:function(){var Ee;return Ee=this.parent.children.indexOf(this),this.parent.children[Ee+1]||null}}),Object.defineProperty(Se.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(Se.prototype,"textContent",{get:function(){var Ee,Oe,Pe,Le,Ne;if(this.nodeType===E.Element||this.nodeType===E.DocumentFragment){for(Ne="",Le=this.children,Oe=0,Pe=Le.length;Oe<Pe;Oe++)Ee=Le[Oe],Ee.textContent&&(Ne+=Ee.textContent);return Ne}else return null},set:function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Se.prototype.setParent=function(Ee){var Oe,Pe,Le,Ne,me;for(this.parent=Ee,Ee&&(this.options=Ee.options,this.stringify=Ee.stringify),Ne=this.children,me=[],Pe=0,Le=Ne.length;Pe<Le;Pe++)Oe=Ne[Pe],me.push(Oe.setParent(this));return me},Se.prototype.element=function(Ee,Oe,Pe){var Le,Ne,me,Ve,Ze,We,nt,_e,Ue,tt,rt;if(We=null,Oe===null&&Pe==null&&(Ue=[{},null],Oe=Ue[0],Pe=Ue[1]),Oe==null&&(Oe={}),Oe=ge(Oe),De(Oe)||(tt=[Oe,Pe],Pe=tt[0],Oe=tt[1]),Ee!=null&&(Ee=ge(Ee)),Array.isArray(Ee))for(me=0,nt=Ee.length;me<nt;me++)Ne=Ee[me],We=this.element(Ne);else if(ke(Ee))We=this.element(Ee.apply());else if(De(Ee)){for(Ze in Ee)if(Ae.call(Ee,Ze))if(rt=Ee[Ze],ke(rt)&&(rt=rt.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&Ze.indexOf(this.stringify.convertAttKey)===0)We=this.attribute(Ze.substr(this.stringify.convertAttKey.length),rt);else if(!this.options.separateArrayItems&&Array.isArray(rt)&&xe(rt))We=this.dummy();else if(De(rt)&&xe(rt))We=this.element(Ze);else if(!this.options.keepNullNodes&&rt==null)We=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(rt))for(Ve=0,_e=rt.length;Ve<_e;Ve++)Ne=rt[Ve],Le={},Le[Ze]=Ne,We=this.element(Le);else De(rt)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Ze.indexOf(this.stringify.convertTextKey)===0?We=this.element(rt):(We=this.element(Ze),We.element(rt)):We=this.element(Ze,rt)}else!this.options.keepNullNodes&&Pe===null?We=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Ee.indexOf(this.stringify.convertTextKey)===0?We=this.text(Pe):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&Ee.indexOf(this.stringify.convertCDataKey)===0?We=this.cdata(Pe):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&Ee.indexOf(this.stringify.convertCommentKey)===0?We=this.comment(Pe):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&Ee.indexOf(this.stringify.convertRawKey)===0?We=this.raw(Pe):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&Ee.indexOf(this.stringify.convertPIKey)===0?We=this.instruction(Ee.substr(this.stringify.convertPIKey.length),Pe):We=this.node(Ee,Oe,Pe);if(We==null)throw new Error("Could not create any elements with: "+Ee+". "+this.debugInfo());return We},Se.prototype.insertBefore=function(Ee,Oe,Pe){var Le,Ne,me,Ve,Ze;if(Ee!=null&&Ee.type)return me=Ee,Ve=Oe,me.setParent(this),Ve?(Ne=children.indexOf(Ve),Ze=children.splice(Ne),children.push(me),Array.prototype.push.apply(children,Ze)):children.push(me),me;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ee));return Ne=this.parent.children.indexOf(this),Ze=this.parent.children.splice(Ne),Le=this.parent.element(Ee,Oe,Pe),Array.prototype.push.apply(this.parent.children,Ze),Le},Se.prototype.insertAfter=function(Ee,Oe,Pe){var Le,Ne,me;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ee));return Ne=this.parent.children.indexOf(this),me=this.parent.children.splice(Ne+1),Le=this.parent.element(Ee,Oe,Pe),Array.prototype.push.apply(this.parent.children,me),Le},Se.prototype.remove=function(){var Ee,Oe;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return Ee=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[Ee,Ee-Ee+1].concat(Oe=[])),this.parent},Se.prototype.node=function(Ee,Oe,Pe){var Le,Ne;return Ee!=null&&(Ee=ge(Ee)),Oe||(Oe={}),Oe=ge(Oe),De(Oe)||(Ne=[Oe,Pe],Pe=Ne[0],Oe=Ne[1]),Le=new ae(this,Ee,Oe),Pe!=null&&Le.text(Pe),this.children.push(Le),Le},Se.prototype.text=function(Ee){var Oe;return De(Ee)&&this.element(Ee),Oe=new ye(this,Ee),this.children.push(Oe),this},Se.prototype.cdata=function(Ee){var Oe;return Oe=new ie(this,Ee),this.children.push(Oe),this},Se.prototype.comment=function(Ee){var Oe;return Oe=new oe(this,Ee),this.children.push(Oe),this},Se.prototype.commentBefore=function(Ee){var Oe,Pe,Le;return Pe=this.parent.children.indexOf(this),Le=this.parent.children.splice(Pe),Oe=this.parent.comment(Ee),Array.prototype.push.apply(this.parent.children,Le),this},Se.prototype.commentAfter=function(Ee){var Oe,Pe,Le;return Pe=this.parent.children.indexOf(this),Le=this.parent.children.splice(Pe+1),Oe=this.parent.comment(Ee),Array.prototype.push.apply(this.parent.children,Le),this},Se.prototype.raw=function(Ee){var Oe;return Oe=new he(this,Ee),this.children.push(Oe),this},Se.prototype.dummy=function(){var Ee;return Ee=new x(this),Ee},Se.prototype.instruction=function(Ee,Oe){var Pe,Le,Ne,me,Ve;if(Ee!=null&&(Ee=ge(Ee)),Oe!=null&&(Oe=ge(Oe)),Array.isArray(Ee))for(me=0,Ve=Ee.length;me<Ve;me++)Pe=Ee[me],this.instruction(Pe);else if(De(Ee))for(Pe in Ee)Ae.call(Ee,Pe)&&(Le=Ee[Pe],this.instruction(Pe,Le));else ke(Oe)&&(Oe=Oe.apply()),Ne=new pe(this,Ee,Oe),this.children.push(Ne);return this},Se.prototype.instructionBefore=function(Ee,Oe){var Pe,Le,Ne;return Le=this.parent.children.indexOf(this),Ne=this.parent.children.splice(Le),Pe=this.parent.instruction(Ee,Oe),Array.prototype.push.apply(this.parent.children,Ne),this},Se.prototype.instructionAfter=function(Ee,Oe){var Pe,Le,Ne;return Le=this.parent.children.indexOf(this),Ne=this.parent.children.splice(Le+1),Pe=this.parent.instruction(Ee,Oe),Array.prototype.push.apply(this.parent.children,Ne),this},Se.prototype.declaration=function(Ee,Oe,Pe){var Le,Ne;return Le=this.document(),Ne=new ee(Le,Ee,Oe,Pe),Le.children.length===0?Le.children.unshift(Ne):Le.children[0].type===E.Declaration?Le.children[0]=Ne:Le.children.unshift(Ne),Le.root()||Le},Se.prototype.dtd=function(Ee,Oe){var Pe,Le,Ne,me,Ve,Ze,We,nt,_e,Ue;for(Le=this.document(),Ne=new ce(Le,Ee,Oe),_e=Le.children,me=Ve=0,We=_e.length;Ve<We;me=++Ve)if(Pe=_e[me],Pe.type===E.DocType)return Le.children[me]=Ne,Ne;for(Ue=Le.children,me=Ze=0,nt=Ue.length;Ze<nt;me=++Ze)if(Pe=Ue[me],Pe.isRoot)return Le.children.splice(me,0,Ne),Ne;return Le.children.push(Ne),Ne},Se.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},Se.prototype.root=function(){var Ee;for(Ee=this;Ee;){if(Ee.type===E.Document)return Ee.rootObject;if(Ee.isRoot)return Ee;Ee=Ee.parent}},Se.prototype.document=function(){var Ee;for(Ee=this;Ee;){if(Ee.type===E.Document)return Ee;Ee=Ee.parent}},Se.prototype.end=function(Ee){return this.document().end(Ee)},Se.prototype.prev=function(){var Ee;if(Ee=this.parent.children.indexOf(this),Ee<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[Ee-1]},Se.prototype.next=function(){var Ee;if(Ee=this.parent.children.indexOf(this),Ee===-1||Ee===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[Ee+1]},Se.prototype.importDocument=function(Ee){var Oe;return Oe=Ee.root().clone(),Oe.parent=this,Oe.isRoot=!1,this.children.push(Oe),this},Se.prototype.debugInfo=function(Ee){var Oe,Pe;return Ee=Ee||this.name,Ee==null&&!((Oe=this.parent)!=null&&Oe.name)?"":Ee==null?"parent: <"+this.parent.name+">":(Pe=this.parent)!=null&&Pe.name?"node: <"+Ee+">, parent: <"+this.parent.name+">":"node: <"+Ee+">"},Se.prototype.ele=function(Ee,Oe,Pe){return this.element(Ee,Oe,Pe)},Se.prototype.nod=function(Ee,Oe,Pe){return this.node(Ee,Oe,Pe)},Se.prototype.txt=function(Ee){return this.text(Ee)},Se.prototype.dat=function(Ee){return this.cdata(Ee)},Se.prototype.com=function(Ee){return this.comment(Ee)},Se.prototype.ins=function(Ee,Oe){return this.instruction(Ee,Oe)},Se.prototype.doc=function(){return this.document()},Se.prototype.dec=function(Ee,Oe,Pe){return this.declaration(Ee,Oe,Pe)},Se.prototype.e=function(Ee,Oe,Pe){return this.element(Ee,Oe,Pe)},Se.prototype.n=function(Ee,Oe,Pe){return this.node(Ee,Oe,Pe)},Se.prototype.t=function(Ee){return this.text(Ee)},Se.prototype.d=function(Ee){return this.cdata(Ee)},Se.prototype.c=function(Ee){return this.comment(Ee)},Se.prototype.r=function(Ee){return this.raw(Ee)},Se.prototype.i=function(Ee,Oe){return this.instruction(Ee,Oe)},Se.prototype.u=function(){return this.up()},Se.prototype.importXMLBuilder=function(Ee){return this.importDocument(Ee)},Se.prototype.replaceChild=function(Ee,Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.removeChild=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.appendChild=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.hasChildNodes=function(){return this.children.length!==0},Se.prototype.cloneNode=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.isSupported=function(Ee,Oe){return!0},Se.prototype.hasAttributes=function(){return this.attribs.length!==0},Se.prototype.compareDocumentPosition=function(Ee){var Oe,Pe;return Oe=this,Oe===Ee?0:this.document()!==Ee.document()?(Pe=z.Disconnected|z.ImplementationSpecific,Math.random()<.5?Pe|=z.Preceding:Pe|=z.Following,Pe):Oe.isAncestor(Ee)?z.Contains|z.Preceding:Oe.isDescendant(Ee)?z.Contains|z.Following:Oe.isPreceding(Ee)?z.Preceding:z.Following},Se.prototype.isSameNode=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.lookupPrefix=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.isDefaultNamespace=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.lookupNamespaceURI=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.isEqualNode=function(Ee){var Oe,Pe,Le;if(Ee.nodeType!==this.nodeType||Ee.children.length!==this.children.length)return!1;for(Oe=Pe=0,Le=this.children.length-1;0<=Le?Pe<=Le:Pe>=Le;Oe=0<=Le?++Pe:--Pe)if(!this.children[Oe].isEqualNode(Ee.children[Oe]))return!1;return!0},Se.prototype.getFeature=function(Ee,Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setUserData=function(Ee,Oe,Pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getUserData=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.contains=function(Ee){return Ee?Ee===this||this.isDescendant(Ee):!1},Se.prototype.isDescendant=function(Ee){var Oe,Pe,Le,Ne,me;for(me=this.children,Le=0,Ne=me.length;Le<Ne;Le++)if(Oe=me[Le],Ee===Oe||(Pe=Oe.isDescendant(Ee),Pe))return!0;return!1},Se.prototype.isAncestor=function(Ee){return Ee.isDescendant(this)},Se.prototype.isPreceding=function(Ee){var Oe,Pe;return Oe=this.treePosition(Ee),Pe=this.treePosition(this),Oe===-1||Pe===-1?!1:Oe<Pe},Se.prototype.isFollowing=function(Ee){var Oe,Pe;return Oe=this.treePosition(Ee),Pe=this.treePosition(this),Oe===-1||Pe===-1?!1:Oe>Pe},Se.prototype.treePosition=function(Ee){var Oe,Pe;return Pe=0,Oe=!1,this.foreachTreeNode(this.document(),function(Le){if(Pe++,!Oe&&Le===Ee)return Oe=!0}),Oe?Pe:-1},Se.prototype.foreachTreeNode=function(Ee,Oe){var Pe,Le,Ne,me,Ve;for(Ee||(Ee=this.document()),me=Ee.children,Le=0,Ne=me.length;Le<Ne;Le++){if(Pe=me[Le],Ve=Oe(Pe))return Ve;if(Ve=this.foreachTreeNode(Pe,Oe),Ve)return Ve}},Se}()}).call(this)},{"./DocumentPosition":427,"./NodeType":428,"./Utility":429,"./XMLCData":432,"./XMLComment":434,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLNamedNodeMap":449,"./XMLNodeList":451,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],451:[function(y,je,be){(function(){var z;je.exports=z=function(){function E(ie){this.nodes=ie}return Object.defineProperty(E.prototype,"length",{get:function(){return this.nodes.length||0}}),E.prototype.clone=function(){return this.nodes=null},E.prototype.item=function(ie){return this.nodes[ie]||null},E}()}).call(this)},{}],452:[function(y,je,be){(function(){var z,E,ie,oe=function(ce,x){for(var ae in x)ee.call(x,ae)&&(ce[ae]=x[ae]);function re(){this.constructor=ce}return re.prototype=x.prototype,ce.prototype=new re,ce.__super__=x.prototype,ce},ee={}.hasOwnProperty;z=y("./NodeType"),E=y("./XMLCharacterData"),je.exports=ie=function(ce){oe(x,ce);function x(ae,re,se){if(x.__super__.constructor.call(this,ae),re==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=z.ProcessingInstruction,this.target=this.stringify.insTarget(re),this.name=this.target,se&&(this.value=this.stringify.insValue(se))}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(ae){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(ae))},x.prototype.isEqualNode=function(ae){return!(!x.__super__.isEqualNode.apply(this,arguments).isEqualNode(ae)||ae.target!==this.target)},x}(E)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(y,je,be){(function(){var z,E,ie,oe=function(ce,x){for(var ae in x)ee.call(x,ae)&&(ce[ae]=x[ae]);function re(){this.constructor=ce}return re.prototype=x.prototype,ce.prototype=new re,ce.__super__=x.prototype,ce},ee={}.hasOwnProperty;z=y("./NodeType"),E=y("./XMLNode"),je.exports=ie=function(ce){oe(x,ce);function x(ae,re){if(x.__super__.constructor.call(this,ae),re==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=z.Raw,this.value=this.stringify.raw(re)}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(ae){return this.options.writer.raw(this,this.options.writer.filterOptions(ae))},x}(E)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(y,je,be){(function(){var z,E,ie,oe,ee=function(x,ae){for(var re in ae)ce.call(ae,re)&&(x[re]=ae[re]);function se(){this.constructor=x}return se.prototype=ae.prototype,x.prototype=new se,x.__super__=ae.prototype,x},ce={}.hasOwnProperty;z=y("./NodeType"),oe=y("./XMLWriterBase"),E=y("./WriterState"),je.exports=ie=function(x){ee(ae,x);function ae(re,se){this.stream=re,ae.__super__.constructor.call(this,se)}return ae.prototype.endline=function(re,se,ue){return re.isLastRootNode&&se.state===E.CloseTag?"":ae.__super__.endline.call(this,re,se,ue)},ae.prototype.document=function(re,se){var ue,pe,he,ye,ge,xe,ke,De,Be;for(ke=re.children,pe=he=0,ge=ke.length;he<ge;pe=++he)ue=ke[pe],ue.isLastRootNode=pe===re.children.length-1;for(se=this.filterOptions(se),De=re.children,Be=[],ye=0,xe=De.length;ye<xe;ye++)ue=De[ye],Be.push(this.writeChildNode(ue,se,0));return Be},ae.prototype.attribute=function(re,se,ue){return this.stream.write(ae.__super__.attribute.call(this,re,se,ue))},ae.prototype.cdata=function(re,se,ue){return this.stream.write(ae.__super__.cdata.call(this,re,se,ue))},ae.prototype.comment=function(re,se,ue){return this.stream.write(ae.__super__.comment.call(this,re,se,ue))},ae.prototype.declaration=function(re,se,ue){return this.stream.write(ae.__super__.declaration.call(this,re,se,ue))},ae.prototype.docType=function(re,se,ue){var pe,he,ye,ge;if(ue||(ue=0),this.openNode(re,se,ue),se.state=E.OpenTag,this.stream.write(this.indent(re,se,ue)),this.stream.write("<!DOCTYPE "+re.root().name),re.pubID&&re.sysID?this.stream.write(' PUBLIC "'+re.pubID+'" "'+re.sysID+'"'):re.sysID&&this.stream.write(' SYSTEM "'+re.sysID+'"'),re.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(re,se,ue)),se.state=E.InsideTag,ge=re.children,he=0,ye=ge.length;he<ye;he++)pe=ge[he],this.writeChildNode(pe,se,ue+1);se.state=E.CloseTag,this.stream.write("]")}return se.state=E.CloseTag,this.stream.write(se.spaceBeforeSlash+">"),this.stream.write(this.endline(re,se,ue)),se.state=E.None,this.closeNode(re,se,ue)},ae.prototype.element=function(re,se,ue){var pe,he,ye,ge,xe,ke,De,Be,Ae,Se;ue||(ue=0),this.openNode(re,se,ue),se.state=E.OpenTag,this.stream.write(this.indent(re,se,ue)+"<"+re.name),Ae=re.attribs;for(De in Ae)ce.call(Ae,De)&&(pe=Ae[De],this.attribute(pe,se,ue));if(ye=re.children.length,ge=ye===0?null:re.children[0],ye===0||re.children.every(function(Ee){return(Ee.type===z.Text||Ee.type===z.Raw)&&Ee.value===""}))se.allowEmpty?(this.stream.write(">"),se.state=E.CloseTag,this.stream.write("</"+re.name+">")):(se.state=E.CloseTag,this.stream.write(se.spaceBeforeSlash+"/>"));else if(se.pretty&&ye===1&&(ge.type===z.Text||ge.type===z.Raw)&&ge.value!=null)this.stream.write(">"),se.state=E.InsideTag,se.suppressPrettyCount++,Be=!0,this.writeChildNode(ge,se,ue+1),se.suppressPrettyCount--,Be=!1,se.state=E.CloseTag,this.stream.write("</"+re.name+">");else{for(this.stream.write(">"+this.endline(re,se,ue)),se.state=E.InsideTag,Se=re.children,xe=0,ke=Se.length;xe<ke;xe++)he=Se[xe],this.writeChildNode(he,se,ue+1);se.state=E.CloseTag,this.stream.write(this.indent(re,se,ue)+"</"+re.name+">")}return this.stream.write(this.endline(re,se,ue)),se.state=E.None,this.closeNode(re,se,ue)},ae.prototype.processingInstruction=function(re,se,ue){return this.stream.write(ae.__super__.processingInstruction.call(this,re,se,ue))},ae.prototype.raw=function(re,se,ue){return this.stream.write(ae.__super__.raw.call(this,re,se,ue))},ae.prototype.text=function(re,se,ue){return this.stream.write(ae.__super__.text.call(this,re,se,ue))},ae.prototype.dtdAttList=function(re,se,ue){return this.stream.write(ae.__super__.dtdAttList.call(this,re,se,ue))},ae.prototype.dtdElement=function(re,se,ue){return this.stream.write(ae.__super__.dtdElement.call(this,re,se,ue))},ae.prototype.dtdEntity=function(re,se,ue){return this.stream.write(ae.__super__.dtdEntity.call(this,re,se,ue))},ae.prototype.dtdNotation=function(re,se,ue){return this.stream.write(ae.__super__.dtdNotation.call(this,re,se,ue))},ae}(oe)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(y,je,be){(function(){var z,E,ie=function(ee,ce){for(var x in ce)oe.call(ce,x)&&(ee[x]=ce[x]);function ae(){this.constructor=ee}return ae.prototype=ce.prototype,ee.prototype=new ae,ee.__super__=ce.prototype,ee},oe={}.hasOwnProperty;E=y("./XMLWriterBase"),je.exports=z=function(ee){ie(ce,ee);function ce(x){ce.__super__.constructor.call(this,x)}return ce.prototype.document=function(x,ae){var re,se,ue,pe,he;for(ae=this.filterOptions(ae),pe="",he=x.children,se=0,ue=he.length;se<ue;se++)re=he[se],pe+=this.writeChildNode(re,ae,0);return ae.pretty&&pe.slice(-ae.newline.length)===ae.newline&&(pe=pe.slice(0,-ae.newline.length)),pe},ce}(E)}).call(this)},{"./XMLWriterBase":458}],456:[function(y,je,be){(function(){var z,E=function(oe,ee){return function(){return oe.apply(ee,arguments)}},ie={}.hasOwnProperty;je.exports=z=function(){function oe(ee){this.assertLegalName=E(this.assertLegalName,this),this.assertLegalChar=E(this.assertLegalChar,this);var ce,x,ae;ee||(ee={}),this.options=ee,this.options.version||(this.options.version="1.0"),x=ee.stringify||{};for(ce in x)ie.call(x,ce)&&(ae=x[ce],this[ce]=ae)}return oe.prototype.name=function(ee){return this.options.noValidation?ee:this.assertLegalName(""+ee||"")},oe.prototype.text=function(ee){return this.options.noValidation?ee:this.assertLegalChar(this.textEscape(""+ee||""))},oe.prototype.cdata=function(ee){return this.options.noValidation?ee:(ee=""+ee||"",ee=ee.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(ee))},oe.prototype.comment=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",ee.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+ee);return this.assertLegalChar(ee)},oe.prototype.raw=function(ee){return this.options.noValidation?ee:""+ee||""},oe.prototype.attValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(this.attEscape(ee=""+ee||""))},oe.prototype.insTarget=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.insValue=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",ee.match(/\?>/))throw new Error("Invalid processing instruction value: "+ee);return this.assertLegalChar(ee)},oe.prototype.xmlVersion=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",!ee.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+ee);return ee},oe.prototype.xmlEncoding=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",!ee.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+ee);return this.assertLegalChar(ee)},oe.prototype.xmlStandalone=function(ee){return this.options.noValidation?ee:ee?"yes":"no"},oe.prototype.dtdPubID=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.dtdSysID=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.dtdElementValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.dtdAttType=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.dtdAttDefault=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.dtdEntityValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.dtdNData=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.convertAttKey="@",oe.prototype.convertPIKey="?",oe.prototype.convertTextKey="#text",oe.prototype.convertCDataKey="#cdata",oe.prototype.convertCommentKey="#comment",oe.prototype.convertRawKey="#raw",oe.prototype.assertLegalChar=function(ee){var ce,x;if(this.options.noValidation)return ee;if(ce="",this.options.version==="1.0"){if(ce=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,x=ee.match(ce))throw new Error("Invalid character in string: "+ee+" at index "+x.index)}else if(this.options.version==="1.1"&&(ce=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,x=ee.match(ce)))throw new Error("Invalid character in string: "+ee+" at index "+x.index);return ee},oe.prototype.assertLegalName=function(ee){var ce;if(this.options.noValidation)return ee;if(this.assertLegalChar(ee),ce=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!ee.match(ce))throw new Error("Invalid character in name");return ee},oe.prototype.textEscape=function(ee){var ce;return this.options.noValidation?ee:(ce=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(ce,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},oe.prototype.attEscape=function(ee){var ce;return this.options.noValidation?ee:(ce=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(ce,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},oe}()}).call(this)},{}],457:[function(y,je,be){(function(){var z,E,ie,oe=function(ce,x){for(var ae in x)ee.call(x,ae)&&(ce[ae]=x[ae]);function re(){this.constructor=ce}return re.prototype=x.prototype,ce.prototype=new re,ce.__super__=x.prototype,ce},ee={}.hasOwnProperty;z=y("./NodeType"),E=y("./XMLCharacterData"),je.exports=ie=function(ce){oe(x,ce);function x(ae,re){if(x.__super__.constructor.call(this,ae),re==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=z.Text,this.value=this.stringify.text(re)}return Object.defineProperty(x.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(x.prototype,"wholeText",{get:function(){var ae,re,se;for(se="",re=this.previousSibling;re;)se=re.data+se,re=re.previousSibling;for(se+=this.data,ae=this.nextSibling;ae;)se=se+ae.data,ae=ae.nextSibling;return se}}),x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(ae){return this.options.writer.text(this,this.options.writer.filterOptions(ae))},x.prototype.splitText=function(ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.replaceWholeText=function(ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},x}(E)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(y,je,be){(function(){var z,E,ie,oe,ee,ce,x,ae,re,se,ue,pe,he,ye,ge,xe,ke,De={}.hasOwnProperty;ke=y("./Utility").assign,z=y("./NodeType"),re=y("./XMLDeclaration"),se=y("./XMLDocType"),ie=y("./XMLCData"),oe=y("./XMLComment"),pe=y("./XMLElement"),ye=y("./XMLRaw"),ge=y("./XMLText"),he=y("./XMLProcessingInstruction"),ue=y("./XMLDummy"),ee=y("./XMLDTDAttList"),ce=y("./XMLDTDElement"),x=y("./XMLDTDEntity"),ae=y("./XMLDTDNotation"),E=y("./WriterState"),je.exports=xe=function(){function Be(Ae){var Se,Ee,Oe;Ae||(Ae={}),this.options=Ae,Ee=Ae.writer||{};for(Se in Ee)De.call(Ee,Se)&&(Oe=Ee[Se],this["_"+Se]=this[Se],this[Se]=Oe)}return Be.prototype.filterOptions=function(Ae){var Se,Ee,Oe,Pe,Le,Ne,me,Ve;return Ae||(Ae={}),Ae=ke({},this.options,Ae),Se={writer:this},Se.pretty=Ae.pretty||!1,Se.allowEmpty=Ae.allowEmpty||!1,Se.indent=(Ee=Ae.indent)!=null?Ee:" ",Se.newline=(Oe=Ae.newline)!=null?Oe:`
`,Se.offset=(Pe=Ae.offset)!=null?Pe:0,Se.dontPrettyTextNodes=(Le=(Ne=Ae.dontPrettyTextNodes)!=null?Ne:Ae.dontprettytextnodes)!=null?Le:0,Se.spaceBeforeSlash=(me=(Ve=Ae.spaceBeforeSlash)!=null?Ve:Ae.spacebeforeslash)!=null?me:"",Se.spaceBeforeSlash===!0&&(Se.spaceBeforeSlash=" "),Se.suppressPrettyCount=0,Se.user={},Se.state=E.None,Se},Be.prototype.indent=function(Ae,Se,Ee){var Oe;return!Se.pretty||Se.suppressPrettyCount?"":Se.pretty&&(Oe=(Ee||0)+Se.offset+1,Oe>0)?new Array(Oe).join(Se.indent):""},Be.prototype.endline=function(Ae,Se,Ee){return!Se.pretty||Se.suppressPrettyCount?"":Se.newline},Be.prototype.attribute=function(Ae,Se,Ee){var Oe;return this.openAttribute(Ae,Se,Ee),Oe=" "+Ae.name+'="'+Ae.value+'"',this.closeAttribute(Ae,Se,Ee),Oe},Be.prototype.cdata=function(Ae,Se,Ee){var Oe;return this.openNode(Ae,Se,Ee),Se.state=E.OpenTag,Oe=this.indent(Ae,Se,Ee)+"<![CDATA[",Se.state=E.InsideTag,Oe+=Ae.value,Se.state=E.CloseTag,Oe+="]]>"+this.endline(Ae,Se,Ee),Se.state=E.None,this.closeNode(Ae,Se,Ee),Oe},Be.prototype.comment=function(Ae,Se,Ee){var Oe;return this.openNode(Ae,Se,Ee),Se.state=E.OpenTag,Oe=this.indent(Ae,Se,Ee)+"<!-- ",Se.state=E.InsideTag,Oe+=Ae.value,Se.state=E.CloseTag,Oe+=" -->"+this.endline(Ae,Se,Ee),Se.state=E.None,this.closeNode(Ae,Se,Ee),Oe},Be.prototype.declaration=function(Ae,Se,Ee){var Oe;return this.openNode(Ae,Se,Ee),Se.state=E.OpenTag,Oe=this.indent(Ae,Se,Ee)+"<?xml",Se.state=E.InsideTag,Oe+=' version="'+Ae.version+'"',Ae.encoding!=null&&(Oe+=' encoding="'+Ae.encoding+'"'),Ae.standalone!=null&&(Oe+=' standalone="'+Ae.standalone+'"'),Se.state=E.CloseTag,Oe+=Se.spaceBeforeSlash+"?>",Oe+=this.endline(Ae,Se,Ee),Se.state=E.None,this.closeNode(Ae,Se,Ee),Oe},Be.prototype.docType=function(Ae,Se,Ee){var Oe,Pe,Le,Ne,me;if(Ee||(Ee=0),this.openNode(Ae,Se,Ee),Se.state=E.OpenTag,Ne=this.indent(Ae,Se,Ee),Ne+="<!DOCTYPE "+Ae.root().name,Ae.pubID&&Ae.sysID?Ne+=' PUBLIC "'+Ae.pubID+'" "'+Ae.sysID+'"':Ae.sysID&&(Ne+=' SYSTEM "'+Ae.sysID+'"'),Ae.children.length>0){for(Ne+=" [",Ne+=this.endline(Ae,Se,Ee),Se.state=E.InsideTag,me=Ae.children,Pe=0,Le=me.length;Pe<Le;Pe++)Oe=me[Pe],Ne+=this.writeChildNode(Oe,Se,Ee+1);Se.state=E.CloseTag,Ne+="]"}return Se.state=E.CloseTag,Ne+=Se.spaceBeforeSlash+">",Ne+=this.endline(Ae,Se,Ee),Se.state=E.None,this.closeNode(Ae,Se,Ee),Ne},Be.prototype.element=function(Ae,Se,Ee){var Oe,Pe,Le,Ne,me,Ve,Ze,We,nt,_e,Ue,tt,rt,et;Ee||(Ee=0),_e=!1,Ue="",this.openNode(Ae,Se,Ee),Se.state=E.OpenTag,Ue+=this.indent(Ae,Se,Ee)+"<"+Ae.name,tt=Ae.attribs;for(nt in tt)De.call(tt,nt)&&(Oe=tt[nt],Ue+=this.attribute(Oe,Se,Ee));if(Le=Ae.children.length,Ne=Le===0?null:Ae.children[0],Le===0||Ae.children.every(function(Ke){return(Ke.type===z.Text||Ke.type===z.Raw)&&Ke.value===""}))Se.allowEmpty?(Ue+=">",Se.state=E.CloseTag,Ue+="</"+Ae.name+">"+this.endline(Ae,Se,Ee)):(Se.state=E.CloseTag,Ue+=Se.spaceBeforeSlash+"/>"+this.endline(Ae,Se,Ee));else if(Se.pretty&&Le===1&&(Ne.type===z.Text||Ne.type===z.Raw)&&Ne.value!=null)Ue+=">",Se.state=E.InsideTag,Se.suppressPrettyCount++,_e=!0,Ue+=this.writeChildNode(Ne,Se,Ee+1),Se.suppressPrettyCount--,_e=!1,Se.state=E.CloseTag,Ue+="</"+Ae.name+">"+this.endline(Ae,Se,Ee);else{if(Se.dontPrettyTextNodes){for(rt=Ae.children,me=0,Ze=rt.length;me<Ze;me++)if(Pe=rt[me],(Pe.type===z.Text||Pe.type===z.Raw)&&Pe.value!=null){Se.suppressPrettyCount++,_e=!0;break}}for(Ue+=">"+this.endline(Ae,Se,Ee),Se.state=E.InsideTag,et=Ae.children,Ve=0,We=et.length;Ve<We;Ve++)Pe=et[Ve],Ue+=this.writeChildNode(Pe,Se,Ee+1);Se.state=E.CloseTag,Ue+=this.indent(Ae,Se,Ee)+"</"+Ae.name+">",_e&&Se.suppressPrettyCount--,Ue+=this.endline(Ae,Se,Ee),Se.state=E.None}return this.closeNode(Ae,Se,Ee),Ue},Be.prototype.writeChildNode=function(Ae,Se,Ee){switch(Ae.type){case z.CData:return this.cdata(Ae,Se,Ee);case z.Comment:return this.comment(Ae,Se,Ee);case z.Element:return this.element(Ae,Se,Ee);case z.Raw:return this.raw(Ae,Se,Ee);case z.Text:return this.text(Ae,Se,Ee);case z.ProcessingInstruction:return this.processingInstruction(Ae,Se,Ee);case z.Dummy:return"";case z.Declaration:return this.declaration(Ae,Se,Ee);case z.DocType:return this.docType(Ae,Se,Ee);case z.AttributeDeclaration:return this.dtdAttList(Ae,Se,Ee);case z.ElementDeclaration:return this.dtdElement(Ae,Se,Ee);case z.EntityDeclaration:return this.dtdEntity(Ae,Se,Ee);case z.NotationDeclaration:return this.dtdNotation(Ae,Se,Ee);default:throw new Error("Unknown XML node type: "+Ae.constructor.name)}},Be.prototype.processingInstruction=function(Ae,Se,Ee){var Oe;return this.openNode(Ae,Se,Ee),Se.state=E.OpenTag,Oe=this.indent(Ae,Se,Ee)+"<?",Se.state=E.InsideTag,Oe+=Ae.target,Ae.value&&(Oe+=" "+Ae.value),Se.state=E.CloseTag,Oe+=Se.spaceBeforeSlash+"?>",Oe+=this.endline(Ae,Se,Ee),Se.state=E.None,this.closeNode(Ae,Se,Ee),Oe},Be.prototype.raw=function(Ae,Se,Ee){var Oe;return this.openNode(Ae,Se,Ee),Se.state=E.OpenTag,Oe=this.indent(Ae,Se,Ee),Se.state=E.InsideTag,Oe+=Ae.value,Se.state=E.CloseTag,Oe+=this.endline(Ae,Se,Ee),Se.state=E.None,this.closeNode(Ae,Se,Ee),Oe},Be.prototype.text=function(Ae,Se,Ee){var Oe;return this.openNode(Ae,Se,Ee),Se.state=E.OpenTag,Oe=this.indent(Ae,Se,Ee),Se.state=E.InsideTag,Oe+=Ae.value,Se.state=E.CloseTag,Oe+=this.endline(Ae,Se,Ee),Se.state=E.None,this.closeNode(Ae,Se,Ee),Oe},Be.prototype.dtdAttList=function(Ae,Se,Ee){var Oe;return this.openNode(Ae,Se,Ee),Se.state=E.OpenTag,Oe=this.indent(Ae,Se,Ee)+"<!ATTLIST",Se.state=E.InsideTag,Oe+=" "+Ae.elementName+" "+Ae.attributeName+" "+Ae.attributeType,Ae.defaultValueType!=="#DEFAULT"&&(Oe+=" "+Ae.defaultValueType),Ae.defaultValue&&(Oe+=' "'+Ae.defaultValue+'"'),Se.state=E.CloseTag,Oe+=Se.spaceBeforeSlash+">"+this.endline(Ae,Se,Ee),Se.state=E.None,this.closeNode(Ae,Se,Ee),Oe},Be.prototype.dtdElement=function(Ae,Se,Ee){var Oe;return this.openNode(Ae,Se,Ee),Se.state=E.OpenTag,Oe=this.indent(Ae,Se,Ee)+"<!ELEMENT",Se.state=E.InsideTag,Oe+=" "+Ae.name+" "+Ae.value,Se.state=E.CloseTag,Oe+=Se.spaceBeforeSlash+">"+this.endline(Ae,Se,Ee),Se.state=E.None,this.closeNode(Ae,Se,Ee),Oe},Be.prototype.dtdEntity=function(Ae,Se,Ee){var Oe;return this.openNode(Ae,Se,Ee),Se.state=E.OpenTag,Oe=this.indent(Ae,Se,Ee)+"<!ENTITY",Se.state=E.InsideTag,Ae.pe&&(Oe+=" %"),Oe+=" "+Ae.name,Ae.value?Oe+=' "'+Ae.value+'"':(Ae.pubID&&Ae.sysID?Oe+=' PUBLIC "'+Ae.pubID+'" "'+Ae.sysID+'"':Ae.sysID&&(Oe+=' SYSTEM "'+Ae.sysID+'"'),Ae.nData&&(Oe+=" NDATA "+Ae.nData)),Se.state=E.CloseTag,Oe+=Se.spaceBeforeSlash+">"+this.endline(Ae,Se,Ee),Se.state=E.None,this.closeNode(Ae,Se,Ee),Oe},Be.prototype.dtdNotation=function(Ae,Se,Ee){var Oe;return this.openNode(Ae,Se,Ee),Se.state=E.OpenTag,Oe=this.indent(Ae,Se,Ee)+"<!NOTATION",Se.state=E.InsideTag,Oe+=" "+Ae.name,Ae.pubID&&Ae.sysID?Oe+=' PUBLIC "'+Ae.pubID+'" "'+Ae.sysID+'"':Ae.pubID?Oe+=' PUBLIC "'+Ae.pubID+'"':Ae.sysID&&(Oe+=' SYSTEM "'+Ae.sysID+'"'),Se.state=E.CloseTag,Oe+=Se.spaceBeforeSlash+">"+this.endline(Ae,Se,Ee),Se.state=E.None,this.closeNode(Ae,Se,Ee),Oe},Be.prototype.openNode=function(Ae,Se,Ee){},Be.prototype.closeNode=function(Ae,Se,Ee){},Be.prototype.openAttribute=function(Ae,Se,Ee){},Be.prototype.closeAttribute=function(Ae,Se,Ee){},Be}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(y,je,be){(function(){var z,E,ie,oe,ee,ce,x,ae,re,se;se=y("./Utility"),ae=se.assign,re=se.isFunction,ie=y("./XMLDOMImplementation"),oe=y("./XMLDocument"),ee=y("./XMLDocumentCB"),x=y("./XMLStringWriter"),ce=y("./XMLStreamWriter"),z=y("./NodeType"),E=y("./WriterState"),je.exports.create=function(ue,pe,he,ye){var ge,xe;if(ue==null)throw new Error("Root element needs a name.");return ye=ae({},pe,he,ye),ge=new oe(ye),xe=ge.element(ue),ye.headless||(ge.declaration(ye),(ye.pubID!=null||ye.sysID!=null)&&ge.dtd(ye)),xe},je.exports.begin=function(ue,pe,he){var ye;return re(ue)&&(ye=[ue,pe],pe=ye[0],he=ye[1],ue={}),pe?new ee(ue,pe,he):new oe(ue)},je.exports.stringWriter=function(ue){return new x(ue)},je.exports.streamWriter=function(ue,pe){return new ce(ue,pe)},je.exports.implementation=new ie,je.exports.nodeType=z,je.exports.writerState=E}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(y,je,be){je.exports=E;var z=Object.prototype.hasOwnProperty;function E(){for(var ie={},oe=0;oe<arguments.length;oe++){var ee=arguments[oe];for(var ce in ee)z.call(ee,ce)&&(ie[ce]=ee[ce])}return ie}},{}],461:[function(y,je,be){"use strict";y("core-js/modules/es.array.fill.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/es.array.join.js"),y("core-js/modules/es.array.slice.js");var z=y("buffer").Buffer,E=y("./sha"),ie=y("./md5"),oe={sha1:E,md5:ie},ee=64,ce=z.alloc(ee);ce.fill(0);function x(se,ue,pe){z.isBuffer(ue)||(ue=z.from(ue)),z.isBuffer(pe)||(pe=z.from(pe)),ue.length>ee?ue=se(ue):ue.length<ee&&(ue=z.concat([ue,ce],ee));for(var he=z.alloc(ee),ye=z.alloc(ee),ge=0;ge<ee;ge++)he[ge]=ue[ge]^54,ye[ge]=ue[ge]^92;var xe=se(z.concat([he,pe]));return se(z.concat([ye,xe]))}function ae(se,ue){se=se||"sha1";var pe=oe[se],he=[],ye=0;return pe||re("algorithm:",se,"is not yet supported"),{update:function(xe){return z.isBuffer(xe)||(xe=z.from(xe)),he.push(xe),ye+=xe.length,this},digest:function(xe){var ke=z.concat(he),De=ue?x(pe,ue,ke):pe(ke);return he=null,xe?De.toString(xe):De}}}function re(){var se=[].slice.call(arguments).join(" ");throw new Error([se,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}be.createHash=function(se){return ae(se)},be.createHmac=function(se,ue){return ae(se,ue)},be.createCredentials=function(){re("sorry,createCredentials is not implemented yet")},be.createCipher=function(){re("sorry,createCipher is not implemented yet")},be.createCipheriv=function(){re("sorry,createCipheriv is not implemented yet")},be.createDecipher=function(){re("sorry,createDecipher is not implemented yet")},be.createDecipheriv=function(){re("sorry,createDecipheriv is not implemented yet")},be.createSign=function(){re("sorry,createSign is not implemented yet")},be.createVerify=function(){re("sorry,createVerify is not implemented yet")},be.createDiffieHellman=function(){re("sorry,createDiffieHellman is not implemented yet")},be.pbkdf2=function(){re("sorry,pbkdf2 is not implemented yet")}},{"./md5":463,"./sha":464,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],462:[function(y,je,be){"use strict";y("core-js/modules/es.array.fill.js"),y("core-js/modules/es.array.concat.js");var z=y("buffer").Buffer,E=4,ie=z.alloc(E);ie.fill(0);var oe=8;function ee(ae,re){if(ae.length%E!==0){var se=ae.length+(E-ae.length%E);ae=z.concat([ae,ie],se)}for(var ue=[],pe=re?ae.readInt32BE:ae.readInt32LE,he=0;he<ae.length;he+=E)ue.push(pe.call(ae,he));return ue}function ce(ae,re,se){for(var ue=z.alloc(re),pe=se?ue.writeInt32BE:ue.writeInt32LE,he=0;he<ae.length;he++)pe.call(ue,ae[he],he*4,!0);return ue}function x(ae,re,se,ue){z.isBuffer(ae)||(ae=z.from(ae));var pe=re(ee(ae,ue),ae.length*oe);return ce(pe,se,ue)}je.exports={hash:x}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(y,je,be){"use strict";var z=y("./helpers");function E(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function ie(ue,pe){ue[pe>>5]|=128<<pe%32,ue[(pe+64>>>9<<4)+14]=pe;for(var he=1732584193,ye=-271733879,ge=-1732584194,xe=271733878,ke=0;ke<ue.length;ke+=16){var De=he,Be=ye,Ae=ge,Se=xe;he=ee(he,ye,ge,xe,ue[ke+0],7,-680876936),xe=ee(xe,he,ye,ge,ue[ke+1],12,-389564586),ge=ee(ge,xe,he,ye,ue[ke+2],17,606105819),ye=ee(ye,ge,xe,he,ue[ke+3],22,-1044525330),he=ee(he,ye,ge,xe,ue[ke+4],7,-176418897),xe=ee(xe,he,ye,ge,ue[ke+5],12,1200080426),ge=ee(ge,xe,he,ye,ue[ke+6],17,-1473231341),ye=ee(ye,ge,xe,he,ue[ke+7],22,-45705983),he=ee(he,ye,ge,xe,ue[ke+8],7,1770035416),xe=ee(xe,he,ye,ge,ue[ke+9],12,-1958414417),ge=ee(ge,xe,he,ye,ue[ke+10],17,-42063),ye=ee(ye,ge,xe,he,ue[ke+11],22,-1990404162),he=ee(he,ye,ge,xe,ue[ke+12],7,1804603682),xe=ee(xe,he,ye,ge,ue[ke+13],12,-40341101),ge=ee(ge,xe,he,ye,ue[ke+14],17,-1502002290),ye=ee(ye,ge,xe,he,ue[ke+15],22,1236535329),he=ce(he,ye,ge,xe,ue[ke+1],5,-165796510),xe=ce(xe,he,ye,ge,ue[ke+6],9,-1069501632),ge=ce(ge,xe,he,ye,ue[ke+11],14,643717713),ye=ce(ye,ge,xe,he,ue[ke+0],20,-373897302),he=ce(he,ye,ge,xe,ue[ke+5],5,-701558691),xe=ce(xe,he,ye,ge,ue[ke+10],9,38016083),ge=ce(ge,xe,he,ye,ue[ke+15],14,-660478335),ye=ce(ye,ge,xe,he,ue[ke+4],20,-405537848),he=ce(he,ye,ge,xe,ue[ke+9],5,568446438),xe=ce(xe,he,ye,ge,ue[ke+14],9,-1019803690),ge=ce(ge,xe,he,ye,ue[ke+3],14,-187363961),ye=ce(ye,ge,xe,he,ue[ke+8],20,1163531501),he=ce(he,ye,ge,xe,ue[ke+13],5,-1444681467),xe=ce(xe,he,ye,ge,ue[ke+2],9,-51403784),ge=ce(ge,xe,he,ye,ue[ke+7],14,1735328473),ye=ce(ye,ge,xe,he,ue[ke+12],20,-1926607734),he=x(he,ye,ge,xe,ue[ke+5],4,-378558),xe=x(xe,he,ye,ge,ue[ke+8],11,-2022574463),ge=x(ge,xe,he,ye,ue[ke+11],16,1839030562),ye=x(ye,ge,xe,he,ue[ke+14],23,-35309556),he=x(he,ye,ge,xe,ue[ke+1],4,-1530992060),xe=x(xe,he,ye,ge,ue[ke+4],11,1272893353),ge=x(ge,xe,he,ye,ue[ke+7],16,-155497632),ye=x(ye,ge,xe,he,ue[ke+10],23,-1094730640),he=x(he,ye,ge,xe,ue[ke+13],4,681279174),xe=x(xe,he,ye,ge,ue[ke+0],11,-358537222),ge=x(ge,xe,he,ye,ue[ke+3],16,-722521979),ye=x(ye,ge,xe,he,ue[ke+6],23,76029189),he=x(he,ye,ge,xe,ue[ke+9],4,-640364487),xe=x(xe,he,ye,ge,ue[ke+12],11,-421815835),ge=x(ge,xe,he,ye,ue[ke+15],16,530742520),ye=x(ye,ge,xe,he,ue[ke+2],23,-995338651),he=ae(he,ye,ge,xe,ue[ke+0],6,-198630844),xe=ae(xe,he,ye,ge,ue[ke+7],10,1126891415),ge=ae(ge,xe,he,ye,ue[ke+14],15,-1416354905),ye=ae(ye,ge,xe,he,ue[ke+5],21,-57434055),he=ae(he,ye,ge,xe,ue[ke+12],6,1700485571),xe=ae(xe,he,ye,ge,ue[ke+3],10,-1894986606),ge=ae(ge,xe,he,ye,ue[ke+10],15,-1051523),ye=ae(ye,ge,xe,he,ue[ke+1],21,-2054922799),he=ae(he,ye,ge,xe,ue[ke+8],6,1873313359),xe=ae(xe,he,ye,ge,ue[ke+15],10,-30611744),ge=ae(ge,xe,he,ye,ue[ke+6],15,-1560198380),ye=ae(ye,ge,xe,he,ue[ke+13],21,1309151649),he=ae(he,ye,ge,xe,ue[ke+4],6,-145523070),xe=ae(xe,he,ye,ge,ue[ke+11],10,-1120210379),ge=ae(ge,xe,he,ye,ue[ke+2],15,718787259),ye=ae(ye,ge,xe,he,ue[ke+9],21,-343485551),he=re(he,De),ye=re(ye,Be),ge=re(ge,Ae),xe=re(xe,Se)}return Array(he,ye,ge,xe)}function oe(ue,pe,he,ye,ge,xe){return re(se(re(re(pe,ue),re(ye,xe)),ge),he)}function ee(ue,pe,he,ye,ge,xe,ke){return oe(pe&he|~pe&ye,ue,pe,ge,xe,ke)}function ce(ue,pe,he,ye,ge,xe,ke){return oe(pe&ye|he&~ye,ue,pe,ge,xe,ke)}function x(ue,pe,he,ye,ge,xe,ke){return oe(pe^he^ye,ue,pe,ge,xe,ke)}function ae(ue,pe,he,ye,ge,xe,ke){return oe(he^(pe|~ye),ue,pe,ge,xe,ke)}function re(ue,pe){var he=(ue&65535)+(pe&65535),ye=(ue>>16)+(pe>>16)+(he>>16);return ye<<16|he&65535}function se(ue,pe){return ue<<pe|ue>>>32-pe}je.exports=function(pe){return z.hash(pe,ie,16)}},{"./helpers":462}],464:[function(y,je,be){"use strict";var z=y("./helpers");function E(x,ae){x[ae>>5]|=128<<24-ae%32,x[(ae+64>>9<<4)+15]=ae;for(var re=Array(80),se=1732584193,ue=-271733879,pe=-1732584194,he=271733878,ye=-1009589776,ge=0;ge<x.length;ge+=16){for(var xe=se,ke=ue,De=pe,Be=he,Ae=ye,Se=0;Se<80;Se++){Se<16?re[Se]=x[ge+Se]:re[Se]=ce(re[Se-3]^re[Se-8]^re[Se-14]^re[Se-16],1);var Ee=ee(ee(ce(se,5),ie(Se,ue,pe,he)),ee(ee(ye,re[Se]),oe(Se)));ye=he,he=pe,pe=ce(ue,30),ue=se,se=Ee}se=ee(se,xe),ue=ee(ue,ke),pe=ee(pe,De),he=ee(he,Be),ye=ee(ye,Ae)}return Array(se,ue,pe,he,ye)}function ie(x,ae,re,se){return x<20?ae&re|~ae&se:x<40?ae^re^se:x<60?ae&re|ae&se|re&se:ae^re^se}function oe(x){return x<20?1518500249:x<40?1859775393:x<60?-1894007588:-899497514}function ee(x,ae){var re=(x&65535)+(ae&65535),se=(x>>16)+(ae>>16)+(re>>16);return se<<16|re&65535}function ce(x,ae){return x<<ae|x>>>32-ae}je.exports=function(ae){return z.hash(ae,E,20,!0)}},{"./helpers":462}],465:[function(y,je,be){"use strict";je.exports=function(){return function(){}}},{}],466:[function(y,je,be){(function(z){(function(){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),ie=E(y("@babel/runtime/helpers/typeof")),oe=y("stream"),ee=oe.Stream,ce=y("../lib/common/utils/isArray"),x=ce.isArray;je.exports.string=function(se){return typeof se=="string"},je.exports.array=x,je.exports.buffer=z.isBuffer;function ae(re){return re instanceof ee}je.exports.writableStream=function(se){return ae(se)&&typeof se._write=="function"&&(0,ie.default)(se._writableState)==="object"}}).call(this)}).call(this,{isBuffer:y("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":63,"../node_modules/is-buffer/index.js":366,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,stream:398}],467:[function(y,je,be){"use strict";var z=y("immediate"),E=je.exports={};E.nextTick=z,E.title="browser",E.browser=!0,E.env={},E.argv=[],E.version="",E.versions={};function ie(){}E.on=ie,E.addListener=ie,E.once=ie,E.off=ie,E.removeListener=ie,E.removeAllListeners=ie,E.emit=ie,E.prependListener=ie,E.prependOnceListener=ie,E.listeners=function(oe){return[]},E.binding=function(oe){throw new Error("process.binding is not supported")},E.cwd=function(){return"/"},E.chdir=function(oe){throw new Error("process.chdir is not supported")},E.umask=function(){return 0}},{immediate:358}],468:[function(y,je,be){(function(z){(function(){"use strict";y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.search.js");var E=y("./lib/request"),ie=y("./lib/response"),oe=y("xtend"),ee=y("builtin-status-codes"),ce=y("url"),x=be;x.request=function(ae,re){typeof ae=="string"?ae=ce.parse(ae):ae=oe(ae);var se=z.location.protocol.search(/^https?:$/)===-1?"http:":"",ue=ae.protocol||se,pe=ae.hostname||ae.host,he=ae.port,ye=ae.path||"/";pe&&pe.indexOf(":")!==-1&&(pe="["+pe+"]"),ae.url=(pe?ue+"//"+pe:"")+(he?":"+he:"")+ye,ae.method=(ae.method||"GET").toUpperCase(),ae.headers=ae.headers||{};var ge=new E(ae);return re&&ge.on("response",re),ge},x.get=function(re,se){var ue=x.request(re,se);return ue.end(),ue},x.ClientRequest=E,x.IncomingMessage=ie.IncomingMessage,x.Agent=function(){},x.Agent.defaultMaxSockets=4,x.globalAgent=new x.Agent,x.STATUS_CODES=ee,x.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":470,"./lib/response":471,"builtin-status-codes":91,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.search.js":306,url:472,xtend:460}],469:[function(y,je,be){(function(z){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.array-buffer.constructor.js"),y("core-js/modules/es.array-buffer.slice.js"),y("core-js/modules/es.array.slice.js"),be.fetch=x(z.fetch)&&x(z.ReadableStream),be.writableStream=x(z.WritableStream),be.abortController=x(z.AbortController),be.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),be.blobConstructor=!0}catch(ae){}var E;function ie(){if(E!==void 0)return E;if(z.XMLHttpRequest){E=new z.XMLHttpRequest;try{E.open("GET",z.XDomainRequest?"/":"https://example.com")}catch(ae){E=null}}else E=null;return E}function oe(ae){var re=ie();if(!re)return!1;try{return re.responseType=ae,re.responseType===ae}catch(se){}return!1}var ee=typeof z.ArrayBuffer!="undefined",ce=ee&&x(z.ArrayBuffer.prototype.slice);be.arraybuffer=be.fetch||ee&&oe("arraybuffer"),be.msstream=!be.fetch&&ce&&oe("ms-stream"),be.mozchunkedarraybuffer=!be.fetch&&ee&&oe("moz-chunked-arraybuffer"),be.overrideMimeType=be.fetch||(ie()?x(ie().overrideMimeType):!1),be.vbArray=x(z.VBArray);function x(ae){return typeof ae=="function"}E=null}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"core-js/modules/es.array-buffer.constructor.js":270,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],470:[function(y,je,be){(function(z,E,ie){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js");var oe=y("./capability"),ee=y("inherits"),ce=y("./response"),x=y("readable-stream"),ae=y("to-arraybuffer"),re=ce.IncomingMessage,se=ce.readyStates;function ue(ge,xe){return oe.fetch&&xe?"fetch":oe.mozchunkedarraybuffer?"moz-chunked-arraybuffer":oe.msstream?"ms-stream":oe.arraybuffer&&ge?"arraybuffer":oe.vbArray&&ge?"text:vbarray":"text"}var pe=je.exports=function(ge){var xe=this;x.Writable.call(xe),xe._opts=ge,xe._body=[],xe._headers={},ge.auth&&xe.setHeader("Authorization","Basic "+new ie(ge.auth).toString("base64")),Object.keys(ge.headers).forEach(function(Be){xe.setHeader(Be,ge.headers[Be])});var ke,De=!0;if(ge.mode==="disable-fetch"||"requestTimeout"in ge&&!oe.abortController)De=!1,ke=!0;else if(ge.mode==="prefer-streaming")ke=!1;else if(ge.mode==="allow-wrong-content-type")ke=!oe.overrideMimeType;else if(!ge.mode||ge.mode==="default"||ge.mode==="prefer-fast")ke=!0;else throw new Error("Invalid value for opts.mode");xe._mode=ue(ke,De),xe._fetchTimer=null,xe.on("finish",function(){xe._onFinish()})};ee(pe,x.Writable),pe.prototype.setHeader=function(ge,xe){var ke=this,De=ge.toLowerCase();ye.indexOf(De)===-1&&(ke._headers[De]={name:ge,value:xe})},pe.prototype.getHeader=function(ge){var xe=this._headers[ge.toLowerCase()];return xe?xe.value:null},pe.prototype.removeHeader=function(ge){var xe=this;delete xe._headers[ge.toLowerCase()]},pe.prototype._onFinish=function(){var ge=this;if(!ge._destroyed){var xe=ge._opts,ke=ge._headers,De=null;xe.method!=="GET"&&xe.method!=="HEAD"&&(oe.arraybuffer?De=ae(ie.concat(ge._body)):oe.blobConstructor?De=new E.Blob(ge._body.map(function(Pe){return ae(Pe)}),{type:(ke["content-type"]||{}).value||""}):De=ie.concat(ge._body).toString());var Be=[];if(Object.keys(ke).forEach(function(Pe){var Le=ke[Pe].name,Ne=ke[Pe].value;Array.isArray(Ne)?Ne.forEach(function(me){Be.push([Le,me])}):Be.push([Le,Ne])}),ge._mode==="fetch"){var Ae=null,Se=null;if(oe.abortController){var Ee=new AbortController;Ae=Ee.signal,ge._fetchAbortController=Ee,"requestTimeout"in xe&&xe.requestTimeout!==0&&(ge._fetchTimer=E.setTimeout(function(){ge.emit("requestTimeout"),ge._fetchAbortController&&ge._fetchAbortController.abort()},xe.requestTimeout))}E.fetch(ge._opts.url,{method:ge._opts.method,headers:Be,body:De||void 0,mode:"cors",credentials:xe.withCredentials?"include":"same-origin",signal:Ae}).then(function(Pe){ge._fetchResponse=Pe,ge._connect()},function(Pe){E.clearTimeout(ge._fetchTimer),ge._destroyed||ge.emit("error",Pe)})}else{var Oe=ge._xhr=new E.XMLHttpRequest;try{Oe.open(ge._opts.method,ge._opts.url,!0)}catch(Pe){z.nextTick(function(){ge.emit("error",Pe)});return}"responseType"in Oe&&(Oe.responseType=ge._mode.split(":")[0]),"withCredentials"in Oe&&(Oe.withCredentials=!!xe.withCredentials),ge._mode==="text"&&"overrideMimeType"in Oe&&Oe.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in xe&&(Oe.timeout=xe.requestTimeout,Oe.ontimeout=function(){ge.emit("requestTimeout")}),Be.forEach(function(Pe){Oe.setRequestHeader(Pe[0],Pe[1])}),ge._response=null,Oe.onreadystatechange=function(){switch(Oe.readyState){case se.LOADING:case se.DONE:ge._onXHRProgress();break}},ge._mode==="moz-chunked-arraybuffer"&&(Oe.onprogress=function(){ge._onXHRProgress()}),Oe.onerror=function(){ge._destroyed||ge.emit("error",new Error("XHR error"))};try{Oe.send(De)}catch(Pe){z.nextTick(function(){ge.emit("error",Pe)});return}}}};function he(ge){try{var xe=ge.status;return xe!==null&&xe!==0}catch(ke){return!1}}pe.prototype._onXHRProgress=function(){var ge=this;!he(ge._xhr)||ge._destroyed||(ge._response||ge._connect(),ge._response._onXHRProgress())},pe.prototype._connect=function(){var ge=this;ge._destroyed||(ge._response=new re(ge._xhr,ge._fetchResponse,ge._mode,ge._fetchTimer),ge._response.on("error",function(xe){ge.emit("error",xe)}),ge.emit("response",ge._response))},pe.prototype._write=function(ge,xe,ke){var De=this;De._body.push(ge),ke()},pe.prototype.abort=pe.prototype.destroy=function(){var ge=this;ge._destroyed=!0,E.clearTimeout(ge._fetchTimer),ge._response&&(ge._response._destroyed=!0),ge._xhr?ge._xhr.abort():ge._fetchAbortController&&ge._fetchAbortController.abort()},pe.prototype.end=function(ge,xe,ke){var De=this;typeof ge=="function"&&(ke=ge,ge=void 0),x.Writable.prototype.end.call(De,ge,xe,ke)},pe.prototype.flushHeaders=function(){},pe.prototype.setTimeout=function(){},pe.prototype.setNoDelay=function(){},pe.prototype.setSocketKeepAlive=function(){};var ye=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,y("_process"),typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},y("buffer").Buffer)},{"./capability":469,"./response":471,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.split.js":307,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394,"to-arraybuffer":415}],471:[function(y,je,be){(function(z,E,ie){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.string.match.js"),y("core-js/modules/es.array.iterator.js"),y("core-js/modules/es.array-buffer.slice.js"),y("core-js/modules/es.typed-array.uint8-array.js"),y("core-js/modules/es.typed-array.copy-within.js"),y("core-js/modules/es.typed-array.every.js"),y("core-js/modules/es.typed-array.fill.js"),y("core-js/modules/es.typed-array.filter.js"),y("core-js/modules/es.typed-array.find.js"),y("core-js/modules/es.typed-array.find-index.js"),y("core-js/modules/es.typed-array.for-each.js"),y("core-js/modules/es.typed-array.includes.js"),y("core-js/modules/es.typed-array.index-of.js"),y("core-js/modules/es.typed-array.iterator.js"),y("core-js/modules/es.typed-array.join.js"),y("core-js/modules/es.typed-array.last-index-of.js"),y("core-js/modules/es.typed-array.map.js"),y("core-js/modules/es.typed-array.reduce.js"),y("core-js/modules/es.typed-array.reduce-right.js"),y("core-js/modules/es.typed-array.reverse.js"),y("core-js/modules/es.typed-array.set.js"),y("core-js/modules/es.typed-array.slice.js"),y("core-js/modules/es.typed-array.some.js"),y("core-js/modules/es.typed-array.sort.js"),y("core-js/modules/es.typed-array.subarray.js"),y("core-js/modules/es.typed-array.to-locale-string.js"),y("core-js/modules/es.typed-array.to-string.js"),y("core-js/modules/es.array.slice.js");var oe=y("./capability"),ee=y("inherits"),ce=y("readable-stream"),x=be.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},ae=be.IncomingMessage=function(re,se,ue,pe){var he=this;if(ce.Readable.call(he),he._mode=ue,he.headers={},he.rawHeaders=[],he.trailers={},he.rawTrailers=[],he.on("end",function(){z.nextTick(function(){he.emit("close")})}),ue==="fetch"){var ye=function Ae(){xe.read().then(function(Se){if(!he._destroyed){if(Se.done){E.clearTimeout(pe),he.push(null);return}he.push(new ie(Se.value)),Ae()}}).catch(function(Se){E.clearTimeout(pe),he._destroyed||he.emit("error",Se)})};if(he._fetchResponse=se,he.url=se.url,he.statusCode=se.status,he.statusMessage=se.statusText,se.headers.forEach(function(Ae,Se){he.headers[Se.toLowerCase()]=Ae,he.rawHeaders.push(Se,Ae)}),oe.writableStream){var ge=new WritableStream({write:function(Se){return new Promise(function(Ee,Oe){he._destroyed?Oe():he.push(new ie(Se))?Ee():he._resumeFetch=Ee})},close:function(){E.clearTimeout(pe),he._destroyed||he.push(null)},abort:function(Se){he._destroyed||he.emit("error",Se)}});try{se.body.pipeTo(ge).catch(function(Ae){E.clearTimeout(pe),he._destroyed||he.emit("error",Ae)});return}catch(Ae){}}var xe=se.body.getReader();ye()}else{he._xhr=re,he._pos=0,he.url=re.responseURL,he.statusCode=re.status,he.statusMessage=re.statusText;var ke=re.getAllResponseHeaders().split(/\r?\n/);if(ke.forEach(function(Ae){var Se=Ae.match(/^([^:]+):\s*(.*)/);if(Se){var Ee=Se[1].toLowerCase();Ee==="set-cookie"?(he.headers[Ee]===void 0&&(he.headers[Ee]=[]),he.headers[Ee].push(Se[2])):he.headers[Ee]!==void 0?he.headers[Ee]+=", "+Se[2]:he.headers[Ee]=Se[2],he.rawHeaders.push(Se[1],Se[2])}}),he._charset="x-user-defined",!oe.overrideMimeType){var De=he.rawHeaders["mime-type"];if(De){var Be=De.match(/;\s*charset=([^;])(;|$)/);Be&&(he._charset=Be[1].toLowerCase())}he._charset||(he._charset="utf-8")}}};ee(ae,ce.Readable),ae.prototype._read=function(){var re=this,se=re._resumeFetch;se&&(re._resumeFetch=null,se())},ae.prototype._onXHRProgress=function(){var re=this,se=re._xhr,ue=null;switch(re._mode){case"text:vbarray":if(se.readyState!==x.DONE)break;try{ue=new E.VBArray(se.responseBody).toArray()}catch(xe){}if(ue!==null){re.push(new ie(ue));break}case"text":try{ue=se.responseText}catch(xe){re._mode="text:vbarray";break}if(ue.length>re._pos){var pe=ue.substr(re._pos);if(re._charset==="x-user-defined"){for(var he=new ie(pe.length),ye=0;ye<pe.length;ye++)he[ye]=pe.charCodeAt(ye)&255;re.push(he)}else re.push(pe,re._charset);re._pos=ue.length}break;case"arraybuffer":if(se.readyState!==x.DONE||!se.response)break;ue=se.response,re.push(new ie(new Uint8Array(ue)));break;case"moz-chunked-arraybuffer":if(ue=se.response,se.readyState!==x.LOADING||!ue)break;re.push(new ie(new Uint8Array(ue)));break;case"ms-stream":if(ue=se.response,se.readyState!==x.LOADING)break;var ge=new E.MSStreamReader;ge.onprogress=function(){ge.result.byteLength>re._pos&&(re.push(new ie(new Uint8Array(ge.result.slice(re._pos)))),re._pos=ge.result.byteLength)},ge.onload=function(){re.push(null)},ge.readAsArrayBuffer(ue);break}re._xhr.readyState===x.DONE&&re._mode!=="ms-stream"&&re.push(null)}}).call(this)}).call(this,y("_process"),typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},y("buffer").Buffer)},{"./capability":469,_process:467,buffer:90,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.split.js":307,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394}],472:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/helpers/typeof"));y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.search.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.array.join.js"),y("core-js/modules/es.string.trim.js"),y("core-js/modules/es.string.match.js"),y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.splice.js");var ie=y("punycode"),oe=y("./util");be.parse=Se,be.resolve=Oe,be.resolveObject=Pe,be.format=Ee,be.Url=ee;function ee(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var ce=/^([a-z0-9.+-]+:)/i,x=/:[0-9]*$/,ae=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,re=["<",">",'"',"`"," ","\r",`
`," "],se=["{","}","|","\\","^","`"].concat(re),ue=["'"].concat(se),pe=["%","/","?",";","#"].concat(ue),he=["/","?","#"],ye=255,ge=/^[+a-z0-9A-Z_-]{0,63}$/,xe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ke={javascript:!0,"javascript:":!0},De={javascript:!0,"javascript:":!0},Be={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ae=y("querystring");function Se(Le,Ne,me){if(Le&&oe.isObject(Le)&&Le instanceof ee)return Le;var Ve=new ee;return Ve.parse(Le,Ne,me),Ve}ee.prototype.parse=function(Le,Ne,me){if(!oe.isString(Le))throw new TypeError("Parameter 'url' must be a string, not "+(0,E.default)(Le));var Ve=Le.indexOf("?"),Ze=Ve!==-1&&Ve<Le.indexOf("#")?"?":"#",We=Le.split(Ze),nt=/\\/g;We[0]=We[0].replace(nt,"/"),Le=We.join(Ze);var _e=Le;if(_e=_e.trim(),!me&&Le.split("#").length===1){var Ue=ae.exec(_e);if(Ue)return this.path=_e,this.href=_e,this.pathname=Ue[1],Ue[2]?(this.search=Ue[2],Ne?this.query=Ae.parse(this.search.substr(1)):this.query=this.search.substr(1)):Ne&&(this.search="",this.query={}),this}var tt=ce.exec(_e);if(tt){tt=tt[0];var rt=tt.toLowerCase();this.protocol=rt,_e=_e.substr(tt.length)}if(me||tt||_e.match(/^\/\/[^@\/]+@[^@\/]+/)){var et=_e.substr(0,2)==="//";et&&!(tt&&De[tt])&&(_e=_e.substr(2),this.slashes=!0)}if(!De[tt]&&(et||tt&&!Be[tt])){for(var Ke=-1,Ye=0;Ye<he.length;Ye++){var Xe=_e.indexOf(he[Ye]);Xe!==-1&&(Ke===-1||Xe<Ke)&&(Ke=Xe)}var ot,Qe;Ke===-1?Qe=_e.lastIndexOf("@"):Qe=_e.lastIndexOf("@",Ke),Qe!==-1&&(ot=_e.slice(0,Qe),_e=_e.slice(Qe+1),this.auth=decodeURIComponent(ot)),Ke=-1;for(var Ye=0;Ye<pe.length;Ye++){var Xe=_e.indexOf(pe[Ye]);Xe!==-1&&(Ke===-1||Xe<Ke)&&(Ke=Xe)}Ke===-1&&(Ke=_e.length),this.host=_e.slice(0,Ke),_e=_e.slice(Ke),this.parseHost(),this.hostname=this.hostname||"";var ft=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ft)for(var at=this.hostname.split("."),Ye=0,qe=at.length;Ye<qe;Ye++){var Fe=at[Ye];if(Fe&&!Fe.match(ge)){for(var Re="",ne=0,fe=Fe.length;ne<fe;ne++)Fe.charCodeAt(ne)>127?Re+="x":Re+=Fe[ne];if(!Re.match(ge)){var Me=at.slice(0,Ye),ze=at.slice(Ye+1),we=Fe.match(xe);we&&(Me.push(we[1]),ze.unshift(we[2])),ze.length&&(_e="/"+ze.join(".")+_e),this.hostname=Me.join(".");break}}}this.hostname.length>ye?this.hostname="":this.hostname=this.hostname.toLowerCase(),ft||(this.hostname=ie.toASCII(this.hostname));var ve=this.port?":"+this.port:"",Ie=this.hostname||"";this.host=Ie+ve,this.href+=this.host,ft&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),_e[0]!=="/"&&(_e="/"+_e))}if(!ke[rt])for(var Ye=0,qe=ue.length;Ye<qe;Ye++){var $e=ue[Ye];if(_e.indexOf($e)!==-1){var Ge=encodeURIComponent($e);Ge===$e&&(Ge=escape($e)),_e=_e.split($e).join(Ge)}}var Je=_e.indexOf("#");Je!==-1&&(this.hash=_e.substr(Je),_e=_e.slice(0,Je));var ut=_e.indexOf("?");if(ut!==-1?(this.search=_e.substr(ut),this.query=_e.substr(ut+1),Ne&&(this.query=Ae.parse(this.query)),_e=_e.slice(0,ut)):Ne&&(this.search="",this.query={}),_e&&(this.pathname=_e),Be[rt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ve=this.pathname||"",lt=this.search||"";this.path=ve+lt}return this.href=this.format(),this};function Ee(Le){return oe.isString(Le)&&(Le=Se(Le)),Le instanceof ee?Le.format():ee.prototype.format.call(Le)}ee.prototype.format=function(){var Le=this.auth||"";Le&&(Le=encodeURIComponent(Le),Le=Le.replace(/%3A/i,":"),Le+="@");var Ne=this.protocol||"",me=this.pathname||"",Ve=this.hash||"",Ze=!1,We="";this.host?Ze=Le+this.host:this.hostname&&(Ze=Le+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(Ze+=":"+this.port)),this.query&&oe.isObject(this.query)&&Object.keys(this.query).length&&(We=Ae.stringify(this.query));var nt=this.search||We&&"?"+We||"";return Ne&&Ne.substr(-1)!==":"&&(Ne+=":"),this.slashes||(!Ne||Be[Ne])&&Ze!==!1?(Ze="//"+(Ze||""),me&&me.charAt(0)!=="/"&&(me="/"+me)):Ze||(Ze=""),Ve&&Ve.charAt(0)!=="#"&&(Ve="#"+Ve),nt&&nt.charAt(0)!=="?"&&(nt="?"+nt),me=me.replace(/[?#]/g,function(_e){return encodeURIComponent(_e)}),nt=nt.replace("#","%23"),Ne+Ze+me+nt+Ve};function Oe(Le,Ne){return Se(Le,!1,!0).resolve(Ne)}ee.prototype.resolve=function(Le){return this.resolveObject(Se(Le,!1,!0)).format()};function Pe(Le,Ne){return Le?Se(Le,!1,!0).resolveObject(Ne):Ne}ee.prototype.resolveObject=function(Le){if(oe.isString(Le)){var Ne=new ee;Ne.parse(Le,!1,!0),Le=Ne}for(var me=new ee,Ve=Object.keys(this),Ze=0;Ze<Ve.length;Ze++){var We=Ve[Ze];me[We]=this[We]}if(me.hash=Le.hash,Le.href==="")return me.href=me.format(),me;if(Le.slashes&&!Le.protocol){for(var nt=Object.keys(Le),_e=0;_e<nt.length;_e++){var Ue=nt[_e];Ue!=="protocol"&&(me[Ue]=Le[Ue])}return Be[me.protocol]&&me.hostname&&!me.pathname&&(me.path=me.pathname="/"),me.href=me.format(),me}if(Le.protocol&&Le.protocol!==me.protocol){if(!Be[Le.protocol]){for(var tt=Object.keys(Le),rt=0;rt<tt.length;rt++){var et=tt[rt];me[et]=Le[et]}return me.href=me.format(),me}if(me.protocol=Le.protocol,!Le.host&&!De[Le.protocol]){for(var qe=(Le.pathname||"").split("/");qe.length&&!(Le.host=qe.shift()););Le.host||(Le.host=""),Le.hostname||(Le.hostname=""),qe[0]!==""&&qe.unshift(""),qe.length<2&&qe.unshift(""),me.pathname=qe.join("/")}else me.pathname=Le.pathname;if(me.search=Le.search,me.query=Le.query,me.host=Le.host||"",me.auth=Le.auth,me.hostname=Le.hostname||Le.host,me.port=Le.port,me.pathname||me.search){var Ke=me.pathname||"",Ye=me.search||"";me.path=Ke+Ye}return me.slashes=me.slashes||Le.slashes,me.href=me.format(),me}var Xe=me.pathname&&me.pathname.charAt(0)==="/",ot=Le.host||Le.pathname&&Le.pathname.charAt(0)==="/",Qe=ot||Xe||me.host&&Le.pathname,ft=Qe,at=me.pathname&&me.pathname.split("/")||[],qe=Le.pathname&&Le.pathname.split("/")||[],Fe=me.protocol&&!Be[me.protocol];if(Fe&&(me.hostname="",me.port=null,me.host&&(at[0]===""?at[0]=me.host:at.unshift(me.host)),me.host="",Le.protocol&&(Le.hostname=null,Le.port=null,Le.host&&(qe[0]===""?qe[0]=Le.host:qe.unshift(Le.host)),Le.host=null),Qe=Qe&&(qe[0]===""||at[0]==="")),ot)me.host=Le.host||Le.host===""?Le.host:me.host,me.hostname=Le.hostname||Le.hostname===""?Le.hostname:me.hostname,me.search=Le.search,me.query=Le.query,at=qe;else if(qe.length)at||(at=[]),at.pop(),at=at.concat(qe),me.search=Le.search,me.query=Le.query;else if(!oe.isNullOrUndefined(Le.search)){if(Fe){me.hostname=me.host=at.shift();var Re=me.host&&me.host.indexOf("@")>0?me.host.split("@"):!1;Re&&(me.auth=Re.shift(),me.host=me.hostname=Re.shift())}return me.search=Le.search,me.query=Le.query,(!oe.isNull(me.pathname)||!oe.isNull(me.search))&&(me.path=(me.pathname?me.pathname:"")+(me.search?me.search:"")),me.href=me.format(),me}if(!at.length)return me.pathname=null,me.search?me.path="/"+me.search:me.path=null,me.href=me.format(),me;for(var ne=at.slice(-1)[0],fe=(me.host||Le.host||at.length>1)&&(ne==="."||ne==="..")||ne==="",Me=0,ze=at.length;ze>=0;ze--)ne=at[ze],ne==="."?at.splice(ze,1):ne===".."?(at.splice(ze,1),Me++):Me&&(at.splice(ze,1),Me--);if(!Qe&&!ft)for(;Me--;Me)at.unshift("..");Qe&&at[0]!==""&&(!at[0]||at[0].charAt(0)!=="/")&&at.unshift(""),fe&&at.join("/").substr(-1)!=="/"&&at.push("");var we=at[0]===""||at[0]&&at[0].charAt(0)==="/";if(Fe){me.hostname=me.host=we?"":at.length?at.shift():"";var Re=me.host&&me.host.indexOf("@")>0?me.host.split("@"):!1;Re&&(me.auth=Re.shift(),me.host=me.hostname=Re.shift())}return Qe=Qe||me.host&&at.length,Qe&&!we&&at.unshift(""),at.length?me.pathname=at.join("/"):(me.pathname=null,me.path=null),(!oe.isNull(me.pathname)||!oe.isNull(me.search))&&(me.path=(me.pathname?me.pathname:"")+(me.search?me.search:"")),me.auth=Le.auth||me.auth,me.slashes=me.slashes||Le.slashes,me.href=me.format(),me},ee.prototype.parseHost=function(){var Le=this.host,Ne=x.exec(Le);Ne&&(Ne=Ne[0],Ne!==":"&&(this.port=Ne.substr(1)),Le=Le.substr(0,Le.length-Ne.length)),Le&&(this.hostname=Le)}},{"./util":473,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.array.splice.js":283,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.search.js":306,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,punycode:382,querystring:385}],473:[function(y,je,be){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/helpers/typeof"));je.exports={isString:function(oe){return typeof oe=="string"},isObject:function(oe){return(0,E.default)(oe)==="object"&&oe!==null},isNull:function(oe){return oe===null},isNullOrUndefined:function(oe){return oe==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(y,je,be){"use strict";y("core-js/modules/es.number.constructor.js"),be.encodeURIComponent=function(z){try{return encodeURIComponent(z)}catch(E){return z}},be.escape=y("escape-html"),be.timestamp=function(E){if(E){var ie=E;return typeof ie=="string"&&(ie=Number(ie)),String(E).length===10&&(ie*=1e3),new Date(ie)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(y,je,be){(function(z,E){(function(){"use strict";var ie=y("@babel/runtime/helpers/interopRequireDefault"),oe=ie(y("@babel/runtime/helpers/typeof"));y("core-js/modules/es.string.trim.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.array.concat.js");var ee=y("util"),ce=y("url"),x=y("http"),ae=y("https"),re=y("debug")("urllib"),se=y("humanize-ms"),ue=0,pe=Math.pow(2,31)-10,he=/^https?:\/\//i;function ye(De,Be){return De===void 0?Be:De}function ge(De){return De?De.split(";")[0].trim().toLowerCase():""}function xe(De,Be){return function(Ae,Se,Ee){if(Ae)return Be(Ae);De({data:Se,status:Ee.statusCode,headers:Ee.headers,res:Ee})}}be.TIMEOUTS=[se("300s"),se("300s")];var ke=["json","text"];be.request=function(Be,Ae,Se){return arguments.length===2&&typeof Ae=="function"&&(Se=Ae,Ae=null),typeof Se=="function"?be.requestWithCallback(Be,Ae,Se):new Promise(function(Ee,Oe){be.requestWithCallback(Be,Ae,xe(Ee,Oe))})},be.requestWithCallback=function(Be,Ae,Se){if(!Be||typeof Be!="string"&&(0,oe.default)(Be)!=="object"){var Ee=ee.format("expect request url to be a string or a http request options, but got %j",Be);throw new Error(Ee)}arguments.length===2&&typeof Ae=="function"&&(Se=Ae,Ae=null),Ae=Ae||{},ue>=pe&&(ue=0);var Oe=++ue;Ae.requestUrls=Ae.requestUrls||[];var Pe={requestId:Oe,url:Be,args:Ae,ctx:Ae.ctx};Ae.emitter&&Ae.emitter.emit("request",Pe),Ae.timeout=Ae.timeout||be.TIMEOUTS,Ae.maxRedirects=Ae.maxRedirects||10,Ae.streaming=Ae.streaming||Ae.customResponse;var Le=Date.now(),Ne;typeof Be=="string"?(he.test(Be)||(Be="https://"+Be),Ne=ce.parse(Be)):Ne=Be;var me=(Ae.type||Ae.method||Ne.method||"GET").toUpperCase(),Ve=Ne.port||80,Ze=x,We=ye(Ae.agent,be.agent),nt=Ae.fixJSONCtlChars;Ne.protocol==="https:"&&(Ze=ae,We=ye(Ae.httpsAgent,be.httpsAgent),Ne.port||(Ve=443));var _e={host:Ne.hostname||Ne.host||"localhost",path:Ne.path||"/",method:me,port:Ve,agent:We,headers:Ae.headers||{},lookup:Ae.lookup};Array.isArray(Ae.timeout)?_e.requestTimeout=Ae.timeout[Ae.timeout.length-1]:typeof Ae.timeout!="undefined"&&(_e.requestTimeout=Ae.timeout);var Ue=Ae.auth||Ne.auth;Ue&&(_e.auth=Ue);var tt=Ae.content||Ae.data,rt=me==="GET"||me==="HEAD"||Ae.dataAsQueryString;if(!Ae.content&&tt&&!(typeof tt=="string"||E.isBuffer(tt)))if(rt)tt=Ae.nestedQuerystring?qs.stringify(tt):querystring.stringify(tt);else{var et=_e.headers["Content-Type"]||_e.headers["content-type"];et||(Ae.contentType==="json"?et="application/json":et="application/x-www-form-urlencoded",_e.headers["Content-Type"]=et),ge(et)==="application/json"?tt=JSON.stringify(tt):tt=Ae.nestedQuerystring?qs.stringify(tt):querystring.stringify(tt)}rt&&tt&&(_e.path+=(Ne.query?"&":"?")+tt,tt=null);var Ke=0;if(tt){var Ye=tt.length;E.isBuffer(tt)||(Ye=E.byteLength(tt)),Ke=_e.headers["Content-Length"]=Ye}Ae.dataType==="json"&&(_e.headers.Accept="application/json"),typeof Ae.beforeRequest=="function"&&Ae.beforeRequest(_e);var Xe=null,ot=null,Qe=null,ft=!1,at=!1,qe=0,Fe=-1,Re=!1,ne="",fe="",Me=null;Ae.timing&&(Me={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function ze(){Xe&&(clearTimeout(Xe),Xe=null)}function we(){ot&&(clearTimeout(ot),ot=null)}function ve(mt,Dt,jt){if(we(),!Se){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Oe,z.pid,_e.method,Be),mt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),Oe,z.pid,mt.name,mt.message,mt.stack);return}var Et=Se;Se=null;var kt={};jt&&(Fe=jt.statusCode,kt=jt.headers);var Nt=Date.now()-Le;Me&&(Me.contentDownload=Nt),re("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Nt,qe,Fe,_e.method,_e.host,_e.path,at,Me);var yt={status:Fe,statusCode:Fe,headers:kt,size:qe,aborted:Re,rt:Nt,keepAliveSocket:at,data:Dt,requestUrls:Ae.requestUrls,timing:Me,remoteAddress:ne,remotePort:fe};if(mt){var Pt="";We&&typeof We.getCurrentStatus=="function"&&(Pt=", agent status: "+JSON.stringify(We.getCurrentStatus())),mt.message+=", "+_e.method+" "+Be+" "+Fe+" (connected: "+ft+", keepalive socket: "+at+Pt+`)
headers: `+JSON.stringify(kt),mt.data=Dt,mt.path=_e.path,mt.status=Fe,mt.headers=kt,mt.res=yt}Et(mt,Dt,Ae.streaming?jt:yt),Ae.emitter&&(Pe.url=Be,Pe.socket=st&&st.connection,Pe.options=_e,Pe.size=Ke,Ae.emitter.emit("response",{requestId:Oe,error:mt,ctx:Ae.ctx,req:Pe,res:yt}))}function Ie(mt){var Dt=null;if(Ae.followRedirect&&statuses.redirect[mt.statusCode]){Ae._followRedirectCount=(Ae._followRedirectCount||0)+1;var jt=mt.headers.location;if(!jt)Dt=new Error("Got statusCode "+mt.statusCode+" but cannot resolve next location from headers"),Dt.name="FollowRedirectError";else if(Ae._followRedirectCount>Ae.maxRedirects)Dt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Be),Dt.name="MaxRedirectError";else{var Et=Ae.formatRedirectUrl?Ae.formatRedirectUrl(Be,jt):ce.resolve(Be,jt);re("Request#%d %s: `redirected` from %s to %s",Oe,_e.path,Be,Et),we(),Ae.headers&&Ae.headers.Host&&he.test(jt)&&(Ae.headers.Host=null);var kt=Se;return Se=null,be.requestWithCallback(Et,Ae,kt),{redirect:!0,error:null}}}return{redirect:!1,error:Dt}}Ae.gzip&&!_e.headers["Accept-Encoding"]&&!_e.headers["accept-encoding"]&&(_e.headers["Accept-Encoding"]="gzip");function $e(mt,Dt,jt){var Et=mt.headers["content-encoding"];return jt(null,Dt,Et)}var Ge=Ae.writeStream;re("Request#%d %s %s with headers %j, options.path: %s",Oe,me,Be,_e.headers,_e.path),Ae.requestUrls.push(Be);function Je(mt){if(Me&&(Me.waiting=Date.now()-Le),re("Request#%d %s `req response` event emit: status %d, headers: %j",Oe,Be,mt.statusCode,mt.headers),Ae.streaming){var Dt=Ie(mt);if(Dt.redirect){mt.resume();return}return Dt.error?(mt.resume(),ve(Dt.error,null,mt)):ve(null,null,mt)}if(mt.on("close",function(){re("Request#%d %s: `res close` event emit, total size %d",Oe,Be,qe)}),mt.on("error",function(){re("Request#%d %s: `res error` event emit, total size %d",Oe,Be,qe)}),mt.on("aborted",function(){Re=!0,re("Request#%d %s: `res aborted` event emit, total size %d",Oe,Be,qe)}),Ge){var jt=Ie(mt);if(jt.redirect){mt.resume();return}return jt.error?(mt.resume(),Ge.end(),ve(jt.error,null,mt)):(Ae.consumeWriteStream===!1?mt.on("end",ve.bind(null,null,null,mt)):Ge.on("close",function(){re("Request#%d %s: writeStream close event emitted",Oe,Be),ve(Qe||null,null,mt)}),mt.pipe(Ge))}var Et=[];mt.on("data",function(kt){re("Request#%d %s: `res data` event emit, size %d",Oe,Be,kt.length),qe+=kt.length,Et.push(kt)}),mt.on("end",function(){var kt=E.concat(Et,qe);if(re("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Oe,Be,qe,mt._dumped),Qe)return ve(Qe,kt,mt);var Nt=Ie(mt);if(Nt.error)return ve(Nt.error,kt,mt);Nt.redirect||$e(mt,kt,function(yt,Pt,Kt){if(yt)return ve(yt,kt,mt);if(!Kt&&ke.indexOf(Ae.dataType)>=0){try{Pt=decodeBodyByCharset(Pt,mt)}catch(xt){return re("decodeBodyByCharset error: %s",xt),ve(null,Pt,mt)}if(Ae.dataType==="json")if(qe===0)Pt=null;else{var nn=parseJSON(Pt,nt);nn.error?yt=nn.error:Pt=nn.data}}Re&&re("Request#%d %s: Remote socket was terminated before `response.end()` was called",Oe,Be),ve(yt,Pt,mt)})})}var ut,lt;Array.isArray(Ae.timeout)?(ut=se(Ae.timeout[0]),lt=se(Ae.timeout[1])):ut=lt=se(Ae.timeout),re("ConnectTimeout: %d, ResponseTimeout: %d",ut,lt);function vt(){re("Connect timer ticking, timeout: %d",ut),Xe=setTimeout(function(){Xe=null,Fe===-1&&(Fe=-2);var mt="Connect timeout for "+ut+"ms",Dt="ConnectionTimeoutError";st.socket||(Dt="SocketAssignTimeoutError",mt+=", working sockets is full"),Qe=new Error(mt),Qe.name=Dt,Qe.requestId=Oe,re("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Oe,Be,Qe.name,mt,ft),At()},ut)}function ct(){re("Response timer ticking, timeout: %d",lt),ot=setTimeout(function(){ot=null;var mt="Response timeout for "+lt+"ms",Dt="ResponseTimeoutError";Qe=new Error(mt),Qe.name=Dt,Qe.requestId=Oe,re("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Oe,Be,Qe.name,mt,ft),At()},lt)}var st;_e.mode=Ae.mode?Ae.mode:"";try{st=Ze.request(_e,Je)}catch(mt){return ve(mt)}typeof window=="undefined"?vt():st.on("requestTimeout",function(){Fe===-1&&(Fe=-2);var mt="Connect timeout for "+ut+"ms",Dt="ConnectionTimeoutError";Qe=new Error(mt),Qe.name=Dt,Qe.requestId=Oe,At()});function At(){re("Request#%d %s abort, connected: %s",Oe,Be,ft),st.socket||(Qe.noSocket=!0,ve(Qe)),st.abort()}return Me&&st.on("finish",function(){Me.requestSent=Date.now()-Le}),st.once("socket",function(mt){Me&&(Me.queuing=Date.now()-Le);var Dt=mt.readyState;if(Dt==="opening"){mt.once("lookup",function(jt,Et,kt){re("Request#%d %s lookup: %s, %s, %s",Oe,Be,jt,Et,kt),Me&&(Me.dnslookup=Date.now()-Le),Et&&(ne=Et)}),mt.once("connect",function(){Me&&(Me.connected=Date.now()-Le),ze(),ct(),re("Request#%d %s new socket connected",Oe,Be),ft=!0,ne||(ne=mt.remoteAddress),fe=mt.remotePort});return}re("Request#%d %s reuse socket connected, readyState: %s",Oe,Be,Dt),ft=!0,at=!0,ne||(ne=mt.remoteAddress),fe=mt.remotePort,ze(),ct()}),st.on("error",function(mt){(mt.name==="Error"||mt.name==="TypeError")&&(mt.name=ft?"ResponseError":"RequestError"),mt.message+=' (req "error")',re("Request#%d %s `req error` event emit, %s: %s",Oe,Be,mt.name,mt.message),ve(Qe||mt)}),Ge&&Ge.once("error",function(mt){mt.message+=' (writeStream "error")',Qe=mt,re("Request#%d %s `writeStream error` event emit, %s: %s",Oe,Be,mt.name,mt.message),At()}),Ae.stream?(Ae.stream.pipe(st),Ae.stream.once("error",function(mt){mt.message+=' (stream "error")',Qe=mt,re("Request#%d %s `readStream error` event emit, %s: %s",Oe,Be,mt.name,mt.message),At()})):st.end(tt),st.requestId=Oe,st}}).call(this)}).call(this,y("_process"),y("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)})})(window)},9981:function(In,Yt){"use strict";const Te=function(){const te=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Ot=1;Ot<arguments.length;Ot++){const y=Ot<0||arguments.length<=Ot?void 0:arguments[Ot];y&&Object.keys(y).forEach(je=>{const be=y[je];be!==void 0&&(te[je]=be)})}return te};Yt.Z=Te},86013:function(In,Yt,Te){"use strict";var te=Te(59301),Ot=Te(19248);const y=je=>{let be;return typeof je=="object"&&(je!=null&&je.clearIcon)?be=je:je&&(be={clearIcon:te.createElement(Ot.Z,null)}),be};Yt.Z=y},97224:function(In,Yt,Te){"use strict";Te.d(Yt,{F:function(){return te}});function te(y){return y!=null&&y===y.window}const Ot=y=>{var je,be;if(typeof window=="undefined")return 0;let z=0;return te(y)?z=y.pageYOffset:y instanceof Document?z=y.documentElement.scrollTop:(y instanceof HTMLElement||y)&&(z=y.scrollTop),y&&!te(y)&&typeof z!="number"&&(z=(be=((je=y.ownerDocument)!==null&&je!==void 0?je:y).documentElement)===null||be===void 0?void 0:be.scrollTop),z};Yt.Z=Ot},83010:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return je}});var te=Te(16089);function Ot(be,z,E,ie){const oe=E-z;return be/=ie/2,be<1?oe/2*be*be*be+z:oe/2*((be-=2)*be*be+2)+z}var y=Te(97224);function je(be){let z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:E=()=>window,callback:ie,duration:oe=450}=z,ee=E(),ce=(0,y.Z)(ee),x=Date.now(),ae=()=>{const se=Date.now()-x,ue=Ot(se>oe?oe:se,ce,be,oe);(0,y.F)(ee)?ee.scrollTo(window.pageXOffset,ue):ee instanceof Document||ee.constructor.name==="HTMLDocument"?ee.documentElement.scrollTop=ue:ee.scrollTop=ue,se<oe?(0,te.Z)(ae):typeof ie=="function"&&ie()};(0,te.Z)(ae)}},91882:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Ze}});var te=Te(59301),Ot=Te(92310),y=Te.n(Ot),je=Te(11592),be=Te(26112),z=Te(22703),E=Te(48755),ie=Te(84105),oe=Te(19563);const ee=We=>{let{children:nt}=We;const{getPrefixCls:_e}=te.useContext(E.E_),Ue=_e("breadcrumb");return te.createElement("li",{className:`${Ue}-separator`,"aria-hidden":"true"},nt===""?nt:nt||"/")};ee.__ANT_BREADCRUMB_SEPARATOR=!0;var ce=ee,x=function(We,nt){var _e={};for(var Ue in We)Object.prototype.hasOwnProperty.call(We,Ue)&&nt.indexOf(Ue)<0&&(_e[Ue]=We[Ue]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ue=Object.getOwnPropertySymbols(We);tt<Ue.length;tt++)nt.indexOf(Ue[tt])<0&&Object.prototype.propertyIsEnumerable.call(We,Ue[tt])&&(_e[Ue[tt]]=We[Ue[tt]]);return _e};function ae(We,nt){if(We.title===void 0||We.title===null)return null;const _e=Object.keys(nt).join("|");return typeof We.title=="object"?We.title:String(We.title).replace(new RegExp(`:(${_e})`,"g"),(Ue,tt)=>nt[tt]||Ue)}function re(We,nt,_e,Ue){if(_e==null)return null;const{className:tt,onClick:rt}=nt,et=x(nt,["className","onClick"]),Ke=Object.assign(Object.assign({},(0,be.Z)(et,{data:!0,aria:!0})),{onClick:rt});return Ue!==void 0?te.createElement("a",Object.assign({},Ke,{className:y()(`${We}-link`,tt),href:Ue}),_e):te.createElement("span",Object.assign({},Ke,{className:y()(`${We}-link`,tt)}),_e)}function se(We,nt){return(Ue,tt,rt,et,Ke)=>{if(nt)return nt(Ue,tt,rt,et);const Ye=ae(Ue,tt);return re(We,Ue,Ye,Ke)}}var ue=function(We,nt){var _e={};for(var Ue in We)Object.prototype.hasOwnProperty.call(We,Ue)&&nt.indexOf(Ue)<0&&(_e[Ue]=We[Ue]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ue=Object.getOwnPropertySymbols(We);tt<Ue.length;tt++)nt.indexOf(Ue[tt])<0&&Object.prototype.propertyIsEnumerable.call(We,Ue[tt])&&(_e[Ue[tt]]=We[Ue[tt]]);return _e};const pe=We=>{const{prefixCls:nt,separator:_e="/",children:Ue,menu:tt,overlay:rt,dropdownProps:et,href:Ke}=We,Xe=(ot=>{if(tt||rt){const Qe=Object.assign({},et);if(tt){const ft=tt||{},{items:at}=ft,qe=ue(ft,["items"]);Qe.menu=Object.assign(Object.assign({},qe),{items:at==null?void 0:at.map((Fe,Re)=>{var{key:ne,title:fe,label:Me,path:ze}=Fe,we=ue(Fe,["key","title","label","path"]);let ve=Me!=null?Me:fe;return ze&&(ve=te.createElement("a",{href:`${Ke}${ze}`},ve)),Object.assign(Object.assign({},we),{key:ne!=null?ne:Re,label:ve})})})}else rt&&(Qe.overlay=rt);return te.createElement(oe.Z,Object.assign({placement:"bottom"},Qe),te.createElement("span",{className:`${nt}-overlay-link`},ot,te.createElement(ie.Z,null)))}return ot})(Ue);return Xe!=null?te.createElement(te.Fragment,null,te.createElement("li",null,Xe),_e&&te.createElement(ce,null,_e)):null},he=We=>{const{prefixCls:nt,children:_e,href:Ue}=We,tt=ue(We,["prefixCls","children","href"]),{getPrefixCls:rt}=te.useContext(E.E_),et=rt("breadcrumb",nt);return te.createElement(pe,Object.assign({},tt,{prefixCls:et}),re(et,tt,_e,Ue))};he.__ANT_BREADCRUMB_ITEM=!0;var ye=he,ge=Te(36237),xe=Te(63356),ke=Te(16931),De=Te(51636);const Be=We=>{const{componentCls:nt,iconCls:_e,calc:Ue}=We;return{[nt]:Object.assign(Object.assign({},(0,xe.Wf)(We)),{color:We.itemColor,fontSize:We.fontSize,[_e]:{fontSize:We.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:We.linkColor,transition:`color ${We.motionDurationMid}`,padding:`0 ${(0,ge.unit)(We.paddingXXS)}`,borderRadius:We.borderRadiusSM,height:We.fontHeight,display:"inline-block",marginInline:Ue(We.marginXXS).mul(-1).equal(),"&:hover":{color:We.linkHoverColor,backgroundColor:We.colorBgTextHover}},(0,xe.Qy)(We)),"li:last-child":{color:We.lastItemColor},[`${nt}-separator`]:{marginInline:We.separatorMargin,color:We.separatorColor},[`${nt}-link`]:{[`
> ${_e} + span,
> ${_e} + a
`]:{marginInlineStart:We.marginXXS}},[`${nt}-overlay-link`]:{borderRadius:We.borderRadiusSM,height:We.fontHeight,display:"inline-block",padding:`0 ${(0,ge.unit)(We.paddingXXS)}`,marginInline:Ue(We.marginXXS).mul(-1).equal(),[`> ${_e}`]:{marginInlineStart:We.marginXXS,fontSize:We.fontSizeIcon},"&:hover":{color:We.linkHoverColor,backgroundColor:We.colorBgTextHover,a:{color:We.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${We.componentCls}-rtl`]:{direction:"rtl"}})}},Ae=We=>({itemColor:We.colorTextDescription,lastItemColor:We.colorText,iconFontSize:We.fontSize,linkColor:We.colorTextDescription,linkHoverColor:We.colorText,separatorColor:We.colorTextDescription,separatorMargin:We.marginXS});var Se=(0,ke.I$)("Breadcrumb",We=>{const nt=(0,De.mergeToken)(We,{});return Be(nt)},Ae),Ee=function(We,nt){var _e={};for(var Ue in We)Object.prototype.hasOwnProperty.call(We,Ue)&&nt.indexOf(Ue)<0&&(_e[Ue]=We[Ue]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ue=Object.getOwnPropertySymbols(We);tt<Ue.length;tt++)nt.indexOf(Ue[tt])<0&&Object.prototype.propertyIsEnumerable.call(We,Ue[tt])&&(_e[Ue[tt]]=We[Ue[tt]]);return _e};function Oe(We){const{breadcrumbName:nt,children:_e}=We,Ue=Ee(We,["breadcrumbName","children"]),tt=Object.assign({title:nt},Ue);return _e&&(tt.menu={items:_e.map(rt=>{var{breadcrumbName:et}=rt,Ke=Ee(rt,["breadcrumbName"]);return Object.assign(Object.assign({},Ke),{title:et})})}),tt}function Pe(We,nt){return(0,te.useMemo)(()=>We||(nt?nt.map(Oe):null),[We,nt])}var Le=function(We,nt){var _e={};for(var Ue in We)Object.prototype.hasOwnProperty.call(We,Ue)&&nt.indexOf(Ue)<0&&(_e[Ue]=We[Ue]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ue=Object.getOwnPropertySymbols(We);tt<Ue.length;tt++)nt.indexOf(Ue[tt])<0&&Object.prototype.propertyIsEnumerable.call(We,Ue[tt])&&(_e[Ue[tt]]=We[Ue[tt]]);return _e};const Ne=(We,nt)=>{if(nt===void 0)return nt;let _e=(nt||"").replace(/^\//,"");return Object.keys(We).forEach(Ue=>{_e=_e.replace(`:${Ue}`,We[Ue])}),_e},me=We=>{const{prefixCls:nt,separator:_e="/",style:Ue,className:tt,rootClassName:rt,routes:et,items:Ke,children:Ye,itemRender:Xe,params:ot={}}=We,Qe=Le(We,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:ft,direction:at,breadcrumb:qe}=te.useContext(E.E_);let Fe;const Re=ft("breadcrumb",nt),[ne,fe,Me]=Se(Re),ze=Pe(Ke,et),we=se(Re,Xe);if(ze&&ze.length>0){const $e=[],Ge=Ke||et;Fe=ze.map((Je,ut)=>{const{path:lt,key:vt,type:ct,menu:st,overlay:At,onClick:mt,className:Dt,separator:jt,dropdownProps:Et}=Je,kt=Ne(ot,lt);kt!==void 0&&$e.push(kt);const Nt=vt!=null?vt:ut;if(ct==="separator")return te.createElement(ce,{key:Nt},jt);const yt={},Pt=ut===ze.length-1;st?yt.menu=st:At&&(yt.overlay=At);let{href:Kt}=Je;return $e.length&&kt!==void 0&&(Kt=`#/${$e.join("/")}`),te.createElement(pe,Object.assign({key:Nt},yt,(0,be.Z)(Je,{data:!0,aria:!0}),{className:Dt,dropdownProps:Et,href:Kt,separator:Pt?"":_e,onClick:mt,prefixCls:Re}),we(Je,ot,Ge,$e,Kt))})}else if(Ye){const $e=(0,je.Z)(Ye).length;Fe=(0,je.Z)(Ye).map((Ge,Je)=>{if(!Ge)return Ge;const ut=Je===$e-1;return(0,z.Tm)(Ge,{separator:ut?"":_e,key:Je})})}const ve=y()(Re,qe==null?void 0:qe.className,{[`${Re}-rtl`]:at==="rtl"},tt,rt,fe,Me),Ie=Object.assign(Object.assign({},qe==null?void 0:qe.style),Ue);return ne(te.createElement("nav",Object.assign({className:ve,style:Ie},Qe),te.createElement("ol",null,Fe)))};me.Item=ye,me.Separator=ce;var Ve=me,Ze=Ve},62673:function(In,Yt,Te){"use strict";Te.d(Yt,{default:function(){return Se}});var te=Te(59301),Ot=Te(92310),y=Te.n(Ot),je=Te(16632),be=Te(8654),z=Te(12919),E=Te(63872),ie=Te(48755),oe=Te(2171),ee=Te(83397),ce=Te(56553),ae=te.createContext(null),re=Te(36170),se=Te(74632),ue=function(Ee,Oe){var Pe={};for(var Le in Ee)Object.prototype.hasOwnProperty.call(Ee,Le)&&Oe.indexOf(Le)<0&&(Pe[Le]=Ee[Le]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Le=Object.getOwnPropertySymbols(Ee);Ne<Le.length;Ne++)Oe.indexOf(Le[Ne])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Le[Ne])&&(Pe[Le[Ne]]=Ee[Le[Ne]]);return Pe};const pe=(Ee,Oe)=>{var Pe;const{prefixCls:Le,className:Ne,rootClassName:me,children:Ve,indeterminate:Ze=!1,style:We,onMouseEnter:nt,onMouseLeave:_e,skipGroup:Ue=!1,disabled:tt}=Ee,rt=ue(Ee,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:et,direction:Ke,checkbox:Ye}=te.useContext(ie.E_),Xe=te.useContext(ae),{isFormItemInput:ot}=te.useContext(ce.aM),Qe=te.useContext(oe.Z),ft=(Pe=(Xe==null?void 0:Xe.disabled)||tt)!==null&&Pe!==void 0?Pe:Qe,at=te.useRef(rt.value),qe=te.useRef(null),Fe=(0,be.sQ)(Oe,qe);te.useEffect(()=>{Xe==null||Xe.registerValue(rt.value)},[]),te.useEffect(()=>{if(!Ue)return rt.value!==at.current&&(Xe==null||Xe.cancelValue(at.current),Xe==null||Xe.registerValue(rt.value),at.current=rt.value),()=>Xe==null?void 0:Xe.cancelValue(rt.value)},[rt.value]),te.useEffect(()=>{var Je;!((Je=qe.current)===null||Je===void 0)&&Je.input&&(qe.current.input.indeterminate=Ze)},[Ze]);const Re=et("checkbox",Le),ne=(0,ee.Z)(Re),[fe,Me,ze]=(0,re.ZP)(Re,ne),we=Object.assign({},rt);Xe&&!Ue&&(we.onChange=function(){rt.onChange&&rt.onChange.apply(rt,arguments),Xe.toggleOption&&Xe.toggleOption({label:Ve,value:rt.value})},we.name=Xe.name,we.checked=Xe.value.includes(rt.value));const ve=y()(`${Re}-wrapper`,{[`${Re}-rtl`]:Ke==="rtl",[`${Re}-wrapper-checked`]:we.checked,[`${Re}-wrapper-disabled`]:ft,[`${Re}-wrapper-in-form-item`]:ot},Ye==null?void 0:Ye.className,Ne,me,ze,ne,Me),Ie=y()({[`${Re}-indeterminate`]:Ze},E.A,Me),[$e,Ge]=(0,se.Z)(we.onClick);return fe(te.createElement(z.Z,{component:"Checkbox",disabled:ft},te.createElement("label",{className:ve,style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),We),onMouseEnter:nt,onMouseLeave:_e,onClick:$e},te.createElement(je.Z,Object.assign({},we,{onClick:Ge,prefixCls:Re,className:Ie,disabled:ft,ref:Fe})),Ve!==void 0&&te.createElement("span",{className:`${Re}-label`},Ve))))};var ye=te.forwardRef(pe),ge=Te(94480),xe=Te(2738),ke=function(Ee,Oe){var Pe={};for(var Le in Ee)Object.prototype.hasOwnProperty.call(Ee,Le)&&Oe.indexOf(Le)<0&&(Pe[Le]=Ee[Le]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Le=Object.getOwnPropertySymbols(Ee);Ne<Le.length;Ne++)Oe.indexOf(Le[Ne])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Le[Ne])&&(Pe[Le[Ne]]=Ee[Le[Ne]]);return Pe},Be=te.forwardRef((Ee,Oe)=>{const{defaultValue:Pe,children:Le,options:Ne=[],prefixCls:me,className:Ve,rootClassName:Ze,style:We,onChange:nt}=Ee,_e=ke(Ee,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ue,direction:tt}=te.useContext(ie.E_),[rt,et]=te.useState(_e.value||Pe||[]),[Ke,Ye]=te.useState([]);te.useEffect(()=>{"value"in _e&&et(_e.value||[])},[_e.value]);const Xe=te.useMemo(()=>Ne.map(Ie=>typeof Ie=="string"||typeof Ie=="number"?{label:Ie,value:Ie}:Ie),[Ne]),ot=Ie=>{Ye($e=>$e.filter(Ge=>Ge!==Ie))},Qe=Ie=>{Ye($e=>[].concat((0,ge.Z)($e),[Ie]))},ft=Ie=>{const $e=rt.indexOf(Ie.value),Ge=(0,ge.Z)(rt);$e===-1?Ge.push(Ie.value):Ge.splice($e,1),"value"in _e||et(Ge),nt==null||nt(Ge.filter(Je=>Ke.includes(Je)).sort((Je,ut)=>{const lt=Xe.findIndex(ct=>ct.value===Je),vt=Xe.findIndex(ct=>ct.value===ut);return lt-vt}))},at=Ue("checkbox",me),qe=`${at}-group`,Fe=(0,ee.Z)(at),[Re,ne,fe]=(0,re.ZP)(at,Fe),Me=(0,xe.Z)(_e,["value","disabled"]),ze=Ne.length?Xe.map(Ie=>te.createElement(ye,{prefixCls:at,key:Ie.value.toString(),disabled:"disabled"in Ie?Ie.disabled:_e.disabled,value:Ie.value,checked:rt.includes(Ie.value),onChange:Ie.onChange,className:`${qe}-item`,style:Ie.style,title:Ie.title,id:Ie.id,required:Ie.required},Ie.label)):Le,we={toggleOption:ft,value:rt,disabled:_e.disabled,name:_e.name,registerValue:Qe,cancelValue:ot},ve=y()(qe,{[`${qe}-rtl`]:tt==="rtl"},Ve,Ze,fe,Fe,ne);return Re(te.createElement("div",Object.assign({className:ve,style:We},Me,{ref:Oe}),te.createElement(ae.Provider,{value:we},ze)))});const Ae=ye;Ae.Group=Be,Ae.__ANT_CHECKBOX=!0;var Se=Ae},36170:function(In,Yt,Te){"use strict";Te.d(Yt,{C2:function(){return z}});var te=Te(36237),Ot=Te(63356),y=Te(51636),je=Te(16931);const be=E=>{const{checkboxCls:ie}=E,oe=`${ie}-wrapper`;return[{[`${ie}-group`]:Object.assign(Object.assign({},(0,Ot.Wf)(E)),{display:"inline-flex",flexWrap:"wrap",columnGap:E.marginXS,[`> ${E.antCls}-row`]:{flex:1}}),[oe]:Object.assign(Object.assign({},(0,Ot.Wf)(E)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${oe}`]:{marginInlineStart:0},[`&${oe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ie]:Object.assign(Object.assign({},(0,Ot.Wf)(E)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:E.borderRadiusSM,alignSelf:"center",[`${ie}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ie}-inner`]:Object.assign({},(0,Ot.oN)(E))},[`${ie}-inner`]:{boxSizing:"border-box",display:"block",width:E.checkboxSize,height:E.checkboxSize,direction:"ltr",backgroundColor:E.colorBgContainer,border:`${(0,te.unit)(E.lineWidth)} ${E.lineType} ${E.colorBorder}`,borderRadius:E.borderRadiusSM,borderCollapse:"separate",transition:`all ${E.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:E.calc(E.checkboxSize).div(14).mul(5).equal(),height:E.calc(E.checkboxSize).div(14).mul(8).equal(),border:`${(0,te.unit)(E.lineWidthBold)} solid ${E.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${E.motionDurationFast} ${E.motionEaseInBack}, opacity ${E.motionDurationFast}`}},"& + span":{paddingInlineStart:E.paddingXS,paddingInlineEnd:E.paddingXS}})},{[`
${oe}:not(${oe}-disabled),
${ie}:not(${ie}-disabled)
`]:{[`&:hover ${ie}-inner`]:{borderColor:E.colorPrimary}},[`${oe}:not(${oe}-disabled)`]:{[`&:hover ${ie}-checked:not(${ie}-disabled) ${ie}-inner`]:{backgroundColor:E.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ie}-checked:not(${ie}-disabled):after`]:{borderColor:E.colorPrimaryHover}}},{[`${ie}-checked`]:{[`${ie}-inner`]:{backgroundColor:E.colorPrimary,borderColor:E.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${E.motionDurationMid} ${E.motionEaseOutBack} ${E.motionDurationFast}`}}},[`
${oe}-checked:not(${oe}-disabled),
${ie}-checked:not(${ie}-disabled)
`]:{[`&:hover ${ie}-inner`]:{backgroundColor:E.colorPrimaryHover,borderColor:"transparent"}}},{[ie]:{"&-indeterminate":{[`${ie}-inner`]:{backgroundColor:`${E.colorBgContainer} !important`,borderColor:`${E.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:E.calc(E.fontSizeLG).div(2).equal(),height:E.calc(E.fontSizeLG).div(2).equal(),backgroundColor:E.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${ie}-inner`]:{backgroundColor:`${E.colorBgContainer} !important`,borderColor:`${E.colorPrimary} !important`}}}},{[`${oe}-disabled`]:{cursor:"not-allowed"},[`${ie}-disabled`]:{[`&, ${ie}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ie}-inner`]:{background:E.colorBgContainerDisabled,borderColor:E.colorBorder,"&:after":{borderColor:E.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:E.colorTextDisabled},[`&${ie}-indeterminate ${ie}-inner::after`]:{background:E.colorTextDisabled}}}]};function z(E,ie){const oe=(0,y.mergeToken)(ie,{checkboxCls:`.${E}`,checkboxSize:ie.controlInteractiveSize});return[be(oe)]}Yt.ZP=(0,je.I$)("Checkbox",(E,ie)=>{let{prefixCls:oe}=ie;return[z(oe,E)]})},38406:function(In,Yt,Te){"use strict";var te=Te(59301),Ot=Te(48755),y=Te(584);const je=be=>{const{componentName:z}=be,{getPrefixCls:E}=(0,te.useContext)(Ot.E_),ie=E("empty");switch(z){case"Table":case"List":return te.createElement(y.Z,{image:y.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return te.createElement(y.Z,{image:y.Z.PRESENTED_IMAGE_SIMPLE,className:`${ie}-small`});case"Table.filter":return null;default:return te.createElement(y.Z,null)}};Yt.Z=je},36207:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return $e}});var te=Te(59301),Ot=Te(92310),y=Te.n(Ot),je=Te(33885),be=Te(42978),z=Te(43403),E=Te(34280),ie=te.createContext(null),oe=te.createContext({}),ee=ie,ce=Te(20068),x=Te(54476),ae=Te(77900),re=Te(10228),se=Te(26112),ue=Te(75931),pe=Te(8654),he=["prefixCls","className","containerRef"],ye=function(Je){var ut=Je.prefixCls,lt=Je.className,vt=Je.containerRef,ct=(0,ue.Z)(Je,he),st=te.useContext(oe),At=st.panel,mt=(0,pe.x1)(At,vt);return te.createElement("div",(0,x.Z)({className:y()("".concat(ut,"-content"),lt),role:"dialog",ref:mt},(0,se.Z)(Je,{aria:!0}),{"aria-modal":"true"},ct))},ge=ye,xe=Te(48736);function ke(Ge){return typeof Ge=="string"&&String(Number(Ge))===Ge?((0,xe.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ge)):Ge}function De(Ge){warning(!("wrapperClassName"in Ge),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ge.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Be={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ae(Ge,Je){var ut,lt,vt,ct=Ge.prefixCls,st=Ge.open,At=Ge.placement,mt=Ge.inline,Dt=Ge.push,jt=Ge.forceRender,Et=Ge.autoFocus,kt=Ge.keyboard,Nt=Ge.classNames,yt=Ge.rootClassName,Pt=Ge.rootStyle,Kt=Ge.zIndex,nn=Ge.className,xt=Ge.id,Ct=Ge.style,zt=Ge.motion,en=Ge.width,un=Ge.height,Cn=Ge.children,Nn=Ge.mask,_n=Ge.maskClosable,yn=Ge.maskMotion,Rn=Ge.maskClassName,pn=Ge.maskStyle,on=Ge.afterOpenChange,Vt=Ge.onClose,Wt=Ge.onMouseEnter,Ht=Ge.onMouseOver,hn=Ge.onMouseLeave,cn=Ge.onClick,mn=Ge.onKeyDown,Bn=Ge.onKeyUp,Pn=Ge.styles,gn=Ge.drawerRender,Ln=te.useRef(),Kn=te.useRef(),sr=te.useRef();te.useImperativeHandle(Je,function(){return Ln.current});var nr=function($t){var Zt=$t.keyCode,Xt=$t.shiftKey;switch(Zt){case re.Z.TAB:{if(Zt===re.Z.TAB){if(!Xt&&document.activeElement===sr.current){var Tn;(Tn=Kn.current)===null||Tn===void 0||Tn.focus({preventScroll:!0})}else if(Xt&&document.activeElement===Kn.current){var On;(On=sr.current)===null||On===void 0||On.focus({preventScroll:!0})}}break}case re.Z.ESC:{Vt&&kt&&($t.stopPropagation(),Vt($t));break}}};te.useEffect(function(){if(st&&Et){var Ft;(Ft=Ln.current)===null||Ft===void 0||Ft.focus({preventScroll:!0})}},[st]);var ln=te.useState(!1),rn=(0,be.Z)(ln,2),Wn=rn[0],Zn=rn[1],Mt=te.useContext(ee),Gt;typeof Dt=="boolean"?Gt=Dt?{}:{distance:0}:Gt=Dt||{};var St=(ut=(lt=(vt=Gt)===null||vt===void 0?void 0:vt.distance)!==null&&lt!==void 0?lt:Mt==null?void 0:Mt.pushDistance)!==null&&ut!==void 0?ut:180,Rt=te.useMemo(function(){return{pushDistance:St,push:function(){Zn(!0)},pull:function(){Zn(!1)}}},[St]);te.useEffect(function(){if(st){var Ft;Mt==null||(Ft=Mt.push)===null||Ft===void 0||Ft.call(Mt)}else{var $t;Mt==null||($t=Mt.pull)===null||$t===void 0||$t.call(Mt)}},[st]),te.useEffect(function(){return function(){var Ft;Mt==null||(Ft=Mt.pull)===null||Ft===void 0||Ft.call(Mt)}},[]);var Tt=Nn&&te.createElement(ae.default,(0,x.Z)({key:"mask"},yn,{visible:st}),function(Ft,$t){var Zt=Ft.className,Xt=Ft.style;return te.createElement("div",{className:y()("".concat(ct,"-mask"),Zt,Nt==null?void 0:Nt.mask,Rn),style:(0,je.Z)((0,je.Z)((0,je.Z)({},Xt),pn),Pn==null?void 0:Pn.mask),onClick:_n&&st?Vt:void 0,ref:$t})}),_t=typeof zt=="function"?zt(At):zt,bt={};if(Wn&&St)switch(At){case"top":bt.transform="translateY(".concat(St,"px)");break;case"bottom":bt.transform="translateY(".concat(-St,"px)");break;case"left":bt.transform="translateX(".concat(St,"px)");break;default:bt.transform="translateX(".concat(-St,"px)");break}At==="left"||At==="right"?bt.width=ke(en):bt.height=ke(un);var Ut={onMouseEnter:Wt,onMouseOver:Ht,onMouseLeave:hn,onClick:cn,onKeyDown:mn,onKeyUp:Bn},Lt=te.createElement(ae.default,(0,x.Z)({key:"panel"},_t,{visible:st,forceRender:jt,onVisibleChanged:function($t){on==null||on($t)},removeOnLeave:!1,leavedClassName:"".concat(ct,"-content-wrapper-hidden")}),function(Ft,$t){var Zt=Ft.className,Xt=Ft.style,Tn=te.createElement(ge,(0,x.Z)({id:xt,containerRef:$t,prefixCls:ct,className:y()(nn,Nt==null?void 0:Nt.content),style:(0,je.Z)((0,je.Z)({},Ct),Pn==null?void 0:Pn.content)},(0,se.Z)(Ge,{aria:!0}),Ut),Cn);return te.createElement("div",(0,x.Z)({className:y()("".concat(ct,"-content-wrapper"),Nt==null?void 0:Nt.wrapper,Zt),style:(0,je.Z)((0,je.Z)((0,je.Z)({},bt),Xt),Pn==null?void 0:Pn.wrapper)},(0,se.Z)(Ge,{data:!0})),gn?gn(Tn):Tn)}),qt=(0,je.Z)({},Pt);return Kt&&(qt.zIndex=Kt),te.createElement(ee.Provider,{value:Rt},te.createElement("div",{className:y()(ct,"".concat(ct,"-").concat(At),yt,(0,ce.Z)((0,ce.Z)({},"".concat(ct,"-open"),st),"".concat(ct,"-inline"),mt)),style:qt,tabIndex:-1,ref:Ln,onKeyDown:nr},Tt,te.createElement("div",{tabIndex:0,ref:Kn,style:Be,"aria-hidden":"true","data-sentinel":"start"}),Lt,te.createElement("div",{tabIndex:0,ref:sr,style:Be,"aria-hidden":"true","data-sentinel":"end"})))}var Se=te.forwardRef(Ae),Ee=Se,Oe=function(Je){var ut=Je.open,lt=ut===void 0?!1:ut,vt=Je.prefixCls,ct=vt===void 0?"rc-drawer":vt,st=Je.placement,At=st===void 0?"right":st,mt=Je.autoFocus,Dt=mt===void 0?!0:mt,jt=Je.keyboard,Et=jt===void 0?!0:jt,kt=Je.width,Nt=kt===void 0?378:kt,yt=Je.mask,Pt=yt===void 0?!0:yt,Kt=Je.maskClosable,nn=Kt===void 0?!0:Kt,xt=Je.getContainer,Ct=Je.forceRender,zt=Je.afterOpenChange,en=Je.destroyOnClose,un=Je.onMouseEnter,Cn=Je.onMouseOver,Nn=Je.onMouseLeave,_n=Je.onClick,yn=Je.onKeyDown,Rn=Je.onKeyUp,pn=Je.panelRef,on=te.useState(!1),Vt=(0,be.Z)(on,2),Wt=Vt[0],Ht=Vt[1],hn=te.useState(!1),cn=(0,be.Z)(hn,2),mn=cn[0],Bn=cn[1];(0,E.Z)(function(){Bn(!0)},[]);var Pn=mn?lt:!1,gn=te.useRef(),Ln=te.useRef();(0,E.Z)(function(){Pn&&(Ln.current=document.activeElement)},[Pn]);var Kn=function(Wn){var Zn;if(Ht(Wn),zt==null||zt(Wn),!Wn&&Ln.current&&!((Zn=gn.current)!==null&&Zn!==void 0&&Zn.contains(Ln.current))){var Mt;(Mt=Ln.current)===null||Mt===void 0||Mt.focus({preventScroll:!0})}},sr=te.useMemo(function(){return{panel:pn}},[pn]);if(!Ct&&!Wt&&!Pn&&en)return null;var nr={onMouseEnter:un,onMouseOver:Cn,onMouseLeave:Nn,onClick:_n,onKeyDown:yn,onKeyUp:Rn},ln=(0,je.Z)((0,je.Z)({},Je),{},{open:Pn,prefixCls:ct,placement:At,autoFocus:Dt,keyboard:Et,width:Nt,mask:Pt,maskClosable:nn,inline:xt===!1,afterOpenChange:Kn,ref:gn},nr);return te.createElement(oe.Provider,{value:sr},te.createElement(z.Z,{open:Pn||Ct||Wt,autoDestroy:!1,getContainer:xt,autoLock:Pt&&(Pn||Wt)},te.createElement(Ee,ln)))},Pe=Oe,Le=Pe,Ne=Te(62487),me=Te(75030),Ve=Te(86641),Ze=Te(55743),We=Te(48755),nt=Te(91190),_e=Te(78776),Ue=Te(458),rt=Ge=>{var Je,ut;const{prefixCls:lt,title:vt,footer:ct,extra:st,loading:At,onClose:mt,headerStyle:Dt,bodyStyle:jt,footerStyle:Et,children:kt,classNames:Nt,styles:yt}=Ge,Pt=(0,We.dj)("drawer"),Kt=te.useCallback(en=>te.createElement("button",{type:"button",onClick:mt,"aria-label":"Close",className:`${lt}-close`},en),[mt]),[nn,xt]=(0,_e.Z)((0,_e.w)(Ge),(0,_e.w)(Pt),{closable:!0,closeIconRender:Kt}),Ct=te.useMemo(()=>{var en,un;return!vt&&!nn?null:te.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(en=Pt.styles)===null||en===void 0?void 0:en.header),Dt),yt==null?void 0:yt.header),className:y()(`${lt}-header`,{[`${lt}-header-close-only`]:nn&&!vt&&!st},(un=Pt.classNames)===null||un===void 0?void 0:un.header,Nt==null?void 0:Nt.header)},te.createElement("div",{className:`${lt}-header-title`},xt,vt&&te.createElement("div",{className:`${lt}-title`},vt)),st&&te.createElement("div",{className:`${lt}-extra`},st))},[nn,xt,st,Dt,lt,vt]),zt=te.useMemo(()=>{var en,un;if(!ct)return null;const Cn=`${lt}-footer`;return te.createElement("div",{className:y()(Cn,(en=Pt.classNames)===null||en===void 0?void 0:en.footer,Nt==null?void 0:Nt.footer),style:Object.assign(Object.assign(Object.assign({},(un=Pt.styles)===null||un===void 0?void 0:un.footer),Et),yt==null?void 0:yt.footer)},ct)},[ct,Et,lt]);return te.createElement(te.Fragment,null,Ct,te.createElement("div",{className:y()(`${lt}-body`,Nt==null?void 0:Nt.body,(Je=Pt.classNames)===null||Je===void 0?void 0:Je.body),style:Object.assign(Object.assign(Object.assign({},(ut=Pt.styles)===null||ut===void 0?void 0:ut.body),jt),yt==null?void 0:yt.body)},At?te.createElement(Ue.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${lt}-body-skeleton`}):kt),zt)},et=Te(36237),Ke=Te(63356),Ye=Te(16931),Xe=Te(51636);const ot=Ge=>{const Je="100%";return{left:`translateX(-${Je})`,right:`translateX(${Je})`,top:`translateY(-${Je})`,bottom:`translateY(${Je})`}[Ge]},Qe=(Ge,Je)=>({"&-enter, &-appear":Object.assign(Object.assign({},Ge),{"&-active":Je}),"&-leave":Object.assign(Object.assign({},Je),{"&-active":Ge})}),ft=(Ge,Je)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Je}`}}},Qe({opacity:Ge},{opacity:1})),at=(Ge,Je)=>[ft(.7,Je),Qe({transform:ot(Ge)},{transform:"none"})];var Fe=Ge=>{const{componentCls:Je,motionDurationSlow:ut}=Ge;return{[Je]:{[`${Je}-mask-motion`]:ft(0,ut),[`${Je}-panel-motion`]:["left","right","top","bottom"].reduce((lt,vt)=>Object.assign(Object.assign({},lt),{[`&-${vt}`]:at(vt,ut)}),{})}}};const Re=Ge=>{const{borderRadiusSM:Je,componentCls:ut,zIndexPopup:lt,colorBgMask:vt,colorBgElevated:ct,motionDurationSlow:st,motionDurationMid:At,paddingXS:mt,padding:Dt,paddingLG:jt,fontSizeLG:Et,lineHeightLG:kt,lineWidth:Nt,lineType:yt,colorSplit:Pt,marginXS:Kt,colorIcon:nn,colorIconHover:xt,colorBgTextHover:Ct,colorBgTextActive:zt,colorText:en,fontWeightStrong:un,footerPaddingBlock:Cn,footerPaddingInline:Nn,calc:_n}=Ge,yn=`${ut}-content-wrapper`;return{[ut]:{position:"fixed",inset:0,zIndex:lt,pointerEvents:"none",color:en,"&-pure":{position:"relative",background:ct,display:"flex",flexDirection:"column",[`&${ut}-left`]:{boxShadow:Ge.boxShadowDrawerLeft},[`&${ut}-right`]:{boxShadow:Ge.boxShadowDrawerRight},[`&${ut}-top`]:{boxShadow:Ge.boxShadowDrawerUp},[`&${ut}-bottom`]:{boxShadow:Ge.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ut}-mask`]:{position:"absolute",inset:0,zIndex:lt,background:vt,pointerEvents:"auto"},[yn]:{position:"absolute",zIndex:lt,maxWidth:"100vw",transition:`all ${st}`,"&-hidden":{display:"none"}},[`&-left > ${yn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Ge.boxShadowDrawerLeft},[`&-right > ${yn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Ge.boxShadowDrawerRight},[`&-top > ${yn}`]:{top:0,insetInline:0,boxShadow:Ge.boxShadowDrawerUp},[`&-bottom > ${yn}`]:{bottom:0,insetInline:0,boxShadow:Ge.boxShadowDrawerDown},[`${ut}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:ct,pointerEvents:"auto"},[`${ut}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,et.unit)(Dt)} ${(0,et.unit)(jt)}`,fontSize:Et,lineHeight:kt,borderBottom:`${(0,et.unit)(Nt)} ${yt} ${Pt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ut}-extra`]:{flex:"none"},[`${ut}-close`]:Object.assign({display:"inline-flex",width:_n(Et).add(mt).equal(),height:_n(Et).add(mt).equal(),borderRadius:Je,justifyContent:"center",alignItems:"center",marginInlineEnd:Kt,color:nn,fontWeight:un,fontSize:Et,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${At}`,textRendering:"auto","&:hover":{color:xt,backgroundColor:Ct,textDecoration:"none"},"&:active":{backgroundColor:zt}},(0,Ke.Qy)(Ge)),[`${ut}-title`]:{flex:1,margin:0,fontWeight:Ge.fontWeightStrong,fontSize:Et,lineHeight:kt},[`${ut}-body`]:{flex:1,minWidth:0,minHeight:0,padding:jt,overflow:"auto",[`${ut}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${ut}-footer`]:{flexShrink:0,padding:`${(0,et.unit)(Cn)} ${(0,et.unit)(Nn)}`,borderTop:`${(0,et.unit)(Nt)} ${yt} ${Pt}`},"&-rtl":{direction:"rtl"}}}},ne=Ge=>({zIndexPopup:Ge.zIndexPopupBase,footerPaddingBlock:Ge.paddingXS,footerPaddingInline:Ge.padding});var fe=(0,Ye.I$)("Drawer",Ge=>{const Je=(0,Xe.mergeToken)(Ge,{});return[Re(Je),Fe(Je)]},ne),Me=function(Ge,Je){var ut={};for(var lt in Ge)Object.prototype.hasOwnProperty.call(Ge,lt)&&Je.indexOf(lt)<0&&(ut[lt]=Ge[lt]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,lt=Object.getOwnPropertySymbols(Ge);vt<lt.length;vt++)Je.indexOf(lt[vt])<0&&Object.prototype.propertyIsEnumerable.call(Ge,lt[vt])&&(ut[lt[vt]]=Ge[lt[vt]]);return ut};const ze=null,we={distance:180},ve=Ge=>{var Je;const{rootClassName:ut,width:lt,height:vt,size:ct="default",mask:st=!0,push:At=we,open:mt,afterOpenChange:Dt,onClose:jt,prefixCls:Et,getContainer:kt,style:Nt,className:yt,visible:Pt,afterVisibleChange:Kt,maskStyle:nn,drawerStyle:xt,contentWrapperStyle:Ct}=Ge,zt=Me(Ge,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:en,getPrefixCls:un,direction:Cn,className:Nn,style:_n,classNames:yn,styles:Rn}=(0,We.dj)("drawer"),pn=un("drawer",Et),[on,Vt,Wt]=fe(pn),Ht=kt===void 0&&en?()=>en(document.body):kt,hn=y()({"no-mask":!st,[`${pn}-rtl`]:Cn==="rtl"},ut,Vt,Wt),cn=te.useMemo(()=>lt!=null?lt:ct==="large"?736:378,[lt,ct]),mn=te.useMemo(()=>vt!=null?vt:ct==="large"?736:378,[vt,ct]),Bn={motionName:(0,Ve.m)(pn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Pn=ln=>({motionName:(0,Ve.m)(pn,`panel-motion-${ln}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),gn=(0,nt.H)(),[Ln,Kn]=(0,me.Cn)("Drawer",zt.zIndex),{classNames:sr={},styles:nr={}}=zt;return on(te.createElement(Ne.Z,{form:!0,space:!0},te.createElement(Ze.Z.Provider,{value:Kn},te.createElement(Le,Object.assign({prefixCls:pn,onClose:jt,maskMotion:Bn,motion:Pn},zt,{classNames:{mask:y()(sr.mask,yn.mask),content:y()(sr.content,yn.content),wrapper:y()(sr.wrapper,yn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},nr.mask),nn),Rn.mask),content:Object.assign(Object.assign(Object.assign({},nr.content),xt),Rn.content),wrapper:Object.assign(Object.assign(Object.assign({},nr.wrapper),Ct),Rn.wrapper)},open:mt!=null?mt:Pt,mask:st,push:At,width:cn,height:mn,style:Object.assign(Object.assign({},_n),Nt),className:y()(Nn,yt),rootClassName:hn,getContainer:Ht,afterOpenChange:Dt!=null?Dt:Kt,panelRef:gn,zIndex:Ln}),te.createElement(rt,Object.assign({prefixCls:pn},zt,{onClose:jt}))))))},Ie=Ge=>{const{prefixCls:Je,style:ut,className:lt,placement:vt="right"}=Ge,ct=Me(Ge,["prefixCls","style","className","placement"]),{getPrefixCls:st}=te.useContext(We.E_),At=st("drawer",Je),[mt,Dt,jt]=fe(At),Et=y()(At,`${At}-pure`,`${At}-${vt}`,Dt,jt,lt);return mt(te.createElement("div",{className:Et,style:ut},te.createElement(rt,Object.assign({prefixCls:At},ct))))};ve._InternalPanelDoNotUseOrYouWillBeFired=Ie;var $e=ve},19563:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return et}});var te=Te(59301),Ot=Te(33853),y=Te(38819),je=Te(92310),be=Te.n(je),z=Te(96478),E=Te(6089),ie=Te(18929),oe=Te(2738),ee=Te(75030),x=Ke=>typeof Ke!="object"&&typeof Ke!="function"||Ke===null,ae=Te(52838),re=Te(45915),se=Te(22703),ue=Te(32383),pe=Te(55743),he=Te(48755),ye=Te(83397),ge=Te(93041),xe=Te(78857),ke=Te(57700),De=Te(36237),Be=Te(63356),Ae=Te(46e3),Se=Te(93873),Ee=Te(34925),Oe=Te(37645),Pe=Te(36305),Le=Te(16931),Ne=Te(51636),Ve=Ke=>{const{componentCls:Ye,menuCls:Xe,colorError:ot,colorTextLightSolid:Qe}=Ke,ft=`${Xe}-item`;return{[`${Ye}, ${Ye}-menu-submenu`]:{[`${Xe} ${ft}`]:{[`&${ft}-danger:not(${ft}-disabled)`]:{color:ot,"&:hover":{color:Qe,backgroundColor:ot}}}}}};const Ze=Ke=>{const{componentCls:Ye,menuCls:Xe,zIndexPopup:ot,dropdownArrowDistance:Qe,sizePopupArrow:ft,antCls:at,iconCls:qe,motionDurationMid:Fe,paddingBlock:Re,fontSize:ne,dropdownEdgeChildPadding:fe,colorTextDisabled:Me,fontSizeIcon:ze,controlPaddingHorizontal:we,colorBgElevated:ve}=Ke;return[{[Ye]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ot,display:"block","&::before":{position:"absolute",insetBlock:Ke.calc(ft).div(2).sub(Qe).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${at}-btn`]:{[`& > ${qe}-down, & > ${at}-btn-icon > ${qe}-down`]:{fontSize:ze}},[`${Ye}-wrap`]:{position:"relative",[`${at}-btn > ${qe}-down`]:{fontSize:ze},[`${qe}-down::before`]:{transition:`transform ${Fe}`}},[`${Ye}-wrap-open`]:{[`${qe}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${at}-slide-down-enter${at}-slide-down-enter-active${Ye}-placement-bottomLeft,
&${at}-slide-down-appear${at}-slide-down-appear-active${Ye}-placement-bottomLeft,
&${at}-slide-down-enter${at}-slide-down-enter-active${Ye}-placement-bottom,
&${at}-slide-down-appear${at}-slide-down-appear-active${Ye}-placement-bottom,
&${at}-slide-down-enter${at}-slide-down-enter-active${Ye}-placement-bottomRight,
&${at}-slide-down-appear${at}-slide-down-appear-active${Ye}-placement-bottomRight`]:{animationName:Ae.fJ},[`&${at}-slide-up-enter${at}-slide-up-enter-active${Ye}-placement-topLeft,
&${at}-slide-up-appear${at}-slide-up-appear-active${Ye}-placement-topLeft,
&${at}-slide-up-enter${at}-slide-up-enter-active${Ye}-placement-top,
&${at}-slide-up-appear${at}-slide-up-appear-active${Ye}-placement-top,
&${at}-slide-up-enter${at}-slide-up-enter-active${Ye}-placement-topRight,
&${at}-slide-up-appear${at}-slide-up-appear-active${Ye}-placement-topRight`]:{animationName:Ae.Qt},[`&${at}-slide-down-leave${at}-slide-down-leave-active${Ye}-placement-bottomLeft,
&${at}-slide-down-leave${at}-slide-down-leave-active${Ye}-placement-bottom,
&${at}-slide-down-leave${at}-slide-down-leave-active${Ye}-placement-bottomRight`]:{animationName:Ae.Uw},[`&${at}-slide-up-leave${at}-slide-up-leave-active${Ye}-placement-topLeft,
&${at}-slide-up-leave${at}-slide-up-leave-active${Ye}-placement-top,
&${at}-slide-up-leave${at}-slide-up-leave-active${Ye}-placement-topRight`]:{animationName:Ae.ly}}},(0,Oe.ZP)(Ke,ve,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Ye} ${Xe}`]:{position:"relative",margin:0},[`${Xe}-submenu-popup`]:{position:"absolute",zIndex:ot,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ye}, ${Ye}-menu-submenu`]:Object.assign(Object.assign({},(0,Be.Wf)(Ke)),{[Xe]:Object.assign(Object.assign({padding:fe,listStyleType:"none",backgroundColor:ve,backgroundClip:"padding-box",borderRadius:Ke.borderRadiusLG,outline:"none",boxShadow:Ke.boxShadowSecondary},(0,Be.Qy)(Ke)),{"&:empty":{padding:0,boxShadow:"none"},[`${Xe}-item-group-title`]:{padding:`${(0,De.unit)(Re)} ${(0,De.unit)(we)}`,color:Ke.colorTextDescription,transition:`all ${Fe}`},[`${Xe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Xe}-item-icon`]:{minWidth:ne,marginInlineEnd:Ke.marginXS,fontSize:Ke.fontSizeSM},[`${Xe}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${Fe}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Xe}-item-extra`]:{paddingInlineStart:Ke.padding,marginInlineStart:"auto",fontSize:Ke.fontSizeSM,color:Ke.colorTextDescription}},[`${Xe}-item, ${Xe}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,De.unit)(Re)} ${(0,De.unit)(we)}`,color:Ke.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Ke.lineHeight,cursor:"pointer",transition:`all ${Fe}`,borderRadius:Ke.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ke.controlItemBgHover}},(0,Be.Qy)(Ke)),{"&-selected":{color:Ke.colorPrimary,backgroundColor:Ke.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ke.controlItemBgActiveHover}},"&-disabled":{color:Me,cursor:"not-allowed","&:hover":{color:Me,backgroundColor:ve,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,De.unit)(Ke.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ke.colorSplit},[`${Ye}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ke.paddingXS,[`${Ye}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ke.colorTextDescription,fontSize:ze,fontStyle:"normal"}}}),[`${Xe}-item-group-list`]:{margin:`0 ${(0,De.unit)(Ke.marginXS)}`,padding:0,listStyle:"none"},[`${Xe}-submenu-title`]:{paddingInlineEnd:Ke.calc(we).add(Ke.fontSizeSM).equal()},[`${Xe}-submenu-vertical`]:{position:"relative"},[`${Xe}-submenu${Xe}-submenu-disabled ${Ye}-menu-submenu-title`]:{[`&, ${Ye}-menu-submenu-arrow-icon`]:{color:Me,backgroundColor:ve,cursor:"not-allowed"}},[`${Xe}-submenu-selected ${Ye}-menu-submenu-title`]:{color:Ke.colorPrimary}})})},[(0,Ae.oN)(Ke,"slide-up"),(0,Ae.oN)(Ke,"slide-down"),(0,Se.Fm)(Ke,"move-up"),(0,Se.Fm)(Ke,"move-down"),(0,Ee._y)(Ke,"zoom-big")]]},We=Ke=>Object.assign(Object.assign({zIndexPopup:Ke.zIndexPopupBase+50,paddingBlock:(Ke.controlHeight-Ke.fontSize*Ke.lineHeight)/2},(0,Oe.wZ)({contentRadius:Ke.borderRadiusLG,limitVerticalRadius:!0})),(0,Pe.w)(Ke));var nt=(0,Le.I$)("Dropdown",Ke=>{const{marginXXS:Ye,sizePopupArrow:Xe,paddingXXS:ot,componentCls:Qe}=Ke,ft=(0,Ne.mergeToken)(Ke,{menuCls:`${Qe}-menu`,dropdownArrowDistance:Ke.calc(Xe).div(2).add(Ye).equal(),dropdownEdgeChildPadding:ot});return[Ze(ft),Ve(ft)]},We,{resetStyle:!1});const _e=null,Ue=Ke=>{var Ye;const{menu:Xe,arrow:ot,prefixCls:Qe,children:ft,trigger:at,disabled:qe,dropdownRender:Fe,getPopupContainer:Re,overlayClassName:ne,rootClassName:fe,overlayStyle:Me,open:ze,onOpenChange:we,visible:ve,onVisibleChange:Ie,mouseEnterDelay:$e=.15,mouseLeaveDelay:Ge=.1,autoAdjustOverflow:Je=!0,placement:ut="",overlay:lt,transitionName:vt}=Ke,{getPopupContainer:ct,getPrefixCls:st,direction:At,dropdown:mt}=te.useContext(he.E_),Dt=(0,ue.ln)("Dropdown"),jt=te.useMemo(()=>{const Ht=st();return vt!==void 0?vt:ut.includes("top")?`${Ht}-slide-down`:`${Ht}-slide-up`},[st,ut,vt]),Et=te.useMemo(()=>ut?ut.includes("Center")?ut.slice(0,ut.indexOf("Center")):ut:At==="rtl"?"bottomRight":"bottomLeft",[ut,At]),kt=st("dropdown",Qe),Nt=(0,ye.Z)(kt),[yt,Pt,Kt]=nt(kt,Nt),[,nn]=(0,ke.ZP)(),xt=te.Children.only(x(ft)?te.createElement("span",null,ft):ft),Ct=(0,se.Tm)(xt,{className:be()(`${kt}-trigger`,{[`${kt}-rtl`]:At==="rtl"},xt.props.className),disabled:(Ye=xt.props.disabled)!==null&&Ye!==void 0?Ye:qe}),zt=qe?[]:at,en=!!(zt!=null&&zt.includes("contextMenu")),[un,Cn]=(0,ie.Z)(!1,{value:ze!=null?ze:ve}),Nn=(0,E.Z)(Ht=>{we==null||we(Ht,{source:"trigger"}),Ie==null||Ie(Ht),Cn(Ht)}),_n=be()(ne,fe,Pt,Kt,Nt,mt==null?void 0:mt.className,{[`${kt}-rtl`]:At==="rtl"}),yn=(0,ae.Z)({arrowPointAtCenter:typeof ot=="object"&&ot.pointAtCenter,autoAdjustOverflow:Je,offset:nn.marginXXS,arrowWidth:ot?nn.sizePopupArrow:0,borderRadius:nn.borderRadius}),Rn=te.useCallback(()=>{Xe!=null&&Xe.selectable&&(Xe!=null&&Xe.multiple)||(we==null||we(!1,{source:"menu"}),Cn(!1))},[Xe==null?void 0:Xe.selectable,Xe==null?void 0:Xe.multiple]),pn=()=>{let Ht;return Xe!=null&&Xe.items?Ht=te.createElement(ge.default,Object.assign({},Xe)):typeof lt=="function"?Ht=lt():Ht=lt,Fe&&(Ht=Fe(Ht)),Ht=te.Children.only(typeof Ht=="string"?te.createElement("span",null,Ht):Ht),te.createElement(xe.J,{prefixCls:`${kt}-menu`,rootClassName:be()(Kt,Nt),expandIcon:te.createElement("span",{className:`${kt}-menu-submenu-arrow`},At==="rtl"?te.createElement(Ot.Z,{className:`${kt}-menu-submenu-arrow-icon`}):te.createElement(y.Z,{className:`${kt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Rn,validator:hn=>{let{mode:cn}=hn}},Ht)},[on,Vt]=(0,ee.Cn)("Dropdown",Me==null?void 0:Me.zIndex);let Wt=te.createElement(z.Z,Object.assign({alignPoint:en},(0,oe.Z)(Ke,["rootClassName"]),{mouseEnterDelay:$e,mouseLeaveDelay:Ge,visible:un,builtinPlacements:yn,arrow:!!ot,overlayClassName:_n,prefixCls:kt,getPopupContainer:Re||ct,transitionName:jt,trigger:zt,overlay:pn,placement:Et,onVisibleChange:Nn,overlayStyle:Object.assign(Object.assign(Object.assign({},mt==null?void 0:mt.style),Me),{zIndex:on})}),Ct);return on&&(Wt=te.createElement(pe.Z.Provider,{value:Vt},Wt)),yt(Wt)},tt=(0,re.Z)(Ue,"align",void 0,"dropdown",Ke=>Ke),rt=Ke=>te.createElement(tt,Object.assign({},Ke),te.createElement("span",null));Ue._InternalPanelDoNotUseOrYouWillBeFired=rt;var et=Ue},75727:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});var te=Te(19563),Ot=Te(59301),y=Te(18785),je=Te(92310),be=Te.n(je),z=Te(7939),E=Te(48755),ie=Te(44104),oe=Te(70045),ee=function(se,ue){var pe={};for(var he in se)Object.prototype.hasOwnProperty.call(se,he)&&ue.indexOf(he)<0&&(pe[he]=se[he]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,he=Object.getOwnPropertySymbols(se);ye<he.length;ye++)ue.indexOf(he[ye])<0&&Object.prototype.propertyIsEnumerable.call(se,he[ye])&&(pe[he[ye]]=se[he[ye]]);return pe};const ce=se=>{const{getPopupContainer:ue,getPrefixCls:pe,direction:he}=Ot.useContext(E.E_),{prefixCls:ye,type:ge="default",danger:xe,disabled:ke,loading:De,onClick:Be,htmlType:Ae,children:Se,className:Ee,menu:Oe,arrow:Pe,autoFocus:Le,overlay:Ne,trigger:me,align:Ve,open:Ze,onOpenChange:We,placement:nt,getPopupContainer:_e,href:Ue,icon:tt=Ot.createElement(y.Z,null),title:rt,buttonsRender:et=$e=>$e,mouseEnterDelay:Ke,mouseLeaveDelay:Ye,overlayClassName:Xe,overlayStyle:ot,destroyPopupOnHide:Qe,dropdownRender:ft}=se,at=ee(se,["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"]),qe=pe("dropdown",ye),Fe=`${qe}-button`,Re={menu:Oe,arrow:Pe,autoFocus:Le,align:Ve,disabled:ke,trigger:ke?[]:me,onOpenChange:We,getPopupContainer:_e||ue,mouseEnterDelay:Ke,mouseLeaveDelay:Ye,overlayClassName:Xe,overlayStyle:ot,destroyPopupOnHide:Qe,dropdownRender:ft},{compactSize:ne,compactItemClassnames:fe}=(0,oe.ri)(qe,he),Me=be()(Fe,fe,Ee);"overlay"in se&&(Re.overlay=Ne),"open"in se&&(Re.open=Ze),"placement"in se?Re.placement=nt:Re.placement=he==="rtl"?"bottomLeft":"bottomRight";const ze=Ot.createElement(z.ZP,{type:ge,danger:xe,disabled:ke,loading:De,onClick:Be,htmlType:Ae,href:Ue,title:rt},Se),we=Ot.createElement(z.ZP,{type:ge,danger:xe,icon:tt}),[ve,Ie]=et([ze,we]);return Ot.createElement(ie.Z.Compact,Object.assign({className:Me,size:ne,block:!0},at),ve,Ot.createElement(te.Z,Object.assign({},Re),Ie))};ce.__ANT_BUTTON=!0;var x=ce;const ae=te.Z;ae.Button=x;var re=ae},584:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ge}});var te=Te(59301),Ot=Te(92310),y=Te.n(Ot),je=Te(9017),be=Te(17835),z=Te(57700),ie=()=>{const[,xe]=(0,z.ZP)(),[ke]=(0,je.Z)("Empty"),Be=new be.FastColor(xe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return te.createElement("svg",{style:Be,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},te.createElement("title",null,(ke==null?void 0:ke.description)||"Empty"),te.createElement("g",{fill:"none",fillRule:"evenodd"},te.createElement("g",{transform:"translate(24 31.67)"},te.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),te.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"}),te.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)"}),te.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"}),te.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"})),te.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"}),te.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},te.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),te.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ee=()=>{const[,xe]=(0,z.ZP)(),[ke]=(0,je.Z)("Empty"),{colorFill:De,colorFillTertiary:Be,colorFillQuaternary:Ae,colorBgContainer:Se}=xe,{borderColor:Ee,shadowColor:Oe,contentColor:Pe}=(0,te.useMemo)(()=>({borderColor:new be.FastColor(De).onBackground(Se).toHexString(),shadowColor:new be.FastColor(Be).onBackground(Se).toHexString(),contentColor:new be.FastColor(Ae).onBackground(Se).toHexString()}),[De,Be,Ae,Se]);return te.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},te.createElement("title",null,(ke==null?void 0:ke.description)||"Empty"),te.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},te.createElement("ellipse",{fill:Oe,cx:"32",cy:"33",rx:"32",ry:"7"}),te.createElement("g",{fillRule:"nonzero",stroke:Ee},te.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"}),te.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Pe}))))},ce=Te(16931),x=Te(51636);const ae=xe=>{const{componentCls:ke,margin:De,marginXS:Be,marginXL:Ae,fontSize:Se,lineHeight:Ee}=xe;return{[ke]:{marginInline:Be,fontSize:Se,lineHeight:Ee,textAlign:"center",[`${ke}-image`]:{height:xe.emptyImgHeight,marginBottom:Be,opacity:xe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${ke}-description`]:{color:xe.colorTextDescription},[`${ke}-footer`]:{marginTop:De},"&-normal":{marginBlock:Ae,color:xe.colorTextDescription,[`${ke}-description`]:{color:xe.colorTextDescription},[`${ke}-image`]:{height:xe.emptyImgHeightMD}},"&-small":{marginBlock:Be,color:xe.colorTextDescription,[`${ke}-image`]:{height:xe.emptyImgHeightSM}}}}};var re=(0,ce.I$)("Empty",xe=>{const{componentCls:ke,controlHeightLG:De,calc:Be}=xe,Ae=(0,x.mergeToken)(xe,{emptyImgCls:`${ke}-img`,emptyImgHeight:Be(De).mul(2.5).equal(),emptyImgHeightMD:De,emptyImgHeightSM:Be(De).mul(.875).equal()});return[ae(Ae)]}),se=Te(48755),ue=function(xe,ke){var De={};for(var Be in xe)Object.prototype.hasOwnProperty.call(xe,Be)&&ke.indexOf(Be)<0&&(De[Be]=xe[Be]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Be=Object.getOwnPropertySymbols(xe);Ae<Be.length;Ae++)ke.indexOf(Be[Ae])<0&&Object.prototype.propertyIsEnumerable.call(xe,Be[Ae])&&(De[Be[Ae]]=xe[Be[Ae]]);return De};const pe=te.createElement(ie,null),he=te.createElement(ee,null),ye=xe=>{const{className:ke,rootClassName:De,prefixCls:Be,image:Ae=pe,description:Se,children:Ee,imageStyle:Oe,style:Pe,classNames:Le,styles:Ne}=xe,me=ue(xe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Ve,direction:Ze,className:We,style:nt,classNames:_e,styles:Ue}=(0,se.dj)("empty"),tt=Ve("empty",Be),[rt,et,Ke]=re(tt),[Ye]=(0,je.Z)("Empty"),Xe=typeof Se!="undefined"?Se:Ye==null?void 0:Ye.description,ot=typeof Xe=="string"?Xe:"empty";let Qe=null;return typeof Ae=="string"?Qe=te.createElement("img",{alt:ot,src:Ae}):Qe=Ae,rt(te.createElement("div",Object.assign({className:y()(et,Ke,tt,We,{[`${tt}-normal`]:Ae===he,[`${tt}-rtl`]:Ze==="rtl"},ke,De,_e.root,Le==null?void 0:Le.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},Ue.root),nt),Ne==null?void 0:Ne.root),Pe)},me),te.createElement("div",{className:y()(`${tt}-image`,_e.image,Le==null?void 0:Le.image),style:Object.assign(Object.assign(Object.assign({},Oe),Ue.image),Ne==null?void 0:Ne.image)},Qe),Xe&&te.createElement("div",{className:y()(`${tt}-description`,_e.description,Le==null?void 0:Le.description),style:Object.assign(Object.assign({},Ue.description),Ne==null?void 0:Ne.description)},Xe),Ee&&te.createElement("div",{className:y()(`${tt}-footer`,_e.footer,Le==null?void 0:Le.footer),style:Object.assign(Object.assign({},Ue.footer),Ne==null?void 0:Ne.footer)},Ee)))};ye.PRESENTED_IMAGE_DEFAULT=pe,ye.PRESENTED_IMAGE_SIMPLE=he;var ge=ye},28284:function(In,Yt,Te){"use strict";Te.d(Yt,{default:function(){return Gt}});var te=Te(56553),Ot=Te(94480),y=Te(59301),je=Te(92310),be=Te.n(je),z=Te(77900),E=Te(86641),ie=Te(83397);function oe(St){const[Rt,Tt]=y.useState(St);return y.useEffect(()=>{const _t=setTimeout(()=>{Tt(St)},St.length?0:10);return()=>{clearTimeout(_t)}},[St]),Rt}var ee=Te(36237),ce=Te(63356),x=Te(34925),ae=Te(34961),re=Te(51636),se=Te(16931),pe=St=>{const{componentCls:Rt}=St,Tt=`${Rt}-show-help`,_t=`${Rt}-show-help-item`;return{[Tt]:{transition:`opacity ${St.motionDurationFast} ${St.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[_t]:{overflow:"hidden",transition:`height ${St.motionDurationFast} ${St.motionEaseInOut},
opacity ${St.motionDurationFast} ${St.motionEaseInOut},
transform ${St.motionDurationFast} ${St.motionEaseInOut} !important`,[`&${_t}-appear, &${_t}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${_t}-leave-active`]:{transform:"translateY(-5px)"}}}}};const he=St=>({legend:{display:"block",width:"100%",marginBottom:St.marginLG,padding:0,color:St.colorTextDescription,fontSize:St.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,ee.unit)(St.lineWidth)} ${St.lineType} ${St.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,ee.unit)(St.controlOutlineWidth)} ${St.controlOutline}`},output:{display:"block",paddingTop:15,color:St.colorText,fontSize:St.fontSize,lineHeight:St.lineHeight}}),ye=(St,Rt)=>{const{formItemCls:Tt}=St;return{[Tt]:{[`${Tt}-label > label`]:{height:Rt},[`${Tt}-control-input`]:{minHeight:Rt}}}},ge=St=>{const{componentCls:Rt}=St;return{[St.componentCls]:Object.assign(Object.assign(Object.assign({},(0,ce.Wf)(St)),he(St)),{[`${Rt}-text`]:{display:"inline-block",paddingInlineEnd:St.paddingSM},"&-small":Object.assign({},ye(St,St.controlHeightSM)),"&-large":Object.assign({},ye(St,St.controlHeightLG))})}},xe=St=>{const{formItemCls:Rt,iconCls:Tt,rootPrefixCls:_t,antCls:bt,labelRequiredMarkColor:Ut,labelColor:Lt,labelFontSize:qt,labelHeight:Ft,labelColonMarginInlineStart:$t,labelColonMarginInlineEnd:Zt,itemMarginBottom:Xt}=St;return{[Rt]:Object.assign(Object.assign({},(0,ce.Wf)(St)),{marginBottom:Xt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${bt}-row`]:{display:"none"},"&-has-warning":{[`${Rt}-split`]:{color:St.colorError}},"&-has-error":{[`${Rt}-split`]:{color:St.colorWarning}},[`${Rt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:St.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Ft,color:Lt,fontSize:qt,[`> ${Tt}`]:{fontSize:St.fontSize,verticalAlign:"top"},[`&${Rt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:St.marginXXS,color:Ut,fontSize:St.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Rt}-required-mark-hidden, &${Rt}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Rt}-optional`]:{display:"inline-block",marginInlineStart:St.marginXXS,color:St.colorTextDescription,[`&${Rt}-required-mark-hidden`]:{display:"none"}},[`${Rt}-tooltip`]:{color:St.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:St.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:$t,marginInlineEnd:Zt},[`&${Rt}-no-colon::after`]:{content:'"\\a0"'}}},[`${Rt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${_t}-col-'"]):not([class*="' ${_t}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:St.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Rt]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:St.colorTextDescription,fontSize:St.fontSize,lineHeight:St.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:St.controlHeightSM,transition:`color ${St.motionDurationMid} ${St.motionEaseOut}`},"&-explain":{"&-error":{color:St.colorError},"&-warning":{color:St.colorWarning}}},[`&-with-help ${Rt}-explain`]:{height:"auto",opacity:1},[`${Rt}-feedback-icon`]:{fontSize:St.fontSize,textAlign:"center",visibility:"visible",animationName:x.kr,animationDuration:St.motionDurationMid,animationTimingFunction:St.motionEaseOutBack,pointerEvents:"none","&-success":{color:St.colorSuccess},"&-error":{color:St.colorError},"&-warning":{color:St.colorWarning},"&-validating":{color:St.colorPrimary}}})}},ke=(St,Rt)=>{const{formItemCls:Tt}=St;return{[`${Rt}-horizontal`]:{[`${Tt}-label`]:{flexGrow:0},[`${Tt}-control`]:{flex:"1 1 0",minWidth:0},[`${Tt}-label[class$='-24'], ${Tt}-label[class*='-24 ']`]:{[`& + ${Tt}-control`]:{minWidth:"unset"}}}}},De=St=>{const{componentCls:Rt,formItemCls:Tt,inlineItemMarginBottom:_t}=St;return{[`${Rt}-inline`]:{display:"flex",flexWrap:"wrap",[Tt]:{flex:"none",marginInlineEnd:St.margin,marginBottom:_t,"&-row":{flexWrap:"nowrap"},[`> ${Tt}-label,
> ${Tt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Tt}-label`]:{flex:"none"},[`${Rt}-text`]:{display:"inline-block"},[`${Tt}-has-feedback`]:{display:"inline-block"}}}}},Be=St=>({padding:St.verticalLabelPadding,margin:St.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ae=St=>{const{componentCls:Rt,formItemCls:Tt,rootPrefixCls:_t}=St;return{[`${Tt} ${Tt}-label`]:Be(St),[`${Rt}:not(${Rt}-inline)`]:{[Tt]:{flexWrap:"wrap",[`${Tt}-label, ${Tt}-control`]:{[`&:not([class*=" ${_t}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Se=St=>{const{componentCls:Rt,formItemCls:Tt,antCls:_t}=St;return{[`${Rt}-vertical`]:{[`${Tt}:not(${Tt}-horizontal)`]:{[`${Tt}-row`]:{flexDirection:"column"},[`${Tt}-label > label`]:{height:"auto"},[`${Tt}-control`]:{width:"100%"},[`${Tt}-label,
${_t}-col-24${Tt}-label,
${_t}-col-xl-24${Tt}-label`]:Be(St)}},[`@media (max-width: ${(0,ee.unit)(St.screenXSMax)})`]:[Ae(St),{[Rt]:{[`${Tt}:not(${Tt}-horizontal)`]:{[`${_t}-col-xs-24${Tt}-label`]:Be(St)}}}],[`@media (max-width: ${(0,ee.unit)(St.screenSMMax)})`]:{[Rt]:{[`${Tt}:not(${Tt}-horizontal)`]:{[`${_t}-col-sm-24${Tt}-label`]:Be(St)}}},[`@media (max-width: ${(0,ee.unit)(St.screenMDMax)})`]:{[Rt]:{[`${Tt}:not(${Tt}-horizontal)`]:{[`${_t}-col-md-24${Tt}-label`]:Be(St)}}},[`@media (max-width: ${(0,ee.unit)(St.screenLGMax)})`]:{[Rt]:{[`${Tt}:not(${Tt}-horizontal)`]:{[`${_t}-col-lg-24${Tt}-label`]:Be(St)}}}}},Ee=St=>{const{formItemCls:Rt,antCls:Tt}=St;return{[`${Rt}-vertical`]:{[`${Rt}-row`]:{flexDirection:"column"},[`${Rt}-label > label`]:{height:"auto"},[`${Rt}-control`]:{width:"100%"}},[`${Rt}-vertical ${Rt}-label,
${Tt}-col-24${Rt}-label,
${Tt}-col-xl-24${Rt}-label`]:Be(St),[`@media (max-width: ${(0,ee.unit)(St.screenXSMax)})`]:[Ae(St),{[Rt]:{[`${Tt}-col-xs-24${Rt}-label`]:Be(St)}}],[`@media (max-width: ${(0,ee.unit)(St.screenSMMax)})`]:{[Rt]:{[`${Tt}-col-sm-24${Rt}-label`]:Be(St)}},[`@media (max-width: ${(0,ee.unit)(St.screenMDMax)})`]:{[Rt]:{[`${Tt}-col-md-24${Rt}-label`]:Be(St)}},[`@media (max-width: ${(0,ee.unit)(St.screenLGMax)})`]:{[Rt]:{[`${Tt}-col-lg-24${Rt}-label`]:Be(St)}}}},Oe=St=>({labelRequiredMarkColor:St.colorError,labelColor:St.colorTextHeading,labelFontSize:St.fontSize,labelHeight:St.controlHeight,labelColonMarginInlineStart:St.marginXXS/2,labelColonMarginInlineEnd:St.marginXS,itemMarginBottom:St.marginLG,verticalLabelPadding:`0 0 ${St.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Pe=(St,Rt)=>(0,re.mergeToken)(St,{formItemCls:`${St.componentCls}-item`,rootPrefixCls:Rt});var Le=(0,se.I$)("Form",(St,Rt)=>{let{rootPrefixCls:Tt}=Rt;const _t=Pe(St,Tt);return[ge(_t),xe(_t),pe(_t),ke(_t,_t.componentCls),ke(_t,_t.formItemCls),De(_t),Se(_t),Ee(_t),(0,ae.Z)(_t),x.kr]},Oe,{order:-1e3});const Ne=[];function me(St,Rt,Tt){let _t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof St=="string"?St:`${Rt}-${_t}`,error:St,errorStatus:Tt}}var Ze=St=>{let{help:Rt,helpStatus:Tt,errors:_t=Ne,warnings:bt=Ne,className:Ut,fieldId:Lt,onVisibleChanged:qt}=St;const{prefixCls:Ft}=y.useContext(te.Rk),$t=`${Ft}-item-explain`,Zt=(0,ie.Z)(Ft),[Xt,Tn,On]=Le(Ft,Zt),Mn=y.useMemo(()=>(0,E.Z)(Ft),[Ft]),rr=oe(_t),lr=oe(bt),hr=y.useMemo(()=>Rt!=null?[me(Rt,"help",Tt)]:[].concat((0,Ot.Z)(rr.map((Fn,pr)=>me(Fn,"error","error",pr))),(0,Ot.Z)(lr.map((Fn,pr)=>me(Fn,"warning","warning",pr)))),[Rt,Tt,rr,lr]),er=y.useMemo(()=>{const Fn={};return hr.forEach(pr=>{let{key:wr}=pr;Fn[wr]=(Fn[wr]||0)+1}),hr.map((pr,wr)=>Object.assign(Object.assign({},pr),{key:Fn[pr.key]>1?`${pr.key}-fallback-${wr}`:pr.key}))},[hr]),Qn={};return Lt&&(Qn.id=`${Lt}_help`),Xt(y.createElement(z.default,{motionDeadline:Mn.motionDeadline,motionName:`${Ft}-show-help`,visible:!!er.length,onVisibleChanged:qt},Fn=>{const{className:pr,style:wr}=Fn;return y.createElement("div",Object.assign({},Qn,{className:be()($t,pr,On,Zt,Ut,Tn),style:wr}),y.createElement(z.CSSMotionList,Object.assign({keys:er},(0,E.Z)(Ft),{motionName:`${Ft}-show-help-item`,component:!1}),Sr=>{const{key:Cr,error:Jn,errorStatus:yr,className:An,style:xn}=Sr;return y.createElement("div",{key:Cr,className:be()(An,{[`${$t}-${yr}`]:yr}),style:xn},Jn)}))}))},We=Te(22001),nt=Te(48755),_e=Te(2171),Ue=Te(31756),tt=Te(23069),rt=Te(76846),et=Te(16722);const Ke=["parentNode"],Ye="form_item";function Xe(St){return St===void 0||St===!1?[]:Array.isArray(St)?St:[St]}function ot(St,Rt){if(!St.length)return;const Tt=St.join("_");return Rt?`${Rt}_${Tt}`:Ke.includes(Tt)?`${Ye}_${Tt}`:Tt}function Qe(St,Rt,Tt,_t,bt,Ut){let Lt=_t;return Ut!==void 0?Lt=Ut:Tt.validating?Lt="validating":St.length?Lt="error":Rt.length?Lt="warning":(Tt.touched||bt&&Tt.validated)&&(Lt="success"),Lt}var ft=function(St,Rt){var Tt={};for(var _t in St)Object.prototype.hasOwnProperty.call(St,_t)&&Rt.indexOf(_t)<0&&(Tt[_t]=St[_t]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,_t=Object.getOwnPropertySymbols(St);bt<_t.length;bt++)Rt.indexOf(_t[bt])<0&&Object.prototype.propertyIsEnumerable.call(St,_t[bt])&&(Tt[_t[bt]]=St[_t[bt]]);return Tt};function at(St){return Xe(St).join("_")}function qe(St,Rt){const Tt=Rt.getFieldInstance(St),_t=(0,rt.bn)(Tt);if(_t)return _t;const bt=ot(Xe(St),Rt.__INTERNAL__.name);if(bt)return document.getElementById(bt)}function Fe(St){const[Rt]=(0,We.useForm)(),Tt=y.useRef({}),_t=y.useMemo(()=>St!=null?St:Object.assign(Object.assign({},Rt),{__INTERNAL__:{itemRef:bt=>Ut=>{const Lt=at(bt);Ut?Tt.current[Lt]=Ut:delete Tt.current[Lt]}},scrollToField:function(bt){let Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:Lt}=Ut,qt=ft(Ut,["focus"]),Ft=qe(bt,_t);Ft&&((0,et.Z)(Ft,Object.assign({scrollMode:"if-needed",block:"nearest"},qt)),Lt&&_t.focusField(bt))},focusField:bt=>{var Ut,Lt;const qt=_t.getFieldInstance(bt);typeof(qt==null?void 0:qt.focus)=="function"?qt.focus():(Lt=(Ut=qe(bt,_t))===null||Ut===void 0?void 0:Ut.focus)===null||Lt===void 0||Lt.call(Ut)},getFieldInstance:bt=>{const Ut=at(bt);return Tt.current[Ut]}}),[St,Rt]);return[_t]}var Re=Te(98350),ne=function(St,Rt){var Tt={};for(var _t in St)Object.prototype.hasOwnProperty.call(St,_t)&&Rt.indexOf(_t)<0&&(Tt[_t]=St[_t]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,_t=Object.getOwnPropertySymbols(St);bt<_t.length;bt++)Rt.indexOf(_t[bt])<0&&Object.prototype.propertyIsEnumerable.call(St,_t[bt])&&(Tt[_t[bt]]=St[_t[bt]]);return Tt};const fe=(St,Rt)=>{const Tt=y.useContext(_e.Z),{getPrefixCls:_t,direction:bt,requiredMark:Ut,colon:Lt,scrollToFirstError:qt,className:Ft,style:$t}=(0,nt.dj)("form"),{prefixCls:Zt,className:Xt,rootClassName:Tn,size:On,disabled:Mn=Tt,form:rr,colon:lr,labelAlign:hr,labelWrap:er,labelCol:Qn,wrapperCol:Fn,hideRequiredMark:pr,layout:wr="horizontal",scrollToFirstError:Sr,requiredMark:Cr,onFinishFailed:Jn,name:yr,style:An,feedbackIcons:xn,variant:tr}=St,br=ne(St,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Er=(0,Ue.Z)(On),Hr=y.useContext(Re.Z),kr=y.useMemo(()=>Cr!==void 0?Cr:pr?!1:Ut!==void 0?Ut:!0,[pr,Cr,Ut]),Ur=lr!=null?lr:Lt,Tr=_t("form",Zt),ei=(0,ie.Z)(Tr),[si,wi,Kr]=Le(Tr,ei),gi=be()(Tr,`${Tr}-${wr}`,{[`${Tr}-hide-required-mark`]:kr===!1,[`${Tr}-rtl`]:bt==="rtl",[`${Tr}-${Er}`]:Er},Kr,ei,wi,Ft,Xt,Tn),[di]=Fe(rr),{__INTERNAL__:bi}=di;bi.name=yr;const Or=y.useMemo(()=>({name:yr,labelAlign:hr,labelCol:Qn,labelWrap:er,wrapperCol:Fn,vertical:wr==="vertical",colon:Ur,requiredMark:kr,itemRef:bi.itemRef,form:di,feedbackIcons:xn}),[yr,hr,Qn,Fn,wr,Ur,kr,di,xn]),Pr=y.useRef(null);y.useImperativeHandle(Rt,()=>{var Un;return Object.assign(Object.assign({},di),{nativeElement:(Un=Pr.current)===null||Un===void 0?void 0:Un.nativeElement})});const ur=(Un,Vn)=>{if(Un){let $n={block:"nearest"};typeof Un=="object"&&($n=Object.assign(Object.assign({},$n),Un)),di.scrollToField(Vn,$n)}},Dn=Un=>{if(Jn==null||Jn(Un),Un.errorFields.length){const Vn=Un.errorFields[0].name;if(Sr!==void 0){ur(Sr,Vn);return}qt!==void 0&&ur(qt,Vn)}};return si(y.createElement(te.pg.Provider,{value:tr},y.createElement(_e.n,{disabled:Mn},y.createElement(tt.Z.Provider,{value:Er},y.createElement(te.RV,{validateMessages:Hr},y.createElement(te.q3.Provider,{value:Or},y.createElement(We.default,Object.assign({id:yr},br,{name:yr,onFinishFailed:Dn,form:di,ref:Pr,style:Object.assign(Object.assign({},$t),An),className:gi}))))))))};var ze=y.forwardRef(fe),we=Te(41799),ve=Te(8654),Ie=Te(22703),$e=Te(32383),Ge=Te(11592);function Je(St){if(typeof St=="function")return St;const Rt=(0,Ge.Z)(St);return Rt.length<=1?Rt[0]:Rt}const ut=()=>{const{status:St,errors:Rt=[],warnings:Tt=[]}=y.useContext(te.aM);return{status:St,errors:Rt,warnings:Tt}};ut.Context=te.aM;var lt=ut,vt=Te(16089);function ct(St){const[Rt,Tt]=y.useState(St),_t=y.useRef(null),bt=y.useRef([]),Ut=y.useRef(!1);y.useEffect(()=>(Ut.current=!1,()=>{Ut.current=!0,vt.Z.cancel(_t.current),_t.current=null}),[]);function Lt(qt){Ut.current||(_t.current===null&&(bt.current=[],_t.current=(0,vt.Z)(()=>{_t.current=null,Tt(Ft=>{let $t=Ft;return bt.current.forEach(Zt=>{$t=Zt($t)}),$t})})),bt.current.push(qt))}return[Rt,Lt]}function st(){const{itemRef:St}=y.useContext(te.q3),Rt=y.useRef({});function Tt(_t,bt){const Ut=bt&&typeof bt=="object"&&(0,ve.C4)(bt),Lt=_t.join("_");return(Rt.current.name!==Lt||Rt.current.originRef!==Ut)&&(Rt.current.name=Lt,Rt.current.originRef=Ut,Rt.current.ref=(0,ve.sQ)(St(_t),Ut)),Rt.current.ref}return Tt}var At=Te(29194),mt=Te(34280),Dt=Te(2738),jt=Te(65970),Et=Te(70425),kt=Te(5472);const Nt=St=>{const{formItemCls:Rt}=St;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Rt}-control`]:{display:"flex"}}}};var yt=(0,se.bk)(["Form","item-item"],(St,Rt)=>{let{rootPrefixCls:Tt}=Rt;const _t=Pe(St,Tt);return[Nt(_t)]}),Pt=function(St,Rt){var Tt={};for(var _t in St)Object.prototype.hasOwnProperty.call(St,_t)&&Rt.indexOf(_t)<0&&(Tt[_t]=St[_t]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,_t=Object.getOwnPropertySymbols(St);bt<_t.length;bt++)Rt.indexOf(_t[bt])<0&&Object.prototype.propertyIsEnumerable.call(St,_t[bt])&&(Tt[_t[bt]]=St[_t[bt]]);return Tt};const Kt=24;var xt=St=>{const{prefixCls:Rt,status:Tt,labelCol:_t,wrapperCol:bt,children:Ut,errors:Lt,warnings:qt,_internalItemRender:Ft,extra:$t,help:Zt,fieldId:Xt,marginBottom:Tn,onErrorVisibleChanged:On,label:Mn}=St,rr=`${Rt}-item`,lr=y.useContext(te.q3),hr=y.useMemo(()=>{let br=Object.assign({},bt||lr.wrapperCol||{});return Mn===null&&!_t&&!bt&&lr.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Hr=>{const kr=Hr?[Hr]:[],Ur=(0,Et.U2)(lr.labelCol,kr),Tr=typeof Ur=="object"?Ur:{},ei=(0,Et.U2)(br,kr),si=typeof ei=="object"?ei:{};"span"in Tr&&!("offset"in si)&&Tr.span<Kt&&(br=(0,Et.t8)(br,[].concat(kr,["offset"]),Tr.span))}),br},[bt,lr]),er=be()(`${rr}-control`,hr.className),Qn=y.useMemo(()=>{const{labelCol:br,wrapperCol:Er}=lr;return Pt(lr,["labelCol","wrapperCol"])},[lr]),Fn=y.useRef(null),[pr,wr]=y.useState(0);(0,mt.Z)(()=>{$t&&Fn.current?wr(Fn.current.clientHeight):wr(0)},[$t]);const Sr=y.createElement("div",{className:`${rr}-control-input`},y.createElement("div",{className:`${rr}-control-input-content`},Ut)),Cr=y.useMemo(()=>({prefixCls:Rt,status:Tt}),[Rt,Tt]),Jn=Tn!==null||Lt.length||qt.length?y.createElement(te.Rk.Provider,{value:Cr},y.createElement(Ze,{fieldId:Xt,errors:Lt,warnings:qt,help:Zt,helpStatus:Tt,className:`${rr}-explain-connected`,onVisibleChanged:On})):null,yr={};Xt&&(yr.id=`${Xt}_extra`);const An=$t?y.createElement("div",Object.assign({},yr,{className:`${rr}-extra`,ref:Fn}),$t):null,xn=Jn||An?y.createElement("div",{className:`${rr}-additional`,style:Tn?{minHeight:Tn+pr}:{}},Jn,An):null,tr=Ft&&Ft.mark==="pro_table_render"&&Ft.render?Ft.render(St,{input:Sr,errorList:Jn,extra:An}):y.createElement(y.Fragment,null,Sr,xn);return y.createElement(te.q3.Provider,{value:Qn},y.createElement(kt.Z,Object.assign({},hr,{className:er}),tr),y.createElement(yt,{prefixCls:Rt}))},Ct=Te(61485),zt=Te(9017),en=Te(85981),un=Te(25399),Cn=function(St,Rt){var Tt={};for(var _t in St)Object.prototype.hasOwnProperty.call(St,_t)&&Rt.indexOf(_t)<0&&(Tt[_t]=St[_t]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,_t=Object.getOwnPropertySymbols(St);bt<_t.length;bt++)Rt.indexOf(_t[bt])<0&&Object.prototype.propertyIsEnumerable.call(St,_t[bt])&&(Tt[_t[bt]]=St[_t[bt]]);return Tt};function Nn(St){return St?typeof St=="object"&&!y.isValidElement(St)?St:{title:St}:null}var yn=St=>{let{prefixCls:Rt,label:Tt,htmlFor:_t,labelCol:bt,labelAlign:Ut,colon:Lt,required:qt,requiredMark:Ft,tooltip:$t,vertical:Zt}=St;var Xt;const[Tn]=(0,zt.Z)("Form"),{labelAlign:On,labelCol:Mn,labelWrap:rr,colon:lr}=y.useContext(te.q3);if(!Tt)return null;const hr=bt||Mn||{},er=Ut||On,Qn=`${Rt}-item-label`,Fn=be()(Qn,er==="left"&&`${Qn}-left`,hr.className,{[`${Qn}-wrap`]:!!rr});let pr=Tt;const wr=Lt===!0||lr!==!1&&Lt!==!1;wr&&!Zt&&typeof Tt=="string"&&Tt.trim()&&(pr=Tt.replace(/[:|]\s*$/,""));const Cr=Nn($t);if(Cr){const{icon:br=y.createElement(Ct.Z,null)}=Cr,Er=Cn(Cr,["icon"]),Hr=y.createElement(un.Z,Object.assign({},Er),y.cloneElement(br,{className:`${Rt}-item-tooltip`,title:"",onClick:kr=>{kr.preventDefault()},tabIndex:null}));pr=y.createElement(y.Fragment,null,pr,Hr)}const Jn=Ft==="optional",yr=typeof Ft=="function",An=Ft===!1;yr?pr=Ft(pr,{required:!!qt}):Jn&&!qt&&(pr=y.createElement(y.Fragment,null,pr,y.createElement("span",{className:`${Rt}-item-optional`,title:""},(Tn==null?void 0:Tn.optional)||((Xt=en.Z.Form)===null||Xt===void 0?void 0:Xt.optional))));let xn;An?xn="hidden":(Jn||yr)&&(xn="optional");const tr=be()({[`${Rt}-item-required`]:qt,[`${Rt}-item-required-mark-${xn}`]:xn,[`${Rt}-item-no-colon`]:!wr});return y.createElement(kt.Z,Object.assign({},hr,{className:Fn}),y.createElement("label",{htmlFor:_t,className:tr,title:typeof Tt=="string"?Tt:""},pr))},Rn=Te(29679),pn=Te(19248),on=Te(96512),Vt=Te(58617);const Wt={success:Rn.Z,warning:on.Z,error:pn.Z,validating:Vt.Z};function Ht(St){let{children:Rt,errors:Tt,warnings:_t,hasFeedback:bt,validateStatus:Ut,prefixCls:Lt,meta:qt,noStyle:Ft}=St;const $t=`${Lt}-item`,{feedbackIcons:Zt}=y.useContext(te.q3),Xt=Qe(Tt,_t,qt,null,!!bt,Ut),{isFormItemInput:Tn,status:On,hasFeedback:Mn,feedbackIcon:rr}=y.useContext(te.aM),lr=y.useMemo(()=>{var hr;let er;if(bt){const Fn=bt!==!0&&bt.icons||Zt,pr=Xt&&((hr=Fn==null?void 0:Fn({status:Xt,errors:Tt,warnings:_t}))===null||hr===void 0?void 0:hr[Xt]),wr=Xt&&Wt[Xt];er=pr!==!1&&wr?y.createElement("span",{className:be()(`${$t}-feedback-icon`,`${$t}-feedback-icon-${Xt}`)},pr||y.createElement(wr,null)):null}const Qn={status:Xt||"",errors:Tt,warnings:_t,hasFeedback:!!bt,feedbackIcon:er,isFormItemInput:!0};return Ft&&(Qn.status=(Xt!=null?Xt:On)||"",Qn.isFormItemInput=Tn,Qn.hasFeedback=!!(bt!=null?bt:Mn),Qn.feedbackIcon=bt!==void 0?Qn.feedbackIcon:rr),Qn},[Xt,bt,Ft,Tn,On]);return y.createElement(te.aM.Provider,{value:lr},Rt)}var hn=function(St,Rt){var Tt={};for(var _t in St)Object.prototype.hasOwnProperty.call(St,_t)&&Rt.indexOf(_t)<0&&(Tt[_t]=St[_t]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,_t=Object.getOwnPropertySymbols(St);bt<_t.length;bt++)Rt.indexOf(_t[bt])<0&&Object.prototype.propertyIsEnumerable.call(St,_t[bt])&&(Tt[_t[bt]]=St[_t[bt]]);return Tt};function cn(St){const{prefixCls:Rt,className:Tt,rootClassName:_t,style:bt,help:Ut,errors:Lt,warnings:qt,validateStatus:Ft,meta:$t,hasFeedback:Zt,hidden:Xt,children:Tn,fieldId:On,required:Mn,isRequired:rr,onSubItemMetaChange:lr,layout:hr}=St,er=hn(St,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Qn=`${Rt}-item`,{requiredMark:Fn,vertical:pr}=y.useContext(te.q3),wr=pr||hr==="vertical",Sr=y.useRef(null),Cr=oe(Lt),Jn=oe(qt),yr=Ut!=null,An=!!(yr||Lt.length||qt.length),xn=!!Sr.current&&(0,At.Z)(Sr.current),[tr,br]=y.useState(null);(0,mt.Z)(()=>{if(An&&Sr.current){const Tr=getComputedStyle(Sr.current);br(parseInt(Tr.marginBottom,10))}},[An,xn]);const Er=Tr=>{Tr||br(null)},kr=function(){let Tr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ei=Tr?Cr:$t.errors,si=Tr?Jn:$t.warnings;return Qe(ei,si,$t,"",!!Zt,Ft)}(),Ur=be()(Qn,Tt,_t,{[`${Qn}-with-help`]:yr||Cr.length||Jn.length,[`${Qn}-has-feedback`]:kr&&Zt,[`${Qn}-has-success`]:kr==="success",[`${Qn}-has-warning`]:kr==="warning",[`${Qn}-has-error`]:kr==="error",[`${Qn}-is-validating`]:kr==="validating",[`${Qn}-hidden`]:Xt,[`${Qn}-${hr}`]:hr});return y.createElement("div",{className:Ur,style:bt,ref:Sr},y.createElement(jt.Z,Object.assign({className:`${Qn}-row`},(0,Dt.Z)(er,["_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"])),y.createElement(yn,Object.assign({htmlFor:On},St,{requiredMark:Fn,required:Mn!=null?Mn:rr,prefixCls:Rt,vertical:wr})),y.createElement(xt,Object.assign({},St,$t,{errors:Cr,warnings:Jn,prefixCls:Rt,status:kr,help:Ut,marginBottom:tr,onErrorVisibleChanged:Er}),y.createElement(te.qI.Provider,{value:lr},y.createElement(Ht,{prefixCls:Rt,meta:$t,errors:$t.errors,warnings:$t.warnings,hasFeedback:Zt,validateStatus:kr},Tn)))),!!tr&&y.createElement("div",{className:`${Qn}-margin-offset`,style:{marginBottom:-tr}}))}const mn="__SPLIT__",Bn=null;function Pn(St,Rt){const Tt=Object.keys(St),_t=Object.keys(Rt);return Tt.length===_t.length&&Tt.every(bt=>{const Ut=St[bt],Lt=Rt[bt];return Ut===Lt||typeof Ut=="function"||typeof Lt=="function"})}const gn=y.memo(St=>{let{children:Rt}=St;return Rt},(St,Rt)=>Pn(St.control,Rt.control)&&St.update===Rt.update&&St.childProps.length===Rt.childProps.length&&St.childProps.every((Tt,_t)=>Tt===Rt.childProps[_t]));function Ln(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Kn(St){const{name:Rt,noStyle:Tt,className:_t,dependencies:bt,prefixCls:Ut,shouldUpdate:Lt,rules:qt,children:Ft,required:$t,label:Zt,messageVariables:Xt,trigger:Tn="onChange",validateTrigger:On,hidden:Mn,help:rr,layout:lr}=St,{getPrefixCls:hr}=y.useContext(nt.E_),{name:er}=y.useContext(te.q3),Qn=Je(Ft),Fn=typeof Qn=="function",pr=y.useContext(te.qI),{validateTrigger:wr}=y.useContext(We.FieldContext),Sr=On!==void 0?On:wr,Cr=Rt!=null,Jn=hr("form",Ut),yr=(0,ie.Z)(Jn),[An,xn,tr]=Le(Jn,yr),br=(0,$e.ln)("Form.Item"),Er=y.useContext(We.ListContext),Hr=y.useRef(null),[kr,Ur]=ct({}),[Tr,ei]=(0,we.Z)(()=>Ln()),si=Pr=>{const ur=Er==null?void 0:Er.getKey(Pr.name);if(ei(Pr.destroy?Ln():Pr,!0),Tt&&rr!==!1&&pr){let Dn=Pr.name;if(Pr.destroy)Dn=Hr.current||Dn;else if(ur!==void 0){const[Un,Vn]=ur;Dn=[Un].concat((0,Ot.Z)(Vn)),Hr.current=Dn}pr(Pr,Dn)}},wi=(Pr,ur)=>{Ur(Dn=>{const Un=Object.assign({},Dn),$n=[].concat((0,Ot.Z)(Pr.name.slice(0,-1)),(0,Ot.Z)(ur)).join(mn);return Pr.destroy?delete Un[$n]:Un[$n]=Pr,Un})},[Kr,gi]=y.useMemo(()=>{const Pr=(0,Ot.Z)(Tr.errors),ur=(0,Ot.Z)(Tr.warnings);return Object.values(kr).forEach(Dn=>{Pr.push.apply(Pr,(0,Ot.Z)(Dn.errors||[])),ur.push.apply(ur,(0,Ot.Z)(Dn.warnings||[]))}),[Pr,ur]},[kr,Tr.errors,Tr.warnings]),di=st();function bi(Pr,ur,Dn){return Tt&&!Mn?y.createElement(Ht,{prefixCls:Jn,hasFeedback:St.hasFeedback,validateStatus:St.validateStatus,meta:Tr,errors:Kr,warnings:gi,noStyle:!0},Pr):y.createElement(cn,Object.assign({key:"row"},St,{className:be()(_t,tr,yr,xn),prefixCls:Jn,fieldId:ur,isRequired:Dn,errors:Kr,warnings:gi,meta:Tr,onSubItemMetaChange:wi,layout:lr}),Pr)}if(!Cr&&!Fn&&!bt)return An(bi(Qn));let Or={};return typeof Zt=="string"?Or.label=Zt:Rt&&(Or.label=String(Rt)),Xt&&(Or=Object.assign(Object.assign({},Or),Xt)),An(y.createElement(We.Field,Object.assign({},St,{messageVariables:Or,trigger:Tn,validateTrigger:Sr,onMetaChange:si}),(Pr,ur,Dn)=>{const Un=Xe(Rt).length&&ur?ur.name:[],Vn=ot(Un,er),$n=$t!==void 0?$t:!!(qt!=null&&qt.some(Gn=>{if(Gn&&typeof Gn=="object"&&Gn.required&&!Gn.warningOnly)return!0;if(typeof Gn=="function"){const zn=Gn(Dn);return(zn==null?void 0:zn.required)&&!(zn!=null&&zn.warningOnly)}return!1})),cr=Object.assign({},Pr);let jr=null;if(Array.isArray(Qn)&&Cr)jr=Qn;else if(!(Fn&&(!(Lt||bt)||Cr))){if(!(bt&&!Fn&&!Cr))if(y.isValidElement(Qn)){const Gn=Object.assign(Object.assign({},Qn.props),cr);if(Gn.id||(Gn.id=Vn),rr||Kr.length>0||gi.length>0||St.extra){const or=[];(rr||Kr.length>0)&&or.push(`${Vn}_help`),St.extra&&or.push(`${Vn}_extra`),Gn["aria-describedby"]=or.join(" ")}Kr.length>0&&(Gn["aria-invalid"]="true"),$n&&(Gn["aria-required"]="true"),(0,ve.Yr)(Qn)&&(Gn.ref=di(Un,Qn)),new Set([].concat((0,Ot.Z)(Xe(Tn)),(0,Ot.Z)(Xe(Sr)))).forEach(or=>{Gn[or]=function(){for(var ti,Ti,mi,ki,Oi,Ii=arguments.length,_i=new Array(Ii),Ni=0;Ni<Ii;Ni++)_i[Ni]=arguments[Ni];(mi=cr[or])===null||mi===void 0||(ti=mi).call.apply(ti,[cr].concat(_i)),(Oi=(ki=Qn.props)[or])===null||Oi===void 0||(Ti=Oi).call.apply(Ti,[ki].concat(_i))}});const qn=[Gn["aria-required"],Gn["aria-invalid"],Gn["aria-describedby"]];jr=y.createElement(gn,{control:cr,update:Qn,childProps:qn},(0,Ie.Tm)(Qn,Gn))}else Fn&&(Lt||bt)&&!Cr?jr=Qn(Dn):jr=Qn}return bi(jr,Vn,$n)}))}const sr=Kn;sr.useStatus=lt;var nr=sr,ln=function(St,Rt){var Tt={};for(var _t in St)Object.prototype.hasOwnProperty.call(St,_t)&&Rt.indexOf(_t)<0&&(Tt[_t]=St[_t]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,_t=Object.getOwnPropertySymbols(St);bt<_t.length;bt++)Rt.indexOf(_t[bt])<0&&Object.prototype.propertyIsEnumerable.call(St,_t[bt])&&(Tt[_t[bt]]=St[_t[bt]]);return Tt},Wn=St=>{var{prefixCls:Rt,children:Tt}=St,_t=ln(St,["prefixCls","children"]);const{getPrefixCls:bt}=y.useContext(nt.E_),Ut=bt("form",Rt),Lt=y.useMemo(()=>({prefixCls:Ut,status:"error"}),[Ut]);return y.createElement(We.List,Object.assign({},_t),(qt,Ft,$t)=>y.createElement(te.Rk.Provider,{value:Lt},Tt(qt.map(Zt=>Object.assign(Object.assign({},Zt),{fieldKey:Zt.key})),Ft,{errors:$t.errors,warnings:$t.warnings})))};function Zn(){const{form:St}=y.useContext(te.q3);return St}const Mt=ze;Mt.Item=nr,Mt.List=Wn,Mt.ErrorList=Ze,Mt.useForm=Fe,Mt.useFormInstance=Zn,Mt.useWatch=We.useWatch,Mt.Provider=te.RV,Mt.create=()=>{};var Gt=Mt},4875:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return nn}});var te=Te(59301),Ot=Te(84105),y=Te(87395),je=Te(92310),be=Te.n(je),z=Te(54476),E=Te(20068),ie=Te(76190),oe=Te(42978),ee=Te(75931),ce=Te(67732),x=Te(83652);function ae(){return typeof BigInt=="function"}function re(xt){return!xt&&xt!==0&&!Number.isNaN(xt)||!String(xt).trim()}function se(xt){var Ct=xt.trim(),zt=Ct.startsWith("-");zt&&(Ct=Ct.slice(1)),Ct=Ct.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Ct.startsWith(".")&&(Ct="0".concat(Ct));var en=Ct||"0",un=en.split("."),Cn=un[0]||"0",Nn=un[1]||"0";Cn==="0"&&Nn==="0"&&(zt=!1);var _n=zt?"-":"";return{negative:zt,negativeStr:_n,trimStr:en,integerStr:Cn,decimalStr:Nn,fullStr:"".concat(_n).concat(en)}}function ue(xt){var Ct=String(xt);return!Number.isNaN(Number(Ct))&&Ct.includes("e")}function pe(xt){var Ct=String(xt);if(ue(xt)){var zt=Number(Ct.slice(Ct.indexOf("e-")+2)),en=Ct.match(/\.(\d+)/);return en!=null&&en[1]&&(zt+=en[1].length),zt}return Ct.includes(".")&&ye(Ct)?Ct.length-Ct.indexOf(".")-1:0}function he(xt){var Ct=String(xt);if(ue(xt)){if(xt>Number.MAX_SAFE_INTEGER)return String(ae()?BigInt(xt).toString():Number.MAX_SAFE_INTEGER);if(xt<Number.MIN_SAFE_INTEGER)return String(ae()?BigInt(xt).toString():Number.MIN_SAFE_INTEGER);Ct=xt.toFixed(pe(Ct))}return se(Ct).fullStr}function ye(xt){return typeof xt=="number"?!Number.isNaN(xt):xt?/^\s*-?\d+(\.\d+)?\s*$/.test(xt)||/^\s*-?\d+\.\s*$/.test(xt)||/^\s*-?\.\d+\s*$/.test(xt):!1}var ge=function(){function xt(Ct){if((0,ce.Z)(this,xt),(0,E.Z)(this,"origin",""),(0,E.Z)(this,"negative",void 0),(0,E.Z)(this,"integer",void 0),(0,E.Z)(this,"decimal",void 0),(0,E.Z)(this,"decimalLen",void 0),(0,E.Z)(this,"empty",void 0),(0,E.Z)(this,"nan",void 0),re(Ct)){this.empty=!0;return}if(this.origin=String(Ct),Ct==="-"||Number.isNaN(Ct)){this.nan=!0;return}var zt=Ct;if(ue(zt)&&(zt=Number(zt)),zt=typeof zt=="string"?zt:he(zt),ye(zt)){var en=se(zt);this.negative=en.negative;var un=en.trimStr.split(".");this.integer=BigInt(un[0]);var Cn=un[1]||"0";this.decimal=BigInt(Cn),this.decimalLen=Cn.length}else this.nan=!0}return(0,x.Z)(xt,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(zt){var en="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(zt,"0"));return BigInt(en)}},{key:"negate",value:function(){var zt=new xt(this.toString());return zt.negative=!zt.negative,zt}},{key:"cal",value:function(zt,en,un){var Cn=Math.max(this.getDecimalStr().length,zt.getDecimalStr().length),Nn=this.alignDecimal(Cn),_n=zt.alignDecimal(Cn),yn=en(Nn,_n).toString(),Rn=un(Cn),pn=se(yn),on=pn.negativeStr,Vt=pn.trimStr,Wt="".concat(on).concat(Vt.padStart(Rn+1,"0"));return new xt("".concat(Wt.slice(0,-Rn),".").concat(Wt.slice(-Rn)))}},{key:"add",value:function(zt){if(this.isInvalidate())return new xt(zt);var en=new xt(zt);return en.isInvalidate()?this:this.cal(en,function(un,Cn){return un+Cn},function(un){return un})}},{key:"multi",value:function(zt){var en=new xt(zt);return this.isInvalidate()||en.isInvalidate()?new xt(NaN):this.cal(en,function(un,Cn){return un*Cn},function(un){return un*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(zt){return this.toString()===(zt==null?void 0:zt.toString())}},{key:"lessEquals",value:function(zt){return this.add(zt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return zt?this.isInvalidate()?"":se("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),xt}(),xe=function(){function xt(Ct){if((0,ce.Z)(this,xt),(0,E.Z)(this,"origin",""),(0,E.Z)(this,"number",void 0),(0,E.Z)(this,"empty",void 0),re(Ct)){this.empty=!0;return}this.origin=String(Ct),this.number=Number(Ct)}return(0,x.Z)(xt,[{key:"negate",value:function(){return new xt(-this.toNumber())}},{key:"add",value:function(zt){if(this.isInvalidate())return new xt(zt);var en=Number(zt);if(Number.isNaN(en))return this;var un=this.number+en;if(un>Number.MAX_SAFE_INTEGER)return new xt(Number.MAX_SAFE_INTEGER);if(un<Number.MIN_SAFE_INTEGER)return new xt(Number.MIN_SAFE_INTEGER);var Cn=Math.max(pe(this.number),pe(en));return new xt(un.toFixed(Cn))}},{key:"multi",value:function(zt){var en=Number(zt);if(this.isInvalidate()||Number.isNaN(en))return new xt(NaN);var un=this.number*en;if(un>Number.MAX_SAFE_INTEGER)return new xt(Number.MAX_SAFE_INTEGER);if(un<Number.MIN_SAFE_INTEGER)return new xt(Number.MIN_SAFE_INTEGER);var Cn=Math.max(pe(this.number),pe(en));return new xt(un.toFixed(Cn))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(zt){return this.toNumber()===(zt==null?void 0:zt.toNumber())}},{key:"lessEquals",value:function(zt){return this.add(zt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return zt?this.isInvalidate()?"":he(this.number):this.origin}}]),xt}();function ke(xt){return ae()?new ge(xt):new xe(xt)}function De(xt,Ct,zt){var en=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(xt==="")return"";var un=se(xt),Cn=un.negativeStr,Nn=un.integerStr,_n=un.decimalStr,yn="".concat(Ct).concat(_n),Rn="".concat(Cn).concat(Nn);if(zt>=0){var pn=Number(_n[zt]);if(pn>=5&&!en){var on=ke(xt).add("".concat(Cn,"0.").concat("0".repeat(zt)).concat(10-pn));return De(on.toString(),Ct,zt,en)}return zt===0?Rn:"".concat(Rn).concat(Ct).concat(_n.padEnd(zt,"0").slice(0,zt))}return yn===".0"?Rn:"".concat(Rn).concat(yn)}var Be=ke,Ae=Te(36901),Se=Te(34280);function Ee(xt,Ct){return typeof Proxy!="undefined"&&xt?new Proxy(xt,{get:function(en,un){if(Ct[un])return Ct[un];var Cn=en[un];return typeof Cn=="function"?Cn.bind(en):Cn}}):xt}var Oe=Te(8654),Pe=Te(48736);function Le(xt,Ct){var zt=(0,te.useRef)(null);function en(){try{var Cn=xt.selectionStart,Nn=xt.selectionEnd,_n=xt.value,yn=_n.substring(0,Cn),Rn=_n.substring(Nn);zt.current={start:Cn,end:Nn,value:_n,beforeTxt:yn,afterTxt:Rn}}catch(pn){}}function un(){if(xt&&zt.current&&Ct)try{var Cn=xt.value,Nn=zt.current,_n=Nn.beforeTxt,yn=Nn.afterTxt,Rn=Nn.start,pn=Cn.length;if(Cn.startsWith(_n))pn=_n.length;else if(Cn.endsWith(yn))pn=Cn.length-zt.current.afterTxt.length;else{var on=_n[Rn-1],Vt=Cn.indexOf(on,Rn-1);Vt!==-1&&(pn=Vt+1)}xt.setSelectionRange(pn,pn)}catch(Wt){(0,Pe.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Wt.message))}}return[en,un]}var Ne=Te(49658),me=function(){var Ct=(0,te.useState)(!1),zt=(0,oe.Z)(Ct,2),en=zt[0],un=zt[1];return(0,Se.Z)(function(){un((0,Ne.Z)())},[]),en},Ve=me,Ze=Te(16089),We=200,nt=600;function _e(xt){var Ct=xt.prefixCls,zt=xt.upNode,en=xt.downNode,un=xt.upDisabled,Cn=xt.downDisabled,Nn=xt.onStep,_n=te.useRef(),yn=te.useRef([]),Rn=te.useRef();Rn.current=Nn;var pn=function(){clearTimeout(_n.current)},on=function(Pn,gn){Pn.preventDefault(),pn(),Rn.current(gn);function Ln(){Rn.current(gn),_n.current=setTimeout(Ln,We)}_n.current=setTimeout(Ln,nt)};te.useEffect(function(){return function(){pn(),yn.current.forEach(function(Bn){return Ze.Z.cancel(Bn)})}},[]);var Vt=Ve();if(Vt)return null;var Wt="".concat(Ct,"-handler"),Ht=be()(Wt,"".concat(Wt,"-up"),(0,E.Z)({},"".concat(Wt,"-up-disabled"),un)),hn=be()(Wt,"".concat(Wt,"-down"),(0,E.Z)({},"".concat(Wt,"-down-disabled"),Cn)),cn=function(){return yn.current.push((0,Ze.Z)(pn))},mn={unselectable:"on",role:"button",onMouseUp:cn,onMouseLeave:cn};return te.createElement("div",{className:"".concat(Wt,"-wrap")},te.createElement("span",(0,z.Z)({},mn,{onMouseDown:function(Pn){on(Pn,!0)},"aria-label":"Increase Value","aria-disabled":un,className:Ht}),zt||te.createElement("span",{unselectable:"on",className:"".concat(Ct,"-handler-up-inner")})),te.createElement("span",(0,z.Z)({},mn,{onMouseDown:function(Pn){on(Pn,!1)},"aria-label":"Decrease Value","aria-disabled":Cn,className:hn}),en||te.createElement("span",{unselectable:"on",className:"".concat(Ct,"-handler-down-inner")})))}function Ue(xt){var Ct=typeof xt=="number"?he(xt):se(xt).fullStr,zt=Ct.includes(".");return zt?se(Ct.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:xt+"0"}var tt=Te(30292),rt=function(){var xt=(0,te.useRef)(0),Ct=function(){Ze.Z.cancel(xt.current)};return(0,te.useEffect)(function(){return Ct},[]),function(zt){Ct(),xt.current=(0,Ze.Z)(function(){zt()})}},et=["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"],Ke=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Ye=function(Ct,zt){return Ct||zt.isEmpty()?zt.toString():zt.toNumber()},Xe=function(Ct){var zt=Be(Ct);return zt.isInvalidate()?null:zt},ot=te.forwardRef(function(xt,Ct){var zt=xt.prefixCls,en=xt.className,un=xt.style,Cn=xt.min,Nn=xt.max,_n=xt.step,yn=_n===void 0?1:_n,Rn=xt.defaultValue,pn=xt.value,on=xt.disabled,Vt=xt.readOnly,Wt=xt.upHandler,Ht=xt.downHandler,hn=xt.keyboard,cn=xt.changeOnWheel,mn=cn===void 0?!1:cn,Bn=xt.controls,Pn=Bn===void 0?!0:Bn,gn=xt.classNames,Ln=xt.stringMode,Kn=xt.parser,sr=xt.formatter,nr=xt.precision,ln=xt.decimalSeparator,rn=xt.onChange,Wn=xt.onInput,Zn=xt.onPressEnter,Mt=xt.onStep,Gt=xt.changeOnBlur,St=Gt===void 0?!0:Gt,Rt=xt.domRef,Tt=(0,ee.Z)(xt,et),_t="".concat(zt,"-input"),bt=te.useRef(null),Ut=te.useState(!1),Lt=(0,oe.Z)(Ut,2),qt=Lt[0],Ft=Lt[1],$t=te.useRef(!1),Zt=te.useRef(!1),Xt=te.useRef(!1),Tn=te.useState(function(){return Be(pn!=null?pn:Rn)}),On=(0,oe.Z)(Tn,2),Mn=On[0],rr=On[1];function lr(Vn){pn===void 0&&rr(Vn)}var hr=te.useCallback(function(Vn,$n){if(!$n)return nr>=0?nr:Math.max(pe(Vn),pe(yn))},[nr,yn]),er=te.useCallback(function(Vn){var $n=String(Vn);if(Kn)return Kn($n);var cr=$n;return ln&&(cr=cr.replace(ln,".")),cr.replace(/[^\w.-]+/g,"")},[Kn,ln]),Qn=te.useRef(""),Fn=te.useCallback(function(Vn,$n){if(sr)return sr(Vn,{userTyping:$n,input:String(Qn.current)});var cr=typeof Vn=="number"?he(Vn):Vn;if(!$n){var jr=hr(cr,$n);if(ye(cr)&&(ln||jr>=0)){var Gn=ln||".";cr=De(cr,Gn,jr)}}return cr},[sr,hr,ln]),pr=te.useState(function(){var Vn=Rn!=null?Rn:pn;return Mn.isInvalidate()&&["string","number"].includes((0,ie.Z)(Vn))?Number.isNaN(Vn)?"":Vn:Fn(Mn.toString(),!1)}),wr=(0,oe.Z)(pr,2),Sr=wr[0],Cr=wr[1];Qn.current=Sr;function Jn(Vn,$n){Cr(Fn(Vn.isInvalidate()?Vn.toString(!1):Vn.toString(!$n),$n))}var yr=te.useMemo(function(){return Xe(Nn)},[Nn,nr]),An=te.useMemo(function(){return Xe(Cn)},[Cn,nr]),xn=te.useMemo(function(){return!yr||!Mn||Mn.isInvalidate()?!1:yr.lessEquals(Mn)},[yr,Mn]),tr=te.useMemo(function(){return!An||!Mn||Mn.isInvalidate()?!1:Mn.lessEquals(An)},[An,Mn]),br=Le(bt.current,qt),Er=(0,oe.Z)(br,2),Hr=Er[0],kr=Er[1],Ur=function($n){return yr&&!$n.lessEquals(yr)?yr:An&&!An.lessEquals($n)?An:null},Tr=function($n){return!Ur($n)},ei=function($n,cr){var jr=$n,Gn=Tr(jr)||jr.isEmpty();if(!jr.isEmpty()&&!cr&&(jr=Ur(jr)||jr,Gn=!0),!Vt&&!on&&Gn){var zn=jr.toString(),qn=hr(zn,cr);return qn>=0&&(jr=Be(De(zn,".",qn)),Tr(jr)||(jr=Be(De(zn,".",qn,!0)))),jr.equals(Mn)||(lr(jr),rn==null||rn(jr.isEmpty()?null:Ye(Ln,jr)),pn===void 0&&Jn(jr,cr)),jr}return Mn},si=rt(),wi=function Vn($n){if(Hr(),Qn.current=$n,Cr($n),!Zt.current){var cr=er($n),jr=Be(cr);jr.isNaN()||ei(jr,!0)}Wn==null||Wn($n),si(function(){var Gn=$n;Kn||(Gn=$n.replace(/。/g,".")),Gn!==$n&&Vn(Gn)})},Kr=function(){Zt.current=!0},gi=function(){Zt.current=!1,wi(bt.current.value)},di=function($n){wi($n.target.value)},bi=function($n){var cr;if(!($n&&xn||!$n&&tr)){$t.current=!1;var jr=Be(Xt.current?Ue(yn):yn);$n||(jr=jr.negate());var Gn=(Mn||Be(0)).add(jr.toString()),zn=ei(Gn,!1);Mt==null||Mt(Ye(Ln,zn),{offset:Xt.current?Ue(yn):yn,type:$n?"up":"down"}),(cr=bt.current)===null||cr===void 0||cr.focus()}},Or=function($n){var cr=Be(er(Sr)),jr;cr.isNaN()?jr=ei(Mn,$n):jr=ei(cr,$n),pn!==void 0?Jn(Mn,!1):jr.isNaN()||Jn(jr,!1)},Pr=function(){$t.current=!0},ur=function($n){var cr=$n.key,jr=$n.shiftKey;$t.current=!0,Xt.current=jr,cr==="Enter"&&(Zt.current||($t.current=!1),Or(!1),Zn==null||Zn($n)),hn!==!1&&!Zt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(cr)&&(bi(cr==="Up"||cr==="ArrowUp"),$n.preventDefault())},Dn=function(){$t.current=!1,Xt.current=!1};te.useEffect(function(){if(mn&&qt){var Vn=function(jr){bi(jr.deltaY<0),jr.preventDefault()},$n=bt.current;if($n)return $n.addEventListener("wheel",Vn,{passive:!1}),function(){return $n.removeEventListener("wheel",Vn)}}});var Un=function(){St&&Or(!1),Ft(!1),$t.current=!1};return(0,Se.o)(function(){Mn.isInvalidate()||Jn(Mn,!1)},[nr,sr]),(0,Se.o)(function(){var Vn=Be(pn);rr(Vn);var $n=Be(er(Sr));(!Vn.equals($n)||!$t.current||sr)&&Jn(Vn,$t.current)},[pn]),(0,Se.o)(function(){sr&&kr()},[Sr]),te.createElement("div",{ref:Rt,className:be()(zt,en,(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)({},"".concat(zt,"-focused"),qt),"".concat(zt,"-disabled"),on),"".concat(zt,"-readonly"),Vt),"".concat(zt,"-not-a-number"),Mn.isNaN()),"".concat(zt,"-out-of-range"),!Mn.isInvalidate()&&!Tr(Mn))),style:un,onFocus:function(){Ft(!0)},onBlur:Un,onKeyDown:ur,onKeyUp:Dn,onCompositionStart:Kr,onCompositionEnd:gi,onBeforeInput:Pr},Pn&&te.createElement(_e,{prefixCls:zt,upNode:Wt,downNode:Ht,upDisabled:xn,downDisabled:tr,onStep:bi}),te.createElement("div",{className:"".concat(_t,"-wrap")},te.createElement("input",(0,z.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Cn,"aria-valuemax":Nn,"aria-valuenow":Mn.isInvalidate()?null:Mn.toString(),step:yn},Tt,{ref:(0,Oe.sQ)(bt,Ct),className:_t,value:Sr,onChange:di,disabled:on,readOnly:Vt}))))}),Qe=te.forwardRef(function(xt,Ct){var zt=xt.disabled,en=xt.style,un=xt.prefixCls,Cn=un===void 0?"rc-input-number":un,Nn=xt.value,_n=xt.prefix,yn=xt.suffix,Rn=xt.addonBefore,pn=xt.addonAfter,on=xt.className,Vt=xt.classNames,Wt=(0,ee.Z)(xt,Ke),Ht=te.useRef(null),hn=te.useRef(null),cn=te.useRef(null),mn=function(Pn){cn.current&&(0,tt.nH)(cn.current,Pn)};return te.useImperativeHandle(Ct,function(){return Ee(cn.current,{focus:mn,nativeElement:Ht.current.nativeElement||hn.current})}),te.createElement(Ae.BaseInput,{className:on,triggerFocus:mn,prefixCls:Cn,value:Nn,disabled:zt,style:en,prefix:_n,suffix:yn,addonAfter:pn,addonBefore:Rn,classNames:Vt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Ht},te.createElement(ot,(0,z.Z)({prefixCls:Cn,disabled:zt,ref:cn,domRef:hn,className:Vt==null?void 0:Vt.input},Wt)))}),ft=Qe,at=ft,qe=Te(62487),Fe=Te(82855),Re=Te(48755),ne=Te(60840),fe=Te(2171),Me=Te(83397),ze=Te(31756),we=Te(56553),ve=Te(24971),Ie=Te(70045),$e=Te(36237),Ge=Te(53075),Je=Te(64910),ut=Te(39082),lt=Te(63356),vt=Te(56119),ct=Te(16931),st=Te(51636),At=Te(17835);const mt=xt=>{var Ct;const zt=(Ct=xt.handleVisible)!==null&&Ct!==void 0?Ct:"auto",en=xt.controlHeightSM-xt.lineWidth*2;return Object.assign(Object.assign({},(0,Je.T)(xt)),{controlWidth:90,handleWidth:en,handleFontSize:xt.fontSize/2,handleVisible:zt,handleActiveBg:xt.colorFillAlter,handleBg:xt.colorBgContainer,filledHandleBg:new At.FastColor(xt.colorFillSecondary).onBackground(xt.colorBgContainer).toHexString(),handleHoverColor:xt.colorPrimary,handleBorderColor:xt.colorBorder,handleOpacity:zt===!0?1:0,handleVisibleWidth:zt===!0?en:0})},Dt=(xt,Ct)=>{let{componentCls:zt,borderRadiusSM:en,borderRadiusLG:un}=xt;const Cn=Ct==="lg"?un:en;return{[`&-${Ct}`]:{[`${zt}-handler-wrap`]:{borderStartEndRadius:Cn,borderEndEndRadius:Cn},[`${zt}-handler-up`]:{borderStartEndRadius:Cn},[`${zt}-handler-down`]:{borderEndEndRadius:Cn}}}},jt=xt=>{const{componentCls:Ct,lineWidth:zt,lineType:en,borderRadius:un,inputFontSizeSM:Cn,inputFontSizeLG:Nn,controlHeightLG:_n,controlHeightSM:yn,colorError:Rn,paddingInlineSM:pn,paddingBlockSM:on,paddingBlockLG:Vt,paddingInlineLG:Wt,colorTextDescription:Ht,motionDurationMid:hn,handleHoverColor:cn,handleOpacity:mn,paddingInline:Bn,paddingBlock:Pn,handleBg:gn,handleActiveBg:Ln,colorTextDisabled:Kn,borderRadiusSM:sr,borderRadiusLG:nr,controlWidth:ln,handleBorderColor:rn,filledHandleBg:Wn,lineHeightLG:Zn,calc:Mt}=xt;return[{[Ct]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,lt.Wf)(xt)),(0,Ge.ik)(xt)),{display:"inline-block",width:ln,margin:0,padding:0,borderRadius:un}),(0,ut.qG)(xt,{[`${Ct}-handler-wrap`]:{background:gn,[`${Ct}-handler-down`]:{borderBlockStart:`${(0,$e.unit)(zt)} ${en} ${rn}`}}})),(0,ut.H8)(xt,{[`${Ct}-handler-wrap`]:{background:Wn,[`${Ct}-handler-down`]:{borderBlockStart:`${(0,$e.unit)(zt)} ${en} ${rn}`}},"&:focus-within":{[`${Ct}-handler-wrap`]:{background:gn}}})),(0,ut.vc)(xt,{[`${Ct}-handler-wrap`]:{background:gn,[`${Ct}-handler-down`]:{borderBlockStart:`${(0,$e.unit)(zt)} ${en} ${rn}`}}})),(0,ut.Mu)(xt)),{"&-rtl":{direction:"rtl",[`${Ct}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Nn,lineHeight:Zn,borderRadius:nr,[`input${Ct}-input`]:{height:Mt(_n).sub(Mt(zt).mul(2)).equal(),padding:`${(0,$e.unit)(Vt)} ${(0,$e.unit)(Wt)}`}},"&-sm":{padding:0,fontSize:Cn,borderRadius:sr,[`input${Ct}-input`]:{height:Mt(yn).sub(Mt(zt).mul(2)).equal(),padding:`${(0,$e.unit)(on)} ${(0,$e.unit)(pn)}`}},"&-out-of-range":{[`${Ct}-input-wrap`]:{input:{color:Rn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,lt.Wf)(xt)),(0,Ge.s7)(xt)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Ct}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Ct}-group-addon`]:{borderRadius:nr,fontSize:xt.fontSizeLG}},"&-sm":{[`${Ct}-group-addon`]:{borderRadius:sr}}},(0,ut.ir)(xt)),(0,ut.S5)(xt)),{[`&:not(${Ct}-compact-first-item):not(${Ct}-compact-last-item)${Ct}-compact-item`]:{[`${Ct}, ${Ct}-group-addon`]:{borderRadius:0}},[`&:not(${Ct}-compact-last-item)${Ct}-compact-first-item`]:{[`${Ct}, ${Ct}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Ct}-compact-first-item)${Ct}-compact-last-item`]:{[`${Ct}, ${Ct}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Ct}-input`]:{cursor:"not-allowed"},[Ct]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,lt.Wf)(xt)),{width:"100%",padding:`${(0,$e.unit)(Pn)} ${(0,$e.unit)(Bn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:un,outline:0,transition:`all ${hn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Ge.nz)(xt.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Ct}-handler-wrap, &-focused ${Ct}-handler-wrap`]:{width:xt.handleWidth,opacity:1}})},{[Ct]:Object.assign(Object.assign(Object.assign({[`${Ct}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:xt.handleVisibleWidth,opacity:mn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:un,borderEndEndRadius:un,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${hn}`,overflow:"hidden",[`${Ct}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${Ct}-handler-up-inner,
${Ct}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:xt.handleFontSize}}},[`${Ct}-handler`]:{height:"50%",overflow:"hidden",color:Ht,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,$e.unit)(zt)} ${en} ${rn}`,transition:`all ${hn} linear`,"&:active":{background:Ln},"&:hover":{height:"60%",[`
${Ct}-handler-up-inner,
${Ct}-handler-down-inner
`]:{color:cn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,lt.Ro)()),{color:Ht,transition:`all ${hn} linear`,userSelect:"none"})},[`${Ct}-handler-up`]:{borderStartEndRadius:un},[`${Ct}-handler-down`]:{borderEndEndRadius:un}},Dt(xt,"lg")),Dt(xt,"sm")),{"&-disabled, &-readonly":{[`${Ct}-handler-wrap`]:{display:"none"},[`${Ct}-input`]:{color:"inherit"}},[`
${Ct}-handler-up-disabled,
${Ct}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${Ct}-handler-up-disabled:hover &-handler-up-inner,
${Ct}-handler-down-disabled:hover &-handler-down-inner
`]:{color:Kn}})}]},Et=xt=>{const{componentCls:Ct,paddingBlock:zt,paddingInline:en,inputAffixPadding:un,controlWidth:Cn,borderRadiusLG:Nn,borderRadiusSM:_n,paddingInlineLG:yn,paddingInlineSM:Rn,paddingBlockLG:pn,paddingBlockSM:on,motionDurationMid:Vt}=xt;return{[`${Ct}-affix-wrapper`]:Object.assign(Object.assign({[`input${Ct}-input`]:{padding:`${(0,$e.unit)(zt)} 0`}},(0,Ge.ik)(xt)),{position:"relative",display:"inline-flex",alignItems:"center",width:Cn,padding:0,paddingInlineStart:en,"&-lg":{borderRadius:Nn,paddingInlineStart:yn,[`input${Ct}-input`]:{padding:`${(0,$e.unit)(pn)} 0`}},"&-sm":{borderRadius:_n,paddingInlineStart:Rn,[`input${Ct}-input`]:{padding:`${(0,$e.unit)(on)} 0`}},[`&:not(${Ct}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Ct}-disabled`]:{background:"transparent"},[`> div${Ct}`]:{width:"100%",border:"none",outline:"none",[`&${Ct}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ct}-handler-wrap`]:{zIndex:2},[Ct]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:un},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:en,marginInlineStart:un,transition:`margin ${Vt}`}},[`&:hover ${Ct}-handler-wrap, &-focused ${Ct}-handler-wrap`]:{width:xt.handleWidth,opacity:1},[`&:not(${Ct}-affix-wrapper-without-controls):hover ${Ct}-suffix`]:{marginInlineEnd:xt.calc(xt.handleWidth).add(en).equal()}})}};var kt=(0,ct.I$)("InputNumber",xt=>{const Ct=(0,st.mergeToken)(xt,(0,Je.e)(xt));return[jt(Ct),Et(Ct),(0,vt.c)(Ct)]},mt,{unitless:{handleOpacity:!0}}),Nt=function(xt,Ct){var zt={};for(var en in xt)Object.prototype.hasOwnProperty.call(xt,en)&&Ct.indexOf(en)<0&&(zt[en]=xt[en]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,en=Object.getOwnPropertySymbols(xt);un<en.length;un++)Ct.indexOf(en[un])<0&&Object.prototype.propertyIsEnumerable.call(xt,en[un])&&(zt[en[un]]=xt[en[un]]);return zt};const yt=te.forwardRef((xt,Ct)=>{const{getPrefixCls:zt,direction:en}=te.useContext(Re.E_),un=te.useRef(null);te.useImperativeHandle(Ct,()=>un.current);const{className:Cn,rootClassName:Nn,size:_n,disabled:yn,prefixCls:Rn,addonBefore:pn,addonAfter:on,prefix:Vt,suffix:Wt,bordered:Ht,readOnly:hn,status:cn,controls:mn,variant:Bn}=xt,Pn=Nt(xt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),gn=zt("input-number",Rn),Ln=(0,Me.Z)(gn),[Kn,sr,nr]=kt(gn,Ln),{compactSize:ln,compactItemClassnames:rn}=(0,Ie.ri)(gn,en);let Wn=te.createElement(y.Z,{className:`${gn}-handler-up-inner`}),Zn=te.createElement(Ot.Z,{className:`${gn}-handler-down-inner`});const Mt=typeof mn=="boolean"?mn:void 0;typeof mn=="object"&&(Wn=typeof mn.upIcon=="undefined"?Wn:te.createElement("span",{className:`${gn}-handler-up-inner`},mn.upIcon),Zn=typeof mn.downIcon=="undefined"?Zn:te.createElement("span",{className:`${gn}-handler-down-inner`},mn.downIcon));const{hasFeedback:Gt,status:St,isFormItemInput:Rt,feedbackIcon:Tt}=te.useContext(we.aM),_t=(0,Fe.F)(St,cn),bt=(0,ze.Z)(On=>{var Mn;return(Mn=_n!=null?_n:ln)!==null&&Mn!==void 0?Mn:On}),Ut=te.useContext(fe.Z),Lt=yn!=null?yn:Ut,[qt,Ft]=(0,ve.Z)("inputNumber",Bn,Ht),$t=Gt&&te.createElement(te.Fragment,null,Tt),Zt=be()({[`${gn}-lg`]:bt==="large",[`${gn}-sm`]:bt==="small",[`${gn}-rtl`]:en==="rtl",[`${gn}-in-form-item`]:Rt},sr),Xt=`${gn}-group`,Tn=te.createElement(at,Object.assign({ref:un,disabled:Lt,className:be()(nr,Ln,Cn,Nn,rn),upHandler:Wn,downHandler:Zn,prefixCls:gn,readOnly:hn,controls:Mt,prefix:Vt,suffix:$t||Wt,addonBefore:pn&&te.createElement(qe.Z,{form:!0,space:!0},pn),addonAfter:on&&te.createElement(qe.Z,{form:!0,space:!0},on),classNames:{input:Zt,variant:be()({[`${gn}-${qt}`]:Ft},(0,Fe.Z)(gn,_t,Gt)),affixWrapper:be()({[`${gn}-affix-wrapper-sm`]:bt==="small",[`${gn}-affix-wrapper-lg`]:bt==="large",[`${gn}-affix-wrapper-rtl`]:en==="rtl",[`${gn}-affix-wrapper-without-controls`]:mn===!1||Lt},sr),wrapper:be()({[`${Xt}-rtl`]:en==="rtl"},sr),groupWrapper:be()({[`${gn}-group-wrapper-sm`]:bt==="small",[`${gn}-group-wrapper-lg`]:bt==="large",[`${gn}-group-wrapper-rtl`]:en==="rtl",[`${gn}-group-wrapper-${qt}`]:Ft},(0,Fe.Z)(`${gn}-group-wrapper`,_t,Gt),sr)}},Pn));return Kn(Tn)}),Pt=yt,Kt=xt=>te.createElement(ne.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},te.createElement(yt,Object.assign({},xt)));Pt._InternalPanelDoNotUseOrYouWillBeFired=Kt;var nn=Pt},49397:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return xe}});var te=Te(59301),Ot=Te(92310),y=Te.n(Ot),je=Te(36901),be=Te(8654),z=Te(62487),E=Te(86013),ie=Te(82855),oe=Te(48755),ee=Te(2171),ce=Te(83397),x=Te(31756),ae=Te(56553),re=Te(24971),se=Te(70045),ue=Te(23826),pe=Te(53075);function he(ke){return!!(ke.prefix||ke.suffix||ke.allowClear||ke.showCount)}var ye=function(ke,De){var Be={};for(var Ae in ke)Object.prototype.hasOwnProperty.call(ke,Ae)&&De.indexOf(Ae)<0&&(Be[Ae]=ke[Ae]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,Ae=Object.getOwnPropertySymbols(ke);Se<Ae.length;Se++)De.indexOf(Ae[Se])<0&&Object.prototype.propertyIsEnumerable.call(ke,Ae[Se])&&(Be[Ae[Se]]=ke[Ae[Se]]);return Be},xe=(0,te.forwardRef)((ke,De)=>{const{prefixCls:Be,bordered:Ae=!0,status:Se,size:Ee,disabled:Oe,onBlur:Pe,onFocus:Le,suffix:Ne,allowClear:me,addonAfter:Ve,addonBefore:Ze,className:We,style:nt,styles:_e,rootClassName:Ue,onChange:tt,classNames:rt,variant:et}=ke,Ke=ye(ke,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Ye,direction:Xe,allowClear:ot,autoComplete:Qe,className:ft,style:at,classNames:qe,styles:Fe}=(0,oe.dj)("input"),Re=Ye("input",Be),ne=(0,te.useRef)(null),fe=(0,ce.Z)(Re),[Me,ze,we]=(0,pe.TI)(Re,Ue),[ve]=(0,pe.ZP)(Re,fe),{compactSize:Ie,compactItemClassnames:$e}=(0,se.ri)(Re,Xe),Ge=(0,x.Z)(nn=>{var xt;return(xt=Ee!=null?Ee:Ie)!==null&&xt!==void 0?xt:nn}),Je=te.useContext(ee.Z),ut=Oe!=null?Oe:Je,{status:lt,hasFeedback:vt,feedbackIcon:ct}=(0,te.useContext)(ae.aM),st=(0,ie.F)(lt,Se),At=he(ke)||!!vt,mt=(0,te.useRef)(At),Dt=(0,ue.Z)(ne,!0),jt=nn=>{Dt(),Pe==null||Pe(nn)},Et=nn=>{Dt(),Le==null||Le(nn)},kt=nn=>{Dt(),tt==null||tt(nn)},Nt=(vt||Ne)&&te.createElement(te.Fragment,null,Ne,vt&&ct),yt=(0,E.Z)(me!=null?me:ot),[Pt,Kt]=(0,re.Z)("input",et,Ae);return Me(ve(te.createElement(je.default,Object.assign({ref:(0,be.sQ)(De,ne),prefixCls:Re,autoComplete:Qe},Ke,{disabled:ut,onBlur:jt,onFocus:Et,style:Object.assign(Object.assign({},at),nt),styles:Object.assign(Object.assign({},Fe),_e),suffix:Nt,allowClear:yt,className:y()(We,Ue,we,fe,$e,ft),onChange:kt,addonBefore:Ze&&te.createElement(z.Z,{form:!0,space:!0},Ze),addonAfter:Ve&&te.createElement(z.Z,{form:!0,space:!0},Ve),classNames:Object.assign(Object.assign(Object.assign({},rt),qe),{input:y()({[`${Re}-sm`]:Ge==="small",[`${Re}-lg`]:Ge==="large",[`${Re}-rtl`]:Xe==="rtl"},rt==null?void 0:rt.input,qe.input,ze),variant:y()({[`${Re}-${Pt}`]:Kt},(0,ie.Z)(Re,st)),affixWrapper:y()({[`${Re}-affix-wrapper-sm`]:Ge==="small",[`${Re}-affix-wrapper-lg`]:Ge==="large",[`${Re}-affix-wrapper-rtl`]:Xe==="rtl"},ze),wrapper:y()({[`${Re}-group-rtl`]:Xe==="rtl"},ze),groupWrapper:y()({[`${Re}-group-wrapper-sm`]:Ge==="small",[`${Re}-group-wrapper-lg`]:Ge==="large",[`${Re}-group-wrapper-rtl`]:Xe==="rtl",[`${Re}-group-wrapper-${Pt}`]:Kt},(0,ie.Z)(`${Re}-group-wrapper`,st,vt),ze)})}))))})},79809:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return De}});var te=Te(59301),Ot=Te(92310),y=Te.n(Ot),je=Te(22711),be=Te(86013),z=Te(82855),E=Te(48755),ie=Te(2171),oe=Te(83397),ee=Te(31756),ce=Te(56553),x=Te(24971),ae=Te(70045),re=Te(30292),se=Te(53075),ue=Te(16931),pe=Te(51636),he=Te(64910);const ye=Be=>{const{componentCls:Ae,paddingLG:Se}=Be,Ee=`${Ae}-textarea`;return{[`textarea${Ae}`]:{maxWidth:"100%",height:"auto",minHeight:Be.controlHeight,lineHeight:Be.lineHeight,verticalAlign:"bottom",transition:`all ${Be.motionDurationSlow}`,resize:"vertical",[`&${Ae}-mouse-active`]:{transition:`all ${Be.motionDurationSlow}, height 0s, width 0s`}},[`${Ae}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Ee]:{position:"relative","&-show-count":{[`> ${Ae}`]:{height:"100%"},[`${Ae}-data-count`]:{position:"absolute",bottom:Be.calc(Be.fontSize).mul(Be.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Be.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${Ae},
&-affix-wrapper${Ee}-has-feedback ${Ae}
`]:{paddingInlineEnd:Se},[`&-affix-wrapper${Ae}-affix-wrapper`]:{padding:0,[`> textarea${Ae}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Be.calc(Be.controlHeight).sub(Be.calc(Be.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${Ae}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Ae}-clear-icon`]:{position:"absolute",insetInlineEnd:Be.paddingInline,insetBlockStart:Be.paddingXS},[`${Ee}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Be.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Ae}-affix-wrapper-sm`]:{[`${Ae}-suffix`]:{[`${Ae}-clear-icon`]:{insetInlineEnd:Be.paddingInlineSM}}}}}};var ge=(0,ue.I$)(["Input","TextArea"],Be=>{const Ae=(0,pe.mergeToken)(Be,(0,he.e)(Be));return[ye(Ae)]},he.T,{resetFont:!1}),xe=function(Be,Ae){var Se={};for(var Ee in Be)Object.prototype.hasOwnProperty.call(Be,Ee)&&Ae.indexOf(Ee)<0&&(Se[Ee]=Be[Ee]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ee=Object.getOwnPropertySymbols(Be);Oe<Ee.length;Oe++)Ae.indexOf(Ee[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Be,Ee[Oe])&&(Se[Ee[Oe]]=Be[Ee[Oe]]);return Se},De=(0,te.forwardRef)((Be,Ae)=>{var Se;const{prefixCls:Ee,bordered:Oe=!0,size:Pe,disabled:Le,status:Ne,allowClear:me,classNames:Ve,rootClassName:Ze,className:We,style:nt,styles:_e,variant:Ue,showCount:tt,onMouseDown:rt,onResize:et}=Be,Ke=xe(Be,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Ye,direction:Xe,allowClear:ot,autoComplete:Qe,className:ft,style:at,classNames:qe,styles:Fe}=(0,E.dj)("textArea"),Re=te.useContext(ie.Z),ne=Le!=null?Le:Re,{status:fe,hasFeedback:Me,feedbackIcon:ze}=te.useContext(ce.aM),we=(0,z.F)(fe,Ne),ve=te.useRef(null);te.useImperativeHandle(Ae,()=>{var Kt;return{resizableTextArea:(Kt=ve.current)===null||Kt===void 0?void 0:Kt.resizableTextArea,focus:nn=>{var xt,Ct;(0,re.nH)((Ct=(xt=ve.current)===null||xt===void 0?void 0:xt.resizableTextArea)===null||Ct===void 0?void 0:Ct.textArea,nn)},blur:()=>{var nn;return(nn=ve.current)===null||nn===void 0?void 0:nn.blur()}}});const Ie=Ye("input",Ee),$e=(0,oe.Z)(Ie),[Ge,Je,ut]=(0,se.TI)(Ie,Ze),[lt]=ge(Ie,$e),{compactSize:vt,compactItemClassnames:ct}=(0,ae.ri)(Ie,Xe),st=(0,ee.Z)(Kt=>{var nn;return(nn=Pe!=null?Pe:vt)!==null&&nn!==void 0?nn:Kt}),[At,mt]=(0,x.Z)("textArea",Ue,Oe),Dt=(0,be.Z)(me!=null?me:ot),[jt,Et]=te.useState(!1),[kt,Nt]=te.useState(!1),yt=Kt=>{Et(!0),rt==null||rt(Kt);const nn=()=>{Et(!1),document.removeEventListener("mouseup",nn)};document.addEventListener("mouseup",nn)},Pt=Kt=>{var nn,xt;if(et==null||et(Kt),jt&&typeof getComputedStyle=="function"){const Ct=(xt=(nn=ve.current)===null||nn===void 0?void 0:nn.nativeElement)===null||xt===void 0?void 0:xt.querySelector("textarea");Ct&&getComputedStyle(Ct).resize==="both"&&Nt(!0)}};return Ge(lt(te.createElement(je.default,Object.assign({autoComplete:Qe},Ke,{style:Object.assign(Object.assign({},at),nt),styles:Object.assign(Object.assign({},Fe),_e),disabled:ne,allowClear:Dt,className:y()(ut,$e,We,Ze,ct,ft,kt&&`${Ie}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Ve),qe),{textarea:y()({[`${Ie}-sm`]:st==="small",[`${Ie}-lg`]:st==="large"},Je,Ve==null?void 0:Ve.textarea,qe.textarea,jt&&`${Ie}-mouse-active`),variant:y()({[`${Ie}-${At}`]:mt},(0,z.Z)(Ie,we)),affixWrapper:y()(`${Ie}-textarea-affix-wrapper`,{[`${Ie}-affix-wrapper-rtl`]:Xe==="rtl",[`${Ie}-affix-wrapper-sm`]:st==="small",[`${Ie}-affix-wrapper-lg`]:st==="large",[`${Ie}-textarea-show-count`]:tt||((Se=Be.count)===null||Se===void 0?void 0:Se.show)},Je)}),prefixCls:Ie,suffix:Me&&te.createElement("span",{className:`${Ie}-textarea-suffix`},ze),showCount:tt,ref:ve,onResize:Pt,onMouseDown:yt}))))})},23826:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Ot}});var te=Te(59301);function Ot(y,je){const be=(0,te.useRef)([]),z=()=>{be.current.push(setTimeout(()=>{var E,ie,oe,ee;!((E=y.current)===null||E===void 0)&&E.input&&((ie=y.current)===null||ie===void 0?void 0:ie.input.getAttribute("type"))==="password"&&(!((oe=y.current)===null||oe===void 0)&&oe.input.hasAttribute("value"))&&((ee=y.current)===null||ee===void 0||ee.input.removeAttribute("value"))}))};return(0,te.useEffect)(()=>(je&&z(),()=>be.current.forEach(E=>{E&&clearTimeout(E)})),[]),z}},37568:function(In,Yt,Te){"use strict";Te.d(Yt,{default:function(){return qe}});var te=Te(59301),Ot=Te(92310),y=Te.n(Ot),je=Te(48755),be=Te(56553),z=Te(53075),ie=Fe=>{const{getPrefixCls:Re,direction:ne}=(0,te.useContext)(je.E_),{prefixCls:fe,className:Me}=Fe,ze=Re("input-group",fe),we=Re("input"),[ve,Ie,$e]=(0,z.ZP)(we),Ge=y()(ze,$e,{[`${ze}-lg`]:Fe.size==="large",[`${ze}-sm`]:Fe.size==="small",[`${ze}-compact`]:Fe.compact,[`${ze}-rtl`]:ne==="rtl"},Ie,Me),Je=(0,te.useContext)(be.aM),ut=(0,te.useMemo)(()=>Object.assign(Object.assign({},Je),{isFormItemInput:!1}),[Je]);return ve(te.createElement("span",{className:Ge,style:Fe.style,onMouseEnter:Fe.onMouseEnter,onMouseLeave:Fe.onMouseLeave,onFocus:Fe.onFocus,onBlur:Fe.onBlur},te.createElement(be.aM.Provider,{value:ut},Fe.children)))},oe=Te(49397),ee=Te(94480),ce=Te(6089),x=Te(26112),ae=Te(82855),re=Te(31756),se=Te(16931),ue=Te(51636),pe=Te(64910);const he=Fe=>{const{componentCls:Re,paddingXS:ne}=Fe;return{[Re]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ne,"&-rtl":{direction:"rtl"},[`${Re}-input`]:{textAlign:"center",paddingInline:Fe.paddingXXS},[`&${Re}-sm ${Re}-input`]:{paddingInline:Fe.calc(Fe.paddingXXS).div(2).equal()},[`&${Re}-lg ${Re}-input`]:{paddingInline:Fe.paddingXS}}}};var ye=(0,se.I$)(["Input","OTP"],Fe=>{const Re=(0,ue.mergeToken)(Fe,(0,pe.e)(Fe));return[he(Re)]},pe.T),ge=Te(16089),xe=function(Fe,Re){var ne={};for(var fe in Fe)Object.prototype.hasOwnProperty.call(Fe,fe)&&Re.indexOf(fe)<0&&(ne[fe]=Fe[fe]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,fe=Object.getOwnPropertySymbols(Fe);Me<fe.length;Me++)Re.indexOf(fe[Me])<0&&Object.prototype.propertyIsEnumerable.call(Fe,fe[Me])&&(ne[fe[Me]]=Fe[fe[Me]]);return ne},De=te.forwardRef((Fe,Re)=>{const{value:ne,onChange:fe,onActiveChange:Me,index:ze,mask:we}=Fe,ve=xe(Fe,["value","onChange","onActiveChange","index","mask"]),Ie=ne&&typeof we=="string"?we:ne,$e=vt=>{fe(ze,vt.target.value)},Ge=te.useRef(null);te.useImperativeHandle(Re,()=>Ge.current);const Je=()=>{(0,ge.Z)(()=>{var vt;const ct=(vt=Ge.current)===null||vt===void 0?void 0:vt.input;document.activeElement===ct&&ct&&ct.select()})},ut=vt=>{const{key:ct,ctrlKey:st,metaKey:At}=vt;ct==="ArrowLeft"?Me(ze-1):ct==="ArrowRight"?Me(ze+1):ct==="z"&&(st||At)&&vt.preventDefault(),Je()},lt=vt=>{vt.key==="Backspace"&&!ne&&Me(ze-1),Je()};return te.createElement(oe.Z,Object.assign({type:we===!0?"password":"text"},ve,{ref:Ge,value:Ie,onInput:$e,onFocus:Je,onKeyDown:ut,onKeyUp:lt,onMouseDown:Je,onMouseUp:Je}))}),Be=function(Fe,Re){var ne={};for(var fe in Fe)Object.prototype.hasOwnProperty.call(Fe,fe)&&Re.indexOf(fe)<0&&(ne[fe]=Fe[fe]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,fe=Object.getOwnPropertySymbols(Fe);Me<fe.length;Me++)Re.indexOf(fe[Me])<0&&Object.prototype.propertyIsEnumerable.call(Fe,fe[Me])&&(ne[fe[Me]]=Fe[fe[Me]]);return ne};function Ae(Fe){return(Fe||"").split("")}const Se=Fe=>{const{index:Re,prefixCls:ne,separator:fe}=Fe,Me=typeof fe=="function"?fe(Re):fe;return Me?te.createElement("span",{className:`${ne}-separator`},Me):null};var Oe=te.forwardRef((Fe,Re)=>{const{prefixCls:ne,length:fe=6,size:Me,defaultValue:ze,value:we,onChange:ve,formatter:Ie,separator:$e,variant:Ge,disabled:Je,status:ut,autoFocus:lt,mask:vt,type:ct,onInput:st,inputMode:At}=Fe,mt=Be(Fe,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Dt,direction:jt}=te.useContext(je.E_),Et=Dt("otp",ne),kt=(0,x.Z)(mt,{aria:!0,data:!0,attr:!0}),[Nt,yt,Pt]=ye(Et),Kt=(0,re.Z)(Vt=>Me!=null?Me:Vt),nn=te.useContext(be.aM),xt=(0,ae.F)(nn.status,ut),Ct=te.useMemo(()=>Object.assign(Object.assign({},nn),{status:xt,hasFeedback:!1,feedbackIcon:null}),[nn,xt]),zt=te.useRef(null),en=te.useRef({});te.useImperativeHandle(Re,()=>({focus:()=>{var Vt;(Vt=en.current[0])===null||Vt===void 0||Vt.focus()},blur:()=>{var Vt;for(let Wt=0;Wt<fe;Wt+=1)(Vt=en.current[Wt])===null||Vt===void 0||Vt.blur()},nativeElement:zt.current}));const un=Vt=>Ie?Ie(Vt):Vt,[Cn,Nn]=te.useState(()=>Ae(un(ze||"")));te.useEffect(()=>{we!==void 0&&Nn(Ae(we))},[we]);const _n=(0,ce.Z)(Vt=>{Nn(Vt),st&&st(Vt),ve&&Vt.length===fe&&Vt.every(Wt=>Wt)&&Vt.some((Wt,Ht)=>Cn[Ht]!==Wt)&&ve(Vt.join(""))}),yn=(0,ce.Z)((Vt,Wt)=>{let Ht=(0,ee.Z)(Cn);for(let cn=0;cn<Vt;cn+=1)Ht[cn]||(Ht[cn]="");Wt.length<=1?Ht[Vt]=Wt:Ht=Ht.slice(0,Vt).concat(Ae(Wt)),Ht=Ht.slice(0,fe);for(let cn=Ht.length-1;cn>=0&&!Ht[cn];cn-=1)Ht.pop();const hn=un(Ht.map(cn=>cn||" ").join(""));return Ht=Ae(hn).map((cn,mn)=>cn===" "&&!Ht[mn]?Ht[mn]:cn),Ht}),Rn=(Vt,Wt)=>{var Ht;const hn=yn(Vt,Wt),cn=Math.min(Vt+Wt.length,fe-1);cn!==Vt&&hn[Vt]!==void 0&&((Ht=en.current[cn])===null||Ht===void 0||Ht.focus()),_n(hn)},pn=Vt=>{var Wt;(Wt=en.current[Vt])===null||Wt===void 0||Wt.focus()},on={variant:Ge,disabled:Je,status:xt,mask:vt,type:ct,inputMode:At};return Nt(te.createElement("div",Object.assign({},kt,{ref:zt,className:y()(Et,{[`${Et}-sm`]:Kt==="small",[`${Et}-lg`]:Kt==="large",[`${Et}-rtl`]:jt==="rtl"},Pt,yt)}),te.createElement(be.aM.Provider,{value:Ct},Array.from({length:fe}).map((Vt,Wt)=>{const Ht=`otp-${Wt}`,hn=Cn[Wt]||"";return te.createElement(te.Fragment,{key:Ht},te.createElement(De,Object.assign({ref:cn=>{en.current[Wt]=cn},index:Wt,size:Kt,htmlSize:1,className:`${Et}-input`,onChange:Rn,value:hn,onActiveChange:pn,autoFocus:Wt===0&&lt},on)),Wt<fe-1&&te.createElement(Se,{separator:$e,index:Wt,prefixCls:Et}))}))))}),Pe=Te(73331),Le=Te(15277),Ne=Te(2738),me=Te(8654),Ve=Te(2171),Ze=Te(23826),We=function(Fe,Re){var ne={};for(var fe in Fe)Object.prototype.hasOwnProperty.call(Fe,fe)&&Re.indexOf(fe)<0&&(ne[fe]=Fe[fe]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,fe=Object.getOwnPropertySymbols(Fe);Me<fe.length;Me++)Re.indexOf(fe[Me])<0&&Object.prototype.propertyIsEnumerable.call(Fe,fe[Me])&&(ne[fe[Me]]=Fe[fe[Me]]);return ne};const nt=Fe=>Fe?te.createElement(Le.Z,null):te.createElement(Pe.Z,null),_e={click:"onClick",hover:"onMouseOver"};var tt=te.forwardRef((Fe,Re)=>{const{disabled:ne,action:fe="click",visibilityToggle:Me=!0,iconRender:ze=nt}=Fe,we=te.useContext(Ve.Z),ve=ne!=null?ne:we,Ie=typeof Me=="object"&&Me.visible!==void 0,[$e,Ge]=(0,te.useState)(()=>Ie?Me.visible:!1),Je=(0,te.useRef)(null);te.useEffect(()=>{Ie&&Ge(Me.visible)},[Ie,Me]);const ut=(0,Ze.Z)(Je),lt=()=>{var Kt;if(ve)return;$e&&ut();const nn=!$e;Ge(nn),typeof Me=="object"&&((Kt=Me.onVisibleChange)===null||Kt===void 0||Kt.call(Me,nn))},vt=Kt=>{const nn=_e[fe]||"",xt=ze($e),Ct={[nn]:lt,className:`${Kt}-icon`,key:"passwordIcon",onMouseDown:zt=>{zt.preventDefault()},onMouseUp:zt=>{zt.preventDefault()}};return te.cloneElement(te.isValidElement(xt)?xt:te.createElement("span",null,xt),Ct)},{className:ct,prefixCls:st,inputPrefixCls:At,size:mt}=Fe,Dt=We(Fe,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:jt}=te.useContext(je.E_),Et=jt("input",At),kt=jt("input-password",st),Nt=Me&&vt(kt),yt=y()(kt,ct,{[`${kt}-${mt}`]:!!mt}),Pt=Object.assign(Object.assign({},(0,Ne.Z)(Dt,["suffix","iconRender","visibilityToggle"])),{type:$e?"text":"password",className:yt,prefixCls:Et,suffix:Nt});return mt&&(Pt.size=mt),te.createElement(oe.Z,Object.assign({ref:(0,me.sQ)(Re,Je)},Pt))}),rt=Te(47472),et=Te(22703),Ke=Te(7939),Ye=Te(70045),Xe=function(Fe,Re){var ne={};for(var fe in Fe)Object.prototype.hasOwnProperty.call(Fe,fe)&&Re.indexOf(fe)<0&&(ne[fe]=Fe[fe]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,fe=Object.getOwnPropertySymbols(Fe);Me<fe.length;Me++)Re.indexOf(fe[Me])<0&&Object.prototype.propertyIsEnumerable.call(Fe,fe[Me])&&(ne[fe[Me]]=Fe[fe[Me]]);return ne},Qe=te.forwardRef((Fe,Re)=>{const{prefixCls:ne,inputPrefixCls:fe,className:Me,size:ze,suffix:we,enterButton:ve=!1,addonAfter:Ie,loading:$e,disabled:Ge,onSearch:Je,onChange:ut,onCompositionStart:lt,onCompositionEnd:vt}=Fe,ct=Xe(Fe,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:st,direction:At}=te.useContext(je.E_),mt=te.useRef(!1),Dt=st("input-search",ne),jt=st("input",fe),{compactSize:Et}=(0,Ye.ri)(Dt,At),kt=(0,re.Z)(Rn=>{var pn;return(pn=ze!=null?ze:Et)!==null&&pn!==void 0?pn:Rn}),Nt=te.useRef(null),yt=Rn=>{Rn!=null&&Rn.target&&Rn.type==="click"&&Je&&Je(Rn.target.value,Rn,{source:"clear"}),ut==null||ut(Rn)},Pt=Rn=>{var pn;document.activeElement===((pn=Nt.current)===null||pn===void 0?void 0:pn.input)&&Rn.preventDefault()},Kt=Rn=>{var pn,on;Je&&Je((on=(pn=Nt.current)===null||pn===void 0?void 0:pn.input)===null||on===void 0?void 0:on.value,Rn,{source:"input"})},nn=Rn=>{mt.current||$e||Kt(Rn)},xt=typeof ve=="boolean"?te.createElement(rt.Z,null):null,Ct=`${Dt}-button`;let zt;const en=ve||{},un=en.type&&en.type.__ANT_BUTTON===!0;un||en.type==="button"?zt=(0,et.Tm)(en,Object.assign({onMouseDown:Pt,onClick:Rn=>{var pn,on;(on=(pn=en==null?void 0:en.props)===null||pn===void 0?void 0:pn.onClick)===null||on===void 0||on.call(pn,Rn),Kt(Rn)},key:"enterButton"},un?{className:Ct,size:kt}:{})):zt=te.createElement(Ke.ZP,{className:Ct,type:ve?"primary":void 0,size:kt,disabled:Ge,key:"enterButton",onMouseDown:Pt,onClick:Kt,loading:$e,icon:xt},ve),Ie&&(zt=[zt,(0,et.Tm)(Ie,{key:"addonAfter"})]);const Cn=y()(Dt,{[`${Dt}-rtl`]:At==="rtl",[`${Dt}-${kt}`]:!!kt,[`${Dt}-with-button`]:!!ve},Me),Nn=Object.assign(Object.assign({},ct),{className:Cn,prefixCls:jt,type:"search"}),_n=Rn=>{mt.current=!0,lt==null||lt(Rn)},yn=Rn=>{mt.current=!1,vt==null||vt(Rn)};return te.createElement(oe.Z,Object.assign({ref:(0,me.sQ)(Nt,Re),onPressEnter:nn},Nn,{size:kt,onCompositionStart:_n,onCompositionEnd:yn,addonAfter:zt,suffix:we,onChange:yt,disabled:Ge}))}),ft=Te(79809);const at=oe.Z;at.Group=ie,at.Search=Qe,at.TextArea=ft.Z,at.Password=tt,at.OTP=Oe;var qe=at},24303:function(In,Yt,Te){"use strict";Te.d(Yt,{D:function(){return Be},Z:function(){return Ee}});var te=Te(59301),Ot=Te(54476),y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},je=y,be=Te(7657),z=function(Pe,Le){return te.createElement(be.Z,(0,Ot.Z)({},Pe,{ref:Le,icon:je}))},E=te.forwardRef(z),ie=E,oe=Te(33853),ee=Te(38819),ce=Te(92310),x=Te.n(ce),ae=Te(2738),re=Te(48755),se=Te(6989),ue=Te(36237),pe=Te(48923),he=Te(16931);const ye=Oe=>{const{componentCls:Pe,siderBg:Le,motionDurationMid:Ne,motionDurationSlow:me,antCls:Ve,triggerHeight:Ze,triggerColor:We,triggerBg:nt,headerHeight:_e,zeroTriggerWidth:Ue,zeroTriggerHeight:tt,borderRadiusLG:rt,lightSiderBg:et,lightTriggerColor:Ke,lightTriggerBg:Ye,bodyBg:Xe}=Oe;return{[Pe]:{position:"relative",minWidth:0,background:Le,transition:`all ${Ne}, background 0s`,"&-has-trigger":{paddingBottom:Ze},"&-right":{order:1},[`${Pe}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ve}-menu${Ve}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Pe}-children`]:{overflow:"hidden"},[`${Pe}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Ze,color:We,lineHeight:(0,ue.unit)(Ze),textAlign:"center",background:nt,cursor:"pointer",transition:`all ${Ne}`},[`${Pe}-zero-width-trigger`]:{position:"absolute",top:_e,insetInlineEnd:Oe.calc(Ue).mul(-1).equal(),zIndex:1,width:Ue,height:tt,color:We,fontSize:Oe.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Le,borderRadius:`0 ${(0,ue.unit)(rt)} ${(0,ue.unit)(rt)} 0`,cursor:"pointer",transition:`background ${me} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${me}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Oe.calc(Ue).mul(-1).equal(),borderRadius:`${(0,ue.unit)(rt)} 0 0 ${(0,ue.unit)(rt)}`}},"&-light":{background:et,[`${Pe}-trigger`]:{color:Ke,background:Ye},[`${Pe}-zero-width-trigger`]:{color:Ke,background:Ye,border:`1px solid ${Xe}`,borderInlineStart:0}}}}};var ge=(0,he.I$)(["Layout","Sider"],Oe=>[ye(Oe)],pe.eh,{deprecatedTokens:pe.jn}),xe=function(Oe,Pe){var Le={};for(var Ne in Oe)Object.prototype.hasOwnProperty.call(Oe,Ne)&&Pe.indexOf(Ne)<0&&(Le[Ne]=Oe[Ne]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Ne=Object.getOwnPropertySymbols(Oe);me<Ne.length;me++)Pe.indexOf(Ne[me])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Ne[me])&&(Le[Ne[me]]=Oe[Ne[me]]);return Le};const ke={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},De=Oe=>!Number.isNaN(Number.parseFloat(Oe))&&isFinite(Oe),Be=te.createContext({}),Ae=(()=>{let Oe=0;return function(){let Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Oe+=1,`${Pe}${Oe}`}})();var Ee=te.forwardRef((Oe,Pe)=>{const{prefixCls:Le,className:Ne,trigger:me,children:Ve,defaultCollapsed:Ze=!1,theme:We="dark",style:nt={},collapsible:_e=!1,reverseArrow:Ue=!1,width:tt=200,collapsedWidth:rt=80,zeroWidthTriggerStyle:et,breakpoint:Ke,onCollapse:Ye,onBreakpoint:Xe}=Oe,ot=xe(Oe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Qe}=(0,te.useContext)(se.V),[ft,at]=(0,te.useState)("collapsed"in Oe?Oe.collapsed:Ze),[qe,Fe]=(0,te.useState)(!1);(0,te.useEffect)(()=>{"collapsed"in Oe&&at(Oe.collapsed)},[Oe.collapsed]);const Re=(kt,Nt)=>{"collapsed"in Oe||at(kt),Ye==null||Ye(kt,Nt)},{getPrefixCls:ne,direction:fe}=(0,te.useContext)(re.E_),Me=ne("layout-sider",Le),[ze,we,ve]=ge(Me),Ie=(0,te.useRef)(null);Ie.current=kt=>{Fe(kt.matches),Xe==null||Xe(kt.matches),ft!==kt.matches&&Re(kt.matches,"responsive")},(0,te.useEffect)(()=>{function kt(yt){return Ie.current(yt)}let Nt;if(typeof window!="undefined"){const{matchMedia:yt}=window;if(yt&&Ke&&Ke in ke){Nt=yt(`screen and (max-width: ${ke[Ke]})`);try{Nt.addEventListener("change",kt)}catch(Pt){Nt.addListener(kt)}kt(Nt)}}return()=>{try{Nt==null||Nt.removeEventListener("change",kt)}catch(yt){Nt==null||Nt.removeListener(kt)}}},[Ke]),(0,te.useEffect)(()=>{const kt=Ae("ant-sider-");return Qe.addSider(kt),()=>Qe.removeSider(kt)},[]);const $e=()=>{Re(!ft,"clickTrigger")},Ge=(0,ae.Z)(ot,["collapsed"]),Je=ft?rt:tt,ut=De(Je)?`${Je}px`:String(Je),lt=parseFloat(String(rt||0))===0?te.createElement("span",{onClick:$e,className:x()(`${Me}-zero-width-trigger`,`${Me}-zero-width-trigger-${Ue?"right":"left"}`),style:et},me||te.createElement(ie,null)):null,vt=fe==="rtl"==!Ue,At={expanded:vt?te.createElement(ee.Z,null):te.createElement(oe.Z,null),collapsed:vt?te.createElement(oe.Z,null):te.createElement(ee.Z,null)}[ft?"collapsed":"expanded"],mt=me!==null?lt||te.createElement("div",{className:`${Me}-trigger`,onClick:$e,style:{width:ut}},me||At):null,Dt=Object.assign(Object.assign({},nt),{flex:`0 0 ${ut}`,maxWidth:ut,minWidth:ut,width:ut}),jt=x()(Me,`${Me}-${We}`,{[`${Me}-collapsed`]:!!ft,[`${Me}-has-trigger`]:_e&&me!==null&&!lt,[`${Me}-below`]:!!qe,[`${Me}-zero-width`]:parseFloat(ut)===0},Ne,we,ve),Et=te.useMemo(()=>({siderCollapsed:ft}),[ft]);return ze(te.createElement(Be.Provider,{value:Et},te.createElement("aside",Object.assign({className:jt},Ge,{style:Dt,ref:Pe}),te.createElement("div",{className:`${Me}-children`},Ve),_e||qe&&lt?mt:null)))})},6989:function(In,Yt,Te){"use strict";Te.d(Yt,{V:function(){return Ot}});var te=Te(59301);const Ot=te.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(In,Yt,Te){"use strict";Te.d(Yt,{eh:function(){return je},jn:function(){return be}});var te=Te(36237),Ot=Te(16931);const y=z=>{const{antCls:E,componentCls:ie,colorText:oe,footerBg:ee,headerHeight:ce,headerPadding:x,headerColor:ae,footerPadding:re,fontSize:se,bodyBg:ue,headerBg:pe}=z;return{[ie]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ue,"&, *":{boxSizing:"border-box"},[`&${ie}-has-sider`]:{flexDirection:"row",[`> ${ie}, > ${ie}-content`]:{width:0}},[`${ie}-header, &${ie}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${ie}-header`]:{height:ce,padding:x,color:ae,lineHeight:(0,te.unit)(ce),background:pe,[`${E}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:re,color:oe,fontSize:se,background:ee},[`${ie}-content`]:{flex:"auto",color:oe,minHeight:0}}},je=z=>{const{colorBgLayout:E,controlHeight:ie,controlHeightLG:oe,colorText:ee,controlHeightSM:ce,marginXXS:x,colorTextLightSolid:ae,colorBgContainer:re}=z,se=oe*1.25;return{colorBgHeader:"#001529",colorBgBody:E,colorBgTrigger:"#002140",bodyBg:E,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${se}px`,headerColor:ee,footerPadding:`${ce}px ${se}px`,footerBg:E,siderBg:"#001529",triggerHeight:oe+x*2,triggerBg:"#002140",triggerColor:ae,zeroTriggerWidth:oe,zeroTriggerHeight:oe,lightSiderBg:re,lightTriggerBg:re,lightTriggerColor:ee}},be=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Yt.ZP=(0,Ot.I$)("Layout",z=>[y(z)],je,{deprecatedTokens:be})},78857:function(In,Yt,Te){"use strict";Te.d(Yt,{J:function(){return z}});var te=Te(59301),Ot=Te(8654),y=Te(62487),je=function(E,ie){var oe={};for(var ee in E)Object.prototype.hasOwnProperty.call(E,ee)&&ie.indexOf(ee)<0&&(oe[ee]=E[ee]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ee=Object.getOwnPropertySymbols(E);ce<ee.length;ce++)ie.indexOf(ee[ce])<0&&Object.prototype.propertyIsEnumerable.call(E,ee[ce])&&(oe[ee[ce]]=E[ee[ce]]);return oe};const be=te.createContext(null),z=te.forwardRef((E,ie)=>{const{children:oe}=E,ee=je(E,["children"]),ce=te.useContext(be),x=te.useMemo(()=>Object.assign(Object.assign({},ce),ee),[ce,ee.prefixCls,ee.mode,ee.selectable,ee.rootClassName]),ae=(0,Ot.t4)(oe),re=(0,Ot.x1)(ie,ae?(0,Ot.C4)(oe):null);return te.createElement(be.Provider,{value:x},te.createElement(y.Z,{space:!0},ae?te.cloneElement(oe,{ref:re}):oe))});Yt.Z=be},93041:function(In,Yt,Te){"use strict";Te.d(Yt,{default:function(){return ze}});var te=Te(59301),Ot=Te(28321),y=Te(24303),je=Te(18785),be=Te(92310),z=Te.n(be),E=Te(6089),ie=Te(2738),oe=Te(86641),ee=Te(22703),ce=Te(48755),x=Te(83397),re=(0,te.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),se=function(we,ve){var Ie={};for(var $e in we)Object.prototype.hasOwnProperty.call(we,$e)&&ve.indexOf($e)<0&&(Ie[$e]=we[$e]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,$e=Object.getOwnPropertySymbols(we);Ge<$e.length;Ge++)ve.indexOf($e[Ge])<0&&Object.prototype.propertyIsEnumerable.call(we,$e[Ge])&&(Ie[$e[Ge]]=we[$e[Ge]]);return Ie},pe=we=>{const{prefixCls:ve,className:Ie,dashed:$e}=we,Ge=se(we,["prefixCls","className","dashed"]),{getPrefixCls:Je}=te.useContext(ce.E_),ut=Je("menu",ve),lt=z()({[`${ut}-item-divider-dashed`]:!!$e},Ie);return te.createElement(Ot.iz,Object.assign({className:lt},Ge))},he=Te(11592),ye=Te(25399),xe=we=>{var ve;const{className:Ie,children:$e,icon:Ge,title:Je,danger:ut,extra:lt}=we,{prefixCls:vt,firstLevel:ct,direction:st,disableMenuItemTitleTooltip:At,inlineCollapsed:mt}=te.useContext(re),Dt=Pt=>{const Kt=$e==null?void 0:$e[0],nn=te.createElement("span",{className:z()(`${vt}-title-content`,{[`${vt}-title-content-with-extra`]:!!lt||lt===0})},$e);return(!Ge||te.isValidElement($e)&&$e.type==="span")&&$e&&Pt&&ct&&typeof Kt=="string"?te.createElement("div",{className:`${vt}-inline-collapsed-noicon`},Kt.charAt(0)):nn},{siderCollapsed:jt}=te.useContext(y.D);let Et=Je;typeof Je=="undefined"?Et=ct?$e:"":Je===!1&&(Et="");const kt={title:Et};!jt&&!mt&&(kt.title=null,kt.open=!1);const Nt=(0,he.Z)($e).length;let yt=te.createElement(Ot.ck,Object.assign({},(0,ie.Z)(we,["title","icon","danger"]),{className:z()({[`${vt}-item-danger`]:ut,[`${vt}-item-only-child`]:(Ge?Nt+1:Nt)===1},Ie),title:typeof Je=="string"?Je:void 0}),(0,ee.Tm)(Ge,{className:z()(te.isValidElement(Ge)?(ve=Ge.props)===null||ve===void 0?void 0:ve.className:"",`${vt}-item-icon`)}),Dt(mt));return At||(yt=te.createElement(ye.Z,Object.assign({},kt,{placement:st==="rtl"?"left":"right",classNames:{root:`${vt}-inline-collapsed-tooltip`}}),yt)),yt},ke=Te(78857),De=Te(36237),Be=Te(17835),Ae=Te(63356),Se=Te(34961),Ee=Te(46e3),Oe=Te(34925),Pe=Te(16931),Le=Te(51636),me=we=>{const{componentCls:ve,motionDurationSlow:Ie,horizontalLineHeight:$e,colorSplit:Ge,lineWidth:Je,lineType:ut,itemPaddingInline:lt}=we;return{[`${ve}-horizontal`]:{lineHeight:$e,border:0,borderBottom:`${(0,De.unit)(Je)} ${ut} ${Ge}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ve}-item, ${ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:lt},[`> ${ve}-item:hover,
> ${ve}-item-active,
> ${ve}-submenu ${ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ve}-item, ${ve}-submenu-title`]:{transition:[`border-color ${Ie}`,`background ${Ie}`].join(",")},[`${ve}-submenu-arrow`]:{display:"none"}}}},Ze=we=>{let{componentCls:ve,menuArrowOffset:Ie,calc:$e}=we;return{[`${ve}-rtl`]:{direction:"rtl"},[`${ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ve}-rtl${ve}-vertical,
${ve}-submenu-rtl ${ve}-vertical`]:{[`${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,De.unit)($e(Ie).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,De.unit)(Ie)})`}}}}};const We=we=>Object.assign({},(0,Ae.oN)(we));var _e=(we,ve)=>{const{componentCls:Ie,itemColor:$e,itemSelectedColor:Ge,subMenuItemSelectedColor:Je,groupTitleColor:ut,itemBg:lt,subMenuItemBg:vt,itemSelectedBg:ct,activeBarHeight:st,activeBarWidth:At,activeBarBorderWidth:mt,motionDurationSlow:Dt,motionEaseInOut:jt,motionEaseOut:Et,itemPaddingInline:kt,motionDurationMid:Nt,itemHoverColor:yt,lineType:Pt,colorSplit:Kt,itemDisabledColor:nn,dangerItemColor:xt,dangerItemHoverColor:Ct,dangerItemSelectedColor:zt,dangerItemActiveBg:en,dangerItemSelectedBg:un,popupBg:Cn,itemHoverBg:Nn,itemActiveBg:_n,menuSubMenuBg:yn,horizontalItemSelectedColor:Rn,horizontalItemSelectedBg:pn,horizontalItemBorderRadius:on,horizontalItemHoverBg:Vt}=we;return{[`${Ie}-${ve}, ${Ie}-${ve} > ${Ie}`]:{color:$e,background:lt,[`&${Ie}-root:focus-visible`]:Object.assign({},We(we)),[`${Ie}-item`]:{"&-group-title, &-extra":{color:ut}},[`${Ie}-submenu-selected > ${Ie}-submenu-title`]:{color:Je},[`${Ie}-item, ${Ie}-submenu-title`]:{color:$e,[`&:not(${Ie}-item-disabled):focus-visible`]:Object.assign({},We(we))},[`${Ie}-item-disabled, ${Ie}-submenu-disabled`]:{color:`${nn} !important`},[`${Ie}-item:not(${Ie}-item-selected):not(${Ie}-submenu-selected)`]:{[`&:hover, > ${Ie}-submenu-title:hover`]:{color:yt}},[`&:not(${Ie}-horizontal)`]:{[`${Ie}-item:not(${Ie}-item-selected)`]:{"&:hover":{backgroundColor:Nn},"&:active":{backgroundColor:_n}},[`${Ie}-submenu-title`]:{"&:hover":{backgroundColor:Nn},"&:active":{backgroundColor:_n}}},[`${Ie}-item-danger`]:{color:xt,[`&${Ie}-item:hover`]:{[`&:not(${Ie}-item-selected):not(${Ie}-submenu-selected)`]:{color:Ct}},[`&${Ie}-item:active`]:{background:en}},[`${Ie}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ie}-item-selected`]:{color:Ge,[`&${Ie}-item-danger`]:{color:zt},"a, a:hover":{color:"inherit"}},[`& ${Ie}-item-selected`]:{backgroundColor:ct,[`&${Ie}-item-danger`]:{backgroundColor:un}},[`&${Ie}-submenu > ${Ie}`]:{backgroundColor:yn},[`&${Ie}-popup > ${Ie}`]:{backgroundColor:Cn},[`&${Ie}-submenu-popup > ${Ie}`]:{backgroundColor:Cn},[`&${Ie}-horizontal`]:Object.assign(Object.assign({},ve==="dark"?{borderBottom:0}:{}),{[`> ${Ie}-item, > ${Ie}-submenu`]:{top:mt,marginTop:we.calc(mt).mul(-1).equal(),marginBottom:0,borderRadius:on,"&::after":{position:"absolute",insetInline:kt,bottom:0,borderBottom:`${(0,De.unit)(st)} solid transparent`,transition:`border-color ${Dt} ${jt}`,content:'""'},"&:hover, &-active, &-open":{background:Vt,"&::after":{borderBottomWidth:st,borderBottomColor:Rn}},"&-selected":{color:Rn,backgroundColor:pn,"&:hover":{backgroundColor:pn},"&::after":{borderBottomWidth:st,borderBottomColor:Rn}}}}),[`&${Ie}-root`]:{[`&${Ie}-inline, &${Ie}-vertical`]:{borderInlineEnd:`${(0,De.unit)(mt)} ${Pt} ${Kt}`}},[`&${Ie}-inline`]:{[`${Ie}-sub${Ie}-inline`]:{background:vt},[`${Ie}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,De.unit)(At)} solid ${Ge}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Nt} ${Et}`,`opacity ${Nt} ${Et}`].join(","),content:'""'},[`&${Ie}-item-danger`]:{"&::after":{borderInlineEndColor:zt}}},[`${Ie}-selected, ${Ie}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Nt} ${jt}`,`opacity ${Nt} ${jt}`].join(",")}}}}}};const Ue=we=>{const{componentCls:ve,itemHeight:Ie,itemMarginInline:$e,padding:Ge,menuArrowSize:Je,marginXS:ut,itemMarginBlock:lt,itemWidth:vt,itemPaddingInline:ct}=we,st=we.calc(Je).add(Ge).add(ut).equal();return{[`${ve}-item`]:{position:"relative",overflow:"hidden"},[`${ve}-item, ${ve}-submenu-title`]:{height:Ie,lineHeight:(0,De.unit)(Ie),paddingInline:ct,overflow:"hidden",textOverflow:"ellipsis",marginInline:$e,marginBlock:lt,width:vt},[`> ${ve}-item,
> ${ve}-submenu > ${ve}-submenu-title`]:{height:Ie,lineHeight:(0,De.unit)(Ie)},[`${ve}-item-group-list ${ve}-submenu-title,
${ve}-submenu-title`]:{paddingInlineEnd:st}}};var rt=we=>{const{componentCls:ve,iconCls:Ie,itemHeight:$e,colorTextLightSolid:Ge,dropdownWidth:Je,controlHeightLG:ut,motionEaseOut:lt,paddingXL:vt,itemMarginInline:ct,fontSizeLG:st,motionDurationFast:At,motionDurationSlow:mt,paddingXS:Dt,boxShadowSecondary:jt,collapsedWidth:Et,collapsedIconSize:kt}=we,Nt={height:$e,lineHeight:(0,De.unit)($e),listStylePosition:"inside",listStyleType:"disc"};return[{[ve]:{"&-inline, &-vertical":Object.assign({[`&${ve}-root`]:{boxShadow:"none"}},Ue(we))},[`${ve}-submenu-popup`]:{[`${ve}-vertical`]:Object.assign(Object.assign({},Ue(we)),{boxShadow:jt})}},{[`${ve}-submenu-popup ${ve}-vertical${ve}-sub`]:{minWidth:Je,maxHeight:`calc(100vh - ${(0,De.unit)(we.calc(ut).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ve}-inline`]:{width:"100%",[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${mt}`,`background ${mt}`,`padding ${At} ${lt}`].join(","),[`> ${ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ve}-sub${ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ve}-submenu > ${ve}-submenu-title`]:Nt,[`& ${ve}-item-group-title`]:{paddingInlineStart:vt}},[`${ve}-item`]:Nt}},{[`${ve}-inline-collapsed`]:{width:Et,[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu ${ve}-submenu-title`]:{[`> ${ve}-inline-collapsed-noicon`]:{fontSize:st,textAlign:"center"}}},[`> ${ve}-item,
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-item,
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-submenu > ${ve}-submenu-title,
> ${ve}-submenu > ${ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,De.unit)(we.calc(kt).div(2).equal())} - ${(0,De.unit)(ct)})`,textOverflow:"clip",[`
${ve}-submenu-arrow,
${ve}-submenu-expand-icon
`]:{opacity:0},[`${ve}-item-icon, ${Ie}`]:{margin:0,fontSize:kt,lineHeight:(0,De.unit)($e),"+ span":{display:"inline-block",opacity:0}}},[`${ve}-item-icon, ${Ie}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ve}-item-icon, ${Ie}`]:{display:"none"},"a, a:hover":{color:Ge}},[`${ve}-item-group-title`]:Object.assign(Object.assign({},Ae.vS),{paddingInline:Dt})}}]};const et=we=>{const{componentCls:ve,motionDurationSlow:Ie,motionDurationMid:$e,motionEaseInOut:Ge,motionEaseOut:Je,iconCls:ut,iconSize:lt,iconMarginInlineEnd:vt}=we;return{[`${ve}-item, ${ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ie}`,`background ${Ie}`,`padding calc(${Ie} + 0.1s) ${Ge}`].join(","),[`${ve}-item-icon, ${ut}`]:{minWidth:lt,fontSize:lt,transition:[`font-size ${$e} ${Je}`,`margin ${Ie} ${Ge}`,`color ${Ie}`].join(","),"+ span":{marginInlineStart:vt,opacity:1,transition:[`opacity ${Ie} ${Ge}`,`margin ${Ie}`,`color ${Ie}`].join(",")}},[`${ve}-item-icon`]:Object.assign({},(0,Ae.Ro)()),[`&${ve}-item-only-child`]:{[`> ${ut}, > ${ve}-item-icon`]:{marginInlineEnd:0}}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ke=we=>{const{componentCls:ve,motionDurationSlow:Ie,motionEaseInOut:$e,borderRadius:Ge,menuArrowSize:Je,menuArrowOffset:ut}=we;return{[`${ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:we.margin,width:Je,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ie} ${$e}, opacity ${Ie}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:we.calc(Je).mul(.6).equal(),height:we.calc(Je).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ge,transition:[`background ${Ie} ${$e}`,`transform ${Ie} ${$e}`,`top ${Ie} ${$e}`,`color ${Ie} ${$e}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,De.unit)(we.calc(ut).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,De.unit)(ut)})`}}}}},Ye=we=>{const{antCls:ve,componentCls:Ie,fontSize:$e,motionDurationSlow:Ge,motionDurationMid:Je,motionEaseInOut:ut,paddingXS:lt,padding:vt,colorSplit:ct,lineWidth:st,zIndexPopup:At,borderRadiusLG:mt,subMenuItemBorderRadius:Dt,menuArrowSize:jt,menuArrowOffset:Et,lineType:kt,groupTitleLineHeight:Nt,groupTitleFontSize:yt}=we;return[{"":{[Ie]:Object.assign(Object.assign({},(0,Ae.dF)()),{"&-hidden":{display:"none"}})},[`${Ie}-submenu-hidden`]:{display:"none"}},{[Ie]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ae.Wf)(we)),(0,Ae.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:$e,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ge} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ie}-item`]:{flex:"none"}},[`${Ie}-item, ${Ie}-submenu, ${Ie}-submenu-title`]:{borderRadius:we.itemBorderRadius},[`${Ie}-item-group-title`]:{padding:`${(0,De.unit)(lt)} ${(0,De.unit)(vt)}`,fontSize:yt,lineHeight:Nt,transition:`all ${Ge}`},[`&-horizontal ${Ie}-submenu`]:{transition:[`border-color ${Ge} ${ut}`,`background ${Ge} ${ut}`].join(",")},[`${Ie}-submenu, ${Ie}-submenu-inline`]:{transition:[`border-color ${Ge} ${ut}`,`background ${Ge} ${ut}`,`padding ${Je} ${ut}`].join(",")},[`${Ie}-submenu ${Ie}-sub`]:{cursor:"initial",transition:[`background ${Ge} ${ut}`,`padding ${Ge} ${ut}`].join(",")},[`${Ie}-title-content`]:{transition:`color ${Ge}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${ve}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Ie}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:we.padding}},[`${Ie}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ie}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ct,borderStyle:kt,borderWidth:0,borderTopWidth:st,marginBlock:st,padding:0,"&-dashed":{borderStyle:"dashed"}}}),et(we)),{[`${Ie}-item-group`]:{[`${Ie}-item-group-list`]:{margin:0,padding:0,[`${Ie}-item, ${Ie}-submenu-title`]:{paddingInline:`${(0,De.unit)(we.calc($e).mul(2).equal())} ${(0,De.unit)(vt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:At,borderRadius:mt,boxShadow:"none",transformOrigin:"0 0",[`&${Ie}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Ie}`]:Object.assign(Object.assign(Object.assign({borderRadius:mt},et(we)),Ke(we)),{[`${Ie}-item, ${Ie}-submenu > ${Ie}-submenu-title`]:{borderRadius:Dt},[`${Ie}-submenu-title::after`]:{transition:`transform ${Ge} ${ut}`}})},"\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:we.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:we.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:we.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:we.paddingXS}}}),Ke(we)),{[`&-inline-collapsed ${Ie}-submenu-arrow,
&-inline ${Ie}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,De.unit)(Et)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,De.unit)(we.calc(Et).mul(-1).equal())})`}},[`${Ie}-submenu-open${Ie}-submenu-inline > ${Ie}-submenu-title > ${Ie}-submenu-arrow`]:{transform:`translateY(${(0,De.unit)(we.calc(jt).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,De.unit)(we.calc(Et).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,De.unit)(Et)})`}}})},{[`${ve}-layout-header`]:{[Ie]:{lineHeight:"inherit"}}}]},Xe=we=>{var ve,Ie,$e;const{colorPrimary:Ge,colorError:Je,colorTextDisabled:ut,colorErrorBg:lt,colorText:vt,colorTextDescription:ct,colorBgContainer:st,colorFillAlter:At,colorFillContent:mt,lineWidth:Dt,lineWidthBold:jt,controlItemBgActive:Et,colorBgTextHover:kt,controlHeightLG:Nt,lineHeight:yt,colorBgElevated:Pt,marginXXS:Kt,padding:nn,fontSize:xt,controlHeightSM:Ct,fontSizeLG:zt,colorTextLightSolid:en,colorErrorHover:un}=we,Cn=(ve=we.activeBarWidth)!==null&&ve!==void 0?ve:0,Nn=(Ie=we.activeBarBorderWidth)!==null&&Ie!==void 0?Ie:Dt,_n=($e=we.itemMarginInline)!==null&&$e!==void 0?$e:we.marginXXS,yn=new Be.FastColor(en).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:we.zIndexPopupBase+50,radiusItem:we.borderRadiusLG,itemBorderRadius:we.borderRadiusLG,radiusSubMenuItem:we.borderRadiusSM,subMenuItemBorderRadius:we.borderRadiusSM,colorItemText:vt,itemColor:vt,colorItemTextHover:vt,itemHoverColor:vt,colorItemTextHoverHorizontal:Ge,horizontalItemHoverColor:Ge,colorGroupTitle:ct,groupTitleColor:ct,colorItemTextSelected:Ge,itemSelectedColor:Ge,subMenuItemSelectedColor:Ge,colorItemTextSelectedHorizontal:Ge,horizontalItemSelectedColor:Ge,colorItemBg:st,itemBg:st,colorItemBgHover:kt,itemHoverBg:kt,colorItemBgActive:mt,itemActiveBg:Et,colorSubItemBg:At,subMenuItemBg:At,colorItemBgSelected:Et,itemSelectedBg:Et,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Cn,colorActiveBarHeight:jt,activeBarHeight:jt,colorActiveBarBorderSize:Dt,activeBarBorderWidth:Nn,colorItemTextDisabled:ut,itemDisabledColor:ut,colorDangerItemText:Je,dangerItemColor:Je,colorDangerItemTextHover:Je,dangerItemHoverColor:Je,colorDangerItemTextSelected:Je,dangerItemSelectedColor:Je,colorDangerItemBgActive:lt,dangerItemActiveBg:lt,colorDangerItemBgSelected:lt,dangerItemSelectedBg:lt,itemMarginInline:_n,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Nt,groupTitleLineHeight:yt,collapsedWidth:Nt*2,popupBg:Pt,itemMarginBlock:Kt,itemPaddingInline:nn,horizontalLineHeight:`${Nt*1.15}px`,iconSize:xt,iconMarginInlineEnd:Ct-xt,collapsedIconSize:zt,groupTitleFontSize:xt,darkItemDisabledColor:new Be.FastColor(en).setA(.25).toRgbString(),darkItemColor:yn,darkDangerItemColor:Je,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:en,darkItemSelectedBg:Ge,darkDangerItemSelectedBg:Je,darkItemHoverBg:"transparent",darkGroupTitleColor:yn,darkItemHoverColor:en,darkDangerItemHoverColor:un,darkDangerItemSelectedColor:en,darkDangerItemActiveBg:Je,itemWidth:Cn?`calc(100% + ${Nn}px)`:`calc(100% - ${_n*2}px)`}};var ot=function(we){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:we,Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Pe.I$)("Menu",Ge=>{const{colorBgElevated:Je,controlHeightLG:ut,fontSize:lt,darkItemColor:vt,darkDangerItemColor:ct,darkItemBg:st,darkSubMenuItemBg:At,darkItemSelectedColor:mt,darkItemSelectedBg:Dt,darkDangerItemSelectedBg:jt,darkItemHoverBg:Et,darkGroupTitleColor:kt,darkItemHoverColor:Nt,darkItemDisabledColor:yt,darkDangerItemHoverColor:Pt,darkDangerItemSelectedColor:Kt,darkDangerItemActiveBg:nn,popupBg:xt,darkPopupBg:Ct}=Ge,zt=Ge.calc(lt).div(7).mul(5).equal(),en=(0,Le.mergeToken)(Ge,{menuArrowSize:zt,menuHorizontalHeight:Ge.calc(ut).mul(1.15).equal(),menuArrowOffset:Ge.calc(zt).mul(.25).equal(),menuSubMenuBg:Je,calc:Ge.calc,popupBg:xt}),un=(0,Le.mergeToken)(en,{itemColor:vt,itemHoverColor:Nt,groupTitleColor:kt,itemSelectedColor:mt,subMenuItemSelectedColor:mt,itemBg:st,popupBg:Ct,subMenuItemBg:At,itemActiveBg:"transparent",itemSelectedBg:Dt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Et,itemDisabledColor:yt,dangerItemColor:ct,dangerItemHoverColor:Pt,dangerItemSelectedColor:Kt,dangerItemActiveBg:nn,dangerItemSelectedBg:jt,menuSubMenuBg:At,horizontalItemSelectedColor:mt,horizontalItemSelectedBg:Dt});return[Ye(en),me(en),rt(en),_e(en,"light"),_e(un,"dark"),Ze(en),(0,Se.Z)(en),(0,Ee.oN)(en,"slide-up"),(0,Ee.oN)(en,"slide-down"),(0,Oe._y)(en,"zoom-big")]},Xe,{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:Ie,unitless:{groupTitleLineHeight:!0}})(we,ve)},Qe=Te(75030),at=we=>{var ve;const{popupClassName:Ie,icon:$e,title:Ge,theme:Je}=we,ut=te.useContext(re),{prefixCls:lt,inlineCollapsed:vt,theme:ct}=ut,st=(0,Ot.Xl)();let At;if(!$e)At=vt&&!st.length&&Ge&&typeof Ge=="string"?te.createElement("div",{className:`${lt}-inline-collapsed-noicon`},Ge.charAt(0)):te.createElement("span",{className:`${lt}-title-content`},Ge);else{const jt=te.isValidElement(Ge)&&Ge.type==="span";At=te.createElement(te.Fragment,null,(0,ee.Tm)($e,{className:z()(te.isValidElement($e)?(ve=$e.props)===null||ve===void 0?void 0:ve.className:"",`${lt}-item-icon`)}),jt?Ge:te.createElement("span",{className:`${lt}-title-content`},Ge))}const mt=te.useMemo(()=>Object.assign(Object.assign({},ut),{firstLevel:!1}),[ut]),[Dt]=(0,Qe.Cn)("Menu");return te.createElement(re.Provider,{value:mt},te.createElement(Ot.Wd,Object.assign({},(0,ie.Z)(we,["icon"]),{title:At,popupClassName:z()(lt,Ie,`${lt}-${Je||ct}`),popupStyle:Object.assign({zIndex:Dt},we.popupStyle)})))},qe=function(we,ve){var Ie={};for(var $e in we)Object.prototype.hasOwnProperty.call(we,$e)&&ve.indexOf($e)<0&&(Ie[$e]=we[$e]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,$e=Object.getOwnPropertySymbols(we);Ge<$e.length;Ge++)ve.indexOf($e[Ge])<0&&Object.prototype.propertyIsEnumerable.call(we,$e[Ge])&&(Ie[$e[Ge]]=we[$e[Ge]]);return Ie};function Fe(we){return we===null||we===!1}const Re={item:xe,submenu:at,divider:pe};var fe=(0,te.forwardRef)((we,ve)=>{var Ie;const $e=te.useContext(ke.Z),Ge=$e||{},{getPrefixCls:Je,getPopupContainer:ut,direction:lt,menu:vt}=te.useContext(ce.E_),ct=Je(),{prefixCls:st,className:At,style:mt,theme:Dt="light",expandIcon:jt,_internalDisableMenuItemTitleTooltip:Et,inlineCollapsed:kt,siderCollapsed:Nt,rootClassName:yt,mode:Pt,selectable:Kt,onClick:nn,overflowedIndicatorPopupClassName:xt}=we,Ct=qe(we,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),zt=(0,ie.Z)(Ct,["collapsedWidth"]);(Ie=Ge.validator)===null||Ie===void 0||Ie.call(Ge,{mode:Pt});const en=(0,E.Z)(function(){var cn;nn==null||nn.apply(void 0,arguments),(cn=Ge.onClick)===null||cn===void 0||cn.call(Ge)}),un=Ge.mode||Pt,Cn=Kt!=null?Kt:Ge.selectable,Nn=kt!=null?kt:Nt,_n={horizontal:{motionName:`${ct}-slide-up`},inline:(0,oe.Z)(ct),other:{motionName:`${ct}-zoom-big`}},yn=Je("menu",st||Ge.prefixCls),Rn=(0,x.Z)(yn),[pn,on,Vt]=ot(yn,Rn,!$e),Wt=z()(`${yn}-${Dt}`,vt==null?void 0:vt.className,At),Ht=te.useMemo(()=>{var cn,mn;if(typeof jt=="function"||Fe(jt))return jt||null;if(typeof Ge.expandIcon=="function"||Fe(Ge.expandIcon))return Ge.expandIcon||null;if(typeof(vt==null?void 0:vt.expandIcon)=="function"||Fe(vt==null?void 0:vt.expandIcon))return(vt==null?void 0:vt.expandIcon)||null;const Bn=(cn=jt!=null?jt:Ge==null?void 0:Ge.expandIcon)!==null&&cn!==void 0?cn:vt==null?void 0:vt.expandIcon;return(0,ee.Tm)(Bn,{className:z()(`${yn}-submenu-expand-icon`,te.isValidElement(Bn)?(mn=Bn.props)===null||mn===void 0?void 0:mn.className:void 0)})},[jt,Ge==null?void 0:Ge.expandIcon,vt==null?void 0:vt.expandIcon,yn]),hn=te.useMemo(()=>({prefixCls:yn,inlineCollapsed:Nn||!1,direction:lt,firstLevel:!0,theme:Dt,mode:un,disableMenuItemTitleTooltip:Et}),[yn,Nn,lt,Et,Dt]);return pn(te.createElement(ke.Z.Provider,{value:null},te.createElement(re.Provider,{value:hn},te.createElement(Ot.ZP,Object.assign({getPopupContainer:ut,overflowedIndicator:te.createElement(je.Z,null),overflowedIndicatorPopupClassName:z()(yn,`${yn}-${Dt}`,xt),mode:un,selectable:Cn,onClick:en},zt,{inlineCollapsed:Nn,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),mt),className:Wt,prefixCls:yn,direction:lt,defaultMotions:_n,expandIcon:Ht,ref:ve,rootClassName:z()(yt,on,Ge.rootClassName,Vt,Rn),_internalComponents:Re})))))});const Me=(0,te.forwardRef)((we,ve)=>{const Ie=(0,te.useRef)(null),$e=te.useContext(y.D);return(0,te.useImperativeHandle)(ve,()=>({menu:Ie.current,focus:Ge=>{var Je;(Je=Ie.current)===null||Je===void 0||Je.focus(Ge)}})),te.createElement(fe,Object.assign({ref:Ie},we,$e))});Me.Item=xe,Me.SubMenu=at,Me.Divider=pe,Me.ItemGroup=Ot.BW;var ze=Me},31709:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return vt}});var te=Te(59301),Ot=Te(54476),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},je=y,be=Te(7657),z=function(st,At){return te.createElement(be.Z,(0,Ot.Z)({},st,{ref:At,icon:je}))},E=te.forwardRef(z),ie=E,oe=Te(49198),ee=Te(33853),ce=Te(38819),x=Te(92310),ae=Te.n(x),re=Te(20068),se=Te(76190),ue=Te(33885),pe=Te(42978),he=Te(18929),ye=Te(10228),ge=Te(26112),xe=Te(48736),ke=Te(17119),De=[10,20,50,100],Be=function(st){var At=st.pageSizeOptions,mt=At===void 0?De:At,Dt=st.locale,jt=st.changeSize,Et=st.pageSize,kt=st.goButton,Nt=st.quickGo,yt=st.rootPrefixCls,Pt=st.disabled,Kt=st.buildOptionText,nn=st.showSizeChanger,xt=st.sizeChangerRender,Ct=te.useState(""),zt=(0,pe.Z)(Ct,2),en=zt[0],un=zt[1],Cn=function(){return!en||Number.isNaN(en)?void 0:Number(en)},Nn=typeof Kt=="function"?Kt:function(hn){return"".concat(hn," ").concat(Dt.items_per_page)},_n=function(cn){un(cn.target.value)},yn=function(cn){kt||en===""||(un(""),!(cn.relatedTarget&&(cn.relatedTarget.className.indexOf("".concat(yt,"-item-link"))>=0||cn.relatedTarget.className.indexOf("".concat(yt,"-item"))>=0))&&(Nt==null||Nt(Cn())))},Rn=function(cn){en!==""&&(cn.keyCode===ye.Z.ENTER||cn.type==="click")&&(un(""),Nt==null||Nt(Cn()))},pn=function(){return mt.some(function(cn){return cn.toString()===Et.toString()})?mt:mt.concat([Et]).sort(function(cn,mn){var Bn=Number.isNaN(Number(cn))?0:Number(cn),Pn=Number.isNaN(Number(mn))?0:Number(mn);return Bn-Pn})},on="".concat(yt,"-options");if(!nn&&!Nt)return null;var Vt=null,Wt=null,Ht=null;return nn&&xt&&(Vt=xt({disabled:Pt,size:Et,onSizeChange:function(cn){jt==null||jt(Number(cn))},"aria-label":Dt.page_size,className:"".concat(on,"-size-changer"),options:pn().map(function(hn){return{label:Nn(hn),value:hn}})})),Nt&&(kt&&(Ht=typeof kt=="boolean"?te.createElement("button",{type:"button",onClick:Rn,onKeyUp:Rn,disabled:Pt,className:"".concat(on,"-quick-jumper-button")},Dt.jump_to_confirm):te.createElement("span",{onClick:Rn,onKeyUp:Rn},kt)),Wt=te.createElement("div",{className:"".concat(on,"-quick-jumper")},Dt.jump_to,te.createElement("input",{disabled:Pt,type:"text",value:en,onChange:_n,onKeyUp:Rn,onBlur:yn,"aria-label":Dt.page}),Dt.page,Ht)),te.createElement("li",{className:on},Vt,Wt)},Ae=Be,Se=function(st){var At=st.rootPrefixCls,mt=st.page,Dt=st.active,jt=st.className,Et=st.showTitle,kt=st.onClick,Nt=st.onKeyPress,yt=st.itemRender,Pt="".concat(At,"-item"),Kt=ae()(Pt,"".concat(Pt,"-").concat(mt),(0,re.Z)((0,re.Z)({},"".concat(Pt,"-active"),Dt),"".concat(Pt,"-disabled"),!mt),jt),nn=function(){kt(mt)},xt=function(en){Nt(en,kt,mt)},Ct=yt(mt,"page",te.createElement("a",{rel:"nofollow"},mt));return Ct?te.createElement("li",{title:Et?String(mt):null,className:Kt,onClick:nn,onKeyDown:xt,tabIndex:0},Ct):null},Ee=Se,Oe=function(st,At,mt){return mt};function Pe(){}function Le(ct){var st=Number(ct);return typeof st=="number"&&!Number.isNaN(st)&&isFinite(st)&&Math.floor(st)===st}function Ne(ct,st,At){var mt=typeof ct=="undefined"?st:ct;return Math.floor((At-1)/mt)+1}var me=function(st){var At=st.prefixCls,mt=At===void 0?"rc-pagination":At,Dt=st.selectPrefixCls,jt=Dt===void 0?"rc-select":Dt,Et=st.className,kt=st.current,Nt=st.defaultCurrent,yt=Nt===void 0?1:Nt,Pt=st.total,Kt=Pt===void 0?0:Pt,nn=st.pageSize,xt=st.defaultPageSize,Ct=xt===void 0?10:xt,zt=st.onChange,en=zt===void 0?Pe:zt,un=st.hideOnSinglePage,Cn=st.align,Nn=st.showPrevNextJumpers,_n=Nn===void 0?!0:Nn,yn=st.showQuickJumper,Rn=st.showLessItems,pn=st.showTitle,on=pn===void 0?!0:pn,Vt=st.onShowSizeChange,Wt=Vt===void 0?Pe:Vt,Ht=st.locale,hn=Ht===void 0?ke.Z:Ht,cn=st.style,mn=st.totalBoundaryShowSizeChanger,Bn=mn===void 0?50:mn,Pn=st.disabled,gn=st.simple,Ln=st.showTotal,Kn=st.showSizeChanger,sr=Kn===void 0?Kt>Bn:Kn,nr=st.sizeChangerRender,ln=st.pageSizeOptions,rn=st.itemRender,Wn=rn===void 0?Oe:rn,Zn=st.jumpPrevIcon,Mt=st.jumpNextIcon,Gt=st.prevIcon,St=st.nextIcon,Rt=te.useRef(null),Tt=(0,he.Z)(10,{value:nn,defaultValue:Ct}),_t=(0,pe.Z)(Tt,2),bt=_t[0],Ut=_t[1],Lt=(0,he.Z)(1,{value:kt,defaultValue:yt,postState:function(Vr){return Math.max(1,Math.min(Vr,Ne(void 0,bt,Kt)))}}),qt=(0,pe.Z)(Lt,2),Ft=qt[0],$t=qt[1],Zt=te.useState(Ft),Xt=(0,pe.Z)(Zt,2),Tn=Xt[0],On=Xt[1];(0,te.useEffect)(function(){On(Ft)},[Ft]);var Mn=en!==Pe,rr="current"in st,lr=Math.max(1,Ft-(Rn?3:5)),hr=Math.min(Ne(void 0,bt,Kt),Ft+(Rn?3:5));function er(ni,Vr){var Qi=ni||te.createElement("button",{type:"button","aria-label":Vr,className:"".concat(mt,"-item-link")});return typeof ni=="function"&&(Qi=te.createElement(ni,(0,ue.Z)({},st))),Qi}function Qn(ni){var Vr=ni.target.value,Qi=Ne(void 0,bt,Kt),qi;return Vr===""?qi=Vr:Number.isNaN(Number(Vr))?qi=Tn:Vr>=Qi?qi=Qi:qi=Number(Vr),qi}function Fn(ni){return Le(ni)&&ni!==Ft&&Le(Kt)&&Kt>0}var pr=Kt>bt?yn:!1;function wr(ni){(ni.keyCode===ye.Z.UP||ni.keyCode===ye.Z.DOWN)&&ni.preventDefault()}function Sr(ni){var Vr=Qn(ni);switch(Vr!==Tn&&On(Vr),ni.keyCode){case ye.Z.ENTER:yr(Vr);break;case ye.Z.UP:yr(Vr-1);break;case ye.Z.DOWN:yr(Vr+1);break;default:break}}function Cr(ni){yr(Qn(ni))}function Jn(ni){var Vr=Ne(ni,bt,Kt),Qi=Ft>Vr&&Vr!==0?Vr:Ft;Ut(ni),On(Qi),Wt==null||Wt(Ft,ni),$t(Qi),en==null||en(Qi,ni)}function yr(ni){if(Fn(ni)&&!Pn){var Vr=Ne(void 0,bt,Kt),Qi=ni;return ni>Vr?Qi=Vr:ni<1&&(Qi=1),Qi!==Tn&&On(Qi),$t(Qi),en==null||en(Qi,bt),Qi}return Ft}var An=Ft>1,xn=Ft<Ne(void 0,bt,Kt);function tr(){An&&yr(Ft-1)}function br(){xn&&yr(Ft+1)}function Er(){yr(lr)}function Hr(){yr(hr)}function kr(ni,Vr){if(ni.key==="Enter"||ni.charCode===ye.Z.ENTER||ni.keyCode===ye.Z.ENTER){for(var Qi=arguments.length,qi=new Array(Qi>2?Qi-2:0),li=2;li<Qi;li++)qi[li-2]=arguments[li];Vr.apply(void 0,qi)}}function Ur(ni){kr(ni,tr)}function Tr(ni){kr(ni,br)}function ei(ni){kr(ni,Er)}function si(ni){kr(ni,Hr)}function wi(ni){var Vr=Wn(ni,"prev",er(Gt,"prev page"));return te.isValidElement(Vr)?te.cloneElement(Vr,{disabled:!An}):Vr}function Kr(ni){var Vr=Wn(ni,"next",er(St,"next page"));return te.isValidElement(Vr)?te.cloneElement(Vr,{disabled:!xn}):Vr}function gi(ni){(ni.type==="click"||ni.keyCode===ye.Z.ENTER)&&yr(Tn)}var di=null,bi=(0,ge.Z)(st,{aria:!0,data:!0}),Or=Ln&&te.createElement("li",{className:"".concat(mt,"-total-text")},Ln(Kt,[Kt===0?0:(Ft-1)*bt+1,Ft*bt>Kt?Kt:Ft*bt])),Pr=null,ur=Ne(void 0,bt,Kt);if(un&&Kt<=bt)return null;var Dn=[],Un={rootPrefixCls:mt,onClick:yr,onKeyPress:kr,showTitle:on,itemRender:Wn,page:-1},Vn=Ft-1>0?Ft-1:0,$n=Ft+1<ur?Ft+1:ur,cr=yn&&yn.goButton,jr=(0,se.Z)(gn)==="object"?gn.readOnly:!gn,Gn=cr,zn=null;gn&&(cr&&(typeof cr=="boolean"?Gn=te.createElement("button",{type:"button",onClick:gi,onKeyUp:gi},hn.jump_to_confirm):Gn=te.createElement("span",{onClick:gi,onKeyUp:gi},cr),Gn=te.createElement("li",{title:on?"".concat(hn.jump_to).concat(Ft,"/").concat(ur):null,className:"".concat(mt,"-simple-pager")},Gn)),zn=te.createElement("li",{title:on?"".concat(Ft,"/").concat(ur):null,className:"".concat(mt,"-simple-pager")},jr?Tn:te.createElement("input",{type:"text","aria-label":hn.jump_to,value:Tn,disabled:Pn,onKeyDown:wr,onKeyUp:Sr,onChange:Sr,onBlur:Cr,size:3}),te.createElement("span",{className:"".concat(mt,"-slash")},"/"),ur));var qn=Rn?1:2;if(ur<=3+qn*2){ur||Dn.push(te.createElement(Ee,(0,Ot.Z)({},Un,{key:"noPager",page:1,className:"".concat(mt,"-item-disabled")})));for(var or=1;or<=ur;or+=1)Dn.push(te.createElement(Ee,(0,Ot.Z)({},Un,{key:or,page:or,active:Ft===or})))}else{var ti=Rn?hn.prev_3:hn.prev_5,Ti=Rn?hn.next_3:hn.next_5,mi=Wn(lr,"jump-prev",er(Zn,"prev page")),ki=Wn(hr,"jump-next",er(Mt,"next page"));_n&&(di=mi?te.createElement("li",{title:on?ti:null,key:"prev",onClick:Er,tabIndex:0,onKeyDown:ei,className:ae()("".concat(mt,"-jump-prev"),(0,re.Z)({},"".concat(mt,"-jump-prev-custom-icon"),!!Zn))},mi):null,Pr=ki?te.createElement("li",{title:on?Ti:null,key:"next",onClick:Hr,tabIndex:0,onKeyDown:si,className:ae()("".concat(mt,"-jump-next"),(0,re.Z)({},"".concat(mt,"-jump-next-custom-icon"),!!Mt))},ki):null);var Oi=Math.max(1,Ft-qn),Ii=Math.min(Ft+qn,ur);Ft-1<=qn&&(Ii=1+qn*2),ur-Ft<=qn&&(Oi=ur-qn*2);for(var _i=Oi;_i<=Ii;_i+=1)Dn.push(te.createElement(Ee,(0,Ot.Z)({},Un,{key:_i,page:_i,active:Ft===_i})));if(Ft-1>=qn*2&&Ft!==3&&(Dn[0]=te.cloneElement(Dn[0],{className:ae()("".concat(mt,"-item-after-jump-prev"),Dn[0].props.className)}),Dn.unshift(di)),ur-Ft>=qn*2&&Ft!==ur-2){var Ni=Dn[Dn.length-1];Dn[Dn.length-1]=te.cloneElement(Ni,{className:ae()("".concat(mt,"-item-before-jump-next"),Ni.props.className)}),Dn.push(Pr)}Oi!==1&&Dn.unshift(te.createElement(Ee,(0,Ot.Z)({},Un,{key:1,page:1}))),Ii!==ur&&Dn.push(te.createElement(Ee,(0,Ot.Z)({},Un,{key:ur,page:ur})))}var Ri=wi(Vn);if(Ri){var so=!An||!ur;Ri=te.createElement("li",{title:on?hn.prev_page:null,onClick:tr,tabIndex:so?null:0,onKeyDown:Ur,className:ae()("".concat(mt,"-prev"),(0,re.Z)({},"".concat(mt,"-disabled"),so)),"aria-disabled":so},Ri)}var xo=Kr($n);if(xo){var Po,jo;gn?(Po=!xn,jo=An?0:null):(Po=!xn||!ur,jo=Po?null:0),xo=te.createElement("li",{title:on?hn.next_page:null,onClick:br,tabIndex:jo,onKeyDown:Tr,className:ae()("".concat(mt,"-next"),(0,re.Z)({},"".concat(mt,"-disabled"),Po)),"aria-disabled":Po},xo)}var wo=ae()(mt,Et,(0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)({},"".concat(mt,"-start"),Cn==="start"),"".concat(mt,"-center"),Cn==="center"),"".concat(mt,"-end"),Cn==="end"),"".concat(mt,"-simple"),gn),"".concat(mt,"-disabled"),Pn));return te.createElement("ul",(0,Ot.Z)({className:wo,style:cn,ref:Rt},bi),Or,Ri,gn?zn:Dn,xo,te.createElement(Ae,{locale:hn,rootPrefixCls:mt,disabled:Pn,selectPrefixCls:jt,changeSize:Jn,pageSize:bt,pageSizeOptions:ln,quickGo:pr?yr:null,goButton:Gn,showSizeChanger:sr,sizeChangerRender:nr}))},Ve=me,Ze=Te(61852),We=Te(48755),nt=Te(31756),_e=Te(13783),Ue=Te(9017),tt=Te(82326),rt=Te(57700),et=Te(36237),Ke=Te(53075),Ye=Te(64910),Xe=Te(39082),ot=Te(63356),Qe=Te(51636),ft=Te(16931);const at=ct=>{const{componentCls:st}=ct;return{[`${st}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${st}-item-link`]:{color:ct.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${st}-item-link`]:{color:ct.colorTextDisabled,cursor:"not-allowed"}}},[`&${st}-disabled`]:{cursor:"not-allowed",[`${st}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:ct.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:ct.colorBorder,backgroundColor:ct.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:ct.itemActiveBgDisabled},a:{color:ct.itemActiveColorDisabled}}},[`${st}-item-link`]:{color:ct.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${st}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${st}-simple-pager`]:{color:ct.colorTextDisabled},[`${st}-jump-prev, ${st}-jump-next`]:{[`${st}-item-link-icon`]:{opacity:0},[`${st}-item-ellipsis`]:{opacity:1}}},[`&${st}-simple`]:{[`${st}-prev, ${st}-next`]:{[`&${st}-disabled ${st}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},qe=ct=>{const{componentCls:st}=ct;return{[`&${st}-mini ${st}-total-text, &${st}-mini ${st}-simple-pager`]:{height:ct.itemSizeSM,lineHeight:(0,et.unit)(ct.itemSizeSM)},[`&${st}-mini ${st}-item`]:{minWidth:ct.itemSizeSM,height:ct.itemSizeSM,margin:0,lineHeight:(0,et.unit)(ct.calc(ct.itemSizeSM).sub(2).equal())},[`&${st}-mini ${st}-prev, &${st}-mini ${st}-next`]:{minWidth:ct.itemSizeSM,height:ct.itemSizeSM,margin:0,lineHeight:(0,et.unit)(ct.itemSizeSM)},[`&${st}-mini:not(${st}-disabled)`]:{[`${st}-prev, ${st}-next`]:{[`&:hover ${st}-item-link`]:{backgroundColor:ct.colorBgTextHover},[`&:active ${st}-item-link`]:{backgroundColor:ct.colorBgTextActive},[`&${st}-disabled:hover ${st}-item-link`]:{backgroundColor:"transparent"}}},[`
&${st}-mini ${st}-prev ${st}-item-link,
&${st}-mini ${st}-next ${st}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:ct.itemSizeSM,lineHeight:(0,et.unit)(ct.itemSizeSM)}},[`&${st}-mini ${st}-jump-prev, &${st}-mini ${st}-jump-next`]:{height:ct.itemSizeSM,marginInlineEnd:0,lineHeight:(0,et.unit)(ct.itemSizeSM)},[`&${st}-mini ${st}-options`]:{marginInlineStart:ct.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:ct.miniOptionsSizeChangerTop},"&-quick-jumper":{height:ct.itemSizeSM,lineHeight:(0,et.unit)(ct.itemSizeSM),input:Object.assign(Object.assign({},(0,Ke.x0)(ct)),{width:ct.paginationMiniQuickJumperInputWidth,height:ct.controlHeightSM})}}}},Fe=ct=>{const{componentCls:st}=ct;return{[`
&${st}-simple ${st}-prev,
&${st}-simple ${st}-next
`]:{height:ct.itemSizeSM,lineHeight:(0,et.unit)(ct.itemSizeSM),verticalAlign:"top",[`${st}-item-link`]:{height:ct.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:ct.colorBgTextHover},"&:active":{backgroundColor:ct.colorBgTextActive},"&::after":{height:ct.itemSizeSM,lineHeight:(0,et.unit)(ct.itemSizeSM)}}},[`&${st}-simple ${st}-simple-pager`]:{display:"inline-block",height:ct.itemSizeSM,marginInlineEnd:ct.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,et.unit)(ct.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:ct.itemInputBg,border:`${(0,et.unit)(ct.lineWidth)} ${ct.lineType} ${ct.colorBorder}`,borderRadius:ct.borderRadius,outline:"none",transition:`border-color ${ct.motionDurationMid}`,color:"inherit","&:hover":{borderColor:ct.colorPrimary},"&:focus":{borderColor:ct.colorPrimaryHover,boxShadow:`${(0,et.unit)(ct.inputOutlineOffset)} 0 ${(0,et.unit)(ct.controlOutlineWidth)} ${ct.controlOutline}`},"&[disabled]":{color:ct.colorTextDisabled,backgroundColor:ct.colorBgContainerDisabled,borderColor:ct.colorBorder,cursor:"not-allowed"}}}}},Re=ct=>{const{componentCls:st}=ct;return{[`${st}-jump-prev, ${st}-jump-next`]:{outline:0,[`${st}-item-container`]:{position:"relative",[`${st}-item-link-icon`]:{color:ct.colorPrimary,fontSize:ct.fontSizeSM,opacity:0,transition:`all ${ct.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${st}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:ct.colorTextDisabled,letterSpacing:ct.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:ct.paginationEllipsisTextIndent,opacity:1,transition:`all ${ct.motionDurationMid}`}},"&:hover":{[`${st}-item-link-icon`]:{opacity:1},[`${st}-item-ellipsis`]:{opacity:0}}},[`
${st}-prev,
${st}-jump-prev,
${st}-jump-next
`]:{marginInlineEnd:ct.marginXS},[`
${st}-prev,
${st}-next,
${st}-jump-prev,
${st}-jump-next
`]:{display:"inline-block",minWidth:ct.itemSize,height:ct.itemSize,color:ct.colorText,fontFamily:ct.fontFamily,lineHeight:(0,et.unit)(ct.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:ct.borderRadius,cursor:"pointer",transition:`all ${ct.motionDurationMid}`},[`${st}-prev, ${st}-next`]:{outline:0,button:{color:ct.colorText,cursor:"pointer",userSelect:"none"},[`${st}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:ct.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,et.unit)(ct.lineWidth)} ${ct.lineType} transparent`,borderRadius:ct.borderRadius,outline:"none",transition:`all ${ct.motionDurationMid}`},[`&:hover ${st}-item-link`]:{backgroundColor:ct.colorBgTextHover},[`&:active ${st}-item-link`]:{backgroundColor:ct.colorBgTextActive},[`&${st}-disabled:hover`]:{[`${st}-item-link`]:{backgroundColor:"transparent"}}},[`${st}-slash`]:{marginInlineEnd:ct.paginationSlashMarginInlineEnd,marginInlineStart:ct.paginationSlashMarginInlineStart},[`${st}-options`]:{display:"inline-block",marginInlineStart:ct.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:ct.controlHeight,marginInlineStart:ct.marginXS,lineHeight:(0,et.unit)(ct.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,Ke.ik)(ct)),(0,Xe.$U)(ct,{borderColor:ct.colorBorder,hoverBorderColor:ct.colorPrimaryHover,activeBorderColor:ct.colorPrimary,activeShadow:ct.activeShadow})),{"&[disabled]":Object.assign({},(0,Xe.Xy)(ct)),width:ct.calc(ct.controlHeightLG).mul(1.25).equal(),height:ct.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:ct.marginXS,marginInlineEnd:ct.marginXS})}}}},ne=ct=>{const{componentCls:st}=ct;return{[`${st}-item`]:{display:"inline-block",minWidth:ct.itemSize,height:ct.itemSize,marginInlineEnd:ct.marginXS,fontFamily:ct.fontFamily,lineHeight:(0,et.unit)(ct.calc(ct.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:ct.itemBg,border:`${(0,et.unit)(ct.lineWidth)} ${ct.lineType} transparent`,borderRadius:ct.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,et.unit)(ct.paginationItemPaddingInline)}`,color:ct.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${st}-item-active)`]:{"&:hover":{transition:`all ${ct.motionDurationMid}`,backgroundColor:ct.colorBgTextHover},"&:active":{backgroundColor:ct.colorBgTextActive}},"&-active":{fontWeight:ct.fontWeightStrong,backgroundColor:ct.itemActiveBg,borderColor:ct.colorPrimary,a:{color:ct.colorPrimary},"&:hover":{borderColor:ct.colorPrimaryHover},"&:hover a":{color:ct.colorPrimaryHover}}}}},fe=ct=>{const{componentCls:st}=ct;return{[st]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ot.Wf)(ct)),{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:'""'},[`${st}-total-text`]:{display:"inline-block",height:ct.itemSize,marginInlineEnd:ct.marginXS,lineHeight:(0,et.unit)(ct.calc(ct.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ne(ct)),Re(ct)),Fe(ct)),qe(ct)),at(ct)),{[`@media only screen and (max-width: ${ct.screenLG}px)`]:{[`${st}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${ct.screenSM}px)`]:{[`${st}-options`]:{display:"none"}}}),[`&${ct.componentCls}-rtl`]:{direction:"rtl"}}},Me=ct=>{const{componentCls:st}=ct;return{[`${st}:not(${st}-disabled)`]:{[`${st}-item`]:Object.assign({},(0,ot.Qy)(ct)),[`${st}-jump-prev, ${st}-jump-next`]:{"&:focus-visible":Object.assign({[`${st}-item-link-icon`]:{opacity:1},[`${st}-item-ellipsis`]:{opacity:0}},(0,ot.oN)(ct))},[`${st}-prev, ${st}-next`]:{[`&:focus-visible ${st}-item-link`]:Object.assign({},(0,ot.oN)(ct))}}}},ze=ct=>Object.assign({itemBg:ct.colorBgContainer,itemSize:ct.controlHeight,itemSizeSM:ct.controlHeightSM,itemActiveBg:ct.colorBgContainer,itemLinkBg:ct.colorBgContainer,itemActiveColorDisabled:ct.colorTextDisabled,itemActiveBgDisabled:ct.controlItemBgActiveDisabled,itemInputBg:ct.colorBgContainer,miniOptionsSizeChangerTop:0},(0,Ye.T)(ct)),we=ct=>(0,Qe.mergeToken)(ct,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:ct.calc(ct.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:ct.calc(ct.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:ct.calc(ct.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:ct.calc(ct.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:ct.marginSM,paginationSlashMarginInlineEnd:ct.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ye.e)(ct));var ve=(0,ft.I$)("Pagination",ct=>{const st=we(ct);return[fe(st),Me(st)]},ze);const Ie=ct=>{const{componentCls:st}=ct;return{[`${st}${st}-bordered${st}-disabled:not(${st}-mini)`]:{"&, &:hover":{[`${st}-item-link`]:{borderColor:ct.colorBorder}},"&:focus-visible":{[`${st}-item-link`]:{borderColor:ct.colorBorder}},[`${st}-item, ${st}-item-link`]:{backgroundColor:ct.colorBgContainerDisabled,borderColor:ct.colorBorder,[`&:hover:not(${st}-item-active)`]:{backgroundColor:ct.colorBgContainerDisabled,borderColor:ct.colorBorder,a:{color:ct.colorTextDisabled}},[`&${st}-item-active`]:{backgroundColor:ct.itemActiveBgDisabled}},[`${st}-prev, ${st}-next`]:{"&:hover button":{backgroundColor:ct.colorBgContainerDisabled,borderColor:ct.colorBorder,color:ct.colorTextDisabled},[`${st}-item-link`]:{backgroundColor:ct.colorBgContainerDisabled,borderColor:ct.colorBorder}}},[`${st}${st}-bordered:not(${st}-mini)`]:{[`${st}-prev, ${st}-next`]:{"&:hover button":{borderColor:ct.colorPrimaryHover,backgroundColor:ct.itemBg},[`${st}-item-link`]:{backgroundColor:ct.itemLinkBg,borderColor:ct.colorBorder},[`&:hover ${st}-item-link`]:{borderColor:ct.colorPrimary,backgroundColor:ct.itemBg,color:ct.colorPrimary},[`&${st}-disabled`]:{[`${st}-item-link`]:{borderColor:ct.colorBorder,color:ct.colorTextDisabled}}},[`${st}-item`]:{backgroundColor:ct.itemBg,border:`${(0,et.unit)(ct.lineWidth)} ${ct.lineType} ${ct.colorBorder}`,[`&:hover:not(${st}-item-active)`]:{borderColor:ct.colorPrimary,backgroundColor:ct.itemBg,a:{color:ct.colorPrimary}},"&-active":{borderColor:ct.colorPrimary}}}}};var $e=(0,ft.bk)(["Pagination","bordered"],ct=>{const st=we(ct);return[Ie(st)]},ze);function Ge(ct){return(0,te.useMemo)(()=>typeof ct=="boolean"?[ct,{}]:ct&&typeof ct=="object"?[!0,ct]:[void 0,void 0],[ct])}var Je=function(ct,st){var At={};for(var mt in ct)Object.prototype.hasOwnProperty.call(ct,mt)&&st.indexOf(mt)<0&&(At[mt]=ct[mt]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,mt=Object.getOwnPropertySymbols(ct);Dt<mt.length;Dt++)st.indexOf(mt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(ct,mt[Dt])&&(At[mt[Dt]]=ct[mt[Dt]]);return At},lt=ct=>{const{align:st,prefixCls:At,selectPrefixCls:mt,className:Dt,rootClassName:jt,style:Et,size:kt,locale:Nt,responsive:yt,showSizeChanger:Pt,selectComponentClass:Kt,pageSizeOptions:nn}=ct,xt=Je(ct,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:Ct}=(0,_e.Z)(yt),[,zt]=(0,rt.ZP)(),{getPrefixCls:en,direction:un,showSizeChanger:Cn,className:Nn,style:_n}=(0,We.dj)("pagination"),yn=en("pagination",At),[Rn,pn,on]=ve(yn),Vt=(0,nt.Z)(kt),Wt=Vt==="small"||!!(Ct&&!Vt&&yt),[Ht]=(0,Ue.Z)("Pagination",Ze.Z),hn=Object.assign(Object.assign({},Ht),Nt),[cn,mn]=Ge(Pt),[Bn,Pn]=Ge(Cn),gn=cn!=null?cn:Bn,Ln=mn!=null?mn:Pn,Kn=Kt||tt.default,sr=te.useMemo(()=>nn?nn.map(Mt=>Number(Mt)):void 0,[nn]),nr=Mt=>{var Gt;const{disabled:St,size:Rt,onSizeChange:Tt,"aria-label":_t,className:bt,options:Ut}=Mt,{className:Lt,onChange:qt}=Ln||{},Ft=(Gt=Ut.find($t=>String($t.value)===String(Rt)))===null||Gt===void 0?void 0:Gt.value;return te.createElement(Kn,Object.assign({disabled:St,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:$t=>$t.parentNode,"aria-label":_t,options:Ut},Ln,{value:Ft,onChange:($t,Zt)=>{Tt==null||Tt($t),qt==null||qt($t,Zt)},size:Wt?"small":"middle",className:ae()(bt,Lt)}))},ln=te.useMemo(()=>{const Mt=te.createElement("span",{className:`${yn}-item-ellipsis`},"\u2022\u2022\u2022"),Gt=te.createElement("button",{className:`${yn}-item-link`,type:"button",tabIndex:-1},un==="rtl"?te.createElement(ce.Z,null):te.createElement(ee.Z,null)),St=te.createElement("button",{className:`${yn}-item-link`,type:"button",tabIndex:-1},un==="rtl"?te.createElement(ee.Z,null):te.createElement(ce.Z,null)),Rt=te.createElement("a",{className:`${yn}-item-link`},te.createElement("div",{className:`${yn}-item-container`},un==="rtl"?te.createElement(oe.Z,{className:`${yn}-item-link-icon`}):te.createElement(ie,{className:`${yn}-item-link-icon`}),Mt)),Tt=te.createElement("a",{className:`${yn}-item-link`},te.createElement("div",{className:`${yn}-item-container`},un==="rtl"?te.createElement(ie,{className:`${yn}-item-link-icon`}):te.createElement(oe.Z,{className:`${yn}-item-link-icon`}),Mt));return{prevIcon:Gt,nextIcon:St,jumpPrevIcon:Rt,jumpNextIcon:Tt}},[un,yn]),rn=en("select",mt),Wn=ae()({[`${yn}-${st}`]:!!st,[`${yn}-mini`]:Wt,[`${yn}-rtl`]:un==="rtl",[`${yn}-bordered`]:zt.wireframe},Nn,Dt,jt,pn,on),Zn=Object.assign(Object.assign({},_n),Et);return Rn(te.createElement(te.Fragment,null,zt.wireframe&&te.createElement($e,{prefixCls:yn}),te.createElement(Ve,Object.assign({},ln,xt,{style:Zn,prefixCls:yn,selectPrefixCls:rn,className:Wn,locale:hn,pageSizeOptions:sr,showSizeChanger:gn,sizeChangerRender:nr}))))},vt=lt},89787:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Nt}});var te=Te(59301),Ot=Te(17835),y=Te(29679),je=Te(40001),be=Te(19248),z=Te(99267),E=Te(92310),ie=Te.n(E),oe=Te(2738),ee=Te(48755),ce=Te(54476),x=Te(33885),ae=Te(75931),re={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},se=function(){var Pt=(0,te.useRef)([]),Kt=(0,te.useRef)(null);return(0,te.useEffect)(function(){var nn=Date.now(),xt=!1;Pt.current.forEach(function(Ct){if(Ct){xt=!0;var zt=Ct.style;zt.transitionDuration=".3s, .3s, .3s, .06s",Kt.current&&nn-Kt.current<100&&(zt.transitionDuration="0s, 0s")}}),xt&&(Kt.current=Date.now())}),Pt.current},ue=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],pe=function(Pt){var Kt=(0,x.Z)((0,x.Z)({},re),Pt),nn=Kt.className,xt=Kt.percent,Ct=Kt.prefixCls,zt=Kt.strokeColor,en=Kt.strokeLinecap,un=Kt.strokeWidth,Cn=Kt.style,Nn=Kt.trailColor,_n=Kt.trailWidth,yn=Kt.transition,Rn=(0,ae.Z)(Kt,ue);delete Rn.gapPosition;var pn=Array.isArray(xt)?xt:[xt],on=Array.isArray(zt)?zt:[zt],Vt=se(),Wt=un/2,Ht=100-un/2,hn="M ".concat(en==="round"?Wt:0,",").concat(Wt,`
L `).concat(en==="round"?Ht:100,",").concat(Wt),cn="0 0 100 ".concat(un),mn=0;return te.createElement("svg",(0,ce.Z)({className:ie()("".concat(Ct,"-line"),nn),viewBox:cn,preserveAspectRatio:"none",style:Cn},Rn),te.createElement("path",{className:"".concat(Ct,"-line-trail"),d:hn,strokeLinecap:en,stroke:Nn,strokeWidth:_n||un,fillOpacity:"0"}),pn.map(function(Bn,Pn){var gn=1;switch(en){case"round":gn=1-un/100;break;case"square":gn=1-un/2/100;break;default:gn=1;break}var Ln={strokeDasharray:"".concat(Bn*gn,"px, 100px"),strokeDashoffset:"-".concat(mn,"px"),transition:yn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Kn=on[Pn]||on[on.length-1];return mn+=Bn,te.createElement("path",{key:Pn,className:"".concat(Ct,"-line-path"),d:hn,strokeLinecap:en,stroke:Kn,strokeWidth:un,fillOpacity:"0",ref:function(nr){Vt[Pn]=nr},style:Ln})}))},he=pe,ye=Te(76190),ge=Te(42978),xe=Te(47273),ke=0,De=(0,xe.Z)();function Be(){var yt;return De?(yt=ke,ke+=1):yt="TEST_OR_SSR",yt}var Ae=function(yt){var Pt=te.useState(),Kt=(0,ge.Z)(Pt,2),nn=Kt[0],xt=Kt[1];return te.useEffect(function(){xt("rc_progress_".concat(Be()))},[]),yt||nn},Se=function(Pt){var Kt=Pt.bg,nn=Pt.children;return te.createElement("div",{style:{width:"100%",height:"100%",background:Kt}},nn)};function Ee(yt,Pt){return Object.keys(yt).map(function(Kt){var nn=parseFloat(Kt),xt="".concat(Math.floor(nn*Pt),"%");return"".concat(yt[Kt]," ").concat(xt)})}var Oe=te.forwardRef(function(yt,Pt){var Kt=yt.prefixCls,nn=yt.color,xt=yt.gradientId,Ct=yt.radius,zt=yt.style,en=yt.ptg,un=yt.strokeLinecap,Cn=yt.strokeWidth,Nn=yt.size,_n=yt.gapDegree,yn=nn&&(0,ye.Z)(nn)==="object",Rn=yn?"#FFF":void 0,pn=Nn/2,on=te.createElement("circle",{className:"".concat(Kt,"-circle-path"),r:Ct,cx:pn,cy:pn,stroke:Rn,strokeLinecap:un,strokeWidth:Cn,opacity:en===0?0:1,style:zt,ref:Pt});if(!yn)return on;var Vt="".concat(xt,"-conic"),Wt=_n?"".concat(180+_n/2,"deg"):"0deg",Ht=Ee(nn,(360-_n)/360),hn=Ee(nn,1),cn="conic-gradient(from ".concat(Wt,", ").concat(Ht.join(", "),")"),mn="linear-gradient(to ".concat(_n?"bottom":"top",", ").concat(hn.join(", "),")");return te.createElement(te.Fragment,null,te.createElement("mask",{id:Vt},on),te.createElement("foreignObject",{x:0,y:0,width:Nn,height:Nn,mask:"url(#".concat(Vt,")")},te.createElement(Se,{bg:mn},te.createElement(Se,{bg:cn}))))}),Pe=Oe,Le=100,Ne=function(Pt,Kt,nn,xt,Ct,zt,en,un,Cn,Nn){var _n=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,yn=nn/100*360*((360-zt)/360),Rn=zt===0?0:{bottom:0,top:180,left:90,right:-90}[en],pn=(100-xt)/100*Kt;Cn==="round"&&xt!==100&&(pn+=Nn/2,pn>=Kt&&(pn=Kt-.01));var on=Le/2;return{stroke:typeof un=="string"?un:void 0,strokeDasharray:"".concat(Kt,"px ").concat(Pt),strokeDashoffset:pn+_n,transform:"rotate(".concat(Ct+yn+Rn,"deg)"),transformOrigin:"".concat(on,"px ").concat(on,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},me=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ve(yt){var Pt=yt!=null?yt:[];return Array.isArray(Pt)?Pt:[Pt]}var Ze=function(Pt){var Kt=(0,x.Z)((0,x.Z)({},re),Pt),nn=Kt.id,xt=Kt.prefixCls,Ct=Kt.steps,zt=Kt.strokeWidth,en=Kt.trailWidth,un=Kt.gapDegree,Cn=un===void 0?0:un,Nn=Kt.gapPosition,_n=Kt.trailColor,yn=Kt.strokeLinecap,Rn=Kt.style,pn=Kt.className,on=Kt.strokeColor,Vt=Kt.percent,Wt=(0,ae.Z)(Kt,me),Ht=Le/2,hn=Ae(nn),cn="".concat(hn,"-gradient"),mn=Ht-zt/2,Bn=Math.PI*2*mn,Pn=Cn>0?90+Cn/2:-90,gn=Bn*((360-Cn)/360),Ln=(0,ye.Z)(Ct)==="object"?Ct:{count:Ct,gap:2},Kn=Ln.count,sr=Ln.gap,nr=Ve(Vt),ln=Ve(on),rn=ln.find(function(Tt){return Tt&&(0,ye.Z)(Tt)==="object"}),Wn=rn&&(0,ye.Z)(rn)==="object",Zn=Wn?"butt":yn,Mt=Ne(Bn,gn,0,100,Pn,Cn,Nn,_n,Zn,zt),Gt=se(),St=function(){var _t=0;return nr.map(function(bt,Ut){var Lt=ln[Ut]||ln[ln.length-1],qt=Ne(Bn,gn,_t,bt,Pn,Cn,Nn,Lt,Zn,zt);return _t+=bt,te.createElement(Pe,{key:Ut,color:Lt,ptg:bt,radius:mn,prefixCls:xt,gradientId:cn,style:qt,strokeLinecap:Zn,strokeWidth:zt,gapDegree:Cn,ref:function($t){Gt[Ut]=$t},size:Le})}).reverse()},Rt=function(){var _t=Math.round(Kn*(nr[0]/100)),bt=100/Kn,Ut=0;return new Array(Kn).fill(null).map(function(Lt,qt){var Ft=qt<=_t-1?ln[0]:_n,$t=Ft&&(0,ye.Z)(Ft)==="object"?"url(#".concat(cn,")"):void 0,Zt=Ne(Bn,gn,Ut,bt,Pn,Cn,Nn,Ft,"butt",zt,sr);return Ut+=(gn-Zt.strokeDashoffset+sr)*100/gn,te.createElement("circle",{key:qt,className:"".concat(xt,"-circle-path"),r:mn,cx:Ht,cy:Ht,stroke:$t,strokeWidth:zt,opacity:1,style:Zt,ref:function(Tn){Gt[qt]=Tn}})})};return te.createElement("svg",(0,ce.Z)({className:ie()("".concat(xt,"-circle"),pn),viewBox:"0 0 ".concat(Le," ").concat(Le),style:Rn,id:nn,role:"presentation"},Wt),!Kn&&te.createElement("circle",{className:"".concat(xt,"-circle-trail"),r:mn,cx:Ht,cy:Ht,stroke:_n,strokeLinecap:Zn,strokeWidth:en||zt,style:Mt}),Kn?Rt():St())},We=Ze,nt={Line:he,Circle:We},_e=Te(25399),Ue=Te(68361);function tt(yt){return!yt||yt<0?0:yt>100?100:yt}function rt(yt){let{success:Pt,successPercent:Kt}=yt,nn=Kt;return Pt&&"progress"in Pt&&(nn=Pt.progress),Pt&&"percent"in Pt&&(nn=Pt.percent),nn}const et=yt=>{let{percent:Pt,success:Kt,successPercent:nn}=yt;const xt=tt(rt({success:Kt,successPercent:nn}));return[xt,tt(tt(Pt)-xt)]},Ke=yt=>{let{success:Pt={},strokeColor:Kt}=yt;const{strokeColor:nn}=Pt;return[nn||Ue.presetPrimaryColors.green,Kt||null]},Ye=(yt,Pt,Kt)=>{var nn,xt,Ct,zt;let en=-1,un=-1;if(Pt==="step"){const Cn=Kt.steps,Nn=Kt.strokeWidth;typeof yt=="string"||typeof yt=="undefined"?(en=yt==="small"?2:14,un=Nn!=null?Nn:8):typeof yt=="number"?[en,un]=[yt,yt]:[en=14,un=8]=Array.isArray(yt)?yt:[yt.width,yt.height],en*=Cn}else if(Pt==="line"){const Cn=Kt==null?void 0:Kt.strokeWidth;typeof yt=="string"||typeof yt=="undefined"?un=Cn||(yt==="small"?6:8):typeof yt=="number"?[en,un]=[yt,yt]:[en=-1,un=8]=Array.isArray(yt)?yt:[yt.width,yt.height]}else(Pt==="circle"||Pt==="dashboard")&&(typeof yt=="string"||typeof yt=="undefined"?[en,un]=yt==="small"?[60,60]:[120,120]:typeof yt=="number"?[en,un]=[yt,yt]:Array.isArray(yt)&&(en=(xt=(nn=yt[0])!==null&&nn!==void 0?nn:yt[1])!==null&&xt!==void 0?xt:120,un=(zt=(Ct=yt[0])!==null&&Ct!==void 0?Ct:yt[1])!==null&&zt!==void 0?zt:120));return[en,un]},Xe=3,ot=yt=>Xe/yt*100;var ft=yt=>{const{prefixCls:Pt,trailColor:Kt=null,strokeLinecap:nn="round",gapPosition:xt,gapDegree:Ct,width:zt=120,type:en,children:un,success:Cn,size:Nn=zt,steps:_n}=yt,[yn,Rn]=Ye(Nn,"circle");let{strokeWidth:pn}=yt;pn===void 0&&(pn=Math.max(ot(yn),6));const on={width:yn,height:Rn,fontSize:yn*.15+6},Vt=te.useMemo(()=>{if(Ct||Ct===0)return Ct;if(en==="dashboard")return 75},[Ct,en]),Wt=et(yt),Ht=xt||en==="dashboard"&&"bottom"||void 0,hn=Object.prototype.toString.call(yt.strokeColor)==="[object Object]",cn=Ke({success:Cn,strokeColor:yt.strokeColor}),mn=ie()(`${Pt}-inner`,{[`${Pt}-circle-gradient`]:hn}),Bn=te.createElement(We,{steps:_n,percent:_n?Wt[1]:Wt,strokeWidth:pn,trailWidth:pn,strokeColor:_n?cn[1]:cn,strokeLinecap:nn,trailColor:Kt,prefixCls:Pt,gapDegree:Vt,gapPosition:Ht}),Pn=yn<=20,gn=te.createElement("div",{className:mn,style:on},Bn,!Pn&&un);return Pn?te.createElement(_e.Z,{title:un},gn):gn},at=Te(36237),qe=Te(63356),Fe=Te(16931),Re=Te(51636);const ne="--progress-line-stroke-color",fe="--progress-percent",Me=yt=>{const Pt=yt?"100%":"-100%";return new at.Keyframes(`antProgress${yt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Pt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Pt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ze=yt=>{const{componentCls:Pt,iconCls:Kt}=yt;return{[Pt]:Object.assign(Object.assign({},(0,qe.Wf)(yt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:yt.fontSize},[`${Pt}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${Pt}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:yt.remainingColor,borderRadius:yt.lineBorderRadius},[`${Pt}-inner:not(${Pt}-circle-gradient)`]:{[`${Pt}-circle-path`]:{stroke:yt.defaultColor}},[`${Pt}-success-bg, ${Pt}-bg`]:{position:"relative",background:yt.defaultColor,borderRadius:yt.lineBorderRadius,transition:`all ${yt.motionDurationSlow} ${yt.motionEaseInOutCirc}`},[`${Pt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${Pt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:yt.marginXXS}},[`${Pt}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${ne})`]},height:"100%",width:`calc(1 / var(${fe}) * 100%)`,display:"block"},[`&${Pt}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${Pt}-text-inner`]:{color:yt.colorWhite,[`&${Pt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${Pt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:yt.colorSuccess},[`${Pt}-text`]:{display:"inline-block",marginInlineStart:yt.marginXS,color:yt.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Kt]:{fontSize:yt.fontSize},[`&${Pt}-text-outer`]:{width:"max-content"},[`&${Pt}-text-outer${Pt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:yt.marginXS}},[`${Pt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,at.unit)(yt.paddingXXS)}`,[`&${Pt}-text-start`]:{justifyContent:"start"},[`&${Pt}-text-end`]:{justifyContent:"end"}},[`&${Pt}-status-active`]:{[`${Pt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:yt.colorBgContainer,borderRadius:yt.lineBorderRadius,opacity:0,animationName:Me(),animationDuration:yt.progressActiveMotionDuration,animationTimingFunction:yt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Pt}-rtl${Pt}-status-active`]:{[`${Pt}-bg::before`]:{animationName:Me(!0)}},[`&${Pt}-status-exception`]:{[`${Pt}-bg`]:{backgroundColor:yt.colorError},[`${Pt}-text`]:{color:yt.colorError}},[`&${Pt}-status-exception ${Pt}-inner:not(${Pt}-circle-gradient)`]:{[`${Pt}-circle-path`]:{stroke:yt.colorError}},[`&${Pt}-status-success`]:{[`${Pt}-bg`]:{backgroundColor:yt.colorSuccess},[`${Pt}-text`]:{color:yt.colorSuccess}},[`&${Pt}-status-success ${Pt}-inner:not(${Pt}-circle-gradient)`]:{[`${Pt}-circle-path`]:{stroke:yt.colorSuccess}}})}},we=yt=>{const{componentCls:Pt,iconCls:Kt}=yt;return{[Pt]:{[`${Pt}-circle-trail`]:{stroke:yt.remainingColor},[`&${Pt}-circle ${Pt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Pt}-circle ${Pt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:yt.circleTextColor,fontSize:yt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Kt]:{fontSize:yt.circleIconFontSize}},[`${Pt}-circle&-status-exception`]:{[`${Pt}-text`]:{color:yt.colorError}},[`${Pt}-circle&-status-success`]:{[`${Pt}-text`]:{color:yt.colorSuccess}}},[`${Pt}-inline-circle`]:{lineHeight:1,[`${Pt}-inner`]:{verticalAlign:"bottom"}}}},ve=yt=>{const{componentCls:Pt}=yt;return{[Pt]:{[`${Pt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:yt.progressStepMinWidth,marginInlineEnd:yt.progressStepMarginInlineEnd,backgroundColor:yt.remainingColor,transition:`all ${yt.motionDurationSlow}`,"&-active":{backgroundColor:yt.defaultColor}}}}}},Ie=yt=>{const{componentCls:Pt,iconCls:Kt}=yt;return{[Pt]:{[`${Pt}-small&-line, ${Pt}-small&-line ${Pt}-text ${Kt}`]:{fontSize:yt.fontSizeSM}}}},$e=yt=>({circleTextColor:yt.colorText,defaultColor:yt.colorInfo,remainingColor:yt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${yt.fontSize/yt.fontSizeSM}em`});var Ge=(0,Fe.I$)("Progress",yt=>{const Pt=yt.calc(yt.marginXXS).div(2).equal(),Kt=(0,Re.mergeToken)(yt,{progressStepMarginInlineEnd:Pt,progressStepMinWidth:Pt,progressActiveMotionDuration:"2.4s"});return[ze(Kt),we(Kt),ve(Kt),Ie(Kt)]},$e),Je=function(yt,Pt){var Kt={};for(var nn in yt)Object.prototype.hasOwnProperty.call(yt,nn)&&Pt.indexOf(nn)<0&&(Kt[nn]=yt[nn]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,nn=Object.getOwnPropertySymbols(yt);xt<nn.length;xt++)Pt.indexOf(nn[xt])<0&&Object.prototype.propertyIsEnumerable.call(yt,nn[xt])&&(Kt[nn[xt]]=yt[nn[xt]]);return Kt};const ut=yt=>{let Pt=[];return Object.keys(yt).forEach(Kt=>{const nn=parseFloat(Kt.replace(/%/g,""));Number.isNaN(nn)||Pt.push({key:nn,value:yt[Kt]})}),Pt=Pt.sort((Kt,nn)=>Kt.key-nn.key),Pt.map(Kt=>{let{key:nn,value:xt}=Kt;return`${xt} ${nn}%`}).join(", ")},lt=(yt,Pt)=>{const{from:Kt=Ue.presetPrimaryColors.blue,to:nn=Ue.presetPrimaryColors.blue,direction:xt=Pt==="rtl"?"to left":"to right"}=yt,Ct=Je(yt,["from","to","direction"]);if(Object.keys(Ct).length!==0){const en=ut(Ct),un=`linear-gradient(${xt}, ${en})`;return{background:un,[ne]:un}}const zt=`linear-gradient(${xt}, ${Kt}, ${nn})`;return{background:zt,[ne]:zt}};var ct=yt=>{const{prefixCls:Pt,direction:Kt,percent:nn,size:xt,strokeWidth:Ct,strokeColor:zt,strokeLinecap:en="round",children:un,trailColor:Cn=null,percentPosition:Nn,success:_n}=yt,{align:yn,type:Rn}=Nn,pn=zt&&typeof zt!="string"?lt(zt,Kt):{[ne]:zt,background:zt},on=en==="square"||en==="butt"?0:void 0,Vt=xt!=null?xt:[-1,Ct||(xt==="small"?6:8)],[Wt,Ht]=Ye(Vt,"line",{strokeWidth:Ct}),hn={backgroundColor:Cn||void 0,borderRadius:on},cn=Object.assign(Object.assign({width:`${tt(nn)}%`,height:Ht,borderRadius:on},pn),{[fe]:tt(nn)/100}),mn=rt(yt),Bn={width:`${tt(mn)}%`,height:Ht,borderRadius:on,backgroundColor:_n==null?void 0:_n.strokeColor},Pn={width:Wt<0?"100%":Wt},gn=te.createElement("div",{className:`${Pt}-inner`,style:hn},te.createElement("div",{className:ie()(`${Pt}-bg`,`${Pt}-bg-${Rn}`),style:cn},Rn==="inner"&&un),mn!==void 0&&te.createElement("div",{className:`${Pt}-success-bg`,style:Bn})),Ln=Rn==="outer"&&yn==="start",Kn=Rn==="outer"&&yn==="end";return Rn==="outer"&&yn==="center"?te.createElement("div",{className:`${Pt}-layout-bottom`},gn,un):te.createElement("div",{className:`${Pt}-outer`,style:Pn},Ln&&un,gn,Kn&&un)},At=yt=>{const{size:Pt,steps:Kt,rounding:nn=Math.round,percent:xt=0,strokeWidth:Ct=8,strokeColor:zt,trailColor:en=null,prefixCls:un,children:Cn}=yt,Nn=nn(Kt*(xt/100)),_n=Pt==="small"?2:14,yn=Pt!=null?Pt:[_n,Ct],[Rn,pn]=Ye(yn,"step",{steps:Kt,strokeWidth:Ct}),on=Rn/Kt,Vt=Array.from({length:Kt});for(let Wt=0;Wt<Kt;Wt++){const Ht=Array.isArray(zt)?zt[Wt]:zt;Vt[Wt]=te.createElement("div",{key:Wt,className:ie()(`${un}-steps-item`,{[`${un}-steps-item-active`]:Wt<=Nn-1}),style:{backgroundColor:Wt<=Nn-1?Ht:en,width:on,height:pn}})}return te.createElement("div",{className:`${un}-steps-outer`},Vt,Cn)},mt=function(yt,Pt){var Kt={};for(var nn in yt)Object.prototype.hasOwnProperty.call(yt,nn)&&Pt.indexOf(nn)<0&&(Kt[nn]=yt[nn]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,nn=Object.getOwnPropertySymbols(yt);xt<nn.length;xt++)Pt.indexOf(nn[xt])<0&&Object.prototype.propertyIsEnumerable.call(yt,nn[xt])&&(Kt[nn[xt]]=yt[nn[xt]]);return Kt};const Dt=null,jt=["normal","exception","active","success"];var kt=te.forwardRef((yt,Pt)=>{const{prefixCls:Kt,className:nn,rootClassName:xt,steps:Ct,strokeColor:zt,percent:en=0,size:un="default",showInfo:Cn=!0,type:Nn="line",status:_n,format:yn,style:Rn,percentPosition:pn={}}=yt,on=mt(yt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Vt="end",type:Wt="outer"}=pn,Ht=Array.isArray(zt)?zt[0]:zt,hn=typeof zt=="string"||Array.isArray(zt)?zt:void 0,cn=te.useMemo(()=>{if(Ht){const St=typeof Ht=="string"?Ht:Object.values(Ht)[0];return new Ot.FastColor(St).isLight()}return!1},[zt]),mn=te.useMemo(()=>{var St,Rt;const Tt=rt(yt);return parseInt(Tt!==void 0?(St=Tt!=null?Tt:0)===null||St===void 0?void 0:St.toString():(Rt=en!=null?en:0)===null||Rt===void 0?void 0:Rt.toString(),10)},[en,yt.success,yt.successPercent]),Bn=te.useMemo(()=>!jt.includes(_n)&&mn>=100?"success":_n||"normal",[_n,mn]),{getPrefixCls:Pn,direction:gn,progress:Ln}=te.useContext(ee.E_),Kn=Pn("progress",Kt),[sr,nr,ln]=Ge(Kn),rn=Nn==="line",Wn=rn&&!Ct,Zn=te.useMemo(()=>{if(!Cn)return null;const St=rt(yt);let Rt;const Tt=yn||(bt=>`${bt}%`),_t=rn&&cn&&Wt==="inner";return Wt==="inner"||yn||Bn!=="exception"&&Bn!=="success"?Rt=Tt(tt(en),tt(St)):Bn==="exception"?Rt=rn?te.createElement(be.Z,null):te.createElement(z.Z,null):Bn==="success"&&(Rt=rn?te.createElement(y.Z,null):te.createElement(je.Z,null)),te.createElement("span",{className:ie()(`${Kn}-text`,{[`${Kn}-text-bright`]:_t,[`${Kn}-text-${Vt}`]:Wn,[`${Kn}-text-${Wt}`]:Wn}),title:typeof Rt=="string"?Rt:void 0},Rt)},[Cn,en,mn,Bn,Nn,Kn,yn]);let Mt;Nn==="line"?Mt=Ct?te.createElement(At,Object.assign({},yt,{strokeColor:hn,prefixCls:Kn,steps:typeof Ct=="object"?Ct.count:Ct}),Zn):te.createElement(ct,Object.assign({},yt,{strokeColor:Ht,prefixCls:Kn,direction:gn,percentPosition:{align:Vt,type:Wt}}),Zn):(Nn==="circle"||Nn==="dashboard")&&(Mt=te.createElement(ft,Object.assign({},yt,{strokeColor:Ht,prefixCls:Kn,progressStatus:Bn}),Zn));const Gt=ie()(Kn,`${Kn}-status-${Bn}`,{[`${Kn}-${Nn==="dashboard"&&"circle"||Nn}`]:Nn!=="line",[`${Kn}-inline-circle`]:Nn==="circle"&&Ye(un,"circle")[0]<=20,[`${Kn}-line`]:Wn,[`${Kn}-line-align-${Vt}`]:Wn,[`${Kn}-line-position-${Wt}`]:Wn,[`${Kn}-steps`]:Ct,[`${Kn}-show-info`]:Cn,[`${Kn}-${un}`]:typeof un=="string",[`${Kn}-rtl`]:gn==="rtl"},Ln==null?void 0:Ln.className,nn,xt,nr,ln);return sr(te.createElement("div",Object.assign({ref:Pt,style:Object.assign(Object.assign({},Ln==null?void 0:Ln.style),Rn),className:Gt,role:"progressbar","aria-valuenow":mn,"aria-valuemin":0,"aria-valuemax":100},(0,oe.Z)(on,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Mt))}),Nt=kt},63139:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return et}});var te=Te(59301),Ot=Te(54476),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},je=y,be=Te(7657),z=function(Ye,Xe){return te.createElement(be.Z,(0,Ot.Z)({},Ye,{ref:Xe,icon:je}))},E=te.forwardRef(z),ie=E,oe=Te(92310),ee=Te.n(oe),ce=Te(20068),x=Te(42978),ae=Te(75931),re=Te(18929),se=Te(10228),ue=Te(26112);function pe(Ke,Ye){var Xe=Ke.disabled,ot=Ke.prefixCls,Qe=Ke.character,ft=Ke.characterRender,at=Ke.index,qe=Ke.count,Fe=Ke.value,Re=Ke.allowHalf,ne=Ke.focused,fe=Ke.onHover,Me=Ke.onClick,ze=function(lt){fe(lt,at)},we=function(lt){Me(lt,at)},ve=function(lt){lt.keyCode===se.Z.ENTER&&Me(lt,at)},Ie=at+1,$e=new Set([ot]);Fe===0&&at===0&&ne?$e.add("".concat(ot,"-focused")):Re&&Fe+.5>=Ie&&Fe<Ie?($e.add("".concat(ot,"-half")),$e.add("".concat(ot,"-active")),ne&&$e.add("".concat(ot,"-focused"))):(Ie<=Fe?$e.add("".concat(ot,"-full")):$e.add("".concat(ot,"-zero")),Ie===Fe&&ne&&$e.add("".concat(ot,"-focused")));var Ge=typeof Qe=="function"?Qe(Ke):Qe,Je=te.createElement("li",{className:ee()(Array.from($e)),ref:Ye},te.createElement("div",{onClick:Xe?null:we,onKeyDown:Xe?null:ve,onMouseMove:Xe?null:ze,role:"radio","aria-checked":Fe>at?"true":"false","aria-posinset":at+1,"aria-setsize":qe,tabIndex:Xe?-1:0},te.createElement("div",{className:"".concat(ot,"-first")},Ge),te.createElement("div",{className:"".concat(ot,"-second")},Ge)));return ft&&(Je=ft(Je,Ke)),Je}var he=te.forwardRef(pe);function ye(){var Ke=te.useRef({});function Ye(ot){return Ke.current[ot]}function Xe(ot){return function(Qe){Ke.current[ot]=Qe}}return[Ye,Xe]}function ge(Ke){var Ye=Ke.pageXOffset,Xe="scrollLeft";if(typeof Ye!="number"){var ot=Ke.document;Ye=ot.documentElement[Xe],typeof Ye!="number"&&(Ye=ot.body[Xe])}return Ye}function xe(Ke){var Ye,Xe,ot=Ke.ownerDocument,Qe=ot.body,ft=ot&&ot.documentElement,at=Ke.getBoundingClientRect();return Ye=at.left,Xe=at.top,Ye-=ft.clientLeft||Qe.clientLeft||0,Xe-=ft.clientTop||Qe.clientTop||0,{left:Ye,top:Xe}}function ke(Ke){var Ye=xe(Ke),Xe=Ke.ownerDocument,ot=Xe.defaultView||Xe.parentWindow;return Ye.left+=ge(ot),Ye.left}var De=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Be(Ke,Ye){var Xe=Ke.prefixCls,ot=Xe===void 0?"rc-rate":Xe,Qe=Ke.className,ft=Ke.defaultValue,at=Ke.value,qe=Ke.count,Fe=qe===void 0?5:qe,Re=Ke.allowHalf,ne=Re===void 0?!1:Re,fe=Ke.allowClear,Me=fe===void 0?!0:fe,ze=Ke.keyboard,we=ze===void 0?!0:ze,ve=Ke.character,Ie=ve===void 0?"\u2605":ve,$e=Ke.characterRender,Ge=Ke.disabled,Je=Ke.direction,ut=Je===void 0?"ltr":Je,lt=Ke.tabIndex,vt=lt===void 0?0:lt,ct=Ke.autoFocus,st=Ke.onHoverChange,At=Ke.onChange,mt=Ke.onFocus,Dt=Ke.onBlur,jt=Ke.onKeyDown,Et=Ke.onMouseLeave,kt=(0,ae.Z)(Ke,De),Nt=ye(),yt=(0,x.Z)(Nt,2),Pt=yt[0],Kt=yt[1],nn=te.useRef(null),xt=function(){if(!Ge){var Zn;(Zn=nn.current)===null||Zn===void 0||Zn.focus()}};te.useImperativeHandle(Ye,function(){return{focus:xt,blur:function(){if(!Ge){var Zn;(Zn=nn.current)===null||Zn===void 0||Zn.blur()}}}});var Ct=(0,re.Z)(ft||0,{value:at}),zt=(0,x.Z)(Ct,2),en=zt[0],un=zt[1],Cn=(0,re.Z)(null),Nn=(0,x.Z)(Cn,2),_n=Nn[0],yn=Nn[1],Rn=function(Zn,Mt){var Gt=ut==="rtl",St=Zn+1;if(ne){var Rt=Pt(Zn),Tt=ke(Rt),_t=Rt.clientWidth;(Gt&&Mt-Tt>_t/2||!Gt&&Mt-Tt<_t/2)&&(St-=.5)}return St},pn=function(Zn){un(Zn),At==null||At(Zn)},on=te.useState(!1),Vt=(0,x.Z)(on,2),Wt=Vt[0],Ht=Vt[1],hn=function(){Ht(!0),mt==null||mt()},cn=function(){Ht(!1),Dt==null||Dt()},mn=te.useState(null),Bn=(0,x.Z)(mn,2),Pn=Bn[0],gn=Bn[1],Ln=function(Zn,Mt){var Gt=Rn(Mt,Zn.pageX);Gt!==_n&&(gn(Gt),yn(null)),st==null||st(Gt)},Kn=function(Zn){Ge||(gn(null),yn(null),st==null||st(void 0)),Zn&&(Et==null||Et(Zn))},sr=function(Zn,Mt){var Gt=Rn(Mt,Zn.pageX),St=!1;Me&&(St=Gt===en),Kn(),pn(St?0:Gt),yn(St?Gt:null)},nr=function(Zn){var Mt=Zn.keyCode,Gt=ut==="rtl",St=ne?.5:1;we&&(Mt===se.Z.RIGHT&&en<Fe&&!Gt?(pn(en+St),Zn.preventDefault()):Mt===se.Z.LEFT&&en>0&&!Gt||Mt===se.Z.RIGHT&&en>0&&Gt?(pn(en-St),Zn.preventDefault()):Mt===se.Z.LEFT&&en<Fe&&Gt&&(pn(en+St),Zn.preventDefault())),jt==null||jt(Zn)};te.useEffect(function(){ct&&!Ge&&xt()},[]);var ln=new Array(Fe).fill(0).map(function(Wn,Zn){return te.createElement(he,{ref:Kt(Zn),index:Zn,count:Fe,disabled:Ge,prefixCls:"".concat(ot,"-star"),allowHalf:ne,value:Pn===null?en:Pn,onClick:sr,onHover:Ln,key:Wn||Zn,character:Ie,characterRender:$e,focused:Wt})}),rn=ee()(ot,Qe,(0,ce.Z)((0,ce.Z)({},"".concat(ot,"-disabled"),Ge),"".concat(ot,"-rtl"),ut==="rtl"));return te.createElement("ul",(0,Ot.Z)({className:rn,onMouseLeave:Kn,tabIndex:Ge?-1:vt,onFocus:Ge?null:hn,onBlur:Ge?null:cn,onKeyDown:Ge?null:nr,ref:nn},(0,ue.Z)(kt,{aria:!0,data:!0,attr:!0})),ln)}var Ae=te.forwardRef(Be),Se=Ae,Ee=Te(48755),Oe=Te(25399),Pe=Te(36237),Le=Te(63356),Ne=Te(16931),me=Te(51636);const Ve=Ke=>{const{componentCls:Ye}=Ke;return{[`${Ye}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ke.marginXS},"> div":{transition:`all ${Ke.motionDurationMid}, outline 0s`,"&:hover":{transform:Ke.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Pe.unit)(Ke.lineWidth)} dashed ${Ke.starColor}`,transform:Ke.starHoverScale}},"&-first, &-second":{color:Ke.starBg,transition:`all ${Ke.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Ye}-star-first, &-half ${Ye}-star-second`]:{opacity:1},[`&-half ${Ye}-star-first, &-full ${Ye}-star-second`]:{color:"inherit"}}}},Ze=Ke=>({[`&-rtl${Ke.componentCls}`]:{direction:"rtl"}}),We=Ke=>{const{componentCls:Ye}=Ke;return{[Ye]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Le.Wf)(Ke)),{display:"inline-block",margin:0,padding:0,color:Ke.starColor,fontSize:Ke.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${Ye} ${Ye}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ve(Ke)),Ze(Ke))}},nt=Ke=>({starColor:Ke.yellow6,starSize:Ke.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ke.colorFillContent});var _e=(0,Ne.I$)("Rate",Ke=>{const Ye=(0,me.mergeToken)(Ke,{});return[We(Ye)]},nt),Ue=Te(2171),tt=function(Ke,Ye){var Xe={};for(var ot in Ke)Object.prototype.hasOwnProperty.call(Ke,ot)&&Ye.indexOf(ot)<0&&(Xe[ot]=Ke[ot]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,ot=Object.getOwnPropertySymbols(Ke);Qe<ot.length;Qe++)Ye.indexOf(ot[Qe])<0&&Object.prototype.propertyIsEnumerable.call(Ke,ot[Qe])&&(Xe[ot[Qe]]=Ke[ot[Qe]]);return Xe},et=te.forwardRef((Ke,Ye)=>{const{prefixCls:Xe,className:ot,rootClassName:Qe,style:ft,tooltips:at,character:qe=te.createElement(ie,null),disabled:Fe}=Ke,Re=tt(Ke,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),ne=(lt,vt)=>{let{index:ct}=vt;return at?te.createElement(Oe.Z,{title:at[ct]},lt):lt},{getPrefixCls:fe,direction:Me,rate:ze}=te.useContext(Ee.E_),we=fe("rate",Xe),[ve,Ie,$e]=_e(we),Ge=Object.assign(Object.assign({},ze==null?void 0:ze.style),ft),Je=te.useContext(Ue.Z),ut=Fe!=null?Fe:Je;return ve(te.createElement(Se,Object.assign({ref:Ye,character:qe,characterRender:ne,disabled:ut},Re,{className:ee()(ot,Qe,Ie,$e,ze==null?void 0:ze.className),style:Ge,prefixCls:we,direction:Me})))})},82326:function(In,Yt,Te){"use strict";var te=Te(59301),Ot=Te(92310),y=Te.n(Ot),je=Te(37463),be=Te(2738),z=Te(75030),E=Te(86641),ie=Te(45915),oe=Te(82855),ee=Te(48755),ce=Te(38406),x=Te(2171),ae=Te(83397),re=Te(31756),se=Te(56553),ue=Te(24971),pe=Te(70045),he=Te(57700),ye=Te(1722),ge=Te(90376),xe=Te(68525),ke=Te(90005),De=function(Oe,Pe){var Le={};for(var Ne in Oe)Object.prototype.hasOwnProperty.call(Oe,Ne)&&Pe.indexOf(Ne)<0&&(Le[Ne]=Oe[Ne]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Ne=Object.getOwnPropertySymbols(Oe);me<Ne.length;me++)Pe.indexOf(Ne[me])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Ne[me])&&(Le[Ne[me]]=Oe[Ne[me]]);return Le};const Be="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ae=(Oe,Pe)=>{var Le;const{prefixCls:Ne,bordered:me,className:Ve,rootClassName:Ze,getPopupContainer:We,popupClassName:nt,dropdownClassName:_e,listHeight:Ue=256,placement:tt,listItemHeight:rt,size:et,disabled:Ke,notFoundContent:Ye,status:Xe,builtinPlacements:ot,dropdownMatchSelectWidth:Qe,popupMatchSelectWidth:ft,direction:at,style:qe,allowClear:Fe,variant:Re,dropdownStyle:ne,transitionName:fe,tagRender:Me,maxCount:ze,prefix:we}=Oe,ve=De(Oe,["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:Ie,getPrefixCls:$e,renderEmpty:Ge,direction:Je,virtual:ut,popupMatchSelectWidth:lt,popupOverflow:vt}=te.useContext(ee.E_),ct=(0,ee.dj)("select"),[,st]=(0,he.ZP)(),At=rt!=null?rt:st==null?void 0:st.controlHeight,mt=$e("select",Ne),Dt=$e(),jt=at!=null?at:Je,{compactSize:Et,compactItemClassnames:kt}=(0,pe.ri)(mt,jt),[Nt,yt]=(0,ue.Z)("select",Re,me),Pt=(0,ae.Z)(mt),[Kt,nn,xt]=(0,ge.Z)(mt,Pt),Ct=te.useMemo(()=>{const{mode:nr}=Oe;if(nr!=="combobox")return nr===Be?"combobox":nr},[Oe.mode]),zt=Ct==="multiple"||Ct==="tags",en=(0,ke.Z)(Oe.suffixIcon,Oe.showArrow),un=(Le=ft!=null?ft:Qe)!==null&&Le!==void 0?Le:lt,{status:Cn,hasFeedback:Nn,isFormItemInput:_n,feedbackIcon:yn}=te.useContext(se.aM),Rn=(0,oe.F)(Cn,Xe);let pn;Ye!==void 0?pn=Ye:Ct==="combobox"?pn=null:pn=(Ge==null?void 0:Ge("Select"))||te.createElement(ce.Z,{componentName:"Select"});const{suffixIcon:on,itemIcon:Vt,removeIcon:Wt,clearIcon:Ht}=(0,xe.Z)(Object.assign(Object.assign({},ve),{multiple:zt,hasFeedback:Nn,feedbackIcon:yn,showSuffixIcon:en,prefixCls:mt,componentName:"Select"})),hn=Fe===!0?{clearIcon:Ht}:Fe,cn=(0,be.Z)(ve,["suffixIcon","itemIcon"]),mn=y()(nt||_e,{[`${mt}-dropdown-${jt}`]:jt==="rtl"},Ze,xt,Pt,nn),Bn=(0,re.Z)(nr=>{var ln;return(ln=et!=null?et:Et)!==null&&ln!==void 0?ln:nr}),Pn=te.useContext(x.Z),gn=Ke!=null?Ke:Pn,Ln=y()({[`${mt}-lg`]:Bn==="large",[`${mt}-sm`]:Bn==="small",[`${mt}-rtl`]:jt==="rtl",[`${mt}-${Nt}`]:yt,[`${mt}-in-form-item`]:_n},(0,oe.Z)(mt,Rn,Nn),kt,ct.className,Ve,Ze,xt,Pt,nn),Kn=te.useMemo(()=>tt!==void 0?tt:jt==="rtl"?"bottomRight":"bottomLeft",[tt,jt]),[sr]=(0,z.Cn)("SelectLike",ne==null?void 0:ne.zIndex);return Kt(te.createElement(je.ZP,Object.assign({ref:Pe,virtual:ut,showSearch:ct.showSearch},cn,{style:Object.assign(Object.assign({},ct.style),qe),dropdownMatchSelectWidth:un,transitionName:(0,E.m)(Dt,"slide-up",fe),builtinPlacements:(0,ye.Z)(ot,vt),listHeight:Ue,listItemHeight:At,mode:Ct,prefixCls:mt,placement:Kn,direction:jt,prefix:we,suffixIcon:on,menuItemSelectedIcon:Vt,removeIcon:Wt,allowClear:hn,notFoundContent:pn,className:Ln,getPopupContainer:We||Ie,dropdownClassName:mn,disabled:gn,dropdownStyle:Object.assign(Object.assign({},ne),{zIndex:sr}),maxCount:zt?ze:void 0,tagRender:zt?Me:void 0})))},Se=te.forwardRef(Ae),Ee=(0,ie.Z)(Se,"dropdownAlign");Se.SECRET_COMBOBOX_MODE_DO_NOT_USE=Be,Se.Option=je.Wx,Se.OptGroup=je.Xo,Se._InternalPanelDoNotUseOrYouWillBeFired=Ee,Yt.default=Se},1722:function(In,Yt){"use strict";const Te=Ot=>{const je={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Ot==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},je),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},je),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},je),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},je),{points:["br","tr"],offset:[0,-4]})}};function te(Ot,y){return Ot||Te(y)}Yt.Z=te},90376:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Ne}});var te=Te(63356),Ot=Te(56119),y=Te(16931),je=Te(51636),be=Te(46e3),z=Te(93873);const E=me=>{const{optionHeight:Ve,optionFontSize:Ze,optionLineHeight:We,optionPadding:nt}=me;return{position:"relative",display:"block",minHeight:Ve,padding:nt,color:me.colorText,fontWeight:"normal",fontSize:Ze,lineHeight:We,boxSizing:"border-box"}};var oe=me=>{const{antCls:Ve,componentCls:Ze}=me,We=`${Ze}-item`,nt=`&${Ve}-slide-up-enter${Ve}-slide-up-enter-active`,_e=`&${Ve}-slide-up-appear${Ve}-slide-up-appear-active`,Ue=`&${Ve}-slide-up-leave${Ve}-slide-up-leave-active`,tt=`${Ze}-dropdown-placement-`,rt=`${We}-option-selected`;return[{[`${Ze}-dropdown`]:Object.assign(Object.assign({},(0,te.Wf)(me)),{position:"absolute",top:-9999,zIndex:me.zIndexPopup,boxSizing:"border-box",padding:me.paddingXXS,overflow:"hidden",fontSize:me.fontSize,fontVariant:"initial",backgroundColor:me.colorBgElevated,borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary,[`
${nt}${tt}bottomLeft,
${_e}${tt}bottomLeft
`]:{animationName:be.fJ},[`
${nt}${tt}topLeft,
${_e}${tt}topLeft,
${nt}${tt}topRight,
${_e}${tt}topRight
`]:{animationName:be.Qt},[`${Ue}${tt}bottomLeft`]:{animationName:be.Uw},[`
${Ue}${tt}topLeft,
${Ue}${tt}topRight
`]:{animationName:be.ly},"&-hidden":{display:"none"},[We]:Object.assign(Object.assign({},E(me)),{cursor:"pointer",transition:`background ${me.motionDurationSlow} ease`,borderRadius:me.borderRadiusSM,"&-group":{color:me.colorTextDescription,fontSize:me.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},te.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${We}-option-disabled)`]:{backgroundColor:me.optionActiveBg},[`&-selected:not(${We}-option-disabled)`]:{color:me.optionSelectedColor,fontWeight:me.optionSelectedFontWeight,backgroundColor:me.optionSelectedBg,[`${We}-option-state`]:{color:me.colorPrimary}},"&-disabled":{[`&${We}-option-selected`]:{backgroundColor:me.colorBgContainerDisabled},color:me.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:me.calc(me.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},E(me)),{color:me.colorTextDisabled})}),[`${rt}:has(+ ${rt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${rt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,be.oN)(me,"slide-up"),(0,be.oN)(me,"slide-down"),(0,z.Fm)(me,"move-up"),(0,z.Fm)(me,"move-down")]},ee=Te(26743),ce=Te(36237);function x(me,Ve){const{componentCls:Ze,inputPaddingHorizontalBase:We,borderRadius:nt}=me,_e=me.calc(me.controlHeight).sub(me.calc(me.lineWidth).mul(2)).equal(),Ue=Ve?`${Ze}-${Ve}`:"";return{[`${Ze}-single${Ue}`]:{fontSize:me.fontSize,height:me.controlHeight,[`${Ze}-selector`]:Object.assign(Object.assign({},(0,te.Wf)(me,!0)),{display:"flex",borderRadius:nt,flex:"1 1 auto",[`${Ze}-selection-wrap:after`]:{lineHeight:(0,ce.unit)(_e)},[`${Ze}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${Ze}-selection-item,
${Ze}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,ce.unit)(_e),transition:`all ${me.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Ze}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ze}-selection-item:empty:after`,`${Ze}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${Ze}-show-arrow ${Ze}-selection-item,
&${Ze}-show-arrow ${Ze}-selection-search,
&${Ze}-show-arrow ${Ze}-selection-placeholder
`]:{paddingInlineEnd:me.showArrowPaddingInlineEnd},[`&${Ze}-open ${Ze}-selection-item`]:{color:me.colorTextPlaceholder},[`&:not(${Ze}-customize-input)`]:{[`${Ze}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,ce.unit)(We)}`,[`${Ze}-selection-search-input`]:{height:_e,fontSize:me.fontSize},"&:after":{lineHeight:(0,ce.unit)(_e)}}},[`&${Ze}-customize-input`]:{[`${Ze}-selector`]:{"&:after":{display:"none"},[`${Ze}-selection-search`]:{position:"static",width:"100%"},[`${Ze}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,ce.unit)(We)}`,"&:after":{display:"none"}}}}}}}function ae(me){const{componentCls:Ve}=me,Ze=me.calc(me.controlPaddingHorizontalSM).sub(me.lineWidth).equal();return[x(me),x((0,je.mergeToken)(me,{controlHeight:me.controlHeightSM,borderRadius:me.borderRadiusSM}),"sm"),{[`${Ve}-single${Ve}-sm`]:{[`&:not(${Ve}-customize-input)`]:{[`${Ve}-selector`]:{padding:`0 ${(0,ce.unit)(Ze)}`},[`&${Ve}-show-arrow ${Ve}-selection-search`]:{insetInlineEnd:me.calc(Ze).add(me.calc(me.fontSize).mul(1.5)).equal()},[`
&${Ve}-show-arrow ${Ve}-selection-item,
&${Ve}-show-arrow ${Ve}-selection-placeholder
`]:{paddingInlineEnd:me.calc(me.fontSize).mul(1.5).equal()}}}},x((0,je.mergeToken)(me,{controlHeight:me.singleItemHeightLG,fontSize:me.fontSizeLG,borderRadius:me.borderRadiusLG}),"lg")]}const re=me=>{const{fontSize:Ve,lineHeight:Ze,lineWidth:We,controlHeight:nt,controlHeightSM:_e,controlHeightLG:Ue,paddingXXS:tt,controlPaddingHorizontal:rt,zIndexPopupBase:et,colorText:Ke,fontWeightStrong:Ye,controlItemBgActive:Xe,controlItemBgHover:ot,colorBgContainer:Qe,colorFillSecondary:ft,colorBgContainerDisabled:at,colorTextDisabled:qe,colorPrimaryHover:Fe,colorPrimary:Re,controlOutline:ne}=me,fe=tt*2,Me=We*2,ze=Math.min(nt-fe,nt-Me),we=Math.min(_e-fe,_e-Me),ve=Math.min(Ue-fe,Ue-Me);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(tt/2),zIndexPopup:et+50,optionSelectedColor:Ke,optionSelectedFontWeight:Ye,optionSelectedBg:Xe,optionActiveBg:ot,optionPadding:`${(nt-Ve*Ze)/2}px ${rt}px`,optionFontSize:Ve,optionLineHeight:Ze,optionHeight:nt,selectorBg:Qe,clearBg:Qe,singleItemHeightLG:Ue,multipleItemBg:ft,multipleItemBorderColor:"transparent",multipleItemHeight:ze,multipleItemHeightSM:we,multipleItemHeightLG:ve,multipleSelectorBgDisabled:at,multipleItemColorDisabled:qe,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(me.fontSize*1.25),hoverBorderColor:Fe,activeBorderColor:Re,activeOutlineColor:ne,selectAffixPadding:tt}},se=(me,Ve)=>{const{componentCls:Ze,antCls:We,controlOutlineWidth:nt}=me;return{[`&:not(${Ze}-customize-input) ${Ze}-selector`]:{border:`${(0,ce.unit)(me.lineWidth)} ${me.lineType} ${Ve.borderColor}`,background:me.selectorBg},[`&:not(${Ze}-disabled):not(${Ze}-customize-input):not(${We}-pagination-size-changer)`]:{[`&:hover ${Ze}-selector`]:{borderColor:Ve.hoverBorderHover},[`${Ze}-focused& ${Ze}-selector`]:{borderColor:Ve.activeBorderColor,boxShadow:`0 0 0 ${(0,ce.unit)(nt)} ${Ve.activeOutlineColor}`,outline:0},[`${Ze}-prefix`]:{color:Ve.color}}}},ue=(me,Ve)=>({[`&${me.componentCls}-status-${Ve.status}`]:Object.assign({},se(me,Ve))}),pe=me=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},se(me,{borderColor:me.colorBorder,hoverBorderHover:me.hoverBorderColor,activeBorderColor:me.activeBorderColor,activeOutlineColor:me.activeOutlineColor,color:me.colorText})),ue(me,{status:"error",borderColor:me.colorError,hoverBorderHover:me.colorErrorHover,activeBorderColor:me.colorError,activeOutlineColor:me.colorErrorOutline,color:me.colorError})),ue(me,{status:"warning",borderColor:me.colorWarning,hoverBorderHover:me.colorWarningHover,activeBorderColor:me.colorWarning,activeOutlineColor:me.colorWarningOutline,color:me.colorWarning})),{[`&${me.componentCls}-disabled`]:{[`&:not(${me.componentCls}-customize-input) ${me.componentCls}-selector`]:{background:me.colorBgContainerDisabled,color:me.colorTextDisabled}},[`&${me.componentCls}-multiple ${me.componentCls}-selection-item`]:{background:me.multipleItemBg,border:`${(0,ce.unit)(me.lineWidth)} ${me.lineType} ${me.multipleItemBorderColor}`}})}),he=(me,Ve)=>{const{componentCls:Ze,antCls:We}=me;return{[`&:not(${Ze}-customize-input) ${Ze}-selector`]:{background:Ve.bg,border:`${(0,ce.unit)(me.lineWidth)} ${me.lineType} transparent`,color:Ve.color},[`&:not(${Ze}-disabled):not(${Ze}-customize-input):not(${We}-pagination-size-changer)`]:{[`&:hover ${Ze}-selector`]:{background:Ve.hoverBg},[`${Ze}-focused& ${Ze}-selector`]:{background:me.selectorBg,borderColor:Ve.activeBorderColor,outline:0}}}},ye=(me,Ve)=>({[`&${me.componentCls}-status-${Ve.status}`]:Object.assign({},he(me,Ve))}),ge=me=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},he(me,{bg:me.colorFillTertiary,hoverBg:me.colorFillSecondary,activeBorderColor:me.activeBorderColor,color:me.colorText})),ye(me,{status:"error",bg:me.colorErrorBg,hoverBg:me.colorErrorBgHover,activeBorderColor:me.colorError,color:me.colorError})),ye(me,{status:"warning",bg:me.colorWarningBg,hoverBg:me.colorWarningBgHover,activeBorderColor:me.colorWarning,color:me.colorWarning})),{[`&${me.componentCls}-disabled`]:{[`&:not(${me.componentCls}-customize-input) ${me.componentCls}-selector`]:{borderColor:me.colorBorder,background:me.colorBgContainerDisabled,color:me.colorTextDisabled}},[`&${me.componentCls}-multiple ${me.componentCls}-selection-item`]:{background:me.colorBgContainer,border:`${(0,ce.unit)(me.lineWidth)} ${me.lineType} ${me.colorSplit}`}})}),xe=me=>({"&-borderless":{[`${me.componentCls}-selector`]:{background:"transparent",border:`${(0,ce.unit)(me.lineWidth)} ${me.lineType} transparent`},[`&${me.componentCls}-disabled`]:{[`&:not(${me.componentCls}-customize-input) ${me.componentCls}-selector`]:{color:me.colorTextDisabled}},[`&${me.componentCls}-multiple ${me.componentCls}-selection-item`]:{background:me.multipleItemBg,border:`${(0,ce.unit)(me.lineWidth)} ${me.lineType} ${me.multipleItemBorderColor}`},[`&${me.componentCls}-status-error`]:{[`${me.componentCls}-prefix, ${me.componentCls}-selection-item`]:{color:me.colorError}},[`&${me.componentCls}-status-warning`]:{[`${me.componentCls}-prefix, ${me.componentCls}-selection-item`]:{color:me.colorWarning}}}}),ke=(me,Ve)=>{const{componentCls:Ze,antCls:We}=me;return{[`&:not(${Ze}-customize-input) ${Ze}-selector`]:{borderWidth:`0 0 ${(0,ce.unit)(me.lineWidth)} 0`,borderStyle:`none none ${me.lineType} none`,borderColor:Ve.borderColor,background:me.selectorBg,borderRadius:0},[`&:not(${Ze}-disabled):not(${Ze}-customize-input):not(${We}-pagination-size-changer)`]:{[`&:hover ${Ze}-selector`]:{borderColor:Ve.hoverBorderHover},[`${Ze}-focused& ${Ze}-selector`]:{borderColor:Ve.activeBorderColor,outline:0},[`${Ze}-prefix`]:{color:Ve.color}}}},De=(me,Ve)=>({[`&${me.componentCls}-status-${Ve.status}`]:Object.assign({},ke(me,Ve))}),Be=me=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},ke(me,{borderColor:me.colorBorder,hoverBorderHover:me.hoverBorderColor,activeBorderColor:me.activeBorderColor,activeOutlineColor:me.activeOutlineColor,color:me.colorText})),De(me,{status:"error",borderColor:me.colorError,hoverBorderHover:me.colorErrorHover,activeBorderColor:me.colorError,activeOutlineColor:me.colorErrorOutline,color:me.colorError})),De(me,{status:"warning",borderColor:me.colorWarning,hoverBorderHover:me.colorWarningHover,activeBorderColor:me.colorWarning,activeOutlineColor:me.colorWarningOutline,color:me.colorWarning})),{[`&${me.componentCls}-disabled`]:{[`&:not(${me.componentCls}-customize-input) ${me.componentCls}-selector`]:{color:me.colorTextDisabled}},[`&${me.componentCls}-multiple ${me.componentCls}-selection-item`]:{background:me.multipleItemBg,border:`${(0,ce.unit)(me.lineWidth)} ${me.lineType} ${me.multipleItemBorderColor}`}})});var Se=me=>({[me.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},pe(me)),ge(me)),xe(me)),Be(me))});const Ee=me=>{const{componentCls:Ve}=me;return{position:"relative",transition:`all ${me.motionDurationMid} ${me.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ve}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Ve}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Oe=me=>{const{componentCls:Ve}=me;return{[`${Ve}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Pe=me=>{const{antCls:Ve,componentCls:Ze,inputPaddingHorizontalBase:We,iconCls:nt}=me;return{[Ze]:Object.assign(Object.assign({},(0,te.Wf)(me)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Ze}-customize-input) ${Ze}-selector`]:Object.assign(Object.assign({},Ee(me)),Oe(me)),[`${Ze}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},te.vS),{[`> ${Ve}-typography`]:{display:"inline"}}),[`${Ze}-selection-placeholder`]:Object.assign(Object.assign({},te.vS),{flex:1,color:me.colorTextPlaceholder,pointerEvents:"none"}),[`${Ze}-arrow`]:Object.assign(Object.assign({},(0,te.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:We,height:me.fontSizeIcon,marginTop:me.calc(me.fontSizeIcon).mul(-1).div(2).equal(),color:me.colorTextQuaternary,fontSize:me.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${me.motionDurationSlow} ease`,[nt]:{verticalAlign:"top",transition:`transform ${me.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ze}-suffix)`]:{pointerEvents:"auto"}},[`${Ze}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ze}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Ze}-prefix`]:{flex:"none",marginInlineEnd:me.selectAffixPadding},[`${Ze}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:We,zIndex:1,display:"inline-block",width:me.fontSizeIcon,height:me.fontSizeIcon,marginTop:me.calc(me.fontSizeIcon).mul(-1).div(2).equal(),color:me.colorTextQuaternary,fontSize:me.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${me.motionDurationMid} ease, opacity ${me.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:me.colorTextTertiary}},[`&:hover ${Ze}-clear`]:{opacity:1,background:me.colorBgBase,borderRadius:"50%"}}),[`${Ze}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Ze}-has-feedback`]:{[`${Ze}-clear`]:{insetInlineEnd:me.calc(We).add(me.fontSize).add(me.paddingXS).equal()}}}}}},Le=me=>{const{componentCls:Ve}=me;return[{[Ve]:{[`&${Ve}-in-form-item`]:{width:"100%"}}},Pe(me),ae(me),(0,ee.ZP)(me),oe(me),{[`${Ve}-rtl`]:{direction:"rtl"}},(0,Ot.c)(me,{borderElCls:`${Ve}-selector`,focusElCls:`${Ve}-focused`})]};var Ne=(0,y.I$)("Select",(me,Ve)=>{let{rootPrefixCls:Ze}=Ve;const We=(0,je.mergeToken)(me,{rootPrefixCls:Ze,inputPaddingHorizontalBase:me.calc(me.paddingSM).sub(1).equal(),multipleSelectItemHeight:me.multipleItemHeight,selectHeight:me.controlHeight});return[Le(We),Se(We)]},re,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(In,Yt,Te){"use strict";Te.d(Yt,{_z:function(){return z},gp:function(){return je}});var te=Te(36237),Ot=Te(63356),y=Te(51636);const je=ee=>{const{multipleSelectItemHeight:ce,paddingXXS:x,lineWidth:ae,INTERNAL_FIXED_ITEM_MARGIN:re}=ee,se=ee.max(ee.calc(x).sub(ae).equal(),0),ue=ee.max(ee.calc(se).sub(re).equal(),0);return{basePadding:se,containerPadding:ue,itemHeight:(0,te.unit)(ce),itemLineHeight:(0,te.unit)(ee.calc(ce).sub(ee.calc(ee.lineWidth).mul(2)).equal())}},be=ee=>{const{multipleSelectItemHeight:ce,selectHeight:x,lineWidth:ae}=ee;return ee.calc(x).sub(ce).div(2).sub(ae).equal()},z=ee=>{const{componentCls:ce,iconCls:x,borderRadiusSM:ae,motionDurationSlow:re,paddingXS:se,multipleItemColorDisabled:ue,multipleItemBorderColorDisabled:pe,colorIcon:he,colorIconHover:ye,INTERNAL_FIXED_ITEM_MARGIN:ge}=ee;return{[`${ce}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${ce}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:ge,borderRadius:ae,cursor:"default",transition:`font-size ${re}, line-height ${re}, height ${re}`,marginInlineEnd:ee.calc(ge).mul(2).equal(),paddingInlineStart:se,paddingInlineEnd:ee.calc(se).div(2).equal(),[`${ce}-disabled&`]:{color:ue,borderColor:pe,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:ee.calc(se).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Ot.Ro)()),{display:"inline-flex",alignItems:"center",color:he,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${x}`]:{verticalAlign:"-0.2em"},"&:hover":{color:ye}})}}}},E=(ee,ce)=>{const{componentCls:x,INTERNAL_FIXED_ITEM_MARGIN:ae}=ee,re=`${x}-selection-overflow`,se=ee.multipleSelectItemHeight,ue=be(ee),pe=ce?`${x}-${ce}`:"",he=je(ee);return{[`${x}-multiple${pe}`]:Object.assign(Object.assign({},z(ee)),{[`${x}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:he.basePadding,paddingBlock:he.containerPadding,borderRadius:ee.borderRadius,[`${x}-disabled&`]:{background:ee.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,te.unit)(ae)} 0`,lineHeight:(0,te.unit)(se),visibility:"hidden",content:'"\\a0"'}},[`${x}-selection-item`]:{height:he.itemHeight,lineHeight:(0,te.unit)(he.itemLineHeight)},[`${x}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,te.unit)(se),marginBlock:ae}},[`${x}-prefix`]:{marginInlineStart:ee.calc(ee.inputPaddingHorizontalBase).sub(he.basePadding).equal()},[`${re}-item + ${re}-item,
${x}-prefix + ${x}-selection-wrap
`]:{[`${x}-selection-search`]:{marginInlineStart:0},[`${x}-selection-placeholder`]:{insetInlineStart:0}},[`${re}-item-suffix`]:{minHeight:he.itemHeight,marginBlock:ae},[`${x}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:ee.calc(ee.inputPaddingHorizontalBase).sub(ue).equal(),"\n &-input,\n &-mirror\n ":{height:se,fontFamily:ee.fontFamily,lineHeight:(0,te.unit)(se),transition:`all ${ee.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${x}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:ee.calc(ee.inputPaddingHorizontalBase).sub(he.basePadding).equal(),insetInlineEnd:ee.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${ee.motionDurationSlow}`}})}};function ie(ee,ce){const{componentCls:x}=ee,ae=ce?`${x}-${ce}`:"",re={[`${x}-multiple${ae}`]:{fontSize:ee.fontSize,[`${x}-selector`]:{[`${x}-show-search&`]:{cursor:"text"}},[`
&${x}-show-arrow ${x}-selector,
&${x}-allow-clear ${x}-selector
`]:{paddingInlineEnd:ee.calc(ee.fontSizeIcon).add(ee.controlPaddingHorizontal).equal()}}};return[E(ee,ce),re]}const oe=ee=>{const{componentCls:ce}=ee,x=(0,y.mergeToken)(ee,{selectHeight:ee.controlHeightSM,multipleSelectItemHeight:ee.multipleItemHeightSM,borderRadius:ee.borderRadiusSM,borderRadiusSM:ee.borderRadiusXS}),ae=(0,y.mergeToken)(ee,{fontSize:ee.fontSizeLG,selectHeight:ee.controlHeightLG,multipleSelectItemHeight:ee.multipleItemHeightLG,borderRadius:ee.borderRadiusLG,borderRadiusSM:ee.borderRadius});return[ie(ee),ie(x,"sm"),{[`${ce}-multiple${ce}-sm`]:{[`${ce}-selection-placeholder`]:{insetInline:ee.calc(ee.controlPaddingHorizontalSM).sub(ee.lineWidth).equal()},[`${ce}-selection-search`]:{marginInlineStart:2}}},ie(ae,"lg")]};Yt.ZP=oe},68525:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(59301),Ot=Te(40001),y=Te(19248),je=Te(99267),be=Te(84105),z=Te(58617),E=Te(47472);function ie(oe){let{suffixIcon:ee,clearIcon:ce,menuItemSelectedIcon:x,removeIcon:ae,loading:re,multiple:se,hasFeedback:ue,prefixCls:pe,showSuffixIcon:he,feedbackIcon:ye,showArrow:ge,componentName:xe}=oe;const ke=ce!=null?ce:te.createElement(y.Z,null),De=Ee=>ee===null&&!ue&&!ge?null:te.createElement(te.Fragment,null,he!==!1&&Ee,ue&&ye);let Be=null;if(ee!==void 0)Be=De(ee);else if(re)Be=De(te.createElement(z.Z,{spin:!0}));else{const Ee=`${pe}-suffix`;Be=Oe=>{let{open:Pe,showSearch:Le}=Oe;return De(Pe&&Le?te.createElement(E.Z,{className:Ee}):te.createElement(be.Z,{className:Ee}))}}let Ae=null;x!==void 0?Ae=x:se?Ae=te.createElement(Ot.Z,null):Ae=null;let Se=null;return ae!==void 0?Se=ae:Se=te.createElement(je.Z,null),{clearIcon:ke,suffixIcon:Be,itemIcon:Ae,removeIcon:Se}}},90005:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return te}});function te(Ot,y){return y!==void 0?y:Ot!==null}},11938:function(In,Yt,Te){"use strict";Te.d(Yt,{default:function(){return Oe}});var te=Te(59301),Ot=Te(40192),y=Te(22703),je=Te(92310),be=Te.n(je),z=Te(26112),E=Te(48755),ie=Te(458),ee=Pe=>{const{value:Le,formatter:Ne,precision:me,decimalSeparator:Ve,groupSeparator:Ze="",prefixCls:We}=Pe;let nt;if(typeof Ne=="function")nt=Ne(Le);else{const _e=String(Le),Ue=_e.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Ue||_e==="-")nt=_e;else{const tt=Ue[1];let rt=Ue[2]||"0",et=Ue[4]||"";rt=rt.replace(/\B(?=(\d{3})+(?!\d))/g,Ze),typeof me=="number"&&(et=et.padEnd(me,"0").slice(0,me>0?me:0)),et&&(et=`${Ve}${et}`),nt=[te.createElement("span",{key:"int",className:`${We}-content-value-int`},tt,rt),et&&te.createElement("span",{key:"decimal",className:`${We}-content-value-decimal`},et)]}}return te.createElement("span",{className:`${We}-content-value`},nt)},ce=Te(63356),x=Te(16931),ae=Te(51636);const re=Pe=>{const{componentCls:Le,marginXXS:Ne,padding:me,colorTextDescription:Ve,titleFontSize:Ze,colorTextHeading:We,contentFontSize:nt,fontFamily:_e}=Pe;return{[Le]:Object.assign(Object.assign({},(0,ce.Wf)(Pe)),{[`${Le}-title`]:{marginBottom:Ne,color:Ve,fontSize:Ze},[`${Le}-skeleton`]:{paddingTop:me},[`${Le}-content`]:{color:We,fontSize:nt,fontFamily:_e,[`${Le}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Le}-content-prefix, ${Le}-content-suffix`]:{display:"inline-block"},[`${Le}-content-prefix`]:{marginInlineEnd:Ne},[`${Le}-content-suffix`]:{marginInlineStart:Ne}}})}},se=Pe=>{const{fontSizeHeading3:Le,fontSize:Ne}=Pe;return{titleFontSize:Ne,contentFontSize:Le}};var ue=(0,x.I$)("Statistic",Pe=>{const Le=(0,ae.mergeToken)(Pe,{});return[re(Le)]},se),pe=function(Pe,Le){var Ne={};for(var me in Pe)Object.prototype.hasOwnProperty.call(Pe,me)&&Le.indexOf(me)<0&&(Ne[me]=Pe[me]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,me=Object.getOwnPropertySymbols(Pe);Ve<me.length;Ve++)Le.indexOf(me[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Pe,me[Ve])&&(Ne[me[Ve]]=Pe[me[Ve]]);return Ne},ye=Pe=>{const{prefixCls:Le,className:Ne,rootClassName:me,style:Ve,valueStyle:Ze,value:We=0,title:nt,valueRender:_e,prefix:Ue,suffix:tt,loading:rt=!1,formatter:et,precision:Ke,decimalSeparator:Ye=".",groupSeparator:Xe=",",onMouseEnter:ot,onMouseLeave:Qe}=Pe,ft=pe(Pe,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:at,direction:qe,className:Fe,style:Re}=(0,E.dj)("statistic"),ne=at("statistic",Le),[fe,Me,ze]=ue(ne),we=te.createElement(ee,{decimalSeparator:Ye,groupSeparator:Xe,prefixCls:ne,formatter:et,precision:Ke,value:We}),ve=be()(ne,{[`${ne}-rtl`]:qe==="rtl"},Fe,Ne,me,Me,ze),Ie=(0,z.Z)(ft,{aria:!0,data:!0});return fe(te.createElement("div",Object.assign({},Ie,{className:ve,style:Object.assign(Object.assign({},Re),Ve),onMouseEnter:ot,onMouseLeave:Qe}),nt&&te.createElement("div",{className:`${ne}-title`},nt),te.createElement(ie.Z,{paragraph:!1,loading:rt,className:`${ne}-skeleton`},te.createElement("div",{style:Ze,className:`${ne}-content`},Ue&&te.createElement("span",{className:`${ne}-content-prefix`},Ue),_e?_e(we):we,tt&&te.createElement("span",{className:`${ne}-content-suffix`},tt)))))};const ge=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function xe(Pe,Le){let Ne=Pe;const me=/\[[^\]]*]/g,Ve=(Le.match(me)||[]).map(_e=>_e.slice(1,-1)),Ze=Le.replace(me,"[]"),We=ge.reduce((_e,Ue)=>{let[tt,rt]=Ue;if(_e.includes(tt)){const et=Math.floor(Ne/rt);return Ne-=et*rt,_e.replace(new RegExp(`${tt}+`,"g"),Ke=>{const Ye=Ke.length;return et.toString().padStart(Ye,"0")})}return _e},Ze);let nt=0;return We.replace(me,()=>{const _e=Ve[nt];return nt+=1,_e})}function ke(Pe,Le){const{format:Ne=""}=Le,me=new Date(Pe).getTime(),Ve=Date.now(),Ze=Math.max(me-Ve,0);return xe(Ze,Ne)}var De=function(Pe,Le){var Ne={};for(var me in Pe)Object.prototype.hasOwnProperty.call(Pe,me)&&Le.indexOf(me)<0&&(Ne[me]=Pe[me]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,me=Object.getOwnPropertySymbols(Pe);Ve<me.length;Ve++)Le.indexOf(me[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Pe,me[Ve])&&(Ne[me[Ve]]=Pe[me[Ve]]);return Ne};const Be=1e3/30;function Ae(Pe){return new Date(Pe).getTime()}const Se=Pe=>{const{value:Le,format:Ne="HH:mm:ss",onChange:me,onFinish:Ve}=Pe,Ze=De(Pe,["value","format","onChange","onFinish"]),We=(0,Ot.Z)(),nt=te.useRef(null),_e=()=>{Ve==null||Ve(),nt.current&&(clearInterval(nt.current),nt.current=null)},Ue=()=>{const et=Ae(Le);et>=Date.now()&&(nt.current=setInterval(()=>{We(),me==null||me(et-Date.now()),et<Date.now()&&_e()},Be))};te.useEffect(()=>(Ue(),()=>{nt.current&&(clearInterval(nt.current),nt.current=null)}),[Le]);const tt=(et,Ke)=>ke(et,Object.assign(Object.assign({},Ke),{format:Ne})),rt=et=>(0,y.Tm)(et,{title:void 0});return te.createElement(ye,Object.assign({},Ze,{value:Le,valueRender:rt,formatter:tt}))};var Ee=te.memo(Se);ye.Countdown=Ee;var Oe=ye},58755:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Ve}});var te=Te(59301),Ot=Te(58617),y=Te(92310),je=Te.n(y),be=Te(54476),z=Te(20068),E=Te(42978),ie=Te(75931),oe=Te(18929),ee=Te(10228),ce=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],x=te.forwardRef(function(Ze,We){var nt,_e=Ze.prefixCls,Ue=_e===void 0?"rc-switch":_e,tt=Ze.className,rt=Ze.checked,et=Ze.defaultChecked,Ke=Ze.disabled,Ye=Ze.loadingIcon,Xe=Ze.checkedChildren,ot=Ze.unCheckedChildren,Qe=Ze.onClick,ft=Ze.onChange,at=Ze.onKeyDown,qe=(0,ie.Z)(Ze,ce),Fe=(0,oe.Z)(!1,{value:rt,defaultValue:et}),Re=(0,E.Z)(Fe,2),ne=Re[0],fe=Re[1];function Me(Ie,$e){var Ge=ne;return Ke||(Ge=Ie,fe(Ge),ft==null||ft(Ge,$e)),Ge}function ze(Ie){Ie.which===ee.Z.LEFT?Me(!1,Ie):Ie.which===ee.Z.RIGHT&&Me(!0,Ie),at==null||at(Ie)}function we(Ie){var $e=Me(!ne,Ie);Qe==null||Qe($e,Ie)}var ve=je()(Ue,tt,(nt={},(0,z.Z)(nt,"".concat(Ue,"-checked"),ne),(0,z.Z)(nt,"".concat(Ue,"-disabled"),Ke),nt));return te.createElement("button",(0,be.Z)({},qe,{type:"button",role:"switch","aria-checked":ne,disabled:Ke,className:ve,ref:We,onKeyDown:ze,onClick:we}),Ye,te.createElement("span",{className:"".concat(Ue,"-inner")},te.createElement("span",{className:"".concat(Ue,"-inner-checked")},Xe),te.createElement("span",{className:"".concat(Ue,"-inner-unchecked")},ot)))});x.displayName="Switch";var ae=x,re=Te(12919),se=Te(48755),ue=Te(2171),pe=Te(31756),he=Te(36237),ye=Te(17835),ge=Te(63356),xe=Te(16931),ke=Te(51636);const De=Ze=>{const{componentCls:We,trackHeightSM:nt,trackPadding:_e,trackMinWidthSM:Ue,innerMinMarginSM:tt,innerMaxMarginSM:rt,handleSizeSM:et,calc:Ke}=Ze,Ye=`${We}-inner`,Xe=(0,he.unit)(Ke(et).add(Ke(_e).mul(2)).equal()),ot=(0,he.unit)(Ke(rt).mul(2).equal());return{[We]:{[`&${We}-small`]:{minWidth:Ue,height:nt,lineHeight:(0,he.unit)(nt),[`${We}-inner`]:{paddingInlineStart:rt,paddingInlineEnd:tt,[`${Ye}-checked, ${Ye}-unchecked`]:{minHeight:nt},[`${Ye}-checked`]:{marginInlineStart:`calc(-100% + ${Xe} - ${ot})`,marginInlineEnd:`calc(100% - ${Xe} + ${ot})`},[`${Ye}-unchecked`]:{marginTop:Ke(nt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${We}-handle`]:{width:et,height:et},[`${We}-loading-icon`]:{top:Ke(Ke(et).sub(Ze.switchLoadingIconSize)).div(2).equal(),fontSize:Ze.switchLoadingIconSize},[`&${We}-checked`]:{[`${We}-inner`]:{paddingInlineStart:tt,paddingInlineEnd:rt,[`${Ye}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ye}-unchecked`]:{marginInlineStart:`calc(100% - ${Xe} + ${ot})`,marginInlineEnd:`calc(-100% + ${Xe} - ${ot})`}},[`${We}-handle`]:{insetInlineStart:`calc(100% - ${(0,he.unit)(Ke(et).add(_e).equal())})`}},[`&:not(${We}-disabled):active`]:{[`&:not(${We}-checked) ${Ye}`]:{[`${Ye}-unchecked`]:{marginInlineStart:Ke(Ze.marginXXS).div(2).equal(),marginInlineEnd:Ke(Ze.marginXXS).mul(-1).div(2).equal()}},[`&${We}-checked ${Ye}`]:{[`${Ye}-checked`]:{marginInlineStart:Ke(Ze.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Ke(Ze.marginXXS).div(2).equal()}}}}}}},Be=Ze=>{const{componentCls:We,handleSize:nt,calc:_e}=Ze;return{[We]:{[`${We}-loading-icon${Ze.iconCls}`]:{position:"relative",top:_e(_e(nt).sub(Ze.fontSize)).div(2).equal(),color:Ze.switchLoadingIconColor,verticalAlign:"top"},[`&${We}-checked ${We}-loading-icon`]:{color:Ze.switchColor}}}},Ae=Ze=>{const{componentCls:We,trackPadding:nt,handleBg:_e,handleShadow:Ue,handleSize:tt,calc:rt}=Ze,et=`${We}-handle`;return{[We]:{[et]:{position:"absolute",top:nt,insetInlineStart:nt,width:tt,height:tt,transition:`all ${Ze.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:_e,borderRadius:rt(tt).div(2).equal(),boxShadow:Ue,transition:`all ${Ze.switchDuration} ease-in-out`,content:'""'}},[`&${We}-checked ${et}`]:{insetInlineStart:`calc(100% - ${(0,he.unit)(rt(tt).add(nt).equal())})`},[`&:not(${We}-disabled):active`]:{[`${et}::before`]:{insetInlineEnd:Ze.switchHandleActiveInset,insetInlineStart:0},[`&${We}-checked ${et}::before`]:{insetInlineEnd:0,insetInlineStart:Ze.switchHandleActiveInset}}}}},Se=Ze=>{const{componentCls:We,trackHeight:nt,trackPadding:_e,innerMinMargin:Ue,innerMaxMargin:tt,handleSize:rt,calc:et}=Ze,Ke=`${We}-inner`,Ye=(0,he.unit)(et(rt).add(et(_e).mul(2)).equal()),Xe=(0,he.unit)(et(tt).mul(2).equal());return{[We]:{[Ke]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:tt,paddingInlineEnd:Ue,transition:`padding-inline-start ${Ze.switchDuration} ease-in-out, padding-inline-end ${Ze.switchDuration} ease-in-out`,[`${Ke}-checked, ${Ke}-unchecked`]:{display:"block",color:Ze.colorTextLightSolid,fontSize:Ze.fontSizeSM,transition:`margin-inline-start ${Ze.switchDuration} ease-in-out, margin-inline-end ${Ze.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:nt},[`${Ke}-checked`]:{marginInlineStart:`calc(-100% + ${Ye} - ${Xe})`,marginInlineEnd:`calc(100% - ${Ye} + ${Xe})`},[`${Ke}-unchecked`]:{marginTop:et(nt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${We}-checked ${Ke}`]:{paddingInlineStart:Ue,paddingInlineEnd:tt,[`${Ke}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ke}-unchecked`]:{marginInlineStart:`calc(100% - ${Ye} + ${Xe})`,marginInlineEnd:`calc(-100% + ${Ye} - ${Xe})`}},[`&:not(${We}-disabled):active`]:{[`&:not(${We}-checked) ${Ke}`]:{[`${Ke}-unchecked`]:{marginInlineStart:et(_e).mul(2).equal(),marginInlineEnd:et(_e).mul(-1).mul(2).equal()}},[`&${We}-checked ${Ke}`]:{[`${Ke}-checked`]:{marginInlineStart:et(_e).mul(-1).mul(2).equal(),marginInlineEnd:et(_e).mul(2).equal()}}}}}},Ee=Ze=>{const{componentCls:We,trackHeight:nt,trackMinWidth:_e}=Ze;return{[We]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(Ze)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:_e,height:nt,lineHeight:(0,he.unit)(nt),verticalAlign:"middle",background:Ze.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ze.motionDurationMid}`,userSelect:"none",[`&:hover:not(${We}-disabled)`]:{background:Ze.colorTextTertiary}}),(0,ge.Qy)(Ze)),{[`&${We}-checked`]:{background:Ze.switchColor,[`&:hover:not(${We}-disabled)`]:{background:Ze.colorPrimaryHover}},[`&${We}-loading, &${We}-disabled`]:{cursor:"not-allowed",opacity:Ze.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${We}-rtl`]:{direction:"rtl"}})}},Oe=Ze=>{const{fontSize:We,lineHeight:nt,controlHeight:_e,colorWhite:Ue}=Ze,tt=We*nt,rt=_e/2,et=2,Ke=tt-et*2,Ye=rt-et*2;return{trackHeight:tt,trackHeightSM:rt,trackMinWidth:Ke*2+et*4,trackMinWidthSM:Ye*2+et*2,trackPadding:et,handleBg:Ue,handleSize:Ke,handleSizeSM:Ye,handleShadow:`0 2px 4px 0 ${new ye.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Ke/2,innerMaxMargin:Ke+et+et*2,innerMinMarginSM:Ye/2,innerMaxMarginSM:Ye+et+et*2}};var Pe=(0,xe.I$)("Switch",Ze=>{const We=(0,ke.mergeToken)(Ze,{switchDuration:Ze.motionDurationMid,switchColor:Ze.colorPrimary,switchDisabledOpacity:Ze.opacityLoading,switchLoadingIconSize:Ze.calc(Ze.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Ze.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ee(We),Se(We),Ae(We),Be(We),De(We)]},Oe),Le=function(Ze,We){var nt={};for(var _e in Ze)Object.prototype.hasOwnProperty.call(Ze,_e)&&We.indexOf(_e)<0&&(nt[_e]=Ze[_e]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,_e=Object.getOwnPropertySymbols(Ze);Ue<_e.length;Ue++)We.indexOf(_e[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Ze,_e[Ue])&&(nt[_e[Ue]]=Ze[_e[Ue]]);return nt};const me=te.forwardRef((Ze,We)=>{const{prefixCls:nt,size:_e,disabled:Ue,loading:tt,className:rt,rootClassName:et,style:Ke,checked:Ye,value:Xe,defaultChecked:ot,defaultValue:Qe,onChange:ft}=Ze,at=Le(Ze,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[qe,Fe]=(0,oe.Z)(!1,{value:Ye!=null?Ye:Xe,defaultValue:ot!=null?ot:Qe}),{getPrefixCls:Re,direction:ne,switch:fe}=te.useContext(se.E_),Me=te.useContext(ue.Z),ze=(Ue!=null?Ue:Me)||tt,we=Re("switch",nt),ve=te.createElement("div",{className:`${we}-handle`},tt&&te.createElement(Ot.Z,{className:`${we}-loading-icon`})),[Ie,$e,Ge]=Pe(we),Je=(0,pe.Z)(_e),ut=je()(fe==null?void 0:fe.className,{[`${we}-small`]:Je==="small",[`${we}-loading`]:tt,[`${we}-rtl`]:ne==="rtl"},rt,et,$e,Ge),lt=Object.assign(Object.assign({},fe==null?void 0:fe.style),Ke),vt=function(){Fe(arguments.length<=0?void 0:arguments[0]),ft==null||ft.apply(void 0,arguments)};return Ie(te.createElement(re.Z,{component:"Switch"},te.createElement(ae,Object.assign({},at,{checked:qe,onChange:vt,prefixCls:we,className:ut,style:lt,disabled:ze,ref:We,loadingIcon:ve}))))});me.__ANT_SWITCH=!0;var Ve=me},70858:function(In,Yt,Te){"use strict";Te.d(Yt,{default:function(){return vu}});var te=Te(59301),Ot={},y="rc-table-internal-hook",je=Te(42978),be=Te(6089),z=Te(34280),E=Te(13697),ie=Te(4676);function oe(ht){var pt=te.createContext(void 0),It=function(Jt){var tn=Jt.value,dn=Jt.children,sn=te.useRef(tn);sn.current=tn;var vn=te.useState(function(){return{getValue:function(){return sn.current},listeners:new Set}}),fn=(0,je.Z)(vn,1),Hn=fn[0];return(0,z.Z)(function(){(0,ie.unstable_batchedUpdates)(function(){Hn.listeners.forEach(function(kn){kn(tn)})})},[tn]),te.createElement(pt.Provider,{value:Hn},dn)};return{Context:pt,Provider:It,defaultValue:ht}}function ee(ht,pt){var It=(0,be.Z)(typeof pt=="function"?pt:function(kn){if(pt===void 0)return kn;if(!Array.isArray(pt))return kn[pt];var jn={};return pt.forEach(function(Sn){jn[Sn]=kn[Sn]}),jn}),Bt=te.useContext(ht==null?void 0:ht.Context),Jt=Bt||{},tn=Jt.listeners,dn=Jt.getValue,sn=te.useRef();sn.current=It(Bt?dn():ht==null?void 0:ht.defaultValue);var vn=te.useState({}),fn=(0,je.Z)(vn,2),Hn=fn[1];return(0,z.Z)(function(){if(!Bt)return;function kn(jn){var Sn=It(jn);(0,E.Z)(sn.current,Sn,!0)||Hn({})}return tn.add(kn),function(){tn.delete(kn)}},[Bt]),sn.current}var ce=Te(54476),x=Te(8654);function ae(){var ht=te.createContext(null);function pt(){return te.useContext(ht)}function It(Jt,tn){var dn=(0,x.Yr)(Jt),sn=function(fn,Hn){var kn=dn?{ref:Hn}:{},jn=te.useRef(0),Sn=te.useRef(fn),wn=pt();return wn!==null?te.createElement(Jt,(0,ce.Z)({},fn,kn)):((!tn||tn(Sn.current,fn))&&(jn.current+=1),Sn.current=fn,te.createElement(ht.Provider,{value:jn.current},te.createElement(Jt,(0,ce.Z)({},fn,kn))))};return dn?te.forwardRef(sn):sn}function Bt(Jt,tn){var dn=(0,x.Yr)(Jt),sn=function(fn,Hn){var kn=dn?{ref:Hn}:{};return pt(),te.createElement(Jt,(0,ce.Z)({},fn,kn))};return dn?te.memo(te.forwardRef(sn),tn):te.memo(sn,tn)}return{makeImmutable:It,responseImmutable:Bt,useImmutableMark:pt}}var re=ae(),se=re.makeImmutable,ue=re.responseImmutable,pe=re.useImmutableMark,he=ae(),ye=he.makeImmutable,ge=he.responseImmutable,xe=he.useImmutableMark,ke=oe(),De=ke;function Be(ht,pt){var It=React.useRef(0);It.current+=1;var Bt=React.useRef(ht),Jt=[];Object.keys(ht||{}).map(function(dn){var sn;(ht==null?void 0:ht[dn])!==((sn=Bt.current)===null||sn===void 0?void 0:sn[dn])&&Jt.push(dn)}),Bt.current=ht;var tn=React.useRef([]);return Jt.length&&(tn.current=Jt),React.useDebugValue(It.current),React.useDebugValue(tn.current.join(", ")),pt&&console.log("".concat(pt,":"),It.current,tn.current),It.current}var Ae=null,Se=null,Ee=Te(76190),Oe=Te(33885),Pe=Te(20068),Le=Te(92310),Ne=Te.n(Le),me=Te(80547),Ve=Te(97938),Ze=Te(48736),We=te.createContext({renderWithProps:!1}),nt=We,_e="RC_TABLE_KEY";function Ue(ht){return ht==null?[]:Array.isArray(ht)?ht:[ht]}function tt(ht){var pt=[],It={};return ht.forEach(function(Bt){for(var Jt=Bt||{},tn=Jt.key,dn=Jt.dataIndex,sn=tn||Ue(dn).join("-")||_e;It[sn];)sn="".concat(sn,"_next");It[sn]=!0,pt.push(sn)}),pt}function rt(ht){return ht!=null}function et(ht){return typeof ht=="number"&&!Number.isNaN(ht)}function Ke(ht){return ht&&(0,Ee.Z)(ht)==="object"&&!Array.isArray(ht)&&!te.isValidElement(ht)}function Ye(ht,pt,It,Bt,Jt,tn){var dn=te.useContext(nt),sn=xe(),vn=(0,me.Z)(function(){if(rt(Bt))return[Bt];var fn=pt==null||pt===""?[]:Array.isArray(pt)?pt:[pt],Hn=(0,Ve.Z)(ht,fn),kn=Hn,jn=void 0;if(Jt){var Sn=Jt(Hn,ht,It);Ke(Sn)?(kn=Sn.children,jn=Sn.props,dn.renderWithProps=!0):kn=Sn}return[kn,jn]},[sn,ht,Bt,pt,Jt,It],function(fn,Hn){if(tn){var kn=(0,je.Z)(fn,2),jn=kn[1],Sn=(0,je.Z)(Hn,2),wn=Sn[1];return tn(wn,jn)}return dn.renderWithProps?!0:!(0,E.Z)(fn,Hn,!0)});return vn}function Xe(ht,pt,It,Bt){var Jt=ht+pt-1;return ht<=Bt&&Jt>=It}function ot(ht,pt){return ee(De,function(It){var Bt=Xe(ht,pt||1,It.hoverStartRow,It.hoverEndRow);return[Bt,It.onHover]})}var Qe=Te(70425),ft=function(pt){var It=pt.ellipsis,Bt=pt.rowType,Jt=pt.children,tn,dn=It===!0?{showTitle:!0}:It;return dn&&(dn.showTitle||Bt==="header")&&(typeof Jt=="string"||typeof Jt=="number"?tn=Jt.toString():te.isValidElement(Jt)&&typeof Jt.props.children=="string"&&(tn=Jt.props.children)),tn};function at(ht){var pt,It,Bt,Jt,tn,dn,sn,vn,fn=ht.component,Hn=ht.children,kn=ht.ellipsis,jn=ht.scope,Sn=ht.prefixCls,wn=ht.className,ar=ht.align,Xn=ht.record,dr=ht.render,mr=ht.dataIndex,fr=ht.renderIndex,xr=ht.shouldCellUpdate,Ar=ht.index,_r=ht.rowType,Mr=ht.colSpan,vi=ht.rowSpan,Qr=ht.fixLeft,Gr=ht.fixRight,ai=ht.firstFixLeft,Fr=ht.lastFixLeft,$r=ht.firstFixRight,Ir=ht.lastFixRight,vr=ht.appendNode,Lr=ht.additionalProps,zr=Lr===void 0?{}:Lr,qr=ht.isSticky,Dr="".concat(Sn,"-cell"),Ei=ee(De,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Pi=Ei.supportSticky,yo=Ei.allColumnsFixedLeft,fo=Ei.rowHoverable,ro=Ye(Xn,mr,fr,Hn,dr,xr),po=(0,je.Z)(ro,2),So=po[0],ji=po[1],Di={},Co=typeof Qr=="number"&&Pi,No=typeof Gr=="number"&&Pi;Co&&(Di.position="sticky",Di.left=Qr),No&&(Di.position="sticky",Di.right=Gr);var Xr=(pt=(It=(Bt=ji==null?void 0:ji.colSpan)!==null&&Bt!==void 0?Bt:zr.colSpan)!==null&&It!==void 0?It:Mr)!==null&&pt!==void 0?pt:1,pi=(Jt=(tn=(dn=ji==null?void 0:ji.rowSpan)!==null&&dn!==void 0?dn:zr.rowSpan)!==null&&tn!==void 0?tn:vi)!==null&&Jt!==void 0?Jt:1,Wr=ot(Ar,pi),Br=(0,je.Z)(Wr,2),Bi=Br[0],Ki=Br[1],uo=(0,Qe.zX)(function(eo){var Ji;Xn&&Ki(Ar,Ar+pi-1),zr==null||(Ji=zr.onMouseEnter)===null||Ji===void 0||Ji.call(zr,eo)}),to=(0,Qe.zX)(function(eo){var Ji;Xn&&Ki(-1,-1),zr==null||(Ji=zr.onMouseLeave)===null||Ji===void 0||Ji.call(zr,eo)});if(Xr===0||pi===0)return null;var Eo=(sn=zr.title)!==null&&sn!==void 0?sn:ft({rowType:_r,ellipsis:kn,children:So}),Bo=Ne()(Dr,wn,(vn={},(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)(vn,"".concat(Dr,"-fix-left"),Co&&Pi),"".concat(Dr,"-fix-left-first"),ai&&Pi),"".concat(Dr,"-fix-left-last"),Fr&&Pi),"".concat(Dr,"-fix-left-all"),Fr&&yo&&Pi),"".concat(Dr,"-fix-right"),No&&Pi),"".concat(Dr,"-fix-right-first"),$r&&Pi),"".concat(Dr,"-fix-right-last"),Ir&&Pi),"".concat(Dr,"-ellipsis"),kn),"".concat(Dr,"-with-append"),vr),"".concat(Dr,"-fix-sticky"),(Co||No)&&qr&&Pi),(0,Pe.Z)(vn,"".concat(Dr,"-row-hover"),!ji&&Bi)),zr.className,ji==null?void 0:ji.className),Jr={};ar&&(Jr.textAlign=ar);var ri=(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({},ji==null?void 0:ji.style),Di),Jr),zr.style),Vi=So;return(0,Ee.Z)(Vi)==="object"&&!Array.isArray(Vi)&&!te.isValidElement(Vi)&&(Vi=null),kn&&(Fr||$r)&&(Vi=te.createElement("span",{className:"".concat(Dr,"-content")},Vi)),te.createElement(fn,(0,ce.Z)({},ji,zr,{className:Bo,style:ri,title:Eo,scope:jn,onMouseEnter:fo?uo:void 0,onMouseLeave:fo?to:void 0,colSpan:Xr!==1?Xr:null,rowSpan:pi!==1?pi:null}),vr,Vi)}var qe=te.memo(at);function Fe(ht,pt,It,Bt,Jt){var tn=It[ht]||{},dn=It[pt]||{},sn,vn;tn.fixed==="left"?sn=Bt.left[Jt==="rtl"?pt:ht]:dn.fixed==="right"&&(vn=Bt.right[Jt==="rtl"?ht:pt]);var fn=!1,Hn=!1,kn=!1,jn=!1,Sn=It[pt+1],wn=It[ht-1],ar=Sn&&!Sn.fixed||wn&&!wn.fixed||It.every(function(xr){return xr.fixed==="left"});if(Jt==="rtl"){if(sn!==void 0){var Xn=wn&&wn.fixed==="left";jn=!Xn&&ar}else if(vn!==void 0){var dr=Sn&&Sn.fixed==="right";kn=!dr&&ar}}else if(sn!==void 0){var mr=Sn&&Sn.fixed==="left";fn=!mr&&ar}else if(vn!==void 0){var fr=wn&&wn.fixed==="right";Hn=!fr&&ar}return{fixLeft:sn,fixRight:vn,lastFixLeft:fn,firstFixRight:Hn,lastFixRight:kn,firstFixLeft:jn,isSticky:Bt.isSticky}}var Re=te.createContext({}),ne=Re;function fe(ht){var pt=ht.className,It=ht.index,Bt=ht.children,Jt=ht.colSpan,tn=Jt===void 0?1:Jt,dn=ht.rowSpan,sn=ht.align,vn=ee(De,["prefixCls","direction"]),fn=vn.prefixCls,Hn=vn.direction,kn=te.useContext(ne),jn=kn.scrollColumnIndex,Sn=kn.stickyOffsets,wn=kn.flattenColumns,ar=It+tn-1,Xn=ar+1===jn?tn+1:tn,dr=Fe(It,It+Xn-1,wn,Sn,Hn);return te.createElement(qe,(0,ce.Z)({className:pt,index:It,component:"td",prefixCls:fn,record:null,dataIndex:null,align:sn,colSpan:Xn,rowSpan:dn,render:function(){return Bt}},dr))}var Me=Te(75931),ze=["children"];function we(ht){var pt=ht.children,It=(0,Me.Z)(ht,ze);return te.createElement("tr",It,pt)}function ve(ht){var pt=ht.children;return pt}ve.Row=we,ve.Cell=fe;var Ie=ve;function $e(ht){var pt=ht.children,It=ht.stickyOffsets,Bt=ht.flattenColumns,Jt=ee(De,"prefixCls"),tn=Bt.length-1,dn=Bt[tn],sn=te.useMemo(function(){return{stickyOffsets:It,flattenColumns:Bt,scrollColumnIndex:dn!=null&&dn.scrollbar?tn:null}},[dn,Bt,tn,It]);return te.createElement(ne.Provider,{value:sn},te.createElement("tfoot",{className:"".concat(Jt,"-summary")},pt))}var Ge=ge($e),Je=Ie,ut=Te(29301),lt=Te(24514),vt=Te(75152),ct=Te(26112);function st(ht,pt,It,Bt,Jt,tn,dn){ht.push({record:pt,indent:It,index:dn});var sn=tn(pt),vn=Jt==null?void 0:Jt.has(sn);if(pt&&Array.isArray(pt[Bt])&&vn)for(var fn=0;fn<pt[Bt].length;fn+=1)st(ht,pt[Bt][fn],It+1,Bt,Jt,tn,fn)}function At(ht,pt,It,Bt){var Jt=te.useMemo(function(){if(It!=null&&It.size){for(var tn=[],dn=0;dn<(ht==null?void 0:ht.length);dn+=1){var sn=ht[dn];st(tn,sn,0,pt,It,Bt,dn)}return tn}return ht==null?void 0:ht.map(function(vn,fn){return{record:vn,indent:0,index:fn}})},[ht,pt,It,Bt]);return Jt}function mt(ht,pt,It,Bt){var Jt=ee(De,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),tn=Jt.flattenColumns,dn=Jt.expandableType,sn=Jt.expandedKeys,vn=Jt.childrenColumnName,fn=Jt.onTriggerExpand,Hn=Jt.rowExpandable,kn=Jt.onRow,jn=Jt.expandRowByClick,Sn=Jt.rowClassName,wn=dn==="nest",ar=dn==="row"&&(!Hn||Hn(ht)),Xn=ar||wn,dr=sn&&sn.has(pt),mr=vn&&ht&&ht[vn],fr=(0,Qe.zX)(fn),xr=kn==null?void 0:kn(ht,It),Ar=xr==null?void 0:xr.onClick,_r=function(Gr){jn&&Xn&&fn(ht,Gr);for(var ai=arguments.length,Fr=new Array(ai>1?ai-1:0),$r=1;$r<ai;$r++)Fr[$r-1]=arguments[$r];Ar==null||Ar.apply(void 0,[Gr].concat(Fr))},Mr;typeof Sn=="string"?Mr=Sn:typeof Sn=="function"&&(Mr=Sn(ht,It,Bt));var vi=tt(tn);return(0,Oe.Z)((0,Oe.Z)({},Jt),{},{columnsKey:vi,nestExpandable:wn,expanded:dr,hasNestChildren:mr,record:ht,onTriggerExpand:fr,rowSupportExpand:ar,expandable:Xn,rowProps:(0,Oe.Z)((0,Oe.Z)({},xr),{},{className:Ne()(Mr,xr==null?void 0:xr.className),onClick:_r})})}function Dt(ht){var pt=ht.prefixCls,It=ht.children,Bt=ht.component,Jt=ht.cellComponent,tn=ht.className,dn=ht.expanded,sn=ht.colSpan,vn=ht.isEmpty,fn=ee(De,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Hn=fn.scrollbarSize,kn=fn.fixHeader,jn=fn.fixColumn,Sn=fn.componentWidth,wn=fn.horizonScroll,ar=It;return(vn?wn&&Sn:jn)&&(ar=te.createElement("div",{style:{width:Sn-(kn&&!vn?Hn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(pt,"-expanded-row-fixed")},ar)),te.createElement(Bt,{className:tn,style:{display:dn?null:"none"}},te.createElement(qe,{component:Jt,prefixCls:pt,colSpan:sn},ar))}var jt=Dt;function Et(ht){var pt=ht.prefixCls,It=ht.record,Bt=ht.onExpand,Jt=ht.expanded,tn=ht.expandable,dn="".concat(pt,"-row-expand-icon");if(!tn)return te.createElement("span",{className:Ne()(dn,"".concat(pt,"-row-spaced"))});var sn=function(fn){Bt(It,fn),fn.stopPropagation()};return te.createElement("span",{className:Ne()(dn,(0,Pe.Z)((0,Pe.Z)({},"".concat(pt,"-row-expanded"),Jt),"".concat(pt,"-row-collapsed"),!Jt)),onClick:sn})}function kt(ht,pt,It){var Bt=[];function Jt(tn){(tn||[]).forEach(function(dn,sn){Bt.push(pt(dn,sn)),Jt(dn[It])})}return Jt(ht),Bt}function Nt(ht,pt,It,Bt){return typeof ht=="string"?ht:typeof ht=="function"?ht(pt,It,Bt):""}function yt(ht,pt,It,Bt,Jt){var tn=ht.record,dn=ht.prefixCls,sn=ht.columnsKey,vn=ht.fixedInfoList,fn=ht.expandIconColumnIndex,Hn=ht.nestExpandable,kn=ht.indentSize,jn=ht.expandIcon,Sn=ht.expanded,wn=ht.hasNestChildren,ar=ht.onTriggerExpand,Xn=sn[It],dr=vn[It],mr;It===(fn||0)&&Hn&&(mr=te.createElement(te.Fragment,null,te.createElement("span",{style:{paddingLeft:"".concat(kn*Bt,"px")},className:"".concat(dn,"-row-indent indent-level-").concat(Bt)}),jn({prefixCls:dn,expanded:Sn,expandable:wn,record:tn,onExpand:ar})));var fr;return pt.onCell&&(fr=pt.onCell(tn,Jt)),{key:Xn,fixedInfo:dr,appendCellNode:mr,additionalCellProps:fr||{}}}function Pt(ht){var pt=ht.className,It=ht.style,Bt=ht.record,Jt=ht.index,tn=ht.renderIndex,dn=ht.rowKey,sn=ht.indent,vn=sn===void 0?0:sn,fn=ht.rowComponent,Hn=ht.cellComponent,kn=ht.scopeCellComponent,jn=mt(Bt,dn,Jt,vn),Sn=jn.prefixCls,wn=jn.flattenColumns,ar=jn.expandedRowClassName,Xn=jn.expandedRowRender,dr=jn.rowProps,mr=jn.expanded,fr=jn.rowSupportExpand,xr=te.useRef(!1);xr.current||(xr.current=mr);var Ar=Nt(ar,Bt,Jt,vn),_r=te.createElement(fn,(0,ce.Z)({},dr,{"data-row-key":dn,className:Ne()(pt,"".concat(Sn,"-row"),"".concat(Sn,"-row-level-").concat(vn),dr==null?void 0:dr.className,(0,Pe.Z)({},Ar,vn>=1)),style:(0,Oe.Z)((0,Oe.Z)({},It),dr==null?void 0:dr.style)}),wn.map(function(Qr,Gr){var ai=Qr.render,Fr=Qr.dataIndex,$r=Qr.className,Ir=yt(jn,Qr,Gr,vn,Jt),vr=Ir.key,Lr=Ir.fixedInfo,zr=Ir.appendCellNode,qr=Ir.additionalCellProps;return te.createElement(qe,(0,ce.Z)({className:$r,ellipsis:Qr.ellipsis,align:Qr.align,scope:Qr.rowScope,component:Qr.rowScope?kn:Hn,prefixCls:Sn,key:vr,record:Bt,index:Jt,renderIndex:tn,dataIndex:Fr,render:ai,shouldCellUpdate:Qr.shouldCellUpdate},Lr,{appendNode:zr,additionalProps:qr}))})),Mr;if(fr&&(xr.current||mr)){var vi=Xn(Bt,Jt,vn+1,mr);Mr=te.createElement(jt,{expanded:mr,className:Ne()("".concat(Sn,"-expanded-row"),"".concat(Sn,"-expanded-row-level-").concat(vn+1),Ar),prefixCls:Sn,component:fn,cellComponent:Hn,colSpan:wn.length,isEmpty:!1},vi)}return te.createElement(te.Fragment,null,_r,Mr)}var Kt=ge(Pt);function nn(ht){var pt=ht.columnKey,It=ht.onColumnResize,Bt=te.useRef();return(0,z.Z)(function(){Bt.current&&It(pt,Bt.current.offsetWidth)},[]),te.createElement(ut.Z,{data:pt},te.createElement("td",{ref:Bt,style:{padding:0,border:0,height:0}},te.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var xt=Te(29194);function Ct(ht){var pt=ht.prefixCls,It=ht.columnsKey,Bt=ht.onColumnResize,Jt=te.useRef(null);return te.createElement("tr",{"aria-hidden":"true",className:"".concat(pt,"-measure-row"),style:{height:0,fontSize:0},ref:Jt},te.createElement(ut.Z.Collection,{onBatchResize:function(dn){(0,xt.Z)(Jt.current)&&dn.forEach(function(sn){var vn=sn.data,fn=sn.size;Bt(vn,fn.offsetWidth)})}},It.map(function(tn){return te.createElement(nn,{key:tn,columnKey:tn,onColumnResize:Bt})})))}function zt(ht){var pt=ht.data,It=ht.measureColumnWidth,Bt=ee(De,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Jt=Bt.prefixCls,tn=Bt.getComponent,dn=Bt.onColumnResize,sn=Bt.flattenColumns,vn=Bt.getRowKey,fn=Bt.expandedKeys,Hn=Bt.childrenColumnName,kn=Bt.emptyNode,jn=At(pt,Hn,fn,vn),Sn=te.useRef({renderWithProps:!1}),wn=tn(["body","wrapper"],"tbody"),ar=tn(["body","row"],"tr"),Xn=tn(["body","cell"],"td"),dr=tn(["body","cell"],"th"),mr;pt.length?mr=jn.map(function(xr,Ar){var _r=xr.record,Mr=xr.indent,vi=xr.index,Qr=vn(_r,Ar);return te.createElement(Kt,{key:Qr,rowKey:Qr,record:_r,index:Ar,renderIndex:vi,rowComponent:ar,cellComponent:Xn,scopeCellComponent:dr,indent:Mr})}):mr=te.createElement(jt,{expanded:!0,className:"".concat(Jt,"-placeholder"),prefixCls:Jt,component:ar,cellComponent:Xn,colSpan:sn.length,isEmpty:!0},kn);var fr=tt(sn);return te.createElement(nt.Provider,{value:Sn.current},te.createElement(wn,{className:"".concat(Jt,"-tbody")},It&&te.createElement(Ct,{prefixCls:Jt,columnsKey:fr,onColumnResize:dn}),mr))}var en=ge(zt),un=["expandable"],Cn="RC_TABLE_INTERNAL_COL_DEFINE";function Nn(ht){var pt=ht.expandable,It=(0,Me.Z)(ht,un),Bt;return"expandable"in ht?Bt=(0,Oe.Z)((0,Oe.Z)({},It),pt):Bt=It,Bt.showExpandColumn===!1&&(Bt.expandIconColumnIndex=-1),Bt}var _n=["columnType"];function yn(ht){for(var pt=ht.colWidths,It=ht.columns,Bt=ht.columCount,Jt=ee(De,["tableLayout"]),tn=Jt.tableLayout,dn=[],sn=Bt||It.length,vn=!1,fn=sn-1;fn>=0;fn-=1){var Hn=pt[fn],kn=It&&It[fn],jn=void 0,Sn=void 0;if(kn&&(jn=kn[Cn],tn==="auto"&&(Sn=kn.minWidth)),Hn||Sn||jn||vn){var wn=jn||{},ar=wn.columnType,Xn=(0,Me.Z)(wn,_n);dn.unshift(te.createElement("col",(0,ce.Z)({key:fn,style:{width:Hn,minWidth:Sn}},Xn))),vn=!0}}return te.createElement("colgroup",null,dn)}var Rn=yn,pn=Te(94480),on=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Vt(ht,pt){return(0,te.useMemo)(function(){for(var It=[],Bt=0;Bt<pt;Bt+=1){var Jt=ht[Bt];if(Jt!==void 0)It[Bt]=Jt;else return null}return It},[ht.join("_"),pt])}var Wt=te.forwardRef(function(ht,pt){var It=ht.className,Bt=ht.noData,Jt=ht.columns,tn=ht.flattenColumns,dn=ht.colWidths,sn=ht.columCount,vn=ht.stickyOffsets,fn=ht.direction,Hn=ht.fixHeader,kn=ht.stickyTopOffset,jn=ht.stickyBottomOffset,Sn=ht.stickyClassName,wn=ht.onScroll,ar=ht.maxContentScroll,Xn=ht.children,dr=(0,Me.Z)(ht,on),mr=ee(De,["prefixCls","scrollbarSize","isSticky","getComponent"]),fr=mr.prefixCls,xr=mr.scrollbarSize,Ar=mr.isSticky,_r=mr.getComponent,Mr=_r(["header","table"],"table"),vi=Ar&&!Hn?0:xr,Qr=te.useRef(null),Gr=te.useCallback(function(qr){(0,x.mH)(pt,qr),(0,x.mH)(Qr,qr)},[]);te.useEffect(function(){var qr;function Dr(Ei){var Pi=Ei,yo=Pi.currentTarget,fo=Pi.deltaX;fo&&(wn({currentTarget:yo,scrollLeft:yo.scrollLeft+fo}),Ei.preventDefault())}return(qr=Qr.current)===null||qr===void 0||qr.addEventListener("wheel",Dr,{passive:!1}),function(){var Ei;(Ei=Qr.current)===null||Ei===void 0||Ei.removeEventListener("wheel",Dr)}},[]);var ai=te.useMemo(function(){return tn.every(function(qr){return qr.width})},[tn]),Fr=tn[tn.length-1],$r={fixed:Fr?Fr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(fr,"-cell-scrollbar")}}},Ir=(0,te.useMemo)(function(){return vi?[].concat((0,pn.Z)(Jt),[$r]):Jt},[vi,Jt]),vr=(0,te.useMemo)(function(){return vi?[].concat((0,pn.Z)(tn),[$r]):tn},[vi,tn]),Lr=(0,te.useMemo)(function(){var qr=vn.right,Dr=vn.left;return(0,Oe.Z)((0,Oe.Z)({},vn),{},{left:fn==="rtl"?[].concat((0,pn.Z)(Dr.map(function(Ei){return Ei+vi})),[0]):Dr,right:fn==="rtl"?qr:[].concat((0,pn.Z)(qr.map(function(Ei){return Ei+vi})),[0]),isSticky:Ar})},[vi,vn,Ar]),zr=Vt(dn,sn);return te.createElement("div",{style:(0,Oe.Z)({overflow:"hidden"},Ar?{top:kn,bottom:jn}:{}),ref:Gr,className:Ne()(It,(0,Pe.Z)({},Sn,!!Sn))},te.createElement(Mr,{style:{tableLayout:"fixed",visibility:Bt||zr?null:"hidden"}},(!Bt||!ar||ai)&&te.createElement(Rn,{colWidths:zr?[].concat((0,pn.Z)(zr),[vi]):[],columCount:sn+1,columns:vr}),Xn((0,Oe.Z)((0,Oe.Z)({},dr),{},{stickyOffsets:Lr,columns:Ir,flattenColumns:vr}))))}),Ht=te.memo(Wt),hn=function(pt){var It=pt.cells,Bt=pt.stickyOffsets,Jt=pt.flattenColumns,tn=pt.rowComponent,dn=pt.cellComponent,sn=pt.onHeaderRow,vn=pt.index,fn=ee(De,["prefixCls","direction"]),Hn=fn.prefixCls,kn=fn.direction,jn;sn&&(jn=sn(It.map(function(wn){return wn.column}),vn));var Sn=tt(It.map(function(wn){return wn.column}));return te.createElement(tn,jn,It.map(function(wn,ar){var Xn=wn.column,dr=Fe(wn.colStart,wn.colEnd,Jt,Bt,kn),mr;return Xn&&Xn.onHeaderCell&&(mr=wn.column.onHeaderCell(Xn)),te.createElement(qe,(0,ce.Z)({},wn,{scope:Xn.title?wn.colSpan>1?"colgroup":"col":null,ellipsis:Xn.ellipsis,align:Xn.align,component:dn,prefixCls:Hn,key:Sn[ar]},dr,{additionalProps:mr,rowType:"header"}))}))},cn=hn;function mn(ht){var pt=[];function It(dn,sn){var vn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;pt[vn]=pt[vn]||[];var fn=sn,Hn=dn.filter(Boolean).map(function(kn){var jn={key:kn.key,className:kn.className||"",children:kn.title,column:kn,colStart:fn},Sn=1,wn=kn.children;return wn&&wn.length>0&&(Sn=It(wn,fn,vn+1).reduce(function(ar,Xn){return ar+Xn},0),jn.hasSubColumns=!0),"colSpan"in kn&&(Sn=kn.colSpan),"rowSpan"in kn&&(jn.rowSpan=kn.rowSpan),jn.colSpan=Sn,jn.colEnd=jn.colStart+Sn-1,pt[vn].push(jn),fn+=Sn,Sn});return Hn}It(ht,0);for(var Bt=pt.length,Jt=function(sn){pt[sn].forEach(function(vn){!("rowSpan"in vn)&&!vn.hasSubColumns&&(vn.rowSpan=Bt-sn)})},tn=0;tn<Bt;tn+=1)Jt(tn);return pt}var Bn=function(pt){var It=pt.stickyOffsets,Bt=pt.columns,Jt=pt.flattenColumns,tn=pt.onHeaderRow,dn=ee(De,["prefixCls","getComponent"]),sn=dn.prefixCls,vn=dn.getComponent,fn=te.useMemo(function(){return mn(Bt)},[Bt]),Hn=vn(["header","wrapper"],"thead"),kn=vn(["header","row"],"tr"),jn=vn(["header","cell"],"th");return te.createElement(Hn,{className:"".concat(sn,"-thead")},fn.map(function(Sn,wn){var ar=te.createElement(cn,{key:wn,flattenColumns:Jt,cells:Sn,stickyOffsets:It,rowComponent:kn,cellComponent:jn,onHeaderRow:tn,index:wn});return ar}))},Pn=ge(Bn),gn=Te(11592);function Ln(ht){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof pt=="number"?pt:pt.endsWith("%")?ht*parseFloat(pt)/100:null}function Kn(ht,pt,It){return te.useMemo(function(){if(pt&&pt>0){var Bt=0,Jt=0;ht.forEach(function(jn){var Sn=Ln(pt,jn.width);Sn?Bt+=Sn:Jt+=1});var tn=Math.max(pt,It),dn=Math.max(tn-Bt,Jt),sn=Jt,vn=dn/Jt,fn=0,Hn=ht.map(function(jn){var Sn=(0,Oe.Z)({},jn),wn=Ln(pt,Sn.width);if(wn)Sn.width=wn;else{var ar=Math.floor(vn);Sn.width=sn===1?dn:ar,dn-=ar,sn-=1}return fn+=Sn.width,Sn});if(fn<tn){var kn=tn/fn;dn=tn,Hn.forEach(function(jn,Sn){var wn=Math.floor(jn.width*kn);jn.width=Sn===Hn.length-1?dn:wn,dn-=wn})}return[Hn,Math.max(fn,tn)]}return[ht,pt]},[ht,pt,It])}var sr=["children"],nr=["fixed"];function ln(ht){return(0,gn.Z)(ht).filter(function(pt){return te.isValidElement(pt)}).map(function(pt){var It=pt.key,Bt=pt.props,Jt=Bt.children,tn=(0,Me.Z)(Bt,sr),dn=(0,Oe.Z)({key:It},tn);return Jt&&(dn.children=ln(Jt)),dn})}function rn(ht){return ht.filter(function(pt){return pt&&(0,Ee.Z)(pt)==="object"&&!pt.hidden}).map(function(pt){var It=pt.children;return It&&It.length>0?(0,Oe.Z)((0,Oe.Z)({},pt),{},{children:rn(It)}):pt})}function Wn(ht){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ht.filter(function(It){return It&&(0,Ee.Z)(It)==="object"}).reduce(function(It,Bt,Jt){var tn=Bt.fixed,dn=tn===!0?"left":tn,sn="".concat(pt,"-").concat(Jt),vn=Bt.children;return vn&&vn.length>0?[].concat((0,pn.Z)(It),(0,pn.Z)(Wn(vn,sn).map(function(fn){return(0,Oe.Z)({fixed:dn},fn)}))):[].concat((0,pn.Z)(It),[(0,Oe.Z)((0,Oe.Z)({key:sn},Bt),{},{fixed:dn})])},[])}function Zn(ht){return ht.map(function(pt){var It=pt.fixed,Bt=(0,Me.Z)(pt,nr),Jt=It;return It==="left"?Jt="right":It==="right"&&(Jt="left"),(0,Oe.Z)({fixed:Jt},Bt)})}function Mt(ht,pt){var It=ht.prefixCls,Bt=ht.columns,Jt=ht.children,tn=ht.expandable,dn=ht.expandedKeys,sn=ht.columnTitle,vn=ht.getRowKey,fn=ht.onTriggerExpand,Hn=ht.expandIcon,kn=ht.rowExpandable,jn=ht.expandIconColumnIndex,Sn=ht.direction,wn=ht.expandRowByClick,ar=ht.columnWidth,Xn=ht.fixed,dr=ht.scrollWidth,mr=ht.clientWidth,fr=te.useMemo(function(){var Fr=Bt||ln(Jt)||[];return rn(Fr.slice())},[Bt,Jt]),xr=te.useMemo(function(){if(tn){var Fr=fr.slice();if(!Fr.includes(Ot)){var $r=jn||0;$r>=0&&($r||Xn==="left"||!Xn)&&Fr.splice($r,0,Ot),Xn==="right"&&Fr.splice(fr.length,0,Ot)}var Ir=Fr.indexOf(Ot);Fr=Fr.filter(function(qr,Dr){return qr!==Ot||Dr===Ir});var vr=fr[Ir],Lr;Xn?Lr=Xn:Lr=vr?vr.fixed:null;var zr=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},Cn,{className:"".concat(It,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",sn),"fixed",Lr),"className","".concat(It,"-row-expand-icon-cell")),"width",ar),"render",function(Dr,Ei,Pi){var yo=vn(Ei,Pi),fo=dn.has(yo),ro=kn?kn(Ei):!0,po=Hn({prefixCls:It,expanded:fo,expandable:ro,record:Ei,onExpand:fn});return wn?te.createElement("span",{onClick:function(ji){return ji.stopPropagation()}},po):po});return Fr.map(function(qr){return qr===Ot?zr:qr})}return fr.filter(function(qr){return qr!==Ot})},[tn,fr,vn,dn,Hn,Sn]),Ar=te.useMemo(function(){var Fr=xr;return pt&&(Fr=pt(Fr)),Fr.length||(Fr=[{render:function(){return null}}]),Fr},[pt,xr,Sn]),_r=te.useMemo(function(){return Sn==="rtl"?Zn(Wn(Ar)):Wn(Ar)},[Ar,Sn,dr]),Mr=te.useMemo(function(){for(var Fr=-1,$r=_r.length-1;$r>=0;$r-=1){var Ir=_r[$r].fixed;if(Ir==="left"||Ir===!0){Fr=$r;break}}if(Fr>=0)for(var vr=0;vr<=Fr;vr+=1){var Lr=_r[vr].fixed;if(Lr!=="left"&&Lr!==!0)return!0}var zr=_r.findIndex(function(Ei){var Pi=Ei.fixed;return Pi==="right"});if(zr>=0)for(var qr=zr;qr<_r.length;qr+=1){var Dr=_r[qr].fixed;if(Dr!=="right")return!0}return!1},[_r]),vi=Kn(_r,dr,mr),Qr=(0,je.Z)(vi,2),Gr=Qr[0],ai=Qr[1];return[Ar,Gr,ai,Mr]}var Gt=Mt;function St(ht,pt,It){var Bt=Nn(ht),Jt=Bt.expandIcon,tn=Bt.expandedRowKeys,dn=Bt.defaultExpandedRowKeys,sn=Bt.defaultExpandAllRows,vn=Bt.expandedRowRender,fn=Bt.onExpand,Hn=Bt.onExpandedRowsChange,kn=Bt.childrenColumnName,jn=Jt||Et,Sn=kn||"children",wn=te.useMemo(function(){return vn?"row":ht.expandable&&ht.internalHooks===y&&ht.expandable.__PARENT_RENDER_ICON__||pt.some(function(Ar){return Ar&&(0,Ee.Z)(Ar)==="object"&&Ar[Sn]})?"nest":!1},[!!vn,pt]),ar=te.useState(function(){return dn||(sn?kt(pt,It,Sn):[])}),Xn=(0,je.Z)(ar,2),dr=Xn[0],mr=Xn[1],fr=te.useMemo(function(){return new Set(tn||dr||[])},[tn,dr]),xr=te.useCallback(function(Ar){var _r=It(Ar,pt.indexOf(Ar)),Mr,vi=fr.has(_r);vi?(fr.delete(_r),Mr=(0,pn.Z)(fr)):Mr=[].concat((0,pn.Z)(fr),[_r]),mr(Mr),fn&&fn(!vi,Ar),Hn&&Hn(Mr)},[It,fr,pt,fn,Hn]);return[Bt,wn,fr,jn,Sn,xr]}function Rt(ht,pt,It){var Bt=ht.map(function(Jt,tn){return Fe(tn,tn,ht,pt,It)});return(0,me.Z)(function(){return Bt},[Bt],function(Jt,tn){return!(0,E.Z)(Jt,tn)})}function Tt(ht){var pt=(0,te.useRef)(ht),It=(0,te.useState)({}),Bt=(0,je.Z)(It,2),Jt=Bt[1],tn=(0,te.useRef)(null),dn=(0,te.useRef)([]);function sn(vn){dn.current.push(vn);var fn=Promise.resolve();tn.current=fn,fn.then(function(){if(tn.current===fn){var Hn=dn.current,kn=pt.current;dn.current=[],Hn.forEach(function(jn){pt.current=jn(pt.current)}),tn.current=null,kn!==pt.current&&Jt({})}})}return(0,te.useEffect)(function(){return function(){tn.current=null}},[]),[pt.current,sn]}function _t(ht){var pt=(0,te.useRef)(ht||null),It=(0,te.useRef)();function Bt(){window.clearTimeout(It.current)}function Jt(dn){pt.current=dn,Bt(),It.current=window.setTimeout(function(){pt.current=null,It.current=void 0},100)}function tn(){return pt.current}return(0,te.useEffect)(function(){return Bt},[]),[Jt,tn]}function bt(){var ht=te.useState(-1),pt=(0,je.Z)(ht,2),It=pt[0],Bt=pt[1],Jt=te.useState(-1),tn=(0,je.Z)(Jt,2),dn=tn[0],sn=tn[1],vn=te.useCallback(function(fn,Hn){Bt(fn),sn(Hn)},[]);return[It,dn,vn]}var Ut=Te(47273),Lt=(0,Ut.Z)()?window:null;function qt(ht,pt){var It=(0,Ee.Z)(ht)==="object"?ht:{},Bt=It.offsetHeader,Jt=Bt===void 0?0:Bt,tn=It.offsetSummary,dn=tn===void 0?0:tn,sn=It.offsetScroll,vn=sn===void 0?0:sn,fn=It.getContainer,Hn=fn===void 0?function(){return Lt}:fn,kn=Hn()||Lt,jn=!!ht;return te.useMemo(function(){return{isSticky:jn,stickyClassName:jn?"".concat(pt,"-sticky-holder"):"",offsetHeader:Jt,offsetSummary:dn,offsetScroll:vn,container:kn}},[jn,vn,Jt,dn,pt,kn])}function Ft(ht,pt,It){var Bt=(0,te.useMemo)(function(){var Jt=pt.length,tn=function(fn,Hn,kn){for(var jn=[],Sn=0,wn=fn;wn!==Hn;wn+=kn)jn.push(Sn),pt[wn].fixed&&(Sn+=ht[wn]||0);return jn},dn=tn(0,Jt,1),sn=tn(Jt-1,-1,-1).reverse();return It==="rtl"?{left:sn,right:dn}:{left:dn,right:sn}},[ht,pt,It]);return Bt}var $t=Ft;function Zt(ht){var pt=ht.className,It=ht.children;return te.createElement("div",{className:pt},It)}var Xt=Zt,Tn=Te(8224),On=Te(16089),Mn=Te(76846);function rr(ht){var pt=(0,Mn.bn)(ht),It=pt.getBoundingClientRect(),Bt=document.documentElement;return{left:It.left+(window.pageXOffset||Bt.scrollLeft)-(Bt.clientLeft||document.body.clientLeft||0),top:It.top+(window.pageYOffset||Bt.scrollTop)-(Bt.clientTop||document.body.clientTop||0)}}var lr=function(pt,It){var Bt,Jt,tn=pt.scrollBodyRef,dn=pt.onScroll,sn=pt.offsetScroll,vn=pt.container,fn=pt.direction,Hn=ee(De,"prefixCls"),kn=((Bt=tn.current)===null||Bt===void 0?void 0:Bt.scrollWidth)||0,jn=((Jt=tn.current)===null||Jt===void 0?void 0:Jt.clientWidth)||0,Sn=kn&&jn*(jn/kn),wn=te.useRef(),ar=Tt({scrollLeft:0,isHiddenScrollBar:!0}),Xn=(0,je.Z)(ar,2),dr=Xn[0],mr=Xn[1],fr=te.useRef({delta:0,x:0}),xr=te.useState(!1),Ar=(0,je.Z)(xr,2),_r=Ar[0],Mr=Ar[1],vi=te.useRef(null);te.useEffect(function(){return function(){On.Z.cancel(vi.current)}},[]);var Qr=function(){Mr(!1)},Gr=function(vr){vr.persist(),fr.current.delta=vr.pageX-dr.scrollLeft,fr.current.x=0,Mr(!0),vr.preventDefault()},ai=function(vr){var Lr,zr=vr||((Lr=window)===null||Lr===void 0?void 0:Lr.event),qr=zr.buttons;if(!_r||qr===0){_r&&Mr(!1);return}var Dr=fr.current.x+vr.pageX-fr.current.x-fr.current.delta,Ei=fn==="rtl";Dr=Math.max(Ei?Sn-jn:0,Math.min(Ei?0:jn-Sn,Dr));var Pi=!Ei||Math.abs(Dr)+Math.abs(Sn)<jn;Pi&&(dn({scrollLeft:Dr/jn*(kn+2)}),fr.current.x=vr.pageX)},Fr=function(){On.Z.cancel(vi.current),vi.current=(0,On.Z)(function(){if(tn.current){var vr=rr(tn.current).top,Lr=vr+tn.current.offsetHeight,zr=vn===window?document.documentElement.scrollTop+window.innerHeight:rr(vn).top+vn.clientHeight;Lr-(0,vt.Z)()<=zr||vr>=zr-sn?mr(function(qr){return(0,Oe.Z)((0,Oe.Z)({},qr),{},{isHiddenScrollBar:!0})}):mr(function(qr){return(0,Oe.Z)((0,Oe.Z)({},qr),{},{isHiddenScrollBar:!1})})}})},$r=function(vr){mr(function(Lr){return(0,Oe.Z)((0,Oe.Z)({},Lr),{},{scrollLeft:vr/kn*jn||0})})};return te.useImperativeHandle(It,function(){return{setScrollLeft:$r,checkScrollBarVisible:Fr}}),te.useEffect(function(){var Ir=(0,Tn.Z)(document.body,"mouseup",Qr,!1),vr=(0,Tn.Z)(document.body,"mousemove",ai,!1);return Fr(),function(){Ir.remove(),vr.remove()}},[Sn,_r]),te.useEffect(function(){if(tn.current){for(var Ir=[],vr=(0,Mn.bn)(tn.current);vr;)Ir.push(vr),vr=vr.parentElement;return Ir.forEach(function(Lr){return Lr.addEventListener("scroll",Fr,!1)}),window.addEventListener("resize",Fr,!1),window.addEventListener("scroll",Fr,!1),vn.addEventListener("scroll",Fr,!1),function(){Ir.forEach(function(Lr){return Lr.removeEventListener("scroll",Fr)}),window.removeEventListener("resize",Fr),window.removeEventListener("scroll",Fr),vn.removeEventListener("scroll",Fr)}}},[vn]),te.useEffect(function(){dr.isHiddenScrollBar||mr(function(Ir){var vr=tn.current;return vr?(0,Oe.Z)((0,Oe.Z)({},Ir),{},{scrollLeft:vr.scrollLeft/vr.scrollWidth*vr.clientWidth}):Ir})},[dr.isHiddenScrollBar]),kn<=jn||!Sn||dr.isHiddenScrollBar?null:te.createElement("div",{style:{height:(0,vt.Z)(),width:jn,bottom:sn},className:"".concat(Hn,"-sticky-scroll")},te.createElement("div",{onMouseDown:Gr,ref:wn,className:Ne()("".concat(Hn,"-sticky-scroll-bar"),(0,Pe.Z)({},"".concat(Hn,"-sticky-scroll-bar-active"),_r)),style:{width:"".concat(Sn,"px"),transform:"translate3d(".concat(dr.scrollLeft,"px, 0, 0)")}}))},hr=te.forwardRef(lr);function er(ht){return null}var Qn=er;function Fn(ht){return null}var pr=Fn,wr="rc-table",Sr=[],Cr={};function Jn(){return"No Data"}function yr(ht,pt){var It=(0,Oe.Z)({rowKey:"key",prefixCls:wr,emptyText:Jn},ht),Bt=It.prefixCls,Jt=It.className,tn=It.rowClassName,dn=It.style,sn=It.data,vn=It.rowKey,fn=It.scroll,Hn=It.tableLayout,kn=It.direction,jn=It.title,Sn=It.footer,wn=It.summary,ar=It.caption,Xn=It.id,dr=It.showHeader,mr=It.components,fr=It.emptyText,xr=It.onRow,Ar=It.onHeaderRow,_r=It.onScroll,Mr=It.internalHooks,vi=It.transformColumns,Qr=It.internalRefs,Gr=It.tailor,ai=It.getContainerWidth,Fr=It.sticky,$r=It.rowHoverable,Ir=$r===void 0?!0:$r,vr=sn||Sr,Lr=!!vr.length,zr=Mr===y,qr=te.useCallback(function(Hi,Gi){return(0,Ve.Z)(mr,Hi)||Gi},[mr]),Dr=te.useMemo(function(){return typeof vn=="function"?vn:function(Hi){var Gi=Hi&&Hi[vn];return Gi}},[vn]),Ei=qr(["body"]),Pi=bt(),yo=(0,je.Z)(Pi,3),fo=yo[0],ro=yo[1],po=yo[2],So=St(It,vr,Dr),ji=(0,je.Z)(So,6),Di=ji[0],Co=ji[1],No=ji[2],Xr=ji[3],pi=ji[4],Wr=ji[5],Br=fn==null?void 0:fn.x,Bi=te.useState(0),Ki=(0,je.Z)(Bi,2),uo=Ki[0],to=Ki[1],Eo=Gt((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({},It),Di),{},{expandable:!!Di.expandedRowRender,columnTitle:Di.columnTitle,expandedKeys:No,getRowKey:Dr,onTriggerExpand:Wr,expandIcon:Xr,expandIconColumnIndex:Di.expandIconColumnIndex,direction:kn,scrollWidth:zr&&Gr&&typeof Br=="number"?Br:null,clientWidth:uo}),zr?vi:null),Bo=(0,je.Z)(Eo,4),Jr=Bo[0],ri=Bo[1],Vi=Bo[2],eo=Bo[3],Ji=Vi!=null?Vi:Br,$o=te.useMemo(function(){return{columns:Jr,flattenColumns:ri}},[Jr,ri]),To=te.useRef(),va=te.useRef(),ho=te.useRef(),$i=te.useRef();te.useImperativeHandle(pt,function(){return{nativeElement:To.current,scrollTo:function(Gi){var ta;if(ho.current instanceof HTMLElement){var Ta=Gi.index,na=Gi.top,Ds=Gi.key;if(et(na)){var ls;(ls=ho.current)===null||ls===void 0||ls.scrollTo({top:na})}else{var Qa,As=Ds!=null?Ds:Dr(vr[Ta]);(Qa=ho.current.querySelector('[data-row-key="'.concat(As,'"]')))===null||Qa===void 0||Qa.scrollIntoView()}}else(ta=ho.current)!==null&&ta!==void 0&&ta.scrollTo&&ho.current.scrollTo(Gi)}}});var no=te.useRef(),io=te.useState(!1),Lo=(0,je.Z)(io,2),bo=Lo[0],zi=Lo[1],mo=te.useState(!1),Xi=(0,je.Z)(mo,2),Qo=Xi[0],Ro=Xi[1],ca=te.useState(new Map),ga=(0,je.Z)(ca,2),Ga=ga[0],oo=ga[1],Zs=tt(ri),da=Zs.map(function(Hi){return Ga.get(Hi)}),Na=te.useMemo(function(){return da},[da.join("_")]),Ca=$t(Na,ri,kn),ya=fn&&rt(fn.y),ao=fn&&rt(Ji)||!!Di.fixed,Ea=ao&&ri.some(function(Hi){var Gi=Hi.fixed;return Gi}),as=te.useRef(),Va=qt(Fr,Bt),Xa=Va.isSticky,ol=Va.offsetHeader,al=Va.offsetSummary,sl=Va.offsetScroll,ll=Va.stickyClassName,Ol=Va.container,xi=te.useMemo(function(){return wn==null?void 0:wn(vr)},[wn,vr]),Mi=(ya||Xa)&&te.isValidElement(xi)&&xi.type===Ie&&xi.props.fixed,vo,Oo,Go;ya&&(Oo={overflowY:Lr?"scroll":"auto",maxHeight:fn.y}),ao&&(vo={overflowX:"auto"},ya||(Oo={overflowY:"hidden"}),Go={width:Ji===!0?"auto":Ji,minWidth:"100%"});var zo=te.useCallback(function(Hi,Gi){oo(function(ta){if(ta.get(Hi)!==Gi){var Ta=new Map(ta);return Ta.set(Hi,Gi),Ta}return ta})},[]),_a=_t(null),ea=(0,je.Z)(_a,2),Ps=ea[0],Il=ea[1];function Ws(Hi,Gi){Gi&&(typeof Gi=="function"?Gi(Hi):Gi.scrollLeft!==Hi&&(Gi.scrollLeft=Hi,Gi.scrollLeft!==Hi&&setTimeout(function(){Gi.scrollLeft=Hi},0)))}var vs=(0,be.Z)(function(Hi){var Gi=Hi.currentTarget,ta=Hi.scrollLeft,Ta=kn==="rtl",na=typeof ta=="number"?ta:Gi.scrollLeft,Ds=Gi||Cr;if(!Il()||Il()===Ds){var ls;Ps(Ds),Ws(na,va.current),Ws(na,ho.current),Ws(na,no.current),Ws(na,(ls=as.current)===null||ls===void 0?void 0:ls.setScrollLeft)}var Qa=Gi||va.current;if(Qa){var As=zr&&Gr&&typeof Ji=="number"?Ji:Qa.scrollWidth,Fl=Qa.clientWidth;if(As===Fl){zi(!1),Ro(!1);return}Ta?(zi(-na<As-Fl),Ro(-na>0)):(zi(na>0),Ro(na<As-Fl))}}),ul=(0,be.Z)(function(Hi){vs(Hi),_r==null||_r(Hi)}),gs=function(){if(ao&&ho.current){var Gi;vs({currentTarget:(0,Mn.bn)(ho.current),scrollLeft:(Gi=ho.current)===null||Gi===void 0?void 0:Gi.scrollLeft})}else zi(!1),Ro(!1)},Pl=function(Gi){var ta,Ta=Gi.width;(ta=as.current)===null||ta===void 0||ta.checkScrollBarVisible();var na=To.current?To.current.offsetWidth:Ta;zr&&ai&&To.current&&(na=ai(To.current,na)||na),na!==uo&&(gs(),to(na))},cl=te.useRef(!1);te.useEffect(function(){cl.current&&gs()},[ao,sn,Jr.length]),te.useEffect(function(){cl.current=!0},[]);var jl=te.useState(0),Ql=(0,je.Z)(jl,2),ss=Ql[0],Dl=Ql[1],gu=te.useState(!0),Al=(0,je.Z)(gu,2),Us=Al[0],yu=Al[1];(0,z.Z)(function(){(!Gr||!zr)&&(ho.current instanceof Element?Dl((0,vt.o)(ho.current).width):Dl((0,vt.o)($i.current).width)),yu((0,lt.G)("position","sticky"))},[]),te.useEffect(function(){zr&&Qr&&(Qr.body.current=ho.current)});var bu=te.useCallback(function(Hi){return te.createElement(te.Fragment,null,te.createElement(Pn,Hi),Mi==="top"&&te.createElement(Ge,Hi,xi))},[Mi,xi]),Ks=te.useCallback(function(Hi){return te.createElement(Ge,Hi,xi)},[xi]),kl=qr(["table"],"table"),Gs=te.useMemo(function(){return Hn||(Ea?Ji==="max-content"?"auto":"fixed":ya||Xa||ri.some(function(Hi){var Gi=Hi.ellipsis;return Gi})?"fixed":"auto")},[ya,Ea,ri,Hn,Xa]),Nl,Vs={colWidths:Na,columCount:ri.length,stickyOffsets:Ca,onHeaderRow:Ar,fixHeader:ya,scroll:fn},Rl=te.useMemo(function(){return Lr?null:typeof fr=="function"?fr():fr},[Lr,fr]),ql=te.createElement(en,{data:vr,measureColumnWidth:ya||ao||Xa}),Ml=te.createElement(Rn,{colWidths:ri.map(function(Hi){var Gi=Hi.width;return Gi}),columns:ri}),Bl=ar!=null?te.createElement("caption",{className:"".concat(Bt,"-caption")},ar):void 0,xu=(0,ct.Z)(It,{data:!0}),dl=(0,ct.Z)(It,{aria:!0});if(ya||Xa){var ys;typeof Ei=="function"?(ys=Ei(vr,{scrollbarSize:ss,ref:ho,onScroll:vs}),Vs.colWidths=ri.map(function(Hi,Gi){var ta=Hi.width,Ta=Gi===ri.length-1?ta-ss:ta;return typeof Ta=="number"&&!Number.isNaN(Ta)?Ta:0})):ys=te.createElement("div",{style:(0,Oe.Z)((0,Oe.Z)({},vo),Oo),onScroll:ul,ref:ho,className:Ne()("".concat(Bt,"-body"))},te.createElement(kl,(0,ce.Z)({style:(0,Oe.Z)((0,Oe.Z)({},Go),{},{tableLayout:Gs})},dl),Bl,Ml,ql,!Mi&&xi&&te.createElement(Ge,{stickyOffsets:Ca,flattenColumns:ri},xi)));var js=(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({noData:!vr.length,maxContentScroll:ao&&Ji==="max-content"},Vs),$o),{},{direction:kn,stickyClassName:ll,onScroll:vs});Nl=te.createElement(te.Fragment,null,dr!==!1&&te.createElement(Ht,(0,ce.Z)({},js,{stickyTopOffset:ol,className:"".concat(Bt,"-header"),ref:va}),bu),ys,Mi&&Mi!=="top"&&te.createElement(Ht,(0,ce.Z)({},js,{stickyBottomOffset:al,className:"".concat(Bt,"-summary"),ref:no}),Ks),Xa&&ho.current&&ho.current instanceof Element&&te.createElement(hr,{ref:as,offsetScroll:sl,scrollBodyRef:ho,onScroll:vs,container:Ol,direction:kn}))}else Nl=te.createElement("div",{style:(0,Oe.Z)((0,Oe.Z)({},vo),Oo),className:Ne()("".concat(Bt,"-content")),onScroll:vs,ref:ho},te.createElement(kl,(0,ce.Z)({style:(0,Oe.Z)((0,Oe.Z)({},Go),{},{tableLayout:Gs})},dl),Bl,Ml,dr!==!1&&te.createElement(Pn,(0,ce.Z)({},Vs,$o)),ql,xi&&te.createElement(Ge,{stickyOffsets:Ca,flattenColumns:ri},xi)));var Ll=te.createElement("div",(0,ce.Z)({className:Ne()(Bt,Jt,(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},"".concat(Bt,"-rtl"),kn==="rtl"),"".concat(Bt,"-ping-left"),bo),"".concat(Bt,"-ping-right"),Qo),"".concat(Bt,"-layout-fixed"),Hn==="fixed"),"".concat(Bt,"-fixed-header"),ya),"".concat(Bt,"-fixed-column"),Ea),"".concat(Bt,"-fixed-column-gapped"),Ea&&eo),"".concat(Bt,"-scroll-horizontal"),ao),"".concat(Bt,"-has-fix-left"),ri[0]&&ri[0].fixed),"".concat(Bt,"-has-fix-right"),ri[ri.length-1]&&ri[ri.length-1].fixed==="right")),style:dn,id:Xn,ref:To},xu),jn&&te.createElement(Xt,{className:"".concat(Bt,"-title")},jn(vr)),te.createElement("div",{ref:$i,className:"".concat(Bt,"-container")},Nl),Sn&&te.createElement(Xt,{className:"".concat(Bt,"-footer")},Sn(vr)));ao&&(Ll=te.createElement(ut.Z,{onResize:Pl},Ll));var _l=Rt(ri,Ca,kn),wu=te.useMemo(function(){return{scrollX:Ji,prefixCls:Bt,getComponent:qr,scrollbarSize:ss,direction:kn,fixedInfoList:_l,isSticky:Xa,supportSticky:Us,componentWidth:uo,fixHeader:ya,fixColumn:Ea,horizonScroll:ao,tableLayout:Gs,rowClassName:tn,expandedRowClassName:Di.expandedRowClassName,expandIcon:Xr,expandableType:Co,expandRowByClick:Di.expandRowByClick,expandedRowRender:Di.expandedRowRender,onTriggerExpand:Wr,expandIconColumnIndex:Di.expandIconColumnIndex,indentSize:Di.indentSize,allColumnsFixedLeft:ri.every(function(Hi){return Hi.fixed==="left"}),emptyNode:Rl,columns:Jr,flattenColumns:ri,onColumnResize:zo,hoverStartRow:fo,hoverEndRow:ro,onHover:po,rowExpandable:Di.rowExpandable,onRow:xr,getRowKey:Dr,expandedKeys:No,childrenColumnName:pi,rowHoverable:Ir}},[Ji,Bt,qr,ss,kn,_l,Xa,Us,uo,ya,Ea,ao,Gs,tn,Di.expandedRowClassName,Xr,Co,Di.expandRowByClick,Di.expandedRowRender,Wr,Di.expandIconColumnIndex,Di.indentSize,Rl,Jr,ri,zo,fo,ro,po,Di.rowExpandable,xr,Dr,No,pi,Ir]);return te.createElement(De.Provider,{value:wu},Ll)}var An=te.forwardRef(yr);function xn(ht){return ye(An,ht)}var tr=xn();tr.EXPAND_COLUMN=Ot,tr.INTERNAL_HOOKS=y,tr.Column=Qn,tr.ColumnGroup=pr,tr.Summary=Je;var br=tr,Er=Te(48911),Hr=oe(null),kr=oe(null);function Ur(ht,pt,It){var Bt=pt||1;return It[ht+Bt]-(It[ht]||0)}function Tr(ht){var pt=ht.rowInfo,It=ht.column,Bt=ht.colIndex,Jt=ht.indent,tn=ht.index,dn=ht.component,sn=ht.renderIndex,vn=ht.record,fn=ht.style,Hn=ht.className,kn=ht.inverse,jn=ht.getHeight,Sn=It.render,wn=It.dataIndex,ar=It.className,Xn=It.width,dr=ee(kr,["columnsOffset"]),mr=dr.columnsOffset,fr=yt(pt,It,Bt,Jt,tn),xr=fr.key,Ar=fr.fixedInfo,_r=fr.appendCellNode,Mr=fr.additionalCellProps,vi=Mr.style,Qr=Mr.colSpan,Gr=Qr===void 0?1:Qr,ai=Mr.rowSpan,Fr=ai===void 0?1:ai,$r=Bt-1,Ir=Ur($r,Gr,mr),vr=Gr>1?Xn-Ir:0,Lr=(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({},vi),fn),{},{flex:"0 0 ".concat(Ir,"px"),width:"".concat(Ir,"px"),marginRight:vr,pointerEvents:"auto"}),zr=te.useMemo(function(){return kn?Fr<=1:Gr===0||Fr===0||Fr>1},[Fr,Gr,kn]);zr?Lr.visibility="hidden":kn&&(Lr.height=jn==null?void 0:jn(Fr));var qr=zr?function(){return null}:Sn,Dr={};return(Fr===0||Gr===0)&&(Dr.rowSpan=1,Dr.colSpan=1),te.createElement(qe,(0,ce.Z)({className:Ne()(ar,Hn),ellipsis:It.ellipsis,align:It.align,scope:It.rowScope,component:dn,prefixCls:pt.prefixCls,key:xr,record:vn,index:tn,renderIndex:sn,dataIndex:wn,render:qr,shouldCellUpdate:It.shouldCellUpdate},Ar,{appendNode:_r,additionalProps:(0,Oe.Z)((0,Oe.Z)({},Mr),{},{style:Lr},Dr)}))}var ei=Tr,si=["data","index","className","rowKey","style","extra","getHeight"],wi=te.forwardRef(function(ht,pt){var It=ht.data,Bt=ht.index,Jt=ht.className,tn=ht.rowKey,dn=ht.style,sn=ht.extra,vn=ht.getHeight,fn=(0,Me.Z)(ht,si),Hn=It.record,kn=It.indent,jn=It.index,Sn=ee(De,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),wn=Sn.scrollX,ar=Sn.flattenColumns,Xn=Sn.prefixCls,dr=Sn.fixColumn,mr=Sn.componentWidth,fr=ee(Hr,["getComponent"]),xr=fr.getComponent,Ar=mt(Hn,tn,Bt,kn),_r=xr(["body","row"],"div"),Mr=xr(["body","cell"],"div"),vi=Ar.rowSupportExpand,Qr=Ar.expanded,Gr=Ar.rowProps,ai=Ar.expandedRowRender,Fr=Ar.expandedRowClassName,$r;if(vi&&Qr){var Ir=ai(Hn,Bt,kn+1,Qr),vr=Nt(Fr,Hn,Bt,kn),Lr={};dr&&(Lr={style:(0,Pe.Z)({},"--virtual-width","".concat(mr,"px"))});var zr="".concat(Xn,"-expanded-row-cell");$r=te.createElement(_r,{className:Ne()("".concat(Xn,"-expanded-row"),"".concat(Xn,"-expanded-row-level-").concat(kn+1),vr)},te.createElement(qe,{component:Mr,prefixCls:Xn,className:Ne()(zr,(0,Pe.Z)({},"".concat(zr,"-fixed"),dr)),additionalProps:Lr},Ir))}var qr=(0,Oe.Z)((0,Oe.Z)({},dn),{},{width:wn});sn&&(qr.position="absolute",qr.pointerEvents="none");var Dr=te.createElement(_r,(0,ce.Z)({},Gr,fn,{"data-row-key":tn,ref:vi?null:pt,className:Ne()(Jt,"".concat(Xn,"-row"),Gr==null?void 0:Gr.className,(0,Pe.Z)({},"".concat(Xn,"-row-extra"),sn)),style:(0,Oe.Z)((0,Oe.Z)({},qr),Gr==null?void 0:Gr.style)}),ar.map(function(Ei,Pi){return te.createElement(ei,{key:Pi,component:Mr,rowInfo:Ar,column:Ei,colIndex:Pi,indent:kn,index:Bt,renderIndex:jn,record:Hn,inverse:sn,getHeight:vn})}));return vi?te.createElement("div",{ref:pt},Dr,$r):Dr}),Kr=ge(wi),gi=Kr,di=te.forwardRef(function(ht,pt){var It=ht.data,Bt=ht.onScroll,Jt=ee(De,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),tn=Jt.flattenColumns,dn=Jt.onColumnResize,sn=Jt.getRowKey,vn=Jt.expandedKeys,fn=Jt.prefixCls,Hn=Jt.childrenColumnName,kn=Jt.scrollX,jn=Jt.direction,Sn=ee(Hr),wn=Sn.sticky,ar=Sn.scrollY,Xn=Sn.listItemHeight,dr=Sn.getComponent,mr=Sn.onScroll,fr=te.useRef(),xr=At(It,Hn,vn,sn),Ar=te.useMemo(function(){var $r=0;return tn.map(function(Ir){var vr=Ir.width,Lr=Ir.key;return $r+=vr,[Lr,vr,$r]})},[tn]),_r=te.useMemo(function(){return Ar.map(function($r){return $r[2]})},[Ar]);te.useEffect(function(){Ar.forEach(function($r){var Ir=(0,je.Z)($r,2),vr=Ir[0],Lr=Ir[1];dn(vr,Lr)})},[Ar]),te.useImperativeHandle(pt,function(){var $r,Ir={scrollTo:function(Lr){var zr;(zr=fr.current)===null||zr===void 0||zr.scrollTo(Lr)},nativeElement:($r=fr.current)===null||$r===void 0?void 0:$r.nativeElement};return Object.defineProperty(Ir,"scrollLeft",{get:function(){var Lr;return((Lr=fr.current)===null||Lr===void 0?void 0:Lr.getScrollInfo().x)||0},set:function(Lr){var zr;(zr=fr.current)===null||zr===void 0||zr.scrollTo({left:Lr})}}),Ir});var Mr=function(Ir,vr){var Lr,zr=(Lr=xr[vr])===null||Lr===void 0?void 0:Lr.record,qr=Ir.onCell;if(qr){var Dr,Ei=qr(zr,vr);return(Dr=Ei==null?void 0:Ei.rowSpan)!==null&&Dr!==void 0?Dr:1}return 1},vi=function(Ir){var vr=Ir.start,Lr=Ir.end,zr=Ir.getSize,qr=Ir.offsetY;if(Lr<0)return null;for(var Dr=tn.filter(function(Xr){return Mr(Xr,vr)===0}),Ei=vr,Pi=function(pi){if(Dr=Dr.filter(function(Wr){return Mr(Wr,pi)===0}),!Dr.length)return Ei=pi,1},yo=vr;yo>=0&&!Pi(yo);yo-=1);for(var fo=tn.filter(function(Xr){return Mr(Xr,Lr)!==1}),ro=Lr,po=function(pi){if(fo=fo.filter(function(Wr){return Mr(Wr,pi)!==1}),!fo.length)return ro=Math.max(pi-1,Lr),1},So=Lr;So<xr.length&&!po(So);So+=1);for(var ji=[],Di=function(pi){var Wr=xr[pi];if(!Wr)return 1;tn.some(function(Br){return Mr(Br,pi)>1})&&ji.push(pi)},Co=Ei;Co<=ro;Co+=1)Di(Co);var No=ji.map(function(Xr){var pi=xr[Xr],Wr=sn(pi.record,Xr),Br=function(uo){var to=Xr+uo-1,Eo=sn(xr[to].record,to),Bo=zr(Wr,Eo);return Bo.bottom-Bo.top},Bi=zr(Wr);return te.createElement(gi,{key:Xr,data:pi,rowKey:Wr,index:Xr,style:{top:-qr+Bi.top},extra:!0,getHeight:Br})});return No},Qr=te.useMemo(function(){return{columnsOffset:_r}},[_r]),Gr="".concat(fn,"-tbody"),ai=dr(["body","wrapper"]),Fr={};return wn&&(Fr.position="sticky",Fr.bottom=0,(0,Ee.Z)(wn)==="object"&&wn.offsetScroll&&(Fr.bottom=wn.offsetScroll)),te.createElement(kr.Provider,{value:Qr},te.createElement(Er.Z,{fullHeight:!1,ref:fr,prefixCls:"".concat(Gr,"-virtual"),styles:{horizontalScrollBar:Fr},className:Gr,height:ar,itemHeight:Xn||24,data:xr,itemKey:function(Ir){return sn(Ir.record)},component:ai,scrollWidth:kn,direction:jn,onVirtualScroll:function(Ir){var vr,Lr=Ir.x;Bt({currentTarget:(vr=fr.current)===null||vr===void 0?void 0:vr.nativeElement,scrollLeft:Lr})},onScroll:mr,extraRender:vi},function($r,Ir,vr){var Lr=sn($r.record,Ir);return te.createElement(gi,{data:$r,rowKey:Lr,index:Ir,style:vr.style})}))}),bi=ge(di),Or=bi,Pr=function(pt,It){var Bt=It.ref,Jt=It.onScroll;return te.createElement(Or,{ref:Bt,data:pt,onScroll:Jt})};function ur(ht,pt){var It=ht.data,Bt=ht.columns,Jt=ht.scroll,tn=ht.sticky,dn=ht.prefixCls,sn=dn===void 0?wr:dn,vn=ht.className,fn=ht.listItemHeight,Hn=ht.components,kn=ht.onScroll,jn=Jt||{},Sn=jn.x,wn=jn.y;typeof Sn!="number"&&(Sn=1),typeof wn!="number"&&(wn=500);var ar=(0,Qe.zX)(function(mr,fr){return(0,Ve.Z)(Hn,mr)||fr}),Xn=(0,Qe.zX)(kn),dr=te.useMemo(function(){return{sticky:tn,scrollY:wn,listItemHeight:fn,getComponent:ar,onScroll:Xn}},[tn,wn,fn,ar,Xn]);return te.createElement(Hr.Provider,{value:dr},te.createElement(br,(0,ce.Z)({},ht,{className:Ne()(vn,"".concat(sn,"-virtual")),scroll:(0,Oe.Z)((0,Oe.Z)({},Jt),{},{x:Sn}),components:(0,Oe.Z)((0,Oe.Z)({},Hn),{},{body:It!=null&&It.length?Pr:void 0}),columns:Bt,internalHooks:y,tailor:!0,ref:pt})))}var Dn=te.forwardRef(ur);function Un(ht){return ye(Dn,ht)}var Vn=Un(),$n=null,jr=ht=>null,zn=ht=>null,qn=Te(84105),or=Te(82661),ti=Te(34643),Ti=Te(34061),mi=Te(18929);function ki(ht){const[pt,It]=(0,te.useState)(null);return[(0,te.useCallback)((tn,dn,sn)=>{const vn=pt!=null?pt:tn,fn=Math.min(vn||0,tn),Hn=Math.max(vn||0,tn),kn=dn.slice(fn,Hn+1).map(wn=>ht(wn)),jn=kn.some(wn=>!sn.has(wn)),Sn=[];return kn.forEach(wn=>{jn?(sn.has(wn)||Sn.push(wn),sn.add(wn)):(sn.delete(wn),Sn.push(wn))}),It(jn?Hn:null),Sn},[pt]),tn=>{It(tn)}]}var Oi=Te(32383),Ii=Te(62673),_i=Te(75727),Ni=Te(47889);const Ri={},so="SELECT_ALL",xo="SELECT_INVERT",Po="SELECT_NONE",jo=[],wo=(ht,pt)=>{let It=[];return(pt||[]).forEach(Bt=>{It.push(Bt),Bt&&typeof Bt=="object"&&ht in Bt&&(It=[].concat((0,pn.Z)(It),(0,pn.Z)(wo(ht,Bt[ht]))))}),It};var Vr=(ht,pt)=>{const{preserveSelectedRowKeys:It,selectedRowKeys:Bt,defaultSelectedRowKeys:Jt,getCheckboxProps:tn,onChange:dn,onSelect:sn,onSelectAll:vn,onSelectInvert:fn,onSelectNone:Hn,onSelectMultiple:kn,columnWidth:jn,type:Sn,selections:wn,fixed:ar,renderCell:Xn,hideSelectAll:dr,checkStrictly:mr=!0}=pt||{},{prefixCls:fr,data:xr,pageData:Ar,getRecordByKey:_r,getRowKey:Mr,expandType:vi,childrenColumnName:Qr,locale:Gr,getPopupContainer:ai}=ht,Fr=(0,Oi.ln)("Table"),[$r,Ir]=ki(Xr=>Xr),[vr,Lr]=(0,mi.Z)(Bt||Jt||jo,{value:Bt}),zr=te.useRef(new Map),qr=(0,te.useCallback)(Xr=>{if(It){const pi=new Map;Xr.forEach(Wr=>{let Br=_r(Wr);!Br&&zr.current.has(Wr)&&(Br=zr.current.get(Wr)),pi.set(Wr,Br)}),zr.current=pi}},[_r,It]);te.useEffect(()=>{qr(vr)},[vr]);const Dr=(0,te.useMemo)(()=>wo(Qr,Ar),[Qr,Ar]),{keyEntities:Ei}=(0,te.useMemo)(()=>{if(mr)return{keyEntities:null};let Xr=xr;if(It){const pi=new Set(Dr.map((Br,Bi)=>Mr(Br,Bi))),Wr=Array.from(zr.current).reduce((Br,Bi)=>{let[Ki,uo]=Bi;return pi.has(Ki)?Br:Br.concat(uo)},[]);Xr=[].concat((0,pn.Z)(Xr),(0,pn.Z)(Wr))}return(0,Ti.I8)(Xr,{externalGetKey:Mr,childrenPropName:Qr})},[xr,Mr,mr,Qr,It,Dr]),Pi=(0,te.useMemo)(()=>{const Xr=new Map;return Dr.forEach((pi,Wr)=>{const Br=Mr(pi,Wr),Bi=(tn?tn(pi):null)||{};Xr.set(Br,Bi)}),Xr},[Dr,Mr,tn]),yo=(0,te.useCallback)(Xr=>{const pi=Mr(Xr);let Wr;return Pi.has(pi)?Wr=Pi.get(Mr(Xr)):Wr=tn?tn(Xr):void 0,!!(Wr!=null&&Wr.disabled)},[Pi,Mr]),[fo,ro]=(0,te.useMemo)(()=>{if(mr)return[vr||[],[]];const{checkedKeys:Xr,halfCheckedKeys:pi}=(0,ti.S)(vr,!0,Ei,yo);return[Xr||[],pi]},[vr,mr,Ei,yo]),po=(0,te.useMemo)(()=>{const Xr=Sn==="radio"?fo.slice(0,1):fo;return new Set(Xr)},[fo,Sn]),So=(0,te.useMemo)(()=>Sn==="radio"?new Set:new Set(ro),[ro,Sn]);te.useEffect(()=>{pt||Lr(jo)},[!!pt]);const ji=(0,te.useCallback)((Xr,pi)=>{let Wr,Br;qr(Xr),It?(Wr=Xr,Br=Xr.map(Bi=>zr.current.get(Bi))):(Wr=[],Br=[],Xr.forEach(Bi=>{const Ki=_r(Bi);Ki!==void 0&&(Wr.push(Bi),Br.push(Ki))})),Lr(Wr),dn==null||dn(Wr,Br,{type:pi})},[Lr,_r,dn,It]),Di=(0,te.useCallback)((Xr,pi,Wr,Br)=>{if(sn){const Bi=Wr.map(Ki=>_r(Ki));sn(_r(Xr),pi,Bi,Br)}ji(Wr,"single")},[sn,_r,ji]),Co=(0,te.useMemo)(()=>!wn||dr?null:(wn===!0?[so,xo,Po]:wn).map(pi=>pi===so?{key:"all",text:Gr.selectionAll,onSelect(){ji(xr.map((Wr,Br)=>Mr(Wr,Br)).filter(Wr=>{const Br=Pi.get(Wr);return!(Br!=null&&Br.disabled)||po.has(Wr)}),"all")}}:pi===xo?{key:"invert",text:Gr.selectInvert,onSelect(){const Wr=new Set(po);Ar.forEach((Bi,Ki)=>{const uo=Mr(Bi,Ki),to=Pi.get(uo);to!=null&&to.disabled||(Wr.has(uo)?Wr.delete(uo):Wr.add(uo))});const Br=Array.from(Wr);fn&&(Fr.deprecated(!1,"onSelectInvert","onChange"),fn(Br)),ji(Br,"invert")}}:pi===Po?{key:"none",text:Gr.selectNone,onSelect(){Hn==null||Hn(),ji(Array.from(po).filter(Wr=>{const Br=Pi.get(Wr);return Br==null?void 0:Br.disabled}),"none")}}:pi).map(pi=>Object.assign(Object.assign({},pi),{onSelect:function(){for(var Wr,Br,Bi=arguments.length,Ki=new Array(Bi),uo=0;uo<Bi;uo++)Ki[uo]=arguments[uo];(Br=pi.onSelect)===null||Br===void 0||(Wr=Br).call.apply(Wr,[pi].concat(Ki)),Ir(null)}})),[wn,po,Ar,Mr,fn,ji]);return[(0,te.useCallback)(Xr=>{var pi;if(!pt)return Xr.filter($i=>$i!==Ri);let Wr=(0,pn.Z)(Xr);const Br=new Set(po),Bi=Dr.map(Mr).filter($i=>!Pi.get($i).disabled),Ki=Bi.every($i=>Br.has($i)),uo=Bi.some($i=>Br.has($i)),to=()=>{const $i=[];Ki?Bi.forEach(io=>{Br.delete(io),$i.push(io)}):Bi.forEach(io=>{Br.has(io)||(Br.add(io),$i.push(io))});const no=Array.from(Br);vn==null||vn(!Ki,no.map(io=>_r(io)),$i.map(io=>_r(io))),ji(no,"all"),Ir(null)};let Eo,Bo;if(Sn!=="radio"){let $i;if(Co){const zi={getPopupContainer:ai,items:Co.map((mo,Xi)=>{const{key:Qo,text:Ro,onSelect:ca}=mo;return{key:Qo!=null?Qo:Xi,onClick:()=>{ca==null||ca(Bi)},label:Ro}})};$i=te.createElement("div",{className:`${fr}-selection-extra`},te.createElement(_i.Z,{menu:zi,getPopupContainer:ai},te.createElement("span",null,te.createElement(qn.Z,null))))}const no=Dr.map((zi,mo)=>{const Xi=Mr(zi,mo),Qo=Pi.get(Xi)||{};return Object.assign({checked:Br.has(Xi)},Qo)}).filter(zi=>{let{disabled:mo}=zi;return mo}),io=!!no.length&&no.length===Dr.length,Lo=io&&no.every(zi=>{let{checked:mo}=zi;return mo}),bo=io&&no.some(zi=>{let{checked:mo}=zi;return mo});Bo=te.createElement(Ii.default,{checked:io?Lo:!!Dr.length&&Ki,indeterminate:io?!Lo&&bo:!Ki&&uo,onChange:to,disabled:Dr.length===0||io,"aria-label":$i?"Custom selection":"Select all",skipGroup:!0}),Eo=!dr&&te.createElement("div",{className:`${fr}-selection`},Bo,$i)}let Jr;Sn==="radio"?Jr=($i,no,io)=>{const Lo=Mr(no,io),bo=Br.has(Lo),zi=Pi.get(Lo);return{node:te.createElement(Ni.ZP,Object.assign({},zi,{checked:bo,onClick:mo=>{var Xi;mo.stopPropagation(),(Xi=zi==null?void 0:zi.onClick)===null||Xi===void 0||Xi.call(zi,mo)},onChange:mo=>{var Xi;Br.has(Lo)||Di(Lo,!0,[Lo],mo.nativeEvent),(Xi=zi==null?void 0:zi.onChange)===null||Xi===void 0||Xi.call(zi,mo)}})),checked:bo}}:Jr=($i,no,io)=>{var Lo;const bo=Mr(no,io),zi=Br.has(bo),mo=So.has(bo),Xi=Pi.get(bo);let Qo;return vi==="nest"?Qo=mo:Qo=(Lo=Xi==null?void 0:Xi.indeterminate)!==null&&Lo!==void 0?Lo:mo,{node:te.createElement(Ii.default,Object.assign({},Xi,{indeterminate:Qo,checked:zi,skipGroup:!0,onClick:Ro=>{var ca;Ro.stopPropagation(),(ca=Xi==null?void 0:Xi.onClick)===null||ca===void 0||ca.call(Xi,Ro)},onChange:Ro=>{var ca;const{nativeEvent:ga}=Ro,{shiftKey:Ga}=ga,oo=Bi.findIndex(da=>da===bo),Zs=fo.some(da=>Bi.includes(da));if(Ga&&mr&&Zs){const da=$r(oo,Bi,Br),Na=Array.from(Br);kn==null||kn(!zi,Na.map(Ca=>_r(Ca)),da.map(Ca=>_r(Ca))),ji(Na,"multiple")}else{const da=fo;if(mr){const Na=zi?(0,or._5)(da,bo):(0,or.L0)(da,bo);Di(bo,!zi,Na,ga)}else{const Na=(0,ti.S)([].concat((0,pn.Z)(da),[bo]),!0,Ei,yo),{checkedKeys:Ca,halfCheckedKeys:ya}=Na;let ao=Ca;if(zi){const Ea=new Set(Ca);Ea.delete(bo),ao=(0,ti.S)(Array.from(Ea),{checked:!1,halfCheckedKeys:ya},Ei,yo).checkedKeys}Di(bo,!zi,ao,ga)}}Ir(zi?null:oo),(ca=Xi==null?void 0:Xi.onChange)===null||ca===void 0||ca.call(Xi,Ro)}})),checked:zi}};const ri=($i,no,io)=>{const{node:Lo,checked:bo}=Jr($i,no,io);return Xn?Xn(bo,no,io,Lo):Lo};if(!Wr.includes(Ri))if(Wr.findIndex($i=>{var no;return((no=$i[Cn])===null||no===void 0?void 0:no.columnType)==="EXPAND_COLUMN"})===0){const[$i,...no]=Wr;Wr=[$i,Ri].concat((0,pn.Z)(no))}else Wr=[Ri].concat((0,pn.Z)(Wr));const Vi=Wr.indexOf(Ri);Wr=Wr.filter(($i,no)=>$i!==Ri||no===Vi);const eo=Wr[Vi-1],Ji=Wr[Vi+1];let $o=ar;$o===void 0&&((Ji==null?void 0:Ji.fixed)!==void 0?$o=Ji.fixed:(eo==null?void 0:eo.fixed)!==void 0&&($o=eo.fixed)),$o&&eo&&((pi=eo[Cn])===null||pi===void 0?void 0:pi.columnType)==="EXPAND_COLUMN"&&eo.fixed===void 0&&(eo.fixed=$o);const To=Ne()(`${fr}-selection-col`,{[`${fr}-selection-col-with-dropdown`]:wn&&Sn==="checkbox"}),va=()=>pt!=null&&pt.columnTitle?typeof pt.columnTitle=="function"?pt.columnTitle(Bo):pt.columnTitle:Eo,ho={fixed:$o,width:jn,className:`${fr}-selection-column`,title:va(),render:ri,onCell:pt.onCell,[Cn]:{className:To}};return Wr.map($i=>$i===Ri?ho:$i)},[Mr,Dr,pt,fo,po,So,jn,Co,vi,Pi,kn,Di,yo]),po]},Qi=Te(2738);function qi(ht,pt){return ht._antProxy=ht._antProxy||{},Object.keys(pt).forEach(It=>{if(!(It in ht._antProxy)){const Bt=ht[It];ht._antProxy[It]=Bt,ht[It]=pt[It]}}),ht}function li(ht,pt){return(0,te.useImperativeHandle)(ht,()=>{const It=pt(),{nativeElement:Bt}=It;return typeof Proxy!="undefined"?new Proxy(Bt,{get(Jt,tn){return It[tn]?It[tn]:Reflect.get(Jt,tn)}}):qi(Bt,It)})}var Zi=Te(83010),Yi=Te(48755),yi=Te(38406),Fi=Te(83397),Ai=Te(31756),Fo=Te(13783),pa=Te(85981),Zo=Te(31709),Do=Te(29787),cs=Te(57700);function es(ht){return pt=>{const{prefixCls:It,onExpand:Bt,record:Jt,expanded:tn,expandable:dn}=pt,sn=`${It}-row-expand-icon`;return te.createElement("button",{type:"button",onClick:vn=>{Bt(Jt,vn),vn.stopPropagation()},className:Ne()(sn,{[`${sn}-spaced`]:!dn,[`${sn}-expanded`]:dn&&tn,[`${sn}-collapsed`]:dn&&!tn}),"aria-label":tn?ht.collapse:ht.expand,"aria-expanded":tn})}}var ci=es;function Si(ht){return(It,Bt)=>{const Jt=It.querySelector(`.${ht}-container`);let tn=Bt;if(Jt){const dn=getComputedStyle(Jt),sn=parseInt(dn.borderLeftWidth,10),vn=parseInt(dn.borderRightWidth,10);tn=Bt-sn-vn}return tn}}const ii=(ht,pt)=>"key"in ht&&ht.key!==void 0&&ht.key!==null?ht.key:ht.dataIndex?Array.isArray(ht.dataIndex)?ht.dataIndex.join("."):ht.dataIndex:pt;function fi(ht,pt){return pt?`${pt}-${ht}`:`${ht}`}const Ui=(ht,pt)=>typeof ht=="function"?ht(pt):ht,lo=(ht,pt)=>{const It=Ui(ht,pt);return Object.prototype.toString.call(It)==="[object Object]"?"":It};var Ma={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},oa=Ma,Yo=Te(7657),Ao=function(pt,It){return te.createElement(Yo.Z,(0,ce.Z)({},pt,{ref:It,icon:oa}))},ja=te.forwardRef(Ao),Fa=ja,ha=Te(9981),$a=Te(40192);function Ya(ht){const pt=te.useRef(ht),It=(0,$a.Z)();return[()=>pt.current,Bt=>{pt.current=Bt,It()}]}var Da=Te(7939),ds=Te(584),vl=Te(93041),Js=Te(78857),za=Te(18287),ts=Te(47472),Aa=Te(49397),Ns=ht=>{const{value:pt,filterSearch:It,tablePrefixCls:Bt,locale:Jt,onChange:tn}=ht;return It?te.createElement("div",{className:`${Bt}-filter-dropdown-search`},te.createElement(Aa.Z,{prefix:te.createElement(ts.Z,null),placeholder:Jt.filterSearchPlaceholder,onChange:tn,value:pt,htmlSize:1,className:`${Bt}-filter-dropdown-search-input`})):null},Qs=Te(10228);const el=ht=>{const{keyCode:pt}=ht;pt===Qs.Z.ENTER&&ht.stopPropagation()};var Rs=te.forwardRef((ht,pt)=>te.createElement("div",{className:ht.className,onClick:It=>It.stopPropagation(),onKeyDown:el,ref:pt},ht.children));function Ha(ht){let pt=[];return(ht||[]).forEach(It=>{let{value:Bt,children:Jt}=It;pt.push(Bt),Jt&&(pt=[].concat((0,pn.Z)(pt),(0,pn.Z)(Ha(Jt))))}),pt}function fs(ht){return ht.some(pt=>{let{children:It}=pt;return It})}function xs(ht,pt){return typeof pt=="string"||typeof pt=="number"?pt==null?void 0:pt.toString().toLowerCase().includes(ht.trim().toLowerCase()):!1}function Ms(ht){let{filters:pt,prefixCls:It,filteredKeys:Bt,filterMultiple:Jt,searchValue:tn,filterSearch:dn}=ht;return pt.map((sn,vn)=>{const fn=String(sn.value);if(sn.children)return{key:fn||vn,label:sn.text,popupClassName:`${It}-dropdown-submenu`,children:Ms({filters:sn.children,prefixCls:It,filteredKeys:Bt,filterMultiple:Jt,searchValue:tn,filterSearch:dn})};const Hn=Jt?Ii.default:Ni.ZP,kn={key:sn.value!==void 0?fn:vn,label:te.createElement(te.Fragment,null,te.createElement(Hn,{checked:Bt.includes(fn)}),te.createElement("span",null,sn.text))};return tn.trim()?typeof dn=="function"?dn(tn,sn)?kn:null:xs(tn,sn.text)?kn:null:kn})}function ps(ht){return ht||[]}var tl=ht=>{var pt,It,Bt,Jt;const{tablePrefixCls:tn,prefixCls:dn,column:sn,dropdownPrefixCls:vn,columnKey:fn,filterOnClose:Hn,filterMultiple:kn,filterMode:jn="menu",filterSearch:Sn=!1,filterState:wn,triggerFilter:ar,locale:Xn,children:dr,getPopupContainer:mr,rootClassName:fr}=ht,{filterResetToDefaultFilteredValue:xr,defaultFilteredValue:Ar,filterDropdownProps:_r={},filterDropdownOpen:Mr,filterDropdownVisible:vi,onFilterDropdownVisibleChange:Qr,onFilterDropdownOpenChange:Gr}=sn,[ai,Fr]=te.useState(!1),$r=!!(wn&&(!((pt=wn.filteredKeys)===null||pt===void 0)&&pt.length||wn.forceFiltered)),Ir=Jr=>{var ri;Fr(Jr),(ri=_r.onOpenChange)===null||ri===void 0||ri.call(_r,Jr),Gr==null||Gr(Jr),Qr==null||Qr(Jr)},vr=(Jt=(Bt=(It=_r.open)!==null&&It!==void 0?It:Mr)!==null&&Bt!==void 0?Bt:vi)!==null&&Jt!==void 0?Jt:ai,Lr=wn==null?void 0:wn.filteredKeys,[zr,qr]=Ya(ps(Lr)),Dr=Jr=>{let{selectedKeys:ri}=Jr;qr(ri)},Ei=(Jr,ri)=>{let{node:Vi,checked:eo}=ri;Dr(kn?{selectedKeys:Jr}:{selectedKeys:eo&&Vi.key?[Vi.key]:[]})};te.useEffect(()=>{ai&&Dr({selectedKeys:ps(Lr)})},[Lr]);const[Pi,yo]=te.useState([]),fo=Jr=>{yo(Jr)},[ro,po]=te.useState(""),So=Jr=>{const{value:ri}=Jr.target;po(ri)};te.useEffect(()=>{ai||po("")},[ai]);const ji=Jr=>{const ri=Jr!=null&&Jr.length?Jr:null;if(ri===null&&(!wn||!wn.filteredKeys)||(0,E.Z)(ri,wn==null?void 0:wn.filteredKeys,!0))return null;ar({column:sn,key:fn,filteredKeys:ri})},Di=()=>{Ir(!1),ji(zr())},Co=function(){let{confirm:Jr,closeDropdown:ri}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Jr&&ji([]),ri&&Ir(!1),po(""),qr(xr?(Ar||[]).map(Vi=>String(Vi)):[])},No=function(){let{closeDropdown:Jr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Jr&&Ir(!1),ji(zr())},Xr=(Jr,ri)=>{ri.source==="trigger"&&(Jr&&Lr!==void 0&&qr(ps(Lr)),Ir(Jr),!Jr&&!sn.filterDropdown&&Hn&&Di())},pi=Ne()({[`${vn}-menu-without-submenu`]:!fs(sn.filters||[])}),Wr=Jr=>{if(Jr.target.checked){const ri=Ha(sn==null?void 0:sn.filters).map(Vi=>String(Vi));qr(ri)}else qr([])},Br=Jr=>{let{filters:ri}=Jr;return(ri||[]).map((Vi,eo)=>{const Ji=String(Vi.value),$o={title:Vi.text,key:Vi.value!==void 0?Ji:String(eo)};return Vi.children&&($o.children=Br({filters:Vi.children})),$o})},Bi=Jr=>{var ri;return Object.assign(Object.assign({},Jr),{text:Jr.title,value:Jr.key,children:((ri=Jr.children)===null||ri===void 0?void 0:ri.map(Vi=>Bi(Vi)))||[]})};let Ki;const{direction:uo,renderEmpty:to}=te.useContext(Yi.E_);if(typeof sn.filterDropdown=="function")Ki=sn.filterDropdown({prefixCls:`${vn}-custom`,setSelectedKeys:Jr=>Dr({selectedKeys:Jr}),selectedKeys:zr(),confirm:No,clearFilters:Co,filters:sn.filters,visible:vr,close:()=>{Ir(!1)}});else if(sn.filterDropdown)Ki=sn.filterDropdown;else{const Jr=zr()||[],ri=()=>{var eo,Ji;const $o=(eo=to==null?void 0:to("Table.filter"))!==null&&eo!==void 0?eo:te.createElement(ds.Z,{image:ds.Z.PRESENTED_IMAGE_SIMPLE,description:Xn.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((sn.filters||[]).length===0)return $o;if(jn==="tree")return te.createElement(te.Fragment,null,te.createElement(Ns,{filterSearch:Sn,value:ro,onChange:So,tablePrefixCls:tn,locale:Xn}),te.createElement("div",{className:`${tn}-filter-dropdown-tree`},kn?te.createElement(Ii.default,{checked:Jr.length===Ha(sn.filters).length,indeterminate:Jr.length>0&&Jr.length<Ha(sn.filters).length,className:`${tn}-filter-dropdown-checkall`,onChange:Wr},(Ji=Xn==null?void 0:Xn.filterCheckall)!==null&&Ji!==void 0?Ji:Xn==null?void 0:Xn.filterCheckAll):null,te.createElement(za.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:kn,checkStrictly:!kn,className:`${vn}-menu`,onCheck:Ei,checkedKeys:Jr,selectedKeys:Jr,showIcon:!1,treeData:Br({filters:sn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:ro.trim()?ho=>typeof Sn=="function"?Sn(ro,Bi(ho)):xs(ro,ho.title):void 0})));const To=Ms({filters:sn.filters||[],filterSearch:Sn,prefixCls:dn,filteredKeys:zr(),filterMultiple:kn,searchValue:ro}),va=To.every(ho=>ho===null);return te.createElement(te.Fragment,null,te.createElement(Ns,{filterSearch:Sn,value:ro,onChange:So,tablePrefixCls:tn,locale:Xn}),va?$o:te.createElement(vl.default,{selectable:!0,multiple:kn,prefixCls:`${vn}-menu`,className:pi,onSelect:Dr,onDeselect:Dr,selectedKeys:Jr,getPopupContainer:mr,openKeys:Pi,onOpenChange:fo,items:To}))},Vi=()=>xr?(0,E.Z)((Ar||[]).map(eo=>String(eo)),Jr,!0):Jr.length===0;Ki=te.createElement(te.Fragment,null,ri(),te.createElement("div",{className:`${dn}-dropdown-btns`},te.createElement(Da.ZP,{type:"link",size:"small",disabled:Vi(),onClick:()=>Co()},Xn.filterReset),te.createElement(Da.ZP,{type:"primary",size:"small",onClick:Di},Xn.filterConfirm)))}sn.filterDropdown&&(Ki=te.createElement(Js.J,{selectable:void 0},Ki)),Ki=te.createElement(Rs,{className:`${dn}-dropdown`},Ki);const Eo=()=>{let Jr;return typeof sn.filterIcon=="function"?Jr=sn.filterIcon($r):sn.filterIcon?Jr=sn.filterIcon:Jr=te.createElement(Fa,null),te.createElement("span",{role:"button",tabIndex:-1,className:Ne()(`${dn}-trigger`,{active:$r}),onClick:ri=>{ri.stopPropagation()}},Jr)},Bo=(0,ha.Z)({trigger:["click"],placement:uo==="rtl"?"bottomLeft":"bottomRight",children:Eo(),getPopupContainer:mr},Object.assign(Object.assign({},_r),{rootClassName:Ne()(fr,_r.rootClassName),open:vr,onOpenChange:Xr,dropdownRender:()=>typeof(_r==null?void 0:_r.dropdownRender)=="function"?_r.dropdownRender(Ki):Ki}));return te.createElement("div",{className:`${dn}-column`},te.createElement("span",{className:`${tn}-column-title`},dr),te.createElement(_i.Z,Object.assign({},Bo)))};const ns=(ht,pt,It)=>{let Bt=[];return(ht||[]).forEach((Jt,tn)=>{var dn;const sn=fi(tn,It);if(Jt.filters||"filterDropdown"in Jt||"onFilter"in Jt)if("filteredValue"in Jt){let vn=Jt.filteredValue;"filterDropdown"in Jt||(vn=(dn=vn==null?void 0:vn.map(String))!==null&&dn!==void 0?dn:vn),Bt.push({column:Jt,key:ii(Jt,sn),filteredKeys:vn,forceFiltered:Jt.filtered})}else Bt.push({column:Jt,key:ii(Jt,sn),filteredKeys:pt&&Jt.defaultFilteredValue?Jt.defaultFilteredValue:void 0,forceFiltered:Jt.filtered});"children"in Jt&&(Bt=[].concat((0,pn.Z)(Bt),(0,pn.Z)(ns(Jt.children,pt,sn))))}),Bt};function aa(ht,pt,It,Bt,Jt,tn,dn,sn,vn){return It.map((fn,Hn)=>{const kn=fi(Hn,sn),{filterOnClose:jn=!0,filterMultiple:Sn=!0,filterMode:wn,filterSearch:ar}=fn;let Xn=fn;if(Xn.filters||Xn.filterDropdown){const dr=ii(Xn,kn),mr=Bt.find(fr=>{let{key:xr}=fr;return dr===xr});Xn=Object.assign(Object.assign({},Xn),{title:fr=>te.createElement(tl,{tablePrefixCls:ht,prefixCls:`${ht}-filter`,dropdownPrefixCls:pt,column:Xn,columnKey:dr,filterState:mr,filterOnClose:jn,filterMultiple:Sn,filterMode:wn,filterSearch:ar,triggerFilter:tn,locale:Jt,getPopupContainer:dn,rootClassName:vn},Ui(fn.title,fr))})}return"children"in Xn&&(Xn=Object.assign(Object.assign({},Xn),{children:aa(ht,pt,Xn.children,Bt,Jt,tn,dn,kn,vn)})),Xn})}const Wi=ht=>{const pt={};return ht.forEach(It=>{let{key:Bt,filteredKeys:Jt,column:tn}=It;const dn=Bt,{filters:sn,filterDropdown:vn}=tn;if(vn)pt[dn]=Jt||null;else if(Array.isArray(Jt)){const fn=Ha(sn);pt[dn]=fn.filter(Hn=>Jt.includes(String(Hn)))}else pt[dn]=null}),pt},Ci=(ht,pt,It)=>pt.reduce((Jt,tn)=>{const{column:{onFilter:dn,filters:sn},filteredKeys:vn}=tn;return dn&&vn&&vn.length?Jt.map(fn=>Object.assign({},fn)).filter(fn=>vn.some(Hn=>{const kn=Ha(sn),jn=kn.findIndex(wn=>String(wn)===String(Hn)),Sn=jn!==-1?kn[jn]:Hn;return fn[It]&&(fn[It]=Ci(fn[It],pt,It)),dn(Sn,fn)})):Jt},ht),Wo=ht=>ht.flatMap(pt=>"children"in pt?[pt].concat((0,pn.Z)(Wo(pt.children||[]))):[pt]);var ko=ht=>{const{prefixCls:pt,dropdownPrefixCls:It,mergedColumns:Bt,onFilterChange:Jt,getPopupContainer:tn,locale:dn,rootClassName:sn}=ht,vn=(0,Oi.ln)("Table"),fn=te.useMemo(()=>Wo(Bt||[]),[Bt]),[Hn,kn]=te.useState(()=>ns(fn,!0)),jn=te.useMemo(()=>{const Xn=ns(fn,!1);if(Xn.length===0)return Xn;let dr=!0,mr=!0;if(Xn.forEach(fr=>{let{filteredKeys:xr}=fr;xr!==void 0?dr=!1:mr=!1}),dr){const fr=(fn||[]).map((xr,Ar)=>ii(xr,fi(Ar)));return Hn.filter(xr=>{let{key:Ar}=xr;return fr.includes(Ar)}).map(xr=>{const Ar=fn[fr.findIndex(_r=>_r===xr.key)];return Object.assign(Object.assign({},xr),{column:Object.assign(Object.assign({},xr.column),Ar),forceFiltered:Ar.filtered})})}return Xn},[fn,Hn]),Sn=te.useMemo(()=>Wi(jn),[jn]),wn=Xn=>{const dr=jn.filter(mr=>{let{key:fr}=mr;return fr!==Xn.key});dr.push(Xn),kn(dr),Jt(Wi(dr),dr)};return[Xn=>aa(pt,It,Xn,jn,dn,wn,tn,void 0,sn),jn,Sn]},Ba=(ht,pt,It)=>{const Bt=te.useRef({});function Jt(tn){var dn;if(!Bt.current||Bt.current.data!==ht||Bt.current.childrenColumnName!==pt||Bt.current.getRowKey!==It){let vn=function(fn){fn.forEach((Hn,kn)=>{const jn=It(Hn,kn);sn.set(jn,Hn),Hn&&typeof Hn=="object"&&pt in Hn&&vn(Hn[pt]||[])})};const sn=new Map;vn(ht),Bt.current={data:ht,childrenColumnName:pt,kvMap:sn,getRowKey:It}}return(dn=Bt.current.kvMap)===null||dn===void 0?void 0:dn.get(tn)}return[Jt]},ka=function(ht,pt){var It={};for(var Bt in ht)Object.prototype.hasOwnProperty.call(ht,Bt)&&pt.indexOf(Bt)<0&&(It[Bt]=ht[Bt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,Bt=Object.getOwnPropertySymbols(ht);Jt<Bt.length;Jt++)pt.indexOf(Bt[Jt])<0&&Object.prototype.propertyIsEnumerable.call(ht,Bt[Jt])&&(It[Bt[Jt]]=ht[Bt[Jt]]);return It};const Za=10;function xa(ht,pt){const It={current:ht.current,pageSize:ht.pageSize};return Object.keys(pt&&typeof pt=="object"?pt:{}).forEach(Jt=>{const tn=ht[Jt];typeof tn!="function"&&(It[Jt]=tn)}),It}function wa(ht,pt,It){const Bt=It&&typeof It=="object"?It:{},{total:Jt=0}=Bt,tn=ka(Bt,["total"]),[dn,sn]=(0,te.useState)(()=>({current:"defaultCurrent"in tn?tn.defaultCurrent:1,pageSize:"defaultPageSize"in tn?tn.defaultPageSize:Za})),vn=(0,ha.Z)(dn,tn,{total:Jt>0?Jt:ht}),fn=Math.ceil((Jt||ht)/vn.pageSize);vn.current>fn&&(vn.current=fn||1);const Hn=(jn,Sn)=>{sn({current:jn!=null?jn:1,pageSize:Sn||vn.pageSize})},kn=(jn,Sn)=>{var wn;It&&((wn=It.onChange)===null||wn===void 0||wn.call(It,jn,Sn)),Hn(jn,Sn),pt(jn,Sn||(vn==null?void 0:vn.pageSize))};return It===!1?[{},()=>{}]:[Object.assign(Object.assign({},vn),{onChange:kn}),Hn]}var La=wa,rs=Te(89489),yl=Te(59477),bl=Te(25399);const ws="ascend",Ja="descend",Wa=ht=>typeof ht.sorter=="object"&&typeof ht.sorter.multiple=="number"?ht.sorter.multiple:!1,la=ht=>typeof ht=="function"?ht:ht&&typeof ht=="object"&&ht.compare?ht.compare:!1,is=(ht,pt)=>pt?ht[ht.indexOf(pt)+1]:ht[0],Ua=(ht,pt,It)=>{let Bt=[];const Jt=(tn,dn)=>{Bt.push({column:tn,key:ii(tn,dn),multiplePriority:Wa(tn),sortOrder:tn.sortOrder})};return(ht||[]).forEach((tn,dn)=>{const sn=fi(dn,It);tn.children?("sortOrder"in tn&&Jt(tn,sn),Bt=[].concat((0,pn.Z)(Bt),(0,pn.Z)(Ua(tn.children,pt,sn)))):tn.sorter&&("sortOrder"in tn?Jt(tn,sn):pt&&tn.defaultSortOrder&&Bt.push({column:tn,key:ii(tn,sn),multiplePriority:Wa(tn),sortOrder:tn.defaultSortOrder}))}),Bt},Ls=(ht,pt,It,Bt,Jt,tn,dn,sn)=>(pt||[]).map((fn,Hn)=>{const kn=fi(Hn,sn);let jn=fn;if(jn.sorter){const Sn=jn.sortDirections||Jt,wn=jn.showSorterTooltip===void 0?dn:jn.showSorterTooltip,ar=ii(jn,kn),Xn=It.find(Qr=>{let{key:Gr}=Qr;return Gr===ar}),dr=Xn?Xn.sortOrder:null,mr=is(Sn,dr);let fr;if(fn.sortIcon)fr=fn.sortIcon({sortOrder:dr});else{const Qr=Sn.includes(ws)&&te.createElement(yl.Z,{className:Ne()(`${ht}-column-sorter-up`,{active:dr===ws})}),Gr=Sn.includes(Ja)&&te.createElement(rs.Z,{className:Ne()(`${ht}-column-sorter-down`,{active:dr===Ja})});fr=te.createElement("span",{className:Ne()(`${ht}-column-sorter`,{[`${ht}-column-sorter-full`]:!!(Qr&&Gr)})},te.createElement("span",{className:`${ht}-column-sorter-inner`,"aria-hidden":"true"},Qr,Gr))}const{cancelSort:xr,triggerAsc:Ar,triggerDesc:_r}=tn||{};let Mr=xr;mr===Ja?Mr=_r:mr===ws&&(Mr=Ar);const vi=typeof wn=="object"?Object.assign({title:Mr},wn):{title:Mr};jn=Object.assign(Object.assign({},jn),{className:Ne()(jn.className,{[`${ht}-column-sort`]:dr}),title:Qr=>{const Gr=`${ht}-column-sorters`,ai=te.createElement("span",{className:`${ht}-column-title`},Ui(fn.title,Qr)),Fr=te.createElement("div",{className:Gr},ai,fr);return wn?typeof wn!="boolean"&&(wn==null?void 0:wn.target)==="sorter-icon"?te.createElement("div",{className:`${Gr} ${ht}-column-sorters-tooltip-target-sorter`},ai,te.createElement(bl.Z,Object.assign({},vi),fr)):te.createElement(bl.Z,Object.assign({},vi),Fr):Fr},onHeaderCell:Qr=>{var Gr;const ai=((Gr=fn.onHeaderCell)===null||Gr===void 0?void 0:Gr.call(fn,Qr))||{},Fr=ai.onClick,$r=ai.onKeyDown;ai.onClick=Lr=>{Bt({column:fn,key:ar,sortOrder:mr,multiplePriority:Wa(fn)}),Fr==null||Fr(Lr)},ai.onKeyDown=Lr=>{Lr.keyCode===Qs.Z.ENTER&&(Bt({column:fn,key:ar,sortOrder:mr,multiplePriority:Wa(fn)}),$r==null||$r(Lr))};const Ir=lo(fn.title,{}),vr=Ir==null?void 0:Ir.toString();return dr&&(ai["aria-sort"]=dr==="ascend"?"ascending":"descending"),ai["aria-label"]=vr||"",ai.className=Ne()(ai.className,`${ht}-column-has-sorters`),ai.tabIndex=0,fn.ellipsis&&(ai.title=(Ir!=null?Ir:"").toString()),ai}})}return"children"in jn&&(jn=Object.assign(Object.assign({},jn),{children:Ls(ht,jn.children,It,Bt,Jt,tn,dn,kn)})),jn}),Hl=ht=>{const{column:pt,sortOrder:It}=ht;return{column:pt,order:It,field:pt.dataIndex,columnKey:pt.key}},xl=ht=>{const pt=ht.filter(It=>{let{sortOrder:Bt}=It;return Bt}).map(Hl);if(pt.length===0&&ht.length){const It=ht.length-1;return Object.assign(Object.assign({},Hl(ht[It])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return pt.length<=1?pt[0]||{}:pt},hs=(ht,pt,It)=>{const Bt=pt.slice().sort((dn,sn)=>sn.multiplePriority-dn.multiplePriority),Jt=ht.slice(),tn=Bt.filter(dn=>{let{column:{sorter:sn},sortOrder:vn}=dn;return la(sn)&&vn});return tn.length?Jt.sort((dn,sn)=>{for(let vn=0;vn<tn.length;vn+=1){const fn=tn[vn],{column:{sorter:Hn},sortOrder:kn}=fn,jn=la(Hn);if(jn&&kn){const Sn=jn(dn,sn,kn);if(Sn!==0)return kn===ws?Sn:-Sn}}return 0}).map(dn=>{const sn=dn[It];return sn?Object.assign(Object.assign({},dn),{[It]:hs(sn,pt,It)}):dn}):Jt};var Zl=ht=>{const{prefixCls:pt,mergedColumns:It,sortDirections:Bt,tableLocale:Jt,showSorterTooltip:tn,onSorterChange:dn}=ht,[sn,vn]=te.useState(Ua(It,!0)),fn=(ar,Xn)=>{const dr=[];return ar.forEach((mr,fr)=>{const xr=fi(fr,Xn);if(dr.push(ii(mr,xr)),Array.isArray(mr.children)){const Ar=fn(mr.children,xr);dr.push.apply(dr,(0,pn.Z)(Ar))}}),dr},Hn=te.useMemo(()=>{let ar=!0;const Xn=Ua(It,!1);if(!Xn.length){const xr=fn(It);return sn.filter(Ar=>{let{key:_r}=Ar;return xr.includes(_r)})}const dr=[];function mr(xr){ar?dr.push(xr):dr.push(Object.assign(Object.assign({},xr),{sortOrder:null}))}let fr=null;return Xn.forEach(xr=>{fr===null?(mr(xr),xr.sortOrder&&(xr.multiplePriority===!1?ar=!1:fr=!0)):(fr&&xr.multiplePriority!==!1||(ar=!1),mr(xr))}),dr},[It,sn]),kn=te.useMemo(()=>{var ar,Xn;const dr=Hn.map(mr=>{let{column:fr,sortOrder:xr}=mr;return{column:fr,order:xr}});return{sortColumns:dr,sortColumn:(ar=dr[0])===null||ar===void 0?void 0:ar.column,sortOrder:(Xn=dr[0])===null||Xn===void 0?void 0:Xn.order}},[Hn]),jn=ar=>{let Xn;ar.multiplePriority===!1||!Hn.length||Hn[0].multiplePriority===!1?Xn=[ar]:Xn=[].concat((0,pn.Z)(Hn.filter(dr=>{let{key:mr}=dr;return mr!==ar.key})),[ar]),vn(Xn),dn(xl(Xn),Xn)};return[ar=>Ls(pt,ar,Hn,jn,Bt,Jt,tn),Hn,kn,()=>xl(Hn)]};const _s=(ht,pt)=>ht.map(Bt=>{const Jt=Object.assign({},Bt);return Jt.title=Ui(Bt.title,pt),"children"in Jt&&(Jt.children=_s(Jt.children,pt)),Jt});var wl=ht=>[te.useCallback(It=>_s(It,ht),[ht])],Wl=xn((ht,pt)=>{const{_renderTimes:It}=ht,{_renderTimes:Bt}=pt;return It!==Bt}),Ss=Un((ht,pt)=>{const{_renderTimes:It}=ht,{_renderTimes:Bt}=pt;return It!==Bt}),oi=Te(36237),Cs=Te(17835),os=Te(63356),au=Te(16931),su=Te(51636),Sl=ht=>{const{componentCls:pt,lineWidth:It,lineType:Bt,tableBorderColor:Jt,tableHeaderBg:tn,tablePaddingVertical:dn,tablePaddingHorizontal:sn,calc:vn}=ht,fn=`${(0,oi.unit)(It)} ${Bt} ${Jt}`,Hn=(kn,jn,Sn)=>({[`&${pt}-${kn}`]:{[`> ${pt}-container`]:{[`> ${pt}-content, > ${pt}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${pt}-expanded-row-fixed`]:{margin:`${(0,oi.unit)(vn(jn).mul(-1).equal())}
${(0,oi.unit)(vn(vn(Sn).add(It)).mul(-1).equal())}`}}}}}});return{[`${pt}-wrapper`]:{[`${pt}${pt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${pt}-title`]:{border:fn,borderBottom:0},[`> ${pt}-container`]:{borderInlineStart:fn,borderTop:fn,[`
> ${pt}-content,
> ${pt}-header,
> ${pt}-body,
> ${pt}-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:fn},"> thead":{"> tr:not(:last-child) > th":{borderBottom:fn},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${pt}-cell-fix-right-first::after`]:{borderInlineEnd:fn}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${pt}-expanded-row-fixed`]:{margin:`${(0,oi.unit)(vn(dn).mul(-1).equal())} ${(0,oi.unit)(vn(vn(sn).add(It)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:It,bottom:0,borderInlineEnd:fn,content:'""'}}}}}},[`&${pt}-scroll-horizontal`]:{[`> ${pt}-container > ${pt}-body`]:{"> table > tbody":{[`
> tr${pt}-expanded-row,
> tr${pt}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Hn("middle",ht.tablePaddingVerticalMiddle,ht.tablePaddingHorizontalMiddle)),Hn("small",ht.tablePaddingVerticalSmall,ht.tablePaddingHorizontalSmall)),{[`> ${pt}-footer`]:{border:fn,borderTop:0}}),[`${pt}-cell`]:{[`${pt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,oi.unit)(It)} 0 ${(0,oi.unit)(It)} ${tn}`}},[`${pt}-bordered ${pt}-cell-scrollbar`]:{borderInlineEnd:fn}}}},Es=ht=>{const{componentCls:pt}=ht;return{[`${pt}-wrapper`]:{[`${pt}-cell-ellipsis`]:Object.assign(Object.assign({},os.vS),{wordBreak:"keep-all",[`
&${pt}-cell-fix-left-last,
&${pt}-cell-fix-right-first
`]:{overflow:"visible",[`${pt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${pt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},lu=ht=>{const{componentCls:pt}=ht;return{[`${pt}-wrapper`]:{[`${pt}-tbody > tr${pt}-placeholder`]:{textAlign:"center",color:ht.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ht.colorBgContainer}}}}},Gl=ht=>{const{componentCls:pt,antCls:It,motionDurationSlow:Bt,lineWidth:Jt,paddingXS:tn,lineType:dn,tableBorderColor:sn,tableExpandIconBg:vn,tableExpandColumnWidth:fn,borderRadius:Hn,tablePaddingVertical:kn,tablePaddingHorizontal:jn,tableExpandedRowBg:Sn,paddingXXS:wn,expandIconMarginTop:ar,expandIconSize:Xn,expandIconHalfInner:dr,expandIconScale:mr,calc:fr}=ht,xr=`${(0,oi.unit)(Jt)} ${dn} ${sn}`,Ar=fr(wn).sub(Jt).equal();return{[`${pt}-wrapper`]:{[`${pt}-expand-icon-col`]:{width:fn},[`${pt}-row-expand-icon-cell`]:{textAlign:"center",[`${pt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${pt}-row-indent`]:{height:1,float:"left"},[`${pt}-row-expand-icon`]:Object.assign(Object.assign({},(0,os.Nd)(ht)),{position:"relative",float:"left",width:Xn,height:Xn,color:"inherit",lineHeight:(0,oi.unit)(Xn),background:vn,border:xr,borderRadius:Hn,transform:`scale(${mr})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Bt} ease-out`,content:'""'},"&::before":{top:dr,insetInlineEnd:Ar,insetInlineStart:Ar,height:Jt},"&::after":{top:Ar,bottom:Ar,insetInlineStart:dr,width:Jt,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"}}),[`${pt}-row-indent + ${pt}-row-expand-icon`]:{marginTop:ar,marginInlineEnd:tn},[`tr${pt}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Sn}},[`${It}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${pt}-expanded-row-fixed`]:{position:"relative",margin:`${(0,oi.unit)(fr(kn).mul(-1).equal())} ${(0,oi.unit)(fr(jn).mul(-1).equal())}`,padding:`${(0,oi.unit)(kn)} ${(0,oi.unit)(jn)}`}}}},Vl=ht=>{const{componentCls:pt,antCls:It,iconCls:Bt,tableFilterDropdownWidth:Jt,tableFilterDropdownSearchWidth:tn,paddingXXS:dn,paddingXS:sn,colorText:vn,lineWidth:fn,lineType:Hn,tableBorderColor:kn,headerIconColor:jn,fontSizeSM:Sn,tablePaddingHorizontal:wn,borderRadius:ar,motionDurationSlow:Xn,colorTextDescription:dr,colorPrimary:mr,tableHeaderFilterActiveBg:fr,colorTextDisabled:xr,tableFilterDropdownBg:Ar,tableFilterDropdownHeight:_r,controlItemBgHover:Mr,controlItemBgActive:vi,boxShadowSecondary:Qr,filterDropdownMenuBg:Gr,calc:ai}=ht,Fr=`${It}-dropdown`,$r=`${pt}-filter-dropdown`,Ir=`${It}-tree`,vr=`${(0,oi.unit)(fn)} ${Hn} ${kn}`;return[{[`${pt}-wrapper`]:{[`${pt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${pt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:ai(dn).mul(-1).equal(),marginInline:`${(0,oi.unit)(dn)} ${(0,oi.unit)(ai(wn).div(2).mul(-1).equal())}`,padding:`0 ${(0,oi.unit)(dn)}`,color:jn,fontSize:Sn,borderRadius:ar,cursor:"pointer",transition:`all ${Xn}`,"&:hover":{color:dr,background:fr},"&.active":{color:mr}}}},{[`${It}-dropdown`]:{[$r]:Object.assign(Object.assign({},(0,os.Wf)(ht)),{minWidth:Jt,backgroundColor:Ar,borderRadius:ar,boxShadow:Qr,overflow:"hidden",[`${Fr}-menu`]:{maxHeight:_r,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Gr,"&:empty::after":{display:"block",padding:`${(0,oi.unit)(sn)} 0`,color:xr,fontSize:Sn,textAlign:"center",content:'"Not Found"'}},[`${$r}-tree`]:{paddingBlock:`${(0,oi.unit)(sn)} 0`,paddingInline:sn,[Ir]:{padding:0},[`${Ir}-treenode ${Ir}-node-content-wrapper:hover`]:{backgroundColor:Mr},[`${Ir}-treenode-checkbox-checked ${Ir}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:vi}}},[`${$r}-search`]:{padding:sn,borderBottom:vr,"&-input":{input:{minWidth:tn},[Bt]:{color:xr}}},[`${$r}-checkall`]:{width:"100%",marginBottom:dn,marginInlineStart:dn},[`${$r}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,oi.unit)(ai(sn).sub(fn).equal())} ${(0,oi.unit)(sn)}`,overflow:"hidden",borderTop:vr}})}},{[`${It}-dropdown ${$r}, ${$r}-submenu`]:{[`${It}-checkbox-wrapper + span`]:{paddingInlineStart:sn,color:vn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Fs=ht=>{const{componentCls:pt,lineWidth:It,colorSplit:Bt,motionDurationSlow:Jt,zIndexTableFixed:tn,tableBg:dn,zIndexTableSticky:sn,calc:vn}=ht,fn=Bt;return{[`${pt}-wrapper`]:{[`
${pt}-cell-fix-left,
${pt}-cell-fix-right
`]:{position:"sticky !important",zIndex:tn,background:dn},[`
${pt}-cell-fix-left-first::after,
${pt}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:vn(It).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${Jt}`,content:'""',pointerEvents:"none"},[`${pt}-cell-fix-left-all::after`]:{display:"none"},[`
${pt}-cell-fix-right-first::after,
${pt}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:vn(It).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Jt}`,content:'""',pointerEvents:"none"},[`${pt}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:vn(sn).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${Jt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${pt}-ping-left`]:{[`&:not(${pt}-has-fix-left) ${pt}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${fn}`},[`
${pt}-cell-fix-left-first::after,
${pt}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${fn}`},[`${pt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${pt}-ping-right`]:{[`&:not(${pt}-has-fix-right) ${pt}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${fn}`},[`
${pt}-cell-fix-right-first::after,
${pt}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${fn}`}},[`${pt}-fixed-column-gapped`]:{[`
${pt}-cell-fix-left-first::after,
${pt}-cell-fix-left-last::after,
${pt}-cell-fix-right-first::after,
${pt}-cell-fix-right-last::after
`]:{boxShadow:"none"}}}}},$s=ht=>{const{componentCls:pt,antCls:It,margin:Bt}=ht;return{[`${pt}-wrapper`]:{[`${pt}-pagination${It}-pagination`]:{margin:`${(0,oi.unit)(Bt)} 0`},[`${pt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ht.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Xl=ht=>{const{componentCls:pt,tableRadius:It}=ht;return{[`${pt}-wrapper`]:{[pt]:{[`${pt}-title, ${pt}-header`]:{borderRadius:`${(0,oi.unit)(It)} ${(0,oi.unit)(It)} 0 0`},[`${pt}-title + ${pt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${pt}-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:It,borderStartEndRadius:It,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:It},"> *:last-child":{borderStartEndRadius:It}}},"&-footer":{borderRadius:`0 0 ${(0,oi.unit)(It)} ${(0,oi.unit)(It)}`}}}}},Yl=ht=>{const{componentCls:pt}=ht;return{[`${pt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${pt}-pagination-left`]:{justifyContent:"flex-end"},[`${pt}-pagination-right`]:{justifyContent:"flex-start"},[`${pt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${pt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${pt}-row-indent`]:{float:"right"}}}}},ms=ht=>{const{componentCls:pt,antCls:It,iconCls:Bt,fontSizeIcon:Jt,padding:tn,paddingXS:dn,headerIconColor:sn,headerIconHoverColor:vn,tableSelectionColumnWidth:fn,tableSelectedRowBg:Hn,tableSelectedRowHoverBg:kn,tableRowHoverBg:jn,tablePaddingHorizontal:Sn,calc:wn}=ht;return{[`${pt}-wrapper`]:{[`${pt}-selection-col`]:{width:fn,[`&${pt}-selection-col-with-dropdown`]:{width:wn(fn).add(Jt).add(wn(tn).div(4)).equal()}},[`${pt}-bordered ${pt}-selection-col`]:{width:wn(fn).add(wn(dn).mul(2)).equal(),[`&${pt}-selection-col-with-dropdown`]:{width:wn(fn).add(Jt).add(wn(tn).div(4)).add(wn(dn).mul(2)).equal()}},[`
table tr th${pt}-selection-column,
table tr td${pt}-selection-column,
${pt}-selection-column
`]:{paddingInlineEnd:ht.paddingXS,paddingInlineStart:ht.paddingXS,textAlign:"center",[`${It}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${pt}-selection-column${pt}-cell-fix-left`]:{zIndex:wn(ht.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${pt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${pt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${pt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ht.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,oi.unit)(wn(Sn).div(4).equal()),[Bt]:{color:sn,fontSize:Jt,verticalAlign:"baseline","&:hover":{color:vn}}},[`${pt}-tbody`]:{[`${pt}-row`]:{[`&${pt}-row-selected`]:{[`> ${pt}-cell`]:{background:Hn,"&-row-hover":{background:kn}}},[`> ${pt}-cell-row-hover`]:{background:jn}}}}}},cu=ht=>{const{componentCls:pt,tableExpandColumnWidth:It,calc:Bt}=ht,Jt=(tn,dn,sn,vn)=>({[`${pt}${pt}-${tn}`]:{fontSize:vn,[`
${pt}-title,
${pt}-footer,
${pt}-cell,
${pt}-thead > tr > th,
${pt}-tbody > tr > th,
${pt}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${(0,oi.unit)(dn)} ${(0,oi.unit)(sn)}`},[`${pt}-filter-trigger`]:{marginInlineEnd:(0,oi.unit)(Bt(sn).div(2).mul(-1).equal())},[`${pt}-expanded-row-fixed`]:{margin:`${(0,oi.unit)(Bt(dn).mul(-1).equal())} ${(0,oi.unit)(Bt(sn).mul(-1).equal())}`},[`${pt}-tbody`]:{[`${pt}-wrapper:only-child ${pt}`]:{marginBlock:(0,oi.unit)(Bt(dn).mul(-1).equal()),marginInline:`${(0,oi.unit)(Bt(It).sub(sn).equal())} ${(0,oi.unit)(Bt(sn).mul(-1).equal())}`}},[`${pt}-selection-extra`]:{paddingInlineStart:(0,oi.unit)(Bt(sn).div(4).equal())}}});return{[`${pt}-wrapper`]:Object.assign(Object.assign({},Jt("middle",ht.tablePaddingVerticalMiddle,ht.tablePaddingHorizontalMiddle,ht.tableFontSizeMiddle)),Jt("small",ht.tablePaddingVerticalSmall,ht.tablePaddingHorizontalSmall,ht.tableFontSizeSmall))}},du=ht=>{const{componentCls:pt,marginXXS:It,fontSizeIcon:Bt,headerIconColor:Jt,headerIconHoverColor:tn}=ht;return{[`${pt}-wrapper`]:{[`${pt}-thead th${pt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ht.motionDurationSlow}, left 0s`,"&:hover":{background:ht.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ht.colorPrimary},[`
&${pt}-cell-fix-left:hover,
&${pt}-cell-fix-right:hover
`]:{background:ht.tableFixedHeaderSortActiveBg}},[`${pt}-thead th${pt}-column-sort`]:{background:ht.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${pt}-column-sort`]:{background:ht.tableBodySortBg},[`${pt}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${pt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${pt}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${pt}-column-sorter`]:{marginInlineStart:It,color:Jt,fontSize:0,transition:`color ${ht.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Bt,"&.active":{color:ht.colorPrimary}},[`${pt}-column-sorter-up + ${pt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${pt}-column-sorters:hover ${pt}-column-sorter`]:{color:tn}}}},fu=ht=>{const{componentCls:pt,opacityLoading:It,tableScrollThumbBg:Bt,tableScrollThumbBgHover:Jt,tableScrollThumbSize:tn,tableScrollBg:dn,zIndexTableSticky:sn,stickyScrollBarBorderRadius:vn,lineWidth:fn,lineType:Hn,tableBorderColor:kn}=ht,jn=`${(0,oi.unit)(fn)} ${Hn} ${kn}`;return{[`${pt}-wrapper`]:{[`${pt}-sticky`]:{"&-holder":{position:"sticky",zIndex:sn,background:ht.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,oi.unit)(tn)} !important`,zIndex:sn,display:"flex",alignItems:"center",background:dn,borderTop:jn,opacity:It,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:tn,backgroundColor:Bt,borderRadius:vn,transition:`all ${ht.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Jt}}}}}}},ma=ht=>{const{componentCls:pt,lineWidth:It,tableBorderColor:Bt,calc:Jt}=ht,tn=`${(0,oi.unit)(It)} ${ht.lineType} ${Bt}`;return{[`${pt}-wrapper`]:{[`${pt}-summary`]:{position:"relative",zIndex:ht.zIndexTableFixed,background:ht.tableBg,"> tr":{"> th, > td":{borderBottom:tn}}},[`div${pt}-summary`]:{boxShadow:`0 ${(0,oi.unit)(Jt(It).mul(-1).equal())} 0 ${Bt}`}}}},ua=ht=>{const{componentCls:pt,motionDurationMid:It,lineWidth:Bt,lineType:Jt,tableBorderColor:tn,calc:dn}=ht,sn=`${(0,oi.unit)(Bt)} ${Jt} ${tn}`,vn=`${pt}-expanded-row-cell`;return{[`${pt}-wrapper`]:{[`${pt}-tbody-virtual`]:{[`${pt}-tbody-virtual-holder-inner`]:{[`
& > ${pt}-row,
& > div:not(${pt}-row) > ${pt}-row
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${pt}-cell`]:{borderBottom:sn,transition:`background ${It}`},[`${pt}-expanded-row`]:{[`${vn}${vn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,oi.unit)(Bt)})`,borderInlineEnd:"none"}}},[`${pt}-bordered`]:{[`${pt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:sn,position:"absolute"},[`${pt}-cell`]:{borderInlineEnd:sn,[`&${pt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:dn(Bt).mul(-1).equal(),borderInlineStart:sn}}},[`&${pt}-virtual`]:{[`${pt}-placeholder ${pt}-cell`]:{borderInlineEnd:sn,borderBottom:sn}}}}}};const Ko=ht=>{const{componentCls:pt,fontWeightStrong:It,tablePaddingVertical:Bt,tablePaddingHorizontal:Jt,tableExpandColumnWidth:tn,lineWidth:dn,lineType:sn,tableBorderColor:vn,tableFontSize:fn,tableBg:Hn,tableRadius:kn,tableHeaderTextColor:jn,motionDurationMid:Sn,tableHeaderBg:wn,tableHeaderCellSplitColor:ar,tableFooterTextColor:Xn,tableFooterBg:dr,calc:mr}=ht,fr=`${(0,oi.unit)(dn)} ${sn} ${vn}`;return{[`${pt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,os.dF)()),{[pt]:Object.assign(Object.assign({},(0,os.Wf)(ht)),{fontSize:fn,background:Hn,borderRadius:`${(0,oi.unit)(kn)} ${(0,oi.unit)(kn)} 0 0`,scrollbarColor:`${ht.tableScrollThumbBg} ${ht.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,oi.unit)(kn)} ${(0,oi.unit)(kn)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${pt}-cell,
${pt}-thead > tr > th,
${pt}-tbody > tr > th,
${pt}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${(0,oi.unit)(Bt)} ${(0,oi.unit)(Jt)}`,overflowWrap:"break-word"},[`${pt}-title`]:{padding:`${(0,oi.unit)(Bt)} ${(0,oi.unit)(Jt)}`},[`${pt}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:jn,fontWeight:It,textAlign:"start",background:wn,borderBottom:fr,transition:`background ${Sn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${pt}-selection-column):not(${pt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:ar,transform:"translateY(-50%)",transition:`background-color ${Sn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${pt}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Sn}, border-color ${Sn}`,borderBottom:fr,[`
> ${pt}-wrapper:only-child,
> ${pt}-expanded-row-fixed > ${pt}-wrapper:only-child
`]:{[pt]:{marginBlock:(0,oi.unit)(mr(Bt).mul(-1).equal()),marginInline:`${(0,oi.unit)(mr(tn).sub(Jt).equal())}
${(0,oi.unit)(mr(Jt).mul(-1).equal())}`,[`${pt}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:jn,fontWeight:It,textAlign:"start",background:wn,borderBottom:fr,transition:`background ${Sn} ease`}}},[`${pt}-footer`]:{padding:`${(0,oi.unit)(Bt)} ${(0,oi.unit)(Jt)}`,color:Xn,background:dr}})}},Hs=ht=>{const{colorFillAlter:pt,colorBgContainer:It,colorTextHeading:Bt,colorFillSecondary:Jt,colorFillContent:tn,controlItemBgActive:dn,controlItemBgActiveHover:sn,padding:vn,paddingSM:fn,paddingXS:Hn,colorBorderSecondary:kn,borderRadiusLG:jn,controlHeight:Sn,colorTextPlaceholder:wn,fontSize:ar,fontSizeSM:Xn,lineHeight:dr,lineWidth:mr,colorIcon:fr,colorIconHover:xr,opacityLoading:Ar,controlInteractiveSize:_r}=ht,Mr=new Cs.FastColor(Jt).onBackground(It).toHexString(),vi=new Cs.FastColor(tn).onBackground(It).toHexString(),Qr=new Cs.FastColor(pt).onBackground(It).toHexString(),Gr=new Cs.FastColor(fr),ai=new Cs.FastColor(xr),Fr=_r/2-mr,$r=Fr*2+mr*3;return{headerBg:Qr,headerColor:Bt,headerSortActiveBg:Mr,headerSortHoverBg:vi,bodySortBg:Qr,rowHoverBg:Qr,rowSelectedBg:dn,rowSelectedHoverBg:sn,rowExpandedBg:pt,cellPaddingBlock:vn,cellPaddingInline:vn,cellPaddingBlockMD:fn,cellPaddingInlineMD:Hn,cellPaddingBlockSM:Hn,cellPaddingInlineSM:Hn,borderColor:kn,headerBorderRadius:jn,footerBg:Qr,footerColor:Bt,cellFontSize:ar,cellFontSizeMD:ar,cellFontSizeSM:ar,headerSplitColor:kn,fixedHeaderSortActiveBg:Mr,headerFilterHoverBg:tn,filterDropdownMenuBg:It,filterDropdownBg:It,expandIconBg:It,selectionColumnWidth:Sn,stickyScrollBarBg:wn,stickyScrollBarBorderRadius:100,expandIconMarginTop:(ar*dr-mr*3)/2-Math.ceil((Xn*1.4-mr*3)/2),headerIconColor:Gr.clone().setA(Gr.a*Ar).toRgbString(),headerIconHoverColor:ai.clone().setA(ai.a*Ar).toRgbString(),expandIconHalfInner:Fr,expandIconSize:$r,expandIconScale:_r/$r}},Jl=2;var il=(0,au.I$)("Table",ht=>{const{colorTextHeading:pt,colorSplit:It,colorBgContainer:Bt,controlInteractiveSize:Jt,headerBg:tn,headerColor:dn,headerSortActiveBg:sn,headerSortHoverBg:vn,bodySortBg:fn,rowHoverBg:Hn,rowSelectedBg:kn,rowSelectedHoverBg:jn,rowExpandedBg:Sn,cellPaddingBlock:wn,cellPaddingInline:ar,cellPaddingBlockMD:Xn,cellPaddingInlineMD:dr,cellPaddingBlockSM:mr,cellPaddingInlineSM:fr,borderColor:xr,footerBg:Ar,footerColor:_r,headerBorderRadius:Mr,cellFontSize:vi,cellFontSizeMD:Qr,cellFontSizeSM:Gr,headerSplitColor:ai,fixedHeaderSortActiveBg:Fr,headerFilterHoverBg:$r,filterDropdownBg:Ir,expandIconBg:vr,selectionColumnWidth:Lr,stickyScrollBarBg:zr,calc:qr}=ht,Dr=(0,su.mergeToken)(ht,{tableFontSize:vi,tableBg:Bt,tableRadius:Mr,tablePaddingVertical:wn,tablePaddingHorizontal:ar,tablePaddingVerticalMiddle:Xn,tablePaddingHorizontalMiddle:dr,tablePaddingVerticalSmall:mr,tablePaddingHorizontalSmall:fr,tableBorderColor:xr,tableHeaderTextColor:dn,tableHeaderBg:tn,tableFooterTextColor:_r,tableFooterBg:Ar,tableHeaderCellSplitColor:ai,tableHeaderSortBg:sn,tableHeaderSortHoverBg:vn,tableBodySortBg:fn,tableFixedHeaderSortActiveBg:Fr,tableHeaderFilterActiveBg:$r,tableFilterDropdownBg:Ir,tableRowHoverBg:Hn,tableSelectedRowBg:kn,tableSelectedRowHoverBg:jn,zIndexTableFixed:Jl,zIndexTableSticky:qr(Jl).add(1).equal({unit:!1}),tableFontSizeMiddle:Qr,tableFontSizeSmall:Gr,tableSelectionColumnWidth:Lr,tableExpandIconBg:vr,tableExpandColumnWidth:qr(Jt).add(qr(ht.padding).mul(2)).equal(),tableExpandedRowBg:Sn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:zr,tableScrollThumbBgHover:pt,tableScrollBg:It});return[Ko(Dr),$s(Dr),ma(Dr),du(Dr),Vl(Dr),Sl(Dr),Xl(Dr),Gl(Dr),ma(Dr),lu(Dr),ms(Dr),Fs(Dr),fu(Dr),Es(Dr),cu(Dr),Yl(Dr),ua(Dr)]},Hs,{unitless:{expandIconScale:!0}});const pu=[],hu=(ht,pt)=>{var It,Bt;const{prefixCls:Jt,className:tn,rootClassName:dn,style:sn,size:vn,bordered:fn,dropdownPrefixCls:Hn,dataSource:kn,pagination:jn,rowSelection:Sn,rowKey:wn="key",rowClassName:ar,columns:Xn,children:dr,childrenColumnName:mr,onChange:fr,getPopupContainer:xr,loading:Ar,expandIcon:_r,expandable:Mr,expandedRowRender:vi,expandIconColumnIndex:Qr,indentSize:Gr,scroll:ai,sortDirections:Fr,locale:$r,showSorterTooltip:Ir={target:"full-header"},virtual:vr}=ht,Lr=(0,Oi.ln)("Table"),zr=te.useMemo(()=>Xn||ln(dr),[Xn,dr]),qr=te.useMemo(()=>zr.some(xi=>xi.responsive),[zr]),Dr=(0,Fo.Z)(qr),Ei=te.useMemo(()=>{const xi=new Set(Object.keys(Dr).filter(Mi=>Dr[Mi]));return zr.filter(Mi=>!Mi.responsive||Mi.responsive.some(vo=>xi.has(vo)))},[zr,Dr]),Pi=(0,Qi.Z)(ht,["className","style","columns"]),{locale:yo=pa.Z,direction:fo,table:ro,renderEmpty:po,getPrefixCls:So,getPopupContainer:ji}=te.useContext(Yi.E_),Di=(0,Ai.Z)(vn),Co=Object.assign(Object.assign({},yo.Table),$r),No=kn||pu,Xr=So("table",Jt),pi=So("dropdown",Hn),[,Wr]=(0,cs.ZP)(),Br=(0,Fi.Z)(Xr),[Bi,Ki,uo]=il(Xr,Br),to=Object.assign(Object.assign({childrenColumnName:mr,expandIconColumnIndex:Qr},Mr),{expandIcon:(It=Mr==null?void 0:Mr.expandIcon)!==null&&It!==void 0?It:(Bt=ro==null?void 0:ro.expandable)===null||Bt===void 0?void 0:Bt.expandIcon}),{childrenColumnName:Eo="children"}=to,Bo=te.useMemo(()=>No.some(xi=>xi==null?void 0:xi[Eo])?"nest":vi||Mr!=null&&Mr.expandedRowRender?"row":null,[No]),Jr={body:te.useRef(null)},ri=Si(Xr),Vi=te.useRef(null),eo=te.useRef(null);li(pt,()=>Object.assign(Object.assign({},eo.current),{nativeElement:Vi.current}));const Ji=te.useMemo(()=>typeof wn=="function"?wn:xi=>xi==null?void 0:xi[wn],[wn]),[$o]=Ba(No,Eo,Ji),To={},va=function(xi,Mi){let vo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Oo,Go,zo,_a;const ea=Object.assign(Object.assign({},To),xi);vo&&((Oo=To.resetPagination)===null||Oo===void 0||Oo.call(To),!((Go=ea.pagination)===null||Go===void 0)&&Go.current&&(ea.pagination.current=1),jn&&((zo=jn.onChange)===null||zo===void 0||zo.call(jn,1,(_a=ea.pagination)===null||_a===void 0?void 0:_a.pageSize))),ai&&ai.scrollToFirstRowOnChange!==!1&&Jr.body.current&&(0,Zi.Z)(0,{getContainer:()=>Jr.body.current}),fr==null||fr(ea.pagination,ea.filters,ea.sorter,{currentDataSource:Ci(hs(No,ea.sorterStates,Eo),ea.filterStates,Eo),action:Mi})},ho=(xi,Mi)=>{va({sorter:xi,sorterStates:Mi},"sort",!1)},[$i,no,io,Lo]=Zl({prefixCls:Xr,mergedColumns:Ei,onSorterChange:ho,sortDirections:Fr||["ascend","descend"],tableLocale:Co,showSorterTooltip:Ir}),bo=te.useMemo(()=>hs(No,no,Eo),[No,no]);To.sorter=Lo(),To.sorterStates=no;const zi=(xi,Mi)=>{va({filters:xi,filterStates:Mi},"filter",!0)},[mo,Xi,Qo]=ko({prefixCls:Xr,locale:Co,dropdownPrefixCls:pi,mergedColumns:Ei,onFilterChange:zi,getPopupContainer:xr||ji,rootClassName:Ne()(dn,Br)}),Ro=Ci(bo,Xi,Eo);To.filters=Qo,To.filterStates=Xi;const ca=te.useMemo(()=>{const xi={};return Object.keys(Qo).forEach(Mi=>{Qo[Mi]!==null&&(xi[Mi]=Qo[Mi])}),Object.assign(Object.assign({},io),{filters:xi})},[io,Qo]),[ga]=wl(ca),Ga=(xi,Mi)=>{va({pagination:Object.assign(Object.assign({},To.pagination),{current:xi,pageSize:Mi})},"paginate")},[oo,Zs]=La(Ro.length,Ga,jn);To.pagination=jn===!1?{}:xa(oo,jn),To.resetPagination=Zs;const da=te.useMemo(()=>{if(jn===!1||!oo.pageSize)return Ro;const{current:xi=1,total:Mi,pageSize:vo=Za}=oo;return Ro.length<Mi?Ro.length>vo?Ro.slice((xi-1)*vo,xi*vo):Ro:Ro.slice((xi-1)*vo,xi*vo)},[!!jn,Ro,oo==null?void 0:oo.current,oo==null?void 0:oo.pageSize,oo==null?void 0:oo.total]),[Na,Ca]=Vr({prefixCls:Xr,data:Ro,pageData:da,getRowKey:Ji,getRecordByKey:$o,expandType:Bo,childrenColumnName:Eo,locale:Co,getPopupContainer:xr||ji},Sn),ya=(xi,Mi,vo)=>{let Oo;return typeof ar=="function"?Oo=Ne()(ar(xi,Mi,vo)):Oo=Ne()(ar),Ne()({[`${Xr}-row-selected`]:Ca.has(Ji(xi,Mi))},Oo)};to.__PARENT_RENDER_ICON__=to.expandIcon,to.expandIcon=to.expandIcon||_r||ci(Co),Bo==="nest"&&to.expandIconColumnIndex===void 0?to.expandIconColumnIndex=Sn?1:0:to.expandIconColumnIndex>0&&Sn&&(to.expandIconColumnIndex-=1),typeof to.indentSize!="number"&&(to.indentSize=typeof Gr=="number"?Gr:15);const ao=te.useCallback(xi=>ga(Na(mo($i(xi)))),[$i,mo,Na]);let Ea,as;if(jn!==!1&&(oo!=null&&oo.total)){let xi;oo.size?xi=oo.size:xi=Di==="small"||Di==="middle"?"small":void 0;const Mi=Go=>te.createElement(Zo.Z,Object.assign({},oo,{className:Ne()(`${Xr}-pagination ${Xr}-pagination-${Go}`,oo.className),size:xi})),vo=fo==="rtl"?"left":"right",{position:Oo}=oo;if(Oo!==null&&Array.isArray(Oo)){const Go=Oo.find(ea=>ea.includes("top")),zo=Oo.find(ea=>ea.includes("bottom")),_a=Oo.every(ea=>`${ea}`=="none");!Go&&!zo&&!_a&&(as=Mi(vo)),Go&&(Ea=Mi(Go.toLowerCase().replace("top",""))),zo&&(as=Mi(zo.toLowerCase().replace("bottom","")))}else as=Mi(vo)}let Va;typeof Ar=="boolean"?Va={spinning:Ar}:typeof Ar=="object"&&(Va=Object.assign({spinning:!0},Ar));const Xa=Ne()(uo,Br,`${Xr}-wrapper`,ro==null?void 0:ro.className,{[`${Xr}-wrapper-rtl`]:fo==="rtl"},tn,dn,Ki),ol=Object.assign(Object.assign({},ro==null?void 0:ro.style),sn),al=typeof($r==null?void 0:$r.emptyText)!="undefined"?$r.emptyText:(po==null?void 0:po("Table"))||te.createElement(yi.Z,{componentName:"Table"}),sl=vr?Ss:Wl,ll={},Ol=te.useMemo(()=>{const{fontSize:xi,lineHeight:Mi,lineWidth:vo,padding:Oo,paddingXS:Go,paddingSM:zo}=Wr,_a=Math.floor(xi*Mi);switch(Di){case"middle":return zo*2+_a+vo;case"small":return Go*2+_a+vo;default:return Oo*2+_a+vo}},[Wr,Di]);return vr&&(ll.listItemHeight=Ol),Bi(te.createElement("div",{ref:Vi,className:Xa,style:ol},te.createElement(Do.Z,Object.assign({spinning:!1},Va),Ea,te.createElement(sl,Object.assign({},ll,Pi,{ref:eo,columns:Ei,direction:fo,expandable:to,prefixCls:Xr,className:Ne()({[`${Xr}-middle`]:Di==="middle",[`${Xr}-small`]:Di==="small",[`${Xr}-bordered`]:fn,[`${Xr}-empty`]:No.length===0},uo,Br,Ki),data:da,rowKey:Ji,rowClassName:ya,emptyText:al,internalHooks:y,internalRefs:Jr,transformColumns:ao,getContainerWidth:ri})),as)))};var mu=te.forwardRef(hu);const El=(ht,pt)=>{const It=te.useRef(0);return It.current+=1,te.createElement(mu,Object.assign({},ht,{ref:pt,_renderTimes:It.current}))},Ka=te.forwardRef(El);Ka.SELECTION_COLUMN=Ri,Ka.EXPAND_COLUMN=Ot,Ka.SELECTION_ALL=so,Ka.SELECTION_INVERT=xo,Ka.SELECTION_NONE=Po,Ka.Column=jr,Ka.ColumnGroup=zn,Ka.Summary=Je;var Tl=Ka,vu=Tl},96599:function(In,Yt,Te){"use strict";Te.d(Yt,{default:function(){return Ne}});var te=Te(59301),Ot=Te(92310),y=Te.n(Ot),je=Te(2738),be=Te(29509),z=Te(78776),E=Te(22703),ie=Te(12919),oe=Te(48755),ee=Te(36237),ce=Te(17835),x=Te(63356),ae=Te(51636),re=Te(16931);const se=me=>{const{paddingXXS:Ve,lineWidth:Ze,tagPaddingHorizontal:We,componentCls:nt,calc:_e}=me,Ue=_e(We).sub(Ze).equal(),tt=_e(Ve).sub(Ze).equal();return{[nt]:Object.assign(Object.assign({},(0,x.Wf)(me)),{display:"inline-block",height:"auto",marginInlineEnd:me.marginXS,paddingInline:Ue,fontSize:me.tagFontSize,lineHeight:me.tagLineHeight,whiteSpace:"nowrap",background:me.defaultBg,border:`${(0,ee.unit)(me.lineWidth)} ${me.lineType} ${me.colorBorder}`,borderRadius:me.borderRadiusSM,opacity:1,transition:`all ${me.motionDurationMid}`,textAlign:"start",position:"relative",[`&${nt}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:me.defaultColor},[`${nt}-close-icon`]:{marginInlineStart:tt,fontSize:me.tagIconSize,color:me.colorTextDescription,cursor:"pointer",transition:`all ${me.motionDurationMid}`,"&:hover":{color:me.colorTextHeading}},[`&${nt}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${me.iconCls}-close, ${me.iconCls}-close:hover`]:{color:me.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${nt}-checkable-checked):hover`]:{color:me.colorPrimary,backgroundColor:me.colorFillSecondary},"&:active, &-checked":{color:me.colorTextLightSolid},"&-checked":{backgroundColor:me.colorPrimary,"&:hover":{backgroundColor:me.colorPrimaryHover}},"&:active":{backgroundColor:me.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${me.iconCls} + span, > span + ${me.iconCls}`]:{marginInlineStart:Ue}}),[`${nt}-borderless`]:{borderColor:"transparent",background:me.tagBorderlessBg}}},ue=me=>{const{lineWidth:Ve,fontSizeIcon:Ze,calc:We}=me,nt=me.fontSizeSM;return(0,ae.mergeToken)(me,{tagFontSize:nt,tagLineHeight:(0,ee.unit)(We(me.lineHeightSM).mul(nt).equal()),tagIconSize:We(Ze).sub(We(Ve).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:me.defaultBg})},pe=me=>({defaultBg:new ce.FastColor(me.colorFillQuaternary).onBackground(me.colorBgContainer).toHexString(),defaultColor:me.colorText});var he=(0,re.I$)("Tag",me=>{const Ve=ue(me);return se(Ve)},pe),ye=function(me,Ve){var Ze={};for(var We in me)Object.prototype.hasOwnProperty.call(me,We)&&Ve.indexOf(We)<0&&(Ze[We]=me[We]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,We=Object.getOwnPropertySymbols(me);nt<We.length;nt++)Ve.indexOf(We[nt])<0&&Object.prototype.propertyIsEnumerable.call(me,We[nt])&&(Ze[We[nt]]=me[We[nt]]);return Ze},xe=te.forwardRef((me,Ve)=>{const{prefixCls:Ze,style:We,className:nt,checked:_e,onChange:Ue,onClick:tt}=me,rt=ye(me,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:et,tag:Ke}=te.useContext(oe.E_),Ye=qe=>{Ue==null||Ue(!_e),tt==null||tt(qe)},Xe=et("tag",Ze),[ot,Qe,ft]=he(Xe),at=y()(Xe,`${Xe}-checkable`,{[`${Xe}-checkable-checked`]:_e},Ke==null?void 0:Ke.className,nt,Qe,ft);return ot(te.createElement("span",Object.assign({},rt,{ref:Ve,style:Object.assign(Object.assign({},We),Ke==null?void 0:Ke.style),className:at,onClick:Ye})))}),ke=Te(93427);const De=me=>(0,ke.Z)(me,(Ve,Ze)=>{let{textColor:We,lightBorderColor:nt,lightColor:_e,darkColor:Ue}=Ze;return{[`${me.componentCls}${me.componentCls}-${Ve}`]:{color:We,background:_e,borderColor:nt,"&-inverse":{color:me.colorTextLightSolid,background:Ue,borderColor:Ue},[`&${me.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Be=(0,re.bk)(["Tag","preset"],me=>{const Ve=ue(me);return De(Ve)},pe);function Ae(me){return typeof me!="string"?me:me.charAt(0).toUpperCase()+me.slice(1)}const Se=(me,Ve,Ze)=>{const We=Ae(Ze);return{[`${me.componentCls}${me.componentCls}-${Ve}`]:{color:me[`color${Ze}`],background:me[`color${We}Bg`],borderColor:me[`color${We}Border`],[`&${me.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Ee=(0,re.bk)(["Tag","status"],me=>{const Ve=ue(me);return[Se(Ve,"success","Success"),Se(Ve,"processing","Info"),Se(Ve,"error","Error"),Se(Ve,"warning","Warning")]},pe),Oe=function(me,Ve){var Ze={};for(var We in me)Object.prototype.hasOwnProperty.call(me,We)&&Ve.indexOf(We)<0&&(Ze[We]=me[We]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,We=Object.getOwnPropertySymbols(me);nt<We.length;nt++)Ve.indexOf(We[nt])<0&&Object.prototype.propertyIsEnumerable.call(me,We[nt])&&(Ze[We[nt]]=me[We[nt]]);return Ze};const Le=te.forwardRef((me,Ve)=>{const{prefixCls:Ze,className:We,rootClassName:nt,style:_e,children:Ue,icon:tt,color:rt,onClose:et,bordered:Ke=!0,visible:Ye}=me,Xe=Oe(me,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:ot,direction:Qe,tag:ft}=te.useContext(oe.E_),[at,qe]=te.useState(!0),Fe=(0,je.Z)(Xe,["closeIcon","closable"]);te.useEffect(()=>{Ye!==void 0&&qe(Ye)},[Ye]);const Re=(0,be.o2)(rt),ne=(0,be.yT)(rt),fe=Re||ne,Me=Object.assign(Object.assign({backgroundColor:rt&&!fe?rt:void 0},ft==null?void 0:ft.style),_e),ze=ot("tag",Ze),[we,ve,Ie]=he(ze),$e=y()(ze,ft==null?void 0:ft.className,{[`${ze}-${rt}`]:fe,[`${ze}-has-color`]:rt&&!fe,[`${ze}-hidden`]:!at,[`${ze}-rtl`]:Qe==="rtl",[`${ze}-borderless`]:!Ke},We,nt,ve,Ie),Ge=st=>{st.stopPropagation(),et==null||et(st),!st.defaultPrevented&&qe(!1)},[,Je]=(0,z.Z)((0,z.w)(me),(0,z.w)(ft),{closable:!1,closeIconRender:st=>{const At=te.createElement("span",{className:`${ze}-close-icon`,onClick:Ge},st);return(0,E.wm)(st,At,mt=>({onClick:Dt=>{var jt;(jt=mt==null?void 0:mt.onClick)===null||jt===void 0||jt.call(mt,Dt),Ge(Dt)},className:y()(mt==null?void 0:mt.className,`${ze}-close-icon`)}))}}),ut=typeof Xe.onClick=="function"||Ue&&Ue.type==="a",lt=tt||null,vt=lt?te.createElement(te.Fragment,null,lt,Ue&&te.createElement("span",null,Ue)):Ue,ct=te.createElement("span",Object.assign({},Fe,{ref:Ve,className:$e,style:Me}),vt,Je,Re&&te.createElement(Be,{key:"preset",prefixCls:ze}),ne&&te.createElement(Ee,{key:"status",prefixCls:ze}));return we(ut?te.createElement(ie.Z,{component:"Tag"},ct):ct)});Le.CheckableTag=xe;var Ne=Le},18287:function(In,Yt,Te){"use strict";Te.d(Yt,{default:function(){return et}});var te=Te(3741),Ot=Te(94480),y=Te(59301),je=Te(52671),be=Te(8657),z=Te(54476),E={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"},ie=E,oe=Te(7657),ee=function(Ye,Xe){return y.createElement(oe.Z,(0,z.Z)({},Ye,{ref:Xe,icon:ie}))},ce=y.forwardRef(ee),x=ce,ae=Te(92310),re=Te.n(ae),se=Te(82661),ue=Te(34061),pe=Te(48755),he=Te(56082),ye=Te(86641),ge=Te(57700),xe=Te(12425);const ke=4;function De(Ke){const{dropPosition:Ye,dropLevelOffset:Xe,prefixCls:ot,indent:Qe,direction:ft="ltr"}=Ke,at=ft==="ltr"?"left":"right",qe=ft==="ltr"?"right":"left",Fe={[at]:-Xe*Qe+ke,[qe]:0};switch(Ye){case-1:Fe.top=-3;break;case 1:Fe.bottom=-3;break;default:Fe.bottom=-3,Fe[at]=Qe+ke;break}return y.createElement("div",{style:Fe,className:`${ot}-drop-indicator`})}var Be=De,Ae=Te(85278),Ee=y.forwardRef((Ke,Ye)=>{var Xe;const{getPrefixCls:ot,direction:Qe,virtual:ft,tree:at}=y.useContext(pe.E_),{prefixCls:qe,className:Fe,showIcon:Re=!1,showLine:ne,switcherIcon:fe,switcherLoadingIcon:Me,blockNode:ze=!1,children:we,checkable:ve=!1,selectable:Ie=!0,draggable:$e,motion:Ge,style:Je}=Ke,ut=ot("tree",qe),lt=ot(),vt=Ge!=null?Ge:Object.assign(Object.assign({},(0,ye.Z)(lt)),{motionAppear:!1}),ct=Object.assign(Object.assign({},Ke),{checkable:ve,selectable:Ie,showIcon:Re,motion:vt,blockNode:ze,showLine:!!ne,dropIndicatorRender:Be}),[st,At,mt]=(0,xe.ZP)(ut),[,Dt]=(0,ge.ZP)(),jt=Dt.paddingXS/2+(((Xe=Dt.Tree)===null||Xe===void 0?void 0:Xe.titleHeight)||Dt.controlHeightSM),Et=y.useMemo(()=>{if(!$e)return!1;let Nt={};switch(typeof $e){case"function":Nt.nodeDraggable=$e;break;case"object":Nt=Object.assign({},$e);break;default:break}return Nt.icon!==!1&&(Nt.icon=Nt.icon||y.createElement(he.Z,null)),Nt},[$e]),kt=Nt=>y.createElement(Ae.Z,{prefixCls:ut,switcherIcon:fe,switcherLoadingIcon:Me,treeNodeProps:Nt,showLine:ne});return st(y.createElement(te.ZP,Object.assign({itemHeight:jt,ref:Ye,virtual:ft},ct,{style:Object.assign(Object.assign({},at==null?void 0:at.style),Je),prefixCls:ut,className:re()({[`${ut}-icon-hide`]:!Re,[`${ut}-block-node`]:ze,[`${ut}-unselectable`]:!Ie,[`${ut}-rtl`]:Qe==="rtl"},at==null?void 0:at.className,Fe,At,mt),direction:Qe,checkable:ve&&y.createElement("span",{className:`${ut}-checkbox-inner`}),selectable:Ie,switcherIcon:kt,draggable:Et}),we))});const Oe=0,Pe=1,Le=2;function Ne(Ke,Ye,Xe){const{key:ot,children:Qe}=Xe;function ft(at){const qe=at[ot],Fe=at[Qe];Ye(qe,at)!==!1&&Ne(Fe||[],Ye,Xe)}Ke.forEach(ft)}function me(Ke){let{treeData:Ye,expandedKeys:Xe,startKey:ot,endKey:Qe,fieldNames:ft}=Ke;const at=[];let qe=Oe;if(ot&&ot===Qe)return[ot];if(!ot||!Qe)return[];function Fe(Re){return Re===ot||Re===Qe}return Ne(Ye,Re=>{if(qe===Le)return!1;if(Fe(Re)){if(at.push(Re),qe===Oe)qe=Pe;else if(qe===Pe)return qe=Le,!1}else qe===Pe&&at.push(Re);return Xe.includes(Re)},(0,ue.w$)(ft)),at}function Ve(Ke,Ye,Xe){const ot=(0,Ot.Z)(Ye),Qe=[];return Ne(Ke,(ft,at)=>{const qe=ot.indexOf(ft);return qe!==-1&&(Qe.push(at),ot.splice(qe,1)),!!ot.length},(0,ue.w$)(Xe)),Qe}var Ze=function(Ke,Ye){var Xe={};for(var ot in Ke)Object.prototype.hasOwnProperty.call(Ke,ot)&&Ye.indexOf(ot)<0&&(Xe[ot]=Ke[ot]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,ot=Object.getOwnPropertySymbols(Ke);Qe<ot.length;Qe++)Ye.indexOf(ot[Qe])<0&&Object.prototype.propertyIsEnumerable.call(Ke,ot[Qe])&&(Xe[ot[Qe]]=Ke[ot[Qe]]);return Xe};function We(Ke){const{isLeaf:Ye,expanded:Xe}=Ke;return Ye?y.createElement(je.Z,null):Xe?y.createElement(be.Z,null):y.createElement(x,null)}function nt(Ke){let{treeData:Ye,children:Xe}=Ke;return Ye||(0,ue.zn)(Xe)}const _e=(Ke,Ye)=>{var{defaultExpandAll:Xe,defaultExpandParent:ot,defaultExpandedKeys:Qe}=Ke,ft=Ze(Ke,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const at=y.useRef(null),qe=y.useRef(null),Fe=()=>{const{keyEntities:st}=(0,ue.I8)(nt(ft));let At;return Xe?At=Object.keys(st):ot?At=(0,se.r7)(ft.expandedKeys||Qe||[],st):At=ft.expandedKeys||Qe||[],At},[Re,ne]=y.useState(ft.selectedKeys||ft.defaultSelectedKeys||[]),[fe,Me]=y.useState(()=>Fe());y.useEffect(()=>{"selectedKeys"in ft&&ne(ft.selectedKeys)},[ft.selectedKeys]),y.useEffect(()=>{"expandedKeys"in ft&&Me(ft.expandedKeys)},[ft.expandedKeys]);const ze=(st,At)=>{var mt;return"expandedKeys"in ft||Me(st),(mt=ft.onExpand)===null||mt===void 0?void 0:mt.call(ft,st,At)},we=(st,At)=>{var mt;const{multiple:Dt,fieldNames:jt}=ft,{node:Et,nativeEvent:kt}=At,{key:Nt=""}=Et,yt=nt(ft),Pt=Object.assign(Object.assign({},At),{selected:!0}),Kt=(kt==null?void 0:kt.ctrlKey)||(kt==null?void 0:kt.metaKey),nn=kt==null?void 0:kt.shiftKey;let xt;Dt&&Kt?(xt=st,at.current=Nt,qe.current=xt,Pt.selectedNodes=Ve(yt,xt,jt)):Dt&&nn?(xt=Array.from(new Set([].concat((0,Ot.Z)(qe.current||[]),(0,Ot.Z)(me({treeData:yt,expandedKeys:fe,startKey:Nt,endKey:at.current,fieldNames:jt}))))),Pt.selectedNodes=Ve(yt,xt,jt)):(xt=[Nt],at.current=Nt,qe.current=xt,Pt.selectedNodes=Ve(yt,xt,jt)),(mt=ft.onSelect)===null||mt===void 0||mt.call(ft,xt,Pt),"selectedKeys"in ft||ne(xt)},{getPrefixCls:ve,direction:Ie}=y.useContext(pe.E_),{prefixCls:$e,className:Ge,showIcon:Je=!0,expandAction:ut="click"}=ft,lt=Ze(ft,["prefixCls","className","showIcon","expandAction"]),vt=ve("tree",$e),ct=re()(`${vt}-directory`,{[`${vt}-directory-rtl`]:Ie==="rtl"},Ge);return y.createElement(Ee,Object.assign({icon:We,ref:Ye,blockNode:!0},lt,{showIcon:Je,expandAction:ut,prefixCls:vt,className:ct,expandedKeys:fe,selectedKeys:Re,onSelect:we,onExpand:ze}))};var tt=y.forwardRef(_e);const rt=Ee;rt.DirectoryTree=tt,rt.TreeNode=te.OF;var et=rt},12425:function(In,Yt,Te){"use strict";Te.d(Yt,{ZP:function(){return se},Yk:function(){return x},TM:function(){return ae}});var te=Te(36237),Ot=Te(36170),y=Te(63356),je=Te(34961),be=Te(51636),z=Te(16931);const E=ue=>{let{treeCls:pe,treeNodeCls:he,directoryNodeSelectedBg:ye,directoryNodeSelectedColor:ge,motionDurationMid:xe,borderRadius:ke,controlItemBgHover:De}=ue;return{[`${pe}${pe}-directory ${he}`]:{[`${pe}-node-content-wrapper`]:{position:"static",[`> *:not(${pe}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${xe}`,content:'""',borderRadius:ke},"&:hover:before":{background:De}},[`${pe}-switcher, ${pe}-checkbox, ${pe}-draggable-icon`]:{zIndex:1},"&-selected":{[`${pe}-switcher, ${pe}-draggable-icon`]:{color:ge},[`${pe}-node-content-wrapper`]:{color:ge,background:"transparent","&:before, &:hover:before":{background:ye}}}}}},ie=new te.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),oe=(ue,pe)=>({[`.${ue}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${pe.motionDurationSlow}`}}}),ee=(ue,pe)=>({[`.${ue}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:pe.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,te.unit)(pe.lineWidthBold)} solid ${pe.colorPrimary}`,borderRadius:"50%",content:'""'}}}),ce=(ue,pe)=>{const{treeCls:he,treeNodeCls:ye,treeNodePadding:ge,titleHeight:xe,indentSize:ke,nodeSelectedBg:De,nodeHoverBg:Be,colorTextQuaternary:Ae,controlItemBgActiveDisabled:Se}=pe;return{[he]:Object.assign(Object.assign({},(0,y.Wf)(pe)),{background:pe.colorBgContainer,borderRadius:pe.borderRadius,transition:`background-color ${pe.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${he}-rtl ${he}-switcher_close ${he}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${he}-active-focused)`]:Object.assign({},(0,y.oN)(pe)),[`${he}-list-holder-inner`]:{alignItems:"flex-start"},[`&${he}-block-node`]:{[`${he}-list-holder-inner`]:{alignItems:"stretch",[`${he}-node-content-wrapper`]:{flex:"auto"},[`${ye}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${pe.colorPrimary}`,opacity:0,animationName:ie,animationDuration:pe.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:pe.borderRadius}}},[ye]:{display:"flex",alignItems:"flex-start",marginBottom:ge,lineHeight:(0,te.unit)(xe),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:ge},[`&-disabled ${he}-node-content-wrapper`]:{color:pe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${he}-checkbox-disabled + ${he}-node-selected,&${ye}-disabled${ye}-selected ${he}-node-content-wrapper`]:{backgroundColor:Se},[`${he}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${ye}-disabled)`]:{[`${he}-node-content-wrapper`]:{"&:hover":{color:pe.nodeHoverColor}}},[`&-active ${he}-node-content-wrapper`]:{background:pe.controlItemBgHover},[`&:not(${ye}-disabled).filter-node ${he}-title`]:{color:pe.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${he}-draggable-icon`]:{flexShrink:0,width:xe,textAlign:"center",visibility:"visible",color:Ae},[`&${ye}-disabled ${he}-draggable-icon`]:{visibility:"hidden"}}},[`${he}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ke}},[`${he}-draggable-icon`]:{visibility:"hidden"},[`${he}-switcher, ${he}-checkbox`]:{marginInlineEnd:pe.calc(pe.calc(xe).sub(pe.controlInteractiveSize)).div(2).equal()},[`${he}-switcher`]:Object.assign(Object.assign({},oe(ue,pe)),{position:"relative",flex:"none",alignSelf:"stretch",width:xe,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${pe.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:xe,height:xe,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:pe.borderRadius,transition:`all ${pe.motionDurationSlow}`},[`&:not(${he}-switcher-noop):hover:before`]:{backgroundColor:pe.colorBgTextHover},[`&_close ${he}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:pe.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:pe.calc(xe).div(2).equal(),bottom:pe.calc(ge).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${pe.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:pe.calc(pe.calc(xe).div(2).equal()).mul(.8).equal(),height:pe.calc(xe).div(2).equal(),borderBottom:`1px solid ${pe.colorBorder}`,content:'""'}}}),[`${he}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:xe,paddingBlock:0,paddingInline:pe.paddingXS,background:"transparent",borderRadius:pe.borderRadius,cursor:"pointer",transition:`all ${pe.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},ee(ue,pe)),{"&:hover":{backgroundColor:Be},[`&${he}-node-selected`]:{color:pe.nodeSelectedColor,backgroundColor:De},[`${he}-iconEle`]:{display:"inline-block",width:xe,height:xe,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${he}-unselectable ${he}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ye}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${pe.colorPrimary}`},"&-show-line":{[`${he}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:pe.calc(xe).div(2).equal(),bottom:pe.calc(ge).mul(-1).equal(),borderInlineEnd:`1px solid ${pe.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${he}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ye}-leaf-last ${he}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,te.unit)(pe.calc(xe).div(2).equal())} !important`}})}},x=function(ue,pe){let he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const ye=`.${ue}`,ge=`${ye}-treenode`,xe=pe.calc(pe.paddingXS).div(2).equal(),ke=(0,be.mergeToken)(pe,{treeCls:ye,treeNodeCls:ge,treeNodePadding:xe});return[ce(ue,ke),he&&E(ke)].filter(Boolean)},ae=ue=>{const{controlHeightSM:pe,controlItemBgHover:he,controlItemBgActive:ye}=ue,ge=pe;return{titleHeight:ge,indentSize:ge,nodeHoverBg:he,nodeHoverColor:ue.colorText,nodeSelectedBg:ye,nodeSelectedColor:ue.colorText}},re=ue=>{const{colorTextLightSolid:pe,colorPrimary:he}=ue;return Object.assign(Object.assign({},ae(ue)),{directoryNodeSelectedColor:pe,directoryNodeSelectedBg:he})};var se=(0,z.I$)("Tree",(ue,pe)=>{let{prefixCls:he}=pe;return[{[ue.componentCls]:(0,Ot.C2)(`${he}-checkbox`,ue)},x(he,ue),(0,je.Z)(ue)]},re)},85278:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return pe}});var te=Te(59301),Ot=Te(54476),y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},je=y,be=Te(7657),z=function(ye,ge){return te.createElement(be.Z,(0,Ot.Z)({},ye,{ref:ge,icon:je}))},E=te.forwardRef(z),ie=E,oe=Te(52671),ee=Te(58617),ce=Te(15075),x=Te(43531),ae=Te(92310),re=Te.n(ae),se=Te(22703),pe=he=>{const{prefixCls:ye,switcherIcon:ge,treeNodeProps:xe,showLine:ke,switcherLoadingIcon:De}=he,{isLeaf:Be,expanded:Ae,loading:Se}=xe;if(Se)return te.isValidElement(De)?De:te.createElement(ee.Z,{className:`${ye}-switcher-loading-icon`});let Ee;if(ke&&typeof ke=="object"&&(Ee=ke.showLeafIcon),Be){if(!ke)return null;if(typeof Ee!="boolean"&&Ee){const Le=typeof Ee=="function"?Ee(xe):Ee,Ne=`${ye}-switcher-line-custom-icon`;return te.isValidElement(Le)?(0,se.Tm)(Le,{className:re()(Le.props.className||"",Ne)}):Le}return Ee?te.createElement(oe.Z,{className:`${ye}-switcher-line-icon`}):te.createElement("span",{className:`${ye}-switcher-leaf-line`})}const Oe=`${ye}-switcher-icon`,Pe=typeof ge=="function"?ge(xe):ge;return te.isValidElement(Pe)?(0,se.Tm)(Pe,{className:re()(Pe.props.className||"",Oe)}):Pe!==void 0?Pe:ke?Ae?te.createElement(ce.Z,{className:`${ye}-switcher-line-icon`}):te.createElement(x.Z,{className:`${ye}-switcher-line-icon`}):te.createElement(ie,{className:Oe})}},94968:function(In,Yt,Te){"use strict";Te.d(Yt,{default:function(){return _t}});var te=Te(59301),Ot=Te(94480),y=Te(4676),je=Te(92310),be=Te.n(je),z=Te(54476),E=Te(67732),ie=Te(83652),oe=Te(31226),ee=Te(42403),ce=Te(158),x=Te(20068),ae=Te(33885),re=Te(75931),se=Te(76190),ue=Te(75044),pe=Te(3202),he=Te(26112),ye=Te(48736),ge=function(bt,Ut){if(bt&&Ut){var Lt=Array.isArray(Ut)?Ut:Ut.split(","),qt=bt.name||"",Ft=bt.type||"",$t=Ft.replace(/\/.*$/,"");return Lt.some(function(Zt){var Xt=Zt.trim();if(/^\*(\/\*)?$/.test(Zt))return!0;if(Xt.charAt(0)==="."){var Tn=qt.toLowerCase(),On=Xt.toLowerCase(),Mn=[On];return(On===".jpg"||On===".jpeg")&&(Mn=[".jpg",".jpeg"]),Mn.some(function(rr){return Tn.endsWith(rr)})}return/\/\*$/.test(Xt)?$t===Xt.replace(/\/.*$/,""):Ft===Xt?!0:/^\w+$/.test(Xt)?((0,ye.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Xt,"'.Skip for check.")),!0):!1})}return!0};function xe(bt,Ut){var Lt="cannot ".concat(bt.method," ").concat(bt.action," ").concat(Ut.status,"'"),qt=new Error(Lt);return qt.status=Ut.status,qt.method=bt.method,qt.url=bt.action,qt}function ke(bt){var Ut=bt.responseText||bt.response;if(!Ut)return Ut;try{return JSON.parse(Ut)}catch(Lt){return Ut}}function De(bt){var Ut=new XMLHttpRequest;bt.onProgress&&Ut.upload&&(Ut.upload.onprogress=function($t){$t.total>0&&($t.percent=$t.loaded/$t.total*100),bt.onProgress($t)});var Lt=new FormData;bt.data&&Object.keys(bt.data).forEach(function(Ft){var $t=bt.data[Ft];if(Array.isArray($t)){$t.forEach(function(Zt){Lt.append("".concat(Ft,"[]"),Zt)});return}Lt.append(Ft,$t)}),bt.file instanceof Blob?Lt.append(bt.filename,bt.file,bt.file.name):Lt.append(bt.filename,bt.file),Ut.onerror=function($t){bt.onError($t)},Ut.onload=function(){return Ut.status<200||Ut.status>=300?bt.onError(xe(bt,Ut),ke(Ut)):bt.onSuccess(ke(Ut),Ut)},Ut.open(bt.method,bt.action,!0),bt.withCredentials&&"withCredentials"in Ut&&(Ut.withCredentials=!0);var qt=bt.headers||{};return qt["X-Requested-With"]!==null&&Ut.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(qt).forEach(function(Ft){qt[Ft]!==null&&Ut.setRequestHeader(Ft,qt[Ft])}),Ut.send(Lt),{abort:function(){Ut.abort()}}}var Be=function(){var bt=(0,pe.Z)((0,ue.Z)().mark(function Ut(Lt,qt){var Ft,$t,Zt,Xt,Tn,On,Mn,rr;return(0,ue.Z)().wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:On=function(){return On=(0,pe.Z)((0,ue.Z)().mark(function Qn(Fn){return(0,ue.Z)().wrap(function(wr){for(;;)switch(wr.prev=wr.next){case 0:return wr.abrupt("return",new Promise(function(Sr){Fn.file(function(Cr){qt(Cr)?(Fn.fullPath&&!Cr.webkitRelativePath&&(Object.defineProperties(Cr,{webkitRelativePath:{writable:!0}}),Cr.webkitRelativePath=Fn.fullPath.replace(/^\//,""),Object.defineProperties(Cr,{webkitRelativePath:{writable:!1}})),Sr(Cr)):Sr(null)})}));case 1:case"end":return wr.stop()}},Qn)})),On.apply(this,arguments)},Tn=function(Qn){return On.apply(this,arguments)},Xt=function(){return Xt=(0,pe.Z)((0,ue.Z)().mark(function Qn(Fn){var pr,wr,Sr,Cr,Jn;return(0,ue.Z)().wrap(function(An){for(;;)switch(An.prev=An.next){case 0:pr=Fn.createReader(),wr=[];case 2:return An.next=5,new Promise(function(xn){pr.readEntries(xn,function(){return xn([])})});case 5:if(Sr=An.sent,Cr=Sr.length,Cr){An.next=9;break}return An.abrupt("break",12);case 9:for(Jn=0;Jn<Cr;Jn++)wr.push(Sr[Jn]);An.next=2;break;case 12:return An.abrupt("return",wr);case 13:case"end":return An.stop()}},Qn)})),Xt.apply(this,arguments)},Zt=function(Qn){return Xt.apply(this,arguments)},Ft=[],$t=[],Lt.forEach(function(er){return $t.push(er.webkitGetAsEntry())}),Mn=function(){var er=(0,pe.Z)((0,ue.Z)().mark(function Qn(Fn,pr){var wr,Sr;return(0,ue.Z)().wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:if(Fn){Jn.next=2;break}return Jn.abrupt("return");case 2:if(Fn.path=pr||"",!Fn.isFile){Jn.next=10;break}return Jn.next=6,Tn(Fn);case 6:wr=Jn.sent,wr&&Ft.push(wr),Jn.next=15;break;case 10:if(!Fn.isDirectory){Jn.next=15;break}return Jn.next=13,Zt(Fn);case 13:Sr=Jn.sent,$t.push.apply($t,(0,Ot.Z)(Sr));case 15:case"end":return Jn.stop()}},Qn)}));return function(Fn,pr){return er.apply(this,arguments)}}(),rr=0;case 9:if(!(rr<$t.length)){hr.next=15;break}return hr.next=12,Mn($t[rr]);case 12:rr++,hr.next=9;break;case 15:return hr.abrupt("return",Ft);case 16:case"end":return hr.stop()}},Ut)}));return function(Lt,qt){return bt.apply(this,arguments)}}(),Ae=Be,Se=+new Date,Ee=0;function Oe(){return"rc-upload-".concat(Se,"-").concat(++Ee)}var Pe=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Le=function(bt){(0,ee.Z)(Lt,bt);var Ut=(0,ce.Z)(Lt);function Lt(){var qt;(0,E.Z)(this,Lt);for(var Ft=arguments.length,$t=new Array(Ft),Zt=0;Zt<Ft;Zt++)$t[Zt]=arguments[Zt];return qt=Ut.call.apply(Ut,[this].concat($t)),(0,x.Z)((0,oe.Z)(qt),"state",{uid:Oe()}),(0,x.Z)((0,oe.Z)(qt),"reqs",{}),(0,x.Z)((0,oe.Z)(qt),"fileInput",void 0),(0,x.Z)((0,oe.Z)(qt),"_isMounted",void 0),(0,x.Z)((0,oe.Z)(qt),"onChange",function(Xt){var Tn=qt.props,On=Tn.accept,Mn=Tn.directory,rr=Xt.target.files,lr=(0,Ot.Z)(rr).filter(function(hr){return!Mn||ge(hr,On)});qt.uploadFiles(lr),qt.reset()}),(0,x.Z)((0,oe.Z)(qt),"onClick",function(Xt){var Tn=qt.fileInput;if(Tn){var On=Xt.target,Mn=qt.props.onClick;if(On&&On.tagName==="BUTTON"){var rr=Tn.parentNode;rr.focus(),On.blur()}Tn.click(),Mn&&Mn(Xt)}}),(0,x.Z)((0,oe.Z)(qt),"onKeyDown",function(Xt){Xt.key==="Enter"&&qt.onClick(Xt)}),(0,x.Z)((0,oe.Z)(qt),"onFileDrop",function(){var Xt=(0,pe.Z)((0,ue.Z)().mark(function Tn(On){var Mn,rr,lr;return(0,ue.Z)().wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(Mn=qt.props.multiple,On.preventDefault(),On.type!=="dragover"){er.next=4;break}return er.abrupt("return");case 4:if(!qt.props.directory){er.next=11;break}return er.next=7,Ae(Array.prototype.slice.call(On.dataTransfer.items),function(Qn){return ge(Qn,qt.props.accept)});case 7:rr=er.sent,qt.uploadFiles(rr),er.next=14;break;case 11:lr=(0,Ot.Z)(On.dataTransfer.files).filter(function(Qn){return ge(Qn,qt.props.accept)}),Mn===!1&&(lr=lr.slice(0,1)),qt.uploadFiles(lr);case 14:case"end":return er.stop()}},Tn)}));return function(Tn){return Xt.apply(this,arguments)}}()),(0,x.Z)((0,oe.Z)(qt),"uploadFiles",function(Xt){var Tn=(0,Ot.Z)(Xt),On=Tn.map(function(Mn){return Mn.uid=Oe(),qt.processFile(Mn,Tn)});Promise.all(On).then(function(Mn){var rr=qt.props.onBatchStart;rr==null||rr(Mn.map(function(lr){var hr=lr.origin,er=lr.parsedFile;return{file:hr,parsedFile:er}})),Mn.filter(function(lr){return lr.parsedFile!==null}).forEach(function(lr){qt.post(lr)})})}),(0,x.Z)((0,oe.Z)(qt),"processFile",function(){var Xt=(0,pe.Z)((0,ue.Z)().mark(function Tn(On,Mn){var rr,lr,hr,er,Qn,Fn,pr,wr,Sr;return(0,ue.Z)().wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:if(rr=qt.props.beforeUpload,lr=On,!rr){Jn.next=14;break}return Jn.prev=3,Jn.next=6,rr(On,Mn);case 6:lr=Jn.sent,Jn.next=12;break;case 9:Jn.prev=9,Jn.t0=Jn.catch(3),lr=!1;case 12:if(lr!==!1){Jn.next=14;break}return Jn.abrupt("return",{origin:On,parsedFile:null,action:null,data:null});case 14:if(hr=qt.props.action,typeof hr!="function"){Jn.next=21;break}return Jn.next=18,hr(On);case 18:er=Jn.sent,Jn.next=22;break;case 21:er=hr;case 22:if(Qn=qt.props.data,typeof Qn!="function"){Jn.next=29;break}return Jn.next=26,Qn(On);case 26:Fn=Jn.sent,Jn.next=30;break;case 29:Fn=Qn;case 30:return pr=((0,se.Z)(lr)==="object"||typeof lr=="string")&&lr?lr:On,pr instanceof File?wr=pr:wr=new File([pr],On.name,{type:On.type}),Sr=wr,Sr.uid=On.uid,Jn.abrupt("return",{origin:On,data:Fn,parsedFile:Sr,action:er});case 35:case"end":return Jn.stop()}},Tn,null,[[3,9]])}));return function(Tn,On){return Xt.apply(this,arguments)}}()),(0,x.Z)((0,oe.Z)(qt),"saveFileInput",function(Xt){qt.fileInput=Xt}),qt}return(0,ie.Z)(Lt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ft){var $t=this,Zt=Ft.data,Xt=Ft.origin,Tn=Ft.action,On=Ft.parsedFile;if(this._isMounted){var Mn=this.props,rr=Mn.onStart,lr=Mn.customRequest,hr=Mn.name,er=Mn.headers,Qn=Mn.withCredentials,Fn=Mn.method,pr=Xt.uid,wr=lr||De,Sr={action:Tn,filename:hr,data:Zt,file:On,headers:er,withCredentials:Qn,method:Fn||"post",onProgress:function(Jn){var yr=$t.props.onProgress;yr==null||yr(Jn,On)},onSuccess:function(Jn,yr){var An=$t.props.onSuccess;An==null||An(Jn,On,yr),delete $t.reqs[pr]},onError:function(Jn,yr){var An=$t.props.onError;An==null||An(Jn,yr,On),delete $t.reqs[pr]}};rr(Xt),this.reqs[pr]=wr(Sr)}}},{key:"reset",value:function(){this.setState({uid:Oe()})}},{key:"abort",value:function(Ft){var $t=this.reqs;if(Ft){var Zt=Ft.uid?Ft.uid:Ft;$t[Zt]&&$t[Zt].abort&&$t[Zt].abort(),delete $t[Zt]}else Object.keys($t).forEach(function(Xt){$t[Xt]&&$t[Xt].abort&&$t[Xt].abort(),delete $t[Xt]})}},{key:"render",value:function(){var Ft=this.props,$t=Ft.component,Zt=Ft.prefixCls,Xt=Ft.className,Tn=Ft.classNames,On=Tn===void 0?{}:Tn,Mn=Ft.disabled,rr=Ft.id,lr=Ft.name,hr=Ft.style,er=Ft.styles,Qn=er===void 0?{}:er,Fn=Ft.multiple,pr=Ft.accept,wr=Ft.capture,Sr=Ft.children,Cr=Ft.directory,Jn=Ft.openFileDialogOnClick,yr=Ft.onMouseEnter,An=Ft.onMouseLeave,xn=Ft.hasControlInside,tr=(0,re.Z)(Ft,Pe),br=be()((0,x.Z)((0,x.Z)((0,x.Z)({},Zt,!0),"".concat(Zt,"-disabled"),Mn),Xt,Xt)),Er=Cr?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Hr=Mn?{}:{onClick:Jn?this.onClick:function(){},onKeyDown:Jn?this.onKeyDown:function(){},onMouseEnter:yr,onMouseLeave:An,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:xn?void 0:"0"};return te.createElement($t,(0,z.Z)({},Hr,{className:br,role:xn?void 0:"button",style:hr}),te.createElement("input",(0,z.Z)({},(0,he.Z)(tr,{aria:!0,data:!0}),{id:rr,name:lr,disabled:Mn,type:"file",ref:this.saveFileInput,onClick:function(Ur){return Ur.stopPropagation()},key:this.state.uid,style:(0,ae.Z)({display:"none"},Qn.input),className:On.input,accept:pr},Er,{multiple:Fn,onChange:this.onChange},wr!=null?{capture:wr}:{})),Sr)}}]),Lt}(te.Component),Ne=Le;function me(){}var Ve=function(bt){(0,ee.Z)(Lt,bt);var Ut=(0,ce.Z)(Lt);function Lt(){var qt;(0,E.Z)(this,Lt);for(var Ft=arguments.length,$t=new Array(Ft),Zt=0;Zt<Ft;Zt++)$t[Zt]=arguments[Zt];return qt=Ut.call.apply(Ut,[this].concat($t)),(0,x.Z)((0,oe.Z)(qt),"uploader",void 0),(0,x.Z)((0,oe.Z)(qt),"saveUploader",function(Xt){qt.uploader=Xt}),qt}return(0,ie.Z)(Lt,[{key:"abort",value:function(Ft){this.uploader.abort(Ft)}},{key:"render",value:function(){return te.createElement(Ne,(0,z.Z)({},this.props,{ref:this.saveUploader}))}}]),Lt}(te.Component);(0,x.Z)(Ve,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:me,onError:me,onSuccess:me,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Ze=Ve,We=Ze,nt=Te(18929),_e=Te(48755),Ue=Te(2171),tt=Te(9017),rt=Te(85981),et=Te(63356),Ke=Te(34961),Ye=Te(16931),Xe=Te(51636),ot=Te(36237),ft=bt=>{const{componentCls:Ut,iconCls:Lt}=bt;return{[`${Ut}-wrapper`]:{[`${Ut}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:bt.colorFillAlter,border:`${(0,ot.unit)(bt.lineWidth)} dashed ${bt.colorBorder}`,borderRadius:bt.borderRadiusLG,cursor:"pointer",transition:`border-color ${bt.motionDurationSlow}`,[Ut]:{padding:bt.padding},[`${Ut}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:bt.borderRadiusLG,"&:focus-visible":{outline:`${(0,ot.unit)(bt.lineWidthFocus)} solid ${bt.colorPrimaryBorder}`}},[`${Ut}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
&:not(${Ut}-disabled):hover,
&-hover:not(${Ut}-disabled)
`]:{borderColor:bt.colorPrimaryHover},[`p${Ut}-drag-icon`]:{marginBottom:bt.margin,[Lt]:{color:bt.colorPrimary,fontSize:bt.uploadThumbnailSize}},[`p${Ut}-text`]:{margin:`0 0 ${(0,ot.unit)(bt.marginXXS)}`,color:bt.colorTextHeading,fontSize:bt.fontSizeLG},[`p${Ut}-hint`]:{color:bt.colorTextDescription,fontSize:bt.fontSize},[`&${Ut}-disabled`]:{[`p${Ut}-drag-icon ${Lt},
p${Ut}-text,
p${Ut}-hint
`]:{color:bt.colorTextDisabled}}}}}},qe=bt=>{const{componentCls:Ut,iconCls:Lt,fontSize:qt,lineHeight:Ft,calc:$t}=bt,Zt=`${Ut}-list-item`,Xt=`${Zt}-actions`,Tn=`${Zt}-action`;return{[`${Ut}-wrapper`]:{[`${Ut}-list`]:Object.assign(Object.assign({},(0,et.dF)()),{lineHeight:bt.lineHeight,[Zt]:{position:"relative",height:$t(bt.lineHeight).mul(qt).equal(),marginTop:bt.marginXS,fontSize:qt,display:"flex",alignItems:"center",transition:`background-color ${bt.motionDurationSlow}`,borderRadius:bt.borderRadiusSM,"&:hover":{backgroundColor:bt.controlItemBgHover},[`${Zt}-name`]:Object.assign(Object.assign({},et.vS),{padding:`0 ${(0,ot.unit)(bt.paddingXS)}`,lineHeight:Ft,flex:"auto",transition:`all ${bt.motionDurationSlow}`}),[Xt]:{whiteSpace:"nowrap",[Tn]:{opacity:0},[Lt]:{color:bt.actionsColor,transition:`all ${bt.motionDurationSlow}`},[`
${Tn}:focus-visible,
&.picture ${Tn}
`]:{opacity:1}},[`${Ut}-icon ${Lt}`]:{color:bt.colorTextDescription,fontSize:qt},[`${Zt}-progress`]:{position:"absolute",bottom:bt.calc(bt.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:$t(qt).add(bt.paddingXS).equal(),fontSize:qt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Zt}:hover ${Tn}`]:{opacity:1},[`${Zt}-error`]:{color:bt.colorError,[`${Zt}-name, ${Ut}-icon ${Lt}`]:{color:bt.colorError},[Xt]:{[`${Lt}, ${Lt}:hover`]:{color:bt.colorError},[Tn]:{opacity:1}}},[`${Ut}-list-item-container`]:{transition:`opacity ${bt.motionDurationSlow}, height ${bt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Fe=Te(99495),ne=bt=>{const{componentCls:Ut}=bt,Lt=new ot.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:bt.calc(bt.marginXS).div(-2).equal()}}),qt=new ot.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:bt.calc(bt.marginXS).div(-2).equal()}}),Ft=`${Ut}-animate-inline`;return[{[`${Ut}-wrapper`]:{[`${Ft}-appear, ${Ft}-enter, ${Ft}-leave`]:{animationDuration:bt.motionDurationSlow,animationTimingFunction:bt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ft}-appear, ${Ft}-enter`]:{animationName:Lt},[`${Ft}-leave`]:{animationName:qt}}},{[`${Ut}-wrapper`]:(0,Fe.J$)(bt)},Lt,qt]},fe=Te(68361);const Me=bt=>{const{componentCls:Ut,iconCls:Lt,uploadThumbnailSize:qt,uploadProgressOffset:Ft,calc:$t}=bt,Zt=`${Ut}-list`,Xt=`${Zt}-item`;return{[`${Ut}-wrapper`]:{[`
${Zt}${Zt}-picture,
${Zt}${Zt}-picture-card,
${Zt}${Zt}-picture-circle
`]:{[Xt]:{position:"relative",height:$t(qt).add($t(bt.lineWidth).mul(2)).add($t(bt.paddingXS).mul(2)).equal(),padding:bt.paddingXS,border:`${(0,ot.unit)(bt.lineWidth)} ${bt.lineType} ${bt.colorBorder}`,borderRadius:bt.borderRadiusLG,"&:hover":{background:"transparent"},[`${Xt}-thumbnail`]:Object.assign(Object.assign({},et.vS),{width:qt,height:qt,lineHeight:(0,ot.unit)($t(qt).add(bt.paddingSM).equal()),textAlign:"center",flex:"none",[Lt]:{fontSize:bt.fontSizeHeading2,color:bt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Xt}-progress`]:{bottom:Ft,width:`calc(100% - ${(0,ot.unit)($t(bt.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:$t(qt).add(bt.paddingXS).equal()}},[`${Xt}-error`]:{borderColor:bt.colorError,[`${Xt}-thumbnail ${Lt}`]:{[`svg path[fill='${fe.blue[0]}']`]:{fill:bt.colorErrorBg},[`svg path[fill='${fe.blue.primary}']`]:{fill:bt.colorError}}},[`${Xt}-uploading`]:{borderStyle:"dashed",[`${Xt}-name`]:{marginBottom:Ft}}},[`${Zt}${Zt}-picture-circle ${Xt}`]:{[`&, &::before, ${Xt}-thumbnail`]:{borderRadius:"50%"}}}}},ze=bt=>{const{componentCls:Ut,iconCls:Lt,fontSizeLG:qt,colorTextLightSolid:Ft,calc:$t}=bt,Zt=`${Ut}-list`,Xt=`${Zt}-item`,Tn=bt.uploadPicCardSize;return{[`
${Ut}-wrapper${Ut}-picture-card-wrapper,
${Ut}-wrapper${Ut}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,et.dF)()),{display:"block",[`${Ut}${Ut}-select`]:{width:Tn,height:Tn,textAlign:"center",verticalAlign:"top",backgroundColor:bt.colorFillAlter,border:`${(0,ot.unit)(bt.lineWidth)} dashed ${bt.colorBorder}`,borderRadius:bt.borderRadiusLG,cursor:"pointer",transition:`border-color ${bt.motionDurationSlow}`,[`> ${Ut}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ut}-disabled):hover`]:{borderColor:bt.colorPrimary}},[`${Zt}${Zt}-picture-card, ${Zt}${Zt}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:bt.marginXS,marginInlineEnd:bt.marginXS}},"@supports (gap: 1px)":{gap:bt.marginXS},[`${Zt}-item-container`]:{display:"inline-block",width:Tn,height:Tn,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[Xt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,ot.unit)($t(bt.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,ot.unit)($t(bt.paddingXS).mul(2).equal())})`,backgroundColor:bt.colorBgMask,opacity:0,transition:`all ${bt.motionDurationSlow}`,content:'" "'}},[`${Xt}:hover`]:{[`&::before, ${Xt}-actions`]:{opacity:1}},[`${Xt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${bt.motionDurationSlow}`,[`
${Lt}-eye,
${Lt}-download,
${Lt}-delete
`]:{zIndex:10,width:qt,margin:`0 ${(0,ot.unit)(bt.marginXXS)}`,fontSize:qt,cursor:"pointer",transition:`all ${bt.motionDurationSlow}`,color:Ft,"&:hover":{color:Ft},svg:{verticalAlign:"baseline"}}},[`${Xt}-thumbnail, ${Xt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Xt}-name`]:{display:"none",textAlign:"center"},[`${Xt}-file + ${Xt}-name`]:{position:"absolute",bottom:bt.margin,display:"block",width:`calc(100% - ${(0,ot.unit)($t(bt.paddingXS).mul(2).equal())})`},[`${Xt}-uploading`]:{[`&${Xt}`]:{backgroundColor:bt.colorFillAlter},[`&::before, ${Lt}-eye, ${Lt}-download, ${Lt}-delete`]:{display:"none"}},[`${Xt}-progress`]:{bottom:bt.marginXL,width:`calc(100% - ${(0,ot.unit)($t(bt.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${Ut}-wrapper${Ut}-picture-circle-wrapper`]:{[`${Ut}${Ut}-select`]:{borderRadius:"50%"}}}};var ve=bt=>{const{componentCls:Ut}=bt;return{[`${Ut}-rtl`]:{direction:"rtl"}}};const Ie=bt=>{const{componentCls:Ut,colorTextDisabled:Lt}=bt;return{[`${Ut}-wrapper`]:Object.assign(Object.assign({},(0,et.Wf)(bt)),{[Ut]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ut}-select`]:{display:"inline-block"},[`${Ut}-hidden`]:{display:"none"},[`${Ut}-disabled`]:{color:Lt,cursor:"not-allowed"}})}},$e=bt=>({actionsColor:bt.colorTextDescription});var Ge=(0,Ye.I$)("Upload",bt=>{const{fontSizeHeading3:Ut,fontHeight:Lt,lineWidth:qt,controlHeightLG:Ft,calc:$t}=bt,Zt=(0,Xe.mergeToken)(bt,{uploadThumbnailSize:$t(Ut).mul(2).equal(),uploadProgressOffset:$t($t(Lt).div(2)).add(qt).equal(),uploadPicCardSize:$t(Ft).mul(2.55).equal()});return[Ie(Zt),ft(Zt),Me(Zt),ze(Zt),qe(Zt),ne(Zt),ve(Zt),(0,Ke.Z)(Zt)]},$e),Je={icon:function(Ut,Lt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Lt}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Ut}}]}},name:"file",theme:"twotone"},ut=Je,lt=Te(7657),vt=function(Ut,Lt){return te.createElement(lt.Z,(0,z.Z)({},Ut,{ref:Lt,icon:ut}))},ct=te.forwardRef(vt),st=ct,At=Te(58617),mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Dt=mt,jt=function(Ut,Lt){return te.createElement(lt.Z,(0,z.Z)({},Ut,{ref:Lt,icon:Dt}))},Et=te.forwardRef(jt),kt=Et,Nt={icon:function(Ut,Lt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Ut}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Lt}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Lt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Lt}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Ut}}]}},name:"picture",theme:"twotone"},yt=Nt,Pt=function(Ut,Lt){return te.createElement(lt.Z,(0,z.Z)({},Ut,{ref:Lt,icon:yt}))},Kt=te.forwardRef(Pt),nn=Kt,xt=Te(77900),Ct=Te(2738),zt=Te(40192),en=Te(86641),un=Te(22703),Cn=Te(7939);function Nn(bt){return Object.assign(Object.assign({},bt),{lastModified:bt.lastModified,lastModifiedDate:bt.lastModifiedDate,name:bt.name,size:bt.size,type:bt.type,uid:bt.uid,percent:0,originFileObj:bt})}function _n(bt,Ut){const Lt=(0,Ot.Z)(Ut),qt=Lt.findIndex(Ft=>{let{uid:$t}=Ft;return $t===bt.uid});return qt===-1?Lt.push(bt):Lt[qt]=bt,Lt}function yn(bt,Ut){const Lt=bt.uid!==void 0?"uid":"name";return Ut.filter(qt=>qt[Lt]===bt[Lt])[0]}function Rn(bt,Ut){const Lt=bt.uid!==void 0?"uid":"name",qt=Ut.filter(Ft=>Ft[Lt]!==bt[Lt]);return qt.length===Ut.length?null:qt}const pn=function(){const Ut=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),qt=Ut[Ut.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(qt)||[""])[0]},on=bt=>bt.indexOf("image/")===0,Vt=bt=>{if(bt.type&&!bt.thumbUrl)return on(bt.type);const Ut=bt.thumbUrl||bt.url||"",Lt=pn(Ut);return/^data:image\//.test(Ut)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Lt)?!0:!(/^data:/.test(Ut)||Lt)},Wt=200;function Ht(bt){return new Promise(Ut=>{if(!bt.type||!on(bt.type)){Ut("");return}const Lt=document.createElement("canvas");Lt.width=Wt,Lt.height=Wt,Lt.style.cssText=`position: fixed; left: 0; top: 0; width: ${Wt}px; height: ${Wt}px; z-index: 9999; display: none;`,document.body.appendChild(Lt);const qt=Lt.getContext("2d"),Ft=new Image;if(Ft.onload=()=>{const{width:$t,height:Zt}=Ft;let Xt=Wt,Tn=Wt,On=0,Mn=0;$t>Zt?(Tn=Zt*(Wt/$t),Mn=-(Tn-Xt)/2):(Xt=$t*(Wt/Zt),On=-(Xt-Tn)/2),qt.drawImage(Ft,On,Mn,Xt,Tn);const rr=Lt.toDataURL();document.body.removeChild(Lt),window.URL.revokeObjectURL(Ft.src),Ut(rr)},Ft.crossOrigin="anonymous",bt.type.startsWith("image/svg+xml")){const $t=new FileReader;$t.onload=()=>{$t.result&&typeof $t.result=="string"&&(Ft.src=$t.result)},$t.readAsDataURL(bt)}else if(bt.type.startsWith("image/gif")){const $t=new FileReader;$t.onload=()=>{$t.result&&Ut($t.result)},$t.readAsDataURL(bt)}else Ft.src=window.URL.createObjectURL(bt)})}var hn=Te(26227),cn=Te(41464),mn=Te(15277),Bn=Te(89787),Pn=Te(25399),Ln=te.forwardRef((bt,Ut)=>{let{prefixCls:Lt,className:qt,style:Ft,locale:$t,listType:Zt,file:Xt,items:Tn,progress:On,iconRender:Mn,actionIconRender:rr,itemRender:lr,isImgUrl:hr,showPreviewIcon:er,showRemoveIcon:Qn,showDownloadIcon:Fn,previewIcon:pr,removeIcon:wr,downloadIcon:Sr,extra:Cr,onPreview:Jn,onDownload:yr,onClose:An}=bt;var xn,tr;const{status:br}=Xt,[Er,Hr]=te.useState(br);te.useEffect(()=>{br!=="removed"&&Hr(br)},[br]);const[kr,Ur]=te.useState(!1);te.useEffect(()=>{const zn=setTimeout(()=>{Ur(!0)},300);return()=>{clearTimeout(zn)}},[]);const Tr=Mn(Xt);let ei=te.createElement("div",{className:`${Lt}-icon`},Tr);if(Zt==="picture"||Zt==="picture-card"||Zt==="picture-circle")if(Er==="uploading"||!Xt.thumbUrl&&!Xt.url){const zn=be()(`${Lt}-list-item-thumbnail`,{[`${Lt}-list-item-file`]:Er!=="uploading"});ei=te.createElement("div",{className:zn},Tr)}else{const zn=hr!=null&&hr(Xt)?te.createElement("img",{src:Xt.thumbUrl||Xt.url,alt:Xt.name,className:`${Lt}-list-item-image`,crossOrigin:Xt.crossOrigin}):Tr,qn=be()(`${Lt}-list-item-thumbnail`,{[`${Lt}-list-item-file`]:hr&&!hr(Xt)});ei=te.createElement("a",{className:qn,onClick:or=>Jn(Xt,or),href:Xt.url||Xt.thumbUrl,target:"_blank",rel:"noopener noreferrer"},zn)}const si=be()(`${Lt}-list-item`,`${Lt}-list-item-${Er}`),wi=typeof Xt.linkProps=="string"?JSON.parse(Xt.linkProps):Xt.linkProps,Kr=(typeof Qn=="function"?Qn(Xt):Qn)?rr((typeof wr=="function"?wr(Xt):wr)||te.createElement(hn.Z,null),()=>An(Xt),Lt,$t.removeFile,!0):null,gi=(typeof Fn=="function"?Fn(Xt):Fn)&&Er==="done"?rr((typeof Sr=="function"?Sr(Xt):Sr)||te.createElement(cn.Z,null),()=>yr(Xt),Lt,$t.downloadFile):null,di=Zt!=="picture-card"&&Zt!=="picture-circle"&&te.createElement("span",{key:"download-delete",className:be()(`${Lt}-list-item-actions`,{picture:Zt==="picture"})},gi,Kr),bi=typeof Cr=="function"?Cr(Xt):Cr,Or=bi&&te.createElement("span",{className:`${Lt}-list-item-extra`},bi),Pr=be()(`${Lt}-list-item-name`),ur=Xt.url?te.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Pr,title:Xt.name},wi,{href:Xt.url,onClick:zn=>Jn(Xt,zn)}),Xt.name,Or):te.createElement("span",{key:"view",className:Pr,onClick:zn=>Jn(Xt,zn),title:Xt.name},Xt.name,Or),Dn=(typeof er=="function"?er(Xt):er)&&(Xt.url||Xt.thumbUrl)?te.createElement("a",{href:Xt.url||Xt.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:zn=>Jn(Xt,zn),title:$t.previewFile},typeof pr=="function"?pr(Xt):pr||te.createElement(mn.Z,null)):null,Un=(Zt==="picture-card"||Zt==="picture-circle")&&Er!=="uploading"&&te.createElement("span",{className:`${Lt}-list-item-actions`},Dn,Er==="done"&&gi,Kr),{getPrefixCls:Vn}=te.useContext(_e.E_),$n=Vn(),cr=te.createElement("div",{className:si},ei,ur,di,Un,kr&&te.createElement(xt.default,{motionName:`${$n}-fade`,visible:Er==="uploading",motionDeadline:2e3},zn=>{let{className:qn}=zn;const or="percent"in Xt?te.createElement(Bn.Z,Object.assign({},On,{type:"line",percent:Xt.percent,"aria-label":Xt["aria-label"],"aria-labelledby":Xt["aria-labelledby"]})):null;return te.createElement("div",{className:be()(`${Lt}-list-item-progress`,qn)},or)})),jr=Xt.response&&typeof Xt.response=="string"?Xt.response:((xn=Xt.error)===null||xn===void 0?void 0:xn.statusText)||((tr=Xt.error)===null||tr===void 0?void 0:tr.message)||$t.uploadError,Gn=Er==="error"?te.createElement(Pn.Z,{title:jr,getPopupContainer:zn=>zn.parentNode},cr):cr;return te.createElement("div",{className:be()(`${Lt}-list-item-container`,qt),style:Ft,ref:Ut},lr?lr(Gn,Xt,Tn,{download:yr.bind(null,Xt),preview:Jn.bind(null,Xt),remove:An.bind(null,Xt)}):Gn)});const Kn=(bt,Ut)=>{const{listType:Lt="text",previewFile:qt=Ht,onPreview:Ft,onDownload:$t,onRemove:Zt,locale:Xt,iconRender:Tn,isImageUrl:On=Vt,prefixCls:Mn,items:rr=[],showPreviewIcon:lr=!0,showRemoveIcon:hr=!0,showDownloadIcon:er=!1,removeIcon:Qn,previewIcon:Fn,downloadIcon:pr,extra:wr,progress:Sr={size:[-1,2],showInfo:!1},appendAction:Cr,appendActionVisible:Jn=!0,itemRender:yr,disabled:An}=bt,xn=(0,zt.Z)(),[tr,br]=te.useState(!1),Er=["picture-card","picture-circle"].includes(Lt);te.useEffect(()=>{Lt.startsWith("picture")&&(rr||[]).forEach(Or=>{!(Or.originFileObj instanceof File||Or.originFileObj instanceof Blob)||Or.thumbUrl!==void 0||(Or.thumbUrl="",qt==null||qt(Or.originFileObj).then(Pr=>{Or.thumbUrl=Pr||"",xn()}))})},[Lt,rr,qt]),te.useEffect(()=>{br(!0)},[]);const Hr=(Or,Pr)=>{if(Ft)return Pr==null||Pr.preventDefault(),Ft(Or)},kr=Or=>{typeof $t=="function"?$t(Or):Or.url&&window.open(Or.url)},Ur=Or=>{Zt==null||Zt(Or)},Tr=Or=>{if(Tn)return Tn(Or,Lt);const Pr=Or.status==="uploading";if(Lt.startsWith("picture")){const ur=Lt==="picture"?te.createElement(At.Z,null):Xt.uploading,Dn=On!=null&&On(Or)?te.createElement(nn,null):te.createElement(st,null);return Pr?ur:Dn}return Pr?te.createElement(At.Z,null):te.createElement(kt,null)},ei=(Or,Pr,ur,Dn,Un)=>{const Vn={type:"text",size:"small",title:Dn,onClick:$n=>{var cr,jr;Pr(),te.isValidElement(Or)&&((jr=(cr=Or.props).onClick)===null||jr===void 0||jr.call(cr,$n))},className:`${ur}-list-item-action`};return Un&&(Vn.disabled=An),te.isValidElement(Or)?te.createElement(Cn.ZP,Object.assign({},Vn,{icon:(0,un.Tm)(Or,Object.assign(Object.assign({},Or.props),{onClick:()=>{}}))})):te.createElement(Cn.ZP,Object.assign({},Vn),te.createElement("span",null,Or))};te.useImperativeHandle(Ut,()=>({handlePreview:Hr,handleDownload:kr}));const{getPrefixCls:si}=te.useContext(_e.E_),wi=si("upload",Mn),Kr=si(),gi=be()(`${wi}-list`,`${wi}-list-${Lt}`),di=te.useMemo(()=>(0,Ct.Z)((0,en.Z)(Kr),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Kr]),bi=Object.assign(Object.assign({},Er?{}:di),{motionDeadline:2e3,motionName:`${wi}-${Er?"animate-inline":"animate"}`,keys:(0,Ot.Z)(rr.map(Or=>({key:Or.uid,file:Or}))),motionAppear:tr});return te.createElement("div",{className:gi},te.createElement(xt.CSSMotionList,Object.assign({},bi,{component:!1}),Or=>{let{key:Pr,file:ur,className:Dn,style:Un}=Or;return te.createElement(Ln,{key:Pr,locale:Xt,prefixCls:wi,className:Dn,style:Un,file:ur,items:rr,progress:Sr,listType:Lt,isImgUrl:On,showPreviewIcon:lr,showRemoveIcon:hr,showDownloadIcon:er,removeIcon:Qn,previewIcon:Fn,downloadIcon:pr,extra:wr,iconRender:Tr,actionIconRender:ei,itemRender:yr,onPreview:Hr,onDownload:kr,onClose:Ur})}),Cr&&te.createElement(xt.default,Object.assign({},bi,{visible:Jn,forceRender:!0}),Or=>{let{className:Pr,style:ur}=Or;return(0,un.Tm)(Cr,Dn=>({className:be()(Dn.className,Pr),style:Object.assign(Object.assign(Object.assign({},ur),{pointerEvents:Pr?"none":void 0}),Dn.style)}))}))};var nr=te.forwardRef(Kn),ln=function(bt,Ut,Lt,qt){function Ft($t){return $t instanceof Lt?$t:new Lt(function(Zt){Zt($t)})}return new(Lt||(Lt=Promise))(function($t,Zt){function Xt(Mn){try{On(qt.next(Mn))}catch(rr){Zt(rr)}}function Tn(Mn){try{On(qt.throw(Mn))}catch(rr){Zt(rr)}}function On(Mn){Mn.done?$t(Mn.value):Ft(Mn.value).then(Xt,Tn)}On((qt=qt.apply(bt,Ut||[])).next())})};const rn=`__LIST_IGNORE_${Date.now()}__`,Wn=(bt,Ut)=>{const{fileList:Lt,defaultFileList:qt,onRemove:Ft,showUploadList:$t=!0,listType:Zt="text",onPreview:Xt,onDownload:Tn,onChange:On,onDrop:Mn,previewFile:rr,disabled:lr,locale:hr,iconRender:er,isImageUrl:Qn,progress:Fn,prefixCls:pr,className:wr,type:Sr="select",children:Cr,style:Jn,itemRender:yr,maxCount:An,data:xn={},multiple:tr=!1,hasControlInside:br=!0,action:Er="",accept:Hr="",supportServerRender:kr=!0,rootClassName:Ur}=bt,Tr=te.useContext(Ue.Z),ei=lr!=null?lr:Tr,[si,wi]=(0,nt.Z)(qt||[],{value:Lt,postState:li=>li!=null?li:[]}),[Kr,gi]=te.useState("drop"),di=te.useRef(null),bi=te.useRef(null);te.useMemo(()=>{const li=Date.now();(Lt||[]).forEach((Zi,Yi)=>{!Zi.uid&&!Object.isFrozen(Zi)&&(Zi.uid=`__AUTO__${li}_${Yi}__`)})},[Lt]);const Or=(li,Zi,Yi)=>{let yi=(0,Ot.Z)(Zi),Fi=!1;An===1?yi=yi.slice(-1):An&&(Fi=yi.length>An,yi=yi.slice(0,An)),(0,y.flushSync)(()=>{wi(yi)});const Ai={file:li,fileList:yi};Yi&&(Ai.event=Yi),(!Fi||li.status==="removed"||yi.some(Fo=>Fo.uid===li.uid))&&(0,y.flushSync)(()=>{On==null||On(Ai)})},Pr=(li,Zi)=>ln(void 0,void 0,void 0,function*(){const{beforeUpload:Yi,transformFile:yi}=bt;let Fi=li;if(Yi){const Ai=yield Yi(li,Zi);if(Ai===!1)return!1;if(delete li[rn],Ai===rn)return Object.defineProperty(li,rn,{value:!0,configurable:!0}),!1;typeof Ai=="object"&&Ai&&(Fi=Ai)}return yi&&(Fi=yield yi(Fi)),Fi}),ur=li=>{const Zi=li.filter(Fi=>!Fi.file[rn]);if(!Zi.length)return;const Yi=Zi.map(Fi=>Nn(Fi.file));let yi=(0,Ot.Z)(si);Yi.forEach(Fi=>{yi=_n(Fi,yi)}),Yi.forEach((Fi,Ai)=>{let Fo=Fi;if(Zi[Ai].parsedFile)Fi.status="uploading";else{const{originFileObj:pa}=Fi;let Zo;try{Zo=new File([pa],pa.name,{type:pa.type})}catch(Do){Zo=new Blob([pa],{type:pa.type}),Zo.name=pa.name,Zo.lastModifiedDate=new Date,Zo.lastModified=new Date().getTime()}Zo.uid=Fi.uid,Fo=Zo}Or(Fo,yi)})},Dn=(li,Zi,Yi)=>{try{typeof li=="string"&&(li=JSON.parse(li))}catch(Ai){}if(!yn(Zi,si))return;const yi=Nn(Zi);yi.status="done",yi.percent=100,yi.response=li,yi.xhr=Yi;const Fi=_n(yi,si);Or(yi,Fi)},Un=(li,Zi)=>{if(!yn(Zi,si))return;const Yi=Nn(Zi);Yi.status="uploading",Yi.percent=li.percent;const yi=_n(Yi,si);Or(Yi,yi,li)},Vn=(li,Zi,Yi)=>{if(!yn(Yi,si))return;const yi=Nn(Yi);yi.error=li,yi.response=Zi,yi.status="error";const Fi=_n(yi,si);Or(yi,Fi)},$n=li=>{let Zi;Promise.resolve(typeof Ft=="function"?Ft(li):Ft).then(Yi=>{var yi;if(Yi===!1)return;const Fi=Rn(li,si);Fi&&(Zi=Object.assign(Object.assign({},li),{status:"removed"}),si==null||si.forEach(Ai=>{const Fo=Zi.uid!==void 0?"uid":"name";Ai[Fo]===Zi[Fo]&&!Object.isFrozen(Ai)&&(Ai.status="removed")}),(yi=di.current)===null||yi===void 0||yi.abort(Zi),Or(Zi,Fi))})},cr=li=>{gi(li.type),li.type==="drop"&&(Mn==null||Mn(li))};te.useImperativeHandle(Ut,()=>({onBatchStart:ur,onSuccess:Dn,onProgress:Un,onError:Vn,fileList:si,upload:di.current,nativeElement:bi.current}));const{getPrefixCls:jr,direction:Gn,upload:zn}=te.useContext(_e.E_),qn=jr("upload",pr),or=Object.assign(Object.assign({onBatchStart:ur,onError:Vn,onProgress:Un,onSuccess:Dn},bt),{data:xn,multiple:tr,action:Er,accept:Hr,supportServerRender:kr,prefixCls:qn,disabled:ei,beforeUpload:Pr,onChange:void 0,hasControlInside:br});delete or.className,delete or.style,(!Cr||ei)&&delete or.id;const ti=`${qn}-wrapper`,[Ti,mi,ki]=Ge(qn,ti),[Oi]=(0,tt.Z)("Upload",rt.Z.Upload),{showRemoveIcon:Ii,showPreviewIcon:_i,showDownloadIcon:Ni,removeIcon:Ri,previewIcon:so,downloadIcon:xo,extra:Po}=typeof $t=="boolean"?{}:$t,jo=typeof Ii=="undefined"?!ei:Ii,wo=(li,Zi)=>$t?te.createElement(nr,{prefixCls:qn,listType:Zt,items:si,previewFile:rr,onPreview:Xt,onDownload:Tn,onRemove:$n,showRemoveIcon:jo,showPreviewIcon:_i,showDownloadIcon:Ni,removeIcon:Ri,previewIcon:so,downloadIcon:xo,iconRender:er,extra:Po,locale:Object.assign(Object.assign({},Oi),hr),isImageUrl:Qn,progress:Fn,appendAction:li,appendActionVisible:Zi,itemRender:yr,disabled:ei}):li,ni=be()(ti,wr,Ur,mi,ki,zn==null?void 0:zn.className,{[`${qn}-rtl`]:Gn==="rtl",[`${qn}-picture-card-wrapper`]:Zt==="picture-card",[`${qn}-picture-circle-wrapper`]:Zt==="picture-circle"}),Vr=Object.assign(Object.assign({},zn==null?void 0:zn.style),Jn);if(Sr==="drag"){const li=be()(mi,qn,`${qn}-drag`,{[`${qn}-drag-uploading`]:si.some(Zi=>Zi.status==="uploading"),[`${qn}-drag-hover`]:Kr==="dragover",[`${qn}-disabled`]:ei,[`${qn}-rtl`]:Gn==="rtl"});return Ti(te.createElement("span",{className:ni,ref:bi},te.createElement("div",{className:li,style:Vr,onDrop:cr,onDragOver:cr,onDragLeave:cr},te.createElement(We,Object.assign({},or,{ref:di,className:`${qn}-btn`}),te.createElement("div",{className:`${qn}-drag-container`},Cr))),wo()))}const Qi=be()(qn,`${qn}-select`,{[`${qn}-disabled`]:ei,[`${qn}-hidden`]:!Cr}),qi=te.createElement("div",{className:Qi},te.createElement(We,Object.assign({},or,{ref:di})));return Ti(Zt==="picture-card"||Zt==="picture-circle"?te.createElement("span",{className:ni,ref:bi},wo(qi,!!Cr)):te.createElement("span",{className:ni,ref:bi},qi,wo()))};var Mt=te.forwardRef(Wn),Gt=function(bt,Ut){var Lt={};for(var qt in bt)Object.prototype.hasOwnProperty.call(bt,qt)&&Ut.indexOf(qt)<0&&(Lt[qt]=bt[qt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,qt=Object.getOwnPropertySymbols(bt);Ft<qt.length;Ft++)Ut.indexOf(qt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(bt,qt[Ft])&&(Lt[qt[Ft]]=bt[qt[Ft]]);return Lt},Rt=te.forwardRef((bt,Ut)=>{var{style:Lt,height:qt,hasControlInside:Ft=!1}=bt,$t=Gt(bt,["style","height","hasControlInside"]);return te.createElement(Mt,Object.assign({ref:Ut,hasControlInside:Ft},$t,{type:"drag",style:Object.assign(Object.assign({},Lt),{height:qt})}))});const Tt=Mt;Tt.Dragger=Rt,Tt.LIST_IGNORE=rn;var _t=Tt},99498:function(In,Yt,Te){(function(te){te(Te(89780))})(function(te){te.defineOption("placeholder","",function(ie,oe,ee){var ce=ee&&ee!=te.Init;if(oe&&!ce)ie.on("blur",be),ie.on("change",z),ie.on("swapDoc",z),te.on(ie.getInputField(),"compositionupdate",ie.state.placeholderCompose=function(){je(ie)}),z(ie);else if(!oe&&ce){ie.off("blur",be),ie.off("change",z),ie.off("swapDoc",z),te.off(ie.getInputField(),"compositionupdate",ie.state.placeholderCompose),Ot(ie);var x=ie.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}oe&&!ie.hasFocus()&&be(ie)});function Ot(ie){ie.state.placeholder&&(ie.state.placeholder.parentNode.removeChild(ie.state.placeholder),ie.state.placeholder=null)}function y(ie){Ot(ie);var oe=ie.state.placeholder=document.createElement("pre");oe.style.cssText="height: 0; overflow: visible",oe.style.direction=ie.getOption("direction"),oe.className="CodeMirror-placeholder CodeMirror-line-like";var ee=ie.getOption("placeholder");typeof ee=="string"&&(ee=document.createTextNode(ee)),oe.appendChild(ee),ie.display.lineSpace.insertBefore(oe,ie.display.lineSpace.firstChild)}function je(ie){setTimeout(function(){var oe=!1,ee=ie.getInputField();ee.nodeName=="TEXTAREA"?oe=!ee.value:ie.lineCount()==1&&(oe=!/[^\u200b]/.test(ee.querySelector(".CodeMirror-line").textContent)),oe?y(ie):Ot(ie)},20)}function be(ie){E(ie)&&y(ie)}function z(ie){var oe=ie.getWrapperElement(),ee=E(ie);oe.className=oe.className.replace(" CodeMirror-empty","")+(ee?" CodeMirror-empty":""),ee?y(ie):Ot(ie)}function E(ie){return ie.lineCount()===1&&ie.getLine(0)===""}})},25717:function(In,Yt,Te){(function(te){te(Te(89780))})(function(te){var Ot={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},y=te.Pos;te.defineOption("autoCloseBrackets",!1,function(se,ue,pe){pe&&pe!=te.Init&&(se.removeKeyMap(be),se.state.closeBrackets=null),ue&&(z(je(ue,"pairs")),se.state.closeBrackets=ue,se.addKeyMap(be))});function je(se,ue){return ue=="pairs"&&typeof se=="string"?se:typeof se=="object"&&se[ue]!=null?se[ue]:Ot[ue]}var be={Backspace:oe,Enter:ee};function z(se){for(var ue=0;ue<se.length;ue++){var pe=se.charAt(ue),he="'"+pe+"'";be[he]||(be[he]=E(pe))}}z(Ot.pairs+"`");function E(se){return function(ue){return x(ue,se)}}function ie(se){var ue=se.state.closeBrackets;if(!ue||ue.override)return ue;var pe=se.getModeAt(se.getCursor());return pe.closeBrackets||ue}function oe(se){var ue=ie(se);if(!ue||se.getOption("disableInput"))return te.Pass;for(var pe=je(ue,"pairs"),he=se.listSelections(),ye=0;ye<he.length;ye++){if(!he[ye].empty())return te.Pass;var ge=ae(se,he[ye].head);if(!ge||pe.indexOf(ge)%2!=0)return te.Pass}for(var ye=he.length-1;ye>=0;ye--){var xe=he[ye].head;se.replaceRange("",y(xe.line,xe.ch-1),y(xe.line,xe.ch+1),"+delete")}}function ee(se){var ue=ie(se),pe=ue&&je(ue,"explode");if(!pe||se.getOption("disableInput"))return te.Pass;for(var he=se.listSelections(),ye=0;ye<he.length;ye++){if(!he[ye].empty())return te.Pass;var ge=ae(se,he[ye].head);if(!ge||pe.indexOf(ge)%2!=0)return te.Pass}se.operation(function(){var xe=se.lineSeparator()||`
`;se.replaceSelection(xe+xe,null),se.execCommand("goCharLeft"),he=se.listSelections();for(var ke=0;ke<he.length;ke++){var De=he[ke].head.line;se.indentLine(De,null,!0),se.indentLine(De+1,null,!0)}})}function ce(se){var ue=te.cmpPos(se.anchor,se.head)>0;return{anchor:new y(se.anchor.line,se.anchor.ch+(ue?-1:1)),head:new y(se.head.line,se.head.ch+(ue?1:-1))}}function x(se,ue){var pe=ie(se);if(!pe||se.getOption("disableInput"))return te.Pass;var he=je(pe,"pairs"),ye=he.indexOf(ue);if(ye==-1)return te.Pass;for(var ge=je(pe,"closeBefore"),xe=je(pe,"triples"),ke=he.charAt(ye+1)==ue,De=se.listSelections(),Be=ye%2==0,Ae,Se=0;Se<De.length;Se++){var Ee=De[Se],Oe=Ee.head,Pe,Le=se.getRange(Oe,y(Oe.line,Oe.ch+1));if(Be&&!Ee.empty())Pe="surround";else if((ke||!Be)&&Le==ue)ke&&re(se,Oe)?Pe="both":xe.indexOf(ue)>=0&&se.getRange(Oe,y(Oe.line,Oe.ch+3))==ue+ue+ue?Pe="skipThree":Pe="skip";else if(ke&&Oe.ch>1&&xe.indexOf(ue)>=0&&se.getRange(y(Oe.line,Oe.ch-2),Oe)==ue+ue){if(Oe.ch>2&&/\bstring/.test(se.getTokenTypeAt(y(Oe.line,Oe.ch-2))))return te.Pass;Pe="addFour"}else if(ke){var Ne=Oe.ch==0?" ":se.getRange(y(Oe.line,Oe.ch-1),Oe);if(!te.isWordChar(Le)&&Ne!=ue&&!te.isWordChar(Ne))Pe="both";else return te.Pass}else if(Be&&(Le.length===0||/\s/.test(Le)||ge.indexOf(Le)>-1))Pe="both";else return te.Pass;if(!Ae)Ae=Pe;else if(Ae!=Pe)return te.Pass}var me=ye%2?he.charAt(ye-1):ue,Ve=ye%2?ue:he.charAt(ye+1);se.operation(function(){if(Ae=="skip")se.execCommand("goCharRight");else if(Ae=="skipThree")for(var Ze=0;Ze<3;Ze++)se.execCommand("goCharRight");else if(Ae=="surround"){for(var We=se.getSelections(),Ze=0;Ze<We.length;Ze++)We[Ze]=me+We[Ze]+Ve;se.replaceSelections(We,"around"),We=se.listSelections().slice();for(var Ze=0;Ze<We.length;Ze++)We[Ze]=ce(We[Ze]);se.setSelections(We)}else Ae=="both"?(se.replaceSelection(me+Ve,null),se.triggerElectric(me+Ve),se.execCommand("goCharLeft")):Ae=="addFour"&&(se.replaceSelection(me+me+me+me,"before"),se.execCommand("goCharRight"))})}function ae(se,ue){var pe=se.getRange(y(ue.line,ue.ch-1),y(ue.line,ue.ch+1));return pe.length==2?pe:null}function re(se,ue){var pe=se.getTokenAt(y(ue.line,ue.ch+1));return/\bstring/.test(pe.type)&&pe.start==ue.ch&&(ue.ch==0||!/\bstring/.test(se.getTokenTypeAt(ue)))}})},6313:function(In,Yt,Te){(function(te){te(Te(89780),Te(32855))})(function(te){te.defineOption("autoCloseTags",!1,function(oe,ee,ce){if(ce!=te.Init&&ce&&oe.removeKeyMap("autoCloseTags"),!!ee){var x={name:"autoCloseTags"};(typeof ee!="object"||ee.whenClosing!==!1)&&(x["'/'"]=function(ae){return z(ae)}),(typeof ee!="object"||ee.whenOpening!==!1)&&(x["'>'"]=function(ae){return je(ae)}),oe.addKeyMap(x)}});var Ot=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],y=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function je(oe){if(oe.getOption("disableInput"))return te.Pass;for(var ee=oe.listSelections(),ce=[],x=oe.getOption("autoCloseTags"),ae=0;ae<ee.length;ae++){if(!ee[ae].empty())return te.Pass;var re=ee[ae].head,se=oe.getTokenAt(re),ue=te.innerMode(oe.getMode(),se.state),pe=ue.state,he=ue.mode.xmlCurrentTag&&ue.mode.xmlCurrentTag(pe),ye=he&&he.name;if(!ye)return te.Pass;var ge=ue.mode.configuration=="html",xe=typeof x=="object"&&x.dontCloseTags||ge&&Ot,ke=typeof x=="object"&&x.indentTags||ge&&y;se.end>re.ch&&(ye=ye.slice(0,ye.length-se.end+re.ch));var De=ye.toLowerCase();if(!ye||se.type=="string"&&(se.end!=re.ch||!/[\"\']/.test(se.string.charAt(se.string.length-1))||se.string.length==1)||se.type=="tag"&&he.close||se.string.indexOf("/")==re.ch-se.start-1||xe&&E(xe,De)>-1||ie(oe,ue.mode.xmlCurrentContext&&ue.mode.xmlCurrentContext(pe)||[],ye,re,!0))return te.Pass;var Be=typeof x=="object"&&x.emptyTags;if(Be&&E(Be,ye)>-1){ce[ae]={text:"/>",newPos:te.Pos(re.line,re.ch+2)};continue}var Ae=ke&&E(ke,De)>-1;ce[ae]={indent:Ae,text:">"+(Ae?`
`:"")+"</"+ye+">",newPos:Ae?te.Pos(re.line+1,0):te.Pos(re.line,re.ch+1)}}for(var Se=typeof x=="object"&&x.dontIndentOnAutoClose,ae=ee.length-1;ae>=0;ae--){var Ee=ce[ae];oe.replaceRange(Ee.text,ee[ae].head,ee[ae].anchor,"+insert");var Oe=oe.listSelections().slice(0);Oe[ae]={head:Ee.newPos,anchor:Ee.newPos},oe.setSelections(Oe),!Se&&Ee.indent&&(oe.indentLine(Ee.newPos.line,null,!0),oe.indentLine(Ee.newPos.line+1,null,!0))}}function be(oe,ee){for(var ce=oe.listSelections(),x=[],ae=ee?"/":"</",re=oe.getOption("autoCloseTags"),se=typeof re=="object"&&re.dontIndentOnSlash,ue=0;ue<ce.length;ue++){if(!ce[ue].empty())return te.Pass;var pe=ce[ue].head,he=oe.getTokenAt(pe),ye=te.innerMode(oe.getMode(),he.state),ge=ye.state;if(ee&&(he.type=="string"||he.string.charAt(0)!="<"||he.start!=pe.ch-1))return te.Pass;var xe,ke=ye.mode.name!="xml"&&oe.getMode().name=="htmlmixed";if(ke&&ye.mode.name=="javascript")xe=ae+"script";else if(ke&&ye.mode.name=="css")xe=ae+"style";else{var De=ye.mode.xmlCurrentContext&&ye.mode.xmlCurrentContext(ge);if(!De||De.length&&ie(oe,De,De[De.length-1],pe))return te.Pass;xe=ae+De[De.length-1]}oe.getLine(pe.line).charAt(he.end)!=">"&&(xe+=">"),x[ue]=xe}if(oe.replaceSelections(x),ce=oe.listSelections(),!se)for(var ue=0;ue<ce.length;ue++)(ue==ce.length-1||ce[ue].head.line<ce[ue+1].head.line)&&oe.indentLine(ce[ue].head.line)}function z(oe){return oe.getOption("disableInput")?te.Pass:be(oe,!0)}te.commands.closeTag=function(oe){return be(oe)};function E(oe,ee){if(oe.indexOf)return oe.indexOf(ee);for(var ce=0,x=oe.length;ce<x;++ce)if(oe[ce]==ee)return ce;return-1}function ie(oe,ee,ce,x,ae){if(!te.scanForClosingTag)return!1;var re=Math.min(oe.lastLine()+1,x.line+500),se=te.scanForClosingTag(oe,x,null,re);if(!se||se.tag!=ce)return!1;for(var ue=ae?1:0,pe=ee.length-1;pe>=0&&ee[pe]==ce;pe--)++ue;x=se.to;for(var pe=1;pe<ue;pe++){var he=te.scanForClosingTag(oe,x,null,re);if(!he||he.tag!=ce)return!1;x=he.to}return!0}})},32855:function(In,Yt,Te){(function(te){te(Te(89780))})(function(te){"use strict";var Ot=te.Pos;function y(pe,he){return pe.line-he.line||pe.ch-he.ch}var je="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",be=je+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",z=new RegExp("<(/?)(["+je+"]["+be+"]*)","g");function E(pe,he,ye,ge){this.line=he,this.ch=ye,this.cm=pe,this.text=pe.getLine(he),this.min=ge?Math.max(ge.from,pe.firstLine()):pe.firstLine(),this.max=ge?Math.min(ge.to-1,pe.lastLine()):pe.lastLine()}function ie(pe,he){var ye=pe.cm.getTokenTypeAt(Ot(pe.line,he));return ye&&/\btag\b/.test(ye)}function oe(pe){if(!(pe.line>=pe.max))return pe.ch=0,pe.text=pe.cm.getLine(++pe.line),!0}function ee(pe){if(!(pe.line<=pe.min))return pe.text=pe.cm.getLine(--pe.line),pe.ch=pe.text.length,!0}function ce(pe){for(;;){var he=pe.text.indexOf(">",pe.ch);if(he==-1){if(oe(pe))continue;return}if(!ie(pe,he+1)){pe.ch=he+1;continue}var ye=pe.text.lastIndexOf("/",he),ge=ye>-1&&!/\S/.test(pe.text.slice(ye+1,he));return pe.ch=he+1,ge?"selfClose":"regular"}}function x(pe){for(;;){var he=pe.ch?pe.text.lastIndexOf("<",pe.ch-1):-1;if(he==-1){if(ee(pe))continue;return}if(!ie(pe,he+1)){pe.ch=he;continue}z.lastIndex=he,pe.ch=he;var ye=z.exec(pe.text);if(ye&&ye.index==he)return ye}}function ae(pe){for(;;){z.lastIndex=pe.ch;var he=z.exec(pe.text);if(!he){if(oe(pe))continue;return}if(!ie(pe,he.index+1)){pe.ch=he.index+1;continue}return pe.ch=he.index+he[0].length,he}}function re(pe){for(;;){var he=pe.ch?pe.text.lastIndexOf(">",pe.ch-1):-1;if(he==-1){if(ee(pe))continue;return}if(!ie(pe,he+1)){pe.ch=he;continue}var ye=pe.text.lastIndexOf("/",he),ge=ye>-1&&!/\S/.test(pe.text.slice(ye+1,he));return pe.ch=he+1,ge?"selfClose":"regular"}}function se(pe,he){for(var ye=[];;){var ge=ae(pe),xe,ke=pe.line,De=pe.ch-(ge?ge[0].length:0);if(!ge||!(xe=ce(pe)))return;if(xe!="selfClose")if(ge[1]){for(var Be=ye.length-1;Be>=0;--Be)if(ye[Be]==ge[2]){ye.length=Be;break}if(Be<0&&(!he||he==ge[2]))return{tag:ge[2],from:Ot(ke,De),to:Ot(pe.line,pe.ch)}}else ye.push(ge[2])}}function ue(pe,he){for(var ye=[];;){var ge=re(pe);if(!ge)return;if(ge=="selfClose"){x(pe);continue}var xe=pe.line,ke=pe.ch,De=x(pe);if(!De)return;if(De[1])ye.push(De[2]);else{for(var Be=ye.length-1;Be>=0;--Be)if(ye[Be]==De[2]){ye.length=Be;break}if(Be<0&&(!he||he==De[2]))return{tag:De[2],from:Ot(pe.line,pe.ch),to:Ot(xe,ke)}}}}te.registerHelper("fold","xml",function(pe,he){for(var ye=new E(pe,he.line,0);;){var ge=ae(ye);if(!ge||ye.line!=he.line)return;var xe=ce(ye);if(!xe)return;if(!ge[1]&&xe!="selfClose"){var ke=Ot(ye.line,ye.ch),De=se(ye,ge[2]);return De&&y(De.from,ke)>0?{from:ke,to:De.from}:null}}}),te.findMatchingTag=function(pe,he,ye){var ge=new E(pe,he.line,he.ch,ye);if(!(ge.text.indexOf(">")==-1&&ge.text.indexOf("<")==-1)){var xe=ce(ge),ke=xe&&Ot(ge.line,ge.ch),De=xe&&x(ge);if(!(!xe||!De||y(ge,he)>0)){var Be={from:Ot(ge.line,ge.ch),to:ke,tag:De[2]};return xe=="selfClose"?{open:Be,close:null,at:"open"}:De[1]?{open:ue(ge,De[2]),close:Be,at:"close"}:(ge=new E(pe,ke.line,ke.ch,ye),{open:Be,close:se(ge,De[2]),at:"open"})}}},te.findEnclosingTag=function(pe,he,ye,ge){for(var xe=new E(pe,he.line,he.ch,ye);;){var ke=ue(xe,ge);if(!ke)break;var De=new E(pe,he.line,he.ch,ye),Be=se(De,ke.tag);if(Be)return{open:ke,close:Be}}},te.scanForClosingTag=function(pe,he,ye,ge){var xe=new E(pe,he.line,he.ch,ge?{from:0,to:ge}:null);return se(xe,ye)}})},89780:function(In){(function(Yt,Te){In.exports=Te()})(this,function(){"use strict";var Yt=navigator.userAgent,Te=navigator.platform,te=/gecko\/\d/i.test(Yt),Ot=/MSIE \d/.test(Yt),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Yt),je=/Edge\/(\d+)/.exec(Yt),be=Ot||y||je,z=be&&(Ot?document.documentMode||6:+(je||y)[1]),E=!je&&/WebKit\//.test(Yt),ie=E&&/Qt\/\d+\.\d+/.test(Yt),oe=!je&&/Chrome\//.test(Yt),ee=/Opera\//.test(Yt),ce=/Apple Computer/.test(navigator.vendor),x=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Yt),ae=/PhantomJS/.test(Yt),re=!je&&/AppleWebKit/.test(Yt)&&/Mobile\/\w+/.test(Yt),se=/Android/.test(Yt),ue=re||se||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Yt),pe=re||/Mac/.test(Te),he=/\bCrOS\b/.test(Yt),ye=/win/i.test(Te),ge=ee&&Yt.match(/Version\/(\d*\.\d*)/);ge&&(ge=Number(ge[1])),ge&&ge>=15&&(ee=!1,E=!0);var xe=pe&&(ie||ee&&(ge==null||ge<12.11)),ke=te||be&&z>=9;function De(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Be=function(a,b){var de=a.className,le=De(b).exec(de);if(le){var Ce=de.slice(le.index+le[0].length);a.className=de.slice(0,le.index)+(Ce?le[1]+Ce:"")}};function Ae(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function Se(a,b){return Ae(a).appendChild(b)}function Ee(a,b,de,le){var Ce=document.createElement(a);if(de&&(Ce.className=de),le&&(Ce.style.cssText=le),typeof b=="string")Ce.appendChild(document.createTextNode(b));else if(b)for(var He=0;He<b.length;++He)Ce.appendChild(b[He]);return Ce}function Oe(a,b,de,le){var Ce=Ee(a,b,de,le);return Ce.setAttribute("role","presentation"),Ce}var Pe;document.createRange?Pe=function(a,b,de,le){var Ce=document.createRange();return Ce.setEnd(le||a,de),Ce.setStart(a,b),Ce}:Pe=function(a,b,de){var le=document.body.createTextRange();try{le.moveToElementText(a.parentNode)}catch(Ce){return le}return le.collapse(!0),le.moveEnd("character",de),le.moveStart("character",b),le};function Le(a,b){if(b.nodeType==3&&(b=b.parentNode),a.contains)return a.contains(b);do if(b.nodeType==11&&(b=b.host),b==a)return!0;while(b=b.parentNode)}function Ne(){var a;try{a=document.activeElement}catch(b){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function me(a,b){var de=a.className;De(b).test(de)||(a.className+=(de?" ":"")+b)}function Ve(a,b){for(var de=a.split(" "),le=0;le<de.length;le++)de[le]&&!De(de[le]).test(b)&&(b+=" "+de[le]);return b}var Ze=function(a){a.select()};re?Ze=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:be&&(Ze=function(a){try{a.select()}catch(b){}});function We(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function nt(a,b,de){b||(b={});for(var le in a)a.hasOwnProperty(le)&&(de!==!1||!b.hasOwnProperty(le))&&(b[le]=a[le]);return b}function _e(a,b,de,le,Ce){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var He=le||0,it=Ce||0;;){var dt=a.indexOf(" ",He);if(dt<0||dt>=b)return it+(b-He);it+=dt-He,it+=de-it%de,He=dt+1}}var Ue=function(){this.id=null,this.f=null,this.time=0,this.handler=We(this.onTimeout,this)};Ue.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},Ue.prototype.set=function(a,b){this.f=b;var de=+new Date+a;(!this.id||de<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=de)};function tt(a,b){for(var de=0;de<a.length;++de)if(a[de]==b)return de;return-1}var rt=50,et={toString:function(){return"CodeMirror.Pass"}},Ke={scroll:!1},Ye={origin:"*mouse"},Xe={origin:"+move"};function ot(a,b,de){for(var le=0,Ce=0;;){var He=a.indexOf(" ",le);He==-1&&(He=a.length);var it=He-le;if(He==a.length||Ce+it>=b)return le+Math.min(it,b-Ce);if(Ce+=He-le,Ce+=de-Ce%de,le=He+1,Ce>=b)return le}}var Qe=[""];function ft(a){for(;Qe.length<=a;)Qe.push(at(Qe)+" ");return Qe[a]}function at(a){return a[a.length-1]}function qe(a,b){for(var de=[],le=0;le<a.length;le++)de[le]=b(a[le],le);return de}function Fe(a,b,de){for(var le=0,Ce=de(b);le<a.length&&de(a[le])<=Ce;)le++;a.splice(le,0,b)}function Re(){}function ne(a,b){var de;return Object.create?de=Object.create(a):(Re.prototype=a,de=new Re),b&&nt(b,de),de}var fe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Me(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||fe.test(a))}function ze(a,b){return b?b.source.indexOf("\\w")>-1&&Me(a)?!0:b.test(a):Me(a)}function we(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}var ve=/[\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 Ie(a){return a.charCodeAt(0)>=768&&ve.test(a)}function $e(a,b,de){for(;(de<0?b>0:b<a.length)&&Ie(a.charAt(b));)b+=de;return b}function Ge(a,b,de){for(var le=b>de?-1:1;;){if(b==de)return b;var Ce=(b+de)/2,He=le<0?Math.ceil(Ce):Math.floor(Ce);if(He==b)return a(He)?b:de;a(He)?de=He:b=He+le}}function Je(a,b,de,le){if(!a)return le(b,de,"ltr",0);for(var Ce=!1,He=0;He<a.length;++He){var it=a[He];(it.from<de&&it.to>b||b==de&&it.to==b)&&(le(Math.max(it.from,b),Math.min(it.to,de),it.level==1?"rtl":"ltr",He),Ce=!0)}Ce||le(b,de,"ltr")}var ut=null;function lt(a,b,de){var le;ut=null;for(var Ce=0;Ce<a.length;++Ce){var He=a[Ce];if(He.from<b&&He.to>b)return Ce;He.to==b&&(He.from!=He.to&&de=="before"?le=Ce:ut=Ce),He.from==b&&(He.from!=He.to&&de!="before"?le=Ce:ut=Ce)}return le!=null?le:ut}var vt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function de(wt){return wt<=247?a.charAt(wt):1424<=wt&&wt<=1524?"R":1536<=wt&&wt<=1785?b.charAt(wt-1536):1774<=wt&&wt<=2220?"r":8192<=wt&&wt<=8203?"w":wt==8204?"b":"L"}var le=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Ce=/[stwN]/,He=/[LRr]/,it=/[Lb1n]/,dt=/[1n]/;function gt(wt,Qt,an){this.level=wt,this.from=Qt,this.to=an}return function(wt,Qt){var an=Qt=="ltr"?"L":"R";if(wt.length==0||Qt=="ltr"&&!le.test(wt))return!1;for(var En=wt.length,bn=[],Yn=0;Yn<En;++Yn)bn.push(de(wt.charCodeAt(Yn)));for(var ir=0,gr=an;ir<En;++ir){var Nr=bn[ir];Nr=="m"?bn[ir]=gr:gr=Nr}for(var Zr=0,Rr=an;Zr<En;++Zr){var Yr=bn[Zr];Yr=="1"&&Rr=="r"?bn[Zr]="n":He.test(Yr)&&(Rr=Yr,Yr=="r"&&(bn[Zr]="R"))}for(var hi=1,ui=bn[0];hi<En-1;++hi){var Li=bn[hi];Li=="+"&&ui=="1"&&bn[hi+1]=="1"?bn[hi]="1":Li==","&&ui==bn[hi+1]&&(ui=="1"||ui=="n")&&(bn[hi]=ui),ui=Li}for(var go=0;go<En;++go){var ra=bn[go];if(ra==",")bn[go]="N";else if(ra=="%"){var Mo=void 0;for(Mo=go+1;Mo<En&&bn[Mo]=="%";++Mo);for(var Ra=go&&bn[go-1]=="!"||Mo<En&&bn[Mo]=="1"?"1":"N",Oa=go;Oa<Mo;++Oa)bn[Oa]=Ra;go=Mo-1}}for(var Vo=0,Ia=an;Vo<En;++Vo){var fa=bn[Vo];Ia=="L"&&fa=="1"?bn[Vo]="L":He.test(fa)&&(Ia=fa)}for(var qo=0;qo<En;++qo)if(Ce.test(bn[qo])){var Xo=void 0;for(Xo=qo+1;Xo<En&&Ce.test(bn[Xo]);++Xo);for(var _o=(qo?bn[qo-1]:an)=="L",Pa=(Xo<En?bn[Xo]:an)=="L",hl=_o==Pa?_o?"L":"R":an,ks=qo;ks<Xo;++ks)bn[ks]=hl;qo=Xo-1}for(var ba=[],us,ia=0;ia<En;)if(it.test(bn[ia])){var Tu=ia;for(++ia;ia<En&&it.test(bn[ia]);++ia);ba.push(new gt(0,Tu,ia))}else{var bs=ia,Xs=ba.length,Ys=Qt=="rtl"?1:0;for(++ia;ia<En&&bn[ia]!="L";++ia);for(var Sa=bs;Sa<ia;)if(dt.test(bn[Sa])){bs<Sa&&(ba.splice(Xs,0,new gt(1,bs,Sa)),Xs+=Ys);var ml=Sa;for(++Sa;Sa<ia&&dt.test(bn[Sa]);++Sa);ba.splice(Xs,0,new gt(2,ml,Sa)),Xs+=Ys,bs=Sa}else++Sa;bs<ia&&ba.splice(Xs,0,new gt(1,bs,ia))}return Qt=="ltr"&&(ba[0].level==1&&(us=wt.match(/^\s+/))&&(ba[0].from=us[0].length,ba.unshift(new gt(0,0,us[0].length))),at(ba).level==1&&(us=wt.match(/\s+$/))&&(at(ba).to-=us[0].length,ba.push(new gt(0,En-us[0].length,En)))),Qt=="rtl"?ba.reverse():ba}}();function ct(a,b){var de=a.order;return de==null&&(de=a.order=vt(a.text,b)),de}var st=[],At=function(a,b,de){if(a.addEventListener)a.addEventListener(b,de,!1);else if(a.attachEvent)a.attachEvent("on"+b,de);else{var le=a._handlers||(a._handlers={});le[b]=(le[b]||st).concat(de)}};function mt(a,b){return a._handlers&&a._handlers[b]||st}function Dt(a,b,de){if(a.removeEventListener)a.removeEventListener(b,de,!1);else if(a.detachEvent)a.detachEvent("on"+b,de);else{var le=a._handlers,Ce=le&&le[b];if(Ce){var He=tt(Ce,de);He>-1&&(le[b]=Ce.slice(0,He).concat(Ce.slice(He+1)))}}}function jt(a,b){var de=mt(a,b);if(de.length)for(var le=Array.prototype.slice.call(arguments,2),Ce=0;Ce<de.length;++Ce)de[Ce].apply(null,le)}function Et(a,b,de){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),jt(a,de||b.type,a,b),nn(b)||b.codemirrorIgnore}function kt(a){var b=a._handlers&&a._handlers.cursorActivity;if(b)for(var de=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),le=0;le<b.length;++le)tt(de,b[le])==-1&&de.push(b[le])}function Nt(a,b){return mt(a,b).length>0}function yt(a){a.prototype.on=function(b,de){At(this,b,de)},a.prototype.off=function(b,de){Dt(this,b,de)}}function Pt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Kt(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function nn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function xt(a){Pt(a),Kt(a)}function Ct(a){return a.target||a.srcElement}function zt(a){var b=a.which;return b==null&&(a.button&1?b=1:a.button&2?b=3:a.button&4&&(b=2)),pe&&a.ctrlKey&&b==1&&(b=3),b}var en=function(){if(be&&z<9)return!1;var a=Ee("div");return"draggable"in a||"dragDrop"in a}(),un;function Cn(a){if(un==null){var b=Ee("span","\u200B");Se(a,Ee("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(un=b.offsetWidth<=1&&b.offsetHeight>2&&!(be&&z<8))}var de=un?Ee("span","\u200B"):Ee("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return de.setAttribute("cm-text",""),de}var Nn;function _n(a){if(Nn!=null)return Nn;var b=Se(a,document.createTextNode("A\u062EA")),de=Pe(b,0,1).getBoundingClientRect(),le=Pe(b,1,2).getBoundingClientRect();return Ae(a),!de||de.left==de.right?!1:Nn=le.right-de.right<3}var yn=`
b`.split(/\n/).length!=3?function(a){for(var b=0,de=[],le=a.length;b<=le;){var Ce=a.indexOf(`
`,b);Ce==-1&&(Ce=a.length);var He=a.slice(b,a.charAt(Ce-1)=="\r"?Ce-1:Ce),it=He.indexOf("\r");it!=-1?(de.push(He.slice(0,it)),b+=it+1):(de.push(He),b=Ce+1)}return de}:function(a){return a.split(/\r\n?|\n/)},Rn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(b){return!1}}:function(a){var b;try{b=a.ownerDocument.selection.createRange()}catch(de){}return!b||b.parentElement()!=a?!1:b.compareEndPoints("StartToEnd",b)!=0},pn=function(){var a=Ee("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),on=null;function Vt(a){if(on!=null)return on;var b=Se(a,Ee("span","x")),de=b.getBoundingClientRect(),le=Pe(b,0,1).getBoundingClientRect();return on=Math.abs(de.left-le.left)>1}var Wt={},Ht={};function hn(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),Wt[a]=b}function cn(a,b){Ht[a]=b}function mn(a){if(typeof a=="string"&&Ht.hasOwnProperty(a))a=Ht[a];else if(a&&typeof a.name=="string"&&Ht.hasOwnProperty(a.name)){var b=Ht[a.name];typeof b=="string"&&(b={name:b}),a=ne(b,a),a.name=b.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return mn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return mn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Bn(a,b){b=mn(b);var de=Wt[b.name];if(!de)return Bn(a,"text/plain");var le=de(a,b);if(Pn.hasOwnProperty(b.name)){var Ce=Pn[b.name];for(var He in Ce)Ce.hasOwnProperty(He)&&(le.hasOwnProperty(He)&&(le["_"+He]=le[He]),le[He]=Ce[He])}if(le.name=b.name,b.helperType&&(le.helperType=b.helperType),b.modeProps)for(var it in b.modeProps)le[it]=b.modeProps[it];return le}var Pn={};function gn(a,b){var de=Pn.hasOwnProperty(a)?Pn[a]:Pn[a]={};nt(b,de)}function Ln(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var de={};for(var le in b){var Ce=b[le];Ce instanceof Array&&(Ce=Ce.concat([])),de[le]=Ce}return de}function Kn(a,b){for(var de;a.innerMode&&(de=a.innerMode(b),!(!de||de.mode==a));)b=de.state,a=de.mode;return de||{mode:a,state:b}}function sr(a,b,de){return a.startState?a.startState(b,de):!0}var nr=function(a,b,de){this.pos=this.start=0,this.string=a,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=de};nr.prototype.eol=function(){return this.pos>=this.string.length},nr.prototype.sol=function(){return this.pos==this.lineStart},nr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},nr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},nr.prototype.eat=function(a){var b=this.string.charAt(this.pos),de;if(typeof a=="string"?de=b==a:de=b&&(a.test?a.test(b):a(b)),de)return++this.pos,b},nr.prototype.eatWhile=function(a){for(var b=this.pos;this.eat(a););return this.pos>b},nr.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},nr.prototype.skipToEnd=function(){this.pos=this.string.length},nr.prototype.skipTo=function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},nr.prototype.backUp=function(a){this.pos-=a},nr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=_e(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?_e(this.string,this.lineStart,this.tabSize):0)},nr.prototype.indentation=function(){return _e(this.string,null,this.tabSize)-(this.lineStart?_e(this.string,this.lineStart,this.tabSize):0)},nr.prototype.match=function(a,b,de){if(typeof a=="string"){var le=function(it){return de?it.toLowerCase():it},Ce=this.string.substr(this.pos,a.length);if(le(Ce)==le(a))return b!==!1&&(this.pos+=a.length),!0}else{var He=this.string.slice(this.pos).match(a);return He&&He.index>0?null:(He&&b!==!1&&(this.pos+=He[0].length),He)}},nr.prototype.current=function(){return this.string.slice(this.start,this.pos)},nr.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}},nr.prototype.lookAhead=function(a){var b=this.lineOracle;return b&&b.lookAhead(a)},nr.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function ln(a,b){if(b-=a.first,b<0||b>=a.size)throw new Error("There is no line "+(b+a.first)+" in the document.");for(var de=a;!de.lines;)for(var le=0;;++le){var Ce=de.children[le],He=Ce.chunkSize();if(b<He){de=Ce;break}b-=He}return de.lines[b]}function rn(a,b,de){var le=[],Ce=b.line;return a.iter(b.line,de.line+1,function(He){var it=He.text;Ce==de.line&&(it=it.slice(0,de.ch)),Ce==b.line&&(it=it.slice(b.ch)),le.push(it),++Ce}),le}function Wn(a,b,de){var le=[];return a.iter(b,de,function(Ce){le.push(Ce.text)}),le}function Zn(a,b){var de=b-a.height;if(de)for(var le=a;le;le=le.parent)le.height+=de}function Mt(a){if(a.parent==null)return null;for(var b=a.parent,de=tt(b.lines,a),le=b.parent;le;b=le,le=le.parent)for(var Ce=0;le.children[Ce]!=b;++Ce)de+=le.children[Ce].chunkSize();return de+b.first}function Gt(a,b){var de=a.first;e:do{for(var le=0;le<a.children.length;++le){var Ce=a.children[le],He=Ce.height;if(b<He){a=Ce;continue e}b-=He,de+=Ce.chunkSize()}return de}while(!a.lines);for(var it=0;it<a.lines.length;++it){var dt=a.lines[it],gt=dt.height;if(b<gt)break;b-=gt}return de+it}function St(a,b){return b>=a.first&&b<a.first+a.size}function Rt(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function Tt(a,b,de){if(de===void 0&&(de=null),!(this instanceof Tt))return new Tt(a,b,de);this.line=a,this.ch=b,this.sticky=de}function _t(a,b){return a.line-b.line||a.ch-b.ch}function bt(a,b){return a.sticky==b.sticky&&_t(a,b)==0}function Ut(a){return Tt(a.line,a.ch)}function Lt(a,b){return _t(a,b)<0?b:a}function qt(a,b){return _t(a,b)<0?a:b}function Ft(a,b){return Math.max(a.first,Math.min(b,a.first+a.size-1))}function $t(a,b){if(b.line<a.first)return Tt(a.first,0);var de=a.first+a.size-1;return b.line>de?Tt(de,ln(a,de).text.length):Zt(b,ln(a,b.line).text.length)}function Zt(a,b){var de=a.ch;return de==null||de>b?Tt(a.line,b):de<0?Tt(a.line,0):a}function Xt(a,b){for(var de=[],le=0;le<b.length;le++)de[le]=$t(a,b[le]);return de}var Tn=function(a,b){this.state=a,this.lookAhead=b},On=function(a,b,de,le){this.state=b,this.doc=a,this.line=de,this.maxLookAhead=le||0,this.baseTokens=null,this.baseTokenPos=1};On.prototype.lookAhead=function(a){var b=this.doc.getLine(this.line+a);return b!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),b},On.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var b=this.baseTokens[this.baseTokenPos+1];return{type:b&&b.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},On.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},On.fromSaved=function(a,b,de){return b instanceof Tn?new On(a,Ln(a.mode,b.state),de,b.lookAhead):new On(a,Ln(a.mode,b),de)},On.prototype.save=function(a){var b=a!==!1?Ln(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Tn(b,this.maxLookAhead):b};function Mn(a,b,de,le){var Ce=[a.state.modeGen],He={};Sr(a,b.text,a.doc.mode,de,function(wt,Qt){return Ce.push(wt,Qt)},He,le);for(var it=de.state,dt=function(wt){de.baseTokens=Ce;var Qt=a.state.overlays[wt],an=1,En=0;de.state=!0,Sr(a,b.text,Qt.mode,de,function(bn,Yn){for(var ir=an;En<bn;){var gr=Ce[an];gr>bn&&Ce.splice(an,1,bn,Ce[an+1],gr),an+=2,En=Math.min(bn,gr)}if(Yn)if(Qt.opaque)Ce.splice(ir,an-ir,bn,"overlay "+Yn),an=ir+2;else for(;ir<an;ir+=2){var Nr=Ce[ir+1];Ce[ir+1]=(Nr?Nr+" ":"")+"overlay "+Yn}},He),de.state=it,de.baseTokens=null,de.baseTokenPos=1},gt=0;gt<a.state.overlays.length;++gt)dt(gt);return{styles:Ce,classes:He.bgClass||He.textClass?He:null}}function rr(a,b,de){if(!b.styles||b.styles[0]!=a.state.modeGen){var le=lr(a,Mt(b)),Ce=b.text.length>a.options.maxHighlightLength&&Ln(a.doc.mode,le.state),He=Mn(a,b,le);Ce&&(le.state=Ce),b.stateAfter=le.save(!Ce),b.styles=He.styles,He.classes?b.styleClasses=He.classes:b.styleClasses&&(b.styleClasses=null),de===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return b.styles}function lr(a,b,de){var le=a.doc,Ce=a.display;if(!le.mode.startState)return new On(le,!0,b);var He=Cr(a,b,de),it=He>le.first&&ln(le,He-1).stateAfter,dt=it?On.fromSaved(le,it,He):new On(le,sr(le.mode),He);return le.iter(He,b,function(gt){hr(a,gt.text,dt);var wt=dt.line;gt.stateAfter=wt==b-1||wt%5==0||wt>=Ce.viewFrom&&wt<Ce.viewTo?dt.save():null,dt.nextLine()}),de&&(le.modeFrontier=dt.line),dt}function hr(a,b,de,le){var Ce=a.doc.mode,He=new nr(b,a.options.tabSize,de);for(He.start=He.pos=le||0,b==""&&er(Ce,de.state);!He.eol();)Qn(Ce,He,de.state),He.start=He.pos}function er(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var de=Kn(a,b);if(de.mode.blankLine)return de.mode.blankLine(de.state)}}function Qn(a,b,de,le){for(var Ce=0;Ce<10;Ce++){le&&(le[0]=Kn(a,de).mode);var He=a.token(b,de);if(b.pos>b.start)return He}throw new Error("Mode "+a.name+" failed to advance stream.")}var Fn=function(a,b,de){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=b||null,this.state=de};function pr(a,b,de,le){var Ce=a.doc,He=Ce.mode,it;b=$t(Ce,b);var dt=ln(Ce,b.line),gt=lr(a,b.line,de),wt=new nr(dt.text,a.options.tabSize,gt),Qt;for(le&&(Qt=[]);(le||wt.pos<b.ch)&&!wt.eol();)wt.start=wt.pos,it=Qn(He,wt,gt.state),le&&Qt.push(new Fn(wt,it,Ln(Ce.mode,gt.state)));return le?Qt:new Fn(wt,it,gt.state)}function wr(a,b){if(a)for(;;){var de=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!de)break;a=a.slice(0,de.index)+a.slice(de.index+de[0].length);var le=de[1]?"bgClass":"textClass";b[le]==null?b[le]=de[2]:new RegExp("(?:^|\\s)"+de[2]+"(?:$|\\s)").test(b[le])||(b[le]+=" "+de[2])}return a}function Sr(a,b,de,le,Ce,He,it){var dt=de.flattenSpans;dt==null&&(dt=a.options.flattenSpans);var gt=0,wt=null,Qt=new nr(b,a.options.tabSize,le),an,En=a.options.addModeClass&&[null];for(b==""&&wr(er(de,le.state),He);!Qt.eol();){if(Qt.pos>a.options.maxHighlightLength?(dt=!1,it&&hr(a,b,le,Qt.pos),Qt.pos=b.length,an=null):an=wr(Qn(de,Qt,le.state,En),He),En){var bn=En[0].name;bn&&(an="m-"+(an?bn+" "+an:bn))}if(!dt||wt!=an){for(;gt<Qt.start;)gt=Math.min(Qt.start,gt+5e3),Ce(gt,wt);wt=an}Qt.start=Qt.pos}for(;gt<Qt.pos;){var Yn=Math.min(Qt.pos,gt+5e3);Ce(Yn,wt),gt=Yn}}function Cr(a,b,de){for(var le,Ce,He=a.doc,it=de?-1:b-(a.doc.mode.innerMode?1e3:100),dt=b;dt>it;--dt){if(dt<=He.first)return He.first;var gt=ln(He,dt-1),wt=gt.stateAfter;if(wt&&(!de||dt+(wt instanceof Tn?wt.lookAhead:0)<=He.modeFrontier))return dt;var Qt=_e(gt.text,null,a.options.tabSize);(Ce==null||le>Qt)&&(Ce=dt-1,le=Qt)}return Ce}function Jn(a,b){if(a.modeFrontier=Math.min(a.modeFrontier,b),!(a.highlightFrontier<b-10)){for(var de=a.first,le=b-1;le>de;le--){var Ce=ln(a,le).stateAfter;if(Ce&&(!(Ce instanceof Tn)||le+Ce.lookAhead<b)){de=le+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,de)}}var yr=!1,An=!1;function xn(){yr=!0}function tr(){An=!0}function br(a,b,de){this.marker=a,this.from=b,this.to=de}function Er(a,b){if(a)for(var de=0;de<a.length;++de){var le=a[de];if(le.marker==b)return le}}function Hr(a,b){for(var de,le=0;le<a.length;++le)a[le]!=b&&(de||(de=[])).push(a[le]);return de}function kr(a,b){a.markedSpans=a.markedSpans?a.markedSpans.concat([b]):[b],b.marker.attachLine(a)}function Ur(a,b,de){var le;if(a)for(var Ce=0;Ce<a.length;++Ce){var He=a[Ce],it=He.marker,dt=He.from==null||(it.inclusiveLeft?He.from<=b:He.from<b);if(dt||He.from==b&&it.type=="bookmark"&&(!de||!He.marker.insertLeft)){var gt=He.to==null||(it.inclusiveRight?He.to>=b:He.to>b);(le||(le=[])).push(new br(it,He.from,gt?null:He.to))}}return le}function Tr(a,b,de){var le;if(a)for(var Ce=0;Ce<a.length;++Ce){var He=a[Ce],it=He.marker,dt=He.to==null||(it.inclusiveRight?He.to>=b:He.to>b);if(dt||He.from==b&&it.type=="bookmark"&&(!de||He.marker.insertLeft)){var gt=He.from==null||(it.inclusiveLeft?He.from<=b:He.from<b);(le||(le=[])).push(new br(it,gt?null:He.from-b,He.to==null?null:He.to-b))}}return le}function ei(a,b){if(b.full)return null;var de=St(a,b.from.line)&&ln(a,b.from.line).markedSpans,le=St(a,b.to.line)&&ln(a,b.to.line).markedSpans;if(!de&&!le)return null;var Ce=b.from.ch,He=b.to.ch,it=_t(b.from,b.to)==0,dt=Ur(de,Ce,it),gt=Tr(le,He,it),wt=b.text.length==1,Qt=at(b.text).length+(wt?Ce:0);if(dt)for(var an=0;an<dt.length;++an){var En=dt[an];if(En.to==null){var bn=Er(gt,En.marker);bn?wt&&(En.to=bn.to==null?null:bn.to+Qt):En.to=Ce}}if(gt)for(var Yn=0;Yn<gt.length;++Yn){var ir=gt[Yn];if(ir.to!=null&&(ir.to+=Qt),ir.from==null){var gr=Er(dt,ir.marker);gr||(ir.from=Qt,wt&&(dt||(dt=[])).push(ir))}else ir.from+=Qt,wt&&(dt||(dt=[])).push(ir)}dt&&(dt=si(dt)),gt&&gt!=dt&&(gt=si(gt));var Nr=[dt];if(!wt){var Zr=b.text.length-2,Rr;if(Zr>0&&dt)for(var Yr=0;Yr<dt.length;++Yr)dt[Yr].to==null&&(Rr||(Rr=[])).push(new br(dt[Yr].marker,null,null));for(var hi=0;hi<Zr;++hi)Nr.push(Rr);Nr.push(gt)}return Nr}function si(a){for(var b=0;b<a.length;++b){var de=a[b];de.from!=null&&de.from==de.to&&de.marker.clearWhenEmpty!==!1&&a.splice(b--,1)}return a.length?a:null}function wi(a,b,de){var le=null;if(a.iter(b.line,de.line+1,function(bn){if(bn.markedSpans)for(var Yn=0;Yn<bn.markedSpans.length;++Yn){var ir=bn.markedSpans[Yn].marker;ir.readOnly&&(!le||tt(le,ir)==-1)&&(le||(le=[])).push(ir)}}),!le)return null;for(var Ce=[{from:b,to:de}],He=0;He<le.length;++He)for(var it=le[He],dt=it.find(0),gt=0;gt<Ce.length;++gt){var wt=Ce[gt];if(!(_t(wt.to,dt.from)<0||_t(wt.from,dt.to)>0)){var Qt=[gt,1],an=_t(wt.from,dt.from),En=_t(wt.to,dt.to);(an<0||!it.inclusiveLeft&&!an)&&Qt.push({from:wt.from,to:dt.from}),(En>0||!it.inclusiveRight&&!En)&&Qt.push({from:dt.to,to:wt.to}),Ce.splice.apply(Ce,Qt),gt+=Qt.length-3}}return Ce}function Kr(a){var b=a.markedSpans;if(b){for(var de=0;de<b.length;++de)b[de].marker.detachLine(a);a.markedSpans=null}}function gi(a,b){if(b){for(var de=0;de<b.length;++de)b[de].marker.attachLine(a);a.markedSpans=b}}function di(a){return a.inclusiveLeft?-1:0}function bi(a){return a.inclusiveRight?1:0}function Or(a,b){var de=a.lines.length-b.lines.length;if(de!=0)return de;var le=a.find(),Ce=b.find(),He=_t(le.from,Ce.from)||di(a)-di(b);if(He)return-He;var it=_t(le.to,Ce.to)||bi(a)-bi(b);return it||b.id-a.id}function Pr(a,b){var de=An&&a.markedSpans,le;if(de)for(var Ce=void 0,He=0;He<de.length;++He)Ce=de[He],Ce.marker.collapsed&&(b?Ce.from:Ce.to)==null&&(!le||Or(le,Ce.marker)<0)&&(le=Ce.marker);return le}function ur(a){return Pr(a,!0)}function Dn(a){return Pr(a,!1)}function Un(a,b){var de=An&&a.markedSpans,le;if(de)for(var Ce=0;Ce<de.length;++Ce){var He=de[Ce];He.marker.collapsed&&(He.from==null||He.from<b)&&(He.to==null||He.to>b)&&(!le||Or(le,He.marker)<0)&&(le=He.marker)}return le}function Vn(a,b,de,le,Ce){var He=ln(a,b),it=An&&He.markedSpans;if(it)for(var dt=0;dt<it.length;++dt){var gt=it[dt];if(gt.marker.collapsed){var wt=gt.marker.find(0),Qt=_t(wt.from,de)||di(gt.marker)-di(Ce),an=_t(wt.to,le)||bi(gt.marker)-bi(Ce);if(!(Qt>=0&&an<=0||Qt<=0&&an>=0)&&(Qt<=0&&(gt.marker.inclusiveRight&&Ce.inclusiveLeft?_t(wt.to,de)>=0:_t(wt.to,de)>0)||Qt>=0&&(gt.marker.inclusiveRight&&Ce.inclusiveLeft?_t(wt.from,le)<=0:_t(wt.from,le)<0)))return!0}}}function $n(a){for(var b;b=ur(a);)a=b.find(-1,!0).line;return a}function cr(a){for(var b;b=Dn(a);)a=b.find(1,!0).line;return a}function jr(a){for(var b,de;b=Dn(a);)a=b.find(1,!0).line,(de||(de=[])).push(a);return de}function Gn(a,b){var de=ln(a,b),le=$n(de);return de==le?b:Mt(le)}function zn(a,b){if(b>a.lastLine())return b;var de=ln(a,b),le;if(!qn(a,de))return b;for(;le=Dn(de);)de=le.find(1,!0).line;return Mt(de)+1}function qn(a,b){var de=An&&b.markedSpans;if(de){for(var le=void 0,Ce=0;Ce<de.length;++Ce)if(le=de[Ce],!!le.marker.collapsed){if(le.from==null)return!0;if(!le.marker.widgetNode&&le.from==0&&le.marker.inclusiveLeft&&or(a,b,le))return!0}}}function or(a,b,de){if(de.to==null){var le=de.marker.find(1,!0);return or(a,le.line,Er(le.line.markedSpans,de.marker))}if(de.marker.inclusiveRight&&de.to==b.text.length)return!0;for(var Ce=void 0,He=0;He<b.markedSpans.length;++He)if(Ce=b.markedSpans[He],Ce.marker.collapsed&&!Ce.marker.widgetNode&&Ce.from==de.to&&(Ce.to==null||Ce.to!=de.from)&&(Ce.marker.inclusiveLeft||de.marker.inclusiveRight)&&or(a,b,Ce))return!0}function ti(a){a=$n(a);for(var b=0,de=a.parent,le=0;le<de.lines.length;++le){var Ce=de.lines[le];if(Ce==a)break;b+=Ce.height}for(var He=de.parent;He;de=He,He=de.parent)for(var it=0;it<He.children.length;++it){var dt=He.children[it];if(dt==de)break;b+=dt.height}return b}function Ti(a){if(a.height==0)return 0;for(var b=a.text.length,de,le=a;de=ur(le);){var Ce=de.find(0,!0);le=Ce.from.line,b+=Ce.from.ch-Ce.to.ch}for(le=a;de=Dn(le);){var He=de.find(0,!0);b-=le.text.length-He.from.ch,le=He.to.line,b+=le.text.length-He.to.ch}return b}function mi(a){var b=a.display,de=a.doc;b.maxLine=ln(de,de.first),b.maxLineLength=Ti(b.maxLine),b.maxLineChanged=!0,de.iter(function(le){var Ce=Ti(le);Ce>b.maxLineLength&&(b.maxLineLength=Ce,b.maxLine=le)})}var ki=function(a,b,de){this.text=a,gi(this,b),this.height=de?de(this):1};ki.prototype.lineNo=function(){return Mt(this)},yt(ki);function Oi(a,b,de,le){a.text=b,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Kr(a),gi(a,de);var Ce=le?le(a):1;Ce!=a.height&&Zn(a,Ce)}function Ii(a){a.parent=null,Kr(a)}var _i={},Ni={};function Ri(a,b){if(!a||/^\s*$/.test(a))return null;var de=b.addModeClass?Ni:_i;return de[a]||(de[a]=a.replace(/\S+/g,"cm-$&"))}function so(a,b){var de=Oe("span",null,null,E?"padding-right: .1px":null),le={pre:Oe("pre",[de],"CodeMirror-line"),content:de,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};b.measure={};for(var Ce=0;Ce<=(b.rest?b.rest.length:0);Ce++){var He=Ce?b.rest[Ce-1]:b.line,it=void 0;le.pos=0,le.addToken=Po,_n(a.display.measure)&&(it=ct(He,a.doc.direction))&&(le.addToken=wo(le.addToken,it)),le.map=[];var dt=b!=a.display.externalMeasured&&Mt(He);Vr(He,le,rr(a,He,dt)),He.styleClasses&&(He.styleClasses.bgClass&&(le.bgClass=Ve(He.styleClasses.bgClass,le.bgClass||"")),He.styleClasses.textClass&&(le.textClass=Ve(He.styleClasses.textClass,le.textClass||""))),le.map.length==0&&le.map.push(0,0,le.content.appendChild(Cn(a.display.measure))),Ce==0?(b.measure.map=le.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(le.map),(b.measure.caches||(b.measure.caches=[])).push({}))}if(E){var gt=le.content.lastChild;(/\bcm-tab\b/.test(gt.className)||gt.querySelector&&gt.querySelector(".cm-tab"))&&(le.content.className="cm-tab-wrap-hack")}return jt(a,"renderLine",a,b.line,le.pre),le.pre.className&&(le.textClass=Ve(le.pre.className,le.textClass||"")),le}function xo(a){var b=Ee("span","\u2022","cm-invalidchar");return b.title="\\u"+a.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function Po(a,b,de,le,Ce,He,it){if(b){var dt=a.splitSpaces?jo(b,a.trailingSpace):b,gt=a.cm.state.specialChars,wt=!1,Qt;if(!gt.test(b))a.col+=b.length,Qt=document.createTextNode(dt),a.map.push(a.pos,a.pos+b.length,Qt),be&&z<9&&(wt=!0),a.pos+=b.length;else{Qt=document.createDocumentFragment();for(var an=0;;){gt.lastIndex=an;var En=gt.exec(b),bn=En?En.index-an:b.length-an;if(bn){var Yn=document.createTextNode(dt.slice(an,an+bn));be&&z<9?Qt.appendChild(Ee("span",[Yn])):Qt.appendChild(Yn),a.map.push(a.pos,a.pos+bn,Yn),a.col+=bn,a.pos+=bn}if(!En)break;an+=bn+1;var ir=void 0;if(En[0]==" "){var gr=a.cm.options.tabSize,Nr=gr-a.col%gr;ir=Qt.appendChild(Ee("span",ft(Nr),"cm-tab")),ir.setAttribute("role","presentation"),ir.setAttribute("cm-text"," "),a.col+=Nr}else En[0]=="\r"||En[0]==`
`?(ir=Qt.appendChild(Ee("span",En[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ir.setAttribute("cm-text",En[0]),a.col+=1):(ir=a.cm.options.specialCharPlaceholder(En[0]),ir.setAttribute("cm-text",En[0]),be&&z<9?Qt.appendChild(Ee("span",[ir])):Qt.appendChild(ir),a.col+=1);a.map.push(a.pos,a.pos+1,ir),a.pos++}}if(a.trailingSpace=dt.charCodeAt(b.length-1)==32,de||le||Ce||wt||He||it){var Zr=de||"";le&&(Zr+=le),Ce&&(Zr+=Ce);var Rr=Ee("span",[Qt],Zr,He);if(it)for(var Yr in it)it.hasOwnProperty(Yr)&&Yr!="style"&&Yr!="class"&&Rr.setAttribute(Yr,it[Yr]);return a.content.appendChild(Rr)}a.content.appendChild(Qt)}}function jo(a,b){if(a.length>1&&!/ /.test(a))return a;for(var de=b,le="",Ce=0;Ce<a.length;Ce++){var He=a.charAt(Ce);He==" "&&de&&(Ce==a.length-1||a.charCodeAt(Ce+1)==32)&&(He="\xA0"),le+=He,de=He==" "}return le}function wo(a,b){return function(de,le,Ce,He,it,dt,gt){Ce=Ce?Ce+" cm-force-border":"cm-force-border";for(var wt=de.pos,Qt=wt+le.length;;){for(var an=void 0,En=0;En<b.length&&(an=b[En],!(an.to>wt&&an.from<=wt));En++);if(an.to>=Qt)return a(de,le,Ce,He,it,dt,gt);a(de,le.slice(0,an.to-wt),Ce,He,null,dt,gt),He=null,le=le.slice(an.to-wt),wt=an.to}}}function ni(a,b,de,le){var Ce=!le&&de.widgetNode;Ce&&a.map.push(a.pos,a.pos+b,Ce),!le&&a.cm.display.input.needsContentAttribute&&(Ce||(Ce=a.content.appendChild(document.createElement("span"))),Ce.setAttribute("cm-marker",de.id)),Ce&&(a.cm.display.input.setUneditable(Ce),a.content.appendChild(Ce)),a.pos+=b,a.trailingSpace=!1}function Vr(a,b,de){var le=a.markedSpans,Ce=a.text,He=0;if(!le){for(var it=1;it<de.length;it+=2)b.addToken(b,Ce.slice(He,He=de[it]),Ri(de[it+1],b.cm.options));return}for(var dt=Ce.length,gt=0,wt=1,Qt="",an,En,bn=0,Yn,ir,gr,Nr,Zr;;){if(bn==gt){Yn=ir=gr=En="",Zr=null,Nr=null,bn=1/0;for(var Rr=[],Yr=void 0,hi=0;hi<le.length;++hi){var ui=le[hi],Li=ui.marker;if(Li.type=="bookmark"&&ui.from==gt&&Li.widgetNode)Rr.push(Li);else if(ui.from<=gt&&(ui.to==null||ui.to>gt||Li.collapsed&&ui.to==gt&&ui.from==gt)){if(ui.to!=null&&ui.to!=gt&&bn>ui.to&&(bn=ui.to,ir=""),Li.className&&(Yn+=" "+Li.className),Li.css&&(En=(En?En+";":"")+Li.css),Li.startStyle&&ui.from==gt&&(gr+=" "+Li.startStyle),Li.endStyle&&ui.to==bn&&(Yr||(Yr=[])).push(Li.endStyle,ui.to),Li.title&&((Zr||(Zr={})).title=Li.title),Li.attributes)for(var go in Li.attributes)(Zr||(Zr={}))[go]=Li.attributes[go];Li.collapsed&&(!Nr||Or(Nr.marker,Li)<0)&&(Nr=ui)}else ui.from>gt&&bn>ui.from&&(bn=ui.from)}if(Yr)for(var ra=0;ra<Yr.length;ra+=2)Yr[ra+1]==bn&&(ir+=" "+Yr[ra]);if(!Nr||Nr.from==gt)for(var Mo=0;Mo<Rr.length;++Mo)ni(b,0,Rr[Mo]);if(Nr&&(Nr.from||0)==gt){if(ni(b,(Nr.to==null?dt+1:Nr.to)-gt,Nr.marker,Nr.from==null),Nr.to==null)return;Nr.to==gt&&(Nr=!1)}}if(gt>=dt)break;for(var Ra=Math.min(dt,bn);;){if(Qt){var Oa=gt+Qt.length;if(!Nr){var Vo=Oa>Ra?Qt.slice(0,Ra-gt):Qt;b.addToken(b,Vo,an?an+Yn:Yn,gr,gt+Vo.length==bn?ir:"",En,Zr)}if(Oa>=Ra){Qt=Qt.slice(Ra-gt),gt=Ra;break}gt=Oa,gr=""}Qt=Ce.slice(He,He=de[wt++]),an=Ri(de[wt++],b.cm.options)}}}function Qi(a,b,de){this.line=b,this.rest=jr(b),this.size=this.rest?Mt(at(this.rest))-de+1:1,this.node=this.text=null,this.hidden=qn(a,b)}function qi(a,b,de){for(var le=[],Ce,He=b;He<de;He=Ce){var it=new Qi(a.doc,ln(a.doc,He),He);Ce=He+it.size,le.push(it)}return le}var li=null;function Zi(a){li?li.ops.push(a):a.ownsGroup=li={ops:[a],delayedCallbacks:[]}}function Yi(a){var b=a.delayedCallbacks,de=0;do{for(;de<b.length;de++)b[de].call(null);for(var le=0;le<a.ops.length;le++){var Ce=a.ops[le];if(Ce.cursorActivityHandlers)for(;Ce.cursorActivityCalled<Ce.cursorActivityHandlers.length;)Ce.cursorActivityHandlers[Ce.cursorActivityCalled++].call(null,Ce.cm)}}while(de<b.length)}function yi(a,b){var de=a.ownsGroup;if(de)try{Yi(de)}finally{li=null,b(de)}}var Fi=null;function Ai(a,b){var de=mt(a,b);if(de.length){var le=Array.prototype.slice.call(arguments,2),Ce;li?Ce=li.delayedCallbacks:Fi?Ce=Fi:(Ce=Fi=[],setTimeout(Fo,0));for(var He=function(dt){Ce.push(function(){return de[dt].apply(null,le)})},it=0;it<de.length;++it)He(it)}}function Fo(){var a=Fi;Fi=null;for(var b=0;b<a.length;++b)a[b]()}function pa(a,b,de,le){for(var Ce=0;Ce<b.changes.length;Ce++){var He=b.changes[Ce];He=="text"?es(a,b):He=="gutter"?Si(a,b,de,le):He=="class"?ci(a,b):He=="widget"&&ii(a,b,le)}b.changes=null}function Zo(a){return a.node==a.text&&(a.node=Ee("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),be&&z<8&&(a.node.style.zIndex=2)),a.node}function Do(a,b){var de=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;if(de&&(de+=" CodeMirror-linebackground"),b.background)de?b.background.className=de:(b.background.parentNode.removeChild(b.background),b.background=null);else if(de){var le=Zo(b);b.background=le.insertBefore(Ee("div",null,de),le.firstChild),a.display.input.setUneditable(b.background)}}function cs(a,b){var de=a.display.externalMeasured;return de&&de.line==b.line?(a.display.externalMeasured=null,b.measure=de.measure,de.built):so(a,b)}function es(a,b){var de=b.text.className,le=cs(a,b);b.text==b.node&&(b.node=le.pre),b.text.parentNode.replaceChild(le.pre,b.text),b.text=le.pre,le.bgClass!=b.bgClass||le.textClass!=b.textClass?(b.bgClass=le.bgClass,b.textClass=le.textClass,ci(a,b)):de&&(b.text.className=de)}function ci(a,b){Do(a,b),b.line.wrapClass?Zo(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");var de=b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass;b.text.className=de||""}function Si(a,b,de,le){if(b.gutter&&(b.node.removeChild(b.gutter),b.gutter=null),b.gutterBackground&&(b.node.removeChild(b.gutterBackground),b.gutterBackground=null),b.line.gutterClass){var Ce=Zo(b);b.gutterBackground=Ee("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,"left: "+(a.options.fixedGutter?le.fixedPos:-le.gutterTotalWidth)+"px; width: "+le.gutterTotalWidth+"px"),a.display.input.setUneditable(b.gutterBackground),Ce.insertBefore(b.gutterBackground,b.text)}var He=b.line.gutterMarkers;if(a.options.lineNumbers||He){var it=Zo(b),dt=b.gutter=Ee("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?le.fixedPos:-le.gutterTotalWidth)+"px");if(a.display.input.setUneditable(dt),it.insertBefore(dt,b.text),b.line.gutterClass&&(dt.className+=" "+b.line.gutterClass),a.options.lineNumbers&&(!He||!He["CodeMirror-linenumbers"])&&(b.lineNumber=dt.appendChild(Ee("div",Rt(a.options,de),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+le.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),He)for(var gt=0;gt<a.display.gutterSpecs.length;++gt){var wt=a.display.gutterSpecs[gt].className,Qt=He.hasOwnProperty(wt)&&He[wt];Qt&&dt.appendChild(Ee("div",[Qt],"CodeMirror-gutter-elt","left: "+le.gutterLeft[wt]+"px; width: "+le.gutterWidth[wt]+"px"))}}}function ii(a,b,de){b.alignable&&(b.alignable=null);for(var le=De("CodeMirror-linewidget"),Ce=b.node.firstChild,He=void 0;Ce;Ce=He)He=Ce.nextSibling,le.test(Ce.className)&&b.node.removeChild(Ce);Ui(a,b,de)}function fi(a,b,de,le){var Ce=cs(a,b);return b.text=b.node=Ce.pre,Ce.bgClass&&(b.bgClass=Ce.bgClass),Ce.textClass&&(b.textClass=Ce.textClass),ci(a,b),Si(a,b,de,le),Ui(a,b,le),b.node}function Ui(a,b,de){if(lo(a,b.line,b,de,!0),b.rest)for(var le=0;le<b.rest.length;le++)lo(a,b.rest[le],b,de,!1)}function lo(a,b,de,le,Ce){if(b.widgets)for(var He=Zo(de),it=0,dt=b.widgets;it<dt.length;++it){var gt=dt[it],wt=Ee("div",[gt.node],"CodeMirror-linewidget"+(gt.className?" "+gt.className:""));gt.handleMouseEvents||wt.setAttribute("cm-ignore-events","true"),Ma(gt,wt,de,le),a.display.input.setUneditable(wt),Ce&&gt.above?He.insertBefore(wt,de.gutter||de.text):He.appendChild(wt),Ai(gt,"redraw")}}function Ma(a,b,de,le){if(a.noHScroll){(de.alignable||(de.alignable=[])).push(b);var Ce=le.wrapperWidth;b.style.left=le.fixedPos+"px",a.coverGutter||(Ce-=le.gutterTotalWidth,b.style.paddingLeft=le.gutterTotalWidth+"px"),b.style.width=Ce+"px"}a.coverGutter&&(b.style.zIndex=5,b.style.position="relative",a.noHScroll||(b.style.marginLeft=-le.gutterTotalWidth+"px"))}function oa(a){if(a.height!=null)return a.height;var b=a.doc.cm;if(!b)return 0;if(!Le(document.body,a.node)){var de="position: relative;";a.coverGutter&&(de+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),a.noHScroll&&(de+="width: "+b.display.wrapper.clientWidth+"px;"),Se(b.display.measure,Ee("div",[a.node],null,de))}return a.height=a.node.parentNode.offsetHeight}function Yo(a,b){for(var de=Ct(b);de!=a.wrapper;de=de.parentNode)if(!de||de.nodeType==1&&de.getAttribute("cm-ignore-events")=="true"||de.parentNode==a.sizer&&de!=a.mover)return!0}function Ao(a){return a.lineSpace.offsetTop}function ja(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Fa(a){if(a.cachedPaddingH)return a.cachedPaddingH;var b=Se(a.measure,Ee("pre","x","CodeMirror-line-like")),de=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,le={left:parseInt(de.paddingLeft),right:parseInt(de.paddingRight)};return!isNaN(le.left)&&!isNaN(le.right)&&(a.cachedPaddingH=le),le}function ha(a){return rt-a.display.nativeBarWidth}function $a(a){return a.display.scroller.clientWidth-ha(a)-a.display.barWidth}function Ya(a){return a.display.scroller.clientHeight-ha(a)-a.display.barHeight}function Da(a,b,de){var le=a.options.lineWrapping,Ce=le&&$a(a);if(!b.measure.heights||le&&b.measure.width!=Ce){var He=b.measure.heights=[];if(le){b.measure.width=Ce;for(var it=b.text.firstChild.getClientRects(),dt=0;dt<it.length-1;dt++){var gt=it[dt],wt=it[dt+1];Math.abs(gt.bottom-wt.bottom)>2&&He.push((gt.bottom+wt.top)/2-de.top)}}He.push(de.bottom-de.top)}}function ds(a,b,de){if(a.line==b)return{map:a.measure.map,cache:a.measure.cache};for(var le=0;le<a.rest.length;le++)if(a.rest[le]==b)return{map:a.measure.maps[le],cache:a.measure.caches[le]};for(var Ce=0;Ce<a.rest.length;Ce++)if(Mt(a.rest[Ce])>de)return{map:a.measure.maps[Ce],cache:a.measure.caches[Ce],before:!0}}function vl(a,b){b=$n(b);var de=Mt(b),le=a.display.externalMeasured=new Qi(a.doc,b,de);le.lineN=de;var Ce=le.built=so(a,le);return le.text=Ce.pre,Se(a.display.lineMeasure,Ce.pre),le}function Js(a,b,de,le){return Aa(a,ts(a,b),de,le)}function za(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[Wa(a,b)];var de=a.display.externalMeasured;if(de&&b>=de.lineN&&b<de.lineN+de.size)return de}function ts(a,b){var de=Mt(b),le=za(a,de);le&&!le.text?le=null:le&&le.changes&&(pa(a,le,de,rs(a)),a.curOp.forceUpdate=!0),le||(le=vl(a,b));var Ce=ds(le,b,de);return{line:b,view:le,rect:null,map:Ce.map,cache:Ce.cache,before:Ce.before,hasHeights:!1}}function Aa(a,b,de,le,Ce){b.before&&(de=-1);var He=de+(le||""),it;return b.cache.hasOwnProperty(He)?it=b.cache[He]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(Da(a,b.view,b.rect),b.hasHeights=!0),it=el(a,b,de,le),it.bogus||(b.cache[He]=it)),{left:it.left,right:it.right,top:Ce?it.rtop:it.top,bottom:Ce?it.rbottom:it.bottom}}var gl={left:0,right:0,top:0,bottom:0};function Ns(a,b,de){for(var le,Ce,He,it,dt,gt,wt=0;wt<a.length;wt+=3)if(dt=a[wt],gt=a[wt+1],b<dt?(Ce=0,He=1,it="left"):b<gt?(Ce=b-dt,He=Ce+1):(wt==a.length-3||b==gt&&a[wt+3]>b)&&(He=gt-dt,Ce=He-1,b>=gt&&(it="right")),Ce!=null){if(le=a[wt+2],dt==gt&&de==(le.insertLeft?"left":"right")&&(it=de),de=="left"&&Ce==0)for(;wt&&a[wt-2]==a[wt-3]&&a[wt-1].insertLeft;)le=a[(wt-=3)+2],it="left";if(de=="right"&&Ce==gt-dt)for(;wt<a.length-3&&a[wt+3]==a[wt+4]&&!a[wt+5].insertLeft;)le=a[(wt+=3)+2],it="right";break}return{node:le,start:Ce,end:He,collapse:it,coverStart:dt,coverEnd:gt}}function Qs(a,b){var de=gl;if(b=="left")for(var le=0;le<a.length&&(de=a[le]).left==de.right;le++);else for(var Ce=a.length-1;Ce>=0&&(de=a[Ce]).left==de.right;Ce--);return de}function el(a,b,de,le){var Ce=Ns(b.map,de,le),He=Ce.node,it=Ce.start,dt=Ce.end,gt=Ce.collapse,wt;if(He.nodeType==3){for(var Qt=0;Qt<4;Qt++){for(;it&&Ie(b.line.text.charAt(Ce.coverStart+it));)--it;for(;Ce.coverStart+dt<Ce.coverEnd&&Ie(b.line.text.charAt(Ce.coverStart+dt));)++dt;if(be&&z<9&&it==0&&dt==Ce.coverEnd-Ce.coverStart?wt=He.parentNode.getBoundingClientRect():wt=Qs(Pe(He,it,dt).getClientRects(),le),wt.left||wt.right||it==0)break;dt=it,it=it-1,gt="right"}be&&z<11&&(wt=zl(a.display.measure,wt))}else{it>0&&(gt=le="right");var an;a.options.lineWrapping&&(an=He.getClientRects()).length>1?wt=an[le=="right"?an.length-1:0]:wt=He.getBoundingClientRect()}if(be&&z<9&&!it&&(!wt||!wt.left&&!wt.right)){var En=He.parentNode.getClientRects()[0];En?wt={left:En.left,right:En.left+La(a.display),top:En.top,bottom:En.bottom}:wt=gl}for(var bn=wt.top-b.rect.top,Yn=wt.bottom-b.rect.top,ir=(bn+Yn)/2,gr=b.view.measure.heights,Nr=0;Nr<gr.length-1&&!(ir<gr[Nr]);Nr++);var Zr=Nr?gr[Nr-1]:0,Rr=gr[Nr],Yr={left:(gt=="right"?wt.right:wt.left)-b.rect.left,right:(gt=="left"?wt.left:wt.right)-b.rect.left,top:Zr,bottom:Rr};return!wt.left&&!wt.right&&(Yr.bogus=!0),a.options.singleCursorHeightPerLine||(Yr.rtop=bn,Yr.rbottom=Yn),Yr}function zl(a,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Vt(a))return b;var de=screen.logicalXDPI/screen.deviceXDPI,le=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*de,right:b.right*de,top:b.top*le,bottom:b.bottom*le}}function Rs(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var b=0;b<a.rest.length;b++)a.measure.caches[b]={}}function Ha(a){a.display.externalMeasure=null,Ae(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)Rs(a.display.view[b])}function fs(a){Ha(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function xs(){return oe&&se?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ms(){return oe&&se?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ps(a){var b=0;if(a.widgets)for(var de=0;de<a.widgets.length;++de)a.widgets[de].above&&(b+=oa(a.widgets[de]));return b}function Bs(a,b,de,le,Ce){if(!Ce){var He=ps(b);de.top+=He,de.bottom+=He}if(le=="line")return de;le||(le="local");var it=ti(b);if(le=="local"?it+=Ao(a.display):it-=a.display.viewOffset,le=="page"||le=="window"){var dt=a.display.lineSpace.getBoundingClientRect();it+=dt.top+(le=="window"?0:Ms());var gt=dt.left+(le=="window"?0:xs());de.left+=gt,de.right+=gt}return de.top+=it,de.bottom+=it,de}function tl(a,b,de){if(de=="div")return b;var le=b.left,Ce=b.top;if(de=="page")le-=xs(),Ce-=Ms();else if(de=="local"||!de){var He=a.display.sizer.getBoundingClientRect();le+=He.left,Ce+=He.top}var it=a.display.lineSpace.getBoundingClientRect();return{left:le-it.left,top:Ce-it.top}}function ns(a,b,de,le,Ce){return le||(le=ln(a.doc,b.line)),Bs(a,le,Js(a,le,b.ch,Ce),de)}function aa(a,b,de,le,Ce,He){le=le||ln(a.doc,b.line),Ce||(Ce=ts(a,le));function it(Yn,ir){var gr=Aa(a,Ce,Yn,ir?"right":"left",He);return ir?gr.left=gr.right:gr.right=gr.left,Bs(a,le,gr,de)}var dt=ct(le,a.doc.direction),gt=b.ch,wt=b.sticky;if(gt>=le.text.length?(gt=le.text.length,wt="before"):gt<=0&&(gt=0,wt="after"),!dt)return it(wt=="before"?gt-1:gt,wt=="before");function Qt(Yn,ir,gr){var Nr=dt[ir],Zr=Nr.level==1;return it(gr?Yn-1:Yn,Zr!=gr)}var an=lt(dt,gt,wt),En=ut,bn=Qt(gt,an,wt=="before");return En!=null&&(bn.other=Qt(gt,En,wt!="before")),bn}function Wi(a,b){var de=0;b=$t(a.doc,b),a.options.lineWrapping||(de=La(a.display)*b.ch);var le=ln(a.doc,b.line),Ce=ti(le)+Ao(a.display);return{left:de,right:de,top:Ce,bottom:Ce+le.height}}function Ci(a,b,de,le,Ce){var He=Tt(a,b,de);return He.xRel=Ce,le&&(He.outside=le),He}function Wo(a,b,de){var le=a.doc;if(de+=a.display.viewOffset,de<0)return Ci(le.first,0,null,-1,-1);var Ce=Gt(le,de),He=le.first+le.size-1;if(Ce>He)return Ci(le.first+le.size-1,ln(le,He).text.length,null,1,1);b<0&&(b=0);for(var it=ln(le,Ce);;){var dt=Ba(a,it,Ce,b,de),gt=Un(it,dt.ch+(dt.xRel>0||dt.outside>0?1:0));if(!gt)return dt;var wt=gt.find(1);if(wt.line==Ce)return wt;it=ln(le,Ce=wt.line)}}function sa(a,b,de,le){le-=ps(b);var Ce=b.text.length,He=Ge(function(it){return Aa(a,de,it-1).bottom<=le},Ce,0);return Ce=Ge(function(it){return Aa(a,de,it).top>le},He,Ce),{begin:He,end:Ce}}function ko(a,b,de,le){de||(de=ts(a,b));var Ce=Bs(a,b,Aa(a,de,le),"line").top;return sa(a,b,de,Ce)}function Uo(a,b,de,le){return a.bottom<=de?!1:a.top>de?!0:(le?a.left:a.right)>b}function Ba(a,b,de,le,Ce){Ce-=ti(b);var He=ts(a,b),it=ps(b),dt=0,gt=b.text.length,wt=!0,Qt=ct(b,a.doc.direction);if(Qt){var an=(a.options.lineWrapping?Za:ka)(a,b,de,He,Qt,le,Ce);wt=an.level!=1,dt=wt?an.from:an.to-1,gt=wt?an.to:an.from-1}var En=null,bn=null,Yn=Ge(function(hi){var ui=Aa(a,He,hi);return ui.top+=it,ui.bottom+=it,Uo(ui,le,Ce,!1)?(ui.top<=Ce&&ui.left<=le&&(En=hi,bn=ui),!0):!1},dt,gt),ir,gr,Nr=!1;if(bn){var Zr=le-bn.left<bn.right-le,Rr=Zr==wt;Yn=En+(Rr?0:1),gr=Rr?"after":"before",ir=Zr?bn.left:bn.right}else{!wt&&(Yn==gt||Yn==dt)&&Yn++,gr=Yn==0?"after":Yn==b.text.length?"before":Aa(a,He,Yn-(wt?1:0)).bottom+it<=Ce==wt?"after":"before";var Yr=aa(a,Tt(de,Yn,gr),"line",b,He);ir=Yr.left,Nr=Ce<Yr.top?-1:Ce>=Yr.bottom?1:0}return Yn=$e(b.text,Yn,1),Ci(de,Yn,gr,Nr,le-ir)}function ka(a,b,de,le,Ce,He,it){var dt=Ge(function(an){var En=Ce[an],bn=En.level!=1;return Uo(aa(a,Tt(de,bn?En.to:En.from,bn?"before":"after"),"line",b,le),He,it,!0)},0,Ce.length-1),gt=Ce[dt];if(dt>0){var wt=gt.level!=1,Qt=aa(a,Tt(de,wt?gt.from:gt.to,wt?"after":"before"),"line",b,le);Uo(Qt,He,it,!0)&&Qt.top>it&&(gt=Ce[dt-1])}return gt}function Za(a,b,de,le,Ce,He,it){var dt=sa(a,b,le,it),gt=dt.begin,wt=dt.end;/\s/.test(b.text.charAt(wt-1))&&wt--;for(var Qt=null,an=null,En=0;En<Ce.length;En++){var bn=Ce[En];if(!(bn.from>=wt||bn.to<=gt)){var Yn=bn.level!=1,ir=Aa(a,le,Yn?Math.min(wt,bn.to)-1:Math.max(gt,bn.from)).right,gr=ir<He?He-ir+1e9:ir-He;(!Qt||an>gr)&&(Qt=bn,an=gr)}}return Qt||(Qt=Ce[Ce.length-1]),Qt.from<gt&&(Qt={from:gt,to:Qt.to,level:Qt.level}),Qt.to>wt&&(Qt={from:Qt.from,to:wt,level:Qt.level}),Qt}var xa;function wa(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(xa==null){xa=Ee("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)xa.appendChild(document.createTextNode("x")),xa.appendChild(Ee("br"));xa.appendChild(document.createTextNode("x"))}Se(a.measure,xa);var de=xa.offsetHeight/50;return de>3&&(a.cachedTextHeight=de),Ae(a.measure),de||1}function La(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=Ee("span","xxxxxxxxxx"),de=Ee("pre",[b],"CodeMirror-line-like");Se(a.measure,de);var le=b.getBoundingClientRect(),Ce=(le.right-le.left)/10;return Ce>2&&(a.cachedCharWidth=Ce),Ce||10}function rs(a){for(var b=a.display,de={},le={},Ce=b.gutters.clientLeft,He=b.gutters.firstChild,it=0;He;He=He.nextSibling,++it){var dt=a.display.gutterSpecs[it].className;de[dt]=He.offsetLeft+He.clientLeft+Ce,le[dt]=He.clientWidth}return{fixedPos:yl(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:de,gutterWidth:le,wrapperWidth:b.wrapper.clientWidth}}function yl(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function bl(a){var b=wa(a.display),de=a.options.lineWrapping,le=de&&Math.max(5,a.display.scroller.clientWidth/La(a.display)-3);return function(Ce){if(qn(a.doc,Ce))return 0;var He=0;if(Ce.widgets)for(var it=0;it<Ce.widgets.length;it++)Ce.widgets[it].height&&(He+=Ce.widgets[it].height);return de?He+(Math.ceil(Ce.text.length/le)||1)*b:He+b}}function ws(a){var b=a.doc,de=bl(a);b.iter(function(le){var Ce=de(le);Ce!=le.height&&Zn(le,Ce)})}function Ja(a,b,de,le){var Ce=a.display;if(!de&&Ct(b).getAttribute("cm-not-content")=="true")return null;var He,it,dt=Ce.lineSpace.getBoundingClientRect();try{He=b.clientX-dt.left,it=b.clientY-dt.top}catch(an){return null}var gt=Wo(a,He,it),wt;if(le&&gt.xRel>0&&(wt=ln(a.doc,gt.line).text).length==gt.ch){var Qt=_e(wt,wt.length,a.options.tabSize)-wt.length;gt=Tt(gt.line,Math.max(0,Math.round((He-Fa(a.display).left)/La(a.display))-Qt))}return gt}function Wa(a,b){if(b>=a.display.viewTo||(b-=a.display.viewFrom,b<0))return null;for(var de=a.display.view,le=0;le<de.length;le++)if(b-=de[le].size,b<0)return le}function la(a,b,de,le){b==null&&(b=a.doc.first),de==null&&(de=a.doc.first+a.doc.size),le||(le=0);var Ce=a.display;if(le&&de<Ce.viewTo&&(Ce.updateLineNumbers==null||Ce.updateLineNumbers>b)&&(Ce.updateLineNumbers=b),a.curOp.viewChanged=!0,b>=Ce.viewTo)An&&Gn(a.doc,b)<Ce.viewTo&&Ua(a);else if(de<=Ce.viewFrom)An&&zn(a.doc,de+le)>Ce.viewFrom?Ua(a):(Ce.viewFrom+=le,Ce.viewTo+=le);else if(b<=Ce.viewFrom&&de>=Ce.viewTo)Ua(a);else if(b<=Ce.viewFrom){var He=Ls(a,de,de+le,1);He?(Ce.view=Ce.view.slice(He.index),Ce.viewFrom=He.lineN,Ce.viewTo+=le):Ua(a)}else if(de>=Ce.viewTo){var it=Ls(a,b,b,-1);it?(Ce.view=Ce.view.slice(0,it.index),Ce.viewTo=it.lineN):Ua(a)}else{var dt=Ls(a,b,b,-1),gt=Ls(a,de,de+le,1);dt&&gt?(Ce.view=Ce.view.slice(0,dt.index).concat(qi(a,dt.lineN,gt.lineN)).concat(Ce.view.slice(gt.index)),Ce.viewTo+=le):Ua(a)}var wt=Ce.externalMeasured;wt&&(de<wt.lineN?wt.lineN+=le:b<wt.lineN+wt.size&&(Ce.externalMeasured=null))}function is(a,b,de){a.curOp.viewChanged=!0;var le=a.display,Ce=a.display.externalMeasured;if(Ce&&b>=Ce.lineN&&b<Ce.lineN+Ce.size&&(le.externalMeasured=null),!(b<le.viewFrom||b>=le.viewTo)){var He=le.view[Wa(a,b)];if(He.node!=null){var it=He.changes||(He.changes=[]);tt(it,de)==-1&&it.push(de)}}}function Ua(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ls(a,b,de,le){var Ce=Wa(a,b),He,it=a.display.view;if(!An||de==a.doc.first+a.doc.size)return{index:Ce,lineN:de};for(var dt=a.display.viewFrom,gt=0;gt<Ce;gt++)dt+=it[gt].size;if(dt!=b){if(le>0){if(Ce==it.length-1)return null;He=dt+it[Ce].size-b,Ce++}else He=dt-b;b+=He,de+=He}for(;Gn(a.doc,de)!=de;){if(Ce==(le<0?0:it.length-1))return null;de+=le*it[Ce-(le<0?1:0)].size,Ce+=le}return{index:Ce,lineN:de}}function Hl(a,b,de){var le=a.display,Ce=le.view;Ce.length==0||b>=le.viewTo||de<=le.viewFrom?(le.view=qi(a,b,de),le.viewFrom=b):(le.viewFrom>b?le.view=qi(a,b,le.viewFrom).concat(le.view):le.viewFrom<b&&(le.view=le.view.slice(Wa(a,b))),le.viewFrom=b,le.viewTo<de?le.view=le.view.concat(qi(a,le.viewTo,de)):le.viewTo>de&&(le.view=le.view.slice(0,Wa(a,de)))),le.viewTo=de}function xl(a){for(var b=a.display.view,de=0,le=0;le<b.length;le++){var Ce=b[le];!Ce.hidden&&(!Ce.node||Ce.changes)&&++de}return de}function hs(a){a.display.input.showSelection(a.display.input.prepareSelection())}function iu(a,b){b===void 0&&(b=!0);for(var de=a.doc,le={},Ce=le.cursors=document.createDocumentFragment(),He=le.selection=document.createDocumentFragment(),it=0;it<de.sel.ranges.length;it++)if(!(!b&&it==de.sel.primIndex)){var dt=de.sel.ranges[it];if(!(dt.from().line>=a.display.viewTo||dt.to().line<a.display.viewFrom)){var gt=dt.empty();(gt||a.options.showCursorWhenSelecting)&&Zl(a,dt.head,Ce),gt||Iu(a,dt,He)}}return le}function Zl(a,b,de){var le=aa(a,b,"div",null,null,!a.options.singleCursorHeightPerLine),Ce=de.appendChild(Ee("div","\xA0","CodeMirror-cursor"));if(Ce.style.left=le.left+"px",Ce.style.top=le.top+"px",Ce.style.height=Math.max(0,le.bottom-le.top)*a.options.cursorHeight+"px",le.other){var He=de.appendChild(Ee("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));He.style.display="",He.style.left=le.other.left+"px",He.style.top=le.other.top+"px",He.style.height=(le.other.bottom-le.other.top)*.85+"px"}}function _s(a,b){return a.top-b.top||a.left-b.left}function Iu(a,b,de){var le=a.display,Ce=a.doc,He=document.createDocumentFragment(),it=Fa(a.display),dt=it.left,gt=Math.max(le.sizerWidth,$a(a)-le.sizer.offsetLeft)-it.right,wt=Ce.direction=="ltr";function Qt(Rr,Yr,hi,ui){Yr<0&&(Yr=0),Yr=Math.round(Yr),ui=Math.round(ui),He.appendChild(Ee("div",null,"CodeMirror-selected","position: absolute; left: "+Rr+`px;
top: `+Yr+"px; width: "+(hi==null?gt-Rr:hi)+`px;
height: `+(ui-Yr)+"px"))}function an(Rr,Yr,hi){var ui=ln(Ce,Rr),Li=ui.text.length,go,ra;function Mo(Vo,Ia){return ns(a,Tt(Rr,Vo),"div",ui,Ia)}function Ra(Vo,Ia,fa){var qo=ko(a,ui,null,Vo),Xo=Ia=="ltr"==(fa=="after")?"left":"right",_o=fa=="after"?qo.begin:qo.end-(/\s/.test(ui.text.charAt(qo.end-1))?2:1);return Mo(_o,Xo)[Xo]}var Oa=ct(ui,Ce.direction);return Je(Oa,Yr||0,hi==null?Li:hi,function(Vo,Ia,fa,qo){var Xo=fa=="ltr",_o=Mo(Vo,Xo?"left":"right"),Pa=Mo(Ia-1,Xo?"right":"left"),hl=Yr==null&&Vo==0,ks=hi==null&&Ia==Li,ba=qo==0,us=!Oa||qo==Oa.length-1;if(Pa.top-_o.top<=3){var ia=(wt?hl:ks)&&ba,Tu=(wt?ks:hl)&&us,bs=ia?dt:(Xo?_o:Pa).left,Xs=Tu?gt:(Xo?Pa:_o).right;Qt(bs,_o.top,Xs-bs,_o.bottom)}else{var Ys,Sa,ml,Ou;Xo?(Ys=wt&&hl&&ba?dt:_o.left,Sa=wt?gt:Ra(Vo,fa,"before"),ml=wt?dt:Ra(Ia,fa,"after"),Ou=wt&&ks&&us?gt:Pa.right):(Ys=wt?Ra(Vo,fa,"before"):dt,Sa=!wt&&hl&&ba?gt:_o.right,ml=!wt&&ks&&us?dt:Pa.left,Ou=wt?Ra(Ia,fa,"after"):gt),Qt(Ys,_o.top,Sa-Ys,_o.bottom),_o.bottom<Pa.top&&Qt(dt,_o.bottom,null,Pa.top),Qt(ml,Pa.top,Ou-ml,Pa.bottom)}(!go||_s(_o,go)<0)&&(go=_o),_s(Pa,go)<0&&(go=Pa),(!ra||_s(_o,ra)<0)&&(ra=_o),_s(Pa,ra)<0&&(ra=Pa)}),{start:go,end:ra}}var En=b.from(),bn=b.to();if(En.line==bn.line)an(En.line,En.ch,bn.ch);else{var Yn=ln(Ce,En.line),ir=ln(Ce,bn.line),gr=$n(Yn)==$n(ir),Nr=an(En.line,En.ch,gr?Yn.text.length+1:null).end,Zr=an(bn.line,gr?0:null,bn.ch).start;gr&&(Nr.top<Zr.top-2?(Qt(Nr.right,Nr.top,null,Nr.bottom),Qt(dt,Zr.top,Zr.left,Zr.bottom)):Qt(Nr.right,Nr.top,Zr.left-Nr.right,Nr.bottom)),Nr.bottom<Zr.top&&Qt(dt,Nr.bottom,null,Zr.top)}de.appendChild(He)}function wl(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var de=!0;b.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?b.blinker=setInterval(function(){a.hasFocus()||Ss(a),b.cursorDiv.style.visibility=(de=!de)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(b.cursorDiv.style.visibility="hidden")}}function ou(a){a.state.focused||(a.display.input.focus(),Ul(a))}function Wl(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Ss(a))},100)}function Ul(a,b){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(jt(a,"focus",a,b),a.state.focused=!0,me(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),E&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),wl(a))}function Ss(a,b){a.state.delayingBlurEvent||(a.state.focused&&(jt(a,"blur",a,b),a.state.focused=!1,Be(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function oi(a){for(var b=a.display,de=b.lineDiv.offsetTop,le=0;le<b.view.length;le++){var Ce=b.view[le],He=a.options.lineWrapping,it=void 0,dt=0;if(!Ce.hidden){if(be&&z<8){var gt=Ce.node.offsetTop+Ce.node.offsetHeight;it=gt-de,de=gt}else{var wt=Ce.node.getBoundingClientRect();it=wt.bottom-wt.top,!He&&Ce.text.firstChild&&(dt=Ce.text.firstChild.getBoundingClientRect().right-wt.left-1)}var Qt=Ce.line.height-it;if((Qt>.005||Qt<-.005)&&(Zn(Ce.line,it),Cs(Ce.line),Ce.rest))for(var an=0;an<Ce.rest.length;an++)Cs(Ce.rest[an]);if(dt>a.display.sizerWidth){var En=Math.ceil(dt/La(a.display));En>a.display.maxLineLength&&(a.display.maxLineLength=En,a.display.maxLine=Ce.line,a.display.maxLineChanged=!0)}}}}function Cs(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b){var de=a.widgets[b],le=de.node.parentNode;le&&(de.height=le.offsetHeight)}}function os(a,b,de){var le=de&&de.top!=null?Math.max(0,de.top):a.scroller.scrollTop;le=Math.floor(le-Ao(a));var Ce=de&&de.bottom!=null?de.bottom:le+a.wrapper.clientHeight,He=Gt(b,le),it=Gt(b,Ce);if(de&&de.ensure){var dt=de.ensure.from.line,gt=de.ensure.to.line;dt<He?(He=dt,it=Gt(b,ti(ln(b,dt))+a.wrapper.clientHeight)):Math.min(gt,b.lastLine())>=it&&(He=Gt(b,ti(ln(b,gt))-a.wrapper.clientHeight),it=gt)}return{from:He,to:Math.max(it,He+1)}}function au(a,b){if(!Et(a,"scrollCursorIntoView")){var de=a.display,le=de.sizer.getBoundingClientRect(),Ce=null;if(b.top+le.top<0?Ce=!0:b.bottom+le.top>(window.innerHeight||document.documentElement.clientHeight)&&(Ce=!1),Ce!=null&&!ae){var He=Ee("div","\u200B",null,`position: absolute;
top: `+(b.top-de.viewOffset-Ao(a.display))+`px;
height: `+(b.bottom-b.top+ha(a)+de.barHeight)+`px;
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");a.display.lineSpace.appendChild(He),He.scrollIntoView(Ce),a.display.lineSpace.removeChild(He)}}}function su(a,b,de,le){le==null&&(le=0);var Ce;!a.options.lineWrapping&&b==de&&(b=b.ch?Tt(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,de=b.sticky=="before"?Tt(b.line,b.ch+1,"before"):b);for(var He=0;He<5;He++){var it=!1,dt=aa(a,b),gt=!de||de==b?dt:aa(a,de);Ce={left:Math.min(dt.left,gt.left),top:Math.min(dt.top,gt.top)-le,right:Math.max(dt.left,gt.left),bottom:Math.max(dt.bottom,gt.bottom)+le};var wt=Sl(a,Ce),Qt=a.doc.scrollTop,an=a.doc.scrollLeft;if(wt.scrollTop!=null&&(rl(a,wt.scrollTop),Math.abs(a.doc.scrollTop-Qt)>1&&(it=!0)),wt.scrollLeft!=null&&(Ts(a,wt.scrollLeft),Math.abs(a.doc.scrollLeft-an)>1&&(it=!0)),!it)break}return Ce}function Pu(a,b){var de=Sl(a,b);de.scrollTop!=null&&rl(a,de.scrollTop),de.scrollLeft!=null&&Ts(a,de.scrollLeft)}function Sl(a,b){var de=a.display,le=wa(a.display);b.top<0&&(b.top=0);var Ce=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:de.scroller.scrollTop,He=Ya(a),it={};b.bottom-b.top>He&&(b.bottom=b.top+He);var dt=a.doc.height+ja(de),gt=b.top<le,wt=b.bottom>dt-le;if(b.top<Ce)it.scrollTop=gt?0:b.top;else if(b.bottom>Ce+He){var Qt=Math.min(b.top,(wt?dt:b.bottom)-He);Qt!=Ce&&(it.scrollTop=Qt)}var an=a.options.fixedGutter?0:de.gutters.offsetWidth,En=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:de.scroller.scrollLeft-an,bn=$a(a)-de.gutters.offsetWidth,Yn=b.right-b.left>bn;return Yn&&(b.right=b.left+bn),b.left<10?it.scrollLeft=0:b.left<En?it.scrollLeft=Math.max(0,b.left+an-(Yn?0:10)):b.right>bn+En-3&&(it.scrollLeft=b.right+(Yn?0:10)-bn),it}function Kl(a,b){b!=null&&(Cl(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+b)}function Es(a){Cl(a);var b=a.getCursor();a.curOp.scrollToPos={from:b,to:b,margin:a.options.cursorScrollMargin}}function nl(a,b,de){(b!=null||de!=null)&&Cl(a),b!=null&&(a.curOp.scrollLeft=b),de!=null&&(a.curOp.scrollTop=de)}function lu(a,b){Cl(a),a.curOp.scrollToPos=b}function Cl(a){var b=a.curOp.scrollToPos;if(b){a.curOp.scrollToPos=null;var de=Wi(a,b.from),le=Wi(a,b.to);Gl(a,de,le,b.margin)}}function Gl(a,b,de,le){var Ce=Sl(a,{left:Math.min(b.left,de.left),top:Math.min(b.top,de.top)-le,right:Math.max(b.right,de.right),bottom:Math.max(b.bottom,de.bottom)+le});nl(a,Ce.scrollLeft,Ce.scrollTop)}function rl(a,b){Math.abs(a.doc.scrollTop-b)<2||(te||Tl(a,{top:b}),Vl(a,b,!0),te&&Tl(a),Hs(a,100))}function Vl(a,b,de){b=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,b)),!(a.display.scroller.scrollTop==b&&!de)&&(a.doc.scrollTop=b,a.display.scrollbars.setScrollTop(b),a.display.scroller.scrollTop!=b&&(a.display.scroller.scrollTop=b))}function Ts(a,b,de,le){b=Math.max(0,Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((de?b==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-b)<2)&&!le)&&(a.doc.scrollLeft=b,It(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function Fs(a){var b=a.display,de=b.gutters.offsetWidth,le=Math.round(a.doc.height+ja(a.display));return{clientHeight:b.scroller.clientHeight,viewHeight:b.wrapper.clientHeight,scrollWidth:b.scroller.scrollWidth,clientWidth:b.scroller.clientWidth,viewWidth:b.wrapper.clientWidth,barLeft:a.options.fixedGutter?de:0,docHeight:le,scrollHeight:le+ha(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:de}}var Os=function(a,b,de){this.cm=de;var le=this.vert=Ee("div",[Ee("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Ce=this.horiz=Ee("div",[Ee("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");le.tabIndex=Ce.tabIndex=-1,a(le),a(Ce),At(le,"scroll",function(){le.clientHeight&&b(le.scrollTop,"vertical")}),At(Ce,"scroll",function(){Ce.clientWidth&&b(Ce.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,be&&z<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Os.prototype.update=function(a){var b=a.scrollWidth>a.clientWidth+1,de=a.scrollHeight>a.clientHeight+1,le=a.nativeBarWidth;if(de){this.vert.style.display="block",this.vert.style.bottom=b?le+"px":"0";var Ce=a.viewHeight-(b?le:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+Ce)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=de?le+"px":"0",this.horiz.style.left=a.barLeft+"px";var He=a.viewWidth-a.barLeft-(de?le:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+He)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(le==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:de?le:0,bottom:b?le:0}},Os.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Os.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Os.prototype.zeroWidthHack=function(){var a=pe&&!x?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ue,this.disableVert=new Ue},Os.prototype.enableZeroWidthBar=function(a,b,de){a.style.pointerEvents="auto";function le(){var Ce=a.getBoundingClientRect(),He=de=="vert"?document.elementFromPoint(Ce.right-1,(Ce.top+Ce.bottom)/2):document.elementFromPoint((Ce.right+Ce.left)/2,Ce.bottom-1);He!=a?a.style.pointerEvents="none":b.set(1e3,le)}b.set(1e3,le)},Os.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var $s=function(){};$s.prototype.update=function(){return{bottom:0,right:0}},$s.prototype.setScrollLeft=function(){},$s.prototype.setScrollTop=function(){},$s.prototype.clear=function(){};function zs(a,b){b||(b=Fs(a));var de=a.display.barWidth,le=a.display.barHeight;Xl(a,b);for(var Ce=0;Ce<4&&de!=a.display.barWidth||le!=a.display.barHeight;Ce++)de!=a.display.barWidth&&a.options.lineWrapping&&oi(a),Xl(a,Fs(a)),de=a.display.barWidth,le=a.display.barHeight}function Xl(a,b){var de=a.display,le=de.scrollbars.update(b);de.sizer.style.paddingRight=(de.barWidth=le.right)+"px",de.sizer.style.paddingBottom=(de.barHeight=le.bottom)+"px",de.heightForcer.style.borderBottom=le.bottom+"px solid transparent",le.right&&le.bottom?(de.scrollbarFiller.style.display="block",de.scrollbarFiller.style.height=le.bottom+"px",de.scrollbarFiller.style.width=le.right+"px"):de.scrollbarFiller.style.display="",le.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(de.gutterFiller.style.display="block",de.gutterFiller.style.height=le.bottom+"px",de.gutterFiller.style.width=b.gutterWidth+"px"):de.gutterFiller.style.display=""}var uu={native:Os,null:$s};function Yl(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Be(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new uu[a.options.scrollbarStyle](function(b){a.display.wrapper.insertBefore(b,a.display.scrollbarFiller),At(b,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),b.setAttribute("cm-not-content","true")},function(b,de){de=="horizontal"?Ts(a,b):rl(a,b)},a),a.display.scrollbars.addClass&&me(a.display.wrapper,a.display.scrollbars.addClass)}var ju=0;function ms(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:++ju},Zi(a.curOp)}function Is(a){var b=a.curOp;b&&yi(b,function(de){for(var le=0;le<de.ops.length;le++)de.ops[le].cm.curOp=null;cu(de)})}function cu(a){for(var b=a.ops,de=0;de<b.length;de++)Du(b[de]);for(var le=0;le<b.length;le++)du(b[le]);for(var Ce=0;Ce<b.length;Ce++)Au(b[Ce]);for(var He=0;He<b.length;He++)fu(b[He]);for(var it=0;it<b.length;it++)ku(b[it])}function Du(a){var b=a.cm,de=b.display;pu(b),a.updateMaxLine&&mi(b),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<de.viewFrom||a.scrollToPos.to.line>=de.viewTo)||de.maxLineChanged&&b.options.lineWrapping,a.update=a.mustUpdate&&new il(b,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function du(a){a.updatedDisplay=a.mustUpdate&&El(a.cm,a.update)}function Au(a){var b=a.cm,de=b.display;a.updatedDisplay&&oi(b),a.barMeasure=Fs(b),de.maxLineChanged&&!b.options.lineWrapping&&(a.adjustWidthTo=Js(b,de.maxLine,de.maxLine.text.length).left+3,b.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(de.scroller.clientWidth,de.sizer.offsetLeft+a.adjustWidthTo+ha(b)+b.display.barWidth),a.maxScrollLeft=Math.max(0,de.sizer.offsetLeft+a.adjustWidthTo-$a(b))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=de.input.prepareSelection())}function fu(a){var b=a.cm;a.adjustWidthTo!=null&&(b.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<b.doc.scrollLeft&&Ts(b,Math.min(b.display.scroller.scrollLeft,a.maxScrollLeft),!0),b.display.maxLineChanged=!1);var de=a.focus&&a.focus==Ne();a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,de),(a.updatedDisplay||a.startHeight!=b.doc.height)&&zs(b,a.barMeasure),a.updatedDisplay&&pt(b,a.barMeasure),a.selectionChanged&&wl(b),b.state.focused&&a.updateInput&&b.display.input.reset(a.typing),de&&ou(a.cm)}function ku(a){var b=a.cm,de=b.display,le=b.doc;if(a.updatedDisplay&&Ka(b,a.update),de.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(de.wheelStartX=de.wheelStartY=null),a.scrollTop!=null&&Vl(b,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Ts(b,a.scrollLeft,!0,!0),a.scrollToPos){var Ce=su(b,$t(le,a.scrollToPos.from),$t(le,a.scrollToPos.to),a.scrollToPos.margin);au(b,Ce)}var He=a.maybeHiddenMarkers,it=a.maybeUnhiddenMarkers;if(He)for(var dt=0;dt<He.length;++dt)He[dt].lines.length||jt(He[dt],"hide");if(it)for(var gt=0;gt<it.length;++gt)it[gt].lines.length&&jt(it[gt],"unhide");de.wrapper.offsetHeight&&(le.scrollTop=b.display.scroller.scrollTop),a.changeObjs&&jt(b,"changes",b,a.changeObjs),a.update&&a.update.finish()}function ma(a,b){if(a.curOp)return b();ms(a);try{return b()}finally{Is(a)}}function Jo(a,b){return function(){if(a.curOp)return b.apply(a,arguments);ms(a);try{return b.apply(a,arguments)}finally{Is(a)}}}function ua(a){return function(){if(this.curOp)return a.apply(this,arguments);ms(this);try{return a.apply(this,arguments)}finally{Is(this)}}}function Ko(a){return function(){var b=this.cm;if(!b||b.curOp)return a.apply(this,arguments);ms(b);try{return a.apply(this,arguments)}finally{Is(b)}}}function Hs(a,b){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(b,We(Jl,a))}function Jl(a){var b=a.doc;if(!(b.highlightFrontier>=a.display.viewTo)){var de=+new Date+a.options.workTime,le=lr(a,b.highlightFrontier),Ce=[];b.iter(le.line,Math.min(b.first+b.size,a.display.viewTo+500),function(He){if(le.line>=a.display.viewFrom){var it=He.styles,dt=He.text.length>a.options.maxHighlightLength?Ln(b.mode,le.state):null,gt=Mn(a,He,le,!0);dt&&(le.state=dt),He.styles=gt.styles;var wt=He.styleClasses,Qt=gt.classes;Qt?He.styleClasses=Qt:wt&&(He.styleClasses=null);for(var an=!it||it.length!=He.styles.length||wt!=Qt&&(!wt||!Qt||wt.bgClass!=Qt.bgClass||wt.textClass!=Qt.textClass),En=0;!an&&En<it.length;++En)an=it[En]!=He.styles[En];an&&Ce.push(le.line),He.stateAfter=le.save(),le.nextLine()}else He.text.length<=a.options.maxHighlightLength&&hr(a,He.text,le),He.stateAfter=le.line%5==0?le.save():null,le.nextLine();if(+new Date>de)return Hs(a,a.options.workDelay),!0}),b.highlightFrontier=le.line,b.modeFrontier=Math.max(b.modeFrontier,le.line),Ce.length&&ma(a,function(){for(var He=0;He<Ce.length;He++)is(a,Ce[He],"text")})}}var il=function(a,b,de){var le=a.display;this.viewport=b,this.visible=os(le,a.doc,b),this.editorIsHidden=!le.wrapper.offsetWidth,this.wrapperHeight=le.wrapper.clientHeight,this.wrapperWidth=le.wrapper.clientWidth,this.oldDisplayWidth=$a(a),this.force=de,this.dims=rs(a),this.events=[]};il.prototype.signal=function(a,b){Nt(a,b)&&this.events.push(arguments)},il.prototype.finish=function(){for(var a=0;a<this.events.length;a++)jt.apply(null,this.events[a])};function pu(a){var b=a.display;!b.scrollbarsClipped&&b.scroller.offsetWidth&&(b.nativeBarWidth=b.scroller.offsetWidth-b.scroller.clientWidth,b.heightForcer.style.height=ha(a)+"px",b.sizer.style.marginBottom=-b.nativeBarWidth+"px",b.sizer.style.borderRightWidth=ha(a)+"px",b.scrollbarsClipped=!0)}function hu(a){if(a.hasFocus())return null;var b=Ne();if(!b||!Le(a.display.lineDiv,b))return null;var de={activeElt:b};if(window.getSelection){var le=window.getSelection();le.anchorNode&&le.extend&&Le(a.display.lineDiv,le.anchorNode)&&(de.anchorNode=le.anchorNode,de.anchorOffset=le.anchorOffset,de.focusNode=le.focusNode,de.focusOffset=le.focusOffset)}return de}function mu(a){if(!(!a||!a.activeElt||a.activeElt==Ne())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Le(document.body,a.anchorNode)&&Le(document.body,a.focusNode))){var b=window.getSelection(),de=document.createRange();de.setEnd(a.anchorNode,a.anchorOffset),de.collapse(!1),b.removeAllRanges(),b.addRange(de),b.extend(a.focusNode,a.focusOffset)}}function El(a,b){var de=a.display,le=a.doc;if(b.editorIsHidden)return Ua(a),!1;if(!b.force&&b.visible.from>=de.viewFrom&&b.visible.to<=de.viewTo&&(de.updateLineNumbers==null||de.updateLineNumbers>=de.viewTo)&&de.renderedView==de.view&&xl(a)==0)return!1;Bt(a)&&(Ua(a),b.dims=rs(a));var Ce=le.first+le.size,He=Math.max(b.visible.from-a.options.viewportMargin,le.first),it=Math.min(Ce,b.visible.to+a.options.viewportMargin);de.viewFrom<He&&He-de.viewFrom<20&&(He=Math.max(le.first,de.viewFrom)),de.viewTo>it&&de.viewTo-it<20&&(it=Math.min(Ce,de.viewTo)),An&&(He=Gn(a.doc,He),it=zn(a.doc,it));var dt=He!=de.viewFrom||it!=de.viewTo||de.lastWrapHeight!=b.wrapperHeight||de.lastWrapWidth!=b.wrapperWidth;Hl(a,He,it),de.viewOffset=ti(ln(a.doc,de.viewFrom)),a.display.mover.style.top=de.viewOffset+"px";var gt=xl(a);if(!dt&&gt==0&&!b.force&&de.renderedView==de.view&&(de.updateLineNumbers==null||de.updateLineNumbers>=de.viewTo))return!1;var wt=hu(a);return gt>4&&(de.lineDiv.style.display="none"),vu(a,de.updateLineNumbers,b.dims),gt>4&&(de.lineDiv.style.display=""),de.renderedView=de.view,mu(wt),Ae(de.cursorDiv),Ae(de.selectionDiv),de.gutters.style.height=de.sizer.style.minHeight=0,dt&&(de.lastWrapHeight=b.wrapperHeight,de.lastWrapWidth=b.wrapperWidth,Hs(a,400)),de.updateLineNumbers=null,!0}function Ka(a,b){for(var de=b.viewport,le=!0;;le=!1){if(!le||!a.options.lineWrapping||b.oldDisplayWidth==$a(a)){if(de&&de.top!=null&&(de={top:Math.min(a.doc.height+ja(a.display)-Ya(a),de.top)}),b.visible=os(a.display,a.doc,de),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break}else le&&(b.visible=os(a.display,a.doc,de));if(!El(a,b))break;oi(a);var Ce=Fs(a);hs(a),zs(a,Ce),pt(a,Ce),b.force=!1}b.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(b.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function Tl(a,b){var de=new il(a,b);if(El(a,de)){oi(a),Ka(a,de);var le=Fs(a);hs(a),zs(a,le),pt(a,le),de.finish()}}function vu(a,b,de){var le=a.display,Ce=a.options.lineNumbers,He=le.lineDiv,it=He.firstChild;function dt(Yn){var ir=Yn.nextSibling;return E&&pe&&a.display.currentWheelTarget==Yn?Yn.style.display="none":Yn.parentNode.removeChild(Yn),ir}for(var gt=le.view,wt=le.viewFrom,Qt=0;Qt<gt.length;Qt++){var an=gt[Qt];if(!an.hidden)if(!an.node||an.node.parentNode!=He){var En=fi(a,an,wt,de);He.insertBefore(En,it)}else{for(;it!=an.node;)it=dt(it);var bn=Ce&&b!=null&&b<=wt&&an.lineNumber;an.changes&&(tt(an.changes,"gutter")>-1&&(bn=!1),pa(a,an,wt,de)),bn&&(Ae(an.lineNumber),an.lineNumber.appendChild(document.createTextNode(Rt(a.options,wt)))),it=an.node.nextSibling}wt+=an.size}for(;it;)it=dt(it)}function ht(a){var b=a.gutters.offsetWidth;a.sizer.style.marginLeft=b+"px"}function pt(a,b){a.display.sizer.style.minHeight=b.docHeight+"px",a.display.heightForcer.style.top=b.docHeight+"px",a.display.gutters.style.height=b.docHeight+a.display.barHeight+ha(a)+"px"}function It(a){var b=a.display,de=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!a.options.fixedGutter))){for(var le=yl(b)-b.scroller.scrollLeft+a.doc.scrollLeft,Ce=b.gutters.offsetWidth,He=le+"px",it=0;it<de.length;it++)if(!de[it].hidden){a.options.fixedGutter&&(de[it].gutter&&(de[it].gutter.style.left=He),de[it].gutterBackground&&(de[it].gutterBackground.style.left=He));var dt=de[it].alignable;if(dt)for(var gt=0;gt<dt.length;gt++)dt[gt].style.left=He}a.options.fixedGutter&&(b.gutters.style.left=le+Ce+"px")}}function Bt(a){if(!a.options.lineNumbers)return!1;var b=a.doc,de=Rt(a.options,b.first+b.size-1),le=a.display;if(de.length!=le.lineNumChars){var Ce=le.measure.appendChild(Ee("div",[Ee("div",de)],"CodeMirror-linenumber CodeMirror-gutter-elt")),He=Ce.firstChild.offsetWidth,it=Ce.offsetWidth-He;return le.lineGutter.style.width="",le.lineNumInnerWidth=Math.max(He,le.lineGutter.offsetWidth-it)+1,le.lineNumWidth=le.lineNumInnerWidth+it,le.lineNumChars=le.lineNumInnerWidth?de.length:-1,le.lineGutter.style.width=le.lineNumWidth+"px",ht(a.display),!0}return!1}function Jt(a,b){for(var de=[],le=!1,Ce=0;Ce<a.length;Ce++){var He=a[Ce],it=null;if(typeof He!="string"&&(it=He.style,He=He.className),He=="CodeMirror-linenumbers")if(b)le=!0;else continue;de.push({className:He,style:it})}return b&&!le&&de.push({className:"CodeMirror-linenumbers",style:null}),de}function tn(a){var b=a.gutters,de=a.gutterSpecs;Ae(b),a.lineGutter=null;for(var le=0;le<de.length;++le){var Ce=de[le],He=Ce.className,it=Ce.style,dt=b.appendChild(Ee("div",null,"CodeMirror-gutter "+He));it&&(dt.style.cssText=it),He=="CodeMirror-linenumbers"&&(a.lineGutter=dt,dt.style.width=(a.lineNumWidth||1)+"px")}b.style.display=de.length?"":"none",ht(a)}function dn(a){tn(a.display),la(a),It(a)}function sn(a,b,de,le){var Ce=this;this.input=de,Ce.scrollbarFiller=Ee("div",null,"CodeMirror-scrollbar-filler"),Ce.scrollbarFiller.setAttribute("cm-not-content","true"),Ce.gutterFiller=Ee("div",null,"CodeMirror-gutter-filler"),Ce.gutterFiller.setAttribute("cm-not-content","true"),Ce.lineDiv=Oe("div",null,"CodeMirror-code"),Ce.selectionDiv=Ee("div",null,null,"position: relative; z-index: 1"),Ce.cursorDiv=Ee("div",null,"CodeMirror-cursors"),Ce.measure=Ee("div",null,"CodeMirror-measure"),Ce.lineMeasure=Ee("div",null,"CodeMirror-measure"),Ce.lineSpace=Oe("div",[Ce.measure,Ce.lineMeasure,Ce.selectionDiv,Ce.cursorDiv,Ce.lineDiv],null,"position: relative; outline: none");var He=Oe("div",[Ce.lineSpace],"CodeMirror-lines");Ce.mover=Ee("div",[He],null,"position: relative"),Ce.sizer=Ee("div",[Ce.mover],"CodeMirror-sizer"),Ce.sizerWidth=null,Ce.heightForcer=Ee("div",null,null,"position: absolute; height: "+rt+"px; width: 1px;"),Ce.gutters=Ee("div",null,"CodeMirror-gutters"),Ce.lineGutter=null,Ce.scroller=Ee("div",[Ce.sizer,Ce.heightForcer,Ce.gutters],"CodeMirror-scroll"),Ce.scroller.setAttribute("tabIndex","-1"),Ce.wrapper=Ee("div",[Ce.scrollbarFiller,Ce.gutterFiller,Ce.scroller],"CodeMirror"),be&&z<8&&(Ce.gutters.style.zIndex=-1,Ce.scroller.style.paddingRight=0),!E&&!(te&&ue)&&(Ce.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(Ce.wrapper):a(Ce.wrapper)),Ce.viewFrom=Ce.viewTo=b.first,Ce.reportedViewFrom=Ce.reportedViewTo=b.first,Ce.view=[],Ce.renderedView=null,Ce.externalMeasured=null,Ce.viewOffset=0,Ce.lastWrapHeight=Ce.lastWrapWidth=0,Ce.updateLineNumbers=null,Ce.nativeBarWidth=Ce.barHeight=Ce.barWidth=0,Ce.scrollbarsClipped=!1,Ce.lineNumWidth=Ce.lineNumInnerWidth=Ce.lineNumChars=null,Ce.alignWidgets=!1,Ce.cachedCharWidth=Ce.cachedTextHeight=Ce.cachedPaddingH=null,Ce.maxLine=null,Ce.maxLineLength=0,Ce.maxLineChanged=!1,Ce.wheelDX=Ce.wheelDY=Ce.wheelStartX=Ce.wheelStartY=null,Ce.shift=!1,Ce.selForContextMenu=null,Ce.activeTouch=null,Ce.gutterSpecs=Jt(le.gutters,le.lineNumbers),tn(Ce),de.init(Ce)}var vn=0,fn=null;be?fn=-.53:te?fn=15:oe?fn=-.7:ce&&(fn=-1/3);function Hn(a){var b=a.wheelDeltaX,de=a.wheelDeltaY;return b==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(b=a.detail),de==null&&a.detail&&a.axis==a.VERTICAL_AXIS?de=a.detail:de==null&&(de=a.wheelDelta),{x:b,y:de}}function kn(a){var b=Hn(a);return b.x*=fn,b.y*=fn,b}function jn(a,b){var de=Hn(b),le=de.x,Ce=de.y,He=a.display,it=He.scroller,dt=it.scrollWidth>it.clientWidth,gt=it.scrollHeight>it.clientHeight;if(le&&dt||Ce&&gt){if(Ce&&pe&&E){e:for(var wt=b.target,Qt=He.view;wt!=it;wt=wt.parentNode)for(var an=0;an<Qt.length;an++)if(Qt[an].node==wt){a.display.currentWheelTarget=wt;break e}}if(le&&!te&&!ee&&fn!=null){Ce&&gt&&rl(a,Math.max(0,it.scrollTop+Ce*fn)),Ts(a,Math.max(0,it.scrollLeft+le*fn)),(!Ce||Ce&&gt)&&Pt(b),He.wheelStartX=null;return}if(Ce&&fn!=null){var En=Ce*fn,bn=a.doc.scrollTop,Yn=bn+He.wrapper.clientHeight;En<0?bn=Math.max(0,bn+En-50):Yn=Math.min(a.doc.height,Yn+En+50),Tl(a,{top:bn,bottom:Yn})}vn<20&&(He.wheelStartX==null?(He.wheelStartX=it.scrollLeft,He.wheelStartY=it.scrollTop,He.wheelDX=le,He.wheelDY=Ce,setTimeout(function(){if(He.wheelStartX!=null){var ir=it.scrollLeft-He.wheelStartX,gr=it.scrollTop-He.wheelStartY,Nr=gr&&He.wheelDY&&gr/He.wheelDY||ir&&He.wheelDX&&ir/He.wheelDX;He.wheelStartX=He.wheelStartY=null,Nr&&(fn=(fn*vn+Nr)/(vn+1),++vn)}},200)):(He.wheelDX+=le,He.wheelDY+=Ce))}}var Sn=function(a,b){this.ranges=a,this.primIndex=b};Sn.prototype.primary=function(){return this.ranges[this.primIndex]},Sn.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var b=0;b<this.ranges.length;b++){var de=this.ranges[b],le=a.ranges[b];if(!bt(de.anchor,le.anchor)||!bt(de.head,le.head))return!1}return!0},Sn.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new wn(Ut(this.ranges[b].anchor),Ut(this.ranges[b].head));return new Sn(a,this.primIndex)},Sn.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Sn.prototype.contains=function(a,b){b||(b=a);for(var de=0;de<this.ranges.length;de++){var le=this.ranges[de];if(_t(b,le.from())>=0&&_t(a,le.to())<=0)return de}return-1};var wn=function(a,b){this.anchor=a,this.head=b};wn.prototype.from=function(){return qt(this.anchor,this.head)},wn.prototype.to=function(){return Lt(this.anchor,this.head)},wn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ar(a,b,de){var le=a&&a.options.selectionsMayTouch,Ce=b[de];b.sort(function(En,bn){return _t(En.from(),bn.from())}),de=tt(b,Ce);for(var He=1;He<b.length;He++){var it=b[He],dt=b[He-1],gt=_t(dt.to(),it.from());if(le&&!it.empty()?gt>0:gt>=0){var wt=qt(dt.from(),it.from()),Qt=Lt(dt.to(),it.to()),an=dt.empty()?it.from()==it.head:dt.from()==dt.head;He<=de&&--de,b.splice(--He,2,new wn(an?Qt:wt,an?wt:Qt))}}return new Sn(b,de)}function Xn(a,b){return new Sn([new wn(a,b||a)],0)}function dr(a){return a.text?Tt(a.from.line+a.text.length-1,at(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function mr(a,b){if(_t(a,b.from)<0)return a;if(_t(a,b.to)<=0)return dr(b);var de=a.line+b.text.length-(b.to.line-b.from.line)-1,le=a.ch;return a.line==b.to.line&&(le+=dr(b).ch-b.to.ch),Tt(de,le)}function fr(a,b){for(var de=[],le=0;le<a.sel.ranges.length;le++){var Ce=a.sel.ranges[le];de.push(new wn(mr(Ce.anchor,b),mr(Ce.head,b)))}return ar(a.cm,de,a.sel.primIndex)}function xr(a,b,de){return a.line==b.line?Tt(de.line,a.ch-b.ch+de.ch):Tt(de.line+(a.line-b.line),a.ch)}function Ar(a,b,de){for(var le=[],Ce=Tt(a.first,0),He=Ce,it=0;it<b.length;it++){var dt=b[it],gt=xr(dt.from,Ce,He),wt=xr(dr(dt),Ce,He);if(Ce=dt.to,He=wt,de=="around"){var Qt=a.sel.ranges[it],an=_t(Qt.head,Qt.anchor)<0;le[it]=new wn(an?wt:gt,an?gt:wt)}else le[it]=new wn(gt,gt)}return new Sn(le,a.sel.primIndex)}function _r(a){a.doc.mode=Bn(a.options,a.doc.modeOption),Mr(a)}function Mr(a){a.doc.iter(function(b){b.stateAfter&&(b.stateAfter=null),b.styles&&(b.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,Hs(a,100),a.state.modeGen++,a.curOp&&la(a)}function vi(a,b){return b.from.ch==0&&b.to.ch==0&&at(b.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Qr(a,b,de,le){function Ce(Zr){return de?de[Zr]:null}function He(Zr,Rr,Yr){Oi(Zr,Rr,Yr,le),Ai(Zr,"change",Zr,b)}function it(Zr,Rr){for(var Yr=[],hi=Zr;hi<Rr;++hi)Yr.push(new ki(wt[hi],Ce(hi),le));return Yr}var dt=b.from,gt=b.to,wt=b.text,Qt=ln(a,dt.line),an=ln(a,gt.line),En=at(wt),bn=Ce(wt.length-1),Yn=gt.line-dt.line;if(b.full)a.insert(0,it(0,wt.length)),a.remove(wt.length,a.size-wt.length);else if(vi(a,b)){var ir=it(0,wt.length-1);He(an,an.text,bn),Yn&&a.remove(dt.line,Yn),ir.length&&a.insert(dt.line,ir)}else if(Qt==an)if(wt.length==1)He(Qt,Qt.text.slice(0,dt.ch)+En+Qt.text.slice(gt.ch),bn);else{var gr=it(1,wt.length-1);gr.push(new ki(En+Qt.text.slice(gt.ch),bn,le)),He(Qt,Qt.text.slice(0,dt.ch)+wt[0],Ce(0)),a.insert(dt.line+1,gr)}else if(wt.length==1)He(Qt,Qt.text.slice(0,dt.ch)+wt[0]+an.text.slice(gt.ch),Ce(0)),a.remove(dt.line+1,Yn);else{He(Qt,Qt.text.slice(0,dt.ch)+wt[0],Ce(0)),He(an,En+an.text.slice(gt.ch),bn);var Nr=it(1,wt.length-1);Yn>1&&a.remove(dt.line+1,Yn-1),a.insert(dt.line+1,Nr)}Ai(a,"change",a,b)}function Gr(a,b,de){function le(Ce,He,it){if(Ce.linked)for(var dt=0;dt<Ce.linked.length;++dt){var gt=Ce.linked[dt];if(gt.doc!=He){var wt=it&&gt.sharedHist;de&&!wt||(b(gt.doc,wt),le(gt.doc,Ce,wt))}}}le(a,null,!0)}function ai(a,b){if(b.cm)throw new Error("This document is already in use.");a.doc=b,b.cm=a,ws(a),_r(a),Fr(a),a.options.lineWrapping||mi(a),a.options.mode=b.modeOption,la(a)}function Fr(a){(a.doc.direction=="rtl"?me:Be)(a.display.lineDiv,"CodeMirror-rtl")}function $r(a){ma(a,function(){Fr(a),la(a)})}function Ir(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 vr(a,b){var de={from:Ut(b.from),to:dr(b),text:rn(a,b.from,b.to)};return yo(a,de,b.from.line,b.to.line+1),Gr(a,function(le){return yo(le,de,b.from.line,b.to.line+1)},!0),de}function Lr(a){for(;a.length;){var b=at(a);if(b.ranges)a.pop();else break}}function zr(a,b){if(b)return Lr(a.done),at(a.done);if(a.done.length&&!at(a.done).ranges)return at(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),at(a.done)}function qr(a,b,de,le){var Ce=a.history;Ce.undone.length=0;var He=+new Date,it,dt;if((Ce.lastOp==le||Ce.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&Ce.lastModTime>He-(a.cm?a.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(it=zr(Ce,Ce.lastOp==le)))dt=at(it.changes),_t(b.from,b.to)==0&&_t(b.from,dt.to)==0?dt.to=dr(b):it.changes.push(vr(a,b));else{var gt=at(Ce.done);for((!gt||!gt.ranges)&&Pi(a.sel,Ce.done),it={changes:[vr(a,b)],generation:Ce.generation},Ce.done.push(it);Ce.done.length>Ce.undoDepth;)Ce.done.shift(),Ce.done[0].ranges||Ce.done.shift()}Ce.done.push(de),Ce.generation=++Ce.maxGeneration,Ce.lastModTime=Ce.lastSelTime=He,Ce.lastOp=Ce.lastSelOp=le,Ce.lastOrigin=Ce.lastSelOrigin=b.origin,dt||jt(a,"historyAdded")}function Dr(a,b,de,le){var Ce=b.charAt(0);return Ce=="*"||Ce=="+"&&de.ranges.length==le.ranges.length&&de.somethingSelected()==le.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function Ei(a,b,de,le){var Ce=a.history,He=le&&le.origin;de==Ce.lastSelOp||He&&Ce.lastSelOrigin==He&&(Ce.lastModTime==Ce.lastSelTime&&Ce.lastOrigin==He||Dr(a,He,at(Ce.done),b))?Ce.done[Ce.done.length-1]=b:Pi(b,Ce.done),Ce.lastSelTime=+new Date,Ce.lastSelOrigin=He,Ce.lastSelOp=de,le&&le.clearRedo!==!1&&Lr(Ce.undone)}function Pi(a,b){var de=at(b);de&&de.ranges&&de.equals(a)||b.push(a)}function yo(a,b,de,le){var Ce=b["spans_"+a.id],He=0;a.iter(Math.max(a.first,de),Math.min(a.first+a.size,le),function(it){it.markedSpans&&((Ce||(Ce=b["spans_"+a.id]={}))[He]=it.markedSpans),++He})}function fo(a){if(!a)return null;for(var b,de=0;de<a.length;++de)a[de].marker.explicitlyCleared?b||(b=a.slice(0,de)):b&&b.push(a[de]);return b?b.length?b:null:a}function ro(a,b){var de=b["spans_"+a.id];if(!de)return null;for(var le=[],Ce=0;Ce<b.text.length;++Ce)le.push(fo(de[Ce]));return le}function po(a,b){var de=ro(a,b),le=ei(a,b);if(!de)return le;if(!le)return de;for(var Ce=0;Ce<de.length;++Ce){var He=de[Ce],it=le[Ce];if(He&&it)e:for(var dt=0;dt<it.length;++dt){for(var gt=it[dt],wt=0;wt<He.length;++wt)if(He[wt].marker==gt.marker)continue e;He.push(gt)}else it&&(de[Ce]=it)}return de}function So(a,b,de){for(var le=[],Ce=0;Ce<a.length;++Ce){var He=a[Ce];if(He.ranges){le.push(de?Sn.prototype.deepCopy.call(He):He);continue}var it=He.changes,dt=[];le.push({changes:dt});for(var gt=0;gt<it.length;++gt){var wt=it[gt],Qt=void 0;if(dt.push({from:wt.from,to:wt.to,text:wt.text}),b)for(var an in wt)(Qt=an.match(/^spans_(\d+)$/))&&tt(b,Number(Qt[1]))>-1&&(at(dt)[an]=wt[an],delete wt[an])}}return le}function ji(a,b,de,le){if(le){var Ce=a.anchor;if(de){var He=_t(b,Ce)<0;He!=_t(de,Ce)<0?(Ce=b,b=de):He!=_t(b,de)<0&&(b=de)}return new wn(Ce,b)}else return new wn(de||b,b)}function Di(a,b,de,le,Ce){Ce==null&&(Ce=a.cm&&(a.cm.display.shift||a.extend)),Br(a,new Sn([ji(a.sel.primary(),b,de,Ce)],0),le)}function Co(a,b,de){for(var le=[],Ce=a.cm&&(a.cm.display.shift||a.extend),He=0;He<a.sel.ranges.length;He++)le[He]=ji(a.sel.ranges[He],b[He],null,Ce);var it=ar(a.cm,le,a.sel.primIndex);Br(a,it,de)}function No(a,b,de,le){var Ce=a.sel.ranges.slice(0);Ce[b]=de,Br(a,ar(a.cm,Ce,a.sel.primIndex),le)}function Xr(a,b,de,le){Br(a,Xn(b,de),le)}function pi(a,b,de){var le={ranges:b.ranges,update:function(Ce){this.ranges=[];for(var He=0;He<Ce.length;He++)this.ranges[He]=new wn($t(a,Ce[He].anchor),$t(a,Ce[He].head))},origin:de&&de.origin};return jt(a,"beforeSelectionChange",a,le),a.cm&&jt(a.cm,"beforeSelectionChange",a.cm,le),le.ranges!=b.ranges?ar(a.cm,le.ranges,le.ranges.length-1):b}function Wr(a,b,de){var le=a.history.done,Ce=at(le);Ce&&Ce.ranges?(le[le.length-1]=b,Bi(a,b,de)):Br(a,b,de)}function Br(a,b,de){Bi(a,b,de),Ei(a,a.sel,a.cm?a.cm.curOp.id:NaN,de)}function Bi(a,b,de){(Nt(a,"beforeSelectionChange")||a.cm&&Nt(a.cm,"beforeSelectionChange"))&&(b=pi(a,b,de));var le=de&&de.bias||(_t(b.primary().head,a.sel.primary().head)<0?-1:1);Ki(a,to(a,b,le,!0)),!(de&&de.scroll===!1)&&a.cm&&Es(a.cm)}function Ki(a,b){b.equals(a.sel)||(a.sel=b,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,kt(a.cm)),Ai(a,"cursorActivity",a))}function uo(a){Ki(a,to(a,a.sel,null,!1))}function to(a,b,de,le){for(var Ce,He=0;He<b.ranges.length;He++){var it=b.ranges[He],dt=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[He],gt=Bo(a,it.anchor,dt&&dt.anchor,de,le),wt=Bo(a,it.head,dt&&dt.head,de,le);(Ce||gt!=it.anchor||wt!=it.head)&&(Ce||(Ce=b.ranges.slice(0,He)),Ce[He]=new wn(gt,wt))}return Ce?ar(a.cm,Ce,b.primIndex):b}function Eo(a,b,de,le,Ce){var He=ln(a,b.line);if(He.markedSpans)for(var it=0;it<He.markedSpans.length;++it){var dt=He.markedSpans[it],gt=dt.marker,wt="selectLeft"in gt?!gt.selectLeft:gt.inclusiveLeft,Qt="selectRight"in gt?!gt.selectRight:gt.inclusiveRight;if((dt.from==null||(wt?dt.from<=b.ch:dt.from<b.ch))&&(dt.to==null||(Qt?dt.to>=b.ch:dt.to>b.ch))){if(Ce&&(jt(gt,"beforeCursorEnter"),gt.explicitlyCleared))if(He.markedSpans){--it;continue}else break;if(!gt.atomic)continue;if(de){var an=gt.find(le<0?1:-1),En=void 0;if((le<0?Qt:wt)&&(an=Jr(a,an,-le,an&&an.line==b.line?He:null)),an&&an.line==b.line&&(En=_t(an,de))&&(le<0?En<0:En>0))return Eo(a,an,b,le,Ce)}var bn=gt.find(le<0?-1:1);return(le<0?wt:Qt)&&(bn=Jr(a,bn,le,bn.line==b.line?He:null)),bn?Eo(a,bn,b,le,Ce):null}}return b}function Bo(a,b,de,le,Ce){var He=le||1,it=Eo(a,b,de,He,Ce)||!Ce&&Eo(a,b,de,He,!0)||Eo(a,b,de,-He,Ce)||!Ce&&Eo(a,b,de,-He,!0);return it||(a.cantEdit=!0,Tt(a.first,0))}function Jr(a,b,de,le){return de<0&&b.ch==0?b.line>a.first?$t(a,Tt(b.line-1)):null:de>0&&b.ch==(le||ln(a,b.line)).text.length?b.line<a.first+a.size-1?Tt(b.line+1,0):null:new Tt(b.line,b.ch+de)}function ri(a){a.setSelection(Tt(a.firstLine(),0),Tt(a.lastLine()),Ke)}function Vi(a,b,de){var le={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return le.canceled=!0}};return de&&(le.update=function(Ce,He,it,dt){Ce&&(le.from=$t(a,Ce)),He&&(le.to=$t(a,He)),it&&(le.text=it),dt!==void 0&&(le.origin=dt)}),jt(a,"beforeChange",a,le),a.cm&&jt(a.cm,"beforeChange",a.cm,le),le.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:le.from,to:le.to,text:le.text,origin:le.origin}}function eo(a,b,de){if(a.cm){if(!a.cm.curOp)return Jo(a.cm,eo)(a,b,de);if(a.cm.state.suppressEdits)return}if(!((Nt(a,"beforeChange")||a.cm&&Nt(a.cm,"beforeChange"))&&(b=Vi(a,b,!0),!b))){var le=yr&&!de&&wi(a,b.from,b.to);if(le)for(var Ce=le.length-1;Ce>=0;--Ce)Ji(a,{from:le[Ce].from,to:le[Ce].to,text:Ce?[""]:b.text,origin:b.origin});else Ji(a,b)}}function Ji(a,b){if(!(b.text.length==1&&b.text[0]==""&&_t(b.from,b.to)==0)){var de=fr(a,b);qr(a,b,de,a.cm?a.cm.curOp.id:NaN),va(a,b,de,ei(a,b));var le=[];Gr(a,function(Ce,He){!He&&tt(le,Ce.history)==-1&&(Lo(Ce.history,b),le.push(Ce.history)),va(Ce,b,null,ei(Ce,b))})}}function $o(a,b,de){var le=a.cm&&a.cm.state.suppressEdits;if(!(le&&!de)){for(var Ce=a.history,He,it=a.sel,dt=b=="undo"?Ce.done:Ce.undone,gt=b=="undo"?Ce.undone:Ce.done,wt=0;wt<dt.length&&(He=dt[wt],!(de?He.ranges&&!He.equals(a.sel):!He.ranges));wt++);if(wt!=dt.length){for(Ce.lastOrigin=Ce.lastSelOrigin=null;;)if(He=dt.pop(),He.ranges){if(Pi(He,gt),de&&!He.equals(a.sel)){Br(a,He,{clearRedo:!1});return}it=He}else if(le){dt.push(He);return}else break;var Qt=[];Pi(it,gt),gt.push({changes:Qt,generation:Ce.generation}),Ce.generation=He.generation||++Ce.maxGeneration;for(var an=Nt(a,"beforeChange")||a.cm&&Nt(a.cm,"beforeChange"),En=function(ir){var gr=He.changes[ir];if(gr.origin=b,an&&!Vi(a,gr,!1))return dt.length=0,{};Qt.push(vr(a,gr));var Nr=ir?fr(a,gr):at(dt);va(a,gr,Nr,po(a,gr)),!ir&&a.cm&&a.cm.scrollIntoView({from:gr.from,to:dr(gr)});var Zr=[];Gr(a,function(Rr,Yr){!Yr&&tt(Zr,Rr.history)==-1&&(Lo(Rr.history,gr),Zr.push(Rr.history)),va(Rr,gr,null,po(Rr,gr))})},bn=He.changes.length-1;bn>=0;--bn){var Yn=En(bn);if(Yn)return Yn.v}}}}function To(a,b){if(b!=0&&(a.first+=b,a.sel=new Sn(qe(a.sel.ranges,function(Ce){return new wn(Tt(Ce.anchor.line+b,Ce.anchor.ch),Tt(Ce.head.line+b,Ce.head.ch))}),a.sel.primIndex),a.cm)){la(a.cm,a.first,a.first-b,b);for(var de=a.cm.display,le=de.viewFrom;le<de.viewTo;le++)is(a.cm,le,"gutter")}}function va(a,b,de,le){if(a.cm&&!a.cm.curOp)return Jo(a.cm,va)(a,b,de,le);if(b.to.line<a.first){To(a,b.text.length-1-(b.to.line-b.from.line));return}if(!(b.from.line>a.lastLine())){if(b.from.line<a.first){var Ce=b.text.length-1-(a.first-b.from.line);To(a,Ce),b={from:Tt(a.first,0),to:Tt(b.to.line+Ce,b.to.ch),text:[at(b.text)],origin:b.origin}}var He=a.lastLine();b.to.line>He&&(b={from:b.from,to:Tt(He,ln(a,He).text.length),text:[b.text[0]],origin:b.origin}),b.removed=rn(a,b.from,b.to),de||(de=fr(a,b)),a.cm?ho(a.cm,b,le):Qr(a,b,le),Bi(a,de,Ke),a.cantEdit&&Bo(a,Tt(a.firstLine(),0))&&(a.cantEdit=!1)}}function ho(a,b,de){var le=a.doc,Ce=a.display,He=b.from,it=b.to,dt=!1,gt=He.line;a.options.lineWrapping||(gt=Mt($n(ln(le,He.line))),le.iter(gt,it.line+1,function(bn){if(bn==Ce.maxLine)return dt=!0,!0})),le.sel.contains(b.from,b.to)>-1&&kt(a),Qr(le,b,de,bl(a)),a.options.lineWrapping||(le.iter(gt,He.line+b.text.length,function(bn){var Yn=Ti(bn);Yn>Ce.maxLineLength&&(Ce.maxLine=bn,Ce.maxLineLength=Yn,Ce.maxLineChanged=!0,dt=!1)}),dt&&(a.curOp.updateMaxLine=!0)),Jn(le,He.line),Hs(a,400);var wt=b.text.length-(it.line-He.line)-1;b.full?la(a):He.line==it.line&&b.text.length==1&&!vi(a.doc,b)?is(a,He.line,"text"):la(a,He.line,it.line+1,wt);var Qt=Nt(a,"changes"),an=Nt(a,"change");if(an||Qt){var En={from:He,to:it,text:b.text,removed:b.removed,origin:b.origin};an&&Ai(a,"change",a,En),Qt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(En)}a.display.selForContextMenu=null}function $i(a,b,de,le,Ce){var He;le||(le=de),_t(le,de)<0&&(He=[le,de],de=He[0],le=He[1]),typeof b=="string"&&(b=a.splitLines(b)),eo(a,{from:de,to:le,text:b,origin:Ce})}function no(a,b,de,le){de<a.line?a.line+=le:b<a.line&&(a.line=b,a.ch=0)}function io(a,b,de,le){for(var Ce=0;Ce<a.length;++Ce){var He=a[Ce],it=!0;if(He.ranges){He.copied||(He=a[Ce]=He.deepCopy(),He.copied=!0);for(var dt=0;dt<He.ranges.length;dt++)no(He.ranges[dt].anchor,b,de,le),no(He.ranges[dt].head,b,de,le);continue}for(var gt=0;gt<He.changes.length;++gt){var wt=He.changes[gt];if(de<wt.from.line)wt.from=Tt(wt.from.line+le,wt.from.ch),wt.to=Tt(wt.to.line+le,wt.to.ch);else if(b<=wt.to.line){it=!1;break}}it||(a.splice(0,Ce+1),Ce=0)}}function Lo(a,b){var de=b.from.line,le=b.to.line,Ce=b.text.length-(le-de)-1;io(a.done,de,le,Ce),io(a.undone,de,le,Ce)}function bo(a,b,de,le){var Ce=b,He=b;return typeof b=="number"?He=ln(a,Ft(a,b)):Ce=Mt(b),Ce==null?null:(le(He,Ce)&&a.cm&&is(a.cm,Ce,de),He)}function zi(a){this.lines=a,this.parent=null;for(var b=0,de=0;de<a.length;++de)a[de].parent=this,b+=a[de].height;this.height=b}zi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var de=a,le=a+b;de<le;++de){var Ce=this.lines[de];this.height-=Ce.height,Ii(Ce),Ai(Ce,"delete")}this.lines.splice(a,b)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,b,de){this.height+=de,this.lines=this.lines.slice(0,a).concat(b).concat(this.lines.slice(a));for(var le=0;le<b.length;++le)b[le].parent=this},iterN:function(a,b,de){for(var le=a+b;a<le;++a)if(de(this.lines[a]))return!0}};function mo(a){this.children=a;for(var b=0,de=0,le=0;le<a.length;++le){var Ce=a[le];b+=Ce.chunkSize(),de+=Ce.height,Ce.parent=this}this.size=b,this.height=de,this.parent=null}mo.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size-=b;for(var de=0;de<this.children.length;++de){var le=this.children[de],Ce=le.chunkSize();if(a<Ce){var He=Math.min(b,Ce-a),it=le.height;if(le.removeInner(a,He),this.height-=it-le.height,Ce==He&&(this.children.splice(de--,1),le.parent=null),(b-=He)==0)break;a=0}else a-=Ce}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof zi))){var dt=[];this.collapse(dt),this.children=[new zi(dt)],this.children[0].parent=this}},collapse:function(a){for(var b=0;b<this.children.length;++b)this.children[b].collapse(a)},insertInner:function(a,b,de){this.size+=b.length,this.height+=de;for(var le=0;le<this.children.length;++le){var Ce=this.children[le],He=Ce.chunkSize();if(a<=He){if(Ce.insertInner(a,b,de),Ce.lines&&Ce.lines.length>50){for(var it=Ce.lines.length%25+25,dt=it;dt<Ce.lines.length;){var gt=new zi(Ce.lines.slice(dt,dt+=25));Ce.height-=gt.height,this.children.splice(++le,0,gt),gt.parent=this}Ce.lines=Ce.lines.slice(0,it),this.maybeSpill()}break}a-=He}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var b=a.children.splice(a.children.length-5,5),de=new mo(b);if(a.parent){a.size-=de.size,a.height-=de.height;var Ce=tt(a.parent.children,a);a.parent.children.splice(Ce+1,0,de)}else{var le=new mo(a.children);le.parent=a,a.children=[le,de],a=le}de.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,b,de){for(var le=0;le<this.children.length;++le){var Ce=this.children[le],He=Ce.chunkSize();if(a<He){var it=Math.min(b,He-a);if(Ce.iterN(a,it,de))return!0;if((b-=it)==0)break;a=0}else a-=He}}};var Xi=function(a,b,de){if(de)for(var le in de)de.hasOwnProperty(le)&&(this[le]=de[le]);this.doc=a,this.node=b};Xi.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,de=this.line,le=Mt(de);if(!(le==null||!b)){for(var Ce=0;Ce<b.length;++Ce)b[Ce]==this&&b.splice(Ce--,1);b.length||(de.widgets=null);var He=oa(this);Zn(de,Math.max(0,de.height-He)),a&&(ma(a,function(){Qo(a,de,-He),is(a,le,"widget")}),Ai(a,"lineWidgetCleared",a,this,le))}},Xi.prototype.changed=function(){var a=this,b=this.height,de=this.doc.cm,le=this.line;this.height=null;var Ce=oa(this)-b;Ce&&(qn(this.doc,le)||Zn(le,le.height+Ce),de&&ma(de,function(){de.curOp.forceUpdate=!0,Qo(de,le,Ce),Ai(de,"lineWidgetChanged",de,a,Mt(le))}))},yt(Xi);function Qo(a,b,de){ti(b)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Kl(a,de)}function Ro(a,b,de,le){var Ce=new Xi(a,de,le),He=a.cm;return He&&Ce.noHScroll&&(He.display.alignWidgets=!0),bo(a,b,"widget",function(it){var dt=it.widgets||(it.widgets=[]);if(Ce.insertAt==null?dt.push(Ce):dt.splice(Math.min(dt.length-1,Math.max(0,Ce.insertAt)),0,Ce),Ce.line=it,He&&!qn(a,it)){var gt=ti(it)<a.scrollTop;Zn(it,it.height+oa(Ce)),gt&&Kl(He,Ce.height),He.curOp.forceUpdate=!0}return!0}),He&&Ai(He,"lineWidgetAdded",He,Ce,typeof b=="number"?b:Mt(b)),Ce}var ca=0,ga=function(a,b){this.lines=[],this.type=b,this.doc=a,this.id=++ca};ga.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,b=a&&!a.curOp;if(b&&ms(a),Nt(this,"clear")){var de=this.find();de&&Ai(this,"clear",de.from,de.to)}for(var le=null,Ce=null,He=0;He<this.lines.length;++He){var it=this.lines[He],dt=Er(it.markedSpans,this);a&&!this.collapsed?is(a,Mt(it),"text"):a&&(dt.to!=null&&(Ce=Mt(it)),dt.from!=null&&(le=Mt(it))),it.markedSpans=Hr(it.markedSpans,dt),dt.from==null&&this.collapsed&&!qn(this.doc,it)&&a&&Zn(it,wa(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var gt=0;gt<this.lines.length;++gt){var wt=$n(this.lines[gt]),Qt=Ti(wt);Qt>a.display.maxLineLength&&(a.display.maxLine=wt,a.display.maxLineLength=Qt,a.display.maxLineChanged=!0)}le!=null&&a&&this.collapsed&&la(a,le,Ce+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&uo(a.doc)),a&&Ai(a,"markerCleared",a,this,le,Ce),b&&Is(a),this.parent&&this.parent.clear()}},ga.prototype.find=function(a,b){a==null&&this.type=="bookmark"&&(a=1);for(var de,le,Ce=0;Ce<this.lines.length;++Ce){var He=this.lines[Ce],it=Er(He.markedSpans,this);if(it.from!=null&&(de=Tt(b?He:Mt(He),it.from),a==-1))return de;if(it.to!=null&&(le=Tt(b?He:Mt(He),it.to),a==1))return le}return de&&{from:de,to:le}},ga.prototype.changed=function(){var a=this,b=this.find(-1,!0),de=this,le=this.doc.cm;!b||!le||ma(le,function(){var Ce=b.line,He=Mt(b.line),it=za(le,He);if(it&&(Rs(it),le.curOp.selectionChanged=le.curOp.forceUpdate=!0),le.curOp.updateMaxLine=!0,!qn(de.doc,Ce)&&de.height!=null){var dt=de.height;de.height=null;var gt=oa(de)-dt;gt&&Zn(Ce,Ce.height+gt)}Ai(le,"markerChanged",le,a)})},ga.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(!b.maybeHiddenMarkers||tt(b.maybeHiddenMarkers,this)==-1)&&(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},ga.prototype.detachLine=function(a){if(this.lines.splice(tt(this.lines,a),1),!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(b.maybeHiddenMarkers||(b.maybeHiddenMarkers=[])).push(this)}},yt(ga);function Ga(a,b,de,le,Ce){if(le&&le.shared)return Zs(a,b,de,le,Ce);if(a.cm&&!a.cm.curOp)return Jo(a.cm,Ga)(a,b,de,le,Ce);var He=new ga(a,Ce),it=_t(b,de);if(le&&nt(le,He,!1),it>0||it==0&&He.clearWhenEmpty!==!1)return He;if(He.replacedWith&&(He.collapsed=!0,He.widgetNode=Oe("span",[He.replacedWith],"CodeMirror-widget"),le.handleMouseEvents||He.widgetNode.setAttribute("cm-ignore-events","true"),le.insertLeft&&(He.widgetNode.insertLeft=!0)),He.collapsed){if(Vn(a,b.line,b,de,He)||b.line!=de.line&&Vn(a,de.line,b,de,He))throw new Error("Inserting collapsed marker partially overlapping an existing one");tr()}He.addToHistory&&qr(a,{from:b,to:de,origin:"markText"},a.sel,NaN);var dt=b.line,gt=a.cm,wt;if(a.iter(dt,de.line+1,function(an){gt&&He.collapsed&&!gt.options.lineWrapping&&$n(an)==gt.display.maxLine&&(wt=!0),He.collapsed&&dt!=b.line&&Zn(an,0),kr(an,new br(He,dt==b.line?b.ch:null,dt==de.line?de.ch:null)),++dt}),He.collapsed&&a.iter(b.line,de.line+1,function(an){qn(a,an)&&Zn(an,0)}),He.clearOnEnter&&At(He,"beforeCursorEnter",function(){return He.clear()}),He.readOnly&&(xn(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),He.collapsed&&(He.id=++ca,He.atomic=!0),gt){if(wt&&(gt.curOp.updateMaxLine=!0),He.collapsed)la(gt,b.line,de.line+1);else if(He.className||He.startStyle||He.endStyle||He.css||He.attributes||He.title)for(var Qt=b.line;Qt<=de.line;Qt++)is(gt,Qt,"text");He.atomic&&uo(gt.doc),Ai(gt,"markerAdded",gt,He)}return He}var oo=function(a,b){this.markers=a,this.primary=b;for(var de=0;de<a.length;++de)a[de].parent=this};oo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Ai(this,"clear")}},oo.prototype.find=function(a,b){return this.primary.find(a,b)},yt(oo);function Zs(a,b,de,le,Ce){le=nt(le),le.shared=!1;var He=[Ga(a,b,de,le,Ce)],it=He[0],dt=le.widgetNode;return Gr(a,function(gt){dt&&(le.widgetNode=dt.cloneNode(!0)),He.push(Ga(gt,$t(gt,b),$t(gt,de),le,Ce));for(var wt=0;wt<gt.linked.length;++wt)if(gt.linked[wt].isParent)return;it=at(He)}),new oo(He,it)}function da(a){return a.findMarks(Tt(a.first,0),a.clipPos(Tt(a.lastLine())),function(b){return b.parent})}function Na(a,b){for(var de=0;de<b.length;de++){var le=b[de],Ce=le.find(),He=a.clipPos(Ce.from),it=a.clipPos(Ce.to);if(_t(He,it)){var dt=Ga(a,He,it,le.primary,le.primary.type);le.markers.push(dt),dt.parent=le}}}function Ca(a){for(var b=function(le){var Ce=a[le],He=[Ce.primary.doc];Gr(Ce.primary.doc,function(gt){return He.push(gt)});for(var it=0;it<Ce.markers.length;it++){var dt=Ce.markers[it];tt(He,dt.doc)==-1&&(dt.parent=null,Ce.markers.splice(it--,1))}},de=0;de<a.length;de++)b(de)}var ya=0,ao=function(a,b,de,le,Ce){if(!(this instanceof ao))return new ao(a,b,de,le,Ce);de==null&&(de=0),mo.call(this,[new zi([new ki("",null)])]),this.first=de,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=de;var He=Tt(de,0);this.sel=Xn(He),this.history=new Ir(null),this.id=++ya,this.modeOption=b,this.lineSep=le,this.direction=Ce=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),Qr(this,{from:He,to:He,text:a}),Br(this,Xn(He),Ke)};ao.prototype=ne(mo.prototype,{constructor:ao,iter:function(a,b,de){de?this.iterN(a-this.first,b-a,de):this.iterN(this.first,this.first+this.size,a)},insert:function(a,b){for(var de=0,le=0;le<b.length;++le)de+=b[le].height;this.insertInner(a-this.first,b,de)},remove:function(a,b){this.removeInner(a-this.first,b)},getValue:function(a){var b=Wn(this,this.first,this.first+this.size);return a===!1?b:b.join(a||this.lineSeparator())},setValue:Ko(function(a){var b=Tt(this.first,0),de=this.first+this.size-1;eo(this,{from:b,to:Tt(de,ln(this,de).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&nl(this.cm,0,0),Br(this,Xn(b),Ke)}),replaceRange:function(a,b,de,le){b=$t(this,b),de=de?$t(this,de):b,$i(this,a,b,de,le)},getRange:function(a,b,de){var le=rn(this,$t(this,a),$t(this,b));return de===!1?le:le.join(de||this.lineSeparator())},getLine:function(a){var b=this.getLineHandle(a);return b&&b.text},getLineHandle:function(a){if(St(this,a))return ln(this,a)},getLineNumber:function(a){return Mt(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=ln(this,a)),$n(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 b=this.sel.primary(),de;return a==null||a=="head"?de=b.head:a=="anchor"?de=b.anchor:a=="end"||a=="to"||a===!1?de=b.to():de=b.from(),de},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ko(function(a,b,de){Xr(this,$t(this,typeof a=="number"?Tt(a,b||0):a),null,de)}),setSelection:Ko(function(a,b,de){Xr(this,$t(this,a),$t(this,b||a),de)}),extendSelection:Ko(function(a,b,de){Di(this,$t(this,a),b&&$t(this,b),de)}),extendSelections:Ko(function(a,b){Co(this,Xt(this,a),b)}),extendSelectionsBy:Ko(function(a,b){var de=qe(this.sel.ranges,a);Co(this,Xt(this,de),b)}),setSelections:Ko(function(a,b,de){if(a.length){for(var le=[],Ce=0;Ce<a.length;Ce++)le[Ce]=new wn($t(this,a[Ce].anchor),$t(this,a[Ce].head));b==null&&(b=Math.min(a.length-1,this.sel.primIndex)),Br(this,ar(this.cm,le,b),de)}}),addSelection:Ko(function(a,b,de){var le=this.sel.ranges.slice(0);le.push(new wn($t(this,a),$t(this,b||a))),Br(this,ar(this.cm,le,le.length-1),de)}),getSelection:function(a){for(var b=this.sel.ranges,de,le=0;le<b.length;le++){var Ce=rn(this,b[le].from(),b[le].to());de=de?de.concat(Ce):Ce}return a===!1?de:de.join(a||this.lineSeparator())},getSelections:function(a){for(var b=[],de=this.sel.ranges,le=0;le<de.length;le++){var Ce=rn(this,de[le].from(),de[le].to());a!==!1&&(Ce=Ce.join(a||this.lineSeparator())),b[le]=Ce}return b},replaceSelection:function(a,b,de){for(var le=[],Ce=0;Ce<this.sel.ranges.length;Ce++)le[Ce]=a;this.replaceSelections(le,b,de||"+input")},replaceSelections:Ko(function(a,b,de){for(var le=[],Ce=this.sel,He=0;He<Ce.ranges.length;He++){var it=Ce.ranges[He];le[He]={from:it.from(),to:it.to(),text:this.splitLines(a[He]),origin:de}}for(var dt=b&&b!="end"&&Ar(this,le,b),gt=le.length-1;gt>=0;gt--)eo(this,le[gt]);dt?Wr(this,dt):this.cm&&Es(this.cm)}),undo:Ko(function(){$o(this,"undo")}),redo:Ko(function(){$o(this,"redo")}),undoSelection:Ko(function(){$o(this,"undo",!0)}),redoSelection:Ko(function(){$o(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,b=0,de=0,le=0;le<a.done.length;le++)a.done[le].ranges||++b;for(var Ce=0;Ce<a.undone.length;Ce++)a.undone[Ce].ranges||++de;return{undo:b,redo:de}},clearHistory:function(){var a=this;this.history=new Ir(this.history.maxGeneration),Gr(this,function(b){return b.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:So(this.history.done),undone:So(this.history.undone)}},setHistory:function(a){var b=this.history=new Ir(this.history.maxGeneration);b.done=So(a.done.slice(0),null,!0),b.undone=So(a.undone.slice(0),null,!0)},setGutterMarker:Ko(function(a,b,de){return bo(this,a,"gutter",function(le){var Ce=le.gutterMarkers||(le.gutterMarkers={});return Ce[b]=de,!de&&we(Ce)&&(le.gutterMarkers=null),!0})}),clearGutter:Ko(function(a){var b=this;this.iter(function(de){de.gutterMarkers&&de.gutterMarkers[a]&&bo(b,de,"gutter",function(){return de.gutterMarkers[a]=null,we(de.gutterMarkers)&&(de.gutterMarkers=null),!0})})}),lineInfo:function(a){var b;if(typeof a=="number"){if(!St(this,a)||(b=a,a=ln(this,a),!a))return null}else if(b=Mt(a),b==null)return null;return{line:b,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Ko(function(a,b,de){return bo(this,a,b=="gutter"?"gutter":"class",function(le){var Ce=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!le[Ce])le[Ce]=de;else{if(De(de).test(le[Ce]))return!1;le[Ce]+=" "+de}return!0})}),removeLineClass:Ko(function(a,b,de){return bo(this,a,b=="gutter"?"gutter":"class",function(le){var Ce=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",He=le[Ce];if(He)if(de==null)le[Ce]=null;else{var it=He.match(De(de));if(!it)return!1;var dt=it.index+it[0].length;le[Ce]=He.slice(0,it.index)+(!it.index||dt==He.length?"":" ")+He.slice(dt)||null}else return!1;return!0})}),addLineWidget:Ko(function(a,b,de){return Ro(this,a,b,de)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,de){return Ga(this,$t(this,a),$t(this,b),de,de&&de.type||"range")},setBookmark:function(a,b){var de={replacedWith:b&&(b.nodeType==null?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};return a=$t(this,a),Ga(this,a,a,de,"bookmark")},findMarksAt:function(a){a=$t(this,a);var b=[],de=ln(this,a.line).markedSpans;if(de)for(var le=0;le<de.length;++le){var Ce=de[le];(Ce.from==null||Ce.from<=a.ch)&&(Ce.to==null||Ce.to>=a.ch)&&b.push(Ce.marker.parent||Ce.marker)}return b},findMarks:function(a,b,de){a=$t(this,a),b=$t(this,b);var le=[],Ce=a.line;return this.iter(a.line,b.line+1,function(He){var it=He.markedSpans;if(it)for(var dt=0;dt<it.length;dt++){var gt=it[dt];!(gt.to!=null&&Ce==a.line&&a.ch>=gt.to||gt.from==null&&Ce!=a.line||gt.from!=null&&Ce==b.line&&gt.from>=b.ch)&&(!de||de(gt.marker))&&le.push(gt.marker.parent||gt.marker)}++Ce}),le},getAllMarks:function(){var a=[];return this.iter(function(b){var de=b.markedSpans;if(de)for(var le=0;le<de.length;++le)de[le].from!=null&&a.push(de[le].marker)}),a},posFromIndex:function(a){var b,de=this.first,le=this.lineSeparator().length;return this.iter(function(Ce){var He=Ce.text.length+le;if(He>a)return b=a,!0;a-=He,++de}),$t(this,Tt(de,b))},indexFromPos:function(a){a=$t(this,a);var b=a.ch;if(a.line<this.first||a.ch<0)return 0;var de=this.lineSeparator().length;return this.iter(this.first,a.line,function(le){b+=le.text.length+de}),b},copy:function(a){var b=new ao(Wn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return b.scrollTop=this.scrollTop,b.scrollLeft=this.scrollLeft,b.sel=this.sel,b.extend=!1,a&&(b.history.undoDepth=this.history.undoDepth,b.setHistory(this.getHistory())),b},linkedDoc:function(a){a||(a={});var b=this.first,de=this.first+this.size;a.from!=null&&a.from>b&&(b=a.from),a.to!=null&&a.to<de&&(de=a.to);var le=new ao(Wn(this,b,de),a.mode||this.modeOption,b,this.lineSep,this.direction);return a.sharedHist&&(le.history=this.history),(this.linked||(this.linked=[])).push({doc:le,sharedHist:a.sharedHist}),le.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],Na(le,da(this)),le},unlinkDoc:function(a){if(a instanceof Io&&(a=a.doc),this.linked)for(var b=0;b<this.linked.length;++b){var de=this.linked[b];if(de.doc==a){this.linked.splice(b,1),a.unlinkDoc(this),Ca(da(this));break}}if(a.history==this.history){var le=[a.id];Gr(a,function(Ce){return le.push(Ce.id)},!0),a.history=new Ir(null),a.history.done=So(this.history.done,le),a.history.undone=So(this.history.undone,le)}},iterLinkedDocs:function(a){Gr(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):yn(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Ko(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(b){return b.order=null}),this.cm&&$r(this.cm))})}),ao.prototype.eachLine=ao.prototype.iter;var Ea=0;function as(a){var b=this;if(ol(b),!(Et(b,a)||Yo(b.display,a))){Pt(a),be&&(Ea=+new Date);var de=Ja(b,a,!0),le=a.dataTransfer.files;if(!(!de||b.isReadOnly()))if(le&&le.length&&window.FileReader&&window.File)for(var Ce=le.length,He=Array(Ce),it=0,dt=function(){++it==Ce&&Jo(b,function(){de=$t(b.doc,de);var bn={from:de,to:de,text:b.doc.splitLines(He.filter(function(Yn){return Yn!=null}).join(b.doc.lineSeparator())),origin:"paste"};eo(b.doc,bn),Wr(b.doc,Xn($t(b.doc,de),$t(b.doc,dr(bn))))})()},gt=function(bn,Yn){if(b.options.allowDropFileTypes&&tt(b.options.allowDropFileTypes,bn.type)==-1){dt();return}var ir=new FileReader;ir.onerror=function(){return dt()},ir.onload=function(){var gr=ir.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(gr)){dt();return}He[Yn]=gr,dt()},ir.readAsText(bn)},wt=0;wt<le.length;wt++)gt(le[wt],wt);else{if(b.state.draggingText&&b.doc.sel.contains(de)>-1){b.state.draggingText(a),setTimeout(function(){return b.display.input.focus()},20);return}try{var Qt=a.dataTransfer.getData("Text");if(Qt){var an;if(b.state.draggingText&&!b.state.draggingText.copy&&(an=b.listSelections()),Bi(b.doc,Xn(de,de)),an)for(var En=0;En<an.length;++En)$i(b.doc,"",an[En].anchor,an[En].head,"drag");b.replaceSelection(Qt,"around","paste"),b.display.input.focus()}}catch(bn){}}}}function Va(a,b){if(be&&(!a.state.draggingText||+new Date-Ea<100)){xt(b);return}if(!(Et(a,b)||Yo(a.display,b))&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!ce)){var de=Ee("img",null,null,"position: fixed; left: 0; top: 0;");de.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ee&&(de.width=de.height=1,a.display.wrapper.appendChild(de),de._top=de.offsetTop),b.dataTransfer.setDragImage(de,0,0),ee&&de.parentNode.removeChild(de)}}function Xa(a,b){var de=Ja(a,b);if(de){var le=document.createDocumentFragment();Zl(a,de,le),a.display.dragCursor||(a.display.dragCursor=Ee("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),Se(a.display.dragCursor,le)}}function ol(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function al(a){if(document.getElementsByClassName){for(var b=document.getElementsByClassName("CodeMirror"),de=[],le=0;le<b.length;le++){var Ce=b[le].CodeMirror;Ce&&de.push(Ce)}de.length&&de[0].operation(function(){for(var He=0;He<de.length;He++)a(de[He])})}}var sl=!1;function ll(){sl||(Ol(),sl=!0)}function Ol(){var a;At(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,al(xi)},100))}),At(window,"blur",function(){return al(Ss)})}function xi(a){var b=a.display;b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,a.setSize()}for(var Mi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},vo=0;vo<10;vo++)Mi[vo+48]=Mi[vo+96]=String(vo);for(var Oo=65;Oo<=90;Oo++)Mi[Oo]=String.fromCharCode(Oo);for(var Go=1;Go<=12;Go++)Mi[Go+111]=Mi[Go+63235]="F"+Go;var zo={};zo.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"},zo.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"},zo.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"},zo.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"]},zo.default=pe?zo.macDefault:zo.pcDefault;function _a(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var de,le,Ce,He,it=0;it<b.length-1;it++){var dt=b[it];if(/^(cmd|meta|m)$/i.test(dt))He=!0;else if(/^a(lt)?$/i.test(dt))de=!0;else if(/^(c|ctrl|control)$/i.test(dt))le=!0;else if(/^s(hift)?$/i.test(dt))Ce=!0;else throw new Error("Unrecognized modifier name: "+dt)}return de&&(a="Alt-"+a),le&&(a="Ctrl-"+a),He&&(a="Cmd-"+a),Ce&&(a="Shift-"+a),a}function ea(a){var b={};for(var de in a)if(a.hasOwnProperty(de)){var le=a[de];if(/^(name|fallthrough|(de|at)tach)$/.test(de))continue;if(le=="..."){delete a[de];continue}for(var Ce=qe(de.split(" "),_a),He=0;He<Ce.length;He++){var it=void 0,dt=void 0;He==Ce.length-1?(dt=Ce.join(" "),it=le):(dt=Ce.slice(0,He+1).join(" "),it="...");var gt=b[dt];if(!gt)b[dt]=it;else if(gt!=it)throw new Error("Inconsistent bindings for "+dt)}delete a[de]}for(var wt in b)a[wt]=b[wt];return a}function Ps(a,b,de,le){b=ul(b);var Ce=b.call?b.call(a,le):b[a];if(Ce===!1)return"nothing";if(Ce==="...")return"multi";if(Ce!=null&&de(Ce))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return Ps(a,b.fallthrough,de,le);for(var He=0;He<b.fallthrough.length;He++){var it=Ps(a,b.fallthrough[He],de,le);if(it)return it}}}function Il(a){var b=typeof a=="string"?a:Mi[a.keyCode];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function Ws(a,b,de){var le=a;return b.altKey&&le!="Alt"&&(a="Alt-"+a),(xe?b.metaKey:b.ctrlKey)&&le!="Ctrl"&&(a="Ctrl-"+a),(xe?b.ctrlKey:b.metaKey)&&le!="Mod"&&(a="Cmd-"+a),!de&&b.shiftKey&&le!="Shift"&&(a="Shift-"+a),a}function vs(a,b){if(ee&&a.keyCode==34&&a.char)return!1;var de=Mi[a.keyCode];return de==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(de=a.code),Ws(de,a,b))}function ul(a){return typeof a=="string"?zo[a]:a}function gs(a,b){for(var de=a.doc.sel.ranges,le=[],Ce=0;Ce<de.length;Ce++){for(var He=b(de[Ce]);le.length&&_t(He.from,at(le).to)<=0;){var it=le.pop();if(_t(it.from,He.from)<0){He.from=it.from;break}}le.push(He)}ma(a,function(){for(var dt=le.length-1;dt>=0;dt--)$i(a.doc,"",le[dt].from,le[dt].to,"+delete");Es(a)})}function Pl(a,b,de){var le=$e(a.text,b+de,de);return le<0||le>a.text.length?null:le}function cl(a,b,de){var le=Pl(a,b.ch,de);return le==null?null:new Tt(b.line,le,de<0?"after":"before")}function jl(a,b,de,le,Ce){if(a){b.doc.direction=="rtl"&&(Ce=-Ce);var He=ct(de,b.doc.direction);if(He){var it=Ce<0?at(He):He[0],dt=Ce<0==(it.level==1),gt=dt?"after":"before",wt;if(it.level>0||b.doc.direction=="rtl"){var Qt=ts(b,de);wt=Ce<0?de.text.length-1:0;var an=Aa(b,Qt,wt).top;wt=Ge(function(En){return Aa(b,Qt,En).top==an},Ce<0==(it.level==1)?it.from:it.to-1,wt),gt=="before"&&(wt=Pl(de,wt,1))}else wt=Ce<0?it.to:it.from;return new Tt(le,wt,gt)}}return new Tt(le,Ce<0?de.text.length:0,Ce<0?"before":"after")}function Ql(a,b,de,le){var Ce=ct(b,a.doc.direction);if(!Ce)return cl(b,de,le);de.ch>=b.text.length?(de.ch=b.text.length,de.sticky="before"):de.ch<=0&&(de.ch=0,de.sticky="after");var He=lt(Ce,de.ch,de.sticky),it=Ce[He];if(a.doc.direction=="ltr"&&it.level%2==0&&(le>0?it.to>de.ch:it.from<de.ch))return cl(b,de,le);var dt=function(Nr,Zr){return Pl(b,Nr instanceof Tt?Nr.ch:Nr,Zr)},gt,wt=function(Nr){return a.options.lineWrapping?(gt=gt||ts(a,b),ko(a,b,gt,Nr)):{begin:0,end:b.text.length}},Qt=wt(de.sticky=="before"?dt(de,-1):de.ch);if(a.doc.direction=="rtl"||it.level==1){var an=it.level==1==le<0,En=dt(de,an?1:-1);if(En!=null&&(an?En<=it.to&&En<=Qt.end:En>=it.from&&En>=Qt.begin)){var bn=an?"before":"after";return new Tt(de.line,En,bn)}}var Yn=function(Nr,Zr,Rr){for(var Yr=function(go,ra){return ra?new Tt(de.line,dt(go,1),"before"):new Tt(de.line,go,"after")};Nr>=0&&Nr<Ce.length;Nr+=Zr){var hi=Ce[Nr],ui=Zr>0==(hi.level!=1),Li=ui?Rr.begin:dt(Rr.end,-1);if(hi.from<=Li&&Li<hi.to||(Li=ui?hi.from:dt(hi.to,-1),Rr.begin<=Li&&Li<Rr.end))return Yr(Li,ui)}},ir=Yn(He+le,le,Qt);if(ir)return ir;var gr=le>0?Qt.end:dt(Qt.begin,-1);return gr!=null&&!(le>0&&gr==b.text.length)&&(ir=Yn(le>0?0:Ce.length-1,le,wt(gr)),ir)?ir:null}var ss={selectAll:ri,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Ke)},killLine:function(a){return gs(a,function(b){if(b.empty()){var de=ln(a.doc,b.head.line).text.length;return b.head.ch==de&&b.head.line<a.lastLine()?{from:b.head,to:Tt(b.head.line+1,0)}:{from:b.head,to:Tt(b.head.line,de)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return gs(a,function(b){return{from:Tt(b.from().line,0),to:$t(a.doc,Tt(b.to().line+1,0))}})},delLineLeft:function(a){return gs(a,function(b){return{from:Tt(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(a){return gs(a,function(b){var de=a.charCoords(b.head,"div").top+5,le=a.coordsChar({left:0,top:de},"div");return{from:le,to:b.from()}})},delWrappedLineRight:function(a){return gs(a,function(b){var de=a.charCoords(b.head,"div").top+5,le=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:de},"div");return{from:b.from(),to:le}})},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(Tt(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Tt(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(b){return Dl(a,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(b){return Al(a,b.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(b){return gu(a,b.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(b){var de=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:de},"div")},Xe)},goLineLeft:function(a){return a.extendSelectionsBy(function(b){var de=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:0,top:de},"div")},Xe)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(b){var de=a.cursorCoords(b.head,"div").top+5,le=a.coordsChar({left:0,top:de},"div");return le.ch<a.getLine(le.line).search(/\S/)?Al(a,b.head):le},Xe)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var b=[],de=a.listSelections(),le=a.options.tabSize,Ce=0;Ce<de.length;Ce++){var He=de[Ce].from(),it=_e(a.getLine(He.line),He.ch,le);b.push(ft(le-it%le))}a.replaceSelections(b)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return ma(a,function(){for(var b=a.listSelections(),de=[],le=0;le<b.length;le++)if(b[le].empty()){var Ce=b[le].head,He=ln(a.doc,Ce.line).text;if(He){if(Ce.ch==He.length&&(Ce=new Tt(Ce.line,Ce.ch-1)),Ce.ch>0)Ce=new Tt(Ce.line,Ce.ch+1),a.replaceRange(He.charAt(Ce.ch-1)+He.charAt(Ce.ch-2),Tt(Ce.line,Ce.ch-2),Ce,"+transpose");else if(Ce.line>a.doc.first){var it=ln(a.doc,Ce.line-1).text;it&&(Ce=new Tt(Ce.line,1),a.replaceRange(He.charAt(0)+a.doc.lineSeparator()+it.charAt(it.length-1),Tt(Ce.line-1,it.length-1),Ce,"+transpose"))}}de.push(new wn(Ce,Ce))}a.setSelections(de)})},newlineAndIndent:function(a){return ma(a,function(){for(var b=a.listSelections(),de=b.length-1;de>=0;de--)a.replaceRange(a.doc.lineSeparator(),b[de].anchor,b[de].head,"+input");b=a.listSelections();for(var le=0;le<b.length;le++)a.indentLine(b[le].from().line,null,!0);Es(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Dl(a,b){var de=ln(a.doc,b),le=$n(de);return le!=de&&(b=Mt(le)),jl(!0,a,le,b,1)}function gu(a,b){var de=ln(a.doc,b),le=cr(de);return le!=de&&(b=Mt(le)),jl(!0,a,de,b,-1)}function Al(a,b){var de=Dl(a,b.line),le=ln(a.doc,de.line),Ce=ct(le,a.doc.direction);if(!Ce||Ce[0].level==0){var He=Math.max(de.ch,le.text.search(/\S/)),it=b.line==de.line&&b.ch<=He&&b.ch;return Tt(de.line,it?0:He,de.sticky)}return de}function Us(a,b,de){if(typeof b=="string"&&(b=ss[b],!b))return!1;a.display.input.ensurePolled();var le=a.display.shift,Ce=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),de&&(a.display.shift=!1),Ce=b(a)!=et}finally{a.display.shift=le,a.state.suppressEdits=!1}return Ce}function yu(a,b,de){for(var le=0;le<a.state.keyMaps.length;le++){var Ce=Ps(b,a.state.keyMaps[le],de,a);if(Ce)return Ce}return a.options.extraKeys&&Ps(b,a.options.extraKeys,de,a)||Ps(b,a.options.keyMap,de,a)}var bu=new Ue;function Ks(a,b,de,le){var Ce=a.state.keySeq;if(Ce){if(Il(b))return"handled";if(/\'$/.test(b)?a.state.keySeq=null:bu.set(50,function(){a.state.keySeq==Ce&&(a.state.keySeq=null,a.display.input.reset())}),kl(a,Ce+" "+b,de,le))return!0}return kl(a,b,de,le)}function kl(a,b,de,le){var Ce=yu(a,b,le);return Ce=="multi"&&(a.state.keySeq=b),Ce=="handled"&&Ai(a,"keyHandled",a,b,de),(Ce=="handled"||Ce=="multi")&&(Pt(de),wl(a)),!!Ce}function Gs(a,b){var de=vs(b,!0);return de?b.shiftKey&&!a.state.keySeq?Ks(a,"Shift-"+de,b,function(le){return Us(a,le,!0)})||Ks(a,de,b,function(le){if(typeof le=="string"?/^go[A-Z]/.test(le):le.motion)return Us(a,le)}):Ks(a,de,b,function(le){return Us(a,le)}):!1}function Nl(a,b,de){return Ks(a,"'"+de+"'",b,function(le){return Us(a,le,!0)})}var Vs=null;function Rl(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&(b.curOp.focus=Ne(),!Et(b,a))){be&&z<11&&a.keyCode==27&&(a.returnValue=!1);var de=a.keyCode;b.display.shift=de==16||a.shiftKey;var le=Gs(b,a);ee&&(Vs=le?de:null,!le&&de==88&&!pn&&(pe?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),te&&!pe&&!le&&de==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),de==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&ql(b)}}function ql(a){var b=a.display.lineDiv;me(b,"CodeMirror-crosshair");function de(le){(le.keyCode==18||!le.altKey)&&(Be(b,"CodeMirror-crosshair"),Dt(document,"keyup",de),Dt(document,"mouseover",de))}At(document,"keyup",de),At(document,"mouseover",de)}function Ml(a){a.keyCode==16&&(this.doc.sel.shift=!1),Et(this,a)}function Bl(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(Yo(b.display,a)||Et(b,a)||a.ctrlKey&&!a.altKey||pe&&a.metaKey)){var de=a.keyCode,le=a.charCode;if(ee&&de==Vs){Vs=null,Pt(a);return}if(!(ee&&(!a.which||a.which<10)&&Gs(b,a))){var Ce=String.fromCharCode(le==null?de:le);Ce!="\b"&&(Nl(b,a,Ce)||b.display.input.onKeyPress(a))}}}var xu=400,dl=function(a,b,de){this.time=a,this.pos=b,this.button=de};dl.prototype.compare=function(a,b,de){return this.time+xu>a&&_t(b,this.pos)==0&&de==this.button};var ys,js;function Ll(a,b){var de=+new Date;return js&&js.compare(de,a,b)?(ys=js=null,"triple"):ys&&ys.compare(de,a,b)?(js=new dl(de,a,b),ys=null,"double"):(ys=new dl(de,a,b),js=null,"single")}function _l(a){var b=this,de=b.display;if(!(Et(b,a)||de.activeTouch&&de.input.supportsTouch())){if(de.input.ensurePolled(),de.shift=a.shiftKey,Yo(de,a)){E||(de.scroller.draggable=!1,setTimeout(function(){return de.scroller.draggable=!0},100));return}if(!Qa(b,a)){var le=Ja(b,a),Ce=zt(a),He=le?Ll(le,Ce):"single";window.focus(),Ce==1&&b.state.selectingText&&b.state.selectingText(a),!(le&&wu(b,Ce,le,He,a))&&(Ce==1?le?Gi(b,le,He,a):Ct(a)==de.scroller&&Pt(a):Ce==2?(le&&Di(b.doc,le),setTimeout(function(){return de.input.focus()},20)):Ce==3&&(ke?b.display.input.onContextMenu(a):Wl(b)))}}}function wu(a,b,de,le,Ce){var He="Click";return le=="double"?He="Double"+He:le=="triple"&&(He="Triple"+He),He=(b==1?"Left":b==2?"Middle":"Right")+He,Ks(a,Ws(He,Ce),Ce,function(it){if(typeof it=="string"&&(it=ss[it]),!it)return!1;var dt=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),dt=it(a,de)!=et}finally{a.state.suppressEdits=!1}return dt})}function Hi(a,b,de){var le=a.getOption("configureMouse"),Ce=le?le(a,b,de):{};if(Ce.unit==null){var He=he?de.shiftKey&&de.metaKey:de.altKey;Ce.unit=He?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(Ce.extend==null||a.doc.extend)&&(Ce.extend=a.doc.extend||de.shiftKey),Ce.addNew==null&&(Ce.addNew=pe?de.metaKey:de.ctrlKey),Ce.moveOnDrag==null&&(Ce.moveOnDrag=!(pe?de.altKey:de.ctrlKey)),Ce}function Gi(a,b,de,le){be?setTimeout(We(ou,a),0):a.curOp.focus=Ne();var Ce=Hi(a,de,le),He=a.doc.sel,it;a.options.dragDrop&&en&&!a.isReadOnly()&&de=="single"&&(it=He.contains(b))>-1&&(_t((it=He.ranges[it]).from(),b)<0||b.xRel>0)&&(_t(it.to(),b)>0||b.xRel<0)?ta(a,le,b,Ce):na(a,le,b,Ce)}function ta(a,b,de,le){var Ce=a.display,He=!1,it=Jo(a,function(wt){E&&(Ce.scroller.draggable=!1),a.state.draggingText=!1,Dt(Ce.wrapper.ownerDocument,"mouseup",it),Dt(Ce.wrapper.ownerDocument,"mousemove",dt),Dt(Ce.scroller,"dragstart",gt),Dt(Ce.scroller,"drop",it),He||(Pt(wt),le.addNew||Di(a.doc,de,null,null,le.extend),E&&!ce||be&&z==9?setTimeout(function(){Ce.wrapper.ownerDocument.body.focus({preventScroll:!0}),Ce.input.focus()},20):Ce.input.focus())}),dt=function(wt){He=He||Math.abs(b.clientX-wt.clientX)+Math.abs(b.clientY-wt.clientY)>=10},gt=function(){return He=!0};E&&(Ce.scroller.draggable=!0),a.state.draggingText=it,it.copy=!le.moveOnDrag,Ce.scroller.dragDrop&&Ce.scroller.dragDrop(),At(Ce.wrapper.ownerDocument,"mouseup",it),At(Ce.wrapper.ownerDocument,"mousemove",dt),At(Ce.scroller,"dragstart",gt),At(Ce.scroller,"drop",it),Wl(a),setTimeout(function(){return Ce.input.focus()},20)}function Ta(a,b,de){if(de=="char")return new wn(b,b);if(de=="word")return a.findWordAt(b);if(de=="line")return new wn(Tt(b.line,0),$t(a.doc,Tt(b.line+1,0)));var le=de(a,b);return new wn(le.from,le.to)}function na(a,b,de,le){var Ce=a.display,He=a.doc;Pt(b);var it,dt,gt=He.sel,wt=gt.ranges;if(le.addNew&&!le.extend?(dt=He.sel.contains(de),dt>-1?it=wt[dt]:it=new wn(de,de)):(it=He.sel.primary(),dt=He.sel.primIndex),le.unit=="rectangle")le.addNew||(it=new wn(de,de)),de=Ja(a,b,!0,!0),dt=-1;else{var Qt=Ta(a,de,le.unit);le.extend?it=ji(it,Qt.anchor,Qt.head,le.extend):it=Qt}le.addNew?dt==-1?(dt=wt.length,Br(He,ar(a,wt.concat([it]),dt),{scroll:!1,origin:"*mouse"})):wt.length>1&&wt[dt].empty()&&le.unit=="char"&&!le.extend?(Br(He,ar(a,wt.slice(0,dt).concat(wt.slice(dt+1)),0),{scroll:!1,origin:"*mouse"}),gt=He.sel):No(He,dt,it,Ye):(dt=0,Br(He,new Sn([it],0),Ye),gt=He.sel);var an=de;function En(Rr){if(_t(an,Rr)!=0)if(an=Rr,le.unit=="rectangle"){for(var Yr=[],hi=a.options.tabSize,ui=_e(ln(He,de.line).text,de.ch,hi),Li=_e(ln(He,Rr.line).text,Rr.ch,hi),go=Math.min(ui,Li),ra=Math.max(ui,Li),Mo=Math.min(de.line,Rr.line),Ra=Math.min(a.lastLine(),Math.max(de.line,Rr.line));Mo<=Ra;Mo++){var Oa=ln(He,Mo).text,Vo=ot(Oa,go,hi);go==ra?Yr.push(new wn(Tt(Mo,Vo),Tt(Mo,Vo))):Oa.length>Vo&&Yr.push(new wn(Tt(Mo,Vo),Tt(Mo,ot(Oa,ra,hi))))}Yr.length||Yr.push(new wn(de,de)),Br(He,ar(a,gt.ranges.slice(0,dt).concat(Yr),dt),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Rr)}else{var Ia=it,fa=Ta(a,Rr,le.unit),qo=Ia.anchor,Xo;_t(fa.anchor,qo)>0?(Xo=fa.head,qo=qt(Ia.from(),fa.anchor)):(Xo=fa.anchor,qo=Lt(Ia.to(),fa.head));var _o=gt.ranges.slice(0);_o[dt]=Ds(a,new wn($t(He,qo),Xo)),Br(He,ar(a,_o,dt),Ye)}}var bn=Ce.wrapper.getBoundingClientRect(),Yn=0;function ir(Rr){var Yr=++Yn,hi=Ja(a,Rr,!0,le.unit=="rectangle");if(hi)if(_t(hi,an)!=0){a.curOp.focus=Ne(),En(hi);var ui=os(Ce,He);(hi.line>=ui.to||hi.line<ui.from)&&setTimeout(Jo(a,function(){Yn==Yr&&ir(Rr)}),150)}else{var Li=Rr.clientY<bn.top?-20:Rr.clientY>bn.bottom?20:0;Li&&setTimeout(Jo(a,function(){Yn==Yr&&(Ce.scroller.scrollTop+=Li,ir(Rr))}),50)}}function gr(Rr){a.state.selectingText=!1,Yn=1/0,Rr&&(Pt(Rr),Ce.input.focus()),Dt(Ce.wrapper.ownerDocument,"mousemove",Nr),Dt(Ce.wrapper.ownerDocument,"mouseup",Zr),He.history.lastSelOrigin=null}var Nr=Jo(a,function(Rr){Rr.buttons===0||!zt(Rr)?gr(Rr):ir(Rr)}),Zr=Jo(a,gr);a.state.selectingText=Zr,At(Ce.wrapper.ownerDocument,"mousemove",Nr),At(Ce.wrapper.ownerDocument,"mouseup",Zr)}function Ds(a,b){var de=b.anchor,le=b.head,Ce=ln(a.doc,de.line);if(_t(de,le)==0&&de.sticky==le.sticky)return b;var He=ct(Ce);if(!He)return b;var it=lt(He,de.ch,de.sticky),dt=He[it];if(dt.from!=de.ch&&dt.to!=de.ch)return b;var gt=it+(dt.from==de.ch==(dt.level!=1)?0:1);if(gt==0||gt==He.length)return b;var wt;if(le.line!=de.line)wt=(le.line-de.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Qt=lt(He,le.ch,le.sticky),an=Qt-it||(le.ch-de.ch)*(dt.level==1?-1:1);Qt==gt-1||Qt==gt?wt=an<0:wt=an>0}var En=He[gt+(wt?-1:0)],bn=wt==(En.level==1),Yn=bn?En.from:En.to,ir=bn?"after":"before";return de.ch==Yn&&de.sticky==ir?b:new wn(new Tt(de.line,Yn,ir),le)}function ls(a,b,de,le){var Ce,He;if(b.touches)Ce=b.touches[0].clientX,He=b.touches[0].clientY;else try{Ce=b.clientX,He=b.clientY}catch(En){return!1}if(Ce>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;le&&Pt(b);var it=a.display,dt=it.lineDiv.getBoundingClientRect();if(He>dt.bottom||!Nt(a,de))return nn(b);He-=dt.top-it.viewOffset;for(var gt=0;gt<a.display.gutterSpecs.length;++gt){var wt=it.gutters.childNodes[gt];if(wt&&wt.getBoundingClientRect().right>=Ce){var Qt=Gt(a.doc,He),an=a.display.gutterSpecs[gt];return jt(a,de,a,Qt,an.className,b),nn(b)}}}function Qa(a,b){return ls(a,b,"gutterClick",!0)}function As(a,b){Yo(a.display,b)||Fl(a,b)||Et(a,b,"contextmenu")||ke||a.display.input.onContextMenu(b)}function Fl(a,b){return Nt(a,"gutterContextMenu")?ls(a,b,"gutterContextMenu",!1):!1}function Nu(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fs(a)}var fl={toString:function(){return"CodeMirror.Init"}},Ru={},eu={};function Zu(a){var b=a.optionHandlers;function de(le,Ce,He,it){a.defaults[le]=Ce,He&&(b[le]=it?function(dt,gt,wt){wt!=fl&&He(dt,gt,wt)}:He)}a.defineOption=de,a.Init=fl,de("value","",function(le,Ce){return le.setValue(Ce)},!0),de("mode",null,function(le,Ce){le.doc.modeOption=Ce,_r(le)},!0),de("indentUnit",2,_r,!0),de("indentWithTabs",!1),de("smartIndent",!0),de("tabSize",4,function(le){Mr(le),fs(le),la(le)},!0),de("lineSeparator",null,function(le,Ce){if(le.doc.lineSep=Ce,!!Ce){var He=[],it=le.doc.first;le.doc.iter(function(gt){for(var wt=0;;){var Qt=gt.text.indexOf(Ce,wt);if(Qt==-1)break;wt=Qt+Ce.length,He.push(Tt(it,Qt))}it++});for(var dt=He.length-1;dt>=0;dt--)$i(le.doc,Ce,He[dt],Tt(He[dt].line,He[dt].ch+Ce.length))}}),de("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(le,Ce,He){le.state.specialChars=new RegExp(Ce.source+(Ce.test(" ")?"":"| "),"g"),He!=fl&&le.refresh()}),de("specialCharPlaceholder",xo,function(le){return le.refresh()},!0),de("electricChars",!0),de("inputStyle",ue?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),de("spellcheck",!1,function(le,Ce){return le.getInputField().spellcheck=Ce},!0),de("autocorrect",!1,function(le,Ce){return le.getInputField().autocorrect=Ce},!0),de("autocapitalize",!1,function(le,Ce){return le.getInputField().autocapitalize=Ce},!0),de("rtlMoveVisually",!ye),de("wholeLineUpdateBefore",!0),de("theme","default",function(le){Nu(le),dn(le)},!0),de("keyMap","default",function(le,Ce,He){var it=ul(Ce),dt=He!=fl&&ul(He);dt&&dt.detach&&dt.detach(le,it),it.attach&&it.attach(le,dt||null)}),de("extraKeys",null),de("configureMouse",null),de("lineWrapping",!1,Uu,!0),de("gutters",[],function(le,Ce){le.display.gutterSpecs=Jt(Ce,le.options.lineNumbers),dn(le)},!0),de("fixedGutter",!0,function(le,Ce){le.display.gutters.style.left=Ce?yl(le.display)+"px":"0",le.refresh()},!0),de("coverGutterNextToScrollbar",!1,function(le){return zs(le)},!0),de("scrollbarStyle","native",function(le){Yl(le),zs(le),le.display.scrollbars.setScrollTop(le.doc.scrollTop),le.display.scrollbars.setScrollLeft(le.doc.scrollLeft)},!0),de("lineNumbers",!1,function(le,Ce){le.display.gutterSpecs=Jt(le.options.gutters,Ce),dn(le)},!0),de("firstLineNumber",1,dn,!0),de("lineNumberFormatter",function(le){return le},dn,!0),de("showCursorWhenSelecting",!1,hs,!0),de("resetSelectionOnContextMenu",!0),de("lineWiseCopyCut",!0),de("pasteLinesPerSelection",!0),de("selectionsMayTouch",!1),de("readOnly",!1,function(le,Ce){Ce=="nocursor"&&(Ss(le),le.display.input.blur()),le.display.input.readOnlyChanged(Ce)}),de("screenReaderLabel",null,function(le,Ce){Ce=Ce===""?null:Ce,le.display.input.screenReaderLabelChanged(Ce)}),de("disableInput",!1,function(le,Ce){Ce||le.display.input.reset()},!0),de("dragDrop",!0,Wu),de("allowDropFileTypes",null),de("cursorBlinkRate",530),de("cursorScrollMargin",0),de("cursorHeight",1,hs,!0),de("singleCursorHeightPerLine",!0,hs,!0),de("workTime",100),de("workDelay",100),de("flattenSpans",!0,Mr,!0),de("addModeClass",!1,Mr,!0),de("pollInterval",100),de("undoDepth",200,function(le,Ce){return le.doc.history.undoDepth=Ce}),de("historyEventDelay",1250),de("viewportMargin",10,function(le){return le.refresh()},!0),de("maxHighlightLength",1e4,Mr,!0),de("moveInputWithCursor",!0,function(le,Ce){Ce||le.display.input.resetPosition()}),de("tabindex",null,function(le,Ce){return le.display.input.getField().tabIndex=Ce||""}),de("autofocus",null),de("direction","ltr",function(le,Ce){return le.doc.setDirection(Ce)},!0),de("phrases",null)}function Wu(a,b,de){var le=de&&de!=fl;if(!b!=!le){var Ce=a.display.dragFunctions,He=b?At:Dt;He(a.display.scroller,"dragstart",Ce.start),He(a.display.scroller,"dragenter",Ce.enter),He(a.display.scroller,"dragover",Ce.over),He(a.display.scroller,"dragleave",Ce.leave),He(a.display.scroller,"drop",Ce.drop)}}function Uu(a){a.options.lineWrapping?(me(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Be(a.display.wrapper,"CodeMirror-wrap"),mi(a)),ws(a),la(a),fs(a),setTimeout(function(){return zs(a)},100)}function Io(a,b){var de=this;if(!(this instanceof Io))return new Io(a,b);this.options=b=b?nt(b):{},nt(Ru,b,!1);var le=b.value;typeof le=="string"?le=new ao(le,b.mode,null,b.lineSeparator,b.direction):b.mode&&(le.modeOption=b.mode),this.doc=le;var Ce=new Io.inputStyles[b.inputStyle](this),He=this.display=new sn(a,le,Ce,b);He.wrapper.CodeMirror=this,Nu(this),b.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Yl(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 Ue,keySeq:null,specialChars:null},b.autofocus&&!ue&&He.input.focus(),be&&z<11&&setTimeout(function(){return de.display.input.reset(!0)},20),Ku(this),ll(),ms(this),this.curOp.forceUpdate=!0,ai(this,le),b.autofocus&&!ue||this.hasFocus()?setTimeout(function(){de.hasFocus()&&!de.state.focused&&Ul(de)},20):Ss(this);for(var it in eu)eu.hasOwnProperty(it)&&eu[it](this,b[it],fl);Bt(this),b.finishInit&&b.finishInit(this);for(var dt=0;dt<Su.length;++dt)Su[dt](this);Is(this),E&&b.lineWrapping&&getComputedStyle(He.lineDiv).textRendering=="optimizelegibility"&&(He.lineDiv.style.textRendering="auto")}Io.defaults=Ru,Io.optionHandlers=eu;function Ku(a){var b=a.display;At(b.scroller,"mousedown",Jo(a,_l)),be&&z<11?At(b.scroller,"dblclick",Jo(a,function(gt){if(!Et(a,gt)){var wt=Ja(a,gt);if(!(!wt||Qa(a,gt)||Yo(a.display,gt))){Pt(gt);var Qt=a.findWordAt(wt);Di(a.doc,Qt.anchor,Qt.head)}}})):At(b.scroller,"dblclick",function(gt){return Et(a,gt)||Pt(gt)}),At(b.scroller,"contextmenu",function(gt){return As(a,gt)}),At(b.input.getField(),"contextmenu",function(gt){b.scroller.contains(gt.target)||As(a,gt)});var de,le={end:0};function Ce(){b.activeTouch&&(de=setTimeout(function(){return b.activeTouch=null},1e3),le=b.activeTouch,le.end=+new Date)}function He(gt){if(gt.touches.length!=1)return!1;var wt=gt.touches[0];return wt.radiusX<=1&&wt.radiusY<=1}function it(gt,wt){if(wt.left==null)return!0;var Qt=wt.left-gt.left,an=wt.top-gt.top;return Qt*Qt+an*an>20*20}At(b.scroller,"touchstart",function(gt){if(!Et(a,gt)&&!He(gt)&&!Qa(a,gt)){b.input.ensurePolled(),clearTimeout(de);var wt=+new Date;b.activeTouch={start:wt,moved:!1,prev:wt-le.end<=300?le:null},gt.touches.length==1&&(b.activeTouch.left=gt.touches[0].pageX,b.activeTouch.top=gt.touches[0].pageY)}}),At(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),At(b.scroller,"touchend",function(gt){var wt=b.activeTouch;if(wt&&!Yo(b,gt)&&wt.left!=null&&!wt.moved&&new Date-wt.start<300){var Qt=a.coordsChar(b.activeTouch,"page"),an;!wt.prev||it(wt,wt.prev)?an=new wn(Qt,Qt):!wt.prev.prev||it(wt,wt.prev.prev)?an=a.findWordAt(Qt):an=new wn(Tt(Qt.line,0),$t(a.doc,Tt(Qt.line+1,0))),a.setSelection(an.anchor,an.head),a.focus(),Pt(gt)}Ce()}),At(b.scroller,"touchcancel",Ce),At(b.scroller,"scroll",function(){b.scroller.clientHeight&&(rl(a,b.scroller.scrollTop),Ts(a,b.scroller.scrollLeft,!0),jt(a,"scroll",a))}),At(b.scroller,"mousewheel",function(gt){return jn(a,gt)}),At(b.scroller,"DOMMouseScroll",function(gt){return jn(a,gt)}),At(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(gt){Et(a,gt)||xt(gt)},over:function(gt){Et(a,gt)||(Xa(a,gt),xt(gt))},start:function(gt){return Va(a,gt)},drop:Jo(a,as),leave:function(gt){Et(a,gt)||ol(a)}};var dt=b.input.getField();At(dt,"keyup",function(gt){return Ml.call(a,gt)}),At(dt,"keydown",Jo(a,Rl)),At(dt,"keypress",Jo(a,Bl)),At(dt,"focus",function(gt){return Ul(a,gt)}),At(dt,"blur",function(gt){return Ss(a,gt)})}var Su=[];Io.defineInitHook=function(a){return Su.push(a)};function $l(a,b,de,le){var Ce=a.doc,He;de==null&&(de="add"),de=="smart"&&(Ce.mode.indent?He=lr(a,b).state:de="prev");var it=a.options.tabSize,dt=ln(Ce,b),gt=_e(dt.text,null,it);dt.stateAfter&&(dt.stateAfter=null);var wt=dt.text.match(/^\s*/)[0],Qt;if(!le&&!/\S/.test(dt.text))Qt=0,de="not";else if(de=="smart"&&(Qt=Ce.mode.indent(He,dt.text.slice(wt.length),dt.text),Qt==et||Qt>150)){if(!le)return;de="prev"}de=="prev"?b>Ce.first?Qt=_e(ln(Ce,b-1).text,null,it):Qt=0:de=="add"?Qt=gt+a.options.indentUnit:de=="subtract"?Qt=gt-a.options.indentUnit:typeof de=="number"&&(Qt=gt+de),Qt=Math.max(0,Qt);var an="",En=0;if(a.options.indentWithTabs)for(var bn=Math.floor(Qt/it);bn;--bn)En+=it,an+=" ";if(En<Qt&&(an+=ft(Qt-En)),an!=wt)return $i(Ce,an,Tt(b,0),Tt(b,wt.length),"+input"),dt.stateAfter=null,!0;for(var Yn=0;Yn<Ce.sel.ranges.length;Yn++){var ir=Ce.sel.ranges[Yn];if(ir.head.line==b&&ir.head.ch<wt.length){var gr=Tt(b,wt.length);No(Ce,Yn,new wn(gr,gr));break}}}var qa=null;function tu(a){qa=a}function Cu(a,b,de,le,Ce){var He=a.doc;a.display.shift=!1,le||(le=He.sel);var it=+new Date-200,dt=Ce=="paste"||a.state.pasteIncoming>it,gt=yn(b),wt=null;if(dt&&le.ranges.length>1)if(qa&&qa.text.join(`
`)==b){if(le.ranges.length%qa.text.length==0){wt=[];for(var Qt=0;Qt<qa.text.length;Qt++)wt.push(He.splitLines(qa.text[Qt]))}}else gt.length==le.ranges.length&&a.options.pasteLinesPerSelection&&(wt=qe(gt,function(Nr){return[Nr]}));for(var an=a.curOp.updateInput,En=le.ranges.length-1;En>=0;En--){var bn=le.ranges[En],Yn=bn.from(),ir=bn.to();bn.empty()&&(de&&de>0?Yn=Tt(Yn.line,Yn.ch-de):a.state.overwrite&&!dt?ir=Tt(ir.line,Math.min(ln(He,ir.line).text.length,ir.ch+at(gt).length)):dt&&qa&&qa.lineWise&&qa.text.join(`
`)==gt.join(`
`)&&(Yn=ir=Tt(Yn.line,0)));var gr={from:Yn,to:ir,text:wt?wt[En%wt.length]:gt,origin:Ce||(dt?"paste":a.state.cutIncoming>it?"cut":"+input")};eo(a.doc,gr),Ai(a,"inputRead",a,gr)}b&&!dt&&Bu(a,b),Es(a),a.curOp.updateInput<2&&(a.curOp.updateInput=an),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Mu(a,b){var de=a.clipboardData&&a.clipboardData.getData("Text");if(de)return a.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&ma(b,function(){return Cu(b,de,0,null,"paste")}),!0}function Bu(a,b){if(!(!a.options.electricChars||!a.options.smartIndent))for(var de=a.doc.sel,le=de.ranges.length-1;le>=0;le--){var Ce=de.ranges[le];if(!(Ce.head.ch>100||le&&de.ranges[le-1].head.line==Ce.head.line)){var He=a.getModeAt(Ce.head),it=!1;if(He.electricChars){for(var dt=0;dt<He.electricChars.length;dt++)if(b.indexOf(He.electricChars.charAt(dt))>-1){it=$l(a,Ce.head.line,"smart");break}}else He.electricInput&&He.electricInput.test(ln(a.doc,Ce.head.line).text.slice(0,Ce.head.ch))&&(it=$l(a,Ce.head.line,"smart"));it&&Ai(a,"electricInput",a,Ce.head.line)}}}function Lu(a){for(var b=[],de=[],le=0;le<a.doc.sel.ranges.length;le++){var Ce=a.doc.sel.ranges[le].head.line,He={anchor:Tt(Ce,0),head:Tt(Ce+1,0)};de.push(He),b.push(a.getRange(He.anchor,He.head))}return{text:b,ranges:de}}function _u(a,b,de,le){a.setAttribute("autocorrect",de?"":"off"),a.setAttribute("autocapitalize",le?"":"off"),a.setAttribute("spellcheck",!!b)}function Fu(){var a=Ee("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=Ee("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return E?a.style.width="1000px":a.setAttribute("wrap","off"),re&&(a.style.border="1px solid black"),_u(a),b}function Gu(a){var b=a.optionHandlers,de=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(le,Ce){var He=this.options,it=He[le];He[le]==Ce&&le!="mode"||(He[le]=Ce,b.hasOwnProperty(le)&&Jo(this,b[le])(this,Ce,it),jt(this,"optionChange",this,le))},getOption:function(le){return this.options[le]},getDoc:function(){return this.doc},addKeyMap:function(le,Ce){this.state.keyMaps[Ce?"push":"unshift"](ul(le))},removeKeyMap:function(le){for(var Ce=this.state.keyMaps,He=0;He<Ce.length;++He)if(Ce[He]==le||Ce[He].name==le)return Ce.splice(He,1),!0},addOverlay:ua(function(le,Ce){var He=le.token?le:a.getMode(this.options,le);if(He.startState)throw new Error("Overlays may not be stateful.");Fe(this.state.overlays,{mode:He,modeSpec:le,opaque:Ce&&Ce.opaque,priority:Ce&&Ce.priority||0},function(it){return it.priority}),this.state.modeGen++,la(this)}),removeOverlay:ua(function(le){for(var Ce=this.state.overlays,He=0;He<Ce.length;++He){var it=Ce[He].modeSpec;if(it==le||typeof le=="string"&&it.name==le){Ce.splice(He,1),this.state.modeGen++,la(this);return}}}),indentLine:ua(function(le,Ce,He){typeof Ce!="string"&&typeof Ce!="number"&&(Ce==null?Ce=this.options.smartIndent?"smart":"prev":Ce=Ce?"add":"subtract"),St(this.doc,le)&&$l(this,le,Ce,He)}),indentSelection:ua(function(le){for(var Ce=this.doc.sel.ranges,He=-1,it=0;it<Ce.length;it++){var dt=Ce[it];if(dt.empty())dt.head.line>He&&($l(this,dt.head.line,le,!0),He=dt.head.line,it==this.doc.sel.primIndex&&Es(this));else{var gt=dt.from(),wt=dt.to(),Qt=Math.max(He,gt.line);He=Math.min(this.lastLine(),wt.line-(wt.ch?0:1))+1;for(var an=Qt;an<He;++an)$l(this,an,le);var En=this.doc.sel.ranges;gt.ch==0&&Ce.length==En.length&&En[it].from().ch>0&&No(this.doc,it,new wn(gt,En[it].to()),Ke)}}}),getTokenAt:function(le,Ce){return pr(this,le,Ce)},getLineTokens:function(le,Ce){return pr(this,Tt(le),Ce,!0)},getTokenTypeAt:function(le){le=$t(this.doc,le);var Ce=rr(this,ln(this.doc,le.line)),He=0,it=(Ce.length-1)/2,dt=le.ch,gt;if(dt==0)gt=Ce[2];else for(;;){var wt=He+it>>1;if((wt?Ce[wt*2-1]:0)>=dt)it=wt;else if(Ce[wt*2+1]<dt)He=wt+1;else{gt=Ce[wt*2+2];break}}var Qt=gt?gt.indexOf("overlay "):-1;return Qt<0?gt:Qt==0?null:gt.slice(0,Qt-1)},getModeAt:function(le){var Ce=this.doc.mode;return Ce.innerMode?a.innerMode(Ce,this.getTokenAt(le).state).mode:Ce},getHelper:function(le,Ce){return this.getHelpers(le,Ce)[0]},getHelpers:function(le,Ce){var He=[];if(!de.hasOwnProperty(Ce))return He;var it=de[Ce],dt=this.getModeAt(le);if(typeof dt[Ce]=="string")it[dt[Ce]]&&He.push(it[dt[Ce]]);else if(dt[Ce])for(var gt=0;gt<dt[Ce].length;gt++){var wt=it[dt[Ce][gt]];wt&&He.push(wt)}else dt.helperType&&it[dt.helperType]?He.push(it[dt.helperType]):it[dt.name]&&He.push(it[dt.name]);for(var Qt=0;Qt<it._global.length;Qt++){var an=it._global[Qt];an.pred(dt,this)&&tt(He,an.val)==-1&&He.push(an.val)}return He},getStateAfter:function(le,Ce){var He=this.doc;return le=Ft(He,le==null?He.first+He.size-1:le),lr(this,le+1,Ce).state},cursorCoords:function(le,Ce){var He,it=this.doc.sel.primary();return le==null?He=it.head:typeof le=="object"?He=$t(this.doc,le):He=le?it.from():it.to(),aa(this,He,Ce||"page")},charCoords:function(le,Ce){return ns(this,$t(this.doc,le),Ce||"page")},coordsChar:function(le,Ce){return le=tl(this,le,Ce||"page"),Wo(this,le.left,le.top)},lineAtHeight:function(le,Ce){return le=tl(this,{top:le,left:0},Ce||"page").top,Gt(this.doc,le+this.display.viewOffset)},heightAtLine:function(le,Ce,He){var it=!1,dt;if(typeof le=="number"){var gt=this.doc.first+this.doc.size-1;le<this.doc.first?le=this.doc.first:le>gt&&(le=gt,it=!0),dt=ln(this.doc,le)}else dt=le;return Bs(this,dt,{top:0,left:0},Ce||"page",He||it).top+(it?this.doc.height-ti(dt):0)},defaultTextHeight:function(){return wa(this.display)},defaultCharWidth:function(){return La(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(le,Ce,He,it,dt){var gt=this.display;le=aa(this,$t(this.doc,le));var wt=le.bottom,Qt=le.left;if(Ce.style.position="absolute",Ce.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Ce),gt.sizer.appendChild(Ce),it=="over")wt=le.top;else if(it=="above"||it=="near"){var an=Math.max(gt.wrapper.clientHeight,this.doc.height),En=Math.max(gt.sizer.clientWidth,gt.lineSpace.clientWidth);(it=="above"||le.bottom+Ce.offsetHeight>an)&&le.top>Ce.offsetHeight?wt=le.top-Ce.offsetHeight:le.bottom+Ce.offsetHeight<=an&&(wt=le.bottom),Qt+Ce.offsetWidth>En&&(Qt=En-Ce.offsetWidth)}Ce.style.top=wt+"px",Ce.style.left=Ce.style.right="",dt=="right"?(Qt=gt.sizer.clientWidth-Ce.offsetWidth,Ce.style.right="0px"):(dt=="left"?Qt=0:dt=="middle"&&(Qt=(gt.sizer.clientWidth-Ce.offsetWidth)/2),Ce.style.left=Qt+"px"),He&&Pu(this,{left:Qt,top:wt,right:Qt+Ce.offsetWidth,bottom:wt+Ce.offsetHeight})},triggerOnKeyDown:ua(Rl),triggerOnKeyPress:ua(Bl),triggerOnKeyUp:Ml,triggerOnMouseDown:ua(_l),execCommand:function(le){if(ss.hasOwnProperty(le))return ss[le].call(null,this)},triggerElectric:ua(function(le){Bu(this,le)}),findPosH:function(le,Ce,He,it){var dt=1;Ce<0&&(dt=-1,Ce=-Ce);for(var gt=$t(this.doc,le),wt=0;wt<Ce&&(gt=Eu(this.doc,gt,dt,He,it),!gt.hitSide);++wt);return gt},moveH:ua(function(le,Ce){var He=this;this.extendSelectionsBy(function(it){return He.display.shift||He.doc.extend||it.empty()?Eu(He.doc,it.head,le,Ce,He.options.rtlMoveVisually):le<0?it.from():it.to()},Xe)}),deleteH:ua(function(le,Ce){var He=this.doc.sel,it=this.doc;He.somethingSelected()?it.replaceSelection("",null,"+delete"):gs(this,function(dt){var gt=Eu(it,dt.head,le,Ce,!1);return le<0?{from:gt,to:dt.head}:{from:dt.head,to:gt}})}),findPosV:function(le,Ce,He,it){var dt=1,gt=it;Ce<0&&(dt=-1,Ce=-Ce);for(var wt=$t(this.doc,le),Qt=0;Qt<Ce;++Qt){var an=aa(this,wt,"div");if(gt==null?gt=an.left:an.left=gt,wt=$u(this,an,dt,He),wt.hitSide)break}return wt},moveV:ua(function(le,Ce){var He=this,it=this.doc,dt=[],gt=!this.display.shift&&!it.extend&&it.sel.somethingSelected();if(it.extendSelectionsBy(function(Qt){if(gt)return le<0?Qt.from():Qt.to();var an=aa(He,Qt.head,"div");Qt.goalColumn!=null&&(an.left=Qt.goalColumn),dt.push(an.left);var En=$u(He,an,le,Ce);return Ce=="page"&&Qt==it.sel.primary()&&Kl(He,ns(He,En,"div").top-an.top),En},Xe),dt.length)for(var wt=0;wt<it.sel.ranges.length;wt++)it.sel.ranges[wt].goalColumn=dt[wt]}),findWordAt:function(le){var Ce=this.doc,He=ln(Ce,le.line).text,it=le.ch,dt=le.ch;if(He){var gt=this.getHelper(le,"wordChars");(le.sticky=="before"||dt==He.length)&&it?--it:++dt;for(var wt=He.charAt(it),Qt=ze(wt,gt)?function(an){return ze(an,gt)}:/\s/.test(wt)?function(an){return/\s/.test(an)}:function(an){return!/\s/.test(an)&&!ze(an)};it>0&&Qt(He.charAt(it-1));)--it;for(;dt<He.length&&Qt(He.charAt(dt));)++dt}return new wn(Tt(le.line,it),Tt(le.line,dt))},toggleOverwrite:function(le){le!=null&&le==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?me(this.display.cursorDiv,"CodeMirror-overwrite"):Be(this.display.cursorDiv,"CodeMirror-overwrite"),jt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ne()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ua(function(le,Ce){nl(this,le,Ce)}),getScrollInfo:function(){var le=this.display.scroller;return{left:le.scrollLeft,top:le.scrollTop,height:le.scrollHeight-ha(this)-this.display.barHeight,width:le.scrollWidth-ha(this)-this.display.barWidth,clientHeight:Ya(this),clientWidth:$a(this)}},scrollIntoView:ua(function(le,Ce){le==null?(le={from:this.doc.sel.primary().head,to:null},Ce==null&&(Ce=this.options.cursorScrollMargin)):typeof le=="number"?le={from:Tt(le,0),to:null}:le.from==null&&(le={from:le,to:null}),le.to||(le.to=le.from),le.margin=Ce||0,le.from.line!=null?lu(this,le):Gl(this,le.from,le.to,le.margin)}),setSize:ua(function(le,Ce){var He=this,it=function(gt){return typeof gt=="number"||/^\d+$/.test(String(gt))?gt+"px":gt};le!=null&&(this.display.wrapper.style.width=it(le)),Ce!=null&&(this.display.wrapper.style.height=it(Ce)),this.options.lineWrapping&&Ha(this);var dt=this.display.viewFrom;this.doc.iter(dt,this.display.viewTo,function(gt){if(gt.widgets){for(var wt=0;wt<gt.widgets.length;wt++)if(gt.widgets[wt].noHScroll){is(He,dt,"widget");break}}++dt}),this.curOp.forceUpdate=!0,jt(this,"refresh",this)}),operation:function(le){return ma(this,le)},startOperation:function(){return ms(this)},endOperation:function(){return Is(this)},refresh:ua(function(){var le=this.display.cachedTextHeight;la(this),this.curOp.forceUpdate=!0,fs(this),nl(this,this.doc.scrollLeft,this.doc.scrollTop),ht(this.display),(le==null||Math.abs(le-wa(this.display))>.5||this.options.lineWrapping)&&ws(this),jt(this,"refresh",this)}),swapDoc:ua(function(le){var Ce=this.doc;return Ce.cm=null,this.state.selectingText&&this.state.selectingText(),ai(this,le),fs(this),this.display.input.reset(),nl(this,le.scrollLeft,le.scrollTop),this.curOp.forceScroll=!0,Ai(this,"swapDoc",this,Ce),Ce}),phrase:function(le){var Ce=this.options.phrases;return Ce&&Object.prototype.hasOwnProperty.call(Ce,le)?Ce[le]:le},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}},yt(a),a.registerHelper=function(le,Ce,He){de.hasOwnProperty(le)||(de[le]=a[le]={_global:[]}),de[le][Ce]=He},a.registerGlobalHelper=function(le,Ce,He,it){a.registerHelper(le,Ce,it),de[le]._global.push({pred:He,val:it})}}function Eu(a,b,de,le,Ce){var He=b,it=de,dt=ln(a,b.line),gt=Ce&&a.direction=="rtl"?-de:de;function wt(){var Zr=b.line+gt;return Zr<a.first||Zr>=a.first+a.size?!1:(b=new Tt(Zr,b.ch,b.sticky),dt=ln(a,Zr))}function Qt(Zr){var Rr;if(le=="codepoint"){var Yr=dt.text.charCodeAt(b.ch+(le>0?0:-1));isNaN(Yr)?Rr=null:Rr=new Tt(b.line,Math.max(0,Math.min(dt.text.length,b.ch+de*(Yr>=55296&&Yr<56320?2:1))),-de)}else Ce?Rr=Ql(a.cm,dt,b,de):Rr=cl(dt,b,de);if(Rr==null)if(!Zr&&wt())b=jl(Ce,a.cm,dt,b.line,gt);else return!1;else b=Rr;return!0}if(le=="char"||le=="codepoint")Qt();else if(le=="column")Qt(!0);else if(le=="word"||le=="group")for(var an=null,En=le=="group",bn=a.cm&&a.cm.getHelper(b,"wordChars"),Yn=!0;!(de<0&&!Qt(!Yn));Yn=!1){var ir=dt.text.charAt(b.ch)||`
`,gr=ze(ir,bn)?"w":En&&ir==`
`?"n":!En||/\s/.test(ir)?null:"p";if(En&&!Yn&&!gr&&(gr="s"),an&&an!=gr){de<0&&(de=1,Qt(),b.sticky="after");break}if(gr&&(an=gr),de>0&&!Qt(!Yn))break}var Nr=Bo(a,b,He,it,!0);return bt(He,Nr)&&(Nr.hitSide=!0),Nr}function $u(a,b,de,le){var Ce=a.doc,He=b.left,it;if(le=="page"){var dt=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),gt=Math.max(dt-.5*wa(a.display),3);it=(de>0?b.bottom:b.top)+de*gt}else le=="line"&&(it=de>0?b.bottom+3:b.top-3);for(var wt;wt=Wo(a,He,it),!!wt.outside;){if(de<0?it<=0:it>=Ce.height){wt.hitSide=!0;break}it+=de*5}return wt}var co=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ue,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};co.prototype.init=function(a){var b=this,de=this,le=de.cm,Ce=de.div=a.lineDiv;_u(Ce,le.options.spellcheck,le.options.autocorrect,le.options.autocapitalize);function He(dt){for(var gt=dt.target;gt;gt=gt.parentNode){if(gt==Ce)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(gt.className))break}return!1}At(Ce,"paste",function(dt){!He(dt)||Et(le,dt)||Mu(dt,le)||z<=11&&setTimeout(Jo(le,function(){return b.updateFromDOM()}),20)}),At(Ce,"compositionstart",function(dt){b.composing={data:dt.data,done:!1}}),At(Ce,"compositionupdate",function(dt){b.composing||(b.composing={data:dt.data,done:!1})}),At(Ce,"compositionend",function(dt){b.composing&&(dt.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),At(Ce,"touchstart",function(){return de.forceCompositionEnd()}),At(Ce,"input",function(){b.composing||b.readFromDOMSoon()});function it(dt){if(!(!He(dt)||Et(le,dt))){if(le.somethingSelected())tu({lineWise:!1,text:le.getSelections()}),dt.type=="cut"&&le.replaceSelection("",null,"cut");else if(le.options.lineWiseCopyCut){var gt=Lu(le);tu({lineWise:!0,text:gt.text}),dt.type=="cut"&&le.operation(function(){le.setSelections(gt.ranges,0,Ke),le.replaceSelection("",null,"cut")})}else return;if(dt.clipboardData){dt.clipboardData.clearData();var wt=qa.text.join(`
`);if(dt.clipboardData.setData("Text",wt),dt.clipboardData.getData("Text")==wt){dt.preventDefault();return}}var Qt=Fu(),an=Qt.firstChild;le.display.lineSpace.insertBefore(Qt,le.display.lineSpace.firstChild),an.value=qa.text.join(`
`);var En=document.activeElement;Ze(an),setTimeout(function(){le.display.lineSpace.removeChild(Qt),En.focus(),En==Ce&&de.showPrimarySelection()},50)}}At(Ce,"copy",it),At(Ce,"cut",it)},co.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},co.prototype.prepareSelection=function(){var a=iu(this.cm,!1);return a.focus=document.activeElement==this.div,a},co.prototype.showSelection=function(a,b){!a||!this.cm.display.view.length||((a.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(a))},co.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},co.prototype.showPrimarySelection=function(){var a=this.getSelection(),b=this.cm,de=b.doc.sel.primary(),le=de.from(),Ce=de.to();if(b.display.viewTo==b.display.viewFrom||le.line>=b.display.viewTo||Ce.line<b.display.viewFrom){a.removeAllRanges();return}var He=nu(b,a.anchorNode,a.anchorOffset),it=nu(b,a.focusNode,a.focusOffset);if(!(He&&!He.bad&&it&&!it.bad&&_t(qt(He,it),le)==0&&_t(Lt(He,it),Ce)==0)){var dt=b.display.view,gt=le.line>=b.display.viewFrom&&zu(b,le)||{node:dt[0].measure.map[2],offset:0},wt=Ce.line<b.display.viewTo&&zu(b,Ce);if(!wt){var Qt=dt[dt.length-1].measure,an=Qt.maps?Qt.maps[Qt.maps.length-1]:Qt.map;wt={node:an[an.length-1],offset:an[an.length-2]-an[an.length-3]}}if(!gt||!wt){a.removeAllRanges();return}var En=a.rangeCount&&a.getRangeAt(0),bn;try{bn=Pe(gt.node,gt.offset,wt.offset,wt.node)}catch(Yn){}bn&&(!te&&b.state.focused?(a.collapse(gt.node,gt.offset),bn.collapsed||(a.removeAllRanges(),a.addRange(bn))):(a.removeAllRanges(),a.addRange(bn)),En&&a.anchorNode==null?a.addRange(En):te&&this.startGracePeriod()),this.rememberSelection()}},co.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)},co.prototype.showMultipleSelections=function(a){Se(this.cm.display.cursorDiv,a.cursors),Se(this.cm.display.selectionDiv,a.selection)},co.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},co.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var b=a.getRangeAt(0).commonAncestorContainer;return Le(this.div,b)},co.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},co.prototype.blur=function(){this.div.blur()},co.prototype.getField=function(){return this.div},co.prototype.supportsTouch=function(){return!0},co.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():ma(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function b(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,b))}this.polling.set(this.cm.options.pollInterval,b)},co.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},co.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),b=this.cm;if(se&&oe&&this.cm.display.gutterSpecs.length&&Vu(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var de=nu(b,a.anchorNode,a.anchorOffset),le=nu(b,a.focusNode,a.focusOffset);de&&le&&ma(b,function(){Br(b.doc,Xn(de,le),Ke),(de.bad||le.bad)&&(b.curOp.selectionChanged=!0)})}}},co.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,b=a.display,de=a.doc.sel.primary(),le=de.from(),Ce=de.to();if(le.ch==0&&le.line>a.firstLine()&&(le=Tt(le.line-1,ln(a.doc,le.line-1).length)),Ce.ch==ln(a.doc,Ce.line).text.length&&Ce.line<a.lastLine()&&(Ce=Tt(Ce.line+1,0)),le.line<b.viewFrom||Ce.line>b.viewTo-1)return!1;var He,it,dt;le.line==b.viewFrom||(He=Wa(a,le.line))==0?(it=Mt(b.view[0].line),dt=b.view[0].node):(it=Mt(b.view[He].line),dt=b.view[He-1].node.nextSibling);var gt=Wa(a,Ce.line),wt,Qt;if(gt==b.view.length-1?(wt=b.viewTo-1,Qt=b.lineDiv.lastChild):(wt=Mt(b.view[gt+1].line)-1,Qt=b.view[gt+1].node.previousSibling),!dt)return!1;for(var an=a.doc.splitLines(Xu(a,dt,Qt,it,wt)),En=rn(a.doc,Tt(it,0),Tt(wt,ln(a.doc,wt).text.length));an.length>1&&En.length>1;)if(at(an)==at(En))an.pop(),En.pop(),wt--;else if(an[0]==En[0])an.shift(),En.shift(),it++;else break;for(var bn=0,Yn=0,ir=an[0],gr=En[0],Nr=Math.min(ir.length,gr.length);bn<Nr&&ir.charCodeAt(bn)==gr.charCodeAt(bn);)++bn;for(var Zr=at(an),Rr=at(En),Yr=Math.min(Zr.length-(an.length==1?bn:0),Rr.length-(En.length==1?bn:0));Yn<Yr&&Zr.charCodeAt(Zr.length-Yn-1)==Rr.charCodeAt(Rr.length-Yn-1);)++Yn;if(an.length==1&&En.length==1&&it==le.line)for(;bn&&bn>le.ch&&Zr.charCodeAt(Zr.length-Yn-1)==Rr.charCodeAt(Rr.length-Yn-1);)bn--,Yn++;an[an.length-1]=Zr.slice(0,Zr.length-Yn).replace(/^\u200b+/,""),an[0]=an[0].slice(bn).replace(/\u200b+$/,"");var hi=Tt(it,bn),ui=Tt(wt,En.length?at(En).length-Yn:0);if(an.length>1||an[0]||_t(hi,ui))return $i(a.doc,an,hi,ui,"+input"),!0},co.prototype.ensurePolled=function(){this.forceCompositionEnd()},co.prototype.reset=function(){this.forceCompositionEnd()},co.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},co.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))},co.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&ma(this.cm,function(){return la(a.cm)})},co.prototype.setUneditable=function(a){a.contentEditable="false"},co.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Jo(this.cm,Cu)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},co.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},co.prototype.onContextMenu=function(){},co.prototype.resetPosition=function(){},co.prototype.needsContentAttribute=!0;function zu(a,b){var de=za(a,b.line);if(!de||de.hidden)return null;var le=ln(a.doc,b.line),Ce=ds(de,le,b.line),He=ct(le,a.doc.direction),it="left";if(He){var dt=lt(He,b.ch);it=dt%2?"right":"left"}var gt=Ns(Ce.map,b.ch,it);return gt.offset=gt.collapse=="right"?gt.end:gt.start,gt}function Vu(a){for(var b=a;b;b=b.parentNode)if(/CodeMirror-gutter-wrapper/.test(b.className))return!0;return!1}function pl(a,b){return b&&(a.bad=!0),a}function Xu(a,b,de,le,Ce){var He="",it=!1,dt=a.doc.lineSeparator(),gt=!1;function wt(bn){return function(Yn){return Yn.id==bn}}function Qt(){it&&(He+=dt,gt&&(He+=dt),it=gt=!1)}function an(bn){bn&&(Qt(),He+=bn)}function En(bn){if(bn.nodeType==1){var Yn=bn.getAttribute("cm-text");if(Yn){an(Yn);return}var ir=bn.getAttribute("cm-marker"),gr;if(ir){var Nr=a.findMarks(Tt(le,0),Tt(Ce+1,0),wt(+ir));Nr.length&&(gr=Nr[0].find(0))&&an(rn(a.doc,gr.from,gr.to).join(dt));return}if(bn.getAttribute("contenteditable")=="false")return;var Zr=/^(pre|div|p|li|table|br)$/i.test(bn.nodeName);if(!/^br$/i.test(bn.nodeName)&&bn.textContent.length==0)return;Zr&&Qt();for(var Rr=0;Rr<bn.childNodes.length;Rr++)En(bn.childNodes[Rr]);/^(pre|p)$/i.test(bn.nodeName)&&(gt=!0),Zr&&(it=!0)}else bn.nodeType==3&&an(bn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;En(b),b!=de;)b=b.nextSibling,gt=!1;return He}function nu(a,b,de){var le;if(b==a.display.lineDiv){if(le=a.display.lineDiv.childNodes[de],!le)return pl(a.clipPos(Tt(a.display.viewTo-1)),!0);b=null,de=0}else for(le=b;;le=le.parentNode){if(!le||le==a.display.lineDiv)return null;if(le.parentNode&&le.parentNode==a.display.lineDiv)break}for(var Ce=0;Ce<a.display.view.length;Ce++){var He=a.display.view[Ce];if(He.node==le)return Yu(He,b,de)}}function Yu(a,b,de){var le=a.text.firstChild,Ce=!1;if(!b||!Le(le,b))return pl(Tt(Mt(a.line),0),!0);if(b==le&&(Ce=!0,b=le.childNodes[de],de=0,!b)){var He=a.rest?at(a.rest):a.line;return pl(Tt(Mt(He),He.text.length),Ce)}var it=b.nodeType==3?b:null,dt=b;for(!it&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(it=b.firstChild,de&&(de=it.nodeValue.length));dt.parentNode!=le;)dt=dt.parentNode;var gt=a.measure,wt=gt.maps;function Qt(gr,Nr,Zr){for(var Rr=-1;Rr<(wt?wt.length:0);Rr++)for(var Yr=Rr<0?gt.map:wt[Rr],hi=0;hi<Yr.length;hi+=3){var ui=Yr[hi+2];if(ui==gr||ui==Nr){var Li=Mt(Rr<0?a.line:a.rest[Rr]),go=Yr[hi]+Zr;return(Zr<0||ui!=gr)&&(go=Yr[hi+(Zr?1:0)]),Tt(Li,go)}}}var an=Qt(it,dt,de);if(an)return pl(an,Ce);for(var En=dt.nextSibling,bn=it?it.nodeValue.length-de:0;En;En=En.nextSibling){if(an=Qt(En,En.firstChild,0),an)return pl(Tt(an.line,an.ch-bn),Ce);bn+=En.textContent.length}for(var Yn=dt.previousSibling,ir=de;Yn;Yn=Yn.previousSibling){if(an=Qt(Yn,Yn.firstChild,-1),an)return pl(Tt(an.line,an.ch+ir),Ce);ir+=Yn.textContent.length}}var Ho=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new Ue,this.hasSelection=!1,this.composing=null};Ho.prototype.init=function(a){var b=this,de=this,le=this.cm;this.createField(a);var Ce=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),re&&(Ce.style.width="0px"),At(Ce,"input",function(){be&&z>=9&&b.hasSelection&&(b.hasSelection=null),de.poll()}),At(Ce,"paste",function(it){Et(le,it)||Mu(it,le)||(le.state.pasteIncoming=+new Date,de.fastPoll())});function He(it){if(!Et(le,it)){if(le.somethingSelected())tu({lineWise:!1,text:le.getSelections()});else if(le.options.lineWiseCopyCut){var dt=Lu(le);tu({lineWise:!0,text:dt.text}),it.type=="cut"?le.setSelections(dt.ranges,null,Ke):(de.prevInput="",Ce.value=dt.text.join(`
`),Ze(Ce))}else return;it.type=="cut"&&(le.state.cutIncoming=+new Date)}}At(Ce,"cut",He),At(Ce,"copy",He),At(a.scroller,"paste",function(it){if(!(Yo(a,it)||Et(le,it))){if(!Ce.dispatchEvent){le.state.pasteIncoming=+new Date,de.focus();return}var dt=new Event("paste");dt.clipboardData=it.clipboardData,Ce.dispatchEvent(dt)}}),At(a.lineSpace,"selectstart",function(it){Yo(a,it)||Pt(it)}),At(Ce,"compositionstart",function(){var it=le.getCursor("from");de.composing&&de.composing.range.clear(),de.composing={start:it,range:le.markText(it,le.getCursor("to"),{className:"CodeMirror-composing"})}}),At(Ce,"compositionend",function(){de.composing&&(de.poll(),de.composing.range.clear(),de.composing=null)})},Ho.prototype.createField=function(a){this.wrapper=Fu(),this.textarea=this.wrapper.firstChild},Ho.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Ho.prototype.prepareSelection=function(){var a=this.cm,b=a.display,de=a.doc,le=iu(a);if(a.options.moveInputWithCursor){var Ce=aa(a,de.sel.primary().head,"div"),He=b.wrapper.getBoundingClientRect(),it=b.lineDiv.getBoundingClientRect();le.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,Ce.top+it.top-He.top)),le.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,Ce.left+it.left-He.left))}return le},Ho.prototype.showSelection=function(a){var b=this.cm,de=b.display;Se(de.cursorDiv,a.cursors),Se(de.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Ho.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var b=this.cm;if(b.somethingSelected()){this.prevInput="";var de=b.getSelection();this.textarea.value=de,b.state.focused&&Ze(this.textarea),be&&z>=9&&(this.hasSelection=de)}else a||(this.prevInput=this.textarea.value="",be&&z>=9&&(this.hasSelection=null))}},Ho.prototype.getField=function(){return this.textarea},Ho.prototype.supportsTouch=function(){return!1},Ho.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ue||Ne()!=this.textarea))try{this.textarea.focus()}catch(a){}},Ho.prototype.blur=function(){this.textarea.blur()},Ho.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ho.prototype.receivedFocus=function(){this.slowPoll()},Ho.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Ho.prototype.fastPoll=function(){var a=!1,b=this;b.pollingFast=!0;function de(){var le=b.poll();!le&&!a?(a=!0,b.polling.set(60,de)):(b.pollingFast=!1,b.slowPoll())}b.polling.set(20,de)},Ho.prototype.poll=function(){var a=this,b=this.cm,de=this.textarea,le=this.prevInput;if(this.contextMenuPending||!b.state.focused||Rn(de)&&!le&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var Ce=de.value;if(Ce==le&&!b.somethingSelected())return!1;if(be&&z>=9&&this.hasSelection===Ce||pe&&/[\uf700-\uf7ff]/.test(Ce))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var He=Ce.charCodeAt(0);if(He==8203&&!le&&(le="\u200B"),He==8666)return this.reset(),this.cm.execCommand("undo")}for(var it=0,dt=Math.min(le.length,Ce.length);it<dt&&le.charCodeAt(it)==Ce.charCodeAt(it);)++it;return ma(b,function(){Cu(b,Ce.slice(it),le.length-it,null,a.composing?"*compose":null),Ce.length>1e3||Ce.indexOf(`
`)>-1?de.value=a.prevInput="":a.prevInput=Ce,a.composing&&(a.composing.range.clear(),a.composing.range=b.markText(a.composing.start,b.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ho.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ho.prototype.onKeyPress=function(){be&&z>=9&&(this.hasSelection=null),this.fastPoll()},Ho.prototype.onContextMenu=function(a){var b=this,de=b.cm,le=de.display,Ce=b.textarea;b.contextMenuPending&&b.contextMenuPending();var He=Ja(de,a),it=le.scroller.scrollTop;if(!He||ee)return;var dt=de.options.resetSelectionOnContextMenu;dt&&de.doc.sel.contains(He)==-1&&Jo(de,Br)(de.doc,Xn(He),Ke);var gt=Ce.style.cssText,wt=b.wrapper.style.cssText,Qt=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",Ce.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-Qt.top-5)+"px; left: "+(a.clientX-Qt.left-5)+`px;
z-index: 1000; background: `+(be?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var an;E&&(an=window.scrollY),le.input.focus(),E&&window.scrollTo(null,an),le.input.reset(),de.somethingSelected()||(Ce.value=b.prevInput=" "),b.contextMenuPending=bn,le.selForContextMenu=de.doc.sel,clearTimeout(le.detectingSelectAll);function En(){if(Ce.selectionStart!=null){var ir=de.somethingSelected(),gr="\u200B"+(ir?Ce.value:"");Ce.value="\u21DA",Ce.value=gr,b.prevInput=ir?"":"\u200B",Ce.selectionStart=1,Ce.selectionEnd=gr.length,le.selForContextMenu=de.doc.sel}}function bn(){if(b.contextMenuPending==bn&&(b.contextMenuPending=!1,b.wrapper.style.cssText=wt,Ce.style.cssText=gt,be&&z<9&&le.scrollbars.setScrollTop(le.scroller.scrollTop=it),Ce.selectionStart!=null)){(!be||be&&z<9)&&En();var ir=0,gr=function(){le.selForContextMenu==de.doc.sel&&Ce.selectionStart==0&&Ce.selectionEnd>0&&b.prevInput=="\u200B"?Jo(de,ri)(de):ir++<10?le.detectingSelectAll=setTimeout(gr,500):(le.selForContextMenu=null,le.input.reset())};le.detectingSelectAll=setTimeout(gr,200)}}if(be&&z>=9&&En(),ke){xt(a);var Yn=function(){Dt(window,"mouseup",Yn),setTimeout(bn,20)};At(window,"mouseup",Yn)}else setTimeout(bn,50)},Ho.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Ho.prototype.setUneditable=function(){},Ho.prototype.needsContentAttribute=!1;function Ju(a,b){if(b=b?nt(b):{},b.value=a.value,!b.tabindex&&a.tabIndex&&(b.tabindex=a.tabIndex),!b.placeholder&&a.placeholder&&(b.placeholder=a.placeholder),b.autofocus==null){var de=Ne();b.autofocus=de==a||a.getAttribute("autofocus")!=null&&de==document.body}function le(){a.value=dt.getValue()}var Ce;if(a.form&&(At(a.form,"submit",le),!b.leaveSubmitMethodAlone)){var He=a.form;Ce=He.submit;try{var it=He.submit=function(){le(),He.submit=Ce,He.submit(),He.submit=it}}catch(gt){}}b.finishInit=function(gt){gt.save=le,gt.getTextArea=function(){return a},gt.toTextArea=function(){gt.toTextArea=isNaN,le(),a.parentNode.removeChild(gt.getWrapperElement()),a.style.display="",a.form&&(Dt(a.form,"submit",le),!b.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=Ce))}},a.style.display="none";var dt=Io(function(gt){return a.parentNode.insertBefore(gt,a.nextSibling)},b);return dt}function Qu(a){a.off=Dt,a.on=At,a.wheelEventPixels=kn,a.Doc=ao,a.splitLines=yn,a.countColumn=_e,a.findColumn=ot,a.isWordChar=Me,a.Pass=et,a.signal=jt,a.Line=ki,a.changeEnd=dr,a.scrollbarModel=uu,a.Pos=Tt,a.cmpPos=_t,a.modes=Wt,a.mimeModes=Ht,a.resolveMode=mn,a.getMode=Bn,a.modeExtensions=Pn,a.extendMode=gn,a.copyState=Ln,a.startState=sr,a.innerMode=Kn,a.commands=ss,a.keyMap=zo,a.keyName=vs,a.isModifierKey=Il,a.lookupKey=Ps,a.normalizeKeyMap=ea,a.StringStream=nr,a.SharedTextMarker=oo,a.TextMarker=ga,a.LineWidget=Xi,a.e_preventDefault=Pt,a.e_stopPropagation=Kt,a.e_stop=xt,a.addClass=me,a.contains=Le,a.rmClass=Be,a.keyNames=Mi}Zu(Io),Gu(Io);var qu="iter insert remove copy getEditor constructor".split(" ");for(var ru in ao.prototype)ao.prototype.hasOwnProperty(ru)&&tt(qu,ru)<0&&(Io.prototype[ru]=function(a){return function(){return a.apply(this.doc,arguments)}}(ao.prototype[ru]));return yt(ao),Io.inputStyles={textarea:Ho,contenteditable:co},Io.defineMode=function(a){!Io.defaults.mode&&a!="null"&&(Io.defaults.mode=a),hn.apply(this,arguments)},Io.defineMIME=cn,Io.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Io.defineMIME("text/plain","null"),Io.defineExtension=function(a,b){Io.prototype[a]=b},Io.defineDocExtension=function(a,b){ao.prototype[a]=b},Io.fromTextArea=Ju,Qu(Io),Io.version="5.58.2",Io})},25419:function(In,Yt,Te){(function(te){te(Te(89780),Te(15525),Te(98101))})(function(te){"use strict";te.defineMode("markdown",function(Ot,y){var je=te.getMode(Ot,"text/html"),be=je.name=="null";function z(_e){if(te.findModeByName){var Ue=te.findModeByName(_e);Ue&&(_e=Ue.mime||Ue.mimes[0])}var tt=te.getMode(Ot,_e);return tt.name=="null"?null:tt}y.highlightFormatting===void 0&&(y.highlightFormatting=!1),y.maxBlockquoteDepth===void 0&&(y.maxBlockquoteDepth=0),y.taskLists===void 0&&(y.taskLists=!1),y.strikethrough===void 0&&(y.strikethrough=!1),y.emoji===void 0&&(y.emoji=!1),y.fencedCodeBlockHighlighting===void 0&&(y.fencedCodeBlockHighlighting=!0),y.fencedCodeBlockDefaultMode===void 0&&(y.fencedCodeBlockDefaultMode="text/plain"),y.xml===void 0&&(y.xml=!0),y.tokenTypeOverrides===void 0&&(y.tokenTypeOverrides={});var E={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 ie in E)E.hasOwnProperty(ie)&&y.tokenTypeOverrides[ie]&&(E[ie]=y.tokenTypeOverrides[ie]);var oe=/^([*\-_])(?:\s*\1){2,}\s*$/,ee=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,ce=/^\[(x| )\](?=\s)/i,x=y.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ae=/^ {0,3}(?:\={1,}|-{2,})\s*$/,re=/^[^#!\[\]*_\\<>` "'(~:]+/,se=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ue=/^\s*\[[^\]]+?\]:.*$/,pe=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,he=" ";function ye(_e,Ue,tt){return Ue.f=Ue.inline=tt,tt(_e,Ue)}function ge(_e,Ue,tt){return Ue.f=Ue.block=tt,tt(_e,Ue)}function xe(_e){return!_e||!/\S/.test(_e.string)}function ke(_e){if(_e.linkTitle=!1,_e.linkHref=!1,_e.linkText=!1,_e.em=!1,_e.strong=!1,_e.strikethrough=!1,_e.quote=0,_e.indentedCode=!1,_e.f==Be){var Ue=be;if(!Ue){var tt=te.innerMode(je,_e.htmlState);Ue=tt.mode.name=="xml"&&tt.state.tagStart===null&&!tt.state.context&&tt.state.tokenize.isInText}Ue&&(_e.f=Oe,_e.block=De,_e.htmlState=null)}return _e.trailingSpace=0,_e.trailingSpaceNewLine=!1,_e.prevLine=_e.thisLine,_e.thisLine={stream:null},null}function De(_e,Ue){var tt=_e.column()===Ue.indentation,rt=xe(Ue.prevLine.stream),et=Ue.indentedCode,Ke=Ue.prevLine.hr,Ye=Ue.list!==!1,Xe=(Ue.listStack[Ue.listStack.length-1]||0)+3;Ue.indentedCode=!1;var ot=Ue.indentation;if(Ue.indentationDiff===null&&(Ue.indentationDiff=Ue.indentation,Ye)){for(Ue.list=null;ot<Ue.listStack[Ue.listStack.length-1];)Ue.listStack.pop(),Ue.listStack.length?Ue.indentation=Ue.listStack[Ue.listStack.length-1]:Ue.list=!1;Ue.list!==!1&&(Ue.indentationDiff=ot-Ue.listStack[Ue.listStack.length-1])}var Qe=!rt&&!Ke&&!Ue.prevLine.header&&(!Ye||!et)&&!Ue.prevLine.fencedCodeEnd,ft=(Ue.list===!1||Ke||rt)&&Ue.indentation<=Xe&&_e.match(oe),at=null;if(Ue.indentationDiff>=4&&(et||Ue.prevLine.fencedCodeEnd||Ue.prevLine.header||rt))return _e.skipToEnd(),Ue.indentedCode=!0,E.code;if(_e.eatSpace())return null;if(tt&&Ue.indentation<=Xe&&(at=_e.match(x))&&at[1].length<=6)return Ue.quote=0,Ue.header=at[1].length,Ue.thisLine.header=!0,y.highlightFormatting&&(Ue.formatting="header"),Ue.f=Ue.inline,Se(Ue);if(Ue.indentation<=Xe&&_e.eat(">"))return Ue.quote=tt?1:Ue.quote+1,y.highlightFormatting&&(Ue.formatting="quote"),_e.eatSpace(),Se(Ue);if(!ft&&!Ue.setext&&tt&&Ue.indentation<=Xe&&(at=_e.match(ee))){var qe=at[1]?"ol":"ul";return Ue.indentation=ot+_e.current().length,Ue.list=!0,Ue.quote=0,Ue.listStack.push(Ue.indentation),Ue.em=!1,Ue.strong=!1,Ue.code=!1,Ue.strikethrough=!1,y.taskLists&&_e.match(ce,!1)&&(Ue.taskList=!0),Ue.f=Ue.inline,y.highlightFormatting&&(Ue.formatting=["list","list-"+qe]),Se(Ue)}else{if(tt&&Ue.indentation<=Xe&&(at=_e.match(se,!0)))return Ue.quote=0,Ue.fencedEndRE=new RegExp(at[1]+"+ *$"),Ue.localMode=y.fencedCodeBlockHighlighting&&z(at[2]||y.fencedCodeBlockDefaultMode),Ue.localMode&&(Ue.localState=te.startState(Ue.localMode)),Ue.f=Ue.block=Ae,y.highlightFormatting&&(Ue.formatting="code-block"),Ue.code=-1,Se(Ue);if(Ue.setext||(!Qe||!Ye)&&!Ue.quote&&Ue.list===!1&&!Ue.code&&!ft&&!ue.test(_e.string)&&(at=_e.lookAhead(1))&&(at=at.match(ae)))return Ue.setext?(Ue.header=Ue.setext,Ue.setext=0,_e.skipToEnd(),y.highlightFormatting&&(Ue.formatting="header")):(Ue.header=at[0].charAt(0)=="="?1:2,Ue.setext=Ue.header),Ue.thisLine.header=!0,Ue.f=Ue.inline,Se(Ue);if(ft)return _e.skipToEnd(),Ue.hr=!0,Ue.thisLine.hr=!0,E.hr;if(_e.peek()==="[")return ye(_e,Ue,Ve)}return ye(_e,Ue,Ue.inline)}function Be(_e,Ue){var tt=je.token(_e,Ue.htmlState);if(!be){var rt=te.innerMode(je,Ue.htmlState);(rt.mode.name=="xml"&&rt.state.tagStart===null&&!rt.state.context&&rt.state.tokenize.isInText||Ue.md_inside&&_e.current().indexOf(">")>-1)&&(Ue.f=Oe,Ue.block=De,Ue.htmlState=null)}return tt}function Ae(_e,Ue){var tt=Ue.listStack[Ue.listStack.length-1]||0,rt=Ue.indentation<tt,et=tt+3;if(Ue.fencedEndRE&&Ue.indentation<=et&&(rt||_e.match(Ue.fencedEndRE))){y.highlightFormatting&&(Ue.formatting="code-block");var Ke;return rt||(Ke=Se(Ue)),Ue.localMode=Ue.localState=null,Ue.block=De,Ue.f=Oe,Ue.fencedEndRE=null,Ue.code=0,Ue.thisLine.fencedCodeEnd=!0,rt?ge(_e,Ue,Ue.block):Ke}else return Ue.localMode?Ue.localMode.token(_e,Ue.localState):(_e.skipToEnd(),E.code)}function Se(_e){var Ue=[];if(_e.formatting){Ue.push(E.formatting),typeof _e.formatting=="string"&&(_e.formatting=[_e.formatting]);for(var tt=0;tt<_e.formatting.length;tt++)Ue.push(E.formatting+"-"+_e.formatting[tt]),_e.formatting[tt]==="header"&&Ue.push(E.formatting+"-"+_e.formatting[tt]+"-"+_e.header),_e.formatting[tt]==="quote"&&(!y.maxBlockquoteDepth||y.maxBlockquoteDepth>=_e.quote?Ue.push(E.formatting+"-"+_e.formatting[tt]+"-"+_e.quote):Ue.push("error"))}if(_e.taskOpen)return Ue.push("meta"),Ue.length?Ue.join(" "):null;if(_e.taskClosed)return Ue.push("property"),Ue.length?Ue.join(" "):null;if(_e.linkHref?Ue.push(E.linkHref,"url"):(_e.strong&&Ue.push(E.strong),_e.em&&Ue.push(E.em),_e.strikethrough&&Ue.push(E.strikethrough),_e.emoji&&Ue.push(E.emoji),_e.linkText&&Ue.push(E.linkText),_e.code&&Ue.push(E.code),_e.image&&Ue.push(E.image),_e.imageAltText&&Ue.push(E.imageAltText,"link"),_e.imageMarker&&Ue.push(E.imageMarker)),_e.header&&Ue.push(E.header,E.header+"-"+_e.header),_e.quote&&(Ue.push(E.quote),!y.maxBlockquoteDepth||y.maxBlockquoteDepth>=_e.quote?Ue.push(E.quote+"-"+_e.quote):Ue.push(E.quote+"-"+y.maxBlockquoteDepth)),_e.list!==!1){var rt=(_e.listStack.length-1)%3;rt?rt===1?Ue.push(E.list2):Ue.push(E.list3):Ue.push(E.list1)}return _e.trailingSpaceNewLine?Ue.push("trailing-space-new-line"):_e.trailingSpace&&Ue.push("trailing-space-"+(_e.trailingSpace%2?"a":"b")),Ue.length?Ue.join(" "):null}function Ee(_e,Ue){if(_e.match(re,!0))return Se(Ue)}function Oe(_e,Ue){var tt=Ue.text(_e,Ue);if(typeof tt!="undefined")return tt;if(Ue.list)return Ue.list=null,Se(Ue);if(Ue.taskList){var rt=_e.match(ce,!0)[1]===" ";return rt?Ue.taskOpen=!0:Ue.taskClosed=!0,y.highlightFormatting&&(Ue.formatting="task"),Ue.taskList=!1,Se(Ue)}if(Ue.taskOpen=!1,Ue.taskClosed=!1,Ue.header&&_e.match(/^#+$/,!0))return y.highlightFormatting&&(Ue.formatting="header"),Se(Ue);var et=_e.next();if(Ue.linkTitle){Ue.linkTitle=!1;var Ke=et;et==="("&&(Ke=")"),Ke=(Ke+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ye="^\\s*(?:[^"+Ke+"\\\\]+|\\\\\\\\|\\\\.)"+Ke;if(_e.match(new RegExp(Ye),!0))return E.linkHref}if(et==="`"){var Xe=Ue.formatting;y.highlightFormatting&&(Ue.formatting="code"),_e.eatWhile("`");var ot=_e.current().length;if(Ue.code==0&&(!Ue.quote||ot==1))return Ue.code=ot,Se(Ue);if(ot==Ue.code){var Qe=Se(Ue);return Ue.code=0,Qe}else return Ue.formatting=Xe,Se(Ue)}else if(Ue.code)return Se(Ue);if(et==="\\"&&(_e.next(),y.highlightFormatting)){var ft=Se(Ue),at=E.formatting+"-escape";return ft?ft+" "+at:at}if(et==="!"&&_e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ue.imageMarker=!0,Ue.image=!0,y.highlightFormatting&&(Ue.formatting="image"),Se(Ue);if(et==="["&&Ue.imageMarker&&_e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ue.imageMarker=!1,Ue.imageAltText=!0,y.highlightFormatting&&(Ue.formatting="image"),Se(Ue);if(et==="]"&&Ue.imageAltText){y.highlightFormatting&&(Ue.formatting="image");var ft=Se(Ue);return Ue.imageAltText=!1,Ue.image=!1,Ue.inline=Ue.f=Le,ft}if(et==="["&&!Ue.image)return Ue.linkText&&_e.match(/^.*?\]/)||(Ue.linkText=!0,y.highlightFormatting&&(Ue.formatting="link")),Se(Ue);if(et==="]"&&Ue.linkText){y.highlightFormatting&&(Ue.formatting="link");var ft=Se(Ue);return Ue.linkText=!1,Ue.inline=Ue.f=_e.match(/\(.*?\)| ?\[.*?\]/,!1)?Le:Oe,ft}if(et==="<"&&_e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ue.f=Ue.inline=Pe,y.highlightFormatting&&(Ue.formatting="link");var ft=Se(Ue);return ft?ft+=" ":ft="",ft+E.linkInline}if(et==="<"&&_e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ue.f=Ue.inline=Pe,y.highlightFormatting&&(Ue.formatting="link");var ft=Se(Ue);return ft?ft+=" ":ft="",ft+E.linkEmail}if(y.xml&&et==="<"&&_e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var qe=_e.string.indexOf(">",_e.pos);if(qe!=-1){var Fe=_e.string.substring(_e.start,qe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Fe)&&(Ue.md_inside=!0)}return _e.backUp(1),Ue.htmlState=te.startState(je),ge(_e,Ue,Be)}if(y.xml&&et==="<"&&_e.match(/^\/\w*?>/))return Ue.md_inside=!1,"tag";if(et==="*"||et==="_"){for(var Re=1,ne=_e.pos==1?" ":_e.string.charAt(_e.pos-2);Re<3&&_e.eat(et);)Re++;var fe=_e.peek()||" ",Me=!/\s/.test(fe)&&(!pe.test(fe)||/\s/.test(ne)||pe.test(ne)),ze=!/\s/.test(ne)&&(!pe.test(ne)||/\s/.test(fe)||pe.test(fe)),we=null,ve=null;if(Re%2&&(!Ue.em&&Me&&(et==="*"||!ze||pe.test(ne))?we=!0:Ue.em==et&&ze&&(et==="*"||!Me||pe.test(fe))&&(we=!1)),Re>1&&(!Ue.strong&&Me&&(et==="*"||!ze||pe.test(ne))?ve=!0:Ue.strong==et&&ze&&(et==="*"||!Me||pe.test(fe))&&(ve=!1)),ve!=null||we!=null){y.highlightFormatting&&(Ue.formatting=we==null?"strong":ve==null?"em":"strong em"),we===!0&&(Ue.em=et),ve===!0&&(Ue.strong=et);var Qe=Se(Ue);return we===!1&&(Ue.em=!1),ve===!1&&(Ue.strong=!1),Qe}}else if(et===" "&&(_e.eat("*")||_e.eat("_"))){if(_e.peek()===" ")return Se(Ue);_e.backUp(1)}if(y.strikethrough){if(et==="~"&&_e.eatWhile(et)){if(Ue.strikethrough){y.highlightFormatting&&(Ue.formatting="strikethrough");var Qe=Se(Ue);return Ue.strikethrough=!1,Qe}else if(_e.match(/^[^\s]/,!1))return Ue.strikethrough=!0,y.highlightFormatting&&(Ue.formatting="strikethrough"),Se(Ue)}else if(et===" "&&_e.match(/^~~/,!0)){if(_e.peek()===" ")return Se(Ue);_e.backUp(2)}}if(y.emoji&&et===":"&&_e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ue.emoji=!0,y.highlightFormatting&&(Ue.formatting="emoji");var Ie=Se(Ue);return Ue.emoji=!1,Ie}return et===" "&&(_e.match(/^ +$/,!1)?Ue.trailingSpace++:Ue.trailingSpace&&(Ue.trailingSpaceNewLine=!0)),Se(Ue)}function Pe(_e,Ue){var tt=_e.next();if(tt===">"){Ue.f=Ue.inline=Oe,y.highlightFormatting&&(Ue.formatting="link");var rt=Se(Ue);return rt?rt+=" ":rt="",rt+E.linkInline}return _e.match(/^[^>]+/,!0),E.linkInline}function Le(_e,Ue){if(_e.eatSpace())return null;var tt=_e.next();return tt==="("||tt==="["?(Ue.f=Ue.inline=me(tt==="("?")":"]"),y.highlightFormatting&&(Ue.formatting="link-string"),Ue.linkHref=!0,Se(Ue)):"error"}var Ne={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function me(_e){return function(Ue,tt){var rt=Ue.next();if(rt===_e){tt.f=tt.inline=Oe,y.highlightFormatting&&(tt.formatting="link-string");var et=Se(tt);return tt.linkHref=!1,et}return Ue.match(Ne[_e]),tt.linkHref=!0,Se(tt)}}function Ve(_e,Ue){return _e.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ue.f=Ze,_e.next(),y.highlightFormatting&&(Ue.formatting="link"),Ue.linkText=!0,Se(Ue)):ye(_e,Ue,Oe)}function Ze(_e,Ue){if(_e.match(/^\]:/,!0)){Ue.f=Ue.inline=We,y.highlightFormatting&&(Ue.formatting="link");var tt=Se(Ue);return Ue.linkText=!1,tt}return _e.match(/^([^\]\\]|\\.)+/,!0),E.linkText}function We(_e,Ue){return _e.eatSpace()?null:(_e.match(/^[^\s]+/,!0),_e.peek()===void 0?Ue.linkTitle=!0:_e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ue.f=Ue.inline=Oe,E.linkHref+" url")}var nt={startState:function(){return{f:De,prevLine:{stream:null},thisLine:{stream:null},block:De,htmlState:null,indentation:0,inline:Oe,text:Ee,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(_e){return{f:_e.f,prevLine:_e.prevLine,thisLine:_e.thisLine,block:_e.block,htmlState:_e.htmlState&&te.copyState(je,_e.htmlState),indentation:_e.indentation,localMode:_e.localMode,localState:_e.localMode?te.copyState(_e.localMode,_e.localState):null,inline:_e.inline,text:_e.text,formatting:!1,linkText:_e.linkText,linkTitle:_e.linkTitle,linkHref:_e.linkHref,code:_e.code,em:_e.em,strong:_e.strong,strikethrough:_e.strikethrough,emoji:_e.emoji,header:_e.header,setext:_e.setext,hr:_e.hr,taskList:_e.taskList,list:_e.list,listStack:_e.listStack.slice(0),quote:_e.quote,indentedCode:_e.indentedCode,trailingSpace:_e.trailingSpace,trailingSpaceNewLine:_e.trailingSpaceNewLine,md_inside:_e.md_inside,fencedEndRE:_e.fencedEndRE}},token:function(_e,Ue){if(Ue.formatting=!1,_e!=Ue.thisLine.stream){if(Ue.header=0,Ue.hr=!1,_e.match(/^\s*$/,!0))return ke(Ue),null;if(Ue.prevLine=Ue.thisLine,Ue.thisLine={stream:_e},Ue.taskList=!1,Ue.trailingSpace=0,Ue.trailingSpaceNewLine=!1,!Ue.localState&&(Ue.f=Ue.block,Ue.f!=Be)){var tt=_e.match(/^\s*/,!0)[0].replace(/\t/g,he).length;if(Ue.indentation=tt,Ue.indentationDiff=null,tt>0)return null}}return Ue.f(_e,Ue)},innerMode:function(_e){return _e.block==Be?{state:_e.htmlState,mode:je}:_e.localState?{state:_e.localState,mode:_e.localMode}:{state:_e,mode:nt}},indent:function(_e,Ue,tt){return _e.block==Be&&je.indent?je.indent(_e.htmlState,Ue,tt):_e.localState&&_e.localMode.indent?_e.localMode.indent(_e.localState,Ue,tt):te.Pass},blankLine:ke,getType:Se,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return nt},"xml"),te.defineMIME("text/markdown","markdown"),te.defineMIME("text/x-markdown","markdown")})},98101:function(In,Yt,Te){(function(te){te(Te(89780))})(function(te){"use strict";te.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 Ot=0;Ot<te.modeInfo.length;Ot++){var y=te.modeInfo[Ot];y.mimes&&(y.mime=y.mimes[0])}te.findModeByMIME=function(je){je=je.toLowerCase();for(var be=0;be<te.modeInfo.length;be++){var z=te.modeInfo[be];if(z.mime==je)return z;if(z.mimes){for(var E=0;E<z.mimes.length;E++)if(z.mimes[E]==je)return z}}if(/\+xml$/.test(je))return te.findModeByMIME("application/xml");if(/\+json$/.test(je))return te.findModeByMIME("application/json")},te.findModeByExtension=function(je){je=je.toLowerCase();for(var be=0;be<te.modeInfo.length;be++){var z=te.modeInfo[be];if(z.ext){for(var E=0;E<z.ext.length;E++)if(z.ext[E]==je)return z}}},te.findModeByFileName=function(je){for(var be=0;be<te.modeInfo.length;be++){var z=te.modeInfo[be];if(z.file&&z.file.test(je))return z}var E=je.lastIndexOf("."),ie=E>-1&&je.substring(E+1,je.length);if(ie)return te.findModeByExtension(ie)},te.findModeByName=function(je){je=je.toLowerCase();for(var be=0;be<te.modeInfo.length;be++){var z=te.modeInfo[be];if(z.name.toLowerCase()==je)return z;if(z.alias){for(var E=0;E<z.alias.length;E++)if(z.alias[E].toLowerCase()==je)return z}}}})},67549:function(In,Yt,Te){(function(te){te(Te(89780))})(function(te){"use strict";te.defineMode("stex",function(Ot,y){"use strict";function je(re,se){re.cmdState.push(se)}function be(re){return re.cmdState.length>0?re.cmdState[re.cmdState.length-1]:null}function z(re){var se=re.cmdState.pop();se&&se.closeBracket()}function E(re){for(var se=re.cmdState,ue=se.length-1;ue>=0;ue--){var pe=se[ue];if(pe.name!="DEFAULT")return pe}return{styleIdentifier:function(){return null}}}function ie(re,se,ue){return function(){this.name=re,this.bracketNo=0,this.style=se,this.styles=ue,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var oe={};oe.importmodule=ie("importmodule","tag",["string","builtin"]),oe.documentclass=ie("documentclass","tag",["","atom"]),oe.usepackage=ie("usepackage","tag",["atom"]),oe.begin=ie("begin","tag",["atom"]),oe.end=ie("end","tag",["atom"]),oe.label=ie("label","tag",["atom"]),oe.ref=ie("ref","tag",["atom"]),oe.eqref=ie("eqref","tag",["atom"]),oe.cite=ie("cite","tag",["atom"]),oe.bibitem=ie("bibitem","tag",["atom"]),oe.Bibitem=ie("Bibitem","tag",["atom"]),oe.RBibitem=ie("RBibitem","tag",["atom"]),oe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ee(re,se){re.f=se}function ce(re,se){var ue;if(re.match(/^\\[a-zA-Z@]+/)){var pe=re.current().slice(1);return ue=oe.hasOwnProperty(pe)?oe[pe]:oe.DEFAULT,ue=new ue,je(se,ue),ee(se,ae),ue.style}if(re.match(/^\\[$&%#{}_]/)||re.match(/^\\[,;!\/\\]/))return"tag";if(re.match("\\["))return ee(se,function(ye,ge){return x(ye,ge,"\\]")}),"keyword";if(re.match("\\("))return ee(se,function(ye,ge){return x(ye,ge,"\\)")}),"keyword";if(re.match("$$"))return ee(se,function(ye,ge){return x(ye,ge,"$$")}),"keyword";if(re.match("$"))return ee(se,function(ye,ge){return x(ye,ge,"$")}),"keyword";var he=re.next();if(he=="%")return re.skipToEnd(),"comment";if(he=="}"||he=="]"){if(ue=be(se),ue)ue.closeBracket(he),ee(se,ae);else return"error";return"bracket"}else return he=="{"||he=="["?(ue=oe.DEFAULT,ue=new ue,je(se,ue),"bracket"):/\d/.test(he)?(re.eatWhile(/[\w.%]/),"atom"):(re.eatWhile(/[\w\-_]/),ue=E(se),ue.name=="begin"&&(ue.argument=re.current()),ue.styleIdentifier())}function x(re,se,ue){if(re.eatSpace())return null;if(ue&&re.match(ue))return ee(se,ce),"keyword";if(re.match(/^\\[a-zA-Z@]+/))return"tag";if(re.match(/^[a-zA-Z]+/))return"variable-2";if(re.match(/^\\[$&%#{}_]/)||re.match(/^\\[,;!\/]/)||re.match(/^[\^_&]/))return"tag";if(re.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(re.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var pe=re.next();return pe=="{"||pe=="}"||pe=="["||pe=="]"||pe=="("||pe==")"?"bracket":pe=="%"?(re.skipToEnd(),"comment"):"error"}function ae(re,se){var ue=re.peek(),pe;return ue=="{"||ue=="["?(pe=be(se),pe.openBracket(ue),re.eat(ue),ee(se,ce),"bracket"):/[ \t\r]/.test(ue)?(re.eat(ue),null):(ee(se,ce),z(se),ce(re,se))}return{startState:function(){var re=y.inMathMode?function(se,ue){return x(se,ue)}:ce;return{cmdState:[],f:re}},copyState:function(re){return{cmdState:re.cmdState.slice(),f:re.f}},token:function(re,se){return se.f(re,se)},blankLine:function(re){re.f=ce,re.cmdState.length=0},lineComment:"%"}}),te.defineMIME("text/x-stex","stex"),te.defineMIME("text/x-latex","stex")})},15525:function(In,Yt,Te){(function(te){te(Te(89780))})(function(te){"use strict";var Ot={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},y={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};te.defineMode("xml",function(je,be){var z=je.indentUnit,E={},ie=be.htmlMode?Ot:y;for(var oe in ie)E[oe]=ie[oe];for(var oe in be)E[oe]=be[oe];var ee,ce;function x(Pe,Le){function Ne(Ze){return Le.tokenize=Ze,Ze(Pe,Le)}var me=Pe.next();if(me=="<")return Pe.eat("!")?Pe.eat("[")?Pe.match("CDATA[")?Ne(se("atom","]]>")):null:Pe.match("--")?Ne(se("comment","-->")):Pe.match("DOCTYPE",!0,!0)?(Pe.eatWhile(/[\w\._\-]/),Ne(ue(1))):null:Pe.eat("?")?(Pe.eatWhile(/[\w\._\-]/),Le.tokenize=se("meta","?>"),"meta"):(ee=Pe.eat("/")?"closeTag":"openTag",Le.tokenize=ae,"tag bracket");if(me=="&"){var Ve;return Pe.eat("#")?Pe.eat("x")?Ve=Pe.eatWhile(/[a-fA-F\d]/)&&Pe.eat(";"):Ve=Pe.eatWhile(/[\d]/)&&Pe.eat(";"):Ve=Pe.eatWhile(/[\w\.\-:]/)&&Pe.eat(";"),Ve?"atom":"error"}else return Pe.eatWhile(/[^&<]/),null}x.isInText=!0;function ae(Pe,Le){var Ne=Pe.next();if(Ne==">"||Ne=="/"&&Pe.eat(">"))return Le.tokenize=x,ee=Ne==">"?"endTag":"selfcloseTag","tag bracket";if(Ne=="=")return ee="equals",null;if(Ne=="<"){Le.tokenize=x,Le.state=ge,Le.tagName=Le.tagStart=null;var me=Le.tokenize(Pe,Le);return me?me+" tag error":"tag error"}else return/[\'\"]/.test(Ne)?(Le.tokenize=re(Ne),Le.stringStartCol=Pe.column(),Le.tokenize(Pe,Le)):(Pe.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function re(Pe){var Le=function(Ne,me){for(;!Ne.eol();)if(Ne.next()==Pe){me.tokenize=ae;break}return"string"};return Le.isInAttribute=!0,Le}function se(Pe,Le){return function(Ne,me){for(;!Ne.eol();){if(Ne.match(Le)){me.tokenize=x;break}Ne.next()}return Pe}}function ue(Pe){return function(Le,Ne){for(var me;(me=Le.next())!=null;){if(me=="<")return Ne.tokenize=ue(Pe+1),Ne.tokenize(Le,Ne);if(me==">")if(Pe==1){Ne.tokenize=x;break}else return Ne.tokenize=ue(Pe-1),Ne.tokenize(Le,Ne)}return"meta"}}function pe(Pe,Le,Ne){this.prev=Pe.context,this.tagName=Le,this.indent=Pe.indented,this.startOfLine=Ne,(E.doNotIndent.hasOwnProperty(Le)||Pe.context&&Pe.context.noIndent)&&(this.noIndent=!0)}function he(Pe){Pe.context&&(Pe.context=Pe.context.prev)}function ye(Pe,Le){for(var Ne;;){if(!Pe.context||(Ne=Pe.context.tagName,!E.contextGrabbers.hasOwnProperty(Ne)||!E.contextGrabbers[Ne].hasOwnProperty(Le)))return;he(Pe)}}function ge(Pe,Le,Ne){return Pe=="openTag"?(Ne.tagStart=Le.column(),xe):Pe=="closeTag"?ke:ge}function xe(Pe,Le,Ne){return Pe=="word"?(Ne.tagName=Le.current(),ce="tag",Ae):E.allowMissingTagName&&Pe=="endTag"?(ce="tag bracket",Ae(Pe,Le,Ne)):(ce="error",xe)}function ke(Pe,Le,Ne){if(Pe=="word"){var me=Le.current();return Ne.context&&Ne.context.tagName!=me&&E.implicitlyClosed.hasOwnProperty(Ne.context.tagName)&&he(Ne),Ne.context&&Ne.context.tagName==me||E.matchClosing===!1?(ce="tag",De):(ce="tag error",Be)}else return E.allowMissingTagName&&Pe=="endTag"?(ce="tag bracket",De(Pe,Le,Ne)):(ce="error",Be)}function De(Pe,Le,Ne){return Pe!="endTag"?(ce="error",De):(he(Ne),ge)}function Be(Pe,Le,Ne){return ce="error",De(Pe,Le,Ne)}function Ae(Pe,Le,Ne){if(Pe=="word")return ce="attribute",Se;if(Pe=="endTag"||Pe=="selfcloseTag"){var me=Ne.tagName,Ve=Ne.tagStart;return Ne.tagName=Ne.tagStart=null,Pe=="selfcloseTag"||E.autoSelfClosers.hasOwnProperty(me)?ye(Ne,me):(ye(Ne,me),Ne.context=new pe(Ne,me,Ve==Ne.indented)),ge}return ce="error",Ae}function Se(Pe,Le,Ne){return Pe=="equals"?Ee:(E.allowMissing||(ce="error"),Ae(Pe,Le,Ne))}function Ee(Pe,Le,Ne){return Pe=="string"?Oe:Pe=="word"&&E.allowUnquoted?(ce="string",Ae):(ce="error",Ae(Pe,Le,Ne))}function Oe(Pe,Le,Ne){return Pe=="string"?Oe:Ae(Pe,Le,Ne)}return{startState:function(Pe){var Le={tokenize:x,state:ge,indented:Pe||0,tagName:null,tagStart:null,context:null};return Pe!=null&&(Le.baseIndent=Pe),Le},token:function(Pe,Le){if(!Le.tagName&&Pe.sol()&&(Le.indented=Pe.indentation()),Pe.eatSpace())return null;ee=null;var Ne=Le.tokenize(Pe,Le);return(Ne||ee)&&Ne!="comment"&&(ce=null,Le.state=Le.state(ee||Ne,Pe,Le),ce&&(Ne=ce=="error"?Ne+" error":ce)),Ne},indent:function(Pe,Le,Ne){var me=Pe.context;if(Pe.tokenize.isInAttribute)return Pe.tagStart==Pe.indented?Pe.stringStartCol+1:Pe.indented+z;if(me&&me.noIndent)return te.Pass;if(Pe.tokenize!=ae&&Pe.tokenize!=x)return Ne?Ne.match(/^(\s*)/)[0].length:0;if(Pe.tagName)return E.multilineTagIndentPastTag!==!1?Pe.tagStart+Pe.tagName.length+2:Pe.tagStart+z*(E.multilineTagIndentFactor||1);if(E.alignCDATA&&/<!\[CDATA\[/.test(Le))return 0;var Ve=Le&&/^<(\/)?([\w_:\.-]*)/.exec(Le);if(Ve&&Ve[1])for(;me;)if(me.tagName==Ve[2]){me=me.prev;break}else if(E.implicitlyClosed.hasOwnProperty(me.tagName))me=me.prev;else break;else if(Ve)for(;me;){var Ze=E.contextGrabbers[me.tagName];if(Ze&&Ze.hasOwnProperty(Ve[2]))me=me.prev;else break}for(;me&&me.prev&&!me.startOfLine;)me=me.prev;return me?me.indent+z:Pe.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:E.htmlMode?"html":"xml",helperType:E.htmlMode?"html":"xml",skipAttribute:function(Pe){Pe.state==Ee&&(Pe.state=Ae)},xmlCurrentTag:function(Pe){return Pe.tagName?{name:Pe.tagName,close:Pe.type=="closeTag"}:null},xmlCurrentContext:function(Pe){for(var Le=[],Ne=Pe.context;Ne;Ne=Ne.prev)Ne.tagName&&Le.push(Ne.tagName);return Le.reverse()}}}),te.defineMIME("text/xml","xml"),te.defineMIME("application/xml","xml"),te.mimeModes.hasOwnProperty("text/html")||te.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(In,Yt,Te){"use strict";Te.d(Yt,{hP:function(){return Fe}});var te=function(Re,ne){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,Me){fe.__proto__=Me}||function(fe,Me){for(var ze in Me)Object.prototype.hasOwnProperty.call(Me,ze)&&(fe[ze]=Me[ze])})(Re,ne)};function Ot(Re,ne){function fe(){this.constructor=Re}te(Re,ne),Re.prototype=ne===null?Object.create(ne):(fe.prototype=ne.prototype,new fe)}function y(Re,ne,fe,Me){return new(fe||(fe=Promise))(function(ze,we){function ve(Ge){try{$e(Me.next(Ge))}catch(Je){we(Je)}}function Ie(Ge){try{$e(Me.throw(Ge))}catch(Je){we(Je)}}function $e(Ge){var Je;Ge.done?ze(Ge.value):(Je=Ge.value,Je instanceof fe?Je:new fe(function(ut){ut(Je)})).then(ve,Ie)}$e((Me=Me.apply(Re,ne||[])).next())})}function je(Re,ne){var fe,Me,ze,we,ve={label:0,sent:function(){if(1&ze[0])throw ze[1];return ze[1]},trys:[],ops:[]};return we={next:Ie(0),throw:Ie(1),return:Ie(2)},typeof Symbol=="function"&&(we[Symbol.iterator]=function(){return this}),we;function Ie($e){return function(Ge){return function(Je){if(fe)throw new TypeError("Generator is already executing.");for(;ve;)try{if(fe=1,Me&&(ze=2&Je[0]?Me.return:Je[0]?Me.throw||((ze=Me.return)&&ze.call(Me),0):Me.next)&&!(ze=ze.call(Me,Je[1])).done)return ze;switch(Me=0,ze&&(Je=[2&Je[0],ze.value]),Je[0]){case 0:case 1:ze=Je;break;case 4:return ve.label++,{value:Je[1],done:!1};case 5:ve.label++,Me=Je[1],Je=[0];continue;case 7:Je=ve.ops.pop(),ve.trys.pop();continue;default:if(ze=ve.trys,!((ze=ze.length>0&&ze[ze.length-1])||Je[0]!==6&&Je[0]!==2)){ve=0;continue}if(Je[0]===3&&(!ze||Je[1]>ze[0]&&Je[1]<ze[3])){ve.label=Je[1];break}if(Je[0]===6&&ve.label<ze[1]){ve.label=ze[1],ze=Je;break}if(ze&&ve.label<ze[2]){ve.label=ze[2],ve.ops.push(Je);break}ze[2]&&ve.ops.pop(),ve.trys.pop();continue}Je=ne.call(Re,ve)}catch(ut){Je=[6,ut],Me=0}finally{fe=ze=0}if(5&Je[0])throw Je[1];return{value:Je[0]?Je[1]:void 0,done:!0}}([$e,Ge])}}}function be(){for(var Re=0,ne=0,fe=arguments.length;ne<fe;ne++)Re+=arguments[ne].length;var Me=Array(Re),ze=0;for(ne=0;ne<fe;ne++)for(var we=arguments[ne],ve=0,Ie=we.length;ve<Ie;ve++,ze++)Me[ze]=we[ve];return Me}var z=function(){function Re(){}return Re.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Re.setAttributes=function(ne,fe){for(var Me=0,ze=fe;Me<ze.length;Me++){var we=ze[Me],ve=we[0],Ie=we[1];ne.setAttribute(ve,Ie)}},Re.createRect=function(ne,fe,Me){var ze=document.createElementNS("http://www.w3.org/2000/svg","rect");return ze.setAttribute("width",ne.toString()),ze.setAttribute("height",fe.toString()),Me&&Re.setAttributes(ze,Me),ze},Re.createLine=function(ne,fe,Me,ze,we){var ve=document.createElementNS("http://www.w3.org/2000/svg","line");return ve.setAttribute("x1",ne.toString()),ve.setAttribute("y1",fe.toString()),ve.setAttribute("x2",Me.toString()),ve.setAttribute("y2",ze.toString()),we&&Re.setAttributes(ve,we),ve},Re.createPolygon=function(ne,fe){var Me=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Me.setAttribute("points",ne),fe&&Re.setAttributes(Me,fe),Me},Re.createCircle=function(ne,fe){var Me=document.createElementNS("http://www.w3.org/2000/svg","circle");return Me.setAttribute("cx",(ne/2).toString()),Me.setAttribute("cy",(ne/2).toString()),Me.setAttribute("r",ne.toString()),fe&&Re.setAttributes(Me,fe),Me},Re.createEllipse=function(ne,fe,Me){var ze=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ze.setAttribute("cx",(ne/2).toString()),ze.setAttribute("cy",(fe/2).toString()),ze.setAttribute("rx",(ne/2).toString()),ze.setAttribute("ry",(fe/2).toString()),Me&&Re.setAttributes(ze,Me),ze},Re.createGroup=function(ne){var fe=document.createElementNS("http://www.w3.org/2000/svg","g");return ne&&Re.setAttributes(fe,ne),fe},Re.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Re.createMarker=function(ne,fe,Me,ze,we,ve,Ie){var $e=document.createElementNS("http://www.w3.org/2000/svg","marker");return Re.setAttributes($e,[["id",ne],["orient",fe],["markerWidth",Me.toString()],["markerHeight",ze.toString()],["refX",we.toString()],["refY",ve.toString()]]),$e.appendChild(Ie),$e},Re.createText=function(ne){var fe=document.createElementNS("http://www.w3.org/2000/svg","text");return fe.setAttribute("x","0"),fe.setAttribute("y","0"),ne&&Re.setAttributes(fe,ne),fe},Re.createTSpan=function(ne,fe){var Me=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Me.textContent=ne,fe&&Re.setAttributes(Me,fe),Me},Re.createImage=function(ne){var fe=document.createElementNS("http://www.w3.org/2000/svg","image");return ne&&Re.setAttributes(fe,ne),fe},Re.createPoint=function(ne,fe){var Me=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Me.x=ne,Me.y=fe,Me},Re.createPath=function(ne,fe){var Me=document.createElementNS("http://www.w3.org/2000/svg","path");return Me.setAttribute("d",ne),fe&&Re.setAttributes(Me,fe),Me},Re}(),E=function(){function Re(){}return Re.addKey=function(ne){Re.key=ne},Object.defineProperty(Re,"isLicensed",{get:function(){return!!Re.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Re.key)},enumerable:!1,configurable:!0}),Re}(),ie=function(){function Re(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Re.prototype.rasterize=function(ne,fe,Me){var ze=this;return new Promise(function(we){var ve=Me!==void 0?Me:document.createElement("canvas");ne===null&&(ze.markersOnly=!0,ze.naturalSize=!1);var Ie=document.createElementNS("http://www.w3.org/2000/svg","svg");Ie.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ie.setAttribute("width",fe.width.baseVal.valueAsString),Ie.setAttribute("height",fe.height.baseVal.valueAsString),Ie.setAttribute("viewBox","0 0 "+fe.viewBox.baseVal.width.toString()+" "+fe.viewBox.baseVal.height.toString()),Ie.innerHTML=fe.innerHTML,ze.naturalSize===!0?(Ie.width.baseVal.value=ne.naturalWidth,Ie.height.baseVal.value=ne.naturalHeight):ze.width!==void 0&&ze.height!==void 0&&(Ie.width.baseVal.value=ze.width,Ie.height.baseVal.value=ze.height),ve.width=Ie.width.baseVal.value,ve.height=Ie.height.baseVal.value;var $e=Ie.outerHTML,Ge=ve.getContext("2d");ze.markersOnly!==!0&&Ge.drawImage(ne,0,0,ve.width,ve.height);var Je=window.URL,ut=new Image(ve.width,ve.height);ut.setAttribute("crossOrigin","anonymous");var lt=new Blob([$e],{type:"image/svg+xml"}),vt=Je.createObjectURL(lt);ut.onload=function(){Ge.drawImage(ut,0,0),Je.revokeObjectURL(vt);var ct=ve.toDataURL(ze.imageType,ze.imageQuality);we(ct)},ut.src=vt})},Re}(),oe=function(){},ee=function(){function Re(ne){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ne+"_"}return Object.defineProperty(Re.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Re.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(Re.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Re.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},Re.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)},Re.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 ce("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ce("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new ce("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new x("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new x("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Re.prototype.removeStyleSheet=function(){var ne;this.styleSheet&&(((ne=this.styleSheetRoot)!==null&&ne!==void 0?ne:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Re}(),ce=function(Re,ne){this.selector=Re,this.style=ne},x=function(Re,ne){this.localName=Re,this.style=ne},ae=function(){function Re(ne,fe,Me,ze,we){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ne,this.displayMode=fe,this.markerItems=Me,this.uiStyleSettings=ze,this.styles=we,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Re.prototype.show=function(ne){var fe=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 Me=document.createElement("div");Me.className=this.toolbarBlockStyleClass.name,Me.style.whiteSpace="nowrap",this.uiContainer.appendChild(Me),this.addActionButton(Me,'<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(Me,'<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(Me,'<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(Me,'<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(Me,'<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(Me,'<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(Me,'<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(Me,'<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(we){var ve=document.createElement("div");ve.className=""+fe.toolbarButtonStyleClass.name,ve.setAttribute("data-type-name",we.typeName),ve.innerHTML=we.icon,ve.addEventListener("click",function(){fe.markerToolbarButtonClicked(ve,we)}),fe.buttons.push(ve),fe.markerButtons.push(ve)}),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 ze=document.createElement("div");ze.className=this.toolbarBlockStyleClass.name,ze.style.whiteSpace="nowrap",ze.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ze),this.addActionButton(ze,'<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(ze,'<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()},Re.prototype.addButtonClickListener=function(ne){this.buttonClickListeners.push(ne)},Re.prototype.removeButtonClickListener=function(ne){this.buttonClickListeners.indexOf(ne)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ne),1)},Re.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Re.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 fe=0;fe<this.markerButtons.length;fe++)fe<ne||fe===ne&&this.markerButtons.length-1===ne?this.markerButtonBlock.appendChild(this.markerButtons[fe]):(fe===ne&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[fe]))}},Re.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")},Re.prototype.resetButtonStyles=function(){var ne=this;this.buttons.forEach(function(fe){fe.className=fe.className.replace(ne.uiStyleSettings.toolbarButtonStyleColorsClassName?ne.uiStyleSettings.toolbarButtonStyleColorsClassName:ne.toolbarButtonStyleColorsClass.name,"").trim(),fe.className=fe.className.replace(ne.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ne.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ne.toolbarActiveButtonStyleColorsClass.name,"").trim(),fe.className+=" "+(ne.uiStyleSettings.toolbarButtonStyleColorsClassName?ne.uiStyleSettings.toolbarButtonStyleColorsClassName:ne.toolbarButtonStyleColorsClass.name)})},Re.prototype.addActionButton=function(ne,fe,Me){var ze=this,we=document.createElement("div");switch(we.className=""+this.toolbarButtonStyleClass.name,we.innerHTML=fe,we.setAttribute("data-action",Me),we.addEventListener("click",function(){ze.actionToolbarButtonClicked(we,Me)}),Me){case"select":we.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":we.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":we.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":we.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":we.style.fill=this.uiStyleSettings.closeButtonColor}ne.appendChild(we),this.buttons.push(we)},Re.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new x("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 x("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new x("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new x("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 x("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var ne=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new x("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 x("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new x("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ce("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new ce("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},Re.prototype.markerToolbarButtonClicked=function(ne,fe){this.setActiveButton(ne),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Me){return Me("marker",fe)}),this.markerButtonOverflowBlock.style.display="none"},Re.prototype.actionToolbarButtonClicked=function(ne,fe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Me){return Me("action",fe)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Re.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)},Re.prototype.setActiveMarkerButton=function(ne){var fe=this.markerButtons.find(function(Me){return Me.getAttribute("data-type-name")===ne});fe&&this.setActiveButton(fe)},Re.prototype.setCurrentMarker=function(ne){var fe=this;this.currentMarker=ne,this.buttons.filter(function(Me){return/delete|notes/.test(Me.getAttribute("data-action"))}).forEach(function(Me){fe.currentMarker===void 0?(Me.style.fillOpacity="0.4",Me.style.pointerEvents="none"):(Me.style.fillOpacity="1",Me.style.pointerEvents="all")})},Re}(),re=function(){function Re(ne,fe,Me,ze){this.panels=[],this.panelButtons=[],this.markerjsContainer=ne,this.displayMode=fe,this.uiStyleSettings=Me,this.styles=ze,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Re.prototype.addStyles=function(){var ne;this.toolboxStyleClass=this.styles.addClass(new x("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 x("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var fe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new x("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new x("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new x("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 x("toolbox-panel-row_colors",`
background-color: `+((ne=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ne!==void 0?ne:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new x("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*fe)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*fe)+`px;
padding: `+fe+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new x("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new x("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new ce("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ce("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},Re.prototype.show=function(ne){var fe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ne,this.uiContainer.className=this.toolboxStyleClass.name+" "+((fe=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&fe!==void 0?fe:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Re.prototype.setPanelButtons=function(ne){var fe,Me,ze=this;this.panels=ne,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((fe=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&fe!==void 0?fe:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Me=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Me!==void 0?Me:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(we){var ve;we.uiStyleSettings=ze.uiStyleSettings;var Ie=document.createElement("div");Ie.className=ze.toolboxButtonStyleClass.name+" "+((ve=ze.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ve!==void 0?ve:ze.toolboxButtonStyleColorsClass.name),Ie.innerHTML=we.icon,Ie.title=we.title,Ie.addEventListener("click",function(){ze.panelButtonClick(we)}),ze.panelButtons.push(Ie),ze.buttonRow.appendChild(Ie)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Re.prototype.panelButtonClick=function(ne){var fe=this,Me=-1;if(ne!==this.activePanel){Me=this.panels.indexOf(ne),this.panelRow.innerHTML="";var ze=ne.getUi();ze.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ze),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(){fe.displayMode==="inline"?fe.panelRow.style.display="none":fe.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(we,ve){var Ie,$e;we.className=fe.toolboxButtonStyleClass.name+" "+(ve===Me?""+((Ie=fe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ie!==void 0?Ie:fe.toolboxActiveButtonStyleColorsClass.name):""+(($e=fe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&$e!==void 0?$e:fe.toolboxButtonStyleColorsClass.name))})},Re}(),se=function(Re,ne){this.title=Re,this.icon=ne},ue=function(Re){function ne(fe,Me,ze,we){var ve=Re.call(this,fe,we||'<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 ve.colors=[],ve.addTransparent=!1,ve.colorBoxes=[],ve.colors=Me,ve.currentColor=ze,ve.setCurrentColor=ve.setCurrentColor.bind(ve),ve.getColorBox=ve.getColorBox.bind(ve),ve}return Ot(ne,Re),ne.prototype.getUi=function(){var fe=this,Me=document.createElement("div");return Me.style.overflow="hidden",Me.style.whiteSpace="nowrap",this.colors.forEach(function(ze){var we=fe.getColorBox(ze);Me.appendChild(we),fe.colorBoxes.push(we)}),Me},ne.prototype.getColorBox=function(fe){var Me=this,ze=this.uiStyleSettings.toolbarHeight/4,we=this.uiStyleSettings.toolbarHeight-ze,ve=document.createElement("div");ve.style.display="inline-block",ve.style.boxSizing="content-box",ve.style.width=we-2+"px",ve.style.height=we-2+"px",ve.style.padding="1px",ve.style.marginRight="2px",ve.style.marginBottom="2px",ve.style.borderWidth="2px",ve.style.borderStyle="solid",ve.style.borderRadius=(we+2)/2+"px",ve.style.borderColor=fe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ve.addEventListener("click",function(){Me.setCurrentColor(fe,ve)});var Ie=document.createElement("div");return Ie.style.display="inline-block",Ie.style.width=we-2+"px",Ie.style.height=we-2+"px",Ie.style.backgroundColor=fe,Ie.style.borderRadius=we/2+"px",fe==="transparent"&&(Ie.style.fill=this.uiStyleSettings.toolboxAccentColor,Ie.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>`),ve.appendChild(Ie),ve},ne.prototype.setCurrentColor=function(fe,Me){var ze=this;this.currentColor=fe,this.colorBoxes.forEach(function(we){we.style.borderColor=we===Me?ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(fe)},ne}(se),pe=function(){function Re(ne,fe,Me){this._state="new",this._isSelected=!1,this._container=ne,this._overlayContainer=fe,this.globalSettings=Me,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Re.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Re.prototype.ownsTarget=function(ne){return!1},Object.defineProperty(Re.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Re.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Re.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Re.prototype.pointerDown=function(ne,fe){},Re.prototype.dblClick=function(ne,fe){},Re.prototype.manipulate=function(ne){},Re.prototype.pointerUp=function(ne){this.stateChanged()},Re.prototype.dispose=function(){},Re.prototype.addMarkerVisualToContainer=function(ne){this.container.childNodes.length>0?this.container.insertBefore(ne,this.container.childNodes[0]):this.container.appendChild(ne)},Re.prototype.getState=function(){return{typeName:Re.typeName,state:this.state,notes:this.notes}},Re.prototype.restoreState=function(ne){this._state=ne.state,this.notes=ne.notes},Re.prototype.scale=function(ne,fe){},Re.prototype.colorChanged=function(ne){this.onColorChanged&&this.onColorChanged(ne),this.stateChanged()},Re.prototype.fillColorChanged=function(ne){this.onFillColorChanged&&this.onFillColorChanged(ne),this.stateChanged()},Re.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)}},Re.typeName="MarkerBase",Re}(),he=function(){function Re(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Re.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},Re}(),ye=function(){function Re(){this.GRIP_SIZE=10,this.visual=z.createGroup(),this.visual.appendChild(z.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(z.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Re.prototype.ownsTarget=function(ne){return ne===this.visual||ne===this.visual.childNodes[0]||ne===this.visual.childNodes[1]},Re}(),ge=function(){function Re(){}return Re.toITransformMatrix=function(ne){return{a:ne.a,b:ne.b,c:ne.c,d:ne.d,e:ne.e,f:ne.f}},Re.toSVGMatrix=function(ne,fe){return ne.a=fe.a,ne.b=fe.b,ne.c=fe.c,ne.d=fe.d,ne.e=fe.e,ne.f=fe.f,ne},Re}(),xe=function(Re){function ne(fe,Me,ze){var we=Re.call(this,fe,Me,ze)||this;return we.left=0,we.top=0,we.width=0,we.height=0,we.defaultSize={x:50,y:20},we.offsetX=0,we.offsetY=0,we.rotationAngle=0,we.CB_DISTANCE=10,we._suppressMarkerCreateEvent=!1,we.container.transform.baseVal.appendItem(z.createTransform()),we.setupControlBox(),we}return Ot(ne,Re),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(fe){this._visual=fe;var Me=z.createTransform();this._visual.transform.baseVal.appendItem(Me)},enumerable:!1,configurable:!0}),ne.prototype.ownsTarget=function(fe){return!!Re.prototype.ownsTarget.call(this,fe)||!!(this.controlGrips.findGripByVisual(fe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(fe))},ne.prototype.pointerDown=function(fe,Me){Re.prototype.pointerDown.call(this,fe,Me),this.state==="new"&&(this.left=fe.x,this.top=fe.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ze=this.unrotatePoint(fe);if(this.manipulationStartX=ze.x,this.manipulationStartY=ze.y,this.offsetX=ze.x-this.left,this.offsetY=ze.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Me),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Me)){this.activeGrip=this.rotatorGrip;var we=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=we.x-this.width/2,this.top=we.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ve=this.container.transform.baseVal.getItem(0);ve.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ve,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ne.prototype.pointerUp=function(fe){var Me=this.state;Re.prototype.pointerUp.call(this,fe),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(fe),this._state="select",Me==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ne.prototype.moveVisual=function(fe){this.visual.style.transform="translate("+fe.x+"px, "+fe.y+"px)"},ne.prototype.manipulate=function(fe){var Me=this.unrotatePoint(fe);this.state==="creating"?this.resize(fe):this.state==="move"?(this.left=this.manipulationStartLeft+(Me.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Me.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Me):this.state==="rotate"&&this.rotate(fe)},ne.prototype.resize=function(fe){var Me=this.manipulationStartLeft,ze=this.manipulationStartWidth,we=this.manipulationStartTop,ve=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Me=this.manipulationStartLeft+fe.x-this.manipulationStartX,ze=this.manipulationStartWidth+this.manipulationStartLeft-Me;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ze=this.manipulationStartWidth+fe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:we=this.manipulationStartTop+fe.y-this.manipulationStartY,ve=this.manipulationStartHeight+this.manipulationStartTop-we;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ve=this.manipulationStartHeight+fe.y-this.manipulationStartY}ze>=0?(this.left=Me,this.width=ze):(this.left=Me+ze,this.width=-ze),ve>=0?(this.top=we,this.height=ve):(this.top=we+ve,this.height=-ve),this.setSize()},ne.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ne.prototype.rotate=function(fe){if(Math.abs(fe.x-this.centerX)>.1){var Me=Math.sign(fe.x-this.centerX);this.rotationAngle=180*Math.atan((fe.y-this.centerY)/(fe.x-this.centerX))/Math.PI+90*Me,this.applyRotation()}},ne.prototype.applyRotation=function(){var fe=this.container.transform.baseVal.getItem(0);fe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(fe,0)},ne.prototype.rotatePoint=function(fe){if(this.rotationAngle===0)return fe;var Me=this.container.getCTM(),ze=z.createPoint(fe.x,fe.y);return{x:(ze=ze.matrixTransform(Me)).x,y:ze.y}},ne.prototype.unrotatePoint=function(fe){if(this.rotationAngle===0)return fe;var Me=this.container.getCTM();Me=Me.inverse();var ze=z.createPoint(fe.x,fe.y);return{x:(ze=ze.matrixTransform(Me)).x,y:ze.y}},ne.prototype.select=function(){Re.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ne.prototype.deselect=function(){Re.prototype.deselect.call(this),this.controlBox.style.display="none"},ne.prototype.setupControlBox=function(){this.controlBox=z.createGroup();var fe=z.createTransform();fe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(fe),this.container.appendChild(this.controlBox),this.controlRect=z.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=z.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 he,this.addControlGrips(),this.controlBox.style.display="none"},ne.prototype.adjustControlBox=function(){var fe=this.controlBox.transform.baseVal.getItem(0);fe.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(fe,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 fe=new ye;return fe.visual.transform.baseVal.appendItem(z.createTransform()),this.controlBox.appendChild(fe.visual),fe},ne.prototype.positionGrips=function(){var fe=this.controlGrips.topLeft.GRIP_SIZE,Me=-fe/2,ze=Me,we=(this.width+this.CB_DISTANCE)/2-fe/2,ve=(this.height+this.CB_DISTANCE)/2-fe/2,Ie=this.height+this.CB_DISTANCE-fe/2,$e=this.width+this.CB_DISTANCE-fe/2;this.positionGrip(this.controlGrips.topLeft.visual,Me,ze),this.positionGrip(this.controlGrips.topCenter.visual,we,ze),this.positionGrip(this.controlGrips.topRight.visual,$e,ze),this.positionGrip(this.controlGrips.centerLeft.visual,Me,ve),this.positionGrip(this.controlGrips.centerRight.visual,$e,ve),this.positionGrip(this.controlGrips.bottomLeft.visual,Me,Ie),this.positionGrip(this.controlGrips.bottomCenter.visual,we,Ie),this.positionGrip(this.controlGrips.bottomRight.visual,$e,Ie),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,we,ze-3*this.CB_DISTANCE)},ne.prototype.positionGrip=function(fe,Me,ze){var we=fe.transform.baseVal.getItem(0);we.setTranslate(Me,ze),fe.transform.baseVal.replaceItem(we,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:ge.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ge.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Re.prototype.getState.call(this))},ne.prototype.restoreState=function(fe){Re.prototype.restoreState.call(this,fe);var Me=fe;this.left=Me.left,this.top=Me.top,this.width=Me.width,this.height=Me.height,this.rotationAngle=Me.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ge.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Me.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ge.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Me.containerTransformMatrix))},ne.prototype.scale=function(fe,Me){Re.prototype.scale.call(this,fe,Me);var ze=this.rotatePoint({x:this.left,y:this.top}),we=this.unrotatePoint({x:ze.x*fe,y:ze.y*Me});this.left=we.x,this.top=we.y,this.width=this.width*fe,this.height=this.height*Me,this.adjustControlBox()},ne}(pe),ke=function(Re){function ne(fe,Me,ze){var we=Re.call(this,fe,Me,ze)||this;return we.fillColor="transparent",we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.opacity=1,we.setStrokeColor=we.setStrokeColor.bind(we),we.setFillColor=we.setFillColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.createVisual=we.createVisual.bind(we),we}return Ot(ne,Re),ne.prototype.ownsTarget=function(fe){return!(!Re.prototype.ownsTarget.call(this,fe)&&fe!==this.visual)},ne.prototype.createVisual=function(){this.visual=z.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(fe,Me){Re.prototype.pointerDown.call(this,fe,Me),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},ne.prototype.manipulate=function(fe){Re.prototype.manipulate.call(this,fe)},ne.prototype.resize=function(fe){Re.prototype.resize.call(this,fe),this.setSize()},ne.prototype.setSize=function(){Re.prototype.setSize.call(this),z.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ne.prototype.pointerUp=function(fe){Re.prototype.pointerUp.call(this,fe),this.setSize()},ne.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.visual&&z.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(fe),this.stateChanged()},ne.prototype.setFillColor=function(fe){this.fillColor=fe,this.visual&&z.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ne.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.visual&&z.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.visual&&z.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},Re.prototype.getState.call(this))},ne.prototype.restoreState=function(fe){var Me=fe;this.fillColor=Me.fillColor,this.strokeColor=Me.strokeColor,this.strokeWidth=Me.strokeWidth,this.strokeDasharray=Me.strokeDasharray,this.opacity=Me.opacity,this.createVisual(),Re.prototype.restoreState.call(this,fe),this.setSize()},ne.prototype.scale=function(fe,Me){Re.prototype.scale.call(this,fe,Me),this.setSize()},ne.title="Rectangle marker",ne}(xe),De=function(Re){function ne(fe,Me,ze,we){var ve=Re.call(this,fe,we||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ve.widths=[],ve.widthBoxes=[],ve.widths=Me,ve.currentWidth=ze,ve.setCurrentWidth=ve.setCurrentWidth.bind(ve),ve}return Ot(ne,Re),ne.prototype.getUi=function(){var fe=this,Me=document.createElement("div");return Me.style.display="flex",Me.style.overflow="hidden",Me.style.flexGrow="2",this.widths.forEach(function(ze){var we=document.createElement("div");we.style.display="flex",we.style.flexGrow="2",we.style.alignItems="center",we.style.justifyContent="space-between",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.borderColor=ze===fe.currentWidth?fe.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){fe.setCurrentWidth(ze,we)}),Me.appendChild(we);var ve=document.createElement("div");ve.innerText=ze.toString(),ve.style.marginRight="5px",we.appendChild(ve);var Ie=document.createElement("div");Ie.style.minHeight="20px",Ie.style.flexGrow="2",Ie.style.display="flex",Ie.style.alignItems="center";var $e=document.createElement("hr");$e.style.minWidth="20px",$e.style.border="0px",$e.style.borderTop=ze+"px solid "+fe.uiStyleSettings.toolboxColor,$e.style.flexGrow="2",Ie.appendChild($e),we.appendChild(Ie),fe.widthBoxes.push(we)}),Me},ne.prototype.setCurrentWidth=function(fe,Me){var ze=this;this.currentWidth=fe,this.widthBoxes.forEach(function(we){we.style.borderColor=we===Me?ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ne}(se),Be=function(Re){function ne(fe,Me,ze,we){var ve=Re.call(this,fe,we||'<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 ve.styles=[],ve.styleBoxes=[],ve.styles=Me,ve.currentStyle=ze,ve.setCurrentStyle=ve.setCurrentStyle.bind(ve),ve}return Ot(ne,Re),ne.prototype.getUi=function(){var fe=this,Me=document.createElement("div");return Me.style.display="flex",Me.style.overflow="hidden",Me.style.flexGrow="2",this.styles.forEach(function(ze){var we=document.createElement("div");we.style.display="flex",we.style.alignItems="center",we.style.justifyContent="space-between",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.overflow="hidden",we.style.maxWidth=100/fe.styles.length-5+"%",we.style.borderColor=ze===fe.currentStyle?fe.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){fe.setCurrentStyle(ze,we)}),Me.appendChild(we);var ve=document.createElement("div");ve.style.minHeight="20px",ve.style.flexGrow="2",ve.style.overflow="hidden";var Ie=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+fe.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ze!==""?'stroke-dasharray="'+ze+'"':"")+` />
</svg>`;ve.innerHTML=Ie,we.appendChild(ve),fe.styleBoxes.push(we)}),Me},ne.prototype.setCurrentStyle=function(fe,Me){var ze=this;this.currentStyle=fe,this.styleBoxes.forEach(function(we){we.style.borderColor=we===Me?ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ne}(se),Ae=function(Re){function ne(fe,Me,ze){var we=Re.call(this,fe,Me,ze)||this;return we.strokeColor=ze.defaultColor,we.strokeWidth=ze.defaultStrokeWidth,we.strokeDasharray=ze.defaultStrokeDasharray,we.strokePanel=new ue("Line color",ze.defaultColorSet,ze.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.strokeWidthPanel=new De("Line width",ze.defaultStrokeWidths,ze.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Be("Line style",ze.defaultStrokeDasharrays,ze.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we}return Ot(ne,Re),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var fe=Re.prototype.getState.call(this);return fe.typeName=ne.typeName,fe},ne.typeName="FrameMarker",ne.title="Frame marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ne}(ke),Se=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"},Ee=function(Re){function ne(fe,Me,ze){var we=Re.call(this,fe,Me,ze)||this;return we.x1=0,we.y1=0,we.x2=0,we.y2=0,we.defaultLength=50,we.manipulationStartX=0,we.manipulationStartY=0,we.manipulationStartX1=0,we.manipulationStartY1=0,we.manipulationStartX2=0,we.manipulationStartY2=0,we.setupControlBox(),we}return Ot(ne,Re),ne.prototype.ownsTarget=function(fe){return!!Re.prototype.ownsTarget.call(this,fe)||!(!this.grip1.ownsTarget(fe)&&!this.grip2.ownsTarget(fe))},ne.prototype.pointerDown=function(fe,Me){Re.prototype.pointerDown.call(this,fe,Me),this.manipulationStartX=fe.x,this.manipulationStartY=fe.y,this.state==="new"&&(this.x1=fe.x,this.y1=fe.y,this.x2=fe.x,this.y2=fe.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(Me)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Me)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ne.prototype.pointerUp=function(fe){var Me=this.state;Re.prototype.pointerUp.call(this,fe),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(fe),this._state="select",Me==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ne.prototype.adjustVisual=function(){},ne.prototype.manipulate=function(fe){this.state==="creating"?this.resize(fe):this.state==="move"?(this.x1=this.manipulationStartX1+fe.x-this.manipulationStartX,this.y1=this.manipulationStartY1+fe.y-this.manipulationStartY,this.x2=this.manipulationStartX2+fe.x-this.manipulationStartX,this.y2=this.manipulationStartY2+fe.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(fe)},ne.prototype.resize=function(fe){switch(this.activeGrip){case this.grip1:this.x1=fe.x,this.y1=fe.y;break;case this.grip2:case void 0:this.x2=fe.x,this.y2=fe.y}this.adjustVisual(),this.adjustControlBox()},ne.prototype.select=function(){Re.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ne.prototype.deselect=function(){Re.prototype.deselect.call(this),this.controlBox.style.display="none"},ne.prototype.setupControlBox=function(){this.controlBox=z.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 fe=new ye;return fe.visual.transform.baseVal.appendItem(z.createTransform()),this.controlBox.appendChild(fe.visual),fe},ne.prototype.positionGrips=function(){var fe=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-fe/2,this.y1-fe/2),this.positionGrip(this.grip2.visual,this.x2-fe/2,this.y2-fe/2)},ne.prototype.positionGrip=function(fe,Me,ze){var we=fe.transform.baseVal.getItem(0);we.setTranslate(Me,ze),fe.transform.baseVal.replaceItem(we,0)},ne.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Re.prototype.getState.call(this))},ne.prototype.restoreState=function(fe){Re.prototype.restoreState.call(this,fe);var Me=fe;this.x1=Me.x1,this.y1=Me.y1,this.x2=Me.x2,this.y2=Me.y2},ne.prototype.scale=function(fe,Me){Re.prototype.scale.call(this,fe,Me),this.x1=this.x1*fe,this.y1=this.y1*Me,this.x2=this.x2*fe,this.y2=this.y2*Me,this.adjustVisual(),this.adjustControlBox()},ne}(pe),Oe=function(Re){function ne(fe,Me,ze){var we=Re.call(this,fe,Me,ze)||this;return we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.setStrokeColor=we.setStrokeColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.strokeColor=ze.defaultColor,we.strokeWidth=ze.defaultStrokeWidth,we.strokeDasharray=ze.defaultStrokeDasharray,we.strokePanel=new ue("Line color",ze.defaultColorSet,ze.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.strokeWidthPanel=new De("Line width",ze.defaultStrokeWidths,ze.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Be("Line style",ze.defaultStrokeDasharrays,ze.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we}return Ot(ne,Re),ne.prototype.ownsTarget=function(fe){return!(!Re.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.selectorLine&&fe!==this.visibleLine)},ne.prototype.createVisual=function(){this.visual=z.createGroup(),this.selectorLine=z.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=z.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(fe,Me){Re.prototype.pointerDown.call(this,fe,Me),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()),z.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),z.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),z.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ne.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.adjustVisual(),this.colorChanged(fe)},ne.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.adjustVisual()},ne.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,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 fe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Re.prototype.getState.call(this));return fe.typeName=ne.typeName,fe},ne.prototype.restoreState=function(fe){Re.prototype.restoreState.call(this,fe);var Me=fe;this.strokeColor=Me.strokeColor,this.strokeWidth=Me.strokeWidth,this.strokeDasharray=Me.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}(Ee),Pe=function(Re){function ne(fe,Me,ze,we){var ve=Re.call(this,fe,we||'<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 ve.fonts=[],ve.fontBoxes=[],ve.fonts=Me,ve.currentFont=ze,ve.setCurrentFont=ve.setCurrentFont.bind(ve),ve}return Ot(ne,Re),ne.prototype.getUi=function(){var fe=this,Me=document.createElement("div");return Me.style.overflow="hidden",Me.style.flexGrow="2",this.fonts.forEach(function(ze){var we=document.createElement("div");we.style.display="inline-block",we.style.alignItems="center",we.style.justifyContent="space-between",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.overflow="hidden",we.style.maxWidth=100/fe.fonts.length-5+"%",we.style.borderColor=ze===fe.currentFont?fe.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){fe.setCurrentFont(ze,we)}),Me.appendChild(we);var ve=document.createElement("div");ve.style.display="flex",ve.style.minHeight="20px",ve.style.flexGrow="2",ve.style.fontFamily=ze,ve.style.overflow="hidden";var Ie=document.createElement("div");Ie.style.whiteSpace="nowrap",Ie.style.overflow="hidden",Ie.style.textOverflow="ellipsis",Ie.innerHTML="The quick brown fox jumps over the lazy dog",ve.appendChild(Ie),we.appendChild(ve),fe.fontBoxes.push(we)}),Me},ne.prototype.setCurrentFont=function(fe,Me){var ze=this;this.currentFont=fe,this.fontBoxes.forEach(function(we){we.style.borderColor=we===Me?ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ne}(se),Le=function(Re){function ne(fe,Me,ze){var we=Re.call(this,fe,Me,ze)||this;return we.color="transparent",we.padding=5,we.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",we.text=we.DEFAULT_TEXT,we.isMoved=!1,we.color=ze.defaultColor,we.fontFamily=ze.defaultFontFamily,we.defaultSize={x:100,y:30},we.setColor=we.setColor.bind(we),we.setFont=we.setFont.bind(we),we.renderText=we.renderText.bind(we),we.sizeText=we.sizeText.bind(we),we.textEditDivClicked=we.textEditDivClicked.bind(we),we.showTextEditor=we.showTextEditor.bind(we),we.setSize=we.setSize.bind(we),we.positionTextEditor=we.positionTextEditor.bind(we),we.colorPanel=new ue("Color",ze.defaultColorSet,ze.defaultColor),we.colorPanel.onColorChanged=we.setColor,we.fontFamilyPanel=new Pe("Font",ze.defaultFontFamilies,ze.defaultFontFamily),we.fontFamilyPanel.onFontChanged=we.setFont,we}return Ot(ne,Re),ne.prototype.ownsTarget=function(fe){if(Re.prototype.ownsTarget.call(this,fe)||fe===this.visual||fe===this.textElement||fe===this.bgRectangle)return!0;var Me=!1;return this.textElement.childNodes.forEach(function(ze){ze===fe&&(Me=!0)}),Me},ne.prototype.createVisual=function(){this.visual=z.createGroup(),this.bgRectangle=z.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=z.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(z.createTransform()),this.textElement.transform.baseVal.appendItem(z.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ne.prototype.pointerDown=function(fe,Me){Re.prototype.pointerDown.call(this,fe,Me),this.isMoved=!1,this.pointerDownPoint=fe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},ne.prototype.renderText=function(){var fe=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(Me){fe.textElement.appendChild(z.createTSpan(Me.trim()===""?" ":Me.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ne.prototype.getTextScale=function(){var fe=this.textElement.getBBox(),Me=1;if(fe.width>0&&fe.height>0){var ze=(1*this.width-this.width*this.padding*2/100)/fe.width,we=(1*this.height-this.height*this.padding*2/100)/fe.height;Me=Math.min(ze,we)}return Me},ne.prototype.getTextPosition=function(fe){var Me=this.textElement.getBBox(),ze=0,we=0;return Me.width>0&&Me.height>0&&(ze=(this.width-Me.width*fe)/2,we=this.height/2-Me.height*fe/2),{x:ze,y:we}},ne.prototype.sizeText=function(){var fe=this.textElement.getBBox(),Me=this.getTextScale(),ze=this.getTextPosition(Me);ze.y-=fe.y*Me,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ze.x+"px, "+ze.y+"px) scale("+Me+", "+Me+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ze.x,ze.y),this.textElement.transform.baseVal.getItem(1).setScale(Me,Me))},ne.prototype.manipulate=function(fe){Re.prototype.manipulate.call(this,fe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(fe.x-this.pointerDownPoint.x)>5||Math.abs(fe.y-this.pointerDownPoint.y)>5)},ne.prototype.resize=function(fe){Re.prototype.resize.call(this,fe),this.isMoved=!0,this.setSize(),this.sizeText()},ne.prototype.setSize=function(){Re.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(z.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),z.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ne.prototype.pointerUp=function(fe){var Me=this.state;Me==="creating"&&(this._suppressMarkerCreateEvent=!0),Re.prototype.pointerUp.call(this,fe),this.setSize(),(Me==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ne.prototype.showTextEditor=function(){var fe=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(Me){Me.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Me=Number.parseFloat(fe.textEditor.style.fontSize);fe.textEditor.clientWidth>=Number.parseInt(fe.textEditor.style.maxWidth)&&Me>.9;)Me-=.1,fe.textEditor.style.fontSize=Math.max(Me,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Me){Me.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Me){if(Me.clipboardData){var ze=Me.clipboardData.getData("text"),we=window.getSelection();if(!we.rangeCount)return!1;we.deleteFromDocument(),we.getRangeAt(0).insertNode(document.createTextNode(ze)),Me.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){fe.textEditDivClicked(fe.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 fe=this.getTextScale(),Me=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ze=this.textElement.getBBox(),we={x:ze.width*fe,y:ze.height*fe};Me.x-=we.x/2,Me.y-=we.y/2,this.textEditor.style.top=Me.y+"px",this.textEditor.style.left=Me.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Me.x+"px",this.textEditor.style.fontSize=Math.max(16*fe,12)+"px",this.textElement.style.display="none"}},ne.prototype.textEditDivClicked=function(fe){this.text=fe.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ne.prototype.select=function(){Re.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ne.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Re.prototype.deselect.call(this)},ne.prototype.dblClick=function(fe,Me){Re.prototype.dblClick.call(this,fe,Me),this.showTextEditor()},ne.prototype.setColor=function(fe){this.textElement&&z.setAttributes(this.textElement,[["fill",fe]]),this.color=fe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(fe)},ne.prototype.setFont=function(fe){this.textElement&&z.setAttributes(this.textElement,[["font-family",fe]]),this.fontFamily=fe,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 fe=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Re.prototype.getState.call(this));return fe.typeName=ne.typeName,fe},ne.prototype.restoreState=function(fe){var Me=fe;this.color=Me.color,this.fontFamily=Me.fontFamily,this.padding=Me.padding,this.text=Me.text,this.createVisual(),Re.prototype.restoreState.call(this,fe),this.setSize()},ne.prototype.scale=function(fe,Me){Re.prototype.scale.call(this,fe,Me),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}(xe),Ne=function(Re){function ne(fe,Me,ze){var we=Re.call(this,fe,Me,ze)||this;return we.color="transparent",we.lineWidth=3,we.drawing=!1,we.pixelRatio=1,we.color=ze.defaultColor,we.lineWidth=ze.defaultStrokeWidth,we.pixelRatio=ze.freehandPixelRatio,we.setColor=we.setColor.bind(we),we.addCanvas=we.addCanvas.bind(we),we.finishCreation=we.finishCreation.bind(we),we.setLineWidth=we.setLineWidth.bind(we),we.colorPanel=new ue("Color",ze.defaultColorSet,ze.defaultColor),we.colorPanel.onColorChanged=we.setColor,we.lineWidthPanel=new De("Line width",ze.defaultStrokeWidths,ze.defaultStrokeWidth),we.lineWidthPanel.onWidthChanged=we.setLineWidth,we}return Ot(ne,Re),ne.prototype.ownsTarget=function(fe){return!(!Re.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.drawingImage)},ne.prototype.createVisual=function(){this.visual=z.createGroup(),this.drawingImage=z.createImage(),this.visual.appendChild(this.drawingImage);var fe=z.createTransform();this.visual.transform.baseVal.appendItem(fe),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(fe,Me){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(fe.x,fe.y),this.drawing=!0):Re.prototype.pointerDown.call(this,fe,Me)},ne.prototype.manipulate=function(fe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(fe.x,fe.y),this.canvasContext.stroke()):Re.prototype.manipulate.call(this,fe)},ne.prototype.resize=function(fe){Re.prototype.resize.call(this,fe),z.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),z.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ne.prototype.pointerUp=function(fe){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Re.prototype.pointerUp.call(this,fe)},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(),Re.prototype.select.call(this)},ne.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Re.prototype.deselect.call(this)},ne.prototype.finishCreation=function(){for(var fe=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Me=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ze=Me[0],we=Me[1],ve=Me[2],Ie=Me[3],$e=!1,Ge=0;Ge<this.canvasElement.height;Ge++)for(var Je=0;Je<this.canvasElement.width;Je++)fe.data[Ge*this.canvasElement.width*4+4*Je+3]>0&&($e=!0,Ge<we&&(we=Ge),Je<ze&&(ze=Je),Ge>Ie&&(Ie=Ge),Je>ve&&(ve=Je));if($e){this.left=ze/this.pixelRatio,this.top=we/this.pixelRatio,this.width=(ve-ze)/this.pixelRatio,this.height=(Ie-we)/this.pixelRatio;var ut=document.createElement("canvas");ut.width=ve-ze,ut.height=Ie-we,ut.getContext("2d").putImageData(this.canvasContext.getImageData(ze,we,ve-ze,Ie-we),0,0),this.drawingImgUrl=ut.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ne.prototype.setDrawingImage=function(){z.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),z.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ne.prototype.setColor=function(fe){this.color=fe,this.colorChanged(fe)},ne.prototype.setLineWidth=function(fe){this.lineWidth=fe},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 fe=Object.assign({drawingImgUrl:this.drawingImgUrl},Re.prototype.getState.call(this));return fe.typeName=ne.typeName,fe},ne.prototype.restoreState=function(fe){this.createVisual(),Re.prototype.restoreState.call(this,fe),this.drawingImgUrl=fe.drawingImgUrl,this.setDrawingImage()},ne.prototype.scale=function(fe,Me){Re.prototype.scale.call(this,fe,Me),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}(xe),me=function(Re){function ne(fe,Me,ze){var we=Re.call(this,fe,ze||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return we.typeBoxes=[],we.currentType=Me,we.setCurrentType=we.setCurrentType.bind(we),we}return Ot(ne,Re),ne.prototype.getUi=function(){var fe=this,Me=document.createElement("div");Me.style.display="flex",Me.style.overflow="hidden",Me.style.flexGrow="2";for(var ze=function(Ie){var $e="both";switch(Ie){case 0:$e="both";break;case 1:$e="start";break;case 2:$e="end";break;case 3:$e="none"}var Ge=document.createElement("div");if(Ge.style.display="flex",Ge.style.flexGrow="2",Ge.style.alignItems="center",Ge.style.justifyContent="space-between",Ge.style.padding="5px",Ge.style.borderWidth="2px",Ge.style.borderStyle="solid",Ge.style.borderColor=$e===we.currentType?we.uiStyleSettings.toolboxAccentColor:"transparent",Ge.addEventListener("click",function(){fe.setCurrentType($e,Ge)}),Me.appendChild(Ge),$e==="both"||$e==="start"){var Je=document.createElement("div");Je.style.display="flex",Je.style.alignItems="center",Je.style.minHeight="20px",Je.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="`+(we.uiStyleSettings!==void 0?we.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Je.style.marginLeft="5px",Ge.appendChild(Je)}var ut=document.createElement("div");ut.style.display="flex",ut.style.alignItems="center",ut.style.minHeight="20px",ut.style.flexGrow="2";var lt=document.createElement("hr");if(lt.style.minWidth="20px",lt.style.border="0px",lt.style.borderTop="3px solid "+(we.uiStyleSettings!==void 0?we.uiStyleSettings.toolboxColor:"#eeeeee"),lt.style.flexGrow="2",ut.appendChild(lt),Ge.appendChild(ut),$e==="both"||$e==="end"){var vt=document.createElement("div");vt.style.display="flex",vt.style.alignItems="center",vt.style.minHeight="20px",vt.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="`+(we.uiStyleSettings!==void 0?we.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,vt.style.marginRight="5px",Ge.appendChild(vt)}we.typeBoxes.push(Ge)},we=this,ve=0;ve<4;ve++)ze(ve);return Me},ne.prototype.setCurrentType=function(fe,Me){var ze=this;this.currentType=fe,this.typeBoxes.forEach(function(we){we.style.borderColor=we===Me?ze.uiStyleSettings!==void 0?ze.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ne}(se),Ve=function(Re){function ne(fe,Me,ze){var we=Re.call(this,fe,Me,ze)||this;return we.arrowType="end",we.arrowBaseHeight=10,we.arrowBaseWidth=10,we.getArrowPoints=we.getArrowPoints.bind(we),we.setArrowType=we.setArrowType.bind(we),we.arrowTypePanel=new me("Arrow type","end"),we.arrowTypePanel.onArrowTypeChanged=we.setArrowType,we}return Ot(ne,Re),ne.prototype.ownsTarget=function(fe){return!(!Re.prototype.ownsTarget.call(this,fe)&&fe!==this.arrow1&&fe!==this.arrow2)},ne.prototype.getArrowPoints=function(fe,Me){var ze=this.arrowBaseWidth+2*this.strokeWidth,we=this.arrowBaseHeight+2*this.strokeWidth;return fe-ze/2+","+(Me+we/2)+" "+fe+","+(Me-we/2)+" "+(fe+ze/2)+","+(Me+we/2)},ne.prototype.createTips=function(){this.arrow1=z.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(z.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=z.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(z.createTransform()),this.visual.appendChild(this.arrow2)},ne.prototype.pointerDown=function(fe,Me){Re.prototype.pointerDown.call(this,fe,Me),this.state==="creating"&&this.createTips()},ne.prototype.adjustVisual=function(){if(Re.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",z.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),z.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var fe=0;Math.abs(this.x1-this.x2)>.1&&(fe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Me=this.arrow1.transform.baseVal.getItem(0);Me.setRotate(fe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Me,0);var ze=this.arrow2.transform.baseVal.getItem(0);ze.setRotate(fe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ze,0)}},ne.prototype.setArrowType=function(fe){this.arrowType=fe,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 fe=Object.assign({arrowType:this.arrowType},Re.prototype.getState.call(this));return fe.typeName=ne.typeName,fe},ne.prototype.restoreState=function(fe){Re.prototype.restoreState.call(this,fe);var Me=fe;this.arrowType=Me.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}(Oe),Ze=function(Re){function ne(fe,Me,ze){var we=Re.call(this,fe,Me,ze)||this;return we.fillColor=ze.defaultFillColor,we.strokeWidth=0,we.fillPanel=new ue("Color",ze.defaultColorSet,ze.defaultFillColor),we.fillPanel.onColorChanged=we.setFillColor,we}return Ot(ne,Re),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var fe=Re.prototype.getState.call(this);return fe.typeName=ne.typeName,fe},ne.typeName="CoverMarker",ne.title="Cover marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ne}(ke),We=function(Re){function ne(fe,Me,ze,we){var ve=Re.call(this,fe,we||'<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 ve.opacities=[],ve.opacityBoxes=[],ve.opacities=Me,ve.currentOpacity=ze,ve.setCurrentOpacity=ve.setCurrentOpacity.bind(ve),ve}return Ot(ne,Re),ne.prototype.getUi=function(){var fe=this,Me=document.createElement("div");return Me.style.display="flex",Me.style.overflow="hidden",Me.style.flexGrow="2",Me.style.justifyContent="space-between",this.opacities.forEach(function(ze){var we=document.createElement("div");we.style.display="flex",we.style.alignItems="center",we.style.justifyContent="center",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.borderColor=ze===fe.currentOpacity?fe.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){fe.setCurrentOpacity(ze,we)}),Me.appendChild(we);var ve=document.createElement("div");ve.innerText=100*ze+"%",we.appendChild(ve),fe.opacityBoxes.push(we)}),Me},ne.prototype.setCurrentOpacity=function(fe,Me){var ze=this;this.currentOpacity=fe,this.opacityBoxes.forEach(function(we){we.style.borderColor=we===Me?ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ne}(se),nt=function(Re){function ne(fe,Me,ze){var we=Re.call(this,fe,Me,ze)||this;return we.setOpacity=we.setOpacity.bind(we),we.fillColor=ze.defaultHighlightColor,we.strokeWidth=0,we.opacity=ze.defaultHighlightOpacity,we.fillPanel=new ue("Color",ze.defaultColorSet,we.fillColor),we.fillPanel.onColorChanged=we.setFillColor,we.opacityPanel=new We("Opacity",ze.defaultOpacitySteps,we.opacity),we.opacityPanel.onOpacityChanged=we.setOpacity,we}return Ot(ne,Re),ne.prototype.setOpacity=function(fe){this.opacity=fe,this.visual&&z.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 fe=Re.prototype.getState.call(this);return fe.typeName=ne.typeName,fe},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}(Ze),_e='<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>',Ue='<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>',tt=function(Re){function ne(fe,Me,ze){var we=Re.call(this,fe,Me,ze)||this;return we.bgColor="transparent",we.tipPosition={x:0,y:0},we.tipBase1Position={x:0,y:0},we.tipBase2Position={x:0,y:0},we.tipMoving=!1,we.color=ze.defaultStrokeColor,we.bgColor=ze.defaultFillColor,we.fontFamily=ze.defaultFontFamily,we.defaultSize={x:100,y:30},we.setBgColor=we.setBgColor.bind(we),we.getTipPoints=we.getTipPoints.bind(we),we.positionTip=we.positionTip.bind(we),we.setTipPoints=we.setTipPoints.bind(we),we.colorPanel=new ue("Text color",ze.defaultColorSet,we.color,_e),we.colorPanel.onColorChanged=we.setColor,we.bgColorPanel=new ue("Fill color",ze.defaultColorSet,we.bgColor,Ue),we.bgColorPanel.onColorChanged=we.setBgColor,we.fontFamilyPanel=new Pe("Font",ze.defaultFontFamilies,ze.defaultFontFamily),we.fontFamilyPanel.onFontChanged=we.setFont,we.tipGrip=new ye,we.tipGrip.visual.transform.baseVal.appendItem(z.createTransform()),we.controlBox.appendChild(we.tipGrip.visual),we}return Ot(ne,Re),ne.prototype.ownsTarget=function(fe){return Re.prototype.ownsTarget.call(this,fe)||this.tipGrip.ownsTarget(fe)||this.tip===fe},ne.prototype.createTip=function(){z.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=z.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ne.prototype.pointerDown=function(fe,Me){this.state==="new"&&Re.prototype.pointerDown.call(this,fe,Me),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Me)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Re.prototype.pointerDown.call(this,fe,Me)},ne.prototype.pointerUp=function(fe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Re.prototype.pointerUp.call(this,fe);else{var Me=this.state==="creating";Re.prototype.pointerUp.call(this,fe),this.setTipPoints(Me),this.positionTip()}},ne.prototype.manipulate=function(fe){if(this.tipMoving){var Me=this.unrotatePoint(fe);this.tipPosition={x:Me.x-this.manipulationStartLeft,y:Me.y-this.manipulationStartTop},this.positionTip()}else Re.prototype.manipulate.call(this,fe)},ne.prototype.setBgColor=function(fe){this.bgRectangle&&this.tip&&(z.setAttributes(this.bgRectangle,[["fill",fe]]),z.setAttributes(this.tip,[["fill",fe]])),this.bgColor=fe,this.fillColorChanged(fe)},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(fe){fe===void 0&&(fe=!1);var Me=Math.min(this.height/2,15),ze=this.height/5;fe&&(this.tipPosition={x:Me+ze/2,y:this.height+20});var we=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?we<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ze=this.width/5,Me=Math.min(this.width/2,15),this.tipBase1Position={x:Me,y:0},this.tipBase2Position={x:Me+ze,y:0}):(this.tipBase1Position={x:0,y:Me},this.tipBase2Position={x:0,y:Me+ze}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?we<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ze=this.width/5,Me=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Me-ze,y:0},this.tipBase2Position={x:this.width-Me,y:0}):(this.tipBase1Position={x:this.width,y:Me},this.tipBase2Position={x:this.width,y:Me+ze}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?we<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ze=this.width/5,Me=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Me-ze,y:this.height},this.tipBase2Position={x:this.width-Me,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Me-ze},this.tipBase2Position={x:this.width,y:this.height-Me}):we<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ze=this.width/5,Me=Math.min(this.width/2,15),this.tipBase1Position={x:Me,y:this.height},this.tipBase2Position={x:Me+ze,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Me},this.tipBase2Position={x:0,y:this.height-Me-ze})},ne.prototype.resize=function(fe){Re.prototype.resize.call(this,fe),this.positionTip()},ne.prototype.positionTip=function(){z.setAttributes(this.tip,[["points",this.getTipPoints()]]);var fe=this.tipGrip.visual.transform.baseVal.getItem(0);fe.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(fe,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(),Re.prototype.select.call(this)},ne.prototype.getState=function(){var fe=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Re.prototype.getState.call(this));return fe.typeName=ne.typeName,fe},ne.prototype.restoreState=function(fe){var Me=fe;this.bgColor=Me.bgColor,this.tipPosition=Me.tipPosition,Re.prototype.restoreState.call(this,fe),this.createTip(),this.setTipPoints()},ne.prototype.scale=function(fe,Me){Re.prototype.scale.call(this,fe,Me),this.tipPosition={x:this.tipPosition.x*fe,y:this.tipPosition.y*Me},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}(Le),rt=function(Re){function ne(fe,Me,ze){var we=Re.call(this,fe,Me,ze)||this;return we.fillColor="transparent",we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.opacity=1,we.strokeColor=ze.defaultColor,we.strokeWidth=ze.defaultStrokeWidth,we.strokeDasharray=ze.defaultStrokeDasharray,we.fillColor=ze.defaultFillColor,we.setStrokeColor=we.setStrokeColor.bind(we),we.setFillColor=we.setFillColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.setOpacity=we.setOpacity.bind(we),we.createVisual=we.createVisual.bind(we),we.strokePanel=new ue("Line color",be(ze.defaultColorSet,["transparent"]),ze.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.fillPanel=new ue("Fill color",be(ze.defaultColorSet,["transparent"]),we.fillColor,Ue),we.fillPanel.onColorChanged=we.setFillColor,we.strokeWidthPanel=new De("Line width",ze.defaultStrokeWidths,ze.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Be("Line style",ze.defaultStrokeDasharrays,ze.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we.opacityPanel=new We("Opacity",ze.defaultOpacitySteps,we.opacity),we.opacityPanel.onOpacityChanged=we.setOpacity,we}return Ot(ne,Re),ne.prototype.ownsTarget=function(fe){return!(!Re.prototype.ownsTarget.call(this,fe)&&fe!==this.visual)},ne.prototype.createVisual=function(){this.visual=z.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(fe,Me){Re.prototype.pointerDown.call(this,fe,Me),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},ne.prototype.manipulate=function(fe){Re.prototype.manipulate.call(this,fe)},ne.prototype.resize=function(fe){Re.prototype.resize.call(this,fe),this.setSize()},ne.prototype.setSize=function(){Re.prototype.setSize.call(this),z.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(fe){Re.prototype.pointerUp.call(this,fe),this.setSize()},ne.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.visual&&z.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(fe),this.stateChanged()},ne.prototype.setFillColor=function(fe){this.fillColor=fe,this.visual&&z.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(fe),this.stateChanged()},ne.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.visual&&z.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.visual&&z.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ne.prototype.setOpacity=function(fe){this.opacity=fe,this.visual&&z.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 fe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Re.prototype.getState.call(this));return fe.typeName=ne.typeName,fe},ne.prototype.restoreState=function(fe){var Me=fe;this.fillColor=Me.fillColor,this.strokeColor=Me.strokeColor,this.strokeWidth=Me.strokeWidth,this.strokeDasharray=Me.strokeDasharray,this.opacity=Me.opacity,this.createVisual(),Re.prototype.restoreState.call(this,fe),this.setSize()},ne.prototype.scale=function(fe,Me){Re.prototype.scale.call(this,fe,Me),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}(xe),et=function(Re){function ne(fe,Me,ze){return Re.call(this,fe,Me,ze)||this}return Ot(ne,Re),Object.defineProperty(ne.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ne.prototype.ownsTarget=function(fe){return!(!Re.prototype.ownsTarget.call(this,fe)&&fe!==this.tip1&&fe!==this.tip2)},ne.prototype.createTips=function(){this.tip1=z.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(z.createTransform()),this.visual.appendChild(this.tip1),this.tip2=z.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(z.createTransform()),this.visual.appendChild(this.tip2)},ne.prototype.pointerDown=function(fe,Me){Re.prototype.pointerDown.call(this,fe,Me),this.state==="creating"&&this.createTips()},ne.prototype.adjustVisual=function(){if(Re.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(z.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()]]),z.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 fe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Me=this.tip1.transform.baseVal.getItem(0);Me.setRotate(fe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Me,0);var ze=this.tip2.transform.baseVal.getItem(0);ze.setRotate(fe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ze,0)}},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var fe=Re.prototype.getState.call(this);return fe.typeName=ne.typeName,fe},ne.prototype.restoreState=function(fe){Re.prototype.restoreState.call(this,fe),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}(Oe),Ke=function(Re){function ne(fe,Me,ze){var we=Re.call(this,fe,Me,ze)||this;return we.strokePanel.colors=ze.defaultColorSet,we.fillColor="transparent",we}return Ot(ne,Re),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var fe=Re.prototype.getState.call(this);return fe.typeName=ne.typeName,fe},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}(rt),Ye=function(){function Re(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Re.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Re.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))},Re.prototype.replaceLastUndoStep=function(ne){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ne)},Re.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Re.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}},Re.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Re}(),Xe=function(Re){function ne(fe,Me,ze){var we=Re.call(this,fe,Me,ze)||this;return we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.curveX=0,we.curveY=0,we.manipulationStartCurveX=0,we.manipulationStartCurveY=0,we.setStrokeColor=we.setStrokeColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.positionGrips=we.positionGrips.bind(we),we.addControlGrips=we.addControlGrips.bind(we),we.adjustVisual=we.adjustVisual.bind(we),we.setupControlBox=we.setupControlBox.bind(we),we.resize=we.resize.bind(we),we.strokeColor=ze.defaultColor,we.strokeWidth=ze.defaultStrokeWidth,we.strokeDasharray=ze.defaultStrokeDasharray,we.strokePanel=new ue("Line color",ze.defaultColorSet,ze.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.strokeWidthPanel=new De("Line width",ze.defaultStrokeWidths,ze.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Be("Line style",ze.defaultStrokeDasharrays,ze.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we}return Ot(ne,Re),ne.prototype.ownsTarget=function(fe){return!(!Re.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.selectorCurve&&fe!==this.visibleCurve&&!this.curveGrip.ownsTarget(fe))},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=z.createGroup(),this.selectorCurve=z.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=z.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(fe,Me){Re.prototype.pointerDown.call(this,fe,Me),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=fe.x,this.curveY=fe.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Me)&&(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()),z.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),z.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),z.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ne.prototype.setupControlBox=function(){Re.prototype.setupControlBox.call(this),this.curveControlLine1=z.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=z.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,Re.prototype.addControlGrips.call(this)},ne.prototype.positionGrips=function(){Re.prototype.positionGrips.call(this);var fe=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-fe/2,this.curveY-fe/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(fe){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+fe.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+fe.y-this.manipulationStartY),Re.prototype.manipulate.call(this,fe)},ne.prototype.resize=function(fe){this.activeGrip===this.curveGrip&&(this.curveX=fe.x,this.curveY=fe.y),Re.prototype.resize.call(this,fe),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(fe){this.strokeColor=fe,this.adjustVisual(),this.colorChanged(fe)},ne.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.adjustVisual()},ne.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.adjustVisual()},ne.prototype.scale=function(fe,Me){this.curveX=this.curveX*fe,this.curveY=this.curveY*Me,Re.prototype.scale.call(this,fe,Me)},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var fe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Re.prototype.getState.call(this));return fe.typeName=ne.typeName,fe},ne.prototype.restoreState=function(fe){Re.prototype.restoreState.call(this,fe);var Me=fe;this.strokeColor=Me.strokeColor,this.strokeWidth=Me.strokeWidth,this.strokeDasharray=Me.strokeDasharray,this.curveX=Me.curveX,this.curveY=Me.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}(Ee),ot=function(Re){function ne(fe,Me,ze){var we=Re.call(this,fe,Me,ze)||this;return we.fillColor="transparent",we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.textColor="transparent",we.fontSize="1rem",we.isMoved=!1,we.captionText="Caption",we.PADDING=5,we.captionBoxWidth=0,we.captionBoxHeight=0,we.strokeColor=ze.defaultColor,we.strokeWidth=ze.defaultStrokeWidth,we.strokeDasharray=ze.defaultStrokeDasharray,we.fillColor=ze.defaultFillColor,we.textColor=ze.defaultStrokeColor,we.fontFamily=ze.defaultFontFamily,we.fontSize=ze.defaultCaptionFontSize,we.captionText=ze.defaultCaptionText,we.setStrokeColor=we.setStrokeColor.bind(we),we.setFillColor=we.setFillColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.createVisual=we.createVisual.bind(we),we.sizeCaption=we.sizeCaption.bind(we),we.setCaptionText=we.setCaptionText.bind(we),we.showTextEditor=we.showTextEditor.bind(we),we.positionTextEditor=we.positionTextEditor.bind(we),we.finishTextEditing=we.finishTextEditing.bind(we),we.setFont=we.setFont.bind(we),we.setTextColor=we.setTextColor.bind(we),we.strokePanel=new ue("Line color",be(ze.defaultColorSet,["transparent"]),we.strokeColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.fillPanel=new ue("Fill color",be(ze.defaultColorSet,["transparent"]),we.fillColor,Ue),we.fillPanel.onColorChanged=we.setFillColor,we.strokeWidthPanel=new De("Line width",ze.defaultStrokeWidths,ze.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Be("Line style",ze.defaultStrokeDasharrays,ze.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we.fontFamilyPanel=new Pe("Font",ze.defaultFontFamilies,ze.defaultFontFamily),we.fontFamilyPanel.onFontChanged=we.setFont,we.textColorPanel=new ue("Text color",ze.defaultColorSet,we.textColor,_e),we.textColorPanel.onColorChanged=we.setTextColor,we}return Ot(ne,Re),ne.prototype.ownsTarget=function(fe){return!(!Re.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.frame&&fe!==this.captionBg&&fe!==this.captionElement)},ne.prototype.createVisual=function(){this.visual=z.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=z.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=z.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=z.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(fe){this.captionText=fe,this.captionElement.textContent=this.captionText,this.sizeCaption()},ne.prototype.pointerDown=function(fe,Me){Re.prototype.pointerDown.call(this,fe,Me),this.isMoved=!1,this.pointerDownPoint=fe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},ne.prototype.manipulate=function(fe){Re.prototype.manipulate.call(this,fe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(fe.x-this.pointerDownPoint.x)>5||Math.abs(fe.y-this.pointerDownPoint.y)>5)},ne.prototype.resize=function(fe){Re.prototype.resize.call(this,fe),this.setSize()},ne.prototype.sizeCaption=function(){var fe=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=fe.width+2*this.PADDING,this.captionBoxHeight=fe.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),z.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')"]]),z.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 fe=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(Me){Me.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Me){Me.key==="Enter"&&fe.finishTextEditing(fe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Me){Me.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){fe.finishTextEditing(fe.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){fe.finishTextEditing(fe.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(fe){this.setCaptionText(fe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ne.prototype.setFont=function(fe){this.captionElement&&z.setAttributes(this.captionElement,[["font-family",fe]]),this.fontFamily=fe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ne.prototype.setTextColor=function(fe){this.captionElement&&z.setAttributes(this.captionElement,[["fill",fe]]),this.textColor=fe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ne.prototype.setSize=function(){Re.prototype.setSize.call(this),z.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ne.prototype.pointerUp=function(fe){Re.prototype.pointerUp.call(this,fe),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ne.prototype.dblClick=function(fe,Me){Re.prototype.dblClick.call(this,fe,Me),this.showTextEditor()},ne.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.frame&&z.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(fe),this.stateChanged()},ne.prototype.setFillColor=function(fe){this.fillColor=fe,this.captionBg&&z.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(fe),this.stateChanged()},ne.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.frame&&z.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.frame&&z.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 fe=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},Re.prototype.getState.call(this));return fe.typeName=this.typeName,fe},ne.prototype.restoreState=function(fe){var Me=fe;this.fillColor=Me.fillColor,this.strokeColor=Me.strokeColor,this.strokeWidth=Me.strokeWidth,this.strokeDasharray=Me.strokeDasharray,this.textColor=Me.textColor,this.fontFamily=Me.fontFamily,this.captionText=Me.captionText,this.fontSize=Me.fontSize,this.createVisual(),Re.prototype.restoreState.call(this,fe),this.setSize()},ne.prototype.scale=function(fe,Me){Re.prototype.scale.call(this,fe,Me),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}(xe),Qe=function(){function Re(ne,fe){fe===void 0&&(fe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ne,this.cancelable=fe}return Object.defineProperty(Re.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Re.prototype.preventDefault=function(){this._defaultPrevented=!0},Re}(),ft=function(Re){function ne(fe,Me,ze){var we=Re.call(this,fe,!1)||this;return we.dataUrl=Me,we.state=ze,we}return Ot(ne,Re),ne}(Qe),at=function(Re){function ne(fe,Me,ze){ze===void 0&&(ze=!1);var we=Re.call(this,fe,ze)||this;return we.marker=Me,we}return Ot(ne,Re),ne}(Qe),qe=function(){function Re(){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 Re.prototype.addEventListener=function(ne,fe){this[ne].push(fe)},Re.prototype.removeEventListener=function(ne,fe){var Me=this[ne].indexOf(fe);Me>-1&&this[ne].splice(Me,1)},Re}(),Fe=function(){function Re(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 Se,this._isOpen=!1,this.undoRedoManager=new Ye,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 qe,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Re.instanceCounter++,this.styles=new ee(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(Re.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ae,Ne,Ve,Le,Ke,rt,nt,tt,et,Ze,Oe,Xe,ot]},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ae,Ne,Ve,Le,rt,nt,tt]},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ae,Ne,Ve,Le,nt]},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ne){var fe=this;this._availableMarkerTypes.splice(0),ne.forEach(function(Me){if(typeof Me=="string"){var ze=fe.ALL_MARKER_TYPES.find(function(we){return we.typeName===Me});ze!==void 0&&fe._availableMarkerTypes.push(ze)}else fe._availableMarkerTypes.push(Me)})},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.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(Re.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Re.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),E.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Re.prototype.show=function(){var ne=this;this.styles.styleSheetRoot===void 0&&oe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=oe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(fe){return fe(new Qe(ne))})},Re.prototype.render=function(){return y(this,void 0,void 0,function(){var ne;return je(this,function(fe){switch(fe.label){case 0:return this.setCurrentMarker(),(ne=new ie).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 fe.sent(),[4,ne.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,fe.sent()]}})})},Re.prototype.close=function(ne){var fe=this;if(ne===void 0&&(ne=!1),this.isOpen){var Me=!1;ne||this.eventListeners.beforeclose.forEach(function(ze){var we=new Qe(fe,!0);ze(we),we.defaultPrevented&&(Me=!0)}),Me||(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(ze){return ze(new Qe(fe))}),this.detachEvents(),this._isOpen=!1)}},Re.prototype.addMarkersToToolbar=function(){for(var ne,fe=[],Me=0;Me<arguments.length;Me++)fe[Me]=arguments[Me];(ne=this._availableMarkerTypes).push.apply(ne,fe)},Re.prototype.addRenderEventListener=function(ne){this.addEventListener("render",function(fe){ne(fe.dataUrl,fe.state)})},Re.prototype.removeRenderEventListener=function(ne){},Re.prototype.addCloseEventListener=function(ne){this.addEventListener("close",function(){ne()})},Re.prototype.removeCloseEventListener=function(ne){},Re.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))},Re.prototype.onPopupTargetResize=function(){var ne=1*this.target.clientWidth/this.target.clientHeight,fe=this.editorCanvas.clientWidth/ne>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ne:this.editorCanvas.clientWidth,Me=fe<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ne;this.resize(fe,Me)},Re.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Re.prototype.resize=function(ne,fe){this._isResizing=!0;var Me=ne/this.imageWidth,ze=fe/this.imageHeight;this.imageWidth=Math.round(ne),this.imageHeight=Math.round(fe),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(Me,ze),this._isResizing=!1},Re.prototype.scaleMarkers=function(ne,fe){var Me,ze=this;this._currentMarker&&this._currentMarker instanceof Le?this._currentMarker.scale(ne,fe):(Me=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(we){we!==ze._currentMarker&&we.scale(ne,fe)}),Me!==void 0&&this.setCurrentMarker(Me)},Re.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"},Re.prototype.setTopLeft=function(){var ne=this.editingTarget.getBoundingClientRect(),fe=this.editorCanvas.getBoundingClientRect();this.left=ne.left-fe.left,this.top=ne.top-fe.top},Re.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)},Re.prototype.addDefs=function(){for(var ne,fe=[],Me=0;Me<arguments.length;Me++)fe[Me]=arguments[Me];this.defs=z.createDefs(),this.addDefsToImage(),(ne=this.defs).append.apply(ne,fe)},Re.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Re.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)},Re.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Re.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Re.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)},Re.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Re.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)},Re.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()},Re.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")},Re.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"},Re.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Re.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 ae(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 re(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Re.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Re.prototype.removeMarker=function(ne){this.markerImage.removeChild(ne.container),this.markers.indexOf(ne)>-1&&this.markers.splice(this.markers.indexOf(ne),1),ne.dispose()},Re.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())},Re.prototype.toolbarButtonClicked=function(ne,fe){if(ne==="marker"&&fe!==void 0)this.createNewMarker(fe);else if(ne==="action")switch(fe){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()}},Re.prototype.deleteSelectedMarker=function(){var ne=this;if(this._currentMarker!==void 0){var fe=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ze){var we=new at(ne,ne._currentMarker,!0);ze(we),we.defaultPrevented&&(fe=!0)}),!fe){var Me=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(ze){return ze(new at(ne,Me))})}}},Re.prototype.clear=function(){var ne=this,fe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ve){var Ie=new at(ne,void 0,!0);ve(Ie),Ie.defaultPrevented&&(fe=!0)}),!fe)){this.setCurrentMarker();for(var Me=function(ve){var Ie=ze.markers[ve];ze.setCurrentMarker(ze.markers[ve]),ze._currentMarker.dispose(),ze.markerImage.removeChild(ze._currentMarker.container),ze.markers.splice(ze.markers.indexOf(ze._currentMarker),1),ze.eventListeners.markerdelete.forEach(function($e){return $e(new at(ne,Ie))})},ze=this,we=this.markers.length-1;we>=0;we--)Me(we);this.addUndoStep()}},Object.defineProperty(Re.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Re.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))},Re.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)},Re.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Re.prototype.addUndoStep=function(){var ne=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var fe=this.getState(),Me=this.undoRedoManager.getLastUndoStep();if(!Me||Me.width===fe.width&&Me.height===fe.height){var ze=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(fe),ze<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(we){return we(new Qe(ne))})}else this.undoRedoManager.replaceLastUndoStep(fe),this.eventListeners.statechange.forEach(function(we){return we(new Qe(ne))})}},Re.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Re.prototype.undoStep=function(){var ne=this,fe=this.undoRedoManager.undo();fe!==void 0&&(this.restoreState(fe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Me){return Me(new Qe(ne))}))},Re.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Re.prototype.redoStep=function(){var ne=this,fe=this.undoRedoManager.redo();fe!==void 0&&(this.restoreState(fe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Me){return Me(new Qe(ne))}))},Re.prototype.stepZoom=function(){var ne=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ne<this.zoomSteps.length-1?this.zoomSteps[ne+1]:this.zoomSteps[0]},Re.prototype.panTo=function(ne){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ne.x,top:this.prevPanPoint.y-ne.y}),this.prevPanPoint=ne},Re.prototype.startRenderAndClose=function(){return y(this,void 0,void 0,function(){var ne,fe,Me=this;return je(this,function(ze){switch(ze.label){case 0:return[4,this.render()];case 1:return ne=ze.sent(),fe=this.getState(),this.eventListeners.render.forEach(function(we){return we(new ft(Me,ne,fe))}),this.close(!0),[2]}})})},Re.prototype.getState=function(ne){ne===!0&&this.setCurrentMarker();var fe={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Me){return fe.markers.push(Me.getState())}),fe},Re.prototype.restoreState=function(ne){var fe=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ne.markers.forEach(function(Me){var ze=fe._availableMarkerTypes.find(function(ve){return ve.typeName===Me.typeName});if(ze!==void 0){var we=fe.addNewMarker(ze);we.restoreState(Me),fe.markers.push(we)}}),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(Me){return Me(new Qe(fe))})},Re.prototype.addNewMarker=function(ne){var fe=z.createGroup();return this.markerImage.appendChild(fe),new ne(fe,this.overlayContainer,this.settings)},Re.prototype.createNewMarker=function(ne){var fe,Me=this;(fe=typeof ne=="string"?this._availableMarkerTypes.find(function(ze){return ze.typeName===ne}):ne)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(fe),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(fe.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ze){return ze(new at(Me,Me._currentMarker))}))},Re.prototype.markerCreated=function(ne){var fe=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ne),this.setCurrentMarker(ne),ne instanceof Ne&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ne):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Me){return Me(new at(fe,fe._currentMarker))})},Re.prototype.colorChanged=function(ne){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ne,this.settings.defaultStrokeColor=ne)},Re.prototype.fillColorChanged=function(ne){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ne)},Re.prototype.markerStateChanged=function(ne){var fe=this;this.eventListeners.markerchange.forEach(function(Me){return Me(new at(fe,ne))})},Re.prototype.setCurrentMarker=function(ne){var fe=this;this._currentMarker!==ne&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Me){return Me(new at(fe,fe._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(Me){return Me(new at(fe,fe._currentMarker))}))},Re.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 fe=this.markers.find(function(Me){return Me.ownsTarget(ne.target)});fe!==void 0?(this.setCurrentMarker(fe),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))},Re.prototype.onDblClick=function(ne){if(this._isFocused||this.focus(),this.mode==="select"){var fe=this.markers.find(function(Me){return Me.ownsTarget(ne.target)});fe!==void 0&&fe!==this._currentMarker&&this.setCurrentMarker(fe),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ne.clientX,ne.clientY),ne.target):this.setCurrentMarker()}},Re.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}))},Re.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()},Re.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Re.prototype.onKeyUp=function(ne){this._currentMarker===void 0||this.notesArea!==void 0||ne.key!=="Delete"&&ne.key!=="Backspace"||this.deleteSelectedMarker()},Re.prototype.clientToLocalCoordinates=function(ne,fe){var Me=this.markerImage.getBoundingClientRect();return{x:(ne-Me.left)/this.zoomLevel,y:(fe-Me.top)/this.zoomLevel}},Re.prototype.onWindowResize=function(){this.positionUI()},Re.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()},Re.prototype.addLicenseKey=function(ne){E.addKey(ne)},Re.prototype.addEventListener=function(ne,fe){this.eventListeners.addEventListener(ne,fe)},Re.prototype.removeEventListener=function(ne,fe){this.eventListeners.removeEventListener(ne,fe)},Re.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(Re.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Re.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(fe){return fe(new Qe(ne))}))},Re.prototype.blur=function(){var ne=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(fe){return fe(new Qe(ne))}))},Re.instanceCounter=0,Re}()},6551:function(In,Yt,Te){"use strict";Te.d(Yt,{ZP:function(){return E}});var te=Te(42978),Ot=Te(59301),y=Te(47273),je=0,be=(0,y.Z)();function z(){var ie;return be?(ie=je,je+=1):ie="TEST_OR_SSR",ie}function E(ie){var oe=Ot.useState(),ee=(0,te.Z)(oe,2),ce=ee[0],x=ee[1];return Ot.useEffect(function(){x("rc_select_".concat(z()))},[]),ie||ce}},37463:function(In,Yt,Te){"use strict";Te.d(Yt,{Ac:function(){return Et},Xo:function(){return Nt},Wx:function(){return Pt},ZP:function(){return Zn},lk:function(){return ge}});var te=Te(54476),Ot=Te(94480),y=Te(20068),je=Te(33885),be=Te(42978),z=Te(75931),E=Te(76190),ie=Te(18929),oe=Te(48736),ee=Te(59301),ce=Te(92310),x=Te.n(ce),ae=Te(34280),re=Te(49658),se=Te(8654),ue=function(Gt){var St=Gt.className,Rt=Gt.customizeIcon,Tt=Gt.customizeIconProps,_t=Gt.children,bt=Gt.onMouseDown,Ut=Gt.onClick,Lt=typeof Rt=="function"?Rt(Tt):Rt;return ee.createElement("span",{className:St,onMouseDown:function(Ft){Ft.preventDefault(),bt==null||bt(Ft)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ut,"aria-hidden":!0},Lt!==void 0?Lt:ee.createElement("span",{className:x()(St.split(/\s+/).map(function(qt){return"".concat(qt,"-icon")}))},_t))},pe=ue,he=function(Gt,St,Rt,Tt,_t){var bt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ut=arguments.length>6?arguments[6]:void 0,Lt=arguments.length>7?arguments[7]:void 0,qt=ee.useMemo(function(){if((0,E.Z)(Tt)==="object")return Tt.clearIcon;if(_t)return _t},[Tt,_t]),Ft=ee.useMemo(function(){return!!(!bt&&Tt&&(Rt.length||Ut)&&!(Lt==="combobox"&&Ut===""))},[Tt,bt,Rt.length,Ut,Lt]);return{allowClear:Ft,clearIcon:ee.createElement(pe,{className:"".concat(Gt,"-clear"),onMouseDown:St,customizeIcon:qt},"\xD7")}},ye=ee.createContext(null);function ge(){return ee.useContext(ye)}function xe(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Gt=ee.useState(!1),St=(0,be.Z)(Gt,2),Rt=St[0],Tt=St[1],_t=ee.useRef(null),bt=function(){window.clearTimeout(_t.current)};ee.useEffect(function(){return bt},[]);var Ut=function(qt,Ft){bt(),_t.current=window.setTimeout(function(){Tt(qt),Ft&&Ft()},Mt)};return[Rt,Ut,bt]}function ke(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Gt=ee.useRef(null),St=ee.useRef(null);ee.useEffect(function(){return function(){window.clearTimeout(St.current)}},[]);function Rt(Tt){(Tt||Gt.current===null)&&(Gt.current=Tt),window.clearTimeout(St.current),St.current=window.setTimeout(function(){Gt.current=null},Mt)}return[function(){return Gt.current},Rt]}function De(Mt,Gt,St,Rt){var Tt=ee.useRef(null);Tt.current={open:Gt,triggerOpen:St,customizedTrigger:Rt},ee.useEffect(function(){function _t(bt){var Ut;if(!((Ut=Tt.current)!==null&&Ut!==void 0&&Ut.customizedTrigger)){var Lt=bt.target;Lt.shadowRoot&&bt.composed&&(Lt=bt.composedPath()[0]||Lt),Tt.current.open&&Mt().filter(function(qt){return qt}).every(function(qt){return!qt.contains(Lt)&&qt!==Lt})&&Tt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",_t),function(){return window.removeEventListener("mousedown",_t)}},[])}var Be=Te(10228);function Ae(Mt){return Mt&&![Be.Z.ESC,Be.Z.SHIFT,Be.Z.BACKSPACE,Be.Z.TAB,Be.Z.WIN_KEY,Be.Z.ALT,Be.Z.META,Be.Z.WIN_KEY_RIGHT,Be.Z.CTRL,Be.Z.SEMICOLON,Be.Z.EQUALS,Be.Z.CAPS_LOCK,Be.Z.CONTEXT_MENU,Be.Z.F1,Be.Z.F2,Be.Z.F3,Be.Z.F4,Be.Z.F5,Be.Z.F6,Be.Z.F7,Be.Z.F8,Be.Z.F9,Be.Z.F10,Be.Z.F11,Be.Z.F12].includes(Mt)}var Se=Te(26112),Ee=Te(83836);function Oe(Mt,Gt,St){var Rt=(0,je.Z)((0,je.Z)({},Mt),St?Gt:{});return Object.keys(Gt).forEach(function(Tt){var _t=Gt[Tt];typeof _t=="function"&&(Rt[Tt]=function(){for(var bt,Ut=arguments.length,Lt=new Array(Ut),qt=0;qt<Ut;qt++)Lt[qt]=arguments[qt];return _t.apply(void 0,Lt),(bt=Mt[Tt])===null||bt===void 0?void 0:bt.call.apply(bt,[Mt].concat(Lt))})}),Rt}var Pe=Oe,Le=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Ne=function(Gt,St){var Rt=Gt.prefixCls,Tt=Gt.id,_t=Gt.inputElement,bt=Gt.autoFocus,Ut=Gt.autoComplete,Lt=Gt.editable,qt=Gt.activeDescendantId,Ft=Gt.value,$t=Gt.open,Zt=Gt.attrs,Xt=(0,z.Z)(Gt,Le),Tn=_t||ee.createElement("input",null),On=Tn,Mn=On.ref,rr=On.props;return(0,oe.Kp)(!("maxLength"in Tn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Tn=ee.cloneElement(Tn,(0,je.Z)((0,je.Z)((0,je.Z)({type:"search"},Pe(Xt,rr,!0)),{},{id:Tt,ref:(0,se.sQ)(St,Mn),autoComplete:Ut||"off",autoFocus:bt,className:x()("".concat(Rt,"-selection-search-input"),rr==null?void 0:rr.className),role:"combobox","aria-expanded":$t||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Tt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Tt,"_list"),"aria-activedescendant":$t?qt:void 0},Zt),{},{value:Lt?Ft:"",readOnly:!Lt,unselectable:Lt?null:"on",style:(0,je.Z)((0,je.Z)({},rr.style),{},{opacity:Lt?null:0})})),Tn},me=ee.forwardRef(Ne),Ve=me;function Ze(Mt){return Array.isArray(Mt)?Mt:Mt!==void 0?[Mt]:[]}var We=typeof window!="undefined"&&window.document&&window.document.documentElement,nt=We;function _e(Mt){return Mt!=null}function Ue(Mt){return!Mt&&Mt!==0}function tt(Mt){return["string","number"].includes((0,E.Z)(Mt))}function rt(Mt){var Gt=void 0;return Mt&&(tt(Mt.title)?Gt=Mt.title.toString():tt(Mt.label)&&(Gt=Mt.label.toString())),Gt}function et(Mt,Gt){nt?ee.useLayoutEffect(Mt,Gt):ee.useEffect(Mt,Gt)}function Ke(Mt){var Gt;return(Gt=Mt.key)!==null&&Gt!==void 0?Gt:Mt.value}var Ye=function(Gt){Gt.preventDefault(),Gt.stopPropagation()},Xe=function(Gt){var St=Gt.id,Rt=Gt.prefixCls,Tt=Gt.values,_t=Gt.open,bt=Gt.searchValue,Ut=Gt.autoClearSearchValue,Lt=Gt.inputRef,qt=Gt.placeholder,Ft=Gt.disabled,$t=Gt.mode,Zt=Gt.showSearch,Xt=Gt.autoFocus,Tn=Gt.autoComplete,On=Gt.activeDescendantId,Mn=Gt.tabIndex,rr=Gt.removeIcon,lr=Gt.maxTagCount,hr=Gt.maxTagTextLength,er=Gt.maxTagPlaceholder,Qn=er===void 0?function(Vn){return"+ ".concat(Vn.length," ...")}:er,Fn=Gt.tagRender,pr=Gt.onToggleOpen,wr=Gt.onRemove,Sr=Gt.onInputChange,Cr=Gt.onInputPaste,Jn=Gt.onInputKeyDown,yr=Gt.onInputMouseDown,An=Gt.onInputCompositionStart,xn=Gt.onInputCompositionEnd,tr=Gt.onInputBlur,br=ee.useRef(null),Er=(0,ee.useState)(0),Hr=(0,be.Z)(Er,2),kr=Hr[0],Ur=Hr[1],Tr=(0,ee.useState)(!1),ei=(0,be.Z)(Tr,2),si=ei[0],wi=ei[1],Kr="".concat(Rt,"-selection"),gi=_t||$t==="multiple"&&Ut===!1||$t==="tags"?bt:"",di=$t==="tags"||$t==="multiple"&&Ut===!1||Zt&&(_t||si);et(function(){Ur(br.current.scrollWidth)},[gi]);var bi=function($n,cr,jr,Gn,zn){return ee.createElement("span",{title:rt($n),className:x()("".concat(Kr,"-item"),(0,y.Z)({},"".concat(Kr,"-item-disabled"),jr))},ee.createElement("span",{className:"".concat(Kr,"-item-content")},cr),Gn&&ee.createElement(pe,{className:"".concat(Kr,"-item-remove"),onMouseDown:Ye,onClick:zn,customizeIcon:rr},"\xD7"))},Or=function($n,cr,jr,Gn,zn,qn){var or=function(Ti){Ye(Ti),pr(!_t)};return ee.createElement("span",{onMouseDown:or},Fn({label:cr,value:$n,disabled:jr,closable:Gn,onClose:zn,isMaxTag:!!qn}))},Pr=function($n){var cr=$n.disabled,jr=$n.label,Gn=$n.value,zn=!Ft&&!cr,qn=jr;if(typeof hr=="number"&&(typeof jr=="string"||typeof jr=="number")){var or=String(qn);or.length>hr&&(qn="".concat(or.slice(0,hr),"..."))}var ti=function(mi){mi&&mi.stopPropagation(),wr($n)};return typeof Fn=="function"?Or(Gn,qn,cr,zn,ti):bi($n,qn,cr,zn,ti)},ur=function($n){if(!Tt.length)return null;var cr=typeof Qn=="function"?Qn($n):Qn;return typeof Fn=="function"?Or(void 0,cr,!1,!1,void 0,!0):bi({title:cr},cr,!1)},Dn=ee.createElement("div",{className:"".concat(Kr,"-search"),style:{width:kr},onFocus:function(){wi(!0)},onBlur:function(){wi(!1)}},ee.createElement(Ve,{ref:Lt,open:_t,prefixCls:Rt,id:St,inputElement:null,disabled:Ft,autoFocus:Xt,autoComplete:Tn,editable:di,activeDescendantId:On,value:gi,onKeyDown:Jn,onMouseDown:yr,onChange:Sr,onPaste:Cr,onCompositionStart:An,onCompositionEnd:xn,onBlur:tr,tabIndex:Mn,attrs:(0,Se.Z)(Gt,!0)}),ee.createElement("span",{ref:br,className:"".concat(Kr,"-search-mirror"),"aria-hidden":!0},gi,"\xA0")),Un=ee.createElement(Ee.Z,{prefixCls:"".concat(Kr,"-overflow"),data:Tt,renderItem:Pr,renderRest:ur,suffix:Dn,itemKey:Ke,maxCount:lr});return ee.createElement("span",{className:"".concat(Kr,"-wrap")},Un,!Tt.length&&!gi&&ee.createElement("span",{className:"".concat(Kr,"-placeholder")},qt))},ot=Xe,Qe=function(Gt){var St=Gt.inputElement,Rt=Gt.prefixCls,Tt=Gt.id,_t=Gt.inputRef,bt=Gt.disabled,Ut=Gt.autoFocus,Lt=Gt.autoComplete,qt=Gt.activeDescendantId,Ft=Gt.mode,$t=Gt.open,Zt=Gt.values,Xt=Gt.placeholder,Tn=Gt.tabIndex,On=Gt.showSearch,Mn=Gt.searchValue,rr=Gt.activeValue,lr=Gt.maxLength,hr=Gt.onInputKeyDown,er=Gt.onInputMouseDown,Qn=Gt.onInputChange,Fn=Gt.onInputPaste,pr=Gt.onInputCompositionStart,wr=Gt.onInputCompositionEnd,Sr=Gt.onInputBlur,Cr=Gt.title,Jn=ee.useState(!1),yr=(0,be.Z)(Jn,2),An=yr[0],xn=yr[1],tr=Ft==="combobox",br=tr||On,Er=Zt[0],Hr=Mn||"";tr&&rr&&!An&&(Hr=rr),ee.useEffect(function(){tr&&xn(!1)},[tr,rr]);var kr=Ft!=="combobox"&&!$t&&!On?!1:!!Hr,Ur=Cr===void 0?rt(Er):Cr,Tr=ee.useMemo(function(){return Er?null:ee.createElement("span",{className:"".concat(Rt,"-selection-placeholder"),style:kr?{visibility:"hidden"}:void 0},Xt)},[Er,kr,Xt,Rt]);return ee.createElement("span",{className:"".concat(Rt,"-selection-wrap")},ee.createElement("span",{className:"".concat(Rt,"-selection-search")},ee.createElement(Ve,{ref:_t,prefixCls:Rt,id:Tt,open:$t,inputElement:St,disabled:bt,autoFocus:Ut,autoComplete:Lt,editable:br,activeDescendantId:qt,value:Hr,onKeyDown:hr,onMouseDown:er,onChange:function(si){xn(!0),Qn(si)},onPaste:Fn,onCompositionStart:pr,onCompositionEnd:wr,onBlur:Sr,tabIndex:Tn,attrs:(0,Se.Z)(Gt,!0),maxLength:tr?lr:void 0})),!tr&&Er?ee.createElement("span",{className:"".concat(Rt,"-selection-item"),title:Ur,style:kr?{visibility:"hidden"}:void 0},Er.label):null,Tr)},ft=Qe,at=function(Gt,St){var Rt=(0,ee.useRef)(null),Tt=(0,ee.useRef)(!1),_t=Gt.prefixCls,bt=Gt.open,Ut=Gt.mode,Lt=Gt.showSearch,qt=Gt.tokenWithEnter,Ft=Gt.disabled,$t=Gt.prefix,Zt=Gt.autoClearSearchValue,Xt=Gt.onSearch,Tn=Gt.onSearchSubmit,On=Gt.onToggleOpen,Mn=Gt.onInputKeyDown,rr=Gt.onInputBlur,lr=Gt.domRef;ee.useImperativeHandle(St,function(){return{focus:function(Ur){Rt.current.focus(Ur)},blur:function(){Rt.current.blur()}}});var hr=ke(0),er=(0,be.Z)(hr,2),Qn=er[0],Fn=er[1],pr=function(Ur){var Tr=Ur.which,ei=Rt.current instanceof HTMLTextAreaElement;!ei&&bt&&(Tr===Be.Z.UP||Tr===Be.Z.DOWN)&&Ur.preventDefault(),Mn&&Mn(Ur),Tr===Be.Z.ENTER&&Ut==="tags"&&!Tt.current&&!bt&&(Tn==null||Tn(Ur.target.value)),!(ei&&!bt&&~[Be.Z.UP,Be.Z.DOWN,Be.Z.LEFT,Be.Z.RIGHT].indexOf(Tr))&&Ae(Tr)&&On(!0)},wr=function(){Fn(!0)},Sr=(0,ee.useRef)(null),Cr=function(Ur){Xt(Ur,!0,Tt.current)!==!1&&On(!0)},Jn=function(){Tt.current=!0},yr=function(Ur){Tt.current=!1,Ut!=="combobox"&&Cr(Ur.target.value)},An=function(Ur){var Tr=Ur.target.value;if(qt&&Sr.current&&/[\r\n]/.test(Sr.current)){var ei=Sr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Tr=Tr.replace(ei,Sr.current)}Sr.current=null,Cr(Tr)},xn=function(Ur){var Tr=Ur.clipboardData,ei=Tr==null?void 0:Tr.getData("text");Sr.current=ei||""},tr=function(Ur){var Tr=Ur.target;if(Tr!==Rt.current){var ei=document.body.style.msTouchAction!==void 0;ei?setTimeout(function(){Rt.current.focus()}):Rt.current.focus()}},br=function(Ur){var Tr=Qn();Ur.target!==Rt.current&&!Tr&&!(Ut==="combobox"&&Ft)&&Ur.preventDefault(),(Ut!=="combobox"&&(!Lt||!Tr)||!bt)&&(bt&&Zt!==!1&&Xt("",!0,!1),On())},Er={inputRef:Rt,onInputKeyDown:pr,onInputMouseDown:wr,onInputChange:An,onInputPaste:xn,onInputCompositionStart:Jn,onInputCompositionEnd:yr,onInputBlur:rr},Hr=Ut==="multiple"||Ut==="tags"?ee.createElement(ot,(0,te.Z)({},Gt,Er)):ee.createElement(ft,(0,te.Z)({},Gt,Er));return ee.createElement("div",{ref:lr,className:"".concat(_t,"-selector"),onClick:tr,onMouseDown:br},$t&&ee.createElement("div",{className:"".concat(_t,"-prefix")},$t),Hr)},qe=ee.forwardRef(at),Fe=qe,Re=Te(65030),ne=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],fe=function(Gt){var St=Gt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:St,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:St,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:St,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:St,adjustY:1},htmlRegion:"scroll"}}},Me=function(Gt,St){var Rt=Gt.prefixCls,Tt=Gt.disabled,_t=Gt.visible,bt=Gt.children,Ut=Gt.popupElement,Lt=Gt.animation,qt=Gt.transitionName,Ft=Gt.dropdownStyle,$t=Gt.dropdownClassName,Zt=Gt.direction,Xt=Zt===void 0?"ltr":Zt,Tn=Gt.placement,On=Gt.builtinPlacements,Mn=Gt.dropdownMatchSelectWidth,rr=Gt.dropdownRender,lr=Gt.dropdownAlign,hr=Gt.getPopupContainer,er=Gt.empty,Qn=Gt.getTriggerDOMNode,Fn=Gt.onPopupVisibleChange,pr=Gt.onPopupMouseEnter,wr=(0,z.Z)(Gt,ne),Sr="".concat(Rt,"-dropdown"),Cr=Ut;rr&&(Cr=rr(Ut));var Jn=ee.useMemo(function(){return On||fe(Mn)},[On,Mn]),yr=Lt?"".concat(Sr,"-").concat(Lt):qt,An=typeof Mn=="number",xn=ee.useMemo(function(){return An?null:Mn===!1?"minWidth":"width"},[Mn,An]),tr=Ft;An&&(tr=(0,je.Z)((0,je.Z)({},tr),{},{width:Mn}));var br=ee.useRef(null);return ee.useImperativeHandle(St,function(){return{getPopupElement:function(){var Hr;return(Hr=br.current)===null||Hr===void 0?void 0:Hr.popupElement}}}),ee.createElement(Re.Z,(0,te.Z)({},wr,{showAction:Fn?["click"]:[],hideAction:Fn?["click"]:[],popupPlacement:Tn||(Xt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Jn,prefixCls:Sr,popupTransitionName:yr,popup:ee.createElement("div",{onMouseEnter:pr},Cr),ref:br,stretch:xn,popupAlign:lr,popupVisible:_t,getPopupContainer:hr,popupClassName:x()($t,(0,y.Z)({},"".concat(Sr,"-empty"),er)),popupStyle:tr,getTriggerDOMNode:Qn,onPopupVisibleChange:Fn}),bt)},ze=ee.forwardRef(Me),we=ze,ve=Te(66712);function Ie(Mt,Gt){var St=Mt.key,Rt;return"value"in Mt&&(Rt=Mt.value),St!=null?St:Rt!==void 0?Rt:"rc-index-key-".concat(Gt)}function $e(Mt){return typeof Mt!="undefined"&&!Number.isNaN(Mt)}function Ge(Mt,Gt){var St=Mt||{},Rt=St.label,Tt=St.value,_t=St.options,bt=St.groupLabel,Ut=Rt||(Gt?"children":"label");return{label:Ut,value:Tt||"value",options:_t||"options",groupLabel:bt||Ut}}function Je(Mt){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},St=Gt.fieldNames,Rt=Gt.childrenAsData,Tt=[],_t=Ge(St,!1),bt=_t.label,Ut=_t.value,Lt=_t.options,qt=_t.groupLabel;function Ft($t,Zt){Array.isArray($t)&&$t.forEach(function(Xt){if(Zt||!(Lt in Xt)){var Tn=Xt[Ut];Tt.push({key:Ie(Xt,Tt.length),groupOption:Zt,data:Xt,label:Xt[bt],value:Tn})}else{var On=Xt[qt];On===void 0&&Rt&&(On=Xt.label),Tt.push({key:Ie(Xt,Tt.length),group:!0,data:Xt,label:On}),Ft(Xt[Lt],!0)}})}return Ft(Mt,!1),Tt}function ut(Mt){var Gt=(0,je.Z)({},Mt);return"props"in Gt||Object.defineProperty(Gt,"props",{get:function(){return(0,oe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Gt}}),Gt}var lt=function(Gt,St,Rt){if(!St||!St.length)return null;var Tt=!1,_t=function Ut(Lt,qt){var Ft=(0,ve.Z)(qt),$t=Ft[0],Zt=Ft.slice(1);if(!$t)return[Lt];var Xt=Lt.split($t);return Tt=Tt||Xt.length>1,Xt.reduce(function(Tn,On){return[].concat((0,Ot.Z)(Tn),(0,Ot.Z)(Ut(On,Zt)))},[]).filter(Boolean)},bt=_t(Gt,St);return Tt?typeof Rt!="undefined"?bt.slice(0,Rt):bt:null},vt=ee.createContext(null),ct=vt;function st(Mt){var Gt=Mt.visible,St=Mt.values;if(!Gt)return null;var Rt=50;return ee.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(St.slice(0,Rt).map(function(Tt){var _t=Tt.label,bt=Tt.value;return["number","string"].includes((0,E.Z)(_t))?_t:bt}).join(", ")),St.length>Rt?", ...":null)}var At=["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"],Dt=function(Gt){return Gt==="tags"||Gt==="multiple"},jt=ee.forwardRef(function(Mt,Gt){var St,Rt=Mt.id,Tt=Mt.prefixCls,_t=Mt.className,bt=Mt.showSearch,Ut=Mt.tagRender,Lt=Mt.direction,qt=Mt.omitDomProps,Ft=Mt.displayValues,$t=Mt.onDisplayValuesChange,Zt=Mt.emptyOptions,Xt=Mt.notFoundContent,Tn=Xt===void 0?"Not Found":Xt,On=Mt.onClear,Mn=Mt.mode,rr=Mt.disabled,lr=Mt.loading,hr=Mt.getInputElement,er=Mt.getRawInputElement,Qn=Mt.open,Fn=Mt.defaultOpen,pr=Mt.onDropdownVisibleChange,wr=Mt.activeValue,Sr=Mt.onActiveValueChange,Cr=Mt.activeDescendantId,Jn=Mt.searchValue,yr=Mt.autoClearSearchValue,An=Mt.onSearch,xn=Mt.onSearchSplit,tr=Mt.tokenSeparators,br=Mt.allowClear,Er=Mt.prefix,Hr=Mt.suffixIcon,kr=Mt.clearIcon,Ur=Mt.OptionList,Tr=Mt.animation,ei=Mt.transitionName,si=Mt.dropdownStyle,wi=Mt.dropdownClassName,Kr=Mt.dropdownMatchSelectWidth,gi=Mt.dropdownRender,di=Mt.dropdownAlign,bi=Mt.placement,Or=Mt.builtinPlacements,Pr=Mt.getPopupContainer,ur=Mt.showAction,Dn=ur===void 0?[]:ur,Un=Mt.onFocus,Vn=Mt.onBlur,$n=Mt.onKeyUp,cr=Mt.onKeyDown,jr=Mt.onMouseDown,Gn=(0,z.Z)(Mt,At),zn=Dt(Mn),qn=(bt!==void 0?bt:zn)||Mn==="combobox",or=(0,je.Z)({},Gn);mt.forEach(function(Wi){delete or[Wi]}),qt==null||qt.forEach(function(Wi){delete or[Wi]});var ti=ee.useState(!1),Ti=(0,be.Z)(ti,2),mi=Ti[0],ki=Ti[1];ee.useEffect(function(){ki((0,re.Z)())},[]);var Oi=ee.useRef(null),Ii=ee.useRef(null),_i=ee.useRef(null),Ni=ee.useRef(null),Ri=ee.useRef(null),so=ee.useRef(!1),xo=xe(),Po=(0,be.Z)(xo,3),jo=Po[0],wo=Po[1],ni=Po[2];ee.useImperativeHandle(Gt,function(){var Wi,Ci;return{focus:(Wi=Ni.current)===null||Wi===void 0?void 0:Wi.focus,blur:(Ci=Ni.current)===null||Ci===void 0?void 0:Ci.blur,scrollTo:function(sa){var ko;return(ko=Ri.current)===null||ko===void 0?void 0:ko.scrollTo(sa)},nativeElement:Oi.current||Ii.current}});var Vr=ee.useMemo(function(){var Wi;if(Mn!=="combobox")return Jn;var Ci=(Wi=Ft[0])===null||Wi===void 0?void 0:Wi.value;return typeof Ci=="string"||typeof Ci=="number"?String(Ci):""},[Jn,Mn,Ft]),Qi=Mn==="combobox"&&typeof hr=="function"&&hr()||null,qi=typeof er=="function"&&er(),li=(0,se.x1)(Ii,qi==null||(St=qi.props)===null||St===void 0?void 0:St.ref),Zi=ee.useState(!1),Yi=(0,be.Z)(Zi,2),yi=Yi[0],Fi=Yi[1];(0,ae.Z)(function(){Fi(!0)},[]);var Ai=(0,ie.Z)(!1,{defaultValue:Fn,value:Qn}),Fo=(0,be.Z)(Ai,2),pa=Fo[0],Zo=Fo[1],Do=yi?pa:!1,cs=!Tn&&Zt;(rr||cs&&Do&&Mn==="combobox")&&(Do=!1);var es=cs?!1:Do,ci=ee.useCallback(function(Wi){var Ci=Wi!==void 0?Wi:!Do;rr||(Zo(Ci),Do!==Ci&&(pr==null||pr(Ci)))},[rr,Do,Zo,pr]),Si=ee.useMemo(function(){return(tr||[]).some(function(Wi){return[`
`,`\r
`].includes(Wi)})},[tr]),ii=ee.useContext(ct)||{},fi=ii.maxCount,Ui=ii.rawValues,lo=function(Ci,Wo,sa){if(!(zn&&$e(fi)&&(Ui==null?void 0:Ui.size)>=fi)){var ko=!0,Uo=Ci;Sr==null||Sr(null);var Ba=lt(Ci,tr,$e(fi)?fi-Ui.size:void 0),ka=sa?null:Ba;return Mn!=="combobox"&&ka&&(Uo="",xn==null||xn(ka),ci(!1),ko=!1),An&&Vr!==Uo&&An(Uo,{source:Wo?"typing":"effect"}),ko}},Ma=function(Ci){!Ci||!Ci.trim()||An(Ci,{source:"submit"})};ee.useEffect(function(){!Do&&!zn&&Mn!=="combobox"&&lo("",!1,!1)},[Do]),ee.useEffect(function(){pa&&rr&&Zo(!1),rr&&!so.current&&wo(!1)},[rr]);var oa=ke(),Yo=(0,be.Z)(oa,2),Ao=Yo[0],ja=Yo[1],Fa=ee.useRef(!1),ha=function(Ci){var Wo=Ao(),sa=Ci.key,ko=sa==="Enter";if(ko&&(Mn!=="combobox"&&Ci.preventDefault(),Do||ci(!0)),ja(!!Vr),sa==="Backspace"&&!Wo&&zn&&!Vr&&Ft.length){for(var Uo=(0,Ot.Z)(Ft),Ba=null,ka=Uo.length-1;ka>=0;ka-=1){var Za=Uo[ka];if(!Za.disabled){Uo.splice(ka,1),Ba=Za;break}}Ba&&$t(Uo,{type:"remove",values:[Ba]})}for(var xa=arguments.length,wa=new Array(xa>1?xa-1:0),La=1;La<xa;La++)wa[La-1]=arguments[La];if(Do&&(!ko||!Fa.current)){var rs;ko&&(Fa.current=!0),(rs=Ri.current)===null||rs===void 0||rs.onKeyDown.apply(rs,[Ci].concat(wa))}cr==null||cr.apply(void 0,[Ci].concat(wa))},$a=function(Ci){for(var Wo=arguments.length,sa=new Array(Wo>1?Wo-1:0),ko=1;ko<Wo;ko++)sa[ko-1]=arguments[ko];if(Do){var Uo;(Uo=Ri.current)===null||Uo===void 0||Uo.onKeyUp.apply(Uo,[Ci].concat(sa))}Ci.key==="Enter"&&(Fa.current=!1),$n==null||$n.apply(void 0,[Ci].concat(sa))},Ya=function(Ci){var Wo=Ft.filter(function(sa){return sa!==Ci});$t(Wo,{type:"remove",values:[Ci]})},Da=function(){Fa.current=!1},ds=ee.useRef(!1),vl=function(){wo(!0),rr||(Un&&!ds.current&&Un.apply(void 0,arguments),Dn.includes("focus")&&ci(!0)),ds.current=!0},Js=function(){so.current=!0,wo(!1,function(){ds.current=!1,so.current=!1,ci(!1)}),!rr&&(Vr&&(Mn==="tags"?An(Vr,{source:"submit"}):Mn==="multiple"&&An("",{source:"blur"})),Vn&&Vn.apply(void 0,arguments))},za=[];ee.useEffect(function(){return function(){za.forEach(function(Wi){return clearTimeout(Wi)}),za.splice(0,za.length)}},[]);var ts=function(Ci){var Wo,sa=Ci.target,ko=(Wo=_i.current)===null||Wo===void 0?void 0:Wo.getPopupElement();if(ko&&ko.contains(sa)){var Uo=setTimeout(function(){var xa=za.indexOf(Uo);if(xa!==-1&&za.splice(xa,1),ni(),!mi&&!ko.contains(document.activeElement)){var wa;(wa=Ni.current)===null||wa===void 0||wa.focus()}});za.push(Uo)}for(var Ba=arguments.length,ka=new Array(Ba>1?Ba-1:0),Za=1;Za<Ba;Za++)ka[Za-1]=arguments[Za];jr==null||jr.apply(void 0,[Ci].concat(ka))},Aa=ee.useState({}),gl=(0,be.Z)(Aa,2),Ns=gl[1];function Qs(){Ns({})}var el;qi&&(el=function(Ci){ci(Ci)}),De(function(){var Wi;return[Oi.current,(Wi=_i.current)===null||Wi===void 0?void 0:Wi.getPopupElement()]},es,ci,!!qi);var zl=ee.useMemo(function(){return(0,je.Z)((0,je.Z)({},Mt),{},{notFoundContent:Tn,open:Do,triggerOpen:es,id:Rt,showSearch:qn,multiple:zn,toggleOpen:ci})},[Mt,Tn,es,Do,Rt,qn,zn,ci]),Rs=!!Hr||lr,Ha;Rs&&(Ha=ee.createElement(pe,{className:x()("".concat(Tt,"-arrow"),(0,y.Z)({},"".concat(Tt,"-arrow-loading"),lr)),customizeIcon:Hr,customizeIconProps:{loading:lr,searchValue:Vr,open:Do,focused:jo,showSearch:qn}}));var fs=function(){var Ci;On==null||On(),(Ci=Ni.current)===null||Ci===void 0||Ci.focus(),$t([],{type:"clear",values:Ft}),lo("",!1,!1)},xs=he(Tt,fs,Ft,br,kr,rr,Vr,Mn),Ms=xs.allowClear,ps=xs.clearIcon,Bs=ee.createElement(Ur,{ref:Ri}),tl=x()(Tt,_t,(0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)({},"".concat(Tt,"-focused"),jo),"".concat(Tt,"-multiple"),zn),"".concat(Tt,"-single"),!zn),"".concat(Tt,"-allow-clear"),br),"".concat(Tt,"-show-arrow"),Rs),"".concat(Tt,"-disabled"),rr),"".concat(Tt,"-loading"),lr),"".concat(Tt,"-open"),Do),"".concat(Tt,"-customize-input"),Qi),"".concat(Tt,"-show-search"),qn)),ns=ee.createElement(we,{ref:_i,disabled:rr,prefixCls:Tt,visible:es,popupElement:Bs,animation:Tr,transitionName:ei,dropdownStyle:si,dropdownClassName:wi,direction:Lt,dropdownMatchSelectWidth:Kr,dropdownRender:gi,dropdownAlign:di,placement:bi,builtinPlacements:Or,getPopupContainer:Pr,empty:Zt,getTriggerDOMNode:function(Ci){return Ii.current||Ci},onPopupVisibleChange:el,onPopupMouseEnter:Qs},qi?ee.cloneElement(qi,{ref:li}):ee.createElement(Fe,(0,te.Z)({},Mt,{domRef:Ii,prefixCls:Tt,inputElement:Qi,ref:Ni,id:Rt,prefix:Er,showSearch:qn,autoClearSearchValue:yr,mode:Mn,activeDescendantId:Cr,tagRender:Ut,values:Ft,open:Do,onToggleOpen:ci,activeValue:wr,searchValue:Vr,onSearch:lo,onSearchSubmit:Ma,onRemove:Ya,tokenWithEnter:Si,onInputBlur:Da}))),aa;return qi?aa=ns:aa=ee.createElement("div",(0,te.Z)({className:tl},or,{ref:Oi,onMouseDown:ts,onKeyDown:ha,onKeyUp:$a,onFocus:vl,onBlur:Js}),ee.createElement(st,{visible:jo&&!Do,values:Ft}),ns,Ha,Ms&&ps),ee.createElement(ye.Provider,{value:zl},aa)}),Et=jt,kt=function(){return null};kt.isSelectOptGroup=!0;var Nt=kt,yt=function(){return null};yt.isSelectOption=!0;var Pt=yt,Kt=Te(80547),nn=Te(2738),xt=Te(48911);function Ct(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var zt=["disabled","title","children","style","className"];function en(Mt){return typeof Mt=="string"||typeof Mt=="number"}var un=function(Gt,St){var Rt=ge(),Tt=Rt.prefixCls,_t=Rt.id,bt=Rt.open,Ut=Rt.multiple,Lt=Rt.mode,qt=Rt.searchValue,Ft=Rt.toggleOpen,$t=Rt.notFoundContent,Zt=Rt.onPopupScroll,Xt=ee.useContext(ct),Tn=Xt.maxCount,On=Xt.flattenOptions,Mn=Xt.onActiveValue,rr=Xt.defaultActiveFirstOption,lr=Xt.onSelect,hr=Xt.menuItemSelectedIcon,er=Xt.rawValues,Qn=Xt.fieldNames,Fn=Xt.virtual,pr=Xt.direction,wr=Xt.listHeight,Sr=Xt.listItemHeight,Cr=Xt.optionRender,Jn="".concat(Tt,"-item"),yr=(0,Kt.Z)(function(){return On},[bt,On],function(ur,Dn){return Dn[0]&&ur[1]!==Dn[1]}),An=ee.useRef(null),xn=ee.useMemo(function(){return Ut&&$e(Tn)&&(er==null?void 0:er.size)>=Tn},[Ut,Tn,er==null?void 0:er.size]),tr=function(Dn){Dn.preventDefault()},br=function(Dn){var Un;(Un=An.current)===null||Un===void 0||Un.scrollTo(typeof Dn=="number"?{index:Dn}:Dn)},Er=ee.useCallback(function(ur){return Lt==="combobox"?!1:er.has(ur)},[Lt,(0,Ot.Z)(er).toString(),er.size]),Hr=function(Dn){for(var Un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Vn=yr.length,$n=0;$n<Vn;$n+=1){var cr=(Dn+$n*Un+Vn)%Vn,jr=yr[cr]||{},Gn=jr.group,zn=jr.data;if(!Gn&&!(zn!=null&&zn.disabled)&&(Er(zn.value)||!xn))return cr}return-1},kr=ee.useState(function(){return Hr(0)}),Ur=(0,be.Z)(kr,2),Tr=Ur[0],ei=Ur[1],si=function(Dn){var Un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ei(Dn);var Vn={source:Un?"keyboard":"mouse"},$n=yr[Dn];if(!$n){Mn(null,-1,Vn);return}Mn($n.value,Dn,Vn)};(0,ee.useEffect)(function(){si(rr!==!1?Hr(0):-1)},[yr.length,qt]);var wi=ee.useCallback(function(ur){return Lt==="combobox"?String(ur).toLowerCase()===qt.toLowerCase():er.has(ur)},[Lt,qt,(0,Ot.Z)(er).toString(),er.size]);(0,ee.useEffect)(function(){var ur=setTimeout(function(){if(!Ut&&bt&&er.size===1){var Un=Array.from(er)[0],Vn=yr.findIndex(function($n){var cr=$n.data;return qt?String(cr.value).startsWith(qt):cr.value===Un});Vn!==-1&&(si(Vn),br(Vn))}});if(bt){var Dn;(Dn=An.current)===null||Dn===void 0||Dn.scrollTo(void 0)}return function(){return clearTimeout(ur)}},[bt,qt]);var Kr=function(Dn){Dn!==void 0&&lr(Dn,{selected:!er.has(Dn)}),Ut||Ft(!1)};if(ee.useImperativeHandle(St,function(){return{onKeyDown:function(Dn){var Un=Dn.which,Vn=Dn.ctrlKey;switch(Un){case Be.Z.N:case Be.Z.P:case Be.Z.UP:case Be.Z.DOWN:{var $n=0;if(Un===Be.Z.UP?$n=-1:Un===Be.Z.DOWN?$n=1:Ct()&&Vn&&(Un===Be.Z.N?$n=1:Un===Be.Z.P&&($n=-1)),$n!==0){var cr=Hr(Tr+$n,$n);br(cr),si(cr,!0)}break}case Be.Z.TAB:case Be.Z.ENTER:{var jr,Gn=yr[Tr];Gn&&!(Gn!=null&&(jr=Gn.data)!==null&&jr!==void 0&&jr.disabled)&&!xn?Kr(Gn.value):Kr(void 0),bt&&Dn.preventDefault();break}case Be.Z.ESC:Ft(!1),bt&&Dn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Dn){br(Dn)}}}),yr.length===0)return ee.createElement("div",{role:"listbox",id:"".concat(_t,"_list"),className:"".concat(Jn,"-empty"),onMouseDown:tr},$t);var gi=Object.keys(Qn).map(function(ur){return Qn[ur]}),di=function(Dn){return Dn.label};function bi(ur,Dn){var Un=ur.group;return{role:Un?"presentation":"option",id:"".concat(_t,"_list_").concat(Dn)}}var Or=function(Dn){var Un=yr[Dn];if(!Un)return null;var Vn=Un.data||{},$n=Vn.value,cr=Un.group,jr=(0,Se.Z)(Vn,!0),Gn=di(Un);return Un?ee.createElement("div",(0,te.Z)({"aria-label":typeof Gn=="string"&&!cr?Gn:null},jr,{key:Dn},bi(Un,Dn),{"aria-selected":wi($n)}),$n):null},Pr={role:"listbox",id:"".concat(_t,"_list")};return ee.createElement(ee.Fragment,null,Fn&&ee.createElement("div",(0,te.Z)({},Pr,{style:{height:0,width:0,overflow:"hidden"}}),Or(Tr-1),Or(Tr),Or(Tr+1)),ee.createElement(xt.Z,{itemKey:"key",ref:An,data:yr,height:wr,itemHeight:Sr,fullHeight:!1,onMouseDown:tr,onScroll:Zt,virtual:Fn,direction:pr,innerProps:Fn?null:Pr},function(ur,Dn){var Un=ur.group,Vn=ur.groupOption,$n=ur.data,cr=ur.label,jr=ur.value,Gn=$n.key;if(Un){var zn,qn=(zn=$n.title)!==null&&zn!==void 0?zn:en(cr)?cr.toString():void 0;return ee.createElement("div",{className:x()(Jn,"".concat(Jn,"-group"),$n.className),title:qn},cr!==void 0?cr:Gn)}var or=$n.disabled,ti=$n.title,Ti=$n.children,mi=$n.style,ki=$n.className,Oi=(0,z.Z)($n,zt),Ii=(0,nn.Z)(Oi,gi),_i=Er(jr),Ni=or||!_i&&xn,Ri="".concat(Jn,"-option"),so=x()(Jn,Ri,ki,(0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)({},"".concat(Ri,"-grouped"),Vn),"".concat(Ri,"-active"),Tr===Dn&&!Ni),"".concat(Ri,"-disabled"),Ni),"".concat(Ri,"-selected"),_i)),xo=di(ur),Po=!hr||typeof hr=="function"||_i,jo=typeof xo=="number"?xo:xo||jr,wo=en(jo)?jo.toString():void 0;return ti!==void 0&&(wo=ti),ee.createElement("div",(0,te.Z)({},(0,Se.Z)(Ii),Fn?{}:bi(ur,Dn),{"aria-selected":wi(jr),className:so,title:wo,onMouseMove:function(){Tr===Dn||Ni||si(Dn)},onClick:function(){Ni||Kr(jr)},style:mi}),ee.createElement("div",{className:"".concat(Ri,"-content")},typeof Cr=="function"?Cr(ur,{index:Dn}):jo),ee.isValidElement(hr)||_i,Po&&ee.createElement(pe,{className:"".concat(Jn,"-option-state"),customizeIcon:hr,customizeIconProps:{value:jr,disabled:Ni,isSelected:_i}},_i?"\u2713":null))}))},Cn=ee.forwardRef(un),Nn=Cn,_n=function(Mt,Gt){var St=ee.useRef({values:new Map,options:new Map}),Rt=ee.useMemo(function(){var _t=St.current,bt=_t.values,Ut=_t.options,Lt=Mt.map(function($t){if($t.label===void 0){var Zt;return(0,je.Z)((0,je.Z)({},$t),{},{label:(Zt=bt.get($t.value))===null||Zt===void 0?void 0:Zt.label})}return $t}),qt=new Map,Ft=new Map;return Lt.forEach(function($t){qt.set($t.value,$t),Ft.set($t.value,Gt.get($t.value)||Ut.get($t.value))}),St.current.values=qt,St.current.options=Ft,Lt},[Mt,Gt]),Tt=ee.useCallback(function(_t){return Gt.get(_t)||St.current.options.get(_t)},[Gt]);return[Rt,Tt]};function yn(Mt,Gt){return Ze(Mt).join("").toUpperCase().includes(Gt)}var Rn=function(Mt,Gt,St,Rt,Tt){return ee.useMemo(function(){if(!St||Rt===!1)return Mt;var _t=Gt.options,bt=Gt.label,Ut=Gt.value,Lt=[],qt=typeof Rt=="function",Ft=St.toUpperCase(),$t=qt?Rt:function(Xt,Tn){return Tt?yn(Tn[Tt],Ft):Tn[_t]?yn(Tn[bt!=="children"?bt:"label"],Ft):yn(Tn[Ut],Ft)},Zt=qt?function(Xt){return ut(Xt)}:function(Xt){return Xt};return Mt.forEach(function(Xt){if(Xt[_t]){var Tn=$t(St,Zt(Xt));if(Tn)Lt.push(Xt);else{var On=Xt[_t].filter(function(Mn){return $t(St,Zt(Mn))});On.length&&Lt.push((0,je.Z)((0,je.Z)({},Xt),{},(0,y.Z)({},_t,On)))}return}$t(St,Zt(Xt))&&Lt.push(Xt)}),Lt},[Mt,Rt,Tt,St,Gt])},pn=Te(6551),on=Te(11592),Vt=["children","value"],Wt=["children"];function Ht(Mt){var Gt=Mt,St=Gt.key,Rt=Gt.props,Tt=Rt.children,_t=Rt.value,bt=(0,z.Z)(Rt,Vt);return(0,je.Z)({key:St,value:_t!==void 0?_t:St,children:Tt},bt)}function hn(Mt){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,on.Z)(Mt).map(function(St,Rt){if(!ee.isValidElement(St)||!St.type)return null;var Tt=St,_t=Tt.type.isSelectOptGroup,bt=Tt.key,Ut=Tt.props,Lt=Ut.children,qt=(0,z.Z)(Ut,Wt);return Gt||!_t?Ht(St):(0,je.Z)((0,je.Z)({key:"__RC_SELECT_GRP__".concat(bt===null?Rt:bt,"__"),label:bt},qt),{},{options:hn(Lt)})}).filter(function(St){return St})}var cn=function(Gt,St,Rt,Tt,_t){return ee.useMemo(function(){var bt=Gt,Ut=!Gt;Ut&&(bt=hn(St));var Lt=new Map,qt=new Map,Ft=function(Xt,Tn,On){On&&typeof On=="string"&&Xt.set(Tn[On],Tn)},$t=function Zt(Xt){for(var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,On=0;On<Xt.length;On+=1){var Mn=Xt[On];!Mn[Rt.options]||Tn?(Lt.set(Mn[Rt.value],Mn),Ft(qt,Mn,Rt.label),Ft(qt,Mn,Tt),Ft(qt,Mn,_t)):Zt(Mn[Rt.options],!0)}};return $t(bt),{options:bt,valueOptions:Lt,labelOptions:qt}},[Gt,St,Rt,Tt,_t])},mn=cn;function Bn(Mt){var Gt=ee.useRef();Gt.current=Mt;var St=ee.useCallback(function(){return Gt.current.apply(Gt,arguments)},[]);return St}function Pn(Mt){var Gt=Mt.mode,St=Mt.options,Rt=Mt.children,Tt=Mt.backfill,_t=Mt.allowClear,bt=Mt.placeholder,Ut=Mt.getInputElement,Lt=Mt.showSearch,qt=Mt.onSearch,Ft=Mt.defaultOpen,$t=Mt.autoFocus,Zt=Mt.labelInValue,Xt=Mt.value,Tn=Mt.inputValue,On=Mt.optionLabelProp,Mn=isMultiple(Gt),rr=Lt!==void 0?Lt:Mn||Gt==="combobox",lr=St||convertChildrenToData(Rt);if(warning(Gt!=="tags"||lr.every(function(Fn){return!Fn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Gt==="tags"||Gt==="combobox"){var hr=lr.some(function(Fn){return Fn.options?Fn.options.some(function(pr){return typeof("value"in pr?pr.value:pr.key)=="number"}):typeof("value"in Fn?Fn.value:Fn.key)=="number"});warning(!hr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Gt!=="combobox"||!On,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Gt==="combobox"||!Tt,"`backfill` only works with `combobox` mode."),warning(Gt==="combobox"||!Ut,"`getInputElement` only work with `combobox` mode."),noteOnce(Gt!=="combobox"||!Ut||!_t||!bt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),qt&&!rr&&Gt!=="combobox"&&Gt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ft||$t,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Xt!=null){var er=toArray(Xt);warning(!Zt||er.every(function(Fn){return _typeof(Fn)==="object"&&("key"in Fn||"value"in Fn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Mn||Array.isArray(Xt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Rt){var Qn=null;toNodeArray(Rt).some(function(Fn){if(!React.isValidElement(Fn)||!Fn.type)return!1;var pr=Fn,wr=pr.type;if(wr.isSelectOption)return!1;if(wr.isSelectOptGroup){var Sr=toNodeArray(Fn.props.children).every(function(Cr){return!React.isValidElement(Cr)||!Fn.type||Cr.type.isSelectOption?!0:(Qn=Cr.type,!1)});return!Sr}return Qn=wr,!0}),Qn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Qn.displayName||Qn.name||Qn,"`.")),warning(Tn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function gn(Mt,Gt){if(Mt){var St=function Rt(Tt){for(var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,bt=0;bt<Tt.length;bt++){var Ut=Tt[bt];if(Ut[Gt==null?void 0:Gt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!_t&&Array.isArray(Ut[Gt==null?void 0:Gt.options])&&Rt(Ut[Gt==null?void 0:Gt.options],!0))break}};St(Mt)}}var Ln=null,Kn=["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"],sr=["inputValue"];function nr(Mt){return!Mt||(0,E.Z)(Mt)!=="object"}var ln=ee.forwardRef(function(Mt,Gt){var St=Mt.id,Rt=Mt.mode,Tt=Mt.prefixCls,_t=Tt===void 0?"rc-select":Tt,bt=Mt.backfill,Ut=Mt.fieldNames,Lt=Mt.inputValue,qt=Mt.searchValue,Ft=Mt.onSearch,$t=Mt.autoClearSearchValue,Zt=$t===void 0?!0:$t,Xt=Mt.onSelect,Tn=Mt.onDeselect,On=Mt.dropdownMatchSelectWidth,Mn=On===void 0?!0:On,rr=Mt.filterOption,lr=Mt.filterSort,hr=Mt.optionFilterProp,er=Mt.optionLabelProp,Qn=Mt.options,Fn=Mt.optionRender,pr=Mt.children,wr=Mt.defaultActiveFirstOption,Sr=Mt.menuItemSelectedIcon,Cr=Mt.virtual,Jn=Mt.direction,yr=Mt.listHeight,An=yr===void 0?200:yr,xn=Mt.listItemHeight,tr=xn===void 0?20:xn,br=Mt.labelRender,Er=Mt.value,Hr=Mt.defaultValue,kr=Mt.labelInValue,Ur=Mt.onChange,Tr=Mt.maxCount,ei=(0,z.Z)(Mt,Kn),si=(0,pn.ZP)(St),wi=Dt(Rt),Kr=!!(!Qn&&pr),gi=ee.useMemo(function(){return rr===void 0&&Rt==="combobox"?!1:rr},[rr,Rt]),di=ee.useMemo(function(){return Ge(Ut,Kr)},[JSON.stringify(Ut),Kr]),bi=(0,ie.Z)("",{value:qt!==void 0?qt:Lt,postState:function(Si){return Si||""}}),Or=(0,be.Z)(bi,2),Pr=Or[0],ur=Or[1],Dn=mn(Qn,pr,di,hr,er),Un=Dn.valueOptions,Vn=Dn.labelOptions,$n=Dn.options,cr=ee.useCallback(function(ci){var Si=Ze(ci);return Si.map(function(ii){var fi,Ui,lo,Ma,oa;if(nr(ii))fi=ii;else{var Yo;lo=ii.key,Ui=ii.label,fi=(Yo=ii.value)!==null&&Yo!==void 0?Yo:lo}var Ao=Un.get(fi);if(Ao){var ja;if(Ui===void 0&&(Ui=Ao==null?void 0:Ao[er||di.label]),lo===void 0&&(lo=(ja=Ao==null?void 0:Ao.key)!==null&&ja!==void 0?ja:fi),Ma=Ao==null?void 0:Ao.disabled,oa=Ao==null?void 0:Ao.title,0)var Fa}return{label:Ui,value:fi,key:lo,disabled:Ma,title:oa}})},[di,er,Un]),jr=(0,ie.Z)(Hr,{value:Er}),Gn=(0,be.Z)(jr,2),zn=Gn[0],qn=Gn[1],or=ee.useMemo(function(){var ci,Si=wi&&zn===null?[]:zn,ii=cr(Si);return Rt==="combobox"&&Ue((ci=ii[0])===null||ci===void 0?void 0:ci.value)?[]:ii},[zn,cr,Rt,wi]),ti=_n(or,Un),Ti=(0,be.Z)(ti,2),mi=Ti[0],ki=Ti[1],Oi=ee.useMemo(function(){if(!Rt&&mi.length===1){var ci=mi[0];if(ci.value===null&&(ci.label===null||ci.label===void 0))return[]}return mi.map(function(Si){var ii;return(0,je.Z)((0,je.Z)({},Si),{},{label:(ii=typeof br=="function"?br(Si):Si.label)!==null&&ii!==void 0?ii:Si.value})})},[Rt,mi,br]),Ii=ee.useMemo(function(){return new Set(mi.map(function(ci){return ci.value}))},[mi]);ee.useEffect(function(){if(Rt==="combobox"){var ci,Si=(ci=mi[0])===null||ci===void 0?void 0:ci.value;ur(_e(Si)?String(Si):"")}},[mi]);var _i=Bn(function(ci,Si){var ii=Si!=null?Si:ci;return(0,y.Z)((0,y.Z)({},di.value,ci),di.label,ii)}),Ni=ee.useMemo(function(){if(Rt!=="tags")return $n;var ci=(0,Ot.Z)($n),Si=function(fi){return Un.has(fi)};return(0,Ot.Z)(mi).sort(function(ii,fi){return ii.value<fi.value?-1:1}).forEach(function(ii){var fi=ii.value;Si(fi)||ci.push(_i(fi,ii.label))}),ci},[_i,$n,Un,mi,Rt]),Ri=Rn(Ni,di,Pr,gi,hr),so=ee.useMemo(function(){return Rt!=="tags"||!Pr||Ri.some(function(ci){return ci[hr||"value"]===Pr})||Ri.some(function(ci){return ci[di.value]===Pr})?Ri:[_i(Pr)].concat((0,Ot.Z)(Ri))},[_i,hr,Rt,Ri,Pr,di]),xo=function ci(Si){var ii=(0,Ot.Z)(Si).sort(function(fi,Ui){return lr(fi,Ui,{searchValue:Pr})});return ii.map(function(fi){return Array.isArray(fi.options)?(0,je.Z)((0,je.Z)({},fi),{},{options:fi.options.length>0?ci(fi.options):fi.options}):fi})},Po=ee.useMemo(function(){return lr?xo(so):so},[so,lr,Pr]),jo=ee.useMemo(function(){return Je(Po,{fieldNames:di,childrenAsData:Kr})},[Po,di,Kr]),wo=function(Si){var ii=cr(Si);if(qn(ii),Ur&&(ii.length!==mi.length||ii.some(function(lo,Ma){var oa;return((oa=mi[Ma])===null||oa===void 0?void 0:oa.value)!==(lo==null?void 0:lo.value)}))){var fi=kr?ii:ii.map(function(lo){return lo.value}),Ui=ii.map(function(lo){return ut(ki(lo.value))});Ur(wi?fi:fi[0],wi?Ui:Ui[0])}},ni=ee.useState(null),Vr=(0,be.Z)(ni,2),Qi=Vr[0],qi=Vr[1],li=ee.useState(0),Zi=(0,be.Z)(li,2),Yi=Zi[0],yi=Zi[1],Fi=wr!==void 0?wr:Rt!=="combobox",Ai=ee.useCallback(function(ci,Si){var ii=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},fi=ii.source,Ui=fi===void 0?"keyboard":fi;yi(Si),bt&&Rt==="combobox"&&ci!==null&&Ui==="keyboard"&&qi(String(ci))},[bt,Rt]),Fo=function(Si,ii,fi){var Ui=function(){var Ya,Da=ki(Si);return[kr?{label:Da==null?void 0:Da[di.label],value:Si,key:(Ya=Da==null?void 0:Da.key)!==null&&Ya!==void 0?Ya:Si}:Si,ut(Da)]};if(ii&&Xt){var lo=Ui(),Ma=(0,be.Z)(lo,2),oa=Ma[0],Yo=Ma[1];Xt(oa,Yo)}else if(!ii&&Tn&&fi!=="clear"){var Ao=Ui(),ja=(0,be.Z)(Ao,2),Fa=ja[0],ha=ja[1];Tn(Fa,ha)}},pa=Bn(function(ci,Si){var ii,fi=wi?Si.selected:!0;fi?ii=wi?[].concat((0,Ot.Z)(mi),[ci]):[ci]:ii=mi.filter(function(Ui){return Ui.value!==ci}),wo(ii),Fo(ci,fi),Rt==="combobox"?qi(""):(!Dt||Zt)&&(ur(""),qi(""))}),Zo=function(Si,ii){wo(Si);var fi=ii.type,Ui=ii.values;(fi==="remove"||fi==="clear")&&Ui.forEach(function(lo){Fo(lo.value,!1,fi)})},Do=function(Si,ii){if(ur(Si),qi(null),ii.source==="submit"){var fi=(Si||"").trim();if(fi){var Ui=Array.from(new Set([].concat((0,Ot.Z)(Ii),[fi])));wo(Ui),Fo(fi,!0),ur("")}return}ii.source!=="blur"&&(Rt==="combobox"&&wo(Si),Ft==null||Ft(Si))},cs=function(Si){var ii=Si;Rt!=="tags"&&(ii=Si.map(function(Ui){var lo=Vn.get(Ui);return lo==null?void 0:lo.value}).filter(function(Ui){return Ui!==void 0}));var fi=Array.from(new Set([].concat((0,Ot.Z)(Ii),(0,Ot.Z)(ii))));wo(fi),fi.forEach(function(Ui){Fo(Ui,!0)})},es=ee.useMemo(function(){var ci=Cr!==!1&&Mn!==!1;return(0,je.Z)((0,je.Z)({},Dn),{},{flattenOptions:jo,onActiveValue:Ai,defaultActiveFirstOption:Fi,onSelect:pa,menuItemSelectedIcon:Sr,rawValues:Ii,fieldNames:di,virtual:ci,direction:Jn,listHeight:An,listItemHeight:tr,childrenAsData:Kr,maxCount:Tr,optionRender:Fn})},[Tr,Dn,jo,Ai,Fi,pa,Sr,Ii,di,Cr,Mn,Jn,An,tr,Kr,Fn]);return ee.createElement(ct.Provider,{value:es},ee.createElement(Et,(0,te.Z)({},ei,{id:si,prefixCls:_t,ref:Gt,omitDomProps:sr,mode:Rt,displayValues:Oi,onDisplayValuesChange:Zo,direction:Jn,searchValue:Pr,onSearch:Do,autoClearSearchValue:Zt,onSearchSplit:cs,dropdownMatchSelectWidth:Mn,OptionList:Nn,emptyOptions:!jo.length,activeValue:Qi,activeDescendantId:"".concat(si,"_list_").concat(Yi)})))}),rn=ln;rn.Option=Pt,rn.OptGroup=Nt;var Wn=rn,Zn=Wn},22711:function(In,Yt,Te){"use strict";Te.r(Yt),Te.d(Yt,{ResizableTextArea:function(){return Pe},default:function(){return Ve}});var te=Te(54476),Ot=Te(20068),y=Te(33885),je=Te(94480),be=Te(42978),z=Te(75931),E=Te(92310),ie=Te.n(E),oe=Te(36901),ee=Te(66003),ce=Te(30292),x=Te(18929),ae=Te(59301),re=Te(76190),se=Te(29301),ue=Te(34280),pe=Te(16089),he=`
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;
`,ye=["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"],ge={},xe;function ke(Ze){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=Ze.getAttribute("id")||Ze.getAttribute("data-reactid")||Ze.getAttribute("name");if(We&&ge[nt])return ge[nt];var _e=window.getComputedStyle(Ze),Ue=_e.getPropertyValue("box-sizing")||_e.getPropertyValue("-moz-box-sizing")||_e.getPropertyValue("-webkit-box-sizing"),tt=parseFloat(_e.getPropertyValue("padding-bottom"))+parseFloat(_e.getPropertyValue("padding-top")),rt=parseFloat(_e.getPropertyValue("border-bottom-width"))+parseFloat(_e.getPropertyValue("border-top-width")),et=ye.map(function(Ye){return"".concat(Ye,":").concat(_e.getPropertyValue(Ye))}).join(";"),Ke={sizingStyle:et,paddingSize:tt,borderSize:rt,boxSizing:Ue};return We&&nt&&(ge[nt]=Ke),Ke}function De(Ze){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,_e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;xe||(xe=document.createElement("textarea"),xe.setAttribute("tab-index","-1"),xe.setAttribute("aria-hidden","true"),xe.setAttribute("name","hiddenTextarea"),document.body.appendChild(xe)),Ze.getAttribute("wrap")?xe.setAttribute("wrap",Ze.getAttribute("wrap")):xe.removeAttribute("wrap");var Ue=ke(Ze,We),tt=Ue.paddingSize,rt=Ue.borderSize,et=Ue.boxSizing,Ke=Ue.sizingStyle;xe.setAttribute("style","".concat(Ke,";").concat(he)),xe.value=Ze.value||Ze.placeholder||"";var Ye=void 0,Xe=void 0,ot,Qe=xe.scrollHeight;if(et==="border-box"?Qe+=rt:et==="content-box"&&(Qe-=tt),nt!==null||_e!==null){xe.value=" ";var ft=xe.scrollHeight-tt;nt!==null&&(Ye=ft*nt,et==="border-box"&&(Ye=Ye+tt+rt),Qe=Math.max(Ye,Qe)),_e!==null&&(Xe=ft*_e,et==="border-box"&&(Xe=Xe+tt+rt),ot=Qe>Xe?"":"hidden",Qe=Math.min(Xe,Qe))}var at={height:Qe,overflowY:ot,resize:"none"};return Ye&&(at.minHeight=Ye),Xe&&(at.maxHeight=Xe),at}var Be=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ae=0,Se=1,Ee=2,Oe=ae.forwardRef(function(Ze,We){var nt=Ze,_e=nt.prefixCls,Ue=nt.defaultValue,tt=nt.value,rt=nt.autoSize,et=nt.onResize,Ke=nt.className,Ye=nt.style,Xe=nt.disabled,ot=nt.onChange,Qe=nt.onInternalAutoSize,ft=(0,z.Z)(nt,Be),at=(0,x.Z)(Ue,{value:tt,postState:function(Pt){return Pt!=null?Pt:""}}),qe=(0,be.Z)(at,2),Fe=qe[0],Re=qe[1],ne=function(Pt){Re(Pt.target.value),ot==null||ot(Pt)},fe=ae.useRef();ae.useImperativeHandle(We,function(){return{textArea:fe.current}});var Me=ae.useMemo(function(){return rt&&(0,re.Z)(rt)==="object"?[rt.minRows,rt.maxRows]:[]},[rt]),ze=(0,be.Z)(Me,2),we=ze[0],ve=ze[1],Ie=!!rt,$e=function(){try{if(document.activeElement===fe.current){var Pt=fe.current,Kt=Pt.selectionStart,nn=Pt.selectionEnd,xt=Pt.scrollTop;fe.current.setSelectionRange(Kt,nn),fe.current.scrollTop=xt}}catch(Ct){}},Ge=ae.useState(Ee),Je=(0,be.Z)(Ge,2),ut=Je[0],lt=Je[1],vt=ae.useState(),ct=(0,be.Z)(vt,2),st=ct[0],At=ct[1],mt=function(){lt(Ae)};(0,ue.Z)(function(){Ie&&mt()},[tt,we,ve,Ie]),(0,ue.Z)(function(){if(ut===Ae)lt(Se);else if(ut===Se){var yt=De(fe.current,!1,we,ve);lt(Ee),At(yt)}else $e()},[ut]);var Dt=ae.useRef(),jt=function(){pe.Z.cancel(Dt.current)},Et=function(Pt){ut===Ee&&(et==null||et(Pt),rt&&(jt(),Dt.current=(0,pe.Z)(function(){mt()})))};ae.useEffect(function(){return jt},[]);var kt=Ie?st:null,Nt=(0,y.Z)((0,y.Z)({},Ye),kt);return(ut===Ae||ut===Se)&&(Nt.overflowY="hidden",Nt.overflowX="hidden"),ae.createElement(se.Z,{onResize:Et,disabled:!(rt||et)},ae.createElement("textarea",(0,te.Z)({},ft,{ref:fe,style:Nt,className:ie()(_e,Ke,(0,Ot.Z)({},"".concat(_e,"-disabled"),Xe)),disabled:Xe,value:Fe,onChange:ne})))}),Pe=Oe,Le=["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"],Ne=ae.forwardRef(function(Ze,We){var nt,_e=Ze.defaultValue,Ue=Ze.value,tt=Ze.onFocus,rt=Ze.onBlur,et=Ze.onChange,Ke=Ze.allowClear,Ye=Ze.maxLength,Xe=Ze.onCompositionStart,ot=Ze.onCompositionEnd,Qe=Ze.suffix,ft=Ze.prefixCls,at=ft===void 0?"rc-textarea":ft,qe=Ze.showCount,Fe=Ze.count,Re=Ze.className,ne=Ze.style,fe=Ze.disabled,Me=Ze.hidden,ze=Ze.classNames,we=Ze.styles,ve=Ze.onResize,Ie=Ze.onClear,$e=Ze.onPressEnter,Ge=Ze.readOnly,Je=Ze.autoSize,ut=Ze.onKeyDown,lt=(0,z.Z)(Ze,Le),vt=(0,x.Z)(_e,{value:Ue,defaultValue:_e}),ct=(0,be.Z)(vt,2),st=ct[0],At=ct[1],mt=st==null?"":String(st),Dt=ae.useState(!1),jt=(0,be.Z)(Dt,2),Et=jt[0],kt=jt[1],Nt=ae.useRef(!1),yt=ae.useState(null),Pt=(0,be.Z)(yt,2),Kt=Pt[0],nn=Pt[1],xt=(0,ae.useRef)(null),Ct=(0,ae.useRef)(null),zt=function(){var rn;return(rn=Ct.current)===null||rn===void 0?void 0:rn.textArea},en=function(){zt().focus()};(0,ae.useImperativeHandle)(We,function(){var ln;return{resizableTextArea:Ct.current,focus:en,blur:function(){zt().blur()},nativeElement:((ln=xt.current)===null||ln===void 0?void 0:ln.nativeElement)||zt()}}),(0,ae.useEffect)(function(){kt(function(ln){return!fe&&ln})},[fe]);var un=ae.useState(null),Cn=(0,be.Z)(un,2),Nn=Cn[0],_n=Cn[1];ae.useEffect(function(){if(Nn){var ln;(ln=zt()).setSelectionRange.apply(ln,(0,je.Z)(Nn))}},[Nn]);var yn=(0,ee.Z)(Fe,qe),Rn=(nt=yn.max)!==null&&nt!==void 0?nt:Ye,pn=Number(Rn)>0,on=yn.strategy(mt),Vt=!!Rn&&on>Rn,Wt=function(rn,Wn){var Zn=Wn;!Nt.current&&yn.exceedFormatter&&yn.max&&yn.strategy(Wn)>yn.max&&(Zn=yn.exceedFormatter(Wn,{max:yn.max}),Wn!==Zn&&_n([zt().selectionStart||0,zt().selectionEnd||0])),At(Zn),(0,ce.rJ)(rn.currentTarget,rn,et,Zn)},Ht=function(rn){Nt.current=!0,Xe==null||Xe(rn)},hn=function(rn){Nt.current=!1,Wt(rn,rn.currentTarget.value),ot==null||ot(rn)},cn=function(rn){Wt(rn,rn.target.value)},mn=function(rn){rn.key==="Enter"&&$e&&$e(rn),ut==null||ut(rn)},Bn=function(rn){kt(!0),tt==null||tt(rn)},Pn=function(rn){kt(!1),rt==null||rt(rn)},gn=function(rn){At(""),en(),(0,ce.rJ)(zt(),rn,et)},Ln=Qe,Kn;yn.show&&(yn.showFormatter?Kn=yn.showFormatter({value:mt,count:on,maxLength:Rn}):Kn="".concat(on).concat(pn?" / ".concat(Rn):""),Ln=ae.createElement(ae.Fragment,null,Ln,ae.createElement("span",{className:ie()("".concat(at,"-data-count"),ze==null?void 0:ze.count),style:we==null?void 0:we.count},Kn)));var sr=function(rn){var Wn;ve==null||ve(rn),(Wn=zt())!==null&&Wn!==void 0&&Wn.style.height&&nn(!0)},nr=!Je&&!qe&&!Ke;return ae.createElement(oe.BaseInput,{ref:xt,value:mt,allowClear:Ke,handleReset:gn,suffix:Ln,prefixCls:at,classNames:(0,y.Z)((0,y.Z)({},ze),{},{affixWrapper:ie()(ze==null?void 0:ze.affixWrapper,(0,Ot.Z)((0,Ot.Z)({},"".concat(at,"-show-count"),qe),"".concat(at,"-textarea-allow-clear"),Ke))}),disabled:fe,focused:Et,className:ie()(Re,Vt&&"".concat(at,"-out-of-range")),style:(0,y.Z)((0,y.Z)({},ne),Kt&&!nr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Kn=="string"?Kn:void 0}},hidden:Me,readOnly:Ge,onClear:Ie},ae.createElement(Pe,(0,te.Z)({},lt,{autoSize:Je,maxLength:Ye,onKeyDown:mn,onChange:cn,onFocus:Bn,onBlur:Pn,onCompositionStart:Ht,onCompositionEnd:hn,className:ie()(ze==null?void 0:ze.textarea),style:(0,y.Z)((0,y.Z)({},we==null?void 0:we.textarea),{},{resize:ne==null?void 0:ne.resize}),disabled:fe,prefixCls:at,onResize:sr,ref:Ct,readOnly:Ge})))}),me=Ne,Ve=me},639:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ge}});var te=Te(54476),Ot=Te(20068),y=Te(33885),je=Te(42978),be=Te(75931),z=Te(59301),E=Te(92310),ie=Te.n(E),oe=Te(26112),ee=Te(30699),ce=function(ke){for(var De=ke.prefixCls,Be=ke.level,Ae=ke.isStart,Se=ke.isEnd,Ee="".concat(De,"-indent-unit"),Oe=[],Pe=0;Pe<Be;Pe+=1)Oe.push(z.createElement("span",{key:Pe,className:ie()(Ee,(0,Ot.Z)((0,Ot.Z)({},"".concat(Ee,"-start"),Ae[Pe]),"".concat(Ee,"-end"),Se[Pe]))}));return z.createElement("span",{"aria-hidden":"true",className:"".concat(De,"-indent")},Oe)},x=z.memo(ce),ae=Te(65065),re=Te(34061),se=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ue="open",pe="close",he="---",ye=function(ke){var De,Be,Ae,Se=ke.eventKey,Ee=ke.className,Oe=ke.style,Pe=ke.dragOver,Le=ke.dragOverGapTop,Ne=ke.dragOverGapBottom,me=ke.isLeaf,Ve=ke.isStart,Ze=ke.isEnd,We=ke.expanded,nt=ke.selected,_e=ke.checked,Ue=ke.halfChecked,tt=ke.loading,rt=ke.domRef,et=ke.active,Ke=ke.data,Ye=ke.onMouseMove,Xe=ke.selectable,ot=(0,be.Z)(ke,se),Qe=z.useContext(ee.k),ft=z.useContext(ee.y),at=z.useRef(null),qe=z.useState(!1),Fe=(0,je.Z)(qe,2),Re=Fe[0],ne=Fe[1],fe=!!(Qe.disabled||ke.disabled||(De=ft.nodeDisabled)!==null&&De!==void 0&&De.call(ft,Ke)),Me=z.useMemo(function(){return!Qe.checkable||ke.checkable===!1?!1:Qe.checkable},[Qe.checkable,ke.checkable]),ze=function(on){fe||Qe.onNodeSelect(on,(0,re.F)(ke))},we=function(on){fe||!Me||ke.disableCheckbox||Qe.onNodeCheck(on,(0,re.F)(ke),!_e)},ve=z.useMemo(function(){return typeof Xe=="boolean"?Xe:Qe.selectable},[Xe,Qe.selectable]),Ie=function(on){Qe.onNodeClick(on,(0,re.F)(ke)),ve?ze(on):we(on)},$e=function(on){Qe.onNodeDoubleClick(on,(0,re.F)(ke))},Ge=function(on){Qe.onNodeMouseEnter(on,(0,re.F)(ke))},Je=function(on){Qe.onNodeMouseLeave(on,(0,re.F)(ke))},ut=function(on){Qe.onNodeContextMenu(on,(0,re.F)(ke))},lt=z.useMemo(function(){return!!(Qe.draggable&&(!Qe.draggable.nodeDraggable||Qe.draggable.nodeDraggable(Ke)))},[Qe.draggable,Ke]),vt=function(on){on.stopPropagation(),ne(!0),Qe.onNodeDragStart(on,ke);try{on.dataTransfer.setData("text/plain","")}catch(Vt){}},ct=function(on){on.preventDefault(),on.stopPropagation(),Qe.onNodeDragEnter(on,ke)},st=function(on){on.preventDefault(),on.stopPropagation(),Qe.onNodeDragOver(on,ke)},At=function(on){on.stopPropagation(),Qe.onNodeDragLeave(on,ke)},mt=function(on){on.stopPropagation(),ne(!1),Qe.onNodeDragEnd(on,ke)},Dt=function(on){on.preventDefault(),on.stopPropagation(),ne(!1),Qe.onNodeDrop(on,ke)},jt=function(on){tt||Qe.onNodeExpand(on,(0,re.F)(ke))},Et=z.useMemo(function(){var pn=(0,ae.Z)(Qe.keyEntities,Se)||{},on=pn.children;return!!(on||[]).length},[Qe.keyEntities,Se]),kt=z.useMemo(function(){return me===!1?!1:me||!Qe.loadData&&!Et||Qe.loadData&&ke.loaded&&!Et},[me,Qe.loadData,Et,ke.loaded]);z.useEffect(function(){tt||typeof Qe.loadData=="function"&&We&&!kt&&!ke.loaded&&Qe.onNodeLoad((0,re.F)(ke))},[tt,Qe.loadData,Qe.onNodeLoad,We,kt,ke]);var Nt=z.useMemo(function(){var pn;return(pn=Qe.draggable)!==null&&pn!==void 0&&pn.icon?z.createElement("span",{className:"".concat(Qe.prefixCls,"-draggable-icon")},Qe.draggable.icon):null},[Qe.draggable]),yt=function(on){var Vt=ke.switcherIcon||Qe.switcherIcon;return typeof Vt=="function"?Vt((0,y.Z)((0,y.Z)({},ke),{},{isLeaf:on})):Vt},Pt=function(){if(kt){var on=yt(!0);return on!==!1?z.createElement("span",{className:ie()("".concat(Qe.prefixCls,"-switcher"),"".concat(Qe.prefixCls,"-switcher-noop"))},on):null}var Vt=yt(!1);return Vt!==!1?z.createElement("span",{onClick:jt,className:ie()("".concat(Qe.prefixCls,"-switcher"),"".concat(Qe.prefixCls,"-switcher_").concat(We?ue:pe))},Vt):null},Kt=z.useMemo(function(){if(!Me)return null;var pn=typeof Me!="boolean"?Me:null;return z.createElement("span",{className:ie()("".concat(Qe.prefixCls,"-checkbox"),(0,Ot.Z)((0,Ot.Z)((0,Ot.Z)({},"".concat(Qe.prefixCls,"-checkbox-checked"),_e),"".concat(Qe.prefixCls,"-checkbox-indeterminate"),!_e&&Ue),"".concat(Qe.prefixCls,"-checkbox-disabled"),fe||ke.disableCheckbox)),onClick:we,role:"checkbox","aria-checked":Ue?"mixed":_e,"aria-disabled":fe||ke.disableCheckbox,"aria-label":"Select ".concat(typeof ke.title=="string"?ke.title:"tree node")},pn)},[Me,_e,Ue,fe,ke.disableCheckbox,ke.title]),nn=z.useMemo(function(){return kt?null:We?ue:pe},[kt,We]),xt=z.useMemo(function(){return z.createElement("span",{className:ie()("".concat(Qe.prefixCls,"-iconEle"),"".concat(Qe.prefixCls,"-icon__").concat(nn||"docu"),(0,Ot.Z)({},"".concat(Qe.prefixCls,"-icon_loading"),tt))})},[Qe.prefixCls,nn,tt]),Ct=z.useMemo(function(){var pn=!!Qe.draggable,on=!ke.disabled&&pn&&Qe.dragOverNodeKey===Se;return on?Qe.dropIndicatorRender({dropPosition:Qe.dropPosition,dropLevelOffset:Qe.dropLevelOffset,indent:Qe.indent,prefixCls:Qe.prefixCls,direction:Qe.direction}):null},[Qe.dropPosition,Qe.dropLevelOffset,Qe.indent,Qe.prefixCls,Qe.direction,Qe.draggable,Qe.dragOverNodeKey,Qe.dropIndicatorRender]),zt=z.useMemo(function(){var pn=ke.title,on=pn===void 0?he:pn,Vt="".concat(Qe.prefixCls,"-node-content-wrapper"),Wt;if(Qe.showIcon){var Ht=ke.icon||Qe.icon;Wt=Ht?z.createElement("span",{className:ie()("".concat(Qe.prefixCls,"-iconEle"),"".concat(Qe.prefixCls,"-icon__customize"))},typeof Ht=="function"?Ht(ke):Ht):xt}else Qe.loadData&&tt&&(Wt=xt);var hn;return typeof on=="function"?hn=on(Ke):Qe.titleRender?hn=Qe.titleRender(Ke):hn=on,z.createElement("span",{ref:at,title:typeof on=="string"?on:"",className:ie()(Vt,"".concat(Vt,"-").concat(nn||"normal"),(0,Ot.Z)({},"".concat(Qe.prefixCls,"-node-selected"),!fe&&(nt||Re))),onMouseEnter:Ge,onMouseLeave:Je,onContextMenu:ut,onClick:Ie,onDoubleClick:$e},Wt,z.createElement("span",{className:"".concat(Qe.prefixCls,"-title")},hn),Ct)},[Qe.prefixCls,Qe.showIcon,ke,Qe.icon,xt,Qe.titleRender,Ke,nn,Ge,Je,ut,Ie,$e]),en=(0,oe.Z)(ot,{aria:!0,data:!0}),un=(0,ae.Z)(Qe.keyEntities,Se)||{},Cn=un.level,Nn=Ze[Ze.length-1],_n=!fe&&lt,yn=Qe.draggingNodeKey===Se,Rn=Xe!==void 0?{"aria-selected":!!Xe}:void 0;return z.createElement("div",(0,te.Z)({ref:rt,role:"treeitem","aria-expanded":me?void 0:We,className:ie()(Ee,"".concat(Qe.prefixCls,"-treenode"),(Ae={},(0,Ot.Z)((0,Ot.Z)((0,Ot.Z)((0,Ot.Z)((0,Ot.Z)((0,Ot.Z)((0,Ot.Z)((0,Ot.Z)((0,Ot.Z)((0,Ot.Z)(Ae,"".concat(Qe.prefixCls,"-treenode-disabled"),fe),"".concat(Qe.prefixCls,"-treenode-switcher-").concat(We?"open":"close"),!me),"".concat(Qe.prefixCls,"-treenode-checkbox-checked"),_e),"".concat(Qe.prefixCls,"-treenode-checkbox-indeterminate"),Ue),"".concat(Qe.prefixCls,"-treenode-selected"),nt),"".concat(Qe.prefixCls,"-treenode-loading"),tt),"".concat(Qe.prefixCls,"-treenode-active"),et),"".concat(Qe.prefixCls,"-treenode-leaf-last"),Nn),"".concat(Qe.prefixCls,"-treenode-draggable"),lt),"dragging",yn),(0,Ot.Z)((0,Ot.Z)((0,Ot.Z)((0,Ot.Z)((0,Ot.Z)((0,Ot.Z)((0,Ot.Z)(Ae,"drop-target",Qe.dropTargetKey===Se),"drop-container",Qe.dropContainerKey===Se),"drag-over",!fe&&Pe),"drag-over-gap-top",!fe&&Le),"drag-over-gap-bottom",!fe&&Ne),"filter-node",(Be=Qe.filterTreeNode)===null||Be===void 0?void 0:Be.call(Qe,(0,re.F)(ke))),"".concat(Qe.prefixCls,"-treenode-leaf"),kt))),style:Oe,draggable:_n,onDragStart:_n?vt:void 0,onDragEnter:lt?ct:void 0,onDragOver:lt?st:void 0,onDragLeave:lt?At:void 0,onDrop:lt?Dt:void 0,onDragEnd:lt?mt:void 0,onMouseMove:Ye},Rn,en),z.createElement(x,{prefixCls:Qe.prefixCls,level:Cn,isStart:Ve,isEnd:Ze}),Nt,Pt(),Kt,zt)};ye.isTreeNode=1;var ge=ye},30699:function(In,Yt,Te){"use strict";Te.d(Yt,{k:function(){return Ot},y:function(){return y}});var te=Te(59301),Ot=te.createContext(null),y=te.createContext({})},3741:function(In,Yt,Te){"use strict";Te.d(Yt,{OF:function(){return Se.Z},y6:function(){return pe.y},ZP:function(){return fe}});var te=Te(54476),Ot=Te(76190),y=Te(33885),je=Te(94480),be=Te(67732),z=Te(83652),E=Te(31226),ie=Te(42403),oe=Te(158),ee=Te(20068),ce=Te(92310),x=Te.n(ce),ae=Te(10228),re=Te(26112),se=Te(48736),ue=Te(59301),pe=Te(30699),he=function(ze){var we=ze.dropPosition,ve=ze.dropLevelOffset,Ie=ze.indent,$e={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(we){case-1:$e.top=0,$e.left=-ve*Ie;break;case 1:$e.bottom=0,$e.left=-ve*Ie;break;case 0:$e.bottom=0,$e.left=Ie;break}return ue.createElement("div",{style:$e})},ye=he;function ge(Me){if(Me==null)throw new TypeError("Cannot destructure "+Me)}var xe=Te(42978),ke=Te(75931),De=Te(34280),Be=Te(48911),Ae=Te(77900),Se=Te(639);function Ee(Me,ze){var we=ue.useState(!1),ve=(0,xe.Z)(we,2),Ie=ve[0],$e=ve[1];(0,De.Z)(function(){if(Ie)return Me(),function(){ze()}},[Ie]),(0,De.Z)(function(){return $e(!0),function(){$e(!1)}},[])}var Oe=Ee,Pe=Te(34061),Le=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ne=ue.forwardRef(function(Me,ze){var we=Me.className,ve=Me.style,Ie=Me.motion,$e=Me.motionNodes,Ge=Me.motionType,Je=Me.onMotionStart,ut=Me.onMotionEnd,lt=Me.active,vt=Me.treeNodeRequiredProps,ct=(0,ke.Z)(Me,Le),st=ue.useState(!0),At=(0,xe.Z)(st,2),mt=At[0],Dt=At[1],jt=ue.useContext(pe.k),Et=jt.prefixCls,kt=$e&&Ge!=="hide";(0,De.Z)(function(){$e&&kt!==mt&&Dt(kt)},[$e]);var Nt=function(){$e&&Je()},yt=ue.useRef(!1),Pt=function(){$e&&!yt.current&&(yt.current=!0,ut())};Oe(Nt,Pt);var Kt=function(xt){kt===xt&&Pt()};return $e?ue.createElement(Ae.default,(0,te.Z)({ref:ze,visible:mt},Ie,{motionAppear:Ge==="show",onVisibleChanged:Kt}),function(nn,xt){var Ct=nn.className,zt=nn.style;return ue.createElement("div",{ref:xt,className:x()("".concat(Et,"-treenode-motion"),Ct),style:zt},$e.map(function(en){var un=Object.assign({},(ge(en.data),en.data)),Cn=en.title,Nn=en.key,_n=en.isStart,yn=en.isEnd;delete un.children;var Rn=(0,Pe.H8)(Nn,vt);return ue.createElement(Se.Z,(0,te.Z)({},un,Rn,{title:Cn,active:lt,data:en.data,key:Nn,isStart:_n,isEnd:yn}))}))}):ue.createElement(Se.Z,(0,te.Z)({domRef:ze,className:we,style:ve},ct,{active:lt}))}),me=Ne;function Ve(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],we=Me.length,ve=ze.length;if(Math.abs(we-ve)!==1)return{add:!1,key:null};function Ie($e,Ge){var Je=new Map;$e.forEach(function(lt){Je.set(lt,!0)});var ut=Ge.filter(function(lt){return!Je.has(lt)});return ut.length===1?ut[0]:null}return we<ve?{add:!0,key:Ie(Me,ze)}:{add:!1,key:Ie(ze,Me)}}function Ze(Me,ze,we){var ve=Me.findIndex(function(Je){return Je.key===we}),Ie=Me[ve+1],$e=ze.findIndex(function(Je){return Je.key===we});if(Ie){var Ge=ze.findIndex(function(Je){return Je.key===Ie.key});return ze.slice($e+1,Ge)}return ze.slice($e+1)}var We=["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"],nt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},_e=function(){},Ue="RC_TREE_MOTION_".concat(Math.random()),tt={key:Ue},rt={key:Ue,level:0,index:0,pos:"0",node:tt,nodes:[tt]},et={parent:null,children:[],pos:rt.pos,data:tt,title:null,key:Ue,isStart:[],isEnd:[]};function Ke(Me,ze,we,ve){return ze===!1||!we?Me:Me.slice(0,Math.ceil(we/ve)+1)}function Ye(Me){var ze=Me.key,we=Me.pos;return(0,Pe.km)(ze,we)}function Xe(Me){for(var ze=String(Me.data.key),we=Me;we.parent;)we=we.parent,ze="".concat(we.data.key," > ").concat(ze);return ze}var ot=ue.forwardRef(function(Me,ze){var we=Me.prefixCls,ve=Me.data,Ie=Me.selectable,$e=Me.checkable,Ge=Me.expandedKeys,Je=Me.selectedKeys,ut=Me.checkedKeys,lt=Me.loadedKeys,vt=Me.loadingKeys,ct=Me.halfCheckedKeys,st=Me.keyEntities,At=Me.disabled,mt=Me.dragging,Dt=Me.dragOverNodeKey,jt=Me.dropPosition,Et=Me.motion,kt=Me.height,Nt=Me.itemHeight,yt=Me.virtual,Pt=Me.scrollWidth,Kt=Me.focusable,nn=Me.activeItem,xt=Me.focused,Ct=Me.tabIndex,zt=Me.onKeyDown,en=Me.onFocus,un=Me.onBlur,Cn=Me.onActiveChange,Nn=Me.onListChangeStart,_n=Me.onListChangeEnd,yn=(0,ke.Z)(Me,We),Rn=ue.useRef(null),pn=ue.useRef(null);ue.useImperativeHandle(ze,function(){return{scrollTo:function(Ut){Rn.current.scrollTo(Ut)},getIndentWidth:function(){return pn.current.offsetWidth}}});var on=ue.useState(Ge),Vt=(0,xe.Z)(on,2),Wt=Vt[0],Ht=Vt[1],hn=ue.useState(ve),cn=(0,xe.Z)(hn,2),mn=cn[0],Bn=cn[1],Pn=ue.useState(ve),gn=(0,xe.Z)(Pn,2),Ln=gn[0],Kn=gn[1],sr=ue.useState([]),nr=(0,xe.Z)(sr,2),ln=nr[0],rn=nr[1],Wn=ue.useState(null),Zn=(0,xe.Z)(Wn,2),Mt=Zn[0],Gt=Zn[1],St=ue.useRef(ve);St.current=ve;function Rt(){var bt=St.current;Bn(bt),Kn(bt),rn([]),Gt(null),_n()}(0,De.Z)(function(){Ht(Ge);var bt=Ve(Wt,Ge);if(bt.key!==null)if(bt.add){var Ut=mn.findIndex(function(Xt){var Tn=Xt.key;return Tn===bt.key}),Lt=Ke(Ze(mn,ve,bt.key),yt,kt,Nt),qt=mn.slice();qt.splice(Ut+1,0,et),Kn(qt),rn(Lt),Gt("show")}else{var Ft=ve.findIndex(function(Xt){var Tn=Xt.key;return Tn===bt.key}),$t=Ke(Ze(ve,mn,bt.key),yt,kt,Nt),Zt=ve.slice();Zt.splice(Ft+1,0,et),Kn(Zt),rn($t),Gt("hide")}else mn!==ve&&(Bn(ve),Kn(ve))},[Ge,ve]),ue.useEffect(function(){mt||Rt()},[mt]);var Tt=Et?Ln:ve,_t={expandedKeys:Ge,selectedKeys:Je,loadedKeys:lt,loadingKeys:vt,checkedKeys:ut,halfCheckedKeys:ct,dragOverNodeKey:Dt,dropPosition:jt,keyEntities:st};return ue.createElement(ue.Fragment,null,xt&&nn&&ue.createElement("span",{style:nt,"aria-live":"assertive"},Xe(nn)),ue.createElement("div",null,ue.createElement("input",{style:nt,disabled:Kt===!1||At,tabIndex:Kt!==!1?Ct:null,onKeyDown:zt,onFocus:en,onBlur:un,value:"",onChange:_e,"aria-label":"for screen reader"})),ue.createElement("div",{className:"".concat(we,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ue.createElement("div",{className:"".concat(we,"-indent")},ue.createElement("div",{ref:pn,className:"".concat(we,"-indent-unit")}))),ue.createElement(Be.Z,(0,te.Z)({},yn,{data:Tt,itemKey:Ye,height:kt,fullHeight:!1,virtual:yt,itemHeight:Nt,scrollWidth:Pt,prefixCls:"".concat(we,"-list"),ref:Rn,role:"tree",onVisibleChange:function(Ut){Ut.every(function(Lt){return Ye(Lt)!==Ue})&&Rt()}}),function(bt){var Ut=bt.pos,Lt=Object.assign({},(ge(bt.data),bt.data)),qt=bt.title,Ft=bt.key,$t=bt.isStart,Zt=bt.isEnd,Xt=(0,Pe.km)(Ft,Ut);delete Lt.key,delete Lt.children;var Tn=(0,Pe.H8)(Xt,_t);return ue.createElement(me,(0,te.Z)({},Lt,Tn,{title:qt,active:!!nn&&Ft===nn.key,pos:Ut,data:bt.data,isStart:$t,isEnd:Zt,motion:Et,motionNodes:Ft===Ue?ln:null,motionType:Mt,onMotionStart:Nn,onMotionEnd:Rt,treeNodeRequiredProps:_t,onMouseMove:function(){Cn(null)}}))}))}),Qe=ot,ft=Te(82661),at=Te(34643),qe=Te(65065),Fe=10,Re=function(Me){(0,ie.Z)(we,Me);var ze=(0,oe.Z)(we);function we(){var ve;(0,be.Z)(this,we);for(var Ie=arguments.length,$e=new Array(Ie),Ge=0;Ge<Ie;Ge++)$e[Ge]=arguments[Ge];return ve=ze.call.apply(ze,[this].concat($e)),(0,ee.Z)((0,E.Z)(ve),"destroyed",!1),(0,ee.Z)((0,E.Z)(ve),"delayedDragEnterLogic",void 0),(0,ee.Z)((0,E.Z)(ve),"loadingRetryTimes",{}),(0,ee.Z)((0,E.Z)(ve),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Pe.w$)()}),(0,ee.Z)((0,E.Z)(ve),"dragStartMousePosition",null),(0,ee.Z)((0,E.Z)(ve),"dragNodeProps",null),(0,ee.Z)((0,E.Z)(ve),"currentMouseOverDroppableNodeKey",null),(0,ee.Z)((0,E.Z)(ve),"listRef",ue.createRef()),(0,ee.Z)((0,E.Z)(ve),"onNodeDragStart",function(Je,ut){var lt=ve.state,vt=lt.expandedKeys,ct=lt.keyEntities,st=ve.props.onDragStart,At=ut.eventKey;ve.dragNodeProps=ut,ve.dragStartMousePosition={x:Je.clientX,y:Je.clientY};var mt=(0,ft._5)(vt,At);ve.setState({draggingNodeKey:At,dragChildrenKeys:(0,ft.wA)(At,ct),indent:ve.listRef.current.getIndentWidth()}),ve.setExpandedKeys(mt),window.addEventListener("dragend",ve.onWindowDragEnd),st==null||st({event:Je,node:(0,Pe.F)(ut)})}),(0,ee.Z)((0,E.Z)(ve),"onNodeDragEnter",function(Je,ut){var lt=ve.state,vt=lt.expandedKeys,ct=lt.keyEntities,st=lt.dragChildrenKeys,At=lt.flattenNodes,mt=lt.indent,Dt=ve.props,jt=Dt.onDragEnter,Et=Dt.onExpand,kt=Dt.allowDrop,Nt=Dt.direction,yt=ut.pos,Pt=ut.eventKey;if(ve.currentMouseOverDroppableNodeKey!==Pt&&(ve.currentMouseOverDroppableNodeKey=Pt),!ve.dragNodeProps){ve.resetDragState();return}var Kt=(0,ft.OM)(Je,ve.dragNodeProps,ut,mt,ve.dragStartMousePosition,kt,At,ct,vt,Nt),nn=Kt.dropPosition,xt=Kt.dropLevelOffset,Ct=Kt.dropTargetKey,zt=Kt.dropContainerKey,en=Kt.dropTargetPos,un=Kt.dropAllowed,Cn=Kt.dragOverNodeKey;if(st.includes(Ct)||!un){ve.resetDragState();return}if(ve.delayedDragEnterLogic||(ve.delayedDragEnterLogic={}),Object.keys(ve.delayedDragEnterLogic).forEach(function(Nn){clearTimeout(ve.delayedDragEnterLogic[Nn])}),ve.dragNodeProps.eventKey!==ut.eventKey&&(Je.persist(),ve.delayedDragEnterLogic[yt]=window.setTimeout(function(){if(ve.state.draggingNodeKey!==null){var Nn=(0,je.Z)(vt),_n=(0,qe.Z)(ct,ut.eventKey);_n&&(_n.children||[]).length&&(Nn=(0,ft.L0)(vt,ut.eventKey)),ve.props.hasOwnProperty("expandedKeys")||ve.setExpandedKeys(Nn),Et==null||Et(Nn,{node:(0,Pe.F)(ut),expanded:!0,nativeEvent:Je.nativeEvent})}},800)),ve.dragNodeProps.eventKey===Ct&&xt===0){ve.resetDragState();return}ve.setState({dragOverNodeKey:Cn,dropPosition:nn,dropLevelOffset:xt,dropTargetKey:Ct,dropContainerKey:zt,dropTargetPos:en,dropAllowed:un}),jt==null||jt({event:Je,node:(0,Pe.F)(ut),expandedKeys:vt})}),(0,ee.Z)((0,E.Z)(ve),"onNodeDragOver",function(Je,ut){var lt=ve.state,vt=lt.dragChildrenKeys,ct=lt.flattenNodes,st=lt.keyEntities,At=lt.expandedKeys,mt=lt.indent,Dt=ve.props,jt=Dt.onDragOver,Et=Dt.allowDrop,kt=Dt.direction;if(ve.dragNodeProps){var Nt=(0,ft.OM)(Je,ve.dragNodeProps,ut,mt,ve.dragStartMousePosition,Et,ct,st,At,kt),yt=Nt.dropPosition,Pt=Nt.dropLevelOffset,Kt=Nt.dropTargetKey,nn=Nt.dropContainerKey,xt=Nt.dropTargetPos,Ct=Nt.dropAllowed,zt=Nt.dragOverNodeKey;vt.includes(Kt)||!Ct||(ve.dragNodeProps.eventKey===Kt&&Pt===0?ve.state.dropPosition===null&&ve.state.dropLevelOffset===null&&ve.state.dropTargetKey===null&&ve.state.dropContainerKey===null&&ve.state.dropTargetPos===null&&ve.state.dropAllowed===!1&&ve.state.dragOverNodeKey===null||ve.resetDragState():yt===ve.state.dropPosition&&Pt===ve.state.dropLevelOffset&&Kt===ve.state.dropTargetKey&&nn===ve.state.dropContainerKey&&xt===ve.state.dropTargetPos&&Ct===ve.state.dropAllowed&&zt===ve.state.dragOverNodeKey||ve.setState({dropPosition:yt,dropLevelOffset:Pt,dropTargetKey:Kt,dropContainerKey:nn,dropTargetPos:xt,dropAllowed:Ct,dragOverNodeKey:zt}),jt==null||jt({event:Je,node:(0,Pe.F)(ut)}))}}),(0,ee.Z)((0,E.Z)(ve),"onNodeDragLeave",function(Je,ut){ve.currentMouseOverDroppableNodeKey===ut.eventKey&&!Je.currentTarget.contains(Je.relatedTarget)&&(ve.resetDragState(),ve.currentMouseOverDroppableNodeKey=null);var lt=ve.props.onDragLeave;lt==null||lt({event:Je,node:(0,Pe.F)(ut)})}),(0,ee.Z)((0,E.Z)(ve),"onWindowDragEnd",function(Je){ve.onNodeDragEnd(Je,null,!0),window.removeEventListener("dragend",ve.onWindowDragEnd)}),(0,ee.Z)((0,E.Z)(ve),"onNodeDragEnd",function(Je,ut){var lt=ve.props.onDragEnd;ve.setState({dragOverNodeKey:null}),ve.cleanDragState(),lt==null||lt({event:Je,node:(0,Pe.F)(ut)}),ve.dragNodeProps=null,window.removeEventListener("dragend",ve.onWindowDragEnd)}),(0,ee.Z)((0,E.Z)(ve),"onNodeDrop",function(Je,ut){var lt,vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ct=ve.state,st=ct.dragChildrenKeys,At=ct.dropPosition,mt=ct.dropTargetKey,Dt=ct.dropTargetPos,jt=ct.dropAllowed;if(jt){var Et=ve.props.onDrop;if(ve.setState({dragOverNodeKey:null}),ve.cleanDragState(),mt!==null){var kt=(0,y.Z)((0,y.Z)({},(0,Pe.H8)(mt,ve.getTreeNodeRequiredProps())),{},{active:((lt=ve.getActiveItem())===null||lt===void 0?void 0:lt.key)===mt,data:(0,qe.Z)(ve.state.keyEntities,mt).node}),Nt=st.includes(mt);(0,se.ZP)(!Nt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var yt=(0,ft.yx)(Dt),Pt={event:Je,node:(0,Pe.F)(kt),dragNode:ve.dragNodeProps?(0,Pe.F)(ve.dragNodeProps):null,dragNodesKeys:[ve.dragNodeProps.eventKey].concat(st),dropToGap:At!==0,dropPosition:At+Number(yt[yt.length-1])};vt||Et==null||Et(Pt),ve.dragNodeProps=null}}}),(0,ee.Z)((0,E.Z)(ve),"cleanDragState",function(){var Je=ve.state.draggingNodeKey;Je!==null&&ve.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ve.dragStartMousePosition=null,ve.currentMouseOverDroppableNodeKey=null}),(0,ee.Z)((0,E.Z)(ve),"triggerExpandActionExpand",function(Je,ut){var lt=ve.state,vt=lt.expandedKeys,ct=lt.flattenNodes,st=ut.expanded,At=ut.key,mt=ut.isLeaf;if(!(mt||Je.shiftKey||Je.metaKey||Je.ctrlKey)){var Dt=ct.filter(function(Et){return Et.key===At})[0],jt=(0,Pe.F)((0,y.Z)((0,y.Z)({},(0,Pe.H8)(At,ve.getTreeNodeRequiredProps())),{},{data:Dt.data}));ve.setExpandedKeys(st?(0,ft._5)(vt,At):(0,ft.L0)(vt,At)),ve.onNodeExpand(Je,jt)}}),(0,ee.Z)((0,E.Z)(ve),"onNodeClick",function(Je,ut){var lt=ve.props,vt=lt.onClick,ct=lt.expandAction;ct==="click"&&ve.triggerExpandActionExpand(Je,ut),vt==null||vt(Je,ut)}),(0,ee.Z)((0,E.Z)(ve),"onNodeDoubleClick",function(Je,ut){var lt=ve.props,vt=lt.onDoubleClick,ct=lt.expandAction;ct==="doubleClick"&&ve.triggerExpandActionExpand(Je,ut),vt==null||vt(Je,ut)}),(0,ee.Z)((0,E.Z)(ve),"onNodeSelect",function(Je,ut){var lt=ve.state.selectedKeys,vt=ve.state,ct=vt.keyEntities,st=vt.fieldNames,At=ve.props,mt=At.onSelect,Dt=At.multiple,jt=ut.selected,Et=ut[st.key],kt=!jt;kt?Dt?lt=(0,ft.L0)(lt,Et):lt=[Et]:lt=(0,ft._5)(lt,Et);var Nt=lt.map(function(yt){var Pt=(0,qe.Z)(ct,yt);return Pt?Pt.node:null}).filter(Boolean);ve.setUncontrolledState({selectedKeys:lt}),mt==null||mt(lt,{event:"select",selected:kt,node:ut,selectedNodes:Nt,nativeEvent:Je.nativeEvent})}),(0,ee.Z)((0,E.Z)(ve),"onNodeCheck",function(Je,ut,lt){var vt=ve.state,ct=vt.keyEntities,st=vt.checkedKeys,At=vt.halfCheckedKeys,mt=ve.props,Dt=mt.checkStrictly,jt=mt.onCheck,Et=ut.key,kt,Nt={event:"check",node:ut,checked:lt,nativeEvent:Je.nativeEvent};if(Dt){var yt=lt?(0,ft.L0)(st,Et):(0,ft._5)(st,Et),Pt=(0,ft._5)(At,Et);kt={checked:yt,halfChecked:Pt},Nt.checkedNodes=yt.map(function(en){return(0,qe.Z)(ct,en)}).filter(Boolean).map(function(en){return en.node}),ve.setUncontrolledState({checkedKeys:yt})}else{var Kt=(0,at.S)([].concat((0,je.Z)(st),[Et]),!0,ct),nn=Kt.checkedKeys,xt=Kt.halfCheckedKeys;if(!lt){var Ct=new Set(nn);Ct.delete(Et);var zt=(0,at.S)(Array.from(Ct),{checked:!1,halfCheckedKeys:xt},ct);nn=zt.checkedKeys,xt=zt.halfCheckedKeys}kt=nn,Nt.checkedNodes=[],Nt.checkedNodesPositions=[],Nt.halfCheckedKeys=xt,nn.forEach(function(en){var un=(0,qe.Z)(ct,en);if(un){var Cn=un.node,Nn=un.pos;Nt.checkedNodes.push(Cn),Nt.checkedNodesPositions.push({node:Cn,pos:Nn})}}),ve.setUncontrolledState({checkedKeys:nn},!1,{halfCheckedKeys:xt})}jt==null||jt(kt,Nt)}),(0,ee.Z)((0,E.Z)(ve),"onNodeLoad",function(Je){var ut,lt=Je.key,vt=ve.state.keyEntities,ct=(0,qe.Z)(vt,lt);if(!(ct!=null&&(ut=ct.children)!==null&&ut!==void 0&&ut.length)){var st=new Promise(function(At,mt){ve.setState(function(Dt){var jt=Dt.loadedKeys,Et=jt===void 0?[]:jt,kt=Dt.loadingKeys,Nt=kt===void 0?[]:kt,yt=ve.props,Pt=yt.loadData,Kt=yt.onLoad;if(!Pt||Et.includes(lt)||Nt.includes(lt))return null;var nn=Pt(Je);return nn.then(function(){var xt=ve.state.loadedKeys,Ct=(0,ft.L0)(xt,lt);Kt==null||Kt(Ct,{event:"load",node:Je}),ve.setUncontrolledState({loadedKeys:Ct}),ve.setState(function(zt){return{loadingKeys:(0,ft._5)(zt.loadingKeys,lt)}}),At()}).catch(function(xt){if(ve.setState(function(zt){return{loadingKeys:(0,ft._5)(zt.loadingKeys,lt)}}),ve.loadingRetryTimes[lt]=(ve.loadingRetryTimes[lt]||0)+1,ve.loadingRetryTimes[lt]>=Fe){var Ct=ve.state.loadedKeys;(0,se.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ve.setUncontrolledState({loadedKeys:(0,ft.L0)(Ct,lt)}),At()}mt(xt)}),{loadingKeys:(0,ft.L0)(Nt,lt)}})});return st.catch(function(){}),st}}),(0,ee.Z)((0,E.Z)(ve),"onNodeMouseEnter",function(Je,ut){var lt=ve.props.onMouseEnter;lt==null||lt({event:Je,node:ut})}),(0,ee.Z)((0,E.Z)(ve),"onNodeMouseLeave",function(Je,ut){var lt=ve.props.onMouseLeave;lt==null||lt({event:Je,node:ut})}),(0,ee.Z)((0,E.Z)(ve),"onNodeContextMenu",function(Je,ut){var lt=ve.props.onRightClick;lt&&(Je.preventDefault(),lt({event:Je,node:ut}))}),(0,ee.Z)((0,E.Z)(ve),"onFocus",function(){var Je=ve.props.onFocus;ve.setState({focused:!0});for(var ut=arguments.length,lt=new Array(ut),vt=0;vt<ut;vt++)lt[vt]=arguments[vt];Je==null||Je.apply(void 0,lt)}),(0,ee.Z)((0,E.Z)(ve),"onBlur",function(){var Je=ve.props.onBlur;ve.setState({focused:!1}),ve.onActiveChange(null);for(var ut=arguments.length,lt=new Array(ut),vt=0;vt<ut;vt++)lt[vt]=arguments[vt];Je==null||Je.apply(void 0,lt)}),(0,ee.Z)((0,E.Z)(ve),"getTreeNodeRequiredProps",function(){var Je=ve.state,ut=Je.expandedKeys,lt=Je.selectedKeys,vt=Je.loadedKeys,ct=Je.loadingKeys,st=Je.checkedKeys,At=Je.halfCheckedKeys,mt=Je.dragOverNodeKey,Dt=Je.dropPosition,jt=Je.keyEntities;return{expandedKeys:ut||[],selectedKeys:lt||[],loadedKeys:vt||[],loadingKeys:ct||[],checkedKeys:st||[],halfCheckedKeys:At||[],dragOverNodeKey:mt,dropPosition:Dt,keyEntities:jt}}),(0,ee.Z)((0,E.Z)(ve),"setExpandedKeys",function(Je){var ut=ve.state,lt=ut.treeData,vt=ut.fieldNames,ct=(0,Pe.oH)(lt,Je,vt);ve.setUncontrolledState({expandedKeys:Je,flattenNodes:ct},!0)}),(0,ee.Z)((0,E.Z)(ve),"onNodeExpand",function(Je,ut){var lt=ve.state.expandedKeys,vt=ve.state,ct=vt.listChanging,st=vt.fieldNames,At=ve.props,mt=At.onExpand,Dt=At.loadData,jt=ut.expanded,Et=ut[st.key];if(!ct){var kt=lt.includes(Et),Nt=!jt;if((0,se.ZP)(jt&&kt||!jt&&!kt,"Expand state not sync with index check"),lt=Nt?(0,ft.L0)(lt,Et):(0,ft._5)(lt,Et),ve.setExpandedKeys(lt),mt==null||mt(lt,{node:ut,expanded:Nt,nativeEvent:Je.nativeEvent}),Nt&&Dt){var yt=ve.onNodeLoad(ut);yt&&yt.then(function(){var Pt=(0,Pe.oH)(ve.state.treeData,lt,st);ve.setUncontrolledState({flattenNodes:Pt})}).catch(function(){var Pt=ve.state.expandedKeys,Kt=(0,ft._5)(Pt,Et);ve.setExpandedKeys(Kt)})}}}),(0,ee.Z)((0,E.Z)(ve),"onListChangeStart",function(){ve.setUncontrolledState({listChanging:!0})}),(0,ee.Z)((0,E.Z)(ve),"onListChangeEnd",function(){setTimeout(function(){ve.setUncontrolledState({listChanging:!1})})}),(0,ee.Z)((0,E.Z)(ve),"onActiveChange",function(Je){var ut=ve.state.activeKey,lt=ve.props,vt=lt.onActiveChange,ct=lt.itemScrollOffset,st=ct===void 0?0:ct;ut!==Je&&(ve.setState({activeKey:Je}),Je!==null&&ve.scrollTo({key:Je,offset:st}),vt==null||vt(Je))}),(0,ee.Z)((0,E.Z)(ve),"getActiveItem",function(){var Je=ve.state,ut=Je.activeKey,lt=Je.flattenNodes;return ut===null?null:lt.find(function(vt){var ct=vt.key;return ct===ut})||null}),(0,ee.Z)((0,E.Z)(ve),"offsetActiveKey",function(Je){var ut=ve.state,lt=ut.flattenNodes,vt=ut.activeKey,ct=lt.findIndex(function(mt){var Dt=mt.key;return Dt===vt});ct===-1&&Je<0&&(ct=lt.length),ct=(ct+Je+lt.length)%lt.length;var st=lt[ct];if(st){var At=st.key;ve.onActiveChange(At)}else ve.onActiveChange(null)}),(0,ee.Z)((0,E.Z)(ve),"onKeyDown",function(Je){var ut=ve.state,lt=ut.activeKey,vt=ut.expandedKeys,ct=ut.checkedKeys,st=ut.fieldNames,At=ve.props,mt=At.onKeyDown,Dt=At.checkable,jt=At.selectable;switch(Je.which){case ae.Z.UP:{ve.offsetActiveKey(-1),Je.preventDefault();break}case ae.Z.DOWN:{ve.offsetActiveKey(1),Je.preventDefault();break}}var Et=ve.getActiveItem();if(Et&&Et.data){var kt=ve.getTreeNodeRequiredProps(),Nt=Et.data.isLeaf===!1||!!(Et.data[st.children]||[]).length,yt=(0,Pe.F)((0,y.Z)((0,y.Z)({},(0,Pe.H8)(lt,kt)),{},{data:Et.data,active:!0}));switch(Je.which){case ae.Z.LEFT:{Nt&&vt.includes(lt)?ve.onNodeExpand({},yt):Et.parent&&ve.onActiveChange(Et.parent.key),Je.preventDefault();break}case ae.Z.RIGHT:{Nt&&!vt.includes(lt)?ve.onNodeExpand({},yt):Et.children&&Et.children.length&&ve.onActiveChange(Et.children[0].key),Je.preventDefault();break}case ae.Z.ENTER:case ae.Z.SPACE:{Dt&&!yt.disabled&&yt.checkable!==!1&&!yt.disableCheckbox?ve.onNodeCheck({},yt,!ct.includes(lt)):!Dt&&jt&&!yt.disabled&&yt.selectable!==!1&&ve.onNodeSelect({},yt);break}}}mt==null||mt(Je)}),(0,ee.Z)((0,E.Z)(ve),"setUncontrolledState",function(Je){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ve.destroyed){var vt=!1,ct=!0,st={};Object.keys(Je).forEach(function(At){if(ve.props.hasOwnProperty(At)){ct=!1;return}vt=!0,st[At]=Je[At]}),vt&&(!ut||ct)&&ve.setState((0,y.Z)((0,y.Z)({},st),lt))}}),(0,ee.Z)((0,E.Z)(ve),"scrollTo",function(Je){ve.listRef.current.scrollTo(Je)}),ve}return(0,z.Z)(we,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ie=this.props,$e=Ie.activeKey,Ge=Ie.itemScrollOffset,Je=Ge===void 0?0:Ge;$e!==void 0&&$e!==this.state.activeKey&&(this.setState({activeKey:$e}),$e!==null&&this.scrollTo({key:$e,offset:Je}))}},{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 Ie=this.state,$e=Ie.focused,Ge=Ie.flattenNodes,Je=Ie.keyEntities,ut=Ie.draggingNodeKey,lt=Ie.activeKey,vt=Ie.dropLevelOffset,ct=Ie.dropContainerKey,st=Ie.dropTargetKey,At=Ie.dropPosition,mt=Ie.dragOverNodeKey,Dt=Ie.indent,jt=this.props,Et=jt.prefixCls,kt=jt.className,Nt=jt.style,yt=jt.showLine,Pt=jt.focusable,Kt=jt.tabIndex,nn=Kt===void 0?0:Kt,xt=jt.selectable,Ct=jt.showIcon,zt=jt.icon,en=jt.switcherIcon,un=jt.draggable,Cn=jt.checkable,Nn=jt.checkStrictly,_n=jt.disabled,yn=jt.motion,Rn=jt.loadData,pn=jt.filterTreeNode,on=jt.height,Vt=jt.itemHeight,Wt=jt.scrollWidth,Ht=jt.virtual,hn=jt.titleRender,cn=jt.dropIndicatorRender,mn=jt.onContextMenu,Bn=jt.onScroll,Pn=jt.direction,gn=jt.rootClassName,Ln=jt.rootStyle,Kn=(0,re.Z)(this.props,{aria:!0,data:!0}),sr;un&&((0,Ot.Z)(un)==="object"?sr=un:typeof un=="function"?sr={nodeDraggable:un}:sr={});var nr={prefixCls:Et,selectable:xt,showIcon:Ct,icon:zt,switcherIcon:en,draggable:sr,draggingNodeKey:ut,checkable:Cn,checkStrictly:Nn,disabled:_n,keyEntities:Je,dropLevelOffset:vt,dropContainerKey:ct,dropTargetKey:st,dropPosition:At,dragOverNodeKey:mt,indent:Dt,direction:Pn,dropIndicatorRender:cn,loadData:Rn,filterTreeNode:pn,titleRender:hn,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 ue.createElement(pe.k.Provider,{value:nr},ue.createElement("div",{className:x()(Et,kt,gn,(0,ee.Z)((0,ee.Z)((0,ee.Z)({},"".concat(Et,"-show-line"),yt),"".concat(Et,"-focused"),$e),"".concat(Et,"-active-focused"),lt!==null)),style:Ln},ue.createElement(Qe,(0,te.Z)({ref:this.listRef,prefixCls:Et,style:Nt,data:Ge,disabled:_n,selectable:xt,checkable:!!Cn,motion:yn,dragging:ut!==null,height:on,itemHeight:Vt,virtual:Ht,focusable:Pt,focused:$e,tabIndex:nn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:mn,onScroll:Bn,scrollWidth:Wt},this.getTreeNodeRequiredProps(),Kn))))}}],[{key:"getDerivedStateFromProps",value:function(Ie,$e){var Ge=$e.prevProps,Je={prevProps:Ie};function ut(nn){return!Ge&&Ie.hasOwnProperty(nn)||Ge&&Ge[nn]!==Ie[nn]}var lt,vt=$e.fieldNames;if(ut("fieldNames")&&(vt=(0,Pe.w$)(Ie.fieldNames),Je.fieldNames=vt),ut("treeData")?lt=Ie.treeData:ut("children")&&((0,se.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),lt=(0,Pe.zn)(Ie.children)),lt){Je.treeData=lt;var ct=(0,Pe.I8)(lt,{fieldNames:vt});Je.keyEntities=(0,y.Z)((0,ee.Z)({},Ue,rt),ct.keyEntities)}var st=Je.keyEntities||$e.keyEntities;if(ut("expandedKeys")||Ge&&ut("autoExpandParent"))Je.expandedKeys=Ie.autoExpandParent||!Ge&&Ie.defaultExpandParent?(0,ft.r7)(Ie.expandedKeys,st):Ie.expandedKeys;else if(!Ge&&Ie.defaultExpandAll){var At=(0,y.Z)({},st);delete At[Ue];var mt=[];Object.keys(At).forEach(function(nn){var xt=At[nn];xt.children&&xt.children.length&&mt.push(xt.key)}),Je.expandedKeys=mt}else!Ge&&Ie.defaultExpandedKeys&&(Je.expandedKeys=Ie.autoExpandParent||Ie.defaultExpandParent?(0,ft.r7)(Ie.defaultExpandedKeys,st):Ie.defaultExpandedKeys);if(Je.expandedKeys||delete Je.expandedKeys,lt||Je.expandedKeys){var Dt=(0,Pe.oH)(lt||$e.treeData,Je.expandedKeys||$e.expandedKeys,vt);Je.flattenNodes=Dt}if(Ie.selectable&&(ut("selectedKeys")?Je.selectedKeys=(0,ft.BT)(Ie.selectedKeys,Ie):!Ge&&Ie.defaultSelectedKeys&&(Je.selectedKeys=(0,ft.BT)(Ie.defaultSelectedKeys,Ie))),Ie.checkable){var jt;if(ut("checkedKeys")?jt=(0,ft.E6)(Ie.checkedKeys)||{}:!Ge&&Ie.defaultCheckedKeys?jt=(0,ft.E6)(Ie.defaultCheckedKeys)||{}:lt&&(jt=(0,ft.E6)(Ie.checkedKeys)||{checkedKeys:$e.checkedKeys,halfCheckedKeys:$e.halfCheckedKeys}),jt){var Et=jt,kt=Et.checkedKeys,Nt=kt===void 0?[]:kt,yt=Et.halfCheckedKeys,Pt=yt===void 0?[]:yt;if(!Ie.checkStrictly){var Kt=(0,at.S)(Nt,!0,st);Nt=Kt.checkedKeys,Pt=Kt.halfCheckedKeys}Je.checkedKeys=Nt,Je.halfCheckedKeys=Pt}}return ut("loadedKeys")&&(Je.loadedKeys=Ie.loadedKeys),Je}}]),we}(ue.Component);(0,ee.Z)(Re,"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:ye,allowDrop:function(){return!0},expandAction:!1}),(0,ee.Z)(Re,"TreeNode",Se.Z);var ne=Re,fe=ne},82661:function(In,Yt,Te){"use strict";Te.d(Yt,{BT:function(){return ue},E6:function(){return ye},L0:function(){return ee},OM:function(){return se},_5:function(){return oe},r7:function(){return ge},wA:function(){return x},yx:function(){return ce}});var te=Te(94480),Ot=Te(76190),y=Te(48736),je=Te(59301),be=Te(639),z=Te(65065),E=Te(34061),ie=null;function oe(xe,ke){if(!xe)return[];var De=xe.slice(),Be=De.indexOf(ke);return Be>=0&&De.splice(Be,1),De}function ee(xe,ke){var De=(xe||[]).slice();return De.indexOf(ke)===-1&&De.push(ke),De}function ce(xe){return xe.split("-")}function x(xe,ke){var De=[],Be=(0,z.Z)(ke,xe);function Ae(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Se.forEach(function(Ee){var Oe=Ee.key,Pe=Ee.children;De.push(Oe),Ae(Pe)})}return Ae(Be.children),De}function ae(xe){if(xe.parent){var ke=ce(xe.pos);return Number(ke[ke.length-1])===xe.parent.children.length-1}return!1}function re(xe){var ke=ce(xe.pos);return Number(ke[ke.length-1])===0}function se(xe,ke,De,Be,Ae,Se,Ee,Oe,Pe,Le){var Ne,me=xe.clientX,Ve=xe.clientY,Ze=xe.target.getBoundingClientRect(),We=Ze.top,nt=Ze.height,_e=(Le==="rtl"?-1:1)*(((Ae==null?void 0:Ae.x)||0)-me),Ue=(_e-12)/Be,tt=Pe.filter(function(fe){var Me;return(Me=Oe[fe])===null||Me===void 0||(Me=Me.children)===null||Me===void 0?void 0:Me.length}),rt=(0,z.Z)(Oe,De.eventKey);if(Ve<We+nt/2){var et=Ee.findIndex(function(fe){return fe.key===rt.key}),Ke=et<=0?0:et-1,Ye=Ee[Ke].key;rt=(0,z.Z)(Oe,Ye)}var Xe=rt.key,ot=rt,Qe=rt.key,ft=0,at=0;if(!tt.includes(Xe))for(var qe=0;qe<Ue&&ae(rt);qe+=1)rt=rt.parent,at+=1;var Fe=ke.data,Re=rt.node,ne=!0;return re(rt)&&rt.level===0&&Ve<We+nt/2&&Se({dragNode:Fe,dropNode:Re,dropPosition:-1})&&rt.key===De.eventKey?ft=-1:(ot.children||[]).length&&tt.includes(Qe)?Se({dragNode:Fe,dropNode:Re,dropPosition:0})?ft=0:ne=!1:at===0?Ue>-1.5?Se({dragNode:Fe,dropNode:Re,dropPosition:1})?ft=1:ne=!1:Se({dragNode:Fe,dropNode:Re,dropPosition:0})?ft=0:Se({dragNode:Fe,dropNode:Re,dropPosition:1})?ft=1:ne=!1:Se({dragNode:Fe,dropNode:Re,dropPosition:1})?ft=1:ne=!1,{dropPosition:ft,dropLevelOffset:at,dropTargetKey:rt.key,dropTargetPos:rt.pos,dragOverNodeKey:Qe,dropContainerKey:ft===0?null:((Ne=rt.parent)===null||Ne===void 0?void 0:Ne.key)||null,dropAllowed:ne}}function ue(xe,ke){if(xe){var De=ke.multiple;return De?xe.slice():xe.length?[xe[0]]:xe}}var pe=function(ke){return ke};function he(xe,ke){if(!xe)return[];var De=ke||{},Be=De.processProps,Ae=Be===void 0?pe:Be,Se=Array.isArray(xe)?xe:[xe];return Se.map(function(Ee){var Oe=Ee.children,Pe=_objectWithoutProperties(Ee,ie),Le=he(Oe,ke);return React.createElement(TreeNode,_extends({key:Pe.key},Ae(Pe)),Le)})}function ye(xe){if(!xe)return null;var ke;if(Array.isArray(xe))ke={checkedKeys:xe,halfCheckedKeys:void 0};else if((0,Ot.Z)(xe)==="object")ke={checkedKeys:xe.checked||void 0,halfCheckedKeys:xe.halfChecked||void 0};else return(0,y.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ke}function ge(xe,ke){var De=new Set;function Be(Ae){if(!De.has(Ae)){var Se=(0,z.Z)(ke,Ae);if(Se){De.add(Ae);var Ee=Se.parent,Oe=Se.node;Oe.disabled||Ee&&Be(Ee.key)}}}return(xe||[]).forEach(function(Ae){Be(Ae)}),(0,te.Z)(De)}},34643:function(In,Yt,Te){"use strict";Te.d(Yt,{S:function(){return E}});var te=Te(48736),Ot=Te(65065);function y(ie,oe){var ee=new Set;return ie.forEach(function(ce){oe.has(ce)||ee.add(ce)}),ee}function je(ie){var oe=ie||{},ee=oe.disabled,ce=oe.disableCheckbox,x=oe.checkable;return!!(ee||ce)||x===!1}function be(ie,oe,ee,ce){for(var x=new Set(ie),ae=new Set,re=0;re<=ee;re+=1){var se=oe.get(re)||new Set;se.forEach(function(ye){var ge=ye.key,xe=ye.node,ke=ye.children,De=ke===void 0?[]:ke;x.has(ge)&&!ce(xe)&&De.filter(function(Be){return!ce(Be.node)}).forEach(function(Be){x.add(Be.key)})})}for(var ue=new Set,pe=ee;pe>=0;pe-=1){var he=oe.get(pe)||new Set;he.forEach(function(ye){var ge=ye.parent,xe=ye.node;if(!(ce(xe)||!ye.parent||ue.has(ye.parent.key))){if(ce(ye.parent.node)){ue.add(ge.key);return}var ke=!0,De=!1;(ge.children||[]).filter(function(Be){return!ce(Be.node)}).forEach(function(Be){var Ae=Be.key,Se=x.has(Ae);ke&&!Se&&(ke=!1),!De&&(Se||ae.has(Ae))&&(De=!0)}),ke&&x.add(ge.key),De&&ae.add(ge.key),ue.add(ge.key)}})}return{checkedKeys:Array.from(x),halfCheckedKeys:Array.from(y(ae,x))}}function z(ie,oe,ee,ce,x){for(var ae=new Set(ie),re=new Set(oe),se=0;se<=ce;se+=1){var ue=ee.get(se)||new Set;ue.forEach(function(ge){var xe=ge.key,ke=ge.node,De=ge.children,Be=De===void 0?[]:De;!ae.has(xe)&&!re.has(xe)&&!x(ke)&&Be.filter(function(Ae){return!x(Ae.node)}).forEach(function(Ae){ae.delete(Ae.key)})})}re=new Set;for(var pe=new Set,he=ce;he>=0;he-=1){var ye=ee.get(he)||new Set;ye.forEach(function(ge){var xe=ge.parent,ke=ge.node;if(!(x(ke)||!ge.parent||pe.has(ge.parent.key))){if(x(ge.parent.node)){pe.add(xe.key);return}var De=!0,Be=!1;(xe.children||[]).filter(function(Ae){return!x(Ae.node)}).forEach(function(Ae){var Se=Ae.key,Ee=ae.has(Se);De&&!Ee&&(De=!1),!Be&&(Ee||re.has(Se))&&(Be=!0)}),De||ae.delete(xe.key),Be&&re.add(xe.key),pe.add(xe.key)}})}return{checkedKeys:Array.from(ae),halfCheckedKeys:Array.from(y(re,ae))}}function E(ie,oe,ee,ce){var x=[],ae;ce?ae=ce:ae=je;var re=new Set(ie.filter(function(he){var ye=!!(0,Ot.Z)(ee,he);return ye||x.push(he),ye})),se=new Map,ue=0;Object.keys(ee).forEach(function(he){var ye=ee[he],ge=ye.level,xe=se.get(ge);xe||(xe=new Set,se.set(ge,xe)),xe.add(ye),ue=Math.max(ue,ge)}),(0,te.ZP)(!x.length,"Tree missing follow keys: ".concat(x.slice(0,100).map(function(he){return"'".concat(he,"'")}).join(", ")));var pe;return oe===!0?pe=be(re,se,ue,ae):pe=z(re,oe.halfCheckedKeys,se,ue,ae),pe}},65065:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return te}});function te(Ot,y){return Ot[y]}},34061:function(In,Yt,Te){"use strict";Te.d(Yt,{F:function(){return ge},H8:function(){return ye},I8:function(){return he},km:function(){return x},oH:function(){return ue},w$:function(){return ae},zn:function(){return se}});var te=Te(76190),Ot=Te(94480),y=Te(33885),je=Te(75931),be=Te(11592),z=Te(2738),E=Te(48736),ie=Te(65065),oe=["children"];function ee(xe,ke){return"".concat(xe,"-").concat(ke)}function ce(xe){return xe&&xe.type&&xe.type.isTreeNode}function x(xe,ke){return xe!=null?xe:ke}function ae(xe){var ke=xe||{},De=ke.title,Be=ke._title,Ae=ke.key,Se=ke.children,Ee=De||"title";return{title:Ee,_title:Be||[Ee],key:Ae||"key",children:Se||"children"}}function re(xe,ke){var De=new Map;function Be(Ae){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ae||[]).forEach(function(Ee){var Oe=Ee[ke.key],Pe=Ee[ke.children];warning(Oe!=null,"Tree node must have a certain key: [".concat(Se).concat(Oe,"]"));var Le=String(Oe);warning(!De.has(Le)||Oe===null||Oe===void 0,"Same 'key' exist in the Tree: ".concat(Le)),De.set(Le,!0),Be(Pe,"".concat(Se).concat(Le," > "))})}Be(xe)}function se(xe){function ke(De){var Be=(0,be.Z)(De);return Be.map(function(Ae){if(!ce(Ae))return(0,E.ZP)(!Ae,"Tree/TreeNode can only accept TreeNode as children."),null;var Se=Ae.key,Ee=Ae.props,Oe=Ee.children,Pe=(0,je.Z)(Ee,oe),Le=(0,y.Z)({key:Se},Pe),Ne=ke(Oe);return Ne.length&&(Le.children=Ne),Le}).filter(function(Ae){return Ae})}return ke(xe)}function ue(xe,ke,De){var Be=ae(De),Ae=Be._title,Se=Be.key,Ee=Be.children,Oe=new Set(ke===!0?[]:ke),Pe=[];function Le(Ne){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ne.map(function(Ve,Ze){for(var We=ee(me?me.pos:"0",Ze),nt=x(Ve[Se],We),_e,Ue=0;Ue<Ae.length;Ue+=1){var tt=Ae[Ue];if(Ve[tt]!==void 0){_e=Ve[tt];break}}var rt=Object.assign((0,z.Z)(Ve,[].concat((0,Ot.Z)(Ae),[Se,Ee])),{title:_e,key:nt,parent:me,pos:We,children:null,data:Ve,isStart:[].concat((0,Ot.Z)(me?me.isStart:[]),[Ze===0]),isEnd:[].concat((0,Ot.Z)(me?me.isEnd:[]),[Ze===Ne.length-1])});return Pe.push(rt),ke===!0||Oe.has(nt)?rt.children=Le(Ve[Ee]||[],rt):rt.children=[],rt})}return Le(xe),Pe}function pe(xe,ke,De){var Be={};(0,te.Z)(De)==="object"?Be=De:Be={externalGetKey:De},Be=Be||{};var Ae=Be,Se=Ae.childrenPropName,Ee=Ae.externalGetKey,Oe=Ae.fieldNames,Pe=ae(Oe),Le=Pe.key,Ne=Pe.children,me=Se||Ne,Ve;Ee?typeof Ee=="string"?Ve=function(nt){return nt[Ee]}:typeof Ee=="function"&&(Ve=function(nt){return Ee(nt)}):Ve=function(nt,_e){return x(nt[Le],_e)};function Ze(We,nt,_e,Ue){var tt=We?We[me]:xe,rt=We?ee(_e.pos,nt):"0",et=We?[].concat((0,Ot.Z)(Ue),[We]):[];if(We){var Ke=Ve(We,rt),Ye={node:We,index:nt,pos:rt,key:Ke,parentPos:_e.node?_e.pos:null,level:_e.level+1,nodes:et};ke(Ye)}tt&&tt.forEach(function(Xe,ot){Ze(Xe,ot,{node:We,pos:rt,level:_e?_e.level+1:-1},et)})}Ze(null)}function he(xe){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},De=ke.initWrapper,Be=ke.processEntity,Ae=ke.onProcessFinished,Se=ke.externalGetKey,Ee=ke.childrenPropName,Oe=ke.fieldNames,Pe=arguments.length>2?arguments[2]:void 0,Le=Se||Pe,Ne={},me={},Ve={posEntities:Ne,keyEntities:me};return De&&(Ve=De(Ve)||Ve),pe(xe,function(Ze){var We=Ze.node,nt=Ze.index,_e=Ze.pos,Ue=Ze.key,tt=Ze.parentPos,rt=Ze.level,et=Ze.nodes,Ke={node:We,nodes:et,index:nt,key:Ue,pos:_e,level:rt},Ye=x(Ue,_e);Ne[_e]=Ke,me[Ye]=Ke,Ke.parent=Ne[tt],Ke.parent&&(Ke.parent.children=Ke.parent.children||[],Ke.parent.children.push(Ke)),Be&&Be(Ke,Ve)},{externalGetKey:Le,childrenPropName:Ee,fieldNames:Oe}),Ae&&Ae(Ve),Ve}function ye(xe,ke){var De=ke.expandedKeys,Be=ke.selectedKeys,Ae=ke.loadedKeys,Se=ke.loadingKeys,Ee=ke.checkedKeys,Oe=ke.halfCheckedKeys,Pe=ke.dragOverNodeKey,Le=ke.dropPosition,Ne=ke.keyEntities,me=(0,ie.Z)(Ne,xe),Ve={eventKey:xe,expanded:De.indexOf(xe)!==-1,selected:Be.indexOf(xe)!==-1,loaded:Ae.indexOf(xe)!==-1,loading:Se.indexOf(xe)!==-1,checked:Ee.indexOf(xe)!==-1,halfChecked:Oe.indexOf(xe)!==-1,pos:String(me?me.pos:""),dragOver:Pe===xe&&Le===0,dragOverGapTop:Pe===xe&&Le===-1,dragOverGapBottom:Pe===xe&&Le===1};return Ve}function ge(xe){var ke=xe.data,De=xe.expanded,Be=xe.selected,Ae=xe.checked,Se=xe.loaded,Ee=xe.loading,Oe=xe.halfChecked,Pe=xe.dragOver,Le=xe.dragOverGapTop,Ne=xe.dragOverGapBottom,me=xe.pos,Ve=xe.active,Ze=xe.eventKey,We=(0,y.Z)((0,y.Z)({},ke),{},{expanded:De,selected:Be,checked:Ae,loaded:Se,loading:Ee,halfChecked:Oe,dragOver:Pe,dragOverGapTop:Le,dragOverGapBottom:Ne,pos:me,active:Ve,key:Ze});return"props"in We||Object.defineProperty(We,"props",{get:function(){return(0,E.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),xe}}),We}},8224:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Ot}});var te=Te(4676);function Ot(y,je,be,z){var E=te.unstable_batchedUpdates?function(oe){te.unstable_batchedUpdates(be,oe)}:be;return y!=null&&y.addEventListener&&y.addEventListener(je,E,z),{remove:function(){y!=null&&y.removeEventListener&&y.removeEventListener(je,E,z)}}}},24514:function(In,Yt,Te){"use strict";Te.d(Yt,{G:function(){return je}});var te=Te(47273),Ot=function(z){if((0,te.Z)()&&window.document.documentElement){var E=Array.isArray(z)?z:[z],ie=window.document.documentElement;return E.some(function(oe){return oe in ie.style})}return!1},y=function(z,E){if(!Ot(z))return!1;var ie=document.createElement("div"),oe=ie.style[z];return ie.style[z]=E,ie.style[z]!==oe};function je(be,z){return!Array.isArray(be)&&z!==void 0?y(be,z):Ot(be)}},48911:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Fe}});var te=Te(54476),Ot=Te(76190),y=Te(33885),je=Te(20068),be=Te(42978),z=Te(75931),E=Te(92310),ie=Te.n(E),oe=Te(29301),ee=Te(70425),ce=Te(34280),x=Te(59301),ae=Te(4676),re=x.forwardRef(function(Re,ne){var fe=Re.height,Me=Re.offsetY,ze=Re.offsetX,we=Re.children,ve=Re.prefixCls,Ie=Re.onInnerResize,$e=Re.innerProps,Ge=Re.rtl,Je=Re.extra,ut={},lt={display:"flex",flexDirection:"column"};return Me!==void 0&&(ut={height:fe,position:"relative",overflow:"hidden"},lt=(0,y.Z)((0,y.Z)({},lt),{},(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({transform:"translateY(".concat(Me,"px)")},Ge?"marginRight":"marginLeft",-ze),"position","absolute"),"left",0),"right",0),"top",0))),x.createElement("div",{style:ut},x.createElement(oe.Z,{onResize:function(ct){var st=ct.offsetHeight;st&&Ie&&Ie()}},x.createElement("div",(0,te.Z)({style:lt,className:ie()((0,je.Z)({},"".concat(ve,"-holder-inner"),ve)),ref:ne},$e),we,Je)))});re.displayName="Filler";var se=re;function ue(Re){var ne=Re.children,fe=Re.setRef,Me=x.useCallback(function(ze){fe(ze)},[]);return x.cloneElement(ne,{ref:Me})}function pe(Re,ne,fe,Me,ze,we,ve,Ie){var $e=Ie.getKey;return Re.slice(ne,fe+1).map(function(Ge,Je){var ut=ne+Je,lt=ve(Ge,ut,{style:{width:Me},offsetX:ze}),vt=$e(Ge);return x.createElement(ue,{key:vt,setRef:function(st){return we(Ge,st)}},lt)})}function he(Re,ne,fe,Me){var ze=fe-Re,we=ne-fe,ve=Math.min(ze,we)*2;if(Me<=ve){var Ie=Math.floor(Me/2);return Me%2?fe+Ie+1:fe-Ie}return ze>we?fe-(Me-we):fe+(Me-ze)}function ye(Re,ne,fe){var Me=Re.length,ze=ne.length,we,ve;if(Me===0&&ze===0)return null;Me<ze?(we=Re,ve=ne):(we=ne,ve=Re);var Ie={__EMPTY_ITEM__:!0};function $e(ct){return ct!==void 0?fe(ct):Ie}for(var Ge=null,Je=Math.abs(Me-ze)!==1,ut=0;ut<ve.length;ut+=1){var lt=$e(we[ut]),vt=$e(ve[ut]);if(lt!==vt){Ge=ut,Je=Je||lt!==$e(ve[ut+1]);break}}return Ge===null?null:{index:Ge,multiple:Je}}function ge(Re,ne,fe){var Me=x.useState(Re),ze=(0,be.Z)(Me,2),we=ze[0],ve=ze[1],Ie=x.useState(null),$e=(0,be.Z)(Ie,2),Ge=$e[0],Je=$e[1];return x.useEffect(function(){var ut=ye(we||[],Re||[],ne);(ut==null?void 0:ut.index)!==void 0&&(fe==null||fe(ut.index),Je(Re[ut.index])),ve(Re)},[Re]),[Ge]}var xe=Te(16089),ke=(typeof navigator=="undefined"?"undefined":(0,Ot.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),De=ke,Be=function(Re,ne,fe,Me){var ze=(0,x.useRef)(!1),we=(0,x.useRef)(null);function ve(){clearTimeout(we.current),ze.current=!0,we.current=setTimeout(function(){ze.current=!1},50)}var Ie=(0,x.useRef)({top:Re,bottom:ne,left:fe,right:Me});return Ie.current.top=Re,Ie.current.bottom=ne,Ie.current.left=fe,Ie.current.right=Me,function($e,Ge){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ut=$e?Ge<0&&Ie.current.left||Ge>0&&Ie.current.right:Ge<0&&Ie.current.top||Ge>0&&Ie.current.bottom;return Je&&ut?(clearTimeout(we.current),ze.current=!1):(!ut||ze.current)&&ve(),!ze.current&&ut}};function Ae(Re,ne,fe,Me,ze,we,ve){var Ie=(0,x.useRef)(0),$e=(0,x.useRef)(null),Ge=(0,x.useRef)(null),Je=(0,x.useRef)(!1),ut=Be(ne,fe,Me,ze);function lt(Dt,jt){if(xe.Z.cancel($e.current),!ut(!1,jt)){var Et=Dt;if(!Et._virtualHandled)Et._virtualHandled=!0;else return;Ie.current+=jt,Ge.current=jt,De||Et.preventDefault(),$e.current=(0,xe.Z)(function(){var kt=Je.current?10:1;ve(Ie.current*kt,!1),Ie.current=0})}}function vt(Dt,jt){ve(jt,!0),De||Dt.preventDefault()}var ct=(0,x.useRef)(null),st=(0,x.useRef)(null);function At(Dt){if(Re){xe.Z.cancel(st.current),st.current=(0,xe.Z)(function(){ct.current=null},2);var jt=Dt.deltaX,Et=Dt.deltaY,kt=Dt.shiftKey,Nt=jt,yt=Et;(ct.current==="sx"||!ct.current&&kt&&Et&&!jt)&&(Nt=Et,yt=0,ct.current="sx");var Pt=Math.abs(Nt),Kt=Math.abs(yt);ct.current===null&&(ct.current=we&&Pt>Kt?"x":"y"),ct.current==="y"?lt(Dt,yt):vt(Dt,Nt)}}function mt(Dt){Re&&(Je.current=Dt.detail===Ge.current)}return[At,mt]}function Se(Re,ne,fe,Me){var ze=x.useMemo(function(){return[new Map,[]]},[Re,fe.id,Me]),we=(0,be.Z)(ze,2),ve=we[0],Ie=we[1],$e=function(Je){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Je,lt=ve.get(Je),vt=ve.get(ut);if(lt===void 0||vt===void 0)for(var ct=Re.length,st=Ie.length;st<ct;st+=1){var At,mt=Re[st],Dt=ne(mt);ve.set(Dt,st);var jt=(At=fe.get(Dt))!==null&&At!==void 0?At:Me;if(Ie[st]=(Ie[st-1]||0)+jt,Dt===Je&&(lt=st),Dt===ut&&(vt=st),lt!==void 0&&vt!==void 0)break}return{top:Ie[lt-1]||0,bottom:Ie[vt]}};return $e}var Ee=Te(67732),Oe=Te(83652),Pe=function(){function Re(){(0,Ee.Z)(this,Re),(0,je.Z)(this,"maps",void 0),(0,je.Z)(this,"id",0),(0,je.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Oe.Z)(Re,[{key:"set",value:function(fe,Me){this.diffRecords.set(fe,this.maps[fe]),this.maps[fe]=Me,this.id+=1}},{key:"get",value:function(fe){return this.maps[fe]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),Re}(),Le=Pe;function Ne(Re){var ne=parseFloat(Re);return isNaN(ne)?0:ne}function me(Re,ne,fe){var Me=x.useState(0),ze=(0,be.Z)(Me,2),we=ze[0],ve=ze[1],Ie=(0,x.useRef)(new Map),$e=(0,x.useRef)(new Le),Ge=(0,x.useRef)(0);function Je(){Ge.current+=1}function ut(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Je();var ct=function(){var mt=!1;Ie.current.forEach(function(Dt,jt){if(Dt&&Dt.offsetParent){var Et=Dt.offsetHeight,kt=getComputedStyle(Dt),Nt=kt.marginTop,yt=kt.marginBottom,Pt=Ne(Nt),Kt=Ne(yt),nn=Et+Pt+Kt;$e.current.get(jt)!==nn&&($e.current.set(jt,nn),mt=!0)}}),mt&&ve(function(Dt){return Dt+1})};if(vt)ct();else{Ge.current+=1;var st=Ge.current;Promise.resolve().then(function(){st===Ge.current&&ct()})}}function lt(vt,ct){var st=Re(vt),At=Ie.current.get(st);ct?(Ie.current.set(st,ct),ut()):Ie.current.delete(st),!At!=!ct&&(ct?ne==null||ne(vt):fe==null||fe(vt))}return(0,x.useEffect)(function(){return Je},[]),[lt,ut,$e.current,we]}var Ve=14/15;function Ze(Re,ne,fe){var Me=(0,x.useRef)(!1),ze=(0,x.useRef)(0),we=(0,x.useRef)(0),ve=(0,x.useRef)(null),Ie=(0,x.useRef)(null),$e,Ge=function(vt){if(Me.current){var ct=Math.ceil(vt.touches[0].pageX),st=Math.ceil(vt.touches[0].pageY),At=ze.current-ct,mt=we.current-st,Dt=Math.abs(At)>Math.abs(mt);Dt?ze.current=ct:we.current=st;var jt=fe(Dt,Dt?At:mt,!1,vt);jt&&vt.preventDefault(),clearInterval(Ie.current),jt&&(Ie.current=setInterval(function(){Dt?At*=Ve:mt*=Ve;var Et=Math.floor(Dt?At:mt);(!fe(Dt,Et,!0)||Math.abs(Et)<=.1)&&clearInterval(Ie.current)},16))}},Je=function(){Me.current=!1,$e()},ut=function(vt){$e(),vt.touches.length===1&&!Me.current&&(Me.current=!0,ze.current=Math.ceil(vt.touches[0].pageX),we.current=Math.ceil(vt.touches[0].pageY),ve.current=vt.target,ve.current.addEventListener("touchmove",Ge,{passive:!1}),ve.current.addEventListener("touchend",Je,{passive:!0}))};$e=function(){ve.current&&(ve.current.removeEventListener("touchmove",Ge),ve.current.removeEventListener("touchend",Je))},(0,ce.Z)(function(){return Re&&ne.current.addEventListener("touchstart",ut,{passive:!0}),function(){var lt;(lt=ne.current)===null||lt===void 0||lt.removeEventListener("touchstart",ut),$e(),clearInterval(Ie.current)}},[Re])}function We(Re){return Math.floor(Math.pow(Re,.5))}function nt(Re,ne){var fe="touches"in Re?Re.touches[0]:Re;return fe[ne?"pageX":"pageY"]-window[ne?"scrollX":"scrollY"]}function _e(Re,ne,fe){x.useEffect(function(){var Me=ne.current;if(Re&&Me){var ze=!1,we,ve,Ie=function(){xe.Z.cancel(we)},$e=function lt(){Ie(),we=(0,xe.Z)(function(){fe(ve),lt()})},Ge=function(){ze=!1,Ie()},Je=function(vt){if(!(vt.target.draggable||vt.button!==0)){var ct=vt;ct._virtualHandled||(ct._virtualHandled=!0,ze=!0)}},ut=function(vt){if(ze){var ct=nt(vt,!1),st=Me.getBoundingClientRect(),At=st.top,mt=st.bottom;if(ct<=At){var Dt=At-ct;ve=-We(Dt),$e()}else if(ct>=mt){var jt=ct-mt;ve=We(jt),$e()}else Ie()}};return Me.addEventListener("mousedown",Je),Me.ownerDocument.addEventListener("mouseup",Ge),Me.ownerDocument.addEventListener("mousemove",ut),Me.ownerDocument.addEventListener("dragend",Ge),function(){Me.removeEventListener("mousedown",Je),Me.ownerDocument.removeEventListener("mouseup",Ge),Me.ownerDocument.removeEventListener("mousemove",ut),Me.ownerDocument.removeEventListener("dragend",Ge),Ie()}}},[Re])}var Ue=10;function tt(Re,ne,fe,Me,ze,we,ve,Ie){var $e=x.useRef(),Ge=x.useState(null),Je=(0,be.Z)(Ge,2),ut=Je[0],lt=Je[1];return(0,ce.Z)(function(){if(ut&&ut.times<Ue){if(!Re.current){lt(function(yn){return(0,y.Z)({},yn)});return}we();var vt=ut.targetAlign,ct=ut.originAlign,st=ut.index,At=ut.offset,mt=Re.current.clientHeight,Dt=!1,jt=vt,Et=null;if(mt){for(var kt=vt||ct,Nt=0,yt=0,Pt=0,Kt=Math.min(ne.length-1,st),nn=0;nn<=Kt;nn+=1){var xt=ze(ne[nn]);yt=Nt;var Ct=fe.get(xt);Pt=yt+(Ct===void 0?Me:Ct),Nt=Pt}for(var zt=kt==="top"?At:mt-At,en=Kt;en>=0;en-=1){var un=ze(ne[en]),Cn=fe.get(un);if(Cn===void 0){Dt=!0;break}if(zt-=Cn,zt<=0)break}switch(kt){case"top":Et=yt-At;break;case"bottom":Et=Pt-mt+At;break;default:{var Nn=Re.current.scrollTop,_n=Nn+mt;yt<Nn?jt="top":Pt>_n&&(jt="bottom")}}Et!==null&&ve(Et),Et!==ut.lastTop&&(Dt=!0)}Dt&&lt((0,y.Z)((0,y.Z)({},ut),{},{times:ut.times+1,targetAlign:jt,lastTop:Et}))}},[ut,Re.current]),function(vt){if(vt==null){Ie();return}if(xe.Z.cancel($e.current),typeof vt=="number")ve(vt);else if(vt&&(0,Ot.Z)(vt)==="object"){var ct,st=vt.align;"index"in vt?ct=vt.index:ct=ne.findIndex(function(Dt){return ze(Dt)===vt.key});var At=vt.offset,mt=At===void 0?0:At;lt({times:0,index:ct,offset:mt,originAlign:st})}}}var rt=x.forwardRef(function(Re,ne){var fe=Re.prefixCls,Me=Re.rtl,ze=Re.scrollOffset,we=Re.scrollRange,ve=Re.onStartMove,Ie=Re.onStopMove,$e=Re.onScroll,Ge=Re.horizontal,Je=Re.spinSize,ut=Re.containerSize,lt=Re.style,vt=Re.thumbStyle,ct=Re.showScrollBar,st=x.useState(!1),At=(0,be.Z)(st,2),mt=At[0],Dt=At[1],jt=x.useState(null),Et=(0,be.Z)(jt,2),kt=Et[0],Nt=Et[1],yt=x.useState(null),Pt=(0,be.Z)(yt,2),Kt=Pt[0],nn=Pt[1],xt=!Me,Ct=x.useRef(),zt=x.useRef(),en=x.useState(ct),un=(0,be.Z)(en,2),Cn=un[0],Nn=un[1],_n=x.useRef(),yn=function(){ct===!0||ct===!1||(clearTimeout(_n.current),Nn(!0),_n.current=setTimeout(function(){Nn(!1)},3e3))},Rn=we-ut||0,pn=ut-Je||0,on=x.useMemo(function(){if(ze===0||Rn===0)return 0;var gn=ze/Rn;return gn*pn},[ze,Rn,pn]),Vt=function(Ln){Ln.stopPropagation(),Ln.preventDefault()},Wt=x.useRef({top:on,dragging:mt,pageY:kt,startTop:Kt});Wt.current={top:on,dragging:mt,pageY:kt,startTop:Kt};var Ht=function(Ln){Dt(!0),Nt(nt(Ln,Ge)),nn(Wt.current.top),ve(),Ln.stopPropagation(),Ln.preventDefault()};x.useEffect(function(){var gn=function(nr){nr.preventDefault()},Ln=Ct.current,Kn=zt.current;return Ln.addEventListener("touchstart",gn,{passive:!1}),Kn.addEventListener("touchstart",Ht,{passive:!1}),function(){Ln.removeEventListener("touchstart",gn),Kn.removeEventListener("touchstart",Ht)}},[]);var hn=x.useRef();hn.current=Rn;var cn=x.useRef();cn.current=pn,x.useEffect(function(){if(mt){var gn,Ln=function(nr){var ln=Wt.current,rn=ln.dragging,Wn=ln.pageY,Zn=ln.startTop;xe.Z.cancel(gn);var Mt=Ct.current.getBoundingClientRect(),Gt=ut/(Ge?Mt.width:Mt.height);if(rn){var St=(nt(nr,Ge)-Wn)*Gt,Rt=Zn;!xt&&Ge?Rt-=St:Rt+=St;var Tt=hn.current,_t=cn.current,bt=_t?Rt/_t:0,Ut=Math.ceil(bt*Tt);Ut=Math.max(Ut,0),Ut=Math.min(Ut,Tt),gn=(0,xe.Z)(function(){$e(Ut,Ge)})}},Kn=function(){Dt(!1),Ie()};return window.addEventListener("mousemove",Ln,{passive:!0}),window.addEventListener("touchmove",Ln,{passive:!0}),window.addEventListener("mouseup",Kn,{passive:!0}),window.addEventListener("touchend",Kn,{passive:!0}),function(){window.removeEventListener("mousemove",Ln),window.removeEventListener("touchmove",Ln),window.removeEventListener("mouseup",Kn),window.removeEventListener("touchend",Kn),xe.Z.cancel(gn)}}},[mt]),x.useEffect(function(){return yn(),function(){clearTimeout(_n.current)}},[ze]),x.useImperativeHandle(ne,function(){return{delayHidden:yn}});var mn="".concat(fe,"-scrollbar"),Bn={position:"absolute",visibility:Cn?null:"hidden"},Pn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Ge?(Object.assign(Bn,{height:8,left:0,right:0,bottom:0}),Object.assign(Pn,(0,je.Z)({height:"100%",width:Je},xt?"left":"right",on))):(Object.assign(Bn,(0,je.Z)({width:8,top:0,bottom:0},xt?"right":"left",0)),Object.assign(Pn,{width:"100%",height:Je,top:on})),x.createElement("div",{ref:Ct,className:ie()(mn,(0,je.Z)((0,je.Z)((0,je.Z)({},"".concat(mn,"-horizontal"),Ge),"".concat(mn,"-vertical"),!Ge),"".concat(mn,"-visible"),Cn)),style:(0,y.Z)((0,y.Z)({},Bn),lt),onMouseDown:Vt,onMouseMove:yn},x.createElement("div",{ref:zt,className:ie()("".concat(mn,"-thumb"),(0,je.Z)({},"".concat(mn,"-thumb-moving"),mt)),style:(0,y.Z)((0,y.Z)({},Pn),vt),onMouseDown:Ht}))}),et=rt,Ke=20;function Ye(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,fe=Re/ne*Re;return isNaN(fe)&&(fe=0),fe=Math.max(fe,Ke),Math.floor(fe)}var Xe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],ot=[],Qe={overflowY:"auto",overflowAnchor:"none"};function ft(Re,ne){var fe=Re.prefixCls,Me=fe===void 0?"rc-virtual-list":fe,ze=Re.className,we=Re.height,ve=Re.itemHeight,Ie=Re.fullHeight,$e=Ie===void 0?!0:Ie,Ge=Re.style,Je=Re.data,ut=Re.children,lt=Re.itemKey,vt=Re.virtual,ct=Re.direction,st=Re.scrollWidth,At=Re.component,mt=At===void 0?"div":At,Dt=Re.onScroll,jt=Re.onVirtualScroll,Et=Re.onVisibleChange,kt=Re.innerProps,Nt=Re.extraRender,yt=Re.styles,Pt=Re.showScrollBar,Kt=Pt===void 0?"optional":Pt,nn=(0,z.Z)(Re,Xe),xt=x.useCallback(function(Dn){return typeof lt=="function"?lt(Dn):Dn==null?void 0:Dn[lt]},[lt]),Ct=me(xt,null,null),zt=(0,be.Z)(Ct,4),en=zt[0],un=zt[1],Cn=zt[2],Nn=zt[3],_n=!!(vt!==!1&&we&&ve),yn=x.useMemo(function(){return Object.values(Cn.maps).reduce(function(Dn,Un){return Dn+Un},0)},[Cn.id,Cn.maps]),Rn=_n&&Je&&(Math.max(ve*Je.length,yn)>we||!!st),pn=ct==="rtl",on=ie()(Me,(0,je.Z)({},"".concat(Me,"-rtl"),pn),ze),Vt=Je||ot,Wt=(0,x.useRef)(),Ht=(0,x.useRef)(),hn=(0,x.useRef)(),cn=(0,x.useState)(0),mn=(0,be.Z)(cn,2),Bn=mn[0],Pn=mn[1],gn=(0,x.useState)(0),Ln=(0,be.Z)(gn,2),Kn=Ln[0],sr=Ln[1],nr=(0,x.useState)(!1),ln=(0,be.Z)(nr,2),rn=ln[0],Wn=ln[1],Zn=function(){Wn(!0)},Mt=function(){Wn(!1)},Gt={getKey:xt};function St(Dn){Pn(function(Un){var Vn;typeof Dn=="function"?Vn=Dn(Un):Vn=Dn;var $n=wr(Vn);return Wt.current.scrollTop=$n,$n})}var Rt=(0,x.useRef)({start:0,end:Vt.length}),Tt=(0,x.useRef)(),_t=ge(Vt,xt),bt=(0,be.Z)(_t,1),Ut=bt[0];Tt.current=Ut;var Lt=x.useMemo(function(){if(!_n)return{scrollHeight:void 0,start:0,end:Vt.length-1,offset:void 0};if(!Rn){var Dn;return{scrollHeight:((Dn=Ht.current)===null||Dn===void 0?void 0:Dn.offsetHeight)||0,start:0,end:Vt.length-1,offset:void 0}}for(var Un=0,Vn,$n,cr,jr=Vt.length,Gn=0;Gn<jr;Gn+=1){var zn=Vt[Gn],qn=xt(zn),or=Cn.get(qn),ti=Un+(or===void 0?ve:or);ti>=Bn&&Vn===void 0&&(Vn=Gn,$n=Un),ti>Bn+we&&cr===void 0&&(cr=Gn),Un=ti}return Vn===void 0&&(Vn=0,$n=0,cr=Math.ceil(we/ve)),cr===void 0&&(cr=Vt.length-1),cr=Math.min(cr+1,Vt.length-1),{scrollHeight:Un,start:Vn,end:cr,offset:$n}},[Rn,_n,Bn,Vt,Nn,we]),qt=Lt.scrollHeight,Ft=Lt.start,$t=Lt.end,Zt=Lt.offset;Rt.current.start=Ft,Rt.current.end=$t,x.useLayoutEffect(function(){var Dn=Cn.getRecord();if(Dn.size===1){var Un=Array.from(Dn.keys())[0],Vn=Dn.get(Un),$n=Vt[Ft];if($n&&Vn===void 0){var cr=xt($n);if(cr===Un){var jr=Cn.get(Un),Gn=jr-ve;St(function(zn){return zn+Gn})}}}Cn.resetRecord()},[qt]);var Xt=x.useState({width:0,height:we}),Tn=(0,be.Z)(Xt,2),On=Tn[0],Mn=Tn[1],rr=function(Un){Mn({width:Un.offsetWidth,height:Un.offsetHeight})},lr=(0,x.useRef)(),hr=(0,x.useRef)(),er=x.useMemo(function(){return Ye(On.width,st)},[On.width,st]),Qn=x.useMemo(function(){return Ye(On.height,qt)},[On.height,qt]),Fn=qt-we,pr=(0,x.useRef)(Fn);pr.current=Fn;function wr(Dn){var Un=Dn;return Number.isNaN(pr.current)||(Un=Math.min(Un,pr.current)),Un=Math.max(Un,0),Un}var Sr=Bn<=0,Cr=Bn>=Fn,Jn=Kn<=0,yr=Kn>=st,An=Be(Sr,Cr,Jn,yr),xn=function(){return{x:pn?-Kn:Kn,y:Bn}},tr=(0,x.useRef)(xn()),br=(0,ee.zX)(function(Dn){if(jt){var Un=(0,y.Z)((0,y.Z)({},xn()),Dn);(tr.current.x!==Un.x||tr.current.y!==Un.y)&&(jt(Un),tr.current=Un)}});function Er(Dn,Un){var Vn=Dn;Un?((0,ae.flushSync)(function(){sr(Vn)}),br()):St(Vn)}function Hr(Dn){var Un=Dn.currentTarget.scrollTop;Un!==Bn&&St(Un),Dt==null||Dt(Dn),br()}var kr=function(Un){var Vn=Un,$n=st?st-On.width:0;return Vn=Math.max(Vn,0),Vn=Math.min(Vn,$n),Vn},Ur=(0,ee.zX)(function(Dn,Un){Un?((0,ae.flushSync)(function(){sr(function(Vn){var $n=Vn+(pn?-Dn:Dn);return kr($n)})}),br()):St(function(Vn){var $n=Vn+Dn;return $n})}),Tr=Ae(_n,Sr,Cr,Jn,yr,!!st,Ur),ei=(0,be.Z)(Tr,2),si=ei[0],wi=ei[1];Ze(_n,Wt,function(Dn,Un,Vn,$n){var cr=$n;return An(Dn,Un,Vn)?!1:!cr||!cr._virtualHandled?(cr&&(cr._virtualHandled=!0),si({preventDefault:function(){},deltaX:Dn?Un:0,deltaY:Dn?0:Un}),!0):!1}),_e(Rn,Wt,function(Dn){St(function(Un){return Un+Dn})}),(0,ce.Z)(function(){function Dn(Vn){var $n=Sr&&Vn.detail<0,cr=Cr&&Vn.detail>0;_n&&!$n&&!cr&&Vn.preventDefault()}var Un=Wt.current;return Un.addEventListener("wheel",si,{passive:!1}),Un.addEventListener("DOMMouseScroll",wi,{passive:!0}),Un.addEventListener("MozMousePixelScroll",Dn,{passive:!1}),function(){Un.removeEventListener("wheel",si),Un.removeEventListener("DOMMouseScroll",wi),Un.removeEventListener("MozMousePixelScroll",Dn)}},[_n,Sr,Cr]),(0,ce.Z)(function(){if(st){var Dn=kr(Kn);sr(Dn),br({x:Dn})}},[On.width,st]);var Kr=function(){var Un,Vn;(Un=lr.current)===null||Un===void 0||Un.delayHidden(),(Vn=hr.current)===null||Vn===void 0||Vn.delayHidden()},gi=tt(Wt,Vt,Cn,ve,xt,function(){return un(!0)},St,Kr);x.useImperativeHandle(ne,function(){return{nativeElement:hn.current,getScrollInfo:xn,scrollTo:function(Un){function Vn($n){return $n&&(0,Ot.Z)($n)==="object"&&("left"in $n||"top"in $n)}Vn(Un)?(Un.left!==void 0&&sr(kr(Un.left)),gi(Un.top)):gi(Un)}}}),(0,ce.Z)(function(){if(Et){var Dn=Vt.slice(Ft,$t+1);Et(Dn,Vt)}},[Ft,$t,Vt]);var di=Se(Vt,xt,Cn,ve),bi=Nt==null?void 0:Nt({start:Ft,end:$t,virtual:Rn,offsetX:Kn,offsetY:Zt,rtl:pn,getSize:di}),Or=pe(Vt,Ft,$t,st,Kn,en,ut,Gt),Pr=null;we&&(Pr=(0,y.Z)((0,je.Z)({},$e?"height":"maxHeight",we),Qe),_n&&(Pr.overflowY="hidden",st&&(Pr.overflowX="hidden"),rn&&(Pr.pointerEvents="none")));var ur={};return pn&&(ur.dir="rtl"),x.createElement("div",(0,te.Z)({ref:hn,style:(0,y.Z)((0,y.Z)({},Ge),{},{position:"relative"}),className:on},ur,nn),x.createElement(oe.Z,{onResize:rr},x.createElement(mt,{className:"".concat(Me,"-holder"),style:Pr,ref:Wt,onScroll:Hr,onMouseEnter:Kr},x.createElement(se,{prefixCls:Me,height:qt,offsetX:Kn,offsetY:Zt,scrollWidth:st,onInnerResize:un,ref:Ht,innerProps:kt,rtl:pn,extra:bi},Or))),Rn&&qt>we&&x.createElement(et,{ref:lr,prefixCls:Me,scrollOffset:Bn,scrollRange:qt,rtl:pn,onScroll:Er,onStartMove:Zn,onStopMove:Mt,spinSize:Qn,containerSize:On.height,style:yt==null?void 0:yt.verticalScrollBar,thumbStyle:yt==null?void 0:yt.verticalScrollBarThumb,showScrollBar:Kt}),Rn&&st>On.width&&x.createElement(et,{ref:hr,prefixCls:Me,scrollOffset:Kn,scrollRange:st,rtl:pn,onScroll:Er,onStartMove:Zn,onStopMove:Mt,spinSize:er,containerSize:On.width,horizontal:!0,style:yt==null?void 0:yt.horizontalScrollBar,thumbStyle:yt==null?void 0:yt.horizontalScrollBarThumb,showScrollBar:Kt}))}var at=x.forwardRef(ft);at.displayName="List";var qe=at,Fe=qe},93314:function(In){"use strict";In.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});const te=oe=>typeof oe=="object"&&oe!=null&&oe.nodeType===1,Ot=(oe,ee)=>(!ee||oe!=="hidden")&&oe!=="visible"&&oe!=="clip",y=(oe,ee)=>{if(oe.clientHeight<oe.scrollHeight||oe.clientWidth<oe.scrollWidth){const ce=getComputedStyle(oe,null);return Ot(ce.overflowY,ee)||Ot(ce.overflowX,ee)||(x=>{const ae=(re=>{if(!re.ownerDocument||!re.ownerDocument.defaultView)return null;try{return re.ownerDocument.defaultView.frameElement}catch(se){return null}})(x);return!!ae&&(ae.clientHeight<x.scrollHeight||ae.clientWidth<x.scrollWidth)})(oe)}return!1},je=(oe,ee,ce,x,ae,re,se,ue)=>re<oe&&se>ee||re>oe&&se<ee?0:re<=oe&&ue<=ce||se>=ee&&ue>=ce?re-oe-x:se>ee&&ue<ce||re<oe&&ue>ce?se-ee+ae:0,be=oe=>{const ee=oe.parentElement;return ee==null?oe.getRootNode().host||null:ee},z=(oe,ee)=>{var ce,x,ae,re;if(typeof document=="undefined")return[];const{scrollMode:se,block:ue,inline:pe,boundary:he,skipOverflowHiddenElements:ye}=ee,ge=typeof he=="function"?he:et=>et!==he;if(!te(oe))throw new TypeError("Invalid target");const xe=document.scrollingElement||document.documentElement,ke=[];let De=oe;for(;te(De)&&ge(De);){if(De=be(De),De===xe){ke.push(De);break}De!=null&&De===document.body&&y(De)&&!y(document.documentElement)||De!=null&&y(De,ye)&&ke.push(De)}const Be=(x=(ce=window.visualViewport)==null?void 0:ce.width)!=null?x:innerWidth,Ae=(re=(ae=window.visualViewport)==null?void 0:ae.height)!=null?re:innerHeight,{scrollX:Se,scrollY:Ee}=window,{height:Oe,width:Pe,top:Le,right:Ne,bottom:me,left:Ve}=oe.getBoundingClientRect(),{top:Ze,right:We,bottom:nt,left:_e}=(et=>{const Ke=window.getComputedStyle(et);return{top:parseFloat(Ke.scrollMarginTop)||0,right:parseFloat(Ke.scrollMarginRight)||0,bottom:parseFloat(Ke.scrollMarginBottom)||0,left:parseFloat(Ke.scrollMarginLeft)||0}})(oe);let Ue=ue==="start"||ue==="nearest"?Le-Ze:ue==="end"?me+nt:Le+Oe/2-Ze+nt,tt=pe==="center"?Ve+Pe/2-_e+We:pe==="end"?Ne+We:Ve-_e;const rt=[];for(let et=0;et<ke.length;et++){const Ke=ke[et],{height:Ye,width:Xe,top:ot,right:Qe,bottom:ft,left:at}=Ke.getBoundingClientRect();if(se==="if-needed"&&Le>=0&&Ve>=0&&me<=Ae&&Ne<=Be&&(Ke===xe&&!y(Ke)||Le>=ot&&me<=ft&&Ve>=at&&Ne<=Qe))return rt;const qe=getComputedStyle(Ke),Fe=parseInt(qe.borderLeftWidth,10),Re=parseInt(qe.borderTopWidth,10),ne=parseInt(qe.borderRightWidth,10),fe=parseInt(qe.borderBottomWidth,10);let Me=0,ze=0;const we="offsetWidth"in Ke?Ke.offsetWidth-Ke.clientWidth-Fe-ne:0,ve="offsetHeight"in Ke?Ke.offsetHeight-Ke.clientHeight-Re-fe:0,Ie="offsetWidth"in Ke?Ke.offsetWidth===0?0:Xe/Ke.offsetWidth:0,$e="offsetHeight"in Ke?Ke.offsetHeight===0?0:Ye/Ke.offsetHeight:0;if(xe===Ke)Me=ue==="start"?Ue:ue==="end"?Ue-Ae:ue==="nearest"?je(Ee,Ee+Ae,Ae,Re,fe,Ee+Ue,Ee+Ue+Oe,Oe):Ue-Ae/2,ze=pe==="start"?tt:pe==="center"?tt-Be/2:pe==="end"?tt-Be:je(Se,Se+Be,Be,Fe,ne,Se+tt,Se+tt+Pe,Pe),Me=Math.max(0,Me+Ee),ze=Math.max(0,ze+Se);else{Me=ue==="start"?Ue-ot-Re:ue==="end"?Ue-ft+fe+ve:ue==="nearest"?je(ot,ft,Ye,Re,fe+ve,Ue,Ue+Oe,Oe):Ue-(ot+Ye/2)+ve/2,ze=pe==="start"?tt-at-Fe:pe==="center"?tt-(at+Xe/2)+we/2:pe==="end"?tt-Qe+ne+we:je(at,Qe,Xe,Fe,ne+we,tt,tt+Pe,Pe);const{scrollLeft:Ge,scrollTop:Je}=Ke;Me=$e===0?0:Math.max(0,Math.min(Je+Me/$e,Ke.scrollHeight-Ye/$e+ve)),ze=Ie===0?0:Math.max(0,Math.min(Ge+ze/Ie,Ke.scrollWidth-Xe/Ie+we)),Ue+=Je-Me,tt+=Ge-ze}rt.push({el:Ke,top:Me,left:ze})}return rt},E=oe=>oe===!1?{block:"end",inline:"nearest"}:(ee=>ee===Object(ee)&&Object.keys(ee).length!==0)(oe)?oe:{block:"start",inline:"nearest"};function ie(oe,ee){if(!oe.isConnected||!(ae=>{let re=ae;for(;re&&re.parentNode;){if(re.parentNode===document)return!0;re=re.parentNode instanceof ShadowRoot?re.parentNode.host:re.parentNode}return!1})(oe))return;const ce=(ae=>{const re=window.getComputedStyle(ae);return{top:parseFloat(re.scrollMarginTop)||0,right:parseFloat(re.scrollMarginRight)||0,bottom:parseFloat(re.scrollMarginBottom)||0,left:parseFloat(re.scrollMarginLeft)||0}})(oe);if((ae=>typeof ae=="object"&&typeof ae.behavior=="function")(ee))return ee.behavior(z(oe,ee));const x=typeof ee=="boolean"||ee==null?void 0:ee.behavior;for(const{el:ae,top:re,left:se}of z(oe,E(ee))){const ue=re-ce.top+ce.bottom,pe=se-ce.left+ce.right;ae.scroll({top:ue,left:pe,behavior:x})}}}}]);