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.5...

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(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});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"},Pe=y,ye=Te(7657),z=function(ee,de){return Ot.createElement(ye.Z,(0,te.Z)({},ee,{ref:de,icon:Pe}))},E=Ot.forwardRef(z),re=E},59477:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});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"},Pe=y,ye=Te(7657),z=function(ee,de){return Ot.createElement(ye.Z,(0,te.Z)({},ee,{ref:de,icon:Pe}))},E=Ot.forwardRef(z),re=E},40001:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});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"},Pe=y,ye=Te(7657),z=function(ee,de){return Ot.createElement(ye.Z,(0,te.Z)({},ee,{ref:de,icon:Pe}))},E=Ot.forwardRef(z),re=E},26227:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});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"},Pe=y,ye=Te(7657),z=function(ee,de){return Ot.createElement(ye.Z,(0,te.Z)({},ee,{ref:de,icon:Pe}))},E=Ot.forwardRef(z),re=E},49198:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});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"},Pe=y,ye=Te(7657),z=function(ee,de){return Ot.createElement(ye.Z,(0,te.Z)({},ee,{ref:de,icon:Pe}))},E=Ot.forwardRef(z),re=E},41464:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});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"},Pe=y,ye=Te(7657),z=function(ee,de){return Ot.createElement(ye.Z,(0,te.Z)({},ee,{ref:de,icon:Pe}))},E=Ot.forwardRef(z),re=E},73331:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});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"},Pe=y,ye=Te(7657),z=function(ee,de){return Ot.createElement(ye.Z,(0,te.Z)({},ee,{ref:de,icon:Pe}))},E=Ot.forwardRef(z),re=E},15277:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});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"},Pe=y,ye=Te(7657),z=function(ee,de){return Ot.createElement(ye.Z,(0,te.Z)({},ee,{ref:de,icon:Pe}))},E=Ot.forwardRef(z),re=E},52671:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});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"},Pe=y,ye=Te(7657),z=function(ee,de){return Ot.createElement(ye.Z,(0,te.Z)({},ee,{ref:de,icon:Pe}))},E=Ot.forwardRef(z),re=E},8657:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});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"},Pe=y,ye=Te(7657),z=function(ee,de){return Ot.createElement(ye.Z,(0,te.Z)({},ee,{ref:de,icon:Pe}))},E=Ot.forwardRef(z),re=E},56082:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});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"},Pe=y,ye=Te(7657),z=function(ee,de){return Ot.createElement(ye.Z,(0,te.Z)({},ee,{ref:de,icon:Pe}))},E=Ot.forwardRef(z),re=E},33853:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});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"},Pe=y,ye=Te(7657),z=function(ee,de){return Ot.createElement(ye.Z,(0,te.Z)({},ee,{ref:de,icon:Pe}))},E=Ot.forwardRef(z),re=E},15075:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});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"},Pe=y,ye=Te(7657),z=function(ee,de){return Ot.createElement(ye.Z,(0,te.Z)({},ee,{ref:de,icon:Pe}))},E=Ot.forwardRef(z),re=E},43531:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});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"},Pe=y,ye=Te(7657),z=function(ee,de){return Ot.createElement(ye.Z,(0,te.Z)({},ee,{ref:de,icon:Pe}))},E=Ot.forwardRef(z),re=E},61485:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});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"},Pe=y,ye=Te(7657),z=function(ee,de){return Ot.createElement(ye.Z,(0,te.Z)({},ee,{ref:de,icon:Pe}))},E=Ot.forwardRef(z),re=E},47472:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});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"},Pe=y,ye=Te(7657),z=function(ee,de){return Ot.createElement(ye.Z,(0,te.Z)({},ee,{ref:de,icon:Pe}))},E=Ot.forwardRef(z),re=E},87395:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});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"},Pe=y,ye=Te(7657),z=function(ee,de){return Ot.createElement(ye.Z,(0,te.Z)({},ee,{ref:de,icon:Pe}))},E=Ot.forwardRef(z),re=E},45559:function(){"use strict"},42313:function(){"use strict"},96408:function(wn,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"}},93510:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var wn={},Yt="5.0",Te={},te=null,Ot=!1,y=!1,Pe=null,ye=!1,z=null,E=null,re=0;re<arguments.length;re++){var oe=arguments[re];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:Pe=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)),Pe!==null&&Te.id===void 0&&(Te.id=Pe);var ee="",de="",x=!1,ae=null,ie=null,se=null,ue=!1,pe=null,he=null,ge=null,me=null,xe=null;Te.height!==void 0&&(Te.height=Math.round(Te.height)),Te.width!==void 0&&(Te.width=Math.round(Te.width));var Ae=function(Ze){return parseFloat(Ze)>4?parseFloat(Ze):5};wn.setHTML5Codebase=function(Ze,Ye){E=Ze,tt(Ze,Ye)},wn.setJavaCodebase=wn.setJavaCodebaseVersion=wn.isCompiledInstalled=wn.setPreCompiledScriptPath=wn.setPreCompiledResourcePath=function(){},wn.setHTML5CodebaseVersion=function(Ze,Ye){var Xe=parseFloat(Ze);if(Xe!==NaN&&Xe<5){console.log("The GeoGebra HTML5 codebase version "+Xe+" is deprecated. Using version latest instead.");return}z=Ze,Ue(Ze,Ye)},wn.getHTML5CodebaseVersion=function(){return ie},wn.getParameters=function(){return Te},wn.setFontsCSSURL=function(Ze){me=Ze},wn.setGiacJSURL=function(Ze){},wn.setJNLPFile=function(Ze){ee=Ze},wn.setJNLPBaseDir=function(Ze){},wn.inject=function(){function Ze(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ye="auto",Xe=Te.id,st,Qe=!1,ht=0;ht<arguments.length;ht++){var at=arguments[ht];typeof at=="string"?(at=at.toLowerCase(),at.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ye=at:Xe=arguments[ht]):typeof at=="boolean"?Qe=at:at instanceof HTMLElement&&(st=at)}qe();function qe(){if(!ye){setTimeout(qe,200);return}Ye=it(Ye);var _e=st||document.getElementById(Xe);if(!_e){console.log("possibly bug on ajax loading? ");return}if(wn.removeExistingApplet(_e,!1),Te.width===void 0&&_e.clientWidth&&(Te.width=_e.clientWidth),Te.height===void 0&&_e.clientHeight&&(Te.height=_e.clientHeight),!(Te.width&&Te.height)&&Ye==="html5"&&(delete Te.width,delete Te.height),ae=Ye,Ye==="screenshot")ke(_e,Te);else{var Re=!1;Te.hasOwnProperty("playButton")&&Te.playButton||Te.hasOwnProperty("clickToLoad")&&Te.clickToLoad?Re=!0:Te.hasOwnProperty("playButtonAutoDecide")&&Te.playButtonAutoDecide&&(Re=(!Ne()||Ze())&&Be()),Re?(ae="screenshot",Ge(_e,Te,Qe,Ye)):Fe(_e,Te,Qe)}}};function Ne(){try{return window.self!==window.top}catch(Ze){return!0}}function Be(){return Te.hasOwnProperty("screenshotGenerator")&&Te.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}wn.getViews=function(){return te},wn.isJavaInstalled=function(){return!1};var De=function(Ze){var Ye=function(ht){var at=JSON.parse(ht),qe=function(ne){return ne.type=="G"||ne.type=="E"},_e=at.elements?at.elements.filter(qe)[0]:at;if(!_e||!_e.url){Xe();return}Te.fileName=_e.url,we(_e.settings||{}),te.is3D=!0;var Re="https://www.geogebra.org/images/";wn.setPreviewImage(pe||_e.previewUrl,Re+"GeoGebra_loading.png",Re+"applet_play.png"),Ze()},Xe=function(){Te.onError&&Te.onError(),nt("Error: Fetching material (id "+Te.material_id+") failed.",Te)},st=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Qe="/materials/"+Te.material_id+"?scope=basic";Ce("https://"+st+"/api/proxy.php?path="+encodeURIComponent(Qe),Ye,Xe)};function we(Ze){var Ye=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Xe){Ze[Xe]=!!Ze[Xe]}),Ye.forEach(function(Xe){Te[Xe]===void 0&&Ze[Xe]!==void 0&&(Te[Xe]=Ze[Xe])}),Te.showToolBarHelp===void 0&&(Te.showToolBarHelp=Te.showToolBar)}function Ce(Ze,Ye,Xe){var st=new XMLHttpRequest;st.open("GET",Ze),st.onload=function(){Ye(st.responseText)},st.onerror=Xe,st.send()}wn.isHTML5Installed=function(){return!0},wn.getLoadedAppletType=function(){return ae},wn.setPreviewImage=function(Ze,Ye,Xe){pe=Ze,he=Ye,ge=Xe},wn.removeExistingApplet=function(Ze,Ye){var Xe;typeof Ze=="string"&&(Ze=document.getElementById(Ze)),ae=null;var st=null;for(Xe=0;Xe<Ze.childNodes.length;Xe++){var Qe=Ze.childNodes[Xe],ht=Qe.className;ht==="applet_screenshot"?Ye?(Qe.style.display="block",ae="screenshot"):Qe.style.display="none":ht!=="applet_scaler prerender"&&(Ze.removeChild(Qe),st=ht&&ht.indexOf("appletParameters")!=-1?Qe.id:null,Xe--)}var at=Te.id!==void 0?Te.id:st,qe=window[at];qe&&typeof qe.getBase64=="function"&&(qe.remove(),window[at]=null)},wn.refreshHitPoints=function(){if(Ae(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ze=wn.getAppletObject();return Ze&&typeof Ze.recalculateEnvironments=="function"?(Ze.recalculateEnvironments(),!0):!1},wn.startAnimation=function(){var Ze=wn.getAppletObject();return Ze&&typeof Ze.startAnimation=="function"?(Ze.startAnimation(),!0):!1},wn.stopAnimation=function(){var Ze=wn.getAppletObject();return Ze&&typeof Ze.stopAnimation=="function"?(Ze.stopAnimation(),!0):!1},wn.getAppletObject=function(){var Ze=Te.id!==void 0?Te.id:"ggbApplet";return window[Ze]},wn.resize=function(){};var Oe=function(Ze,Ye,Xe){var st=document.createElement("param");st.setAttribute("name",Ye),st.setAttribute("value",Xe),Ze.appendChild(st)},je=function(Ze){return Ze&&Ze!=="false"},Fe=function(Ze,Ye,Xe){Ae(ie)<=4.2&&(Xe=!0);var st=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ie||ggbHTML5LoadedCodebaseIsWebSimple&&!ue)&&(st=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Qe=document.createElement("div");Qe.classList.add("appletParameters","notranslate");var ht=Ye.width,at=Ye.height;if(Ye.disableAutoScale=Ye.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ye.disableAutoScale,Ye.width!==void 0)if(Ae(ie)<=4.4)je(Ye.showToolBar)&&(Ye.height-=7),je(Ye.showAlgebraInput)&&(Ye.height-=37),Ye.width<605&&je(Ye.showToolBar)&&(Ye.width=605,ht=605);else{var qe=100;(je(Ye.showToolBar)||je(Ye.showMenuBar))&&(Ye.hasOwnProperty("customToolBar")&&(Ye.customToolbar=Ye.customToolBar),qe=je(Ye.showMenuBar)?245:155),ht<qe&&(Ye.width=qe,ht=qe)}Qe.style.border="none",Qe.style.display="inline-block";for(var _e in Ye)Ye.hasOwnProperty(_e)&&_e!=="appletOnLoad"&&Qe.setAttribute("data-param-"+_e,Ye[_e]);me&&Qe.setAttribute("data-param-fontscssurl",me),wn.resize=function(){GGBAppletUtils.responsiveResize(Ze,Ye)},window.addEventListener("resize",function(ot){wn.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=Ze.querySelector(".applet_scaler.prerender"),fe=ne!==null;if(fe)var Me=ne.querySelector(".ggb_preview");else{var Me=Ve(ht,at,Ye.borderColor,!1);ne=document.createElement("div"),ne.className="applet_scaler",ne.style.position="relative",ne.style.display="block",ne.style.width=ht+"px",ne.style.height=at+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ne,"66%"),Ae(ie)>=5?(Ye.appletOnLoad=function(ot){var ft=Ze.querySelector(".ggb_preview");ft&&ft.parentNode.removeChild(ft),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ne),window.GGBT_wsf_view&&$(window).trigger("resize"),Re(ot)},fe||ne.appendChild(Me)):Qe.appendChild(Me),ne.appendChild(Qe),fe||Ze.appendChild(ne),setTimeout(function(){wn.resize()},1)}else{var He=document.createElement("div");He.className="applet_scaler",He.style.position="relative",He.style.display="block",He.appendChild(Qe),Ze.appendChild(He),Ye.appletOnLoad=function(ot){wn.resize(),Re(ot)}}function be(ot,ft){ft&&typeof ft.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ot,ft.appletOnLoad):renderGGBElement(ot),nt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ft)}function ve(ot,ft){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ot,params:ft}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ut){be(ut.article,ut.params)}),html5AppletsToProcess=null)},Ae(ie)<5&&(ot.className+=" geogebraweb")):be(ot,ft)}if(st){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 We=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');We!=null&&We.parentNode.removeChild(We)}var Je=document.createElement("script"),ct=function(){ve(Qe,Ye)};Je.src=de+se,ggbHTML5LoadedCodebaseIsWebSimple=ue,ggbHTML5LoadedCodebaseVersion=ie,ggbHTML5LoadedScript=Je.src,nt("GeoGebra HTML5 codebase loaded: '"+de+"'.",Ye),!E&&(!z||z=="5.0")?(ue?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ct()):de.requirejs?__webpack_require__.e(3861).then(function(){var ot=[__webpack_require__(40341)];ct.apply(null,ot)}.bind(this)).catch(__webpack_require__.oe):(Je.onload=ct,Ze.appendChild(Je))}else ve(Qe,Ye);Ye.height=at,Ye.width=ht},ke=function(Ze,Ye,Xe){var st=Ve(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(st);var ht=GGBAppletUtils.getScale(Ye,Ze,Xe);Xe?(Ze.appendChild(Ke()),window.GGBT_wsf_view||(Ze.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Qe,"66%"),Ze.appendChild(Qe),ht!==1&&!isNaN(ht)&&(GGBAppletUtils.scaleElement(Qe,ht),Qe.style.width=Ye.width+"px",Qe.style.height=Ye.height+"px",Qe.parentNode.style.width=Ye.width*ht+"px",Qe.parentNode.style.height=Ye.height*ht+"px"),wn.resize=function(){Ee(Ze,st,Qe,Xe)},window.addEventListener("resize",function(at){wn.resize()}),wn.resize()};function Ee(Ze,Ye,Xe,st){if(Ze.contains(Ye)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ze.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ze)}var Qe=GGBAppletUtils.getScale(Te,Ze,st);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(Ze),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}wn.onExitFullscreen=function(Ze,Ye){Ye.appendChild(Ze)};var Ge=function(Ze,Ye,Xe,st){ke(Ze,Ye,!0);for(var Qe=function(){var qe=[];for(at=0;at<Ze.childNodes.length;at++)qe.push(Ze.childNodes[at]);if(window.GGBT_wsf_view){var _e=window.GGBT_wsf_view.renderFullScreen(Ze,Ye.id),Re=document.getElementById("fullscreencontainer"),ne=jQuery(Ze).find(".fullscreencontent");ne.length>0?(_e.remove(),ne.attr("id","fullscreencontent").show(),jQuery(Re).append(ne),window.dispatchEvent(new Event("resize"))):Fe(_e,Ye,!1),window.GGBT_wsf_view.launchFullScreen(Re)}else ae=st,Fe(Ze,Ye,!1);if(!window.GGBT_wsf_view)for(at=0;at<qe.length;at++)Ze.removeChild(qe[at])},ht=Ze.getElementsByClassName("ggb_preview_play"),at=0;at<ht.length;at++)ht[at].addEventListener("click",Qe,!1),ht[at].addEventListener("ontouchstart",Qe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ze),Be()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ke=function(){var Ze=document.createElement("div");if(Ze.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 Ze},Ve=function(Ze,Ye,Xe,st){var Qe=document.createElement("div");Qe.className="ggb_preview",Qe.style.position="absolute",Qe.style.zIndex="90",Qe.style.width=Ze-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 ht="lightgrey";Xe!==void 0&&(Xe==="none"?ht="transparent":ht=Xe),Qe.style.border="1px solid "+ht;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,_e,Re;if(!st){qe=document.createElement("img"),qe.style.position="absolute",qe.style.zIndex="1001",qe.style.opacity=1,at.style.opacity=.3,_e=360,_e>Ze/4*3&&(_e=Ze/4*3),Re=_e/5.8,qe.setAttribute("src",he),qe.setAttribute("width",_e),qe.setAttribute("height",Re);var ne=(Ze-_e)/2,fe=(Ye-Re)/2;qe.style.left=ne+"px",qe.style.top=fe+"px",Qe.appendChild(qe)}}return Qe.appendChild(at),Qe},it=function(Ze){return Ze=Ze.toLowerCase(),Ze==="html5"||Ze==="screenshot"?Ze:"html5"},Le=["web","webSimple","web3d","tablet","tablet3d","phone"],Ue=function(Ze,Ye){if(ie=Ze,Ye){tt(ie,!0);return}var Xe=!Ot;if(Xe){var st=Ae(ie);!isNaN(st)&&st<4.4&&(Xe=!1)}var Qe,ht;window.location.protocol.substr(0,4)==="http"?Qe=window.location.protocol:Qe="http:";var at=ie.indexOf("//");at>0?ht=ie:at===0?ht=Qe+ie:ht="https://www.geogebra.org/apps/5.2.814.0/";for(var qe in Le)if(ie.slice(Le[qe].length*-1)===Le[qe]||ie.slice((Le[qe].length+1)*-1)===Le[qe]+"/"){tt(ht,!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&&!je(Te.showToolBar)&&!je(Te.showMenuBar)&&!je(Te.showAlgebraInput)&&!je(Te.enableRightClick)&&(!Te.appName||Te.appName=="classic")?ht+="webSimple/":ht+="web3d/",tt(ht,!1)},tt=function(Ze,Ye){if(Ze.requirejs){de=Ze;return}Ze.slice(-1)!=="/"&&(Ze+="/"),de=Ze,Ye===null&&(Ye=Ze.indexOf("http")===-1),x=Ye,se="web.nocache.js",ue=!1;var Xe=de.split("/");Xe.length>1&&(!Ye&&Xe[Xe.length-2]==="webSimple"?(se="webSimple.nocache.js",ue=!0):Le.indexOf(Xe[Xe.length-2])>=0&&(se=Xe[Xe.length-2]+".nocache.js")),Xe=Ze.split("/"),ie=Xe[Xe.length-3],ie.substr(0,4)==="test"?ie=ie.substr(4,1)+"."+ie.substr(5,1):(ie.substr(0,3)==="war"||ie.substr(0,4)==="beta")&&(ie="5.0");var st=parseFloat(ie);st!==NaN&&st<5&&Ze.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+st+" is deprecated. Using version latest instead."),Ue("5.0",Ye))},nt=function(Ze,Ye){window.console&&window.console.log&&(!Ye||typeof Ye.showLogging=="undefined"||Ye.showLogging&&Ye.showLogging!=="false")&&console.log(Ze)};Te.material_id!==void 0?De(et):et();function et(){var Ze=Yt;z!==null?Ze=z:parseFloat(Ze)<5&&(Ze="5.0"),Ue(Ze,!1),E!==null&&tt(E,x),ye=!0}return wn},GGBAppletUtils=function(){"use strict";function wn(){return window.GGBT_wsf_edit!==void 0}function Yt(ye,z){z!=1?(ye.style.transformOrigin="0% 0% 0px",ye.style.webkitTransformOrigin="0% 0% 0px",ye.style.transform="scale("+z+","+z+")",ye.style.webkitTransform="scale("+z+","+z+")",ye.style.maxWidth="initial",ye.querySelector(".ggb_preview")!==null&&(ye.querySelector(".ggb_preview").style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ye.style.transform="none",ye.style.webkitTransform="none")}function Te(ye,z,E,re,oe,ee){var de=null;if(ee!=null&&ee!="")for(var x=ye.parentNode;x!=null;)if((" "+x.className+" ").indexOf(" "+ee+" ")>-1){de=x;break}else x=x.parentNode;var ae=0,ie=0,se=0,ue=0,pe=0,he=0,ge=0;if(de)ae=de.offsetWidth,ie=Math.max(re?de.offsetWidth:0,de.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ae=Math.min(window.innerWidth,document.documentElement.clientWidth),ie=Math.min(window.innerHeight,document.documentElement.clientHeight),se=ae):(ae=window.innerWidth,ie=window.innerHeight,se=window.innerWidth),ye){var me=ye.getBoundingClientRect();me.left>0&&me.left<=ae&&(oe===void 0||!oe)&&(document.dir==="rtl"?(pe=ae-me.width-me.left,he=se<=480?10:30):(he=me.left,pe=se<=480?10:30),ue=he+pe)}if(ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var xe=ye.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ue=40,ge=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ue=0,ge=40)}}return ye&&((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)&&(ie-=ge)),{width:ae,height:ie}}function te(ye,z,E,re,oe){if(ye.isScreenshoGenerator)return 1;var ee=re!==void 0&&re,de=ye.noScaleMargin!=null&&ye.noScaleMargin,x=function(xe){return xe&&xe!=="false"},ae=x(ye.autoHeight),ie=Te(z,ye.width,E,ae,ee&&window.GGBT_wsf_view||de,oe),se=parseInt(ie.width),ue=ye.width,pe=ye.height;if(ue===void 0){var he=z.querySelector(".appletParameters");he&&(ue=he.offsetWidth,pe=he.offsetHeight)}var ge=se/ue,me=ee?1:ie.height/pe;return E!==void 0&&!E&&(ge=Math.min(1,ge),me=Math.min(1,me)),Math.min(ge,me)}function Ot(ye,z,E){var re=1,oe,ee=!1;if(ye.hasOwnProperty("allowUpscale")&&(ee=ye.allowUpscale),ye.hasOwnProperty("scale")&&(re=parseFloat(ye.scale),(isNaN(re)||re===null||re===0)&&(re=1),re>1&&(ee=!0)),z&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ee=!0),!(ye.hasOwnProperty("disableAutoScale")&&ye.disableAutoScale))oe=te(ye,z,ee,E,ye.scaleContainerClass);else return re;return ee&&(!ye.hasOwnProperty("scale")||re===1)?oe:Math.min(re,oe)}function y(ye){var z=Math.min(window.innerWidth,document.documentElement.clientWidth),E=Math.min(window.innerHeight,document.documentElement.clientHeight),re=ye.getBoundingClientRect(),oe=(z-re.width)/2,ee=(E-re.height)/2;ee<0&&(ee=0),ye.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(oe<40?ye.style.left="40px":ye.style.left=oe+"px",ye.style.top=ee+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee<40?ye.style.top="40px":ye.style.top=ee+"px",ye.style.left=oe+"px")}function Pe(ye,z){var E=ye.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(ye)}if(E.parentElement&&/fullscreen/.test(E.parentElement.className))return;var re=Ot(z,ye);wn()&&E.setAttribute("data-param-scale",re);for(var oe=null,ee=0;ee<ye.childNodes.length;ee++)if(ye.childNodes[ee].className!==void 0&&ye.childNodes[ee].className.match(/^applet_scaler/)){oe=ye.childNodes[ee];break}if(oe!==null&&oe.querySelector(".noscale")!==null)return;var de=z.id!==void 0?z.id:"ggbApplet",x=window[de];(x==null||!x.recalculateEnvironments)&&oe!==null&&!oe.className.match(/fullscreen/)&&(oe.parentNode.style.transform="",!isNaN(re)&&re!==1?(oe.parentNode.style.width=z.width*re+"px",oe.parentNode.style.height=z.height*re+"px",Yt(oe,re)):(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(ye),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(E).parents(".content-added-content"))}}return{responsiveResize:Pe,isFlexibleWorksheetEditor:wn,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 wn=n.location.search;return wn.indexOf(J)!=-1||wn.indexOf(K)!=-1}function q(wn,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(wn){var Yt=s[L].bindings;s[L].bindings=function(){for(var Te=Yt?Yt():{},te=wn[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 wn=o.createElement(Q);if(wn.id=L,wn.style.cssText=R+S,wn.tabIndex=-1,o.body.appendChild(wn),t=wn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Yt=document.compatMode==U?V:W;t.write(Yt+X),t.close()}}}function w(wn){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 Pe(){if(!y){if(!Ot())return;y=!0,te(),o.removeEventListener&&o.removeEventListener(Z,Pe,!1),ye&&clearInterval(ye)}}o.addEventListener&&o.addEventListener(Z,Pe,!1);var ye=setInterval(function(){Pe()},$)}function Te(te){var Ot=u(),y=Ot.body,Pe=Ot.createElement(_);Pe.language=ab,Pe.crossOrigin=W,Pe.src=te,webModule.__errFn&&(Pe.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),y.appendChild(Pe)}Yt(function(){Te(wn)})}webModule.__startLoadingFragment=function(wn){return C(wn)},webModule.__installRunAsyncCode=function(wn){var Yt=u(),Te=Yt.body,te=Yt.createElement(_);te.language=ab,te.text=wn,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(wn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(wn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(wn){var Yt=c[wn];return Yt==null?null:Yt},r=d,webModule.__errFn=e}function B(){function wn(ye){var z=ye.lastIndexOf(rb);z==-1&&(z=ye.length);var E=ye.indexOf(sb);E==-1&&(E=ye.length);var re=ye.lastIndexOf(tb,Math.min(E,z));return re>=O?ye.substring(O,re+P):W}function Yt(ye){if(!ye.match(/^\w+:\/\//)){var z=o.createElement(ub);z.src=ye+vb,ye=wn(z.src)}return ye}function Te(){var ye=__gwt_getMetaProperty(wb);return ye!=null?ye:W}function te(){for(var ye=o.getElementsByTagName(_),z=O;z<ye.length;++z)if(ye[z].src.indexOf(xb)!=-1)return wn(ye[z].src);return W}function Ot(){var ye=o.getElementsByTagName(yb);return ye.length>O?ye[ye.length-P].href:W}function y(){var ye=o.location;return ye.href==ye.protocol+zb+ye.host+ye.pathname+ye.search+ye.hash}var Pe=Te();return Pe==W&&(Pe=te()),Pe==W&&(Pe=Ot()),Pe==W&&y()&&(Pe=wn(o.location.href)),Pe=Yt(Pe),Pe}function C(wn){return wn.match(/^\//)||wn.match(/^[a-zA-Z]+:\/\//)?wn:webModule.__moduleBase+wn}function D(){var wn=[],Yt=O,Te=[],te=[];function Ot(ye){var z=te[ye](),E=Te[ye];if(z in E)return z;var re=[];for(var oe in E)re[E[oe]]=oe;throw r&&r(ye,re,z),null}if(__gwt_isKnownPropertyValue=function(ye,z){return z in Te[ye]},webModule.__getPropMap=function(){var ye={};for(var z in Te)Te.hasOwnProperty(z)&&(ye[z]=Ot(z));return ye},webModule.__computePropValue=Ot,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var y;try{y=Cb;var Pe=y.indexOf(Db);Pe!=-1&&(Yt=parseInt(y.substring(Pe+P),$),y=y.substring(O,Pe))}catch(ye){}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})()},28735:function(wn,Yt,Te){"use strict";Te.d(Yt,{Ax:function(){return Pe},Ds:function(){return ye},KI:function(){return E},SI:function(){return y},f1:function(){return Ot}});var te=Te(74128);function Ot(re){let oe=!0;if(re.length>0){for(let ee=0;ee<re.length;ee++)if(re[ee].compile_success==0||!re[ee].compile_success){oe=!1;break}}else oe=!1;return oe}function y(re,oe=""){let ee=[];for(let de=0;de<re.length;de++){let x=re[de],ae=oe?`${oe}/${x.name}`:`${x.name}`;ee.push({title:x.name,type:x.type,isLeaf:x.type!=="tree",key:ae})}return ee}function Pe(re,oe,ee){for(let de=0;de<re.length;de++){let x=re[de];if(x.key===oe){x.children=ee;break}x.children&&Pe(x.children,oe,ee)}return re}function ye(re,oe,ee){let de;return function(){let x=this,ae=arguments,ie=function(){de=null,ee||re.apply(x,ae)},se=ee&&!de;clearTimeout(de),de=setTimeout(ie,oe),se&&re.apply(x,ae)}}const z=!0,E=te.Z.API_SERVER},16750:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return de}});var te=Te(59301),Ot={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},y=Te(92310),Pe=Te.n(y),ye=Te(29787),z=Te(2859),E=Te(38147),re=Te(65862),oe=(x,ae,ie)=>new Promise((se,ue)=>{var pe=me=>{try{ge(ie.next(me))}catch(xe){ue(xe)}},he=me=>{try{ge(ie.throw(me))}catch(xe){ue(xe)}},ge=me=>me.done?se(me.value):Promise.resolve(me.value).then(pe,he);ge((ie=ie.apply(x,ae)).next())}),de=({data:x,className:ae,fullWidth:ie,style:se={},onClose:ue,onOk:pe,showFullTools:he,noAssociationId:ge})=>{const me=(0,te.useRef)(null),xe=(0,te.useRef)(null),Ae=(0,te.useRef)(null),Ne=(0,te.useRef)(null),[Be,De]=(0,te.useState)(!1),[we,Ce]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>(Ae.current||(Ae.current=document.createElement("style"),document.head.appendChild(Ae.current)),x!=null&&x.visible?(document.body.setAttribute("data-custom","y-hidden"),Ae.current.innerHTML=" html { overflow-y: hidden; }",x!=null&&x.src&&Oe()):(document.body.removeAttribute("data-custom"),Ae.current&&(document.head.removeChild(Ae.current),Ae.current=null)),()=>{document.body.removeAttribute("data-custom"),Ae.current&&(document.head.removeChild(Ae.current),Ae.current=null)}),[x==null?void 0:x.visible]);const Oe=()=>oe(void 0,null,function*(){De(!0),Ce("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ee=yield(0,re.ZJ)(x==null?void 0:x.src);me.current.src="",me.current.src=Ee,me.current.onload=function(){ke()},De(!1),Ce("")}),je=Ee=>oe(void 0,null,function*(){De(!0),Ce("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ge=yield(0,E.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:x.title,file:Ee.dataUrl}});Ge!=null&&Ge.id&&!ge?(yield(0,E.ZP)(`/api/attachments/${x.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ge==null?void 0:Ge.id,settings:JSON.stringify(Ee.state)}})).status===0&&pe():Ge!=null&&Ge.id&&pe(Ge),De(!1),Ce("")}),Fe=()=>{const Ee=document.querySelector('a[href="https://markerjs.com/"]');Ee&&Ee.parentNode&&(Ee.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Ke=>{const Ve=document.querySelector(Ke.name);Ve&&Ve.setAttribute("title",Ke.title)})},ke=()=>{xe.current=new z.hP(me.current),xe.current.targetRoot=Ne.current,xe.current.addEventListener("render",je),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),Fe()},300)};return te.createElement(te.Fragment,null,(x==null?void 0:x.visible)&&te.createElement(ye.Z,{spinning:Be,tip:we,style:{position:"absolute",width:"100vw"}},te.createElement("div",{ref:Ne,className:Pe()(Ot.imageDimensions,ae,ie?Ot.fullWidth:""),style:se},te.createElement("img",{className:Ot.img,ref:me}))))}},99298:function(wn,Yt,Te){"use strict";var te=Te(59301),Ot=Te(77019),y=Te(5269),Pe=Te(31691),ye=Te(7939),z=Te(95097),E=Te(96408),re=Te(48136),oe=Te(59301);const ee=(0,te.forwardRef)(({callback:de,showSaveButton:x,value:ae=""},ie)=>{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+" ")},ge=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:oe.createElement(Ot.Z,{className:E.Z.lists,gutter:[10,10]},ue.map((xe,Ae)=>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((Ne,Be)=>oe.createElement("div",{key:Be},oe.createElement("h1",null,Ne.name),oe.createElement(Ot.Z,{gutter:[10,10]},Ne.data.map((De,we)=>oe.createElement(y.Z,{key:we,onClick:()=>he(De),className:E.Z.diamond},oe.createElement(z.Z,{value:"`$$"+De.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:oe.createElement(Ot.Z,{className:E.Z.lists,gutter:[10,10]},pe.map((xe,Ae)=>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((Ne,Be)=>oe.createElement("div",{key:Be},Ne.name&&oe.createElement("h1",null,Ne.name),oe.createElement(Ot.Z,{gutter:[10,10]},Ne.data.map((De,we)=>oe.createElement(y.Z,{key:we,onClick:()=>he(De),className:E.Z.diamond},oe.createElement(z.Z,{value:"`$$"+De.value+"$$`"}))))))))))}],me=()=>{var xe=document.createElement("div");xe.innerHTML=se.current.getValue();var Ae=xe.innerText;return de&&de(Ae),Ae};return(0,te.useImperativeHandle)(ie,()=>({getData:me})),oe.createElement("div",{className:E.Z.mathWrap},oe.createElement(Pe.default,{defaultActiveKey:"1",items:ge}),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(ye.ZP,{size:"large",onClick:me,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Yt.Z=ee},2524:function(wn,Yt,Te){"use strict";var te=Te(59301),Ot=Te(93314),y=Te(7939),Pe=Object.defineProperty,ye=Object.defineProperties,z=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ee=(ie,se,ue)=>se in ie?Pe(ie,se,{enumerable:!0,configurable:!0,writable:!0,value:ue}):ie[se]=ue,de=(ie,se)=>{for(var ue in se||(se={}))re.call(se,ue)&&ee(ie,ue,se[ue]);if(E)for(var ue of E(se))oe.call(se,ue)&&ee(ie,ue,se[ue]);return ie},x=(ie,se)=>ye(ie,z(se));const ae=({img:ie,buttonProps:se={},styles:ue={},customText:pe,ButtonText:he,ButtonClick:ge,Buttonclass:me,ButtonTwo:xe,imgStyles:Ae,loading:Ne=!1,className:Be=""})=>te.createElement("section",{className:`tc animated fadeIn ${Be}`,style:de({color:"#999",margin:"100px auto",visibility:Ne?"hidden":"visible"},ue)},te.createElement("img",{src:ie||Ot,style:x(de({},Ae),{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,de({className:me,onClick:ge},se),he),xe&&xe);Yt.Z=ae},52918:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return me}});var te=Te(59301),Ot={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},y=Te(7939),Pe=Te(70557),ye=Te(50258),z=Te(25399),E=Te(65862),re=Te(87513),oe=Te(2524),ee=Te(74128),de=Te(7310),x=Te(59301),ae=Object.defineProperty,ie=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,pe=(xe,Ae,Ne)=>Ae in xe?ae(xe,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):xe[Ae]=Ne,he=(xe,Ae)=>{for(var Ne in Ae||(Ae={}))se.call(Ae,Ne)&&pe(xe,Ne,Ae[Ne]);if(ie)for(var Ne of ie(Ae))ue.call(Ae,Ne)&&pe(xe,Ne,Ae[Ne]);return xe},ge=(xe,Ae,Ne)=>new Promise((Be,De)=>{var we=je=>{try{Oe(Ne.next(je))}catch(Fe){De(Fe)}},Ce=je=>{try{Oe(Ne.throw(je))}catch(Fe){De(Fe)}},Oe=je=>je.done?Be(je.value):Promise.resolve(je.value).then(we,Ce);Oe((Ne=Ne.apply(xe,Ae)).next())}),me=({editOffice:xe="view",data:Ae,issaver:Ne,onSaver:Be,theme:De,type:we,filename:Ce,monacoEditor:Oe,className:je,style:Fe,close:ke,onClose:Ee,hasMask:Ge,disabledDownload:Ke,onImgDimensions:Ve,showNodata:it,recordInfo:Le})=>{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"),[nt,et]=(0,te.useState)(""),[Ze,Ye]=(0,te.useState)(),Xe=window.ENV==="build"?"/react/build":"",st=location.host.startsWith("localhost")?ee.Z.PROXY_SERVER:ee.Z.API_SERVER,ht=10*(1024*1024),at=(0,te.useRef)();Ae!=null&&Ae.startsWith("/api")&&we!=="txt"&&(Ae=ee.Z.API_SERVER+Ae);const qe=Me=>Me.substring(Me.lastIndexOf("/")+1).split(".").pop();Ce&&Oe&&(Oe.filename=Ce),(0,te.useEffect)(()=>{var Me,He;const be=(He=(Me=document.cookie)==null?void 0:Me.replace(/\s/g,""))==null?void 0:He.split(";");be==null||be.map(ve=>{let Ie=ve.split("=");Ie[0]==="_educoder_session"&&et(Ie[1])})},[]),(0,te.useEffect)(()=>{we==="office"&&(Ae.indexOf("bigfilescdn.")>-1||Ae.indexOf("bigfiles1")>-1?Ye({url:Ae,fileType:qe(Ae),model:Ae.indexOf("model=edit")?"edit":"view"}):Re())},[we,Ae]);function _e(Me){return ge(this,null,function*(){Me.data.type==="pdfdata"&&(Be(Me.data.data),window.removeEventListener("message",_e,!1)),console.log("mess---:",Me.data)})}const Re=()=>ge(void 0,null,function*(){console.log("data:",Ae);let Me=Ae;Ae.startsWith("http")||(Me=location.origin+Me);let He=new URL(Me).pathname.split("/").pop();const be=yield(0,re.gJ)({attachment_id:He});be.url=st+be.url,Ye(be)}),ne=()=>{if(Ae.startsWith("http")||Ae.startsWith("blob:")){fe();return}(0,E.Sv)(Ce||"educoder",Ae,Ce)},fe=()=>{Le&&(0,de.fc)({id:Le==null?void 0:Le.id,watch_type:1,course_id:Le==null?void 0:Le.course_id}),(0,E.Nd)(Ce||"educoder",decodeURIComponent(Ae))};return x.createElement("div",{style:he({},Fe||{}),className:`${Ge&&Ot.bgBlack} ${we?Ot.wrp:"hide"}`},ke&&x.createElement("div",{className:Ot.close,ref:at},!!Ve&&x.createElement(z.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>at.current},x.createElement("span",{onClick:()=>{Ee(),Ve()}},x.createElement("i",{className:"icon-yulanpizhu"}))),!Ke&&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"}))),Ne&&x.createElement(z.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>at.current},x.createElement("span",{className:"",onClick:()=>{const Me=document.getElementById("pdfiframe");window.addEventListener("message",_e,!1),setTimeout(()=>{Me.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:()=>{Ee()}},x.createElement("i",{className:"icon-guanbi1"})))),x.createElement("div",{className:`${Ot[je]} ${je} ${Ot.monaco} ${we==="txt"?"show":"hide"}`},we==="txt"&&x.createElement(x.Fragment,null,x.createElement(ye.ZP,he({},Oe)))),we==="audio"&&x.createElement("audio",{src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ae}`,autoPlay:!0}),we==="video"&&x.createElement(x.Fragment,null,(Ae==null?void 0:Ae.indexOf("http"))>-1?x.createElement("video",{controls:!0,src:`${Ae}`,autoPlay:!0}):x.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ae}`,autoPlay:!0})),we==="office"&&Ze&&x.createElement("iframe",{src:`${Xe}/office.html?key=${Ze.key}&url=${btoa(Ze.url)}&callbackUrl=${st+(Ze.callbackUrl||"")}&fileType=${Ze.fileType}&title=${Ze.title||""}&model=${xe}&officeServer=${ee.Z.ONLYOFFICE}&disabledDownload=${!!Ke}`}),we==="html"&&x.createElement("iframe",{src:Ae+"&disposition=inline"}),we==="pdf"&&x.createElement("iframe",{id:"pdfiframe",src:`${Xe}/js/pdf/index.html?filename=${Ce||"educoder.pdf"}&url=${encodeURIComponent(Ae)}&disabledDownload=${!!Ke}&model=${xe}`}),we==="image"&&x.createElement("img",{src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ae}`}),(we==="other"||we==="download")&&x.createElement(x.Fragment,null,it?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:Ke},"\u4E0B\u8F7D")}):x.createElement(y.ZP,{type:"primary",size:"middle",onClick:ne,disabled:Ke},x.createElement(Pe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),we==="flowChart"&&x.createElement("div",{className:"embed"},x.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Ae||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},95097:function(wn,Yt,Te){"use strict";Te.d(Yt,{z:function(){return Oe},Z:function(){return je}});var te=Te(59301),Ot=Te(48850),y=Te(49142),Pe=Te(64018),ye=Te(17030),z=Te(74128),E=Te(65862),re=Te(15342),oe=Te(44104),ee=Te(7939),de=Te(1012),x=Te(52918),ae=Te(59301),se=({html:Fe})=>{const ke=(0,te.useRef)(null),Ee=(0,te.useRef)(null),Ge=`.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 Ke=ke.current.attachShadow({mode:"open"});Ee.current=document.createElement("div"),Ee.current.className="markdown-body",Ee.current.innerHTML=Fe,Ke.appendChild(Ee.current);const Ve=document.createElement("style");return Ve.textContent=Ge,Ke.appendChild(Ve),()=>{Ke.innerHTML=""}},[]),(0,te.useEffect)(()=>{Ee.current&&(Ee.current.innerHTML=Fe)},[Fe]),ae.createElement("div",{ref:ke})};function ue(Fe){const ke=["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"],Ee=new RegExp(`\\b(${ke.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Fe.replace(Ee,"").trim()}var pe={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},he=Object.defineProperty,ge=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Ae=(Fe,ke,Ee)=>ke in Fe?he(Fe,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):Fe[ke]=Ee,Ne=(Fe,ke)=>{for(var Ee in ke||(ke={}))me.call(ke,Ee)&&Ae(Fe,Ee,ke[Ee]);if(ge)for(var Ee of ge(ke))xe.call(ke,Ee)&&Ae(Fe,Ee,ke[Ee]);return Fe};const Be="@\u2581\u2581@",De="@\u2581@",we=/<pre[^>]*>/g;function Ce(Fe){let ke=document.createElement("div");return ke.innerHTML=Fe,ke.childNodes.length===0?"":ke.childNodes[0].nodeValue}const Oe=(Fe,ke)=>{Fe=Fe||"";const Ee=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ge=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ke=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ve=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ke?Fe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Ee,(it,Le,Ue,tt,nt,et,Ze)=>{const Ye=Le||tt||et,Xe=Ue||nt||Ze||"?";return z.Z.API_SERVER+"/api/attachments/"+Ye+Xe+"&t="+(0,E.Jn)(Ye,Date.now())+(it.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Fe=Fe.replace(Ve,(it,Le,Ue,tt,nt,et,Ze)=>{const Ye=Le||tt||et,Xe=Ue||nt||Ze||"?";return z.Z.API_SERVER+"/attachments/download/"+Ye+Xe+"&t="+(0,E.Jn)(Ye,Date.now())+(it.indexOf(")")>-1?")":"&")}).replace(Ee,(it,Le,Ue,tt,nt,et,Ze)=>{const Ye=Le||tt||et,Xe=Ue||nt||Ze||"?";return z.Z.API_SERVER+"/api/attachments/"+Ye+Xe+"&t="+(0,E.Jn)(Ye,Date.now())+(it.indexOf(")")>-1?")":"&")}).replace(Ge,(it,Le,Ue,tt,nt)=>{const et=Le||tt,Ze=Ue||nt||"";return'"'+z.Z.API_SERVER+"/api/attachments/"+et+Ze+et+Ze+"&t="+(0,E.Jn)(et,Date.now())}).replace(Ke,(it,Le,Ue,tt,nt)=>{const et=Le||tt,Ze=Ue||nt||"";return"("+z.Z.API_SERVER+"/files/uploads/"+et+Ze+et+Ze+"&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,`
`),Fe)};var je=({value:Fe="",edit:ke=!1,className:Ee,showTextOnly:Ge,showLines:Ke,style:Ve={},stylesPrev:it={},highlightKeywords:Le,showProgramFill:Ue,isProgramFill:tt,disabledFill:nt=!1,programFillValue:et,openEditor:Ze=()=>{},onFillChange:Ye=Qe=>{},onFillBlur:Xe=()=>{},onFillFocus:st=()=>{}})=>{let Qe=ue(String(Fe||""));const ht=(0,te.useRef)(),at=(0,te.useRef)(),[qe,_e]=(0,te.useState)(""),[Re,ne]=(0,te.useState)("office"),[fe,Me]=(0,te.useState)([]),He=(0,te.useRef)("a"+(0,de.Z)()),be={},ve=Tt=>/<style[\s\S]*?>/i.test(Tt||""),Ie=(Tt,kt,Dt)=>{const gt=document.createElement(Tt===De?"input":"textarea");gt.style.width="100%",gt.style.height=Tt===De?"40px":"151px",gt.rows=5,gt.spellcheck=!1,gt.name="edu-program-fill",gt.placeholder="\u8BF7\u8F93\u5165",gt.dataset.id=kt;const It=Object.keys(be).length;return be[It]=gt,`<span class="edu-program-fill-wrap ${Tt===De?"":"show"}" style="width:${Tt===De?"600px":"100%"}" title=${Dt||""}><span>${gt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function $e(Tt){return Tt=Tt.replace(/!\[.*?\]\(.*?\)/g,""),Tt=Tt.replace(/\[.*?\]\(.*?\)/g,""),Tt=Tt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Tt=Tt.replace(/<embed.*?>/g,""),Tt=Tt.replace(/<img.*?>/g,""),Tt=Tt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Tt=Tt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Tt=Tt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Tt=Tt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Tt}const We=Tt=>!Ge&&ve(Qe)?Tt:Tt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(kt,Dt){let gt=Dt.replace(/(\n|\r)/g,"").split("}"),It=[];return gt.map(Vt=>{Vt!=""&&It.push(`.${He.current} ${Vt}`)}),`<style>${It.join("}")}</style>`}),Je=(0,te.useMemo)(()=>{try{const gt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,It=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Vt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,rn=/\(\/attachments\/download\//g;Qe=Qe.replace(rn,"("+z.Z.API_SERVER+"/attachments/download/").replace(gt,"("+z.Z.API_SERVER+"/api/attachments/").replace(It,'"'+z.Z.API_SERVER+"/api/attachments/").replace(Vt,'"'+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,`
`),ht.current.style.display="none"}catch(gt){}if(Ue){let gt=-1;return Qe=Qe.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(It,Vt,rn){var wt;return++gt,Ie(It,gt,(wt=et==null?void 0:et[gt])==null?void 0:wt.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${We(Qe||"")}</pre>`}let Tt=We(Qe);Tt=(0,y.ZP)(Tt);const kt=(0,y.ez)();Qe.match(/\[TOC\]/)&&(Tt=Tt.replace("<p>[TOC]</p>",(0,y.Qv)()),(0,y.Iy)()),Tt=Tt.replace(/(__special_katext_id_\d+__)/g,(gt,It)=>{const{type:Vt,expression:rn}=kt[It];return(0,re.renderToString)(Ce(rn)||"",{displayMode:Vt==="block",throwOnError:!1,output:"html"})}),Tt=Tt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,y.AL)();const Dt=document.createElement("div");if(Dt.innerHTML=Tt,Ge)return Dt.innerText;if(Le){const gt=Le.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return ut(Dt,gt),Dt.innerHTML}return setTimeout(()=>yt(),500),Dt.innerHTML},[Qe,Le]);(0,te.useEffect)(()=>{lt.current&&lt.current.querySelectorAll(["input","textarea"]).forEach(kt=>{kt.oninput=ct,kt.onblur=ot,kt.onfocus=ft})},[fe]),(0,te.useEffect)(()=>{var Tt,kt,Dt,gt,It;if(et!=null&&et.length)try{const Vt=lt.current.querySelectorAll(".edu-program-fill-score"),rn=lt.current.querySelectorAll('[name="edu-program-fill"]');for(const[wt,Ct]of rn.entries())Ct.value=((Tt=et==null?void 0:et[wt])==null?void 0:Tt.value)||"",((kt=et==null?void 0:et[wt])==null?void 0:kt.type)==="warning"?Ct.className="program-fill-warning":((Dt=et==null?void 0:et[wt])==null?void 0:Dt.type)==="success"?Ct.className="program-fill-success":Ct.className="";for(const[wt,Ct]of Vt.entries())Ct.innerHTML=(gt=et==null?void 0:et[wt])!=null&&gt.score?`${(It=et==null?void 0:et[wt])==null?void 0:It.score}\u5206`:"";Me(et)}catch(Vt){console.log(Vt,"error")}},[et]);const ct=Tt=>{fe[Tt.target.dataset.id]=fe[Tt.target.dataset.id]||{},fe[Tt.target.dataset.id].value=Tt.target.value,Me([...fe]),Ye(fe,Tt.target.dataset.id)},ot=Tt=>{fe[Tt.target.dataset.id]=fe[Tt.target.dataset.id]||{},fe[Tt.target.dataset.id].value=Tt.target.value,Me([...fe]),Xe(fe,Tt.target.dataset.id)},ft=Tt=>{fe[Tt.target.dataset.id]=fe[Tt.target.dataset.id]||{},fe[Tt.target.dataset.id].value=Tt.target.value,Me([...fe]),st(fe,Tt.target.dataset.id)};function ut(Tt,kt){return Tt.childNodes.forEach(Dt=>{var gt;if(Dt.childNodes.length>0)ut(Dt,kt);else if(Dt.nodeName!=="IMG")if(Dt.innerHTML)Dt.innerHTML=(gt=Dt.innerHTML)==null?void 0:gt.replace(new RegExp(kt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const It=document.createElement("span");It.innerHTML=Dt.textContent.replace(new RegExp(kt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Dt.replaceWith(It)}})}const lt=(0,te.useRef)();y.jb.WebkitLineClamp=Ke,Ke&&(Ve=Ne(Ne({},Ve),y.jb));function At(Tt){let kt=Tt.target;if(kt.tagName.toUpperCase()==="A"){let Dt=kt.getAttribute("href");if(Dt.indexOf("office")>-1)Tt.preventDefault(),_e(Dt),ne("office");else if(Dt.indexOf("application/pdf")>-1)Tt.preventDefault(),_e(Dt),ne("pdf");else if(Dt.indexOf("text/html")>-1)Tt.preventDefault(),_e(Dt),ne("html");else if(Dt.startsWith("#")){Tt.preventDefault();let gt=document.getElementById(Dt.replace("#",""));gt&&gt.scrollIntoView(!0)}}}const yt=()=>{var Tt;const kt=(Tt=lt.current)==null?void 0:Tt.querySelectorAll("video");kt==null||kt.forEach(Dt=>{if(Dt.oncontextmenu=()=>!1,Dt.src.indexOf(".m3u8")>-1&&!Dt.canPlayType("application/vnd.apple.mpegurl")){if(ye.ZP.isSupported()){var gt=new ye.ZP;gt.loadSource(Dt.src),gt.attachMedia(Dt)}}})};(0,te.useEffect)(()=>{if(lt.current&&Je&&Je.match(we)&&window.PR.prettyPrint(),lt.current)return lt.current.addEventListener("click",At),()=>{var Tt;(Tt=lt.current)==null||Tt.removeEventListener("click",At),(0,y.AL)(),(0,y.Iy)()}},[Je,lt.current,At]);const Rt=Tt=>{Tt.target.nodeName==="IMG"&&Tt.target.className.indexOf("draw-flowchart")>-1?(ht.current.style.zIndex=1,ht.current.style.display="flex",ht.current.style.width=Tt.target.clientWidth+"px",ht.current.style.height=Tt.target.clientHeight+"px",ht.current.style.top=Tt.target.offsetTop+"px",ht.current.style.left=Tt.target.offsetLeft+"px",Tt.target.id&&(at.current=Tt.target.id)):ht.current.style.display="none"},Pt=()=>{ht.current.style.display="none"};return(0,te.useEffect)(()=>{var Tt;const kt=Dt=>{Dt.preventDefault(),Dt.clipboardData.setData("text",window.getSelection().toString())};return(Tt=lt.current)==null||Tt.addEventListener("copy",kt),()=>{var Dt;(Dt=lt.current)==null||Dt.removeEventListener("copy",kt)}},[lt.current]),te.createElement("div",{style:{position:"relative"},onMouseLeave:Pt},Ge&&te.createElement("div",{ref:lt,className:`${pe.mdBody} `},Je),!Ge&&!ve(Je)&&te.createElement("div",{ref:lt,style:Ne({},Ve),onMouseOver:Rt,className:`${Ee||""} ${nt?"disabled-fill":""} markdown-body ${pe.mdBody} ${He.current}`,dangerouslySetInnerHTML:{__html:Je}}),!Ge&&ve(Je)&&te.createElement(se,{html:Je}),te.createElement("div",{ref:ht,className:`${pe.button} ${ke?"":pe.previewFlowChart}`},te.createElement(oe.Z,null,te.createElement(ee.ZP,{onClick:()=>{ke?Ze(at.current):(_e(at.current),ne("flowChart"))}},ke?"\u7F16\u8F91":"\u9884\u89C8"))),te.createElement(x.Z,{close:!0,data:qe,type:qe!=null&&qe.length?Re:"",style:Ne({},it),onClose:()=>_e("")}))}},83845:function(wn,Yt,Te){"use strict";Te.d(Yt,{cT:function(){return we},pe:function(){return Ne}});var te=Te(59301),Ot=Te(94968),y=Te(6767),Pe=Te(38147),ye=Te(28209),z=Te.n(ye),E=Te(1012),re=Te(65582),oe=Te(47257),ee=Te.n(oe),de=Object.defineProperty,x=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,pe=(Oe,je,Fe)=>je in Oe?de(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):Oe[je]=Fe,he=(Oe,je)=>{for(var Fe in je||(je={}))se.call(je,Fe)&&pe(Oe,Fe,je[Fe]);if(ie)for(var Fe of ie(je))ue.call(je,Fe)&&pe(Oe,Fe,je[Fe]);return Oe},ge=(Oe,je)=>x(Oe,ae(je)),me=(Oe,je)=>{var Fe={};for(var ke in Oe)se.call(Oe,ke)&&je.indexOf(ke)<0&&(Fe[ke]=Oe[ke]);if(Oe!=null&&ie)for(var ke of ie(Oe))je.indexOf(ke)<0&&ue.call(Oe,ke)&&(Fe[ke]=Oe[ke]);return Fe},xe=(Oe,je,Fe)=>new Promise((ke,Ee)=>{var Ge=it=>{try{Ve(Fe.next(it))}catch(Le){Ee(Le)}},Ke=it=>{try{Ve(Fe.throw(it))}catch(Le){Ee(Le)}},Ve=it=>it.done?ke(it.value):Promise.resolve(it.value).then(Ge,Ke);Ve((Fe=Fe.apply(Oe,je)).next())});const{Dragger:Ae}=Ot.default,Ne=Oe=>{const je="bf3c199c2470cb477d907b1e0917c17b",Fe="5183666c72eec9e4";var ke=z().enc.Utf8.parse(je);let Ee=z().enc.Utf8.parse(Fe);var Ge=z().AES.decrypt(Oe,ke,{iv:Ee,mode:z().mode.CBC});return Ge.toString(z().enc.Utf8)};let Be;const De=Oe=>xe(void 0,[Oe],function*({identifier:je,oldFilename:Fe,newFilename:ke}){var Ee,Ge,Ke,Ve,it,Le;const Ue=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});Ue.data=JSON.parse(Ne(Ue.data));const tt=new OSS({endpoint:(Ee=Ue==null?void 0:Ue.data)==null?void 0:Ee.end_point,region:(Ge=Ue==null?void 0:Ue.data)==null?void 0:Ge.region,accessKeyId:(Ke=Ue==null?void 0:Ue.data)==null?void 0:Ke.access_key_id,accessKeySecret:(Ve=Ue==null?void 0:Ue.data)==null?void 0:Ve.access_key_secret,bucket:(it=Ue==null?void 0:Ue.data)==null?void 0:it.bucket,stsToken:(Le=Ue==null?void 0:Ue.data)==null?void 0:Le.security_token});return new Promise((nt,et)=>{console.log(11111,`${je}/${Fe}`,`${je}/${ke}`,Ue.data),tt.copy(`/${je}/${Fe}`,`/${je}/${ke}`).then(Ze=>{console.log("\u62F7\u8D1D\u6210\u529F",Ze)}).catch(Ze=>{console.log(Ze)})})}),we=(Oe,je,Fe)=>xe(void 0,null,function*(){var ke,Ee,Ge,Ke,Ve,it;je.file_name=Oe.name;const Le=yield(0,Pe.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",Ne(Le.data)),Le.data=JSON.parse(Ne(Le.data));const Ue=Oe.name.split(".");Ue.pop();const tt=je.realFileName?Ue.join(""):(0,E.Z)(),nt=new(ee())({endpoint:(ke=Le==null?void 0:Le.data)==null?void 0:ke.end_point,region:(Ee=Le==null?void 0:Le.data)==null?void 0:Ee.region,accessKeyId:(Ge=Le==null?void 0:Le.data)==null?void 0:Ge.access_key_id,accessKeySecret:(Ke=Le==null?void 0:Le.data)==null?void 0:Ke.access_key_secret,bucket:(Ve=Le==null?void 0:Le.data)==null?void 0:Ve.bucket,stsToken:(it=Le==null?void 0:Le.data)==null?void 0:it.security_token});return new Promise((et,Ze)=>{var Ye;nt.multipartUpload(`${tt}`,new Blob([Oe],{type:Oe.type}),ge(he({timeout:200*1e3,partSize:102400},Fe),{callback:{url:(Ye=Le==null?void 0:Le.data)==null?void 0:Ye.callback_url,host:Le==null?void 0:Le.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Pe.rz)(je)}})).then(function(Xe){var st;Oe.response=(st=Xe.data)==null?void 0:st.data,et(Xe==null?void 0:Xe.data)}).catch(function(Xe){Ze(Xe),console.log("err:",Xe)})})}),Ce=Oe=>{var je=Oe,{user:Fe,cancelUpload:ke}=je,Ee=me(je,["user","cancelUpload"]);const[Ge,Ke]=(0,te.useState)([]);let[Ve,it]=(0,te.useState)();const Le={onRemove:tt=>{Ke([...Ge.filter(nt=>nt.name!==tt.name)]),Ee.onChange(Ge.filter(nt=>nt.name!==tt.name))},disabled:Ee.disabled,multiple:!0,fileList:Ge==null?void 0:Ge.map(tt=>tt.file),customRequest:()=>{},beforeUpload:tt=>xe(void 0,null,function*(){let nt=Ee.maxSize||1073741824;if(Ge.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)>nt?(y.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${nt/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(Ge.push({name:tt.name,file:tt}),Ke([...Ge]),Ee.onChange(Ge),!1)})},Ue=(tt,nt)=>xe(void 0,null,function*(){var et,Ze,Ye,Xe,st,Qe;nt.file_name=tt.name;const ht=tt.name,at=yield(0,Pe.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(at.data=JSON.parse(Ne(at.data)),(at==null?void 0:at.status)!==0){Ge[Ge.findIndex(Re=>Re.name===ht)].status="error",Ge[Ge.findIndex(Re=>Re.name===ht)].file.status="error",Ee.onChange(Ge),y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}Ve=new(ee())({endpoint:(et=at==null?void 0:at.data)==null?void 0:et.end_point,region:(Ze=at==null?void 0:at.data)==null?void 0:Ze.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:(st=at==null?void 0:at.data)==null?void 0:st.bucket,stsToken:(Qe=at==null?void 0:at.data)==null?void 0:Qe.security_token}),console.log(tt,"file"),it(Ve);const qe=tt.name.split(".");qe.pop();const _e=ht.indexOf(".")>-1?nt.realFileName?qe.join("."):(0,E.Z)():ht;return new Promise((Re,ne)=>{var fe;try{Ve.multipartUpload(`${Ee.identifier}/${_e}${ht.indexOf(".")>-1?"."+ht.split(".").pop():""}`,new Blob([tt.file],{type:tt.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Me,He,be)=>{try{console.log("\u8FDB\u5EA6",Me,He,be);const ve=Ge.findIndex(Ie=>Ie.name===ht);Ge[ve].file.percent=Me*100,Ge[ve].tempCheckpoint=He,Ke([...Ge])}catch(ve){}},checkpoint:Ge[Ge.findIndex(Me=>Me.name===ht)].tempCheckpoint,callback:{customValue:{id:ht+""},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,Pe.rz)(nt)}}).then(function(Me){var He,be,ve;const Ie=Ge.findIndex(We=>We.name===ht);let $e="done";if(((He=Me.data)==null?void 0:He.status)===0){tt.response=(be=Me.data)==null?void 0:be.data;const We=Ge.findIndex(Je=>Je.name===ht);Ge[We].status="done",Ge[We].file.status="done"}else y.ZP.warning((ve=Me.data)==null?void 0:ve.message),$e="error";Ge[Ie].status=$e,Ge[Ie].file.status=$e,Ee.onChange(Ge),Re(Me==null?void 0:Me.data)}).catch(function(Me){Ge[Ge.findIndex(He=>He.name===ht)].status="error",Ge[Ge.findIndex(He=>He.name===ht)].file.status="error",y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Ke([...Ge]),Ee.onChange(Ge),ne(Me),console.log("err:",Me)})}catch(Me){}})});return(0,te.useEffect)(()=>{Ge.every(tt=>tt==="done"||tt==="error")&&Ee.onComplete(Ge)},[Ge]),(0,te.useEffect)(()=>{ke&&(Ve==null||Ve.cancel())},[ke]),(0,te.useEffect)(()=>{Ee.uploading&&Ge.map(tt=>xe(void 0,null,function*(){var nt;if((!tt.status||tt.status==="error")&&!ke){tt.status="uploading",tt.file.status="uploading";const et=yield Ue(tt,{login:(nt=Fe==null?void 0:Fe.userInfo)==null?void 0:nt.login,container_type:Ee.container_type,container_id:Ee.container_id,description:Ee.description,realFileName:Ee.realFileName})}}))},[Ee.uploading]),te.createElement(Ae,ge(he({},Le),{height:Ee.height,className:Ee.className}),te.createElement("p",{className:"ant-upload-hint"},Ee.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Yt.ZP=(0,re.connect)(({loading:Oe,globalSetting:je,user:Fe})=>({globalSetting:je,loading:Oe.models.competitions,user:Fe}))(Ce)},85533:function(wn,Yt,Te){"use strict";Te.d(Yt,{h:function(){return xe}});var te=Te(59301),Ot=Te(82326),y=Te(28284),Pe=Te(7939),ye=Te(89780),z=Te.n(ye),E=Te(45559),re=Te(42313),oe=Object.defineProperty,ee=Object.defineProperties,de=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,se=(Ae,Ne,Be)=>Ne in Ae?oe(Ae,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ae[Ne]=Be,ue=(Ae,Ne)=>{for(var Be in Ne||(Ne={}))ae.call(Ne,Be)&&se(Ae,Be,Ne[Be]);if(x)for(var Be of x(Ne))ie.call(Ne,Be)&&se(Ae,Be,Ne[Be]);return Ae},pe=(Ae,Ne)=>ee(Ae,de(Ne));const he=Ot.default.Option,ge={labelCol:{span:4},wrapperCol:{span:20}},me={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:Ae,onCancel:Ne})=>{const[Be,De]=(0,te.useState)("python");function we(Oe){De(me[Oe][1])}function Ce(Oe){Ae(Oe)}return te.createElement(y.default,pe(ue({},ge),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ce,style:{width:500}}),te.createElement(y.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(Ot.default,{getPopupContainer:Oe=>Oe.parentNode,onChange:we},Object.keys(me).map(Oe=>te.createElement(he,{key:Oe,value:Oe},me[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(Pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Pe.ZP,{type:"ghost",onClick:Ne},"\u53D6\u6D88")))};function xe({value:Ae,onChange:Ne,mode:Be,options:De={}}){const we=(0,te.useRef)(),[Ce,Oe]=(0,te.useState)();return(0,te.useEffect)(()=>{if(Ce){let je=function(Fe){const ke=Fe.getValue();Ne&&Ne(ke)};return Ce.on("change",je),()=>{Ce.off("change",je)}}},[Ce,Ne]),(0,te.useEffect)(()=>{Ce&&Ce.setOption("mode",Be)},[Ce,Be]),(0,te.useEffect)(()=>{Ce&&(Ae!==Ce.getValue()||Ae==="")&&setTimeout(()=>{Ce.setValue(Ae||"")},300)},[Ce,Ae]),(0,te.useEffect)(()=>{if(we.current&&!Ce){const je=z().fromTextArea(we.current,ue({mode:Be,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},De));Oe(je)}},[we.current,Ce]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:we}))}},25374:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Ut}});var te=Te(59301),Ot=Te(65582),y=Te(89780),Pe=Te.n(y),ye=Te(76374),z=Te(45559),E=Te(6313),re=Te(25717),oe=Te(99498),ee=Te(25419),de=Te(67549),x=Te(95097),ae=({value:Lt="",className:sn,showTextOnly:un,showLines:Cn,style:Tn={}})=>{const jn=(0,te.useMemo)(()=>"",[Lt]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:jn}}))},ie=Object.defineProperty,se=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(Lt,sn,un)=>sn in Lt?ie(Lt,sn,{enumerable:!0,configurable:!0,writable:!0,value:un}):Lt[sn]=un,xe=(Lt,sn)=>{for(var un in sn||(sn={}))he.call(sn,un)&&me(Lt,un,sn[un]);if(pe)for(var un of pe(sn))ge.call(sn,un)&&me(Lt,un,sn[un]);return Lt},Ae=(Lt,sn)=>se(Lt,ue(sn));let Ne=[{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:Lt,title:sn,icon:un,actionName:Cn,className:Tn="",children:jn}){function hn(){Lt(Cn)}return te.createElement("a",{title:sn,className:Tn,onClick:hn},te.createElement("i",{className:`${un}`}),jn)}var De=({watch:Lt,showNullButton:sn,showNullProgramButton:un,onActionCallback:Cn,fullScreen:Tn,insertTemp:jn,hidetoolBar:hn,extraUse:Mn})=>{const _n=[...Ne,{title:`${Lt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Lt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return te.createElement("ul",{className:"markdown-toolbar-container"},!hn&&_n.map((ur,tr)=>te.createElement("li",{key:tr},ur.actionName?te.createElement(Be,Ae(xe({},ur),{onActionCallback:Cn})):te.createElement("span",{className:"v-line"}))),sn?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:Cn},te.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,un?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:Cn},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:Cn},te.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,jn&&te.createElement("li",null,te.createElement(Be,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${jn}`,onActionCallback:Cn},te.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Mn&&te.createElement("li",null,Mn),te.createElement("li",{className:"btn-full-screen"},te.createElement(Be,{icon:`${Tn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Tn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Cn})))},we=Te(57261),Ce=Te(28284),Oe=Te(37568),je=Te(7939),Fe=Object.defineProperty,ke=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,it=(Lt,sn,un)=>sn in Lt?Fe(Lt,sn,{enumerable:!0,configurable:!0,writable:!0,value:un}):Lt[sn]=un,Le=(Lt,sn)=>{for(var un in sn||(sn={}))Ke.call(sn,un)&&it(Lt,un,sn[un]);if(Ge)for(var un of Ge(sn))Ve.call(sn,un)&&it(Lt,un,sn[un]);return Lt},Ue=(Lt,sn)=>ke(Lt,Ee(sn));const tt={labelCol:{span:4},wrapperCol:{span:20}};var nt=({callback:Lt,onCancel:sn})=>{function un(Cn){Lt(Cn)}return te.createElement(Ce.default,Ue(Le({},tt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:un,style:{width:500}}),te.createElement(Ce.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(Ce.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(je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(je.ZP,{type:"ghost",onClick:sn},"\u53D6\u6D88")))},et=Te(85533),Ze=Te(45053),Ye=Te(62957),Xe=Te(77019),st=Te(16750),Qe=Te(59301),ht=({callback:Lt,onCancel:sn})=>{const un=document.createElement("canvas"),Cn=un.getContext("2d");un.width=1e3,un.height=800,Cn.fillStyle="#ffffff",Cn.fillRect(0,0,un.width,un.height);const Tn=un.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(st.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Tn,visible:!0,title:String(Date.now())},onOk:jn=>{Lt({src:jn.url})},onClose:sn})))},at=Te(36207),qe=Te(5269),_e=Te(6767),Re={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ne=Te(59301),Me=(0,te.forwardRef)(({onCancel:Lt,editImgId:sn,callback:un},Cn)=>{let Tn=(0,te.useRef)(),jn=(0,te.useRef)(),hn=(0,te.useRef)(),Mn=(0,te.useRef)(!1);const _n=(0,te.useRef)(!1);console.log("ref:",Cn);const[ur,tr]=(0,te.useState)(0),[cn,tn]=(0,te.useState)("100vh");return(0,te.useEffect)(()=>{tr(1)},[]),(0,te.useImperativeHandle)(Cn,()=>({setHeight:tn})),ne.createElement("div",{ref:_n,className:"body-overflow-initial"},ne.createElement(at.Z,{width:"100vw",height:cn,footer:null,closable:!0,placement:"bottom",open:!!ur,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Re.drawerWrap}`,onClose:()=>{window.saveDrawData(Hn=>{un({src:`/api/attachments/${Hn}`,id:Hn})})},title:ne.createElement(Xe.Z,{align:"middle"},ne.createElement(qe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ne.createElement(qe.Z,{onClick:()=>{tn(cn==="60px"?"100vh":"60px")}},ne.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ne.createElement(qe.Z,{onClick:()=>{window.saveDrawData(Hn=>{if(Hn===null){_e.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}_e.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),un({src:`/api/attachments/${Hn}`,id:Hn,disabledClose:!0})})}},ne.createElement(je.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ne.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${sn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:jn})))}),He=Te(74128),be=Te(47889),ve=Te(4875);const Ie=be.ZP.Group,$e={margin:"0 8px"};var We=({callback:Lt,onCancel:sn})=>{function un(Cn){Lt(Cn)}return te.createElement(Ce.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:un},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(Ce.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(Ce.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(Ce.default.Item,{name:"align"},te.createElement(Ie,null,te.createElement(be.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(be.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(be.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(be.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),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:sn},"\u53D6\u6D88")))},Je=Te(58755),ct=Te(93510),ot=Te.n(ct),ut=(0,te.forwardRef)(({use3d:Lt,width:sn,height:un,callback:Cn,showSaveButton:Tn},jn)=>{const hn=(0,te.useRef)(),Mn=(0,te.useRef)(),[_n,ur]=(0,te.useState)(!1),tr=(0,te.useRef)({id:hn,appName:"graphing",width:sn||1e3,height:un||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)(()=>{Mn.current=new(ot())(tr.current,!0),window.onload=function(){Mn.current.inject("applet_container")}},[]);const cn=()=>{var tn=window.ggbApplet.getPNGBase64(1,!0,72);return Cn&&Cn(tn),tn};return(0,te.useEffect)(()=>{tr.current.appName=_n?"3D":"graphing",Mn.current.inject("applet_container")},[_n]),(0,te.useEffect)(()=>{ur(Lt)},[Lt]),(0,te.useImperativeHandle)(jn,()=>({getImgData:cn})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:hn}),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:_n,onChange:tn=>ur(tn)})),te.createElement(qe.Z,null,te.createElement(je.ZP,{size:"large",onClick:cn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),lt=Te(99298);const At="link",yt="upload-image",Rt="add-flowchart",Pt="draw-image",Tt="add-flowchart",kt="code-block",Dt="add-table",gt="------------",It={default:gt,left:`:${gt}`,center:`:${gt}:`,right:`${gt}:`};var Vt=Te(31103),rn=Te(65862);function wt(){}let Ct=0;const Zt=1e4,en="\u2581",ln="@\u2581\u2581@",yn="@\u2581@",Bn=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Wn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function gn(Lt){return/^\d+$/.test(Lt)?`${Lt}px`:Lt}const pn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",In={[pn+"-B"]:"bold",[pn+"-I"]:"italic"},Gt={[At]:"\u6DFB\u52A0\u94FE\u63A5",[kt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[yt]:"\u6DFB\u52A0\u56FE\u7247",[Pt]:"\u6DFB\u52A0\u753B\u56FE",[Rt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Dt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Ut=({defaultValue:Lt="",onChange:sn,width:un="100%",height:Cn=400,miniToolbar:Tn=!1,isFocus:jn=!1,watch:hn,insertTemp:Mn,mode:_n="markdown",id:ur="markdown-editor-id",showResizeBar:tr=!1,noStorage:cn=!1,showNullButton:tn=!1,showNullProgramButton:Hn=!1,hidetoolBar:Gn=!1,fullScreen:Mt=!1,onBlur:Kt,onCMBeforeChange:St,onFullScreen:Nt,className:Et="",disablePaste:zt=!1,disabled:bt=!1,disabledFill:Wt=!1,placeholder:Ft="",values:qt="",extraUse:_t,onAddBlank:$t})=>{const[Ht,Xt]=(0,te.useState)(null),[En,On]=(0,te.useState)(Lt),[Rn,rr]=(0,te.useState)(hn),[cr,mr]=(0,te.useState)(Mt),[nr,Un]=(0,te.useState)(""),[Yn,pr]=(0,te.useState)(0),[Sr,wr]=(0,te.useState)(Cn),[Cr,qn]=(0,te.useState)(!1),[kn,Fn]=(0,te.useState)(0),[Nn,ir]=(0,te.useState)(0),br=(0,te.useRef)(),Pr=(0,te.useRef)(),Kr=(0,te.useRef)(),Nr=(0,te.useRef)(),Wr=(0,te.useRef)(),Ir=(0,te.useRef)(),ni=(0,Ot.useDispatch)();(0,te.useEffect)(()=>{const Vn=window.scrollY||window.pageYOffset;On(qt),Ht==null||Ht.setValue(qt),window.scrollTo(0,Vn)},[qt]),(0,te.useEffect)(()=>{Nt==null||Nt(cr)},[cr]),(0,te.useEffect)(()=>{if(br.current){let Vn=function(er,sr){var qr;if(zt){sr.preventDefault();return}const Ti=sr.clipboardData;if(Ti){const gi=Ti.types.toString(),ki=Ti.items;if(gi==="Files"||Ti.types.indexOf("Files")>-1){if(sr.preventDefault(),_n=="stex")return;try{let Oi=ki[1];((qr=ki[0])==null?void 0:qr.kind)==="file"&&(Oi=ki[0]);const Ii=Oi.getAsFile(),Fi=Ii.name.split(".").pop();(0,Ze.I)(Ii,Ri=>{var Ni,so,xo;Ri.id?((Ni=Ii==null?void 0:Ii.type)==null?void 0:Ni.indexOf("image"))>-1?zn.replaceSelection(`<img width="100%" src="/api/attachments/${Ri.id}?type=${Ri.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/${Ri.id}"></video>`):((xo=Ii==null?void 0:Ii.type)==null?void 0:xo.indexOf("pdf"))>-1?zn.replaceSelection(`<a href="/api/attachments/${Ri.id}?type=${Ii.type}&disposition=inline" target="_blank">${Ii.name}</a>`):Wn.includes(Fi)?zn.replaceSelection(`<a href="/api/attachments/${Ri.id}?type=office&disposition=inline" target="_blank">${Ii.name}</a>`):zn.replaceSelection(`[${Ii.name}](/api/attachments/${Ri.id}?type=${Ri.content_type})`):(Ri==null?void 0:Ri.status)===401&&(document.location.href="/user/login")})}catch(Oi){_e.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const zn=Pe().fromTextArea(br.current,{mode:_n,lineNumbers:!Tn,lineWrapping:!0,value:Lt,autoCloseTags:!0,autoCloseBrackets:!0});return zn.on("keyup",function(er,sr){sr.keyCode===8&&(er.getValue()==""?zn.setOption("placeholder",Ft):zn.setOption("placeholder",null))}),zn.on("keydown",function(er,sr){if(sr.keyCode===8){var qr=oi(er);qr&&sr.preventDefault()}}),jn&&zn.focus(),zn.on("paste",Vn),bt&&zn.on("beforeChange",function(er,sr){(sr.origin==="paste"||sr.origin==="+input")&&sr.cancel()}),Xt(zn),()=>{zn.off("paste",Vn)}}},[]);const ti=(0,te.useCallback)(()=>{if(Pr.current)try{}catch(Vn){console.log(Vn,"---- to set md editor body height")}},[Sr,Pr,cr]);(0,te.useEffect)(()=>{function Vn(){let zn=new ye.Z(er=>{for(let sr of er)(sr.target.offsetHeight>0||sr.target.offsetWidth>0)&&(ti(),Ht.setSize("100%","100%"),Ht.refresh())});return zn.observe(br.current.parentElement),zn}if(Ht){const zn=Vn();return()=>{var er,sr;(er=br.current)!=null&&er.parentElement&&zn.unobserve((sr=br.current)==null?void 0:sr.parentElement)}}},[Ht,ti]),(0,te.useEffect)(()=>{if(Ht){let Vn=[];for(const[zn,er]of Object.entries(In)){let sr={[zn]:()=>{fi(er)}};Vn.push(sr),Ht.addKeyMap(sr)}return()=>{for(let zn of Vn)Ht.removeKeyMap(zn)}}},[Ht]),(0,te.useEffect)(()=>{Mt!==cr&&mr(Mt)},[Mt]),(0,Vt.Z)(()=>{if(!cn&&Yn>0){let Vn=new Date().getTime(),zn=window.sessionStorage.getItem(ur);Vn>=Yn+Zt&&(!zn||zn!==En)&&(window.sessionStorage.setItem(ur,En),qn(!0))}},Zt),(0,te.useEffect)(()=>{rr(hn)},[Ht,hn]),(0,te.useEffect)(()=>{Ht&&jn&&Ht.focus()},[Ht,jn]),(0,te.useEffect)(()=>{if(Rn&&Ht){let Vn=function(er){let sr=er.target;if(Nr.current){let qr=sr.scrollTop/sr.scrollHeight;Nr.current.scrollTop=Nr.current.scrollHeight*qr}};const zn=Ht.getScrollerElement();return zn.addEventListener("scroll",Vn),()=>{zn.removeEventListener("scroll",Vn)}}},[Ht,Rn]),(0,te.useEffect)(()=>{if(Ht&&St){let Vn=function(zn,er){St(zn,er)};return Ht.on("beforeChange",Vn),()=>{Ht.off("beforeChange",Vn)}}},[Ht,St]),(0,te.useEffect)(()=>{if(Ht&&Kt){let Vn=function(){Kt(Ht.getValue())};return Ht.on("blur",Vn),()=>{Ht.off("blur",Vn)}}},[Ht,Kt]);function oi(Vn,zn){var er=Vn.getDoc(),sr=er.getCursor(),qr=er.getLine(sr.line),Ti=qr.charAt(sr.ch-1),gi=qr.lastIndexOf("@\u2581@",sr.ch),ki=qr.lastIndexOf("@\u2581\u2581@",sr.ch),Oi=gi>ki?gi:ki,Ii=gi>ki?3:4;if(ln.indexOf(Ti)===-1)return null;if(console.log("change1:",zn,Vn,qr,sr,Oi,gi,ki,Ti),Oi>=0&&sr.ch-Oi<5){var Fi=Oi+Ii;return er.replaceRange("",{line:sr.line,ch:Oi},{line:sr.line,ch:Fi}),{line:sr.line,ch:Fi}}return null}(0,te.useEffect)(()=>{if(Ht){let Vn=function(zn,er){const sr=zn.getValue();On(sr),pr(new Date().getTime()),zn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),sn&&(Hn?sn(sr,Kn(sr)):sn(sr))};return Ht.on("change",Vn),()=>{Ht.off("change",Vn)}}},[Ht,sn]),(0,te.useEffect)(()=>{if(Ht)if(Lt==null)Ht.setValue(""),On("");else{const Vn=window.scrollY||window.pageYOffset;Lt!==Ht.getValue()&&(Ht.setValue(Lt),On(Lt),Ht.setCursor(bt?1:Ht.lineCount(),0),window.scrollTo(0,Vn))}},[Ht,Lt]);const fi=(0,te.useCallback)(Vn=>{const zn=Ht.getCursor(),er=Ht.getSelection();let sr=er.split(`
`);switch(Vn){case"bold":return Ht.replaceSelection("**"+er+"**"),er===""&&Ht.setCursor(zn.line,zn.ch+2),Ht.focus();case"italic":return Ht.replaceSelection("*"+er+"*"),er===""&&Ht.setCursor(zn.line,zn.ch+1),Ht.focus();case"code":return Ht.replaceSelection("`"+er+"`"),er===""&&Ht.setCursor(zn.line,zn.ch+1),Ht.focus();case"inline-latex":return(0,rn.Ye)(ni)?void 0:(Un("inline-latex"),Ht.focus());case"latex":return Ht.replaceSelection("```latex\n"+er+"\n```"),Ht.setCursor(zn.line+1,er.length+1),Ht.focus();case"line-break":return Ht.replaceSelection(`<br/>
`),Ht.focus();case"list-ul":return er===""?Ht.replaceSelection("- "+er):Ht.replaceSelection(sr.map(qr=>qr===""?"":`- ${qr}`).join(`
`)),Ht.focus();case"list-ol":return er===""?Ht.replaceSelection("1. "+er):Ht.replaceSelection(sr.map((qr,Ti)=>qr===""?"":`${Ti+1}. ${qr}`).join(`
`)),Ht.focus();case"add-null-ch":$t==null||$t();return;case"add-signal":return er===""&&Ht.setCursor(zn.line,zn.ch),Ht.replaceSelection(yn),Ht.focus();case"add-multiple":return er===""&&Ht.setCursor(zn.line,zn.ch),Ht.replaceSelection(ln),Ht.focus();case"inster-template-1":return er===""&&Ht.setCursor(zn.line,zn.ch),Ht.replaceSelection(Bn),Ht.focus();case"eraser":return Ht.setValue(""),Ht.focus();case"trigger-watch":return rr(!Rn),Ht.focus();case"trigger-full-screen":return mr(!cr),Ht.focus();case At:Un(At);return;case kt:Un(kt);return;case yt:Un(yt);return;case Pt:Un(Pt);return;case"maths-latex":if((0,rn.Ye)(ni))return;Un("maths-latex");return;case Rt:Wr.current="",sessionStorage.removeItem("file_id"),Un(Rt);return;case Dt:Un(Dt);return;default:throw new Error}},[Ht,Rn,cr]),xi=(0,te.useCallback)((Vn,zn)=>{var er,sr,qr,Ti,gi,ki;Vn!=null&&Vn.disabledClose||Un("");const{src:Oi,alt:Ii,id:Fi}=Vn||{};switch(nr){case At:const{title:Ao,link:jo}=Vn;return Ht.replaceSelection(`[${Ao}](${jo})`),Ht.focus();case kt:const{language:wo,content:ri}=Vn;return Ht.replaceSelection(["```"+wo,ri,"```"].join(`
`)),Ht.focus();case"maths-latex":for(var Ri=atob(Vn),Ni=new Uint8Array(Ri.length),so=0;so<Ri.length;so++)Ni[so]=Ri.charCodeAt(so);var xo=new Blob([Ni],{type:"image/png"});(0,Ze.I)(xo,bi=>{bi.id?Ht.replaceSelection(`![,](/api/attachments/${bi.id}?type=${bi.content_type})`):(bi==null?void 0:bi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,rn.Ye)(ni))return;Ht.replaceSelection("`$$"+Vn+"$$`");break;case Tt:if(!Fi)return;Ht.getValue().indexOf(Oi)===-1?Ht.replaceSelection(`<center><img id="${Fi}" width="80%" src="${Oi}" class="draw-flowchart" alt="${Ii||""}" /></center>`):document.getElementById(Fi).src=He.Z.API_SERVER+Oi+"?t="+Date.now();break;case yt:case Pt:const Gr=zn,Qi=(qr=(sr=(er=Gr==null?void 0:Gr.name)==null?void 0:er.split("."))==null?void 0:sr.pop)==null?void 0:qr.call(sr);return((Ti=Gr==null?void 0:Gr.type)==null?void 0:Ti.indexOf("image"))>-1||!(Gr!=null&&Gr.type)?Gr!=null&&Gr.align||Gr!=null&&Gr.width?Ht.replaceSelection(`<p style="text-align:${Gr.align||"initial"}"><img width="${Gr.width?Gr.width+"%":"initial"}" src="${Oi}" alt="${Ii||""}" /></p>`):Ht.replaceSelection(`<img width="100%" src="${Oi}" alt="${Ii||""}" />`):((gi=Gr==null?void 0:Gr.type)==null?void 0:gi.indexOf("video"))>-1?Ht.replaceSelection(`<video width="100%" controls src="${Oi}"></video>`):((ki=Gr==null?void 0:Gr.type)==null?void 0:ki.indexOf("pdf"))>-1?Ht.replaceSelection(`<a href="${Oi}?type=${Gr.type}&disposition=inline" target="_blank">${Gr.name}</a>`):Wn.includes(Qi)?Ht.replaceSelection(`<a href="${Oi}?type=office&disposition=inline" target="_blank">${Gr.name}</a>`):Ht.replaceSelection(`[${Gr.name}](${Oi})`),Ht.focus();case Dt:const{row:qi,col:ui,align:Zi}=Vn;let Yi=`
`;for(let bi=0;bi<qi;bi++){let _i=[],Di=[];for(let _o=0;_o<ui;_o++)bi===1&&Di.push(It[Zi]),_i.push(" ");bi===1&&(Yi+=`| ${Di.join(" | ")} |
`),Yi+=`| ${_i.join(ui===1?"":" | ")} |
`}return Ht.replaceSelection(Yi+`
`),Ht.focus();default:throw new Error}},[Ht,nr]),hi=(0,te.useMemo)(()=>{switch(nr){case At:return te.createElement(nt,{callback:xi,onCancel:ei});case kt:return te.createElement(et.Z,{callback:xi,onCancel:ei});case yt:return te.createElement(Ze.Z,{callback:xi,onCancel:ei});case Rt:return te.createElement(Me,{editImgId:Wr.current,callback:xi,onCancel:ei});case Dt:return te.createElement(We,{callback:xi,onCancel:ei});case"maths-latex":return te.createElement(ut,{showSaveButton:!0,callback:xi});case"inline-latex":return te.createElement(lt.Z,{showSaveButton:!0,callback:xi});default:return null}},[nr]);function ei(){Un("")}(0,te.useEffect)(()=>{if(Kr.current){let Vn=function(gi){qr=!0,Ti=gi.pageY},zn=function(){qr=!1},er=function(gi){if(qr){let ki=gi.pageY-Ti;ki<0&&(ki=0),ki>300&&(ki=300);let Oi=Cn+ki+"px";wr(Oi)}},sr=Kr.current,qr=!1,Ti=0;return sr.addEventListener("mousedown",Vn),document.addEventListener("mousemove",er),document.addEventListener("mouseup",zn),()=>{sr.removeEventListener("mousedown",Vn),document.removeEventListener("mousemove",er),document.removeEventListener("mouseup",zn)}}},[Ht,Kr]),(0,te.useEffect)(()=>{wr(Cn)},[Cn]);const Ar=gn(un),Dr=gn(Sr),ar={width:Ar,height:Dr},Pn=(0,te.useMemo)(()=>{if(Yn){let Vn=new Date(Yn),zn=Vn.getHours(),er=Vn.getMinutes(),sr=Vn.getSeconds();return zn=zn<10?"0"+zn:zn,er=er<10?"0"+er:er,sr=sr<10?"0"+sr:sr,`${zn}:${er}:${sr}`}return 0},[Yn]),Kn=Vn=>{const zn=[];if(Hn){let er=-1;Vn=Vn.replace(/(@▁▁@|@▁@)/g,function(sr,qr,Ti){zn.push({multiLine:sr!==yn})})}return zn};function Xn(){window.sessionStorage.removeItem(ur),qn(!1),pr(0)}function $n(){qn(!1),pr(0),Ht.setValue(window.sessionStorage.getItem(ur))}(0,te.useEffect)(()=>{Gt[nr]&&nr!==Pt&&nr!==Rt&&setTimeout(()=>{const Vn=document.getElementsByClassName("markdown-popup-form")[0],zn=window.innerWidth/2-Vn.offsetWidth/2,er=window.innerHeight/2-Vn.offsetHeight/2;Fn(zn),ir(er)},0)},[nr]);const hr=Vn=>{Vn.preventDefault();const zn=Vn.clientX-kn,er=Vn.clientY-Nn;document.body.onmousemove=sr=>{let qr=sr.clientX-zn,Ti=sr.clientY-er;const gi=document.getElementsByClassName("markdown-popup-form")[0],ki=window.innerWidth-gi.offsetWidth,Oi=window.innerHeight-gi.offsetHeight;qr=Math.max(0,Math.min(qr,ki)),Ti=Math.max(0,Math.min(Ti,Oi)),Tr(sr.clientX,sr.clientY,zn,er)&&(Fn(qr),ir(Ti))},document.body.onmouseup=function(){document.body.onmousemove=null}},Tr=(Vn,zn,er,sr)=>{const qr=document.body.clientHeight,Ti=document.body.clientWidth;return Vn<20&&er>Vn||Vn>Ti-20&&er<Vn||zn<20&&sr>zn||zn>qr-20&&sr<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:Pr},te.createElement("div",{className:`markdown-editor-container ${Et} ${Rn?"on-preview":""} ${Tn?"mini":""} ${cr?"full-screen":""}`,style:ar},te.createElement(De,{insertTemp:Mn,watch:Rn,fullScreen:cr,showNullButton:tn,showNullProgramButton:Hn,onActionCallback:fi,hidetoolBar:Gn,extraUse:_t}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:br,placeholder:Ft})),Rn?te.createElement("div",{ref:Nr,className:"preview-container"},_n==="stex"&&te.createElement(ae,{value:En}),_n!=="stex"&&te.createElement(x.Z,{edit:!0,disabledFill:Wt,showProgramFill:Hn,value:En,openEditor:Vn=>{var zn;Wr.current=Vn,(zn=Ir.current)==null||zn.setHeight("100vh"),setTimeout(()=>{Un("add-flowchart")},150)}})):null))),tr?te.createElement("a",{ref:Kr,className:"editor-resize"}):null,nr===Pt&&te.createElement(ht,{callback:xi,onCancel:ei}),nr===Rt&&te.createElement(Me,{ref:Ir,editImgId:Wr.current,callback:xi,onCancel:ei}),te.createElement(we.Z,null,Gt[nr]&&nr!==Pt&&nr!==Rt?te.createElement(Ye.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:kn,top:Nn},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:hr},Gt[nr]),open:!0,onCancel:ei,footer:null,destroyOnClose:!0,width:nr===Rt?"1200px":null,height:nr===Rt?"80vh":null,className:"markdown-popup-form"},hi):null))}},45053:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Ne},I:function(){return De}});var te=Te(28284),Ot=Te(6767),y=Te(37568),Pe=Te(44104),ye=Te(4875),z=Te(47889),E=Te(7939),re=Te(28735),oe=Te(59301),ee=Te(59301),de=Object.defineProperty,x=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,pe=(we,Ce,Oe)=>Ce in we?de(we,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):we[Ce]=Oe,he=(we,Ce)=>{for(var Oe in Ce||(Ce={}))se.call(Ce,Oe)&&pe(we,Oe,Ce[Oe]);if(ie)for(var Oe of ie(Ce))ue.call(Ce,Oe)&&pe(we,Oe,Ce[Oe]);return we},ge=(we,Ce)=>x(we,ae(Ce));const{useForm:me}=te.default,xe={width:280,marginRight:10},Ae={labelCol:{span:5},wrapperCol:{span:19}};var Ne=({callback:we,onCancel:Ce})=>{const[Oe]=me();let je=(0,oe.useRef)();function Fe(Ge){je.current.width=Oe.getFieldValue("width"),je.current.align=Oe.getFieldValue("align"),we(Ge,je.current)}function ke(Ge,Ke){if(Ge.status===-1){Ot.ZP.error(Ge.message);return}Oe.setFieldsValue({src:`/api/attachments/${Ge.id}`,type:Ke.type})}function Ee(Ge){let Ke=Ge.target.files[0];je.current=Ke,De(Ke,ke)}return ee.createElement(te.default,ge(he({form:Oe},Ae),{className:"upload-image-panel",onFinish:Fe,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:Ee}))),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(Pe.Z,null,ee.createElement(te.default.Item,{name:"width",style:{margin:0}},ee.createElement(ye.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:Ce},"\u53D6\u6D88"))))};function Be({onFileChange:we}){return ee.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ee.createElement("input",{type:"file",onChange:we}))}function De(we,Ce){if(!we)throw new String("\u6CA1\u6709\u6587\u4EF6");let Oe=new FormData;Oe.append("editormd-image-file",we),Oe.append("file_param_name","editormd-image-file"),Oe.append("byxhr","true");var je=new window.XMLHttpRequest;je.withCredentials=!0,je.addEventListener("load",function(Fe){Ce(JSON.parse(Fe.target.responseText),we)},!1),je.addEventListener("error",function(Fe){console.error(Fe)},!1),je.open("POST",`${re.KI}/api/attachments.json`),je.send(Oe)}},57261:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return y}});var te=Te(59301),Ot=Te(4676);class y extends te.Component{constructor(ye){super(ye);const z=window.document;this.node=z.createElement("div"),z.body.appendChild(this.node)}render(){const{children:ye}=this.props;return(0,Ot.createPortal)(ye,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},50258:function(wn,Yt,Te){"use strict";Te.d(Yt,{SV:function(){return ht},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"]},Pe={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"]},ye={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 re=Te(53184),oe=Te.n(re),ee=(at,qe,_e)=>new Promise((Re,ne)=>{var fe=be=>{try{He(_e.next(be))}catch(ve){ne(ve)}},Me=be=>{try{He(_e.throw(be))}catch(ve){ne(ve)}},He=be=>be.done?Re(be.value):Promise.resolve(be.value).then(fe,Me);He((_e=_e.apply(at,qe)).next())});const de={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,_e,Re)=>{const ne=qe.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:_e.lineNumber,endColumn:_e.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,_e,Re)=>{at.languages.registerCompletionItemProvider(qe,{provideCompletionItems(ne,fe){const Me=ne.getWordUntilPosition(fe),He={startLineNumber:fe.lineNumber,endLineNumber:fe.lineNumber,startColumn:Me.startColumn,endColumn:Me.endColumn},be=ne.getLineContent(fe.lineNumber).substring(Me.startColumn-2,Me.endColumn);return{suggestions:[...x(at,ne,fe,He),..._e.map(Ie=>({label:Ie,kind:at.languages.CompletionItemKind.Keyword,documentation:Ie,insertText:Ie,insertTextRules:at.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:He})),...Re.map(Ie=>({label:Ie.label,kind:at.languages.CompletionItemKind.Snippet,documentation:Ie.content,insertText:be.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:at.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:He}))]}}})};var ie=at=>{de.languages.forEach(qe=>{at.languages.registerDocumentFormattingEditProvider(qe,{provideDocumentFormattingEdits(_e){return ee(this,null,function*(){const Re=oe()(_e.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:_e.getFullModelRange(),text:Re}]})}})}),ae(at,"java",Pe.keywords,Pe.quickKey),ae(at,"cpp",ye.keywords,ye.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,_e)=>qe in at?ue(at,qe,{enumerable:!0,configurable:!0,writable:!0,value:_e}):at[qe]=_e,he=(at,qe,_e)=>pe(at,typeof qe!="symbol"?qe+"":qe,_e);const ge=class Hu{constructor(qe,_e,Re){this.placeholder=qe,this.editor=_e,this.monaco=Re,_e.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(ge,"ID","editor.widget.placeholderHint");var xe=ge,Ae=Te(96236),Ne=Te(6767),Be=Te(25399),De=Te(89392),we=Te(77254),Ce=Te(56102),Oe=Object.defineProperty,je=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ke=(at,qe,_e)=>qe in at?Oe(at,qe,{enumerable:!0,configurable:!0,writable:!0,value:_e}):at[qe]=_e,Ve=(at,qe)=>{for(var _e in qe||(qe={}))Ee.call(qe,_e)&&Ke(at,_e,qe[_e]);if(ke)for(var _e of ke(qe))Ge.call(qe,_e)&&Ke(at,_e,qe[_e]);return at},it=(at,qe)=>je(at,Fe(qe)),Le=(at,qe)=>{var _e={};for(var Re in at)Ee.call(at,Re)&&qe.indexOf(Re)<0&&(_e[Re]=at[Re]);if(at!=null&&ke)for(var Re of ke(at))qe.indexOf(Re)<0&&Ge.call(at,Re)&&(_e[Re]=at[Re]);return _e},Ue=(at,qe,_e)=>new Promise((Re,ne)=>{var fe=be=>{try{He(_e.next(be))}catch(ve){ne(ve)}},Me=be=>{try{He(_e.throw(be))}catch(ve){ne(ve)}},He=be=>be.done?Re(be.value):Promise.resolve(be.value).then(fe,Me);He((_e=_e.apply(at,qe)).next())});function tt(at){return/^\d+$/.test(at)?`${at}px`:at}function nt(){}let et=!1;const Ze={"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 _e=0;_e<at.length;_e++){let Re=Ze[at[_e]];if(Re)return Re}return qe[0]}return Ze[qe]||qe}let Xe=null;const st=()=>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:_e="100%",height:Re="100%",value:ne,language:fe="javascript",style:Me={},options:He={},overrideServices:be={},theme:ve="vs-dark",onEditBlur:Ie,isCopy:$e=!1,onSave:We,autoHeight:Je=!1,forbidCopy:ct=!1,forbidCopyTips:ot,onChange:ft=nt,editorDidMount:ut=nt,onFocus:lt=nt,onBreakPoint:At=nt,breakPointValue:yt=[],filename:Rt="educoder.txt",errorLine:Pt,errorContent:Tt="",highlightLine:kt,openBreakPoint:Dt=!1,placeholder:gt="",showMiniMap:It=!0}=qe,Vt=Le(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 rn=(0,te.useRef)(),wt=(0,te.useRef)({}),Ct=(0,te.useRef)(),Zt=(0,te.useRef)(),en=(0,te.useRef)([]),ln=(0,te.useRef)(!1),yn=(0,te.useRef)(),Bn=(0,te.useRef)(),Wn=(0,te.useRef)(!1),[gn,Ln]=(0,te.useState)(!1);function pn(){let cn;return rn.current&&(cn=new Ot.Z(tn=>{for(let Hn of tn)(Hn.target.offsetHeight>0||Hn.target.offsetWidth>0)&&wt.current.instance.layout()}),cn.observe(rn.current)),cn}function In(){Ne.ZP.warning({content:decodeURIComponent(ot||se),key:"monaco-editor-tip"})}const Gt=()=>{let cn=wt.current.instance;if(ne!=null&&cn&&gn){const tn=cn.getModel();tn&&ne!==tn.getValue()&&(et=!0,tn.setValue(ne),cn.layout(),et=!1)}};(0,te.useEffect)(()=>{const cn=we.Z.subscribe("formatDocument",tn=>{var Hn;let Gn=wt.current.instance;(Hn=Gn==null?void 0:Gn.getAction)==null||Hn.call(Gn,"editor.action.formatDocument").run()});return window.updateMonacoValue=tn=>{ft(tn)},cn},[]),(0,te.useEffect)(()=>{var cn;let tn=wt.current.instance;Zt.current&&clearTimeout(Zt.current),Zt.current=setTimeout(()=>{Gt()},500),ne&&(ne!=null&&ne.length)&&((cn=tn==null?void 0:tn.updateOptions)==null||cn.call(tn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ne.split(/\r\n|\r|\n/g).length))+3,5)}))},[ne,gn,wt.current]),(0,te.useEffect)(()=>{if(Pt&&wt.current&&wt.current.instance){let tn=wt.current.instance;tn.changeViewZones(function(Hn){var Gn=document.createElement("div");Gn.style.padding="10px 20px",Gn.style.width="calc(100% - 20px)",Gn.className="my-error-line-wrp",Gn.innerHTML=Tt,Hn.addZone({afterLineNumber:Pt||11,heightInLines:3,domNode:Gn})});var cn={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}};tn.addOverlayWidget(cn),tn.revealPositionInCenter({lineNumber:20,column:1})}},[Pt,wt.current,gn]);const Ut=(cn="",tn)=>{if(!cn||cn.trim()==="")return!0;const Gn=wt.current.instance.getModel().getLineTokens(tn);let Mt=!1;for(let Kt=0;Kt<2;Kt++)Gn.getStandardTokenType(Kt)===1&&(Mt=!0);return Mt};(0,te.useEffect)(()=>{var cn;const tn=(cn=wt.current)==null?void 0:cn.instance;if(tn&&gn&&ct){const Hn=tn.onDidBlurEditorWidget(()=>{Wn.current=!1}),Gn=tn.onDidFocusEditorText(()=>{Wn.current=!0});return()=>{Hn.dispose(),Gn.dispose()}}},[wt.current,gn,ct]),(0,te.useEffect)(()=>{var cn;if((cn=wt.current)!=null&&cn.instance&&gn&&Dt){let tn=wt.current.instance,Hn=tn.getModel();if(!Hn)return;(()=>{var _t;let $t=[],Ht=[];const Xt=Hn.getAllDecorations();for(let On of Xt)On.options.className==="highlighted-line"&&($t.push((_t=On==null?void 0:On.range)==null?void 0:_t.startLineNumber),Ht.push(On==null?void 0:On.id));if(kt===$t[0])return;Hn.deltaDecorations(Ht,[]);const En=Hn.getLineCount();kt&&kt<=En&&(tn.deltaDecorations([],[{range:new Xe.Range(kt,1,kt,Hn.getLineMaxColumn(kt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),tn.revealLineInCenter(kt))})();const Mt=(_t=!1)=>{var $t;let Ht=[],Xt=[];const En=Hn.getAllDecorations();for(let On of En)On.options.linesDecorationsClassName==="breakpoints-select"&&(Ht.push(($t=On==null?void 0:On.range)==null?void 0:$t.startLineNumber),Xt.push(On==null?void 0:On.id));if(_t)return{lines:Ht,ids:Xt};At(Ht)},Kt=_t=>Ue(void 0,null,function*(){let $t={range:new Xe.Range(_t,1,_t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Hn.deltaDecorations([],[$t]),Mt()}),St=_t=>Ue(void 0,null,function*(){let $t=[];const Ht=tn.getLineDecorations(_t);for(let Xt of Ht)Xt.options.linesDecorationsClassName==="breakpoints-select"&&$t.push(Xt.id);yield Hn.deltaDecorations($t,[]),Mt()}),Nt=_t=>{let $t=tn.getLineDecorations(_t);for(let Ht of $t)if(Ht.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,De.isEqual)(yt,Mt(!0).lines)){Hn.deltaDecorations(Mt(!0).ids,[]);const _t=yt.map($t=>({range:new Xe.Range($t,1,$t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Hn.deltaDecorations([],_t)}const Et=tn.onDidChangeModelContent(_t=>{let $t=tn.getPosition();if($t){let Ht=$t.lineNumber;clearTimeout(Bn.current),Bn.current=setTimeout(()=>{Ut(Hn.getLineContent(Ht),Ht)?St(Ht):Nt(Ht)?(St(Ht),Kt(Ht)):Mt()},100)}}),zt=tn.onMouseDown(_t=>{var $t,Ht,Xt;if(_t.target.detail&&((Xt=(Ht=($t=_t.target)==null?void 0:$t.element)==null?void 0:Ht.className)!=null&&Xt.includes("line-numbers"))){let En=_t.target.position.lineNumber;if(Ut(Hn.getLineContent(En),En))return;Nt(En)?St(En):Kt(En)}}),bt=_t=>{let $t={range:new Xe.Range(_t,1,_t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};en.current=tn.deltaDecorations(en.current,[$t])},Wt=()=>{en.current=tn.deltaDecorations(en.current,[])},Ft=tn.onMouseMove(_t=>{var $t,Ht,Xt;if(Wt(),_t.target.detail&&((Xt=(Ht=($t=_t.target)==null?void 0:$t.element)==null?void 0:Ht.className)!=null&&Xt.includes("line-numbers"))){let En=_t.target.position.lineNumber;if(Ut(Hn.getLineContent(En),En))return;bt(En)}}),qt=tn.onMouseLeave(()=>{Wt()});return()=>{Et.dispose(),zt.dispose(),Ft.dispose(),qt.dispose()}}},[wt.current,gn,yt,kt,Dt,fe]),(0,te.useEffect)(()=>{var cn;(cn=wt.current)!=null&&cn.instance&&Dt&&wt.current.instance.setPosition({lineNumber:0,column:0})},[kt]);function Lt(){let cn=wt.current.instance;if(cn){const tn=cn.getSelection(),Hn=wt.current.pastePos||{},Gn=new Xe.Range(Hn.startLineNumber||tn.endLineNumber,Hn.startColumn||tn.endColumn,Hn.endLineNumber||tn.endLineNumber,Hn.endColumn||tn.endColumn);setTimeout(()=>{cn.executeEdits("",[{range:Gn,text:""}])},300)}}function sn(cn){(window.navigator.platform.match("Mac")?cn.metaKey:cn.ctrlKey)&&cn.keyCode==83&&(cn.preventDefault(),We())}const un=()=>{if(Je&&wt.current.instance){const cn=wt.current.instance.getContentHeight();ur(cn<Re?Re:cn)}else ur(Re)};function Cn(cn){var tn=document.createEvent("MouseEvents");tn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),cn.dispatchEvent(tn)}const Tn=cn=>{if(!Wn.current)return;const{keyCode:tn,ctrlKey:Hn,metaKey:Gn,target:Mt,type:Kt}=cn;return(Kt==="paste"||(tn===67||tn===86)&&(Gn||Hn))&&Mt.nodeName==="TEXTAREA"&&(In(),cn.preventDefault()),!1};function jn(cn,tn){var Hn=window.URL||window.webkitURL||window,Gn=new Blob([tn]),Mt=document.createElementNS("http://www.w3.org/1999/xhtml","a");Mt.href=Hn.createObjectURL(Gn),Mt.download=cn,Cn(Mt)}(0,te.useEffect)(()=>{un()},[un]),(0,te.useEffect)(()=>{rn.current&&!gn&&Promise.all([Te.e(8909),Te.e(2460)]).then(Te.bind(Te,71448)).then(cn=>{try{Xe=cn,wt.current.instance=Xe.editor.create(rn.current,{value:ne,language:Ye(fe),theme:ve,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:It||!1}},be);const tn=wt.current.instance;let Mt=[...Ae.BH._menuItems].find(Et=>Et[0]._debugName=="EditorContext")[1],Kt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],St=(Et,zt)=>{var bt,Wt;let Ft=Et._first;do zt.includes((Wt=(bt=Ft.element)==null?void 0:bt.command)==null?void 0:Wt.id)&&Et._remove(Ft);while(Ft=Ft.next)};if(ut(tn,Xe),setTimeout(()=>{un(),wt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{jn(Rt||"educoder.txt",tn.getValue())}})},500),wt.current.subscription=tn.onDidChangeModelContent(Et=>{ln.current?clearTimeout(yn.current):(un(),ft(tn.getValue(),Et)),yn.current=setTimeout(()=>{ln.current=!1},500)}),window.Monaco||ie(Xe,Ye(fe)),ct&&(St(Mt,Kt),rn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Tn),window.removeEventListener("paste",Tn),window.addEventListener("keydown",Tn),window.addEventListener("paste",Tn)),window.Monaco=Xe,Ie&&tn.onDidBlurEditorWidget(()=>{Ie(tn.getValue())}),lt&&tn.onDidFocusEditorText(()=>{ct&&st(),lt(tn.getValue())}),ct){st();try{tn.onDidPaste(Et=>{const zt=tn.getSelection(),bt=wt.current.pastePos||{},Wt=new Xe.Range(bt.startLineNumber||zt.endLineNumber,bt.startColumn||zt.endColumn,bt.endLineNumber||zt.endLineNumber,bt.endColumn||zt.endColumn);tn.executeEdits("",[{range:Et.range,text:""}])})}catch(Et){}}let Nt=pn();return gt&&typeof gt=="string"&&new xe(gt,tn,Xe),Ln(!0),()=>{const Et=wt.current.instance;Et.dispose();const zt=Et.getModel();zt&&zt.dispose(),wt.current.subscription&&wt.current.subscription.dispose(),Nt.unobserve(rn.current)}}catch(tn){}})},[]),(0,te.useEffect)(()=>{if(wt.current.instance&&gn)return document.addEventListener("keydown",sn,!1),()=>{document.removeEventListener("keydown",sn)}},[We,gn]),(0,te.useEffect)(()=>{let cn=wt.current.instance;if(cn&&gn){let tn=Ye(fe);Xe.editor.setModelLanguage(cn.getModel(),tn)}},[fe,gn]),(0,te.useEffect)(()=>{wt.current.instance&&gn&&Xe.editor.setTheme(ve)},[ve,gn]),(0,te.useEffect)(()=>{let cn=wt.current.instance;Ct.current=He,cn&&gn&&(cn.updateOptions(Ve({},He)),setTimeout(()=>{cn.getModel().updateOptions(Ve({},He))},200))},[JSON.stringify(He),gn]),(0,te.useEffect)(()=>{let cn=wt.current.instance;cn&&gn&&cn.layout()},[_e,Re,gn]);const[hn,Mn]=(0,te.useState)(tt(_e)),[_n,ur]=(0,te.useState)(tt(Re)),tr=it(Ve({},Me),{width:hn,height:_n,position:"relative"});return te.createElement("div",{className:"my-monaco-editor",ref:rn,style:tr,onFocus:()=>{ct&&st()}},$e&&te.createElement(Ce.CopyToClipboard,{text:ne,onCopy:()=>Ne.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 ht({width:at="100%",height:qe="100%",original:_e,modified:Re,language:ne,options:fe={}}){const Me=(0,te.useRef)(),[He,be]=(0,te.useState)(null);function ve(Je){let ct;return Me.current&&(ct=new Ot.Z(ot=>{for(let ft of ot)(ft.target.offsetHeight>0||ft.target.offsetWidth>0)&&Je.layout()}),ct.observe(Me.current)),ct}(0,te.useEffect)(()=>(Me.current&&Promise.all([Te.e(8909),Te.e(9404)]).then(Te.bind(Te,2550)).then(Je=>{Xe=Je;const ct=Xe.editor.createDiffEditor(Me.current,it(Ve({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}));be(ct);let ot=ve(ct);return()=>{ct.dispose();const ft=ct.getModel();ft&&ft.dispose(),ot.unobserve(Me.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,te.useEffect)(()=>{He&&He.setModel({original:Xe.editor.createModel(_e,ne),modified:Xe.editor.createModel(Re,ne)})},[_e,Re,ne,He]);const Ie=tt(at),$e=tt(qe),We={width:Ie,height:$e};return te.createElement("div",{className:"my-diff-editor",ref:Me,style:We})}},61584:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return de}});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),Pe=Te(89787),ye=Te(92310),z=Te.n(ye),E=Te(65862),re=Te(2524),oe=Te(59301),de=({className:x,dataSource:ae=[],col:ie=4,right:se,bottom:ue=23,precision:pe=0,wrapWidth:he=1200,trackEventItems:ge,loading:me,onRemove:xe=()=>{},isCurrent:Ae=!0,showProgress:Ne=!1,showAlias:Be=!1,category:De,hiddenClick:we})=>{const Ce=Math.floor((he-(ie-1)*se)/ie),Oe=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return oe.createElement(Ot.Z,{spinning:me},oe.createElement("div",{className:z()(te.list,x)},!!(ae!=null&&ae.length)&&(ae==null?void 0:ae.map((je,Fe)=>{var ke,Ee,Ge,Ke,Ve,it,Le,Ue,tt,nt,et,Ze,Ye;const{name:Xe,id:st,identifier:Qe,featured:ht,school_name:at,image_url:qe,excellent:_e,is_plan:Re}=je;return oe.createElement("div",{key:st,className:Ae&&Ne?te.wrapisCurrent:te.wrap,style:{width:Ce,marginRight:(1+Fe)%ie===0?0:se+pe,marginBottom:ue}},oe.createElement("a",{className:te.li,onClick:ne=>{ne.preventDefault(),ne.stopPropagation(),ge&&(0,E.L9)([ge]),(0,E.xg)(`/paths/${Qe}`)}},oe.createElement("div",{className:te.img},oe.createElement("img",{className:te.cover,src:`${qe}`}),(ke=je==null?void 0:je.subject_tags)==null?void 0:ke.map((ne,fe)=>{var Me,He;if(fe===0){const ve=(Me=Oe.find(Ie=>Ie.name==ne))==null?void 0:Me.swimg;return oe.createElement("img",{className:te.sign,src:ve,style:{left:"-4px"}})}const be=(He=Oe.find(ve=>ve.name==ne))==null?void 0:He.ptimg;return oe.createElement("img",{className:te.sign,src:be,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"},(je==null?void 0:je.excellent)&&oe.createElement("div",{className:te.bq},"\u5F00\u653E\u8BFE\u7A0B"),((Ee=je==null?void 0:je.custom_tags)==null?void 0:Ee.length)>0&&oe.createElement(y.Z,{title:(Ve=(Ke=je==null?void 0:je.custom_tags)==null?void 0:Ke[((Ge=je==null?void 0:je.custom_tags)==null?void 0:Ge.length)-1])==null?void 0:Ve.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=(Le=je==null?void 0:je.custom_tags)==null?void 0:Le[((it=je==null?void 0:je.custom_tags)==null?void 0:it.length)-1])==null?void 0:Ue.tag_name))))),De=="hide"&&(je==null?void 0:je.studying)&&Ae&&oe.createElement("div",{className:`${te.movebq} user-path-items`,onClick:ne=>{ne.stopPropagation(),xe(je)}},oe.createElement("i",{className:"iconfont icon-yichu1 font12"}),oe.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(De)&&Ae&&oe.createElement("div",{className:`${te.hiddenbq} user-path-items`,onClick:ne=>{ne.stopPropagation(),we(je)}},oe.createElement("i",{className:`iconfont ${De=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),oe.createElement("span",null,De=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),oe.createElement("div",{className:te.name},oe.createElement(y.Z,{title:Be&&(je!=null&&je.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${je==null?void 0:je.excellent_alias_name}`)):Xe},oe.createElement("span",{className:te.e},Be&&(je==null?void 0:je.excellent_alias_name)||Xe))),Ae&&Ne&&((tt=je==null?void 0:je.progress)==null?void 0:tt.all_score)!=0&&oe.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},oe.createElement(Pe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((nt=je==null?void 0:je.progress)==null?void 0:nt.my_score)/((et=je==null?void 0:je.progress)==null?void 0:et.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Ze=je==null?void 0:je.progress)==null?void 0:Ze.my_score,"/",(Ye=je==null?void 0:je.progress)==null?void 0:Ye.all_score),(!Ae||!Ne)&&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)),(!Ae||!Ne)&&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,je.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,je.members_count)))))))})),!ae.length&&oe.createElement(re.Z,null)))}},82636:function(wn,Yt,Te){"use strict";Te.d(Yt,{jL:function(){return ye},w9:function(){return tt},QD:function(){return Rt},cQ:function(){return Ke.Z},op:function(){return ot},O5:function(){return In},_b:function(){return It},t7:function(){return he},Gi:function(){return st},YG:function(){return Ye},qp:function(){return de},vr:function(){return kt},qE:function(){return lt},Je:function(){return xe},wb:function(){return Ge},cq:function(){return Re},tp:function(){return ie}});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"},y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",ye=({dataSource:Gt=[],img:Ut,imgWidth:Lt=346,title:sn,sunTitle:un,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,sn),te.createElement("span",null,un)),Gt.length>0&&te.createElement("div",{className:Ot.btns},Gt.map((Tn,jn)=>te.createElement("div",{key:jn,onClick:Tn.click},Tn.name,Tn.sign?te.createElement("img",{src:y,width:39}):null))),Cn),Ut&&te.createElement("img",{style:{marginTop:33,marginRight:38},src:Ut,width:Lt}))),z={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"},E=Te(92310),re=Te.n(E),oe=Te(89392),de=({dataSource:Gt=[],value:Ut,onChange:Lt,onTitleChange:sn,className:un,title:Cn,titleWidth:Tn=41,style:jn={},fontColor:hn="#6A7283",showCount:Mn})=>{const[_n,ur]=(0,te.useState)(1),[tr,cn]=(0,te.useState)(!1),tn=(0,te.useRef)(null),Hn=(0,te.useRef)(null);return(0,te.useEffect)(()=>{var Gn;Gt.length!==0&&(((Gn=tn==null?void 0:tn.current)==null?void 0:Gn.clientHeight)>97?ur(1):ur(0)),Gt.length===0&&ur(0),cn(!1)},[Gt]),te.createElement("div",{className:re()(z.row,un,"fadeIn","animated"),style:jn},te.createElement("div",{onClick:(0,oe.throttle)(()=>sn==null?void 0:sn(),2e3),style:{width:Tn,marginTop:tr?12:4},className:`${z.title} ${sn?"current":""}`},Cn),te.createElement("div",{className:tr?`${z.tagsWrap} ${z.tagsBorderWrap}`:z.tagsWrap},te.createElement("div",{className:z.bar,ref:Hn,style:_n>0?{height:_n===1?97:"auto",overflow:_n===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},te.createElement("div",{className:z.tag,ref:tn},Gt==null?void 0:Gt.map(Gn=>te.createElement("span",{onClick:()=>Lt(Gn.id),key:Gn.id,style:{color:hn},className:Ut===Gn.id?z.active:""},te.createElement("span",{title:Gn.name,className:z.name},Gn.name),!!Mn&&te.createElement("span",{className:z.num},Gn.count))))),!!_n&&te.createElement(te.Fragment,null,_n===1?te.createElement("div",{onClick:()=>{var Gn;ur(2),((Gn=tn==null?void 0:tn.current)==null?void 0:Gn.clientHeight)>245?cn(!0):cn(!1)},className:z.action},"\u5C55\u5F00",te.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):te.createElement("div",{onClick:()=>{Hn.current.scrollTop=0,ur(1),cn(!1)},className:z.action},"\u6536\u8D77",te.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},x={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"},ie=({dataSource:Gt=[],value:Ut,onChange:Lt,className:sn,style:un={}})=>te.createElement("div",{style:un,className:re()(x.tabs,sn)},Gt.map(Cn=>te.createElement("span",{onClick:()=>Lt(Cn.id),className:Ut===Cn.id?x.active:"",key:Cn.id},Cn.name))),se={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"},ue=Te(37568),he=({dataSource:Gt=[],value:Ut="",onChange:Lt,onInputChange:sn=()=>{},className:un,style:Cn={},placeholder:Tn,allowClear:jn=!1})=>{var hn;const[Mn,_n]=(0,te.useState)(""),[ur,tr]=(0,te.useState)("");(0,te.useEffect)(()=>{var Hn;let Gn=Ut;(Hn=JSON.stringify(Ut))!=null&&Hn.includes("{")&&(_n(Ut.id),Gn=Ut.value||"");try{tr(decodeURIComponent(Gn||""))}catch(Mt){tr(decodeURIComponent(Gn||""))}},[Ut]);const cn=()=>{Lt(encodeURIComponent(ur),Mn||null)},tn=Hn=>{Hn!==Mn&&(_n(Hn),Lt(encodeURIComponent(ur),Hn))};return te.createElement("div",{className:re()(se.input,un),style:Cn},!!Gt.length&&te.createElement("div",{className:se.dropdown},te.createElement("div",{className:se.text},(hn=Gt.find(Hn=>Hn.id===Mn))==null?void 0:hn.name,te.createElement("i",{className:"iconfont icon-zhankai4"}),te.createElement("b",{className:se.b1}),te.createElement("b",{className:se.b2})),te.createElement("div",{className:se.menu},Gt.map((Hn,Gn)=>te.createElement("div",{key:Gn,onClick:()=>tn(Hn.id)},Hn.name)))),te.createElement(ue.default,{onPressEnter:cn,value:ur,onChange:Hn=>{tr(Hn.target.value),sn(encodeURIComponent(Hn.target.value),Mn||null)},placeholder:Tn,variant:"borderless",allowClear:jn,onClear:()=>Lt("",Mn||null)}),te.createElement("i",{onClick:cn,className:"iconfont icon-sousuo9 font14 current"}))},ge={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"},xe=({value:Gt,onChange:Ut,className:Lt,total:sn,pageSize:un,style:Cn={}})=>{const Tn=Gt<2,jn=Gt>=Math.ceil(sn/un);return sn<=un?te.createElement(te.Fragment,null):te.createElement("div",{className:re()(ge.quickPager,Lt),style:Cn},te.createElement("div",{onClick:()=>{Tn||Ut(Gt-1,"prev")},className:Tn?ge.disabled:""},"\u4E0A\u4E00\u9875"),te.createElement("div",{onClick:()=>{jn||Ut(Gt+1,"next")},className:jn?ge.disabled:""},"\u4E0B\u4E00\u9875"))},Ae={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"},Ne=Te(29787),Be=Te(25399),De=Te(63139),we=Te(74128),Ce=Te(65862),Oe=Te(96908),je=Te(57177),Fe=Te(81378),ke=Te(2524),Ge=({className:Gt,dataSource:Ut=[],col:Lt=4,right:sn,bottom:un=23,precision:Cn=0,wrapWidth:Tn=1200,trackEventItems:jn,loading:hn})=>{const Mn=Math.floor((Tn-(Lt-1)*sn)/Lt);return te.createElement(Ne.Z,{spinning:hn},te.createElement("div",{className:re()(Ae.list,Gt)},!!Ut.length&&Ut.map((_n,ur)=>{const{name:tr,id:cn,identifier:tn,power:Hn,cover_image_id:Gn,pic:Mt}=_n;return te.createElement("div",{className:Ae.wrap,key:cn,style:{width:Mn,marginRight:(1+ur)%Lt===0?0:sn+Cn,marginBottom:un}},te.createElement("a",{target:"_blank",href:`/shixuns/${tn}/challenges`,className:Ae.li,onClick:Kt=>{Kt.preventDefault(),jn&&(0,Ce.L9)([jn]),Hn&&(0,Ce.xg)(`/shixuns/${tn}/challenges`)}},te.createElement("div",{className:Ae.img},te.createElement("img",{className:Ae.cover,src:`${Mt}`}),_n.is_jupyter&&te.createElement("img",{className:Ae.sign,src:Oe}),_n.is_jupyter_lab&&te.createElement("img",{className:Ae.sign,src:je}),_n.is_unity_3d&&te.createElement("img",{className:Ae.sign,src:Fe})),te.createElement("div",{className:Ae.name},te.createElement(Be.Z,{title:tr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},te.createElement("span",{className:Ae.e},tr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),te.createElement("div",{className:Ae.tags},te.createElement(Be.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},te.createElement("span",null,te.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),te.createElement("span",null,_n.challenges_count))),!!_n.myshixuns_count&&te.createElement(Be.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,_n.myshixuns_count))),te.createElement(Be.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},te.createElement("span",null,te.createElement("span",null,_n.level))),te.createElement("div",{className:Ae.rate},te.createElement(De.Z,{allowHalf:!0,disabled:!0,defaultValue:_n.score_info}),te.createElement("span",null,"\xA0",_n.score_info?`${_n.score_info}\u5206`:"5\u5206")))),!Hn&&te.createElement("div",{className:Ae.lockWrap},te.createElement("img",{src:`${we.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")))}),!Ut.length&&te.createElement(ke.Z,null)))},Ke=Te(61584),Ve={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",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},it="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",Le=Te(59301),tt=({className:Gt,dataSource:Ut=[],col:Lt=4,right:sn,bottom:un=23,precision:Cn=0,wrapWidth:Tn=1200,trackEventItems:jn,loading:hn,category:Mn,hiddenClick:_n,handleVery:ur=()=>!0,isCurrent:tr})=>{const cn=Math.floor((Tn-(Lt-1)*sn)/Lt);return Le.createElement(Ne.Z,{spinning:hn},Le.createElement("div",{className:re()(Ve.list,Gt)},!!Ut.length&&Ut.map((tn,Hn)=>{const{subject_identifier:Gn,id:Mt,identifier:Kt,power:St}=tn,Nt=tn.is_public!=0&&tn.is_public;return Le.createElement("div",{className:Ve.wrap,key:Mt,style:{width:cn,marginRight:(1+Hn)%Lt===0?0:sn+Cn,marginBottom:un}},Le.createElement("a",{className:Ve.li,onClick:Et=>{Et.preventDefault(),ur(tn==null?void 0:tn.first_category_url)&&(jn&&(0,Ce.L9)([jn]),(0,Ce.xg)(tn.first_category_url))}},Le.createElement("div",{className:Ve.top},Le.createElement(Be.Z,{title:tn.name},Le.createElement("div",{className:Ve.name},tn.name)),Le.createElement("img",{className:Ve.img,src:we.Z.IMG_SERVER+"/images/"+tn.avatar_url}),Le.createElement("div",{className:Ve.text,title:tn.creator},tn.creator),Gn&&Le.createElement("div",{className:Ve.btns},Le.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Le.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Nt&&Le.createElement("div",{className:Ve.sign},"\u516C\u5F00"),tr&&Le.createElement("div",{className:Ve.hidden,onClick:Et=>{Et.stopPropagation(),_n(tn)}},Le.createElement("i",{className:`iconfont ${Mn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Mn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),Le.createElement("div",{className:Ve.bottom},tn.visits>0&&Le.createElement(Be.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Le.createElement("span",null,Le.createElement("i",{className:"iconfont icon-liulanyan"}),Le.createElement("span",null,tn.visits))),tn.course_members_count>0&&Le.createElement(Be.Z,{title:"\u6210\u5458",placement:"bottom"},Le.createElement("span",null,Le.createElement("i",{className:"iconfont icon-chengyuan"}),tn.course_members_count)),tn.tasks_count>0&&Le.createElement(Be.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Le.createElement("span",null,Le.createElement("i",{className:"iconfont icon-zuoye"}),tn.tasks_count)),tn.is_end?Le.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Le.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!tn.is_accessible&&Le.createElement("div",{className:Ve.lockWrap},Le.createElement("img",{src:`${we.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Le.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ut.length&&Le.createElement(ke.Z,null)))},nt={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"},et=Te(65582),Ye=({dataSource:Gt=[],value:Ut,onChange:Lt,className:sn,style:un={},tabBarExtraContent:Cn})=>te.createElement("div",{className:re()(nt.tabs,sn),style:un},te.createElement("div",{className:nt.tabsWrap},Gt.map((Tn,jn)=>!(Tn!=null&&Tn.hide)&&te.createElement("aside",{className:nt.tab,onClick:()=>{Lt(Tn.id),Tn.link&&et.history.push(Tn.link)},key:jn},te.createElement("div",{className:Ut===Tn.id?nt.active:""},Tn.name),(Tn==null?void 0:Tn.resetCount)==null&&(Tn==null?void 0:Tn.total)!==void 0&&te.createElement("span",null,"\uFF08",Tn==null?void 0:Tn.total,"\uFF09"),(Tn==null?void 0:Tn.resetCount)!==void 0&&(Tn==null?void 0:Tn.total)!==void 0&&te.createElement(Be.Z,{title:(Tn==null?void 0:Tn.tip)!=null?Tn==null?void 0:Tn.tip:""},te.createElement("span",{style:{color:"#9096A3"}},"\uFF08",te.createElement("span",{style:{color:"#000"}},Tn==null?void 0:Tn.resetCount),"/",te.createElement("span",null,Tn==null?void 0:Tn.total),"\uFF09"))))),te.createElement("div",{className:nt.tabBar},Cn)),st=({className:Gt,style:Ut={},children:Lt})=>te.createElement("div",{className:re()(Gt),style:Ut},Lt),Qe={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"},ht=Te(75727),at=Te(93041);const qe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Re=({sortValue:Gt,dropValue:Ut,className:Lt,onSort:sn,onDrop:un,dataSource:Cn=qe})=>{var Tn;return te.createElement("div",{className:re()(Qe.orderWrap,Lt)},te.createElement(ht.Z,{dropdownRender:()=>te.createElement(at.default,null,Cn.map((jn,hn)=>te.createElement(at.default.Item,{key:hn,onClick:()=>un(jn.id)},jn.name)))},te.createElement("span",{className:Qe.orderTextWrap},(Tn=Cn.find(jn=>Ut===jn.id))==null?void 0:Tn.name)),te.createElement("span",{className:Qe.orderIconWrap},te.createElement("span",{className:Qe.orderAsc},te.createElement("i",{className:Gt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Qe.cursorPointer} ${Qe.active}`:`iconfont icon-sanjiaoxing-up font12 ${Qe.cursorPointer}`,onClick:()=>sn(Gt==="asc"?"desc":"asc")})),te.createElement("span",{className:Qe.orderDesc},te.createElement("i",{className:Gt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Qe.cursorPointer} ${Qe.active}`:`iconfont icon-sanjiaoxing-down font12 ${Qe.cursorPointer}`,onClick:()=>sn(Gt==="asc"?"desc":"asc")}))))},ne={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"},fe=Te(7939),Me=Object.defineProperty,He=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Ie=(Gt,Ut,Lt)=>Ut in Gt?Me(Gt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Gt[Ut]=Lt,$e=(Gt,Ut)=>{for(var Lt in Ut||(Ut={}))be.call(Ut,Lt)&&Ie(Gt,Lt,Ut[Lt]);if(He)for(var Lt of He(Ut))ve.call(Ut,Lt)&&Ie(Gt,Lt,Ut[Lt]);return Gt},We=(Gt,Ut)=>{var Lt={};for(var sn in Gt)be.call(Gt,sn)&&Ut.indexOf(sn)<0&&(Lt[sn]=Gt[sn]);if(Gt!=null&&He)for(var sn of He(Gt))Ut.indexOf(sn)<0&&ve.call(Gt,sn)&&(Lt[sn]=Gt[sn]);return Lt},Je=(Gt,Ut,Lt)=>new Promise((sn,un)=>{var Cn=hn=>{try{jn(Lt.next(hn))}catch(Mn){un(Mn)}},Tn=hn=>{try{jn(Lt.throw(hn))}catch(Mn){un(Mn)}},jn=hn=>hn.done?sn(hn.value):Promise.resolve(hn.value).then(Cn,Tn);jn((Lt=Lt.apply(Gt,Ut)).next())}),ot=Gt=>{var Ut=Gt,{className:Lt,style:sn,children:un,loading:Cn=!1,openLoading:Tn,onClick:jn=()=>{},size:hn="middle",shape:Mn="round"}=Ut,_n=We(Ut,["className","style","children","loading","openLoading","onClick","size","shape"]);const[ur,tr]=(0,te.useState)(!1);return te.createElement(fe.ZP,$e({onClick:(0,oe.throttle)(cn=>Je(void 0,null,function*(){Tn&&tr(!0);try{yield jn(cn)}catch(tn){console.log("error",tn)}Tn&&tr(!1)}),2e3,{leading:!0,trailing:!1}),className:re()(ne.btn,ne[`${hn}-${Mn}`],Lt),style:sn,size:hn,shape:Mn,loading:ur||Cn},_n),un)},ft={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"},lt=({className:Gt,style:Ut,children:Lt=null,onClick:sn,title:un})=>te.createElement("div",{className:re()(ft.head,Gt),style:Ut},te.createElement("span",{className:"primary-hover",onClick:sn},te.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),te.createElement("b",{title:un},un),te.createElement("div",{className:ft.node},Lt)),At={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"},Rt=({confirmShow:Gt=!0,confirmTitle:Ut,confirmClick:Lt,cancelShow:sn=!0,cancelTitle:un,cancelClick:Cn,className:Tn,style:jn,confirmLoading:hn=!1})=>te.createElement("div",{className:re()(At.btns,Tn),style:jn},Gt&&te.createElement(fe.ZP,{loading:hn,onClick:Lt,type:"primary",className:At.confirm},Ut),sn&&te.createElement(fe.ZP,{onClick:Cn,className:At.cancel},un)),Pt={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"},kt=({className:Gt,style:Ut={},LeftContent:Lt,children:sn,RightContent:un})=>te.createElement("div",{className:re()(Pt.fixedBottom,Gt),style:Ut},te.createElement("div",{className:Pt.wrap},te.createElement("div",{className:Pt.left},Lt),te.createElement("div",{className:Pt.center},sn),te.createElement("div",{className:Pt.right},un))),Dt={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"},It=({className:Gt,style:Ut={},dataSource:Lt=[]})=>te.createElement("div",{className:re()(Dt.crumbs,Gt),style:Ut},Lt.map((sn,un)=>un<Lt.length-1?te.createElement(te.Fragment,{key:un},sn.path||sn.onClick?te.createElement("span",{className:Dt.hover,onClick:sn!=null&&sn.onClick?sn.onClick:()=>et.history.push(sn.path)},sn.name):te.createElement("span",null,sn.name),te.createElement("span",null,"\xA0",">","\xA0")):te.createElement("span",{key:un,style:{color:"#5F6368"}},sn.name))),Vt=Te(11938),rn=Object.defineProperty,wt=Object.defineProperties,Ct=Object.getOwnPropertyDescriptors,Zt=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,yn=(Gt,Ut,Lt)=>Ut in Gt?rn(Gt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Gt[Ut]=Lt,Bn=(Gt,Ut)=>{for(var Lt in Ut||(Ut={}))en.call(Ut,Lt)&&yn(Gt,Lt,Ut[Lt]);if(Zt)for(var Lt of Zt(Ut))ln.call(Ut,Lt)&&yn(Gt,Lt,Ut[Lt]);return Gt},Wn=(Gt,Ut)=>wt(Gt,Ct(Ut)),gn=(Gt,Ut)=>{var Lt={};for(var sn in Gt)en.call(Gt,sn)&&Ut.indexOf(sn)<0&&(Lt[sn]=Gt[sn]);if(Gt!=null&&Zt)for(var sn of Zt(Gt))Ut.indexOf(sn)<0&&ln.call(Gt,sn)&&(Lt[sn]=Gt[sn]);return Lt};const{Countdown:Ln}=Vt.default;var In=Gt=>{var Ut=Gt,{onChange:Lt}=Ut,sn=gn(Ut,["onChange"]);const[un,Cn]=(0,te.useState)(null);(0,te.useEffect)(()=>{typeof un=="number"&&un>=0&&Lt(un)},[un]);const Tn=jn=>{const hn=Math.floor(jn/1e3);Cn(hn)};return te.createElement(Ln,Wn(Bn({},sn),{onChange:Tn}))}},31103:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Ot}});var te=Te(59301);function Ot(y,Pe){const ye=(0,te.useRef)();(0,te.useEffect)(()=>{ye.current=y}),(0,te.useEffect)(()=>{function z(){ye.current()}if(Pe!==null){let E=setInterval(z,Pe);return()=>clearInterval(E)}},[Pe])}},64006:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Ee}});var te=Te(59301),Ot=Te(37568),y=Te(28284),Pe=Te(6767),ye=Te(62957),z=Te(29787),E=Te(94968),re=Te(25399),oe=Te(89787),ee=Te(47889),de={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"},x=Te(38147),ae=Te(65862),ie=Te(83845),se=Te(1012),ue=Te(47257),pe=Te.n(ue),he=Te(49702),ge=Te(82636),me=Te(41867),xe=Te(65582),Ae=Te(59301),Ne=Object.defineProperty,Be=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Ce=(Ge,Ke,Ve)=>Ke in Ge?Ne(Ge,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Ge[Ke]=Ve,Oe=(Ge,Ke)=>{for(var Ve in Ke||(Ke={}))De.call(Ke,Ve)&&Ce(Ge,Ve,Ke[Ve]);if(Be)for(var Ve of Be(Ke))we.call(Ke,Ve)&&Ce(Ge,Ve,Ke[Ve]);return Ge},je=(Ge,Ke,Ve)=>new Promise((it,Le)=>{var Ue=et=>{try{nt(Ve.next(et))}catch(Ze){Le(Ze)}},tt=et=>{try{nt(Ve.throw(et))}catch(Ze){Le(Ze)}},nt=et=>et.done?it(et.value):Promise.resolve(et.value).then(Ue,tt);nt((Ve=Ve.apply(Ge,Ke)).next())});const Fe=Ot.default.TextArea,ke=({dataSetInfo:Ge,attachmentInfo:Ke,visible:Ve,user:it,dispatch:Le,onClose:Ue=()=>{},onSuccess:tt=()=>{}})=>{var nt,et;const[Ze,Ye]=(0,te.useState)([]),[Xe,st]=(0,te.useState)(!1),[Qe,ht]=(0,te.useState)(!1),[at]=y.default.useForm(),[qe,_e]=(0,te.useState)([]),[Re,ne]=(0,te.useState)({}),fe=(0,te.useRef)([]);(0,te.useEffect)(()=>{if(Ve){if(Ge){const{title:ot,is_public:ft,desc:ut,attachments:lt,data_set_tags:At}=Ge||{},yt=lt.map(Pt=>({id:String(Math.random()).slice(-6),name:Pt.title,response:{attachment_id:Pt.id},size:Pt.size,description:Pt.description||"",percent:100,status:"done"}));Ye(yt),_e(At);const Rt={title:ot,is_public:ft,desc:ut};at.setFieldsValue(Rt)}if(Ke){const ot=Ke.map(ft=>({id:String(Math.random()).slice(-6),name:ft.title,response:{attachment_id:ft.id},size:ft.size,description:ft.description||"",percent:100,status:"done"}));Ye(ot)}Me()}},[Ve]),(0,te.useEffect)(()=>{fe.current=Ze},[Ze]),(0,te.useEffect)(()=>{Ze!=null&&Ze.length?at.setFields([{name:"attachments",errors:[]}]):at.setFields([{name:"attachments",errors:["\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"]}])},[Ze.length]),(0,te.useEffect)(()=>{qe!=null&&qe.length?at.setFields([{name:"tag_ids",errors:[]}]):at.setFields([{name:"tag_ids",errors:["\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"]}])},[qe.length]);const Me=()=>je(void 0,null,function*(){ht(!0);const ot=yield(0,x.ZP)("/api/data_sets/extra_info.jsoin",{method:"get"});ot.status===0&&(ne(ot==null?void 0:ot.data),ht(!1))}),He={multiple:!0,withCredentials:!0,showUploadList:!1,beforeUpload:ot=>je(void 0,null,function*(){var ft,ut,lt,At,yt,Rt;if(((At=(lt=(ut=(ft=ot.name)==null?void 0:ft.split("."))==null?void 0:ut.slice(0,-1))==null?void 0:lt.join("."))==null?void 0:At.length)>60)return Pe.ZP.warning(`\u300A${ot.name}\u300B\u6587\u4EF6\u540D\u79F0\u8FC7\u957F\uFF0C\u65E0\u6CD5\u4E0A\u4F20`),Promise.reject();if([...Re.data_set_filenames,...fe.current.map(It=>It.name)].includes(ot.name))return Pe.ZP.warning(`\u300A${ot.name}\u300B\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`),Promise.reject();const Tt=ot.size/1024/1024/1024;let kt=Re==null?void 0:Re.data_sets_filesize;if(fe.current.forEach(It=>{kt+=It==null?void 0:It.size}),kt=kt/1024/1024/1024,(0,me.Ny)()){if(Tt>50)return Pe.ZP.warning(`\u300A${ot.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(Tt>2)return Pe.ZP.warning(`\u300A${ot.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(kt+Tt>((yt=it==null?void 0:it.userInfo)==null?void 0:yt.cloud_space)&&!(Re!=null&&Re.current_user_no_limit))return Pe.ZP.warning(`\u300A${ot.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u50A8\u5B58\u7A7A\u95F4\u5927\u5C0F\u9650\u5236(${(Rt=it==null?void 0:it.userInfo)==null?void 0:Rt.cloud_space}GB)`),Promise.reject();const gt={id:String(Math.random()).slice(-6),name:ot.name,size:ot.size,file:ot,description:"",percent:0,status:"uploading"};return Ie(gt,{login:Re==null?void 0:Re.login,container_type:"DataSet",container_id:null,description:"",realFileName:!1}),Ye(It=>[...It,gt]),Promise.reject()})},be=ot=>je(void 0,null,function*(){var ft,ut,lt;const At=fe.current.find(yt=>yt.name===ot.name);(ft=At==null?void 0:At.response)!=null&&ft.attachment_id&&(yield(0,x.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:{attachment_id:(ut=At==null?void 0:At.response)==null?void 0:ut.attachment_id}})),At!=null&&At.client&&((lt=At==null?void 0:At.client)==null||lt.cancel()),Ye(yt=>yt.filter(Rt=>Rt.name!==ot.name))}),ve=()=>{var ot;(ot=fe.current)==null||ot.forEach(ft=>{var ut;ft!=null&&ft.client&&((ut=ft==null?void 0:ft.client)==null||ut.cancel())})};console.log(Ze,"fileList1");const Ie=(ot,ft)=>je(void 0,null,function*(){var ut,lt,At,yt,Rt,Pt,Tt,kt,Dt;ft.file_name=ot.name;const gt=ot.name,It=yield(0,x.ZP)("/api/buckets/get_data_set_token.json",{method:"get"});if((It==null?void 0:It.status)!==0){Ye(Ct=>(Ct[Ct.findIndex(Zt=>Zt.name===gt)].status="error",[...Ct])),Pe.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}It.data=JSON.parse((0,ie.pe)(It.data));const Vt=new(pe())({endpoint:(ut=It==null?void 0:It.data)==null?void 0:ut.end_point,region:(lt=It==null?void 0:It.data)==null?void 0:lt.region,accessKeyId:(At=It==null?void 0:It.data)==null?void 0:At.access_key_id,accessKeySecret:(yt=It==null?void 0:It.data)==null?void 0:yt.access_key_secret,bucket:(Rt=It==null?void 0:It.data)==null?void 0:Rt.bucket,stsToken:(Pt=It==null?void 0:It.data)==null?void 0:Pt.security_token}),rn=ot.name.split(".");rn.pop();const wt=ft.realFileName?rn.join("."):(0,se.Z)();Vt.multipartUpload(`datasets/${ft==null?void 0:ft.login}/${wt}${gt.indexOf(".")>-1?"."+gt.split(".").pop():""}`,new Blob([ot.file],{type:ot.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Ct,Zt,en)=>{console.log("\u8FDB\u5EA6",Ct,Zt,en),Ye(ln=>{const yn=ln.findIndex(Bn=>Bn.name===gt);return ln[yn].client=Vt,ln[yn].percent=Ct*100,ln[yn].checkpoint=Zt,[...ln]})},checkpoint:(kt=fe.current[(Tt=fe.current)==null?void 0:Tt.findIndex(Ct=>Ct.name===gt)])==null?void 0:kt.checkpoint,callback:{customValue:{id:gt+""},url:(Dt=It==null?void 0:It.data)==null?void 0:Dt.callback_url,host:It==null?void 0:It.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,x.rz)(ft)}}).then(function(Ct){Ye(Zt=>{var en,ln,yn;const Bn=Zt.findIndex(gn=>gn.name===gt);let Wn="done";return((en=Ct.data)==null?void 0:en.status)===0?Zt[Bn].response=(ln=Ct.data)==null?void 0:ln.data:(Pe.ZP.warning((yn=Ct.data)==null?void 0:yn.message),Wn="error"),Zt[Bn].status=Wn,[...Zt]})}).catch(function(Ct){console.log("\u63A5\u53E3\u9519\u8BEF\uFF1A",Ct),(Ct==null?void 0:Ct.name)!=="cancel"&&Ye(Zt=>{const en=Zt.findIndex(ln=>ln.name===gt);return Zt[en].status="error",[...Zt]})})}),$e=ot=>(ot=ot||"",ot=String(ot),ot=ot.replace(/\s+/g,""),ot),We=()=>je(void 0,null,function*(){var ot;const ft=at.getFieldsValue(),{title:ut,is_public:lt,desc:At}=ft,yt=[];if($e(ut)||yt.push({name:"title",errors:["\u6570\u636E\u96C6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"]}),Ze!=null&&Ze.length||yt.push({name:"attachments",errors:["\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"]}),qe!=null&&qe.length||yt.push({name:"tag_ids",errors:["\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"]}),yt.length){at.setFields(yt);return}const Rt=Ze.map(Dt=>{var gt;return{attachment_id:(gt=Dt.response)==null?void 0:gt.attachment_id,description:Dt.description}});st(!0);const Pt=(0,ae.TG)(),Tt={title:ft.title,attachments:Rt,tag_ids:qe.map(Dt=>Dt.id),is_public:lt,desc:At,homework_common_id:Pt||void 0};let kt;Ge?kt=yield(0,x.ZP)(`/api/data_sets/${Ge==null?void 0:Ge.id}.json`,{method:"put",body:Tt}):kt=yield(0,x.ZP)("/api/data_sets.json",{method:"post",body:Tt}),kt.status===0&&(Pe.ZP.success("\u64CD\u4F5C\u6210\u529F"),tt((ot=kt==null?void 0:kt.data)==null?void 0:ot.data_set_id),Le({type:"user/getUserInfo"})),st(!1)}),Je=ot=>{_e(ot)},ct=Ze.some(ot=>ot.status==="uploading");return console.log("fileList",Ze),Ae.createElement(ye.default,{destroyOnClose:!0,confirmLoading:Xe,bodyStyle:{paddingLeft:16,paddingTop:20},okButtonProps:{disabled:ct},title:Ge?"\u7F16\u8F91\u6570\u636E\u96C6":"\u521B\u5EFA\u6570\u636E\u96C6",width:660,onCancel:()=>{if(ct){ye.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:()=>{Ue()}});return}Ue()},okText:"\u786E\u5B9A",onOk:We,open:Ve,afterClose:()=>{Ye([]),_e([]),st(!1),ht(!1),ve(),at.resetFields()}},Ae.createElement(z.Z,{spinning:Qe},!(Re!=null&&Re.current_user_no_limit)&&!Qe&&Ae.createElement("div",{className:de.prompt},Ae.createElement("i",{className:"icon icon-tishi11 font12 mr10"}),"\u6E29\u99A8\u63D0\u793A:\u5E73\u53F0\u4E3A\u7528\u6237\u63D0\u4F9B\u4E86",Ae.createElement("span",{style:{color:"#3061D0",margin:"0 5px"}},(nt=it==null?void 0:it.userInfo)==null?void 0:nt.cloud_space,"GB"),"\u7684\u6570\u636E\u96C6\u5B58\u50A8\u7A7A\u95F4\uFF0C\u60A8\u76EE\u524D\u5DF2\u4F7F\u7528\u4E86",Ae.createElement("span",{style:{color:"#FF9D18",margin:"0 5px"}},((Re==null?void 0:Re.data_sets_filesize)/(1024*1024*1024)).toFixed(2),"GB")),Ae.createElement(y.default,{form:at,colon:!1,labelCol:{span:4},wrapperCol:{span:20},size:"large"},Ae.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"}]},Ae.createElement(Ot.default,{placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u96C6\u540D\u79F0",showCount:!0,maxLength:60})),Ae.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"}]},Ae.createElement("div",{style:{position:"relative"}},Ae.createElement(E.default,Oe({},He),Ae.createElement(ge.op,{style:{borderRadius:2}},Ae.createElement("i",{className:"icon-shangchuan3 mr5 font14"}),"\u4E0A\u4F20\u6587\u4EF6")),Ae.createElement("div",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px",position:"absolute",left:"115px",top:"-2px"}},Ae.createElement("div",null,"1.\u5355\u4E2A\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7",(0,me.Ny)()?50:2,"G"),Ae.createElement("div",null,"2.",Re!=null&&Re.current_user_no_limit?"":`\u4E2A\u4EBA\u4E0A\u4F20\u603B\u4F53\u79EF\u4E0D\u8D85\u8FC7${(et=it==null?void 0:it.userInfo)==null?void 0:et.cloud_space}GB\uFF0C`,"\u6587\u4EF6\u540D\u4E0D\u8D85\u8FC760\u5B57")))),Ae.createElement("div",{className:de.box},Ze.map(ot=>Ae.createElement("div",{key:ot.id,className:de.row},Ae.createElement("div",{className:de.icon},ot.status==="done"&&Ae.createElement("i",{className:"iconfont icon-wancheng",style:{color:"#19CB70"}}),ot.status==="error"&&Ae.createElement("i",{className:"iconfont icon-cuowu",style:{color:"#E30000",marginLeft:1,fontSize:13}})),Ae.createElement("div",{style:{width:176}},Ae.createElement(re.Z,{title:ot==null?void 0:ot.name},Ae.createElement("div",{style:{color:ot.status==="error"?"#E30000":"#3061D0",textDecoration:"underline"}},(0,ae.tP)(ot==null?void 0:ot.name,9))),ot.status==="uploading"&&Ae.createElement(oe.Z,{strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:ot.percent,showInfo:!1,size:[168,4]})),Ae.createElement("i",{onClick:()=>be(ot),className:"iconfont icon-shanchu14 font14 ml20 mr20",style:{cursor:"pointer",color:"#F65160"}}),Ae.createElement(Ot.default,{value:ot.description,onChange:ft=>{Ye(ut=>{const lt=ut.findIndex(At=>At.name===ot.name);return ut[lt].description=ft.target.value,[...ut]})},placeholder:"\u5907\u6CE8\u8BF4\u660E",showCount:!0,maxLength:255,style:{width:"286px"}})))),Ae.createElement(y.default.Item,{label:"\u6807\u7B7E",name:"tag_ids",rules:[{required:!0,message:"\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"}]},Ae.createElement(he.Z,{isTagsValue:!0,width:"514",selectWidth:"514",placeholder:"\u6DFB\u52A0\u6807\u7B7E",getDataSet:Je,tags:qe})),Ae.createElement(y.default.Item,{initialValue:0,label:"\u662F\u5426\u516C\u5F00",name:"is_public",rules:[{required:!0}]},Ae.createElement(ee.ZP.Group,null,Ae.createElement(ee.ZP,{value:1},"\u662F"),Ae.createElement(ee.ZP,{value:0},"\u5426"))),Ae.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"),Ae.createElement(y.default.Item,{label:"\u7B80\u4ECB\u6458\u8981",name:"desc",style:{marginBottom:0}},Ae.createElement(Fe,{placeholder:"\u6B64\u6570\u636E\u96C6\u4E3B\u8981\u5305\u542B\u4EC0\u4E48\u5185\u5BB9\uFF0C\u53EF\u4EE5\u7528\u6765\u505A\u4EC0\u4E48\uFF1F"})))))};var Ee=(0,xe.connect)(({user:Ge,dispatch:Ke})=>({user:Ge,dispatch:Ke}))(ke)},17734:function(wn,Yt,Te){"use strict";Te.r(Yt),Te.d(Yt,{default:function(){return In}});var te=Te(59301),Ot=Te(65582),y=Te(29787),Pe=Te(91882),ye=Te(25399),z=Te(62957),E=Te(62673),re=Te(6767),oe=Te(75727),ee=Te(47889),de=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(74128),ie={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(25374),ue=Te(95097),pe=Te(28284),he=Te(37568),ge=Te(94968),me=Te(89787),xe=Te(27474),Ae=Te(66649),Ne=Te.n(Ae),Be=Te(65862),De=Te(79809),we=Te(38147),Ce=Te(47257),Oe=Te.n(Ce),je=Te(83845),Fe=Te(1012),ke=Te(41867),Ee=Te(59301),Ge=Object.defineProperty,Ke=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,tt=(Gt,Ut,Lt)=>Ut in Gt?Ge(Gt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Gt[Ut]=Lt,nt=(Gt,Ut)=>{for(var Lt in Ut||(Ut={}))Le.call(Ut,Lt)&&tt(Gt,Lt,Ut[Lt]);if(it)for(var Lt of it(Ut))Ue.call(Ut,Lt)&&tt(Gt,Lt,Ut[Lt]);return Gt},et=(Gt,Ut)=>Ke(Gt,Ve(Ut)),Ze=(Gt,Ut,Lt)=>new Promise((sn,un)=>{var Cn=hn=>{try{jn(Lt.next(hn))}catch(Mn){un(Mn)}},Tn=hn=>{try{jn(Lt.throw(hn))}catch(Mn){un(Mn)}},jn=hn=>hn.done?sn(hn.value):Promise.resolve(hn.value).then(Cn,Tn);jn((Lt=Lt.apply(Gt,Ut)).next())});const Ye=({polls:Gt,globalSetting:Ut,loading:Lt,dispatch:sn,user:un,dataSetInfo:Cn,indexType:Tn,getInfo:jn})=>{const hn=(0,Ot.useParams)(),[Mn,_n]=(0,te.useState)(!1),[ur,tr]=(0,te.useState)(0),cn=(0,te.useRef)(null),tn=(0,te.useRef)(null),[Hn,Gn]=(0,te.useState)(""),[Mt,Kt]=(0,te.useState)(""),[St]=pe.default.useForm(),[Nt,Et]=(0,te.useState)([]),zt=(0,te.useRef)([]),[bt,Wt]=(0,te.useState)(!1),[Ft,qt]=(0,te.useState)(!1),[_t,$t]=(0,te.useState)(""),Ht=Nt.some(kn=>kn.status==="uploading"),[Xt,En]=(0,te.useState)(!1),[On,Rn]=(0,te.useState)([]),[rr,cr]=(0,te.useState)(!1),[mr,nr]=(0,te.useState)(0),[Un,Yn]=(0,te.useState)({page:1,limit:10,type:"",id:""}),pr=(kn,Fn)=>Ze(void 0,null,function*(){cr(!0);const Nn=yield(0,xe.iw)({container_type:kn||(Un==null?void 0:Un.type),container_id:Fn||(Un==null?void 0:Un.id),page:Un.page,limit:Un.limit});Rn(Nn==null?void 0:Nn.data),nr(Nn==null?void 0:Nn.total_count),cr(!1)});(0,te.useEffect)(()=>{var kn;((kn=cn==null?void 0:cn.current)==null?void 0:kn.clientHeight)>80?tr(1):tr(0)},[Hn]),(0,te.useEffect)(()=>{zt.current=Nt},[Nt]),(0,te.useEffect)(()=>{Gn(Cn==null?void 0:Cn.introduce),Kt(Cn==null?void 0:Cn.introduce)},[Cn==null?void 0:Cn.introduce]);const Sr={multiple:!1,withCredentials:!0,showUploadList:!1,fileList:Nt==null?void 0:Nt.map(kn=>kn.file),beforeUpload:kn=>Ze(void 0,null,function*(){var Fn,Nn,ir,br,Pr;if(((br=(ir=(Nn=(Fn=kn.name)==null?void 0:Fn.split("."))==null?void 0:Nn.slice(0,-1))==null?void 0:ir.join("."))==null?void 0:br.length)>60)return re.ZP.warning(`\u300A${kn.name}\u300B\u6587\u4EF6\u540D\u79F0\u8FC7\u957F\uFF0C\u65E0\u6CD5\u4E0A\u4F20`),Promise.reject();if([...zt.current.map(Ir=>Ir.name)].includes(kn.name))return re.ZP.warning(`\u300A${kn.name}\u300B\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`),Promise.reject();if(kn.size/1024/1024/1024>2)return re.ZP.warning(`\u300A${kn.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 Wr={id:String(Math.random()).slice(-6),name:kn.name,size:kn.size,file:kn,description:"",percent:0,status:"uploading"};return qn(Wr,{login:(Pr=un==null?void 0:un.userInfo)==null?void 0:Pr.login,container_type:"DataSet",container_id:null,description:"",realFileName:!1}),Et(Ir=>[...Ir,Wr]),Promise.reject()})},wr=kn=>Ze(void 0,null,function*(){var Fn,Nn,ir;const br=zt.current.find(Pr=>Pr.name===kn.name);(Fn=br==null?void 0:br.response)!=null&&Fn.attachment_id&&(yield(0,we.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:{attachment_id:(Nn=br==null?void 0:br.response)==null?void 0:Nn.attachment_id}})),br!=null&&br.client&&((ir=br==null?void 0:br.client)==null||ir.cancel()),Et(Pr=>Pr.filter(Kr=>Kr.name!==kn.name))}),Cr=()=>{var kn;(kn=zt.current)==null||kn.forEach(Fn=>{var Nn;Fn!=null&&Fn.client&&((Nn=Fn==null?void 0:Fn.client)==null||Nn.cancel())})},qn=(kn,Fn)=>Ze(void 0,null,function*(){var Nn,ir,br,Pr,Kr,Nr,Wr,Ir,ni;Fn.file_name=kn.name;const ti=kn.name,oi=yield(0,we.ZP)("/api/buckets/get_data_set_token.json",{method:"get"});if((oi==null?void 0:oi.status)!==0){Et(ei=>(ei[ei.findIndex(Ar=>Ar.name===ti)].status="error",[...ei])),re.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}oi.data=JSON.parse((0,je.pe)(oi.data));const fi=new(Oe())({endpoint:(Nn=oi==null?void 0:oi.data)==null?void 0:Nn.end_point,region:(ir=oi==null?void 0:oi.data)==null?void 0:ir.region,accessKeyId:(br=oi==null?void 0:oi.data)==null?void 0:br.access_key_id,accessKeySecret:(Pr=oi==null?void 0:oi.data)==null?void 0:Pr.access_key_secret,bucket:(Kr=oi==null?void 0:oi.data)==null?void 0:Kr.bucket,stsToken:(Nr=oi==null?void 0:oi.data)==null?void 0:Nr.security_token}),xi=kn.name.split(".");xi.pop();const hi=Fn.realFileName?xi.join("."):(0,Fe.Z)();fi.multipartUpload(`datasets/${Fn==null?void 0:Fn.login}/${hi}${ti.indexOf(".")>-1?"."+ti.split(".").pop():""}`,new Blob([kn.file],{type:kn.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(ei,Ar,Dr)=>{console.log("\u8FDB\u5EA6",ei,Ar,Dr),console.log("client--",fi),Et(ar=>{const Pn=ar.findIndex(Kn=>Kn.name===ti);return Pn!==-1&&(ar[Pn].client=fi,ar[Pn].percent=ei*100,ar[Pn].checkpoint=Ar),[...ar]})},checkpoint:(Ir=zt.current[(Wr=zt.current)==null?void 0:Wr.findIndex(ei=>ei.name===ti)])==null?void 0:Ir.checkpoint,callback:{customValue:{id:ti+""},url:(ni=oi==null?void 0:oi.data)==null?void 0:ni.callback_url,host:oi==null?void 0:oi.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,we.rz)(Fn)}}).then(function(ei){Et(Ar=>{var Dr,ar,Pn;const Kn=Ar.findIndex($n=>$n.name===ti);let Xn="done";return Kn!==-1&&(((Dr=ei.data)==null?void 0:Dr.status)===0?Ar[Kn].response=(ar=ei.data)==null?void 0:ar.data:(re.ZP.warning((Pn=ei.data)==null?void 0:Pn.message),Xn="error"),Ar[Kn].status=Xn),[...Ar]})}).catch(function(ei){console.log("\u63A5\u53E3\u9519\u8BEF\uFF1A",ei),(ei==null?void 0:ei.name)!=="cancel"&&Et(Ar=>{const Dr=Ar.findIndex(ar=>ar.name===ti);return Dr!==-1&&(Ar[Dr].status="error"),[...Ar]})})});return Ee.createElement("div",{className:ie.content},!Mn&&!Hn&&Tn&&Ee.createElement("div",{className:ie.introduceNoData,onClick:()=>{_n(!0)}},Ee.createElement("div",{className:ie.introduceAdd},Ee.createElement("i",{className:"icon icon-tianjia4 mr5 font12"})," \u6DFB\u52A0\u6570\u636E\u96C6\u4ECB\u7ECD"),Ee.createElement("div",{className:ie.introduceText},"\u8BA9\u4F60\u7684\u6570\u636E\u96C6\u66F4\u53D7\u6B22\u8FCE")),!Mn&&Hn&&Ee.createElement("div",{className:ie.introduceContent},Ee.createElement("div",{className:ie.introduceTitle},"\u6570\u636E\u96C6\u4ECB\u7ECD",Tn&&Ee.createElement("i",{className:"icon icon-bianji9 font14 ml10",style:{color:"#3061D0",cursor:"pointer"},onClick:()=>{_n(!0)}})),Ee.createElement("div",{className:ie.introContentWrap},Ee.createElement("div",null,Ee.createElement("div",{ref:tn,style:ur>0?{height:ur===1?80:"auto",overflow:ur===1?"hidden":"auto"}:{paddingRight:0}},Ee.createElement("div",{ref:cn},Ee.createElement(ue.Z,{value:Hn,style:{fontSize:"14px"}}))),!!ur&&Ee.createElement(te.Fragment,null,ur===1?Ee.createElement("div",{onClick:()=>{tr(2)},className:ie.action},"\u5C55\u5F00",Ee.createElement("i",{className:"iconfont icon-zhankaixiaojiantou",style:{fontSize:"10px",marginLeft:"3px"}})):Ee.createElement("div",{onClick:()=>{tr(1)},className:ie.action},"\u6536\u8D77",Ee.createElement("i",{className:"iconfont icon-shouqixiaojiantou",style:{fontSize:"10px",marginLeft:"3px"}})))))),Mn&&Ee.createElement("div",{style:{marginTop:"30px"}},Ee.createElement(se.Z,{watch:!0,onChange:kn=>{Kt(kn)},defaultValue:Mt,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26"}),Ee.createElement("div",{className:ie.introduceButton},Ee.createElement("div",{className:ie.close,onClick:kn=>{kn.stopPropagation(),_n(!1)}},"\u53D6\u6D88"),Ee.createElement("div",{className:ie.submit,onClick:kn=>{kn.stopPropagation(),(0,xe.R2)({id:hn==null?void 0:hn.id,introduce:Mt}).then(Fn=>{(Fn==null?void 0:Fn.status)==0&&(re.ZP.success("\u64CD\u4F5C\u6210\u529F"),_n(!1),jn(!0))})}},"\u786E\u8BA4"))),Ee.createElement("div",{className:ie.fileTable},Ee.createElement("div",null,"\u6587\u4EF6\u5217\u8868"),Tn&&Ee.createElement("div",{className:ie.addBtn,onClick:()=>{Wt(!0)}},"\u4E0A\u4F20\u6587\u4EF6")),Ee.createElement(de.default,{dataSource:Cn==null?void 0:Cn.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:kn=>Ee.createElement("span",{style:{color:"#666666"}},kn?Ne()(kn).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:(kn,Fn)=>Ee.createElement("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:()=>Ze(void 0,null,function*(){var Nn;((0,ke.Ny)()||((Nn=un==null?void 0:un.userInfo)==null?void 0:Nn.login)==="mfflo3p2e")&&(En(!0),Un.type=Fn==null?void 0:Fn.container_type,Un.id=Fn==null?void 0:Fn.container_id,Un.page=1,Un.limit=10,Yn(nt({},Un)),yield pr(Fn==null?void 0:Fn.container_type,Fn==null?void 0:Fn.container_id))})},kn||"0")},{title:"\u64CD\u4F5C",align:"right",dataIndex:"role",width:Tn?130:60,render:(kn,Fn,Nn)=>Ee.createElement("span",{style:{color:"#3061D0"}},Ee.createElement("div",{style:{display:"flex"}},Ee.createElement("div",{style:{marginRight:"10px",color:"#3061D0",cursor:"pointer"},onClick:()=>Ze(void 0,null,function*(){if(!(0,ke.bg)()){sn({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}});return}yield(0,Be.Nd)(Fn.title,Fn==null?void 0:Fn.download_url),yield(0,xe.SG)({id:Fn==null?void 0:Fn.id}),jn()})},"\u4E0B\u8F7D"),Tn&&Ee.createElement("div",{style:{marginRight:"10px",color:"#3061D0",cursor:"pointer"},onClick:()=>{var ir,br,Pr,Kr;let Nr=(br=Fn==null?void 0:Fn.title)==null?void 0:br.substring(((ir=Fn==null?void 0:Fn.title)==null?void 0:ir.lastIndexOf("."))+1);St.setFieldsValue({title:(Kr=Fn==null?void 0:Fn.title)==null?void 0:Kr.substring(0,(Pr=Fn==null?void 0:Fn.title)==null?void 0:Pr.lastIndexOf(".")),description:Fn==null?void 0:Fn.description}),z.default.confirm({icon:null,title:"\u7F16\u8F91",width:700,centered:!0,content:Ee.createElement("div",null,Ee.createElement(pe.default,{form:St,colon:!1,labelCol:{span:3},style:{marginBottom:"-20px"},wrapperCol:{span:21}},Ee.createElement(pe.default.Item,{label:"\u6587\u4EF6\u540D\u79F0",name:"title",rules:[{required:!0,message:"\u5FC5\u586B\u9879"}]},Ee.createElement(he.default,{placeholder:"\u6587\u4EF6\u540D\u79F0\u6700\u591A\u53EF\u8F93\u5165255\u5B57",size:"large",suffix:Ee.createElement("span",null,".",Nr)})),Ee.createElement(pe.default.Item,{label:"\u5907\u6CE8",name:"description"},Ee.createElement(De.Z,{placeholder:"\u5907\u6CE8\u8BF4\u660E\uFF0C\u6700\u591A255\u5B57",size:"large"})))),onOk:()=>Ze(void 0,null,function*(){yield St.validateFields(),(0,xe.A0)({id:hn==null?void 0:hn.id,attachment_id:Fn.id,filename:St.getFieldValue("title")+"."+Nr,description:St.getFieldValue("description")}).then(Wr=>{(Wr==null?void 0:Wr.status)==0&&(re.ZP.success("\u7F16\u8F91\u6210\u529F"),jn())})})})}},"\u7F16\u8F91"),Tn&&Ee.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:()=>Ze(void 0,null,function*(){(0,xe.Il)({attachment_id:Fn==null?void 0:Fn.id}).then(ir=>{(ir==null?void 0:ir.status)==0&&(re.ZP.success("\u5220\u9664\u6210\u529F"),sn({type:"user/getUserInfo"}),jn(!0))})})})}},"\u5220\u9664")))}]}),Ee.createElement(z.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:bt,title:"\u4E0A\u4F20\u6587\u4EF6",okButtonProps:{loading:Ft,disabled:Ht},width:"1000px",onOk:()=>Ze(void 0,null,function*(){const kn=Nt.map(Nn=>{var ir;return{attachment_id:(ir=Nn.response)==null?void 0:ir.attachment_id,description:_t}});if(Nt.length===0){re.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u6587\u4EF6\uFF01");return}qt(!0);const Fn=yield(0,we.ZP)(`/api/data_sets/${hn==null?void 0:hn.id}/upload_attachments.json`,{method:"post",body:{attachments:kn}});(Fn==null?void 0:Fn.status)==0&&(re.ZP.success("\u4E0A\u4F20\u6210\u529F\uFF01"),jn(),Wt(!1),sn({type:"user/getUserInfo"})),qt(!1)}),onCancel:()=>{if(Ht){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:()=>{Wt(!1)}});return}Wt(!1)},afterClose:()=>{Et([]),$t(""),qt(!1),Cr()}},Ee.createElement("div",{className:ie.wrap},Ee.createElement("div",{className:"mb10"},Ee.createElement("span",{style:{color:"#ff4d4f",marginRight:"5px"}},"*"),"\u9009\u62E9\u6587\u4EF6 ",Ee.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC72GB)")),Ee.createElement("div",null,Ee.createElement(ge.default.Dragger,et(nt({},Sr),{height:300}),Ee.createElement("div",null,Ee.createElement("i",{className:`iconfont icon-shangchuan font50 ${ie.colorBlue}`})),Ee.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",Ee.createElement("span",{className:`${ie.colorBlue} ml5`},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),Ee.createElement("div",{className:ie.box},Nt.map(kn=>Ee.createElement("div",{key:kn.id,className:ie.row},Ee.createElement("div",{style:{display:"flex",alignItems:"center"}},Ee.createElement("div",{className:ie.icon},kn.status==="done"&&Ee.createElement("i",{className:"iconfont icon-wancheng",style:{color:"#19CB70"}}),kn.status==="error"&&Ee.createElement("i",{className:"iconfont icon-cuowu",style:{color:"#E30000",marginLeft:1,fontSize:13}})),Ee.createElement("div",{style:{flex:1}},Ee.createElement(ye.Z,{title:kn==null?void 0:kn.name},Ee.createElement("div",{style:{width:"100%",color:kn.status==="error"?"#E30000":"#3061D0",textDecoration:"underline"}},(0,Be.tP)(kn==null?void 0:kn.name,9))),kn.status==="uploading"&&Ee.createElement(me.Z,{strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:kn.percent,showInfo:!1,style:{width:"900px"}}))),Ee.createElement("i",{onClick:()=>wr(kn),className:"iconfont icon-shanchu14 font14 ml20",style:{cursor:"pointer",color:"#F65160"}})))),Ee.createElement("div",{style:{marginTop:"20px"}},"\u5907\u6CE8\uFF1A"),Ee.createElement("div",null,Ee.createElement(he.default,{allowClear:!0,value:_t,onChange:kn=>{$t(kn.target.value)},bordered:!1,showCount:!0,maxLength:255,placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))),Ee.createElement(z.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:Xt,title:"\u4E0B\u8F7D\u4FE1\u606F",width:"730px",onCancel:()=>{En(!1)},footer:null},Ee.createElement("div",null,Ee.createElement(de.default,{dataSource:On,scroll:{y:47*6},className:"mt10 mb10",loading:rr,pagination:{total:mr||0,onChange:(kn,Fn)=>Ze(void 0,null,function*(){Un.page=kn,Un.limit=Fn,Yn(nt({},Un)),yield pr()}),onShowSizeChange:(kn,Fn)=>Ze(void 0,null,function*(){Un.page=1,Un.limit=Fn,Yn(nt({},Un)),yield pr()}),current:Un==null?void 0:Un.page,pageSize:Un==null?void 0:Un.limit,showTotal:kn=>Ee.createElement(Ee.Fragment,null,"\u5171",Ee.createElement("span",{className:"ml5 mr5",style:{color:"#3061d0"}},kn),"\u6761\u6570\u636E")},columns:[{title:"\u67E5\u770B\u4EBA",align:"left",width:150,dataIndex:"real_name",ellipsis:!0,render:kn=>Ee.createElement("span",null,kn||"--")},{title:"\u5355\u4F4D",align:"left",width:260,ellipsis:!0,dataIndex:"school_name",render:kn=>Ee.createElement("span",null,kn||"--")},{title:"\u90E8\u95E8",align:"left",width:150,ellipsis:!0,dataIndex:"department_name",render:kn=>Ee.createElement("span",null,kn||"--")},{title:"\u6240\u9009\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,render:kn=>Ee.createElement("span",{style:{color:"#666666"}},kn?Ne()(kn).format("YYYY-MM-DD"):"--")}]}))))};var Xe=(0,Ot.connect)(({polls:Gt,loading:Ut,user:Lt,globalSetting:sn})=>({polls:Gt,globalSetting:sn,user:Lt,loading:Ut.effects}))(Ye),st=Te(26227),Qe=Te(77019),ht=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"},_e=Te(16209),Re=Te(59301),ne=Object.defineProperty,fe=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Ie=(Gt,Ut,Lt)=>Ut in Gt?ne(Gt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Gt[Ut]=Lt,$e=(Gt,Ut)=>{for(var Lt in Ut||(Ut={}))be.call(Ut,Lt)&&Ie(Gt,Lt,Ut[Lt]);if(He)for(var Lt of He(Ut))ve.call(Ut,Lt)&&Ie(Gt,Lt,Ut[Lt]);return Gt},We=(Gt,Ut)=>fe(Gt,Me(Ut)),Je=(Gt,Ut,Lt)=>new Promise((sn,un)=>{var Cn=hn=>{try{jn(Lt.next(hn))}catch(Mn){un(Mn)}},Tn=hn=>{try{jn(Lt.throw(hn))}catch(Mn){un(Mn)}},jn=hn=>hn.done?sn(hn.value):Promise.resolve(hn.value).then(Cn,Tn);jn((Lt=Lt.apply(Gt,Ut)).next())});Ne().locale("ZH-cn");function ct({user:Gt,vlist:Ut=[],dispatch:Lt,params:sn,id:un,memo_replies:Cn,forumsDetail:Tn}){return Re.createElement("aside",{className:qe.comment},Ut.map(function(jn,hn){var Mn,_n;return Re.createElement(Qe.Z,{key:hn,className:qe.commentItem},Re.createElement(ht.Z,{span:24},Re.createElement(Qe.Z,null,Re.createElement(ht.Z,{flex:"1"},Re.createElement("a",{href:`/users/${jn.user_login}`,target:"_blank",style:{color:"#9096A3",fontSize:"12px"}},jn==null?void 0:jn.username),Re.createElement("span",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px"}},jn.time)),(jn.can_delete||jn.user_id===((Mn=Gt.userInfo)==null?void 0:Mn.user_id)||jn.user_login===((_n=Gt.userInfo)==null?void 0:_n.login))&&Re.createElement(ht.Z,{className:"forums-comment-delete",style:{display:"none"}},Re.createElement(ye.Z,{title:"\u5220\u9664"},Re.createElement(st.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 ur=yield(0,_e.sW)({id:jn.id,memo_type:"data_set"}),tr=Cn.find(cn=>cn.id===un).children.filter(cn=>cn.id!==jn.id);Cn.find(cn=>cn.id===un).children=tr,Lt({type:"forumsDetail/setForumsDetailData",payload:We($e({},Tn.forumsDetailData),{memo_replies:[...Cn],memo_type:"data_set"})})})})}}))))),Re.createElement(ht.Z,null,Re.createElement(ue.Z,{value:jn.content,style:{color:"#232B40",fontSize:"14px"}})))}))}var ot=ct,ft=Te(59301),ut=Object.defineProperty,lt=Object.defineProperties,At=Object.getOwnPropertyDescriptors,yt=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,Tt=(Gt,Ut,Lt)=>Ut in Gt?ut(Gt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Gt[Ut]=Lt,kt=(Gt,Ut)=>{for(var Lt in Ut||(Ut={}))Rt.call(Ut,Lt)&&Tt(Gt,Lt,Ut[Lt]);if(yt)for(var Lt of yt(Ut))Pt.call(Ut,Lt)&&Tt(Gt,Lt,Ut[Lt]);return Gt},Dt=(Gt,Ut)=>lt(Gt,At(Ut)),gt=(Gt,Ut,Lt)=>new Promise((sn,un)=>{var Cn=hn=>{try{jn(Lt.next(hn))}catch(Mn){un(Mn)}},Tn=hn=>{try{jn(Lt.throw(hn))}catch(Mn){un(Mn)}},jn=hn=>hn.done?sn(hn.value):Promise.resolve(hn.value).then(Cn,Tn);jn((Lt=Lt.apply(Gt,Ut)).next())});Ne().locale("ZH-cn");const It=({user:Gt,forumsDetail:Ut,globalSetting:Lt,loading:sn,dispatch:un,handleClick:Cn,memoId:Tn},jn)=>{const{memo:hn,memo_replies:Mn}=Ut.forumsDetailData||{},_n=(0,Ot.useParams)(),[ur,tr]=(0,te.useState)(""),[cn,tn]=(0,te.useState)(""),[Hn,Gn]=(0,te.useState)(-1),[Mt,Kt]=(0,te.useState)(!1),[St,Nt]=(0,te.useState)(!1),[Et,zt]=(0,te.useState)(1);(0,te.useEffect)(()=>{Kt((hn==null?void 0:hn.reply_for_memo_count)>10)},[hn==null?void 0:hn.reply_for_memo_count]),(0,te.useEffect)(()=>{un({type:"forumsDetail/getForumsDetailData",payload:{id:Tn,memo_type:"data_set"}})},[]);const bt=()=>gt(void 0,null,function*(){var Ft;const qt=Et+1;zt(qt);const _t=yield(0,_e.z5)({id:Tn,page:qt,memo_type:"data_set"});_t!=null&&_t.memo_replies&&(un({type:"forumsDetail/setForumsDetailData",payload:Dt(kt({},Ut.forumsDetailData),{memo_replies:[...Mn,..._t.memo_replies]})}),Kt(((Ft=_t.memo_replies)==null?void 0:Ft.length)===10))}),Wt=Ft=>{var qt,_t,$t,Ht;return Dt(kt({},Ft),{image_url:(qt=Gt.userInfo)==null?void 0:qt.image_url,children:[],user_id:(_t=Gt.userInfo)==null?void 0:_t.user_id,user_login:($t=Gt.userInfo)==null?void 0:$t.login,username:(Ht=Gt.userInfo)==null?void 0:Ht.username,time:`${(0,Be.li)((new Date().getTime()-new Date(Ft.created_at).getTime())/1e3)}\u524D`})};return ft.createElement("section",{className:qe.wrap},!!(Mn!=null&&Mn.length)&&ft.createElement("aside",{className:qe.content},ft.createElement("aside",{className:qe.replyList},Mn==null?void 0:Mn.map(function(Ft,qt){var _t,$t,Ht;return ft.createElement(Qe.Z,{gutter:[12,12],key:qt},ft.createElement(ht.Z,{flex:"40px"},ft.createElement("a",{href:`/users/${Ft.user_login}`,target:"_blank"},ft.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",width:"46",height:"46",src:`${ae.Z.IMG_SERVER}/images/${Ft==null?void 0:Ft.image_url}`}))),ft.createElement(ht.Z,{flex:"1"},ft.createElement(Qe.Z,{align:"middle",className:qe.commentParItem},ft.createElement(ht.Z,{span:24},ft.createElement(Qe.Z,null,ft.createElement(ht.Z,{flex:"1"},ft.createElement("a",{href:`/users/${Ft.user_login}`,target:"_blank"},ft.createElement("span",{style:{color:"#9096A3",fontSize:"12px"}},Ft==null?void 0:Ft.username)),ft.createElement("span",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px"}},Ft.time)),(Ft.can_delete||Ft.user_id===((_t=Gt.userInfo)==null?void 0:_t.user_id)||Ft.user_login===(($t=Gt.userInfo)==null?void 0:$t.login))&&ft.createElement(ht.Z,{className:"forums-comment-par-delete",style:{display:"none"}},ft.createElement(ye.Z,{title:"\u5220\u9664"},ft.createElement(st.Z,{className:"current",onClick:()=>{z.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ft.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>gt(this,null,function*(){const Xt=yield(0,_e.sW)({id:Ft.id,memo_type:"data_set"}),En=Mn.filter(On=>On.id!==Ft.id);un({type:"forumsDetail/setForumsDetailData",payload:Dt(kt({},Ut.forumsDetailData),{memo_replies:[...En],memo_type:"data_set"})})})})}}))))),ft.createElement(ht.Z,{span:24,style:{marginTop:"5px"}},ft.createElement("div",{onClick:Cn},ft.createElement(ue.Z,{value:Ft.content,style:{color:"#232B40",fontSize:"14px"}}))),!!((Ht=Ft==null?void 0:Ft.children)!=null&&Ht.length)&&ft.createElement(ot,{user:Gt,id:Ft==null?void 0:Ft.id,vlist:Ft==null?void 0:Ft.children,dispatch:un,params:_n,memo_replies:Mn,forumsDetail:Ut}),ft.createElement(ht.Z,{span:24,className:"mt5 c-light-black"},Hn===qt?ft.createElement("aside",null,ft.createElement(se.Z,{onChange:Xt=>{tn(Xt)},height:150,isFocus:!0,placeholder:"\u6211\u8981\u56DE\u590D..."}),ft.createElement(Qe.Z,null,ft.createElement(ht.Z,{span:24,className:"tr"},ft.createElement(at.ZP,{type:"primary",size:"middle",onClick:()=>gt(this,null,function*(){if(cn==="")re.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const Xt=yield(0,_e.ts)({parent_id:Ft.id,content:cn,memo_type:"data_set"});tn(null),Xt&&(Gn(-1),Mn.find(En=>En.id===Xt.parent_id).children.push(Wt(Xt)),un({type:"forumsDetail/setForumsDetailData",payload:Dt(kt({},Ut.forumsDetailData),{memo:Dt(kt({},hn),{reply_for_memo_count:(hn==null?void 0:hn.reply_for_memo_count)+1}),memo_replies:[...Mn],memo_type:"data_set"})}))}})},"\u53D1\u9001")))):ft.createElement("div",{className:"tr",style:{textAlign:"left"}},ft.createElement("span",{className:"iconfont icon-xiaopinglun mr30 current font14",onClick:()=>Gn(qt)}),ft.createElement(ye.Z,{title:Ft.user_praise?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},ft.createElement("span",{className:Ft.user_praise?"c-orange":"c-gery-888"},ft.createElement("i",{className:"iconfont icon-dianzan4 mr5 current font14",onClick:()=>gt(this,null,function*(){const Xt=yield(0,_e.vL)({id:Ft.id,container_type:"Memo",type:Ft.user_praise?0:1,memo_type:"data_set"});(Xt==null?void 0:Xt.praise_count)>=0&&(Mn.find(En=>En.id===Ft.id).user_praise=!Ft.user_praise,Mn.find(En=>En.id===Ft.id).praise_count=Xt==null?void 0:Xt.praise_count,un({type:"forumsDetail/setForumsDetailData",payload:Dt(kt({},Ut.forumsDetailData),{memo_replies:[...Mn],memo_type:"data_set"})}))})}),Ft.praise_count>0?Ft.praise_count:"")))))))}))),Mt&&ft.createElement("aside",{className:"bg-white pb20",style:{display:"flex",justifyContent:"center",marginTop:"20px"}},ft.createElement(Qe.Z,{justify:"space-between"},ft.createElement(ht.Z,null),ft.createElement(ht.Z,null,Mt&&ft.createElement("a",{style:{color:"#3061D0",fontSize:"14px"},onClick:bt},"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA",ft.createElement("i",{className:"icon icon-zhankaixiaojiantou ",style:{fontSize:"10px",marginLeft:"3px"}}))))),ft.createElement("aside",{className:qe.reply},ft.createElement(se.Z,{onBlur:()=>Nt(!1),isFocus:St,defaultValue:ur,id:"writeForumsReviewId",onChange:Ft=>{tr(Ft)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),ft.createElement(Qe.Z,null,ft.createElement(ht.Z,{flex:"1"}),ft.createElement(ht.Z,null,ft.createElement("div",{className:qe.submitStyle,style:{width:"60px",height:"32px",textAlign:"center"},onClick:()=>gt(void 0,null,function*(){if(ur==="")re.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const Ft=yield(0,_e.ts)({parent_id:hn==null?void 0:hn.id,content:ur,memo_type:"data_set"});tr(null),Ft&&un({type:"forumsDetail/setForumsDetailData",payload:Dt(kt({},Ut.forumsDetailData),{memo:Dt(kt({},hn),{reply_for_memo_count:(hn==null?void 0:hn.reply_for_memo_count)+1}),memo_replies:[Wt(Ft),...Mn],memo_type:"data_set"})})}})},"\u53D1\u9001")))))};var Vt=(0,Ot.connect)(({user:Gt,forumsDetail:Ut,loading:Lt,globalSetting:sn})=>({user:Gt,forumsDetail:Ut,globalSetting:sn,loading:Lt.models.forumsDetail}),null,null,{forwardRef:!0})((0,te.forwardRef)(It)),rn=Te(82636),wt=Te(64006),Ct=Te(59301),Zt=Object.defineProperty,en=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,Bn=(Gt,Ut,Lt)=>Ut in Gt?Zt(Gt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Gt[Ut]=Lt,Wn=(Gt,Ut)=>{for(var Lt in Ut||(Ut={}))ln.call(Ut,Lt)&&Bn(Gt,Lt,Ut[Lt]);if(en)for(var Lt of en(Ut))yn.call(Ut,Lt)&&Bn(Gt,Lt,Ut[Lt]);return Gt},gn=(Gt,Ut,Lt)=>new Promise((sn,un)=>{var Cn=hn=>{try{jn(Lt.next(hn))}catch(Mn){un(Mn)}},Tn=hn=>{try{jn(Lt.throw(hn))}catch(Mn){un(Mn)}},jn=hn=>hn.done?sn(hn.value):Promise.resolve(hn.value).then(Cn,Tn);jn((Lt=Lt.apply(Gt,Ut)).next())});let Ln={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:Gt,globalSetting:Ut,loading:Lt,dispatch:sn,user:un})=>{var Cn,Tn,jn;const hn=(0,Ot.useParams)(),[Mn]=(0,Ot.useSearchParams)(),[_n,ur]=(0,te.useState)(!1),[tr,cn]=(0,te.useState)(1),[tn,Hn]=(0,te.useState)(null),[Gn,Mt]=(0,te.useState)(""),[Kt,St]=(0,te.useState)(),[Nt,Et]=(0,te.useState)(1),[zt,bt]=(0,te.useState)(1),Wt=(0,te.useRef)([]),[Ft,qt]=(0,te.useState)([]),[_t,$t]=(0,te.useState)(!1),[Ht,Xt]=(0,te.useState)(!1),[En,On]=(0,te.useState)(!1),[Rn,rr]=(0,te.useState)([]),[cr,mr]=(0,te.useState)(!1),[nr,Un]=(0,te.useState)(0),[Yn,pr]=(0,te.useState)({page:1,limit:10}),Sr=()=>gn(void 0,null,function*(){mr(!0);const Nn=yield(0,xe.iw)({container_type:tn==null?void 0:tn.container_type,container_id:tn==null?void 0:tn.container_id,page:Yn==null?void 0:Yn.page,limit:Yn==null?void 0:Yn.limit});(Nn==null?void 0:Nn.status)==0&&(rr(Nn==null?void 0:Nn.data),Un(Nn==null?void 0:Nn.total_count),mr(!1))});(0,te.useEffect)(()=>{qn(),(0,we.ZP)("/api/teach_group_shares.json",{method:"get"}).then(Nn=>{(Nn==null?void 0:Nn.status)==0&&qt(Nn==null?void 0:Nn.groups)})},[]),(0,te.useEffect)(()=>{tr==2&&Cr()},[tr,Nt]);const wr=(Nn,ir)=>(Nn=Math.max(Nn,0),ir=Math.max(ir,1),Math.ceil(Nn/ir)),Cr=()=>{(0,xe.Ce)({id:hn==null?void 0:hn.id,page:Nt,limit:16}).then(Nn=>{var ir,br;(Nn==null?void 0:Nn.status)==0&&(St((ir=Nn==null?void 0:Nn.data)==null?void 0:ir.shixuns),bt(wr((br=Nn==null?void 0:Nn.data)==null?void 0:br.count,16)))})},qn=(Nn=!1)=>{Xt(!0),(0,xe.Ru)(hn==null?void 0:hn.id).then(ir=>{var br,Pr;(ir==null?void 0:ir.status)==0&&(Hn(ir==null?void 0:ir.data),ur((0,ke.Ny)()||((br=ir==null?void 0:ir.data)==null?void 0:br.is_creator)),Wt.current=(Pr=ir==null?void 0:ir.data)==null?void 0:Pr.share_group_ids,Nn&&Mt(new Date),Xt(!1))})},kn=()=>{$t(!1)},Fn=()=>{qn(),$t(!1)};return Ct.createElement(y.Z,{spinning:Ht},Ct.createElement("section",{className:x.bg},tn&&Ct.createElement(Ct.Fragment,null,Ct.createElement("div",{className:"edu-container"},Ct.createElement("aside",{className:"mt10"},Ct.createElement(Pe.Z,{separator:">"},Ct.createElement(Pe.Z.Item,null,Ct.createElement(Ot.Link,{to:"/dataset"},"\u6570\u636E\u96C6")),Ct.createElement(Pe.Z.Item,null,Ct.createElement(Ot.Link,{to:`/dataset?tabId=${Mn.get("tabId")}`},Ln[Mn.get("tabId")])),Ct.createElement(Pe.Z.Item,null,tn==null?void 0:tn.title))),Ct.createElement("aside",{className:x.wrap},Ct.createElement("div",{className:x.leftContent,style:{width:_n?"78%":"87%"}},Ct.createElement("div",{className:x.header},Ct.createElement("div",{className:x.headerBack,onClick:()=>{Ot.history.push(`/dataset?tabId=${Mn.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},tn==null?void 0:tn.title),Ct.createElement("div",{className:x.time},tn==null?void 0:tn.create_at)),Ct.createElement("div",{className:x.introduction},tn==null?void 0:tn.desc),Ct.createElement("div",{className:x.bottom},((Cn=tn==null?void 0:tn.user_info)==null?void 0:Cn.image_url)&&Ct.createElement("img",{className:x.user_img,alt:"\u7528\u6237\u5934\u50CF",src:`${ae.Z.IMG_SERVER}/images/${(Tn=tn==null?void 0:tn.user_info)==null?void 0:Tn.image_url}`}),Ct.createElement("div",{className:x.user_name},tn==null?void 0:tn.user_info_name),(jn=tn==null?void 0:tn.data_set_tags)==null?void 0:jn.map((Nn,ir)=>{var br;return ir<3?Ct.createElement("div",{key:ir,className:x.tags_name},Nn==null?void 0:Nn.tag_name):ir==3?Ct.createElement(ye.Z,{key:ir,title:(br=tn==null?void 0:tn.data_set_tags)==null?void 0:br.map((Pr,Kr)=>{var Nr;if(Kr>2)return(Pr==null?void 0:Pr.tag_name)+(Kr===((Nr=tn==null?void 0:tn.data_set_tags)==null?void 0:Nr.length)-1?"":"\u3001")}).join("")},Ct.createElement("div",{key:ir,className:x.tags_name},"...")):null}),Ct.createElement("div",{className:x.buttonList},Ct.createElement(ye.Z,{title:`\u5F15\u7528\u6570\uFF1A${tn==null?void 0:tn.used_count}`},Ct.createElement("div",{className:`${x.buttonItem} current`},Ct.createElement("i",{className:"iconfont icon-yinyong font12 mr5"}),tn==null?void 0:tn.used_count)),Ct.createElement(ye.Z,{title:`\u6D4F\u89C8\u6570\uFF1A${tn==null?void 0:tn.visited_count}`},Ct.createElement("div",{className:`${x.buttonItem} current`,onClick:()=>gn(void 0,null,function*(){var Nn;((0,ke.Ny)()||((Nn=un==null?void 0:un.userInfo)==null?void 0:Nn.login)==="mfflo3p2e")&&(On(!0),Yn.page=1,Yn.limit=10,pr(Wn({},Yn)),yield Sr())})},Ct.createElement("i",{className:"iconfont icon-chakanrenshu font12 mr5"}),tn==null?void 0:tn.visited_count)),Ct.createElement(ye.Z,{title:`\u8BC4\u8BBA\u6570\uFF1A${tn==null?void 0:tn.comment_count}`},Ct.createElement("div",{className:`${x.buttonItem} current`},Ct.createElement("i",{className:"iconfont icon-xiaopinglun font12 mr5"}),tn==null?void 0:tn.comment_count))))),Ct.createElement("div",{className:x.rightContent,style:{width:_n?"22%":"13%"}},_n?Ct.createElement("div",{style:{display:"flex",marginLeft:"auto"}},Ct.createElement("div",{className:x.share,onClick:()=>gn(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:tn==null?void 0:tn.share_group_ids,onChange:Nn=>{Wt.current=Nn}},Ft==null?void 0:Ft.map(Nn=>Ct.createElement(E.default,{key:Nn==null?void 0:Nn.group_id,value:Nn==null?void 0:Nn.group_id},Nn==null?void 0:Nn.name)))),onOk:()=>{(0,xe.l5)({ids:[tn==null?void 0:tn.id],clazz:"DataSet",group_ids:Wt.current}).then(Nn=>{(Nn==null?void 0:Nn.status)==0&&(re.ZP.success("\u5171\u4EAB\u6210\u529F"),qn())})}})})},"\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:(tn==null?void 0:tn.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":(tn==null?void 0:tn.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:()=>gn(void 0,null,function*(){let Nn;switch(tn==null?void 0:tn.public_status){case 0:Nn=(0,xe.To)(tn==null?void 0:tn.id);break;case 1:Nn=(0,xe.a6)(tn==null?void 0:tn.id);break;case 2:Nn=(0,xe.Dx)(tn==null?void 0:tn.id);break;default:return}Nn.then(ir=>{(ir==null?void 0:ir.status)===0&&(re.ZP.success("\u64CD\u4F5C\u6210\u529F"),qn())})})})}},(tn==null?void 0:tn.public_status)==0?"\u7533\u8BF7\u516C\u5F00":(tn==null?void 0:tn.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 gn(this,null,function*(){(0,xe.pP)(tn==null?void 0:tn.id).then(Nn=>{(Nn==null?void 0:Nn.status)==0&&(re.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:tn!=null&&tn.current_user_is_collect?x.collectActiveStyle:x.collectStyle,onClick:()=>{let Nn;tn!=null&&tn.current_user_is_collect?Nn=(0,xe.R9)({container_id:tn==null?void 0:tn.id,container_type:"DataSet"}):Nn=(0,xe.nW)({container_id:tn==null?void 0:tn.id,container_type:"DataSet"}),Nn.then(ir=>{(ir==null?void 0:ir.status)===0&&qn()})}},Ct.createElement("i",{className:"iconfont icon-shoucang4 font12"})," ",tn==null?void 0:tn.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:Nn=>{var ir;cn((ir=Nn==null?void 0:Nn.target)==null?void 0:ir.value)},value:tr}),Ct.createElement("div",{className:x.addBtn,onClick:()=>{window.open(`/shixuns/new?dataSetId=${hn==null?void 0:hn.id}`)}},"\u521B\u5EFA\u5B9E\u8DF5\u9879\u76EE")),tr==1&&Ct.createElement(Xe,{dataSetInfo:tn,getInfo:qn,key:Gn,indexType:_n}),tr==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(rn.wb,{dataSource:Kt,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"]}),zt>1&&Ct.createElement("div",{className:x.pageStyle},Ct.createElement("div",{className:Nt==1?x.pageUnCan:x.pageCan,style:{marginRight:"10px"},onClick:()=>{Nt>1&&Et(Nt-1)}},"\u4E0A\u4E00\u9875"),Ct.createElement("div",{className:Nt==zt?x.pageUnCan:x.pageCan,style:{marginLeft:"10px"},onClick:()=>{Nt<zt&&Et(Nt+1)}},"\u4E0B\u4E00\u9875"))),tr==3&&Ct.createElement(Vt,{memoId:tn==null?void 0:tn.memo_id})))),Ct.createElement(wt.Z,{dataSetInfo:tn,visible:_t,onClose:kn,onSuccess:Fn}),Ct.createElement(z.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:En,title:"\u6D4F\u89C8\u4FE1\u606F",width:"730px",onCancel:()=>{On(!1)},footer:null},Ct.createElement("div",null,Ct.createElement(de.default,{dataSource:Rn,loading:cr,className:"mt10 mb10",scroll:{y:47*6},pagination:{total:nr||0,onChange:(Nn,ir)=>{Yn.page=Nn,Yn.limit=ir,pr(Wn({},Yn)),Sr()},current:Yn==null?void 0:Yn.page,pageSize:Yn==null?void 0:Yn.limit,showTotal:Nn=>Ct.createElement(Ct.Fragment,null,"\u5171",Ct.createElement("span",{className:"ml5 mr5",style:{color:"#3061d0"}},Nn),"\u6761\u6570\u636E")},columns:[{title:"\u67E5\u770B\u4EBA",align:"left",width:150,dataIndex:"real_name",ellipsis:!0,render:Nn=>Ct.createElement("span",null,Nn||"--")},{title:"\u5355\u4F4D",align:"left",width:260,ellipsis:!0,dataIndex:"school_name",render:Nn=>Ct.createElement("span",null,Nn||"--")},{title:"\u90E8\u95E8",align:"left",width:150,ellipsis:!0,dataIndex:"department_name",render:Nn=>Ct.createElement("span",null,Nn||"--")},{title:"\u6240\u9009\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,render:Nn=>Ct.createElement("span",{style:{color:"#666666"}},Nn?Ne()(Nn).format("YYYY-MM-DD"):"--")}]})))))};var In=(0,Ot.connect)(({polls:Gt,loading:Ut,user:Lt,globalSetting:sn})=>({polls:Gt,globalSetting:sn,user:Lt,loading:Ut.effects}))(pn)},49702:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return de}});var te=Te(59301),Ot=Te(65582),y=Te(82326),Pe=Te(29787),ye=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(27474),re=Te(59301),oe=(x,ae,ie)=>new Promise((se,ue)=>{var pe=me=>{try{ge(ie.next(me))}catch(xe){ue(xe)}},he=me=>{try{ge(ie.throw(me))}catch(xe){ue(xe)}},ge=me=>me.done?se(me.value):Promise.resolve(me.value).then(pe,he);ge((ie=ie.apply(x,ae)).next())});const ee=({user:x,width:ae,selectWidth:ie,tags:se,getDataSet:ue,placeholder:pe="\u5168\u90E8\u6807\u7B7E",isTagsValue:he=!1})=>{const[ge,me]=(0,te.useState)([]),[xe,Ae]=(0,te.useState)([]),[Ne,Be]=(0,te.useState)(!1),De=(0,te.useRef)(null);(0,te.useEffect)(()=>{we()},[]);const we=()=>oe(void 0,null,function*(){Be(!0),yield(0,E.bj)({}).then(Oe=>{(Oe==null?void 0:Oe.status)==0&&me(Oe==null?void 0:Oe.data)}),Be(!1)}),Ce=se==null?void 0:se.map(Oe=>Oe.tag_name).join("\u3001");return re.createElement(y.default,{onFocus:()=>{Ae(se)},ref:De,style:{width:ie?ie+"px":300},placeholder:(se==null?void 0:se.length)>0?he?re.createElement("span",{className:"c-grey-333"},Ce):`\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:()=>re.createElement("div",{className:z.selectList,style:{width:ae+"px"}},re.createElement("div",{className:z.selectHeader},"\u8BF7\u9009\u62E91\uFF5E5\u4E2A\u6807\u7B7E"),re.createElement(Pe.Z,{spinning:Ne},re.createElement("div",{className:z.selectContent},ge==null?void 0:ge.map((Oe,je)=>{var Fe;return re.createElement("aside",{key:je},re.createElement("div",{className:z.contentTitle,style:{marginTop:je>0?"20px":"0"}},Oe==null?void 0:Oe.tag_type_cn),re.createElement("div",{className:z.contentTags},(Fe=Oe==null?void 0:Oe.child)==null?void 0:Fe.map((ke,Ee)=>{var Ge;return re.createElement("div",{key:Ee,className:(Ge=xe==null?void 0:xe.map(Ke=>Ke==null?void 0:Ke.id))!=null&&Ge.includes(ke==null?void 0:ke.id)?z.tagNameActive:z.tagName,onClick:()=>{var Ke;(Ke=xe==null?void 0:xe.map(Ve=>Ve==null?void 0:Ve.id))!=null&&Ke.includes(ke==null?void 0:ke.id)?Ae(xe.filter(Ve=>(Ve==null?void 0:Ve.id)!=(ke==null?void 0:ke.id))):(xe==null?void 0:xe.length)<5?Ae([...xe,ke]):ye.ZP.warning("\u6700\u591A\u53EF\u9009\u62E95\u4E2A\u6807\u7B7E")}},ke==null?void 0:ke.tag_name)})))}))),re.createElement("div",{className:z.activeStyle},re.createElement("div",{className:z.activeLabel},"\u5DF2\u9009\u6807\u7B7E:"),re.createElement("div",{className:z.activeValue,style:{width:ae-120+"px"}},xe==null?void 0:xe.map((Oe,je)=>re.createElement("div",{key:je,className:z.activeItem},Oe==null?void 0:Oe.tag_name,re.createElement("i",{className:"iconfont icon-guanbi11 ml5 mr5",style:{fontSize:"10px",cursor:"pointer"},onClick:()=>{Ae(xe.filter(Fe=>(Fe==null?void 0:Fe.id)!==(Oe==null?void 0:Oe.id)))}}))))),re.createElement("div",{style:{display:"flex",marginBottom:"20px"}},re.createElement("div",{className:z.activeClose,onClick:Oe=>{Oe.stopPropagation(),ue([...se]),Ae([]),setTimeout(()=>{De.current&&De.current.blur()},10)}},"\u53D6\u6D88"),re.createElement("div",{className:z.activeSubmit,onClick:Oe=>{Oe.stopPropagation(),ue([...xe]),Ae([]),setTimeout(()=>{De.current&&De.current.blur()},10)}},"\u786E\u8BA4")))})};var de=(0,Ot.connect)(({user:x})=>({user:x}))(ee)},27474:function(wn,Yt,Te){"use strict";Te.d(Yt,{A0:function(){return Ne},Ce:function(){return he},Dx:function(){return x},Il:function(){return Ae},R2:function(){return pe},R9:function(){return se},Ru:function(){return ue},SG:function(){return De},To:function(){return de},_S:function(){return ee},a6:function(){return ae},bj:function(){return oe},iw:function(){return Be},l5:function(){return xe},nW:function(){return ie},pP:function(){return me},pi:function(){return ge}});var te=Te(38147),Ot=Object.defineProperty,y=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,z=(we,Ce,Oe)=>Ce in we?Ot(we,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):we[Ce]=Oe,E=(we,Ce)=>{for(var Oe in Ce||(Ce={}))Pe.call(Ce,Oe)&&z(we,Oe,Ce[Oe]);if(y)for(var Oe of y(Ce))ye.call(Ce,Oe)&&z(we,Oe,Ce[Oe]);return we},re=(we,Ce,Oe)=>new Promise((je,Fe)=>{var ke=Ke=>{try{Ge(Oe.next(Ke))}catch(Ve){Fe(Ve)}},Ee=Ke=>{try{Ge(Oe.throw(Ke))}catch(Ve){Fe(Ve)}},Ge=Ke=>Ke.done?je(Ke.value):Promise.resolve(Ke.value).then(ke,Ee);Ge((Oe=Oe.apply(we,Ce)).next())});function oe(we){return re(this,null,function*(){return(0,te.ZP)("/api/data_sets/tags.json",{method:"get",params:E({},we)})})}function ee(we){return re(this,null,function*(){return(0,te.ZP)("/api/data_sets.json",{method:"get",params:E({},we)})})}function de(we){return re(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${we}/apply_public.json`,{method:"post"})})}function x(we){return re(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${we}/revoke_apply_public.json`,{method:"post"})})}function ae(we){return re(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${we}/cancel_public.json`,{method:"post"})})}function ie(we){return re(this,null,function*(){return(0,te.ZP)("/api/collections.json",{method:"post",body:E({},we)})})}function se(we){return re(this,null,function*(){return(0,te.ZP)("/api/collections/cancel.json",{method:"delete",body:E({},we)})})}function ue(we){return re(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${we}.json`,{method:"get"})})}function pe(we){return re(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${we==null?void 0:we.id}/edit_introduce.json`,{method:"put",body:E({},we)})})}function he(we){return re(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${we==null?void 0:we.id}/used_shixuns.json`,{method:"get",params:E({},we)})})}function ge(we){return re(this,null,function*(){return(0,te.ZP)(`/api/shixuns/${we}/data_sets_list.json`,{method:"get"})})}function me(we){return re(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${we}/delete.json`,{method:"delete"})})}function xe(we){return re(this,null,function*(){return(0,te.ZP)("/api/teach_group_shares.json",{method:"post",body:E({},we)})})}function Ae(we){return re(this,null,function*(){return(0,te.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:E({},we)})})}function Ne(we){return re(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${we==null?void 0:we.id}/edit_file_info.json`,{method:"put",body:E({},we)})})}function Be(we){return re(this,null,function*(){return(0,te.ZP)("/api/visit_logs.json",{method:"get",params:E({},we)})})}function De(we){return re(this,null,function*(){return(0,te.ZP)(`/api/attachments/${we==null?void 0:we.id}/update_download.json`,{method:"get"})})}},49142:function(wn,Yt,Te){"use strict";Te.d(Yt,{AL:function(){return xe},Iy:function(){return de},Qv:function(){return ie},ez:function(){return me},jb:function(){return x}});var te=Te(32834),Ot=Te.n(te),y=Te(11690),Pe=Te.n(y);let ye=1;function z(we,Ce){const Oe=we.match(/^(\s+)(?:```)/);if(Oe===null)return Ce;const je=Oe[1];return Ce.split(`
`).map(Fe=>{const ke=Fe.match(/^\s+/);if(ke===null)return Fe;const[Ee]=ke;return Ee.length>=je.length?Fe.slice(je.length):Fe}).join(`
`)}let E=[],re=["<ul>"];const oe=new(Ot()).Renderer,ee=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function de(){E.length=0,re=["<ul>"]}const x={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ae(we,Ce,Oe,je){if(Ce>=we.length||we[Ce].level<=Oe)return Ce;var Fe=we[Ce];je.push("<li><a href='#"+ye+Fe.anchor+"'>"+Fe.text+"</a>"),Ce++;var ke=[];return Ce=ae(we,Ce,Fe.level,ke),ke.length>0&&(je.push("<ul>"),ke.forEach(function(Ee){je.push(Ee)}),je.push("</ul>")),je.push("</li>"),Ce=ae(we,Ce,Oe,je),Ce}function ie(){return ae(E,0,0,re),re.push("</ul>"),re.join("")}const se={heading(we){const Ce=ee.exec(we);if(ye+=1,Ce)return{type:"heading",raw:Ce[0],depth:Ce[1].length,text:Ce[2]}},fences(we){const Ce=this.rules.block.fences.exec(we);if(Ce){const Oe=Ce[0];let je=z(Oe,Ce[3]||"");const Fe=Ce[2]?Ce[2].trim():Ce[2];if(["latex","katex","math"].indexOf(Fe)>=0){const ke=he(),Ee=je;je=ke,ge[ke]={type:"block",expression:Ee}}return{type:"code",raw:Oe,lang:Fe,text:je}}}},ue=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let pe=0;const he=()=>`__special_katext_id_${pe++}__`;let ge={};function me(){return ge}function xe(){pe=0,ge={}}function Ae(we){return we=we.replace(ue,(Ce,Oe)=>{const je=he();return ge[je]={type:"inline",expression:Oe},je}),we}const Ne=oe.listitem;oe.listitem=function(we){return Ne(Ae(we))};const Be=oe.paragraph;oe.paragraph=function(we){return Be(Ae(we))};const De=oe.tablecell;oe.tablecell=function(we,Ce){return De(Ae(we),Ce)},oe.code=function(we,Ce,Oe){const je=(Ce||"").match(/\S*/)[0];return je?["latex","katex","math"].indexOf(je)>=0?`<p class='editormd-tex'>${we}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ce}">${Oe?we:(0,y.escape)(we,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Oe?we:(0,y.escape)(we,!0))+"</code></pre>"},oe.heading=function(we,Ce,Oe){let je=this.options.headerPrefix+Oe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return E.push({anchor:je,level:Ce,text:we}),"<h"+Ce+' id="'+ye+je+'">'+we+"</h"+Ce+">"},Ot().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ot().use({tokenizer:se,renderer:oe}),Yt.ZP=Ot()},47257:function(wn){(function(Yt){(function(Te){if(1)wn.exports=Te();else var te})(function(){var Te,te,Ot;return function(){function y(Pe,ye,z){function E(ee,de){if(!ye[ee]){if(!Pe[ee]){var x=void 0;if(!de&&x)return require(ee,!0);if(re)return re(ee,!0);var ae=new Error("Cannot find module '"+ee+"'");throw ae.code="MODULE_NOT_FOUND",ae}var ie=ye[ee]={exports:{}};Pe[ee][0].call(ie.exports,function(se){var ue=Pe[ee][1][se];return E(ue||se)},ie,ie.exports,y,Pe,ye,z)}return ye[ee].exports}for(var re=void 0,oe=0;oe<z.length;oe++)E(z[oe]);return E}return y}()({1:[function(y,Pe,ye){"use strict";var z=y("./browser/client");z.Buffer=y("buffer").Buffer,z.urllib=y("../shims/xhr"),z.version=y("./browser/version").version,Pe.exports=z},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(y,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),re=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"),de=ee.checkBucketName,x=ye;function ae(se){return Array.isArray?Array.isArray(se):Object.prototype.toString.call(se)==="[object Array]"}function ie(se){return se?ae(se)?se:[se]:[]}x.useBucket=function(ue){return de(ue),this.options.bucket=ue,this},x.setBucket=function(ue){return de(ue),this.options.bucket=ue,this},x.getBucket=function(){return this.options.bucket},x.deleteBucket=function(){var se=(0,re.default)(E.default.mark(function pe(he,ge){var me,xe;return E.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return me=this._bucketRequestParams("DELETE",he,"",ge),Ne.next=3,this.request(me);case 3:if(xe=Ne.sent,!(xe.status===200||xe.status===204)){Ne.next=6;break}return Ne.abrupt("return",{res:xe.res});case 6:return Ne.next=8,this.requestError(xe);case 8:throw Ne.sent;case 9:case"end":return Ne.stop()}},pe,this)}));function ue(pe,he){return se.apply(this,arguments)}return ue}(),x.putBucketACL=function(){var se=(0,re.default)(E.default.mark(function pe(he,ge,me){var xe,Ae;return E.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return xe=this._bucketRequestParams("PUT",he,"acl",me),xe.headers={"x-oss-acl":ge},xe.successStatuses=[200],Be.next=5,this.request(xe);case 5:return Ae=Be.sent,Be.abrupt("return",{bucket:Ae.headers.location&&Ae.headers.location.substring(1)||null,res:Ae.res});case 7:case"end":return Be.stop()}},pe,this)}));function ue(pe,he,ge){return se.apply(this,arguments)}return ue}(),x.getBucketACL=function(){var se=(0,re.default)(E.default.mark(function pe(he,ge){var me,xe;return E.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return me=this._bucketRequestParams("GET",he,"acl",ge),me.successStatuses=[200],me.xmlResponse=!0,Ne.next=5,this.request(me);case 5:return xe=Ne.sent,Ne.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 Ne.stop()}},pe,this)}));function ue(pe,he){return se.apply(this,arguments)}return ue}(),x.putBucketLogging=function(){var se=(0,re.default)(E.default.mark(function pe(he,ge,me){var xe,Ae,Ne;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return xe=this._bucketRequestParams("PUT",he,"logging",me),Ae=`<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
<LoggingEnabled>
<TargetBucket>`.concat(he,`</TargetBucket>
`),ge&&(Ae+="<TargetPrefix>".concat(ge,`</TargetPrefix>
`)),Ae+=`</LoggingEnabled>
</BucketLoggingStatus>`,xe.content=Ae,xe.mime="xml",xe.successStatuses=[200],De.next=9,this.request(xe);case 9:return Ne=De.sent,De.abrupt("return",{res:Ne.res});case 11:case"end":return De.stop()}},pe,this)}));function ue(pe,he,ge){return se.apply(this,arguments)}return ue}(),x.getBucketLogging=function(){var se=(0,re.default)(E.default.mark(function pe(he,ge){var me,xe,Ae;return E.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return me=this._bucketRequestParams("GET",he,"logging",ge),me.successStatuses=[200],me.xmlResponse=!0,Be.next=5,this.request(me);case 5:return xe=Be.sent,Ae=xe.data.LoggingEnabled,Be.abrupt("return",{enable:!!Ae,prefix:Ae&&Ae.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,re.default)(E.default.mark(function pe(he,ge){var me,xe;return E.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return me=this._bucketRequestParams("DELETE",he,"logging",ge),me.successStatuses=[204,200],Ne.next=4,this.request(me);case 4:return xe=Ne.sent,Ne.abrupt("return",{res:xe.res});case 6:case"end":return Ne.stop()}},pe,this)}));function ue(pe,he){return se.apply(this,arguments)}return ue}(),x.putBucketCORS=function(){var se=(0,re.default)(E.default.mark(function pe(he,ge,me){var xe,Ae,Ne,Be,De,we,Ce,Oe,je,Fe;return E.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:for(ge=ge||[],oe(ge.length,"rules is required"),ge.forEach(function(Ge){oe(Ge.allowedOrigin,"allowedOrigin is required"),oe(Ge.allowedMethod,"allowedMethod is required")}),xe=this._bucketRequestParams("PUT",he,"cors",me),Ae=`<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>`,Ne=function(Ke){Ae+="<AllowedOrigin>".concat(Ke,"</AllowedOrigin>")},Be=function(Ke){Ae+="<AllowedMethod>".concat(Ke,"</AllowedMethod>")},De=function(Ke){Ae+="<AllowedHeader>".concat(Ke,"</AllowedHeader>")},we=function(Ke){Ae+="<ExposeHeader>".concat(Ke,"</ExposeHeader>")},Ce=0,Oe=ge.length;Ce<Oe;Ce++)je=ge[Ce],Ae+="<CORSRule>",ie(je.allowedOrigin).forEach(Ne),ie(je.allowedMethod).forEach(Be),ie(je.allowedHeader).forEach(De),ie(je.exposeHeader).forEach(we),je.maxAgeSeconds&&(Ae+="<MaxAgeSeconds>".concat(je.maxAgeSeconds,"</MaxAgeSeconds>")),Ae+="</CORSRule>";return Ae+="</CORSConfiguration>",xe.content=Ae,xe.mime="xml",xe.successStatuses=[200],Ee.next=16,this.request(xe);case 16:return Fe=Ee.sent,Ee.abrupt("return",{res:Fe.res});case 18:case"end":return Ee.stop()}},pe,this)}));function ue(pe,he,ge){return se.apply(this,arguments)}return ue}(),x.getBucketCORS=function(){var se=(0,re.default)(E.default.mark(function pe(he,ge){var me,xe,Ae,Ne;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return me=this._bucketRequestParams("GET",he,"cors",ge),me.successStatuses=[200],me.xmlResponse=!0,De.next=5,this.request(me);case 5:return xe=De.sent,Ae=[],xe.data&&xe.data.CORSRule&&(Ne=xe.data.CORSRule,ae(Ne)||(Ne=[Ne]),Ne.forEach(function(we){var Ce={};Object.keys(we).forEach(function(Oe){Ce[Oe.slice(0,1).toLowerCase()+Oe.slice(1,Oe.length)]=we[Oe]}),Ae.push(Ce)})),De.abrupt("return",{rules:Ae,res:xe.res});case 9:case"end":return De.stop()}},pe,this)}));function ue(pe,he){return se.apply(this,arguments)}return ue}(),x.deleteBucketCORS=function(){var se=(0,re.default)(E.default.mark(function pe(he,ge){var me,xe;return E.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return me=this._bucketRequestParams("DELETE",he,"cors",ge),me.successStatuses=[204],Ne.next=4,this.request(me);case 4:return xe=Ne.sent,Ne.abrupt("return",{res:xe.res});case 6:case"end":return Ne.stop()}},pe,this)}));function ue(pe,he){return se.apply(this,arguments)}return ue}(),x.putBucketReferer=function(){var se=(0,re.default)(E.default.mark(function pe(he,ge,me,xe){var Ae,Ne,Be,De;return E.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(Ae=this._bucketRequestParams("PUT",he,"referer",xe),Ne=`<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
`,Ne+=" <AllowEmptyReferer>".concat(ge?"true":"false",`</AllowEmptyReferer>
`),me&&me.length>0){for(Ne+=` <RefererList>
`,Be=0;Be<me.length;Be++)Ne+=" <Referer>".concat(me[Be],`</Referer>
`);Ne+=` </RefererList>
`}else Ne+=` <RefererList />
`;return Ne+="</RefererConfiguration>",Ae.content=Ne,Ae.mime="xml",Ae.successStatuses=[200],Ce.next=10,this.request(Ae);case 10:return De=Ce.sent,Ce.abrupt("return",{res:De.res});case 12:case"end":return Ce.stop()}},pe,this)}));function ue(pe,he,ge,me){return se.apply(this,arguments)}return ue}(),x.getBucketReferer=function(){var se=(0,re.default)(E.default.mark(function pe(he,ge){var me,xe,Ae;return E.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return me=this._bucketRequestParams("GET",he,"referer",ge),me.successStatuses=[200],me.xmlResponse=!0,Be.next=5,this.request(me);case 5:return xe=Be.sent,Ae=xe.data.RefererList.Referer||null,Ae&&(ae(Ae)||(Ae=[Ae])),Be.abrupt("return",{allowEmpty:xe.data.AllowEmptyReferer==="true",referers:Ae,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,re.default)(E.default.mark(function pe(he,ge){return E.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return xe.next=2,this.putBucketReferer(he,!0,null,ge);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,ge){return{method:ue,bucket:pe,subres:he,timeout:ge&&ge.timeout,ctx:ge&&ge.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,Pe,ye){(function(z,E){(function(){"use strict";var re=y("@babel/runtime/helpers/interopRequireDefault"),oe=re(y("@babel/runtime/regenerator")),ee=re(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 de=y("debug")("ali-oss"),x=y("xml2js"),ae=y("agentkeepalive"),ie=y("merge-descriptors"),se=y("platform"),ue=y("utility"),pe=y("urllib"),he=y("./version"),ge=y("bowser"),me=y("../common/signUtils"),xe=y("../common/client/initOptions"),Ae=y("../common/utils/createRequest"),Ne=Ae.createRequest,Be=y("../common/utils/encoder"),De=Be.encoder,we=y("../common/client/getReqUrl"),Ce=we.getReqUrl,Oe=y("../common/utils/setSTSToken"),je=Oe.setSTSToken,Fe=y("../common/utils/retry"),ke=Fe.retry,Ee=y("../common/utils/isFunction"),Ge=Ee.isFunction,Ke=new ae;function Ve(){var et=se.name,Ze=se.version;et&&et.toLowerCase&&et.toLowerCase()==="ie"&&Ze.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function it(){return location&&location.protocol==="https:"}function Le(et,Ze){if(Ve(),!(this instanceof Le))return new Le(et,Ze);et&&et.inited?this.options=et:this.options=Le.initOptions(et),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=pe,this.agent=this.options.agent||Ke),this.ctx=Ze,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}Pe.exports=Le,Le.initOptions=function(Ze){Ze.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:it(),useFetch:!1},Ze);return xe(Ye)};var Ue=Le.prototype;Ue.debug=de,ie(Ue,y("./object")),ie(Ue,y("./bucket")),ie(Ue,y("../common/bucket/getBucketWebsite")),ie(Ue,y("../common/bucket/putBucketWebsite")),ie(Ue,y("../common/bucket/deleteBucketWebsite")),ie(Ue,y("../common/bucket/getBucketLifecycle")),ie(Ue,y("../common/bucket/putBucketLifecycle")),ie(Ue,y("../common/bucket/deleteBucketLifecycle")),ie(Ue,y("../common/bucket/putBucketVersioning")),ie(Ue,y("../common/bucket/getBucketVersioning")),ie(Ue,y("../common/bucket/getBucketInventory")),ie(Ue,y("../common/bucket/deleteBucketInventory")),ie(Ue,y("../common/bucket/listBucketInventory")),ie(Ue,y("../common/bucket/putBucketInventory")),ie(Ue,y("../common/bucket/abortBucketWorm")),ie(Ue,y("../common/bucket/completeBucketWorm")),ie(Ue,y("../common/bucket/extendBucketWorm")),ie(Ue,y("../common/bucket/getBucketWorm")),ie(Ue,y("../common/bucket/initiateBucketWorm")),ie(Ue,y("./managed-upload")),ie(Ue,y("../common/multipart-copy")),ie(Ue,y("../common/multipart")),ie(Ue,y("../common/parallel")),Ue.signature=function(Ze){return this.debug("authorization stringToSign: %s",Ze,"info"),me.computeSignature(this.options.accessKeySecret,Ze,this.options.headerEncoding)},Ue._getReqUrl=Ce,Ue.authorization=function(Ze,Ye,Xe,st){var Qe=me.buildCanonicalString(Ze.toUpperCase(),Ye,{headers:st,parameters:Xe});return me.authorization(this.options.accessKeyId,this.options.accessKeySecret,Qe,this.options.headerEncoding)},Ue.request=function(){var et=(0,ee.default)(oe.default.mark(function Ze(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,ke(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()}},Ze,this)}));return function(Ze){return et.apply(this,arguments)}}();function tt(et){return nt.apply(this,arguments)}function nt(){return nt=(0,ee.default)(oe.default.mark(function et(Ze){var Ye,Xe,st,Qe,ht,at;return oe.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(!(this.options.stsToken&&Ge(this.options.refreshSTSToken))){_e.next=3;break}return _e.next=3,je.call(this);case 3:return Ye=Ne.call(this,Ze),this.options.useFetch||(Ye.params.mode="disable-fetch"),Qe=!!Ze.stream,_e.prev=6,_e.next=9,this.urllib.request(Ye.url,Ye.params);case 9:Xe=_e.sent,this.debug("response %s %s, got %s, headers: %j",Ze.method,Ye.url,Xe.status,Xe.headers,"info"),_e.next=16;break;case 13:_e.prev=13,_e.t0=_e.catch(6),st=_e.t0;case 16:if(!(Xe&&Ze.successStatuses&&Ze.successStatuses.indexOf(Xe.status)===-1)){_e.next=28;break}return _e.next=19,this.requestError(Xe);case 19:if(ht=_e.sent,!(ht.code==="RequestTimeTooSkewed"&&!Qe)){_e.next=25;break}return this.options.amendTimeSkewed=+new Date(ht.serverTime)-new Date,_e.next=24,this.request(Ze);case 24:return _e.abrupt("return",_e.sent);case 25:ht.params=Ze,_e.next=32;break;case 28:if(!st){_e.next=32;break}return _e.next=31,this.requestError(st);case 31:ht=_e.sent;case 32:if(!ht){_e.next=34;break}throw ht;case 34:if(!Ze.xmlResponse){_e.next=39;break}return _e.next=37,this.parseXML(Xe.data);case 37:at=_e.sent,Xe.data=at;case 39:return _e.abrupt("return",Xe);case 40:case"end":return _e.stop()}},et,this,[[6,13]])})),nt.apply(this,arguments)}Ue._getResource=function(Ze){var Ye="/";return Ze.bucket&&(Ye+="".concat(Ze.bucket,"/")),Ze.object&&(Ye+=De(Ze.object,this.options.headerEncoding)),Ye},Ue._escape=function(Ze){return ue.encodeURIComponent(Ze).replace(/%2F/g,"/")},Ue._getUserAgent=function(){var Ze=E&&E.browser?"js":"nodejs",Ye="aliyun-sdk-".concat(Ze,"/").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(Ze){var Ye=Ze.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return Ye},Ue.checkBrowserAndVersion=function(Ze,Ye){return ge.name===Ze&&ge.version.split(".")[0]===Ye},Ue.parseXML=function(Ze){return new Promise(function(Ye,Xe){z.isBuffer(Ze)&&(Ze=Ze.toString()),x.parseString(Ze,{explicitRoot:!1,explicitArray:!1},function(st,Qe){st?Xe(st):Ye(Qe)})})},Ue.requestError=function(){var et=(0,ee.default)(oe.default.mark(function Ye(Xe){var st,Qe,ht,at;return oe.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(st=null,!(!Xe.data||!Xe.data.length)){_e.next=5;break}Xe.status===-1||Xe.status===-2?(st=new Error(Xe.message),st.name=Xe.name,st.status=Xe.status,st.code=Xe.name):(Xe.status===404?(st=new Error("Object not exists"),st.name="NoSuchKeyError",st.status=404,st.code="NoSuchKey"):Xe.status===412?(st=new Error("Pre condition failed"),st.name="PreconditionFailedError",st.status=412,st.code="PreconditionFailed"):(st=new Error("Unknow error, status: ".concat(Xe.status)),st.name="UnknownError",st.status=Xe.status),st.requestId=Xe.headers["x-oss-request-id"],st.host=""),_e.next=32;break;case 5:return Qe=String(Xe.data),this.debug("request response error data: %s",Qe,"error"),_e.prev=7,_e.next=10,this.parseXML(Qe);case 10:if(_e.t0=_e.sent,_e.t0){_e.next=13;break}_e.t0={};case 13:ht=_e.t0,_e.next=23;break;case 16:return _e.prev=16,_e.t1=_e.catch(7),this.debug(Qe,"error"),_e.t1.message+=`
raw xml: `.concat(Qe),_e.t1.status=Xe.status,_e.t1.requestId=Xe.headers["x-oss-request-id"],_e.abrupt("return",_e.t1);case 23:at=ht.Message||"unknow request error, status: ".concat(Xe.status),ht.Condition&&(at+=" (condition: ".concat(ht.Condition,")")),st=new Error(at),st.name=ht.Code?"".concat(ht.Code,"Error"):"UnknownError",st.status=Xe.status,st.code=ht.Code,st.requestId=ht.RequestId,st.hostId=ht.HostId,st.serverTime=ht.ServerTime;case 32:return this.debug("generate error %j",st,"error"),_e.abrupt("return",st);case 34:case"end":return _e.stop()}},Ye,this,[[7,16]])}));function Ze(Ye){return et.apply(this,arguments)}return Ze}()}).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,Pe,ye){(function(z){(function(){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),re=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"),de=y("path"),x=y("mime"),ae=y("copy-to"),ie=y("../common/utils/isBlob"),se=ie.isBlob,ue=y("../common/utils/isFile"),pe=ue.isFile,he=y("../common/utils/isBuffer"),ge=he.isBuffer,me=ye;me.multipartUpload=function(){var De=(0,oe.default)(re.default.mark(function Ce(Oe,je){var Fe,ke,Ee,Ge,Ke,Ve,it,Le,Ue,tt=arguments;return re.default.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:if(Fe=tt.length>2&&tt[2]!==void 0?tt[2]:{},this.resetCancelFlag(),Fe.disabledMD5=Fe.disabledMD5===void 0?!0:!!Fe.disabledMD5,!(Fe.checkpoint&&Fe.checkpoint.uploadId)){et.next=8;break}return je&&pe(je)&&(Fe.checkpoint.file=je),et.next=7,this._resumeMultipart(Fe.checkpoint,Fe);case 7:return et.abrupt("return",et.sent);case 8:return ke=102400,Fe.mime||(pe(je)?Fe.mime=x.getType(de.extname(je.name)):se(je)?Fe.mime=je.type:ge(je)?Fe.mime="":Fe.mime=x.getType(de.extname(je))),Fe.headers=Fe.headers||{},this._convertMetaToHeaders(Fe.meta,Fe.headers),et.next=14,this._getFileSize(je);case 14:if(Ee=et.sent,!(Ee<ke)){et.next=26;break}return Fe.contentLength=Ee,et.next=19,this.put(Oe,je,Fe);case 19:if(Ge=et.sent,!(Fe&&Fe.progress)){et.next=23;break}return et.next=23,Fe.progress(1);case 23:return Ke={res:Ge.res,bucket:this.options.bucket,name:Oe,etag:Ge.res.headers.etag},(Fe.headers&&Fe.headers["x-oss-callback"]||Fe.callback)&&(Ke.data=Ge.data),et.abrupt("return",Ke);case 26:if(!(Fe.partSize&&parseInt(Fe.partSize,10)!==Fe.partSize)){et.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Fe.partSize&&Fe.partSize<ke)){et.next=30;break}throw new Error("partSize must not be smaller than ".concat(ke));case 30:return et.next=32,this.initMultipartUpload(Oe,Fe);case 32:if(Ve=et.sent,it=Ve.uploadId,Le=this._getPartSize(Ee,Fe.partSize),Ue={file:je,name:Oe,fileSize:Ee,partSize:Le,uploadId:it,doneParts:[]},!(Fe&&Fe.progress)){et.next=39;break}return et.next=39,Fe.progress(0,Ue,Ve.res);case 39:return et.next=41,this._resumeMultipart(Ue,Fe);case 41:return et.abrupt("return",et.sent);case 42:case"end":return et.stop()}},Ce,this)}));function we(Ce,Oe){return De.apply(this,arguments)}return we}(),me._resumeMultipart=function(){var De=(0,oe.default)(re.default.mark(function Ce(Oe,je){var Fe,ke,Ee,Ge,Ke,Ve,it,Le,Ue,tt,nt,et,Ze,Ye,Xe,st,Qe,ht,at;return re.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(Fe=this,!this.isCancel()){_e.next=3;break}throw this._makeCancelEvent();case 3:return ke=Oe.file,Ee=Oe.fileSize,Ge=Oe.partSize,Ke=Oe.uploadId,Ve=Oe.doneParts,it=Oe.name,Le=[],Ve.length>0&&ae(Ve).to(Le),Ue=this._divideParts(Ee,Ge),tt=Ue.length,nt=!1,et=function(ne,fe){return new Promise(function(){var Me=(0,oe.default)(re.default.mark(function He(be,ve){var Ie,$e,We,Je,ct;return re.default.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:if(ft.prev=0,ne.isCancel()){ft.next=29;break}return Ie=Ue[fe-1],ft.next=5,ne._createBuffer(ke,Ie.start,Ie.end);case 5:return $e=ft.sent,We={content:$e,size:Ie.end-Ie.start},ft.prev=7,ft.next=10,ne._uploadPart(it,Ke,fe,We,je);case 10:Je=ft.sent,ft.next=18;break;case 13:if(ft.prev=13,ft.t0=ft.catch(7),ft.t0.status!==404){ft.next=17;break}throw ne._makeAbortEvent();case 17:throw ft.t0;case 18:if(!(!ne.isCancel()&&!nt)){ft.next=26;break}if(Oe.doneParts.push({number:fe,etag:Je.res.headers.etag}),!je.progress){ft.next=23;break}return ft.next=23,je.progress(Ve.length/(tt+1),Oe,Je.res);case 23:be({number:fe,etag:Je.res.headers.etag}),ft.next=27;break;case 26:be();case 27:ft.next=30;break;case 29:be();case 30:ft.next=41;break;case 32:ft.prev=32,ft.t1=ft.catch(0),ct=new Error,ct.name=ft.t1.name,ct.message=ft.t1.message,ct.stack=ft.t1.stack,ct.partNum=fe,ae(ft.t1).to(ct),ve(ct);case 41:case"end":return ft.stop()}},He,null,[[0,32],[7,13]])}));return function(He,be){return Me.apply(this,arguments)}}())},Ze=Array.from(new Array(tt),function(Re,ne){return ne+1}),Ye=Le.map(function(Re){return Re.number}),Xe=Ze.filter(function(Re){return Ye.indexOf(Re)<0}),st=5,Qe=je.parallel||st,_e.next=17,this._parallel(Xe,Qe,function(Re){return new Promise(function(ne,fe){et(Fe,Re).then(function(Me){Me&&Le.push(Me),ne()}).catch(function(Me){fe(Me)})})});case 17:if(ht=_e.sent,nt=!0,at=ht.find(function(Re){return Re.name==="abort"}),!at){_e.next=22;break}throw at;case 22:if(!this.isCancel()){_e.next=25;break}throw et=null,this._makeCancelEvent();case 25:if(!(ht&&ht.length>0)){_e.next=28;break}throw ht[0].message="Failed to upload some parts with error: ".concat(ht[0].toString()," part_num: ").concat(ht[0].partNum),ht[0];case 28:return _e.next=30,this.completeMultipartUpload(it,Ke,Le,je);case 30:return _e.abrupt("return",_e.sent);case 31:case"end":return _e.stop()}},Ce,this)}));function we(Ce,Oe){return De.apply(this,arguments)}return we}(),me._getFileSize=function(){var De=(0,oe.default)(re.default.mark(function Ce(Oe){return re.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(!ge(Oe)){Fe.next=4;break}return Fe.abrupt("return",Oe.length);case 4:if(!(se(Oe)||pe(Oe))){Fe.next=6;break}return Fe.abrupt("return",Oe.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Fe.stop()}},Ce)}));function we(Ce){return De.apply(this,arguments)}return we}();var xe=y("stream"),Ae=xe.Readable;function Ne(De,we){if(!(this instanceof Ne))return new Ne(De,we);Ae.call(this,we),this.file=De,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}ee.inherits(Ne,Ae),Ne.prototype.readFileAndPush=function(we){if(this.fileBuffer)for(var Ce=!0;Ce&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Oe=this.start,je=Oe+we;je=je>this.fileBuffer.length?this.fileBuffer.length:je,this.start=je,Ce=this.push(this.fileBuffer.slice(Oe,je))}},Ne.prototype._read=function(we){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 Ce=16*1024;we=we||Ce;var Oe=this;this.reader.onload=function(Fe){Oe.fileBuffer=z.from(new Uint8Array(Fe.target.result)),Oe.file=null,Oe.readFileAndPush(we)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(we)};function Be(De){return De.arrayBuffer?De.arrayBuffer():new Promise(function(we,Ce){var Oe=new FileReader;Oe.onload=function(je){we(je.target.result)},Oe.onerror=function(je){Ce(je)},Oe.readAsArrayBuffer(De)})}me._createBuffer=function(){var De=(0,oe.default)(re.default.mark(function Ce(Oe,je,Fe){var ke,Ee;return re.default.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(!(se(Oe)||pe(Oe))){Ke.next=8;break}return ke=Oe.slice(je,Fe),Ke.next=4,Be(ke);case 4:return Ee=Ke.sent,Ke.abrupt("return",z.from(Ee));case 8:if(!ge(Oe)){Ke.next=12;break}return Ke.abrupt("return",Oe.subarray(je,Fe));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return Ke.stop()}},Ce)}));function we(Ce,Oe,je){return De.apply(this,arguments)}return we}(),me._getPartSize=function(we,Ce){var Oe=1e4,je=1*1024*1024;Ce||(Ce=je);var Fe=Math.ceil(we/Oe);return Ce<Fe&&(Ce=Fe,console.warn("partSize has been set to ".concat(Ce,", because the partSize you provided causes partNumber to be greater than 10,000"))),Ce},me._divideParts=function(we,Ce){for(var Oe=Math.ceil(we/Ce),je=[],Fe=0;Fe<Oe;Fe++){var ke=Ce*Fe,Ee=Math.min(ke+Ce,we);je.push({start:ke,end:Ee})}return je}}).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,Pe,ye){"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")),re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("fs"),ee=y("copy-to"),de=y("path"),x=y("mime"),ae=y("../common/callback"),ie=y("merge-descriptors"),se=y("../common/utils/isBlob"),ue=se.isBlob,pe=y("../common/utils/isFile"),he=pe.isFile,ge=y("../common/utils/isBuffer"),me=ge.isBuffer,xe=y("../common/utils/obj2xml"),Ae=xe.obj2xml,Ne=ye;Ne.append=function(){var Be=(0,re.default)(E.default.mark(function we(Ce,Oe,je){var Fe;return E.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return je=je||{},je.position===void 0&&(je.position="0"),je.subres={append:"",position:je.position},je.method="POST",Ee.next=6,this.put(Ce,Oe,je);case 6:return Fe=Ee.sent,Fe.nextAppendPosition=Fe.res.headers["x-oss-next-append-position"],Ee.abrupt("return",Fe);case 9:case"end":return Ee.stop()}},we,this)}));function De(we,Ce,Oe){return Be.apply(this,arguments)}return De}(),Ne.put=function(){var Be=(0,re.default)(E.default.mark(function we(Ce,Oe,je){var Fe,ke,Ee,Ge,Ke;return E.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:if(je=je||{},je.disabledMD5=je.disabledMD5===void 0?!0:!!je.disabledMD5,je.headers=je.headers||{},Ce=this._objectName(Ce),!me(Oe)){it.next=8;break}Fe=Oe,it.next=19;break;case 8:if(!(ue(Oe)||he(Oe))){it.next=18;break}return je.mime||(he(Oe)?je.mime=x.getType(de.extname(Oe.name)):je.mime=Oe.type),it.next=12,this._createBuffer(Oe,0,Oe.size);case 12:return Fe=it.sent,it.next=15,this._getFileSize(Oe);case 15:je.contentLength=it.sent,it.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(je.meta,je.headers),ke=je.method||"PUT",Ee=this._objectRequestParams(ke,Ce,je),ae.encodeCallback(Ee,je),Ee.mime=je.mime,Ee.disabledMD5=je.disabledMD5,Ee.content=Fe,Ee.successStatuses=[200],it.next=29,this.request(Ee);case 29:return Ge=it.sent,Ke={name:Ce,url:this._objectUrl(Ce),res:Ge.res},Ee.headers&&Ee.headers["x-oss-callback"]&&(Ke.data=JSON.parse(Ge.data.toString())),it.abrupt("return",Ke);case 33:case"end":return it.stop()}},we,this)}));function De(we,Ce,Oe){return Be.apply(this,arguments)}return De}(),Ne.putStream=function(){var Be=(0,re.default)(E.default.mark(function we(Ce,Oe,je){var Fe,ke,Ee,Ge;return E.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return je=je||{},je.headers=je.headers||{},Ce=this._objectName(Ce),je.contentLength?je.headers["Content-Length"]=je.contentLength:je.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(je.meta,je.headers),Fe=je.method||"PUT",ke=this._objectRequestParams(Fe,Ce,je),ae.encodeCallback(ke,je),ke.mime=je.mime,ke.stream=Oe,ke.successStatuses=[200],Ve.next=13,this.request(ke);case 13:return Ee=Ve.sent,Ge={name:Ce,url:this._objectUrl(Ce),res:Ee.res},ke.headers&&ke.headers["x-oss-callback"]&&(Ge.data=JSON.parse(Ee.data.toString())),Ve.abrupt("return",Ge);case 17:case"end":return Ve.stop()}},we,this)}));function De(we,Ce,Oe){return Be.apply(this,arguments)}return De}(),ie(Ne,y("../common/object/copyObject")),ie(Ne,y("../common/object/getObjectTagging")),ie(Ne,y("../common/object/putObjectTagging")),ie(Ne,y("../common/object/deleteObjectTagging")),ie(Ne,y("../common/image")),ie(Ne,y("../common/object/getBucketVersions")),ie(Ne,y("../common/object/getACL")),ie(Ne,y("../common/object/putACL")),ie(Ne,y("../common/object/head")),ie(Ne,y("../common/object/delete")),ie(Ne,y("../common/object/get")),ie(Ne,y("../common/object/putSymlink")),ie(Ne,y("../common/object/getSymlink")),ie(Ne,y("../common/object/deleteMulti")),ie(Ne,y("../common/object/getObjectMeta")),ie(Ne,y("../common/object/getObjectUrl")),ie(Ne,y("../common/object/generateObjectUrl")),ie(Ne,y("../common/object/signatureUrl")),ie(Ne,y("../common/object/asyncSignatureUrl")),Ne.putMeta=function(){var Be=(0,re.default)(E.default.mark(function we(Ce,Oe,je){var Fe;return E.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ee.next=2,this.copy(Ce,Ce,{meta:Oe||{},timeout:je&&je.timeout,ctx:je&&je.ctx});case 2:return Fe=Ee.sent,Ee.abrupt("return",Fe);case 4:case"end":return Ee.stop()}},we,this)}));function De(we,Ce,Oe){return Be.apply(this,arguments)}return De}(),Ne.list=function(){var Be=(0,re.default)(E.default.mark(function we(Ce,Oe){var je,Fe,ke,Ee,Ge;return E.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return je=this._objectRequestParams("GET","",Oe),je.query=Ce,je.xmlResponse=!0,je.successStatuses=[200],Ve.next=6,this.request(je);case 6:return Fe=Ve.sent,ke=Fe.data.Contents||[],Ee=this,ke&&(Array.isArray(ke)||(ke=[ke]),ke=ke.map(function(it){return{name:it.Key,url:Ee._objectUrl(it.Key),lastModified:it.LastModified,etag:it.ETag,type:it.Type,size:Number(it.Size),storageClass:it.StorageClass,owner:{id:it.Owner.ID,displayName:it.Owner.DisplayName}}})),Ge=Fe.data.CommonPrefixes||null,Ge&&(Array.isArray(Ge)||(Ge=[Ge]),Ge=Ge.map(function(it){return it.Prefix})),Ve.abrupt("return",{res:Fe.res,objects:ke,prefixes:Ge,nextMarker:Fe.data.NextMarker||null,isTruncated:Fe.data.IsTruncated==="true"});case 13:case"end":return Ve.stop()}},we,this)}));function De(we,Ce){return Be.apply(this,arguments)}return De}(),Ne.listV2=function(){var Be=(0,re.default)(E.default.mark(function we(Ce){var Oe,je,Fe,ke,Ee,Ge,Ke,Ve=arguments;return E.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Oe=Ve.length>1&&Ve[1]!==void 0?Ve[1]:{},je=Ce["continuation-token"]||Ce.continuationToken,je&&(Oe.subres=Object.assign({"continuation-token":je},Oe.subres)),Fe=this._objectRequestParams("GET","",Oe),Fe.query=Object.assign({"list-type":2},Ce),delete Fe.query["continuation-token"],delete Fe.query.continuationToken,Fe.xmlResponse=!0,Fe.successStatuses=[200],Le.next=11,this.request(Fe);case 11:return ke=Le.sent,Ee=ke.data.Contents||[],Ge=this,Ee&&(Array.isArray(Ee)||(Ee=[Ee]),Ee=Ee.map(function(Ue){var tt=null;return Ue.Owner&&(tt={id:Ue.Owner.ID,displayName:Ue.Owner.DisplayName}),{name:Ue.Key,url:Ge._objectUrl(Ue.Key),lastModified:Ue.LastModified,etag:Ue.ETag,type:Ue.Type,size:Number(Ue.Size),storageClass:Ue.StorageClass,owner:tt}})),Ke=ke.data.CommonPrefixes||null,Ke&&(Array.isArray(Ke)||(Ke=[Ke]),Ke=Ke.map(function(Ue){return Ue.Prefix})),Le.abrupt("return",{res:ke.res,objects:Ee,prefixes:Ke,isTruncated:ke.data.IsTruncated==="true",keyCount:+ke.data.KeyCount,continuationToken:ke.data.ContinuationToken||null,nextContinuationToken:ke.data.NextContinuationToken||null});case 18:case"end":return Le.stop()}},we,this)}));function De(we){return Be.apply(this,arguments)}return De}(),Ne.restore=function(){var Be=(0,re.default)(E.default.mark(function we(Ce){var Oe,je,Fe,ke,Ee=arguments;return E.default.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return Oe=Ee.length>1&&Ee[1]!==void 0?Ee[1]:{type:"Archive"},Oe=Oe||{},Oe.subres=Object.assign({restore:""},Oe.subres),Oe.versionId&&(Oe.subres.versionId=Oe.versionId),je=this._objectRequestParams("POST",Ce,Oe),Oe.type==="ColdArchive"&&(Fe={RestoreRequest:{Days:Oe.Days?Oe.Days:2,JobParameters:{Tier:Oe.JobParameters?Oe.JobParameters:"Standard"}}},je.content=Ae(Fe,{headers:!0}),je.mime="xml"),je.successStatuses=[202],Ke.next=9,this.request(je);case 9:return ke=Ke.sent,Ke.abrupt("return",{res:ke.res});case 11:case"end":return Ke.stop()}},we,this)}));function De(we){return Be.apply(this,arguments)}return De}(),Ne._objectUrl=function(De){return this._getReqUrl({bucket:this.options.bucket,object:De})},Ne._objectRequestParams=function(De,we,Ce){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Ce=Ce||{},we=this._objectName(we);var Oe={object:we,bucket:this.options.bucket,method:De,subres:Ce&&Ce.subres,timeout:Ce&&Ce.timeout,ctx:Ce&&Ce.ctx};return Ce.headers&&(Oe.headers={},ee(Ce.headers).to(Oe.headers)),Oe},Ne._objectName=function(De){return De.replace(/^\/+/,"")},Ne._convertMetaToHeaders=function(De,we){De&&Object.keys(De).forEach(function(Ce){we["x-oss-meta-".concat(Ce)]=De[Ce]})},Ne._deleteFileSafe=function(De){var we=this;return new Promise(function(Ce){oe.exists(De,function(Oe){Oe?oe.unlink(De,function(je){je&&we.debug("unlink %j error: %s",De,je,"error"),Ce()}):Ce()})})}},{"../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,Pe,ye){"use strict";ye.version="6.18.1"},{}],7:[function(y,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),re=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.abortBucketWorm=void 0;var oe=y("../utils/checkBucketName");function ee(x,ae){return de.apply(this,arguments)}function de(){return de=(0,re.default)(E.default.mark(function x(ae,ie){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",ie),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)})),de.apply(this,arguments)}ye.abortBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(y,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),re=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.completeBucketWorm=void 0;var oe=y("../utils/checkBucketName");function ee(x,ae,ie){return de.apply(this,arguments)}function de(){return de=(0,re.default)(E.default.mark(function x(ae,ie,se){var ue,pe;return E.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return oe.checkBucketName(ae),ue=this._bucketRequestParams("POST",ae,{wormId:ie},se),ge.next=4,this.request(ue);case 4:return pe=ge.sent,ge.abrupt("return",{res:pe.res,status:pe.status});case 6:case"end":return ge.stop()}},x,this)})),de.apply(this,arguments)}ye.completeBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(y,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var re=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.deleteBucketInventory=void 0;var oe=y("../utils/checkBucketName");function ee(x,ae){return de.apply(this,arguments)}function de(){return de=(0,re.default)(E.default.mark(function x(ae,ie){var se,ue,pe,he,ge=arguments;return E.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return se=ge.length>2&&ge[2]!==void 0?ge[2]:{},ue=Object.assign({inventory:"",inventoryId:ie},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)})),de.apply(this,arguments)}ye.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,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,de=ye;de.deleteBucketLifecycle=function(){var x=(0,re.default)(E.default.mark(function ie(se,ue){var pe,he;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ee(se),pe=this._bucketRequestParams("DELETE",se,"lifecycle",ue),pe.successStatuses=[204],me.next=5,this.request(pe);case 5:return he=me.sent,me.abrupt("return",{res:he.res});case 7:case"end":return me.stop()}},ie,this)}));function ae(ie,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,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,de=ye;de.deleteBucketWebsite=function(){var x=(0,re.default)(E.default.mark(function ie(se,ue){var pe,he;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ee(se),pe=this._bucketRequestParams("DELETE",se,"website",ue),pe.successStatuses=[204],me.next=5,this.request(pe);case 5:return he=me.sent,me.abrupt("return",{res:he.res});case 7:case"end":return me.stop()}},ie,this)}));function ae(ie,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,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),re=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.extendBucketWorm=void 0;var oe=y("../utils/checkBucketName"),ee=y("../utils/obj2xml");function de(ae,ie,se,ue){return x.apply(this,arguments)}function x(){return x=(0,re.default)(E.default.mark(function ae(ie,se,ue,pe){var he,ge,me;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return oe.checkBucketName(ie),he=this._bucketRequestParams("POST",ie,{wormExtend:"",wormId:se},pe),ge={ExtendWormConfiguration:{RetentionPeriodInDays:ue}},he.mime="xml",he.content=ee.obj2xml(ge,{headers:!0}),he.successStatuses=[200],Ae.next=8,this.request(he);case 8:return me=Ae.sent,Ae.abrupt("return",{res:me.res,status:me.status});case 10:case"end":return Ae.stop()}},ae,this)})),x.apply(this,arguments)}ye.extendBucketWorm=de},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(y,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var re=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.getBucketInventory=void 0;var oe=y("../utils/checkBucketName"),ee=y("../utils/formatInventoryConfig");function de(ae,ie){return x.apply(this,arguments)}function x(){return x=(0,re.default)(E.default.mark(function ae(ie,se){var ue,pe,he,ge,me=arguments;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return ue=me.length>2&&me[2]!==void 0?me[2]:{},pe=Object.assign({inventory:"",inventoryId:se},ue.subres),oe.checkBucketName(ie),he=this._bucketRequestParams("GET",ie,pe,ue),he.successStatuses=[200],he.xmlResponse=!0,Ae.next=8,this.request(he);case 8:return ge=Ae.sent,Ae.abrupt("return",{status:ge.status,res:ge.res,inventory:ee.formatInventoryConfig(ge.data)});case 10:case"end":return Ae.stop()}},ae,this)})),x.apply(this,arguments)}ye.getBucketInventory=de},{"../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,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.map.js");var re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,de=y("../utils/isArray"),x=de.isArray,ae=y("../utils/formatObjKey"),ie=ae.formatObjKey,se=ye;se.getBucketLifecycle=function(){var ue=(0,re.default)(E.default.mark(function he(ge,me){var xe,Ae,Ne;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return ee(ge),xe=this._bucketRequestParams("GET",ge,"lifecycle",me),xe.successStatuses=[200],xe.xmlResponse=!0,De.next=6,this.request(xe);case 6:return Ae=De.sent,Ne=Ae.data.Rule||null,Ne&&(x(Ne)||(Ne=[Ne]),Ne=Ne.map(function(we){return we.ID&&(we.id=we.ID,delete we.ID),we.Tag&&!x(we.Tag)&&(we.Tag=[we.Tag]),ie(we,"firstLowerCase")})),De.abrupt("return",{rules:Ne,res:Ae.res});case 10:case"end":return De.stop()}},he,this)}));function pe(he,ge){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,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,de=ye;de.getBucketVersioning=function(){var x=(0,re.default)(E.default.mark(function ie(se,ue){var pe,he,ge;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,ge=he.data.Status,xe.abrupt("return",{status:he.status,versionStatus:ge,res:he.res});case 9:case"end":return xe.stop()}},ie,this)}));function ae(ie,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,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,de=y("../utils/isObject"),x=de.isObject,ae=ye;ae.getBucketWebsite=function(){var ie=(0,re.default)(E.default.mark(function ue(pe,he){var ge,me,xe;return E.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return ee(pe),ge=this._bucketRequestParams("GET",pe,"website",he),ge.successStatuses=[200],ge.xmlResponse=!0,Ne.next=6,this.request(ge);case 6:return me=Ne.sent,xe=[],me.data.RoutingRules&&me.data.RoutingRules.RoutingRule&&(x(me.data.RoutingRules.RoutingRule)?xe=[me.data.RoutingRules.RoutingRule]:xe=me.data.RoutingRules.RoutingRule),Ne.abrupt("return",{index:me.data.IndexDocument&&me.data.IndexDocument.Suffix||"",supportSubDir:me.data.IndexDocument&&me.data.IndexDocument.SupportSubDir||"false",type:me.data.IndexDocument&&me.data.IndexDocument.Type,routingRules:xe,error:me.data.ErrorDocument&&me.data.ErrorDocument.Key||null,res:me.res});case 10:case"end":return Ne.stop()}},ue,this)}));function se(ue,pe){return ie.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,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var re=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.getBucketWorm=void 0;var oe=y("../utils/checkBucketName"),ee=y("../utils/dataFix");function de(ae,ie){return x.apply(this,arguments)}function x(){return x=(0,re.default)(E.default.mark(function ae(ie,se){var ue,pe;return E.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return oe.checkBucketName(ie),ue=this._bucketRequestParams("GET",ie,"worm",se),ue.successStatuses=[200],ue.xmlResponse=!0,ge.next=6,this.request(ue);case 6:return pe=ge.sent,ee.dataFix(pe.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),ge.abrupt("return",Object.assign(Object.assign({},pe.data),{res:pe.res,status:pe.status}));case 9:case"end":return ge.stop()}},ae,this)})),x.apply(this,arguments)}ye.getBucketWorm=de},{"../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,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),re=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.initiateBucketWorm=void 0;var oe=y("../utils/obj2xml"),ee=y("../utils/checkBucketName");function de(ae,ie,se){return x.apply(this,arguments)}function x(){return x=(0,re.default)(E.default.mark(function ae(ie,se,ue){var pe,he,ge;return E.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ee.checkBucketName(ie),pe=this._bucketRequestParams("POST",ie,"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 ge=xe.sent,xe.abrupt("return",{res:ge.res,wormId:ge.res.headers["x-oss-worm-id"],status:ge.status});case 10:case"end":return xe.stop()}},ae,this)})),x.apply(this,arguments)}ye.initiateBucketWorm=de},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(y,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var re=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.listBucketInventory=void 0;var oe=y("../utils/checkBucketName"),ee=y("../utils/formatInventoryConfig");function de(ae){return x.apply(this,arguments)}function x(){return x=(0,re.default)(E.default.mark(function ae(ie){var se,ue,pe,he,ge,me,xe,Ae,Ne=arguments;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return se=Ne.length>1&&Ne[1]!==void 0?Ne[1]:{},ue=se.continuationToken,pe=Object.assign({inventory:""},ue&&{"continuation-token":ue},se.subres),oe.checkBucketName(ie),he=this._bucketRequestParams("GET",ie,pe,se),he.successStatuses=[200],he.xmlResponse=!0,De.next=9,this.request(he);case 9:return ge=De.sent,me=ge.data,xe=ge.res,Ae=ge.status,De.abrupt("return",{isTruncated:me.IsTruncated==="true",nextContinuationToken:me.NextContinuationToken,inventoryList:ee.formatInventoryConfig(me.InventoryConfiguration,!0),status:Ae,res:xe});case 12:case"end":return De.stop()}},ae,this)})),x.apply(this,arguments)}ye.listBucketInventory=de},{"../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,Pe,ye){"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 re=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.putBucketInventory=void 0;var oe=y("../utils/checkBucketName"),ee=y("../utils/obj2xml");function de(ae,ie){return x.apply(this,arguments)}function x(){return x=(0,re.default)(E.default.mark(function ae(ie,se){var ue,pe,he,ge,me,xe,Ae,Ne,Be,De,we,Ce=arguments;return E.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ue=Ce.length>2&&Ce[2]!==void 0?Ce[2]:{},pe=Object.assign({inventory:"",inventoryId:se.id},ue.subres),oe.checkBucketName(ie),he=se.OSSBucketDestination,ge=se.optionalFields,me=se.includedObjectVersions,xe="acs:oss:::",Ae="acs:ram::".concat(he.accountId,":role/"),Ne={InventoryConfiguration:{Id:se.id,IsEnabled:se.isEnabled,Filter:{Prefix:se.prefix||""},Destination:{OSSBucketDestination:{Format:he.format,AccountId:he.accountId,RoleArn:"".concat(Ae).concat(he.rolename),Bucket:"".concat(xe).concat(he.bucket),Prefix:he.prefix||"",Encryption:he.encryption||""}},Schedule:{Frequency:se.frequency},IncludedObjectVersions:me,OptionalFields:{Field:(ge==null?void 0:ge.field)||[]}}},Be=ee.obj2xml(Ne,{headers:!0,firstUpperCase:!0}),De=this._bucketRequestParams("PUT",ie,pe,ue),De.successStatuses=[200],De.mime="xml",De.content=Be,je.next=14,this.request(De);case 14:return we=je.sent,je.abrupt("return",{status:we.status,res:we.res});case 16:case"end":return je.stop()}},ae,this)})),x.apply(this,arguments)}ye.putBucketInventory=de},{"../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,Pe,ye){"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 re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,de=y("../utils/isArray"),x=de.isArray,ae=y("../utils/deepCopy"),ie=ae.deepCopy,se=y("../utils/isObject"),ue=se.isObject,pe=y("../utils/obj2xml"),he=pe.obj2xml,ge=y("../utils/checkObjectTag"),me=ge.checkObjectTag,xe=y("../utils/getStrBytesCount"),Ae=xe.getStrBytesCount,Ne=ye;Ne.putBucketLifecycle=function(){var Oe=(0,re.default)(E.default.mark(function Fe(ke,Ee,Ge){var Ke,Ve,it,Le,Ue;return E.default.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(ee(ke),x(Ee)){nt.next=3;break}throw new Error("rules must be Array");case 3:return Ke=this._bucketRequestParams("PUT",ke,"lifecycle",Ge),Ve=[],it={LifecycleConfiguration:{Rule:Ve}},Ee.forEach(function(et){Be(et),Ce(et),et.id&&(et.ID=et.id,delete et.id),Ve.push(et)}),Le=he(it,{headers:!0,firstUpperCase:!0}),Ke.content=Le,Ke.mime="xml",Ke.successStatuses=[200],nt.next=13,this.request(Ke);case 13:return Ue=nt.sent,nt.abrupt("return",{res:Ue.res});case 15:case"end":return nt.stop()}},Fe,this)}));function je(Fe,ke,Ee){return Oe.apply(this,arguments)}return je}();function Be(Oe){Oe.days&&(Oe.expiration={days:Oe.days}),Oe.date&&(Oe.expiration={createdBeforeDate:Oe.date})}function De(Oe,je){var Fe=Oe.days,ke=Oe.createdBeforeDate;if(!Fe&&!ke)throw new Error("".concat(je," must includes days or createdBeforeDate"));if(Fe&&!/^[1-9][0-9]*$/.test(Fe))throw new Error("days must be a positive integer");if(ke&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(ke))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function we(Oe){if(!x(Oe)&&!ue(Oe))throw new Error("tag must be Object or Array");Oe=ue(Oe)?[Oe]:Oe;var je={},Fe=ie(Oe);Fe.forEach(function(ke){je[ke.key]=ke.value}),me(je)}function Ce(Oe){if(Oe.id&&Ae(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");De(Oe.transition,"Transition")}if(Oe.expiration){if(!Oe.expiration.expiredObjectDeleteMarker)De(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&&De(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");we(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,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.includes.js");var re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,de=y("../utils/obj2xml"),x=de.obj2xml,ae=ye;ae.putBucketVersioning=function(){var ie=(0,re.default)(E.default.mark(function ue(pe,he){var ge,me,xe,Ae,Ne=arguments;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(ge=Ne.length>2&&Ne[2]!==void 0?Ne[2]:{},ee(pe),["Enabled","Suspended"].includes(he)){De.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return me=this._bucketRequestParams("PUT",pe,"versioning",ge),xe={VersioningConfiguration:{Status:he}},me.mime="xml",me.content=x(xe,{headers:!0}),De.next=10,this.request(me);case 10:return Ae=De.sent,De.abrupt("return",{res:Ae.res,status:Ae.status});case 12:case"end":return De.stop()}},ue,this)}));function se(ue,pe){return ie.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,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,de=y("../utils/obj2xml"),x=de.obj2xml,ae=y("../utils/isArray"),ie=ae.isArray,se=ye;se.putBucketWebsite=function(){var ue=(0,re.default)(E.default.mark(function he(ge){var me,xe,Ae,Ne,Be,De,we,Ce=arguments;return E.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(me=Ce.length>1&&Ce[1]!==void 0?Ce[1]:{},xe=Ce.length>2?Ce[2]:void 0,ee(ge),Ae=this._bucketRequestParams("PUT",ge,"website",xe),Ne={Suffix:me.index||"index.html"},Be={IndexDocument:Ne},De={WebsiteConfiguration:Be},me.supportSubDir&&(Ne.SupportSubDir=me.supportSubDir),me.type&&(Ne.Type=me.type),me.error&&(Be.ErrorDocument={Key:me.error}),me.routingRules===void 0){je.next=14;break}if(ie(me.routingRules)){je.next=13;break}throw new Error("RoutingRules must be Array");case 13:Be.RoutingRules={RoutingRule:me.routingRules};case 14:return De=x(De),Ae.content=De,Ae.mime="xml",Ae.successStatuses=[200],je.next=20,this.request(Ae);case 20:return we=je.sent,je.abrupt("return",{res:we.res});case 22:case"end":return je.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,Pe,ye){(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"),ye.encodeCallback=function(re,oe){if(re.headers=re.headers||{},!Object.prototype.hasOwnProperty.call(re.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 de=z.from(JSON.stringify(ee)).toString("base64");if(re.headers["x-oss-callback"]=de,oe.callback.customValue){var x={};Object.keys(oe.callback.customValue).forEach(function(ae){x["x:".concat(ae)]=oe.callback.customValue[ae].toString()}),re.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,Pe,ye){"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(ie){return ie&&ie.__esModule?ie:{default:ie}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.getReqUrl=void 0;var E=z(y("copy-to")),re=z(y("url")),oe=z(y("merge-descriptors")),ee=z(y("is-type-of")),de=y("../utils/isIP"),x=y("../utils/checkConfigValid");function ae(ie){var se={},ue=this.options.cname;x.checkConfigValid(this.options.endpoint,"endpoint"),E.default(this.options.endpoint,!1).to(se),ie.bucket&&!ue&&!de.isIP(se.hostname)&&!this.options.sldEnable&&(se.host="".concat(ie.bucket,".").concat(se.host));var pe="/";ie.bucket&&this.options.sldEnable&&(pe+="".concat(ie.bucket,"/")),ie.object&&(pe+=this._escape(ie.object).replace(/\+/g,"%2B")),se.pathname=pe;var he={};if(ie.query&&oe.default(he,ie.query),ie.subres){var ge={};ee.default.string(ie.subres)?ge[ie.subres]="":ee.default.array(ie.subres)?ie.subres.forEach(function(me){ge[me]=""}):ge=ie.subres,oe.default(he,ge)}return se.query=he,re.default.format(se)}ye.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,Pe,ye){"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"),re=y("../utils/checkBucketName"),oe=re.checkBucketName,ee=y("../utils/setRegion"),de=ee.setRegion,x=y("../utils/checkConfigValid"),ae=x.checkConfigValid;function ie(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}Pe.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=ie(ue.endpoint,ue.secure);else if(ue.region)ue.endpoint=de(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,Pe,ye){"use strict";var z=y("merge-descriptors"),E=ye;z(E,y("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(y,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.concat.js");var re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,de=y("querystring"),x=y("js-base64"),ae=x.Base64.encode,ie=ye;ie.processObjectSave=function(){var ue=(0,re.default)(E.default.mark(function he(ge,me,xe,Ae){var Ne,Be,De,we;return E.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return se(ge,"sourceObject"),se(me,"targetObject"),se(xe,"process"),me=this._objectName(me),Ae&&ee(Ae),Ne=this._objectRequestParams("POST",ge,{subres:"x-oss-process"}),Be=Ae?",b_".concat(ae(Ae)):"",me=ae(me),De={"x-oss-process":"".concat(xe,"|sys/saveas,o_").concat(me).concat(Be)},Ne.content=de.stringify(De),Oe.next=12,this.request(Ne);case 12:return we=Oe.sent,Oe.abrupt("return",{res:we.res,status:we.res.status});case 14:case"end":return Oe.stop()}},he,this)}));function pe(he,ge,me,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,Pe,ye){"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 re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("debug")("ali-oss:multipart-copy"),ee=y("copy-to"),de=ye;de.uploadPartCopy=function(){var x=(0,re.default)(E.default.mark(function ie(se,ue,pe,he,ge){var me,xe,Ae,Ne,Be,De=arguments;return E.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return me=De.length>5&&De[5]!==void 0?De[5]:{},me.headers=me.headers||{},xe=me.versionId||me.subres&&me.subres.versionId||null,xe?Ae="/".concat(ge.sourceBucketName,"/").concat(encodeURIComponent(ge.sourceKey),"?versionId=").concat(xe):Ae="/".concat(ge.sourceBucketName,"/").concat(encodeURIComponent(ge.sourceKey)),me.headers["x-oss-copy-source"]=Ae,he&&(me.headers["x-oss-copy-source-range"]="bytes=".concat(he)),me.subres={partNumber:pe,uploadId:ue},Ne=this._objectRequestParams("PUT",se,me),Ne.mime=me.mime,Ne.successStatuses=[200],Ce.next=12,this.request(Ne);case 12:return Be=Ce.sent,Ce.abrupt("return",{name:se,etag:Be.res.headers.etag,res:Be.res});case 14:case"end":return Ce.stop()}},ie,this)}));function ae(ie,se,ue,pe,he){return x.apply(this,arguments)}return ae}(),de.multipartUploadCopy=function(){var x=(0,re.default)(E.default.mark(function ie(se,ue){var pe,he,ge,me,xe,Ae,Ne,Be,De,we,Ce,Oe,je=arguments;return E.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return pe=je.length>2&&je[2]!==void 0?je[2]:{},this.resetCancelFlag(),he=pe.versionId,ge=he===void 0?null:he,me={versionId:ge},ke.next=6,this._getObjectMeta(ue.sourceBucketName,ue.sourceKey,me);case 6:if(xe=ke.sent,Ae=xe.res.headers["content-length"],ue.startOffset=ue.startOffset||0,ue.endOffset=ue.endOffset||Ae,!(pe.checkpoint&&pe.checkpoint.uploadId)){ke.next=14;break}return ke.next=13,this._resumeMultipartCopy(pe.checkpoint,ue,pe);case 13:return ke.abrupt("return",ke.sent);case 14:if(Ne=102400,Be=ue.endOffset-ue.startOffset,!(Be<Ne)){ke.next=18;break}throw new Error("copySize must not be smaller than ".concat(Ne));case 18:if(!(pe.partSize&&pe.partSize<Ne)){ke.next=20;break}throw new Error("partSize must not be smaller than ".concat(Ne));case 20:return ke.next=22,this.initMultipartUpload(se,pe);case 22:if(De=ke.sent,we=De.uploadId,Ce=this._getPartSize(Be,pe.partSize),Oe={name:se,copySize:Be,partSize:Ce,uploadId:we,doneParts:[]},!(pe&&pe.progress)){ke.next=29;break}return ke.next=29,pe.progress(0,Oe,De.res);case 29:return ke.next=31,this._resumeMultipartCopy(Oe,ue,pe);case 31:return ke.abrupt("return",ke.sent);case 32:case"end":return ke.stop()}},ie,this)}));function ae(ie,se){return x.apply(this,arguments)}return ae}(),de._resumeMultipartCopy=function(){var x=(0,re.default)(E.default.mark(function ie(se,ue,pe){var he,ge,me,xe,Ae,Ne,Be,De,we,Ce,Oe,je,Fe,ke,Ee,Ge,Ke,Ve,it,Le,Ue;return E.default.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(!this.isCancel()){nt.next=2;break}throw this._makeCancelEvent();case 2:if(he=pe.versionId,ge=he===void 0?null:he,me={versionId:ge},xe=se.copySize,Ae=se.partSize,Ne=se.uploadId,Be=se.doneParts,De=se.name,we=this._divideMultipartCopyParts(xe,Ae,ue.startOffset),Ce=we.length,Oe={headers:{}},pe.copyheaders&&ee(pe.copyheaders).to(Oe.headers),ge&&ee(me).to(Oe),je=function(Ze,Ye,Xe){return new Promise(function(){var st=(0,re.default)(E.default.mark(function Qe(ht,at){var qe,_e,Re;return E.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(fe.prev=0,Ze.isCancel()){fe.next=22;break}return qe=we[Ye-1],_e="".concat(qe.start,"-").concat(qe.end-1),fe.prev=4,fe.next=7,Ze.uploadPartCopy(De,Ne,Ye,_e,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 Ze._makeAbortEvent();case 14:throw fe.t0;case 15:if(Ze.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/Ce,se,Re.res);case 22:ht(),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,ht){return st.apply(this,arguments)}}())},Fe=Array.from(new Array(Ce),function(et,Ze){return Ze+1}),ke=Be.map(function(et){return et.number}),Ee=Fe.filter(function(et){return ke.indexOf(et)<0}),Ge=5,Ke=pe.parallel||Ge,!(this.checkBrowserAndVersion("Internet Explorer","10")||Ke===1)){nt.next=28;break}Ve=0;case 18:if(!(Ve<Ee.length)){nt.next=26;break}if(!this.isCancel()){nt.next=21;break}throw this._makeCancelEvent();case 21:return nt.next=23,je(this,Ee[Ve],ue);case 23:Ve++,nt.next=18;break;case 26:nt.next=40;break;case 28:return nt.next=30,this._parallelNode(Ee,Ke,je,ue);case 30:if(it=nt.sent,Le=it.find(function(et){return et.name==="abort"}),!Le){nt.next=34;break}throw Le;case 34:if(!this.isCancel()){nt.next=36;break}throw this._makeCancelEvent();case 36:if(!(it&&it.length>0)){nt.next=40;break}throw Ue=it[0],Ue.message="Failed to copy some parts with error: ".concat(Ue.toString()," part_num: ").concat(Ue.partNum),Ue;case 40:return nt.next=42,this.completeMultipartUpload(De,Ne,Be,pe);case 42:return nt.abrupt("return",nt.sent);case 43:case"end":return nt.stop()}},ie,this)}));function ae(ie,se,ue){return x.apply(this,arguments)}return ae}(),de._divideMultipartCopyParts=function(ae,ie,se){for(var ue=Math.ceil(ae/ie),pe=[],he=0;he<ue;he++){var ge=ie*he+se,me=Math.min(ge+ie,ae+se);pe.push({start:ge,end:me})}return pe},de._getObjectMeta=function(){var x=(0,re.default)(E.default.mark(function ie(se,ue,pe){var he,ge;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 ge=xe.sent,this.setBucket(he),xe.abrupt("return",ge);case 7:case"end":return xe.stop()}},ie,this)}));function ae(ie,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,Pe,ye){(function(z){(function(){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),re=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"),de=y("./callback"),x=y("./utils/deepCopy"),ae=x.deepCopyWith,ie=y("./utils/isBuffer"),se=ie.isBuffer,ue=y("./utils/omit"),pe=ue.omit,he=ye;he.listUploads=function(){var ge=(0,oe.default)(re.default.mark(function xe(Ae,Ne){var Be,De,we,Ce;return re.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return Ne=Ne||{},Be={},ee(Ne).to(Be),Be.subres="uploads",De=this._objectRequestParams("GET","",Be),De.query=Ae,De.xmlResponse=!0,De.successStatuses=[200],je.next=10,this.request(De);case 10:return we=je.sent,Ce=we.data.Upload||[],Array.isArray(Ce)||(Ce=[Ce]),Ce=Ce.map(function(Fe){return{name:Fe.Key,uploadId:Fe.UploadId,initiated:Fe.Initiated}}),je.abrupt("return",{res:we.res,uploads:Ce,bucket:we.data.Bucket,nextKeyMarker:we.data.NextKeyMarker,nextUploadIdMarker:we.data.NextUploadIdMarker,isTruncated:we.data.IsTruncated==="true"});case 15:case"end":return je.stop()}},xe,this)}));function me(xe,Ae){return ge.apply(this,arguments)}return me}(),he.listParts=function(){var ge=(0,oe.default)(re.default.mark(function xe(Ae,Ne,Be,De){var we,Ce,Oe;return re.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return De=De||{},we={},ee(De).to(we),we.subres={uploadId:Ne},Ce=this._objectRequestParams("GET",Ae,we),Ce.query=Be,Ce.xmlResponse=!0,Ce.successStatuses=[200],Fe.next=10,this.request(Ce);case 10:return Oe=Fe.sent,Fe.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 Fe.stop()}},xe,this)}));function me(xe,Ae,Ne,Be){return ge.apply(this,arguments)}return me}(),he.abortMultipartUpload=function(){var ge=(0,oe.default)(re.default.mark(function xe(Ae,Ne,Be){var De,we,Ce;return re.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return this._stop(),Be=Be||{},De={},ee(Be).to(De),De.subres={uploadId:Ne},we=this._objectRequestParams("DELETE",Ae,De),we.successStatuses=[204],je.next=9,this.request(we);case 9:return Ce=je.sent,je.abrupt("return",{res:Ce.res});case 11:case"end":return je.stop()}},xe,this)}));function me(xe,Ae,Ne){return ge.apply(this,arguments)}return me}(),he.initMultipartUpload=function(){var ge=(0,oe.default)(re.default.mark(function xe(Ae,Ne){var Be,De,we;return re.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Ne=Ne||{},Be={},ee(Ne).to(Be),Be.headers=Be.headers||{},this._convertMetaToHeaders(Ne.meta,Be.headers),Be.subres="uploads",De=this._objectRequestParams("POST",Ae,Be),De.mime=Ne.mime,De.xmlResponse=!0,De.successStatuses=[200],Oe.next=12,this.request(De);case 12:return we=Oe.sent,Oe.abrupt("return",{res:we.res,bucket:we.data.Bucket,name:we.data.Key,uploadId:we.data.UploadId});case 14:case"end":return Oe.stop()}},xe,this)}));function me(xe,Ae){return ge.apply(this,arguments)}return me}(),he.uploadPart=function(){var ge=(0,oe.default)(re.default.mark(function xe(Ae,Ne,Be,De,we,Ce,Oe){var je,Fe;return re.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(je={size:Ce-we},Fe=z&&z.browser,!Fe){Ee.next=8;break}return Ee.next=5,this._createBuffer(De,we,Ce);case 5:je.content=Ee.sent,Ee.next=11;break;case 8:return Ee.next=10,this._createStream(De,we,Ce);case 10:je.stream=Ee.sent;case 11:return Ee.next=13,this._uploadPart(Ae,Ne,Be,je,Oe);case 13:return Ee.abrupt("return",Ee.sent);case 14:case"end":return Ee.stop()}},xe,this)}));function me(xe,Ae,Ne,Be,De,we,Ce){return ge.apply(this,arguments)}return me}(),he.completeMultipartUpload=function(){var ge=(0,oe.default)(re.default.mark(function xe(Ae,Ne,Be,De){var we,Ce,Oe,je,Fe,ke,Ee,Ge;return re.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:for(we=Be.concat().sort(function(it,Le){return it.number-Le.number}).filter(function(it,Le,Ue){return!Le||it.number!==Ue[Le-1].number}),Ce=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,Oe=0;Oe<we.length;Oe++)je=we[Oe],Ce+=`<Part>
`,Ce+="<PartNumber>".concat(je.number,`</PartNumber>
`),Ce+="<ETag>".concat(je.etag,`</ETag>
`),Ce+=`</Part>
`;return Ce+="</CompleteMultipartUpload>",De=De||{},Fe={},Fe=ae(De,function(it){if(se(it))return null}),Fe.subres={uploadId:Ne},Fe.headers=pe(Fe.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),ke=this._objectRequestParams("POST",Ae,Fe),de.encodeCallback(ke,Fe),ke.mime="xml",ke.content=Ce,ke.headers&&ke.headers["x-oss-callback"]||(ke.xmlResponse=!0),ke.successStatuses=[200],Ve.next=17,this.request(ke);case 17:if(Ee=Ve.sent,!De.progress){Ve.next=21;break}return Ve.next=21,De.progress(1,null,Ee.res);case 21:return Ge={res:Ee.res,bucket:ke.bucket,name:Ae,etag:Ee.res.headers.etag},ke.headers&&ke.headers["x-oss-callback"]&&(Ge.data=JSON.parse(Ee.data.toString())),Ve.abrupt("return",Ge);case 24:case"end":return Ve.stop()}},xe,this)}));function me(xe,Ae,Ne,Be){return ge.apply(this,arguments)}return me}(),he._uploadPart=function(){var ge=(0,oe.default)(re.default.mark(function xe(Ae,Ne,Be,De,we){var Ce,Oe,je,Fe;return re.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return we=we||{},Ce={},ee(we).to(Ce),Ce.headers=Ce.headers||{},Ce.headers["Content-Length"]=De.size,Ce.headers=pe(Ce.headers,["x-oss-server-side-encryption"]),Ce.subres={partNumber:Be,uploadId:Ne},Oe=this._objectRequestParams("PUT",Ae,Ce),Oe.mime=Ce.mime,je=z&&z.browser,je?Oe.content=De.content:Oe.stream=De.stream,Oe.successStatuses=[200],Oe.disabledMD5=we.disabledMD5,Ee.next=15,this.request(Oe);case 15:if(Fe=Ee.sent,Fe.res.headers.etag){Ee.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 De.stream&&(De.stream=null,Oe.stream=null),Ee.abrupt("return",{name:Ae,etag:Fe.res.headers.etag,res:Fe.res});case 20:case"end":return Ee.stop()}},xe,this)}));function me(xe,Ae,Ne,Be,De){return ge.apply(this,arguments)}return me}()}).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,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator")),re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("url"),ee=y("utility"),de=y("copy-to"),x=y("../../common/signUtils"),ae=y("../utils/isIP"),ie=ae.isIP,se=y("../utils/setSTSToken"),ue=se.setSTSToken,pe=y("../utils/isFunction"),he=pe.isFunction,ge=ye;ge.asyncSignatureUrl=function(){var me=(0,re.default)(E.default.mark(function Ae(Ne,Be){var De,we,Ce,Oe,je;return E.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(!ie(this.options.endpoint.hostname)){ke.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(Be=Be||{},Ne=this._objectName(Ne),Be.method=Be.method||"GET",De=ee.timestamp()+(Be.expires||1800),we={bucket:this.options.bucket,object:Ne},Ce=this._getResource(we),!(this.options.stsToken&&he(this.options.refreshSTSToken))){ke.next=11;break}return ke.next=11,ue.call(this);case 11:return this.options.stsToken&&(Be["security-token"]=this.options.stsToken),Oe=x._signatureForURL(this.options.accessKeySecret,Be,Ce,De),je=oe.parse(this._getReqUrl(we)),je.query={OSSAccessKeyId:this.options.accessKeyId,Expires:De,Signature:Oe.Signature},de(Oe.subResource).to(je.query),ke.abrupt("return",je.format());case 17:case"end":return ke.stop()}},Ae,this)}));function xe(Ae,Ne){return me.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,Pe,ye){"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 re=z(y("@babel/runtime/helpers/typeof")),oe=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("../utils/checkBucketName"),de=ee.checkBucketName,x=ye,ae=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];x.copy=function(){var ie=(0,oe.default)(E.default.mark(function ue(pe,he,ge,me){var xe,Ae,Ne;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return(0,re.default)(ge)==="object"&&(me=ge),me=me||{},me.headers=me.headers||{},Object.keys(me.headers).forEach(function(we){me.headers["x-oss-copy-source-".concat(we.toLowerCase())]=me.headers[we]}),(me.meta||Object.keys(me.headers).find(function(we){return ae.includes(we.toLowerCase())}))&&(me.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(me.meta,me.headers),he=this._getSourceName(he,ge),me.versionId&&(he="".concat(he,"?versionId=").concat(me.versionId)),me.headers["x-oss-copy-source"]=he,xe=this._objectRequestParams("PUT",pe,me),xe.xmlResponse=!0,xe.successStatuses=[200,304],De.next=14,this.request(xe);case 14:return Ae=De.sent,Ne=Ae.data,Ne&&(Ne={etag:Ne.ETag,lastModified:Ne.LastModified}),De.abrupt("return",{data:Ne,res:Ae.res});case 18:case"end":return De.stop()}},ue,this)}));function se(ue,pe,he,ge){return ie.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")),de(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,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=ye;oe.delete=function(){var ee=(0,re.default)(E.default.mark(function x(ae){var ie,se,ue,pe=arguments;return E.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ie=pe.length>1&&pe[1]!==void 0?pe[1]:{},ie.subres=Object.assign({},ie.subres),ie.versionId&&(ie.subres.versionId=ie.versionId),se=this._objectRequestParams("DELETE",ae,ie),se.successStatuses=[204],ge.next=7,this.request(se);case 7:return ue=ge.sent,ge.abrupt("return",{res:ue.res});case 9:case"end":return ge.stop()}},x,this)}));function de(x){return ee.apply(this,arguments)}return de}()},{"@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,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("utility"),ee=y("../utils/obj2xml"),de=ee.obj2xml,x=ye;x.deleteMulti=function(){var ae=(0,re.default)(E.default.mark(function se(ue){var pe,he,ge,me,xe,Ae,Ne,Be,De,we,Ce,Oe,je,Fe=arguments;return E.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(pe=Fe.length>1&&Fe[1]!==void 0?Fe[1]:{},he=[],!(!ue||!ue.length)){Ee.next=4;break}throw new Error("names is required");case 4:for(ge=0;ge<ue.length;ge++)me={},typeof ue[ge]=="string"?me.Key=oe.escape(this._objectName(ue[ge])):(xe=ue[ge],Ae=xe.key,Ne=xe.versionId,me.Key=oe.escape(this._objectName(Ae)),me.VersionId=Ne),he.push(me);return Be={Delete:{Quiet:!!pe.quiet,Object:he}},De=de(Be,{headers:!0}),pe.subres=Object.assign({delete:""},pe.subres),pe.versionId&&(pe.subres.versionId=pe.versionId),we=this._objectRequestParams("POST","",pe),we.mime="xml",we.content=De,we.xmlResponse=!0,we.successStatuses=[200],Ee.next=16,this.request(we);case 16:return Ce=Ee.sent,Oe=Ce.data,je=Oe&&Oe.Deleted||null,je&&(Array.isArray(je)||(je=[je])),Ee.abrupt("return",{res:Ce.res,deleted:je||[]});case 21:case"end":return Ee.stop()}},se,this)}));function ie(se){return ae.apply(this,arguments)}return ie}()},{"../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,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=ye;oe.deleteObjectTagging=function(){var ee=(0,re.default)(E.default.mark(function x(ae){var ie,se,ue,pe=arguments;return E.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ie=pe.length>1&&pe[1]!==void 0?pe[1]:{},ie.subres=Object.assign({tagging:""},ie.subres),ie.versionId&&(ie.subres.versionId=ie.versionId),ae=this._objectName(ae),se=this._objectRequestParams("DELETE",ae,ie),se.successStatuses=[204],ge.next=8,this.request(se);case 8:return ue=ge.sent,ge.abrupt("return",{status:ue.status,res:ue.res});case 10:case"end":return ge.stop()}},x,this)}));function de(x){return ee.apply(this,arguments)}return de}()},{"@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,Pe,ye){"use strict";y("core-js/modules/es.array.concat.js");var z=y("url"),E=y("../utils/isIP"),re=E.isIP,oe=ye;oe.generateObjectUrl=function(de,x){if(re(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),ie=this.options.bucket;ae.hostname="".concat(ie,".").concat(ae.hostname),ae.host="".concat(ie,".").concat(ae.host),x=ae.format()}return x+this._escape(this._objectName(de))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(y,Pe,ye){(function(z){(function(){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),re=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("fs"),de=y("is-type-of"),x=ye;x.get=function(){var ae=(0,oe.default)(re.default.mark(function se(ue,pe){var he,ge,me,xe,Ae,Ne,Be,De,we=arguments;return re.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return he=we.length>2&&we[2]!==void 0?we[2]:{},ge=null,me=!1,de.writableStream(pe)?ge=pe:de.string(pe)?(ge=ee.createWriteStream(pe),me=!0):he=pe,he=he||{},xe=z&&z.browser,Ae=he.responseCacheControl===null?"":"no-cache",Ne=xe&&Ae?{"response-cache-control":Ae}:{},he.subres=Object.assign(Ne,he.subres),he.versionId&&(he.subres.versionId=he.versionId),he.process&&(he.subres["x-oss-process"]=he.process),Oe.prev=11,De=this._objectRequestParams("GET",ue,he),De.writeStream=ge,De.successStatuses=[200,206,304],Oe.next=17,this.request(De);case 17:Be=Oe.sent,me&&ge.destroy(),Oe.next=28;break;case 21:if(Oe.prev=21,Oe.t0=Oe.catch(11),!me){Oe.next=27;break}return ge.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 ie(se,ue){return ae.apply(this,arguments)}return ie}()}).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,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=ye;oe.getACL=function(){var ee=(0,re.default)(E.default.mark(function x(ae){var ie,se,ue,pe=arguments;return E.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ie=pe.length>1&&pe[1]!==void 0?pe[1]:{},ie.subres=Object.assign({acl:""},ie.subres),ie.versionId&&(ie.subres.versionId=ie.versionId),ae=this._objectName(ae),se=this._objectRequestParams("GET",ae,ie),se.successStatuses=[200],se.xmlResponse=!0,ge.next=9,this.request(se);case 9:return ue=ge.sent,ge.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 ge.stop()}},x,this)}));function de(x){return ee.apply(this,arguments)}return de}()},{"@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,Pe,ye){"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 re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=ye,ee=y("../utils/isObject"),de=ee.isObject,x=y("../utils/isArray"),ae=x.isArray;oe.getBucketVersions=ie,oe.listObjectVersions=ie;function ie(){return se.apply(this,arguments)}function se(){return se=(0,re.default)(E.default.mark(function he(){var ge,me,xe,Ae,Ne,Be,De,we,Ce=arguments;return E.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(ge=Ce.length>0&&Ce[0]!==void 0?Ce[0]:{},me=Ce.length>1&&Ce[1]!==void 0?Ce[1]:{},!(ge.versionIdMarker&&ge.keyMarker===void 0)){je.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return me.subres=Object.assign({versions:""},me.subres),me.versionId&&(me.subres.versionId=me.versionId),xe=this._objectRequestParams("GET","",me),xe.xmlResponse=!0,xe.successStatuses=[200],xe.query=pe(ge),je.next=12,this.request(xe);case 12:return Ae=je.sent,Ne=Ae.data.Version||[],Be=Ae.data.DeleteMarker||[],De=this,Ne&&(Array.isArray(Ne)||(Ne=[Ne]),Ne=Ne.map(function(Fe){return{name:Fe.Key,url:De._objectUrl(Fe.Key),lastModified:Fe.LastModified,isLatest:Fe.IsLatest==="true",versionId:Fe.VersionId,etag:Fe.ETag,type:Fe.Type,size:Number(Fe.Size),storageClass:Fe.StorageClass,owner:{id:Fe.Owner.ID,displayName:Fe.Owner.DisplayName}}})),Be&&(ae(Be)||(Be=[Be]),Be=Be.map(function(Fe){return{name:Fe.Key,lastModified:Fe.LastModified,versionId:Fe.VersionId,owner:{id:Fe.Owner.ID,displayName:Fe.Owner.DisplayName}}})),we=Ae.data.CommonPrefixes||null,we&&(ae(we)||(we=[we]),we=we.map(function(Fe){return Fe.Prefix})),je.abrupt("return",{res:Ae.res,objects:Ne,deleteMarker:Be,prefixes:we,nextMarker:Ae.data.NextKeyMarker||null,NextVersionIdMarker:Ae.data.NextVersionIdMarker||null,nextKeyMarker:Ae.data.NextKeyMarker||null,nextVersionIdMarker:Ae.data.NextVersionIdMarker||null,isTruncated:Ae.data.IsTruncated==="true"});case 21:case"end":return je.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]:{},ge={};return de(he)&&Object.keys(he).forEach(function(me){ge[ue(me)]=he[me]}),ge}},{"../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,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=ye;oe.getObjectMeta=function(){var ee=(0,re.default)(E.default.mark(function x(ae,ie){var se,ue;return E.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return ie=ie||{},ae=this._objectName(ae),ie.subres=Object.assign({objectMeta:""},ie.subres),ie.versionId&&(ie.subres.versionId=ie.versionId),se=this._objectRequestParams("HEAD",ae,ie),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 de(x,ae){return ee.apply(this,arguments)}return de}()},{"@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,Pe,ye){"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 re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=ye,ee=y("../utils/isObject"),de=ee.isObject;oe.getObjectTagging=function(){var x=(0,re.default)(E.default.mark(function ie(se){var ue,pe,he,ge,me,xe,Ae=arguments;return E.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return ue=Ae.length>1&&Ae[1]!==void 0?Ae[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 ge=Be.sent,me=ge.TagSet.Tag,me=me&&de(me)?[me]:me||[],xe={},me.forEach(function(De){xe[De.Key]=De.Value}),Be.abrupt("return",{status:he.status,res:he.res,tag:xe});case 17:case"end":return Be.stop()}},ie,this)}));function ae(ie){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,Pe,ye){"use strict";var z=y("../utils/isIP"),E=z.isIP,re=ye;re.getObjectUrl=function(ee,de){if(E(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return de?de[de.length-1]!=="/"&&(de+="/"):de=this.options.endpoint.format(),de+this._escape(this._objectName(ee))}},{"../utils/isIP":69}],43:[function(y,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=ye;oe.getSymlink=function(){var ee=(0,re.default)(E.default.mark(function x(ae){var ie,se,ue,pe,he=arguments;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ie=he.length>1&&he[1]!==void 0?he[1]:{},ie.subres=Object.assign({symlink:""},ie.subres),ie.versionId&&(ie.subres.versionId=ie.versionId),ae=this._objectName(ae),se=this._objectRequestParams("GET",ae,ie),se.successStatuses=[200],me.next=8,this.request(se);case 8:return ue=me.sent,pe=ue.res.headers["x-oss-symlink-target"],me.abrupt("return",{targetName:decodeURIComponent(pe),res:ue.res});case 11:case"end":return me.stop()}},x,this)}));function de(x){return ee.apply(this,arguments)}return de}()},{"@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,Pe,ye){"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 re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkEnv"),ee=oe.checkEnv,de=ye;de.head=function(){var x=(0,re.default)(E.default.mark(function ie(se){var ue,pe,he,ge,me=arguments;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return ue=me.length>1&&me[1]!==void 0?me[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],Ae.next=8,this.request(pe);case 8:return he=Ae.sent,ge={meta:null,res:he.res,status:he.status},he.status===200&&Object.keys(he.headers).forEach(function(Ne){Ne.indexOf("x-oss-meta-")===0&&(ge.meta||(ge.meta={}),ge.meta[Ne.substring(11)]=he.headers[Ne])}),Ae.abrupt("return",ge);case 12:case"end":return Ae.stop()}},ie,this)}));function ae(ie){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,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=ye;oe.putACL=function(){var ee=(0,re.default)(E.default.mark(function x(ae,ie,se){var ue,pe;return E.default.wrap(function(ge){for(;;)switch(ge.prev=ge.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"]=ie,ae=this._objectName(ae),ue=this._objectRequestParams("PUT",ae,se),ue.successStatuses=[200],ge.next=10,this.request(ue);case 10:return pe=ge.sent,ge.abrupt("return",{res:pe.res});case 12:case"end":return ge.stop()}},x,this)}));function de(x,ae,ie){return ee.apply(this,arguments)}return de}()},{"@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,Pe,ye){"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 re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/obj2xml"),ee=oe.obj2xml,de=y("../utils/checkObjectTag"),x=de.checkObjectTag,ae=ye;ae.putObjectTagging=function(){var ie=(0,re.default)(E.default.mark(function ue(pe,he){var ge,me,xe,Ae,Ne=arguments;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return ge=Ne.length>2&&Ne[2]!==void 0?Ne[2]:{},x(he),ge.subres=Object.assign({tagging:""},ge.subres),ge.versionId&&(ge.subres.versionId=ge.versionId),pe=this._objectName(pe),me=this._objectRequestParams("PUT",pe,ge),me.successStatuses=[200],he=Object.keys(he).map(function(we){return{Key:we,Value:he[we]}}),xe={Tagging:{TagSet:{Tag:he}}},me.mime="xml",me.content=ee(xe),De.next=13,this.request(me);case 13:return Ae=De.sent,De.abrupt("return",{res:Ae.res,status:Ae.status});case 15:case"end":return De.stop()}},ue,this)}));function se(ue,pe){return ie.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,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=ye;oe.putSymlink=function(){var ee=(0,re.default)(E.default.mark(function x(ae,ie,se){var ue,pe;return E.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return se=se||{},se.headers=se.headers||{},ie=this._escape(this._objectName(ie)),this._convertMetaToHeaders(se.meta,se.headers),se.headers["x-oss-symlink-target"]=ie,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],ge.next=13,this.request(ue);case 13:return pe=ge.sent,ge.abrupt("return",{res:pe.res});case 15:case"end":return ge.stop()}},x,this)}));function de(x,ae,ie){return ee.apply(this,arguments)}return de}()},{"@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,Pe,ye){"use strict";var z=y("url"),E=y("utility"),re=y("copy-to"),oe=y("../../common/signUtils"),ee=y("../utils/isIP"),de=ee.isIP,x=ye;x.signatureUrl=function(ie,se){if(de(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");se=se||{},ie=this._objectName(ie),se.method=se.method||"GET";var ue=E.timestamp()+(se.expires||1800),pe={bucket:this.options.bucket,object:ie},he=this._getResource(pe);this.options.stsToken&&(se["security-token"]=this.options.stsToken);var ge=oe._signatureForURL(this.options.accessKeySecret,se,he,ue),me=z.parse(this._getReqUrl(pe));return me.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ue,Signature:ge.Signature},re(ge.subResource).to(me.query),me.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(y,Pe,ye){"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 re=z(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("./utils/isArray"),ee=oe.isArray,de=ye;de._parallelNode=function(){var x=(0,re.default)(E.default.mark(function ie(se,ue,pe,he){var ge,me,xe,Ae,Ne,Be,De,we;return E.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:ge=this,me=[],xe=[],Ae=se.length/ue,Ne=se.length%ue,Be=Ne===0?Ae:(se.length-Ne)/ue+1,De=1,we=0;case 8:if(!(we<se.length)){Oe.next=26;break}if(!ge.isCancel()){Oe.next=11;break}return Oe.abrupt("break",26);case 11:if(he?xe.push(pe(ge,se[we],he)):xe.push(pe(ge,se[we])),!(xe.length===ue||De===Be&&we===se.length-1)){Oe.next=23;break}return Oe.prev=13,De+=1,Oe.next=17,Promise.all(xe);case 17:Oe.next=22;break;case 19:Oe.prev=19,Oe.t0=Oe.catch(13),me.push(Oe.t0);case 22:xe=[];case 23:we++,Oe.next=8;break;case 26:return Oe.abrupt("return",me);case 27:case"end":return Oe.stop()}},ie,this,[[13,19]])}));function ae(ie,se,ue,pe){return x.apply(this,arguments)}return ae}(),de._parallel=function(ae,ie,se){var ue=this;return new Promise(function(pe){var he=[];if(ie<=0||!ae){pe(he);return}function ge(Oe){return function(){if(Oe===null)throw new Error("Callback was already called.");var je=Oe;Oe=null;for(var Fe=arguments.length,ke=new Array(Fe),Ee=0;Ee<Fe;Ee++)ke[Ee]=arguments[Ee];je.apply(this,ke)}}function me(Oe){var je=-1,Fe=Oe.length;return function(){return++je<Fe&&!ue.isCancel()?{value:Oe[je],key:je}:null}}var xe=me(ae),Ae=!1,Ne=0,Be=!1;function De(Oe){Ne-=1,Oe?(Ae=!0,he.push(Oe),pe(he)):Ae&&Ne<=0?(Ae=!0,pe(he)):Be||(ue.isCancel()?pe(he):Ce())}function we(Oe,je){se(Oe).then(function(Fe){je(null,Fe)}).catch(function(Fe){je(Fe)})}function Ce(){for(Be=!0;Ne<ie&&!Ae&&!ue.isCancel();){var Oe=xe();if(Oe===null||he.length>0){Ae=!0,Ne<=0&&pe(he);return}Ne+=1,we(Oe.value,ge(De))}Be=!1}Ce()})},de.cancel=function(ae){this.options.cancelFlag=!0,ee(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(ie){if(ie.destroyed===!1){var se={name:"cancel",message:"cancel"};ie.destroy(se)}}),this.multipartUploadStreams=[],ae&&this.abortMultipartUpload(ae.name,ae.uploadId,ae.options)},de.isCancel=function(){return this.options.cancelFlag},de.resetCancelFlag=function(){this.options.cancelFlag=!1},de._stop=function(){this.options.cancelFlag=!0},de._makeCancelEvent=function(){var ae={status:0,name:"cancel"};return ae},de._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,Pe,ye){(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"),re=y("is-type-of"),oe=y("./utils/lowercaseKeyHeader"),ee=oe.lowercaseKeyHeader;ye.buildCanonicalizedResource=function(x,ae){var ie="".concat(x),se="?";if(re.string(ae)&&ae.trim()!=="")ie+=se+ae;else if(re.array(ae))ae.sort(),ie+=se+ae.join("&");else if(ae){var ue=function(ge,me){return ge[0]>me[0]?1:ge[0]<me[0]?-1:0},pe=function(ge){ie+=se+ge,(ae[ge]||ae[ge]===0)&&(ie+="=".concat(ae[ge])),se="&"};Object.keys(ae).sort(ue).forEach(pe)}return ie},ye.buildCanonicalString=function(x,ae,ie,se){ie=ie||{};var ue=ee(ie.headers),pe="x-oss-",he=[],ge={},me=[x.toUpperCase(),ue["content-md5"]||"",ue["content-type"],se||ue["x-oss-date"]];return Object.keys(ue).forEach(function(xe){var Ae=xe.toLowerCase();Ae.indexOf(pe)===0&&(ge[Ae]=String(ue[xe]).trim())}),Object.keys(ge).sort().forEach(function(xe){he.push("".concat(xe,":").concat(ge[xe]))}),me=me.concat(he),me.push(this.buildCanonicalizedResource(ae,ie.parameters)),me.join(`
`)},ye.computeSignature=function(x,ae){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",se=E.createHmac("sha1",x);return se.update(z.from(ae,ie)).digest("base64")},ye.authorization=function(x,ae,ie,se){return"OSS ".concat(x,":").concat(this.computeSignature(ae,ie,se))},ye._signatureForURL=function(x){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=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,ge=he===void 0?{}:he;if(ae.process){var me="x-oss-process";ge[me]=ae.process}if(ae.trafficLimit){var xe="x-oss-traffic-limit";ge[xe]=ae.trafficLimit}if(ae.response&&Object.keys(ae.response).forEach(function(De){var we="response-".concat(De.toLowerCase());ge[we]=ae.response[De]}),Object.keys(ae).forEach(function(De){var we=De.toLowerCase(),Ce=ae[De];we.indexOf("x-oss-")===0?pe[we]=Ce:(we.indexOf("content-md5")===0||we.indexOf("content-type")===0)&&(pe[De]=Ce)}),Object.prototype.hasOwnProperty.call(ae,"security-token")&&(ge["security-token"]=ae["security-token"]),Object.prototype.hasOwnProperty.call(ae,"callback")){var Ae={callbackUrl:encodeURI(ae.callback.url),callbackBody:ae.callback.body};if(ae.callback.host&&(Ae.callbackHost=ae.callback.host),ae.callback.contentType&&(Ae.callbackBodyType=ae.callback.contentType),ge.callback=z.from(JSON.stringify(Ae)).toString("base64"),ae.callback.customValue){var Ne={};Object.keys(ae.callback.customValue).forEach(function(De){Ne["x:".concat(De)]=ae.callback.customValue[De]}),ge["callback-var"]=z.from(JSON.stringify(Ne)).toString("base64")}}var Be=this.buildCanonicalString(ae.method,ie,{headers:pe,parameters:ge},se.toString());return{Signature:this.computeSignature(x,Be,ue),subResource:ge}}}).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,Pe,ye){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.checkBucketName=void 0,ye.checkBucketName=function(z){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,re=E?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!re.test(z))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(y,Pe,ye){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.checkConfigValid=void 0;var z={endpoint:E,region:/^[a-zA-Z0-9\-_]+$/};function E(re){return typeof re=="string"?/^[a-zA-Z0-9._:/-]+$/.test(re):re.host?/^[a-zA-Z0-9._:/-]+$/.test(re.host):!1}ye.checkConfigValid=function(re,oe){if(z[oe]){var ee=!0;if(z[oe]instanceof Function?ee=z[oe](re):ee=z[oe].test(re),!ee)throw new Error("The ".concat(oe," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(y,Pe,ye){(function(z){(function(){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.checkEnv=void 0;function E(re){z.browser&&console.warn(re)}ye.checkEnv=E}).call(this)}).call(this,y("_process"))},{_process:467}],54:[function(y,Pe,ye){"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(ye,"__esModule",{value:!0}),ye.checkObjectTag=void 0;var z=y("./checkValid"),E=z.checkValid,re=y("./isObject"),oe=re.isObject,ee=[{validator:function(ie){if(typeof ie!="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 (/)"}],de={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 ie=Object.entries(ae);if(ie.length>10)throw new Error("maximum of 10 tags for a object");var se=["key","value"];ie.forEach(function(ue){ue.forEach(function(pe,he){E(pe,de[se[he]])})})}ye.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,Pe,ye){"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(ye,"__esModule",{value:!0}),ye.checkValid=void 0;function z(E,re){re.forEach(function(oe){if(oe.validator)oe.validator(E);else if(oe.pattern&&!oe.pattern.test(E))throw new Error(oe.msg)})}ye.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,Pe,ye){(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(ye,"__esModule",{value:!0}),ye.createRequest=void 0;var E=y("./../../../shims/crypto/crypto.js"),re=y("debug")("ali-oss"),oe=y("mime"),ee=y("dateformat"),de=y("copy-to"),x=y("path"),ae=y("./encoder"),ie=ae.encoder,se=y("./isIP"),ue=se.isIP,pe=y("./setRegion"),he=pe.setRegion,ge=y("../client/getReqUrl"),me=ge.getReqUrl,xe=y("./isDingTalk"),Ae=xe.isDingTalk;function Ne(we,Ce){return we[Ce]||we[Ce.toLowerCase()]}function Be(we,Ce){delete we[Ce],delete we[Ce.toLowerCase()]}function De(we){var Ce=new Date;this.options.amendTimeSkewed&&(Ce=+new Date+this.options.amendTimeSkewed);var Oe={"x-oss-date":ee(Ce,"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),de(we.headers).to(Oe),Ne(Oe,"Content-Type")||(we.mime&&we.mime.indexOf("/")>0?Oe["Content-Type"]=we.mime:Ae()?Oe["Content-Type"]="application/octet-stream":Oe["Content-Type"]=oe.getType(we.mime||x.extname(we.object||""))),Ne(Oe,"Content-Type")||Be(Oe,"Content-Type"),we.content&&(we.disabledMD5||(!we.headers||!we.headers["Content-MD5"]?Oe["Content-MD5"]=E.createHash("md5").update(z.from(we.content,"utf8")).digest("base64"):Oe["Content-MD5"]=we.headers["Content-MD5"]),Oe["Content-Length"]||(Oe["Content-Length"]=we.content.length));var je=Object.prototype.hasOwnProperty;for(var Fe in Oe)Oe[Fe]&&je.call(Oe,Fe)&&(Oe[Fe]=ie(String(Oe[Fe]),this.options.headerEncoding));var ke=this._getResource(we);if(Oe.authorization=this.authorization(we.method,ke,we.subres,Oe,this.options.headerEncoding),ue(this.options.endpoint.hostname)){var Ee=this.options,Ge=Ee.region,Ke=Ee.internal,Ve=Ee.secure,it=he(Ge,Ke,Ve);Oe.host="".concat(we.bucket,".").concat(it.host)}var Le=me.bind(this)(we);re("request %s %s, with headers %j, !!stream: %s",we.method,Le,Oe,!!we.stream);var Ue=we.timeout||this.options.timeout,tt={method:we.method,content:we.content,stream:we.stream,headers:Oe,timeout:Ue,writeStream:we.writeStream,customResponse:we.customResponse,ctx:we.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:Le,params:tt}}ye.createRequest=De}).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,Pe,ye){"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(ye,"__esModule",{value:!0}),ye.dataFix=void 0;var z=y("./isObject"),E=["true","TRUE","1",1],re=["false","FALSE","0",0];function oe(x,ae,ie){if(z.isObject(x)){var se=ae.remove,ue=se===void 0?[]:se,pe=ae.rename,he=pe===void 0?{}:pe,ge=ae.camel,me=ge===void 0?[]:ge,xe=ae.bool,Ae=xe===void 0?[]:xe,Ne=ae.lowerFirst,Be=Ne===void 0?!1:Ne;return ue.forEach(function(De){return delete x[De]}),Object.entries(he).forEach(function(De){x[De[0]]&&(x[De[1]]||(x[De[1]]=x[De[0]],delete x[De[0]]))}),me.forEach(function(De){if(x[De]){var we=De.replace(/^(.)/,function(Ce){return Ce.toLowerCase()}).replace(/-(\w)/g,function(Ce,Oe){return Oe.toUpperCase()});x[we]||(x[we]=x[De])}}),Ae.forEach(function(De){x[De]=ee(x[De])}),typeof ie=="function"&&ie(x),de(x,Be),oe}}ye.dataFix=oe;function ee(x){return x?E.includes(x)?!0:re.includes(x)?!1:x:!1}function de(x,ae){ae&&Object.keys(x).forEach(function(ie){var se=ie.replace(/^\w/,function(ue){return ue.toLowerCase()});typeof x[se]=="undefined"&&(x[se]=x[ie],delete x[ie])})}},{"./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,Pe,ye){"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(ye,"__esModule",{value:!0}),ye.deepCopyWith=ye.deepCopy=void 0;var re=y("./isBuffer");ye.deepCopy=function(oe){if(oe===null||(0,E.default)(oe)!=="object")return oe;if(re.isBuffer(oe))return oe.slice();var ee=Array.isArray(oe)?[]:{};return Object.keys(oe).forEach(function(de){ee[de]=ye.deepCopy(oe[de])}),ee},ye.deepCopyWith=function(oe,ee){function de(x,ae,ie){var se=ee(x,ae,ie);if(se!==void 0)return se;if(x===null||(0,E.default)(x)!=="object")return x;if(re.isBuffer(x))return x.slice();var ue=Array.isArray(x)?[]:{};return Object.keys(x).forEach(function(pe){ue[pe]=de(x[pe],pe,x)}),ue}return ee?de(oe,"",null):ye.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,Pe,ye){(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(ye,"__esModule",{value:!0}),ye.encoder=void 0;function E(re){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return oe==="utf-8"?re:z.from(re).toString("latin1")}ye.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,Pe,ye){"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(ye,"__esModule",{value:!0}),ye.formatInventoryConfig=void 0;var z=y("../utils/dataFix"),E=y("../utils/isObject"),re=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]),re.isArray(x)?x=x.map(de):x=de(x),x}ye.formatInventoryConfig=ee;function de(x){return z.dataFix(x,{bool:["IsEnabled"]},function(ae){var ie,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,!((ie=ae==null?void 0:ae.OptionalFields)===null||ie===void 0)&&ie.Field&&!re.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,Pe,ye){"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(ye,"__esModule",{value:!0}),ye.formatObjKey=void 0;function re(ee,de,x){if(ee===null||(0,E.default)(ee)!=="object")return ee;var ae;if(Array.isArray(ee)){ae=[];for(var ie=0;ie<ee.length;ie++)ae.push(re(ee[ie],de,x))}else ae={},Object.keys(ee).forEach(function(se){ae[oe(se,de,x)]=re(ee[se],de,x)});return ae}ye.formatObjKey=re;function oe(ee,de,x){return x&&x.exclude&&x.exclude.includes(ee)||(de==="firstUpperCase"?ee=ee.replace(/^./,function(ae){return ae.toUpperCase()}):de==="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,Pe,ye){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.getStrBytesCount=void 0;function z(E){for(var re=0,oe=0;oe<E.length;oe++){var ee=E.charAt(oe);/^[\u00-\uff]$/.test(ee)?re+=1:re+=2}return re}ye.getStrBytesCount=z},{"core-js/modules/es.regexp.exec.js":300}],63:[function(y,Pe,ye){"use strict";y("core-js/modules/es.object.to-string.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.isArray=void 0,ye.isArray=function(z){return Object.prototype.toString.call(z)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(y,Pe,ye){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.isBlob=void 0;function z(E){return typeof Blob!="undefined"&&E instanceof Blob}ye.isBlob=z},{}],65:[function(y,Pe,ye){(function(z){(function(){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.isBuffer=void 0;function E(re){return z.isBuffer(re)}ye.isBuffer=E}).call(this)}).call(this,{isBuffer:y("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(y,Pe,ye){(function(z){(function(){"use strict";y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.includes.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.isDingTalk=void 0;function E(){return!!(z.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}ye.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,Pe,ye){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.isFile=void 0,ye.isFile=function(z){return typeof File!="undefined"&&z instanceof File}},{}],68:[function(y,Pe,ye){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.isFunction=void 0,ye.isFunction=function(z){return typeof z=="function"}},{}],69:[function(y,Pe,ye){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.isIP=void 0,ye.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}$/,re=/^\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)||re.test(z)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(y,Pe,ye){"use strict";y("core-js/modules/es.object.to-string.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.isObject=void 0,ye.isObject=function(z){return Object.prototype.toString.call(z)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(y,Pe,ye){"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(ye,"__esModule",{value:!0}),ye.lowercaseKeyHeader=void 0;var z=y("./isObject");function E(re){var oe={};return z.isObject(re)&&Object.keys(re).forEach(function(ee){oe[ee.toLowerCase()]=re[ee]}),oe}ye.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,Pe,ye){"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(ye,"__esModule",{value:!0}),ye.obj2xml=void 0;var z=y("./formatObjKey");function E(oe){return Object.prototype.toString.call(oe).replace(/(.*? |])/g,"").toLowerCase()}function re(oe,ee){var de="";return ee&&ee.headers&&(de=`<?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"?de+="<".concat(x,">").concat(oe[x],"</").concat(x,">"):E(oe[x])==="object"?de+="<".concat(x,">").concat(re(oe[x]),"</").concat(x,">"):E(oe[x])==="array"?de+=oe[x].map(function(ae){return"<".concat(x,">").concat(re(ae),"</").concat(x,">")}).join(""):de+="<".concat(x,">").concat(oe[x].toString(),"</").concat(x,">"))}):de+=oe.toString(),de}ye.obj2xml=re},{"./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,Pe,ye){"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,de){var x=typeof Symbol!="undefined"&&ee[Symbol.iterator]||ee["@@iterator"];if(!x){if(Array.isArray(ee)||(x=E(ee))||de&&ee&&typeof ee.length=="number"){x&&(ee=x);var ae=0,ie=function(){};return{s:ie,n:function(){return ae>=ee.length?{done:!0}:{done:!1,value:ee[ae++]}},e:function(ge){throw ge},f:ie}}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 ge=x.next();return se=ge.done,ge},e:function(ge){ue=!0,pe=ge},f:function(){try{!se&&x.return!=null&&x.return()}finally{if(ue)throw pe}}}}function E(ee,de){if(ee){if(typeof ee=="string")return re(ee,de);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 re(ee,de)}}function re(ee,de){(de==null||de>ee.length)&&(de=ee.length);for(var x=0,ae=new Array(de);x<de;x++)ae[x]=ee[x];return ae}Object.defineProperty(ye,"__esModule",{value:!0}),ye.omit=void 0;function oe(ee,de){var x=Object.assign({},ee),ae=z(de),ie;try{for(ae.s();!(ie=ae.n()).done;){var se=ie.value;delete x[se]}}catch(ue){ae.e(ue)}finally{ae.f()}return x}ye.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,Pe,ye){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.retry=void 0;function z(E,re){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=0,de=oe.retryDelay,x=de===void 0?500:de,ae=oe.errorHandler,ie=ae===void 0?function(){return!0}:ae,se=function ue(){for(var pe=arguments.length,he=new Array(pe),ge=0;ge<pe;ge++)he[ge]=arguments[ge];return new Promise(function(me,xe){E.apply(void 0,he).then(function(Ae){ee=0,me(Ae)}).catch(function(Ae){ee<re&&ie(Ae)?(ee++,setTimeout(function(){me(ue.apply(void 0,he))},x)):(ee=0,xe(Ae))})})};return se}ye.retry=z},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(y,Pe,ye){"use strict";var z=function(ee){return ee&&ee.__esModule?ee:{default:ee}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.setRegion=void 0;var E=z(y("url")),re=y("./checkConfigValid");function oe(ee){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;re.checkConfigValid(ee,"region");var ae=x?"https://":"http://",ie=de?"-internal.aliyuncs.com":".aliyuncs.com",se="vpc100-oss-cn-";return ee.substr(0,se.length)===se&&(ie=".aliyuncs.com"),E.default.parse(ae+ee+ie)}ye.setRegion=oe},{"./checkConfigValid":52,url:472}],76:[function(y,Pe,ye){"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 re=z(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.checkCredentials=ye.setSTSToken=void 0;var oe=y("./formatObjKey");function ee(){return de.apply(this,arguments)}function de(){return de=(0,re.default)(E.default.mark(function ae(){var ie,se;return E.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(this.options||(this.options={}),ie=new Date,!this.stsTokenFreshTime){pe.next=14;break}if(!(+ie-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){pe.next=12;break}return this.stsTokenFreshTime=ie,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=ie;case 15:return pe.abrupt("return",null);case 16:case"end":return pe.stop()}},ae,this)})),de.apply(this,arguments)}ye.setSTSToken=ee;function x(ae){var ie=["accessKeySecret","accessKeyId","stsToken"],se=Object.keys(ae);ie.forEach(function(ue){if(!se.find(function(pe){return pe===ue}))throw Error("refreshSTSToken must return contains ".concat(ue))})}ye.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,Pe,ye){function z(re,oe,ee,de,x,ae,ie){try{var se=re[ae](ie),ue=se.value}catch(pe){ee(pe);return}se.done?oe(ue):Promise.resolve(ue).then(de,x)}function E(re){return function(){var oe=this,ee=arguments;return new Promise(function(de,x){var ae=re.apply(oe,ee);function ie(ue){z(ae,de,x,ie,se,"next",ue)}function se(ue){z(ae,de,x,ie,se,"throw",ue)}ie(void 0)})}}Pe.exports=E,Pe.exports.__esModule=!0,Pe.exports.default=Pe.exports},{}],78:[function(y,Pe,ye){function z(E){return E&&E.__esModule?E:{default:E}}Pe.exports=z,Pe.exports.__esModule=!0,Pe.exports.default=Pe.exports},{}],79:[function(y,Pe,ye){function z(E){"@babel/helpers - typeof";return Pe.exports=z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(re){return typeof re}:function(re){return re&&typeof Symbol=="function"&&re.constructor===Symbol&&re!==Symbol.prototype?"symbol":typeof re},Pe.exports.__esModule=!0,Pe.exports.default=Pe.exports,z(E)}Pe.exports=z,Pe.exports.__esModule=!0,Pe.exports.default=Pe.exports},{}],80:[function(y,Pe,ye){Pe.exports=y("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(y,Pe,ye){Pe.exports=z,Pe.exports.HttpsAgent=z;function z(){}},{}],82:[function(y,Pe,ye){(function(z){(function(){"use strict";var E=y("object-assign");function re(Ge,Ke){if(Ge===Ke)return 0;for(var Ve=Ge.length,it=Ke.length,Le=0,Ue=Math.min(Ve,it);Le<Ue;++Le)if(Ge[Le]!==Ke[Le]){Ve=Ge[Le],it=Ke[Le];break}return Ve<it?-1:it<Ve?1:0}function oe(Ge){return z.Buffer&&typeof z.Buffer.isBuffer=="function"?z.Buffer.isBuffer(Ge):!!(Ge!=null&&Ge._isBuffer)}var ee=y("util/"),de=Object.prototype.hasOwnProperty,x=Array.prototype.slice,ae=function(){return function(){}.name==="foo"}();function ie(Ge){return Object.prototype.toString.call(Ge)}function se(Ge){return oe(Ge)||typeof z.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Ge):Ge?!!(Ge instanceof DataView||Ge.buffer&&Ge.buffer instanceof ArrayBuffer):!1}var ue=Pe.exports=Ne,pe=/\s*function\s+([^\(\s]*)\s*/;function he(Ge){if(ee.isFunction(Ge)){if(ae)return Ge.name;var Ke=Ge.toString(),Ve=Ke.match(pe);return Ve&&Ve[1]}}ue.AssertionError=function(Ke){this.name="AssertionError",this.actual=Ke.actual,this.expected=Ke.expected,this.operator=Ke.operator,Ke.message?(this.message=Ke.message,this.generatedMessage=!1):(this.message=xe(this),this.generatedMessage=!0);var Ve=Ke.stackStartFunction||Ae;if(Error.captureStackTrace)Error.captureStackTrace(this,Ve);else{var it=new Error;if(it.stack){var Le=it.stack,Ue=he(Ve),tt=Le.indexOf(`
`+Ue);if(tt>=0){var nt=Le.indexOf(`
`,tt+1);Le=Le.substring(nt+1)}this.stack=Le}}},ee.inherits(ue.AssertionError,Error);function ge(Ge,Ke){return typeof Ge=="string"?Ge.length<Ke?Ge:Ge.slice(0,Ke):Ge}function me(Ge){if(ae||!ee.isFunction(Ge))return ee.inspect(Ge);var Ke=he(Ge),Ve=Ke?": "+Ke:"";return"[Function"+Ve+"]"}function xe(Ge){return ge(me(Ge.actual),128)+" "+Ge.operator+" "+ge(me(Ge.expected),128)}function Ae(Ge,Ke,Ve,it,Le){throw new ue.AssertionError({message:Ve,actual:Ge,expected:Ke,operator:it,stackStartFunction:Le})}ue.fail=Ae;function Ne(Ge,Ke){Ge||Ae(Ge,!0,Ke,"==",ue.ok)}ue.ok=Ne,ue.equal=function(Ke,Ve,it){Ke!=Ve&&Ae(Ke,Ve,it,"==",ue.equal)},ue.notEqual=function(Ke,Ve,it){Ke==Ve&&Ae(Ke,Ve,it,"!=",ue.notEqual)},ue.deepEqual=function(Ke,Ve,it){Be(Ke,Ve,!1)||Ae(Ke,Ve,it,"deepEqual",ue.deepEqual)},ue.deepStrictEqual=function(Ke,Ve,it){Be(Ke,Ve,!0)||Ae(Ke,Ve,it,"deepStrictEqual",ue.deepStrictEqual)};function Be(Ge,Ke,Ve,it){if(Ge===Ke)return!0;if(oe(Ge)&&oe(Ke))return re(Ge,Ke)===0;if(ee.isDate(Ge)&&ee.isDate(Ke))return Ge.getTime()===Ke.getTime();if(ee.isRegExp(Ge)&&ee.isRegExp(Ke))return Ge.source===Ke.source&&Ge.global===Ke.global&&Ge.multiline===Ke.multiline&&Ge.lastIndex===Ke.lastIndex&&Ge.ignoreCase===Ke.ignoreCase;if((Ge===null||typeof Ge!="object")&&(Ke===null||typeof Ke!="object"))return Ve?Ge===Ke:Ge==Ke;if(se(Ge)&&se(Ke)&&ie(Ge)===ie(Ke)&&!(Ge instanceof Float32Array||Ge instanceof Float64Array))return re(new Uint8Array(Ge.buffer),new Uint8Array(Ke.buffer))===0;if(oe(Ge)!==oe(Ke))return!1;it=it||{actual:[],expected:[]};var Le=it.actual.indexOf(Ge);return Le!==-1&&Le===it.expected.indexOf(Ke)?!0:(it.actual.push(Ge),it.expected.push(Ke),we(Ge,Ke,Ve,it))}function De(Ge){return Object.prototype.toString.call(Ge)=="[object Arguments]"}function we(Ge,Ke,Ve,it){if(Ge==null||Ke===null||Ke===void 0)return!1;if(ee.isPrimitive(Ge)||ee.isPrimitive(Ke))return Ge===Ke;if(Ve&&Object.getPrototypeOf(Ge)!==Object.getPrototypeOf(Ke))return!1;var Le=De(Ge),Ue=De(Ke);if(Le&&!Ue||!Le&&Ue)return!1;if(Le)return Ge=x.call(Ge),Ke=x.call(Ke),Be(Ge,Ke,Ve);var tt=Ee(Ge),nt=Ee(Ke),et,Ze;if(tt.length!==nt.length)return!1;for(tt.sort(),nt.sort(),Ze=tt.length-1;Ze>=0;Ze--)if(tt[Ze]!==nt[Ze])return!1;for(Ze=tt.length-1;Ze>=0;Ze--)if(et=tt[Ze],!Be(Ge[et],Ke[et],Ve,it))return!1;return!0}ue.notDeepEqual=function(Ke,Ve,it){Be(Ke,Ve,!1)&&Ae(Ke,Ve,it,"notDeepEqual",ue.notDeepEqual)},ue.notDeepStrictEqual=Ce;function Ce(Ge,Ke,Ve){Be(Ge,Ke,!0)&&Ae(Ge,Ke,Ve,"notDeepStrictEqual",Ce)}ue.strictEqual=function(Ke,Ve,it){Ke!==Ve&&Ae(Ke,Ve,it,"===",ue.strictEqual)},ue.notStrictEqual=function(Ke,Ve,it){Ke===Ve&&Ae(Ke,Ve,it,"!==",ue.notStrictEqual)};function Oe(Ge,Ke){if(!Ge||!Ke)return!1;if(Object.prototype.toString.call(Ke)=="[object RegExp]")return Ke.test(Ge);try{if(Ge instanceof Ke)return!0}catch(Ve){}return Error.isPrototypeOf(Ke)?!1:Ke.call({},Ge)===!0}function je(Ge){var Ke;try{Ge()}catch(Ve){Ke=Ve}return Ke}function Fe(Ge,Ke,Ve,it){var Le;if(typeof Ke!="function")throw new TypeError('"block" argument must be a function');typeof Ve=="string"&&(it=Ve,Ve=null),Le=je(Ke),it=(Ve&&Ve.name?" ("+Ve.name+").":".")+(it?" "+it:"."),Ge&&!Le&&Ae(Le,Ve,"Missing expected exception"+it);var Ue=typeof it=="string",tt=!Ge&&ee.isError(Le),nt=!Ge&&Le&&!Ve;if((tt&&Ue&&Oe(Le,Ve)||nt)&&Ae(Le,Ve,"Got unwanted exception"+it),Ge&&Le&&Ve&&!Oe(Le,Ve)||!Ge&&Le)throw Le}ue.throws=function(Ge,Ke,Ve){Fe(!0,Ge,Ke,Ve)},ue.doesNotThrow=function(Ge,Ke,Ve){Fe(!1,Ge,Ke,Ve)},ue.ifError=function(Ge){if(Ge)throw Ge};function ke(Ge,Ke){Ge||Ae(Ge,!0,Ke,"==",ke)}ue.strict=E(ke,ue,{equal:ue.strictEqual,deepEqual:ue.deepStrictEqual,notEqual:ue.notStrictEqual,notDeepEqual:ue.notDeepStrictEqual}),ue.strict.strict=ue.strict;var Ee=Object.keys||function(Ge){var Ke=[];for(var Ve in Ge)de.call(Ge,Ve)&&Ke.push(Ve);return Ke}}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(y,Pe,ye){typeof Object.create=="function"?Pe.exports=function(E,re){E.super_=re,E.prototype=Object.create(re.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}})}:Pe.exports=function(E,re){E.super_=re;var oe=function(){};oe.prototype=re.prototype,E.prototype=new oe,E.prototype.constructor=E}},{}],84:[function(y,Pe,ye){Pe.exports=function(E){return E&&typeof E=="object"&&typeof E.copy=="function"&&typeof E.fill=="function"&&typeof E.readUInt8=="function"}},{}],85:[function(y,Pe,ye){(function(z,E){(function(){var re=/%[sdj%]/g;ye.format=function(nt){if(!we(nt)){for(var et=[],Ze=0;Ze<arguments.length;Ze++)et.push(de(arguments[Ze]));return et.join(" ")}for(var Ze=1,Ye=arguments,Xe=Ye.length,st=String(nt).replace(re,function(ht){if(ht==="%%")return"%";if(Ze>=Xe)return ht;switch(ht){case"%s":return String(Ye[Ze++]);case"%d":return Number(Ye[Ze++]);case"%j":try{return JSON.stringify(Ye[Ze++])}catch(at){return"[Circular]"}default:return ht}}),Qe=Ye[Ze];Ze<Xe;Qe=Ye[++Ze])Ne(Qe)||!Fe(Qe)?st+=" "+Qe:st+=" "+de(Qe);return st},ye.deprecate=function(nt,et){if(Oe(E.process))return function(){return ye.deprecate(nt,et).apply(this,arguments)};if(z.noDeprecation===!0)return nt;var Ze=!1;function Ye(){if(!Ze){if(z.throwDeprecation)throw new Error(et);z.traceDeprecation?console.trace(et):console.error(et),Ze=!0}return nt.apply(this,arguments)}return Ye};var oe={},ee;ye.debuglog=function(nt){if(Oe(ee)&&(ee=z.env.NODE_DEBUG||""),nt=nt.toUpperCase(),!oe[nt])if(new RegExp("\\b"+nt+"\\b","i").test(ee)){var et=z.pid;oe[nt]=function(){var Ze=ye.format.apply(ye,arguments);console.error("%s %d: %s",nt,et,Ze)}}else oe[nt]=function(){};return oe[nt]};function de(nt,et){var Ze={seen:[],stylize:ae};return arguments.length>=3&&(Ze.depth=arguments[2]),arguments.length>=4&&(Ze.colors=arguments[3]),Ae(et)?Ze.showHidden=et:et&&ye._extend(Ze,et),Oe(Ze.showHidden)&&(Ze.showHidden=!1),Oe(Ze.depth)&&(Ze.depth=2),Oe(Ze.colors)&&(Ze.colors=!1),Oe(Ze.customInspect)&&(Ze.customInspect=!0),Ze.colors&&(Ze.stylize=x),se(Ze,nt,Ze.depth)}ye.inspect=de,de.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]},de.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function x(nt,et){var Ze=de.styles[et];return Ze?"\x1B["+de.colors[Ze][0]+"m"+nt+"\x1B["+de.colors[Ze][1]+"m":nt}function ae(nt,et){return nt}function ie(nt){var et={};return nt.forEach(function(Ze,Ye){et[Ze]=!0}),et}function se(nt,et,Ze){if(nt.customInspect&&et&&Ge(et.inspect)&&et.inspect!==ye.inspect&&!(et.constructor&&et.constructor.prototype===et)){var Ye=et.inspect(Ze,nt);return we(Ye)||(Ye=se(nt,Ye,Ze)),Ye}var Xe=ue(nt,et);if(Xe)return Xe;var st=Object.keys(et),Qe=ie(st);if(nt.showHidden&&(st=Object.getOwnPropertyNames(et)),Ee(et)&&(st.indexOf("message")>=0||st.indexOf("description")>=0))return pe(et);if(st.length===0){if(Ge(et)){var ht=et.name?": "+et.name:"";return nt.stylize("[Function"+ht+"]","special")}if(je(et))return nt.stylize(RegExp.prototype.toString.call(et),"regexp");if(ke(et))return nt.stylize(Date.prototype.toString.call(et),"date");if(Ee(et))return pe(et)}var at="",qe=!1,_e=["{","}"];if(xe(et)&&(qe=!0,_e=["[","]"]),Ge(et)){var Re=et.name?": "+et.name:"";at=" [Function"+Re+"]"}if(je(et)&&(at=" "+RegExp.prototype.toString.call(et)),ke(et)&&(at=" "+Date.prototype.toUTCString.call(et)),Ee(et)&&(at=" "+pe(et)),st.length===0&&(!qe||et.length==0))return _e[0]+at+_e[1];if(Ze<0)return je(et)?nt.stylize(RegExp.prototype.toString.call(et),"regexp"):nt.stylize("[Object]","special");nt.seen.push(et);var ne;return qe?ne=he(nt,et,Ze,Qe,st):ne=st.map(function(fe){return ge(nt,et,Ze,Qe,fe,qe)}),nt.seen.pop(),me(ne,at,_e)}function ue(nt,et){if(Oe(et))return nt.stylize("undefined","undefined");if(we(et)){var Ze="'"+JSON.stringify(et).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return nt.stylize(Ze,"string")}if(De(et))return nt.stylize(""+et,"number");if(Ae(et))return nt.stylize(""+et,"boolean");if(Ne(et))return nt.stylize("null","null")}function pe(nt){return"["+Error.prototype.toString.call(nt)+"]"}function he(nt,et,Ze,Ye,Xe){for(var st=[],Qe=0,ht=et.length;Qe<ht;++Qe)tt(et,String(Qe))?st.push(ge(nt,et,Ze,Ye,String(Qe),!0)):st.push("");return Xe.forEach(function(at){at.match(/^\d+$/)||st.push(ge(nt,et,Ze,Ye,at,!0))}),st}function ge(nt,et,Ze,Ye,Xe,st){var Qe,ht,at;if(at=Object.getOwnPropertyDescriptor(et,Xe)||{value:et[Xe]},at.get?at.set?ht=nt.stylize("[Getter/Setter]","special"):ht=nt.stylize("[Getter]","special"):at.set&&(ht=nt.stylize("[Setter]","special")),tt(Ye,Xe)||(Qe="["+Xe+"]"),ht||(nt.seen.indexOf(at.value)<0?(Ne(Ze)?ht=se(nt,at.value,null):ht=se(nt,at.value,Ze-1),ht.indexOf(`
`)>-1&&(st?ht=ht.split(`
`).map(function(qe){return" "+qe}).join(`
`).substr(2):ht=`
`+ht.split(`
`).map(function(qe){return" "+qe}).join(`
`))):ht=nt.stylize("[Circular]","special")),Oe(Qe)){if(st&&Xe.match(/^\d+$/))return ht;Qe=JSON.stringify(""+Xe),Qe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Qe=Qe.substr(1,Qe.length-2),Qe=nt.stylize(Qe,"name")):(Qe=Qe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Qe=nt.stylize(Qe,"string"))}return Qe+": "+ht}function me(nt,et,Ze){var Ye=0,Xe=nt.reduce(function(st,Qe){return Ye++,Qe.indexOf(`
`)>=0&&Ye++,st+Qe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Xe>60?Ze[0]+(et===""?"":et+`
`)+" "+nt.join(`,
`)+" "+Ze[1]:Ze[0]+et+" "+nt.join(", ")+" "+Ze[1]}function xe(nt){return Array.isArray(nt)}ye.isArray=xe;function Ae(nt){return typeof nt=="boolean"}ye.isBoolean=Ae;function Ne(nt){return nt===null}ye.isNull=Ne;function Be(nt){return nt==null}ye.isNullOrUndefined=Be;function De(nt){return typeof nt=="number"}ye.isNumber=De;function we(nt){return typeof nt=="string"}ye.isString=we;function Ce(nt){return typeof nt=="symbol"}ye.isSymbol=Ce;function Oe(nt){return nt===void 0}ye.isUndefined=Oe;function je(nt){return Fe(nt)&&Ve(nt)==="[object RegExp]"}ye.isRegExp=je;function Fe(nt){return typeof nt=="object"&&nt!==null}ye.isObject=Fe;function ke(nt){return Fe(nt)&&Ve(nt)==="[object Date]"}ye.isDate=ke;function Ee(nt){return Fe(nt)&&(Ve(nt)==="[object Error]"||nt instanceof Error)}ye.isError=Ee;function Ge(nt){return typeof nt=="function"}ye.isFunction=Ge;function Ke(nt){return nt===null||typeof nt=="boolean"||typeof nt=="number"||typeof nt=="string"||typeof nt=="symbol"||typeof nt=="undefined"}ye.isPrimitive=Ke,ye.isBuffer=y("./support/isBuffer");function Ve(nt){return Object.prototype.toString.call(nt)}function it(nt){return nt<10?"0"+nt.toString(10):nt.toString(10)}var Le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ue(){var nt=new Date,et=[it(nt.getHours()),it(nt.getMinutes()),it(nt.getSeconds())].join(":");return[nt.getDate(),Le[nt.getMonth()],et].join(" ")}ye.log=function(){console.log("%s - %s",Ue(),ye.format.apply(ye,arguments))},ye.inherits=y("inherits"),ye._extend=function(nt,et){if(!et||!Fe(et))return nt;for(var Ze=Object.keys(et),Ye=Ze.length;Ye--;)nt[Ze[Ye]]=et[Ze[Ye]];return nt};function tt(nt,et){return Object.prototype.hasOwnProperty.call(nt,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,Pe,ye){(function(z){(function(){"use strict";var E=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],re=typeof globalThis=="undefined"?z:globalThis;Pe.exports=function(){for(var ee=[],de=0;de<E.length;de++)typeof re[E[de]]=="function"&&(ee[ee.length]=E[de]);return ee}}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(y,Pe,ye){"use strict";ye.byteLength=ae,ye.toByteArray=se,ye.fromByteArray=he;for(var z=[],E=[],re=typeof Uint8Array!="undefined"?Uint8Array:Array,oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ee=0,de=oe.length;ee<de;++ee)z[ee]=oe[ee],E[oe.charCodeAt(ee)]=ee;E[45]=62,E[95]=63;function x(ge){var me=ge.length;if(me%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var xe=ge.indexOf("=");xe===-1&&(xe=me);var Ae=xe===me?0:4-xe%4;return[xe,Ae]}function ae(ge){var me=x(ge),xe=me[0],Ae=me[1];return(xe+Ae)*3/4-Ae}function ie(ge,me,xe){return(me+xe)*3/4-xe}function se(ge){var me,xe=x(ge),Ae=xe[0],Ne=xe[1],Be=new re(ie(ge,Ae,Ne)),De=0,we=Ne>0?Ae-4:Ae,Ce;for(Ce=0;Ce<we;Ce+=4)me=E[ge.charCodeAt(Ce)]<<18|E[ge.charCodeAt(Ce+1)]<<12|E[ge.charCodeAt(Ce+2)]<<6|E[ge.charCodeAt(Ce+3)],Be[De++]=me>>16&255,Be[De++]=me>>8&255,Be[De++]=me&255;return Ne===2&&(me=E[ge.charCodeAt(Ce)]<<2|E[ge.charCodeAt(Ce+1)]>>4,Be[De++]=me&255),Ne===1&&(me=E[ge.charCodeAt(Ce)]<<10|E[ge.charCodeAt(Ce+1)]<<4|E[ge.charCodeAt(Ce+2)]>>2,Be[De++]=me>>8&255,Be[De++]=me&255),Be}function ue(ge){return z[ge>>18&63]+z[ge>>12&63]+z[ge>>6&63]+z[ge&63]}function pe(ge,me,xe){for(var Ae,Ne=[],Be=me;Be<xe;Be+=3)Ae=(ge[Be]<<16&16711680)+(ge[Be+1]<<8&65280)+(ge[Be+2]&255),Ne.push(ue(Ae));return Ne.join("")}function he(ge){for(var me,xe=ge.length,Ae=xe%3,Ne=[],Be=16383,De=0,we=xe-Ae;De<we;De+=Be)Ne.push(pe(ge,De,De+Be>we?we:De+Be));return Ae===1?(me=ge[xe-1],Ne.push(z[me>>2]+z[me<<4&63]+"==")):Ae===2&&(me=(ge[xe-2]<<8)+ge[xe-1],Ne.push(z[me>>10]+z[me>>4&63]+z[me<<2&63]+"=")),Ne.join("")}},{}],88:[function(y,Pe,ye){(function(z,E,re){typeof Pe!="undefined"&&Pe.exports?Pe.exports=re():typeof Te=="function"&&Te.amd?Te(E,re):z[E]=re()})(this,"bowser",function(){var z=!0;function E(ie){function se(et){var Ze=ie.match(et);return Ze&&Ze.length>1&&Ze[1]||""}function ue(et){var Ze=ie.match(et);return Ze&&Ze.length>1&&Ze[2]||""}var pe=se(/(ipod|iphone|ipad)/i).toLowerCase(),he=/like android/i.test(ie),ge=!he&&/android/i.test(ie),me=/nexus\s*[0-6]\s*/i.test(ie),xe=!me&&/nexus\s*[0-9]+/i.test(ie),Ae=/CrOS/.test(ie),Ne=/silk/i.test(ie),Be=/sailfish/i.test(ie),De=/tizen/i.test(ie),we=/(web|hpw)(o|0)s/i.test(ie),Ce=/windows phone/i.test(ie),Oe=/SamsungBrowser/i.test(ie),je=!Ce&&/windows/i.test(ie),Fe=!pe&&!Ne&&/macintosh/i.test(ie),ke=!ge&&!Be&&!De&&!we&&/linux/i.test(ie),Ee=ue(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Ge=se(/version\/(\d+(\.\d+)?)/i),Ke=/tablet/i.test(ie)&&!/tablet pc/i.test(ie),Ve=!Ke&&/[^-]mobi/i.test(ie),it=/xbox/i.test(ie),Le;/opera/i.test(ie)?Le={name:"Opera",opera:z,version:Ge||se(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(ie)?Le={name:"Opera",opera:z,version:se(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Ge}:/SamsungBrowser/i.test(ie)?Le={name:"Samsung Internet for Android",samsungBrowser:z,version:Ge||se(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(ie)?Le={name:"NAVER Whale browser",whale:z,version:se(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(ie)?Le={name:"MZ Browser",mzbrowser:z,version:se(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(ie)?Le={name:"Opera Coast",coast:z,version:Ge||se(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(ie)?Le={name:"Focus",focus:z,version:se(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(ie)?Le={name:"Yandex Browser",yandexbrowser:z,version:Ge||se(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(ie)?Le={name:"UC Browser",ucbrowser:z,version:se(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(ie)?Le={name:"Maxthon",maxthon:z,version:se(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(ie)?Le={name:"Epiphany",epiphany:z,version:se(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(ie)?Le={name:"Puffin",puffin:z,version:se(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(ie)?Le={name:"Sleipnir",sleipnir:z,version:se(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(ie)?Le={name:"K-Meleon",kMeleon:z,version:se(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Ce?(Le={name:"Windows Phone",osname:"Windows Phone",windowsphone:z},Ee?(Le.msedge=z,Le.version=Ee):(Le.msie=z,Le.version=se(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(ie)?Le={name:"Internet Explorer",msie:z,version:se(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Ae?Le={name:"Chrome",osname:"Chrome OS",chromeos:z,chromeBook:z,chrome:z,version:se(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(ie)?Le={name:"Microsoft Edge",msedge:z,version:Ee}:/vivaldi/i.test(ie)?Le={name:"Vivaldi",vivaldi:z,version:se(/vivaldi\/(\d+(\.\d+)?)/i)||Ge}:Be?Le={name:"Sailfish",osname:"Sailfish OS",sailfish:z,version:se(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(ie)?Le={name:"SeaMonkey",seamonkey:z,version:se(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(ie)?(Le={name:"Firefox",firefox:z,version:se(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(ie)&&(Le.firefoxos=z,Le.osname="Firefox OS")):Ne?Le={name:"Amazon Silk",silk:z,version:se(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(ie)?Le={name:"PhantomJS",phantom:z,version:se(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(ie)?Le={name:"SlimerJS",slimer:z,version:se(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(ie)||/rim\stablet/i.test(ie)?Le={name:"BlackBerry",osname:"BlackBerry OS",blackberry:z,version:Ge||se(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:we?(Le={name:"WebOS",osname:"WebOS",webos:z,version:Ge||se(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(ie)&&(Le.touchpad=z)):/bada/i.test(ie)?Le={name:"Bada",osname:"Bada",bada:z,version:se(/dolfin\/(\d+(\.\d+)?)/i)}:De?Le={name:"Tizen",osname:"Tizen",tizen:z,version:se(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Ge}:/qupzilla/i.test(ie)?Le={name:"QupZilla",qupzilla:z,version:se(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Ge}:/chromium/i.test(ie)?Le={name:"Chromium",chromium:z,version:se(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Ge}:/chrome|crios|crmo/i.test(ie)?Le={name:"Chrome",chrome:z,version:se(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:ge?Le={name:"Android",version:Ge}:/safari|applewebkit/i.test(ie)?(Le={name:"Safari",safari:z},Ge&&(Le.version=Ge)):pe?(Le={name:pe=="iphone"?"iPhone":pe=="ipad"?"iPad":"iPod"},Ge&&(Le.version=Ge)):/googlebot/i.test(ie)?Le={name:"Googlebot",googlebot:z,version:se(/googlebot\/(\d+(\.\d+))/i)||Ge}:Le={name:se(/^(.*)\/(.*) /),version:ue(/^(.*)\/(.*) /)},!Le.msedge&&/(apple)?webkit/i.test(ie)?(/(apple)?webkit\/537\.36/i.test(ie)?(Le.name=Le.name||"Blink",Le.blink=z):(Le.name=Le.name||"Webkit",Le.webkit=z),!Le.version&&Ge&&(Le.version=Ge)):!Le.opera&&/gecko\//i.test(ie)&&(Le.name=Le.name||"Gecko",Le.gecko=z,Le.version=Le.version||se(/gecko\/(\d+(\.\d+)?)/i)),!Le.windowsphone&&(ge||Le.silk)?(Le.android=z,Le.osname="Android"):!Le.windowsphone&&pe?(Le[pe]=z,Le.ios=z,Le.osname="iOS"):Fe?(Le.mac=z,Le.osname="macOS"):it?(Le.xbox=z,Le.osname="Xbox"):je?(Le.windows=z,Le.osname="Windows"):ke&&(Le.linux=z,Le.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="";Le.windows?tt=Ue(se(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Le.windowsphone?tt=se(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Le.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,".")):ge?tt=se(/android[ \/-](\d+(\.\d+)*)/i):Le.webos?tt=se(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Le.blackberry?tt=se(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Le.bada?tt=se(/bada\/(\d+(\.\d+)*)/i):Le.tizen&&(tt=se(/tizen[\/\s](\d+(\.\d+)*)/i)),tt&&(Le.osversion=tt);var nt=!Le.windows&&tt.split(".")[0];return Ke||xe||pe=="ipad"||ge&&(nt==3||nt>=4&&!Ve)||Le.silk?Le.tablet=z:(Ve||pe=="iphone"||pe=="ipod"||ge||me||Le.blackberry||Le.webos||Le.bada)&&(Le.mobile=z),Le.msedge||Le.msie&&Le.version>=10||Le.yandexbrowser&&Le.version>=15||Le.vivaldi&&Le.version>=1||Le.chrome&&Le.version>=20||Le.samsungBrowser&&Le.version>=4||Le.whale&&de([Le.version,"1.0"])===1||Le.mzbrowser&&de([Le.version,"6.0"])===1||Le.focus&&de([Le.version,"1.0"])===1||Le.firefox&&Le.version>=20||Le.safari&&Le.version>=6||Le.opera&&Le.version>=10||Le.ios&&Le.osversion&&Le.osversion.split(".")[0]>=6||Le.blackberry&&Le.version>=10.1||Le.chromium&&Le.version>=20?Le.a=z:Le.msie&&Le.version<10||Le.chrome&&Le.version<20||Le.firefox&&Le.version<20||Le.safari&&Le.version<6||Le.opera&&Le.version<10||Le.ios&&Le.osversion&&Le.osversion.split(".")[0]<6||Le.chromium&&Le.version<20?Le.c=z:Le.x=z,Le}var re=E(typeof navigator!="undefined"&&navigator.userAgent||"");re.test=function(ie){for(var se=0;se<ie.length;++se){var ue=ie[se];if(typeof ue=="string"&&ue in re)return!0}return!1};function oe(ie){return ie.split(".").length}function ee(ie,se){var ue=[],pe;if(Array.prototype.map)return Array.prototype.map.call(ie,se);for(pe=0;pe<ie.length;pe++)ue.push(se(ie[pe]));return ue}function de(ie){for(var se=Math.max(oe(ie[0]),oe(ie[1])),ue=ee(ie,function(pe){var he=se-oe(pe);return pe=pe+new Array(he+1).join(".0"),ee(pe.split("."),function(ge){return new Array(20-ge.length).join("0")+ge}).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(ie,se,ue){var pe=re;typeof se=="string"&&(ue=se,se=void 0),se===void 0&&(se=!1),ue&&(pe=E(ue));var he=""+pe.version;for(var ge in ie)if(ie.hasOwnProperty(ge)&&pe[ge]){if(typeof ie[ge]!="string")throw new Error("Browser version in the minVersion map should be a string: "+ge+": "+String(ie));return de([he,ie[ge]])<0}return se}function ae(ie,se,ue){return!x(ie,se,ue)}return re.isUnsupportedBrowser=x,re.compareVersions=de,re.check=ae,re._detect=E,re.detect=E,re})},{}],89:[function(y,Pe,ye){},{}],90:[function(y,Pe,ye){(function(z){(function(){"use strict";var E=y("base64-js"),re=y("ieee754");ye.Buffer=x,ye.SlowBuffer=Ae,ye.INSPECT_MAX_BYTES=50;var oe=2147483647;ye.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 de(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(He(ve,ArrayBuffer)||ve&&He(ve.buffer,ArrayBuffer))return ge(ve,Ie,$e);if(typeof ve=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var We=ve.valueOf&&ve.valueOf();if(We!=null&&We!==ve)return x.from(We,Ie,$e);var Je=me(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 ie(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 ie(ve),ve<=0?de(ve):Ie!==void 0?typeof $e=="string"?de(ve).fill(Ie,$e):de(ve).fill(Ie):de(ve)}x.alloc=function(ve,Ie,$e){return se(ve,Ie,$e)};function ue(ve){return ie(ve),de(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=Ne(ve,Ie)|0,We=de($e),Je=We.write(ve,Ie);return Je!==$e&&(We=We.slice(0,Je)),We}function he(ve){for(var Ie=ve.length<0?0:xe(ve.length)|0,$e=de(Ie),We=0;We<Ie;We+=1)$e[We]=ve[We]&255;return $e}function ge(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 We;return Ie===void 0&&$e===void 0?We=new Uint8Array(ve):$e===void 0?We=new Uint8Array(ve,Ie):We=new Uint8Array(ve,Ie,$e),We.__proto__=x.prototype,We}function me(ve){if(x.isBuffer(ve)){var Ie=xe(ve.length)|0,$e=de(Ie);return $e.length===0||ve.copy($e,0,0,Ie),$e}if(ve.length!==void 0)return typeof ve.length!="number"||be(ve.length)?de(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 Ae(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(He(Ie,Uint8Array)&&(Ie=x.from(Ie,Ie.offset,Ie.byteLength)),He($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 We=Ie.length,Je=$e.length,ct=0,ot=Math.min(We,Je);ct<ot;++ct)if(Ie[ct]!==$e[ct]){We=Ie[ct],Je=$e[ct];break}return We<Je?-1:Je<We?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 We;if($e===void 0)for($e=0,We=0;We<Ie.length;++We)$e+=Ie[We].length;var Je=x.allocUnsafe($e),ct=0;for(We=0;We<Ie.length;++We){var ot=Ie[We];if(He(ot,Uint8Array)&&(ot=x.from(ot)),!x.isBuffer(ot))throw new TypeError('"list" argument must be an Array of Buffers');ot.copy(Je,ct),ct+=ot.length}return Je};function Ne(ve,Ie){if(x.isBuffer(ve))return ve.length;if(ArrayBuffer.isView(ve)||He(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,We=arguments.length>2&&arguments[2]===!0;if(!We&&$e===0)return 0;for(var Je=!1;;)switch(Ie){case"ascii":case"latin1":case"binary":return $e;case"utf8":case"utf-8":return _e(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 We?-1:_e(ve).length;Ie=(""+Ie).toLowerCase(),Je=!0}}x.byteLength=Ne;function Be(ve,Ie,$e){var We=!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 nt(this,Ie,$e);case"utf8":case"utf-8":return Ve(this,Ie,$e);case"ascii":return Ue(this,Ie,$e);case"latin1":case"binary":return tt(this,Ie,$e);case"base64":return Ke(this,Ie,$e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,Ie,$e);default:if(We)throw new TypeError("Unknown encoding: "+ve);ve=(ve+"").toLowerCase(),We=!0}}x.prototype._isBuffer=!0;function De(ve,Ie,$e){var We=ve[Ie];ve[Ie]=ve[$e],ve[$e]=We}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)De(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)De(this,$e,$e+3),De(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)De(this,$e,$e+7),De(this,$e+1,$e+6),De(this,$e+2,$e+5),De(this,$e+3,$e+4);return this},x.prototype.toString=function(){var Ie=this.length;return Ie===0?"":arguments.length===0?Ve(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=ye.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,We,Je,ct){if(He(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),We===void 0&&(We=Ie?Ie.length:0),Je===void 0&&(Je=0),ct===void 0&&(ct=this.length),$e<0||We>Ie.length||Je<0||ct>this.length)throw new RangeError("out of range index");if(Je>=ct&&$e>=We)return 0;if(Je>=ct)return-1;if($e>=We)return 1;if($e>>>=0,We>>>=0,Je>>>=0,ct>>>=0,this===Ie)return 0;for(var ot=ct-Je,ft=We-$e,ut=Math.min(ot,ft),lt=this.slice(Je,ct),At=Ie.slice($e,We),yt=0;yt<ut;++yt)if(lt[yt]!==At[yt]){ot=lt[yt],ft=At[yt];break}return ot<ft?-1:ft<ot?1:0};function we(ve,Ie,$e,We,Je){if(ve.length===0)return-1;if(typeof $e=="string"?(We=$e,$e=0):$e>2147483647?$e=2147483647:$e<-2147483648&&($e=-2147483648),$e=+$e,be($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,We)),x.isBuffer(Ie))return Ie.length===0?-1:Ce(ve,Ie,$e,We,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):Ce(ve,[Ie],$e,We,Je);throw new TypeError("val must be string, number or Buffer")}function Ce(ve,Ie,$e,We,Je){var ct=1,ot=ve.length,ft=Ie.length;if(We!==void 0&&(We=String(We).toLowerCase(),We==="ucs2"||We==="ucs-2"||We==="utf16le"||We==="utf-16le")){if(ve.length<2||Ie.length<2)return-1;ct=2,ot/=2,ft/=2,$e/=2}function ut(Pt,Tt){return ct===1?Pt[Tt]:Pt.readUInt16BE(Tt*ct)}var lt;if(Je){var At=-1;for(lt=$e;lt<ot;lt++)if(ut(ve,lt)===ut(Ie,At===-1?0:lt-At)){if(At===-1&&(At=lt),lt-At+1===ft)return At*ct}else At!==-1&&(lt-=lt-At),At=-1}else for($e+ft>ot&&($e=ot-ft),lt=$e;lt>=0;lt--){for(var yt=!0,Rt=0;Rt<ft;Rt++)if(ut(ve,lt+Rt)!==ut(Ie,Rt)){yt=!1;break}if(yt)return lt}return-1}x.prototype.includes=function(Ie,$e,We){return this.indexOf(Ie,$e,We)!==-1},x.prototype.indexOf=function(Ie,$e,We){return we(this,Ie,$e,We,!0)},x.prototype.lastIndexOf=function(Ie,$e,We){return we(this,Ie,$e,We,!1)};function Oe(ve,Ie,$e,We){$e=Number($e)||0;var Je=ve.length-$e;We?(We=Number(We),We>Je&&(We=Je)):We=Je;var ct=Ie.length;We>ct/2&&(We=ct/2);for(var ot=0;ot<We;++ot){var ft=parseInt(Ie.substr(ot*2,2),16);if(be(ft))return ot;ve[$e+ot]=ft}return ot}function je(ve,Ie,$e,We){return Me(_e(Ie,ve.length-$e),ve,$e,We)}function Fe(ve,Ie,$e,We){return Me(Re(Ie),ve,$e,We)}function ke(ve,Ie,$e,We){return Fe(ve,Ie,$e,We)}function Ee(ve,Ie,$e,We){return Me(fe(Ie),ve,$e,We)}function Ge(ve,Ie,$e,We){return Me(ne(Ie,ve.length-$e),ve,$e,We)}x.prototype.write=function(Ie,$e,We,Je){if($e===void 0)Je="utf8",We=this.length,$e=0;else if(We===void 0&&typeof $e=="string")Je=$e,We=this.length,$e=0;else if(isFinite($e))$e=$e>>>0,isFinite(We)?(We=We>>>0,Je===void 0&&(Je="utf8")):(Je=We,We=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ct=this.length-$e;if((We===void 0||We>ct)&&(We=ct),Ie.length>0&&(We<0||$e<0)||$e>this.length)throw new RangeError("Attempt to write outside buffer bounds");Je||(Je="utf8");for(var ot=!1;;)switch(Je){case"hex":return Oe(this,Ie,$e,We);case"utf8":case"utf-8":return je(this,Ie,$e,We);case"ascii":return Fe(this,Ie,$e,We);case"latin1":case"binary":return ke(this,Ie,$e,We);case"base64":return Ee(this,Ie,$e,We);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ge(this,Ie,$e,We);default:if(ot)throw new TypeError("Unknown encoding: "+Je);Je=(""+Je).toLowerCase(),ot=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ke(ve,Ie,$e){return Ie===0&&$e===ve.length?E.fromByteArray(ve):E.fromByteArray(ve.slice(Ie,$e))}function Ve(ve,Ie,$e){$e=Math.min(ve.length,$e);for(var We=[],Je=Ie;Je<$e;){var ct=ve[Je],ot=null,ft=ct>239?4:ct>223?3:ct>191?2:1;if(Je+ft<=$e){var ut,lt,At,yt;switch(ft){case 1:ct<128&&(ot=ct);break;case 2:ut=ve[Je+1],(ut&192)===128&&(yt=(ct&31)<<6|ut&63,yt>127&&(ot=yt));break;case 3:ut=ve[Je+1],lt=ve[Je+2],(ut&192)===128&&(lt&192)===128&&(yt=(ct&15)<<12|(ut&63)<<6|lt&63,yt>2047&&(yt<55296||yt>57343)&&(ot=yt));break;case 4:ut=ve[Je+1],lt=ve[Je+2],At=ve[Je+3],(ut&192)===128&&(lt&192)===128&&(At&192)===128&&(yt=(ct&15)<<18|(ut&63)<<12|(lt&63)<<6|At&63,yt>65535&&yt<1114112&&(ot=yt))}}ot===null?(ot=65533,ft=1):ot>65535&&(ot-=65536,We.push(ot>>>10&1023|55296),ot=56320|ot&1023),We.push(ot),Je+=ft}return Le(We)}var it=4096;function Le(ve){var Ie=ve.length;if(Ie<=it)return String.fromCharCode.apply(String,ve);for(var $e="",We=0;We<Ie;)$e+=String.fromCharCode.apply(String,ve.slice(We,We+=it));return $e}function Ue(ve,Ie,$e){var We="";$e=Math.min(ve.length,$e);for(var Je=Ie;Je<$e;++Je)We+=String.fromCharCode(ve[Je]&127);return We}function tt(ve,Ie,$e){var We="";$e=Math.min(ve.length,$e);for(var Je=Ie;Je<$e;++Je)We+=String.fromCharCode(ve[Je]);return We}function nt(ve,Ie,$e){var We=ve.length;(!Ie||Ie<0)&&(Ie=0),(!$e||$e<0||$e>We)&&($e=We);for(var Je="",ct=Ie;ct<$e;++ct)Je+=qe(ve[ct]);return Je}function et(ve,Ie,$e){for(var We=ve.slice(Ie,$e),Je="",ct=0;ct<We.length;ct+=2)Je+=String.fromCharCode(We[ct]+We[ct+1]*256);return Je}x.prototype.slice=function(Ie,$e){var We=this.length;Ie=~~Ie,$e=$e===void 0?We:~~$e,Ie<0?(Ie+=We,Ie<0&&(Ie=0)):Ie>We&&(Ie=We),$e<0?($e+=We,$e<0&&($e=0)):$e>We&&($e=We),$e<Ie&&($e=Ie);var Je=this.subarray(Ie,$e);return Je.__proto__=x.prototype,Je};function Ze(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,We){Ie=Ie>>>0,$e=$e>>>0,We||Ze(Ie,$e,this.length);for(var Je=this[Ie],ct=1,ot=0;++ot<$e&&(ct*=256);)Je+=this[Ie+ot]*ct;return Je},x.prototype.readUIntBE=function(Ie,$e,We){Ie=Ie>>>0,$e=$e>>>0,We||Ze(Ie,$e,this.length);for(var Je=this[Ie+--$e],ct=1;$e>0&&(ct*=256);)Je+=this[Ie+--$e]*ct;return Je},x.prototype.readUInt8=function(Ie,$e){return Ie=Ie>>>0,$e||Ze(Ie,1,this.length),this[Ie]},x.prototype.readUInt16LE=function(Ie,$e){return Ie=Ie>>>0,$e||Ze(Ie,2,this.length),this[Ie]|this[Ie+1]<<8},x.prototype.readUInt16BE=function(Ie,$e){return Ie=Ie>>>0,$e||Ze(Ie,2,this.length),this[Ie]<<8|this[Ie+1]},x.prototype.readUInt32LE=function(Ie,$e){return Ie=Ie>>>0,$e||Ze(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||Ze(Ie,4,this.length),this[Ie]*16777216+(this[Ie+1]<<16|this[Ie+2]<<8|this[Ie+3])},x.prototype.readIntLE=function(Ie,$e,We){Ie=Ie>>>0,$e=$e>>>0,We||Ze(Ie,$e,this.length);for(var Je=this[Ie],ct=1,ot=0;++ot<$e&&(ct*=256);)Je+=this[Ie+ot]*ct;return ct*=128,Je>=ct&&(Je-=Math.pow(2,8*$e)),Je},x.prototype.readIntBE=function(Ie,$e,We){Ie=Ie>>>0,$e=$e>>>0,We||Ze(Ie,$e,this.length);for(var Je=$e,ct=1,ot=this[Ie+--Je];Je>0&&(ct*=256);)ot+=this[Ie+--Je]*ct;return ct*=128,ot>=ct&&(ot-=Math.pow(2,8*$e)),ot},x.prototype.readInt8=function(Ie,$e){return Ie=Ie>>>0,$e||Ze(Ie,1,this.length),this[Ie]&128?(255-this[Ie]+1)*-1:this[Ie]},x.prototype.readInt16LE=function(Ie,$e){Ie=Ie>>>0,$e||Ze(Ie,2,this.length);var We=this[Ie]|this[Ie+1]<<8;return We&32768?We|4294901760:We},x.prototype.readInt16BE=function(Ie,$e){Ie=Ie>>>0,$e||Ze(Ie,2,this.length);var We=this[Ie+1]|this[Ie]<<8;return We&32768?We|4294901760:We},x.prototype.readInt32LE=function(Ie,$e){return Ie=Ie>>>0,$e||Ze(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||Ze(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||Ze(Ie,4,this.length),re.read(this,Ie,!0,23,4)},x.prototype.readFloatBE=function(Ie,$e){return Ie=Ie>>>0,$e||Ze(Ie,4,this.length),re.read(this,Ie,!1,23,4)},x.prototype.readDoubleLE=function(Ie,$e){return Ie=Ie>>>0,$e||Ze(Ie,8,this.length),re.read(this,Ie,!0,52,8)},x.prototype.readDoubleBE=function(Ie,$e){return Ie=Ie>>>0,$e||Ze(Ie,8,this.length),re.read(this,Ie,!1,52,8)};function Ye(ve,Ie,$e,We,Je,ct){if(!x.isBuffer(ve))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ie>Je||Ie<ct)throw new RangeError('"value" argument is out of bounds');if($e+We>ve.length)throw new RangeError("Index out of range")}x.prototype.writeUIntLE=function(Ie,$e,We,Je){if(Ie=+Ie,$e=$e>>>0,We=We>>>0,!Je){var ct=Math.pow(2,8*We)-1;Ye(this,Ie,$e,We,ct,0)}var ot=1,ft=0;for(this[$e]=Ie&255;++ft<We&&(ot*=256);)this[$e+ft]=Ie/ot&255;return $e+We},x.prototype.writeUIntBE=function(Ie,$e,We,Je){if(Ie=+Ie,$e=$e>>>0,We=We>>>0,!Je){var ct=Math.pow(2,8*We)-1;Ye(this,Ie,$e,We,ct,0)}var ot=We-1,ft=1;for(this[$e+ot]=Ie&255;--ot>=0&&(ft*=256);)this[$e+ot]=Ie/ft&255;return $e+We},x.prototype.writeUInt8=function(Ie,$e,We){return Ie=+Ie,$e=$e>>>0,We||Ye(this,Ie,$e,1,255,0),this[$e]=Ie&255,$e+1},x.prototype.writeUInt16LE=function(Ie,$e,We){return Ie=+Ie,$e=$e>>>0,We||Ye(this,Ie,$e,2,65535,0),this[$e]=Ie&255,this[$e+1]=Ie>>>8,$e+2},x.prototype.writeUInt16BE=function(Ie,$e,We){return Ie=+Ie,$e=$e>>>0,We||Ye(this,Ie,$e,2,65535,0),this[$e]=Ie>>>8,this[$e+1]=Ie&255,$e+2},x.prototype.writeUInt32LE=function(Ie,$e,We){return Ie=+Ie,$e=$e>>>0,We||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,We){return Ie=+Ie,$e=$e>>>0,We||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,We,Je){if(Ie=+Ie,$e=$e>>>0,!Je){var ct=Math.pow(2,8*We-1);Ye(this,Ie,$e,We,ct-1,-ct)}var ot=0,ft=1,ut=0;for(this[$e]=Ie&255;++ot<We&&(ft*=256);)Ie<0&&ut===0&&this[$e+ot-1]!==0&&(ut=1),this[$e+ot]=(Ie/ft>>0)-ut&255;return $e+We},x.prototype.writeIntBE=function(Ie,$e,We,Je){if(Ie=+Ie,$e=$e>>>0,!Je){var ct=Math.pow(2,8*We-1);Ye(this,Ie,$e,We,ct-1,-ct)}var ot=We-1,ft=1,ut=0;for(this[$e+ot]=Ie&255;--ot>=0&&(ft*=256);)Ie<0&&ut===0&&this[$e+ot+1]!==0&&(ut=1),this[$e+ot]=(Ie/ft>>0)-ut&255;return $e+We},x.prototype.writeInt8=function(Ie,$e,We){return Ie=+Ie,$e=$e>>>0,We||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,We){return Ie=+Ie,$e=$e>>>0,We||Ye(this,Ie,$e,2,32767,-32768),this[$e]=Ie&255,this[$e+1]=Ie>>>8,$e+2},x.prototype.writeInt16BE=function(Ie,$e,We){return Ie=+Ie,$e=$e>>>0,We||Ye(this,Ie,$e,2,32767,-32768),this[$e]=Ie>>>8,this[$e+1]=Ie&255,$e+2},x.prototype.writeInt32LE=function(Ie,$e,We){return Ie=+Ie,$e=$e>>>0,We||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,We){return Ie=+Ie,$e=$e>>>0,We||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,We,Je,ct){if($e+We>ve.length)throw new RangeError("Index out of range");if($e<0)throw new RangeError("Index out of range")}function st(ve,Ie,$e,We,Je){return Ie=+Ie,$e=$e>>>0,Je||Xe(ve,Ie,$e,4,34028234663852886e22,-34028234663852886e22),re.write(ve,Ie,$e,We,23,4),$e+4}x.prototype.writeFloatLE=function(Ie,$e,We){return st(this,Ie,$e,!0,We)},x.prototype.writeFloatBE=function(Ie,$e,We){return st(this,Ie,$e,!1,We)};function Qe(ve,Ie,$e,We,Je){return Ie=+Ie,$e=$e>>>0,Je||Xe(ve,Ie,$e,8,17976931348623157e292,-17976931348623157e292),re.write(ve,Ie,$e,We,52,8),$e+8}x.prototype.writeDoubleLE=function(Ie,$e,We){return Qe(this,Ie,$e,!0,We)},x.prototype.writeDoubleBE=function(Ie,$e,We){return Qe(this,Ie,$e,!1,We)},x.prototype.copy=function(Ie,$e,We,Je){if(!x.isBuffer(Ie))throw new TypeError("argument should be a Buffer");if(We||(We=0),!Je&&Je!==0&&(Je=this.length),$e>=Ie.length&&($e=Ie.length),$e||($e=0),Je>0&&Je<We&&(Je=We),Je===We||Ie.length===0||this.length===0)return 0;if($e<0)throw new RangeError("targetStart out of bounds");if(We<0||We>=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-We&&(Je=Ie.length-$e+We);var ct=Je-We;if(this===Ie&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin($e,We,Je);else if(this===Ie&&We<$e&&$e<Je)for(var ot=ct-1;ot>=0;--ot)Ie[ot+$e]=this[ot+We];else Uint8Array.prototype.set.call(Ie,this.subarray(We,Je),$e);return ct},x.prototype.fill=function(Ie,$e,We,Je){if(typeof Ie=="string"){if(typeof $e=="string"?(Je=$e,$e=0,We=this.length):typeof We=="string"&&(Je=We,We=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 ct=Ie.charCodeAt(0);(Je==="utf8"&&ct<128||Je==="latin1")&&(Ie=ct)}}else typeof Ie=="number"&&(Ie=Ie&255);if($e<0||this.length<$e||this.length<We)throw new RangeError("Out of range index");if(We<=$e)return this;$e=$e>>>0,We=We===void 0?this.length:We>>>0,Ie||(Ie=0);var ot;if(typeof Ie=="number")for(ot=$e;ot<We;++ot)this[ot]=Ie;else{var ft=x.isBuffer(Ie)?Ie:x.from(Ie,Je),ut=ft.length;if(ut===0)throw new TypeError('The value "'+Ie+'" is invalid for argument "value"');for(ot=0;ot<We-$e;++ot)this[ot+$e]=ft[ot%ut]}return this};var ht=/[^+/0-9A-Za-z-_]/g;function at(ve){if(ve=ve.split("=")[0],ve=ve.trim().replace(ht,""),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 _e(ve,Ie){Ie=Ie||1/0;for(var $e,We=ve.length,Je=null,ct=[],ot=0;ot<We;++ot){if($e=ve.charCodeAt(ot),$e>55295&&$e<57344){if(!Je){if($e>56319){(Ie-=3)>-1&&ct.push(239,191,189);continue}else if(ot+1===We){(Ie-=3)>-1&&ct.push(239,191,189);continue}Je=$e;continue}if($e<56320){(Ie-=3)>-1&&ct.push(239,191,189),Je=$e;continue}$e=(Je-55296<<10|$e-56320)+65536}else Je&&(Ie-=3)>-1&&ct.push(239,191,189);if(Je=null,$e<128){if((Ie-=1)<0)break;ct.push($e)}else if($e<2048){if((Ie-=2)<0)break;ct.push($e>>6|192,$e&63|128)}else if($e<65536){if((Ie-=3)<0)break;ct.push($e>>12|224,$e>>6&63|128,$e&63|128)}else if($e<1114112){if((Ie-=4)<0)break;ct.push($e>>18|240,$e>>12&63|128,$e>>6&63|128,$e&63|128)}else throw new Error("Invalid code point")}return ct}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,We,Je,ct=[],ot=0;ot<ve.length&&!((Ie-=2)<0);++ot)$e=ve.charCodeAt(ot),We=$e>>8,Je=$e%256,ct.push(Je),ct.push(We);return ct}function fe(ve){return E.toByteArray(at(ve))}function Me(ve,Ie,$e,We){for(var Je=0;Je<We&&!(Je+$e>=Ie.length||Je>=ve.length);++Je)Ie[Je+$e]=ve[Je];return Je}function He(ve,Ie){return ve instanceof Ie||ve!=null&&ve.constructor!=null&&ve.constructor.name!=null&&ve.constructor.name===Ie.name}function be(ve){return ve!==ve}}).call(this)}).call(this,y("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(y,Pe,ye){Pe.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,Pe,ye){"use strict";var z=y("get-intrinsic"),E=y("./"),re=E(z("String.prototype.indexOf"));Pe.exports=function(ee,de){var x=z(ee,!!de);return typeof x=="function"&&re(ee,".prototype.")>-1?E(x):x}},{"./":93,"get-intrinsic":348}],93:[function(y,Pe,ye){"use strict";var z=y("function-bind"),E=y("get-intrinsic"),re=E("%Function.prototype.apply%"),oe=E("%Function.prototype.call%"),ee=E("%Reflect.apply%",!0)||z.call(oe,re),de=E("%Object.getOwnPropertyDescriptor%",!0),x=E("%Object.defineProperty%",!0),ae=E("%Math.max%");if(x)try{x({},"a",{value:1})}catch(se){x=null}Pe.exports=function(ue){var pe=ee(z,oe,arguments);if(de&&x){var he=de(pe,"length");he.configurable&&x(pe,"length",{value:1+ae(0,ue.length-(arguments.length-1))})}return pe};var ie=function(){return ee(z,re,arguments)};x?x(Pe.exports,"apply",{value:ie}):Pe.exports.apply=ie},{"function-bind":347,"get-intrinsic":348}],94:[function(y,Pe,ye){"use strict";var z=Array.prototype.slice;Pe.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 de=0;de<ee.length;de++)x=ee[de],oe[x]===void 0&&(oe[x]=this.src[x]);return oe}for(var de=0;de<ee.length;de++){var x=ee[de];if(re(oe,x)){var ae=this.src.__lookupGetter__(x),ie=this.src.__lookupSetter__(x);ae&&oe.__defineGetter__(x,ae),ie&&oe.__defineSetter__(x,ie),!ae&&!ie&&(oe[x]=this.src[x])}}return oe},E.prototype.toCover=function(oe){for(var ee=this.keys||Object.keys(this.src),de=0;de<ee.length;de++){var x=ee[de];delete oe[x];var ae=this.src.__lookupGetter__(x),ie=this.src.__lookupSetter__(x);ae&&oe.__defineGetter__(x,ae),ie&&oe.__defineSetter__(x,ie),!ae&&!ie&&(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 re(oe,ee){return oe[ee]===void 0&&oe.__lookupGetter__(ee)===void 0&&oe.__lookupSetter__(ee)===void 0}},{}],95:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/is-callable"),re=y("../internals/try-to-string"),oe=z.TypeError;Pe.exports=function(ee){if(E(ee))return ee;throw oe(re(ee)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/is-constructor"),re=y("../internals/try-to-string"),oe=z.TypeError;Pe.exports=function(ee){if(E(ee))return ee;throw oe(re(ee)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/is-callable"),re=z.String,oe=z.TypeError;Pe.exports=function(ee){if(typeof ee=="object"||E(ee))return ee;throw oe("Can't set "+re(ee)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(y,Pe,ye){var z=y("../internals/well-known-symbol"),E=y("../internals/object-create"),re=y("../internals/object-define-property"),oe=z("unscopables"),ee=Array.prototype;ee[oe]==null&&re.f(ee,oe,{configurable:!0,value:E(null)}),Pe.exports=function(de){ee[oe][de]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(y,Pe,ye){"use strict";var z=y("../internals/string-multibyte").charAt;Pe.exports=function(E,re,oe){return re+(oe?z(E,re).length:1)}},{"../internals/string-multibyte":239}],100:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/object-is-prototype-of"),re=z.TypeError;Pe.exports=function(oe,ee){if(E(ee,oe))return oe;throw re("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/is-object"),re=z.String,oe=z.TypeError;Pe.exports=function(ee){if(E(ee))return ee;throw oe(re(ee)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(y,Pe,ye){Pe.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(y,Pe,ye){"use strict";var z=y("../internals/array-buffer-native"),E=y("../internals/descriptors"),re=y("../internals/global"),oe=y("../internals/is-callable"),ee=y("../internals/is-object"),de=y("../internals/has-own-property"),x=y("../internals/classof"),ae=y("../internals/try-to-string"),ie=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"),ge=y("../internals/object-set-prototype-of"),me=y("../internals/well-known-symbol"),xe=y("../internals/uid"),Ae=re.Int8Array,Ne=Ae&&Ae.prototype,Be=re.Uint8ClampedArray,De=Be&&Be.prototype,we=Ae&&he(Ae),Ce=Ne&&he(Ne),Oe=Object.prototype,je=re.TypeError,Fe=me("toStringTag"),ke=xe("TYPED_ARRAY_TAG"),Ee=xe("TYPED_ARRAY_CONSTRUCTOR"),Ge=z&&!!ge&&x(re.opera)!=="Opera",Ke=!1,Ve,it,Le,Ue={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},tt={BigInt64Array:8,BigUint64Array:8},nt=function(ht){if(!ee(ht))return!1;var at=x(ht);return at==="DataView"||de(Ue,at)||de(tt,at)},et=function(Qe){if(!ee(Qe))return!1;var ht=x(Qe);return de(Ue,ht)||de(tt,ht)},Ze=function(Qe){if(et(Qe))return Qe;throw je("Target is not a typed array")},Ye=function(Qe){if(oe(Qe)&&(!ge||pe(we,Qe)))return Qe;throw je(ae(Qe)+" is not a typed array constructor")},Xe=function(Qe,ht,at,qe){if(E){if(at)for(var _e in Ue){var Re=re[_e];if(Re&&de(Re.prototype,Qe))try{delete Re.prototype[Qe]}catch(ne){try{Re.prototype[Qe]=ht}catch(fe){}}}(!Ce[Qe]||at)&&se(Ce,Qe,at?ht:Ge&&Ne[Qe]||ht,qe)}},st=function(Qe,ht,at){var qe,_e;if(E){if(ge){if(at){for(qe in Ue)if(_e=re[qe],_e&&de(_e,Qe))try{delete _e[Qe]}catch(Re){}}if(!we[Qe]||at)try{return se(we,Qe,at?ht:Ge&&we[Qe]||ht)}catch(Re){}else return}for(qe in Ue)_e=re[qe],_e&&(!_e[Qe]||at)&&se(_e,Qe,ht)}};for(Ve in Ue)it=re[Ve],Le=it&&it.prototype,Le?ie(Le,Ee,it):Ge=!1;for(Ve in tt)it=re[Ve],Le=it&&it.prototype,Le&&ie(Le,Ee,it);if((!Ge||!oe(we)||we===Function.prototype)&&(we=function(){throw je("Incorrect invocation")},Ge))for(Ve in Ue)re[Ve]&&ge(re[Ve],we);if((!Ge||!Ce||Ce===Oe)&&(Ce=we.prototype,Ge))for(Ve in Ue)re[Ve]&&ge(re[Ve].prototype,Ce);if(Ge&&he(De)!==Ce&&ge(De,Ce),E&&!de(Ce,Fe)){Ke=!0,ue(Ce,Fe,{get:function(){return ee(this)?this[ke]:void 0}});for(Ve in Ue)re[Ve]&&ie(re[Ve],ke,Ve)}Pe.exports={NATIVE_ARRAY_BUFFER_VIEWS:Ge,TYPED_ARRAY_CONSTRUCTOR:Ee,TYPED_ARRAY_TAG:Ke&&ke,aTypedArray:Ze,aTypedArrayConstructor:Ye,exportTypedArrayMethod:Xe,exportTypedArrayStaticMethod:st,isView:nt,isTypedArray:et,TypedArray:we,TypedArrayPrototype:Ce}},{"../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,Pe,ye){"use strict";var z=y("../internals/global"),E=y("../internals/function-uncurry-this"),re=y("../internals/descriptors"),oe=y("../internals/array-buffer-native"),ee=y("../internals/function-name"),de=y("../internals/create-non-enumerable-property"),x=y("../internals/redefine-all"),ae=y("../internals/fails"),ie=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"),ge=y("../internals/object-get-prototype-of"),me=y("../internals/object-set-prototype-of"),xe=y("../internals/object-get-own-property-names").f,Ae=y("../internals/object-define-property").f,Ne=y("../internals/array-fill"),Be=y("../internals/array-slice-simple"),De=y("../internals/set-to-string-tag"),we=y("../internals/internal-state"),Ce=ee.PROPER,Oe=ee.CONFIGURABLE,je=we.get,Fe=we.set,ke="ArrayBuffer",Ee="DataView",Ge="prototype",Ke="Wrong length",Ve="Wrong index",it=z[ke],Le=it,Ue=Le&&Le[Ge],tt=z[Ee],nt=tt&&tt[Ge],et=Object.prototype,Ze=z.Array,Ye=z.RangeError,Xe=E(Ne),st=E([].reverse),Qe=he.pack,ht=he.unpack,at=function(ot){return[ot&255]},qe=function(ot){return[ot&255,ot>>8&255]},_e=function(ot){return[ot&255,ot>>8&255,ot>>16&255,ot>>24&255]},Re=function(ot){return ot[3]<<24|ot[2]<<16|ot[1]<<8|ot[0]},ne=function(ot){return Qe(ot,23,4)},fe=function(ot){return Qe(ot,52,8)},Me=function(ot,ft){Ae(ot[Ge],ft,{get:function(){return je(this)[ft]}})},He=function(ot,ft,ut,lt){var At=pe(ut),yt=je(ot);if(At+ft>yt.byteLength)throw Ye(Ve);var Rt=je(yt.buffer).bytes,Pt=At+yt.byteOffset,Tt=Be(Rt,Pt,Pt+ft);return lt?Tt:st(Tt)},be=function(ot,ft,ut,lt,At,yt){var Rt=pe(ut),Pt=je(ot);if(Rt+ft>Pt.byteLength)throw Ye(Ve);for(var Tt=je(Pt.buffer).bytes,kt=Rt+Pt.byteOffset,Dt=lt(+At),gt=0;gt<ft;gt++)Tt[kt+gt]=Dt[yt?gt:ft-gt-1]};if(!oe)Le=function(ft){ie(this,Ue);var ut=pe(ft);Fe(this,{bytes:Xe(Ze(ut),0),byteLength:ut}),re||(this.byteLength=ut)},Ue=Le[Ge],tt=function(ft,ut,lt){ie(this,nt),ie(ft,Ue);var At=je(ft).byteLength,yt=se(ut);if(yt<0||yt>At)throw Ye("Wrong offset");if(lt=lt===void 0?At-yt:ue(lt),yt+lt>At)throw Ye(Ke);Fe(this,{buffer:ft,byteLength:lt,byteOffset:yt}),re||(this.buffer=ft,this.byteLength=lt,this.byteOffset=yt)},nt=tt[Ge],re&&(Me(Le,"byteLength"),Me(tt,"buffer"),Me(tt,"byteLength"),Me(tt,"byteOffset")),x(nt,{getInt8:function(ft){return He(this,1,ft)[0]<<24>>24},getUint8:function(ft){return He(this,1,ft)[0]},getInt16:function(ft){var ut=He(this,2,ft,arguments.length>1?arguments[1]:void 0);return(ut[1]<<8|ut[0])<<16>>16},getUint16:function(ft){var ut=He(this,2,ft,arguments.length>1?arguments[1]:void 0);return ut[1]<<8|ut[0]},getInt32:function(ft){return Re(He(this,4,ft,arguments.length>1?arguments[1]:void 0))},getUint32:function(ft){return Re(He(this,4,ft,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(ft){return ht(He(this,4,ft,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(ft){return ht(He(this,8,ft,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(ft,ut){be(this,1,ft,at,ut)},setUint8:function(ft,ut){be(this,1,ft,at,ut)},setInt16:function(ft,ut){be(this,2,ft,qe,ut,arguments.length>2?arguments[2]:void 0)},setUint16:function(ft,ut){be(this,2,ft,qe,ut,arguments.length>2?arguments[2]:void 0)},setInt32:function(ft,ut){be(this,4,ft,_e,ut,arguments.length>2?arguments[2]:void 0)},setUint32:function(ft,ut){be(this,4,ft,_e,ut,arguments.length>2?arguments[2]:void 0)},setFloat32:function(ft,ut){be(this,4,ft,ne,ut,arguments.length>2?arguments[2]:void 0)},setFloat64:function(ft,ut){be(this,8,ft,fe,ut,arguments.length>2?arguments[2]:void 0)}});else{var ve=Ce&&it.name!==ke;if(!ae(function(){it(1)})||!ae(function(){new it(-1)})||ae(function(){return new it,new it(1.5),new it(NaN),ve&&!Oe})){Le=function(ft){return ie(this,Ue),new it(pe(ft))},Le[Ge]=Ue;for(var Ie=xe(it),$e=0,We;Ie.length>$e;)(We=Ie[$e++])in Le||de(Le,We,it[We]);Ue.constructor=Le}else ve&&Oe&&de(it,"name",ke);me&&ge(nt)!==et&&me(nt,et);var Je=new tt(new Le(2)),ct=E(nt.setInt8);Je.setInt8(0,2147483648),Je.setInt8(1,2147483649),(Je.getInt8(0)||!Je.getInt8(1))&&x(nt,{setInt8:function(ft,ut){ct(this,ft,ut<<24>>24)},setUint8:function(ft,ut){ct(this,ft,ut<<24>>24)}},{unsafe:!0})}De(Le,ke),De(tt,Ee),Pe.exports={ArrayBuffer:Le,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,Pe,ye){"use strict";var z=y("../internals/to-object"),E=y("../internals/to-absolute-index"),re=y("../internals/length-of-array-like"),oe=Math.min;Pe.exports=[].copyWithin||function(de,x){var ae=z(this),ie=re(ae),se=E(de,ie),ue=E(x,ie),pe=arguments.length>2?arguments[2]:void 0,he=oe((pe===void 0?ie:E(pe,ie))-ue,ie-se),ge=1;for(ue<se&&se<ue+he&&(ge=-1,ue+=he-1,se+=he-1);he-- >0;)ue in ae?ae[se]=ae[ue]:delete ae[se],se+=ge,ue+=ge;return ae}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(y,Pe,ye){"use strict";var z=y("../internals/to-object"),E=y("../internals/to-absolute-index"),re=y("../internals/length-of-array-like");Pe.exports=function(ee){for(var de=z(this),x=re(de),ae=arguments.length,ie=E(ae>1?arguments[1]:void 0,x),se=ae>2?arguments[2]:void 0,ue=se===void 0?x:E(se,x);ue>ie;)de[ie++]=ee;return de}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(y,Pe,ye){"use strict";var z=y("../internals/array-iteration").forEach,E=y("../internals/array-method-is-strict"),re=E("forEach");Pe.exports=re?[].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,Pe,ye){var z=y("../internals/length-of-array-like");Pe.exports=function(E,re){for(var oe=0,ee=z(re),de=new E(ee);ee>oe;)de[oe]=re[oe++];return de}},{"../internals/length-of-array-like":188}],109:[function(y,Pe,ye){"use strict";var z=y("../internals/global"),E=y("../internals/function-bind-context"),re=y("../internals/function-call"),oe=y("../internals/to-object"),ee=y("../internals/call-with-safe-iteration-closing"),de=y("../internals/is-array-iterator-method"),x=y("../internals/is-constructor"),ae=y("../internals/length-of-array-like"),ie=y("../internals/create-property"),se=y("../internals/get-iterator"),ue=y("../internals/get-iterator-method"),pe=z.Array;Pe.exports=function(ge){var me=oe(ge),xe=x(this),Ae=arguments.length,Ne=Ae>1?arguments[1]:void 0,Be=Ne!==void 0;Be&&(Ne=E(Ne,Ae>2?arguments[2]:void 0));var De=ue(me),we=0,Ce,Oe,je,Fe,ke,Ee;if(De&&!(this==pe&&de(De)))for(Fe=se(me,De),ke=Fe.next,Oe=xe?new this:[];!(je=re(ke,Fe)).done;we++)Ee=Be?ee(Fe,Ne,[je.value,we],!0):je.value,ie(Oe,we,Ee);else for(Ce=ae(me),Oe=xe?new this(Ce):pe(Ce);Ce>we;we++)Ee=Be?Ne(me[we],we):me[we],ie(Oe,we,Ee);return Oe.length=we,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,Pe,ye){var z=y("../internals/to-indexed-object"),E=y("../internals/to-absolute-index"),re=y("../internals/length-of-array-like"),oe=function(ee){return function(de,x,ae){var ie=z(de),se=re(ie),ue=E(ae,se),pe;if(ee&&x!=x){for(;se>ue;)if(pe=ie[ue++],pe!=pe)return!0}else for(;se>ue;ue++)if((ee||ue in ie)&&ie[ue]===x)return ee||ue||0;return!ee&&-1}};Pe.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,Pe,ye){var z=y("../internals/function-bind-context"),E=y("../internals/function-uncurry-this"),re=y("../internals/indexed-object"),oe=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),de=y("../internals/array-species-create"),x=E([].push),ae=function(ie){var se=ie==1,ue=ie==2,pe=ie==3,he=ie==4,ge=ie==6,me=ie==7,xe=ie==5||ge;return function(Ae,Ne,Be,De){for(var we=oe(Ae),Ce=re(we),Oe=z(Ne,Be),je=ee(Ce),Fe=0,ke=De||de,Ee=se?ke(Ae,je):ue||me?ke(Ae,0):void 0,Ge,Ke;je>Fe;Fe++)if((xe||Fe in Ce)&&(Ge=Ce[Fe],Ke=Oe(Ge,Fe,we),ie))if(se)Ee[Fe]=Ke;else if(Ke)switch(ie){case 3:return!0;case 5:return Ge;case 6:return Fe;case 2:x(Ee,Ge)}else switch(ie){case 4:return!1;case 7:x(Ee,Ge)}return ge?-1:pe||he?he:Ee}};Pe.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,Pe,ye){"use strict";var z=y("../internals/function-apply"),E=y("../internals/to-indexed-object"),re=y("../internals/to-integer-or-infinity"),oe=y("../internals/length-of-array-like"),ee=y("../internals/array-method-is-strict"),de=Math.min,x=[].lastIndexOf,ae=!!x&&1/[1].lastIndexOf(1,-0)<0,ie=ee("lastIndexOf"),se=ae||!ie;Pe.exports=se?function(pe){if(ae)return z(x,this,arguments)||0;var he=E(this),ge=oe(he),me=ge-1;for(arguments.length>1&&(me=de(me,re(arguments[1]))),me<0&&(me=ge+me);me>=0;me--)if(me in he&&he[me]===pe)return me||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,Pe,ye){var z=y("../internals/fails"),E=y("../internals/well-known-symbol"),re=y("../internals/engine-v8-version"),oe=E("species");Pe.exports=function(ee){return re>=51||!z(function(){var de=[],x=de.constructor={};return x[oe]=function(){return{foo:1}},de[ee](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(y,Pe,ye){"use strict";var z=y("../internals/fails");Pe.exports=function(E,re){var oe=[][E];return!!oe&&z(function(){oe.call(null,re||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/a-callable"),re=y("../internals/to-object"),oe=y("../internals/indexed-object"),ee=y("../internals/length-of-array-like"),de=z.TypeError,x=function(ae){return function(ie,se,ue,pe){E(se);var he=re(ie),ge=oe(he),me=ee(he),xe=ae?me-1:0,Ae=ae?-1:1;if(ue<2)for(;;){if(xe in ge){pe=ge[xe],xe+=Ae;break}if(xe+=Ae,ae?xe<0:me<=xe)throw de("Reduce of empty array with no initial value")}for(;ae?xe>=0:me>xe;xe+=Ae)xe in ge&&(pe=se(pe,ge[xe],xe,he));return pe}};Pe.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,Pe,ye){var z=y("../internals/global"),E=y("../internals/to-absolute-index"),re=y("../internals/length-of-array-like"),oe=y("../internals/create-property"),ee=z.Array,de=Math.max;Pe.exports=function(x,ae,ie){for(var se=re(x),ue=E(ae,se),pe=E(ie===void 0?se:ie,se),he=ee(de(pe-ue,0)),ge=0;ue<pe;ue++,ge++)oe(he,ge,x[ue]);return he.length=ge,he}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(y,Pe,ye){var z=y("../internals/function-uncurry-this");Pe.exports=z([].slice)},{"../internals/function-uncurry-this":157}],118:[function(y,Pe,ye){var z=y("../internals/array-slice-simple"),E=Math.floor,re=function(de,x){var ae=de.length,ie=E(ae/2);return ae<8?oe(de,x):ee(de,re(z(de,0,ie),x),re(z(de,ie),x),x)},oe=function(de,x){for(var ae=de.length,ie=1,se,ue;ie<ae;){for(ue=ie,se=de[ie];ue&&x(de[ue-1],se)>0;)de[ue]=de[--ue];ue!==ie++&&(de[ue]=se)}return de},ee=function(de,x,ae,ie){for(var se=x.length,ue=ae.length,pe=0,he=0;pe<se||he<ue;)de[pe+he]=pe<se&&he<ue?ie(x[pe],ae[he])<=0?x[pe++]:ae[he++]:pe<se?x[pe++]:ae[he++];return de};Pe.exports=re},{"../internals/array-slice-simple":116}],119:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/is-array"),re=y("../internals/is-constructor"),oe=y("../internals/is-object"),ee=y("../internals/well-known-symbol"),de=ee("species"),x=z.Array;Pe.exports=function(ae){var ie;return E(ae)&&(ie=ae.constructor,re(ie)&&(ie===x||E(ie.prototype))?ie=void 0:oe(ie)&&(ie=ie[de],ie===null&&(ie=void 0))),ie===void 0?x:ie}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(y,Pe,ye){var z=y("../internals/array-species-constructor");Pe.exports=function(E,re){return new(z(E))(re===0?0:re)}},{"../internals/array-species-constructor":119}],121:[function(y,Pe,ye){var z=y("../internals/an-object"),E=y("../internals/iterator-close");Pe.exports=function(re,oe,ee,de){try{return de?oe(z(ee)[0],ee[1]):oe(ee)}catch(x){E(re,"throw",x)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(y,Pe,ye){var z=y("../internals/well-known-symbol"),E=z("iterator"),re=!1;try{var oe=0,ee={next:function(){return{done:!!oe++}},return:function(){re=!0}};ee[E]=function(){return this},Array.from(ee,function(){throw 2})}catch(de){}Pe.exports=function(de,x){if(!x&&!re)return!1;var ae=!1;try{var ie={};ie[E]=function(){return{next:function(){return{done:ae=!0}}}},de(ie)}catch(se){}return ae}},{"../internals/well-known-symbol":268}],123:[function(y,Pe,ye){var z=y("../internals/function-uncurry-this"),E=z({}.toString),re=z("".slice);Pe.exports=function(oe){return re(E(oe),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/to-string-tag-support"),re=y("../internals/is-callable"),oe=y("../internals/classof-raw"),ee=y("../internals/well-known-symbol"),de=ee("toStringTag"),x=z.Object,ae=oe(function(){return arguments}())=="Arguments",ie=function(se,ue){try{return se[ue]}catch(pe){}};Pe.exports=E?oe:function(se){var ue,pe,he;return se===void 0?"Undefined":se===null?"Null":typeof(pe=ie(ue=x(se),de))=="string"?pe:ae?oe(ue):(he=oe(ue))=="Object"&&re(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,Pe,ye){var z=y("../internals/has-own-property"),E=y("../internals/own-keys"),re=y("../internals/object-get-own-property-descriptor"),oe=y("../internals/object-define-property");Pe.exports=function(ee,de,x){for(var ae=E(de),ie=oe.f,se=re.f,ue=0;ue<ae.length;ue++){var pe=ae[ue];!z(ee,pe)&&!(x&&z(x,pe))&&ie(ee,pe,se(de,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,Pe,ye){var z=y("../internals/well-known-symbol"),E=z("match");Pe.exports=function(re){var oe=/./;try{"/./"[re](oe)}catch(ee){try{return oe[E]=!1,"/./"[re](oe)}catch(de){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(y,Pe,ye){var z=y("../internals/fails");Pe.exports=!z(function(){function E(){}return E.prototype.constructor=null,Object.getPrototypeOf(new E)!==E.prototype})},{"../internals/fails":150}],128:[function(y,Pe,ye){"use strict";var z=y("../internals/iterators-core").IteratorPrototype,E=y("../internals/object-create"),re=y("../internals/create-property-descriptor"),oe=y("../internals/set-to-string-tag"),ee=y("../internals/iterators"),de=function(){return this};Pe.exports=function(x,ae,ie,se){var ue=ae+" Iterator";return x.prototype=E(z,{next:re(+!se,ie)}),oe(x,ue,!1,!0),ee[ue]=de,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,Pe,ye){var z=y("../internals/descriptors"),E=y("../internals/object-define-property"),re=y("../internals/create-property-descriptor");Pe.exports=z?function(oe,ee,de){return E.f(oe,ee,re(1,de))}:function(oe,ee,de){return oe[ee]=de,oe}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(y,Pe,ye){Pe.exports=function(z,E){return{enumerable:!(z&1),configurable:!(z&2),writable:!(z&4),value:E}}},{}],131:[function(y,Pe,ye){"use strict";var z=y("../internals/to-property-key"),E=y("../internals/object-define-property"),re=y("../internals/create-property-descriptor");Pe.exports=function(oe,ee,de){var x=z(ee);x in oe?E.f(oe,x,re(0,de)):oe[x]=de}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(y,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/function-call"),re=y("../internals/is-pure"),oe=y("../internals/function-name"),ee=y("../internals/is-callable"),de=y("../internals/create-iterator-constructor"),x=y("../internals/object-get-prototype-of"),ae=y("../internals/object-set-prototype-of"),ie=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"),ge=y("../internals/iterators-core"),me=oe.PROPER,xe=oe.CONFIGURABLE,Ae=ge.IteratorPrototype,Ne=ge.BUGGY_SAFARI_ITERATORS,Be=pe("iterator"),De="keys",we="values",Ce="entries",Oe=function(){return this};Pe.exports=function(je,Fe,ke,Ee,Ge,Ke,Ve){de(ke,Fe,Ee);var it=function(Qe){if(Qe===Ge&&et)return et;if(!Ne&&Qe in tt)return tt[Qe];switch(Qe){case De:return function(){return new ke(this,Qe)};case we:return function(){return new ke(this,Qe)};case Ce:return function(){return new ke(this,Qe)}}return function(){return new ke(this)}},Le=Fe+" Iterator",Ue=!1,tt=je.prototype,nt=tt[Be]||tt["@@iterator"]||Ge&&tt[Ge],et=!Ne&&nt||it(Ge),Ze=Fe=="Array"&&tt.entries||nt,Ye,Xe,st;if(Ze&&(Ye=x(Ze.call(new je)),Ye!==Object.prototype&&Ye.next&&(!re&&x(Ye)!==Ae&&(ae?ae(Ye,Ae):ee(Ye[Be])||ue(Ye,Be,Oe)),ie(Ye,Le,!0,!0),re&&(he[Le]=Oe))),me&&Ge==we&&nt&&nt.name!==we&&(!re&&xe?se(tt,"name",we):(Ue=!0,et=function(){return E(nt,this)})),Ge)if(Xe={values:it(we),keys:Ke?et:it(De),entries:it(Ce)},Ve)for(st in Xe)(Ne||Ue||!(st in tt))&&ue(tt,st,Xe[st]);else z({target:Fe,proto:!0,forced:Ne||Ue},Xe);return(!re||Ve)&&tt[Be]!==et&&ue(tt,Be,et,{name:Ge}),he[Fe]=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,Pe,ye){var z=y("../internals/path"),E=y("../internals/has-own-property"),re=y("../internals/well-known-symbol-wrapped"),oe=y("../internals/object-define-property").f;Pe.exports=function(ee){var de=z.Symbol||(z.Symbol={});E(de,ee)||oe(de,ee,{value:re.f(ee)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(y,Pe,ye){var z=y("../internals/fails");Pe.exports=!z(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/is-object"),re=z.document,oe=E(re)&&E(re.createElement);Pe.exports=function(ee){return oe?re.createElement(ee):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(y,Pe,ye){Pe.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,Pe,ye){var z=y("../internals/document-create-element"),E=z("span").classList,re=E&&E.constructor&&E.constructor.prototype;Pe.exports=re===Object.prototype?void 0:re},{"../internals/document-create-element":135}],138:[function(y,Pe,ye){var z=y("../internals/engine-user-agent"),E=z.match(/firefox\/(\d+)/i);Pe.exports=!!E&&+E[1]},{"../internals/engine-user-agent":145}],139:[function(y,Pe,ye){Pe.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(y,Pe,ye){var z=y("../internals/engine-user-agent");Pe.exports=/MSIE|Trident/.test(z)},{"../internals/engine-user-agent":145}],141:[function(y,Pe,ye){var z=y("../internals/engine-user-agent"),E=y("../internals/global");Pe.exports=/ipad|iphone|ipod/i.test(z)&&E.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(y,Pe,ye){var z=y("../internals/engine-user-agent");Pe.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(z)},{"../internals/engine-user-agent":145}],143:[function(y,Pe,ye){var z=y("../internals/classof-raw"),E=y("../internals/global");Pe.exports=z(E.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(y,Pe,ye){var z=y("../internals/engine-user-agent");Pe.exports=/web0s(?!.*chrome)/i.test(z)},{"../internals/engine-user-agent":145}],145:[function(y,Pe,ye){var z=y("../internals/get-built-in");Pe.exports=z("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/engine-user-agent"),re=z.process,oe=z.Deno,ee=re&&re.versions||oe&&oe.version,de=ee&&ee.v8,x,ae;de&&(x=de.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]))),Pe.exports=ae},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(y,Pe,ye){var z=y("../internals/engine-user-agent"),E=z.match(/AppleWebKit\/(\d+)\./);Pe.exports=!!E&&+E[1]},{"../internals/engine-user-agent":145}],148:[function(y,Pe,ye){Pe.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/object-get-own-property-descriptor").f,re=y("../internals/create-non-enumerable-property"),oe=y("../internals/redefine"),ee=y("../internals/set-global"),de=y("../internals/copy-constructor-properties"),x=y("../internals/is-forced");Pe.exports=function(ae,ie){var se=ae.target,ue=ae.global,pe=ae.stat,he,ge,me,xe,Ae,Ne;if(ue?ge=z:pe?ge=z[se]||ee(se,{}):ge=(z[se]||{}).prototype,ge)for(me in ie){if(Ae=ie[me],ae.noTargetGet?(Ne=E(ge,me),xe=Ne&&Ne.value):xe=ge[me],he=x(ue?me:se+(pe?".":"#")+me,ae.forced),!he&&xe!==void 0){if(typeof Ae==typeof xe)continue;de(Ae,xe)}(ae.sham||xe&&xe.sham)&&re(Ae,"sham",!0),oe(ge,me,Ae,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,Pe,ye){Pe.exports=function(z){try{return!!z()}catch(E){return!0}}},{}],151:[function(y,Pe,ye){"use strict";y("../modules/es.regexp.exec");var z=y("../internals/function-uncurry-this"),E=y("../internals/redefine"),re=y("../internals/regexp-exec"),oe=y("../internals/fails"),ee=y("../internals/well-known-symbol"),de=y("../internals/create-non-enumerable-property"),x=ee("species"),ae=RegExp.prototype;Pe.exports=function(ie,se,ue,pe){var he=ee(ie),ge=!oe(function(){var Ne={};return Ne[he]=function(){return 7},""[ie](Ne)!=7}),me=ge&&!oe(function(){var Ne=!1,Be=/a/;return ie==="split"&&(Be={},Be.constructor={},Be.constructor[x]=function(){return Be},Be.flags="",Be[he]=/./[he]),Be.exec=function(){return Ne=!0,null},Be[he](""),!Ne});if(!ge||!me||ue){var xe=z(/./[he]),Ae=se(he,""[ie],function(Ne,Be,De,we,Ce){var Oe=z(Ne),je=Be.exec;return je===re||je===ae.exec?ge&&!Ce?{done:!0,value:xe(Be,De,we)}:{done:!0,value:Oe(De,Be,we)}:{done:!1}});E(String.prototype,ie,Ae[0]),E(ae,he,Ae[1])}pe&&de(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,Pe,ye){var z=y("../internals/function-bind-native"),E=Function.prototype,re=E.apply,oe=E.call;Pe.exports=typeof Reflect=="object"&&Reflect.apply||(z?oe.bind(re):function(){return oe.apply(re,arguments)})},{"../internals/function-bind-native":154}],153:[function(y,Pe,ye){var z=y("../internals/function-uncurry-this"),E=y("../internals/a-callable"),re=y("../internals/function-bind-native"),oe=z(z.bind);Pe.exports=function(ee,de){return E(ee),de===void 0?ee:re?oe(ee,de):function(){return ee.apply(de,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(y,Pe,ye){var z=y("../internals/fails");Pe.exports=!z(function(){var E=function(){}.bind();return typeof E!="function"||E.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(y,Pe,ye){var z=y("../internals/function-bind-native"),E=Function.prototype.call;Pe.exports=z?E.bind(E):function(){return E.apply(E,arguments)}},{"../internals/function-bind-native":154}],156:[function(y,Pe,ye){var z=y("../internals/descriptors"),E=y("../internals/has-own-property"),re=Function.prototype,oe=z&&Object.getOwnPropertyDescriptor,ee=E(re,"name"),de=ee&&function(){}.name==="something",x=ee&&(!z||z&&oe(re,"name").configurable);Pe.exports={EXISTS:ee,PROPER:de,CONFIGURABLE:x}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(y,Pe,ye){var z=y("../internals/function-bind-native"),E=Function.prototype,re=E.bind,oe=E.call,ee=z&&re.bind(oe,oe);Pe.exports=z?function(de){return de&&ee(de)}:function(de){return de&&function(){return oe.apply(de,arguments)}}},{"../internals/function-bind-native":154}],158:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/is-callable"),re=function(oe){return E(oe)?oe:void 0};Pe.exports=function(oe,ee){return arguments.length<2?re(z[oe]):z[oe]&&z[oe][ee]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(y,Pe,ye){var z=y("../internals/classof"),E=y("../internals/get-method"),re=y("../internals/iterators"),oe=y("../internals/well-known-symbol"),ee=oe("iterator");Pe.exports=function(de){if(de!=null)return E(de,ee)||E(de,"@@iterator")||re[z(de)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/function-call"),re=y("../internals/a-callable"),oe=y("../internals/an-object"),ee=y("../internals/try-to-string"),de=y("../internals/get-iterator-method"),x=z.TypeError;Pe.exports=function(ae,ie){var se=arguments.length<2?de(ae):ie;if(re(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,Pe,ye){var z=y("../internals/a-callable");Pe.exports=function(E,re){var oe=E[re];return oe==null?void 0:z(oe)}},{"../internals/a-callable":95}],162:[function(y,Pe,ye){var z=y("../internals/function-uncurry-this"),E=y("../internals/to-object"),re=Math.floor,oe=z("".charAt),ee=z("".replace),de=z("".slice),x=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ae=/\$([$&'`]|\d{1,2})/g;Pe.exports=function(ie,se,ue,pe,he,ge){var me=ue+ie.length,xe=pe.length,Ae=ae;return he!==void 0&&(he=E(he),Ae=x),ee(ge,Ae,function(Ne,Be){var De;switch(oe(Be,0)){case"$":return"$";case"&":return ie;case"`":return de(se,0,ue);case"'":return de(se,me);case"<":De=he[de(Be,1,-1)];break;default:var we=+Be;if(we===0)return Ne;if(we>xe){var Ce=re(we/10);return Ce===0?Ne:Ce<=xe?pe[Ce-1]===void 0?oe(Be,1):pe[Ce-1]+oe(Be,1):Ne}De=pe[we-1]}return De===void 0?"":De})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(y,Pe,ye){(function(z){(function(){var E=function(re){return re&&re.Math==Math&&re};Pe.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,Pe,ye){var z=y("../internals/function-uncurry-this"),E=y("../internals/to-object"),re=z({}.hasOwnProperty);Pe.exports=Object.hasOwn||function(ee,de){return re(E(ee),de)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(y,Pe,ye){Pe.exports={}},{}],166:[function(y,Pe,ye){var z=y("../internals/global");Pe.exports=function(E,re){var oe=z.console;oe&&oe.error&&(arguments.length==1?oe.error(E):oe.error(E,re))}},{"../internals/global":163}],167:[function(y,Pe,ye){var z=y("../internals/get-built-in");Pe.exports=z("document","documentElement")},{"../internals/get-built-in":158}],168:[function(y,Pe,ye){var z=y("../internals/descriptors"),E=y("../internals/fails"),re=y("../internals/document-create-element");Pe.exports=!z&&!E(function(){return Object.defineProperty(re("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(y,Pe,ye){var z=y("../internals/global"),E=z.Array,re=Math.abs,oe=Math.pow,ee=Math.floor,de=Math.log,x=Math.LN2,ae=function(se,ue,pe){var he=E(pe),ge=pe*8-ue-1,me=(1<<ge)-1,xe=me>>1,Ae=ue===23?oe(2,-24)-oe(2,-77):0,Ne=se<0||se===0&&1/se<0?1:0,Be=0,De,we,Ce;for(se=re(se),se!=se||se===1/0?(we=se!=se?1:0,De=me):(De=ee(de(se)/x),Ce=oe(2,-De),se*Ce<1&&(De--,Ce*=2),De+xe>=1?se+=Ae/Ce:se+=Ae*oe(2,1-xe),se*Ce>=2&&(De++,Ce/=2),De+xe>=me?(we=0,De=me):De+xe>=1?(we=(se*Ce-1)*oe(2,ue),De=De+xe):(we=se*oe(2,xe-1)*oe(2,ue),De=0));ue>=8;)he[Be++]=we&255,we/=256,ue-=8;for(De=De<<ue|we,ge+=ue;ge>0;)he[Be++]=De&255,De/=256,ge-=8;return he[--Be]|=Ne*128,he},ie=function(se,ue){var pe=se.length,he=pe*8-ue-1,ge=(1<<he)-1,me=ge>>1,xe=he-7,Ae=pe-1,Ne=se[Ae--],Be=Ne&127,De;for(Ne>>=7;xe>0;)Be=Be*256+se[Ae--],xe-=8;for(De=Be&(1<<-xe)-1,Be>>=-xe,xe+=ue;xe>0;)De=De*256+se[Ae--],xe-=8;if(Be===0)Be=1-me;else{if(Be===ge)return De?NaN:Ne?-1/0:1/0;De=De+oe(2,ue),Be=Be-me}return(Ne?-1:1)*De*oe(2,Be-ue)};Pe.exports={pack:ae,unpack:ie}},{"../internals/global":163}],170:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/function-uncurry-this"),re=y("../internals/fails"),oe=y("../internals/classof-raw"),ee=z.Object,de=E("".split);Pe.exports=re(function(){return!ee("z").propertyIsEnumerable(0)})?function(x){return oe(x)=="String"?de(x,""):ee(x)}:ee},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(y,Pe,ye){var z=y("../internals/is-callable"),E=y("../internals/is-object"),re=y("../internals/object-set-prototype-of");Pe.exports=function(oe,ee,de){var x,ae;return re&&z(x=ee.constructor)&&x!==de&&E(ae=x.prototype)&&ae!==de.prototype&&re(oe,ae),oe}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(y,Pe,ye){var z=y("../internals/function-uncurry-this"),E=y("../internals/is-callable"),re=y("../internals/shared-store"),oe=z(Function.toString);E(re.inspectSource)||(re.inspectSource=function(ee){return oe(ee)}),Pe.exports=re.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(y,Pe,ye){var z=y("../internals/native-weak-map"),E=y("../internals/global"),re=y("../internals/function-uncurry-this"),oe=y("../internals/is-object"),ee=y("../internals/create-non-enumerable-property"),de=y("../internals/has-own-property"),x=y("../internals/shared-store"),ae=y("../internals/shared-key"),ie=y("../internals/hidden-keys"),se="Object already initialized",ue=E.TypeError,pe=E.WeakMap,he,ge,me,xe=function(Oe){return me(Oe)?ge(Oe):he(Oe,{})},Ae=function(Oe){return function(je){var Fe;if(!oe(je)||(Fe=ge(je)).type!==Oe)throw ue("Incompatible receiver, "+Oe+" required");return Fe}};if(z||x.state){var Ne=x.state||(x.state=new pe),Be=re(Ne.get),De=re(Ne.has),we=re(Ne.set);he=function(Oe,je){if(De(Ne,Oe))throw new ue(se);return je.facade=Oe,we(Ne,Oe,je),je},ge=function(Oe){return Be(Ne,Oe)||{}},me=function(Oe){return De(Ne,Oe)}}else{var Ce=ae("state");ie[Ce]=!0,he=function(Oe,je){if(de(Oe,Ce))throw new ue(se);return je.facade=Oe,ee(Oe,Ce,je),je},ge=function(Oe){return de(Oe,Ce)?Oe[Ce]:{}},me=function(Oe){return de(Oe,Ce)}}Pe.exports={set:he,get:ge,has:me,enforce:xe,getterFor:Ae}},{"../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,Pe,ye){var z=y("../internals/well-known-symbol"),E=y("../internals/iterators"),re=z("iterator"),oe=Array.prototype;Pe.exports=function(ee){return ee!==void 0&&(E.Array===ee||oe[re]===ee)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(y,Pe,ye){var z=y("../internals/classof-raw");Pe.exports=Array.isArray||function(re){return z(re)=="Array"}},{"../internals/classof-raw":123}],176:[function(y,Pe,ye){Pe.exports=function(z){return typeof z=="function"}},{}],177:[function(y,Pe,ye){var z=y("../internals/function-uncurry-this"),E=y("../internals/fails"),re=y("../internals/is-callable"),oe=y("../internals/classof"),ee=y("../internals/get-built-in"),de=y("../internals/inspect-source"),x=function(){},ae=[],ie=ee("Reflect","construct"),se=/^\s*(?:class|function)\b/,ue=z(se.exec),pe=!se.exec(x),he=function(xe){if(!re(xe))return!1;try{return ie(x,ae,xe),!0}catch(Ae){return!1}},ge=function(xe){if(!re(xe))return!1;switch(oe(xe)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return pe||!!ue(se,de(xe))}catch(Ae){return!0}};ge.sham=!0,Pe.exports=!ie||E(function(){var me;return he(he.call)||!he(Object)||!he(function(){me=!0})||me})?ge: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,Pe,ye){var z=y("../internals/fails"),E=y("../internals/is-callable"),re=/#|\.prototype\./,oe=function(ie,se){var ue=de[ee(ie)];return ue==ae?!0:ue==x?!1:E(se)?z(se):!!se},ee=oe.normalize=function(ie){return String(ie).replace(re,".").toLowerCase()},de=oe.data={},x=oe.NATIVE="N",ae=oe.POLYFILL="P";Pe.exports=oe},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(y,Pe,ye){var z=y("../internals/is-object"),E=Math.floor;Pe.exports=Number.isInteger||function(oe){return!z(oe)&&isFinite(oe)&&E(oe)===oe}},{"../internals/is-object":180}],180:[function(y,Pe,ye){var z=y("../internals/is-callable");Pe.exports=function(E){return typeof E=="object"?E!==null:z(E)}},{"../internals/is-callable":176}],181:[function(y,Pe,ye){Pe.exports=!1},{}],182:[function(y,Pe,ye){var z=y("../internals/is-object"),E=y("../internals/classof-raw"),re=y("../internals/well-known-symbol"),oe=re("match");Pe.exports=function(ee){var de;return z(ee)&&((de=ee[oe])!==void 0?!!de:E(ee)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/get-built-in"),re=y("../internals/is-callable"),oe=y("../internals/object-is-prototype-of"),ee=y("../internals/use-symbol-as-uid"),de=z.Object;Pe.exports=ee?function(x){return typeof x=="symbol"}:function(x){var ae=E("Symbol");return re(ae)&&oe(ae.prototype,de(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,Pe,ye){var z=y("../internals/global"),E=y("../internals/function-bind-context"),re=y("../internals/function-call"),oe=y("../internals/an-object"),ee=y("../internals/try-to-string"),de=y("../internals/is-array-iterator-method"),x=y("../internals/length-of-array-like"),ae=y("../internals/object-is-prototype-of"),ie=y("../internals/get-iterator"),se=y("../internals/get-iterator-method"),ue=y("../internals/iterator-close"),pe=z.TypeError,he=function(me,xe){this.stopped=me,this.result=xe},ge=he.prototype;Pe.exports=function(me,xe,Ae){var Ne=Ae&&Ae.that,Be=!!(Ae&&Ae.AS_ENTRIES),De=!!(Ae&&Ae.IS_ITERATOR),we=!!(Ae&&Ae.INTERRUPTED),Ce=E(xe,Ne),Oe,je,Fe,ke,Ee,Ge,Ke,Ve=function(Le){return Oe&&ue(Oe,"normal",Le),new he(!0,Le)},it=function(Le){return Be?(oe(Le),we?Ce(Le[0],Le[1],Ve):Ce(Le[0],Le[1])):we?Ce(Le,Ve):Ce(Le)};if(De)Oe=me;else{if(je=se(me),!je)throw pe(ee(me)+" is not iterable");if(de(je)){for(Fe=0,ke=x(me);ke>Fe;Fe++)if(Ee=it(me[Fe]),Ee&&ae(ge,Ee))return Ee;return new he(!1)}Oe=ie(me,je)}for(Ge=Oe.next;!(Ke=re(Ge,Oe)).done;){try{Ee=it(Ke.value)}catch(Le){ue(Oe,"throw",Le)}if(typeof Ee=="object"&&Ee&&ae(ge,Ee))return Ee}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,Pe,ye){var z=y("../internals/function-call"),E=y("../internals/an-object"),re=y("../internals/get-method");Pe.exports=function(oe,ee,de){var x,ae;E(oe);try{if(x=re(oe,"return"),!x){if(ee==="throw")throw de;return de}x=z(x,oe)}catch(ie){ae=!0,x=ie}if(ee==="throw")throw de;if(ae)throw x;return E(x),de}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(y,Pe,ye){"use strict";var z=y("../internals/fails"),E=y("../internals/is-callable"),re=y("../internals/object-create"),oe=y("../internals/object-get-prototype-of"),ee=y("../internals/redefine"),de=y("../internals/well-known-symbol"),x=y("../internals/is-pure"),ae=de("iterator"),ie=!1,se,ue,pe;[].keys&&(pe=[].keys(),"next"in pe?(ue=oe(oe(pe)),ue!==Object.prototype&&(se=ue)):ie=!0);var he=se==null||z(function(){var ge={};return se[ae].call(ge)!==ge});he?se={}:x&&(se=re(se)),E(se[ae])||ee(se,ae,function(){return this}),Pe.exports={IteratorPrototype:se,BUGGY_SAFARI_ITERATORS:ie}},{"../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,Pe,ye){arguments[4][165][0].apply(ye,arguments)},{dup:165}],188:[function(y,Pe,ye){var z=y("../internals/to-length");Pe.exports=function(E){return z(E.length)}},{"../internals/to-length":249}],189:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/function-bind-context"),re=y("../internals/object-get-own-property-descriptor").f,oe=y("../internals/task").set,ee=y("../internals/engine-is-ios"),de=y("../internals/engine-is-ios-pebble"),x=y("../internals/engine-is-webos-webkit"),ae=y("../internals/engine-is-node"),ie=z.MutationObserver||z.WebKitMutationObserver,se=z.document,ue=z.process,pe=z.Promise,he=re(z,"queueMicrotask"),ge=he&&he.value,me,xe,Ae,Ne,Be,De,we,Ce;ge||(me=function(){var Oe,je;for(ae&&(Oe=ue.domain)&&Oe.exit();xe;){je=xe.fn,xe=xe.next;try{je()}catch(Fe){throw xe?Ne():Ae=void 0,Fe}}Ae=void 0,Oe&&Oe.enter()},!ee&&!ae&&!x&&ie&&se?(Be=!0,De=se.createTextNode(""),new ie(me).observe(De,{characterData:!0}),Ne=function(){De.data=Be=!Be}):!de&&pe&&pe.resolve?(we=pe.resolve(void 0),we.constructor=pe,Ce=E(we.then,we),Ne=function(){Ce(me)}):ae?Ne=function(){ue.nextTick(me)}:(oe=E(oe,z),Ne=function(){oe(me)})),Pe.exports=ge||function(Oe){var je={fn:Oe,next:void 0};Ae&&(Ae.next=je),xe||(xe=je,Ne()),Ae=je}},{"../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,Pe,ye){var z=y("../internals/native-symbol");Pe.exports=z&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(y,Pe,ye){var z=y("../internals/engine-v8-version"),E=y("../internals/fails");Pe.exports=!!Object.getOwnPropertySymbols&&!E(function(){var re=Symbol();return!String(re)||!(Object(re)instanceof Symbol)||!Symbol.sham&&z&&z<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/is-callable"),re=y("../internals/inspect-source"),oe=z.WeakMap;Pe.exports=E(oe)&&/native code/.test(re(oe))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(y,Pe,ye){"use strict";var z=y("../internals/a-callable"),E=function(re){var oe,ee;this.promise=new re(function(de,x){if(oe!==void 0||ee!==void 0)throw TypeError("Bad Promise constructor");oe=de,ee=x}),this.resolve=z(oe),this.reject=z(ee)};Pe.exports.f=function(re){return new E(re)}},{"../internals/a-callable":95}],194:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/is-regexp"),re=z.TypeError;Pe.exports=function(oe){if(E(oe))throw re("The method doesn't accept regular expressions");return oe}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(y,Pe,ye){"use strict";var z=y("../internals/descriptors"),E=y("../internals/function-uncurry-this"),re=y("../internals/function-call"),oe=y("../internals/fails"),ee=y("../internals/object-keys"),de=y("../internals/object-get-own-property-symbols"),x=y("../internals/object-property-is-enumerable"),ae=y("../internals/to-object"),ie=y("../internals/indexed-object"),se=Object.assign,ue=Object.defineProperty,pe=E([].concat);Pe.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={},ge={},me=Symbol(),xe="abcdefghijklmnopqrst";return he[me]=7,xe.split("").forEach(function(Ae){ge[Ae]=Ae}),se({},he)[me]!=7||ee(se({},ge)).join("")!=xe})?function(ge,me){for(var xe=ae(ge),Ae=arguments.length,Ne=1,Be=de.f,De=x.f;Ae>Ne;)for(var we=ie(arguments[Ne++]),Ce=Be?pe(ee(we),Be(we)):ee(we),Oe=Ce.length,je=0,Fe;Oe>je;)Fe=Ce[je++],(!z||re(De,we,Fe))&&(xe[Fe]=we[Fe]);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,Pe,ye){var z=y("../internals/an-object"),E=y("../internals/object-define-properties"),re=y("../internals/enum-bug-keys"),oe=y("../internals/hidden-keys"),ee=y("../internals/html"),de=y("../internals/document-create-element"),x=y("../internals/shared-key"),ae=">",ie="<",se="prototype",ue="script",pe=x("IE_PROTO"),he=function(){},ge=function(Be){return ie+ue+ae+Be+ie+"/"+ue+ae},me=function(Be){Be.write(ge("")),Be.close();var De=Be.parentWindow.Object;return Be=null,De},xe=function(){var Be=de("iframe"),De="java"+ue+":",we;return Be.style.display="none",ee.appendChild(Be),Be.src=String(De),we=Be.contentWindow.document,we.open(),we.write(ge("document.F=Object")),we.close(),we.F},Ae,Ne=function(){try{Ae=new ActiveXObject("htmlfile")}catch(De){}Ne=typeof document!="undefined"?document.domain&&Ae?me(Ae):xe():me(Ae);for(var Be=re.length;Be--;)delete Ne[se][re[Be]];return Ne()};oe[pe]=!0,Pe.exports=Object.create||function(De,we){var Ce;return De!==null?(he[se]=z(De),Ce=new he,he[se]=null,Ce[pe]=De):Ce=Ne(),we===void 0?Ce:E.f(Ce,we)}},{"../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,Pe,ye){var z=y("../internals/descriptors"),E=y("../internals/v8-prototype-define-bug"),re=y("../internals/object-define-property"),oe=y("../internals/an-object"),ee=y("../internals/to-indexed-object"),de=y("../internals/object-keys");ye.f=z&&!E?Object.defineProperties:function(ae,ie){oe(ae);for(var se=ee(ie),ue=de(ie),pe=ue.length,he=0,ge;pe>he;)re.f(ae,ge=ue[he++],se[ge]);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,Pe,ye){var z=y("../internals/global"),E=y("../internals/descriptors"),re=y("../internals/ie8-dom-define"),oe=y("../internals/v8-prototype-define-bug"),ee=y("../internals/an-object"),de=y("../internals/to-property-key"),x=z.TypeError,ae=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,se="enumerable",ue="configurable",pe="writable";ye.f=E?oe?function(ge,me,xe){if(ee(ge),me=de(me),ee(xe),typeof ge=="function"&&me==="prototype"&&"value"in xe&&pe in xe&&!xe[pe]){var Ae=ie(ge,me);Ae&&Ae[pe]&&(ge[me]=xe.value,xe={configurable:ue in xe?xe[ue]:Ae[ue],enumerable:se in xe?xe[se]:Ae[se],writable:!1})}return ae(ge,me,xe)}:ae:function(ge,me,xe){if(ee(ge),me=de(me),ee(xe),re)try{return ae(ge,me,xe)}catch(Ae){}if("get"in xe||"set"in xe)throw x("Accessors not supported");return"value"in xe&&(ge[me]=xe.value),ge}},{"../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,Pe,ye){var z=y("../internals/descriptors"),E=y("../internals/function-call"),re=y("../internals/object-property-is-enumerable"),oe=y("../internals/create-property-descriptor"),ee=y("../internals/to-indexed-object"),de=y("../internals/to-property-key"),x=y("../internals/has-own-property"),ae=y("../internals/ie8-dom-define"),ie=Object.getOwnPropertyDescriptor;ye.f=z?ie:function(ue,pe){if(ue=ee(ue),pe=de(pe),ae)try{return ie(ue,pe)}catch(he){}if(x(ue,pe))return oe(!E(re.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,Pe,ye){var z=y("../internals/classof-raw"),E=y("../internals/to-indexed-object"),re=y("../internals/object-get-own-property-names").f,oe=y("../internals/array-slice-simple"),ee=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],de=function(x){try{return re(x)}catch(ae){return oe(ee)}};Pe.exports.f=function(ae){return ee&&z(ae)=="Window"?de(ae):re(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,Pe,ye){var z=y("../internals/object-keys-internal"),E=y("../internals/enum-bug-keys"),re=E.concat("length","prototype");ye.f=Object.getOwnPropertyNames||function(ee){return z(ee,re)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(y,Pe,ye){ye.f=Object.getOwnPropertySymbols},{}],203:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/has-own-property"),re=y("../internals/is-callable"),oe=y("../internals/to-object"),ee=y("../internals/shared-key"),de=y("../internals/correct-prototype-getter"),x=ee("IE_PROTO"),ae=z.Object,ie=ae.prototype;Pe.exports=de?ae.getPrototypeOf:function(se){var ue=oe(se);if(E(ue,x))return ue[x];var pe=ue.constructor;return re(pe)&&ue instanceof pe?pe.prototype:ue instanceof ae?ie: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,Pe,ye){var z=y("../internals/function-uncurry-this");Pe.exports=z({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(y,Pe,ye){var z=y("../internals/function-uncurry-this"),E=y("../internals/has-own-property"),re=y("../internals/to-indexed-object"),oe=y("../internals/array-includes").indexOf,ee=y("../internals/hidden-keys"),de=z([].push);Pe.exports=function(x,ae){var ie=re(x),se=0,ue=[],pe;for(pe in ie)!E(ee,pe)&&E(ie,pe)&&de(ue,pe);for(;ae.length>se;)E(ie,pe=ae[se++])&&(~oe(ue,pe)||de(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,Pe,ye){var z=y("../internals/object-keys-internal"),E=y("../internals/enum-bug-keys");Pe.exports=Object.keys||function(oe){return z(oe,E)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(y,Pe,ye){"use strict";var z={}.propertyIsEnumerable,E=Object.getOwnPropertyDescriptor,re=E&&!z.call({1:2},1);ye.f=re?function(ee){var de=E(this,ee);return!!de&&de.enumerable}:z},{}],208:[function(y,Pe,ye){var z=y("../internals/function-uncurry-this"),E=y("../internals/an-object"),re=y("../internals/a-possible-prototype");Pe.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var oe=!1,ee={},de;try{de=z(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),de(ee,[]),oe=ee instanceof Array}catch(x){}return function(ae,ie){return E(ae),re(ie),oe?de(ae,ie):ae.__proto__=ie,ae}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(y,Pe,ye){var z=y("../internals/descriptors"),E=y("../internals/function-uncurry-this"),re=y("../internals/object-keys"),oe=y("../internals/to-indexed-object"),ee=y("../internals/object-property-is-enumerable").f,de=E(ee),x=E([].push),ae=function(ie){return function(se){for(var ue=oe(se),pe=re(ue),he=pe.length,ge=0,me=[],xe;he>ge;)xe=pe[ge++],(!z||de(ue,xe))&&x(me,ie?[xe,ue[xe]]:ue[xe]);return me}};Pe.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,Pe,ye){"use strict";var z=y("../internals/to-string-tag-support"),E=y("../internals/classof");Pe.exports=z?{}.toString:function(){return"[object "+E(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/function-call"),re=y("../internals/is-callable"),oe=y("../internals/is-object"),ee=z.TypeError;Pe.exports=function(de,x){var ae,ie;if(x==="string"&&re(ae=de.toString)&&!oe(ie=E(ae,de))||re(ae=de.valueOf)&&!oe(ie=E(ae,de))||x!=="string"&&re(ae=de.toString)&&!oe(ie=E(ae,de)))return ie;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,Pe,ye){var z=y("../internals/get-built-in"),E=y("../internals/function-uncurry-this"),re=y("../internals/object-get-own-property-names"),oe=y("../internals/object-get-own-property-symbols"),ee=y("../internals/an-object"),de=E([].concat);Pe.exports=z("Reflect","ownKeys")||function(ae){var ie=re.f(ee(ae)),se=oe.f;return se?de(ie,se(ae)):ie}},{"../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,Pe,ye){var z=y("../internals/global");Pe.exports=z},{"../internals/global":163}],214:[function(y,Pe,ye){Pe.exports=function(z){try{return{error:!1,value:z()}}catch(E){return{error:!0,value:E}}}},{}],215:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/promise-native-constructor"),re=y("../internals/is-callable"),oe=y("../internals/is-forced"),ee=y("../internals/inspect-source"),de=y("../internals/well-known-symbol"),x=y("../internals/engine-is-browser"),ae=y("../internals/is-pure"),ie=y("../internals/engine-v8-version"),se=E&&E.prototype,ue=de("species"),pe=!1,he=re(z.PromiseRejectionEvent),ge=oe("Promise",function(){var me=ee(E),xe=me!==String(E);if(!xe&&ie===66||ae&&!(se.catch&&se.finally))return!0;if(ie>=51&&/native code/.test(me))return!1;var Ae=new E(function(De){De(1)}),Ne=function(De){De(function(){},function(){})},Be=Ae.constructor={};return Be[ue]=Ne,pe=Ae.then(function(){})instanceof Ne,pe?!xe&&x&&!he:!0});Pe.exports={CONSTRUCTOR:ge,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,Pe,ye){var z=y("../internals/global");Pe.exports=z.Promise},{"../internals/global":163}],217:[function(y,Pe,ye){var z=y("../internals/an-object"),E=y("../internals/is-object"),re=y("../internals/new-promise-capability");Pe.exports=function(oe,ee){if(z(oe),E(ee)&&ee.constructor===oe)return ee;var de=re.f(oe),x=de.resolve;return x(ee),de.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(y,Pe,ye){var z=y("../internals/promise-native-constructor"),E=y("../internals/check-correctness-of-iteration"),re=y("../internals/promise-constructor-detection").CONSTRUCTOR;Pe.exports=re||!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,Pe,ye){var z=y("../internals/object-define-property").f;Pe.exports=function(E,re,oe){oe in E||z(E,oe,{configurable:!0,get:function(){return re[oe]},set:function(ee){re[oe]=ee}})}},{"../internals/object-define-property":198}],220:[function(y,Pe,ye){var z=function(){this.head=null,this.tail=null};z.prototype={add:function(E){var re={item:E,next:null};this.head?this.tail.next=re:this.head=re,this.tail=re},get:function(){var E=this.head;if(E)return this.head=E.next,this.tail===E&&(this.tail=null),E.item}},Pe.exports=z},{}],221:[function(y,Pe,ye){var z=y("../internals/redefine");Pe.exports=function(E,re,oe){for(var ee in re)z(E,ee,re[ee],oe);return E}},{"../internals/redefine":222}],222:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/is-callable"),re=y("../internals/has-own-property"),oe=y("../internals/create-non-enumerable-property"),ee=y("../internals/set-global"),de=y("../internals/inspect-source"),x=y("../internals/internal-state"),ae=y("../internals/function-name").CONFIGURABLE,ie=x.get,se=x.enforce,ue=String(String).split("String");(Pe.exports=function(pe,he,ge,me){var xe=me?!!me.unsafe:!1,Ae=me?!!me.enumerable:!1,Ne=me?!!me.noTargetGet:!1,Be=me&&me.name!==void 0?me.name:he,De;if(E(ge)&&(String(Be).slice(0,7)==="Symbol("&&(Be="["+String(Be).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!re(ge,"name")||ae&&ge.name!==Be)&&oe(ge,"name",Be),De=se(ge),De.source||(De.source=ue.join(typeof Be=="string"?Be:""))),pe===z){Ae?pe[he]=ge:ee(he,ge);return}else xe?!Ne&&pe[he]&&(Ae=!0):delete pe[he];Ae?pe[he]=ge:oe(pe,he,ge)})(Function.prototype,"toString",function(){return E(this)&&ie(this).source||de(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,Pe,ye){var z=y("../internals/global"),E=y("../internals/function-call"),re=y("../internals/an-object"),oe=y("../internals/is-callable"),ee=y("../internals/classof-raw"),de=y("../internals/regexp-exec"),x=z.TypeError;Pe.exports=function(ae,ie){var se=ae.exec;if(oe(se)){var ue=E(se,ae,ie);return ue!==null&&re(ue),ue}if(ee(ae)==="RegExp")return E(de,ae,ie);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,Pe,ye){"use strict";var z=y("../internals/function-call"),E=y("../internals/function-uncurry-this"),re=y("../internals/to-string"),oe=y("../internals/regexp-flags"),ee=y("../internals/regexp-sticky-helpers"),de=y("../internals/shared"),x=y("../internals/object-create"),ae=y("../internals/internal-state").get,ie=y("../internals/regexp-unsupported-dot-all"),se=y("../internals/regexp-unsupported-ncg"),ue=de("native-string-replace",String.prototype.replace),pe=RegExp.prototype.exec,he=pe,ge=E("".charAt),me=E("".indexOf),xe=E("".replace),Ae=E("".slice),Ne=function(){var Ce=/a/,Oe=/b*/g;return z(pe,Ce,"a"),z(pe,Oe,"a"),Ce.lastIndex!==0||Oe.lastIndex!==0}(),Be=ee.BROKEN_CARET,De=/()??/.exec("")[1]!==void 0,we=Ne||De||Be||ie||se;we&&(he=function(Oe){var je=this,Fe=ae(je),ke=re(Oe),Ee=Fe.raw,Ge,Ke,Ve,it,Le,Ue,tt;if(Ee)return Ee.lastIndex=je.lastIndex,Ge=z(he,Ee,ke),je.lastIndex=Ee.lastIndex,Ge;var nt=Fe.groups,et=Be&&je.sticky,Ze=z(oe,je),Ye=je.source,Xe=0,st=ke;if(et&&(Ze=xe(Ze,"y",""),me(Ze,"g")===-1&&(Ze+="g"),st=Ae(ke,je.lastIndex),je.lastIndex>0&&(!je.multiline||je.multiline&&ge(ke,je.lastIndex-1)!==`
`)&&(Ye="(?: "+Ye+")",st=" "+st,Xe++),Ke=new RegExp("^(?:"+Ye+")",Ze)),De&&(Ke=new RegExp("^"+Ye+"$(?!\\s)",Ze)),Ne&&(Ve=je.lastIndex),it=z(pe,et?Ke:je,st),et?it?(it.input=Ae(it.input,Xe),it[0]=Ae(it[0],Xe),it.index=je.lastIndex,je.lastIndex+=it[0].length):je.lastIndex=0:Ne&&it&&(je.lastIndex=je.global?it.index+it[0].length:Ve),De&&it&&it.length>1&&z(ue,it[0],Ke,function(){for(Le=1;Le<arguments.length-2;Le++)arguments[Le]===void 0&&(it[Le]=void 0)}),it&&nt)for(it.groups=Ue=x(null),Le=0;Le<nt.length;Le++)tt=nt[Le],Ue[tt[0]]=it[tt[1]];return it}),Pe.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,Pe,ye){"use strict";var z=y("../internals/an-object");Pe.exports=function(){var E=z(this),re="";return E.hasIndices&&(re+="d"),E.global&&(re+="g"),E.ignoreCase&&(re+="i"),E.multiline&&(re+="m"),E.dotAll&&(re+="s"),E.unicode&&(re+="u"),E.sticky&&(re+="y"),re}},{"../internals/an-object":101}],226:[function(y,Pe,ye){var z=y("../internals/function-call"),E=y("../internals/has-own-property"),re=y("../internals/object-is-prototype-of"),oe=y("../internals/regexp-flags"),ee=RegExp.prototype;Pe.exports=function(de){var x=de.flags;return x===void 0&&!("flags"in ee)&&!E(de,"flags")&&re(ee,de)?z(oe,de):x}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(y,Pe,ye){var z=y("../internals/fails"),E=y("../internals/global"),re=E.RegExp,oe=z(function(){var x=re("a","y");return x.lastIndex=2,x.exec("abcd")!=null}),ee=oe||z(function(){return!re("a","y").sticky}),de=oe||z(function(){var x=re("^r","gy");return x.lastIndex=2,x.exec("str")!=null});Pe.exports={BROKEN_CARET:de,MISSED_STICKY:ee,UNSUPPORTED_Y:oe}},{"../internals/fails":150,"../internals/global":163}],228:[function(y,Pe,ye){var z=y("../internals/fails"),E=y("../internals/global"),re=E.RegExp;Pe.exports=z(function(){var oe=re(".","s");return!(oe.dotAll&&oe.exec(`
`)&&oe.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(y,Pe,ye){var z=y("../internals/fails"),E=y("../internals/global"),re=E.RegExp;Pe.exports=z(function(){var oe=re("(?<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,Pe,ye){var z=y("../internals/global"),E=z.TypeError;Pe.exports=function(re){if(re==null)throw E("Can't call method on "+re);return re}},{"../internals/global":163}],231:[function(y,Pe,ye){Pe.exports=Object.is||function(E,re){return E===re?E!==0||1/E===1/re:E!=E&&re!=re}},{}],232:[function(y,Pe,ye){var z=y("../internals/global"),E=Object.defineProperty;Pe.exports=function(re,oe){try{E(z,re,{value:oe,configurable:!0,writable:!0})}catch(ee){z[re]=oe}return oe}},{"../internals/global":163}],233:[function(y,Pe,ye){"use strict";var z=y("../internals/get-built-in"),E=y("../internals/object-define-property"),re=y("../internals/well-known-symbol"),oe=y("../internals/descriptors"),ee=re("species");Pe.exports=function(de){var x=z(de),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,Pe,ye){var z=y("../internals/object-define-property").f,E=y("../internals/has-own-property"),re=y("../internals/well-known-symbol"),oe=re("toStringTag");Pe.exports=function(ee,de,x){ee&&!x&&(ee=ee.prototype),ee&&!E(ee,oe)&&z(ee,oe,{configurable:!0,value:de})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(y,Pe,ye){var z=y("../internals/shared"),E=y("../internals/uid"),re=z("keys");Pe.exports=function(oe){return re[oe]||(re[oe]=E(oe))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/set-global"),re="__core-js_shared__",oe=z[re]||E(re,{});Pe.exports=oe},{"../internals/global":163,"../internals/set-global":232}],237:[function(y,Pe,ye){var z=y("../internals/is-pure"),E=y("../internals/shared-store");(Pe.exports=function(re,oe){return E[re]||(E[re]=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,Pe,ye){var z=y("../internals/an-object"),E=y("../internals/a-constructor"),re=y("../internals/well-known-symbol"),oe=re("species");Pe.exports=function(ee,de){var x=z(ee).constructor,ae;return x===void 0||(ae=z(x)[oe])==null?de:E(ae)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(y,Pe,ye){var z=y("../internals/function-uncurry-this"),E=y("../internals/to-integer-or-infinity"),re=y("../internals/to-string"),oe=y("../internals/require-object-coercible"),ee=z("".charAt),de=z("".charCodeAt),x=z("".slice),ae=function(ie){return function(se,ue){var pe=re(oe(se)),he=E(ue),ge=pe.length,me,xe;return he<0||he>=ge?ie?"":void 0:(me=de(pe,he),me<55296||me>56319||he+1===ge||(xe=de(pe,he+1))<56320||xe>57343?ie?ee(pe,he):me:ie?x(pe,he,he+2):(me-55296<<10)+(xe-56320)+65536)}};Pe.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,Pe,ye){var z=y("../internals/function-name").PROPER,E=y("../internals/fails"),re=y("../internals/whitespaces"),oe="\u200B\x85\u180E";Pe.exports=function(ee){return E(function(){return!!re[ee]()||oe[ee]()!==oe||z&&re[ee].name!==ee})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(y,Pe,ye){var z=y("../internals/function-uncurry-this"),E=y("../internals/require-object-coercible"),re=y("../internals/to-string"),oe=y("../internals/whitespaces"),ee=z("".replace),de="["+oe+"]",x=RegExp("^"+de+de+"*"),ae=RegExp(de+de+"*$"),ie=function(se){return function(ue){var pe=re(E(ue));return se&1&&(pe=ee(pe,x,"")),se&2&&(pe=ee(pe,ae,"")),pe}};Pe.exports={start:ie(1),end:ie(2),trim:ie(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(y,Pe,ye){var z=y("../internals/function-call"),E=y("../internals/get-built-in"),re=y("../internals/well-known-symbol"),oe=y("../internals/redefine");Pe.exports=function(){var ee=E("Symbol"),de=ee&&ee.prototype,x=de&&de.valueOf,ae=re("toPrimitive");de&&!de[ae]&&oe(de,ae,function(ie){return z(x,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/function-apply"),re=y("../internals/function-bind-context"),oe=y("../internals/is-callable"),ee=y("../internals/has-own-property"),de=y("../internals/fails"),x=y("../internals/html"),ae=y("../internals/array-slice"),ie=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,ge=z.clearImmediate,me=z.process,xe=z.Dispatch,Ae=z.Function,Ne=z.MessageChannel,Be=z.String,De=0,we={},Ce="onreadystatechange",Oe,je,Fe,ke;try{Oe=z.location}catch(it){}var Ee=function(it){if(ee(we,it)){var Le=we[it];delete we[it],Le()}},Ge=function(it){return function(){Ee(it)}},Ke=function(it){Ee(it.data)},Ve=function(it){z.postMessage(Be(it),Oe.protocol+"//"+Oe.host)};(!he||!ge)&&(he=function(Le){se(arguments.length,1);var Ue=oe(Le)?Le:Ae(Le),tt=ae(arguments,1);return we[++De]=function(){E(Ue,void 0,tt)},je(De),De},ge=function(Le){delete we[Le]},pe?je=function(it){me.nextTick(Ge(it))}:xe&&xe.now?je=function(it){xe.now(Ge(it))}:Ne&&!ue?(Fe=new Ne,ke=Fe.port2,Fe.port1.onmessage=Ke,je=re(ke.postMessage,ke)):z.addEventListener&&oe(z.postMessage)&&!z.importScripts&&Oe&&Oe.protocol!=="file:"&&!de(Ve)?(je=Ve,z.addEventListener("message",Ke,!1)):Ce in ie("script")?je=function(it){x.appendChild(ie("script"))[Ce]=function(){x.removeChild(this),Ee(it)}}:je=function(it){setTimeout(Ge(it),0)}),Pe.exports={set:he,clear:ge}},{"../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,Pe,ye){var z=y("../internals/function-uncurry-this");Pe.exports=z(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(y,Pe,ye){var z=y("../internals/to-integer-or-infinity"),E=Math.max,re=Math.min;Pe.exports=function(oe,ee){var de=z(oe);return de<0?E(de+ee,0):re(de,ee)}},{"../internals/to-integer-or-infinity":248}],246:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/to-integer-or-infinity"),re=y("../internals/to-length"),oe=z.RangeError;Pe.exports=function(ee){if(ee===void 0)return 0;var de=E(ee),x=re(de);if(de!==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,Pe,ye){var z=y("../internals/indexed-object"),E=y("../internals/require-object-coercible");Pe.exports=function(re){return z(E(re))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(y,Pe,ye){var z=Math.ceil,E=Math.floor;Pe.exports=function(re){var oe=+re;return oe!==oe||oe===0?0:(oe>0?E:z)(oe)}},{}],249:[function(y,Pe,ye){var z=y("../internals/to-integer-or-infinity"),E=Math.min;Pe.exports=function(re){return re>0?E(z(re),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/require-object-coercible"),re=z.Object;Pe.exports=function(oe){return re(E(oe))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/to-positive-integer"),re=z.RangeError;Pe.exports=function(oe,ee){var de=E(oe);if(de%ee)throw re("Wrong offset");return de}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/to-integer-or-infinity"),re=z.RangeError;Pe.exports=function(oe){var ee=E(oe);if(ee<0)throw re("The argument can't be less than 0");return ee}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/function-call"),re=y("../internals/is-object"),oe=y("../internals/is-symbol"),ee=y("../internals/get-method"),de=y("../internals/ordinary-to-primitive"),x=y("../internals/well-known-symbol"),ae=z.TypeError,ie=x("toPrimitive");Pe.exports=function(se,ue){if(!re(se)||oe(se))return se;var pe=ee(se,ie),he;if(pe){if(ue===void 0&&(ue="default"),he=E(pe,se,ue),!re(he)||oe(he))return he;throw ae("Can't convert object to primitive value")}return ue===void 0&&(ue="number"),de(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,Pe,ye){var z=y("../internals/to-primitive"),E=y("../internals/is-symbol");Pe.exports=function(re){var oe=z(re,"string");return E(oe)?oe:oe+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(y,Pe,ye){var z=y("../internals/well-known-symbol"),E=z("toStringTag"),re={};re[E]="z",Pe.exports=String(re)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/classof"),re=z.String;Pe.exports=function(oe){if(E(oe)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return re(oe)}},{"../internals/classof":124,"../internals/global":163}],257:[function(y,Pe,ye){var z=y("../internals/global"),E=z.String;Pe.exports=function(re){try{return E(re)}catch(oe){return"Object"}}},{"../internals/global":163}],258:[function(y,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/global"),re=y("../internals/function-call"),oe=y("../internals/descriptors"),ee=y("../internals/typed-array-constructors-require-wrappers"),de=y("../internals/array-buffer-view-core"),x=y("../internals/array-buffer"),ae=y("../internals/an-instance"),ie=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"),ge=y("../internals/to-offset"),me=y("../internals/to-property-key"),xe=y("../internals/has-own-property"),Ae=y("../internals/classof"),Ne=y("../internals/is-object"),Be=y("../internals/is-symbol"),De=y("../internals/object-create"),we=y("../internals/object-is-prototype-of"),Ce=y("../internals/object-set-prototype-of"),Oe=y("../internals/object-get-own-property-names").f,je=y("../internals/typed-array-from"),Fe=y("../internals/array-iteration").forEach,ke=y("../internals/set-species"),Ee=y("../internals/object-define-property"),Ge=y("../internals/object-get-own-property-descriptor"),Ke=y("../internals/internal-state"),Ve=y("../internals/inherit-if-required"),it=Ke.get,Le=Ke.set,Ue=Ee.f,tt=Ge.f,nt=Math.round,et=E.RangeError,Ze=x.ArrayBuffer,Ye=Ze.prototype,Xe=x.DataView,st=de.NATIVE_ARRAY_BUFFER_VIEWS,Qe=de.TYPED_ARRAY_CONSTRUCTOR,ht=de.TYPED_ARRAY_TAG,at=de.TypedArray,qe=de.TypedArrayPrototype,_e=de.aTypedArrayConstructor,Re=de.isTypedArray,ne="BYTES_PER_ELEMENT",fe="Wrong length",Me=function(We,Je){_e(We);for(var ct=0,ot=Je.length,ft=new We(ot);ot>ct;)ft[ct]=Je[ct++];return ft},He=function(We,Je){Ue(We,Je,{get:function(){return it(this)[Je]}})},be=function(We){var Je;return we(Ye,We)||(Je=Ae(We))=="ArrayBuffer"||Je=="SharedArrayBuffer"},ve=function(We,Je){return Re(We)&&!Be(Je)&&Je in We&&ue(+Je)&&Je>=0},Ie=function(Je,ct){return ct=me(ct),ve(Je,ct)?ie(2,Je[ct]):tt(Je,ct)},$e=function(Je,ct,ot){return ct=me(ct),ve(Je,ct)&&Ne(ot)&&xe(ot,"value")&&!xe(ot,"get")&&!xe(ot,"set")&&!ot.configurable&&(!xe(ot,"writable")||ot.writable)&&(!xe(ot,"enumerable")||ot.enumerable)?(Je[ct]=ot.value,Je):Ue(Je,ct,ot)};oe?(st||(Ge.f=Ie,Ee.f=$e,He(qe,"buffer"),He(qe,"byteOffset"),He(qe,"byteLength"),He(qe,"length")),z({target:"Object",stat:!0,forced:!st},{getOwnPropertyDescriptor:Ie,defineProperty:$e}),Pe.exports=function(We,Je,ct){var ot=We.match(/\d+$/)[0]/8,ft=We+(ct?"Clamped":"")+"Array",ut="get"+We,lt="set"+We,At=E[ft],yt=At,Rt=yt&&yt.prototype,Pt={},Tt=function(gt,It){var Vt=it(gt);return Vt.view[ut](It*ot+Vt.byteOffset,!0)},kt=function(gt,It,Vt){var rn=it(gt);ct&&(Vt=(Vt=nt(Vt))<0?0:Vt>255?255:Vt&255),rn.view[lt](It*ot+rn.byteOffset,Vt,!0)},Dt=function(gt,It){Ue(gt,It,{get:function(){return Tt(this,It)},set:function(Vt){return kt(this,It,Vt)},enumerable:!0})};st?ee&&(yt=Je(function(gt,It,Vt,rn){return ae(gt,Rt),Ve(function(){return Ne(It)?be(It)?rn!==void 0?new At(It,ge(Vt,ot),rn):Vt!==void 0?new At(It,ge(Vt,ot)):new At(It):Re(It)?Me(yt,It):re(je,yt,It):new At(he(It))}(),gt,yt)}),Ce&&Ce(yt,at),Fe(Oe(At),function(gt){gt in yt||se(yt,gt,At[gt])}),yt.prototype=Rt):(yt=Je(function(gt,It,Vt,rn){ae(gt,Rt);var wt=0,Ct=0,Zt,en,ln;if(!Ne(It))ln=he(It),en=ln*ot,Zt=new Ze(en);else if(be(It)){Zt=It,Ct=ge(Vt,ot);var yn=It.byteLength;if(rn===void 0){if(yn%ot||(en=yn-Ct,en<0))throw et(fe)}else if(en=pe(rn)*ot,en+Ct>yn)throw et(fe);ln=en/ot}else return Re(It)?Me(yt,It):re(je,yt,It);for(Le(gt,{buffer:Zt,byteOffset:Ct,byteLength:en,length:ln,view:new Xe(Zt)});wt<ln;)Dt(gt,wt++)}),Ce&&Ce(yt,at),Rt=yt.prototype=De(qe)),Rt.constructor!==yt&&se(Rt,"constructor",yt),se(Rt,Qe,yt),ht&&se(Rt,ht,ft),Pt[ft]=yt,z({global:!0,forced:yt!=At,sham:!st},Pt),ne in yt||se(yt,ne,ot),ne in Rt||se(Rt,ne,ot),ke(ft)}):Pe.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,Pe,ye){var z=y("../internals/global"),E=y("../internals/fails"),re=y("../internals/check-correctness-of-iteration"),oe=y("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,ee=z.ArrayBuffer,de=z.Int8Array;Pe.exports=!oe||!E(function(){de(1)})||!E(function(){new de(-1)})||!re(function(x){new de,new de(null),new de(1.5),new de(x)},!0)||E(function(){return new de(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,Pe,ye){var z=y("../internals/array-from-constructor-and-list"),E=y("../internals/typed-array-species-constructor");Pe.exports=function(re,oe){return z(E(re),oe)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(y,Pe,ye){var z=y("../internals/function-bind-context"),E=y("../internals/function-call"),re=y("../internals/a-constructor"),oe=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),de=y("../internals/get-iterator"),x=y("../internals/get-iterator-method"),ae=y("../internals/is-array-iterator-method"),ie=y("../internals/array-buffer-view-core").aTypedArrayConstructor;Pe.exports=function(ue){var pe=re(this),he=oe(ue),ge=arguments.length,me=ge>1?arguments[1]:void 0,xe=me!==void 0,Ae=x(he),Ne,Be,De,we,Ce,Oe;if(Ae&&!ae(Ae))for(Ce=de(he,Ae),Oe=Ce.next,he=[];!(we=E(Oe,Ce)).done;)he.push(we.value);for(xe&&ge>2&&(me=z(me,arguments[2])),Be=ee(he),De=new(ie(pe))(Be),Ne=0;Be>Ne;Ne++)De[Ne]=xe?me(he[Ne],Ne):he[Ne];return De}},{"../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,Pe,ye){var z=y("../internals/array-buffer-view-core"),E=y("../internals/species-constructor"),re=z.TYPED_ARRAY_CONSTRUCTOR,oe=z.aTypedArrayConstructor;Pe.exports=function(ee){return oe(E(ee,ee[re]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(y,Pe,ye){var z=y("../internals/function-uncurry-this"),E=0,re=Math.random(),oe=z(1 .toString);Pe.exports=function(ee){return"Symbol("+(ee===void 0?"":ee)+")_"+oe(++E+re,36)}},{"../internals/function-uncurry-this":157}],264:[function(y,Pe,ye){var z=y("../internals/native-symbol");Pe.exports=z&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(y,Pe,ye){var z=y("../internals/descriptors"),E=y("../internals/fails");Pe.exports=z&&E(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(y,Pe,ye){var z=y("../internals/global"),E=z.TypeError;Pe.exports=function(re,oe){if(re<oe)throw E("Not enough arguments");return re}},{"../internals/global":163}],267:[function(y,Pe,ye){var z=y("../internals/well-known-symbol");ye.f=z},{"../internals/well-known-symbol":268}],268:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/shared"),re=y("../internals/has-own-property"),oe=y("../internals/uid"),ee=y("../internals/native-symbol"),de=y("../internals/use-symbol-as-uid"),x=E("wks"),ae=z.Symbol,ie=ae&&ae.for,se=de?ae:ae&&ae.withoutSetter||oe;Pe.exports=function(ue){if(!re(x,ue)||!(ee||typeof x[ue]=="string")){var pe="Symbol."+ue;ee&&re(ae,ue)?x[ue]=ae[ue]:de&&ie?x[ue]=ie(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,Pe,ye){Pe.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,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/global"),re=y("../internals/array-buffer"),oe=y("../internals/set-species"),ee="ArrayBuffer",de=re[ee],x=E[ee];z({global:!0,forced:x!==de},{ArrayBuffer:de}),oe(ee)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(y,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/function-uncurry-this"),re=y("../internals/fails"),oe=y("../internals/array-buffer"),ee=y("../internals/an-object"),de=y("../internals/to-absolute-index"),x=y("../internals/to-length"),ae=y("../internals/species-constructor"),ie=oe.ArrayBuffer,se=oe.DataView,ue=se.prototype,pe=E(ie.prototype.slice),he=E(ue.getUint8),ge=E(ue.setUint8),me=re(function(){return!new ie(2).slice(1,void 0).byteLength});z({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:me},{slice:function(Ae,Ne){if(pe&&Ne===void 0)return pe(ee(this),Ae);for(var Be=ee(this).byteLength,De=de(Ae,Be),we=de(Ne===void 0?Be:Ne,Be),Ce=new(ae(this,ie))(x(we-De)),Oe=new se(this),je=new se(Ce),Fe=0;De<we;)ge(je,Fe++,he(Oe,De++));return Ce}})},{"../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,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/global"),re=y("../internals/fails"),oe=y("../internals/is-array"),ee=y("../internals/is-object"),de=y("../internals/to-object"),x=y("../internals/length-of-array-like"),ae=y("../internals/create-property"),ie=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"),ge=9007199254740991,me="Maximum allowed index exceeded",xe=E.TypeError,Ae=pe>=51||!re(function(){var we=[];return we[he]=!1,we.concat()[0]!==we}),Ne=se("concat"),Be=function(we){if(!ee(we))return!1;var Ce=we[he];return Ce!==void 0?!!Ce:oe(we)},De=!Ae||!Ne;z({target:"Array",proto:!0,forced:De},{concat:function(Ce){var Oe=de(this),je=ie(Oe,0),Fe=0,ke,Ee,Ge,Ke,Ve;for(ke=-1,Ge=arguments.length;ke<Ge;ke++)if(Ve=ke===-1?Oe:arguments[ke],Be(Ve)){if(Ke=x(Ve),Fe+Ke>ge)throw xe(me);for(Ee=0;Ee<Ke;Ee++,Fe++)Ee in Ve&&ae(je,Fe,Ve[Ee])}else{if(Fe>=ge)throw xe(me);ae(je,Fe++,Ve)}return je.length=Fe,je}})},{"../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,Pe,ye){var z=y("../internals/export"),E=y("../internals/array-fill"),re=y("../internals/add-to-unscopables");z({target:"Array",proto:!0},{fill:E}),re("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(y,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/array-iteration").filter,re=y("../internals/array-method-has-species-support"),oe=re("filter");z({target:"Array",proto:!0,forced:!oe},{filter:function(de){return E(this,de,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(y,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/array-iteration").find,re=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)}}),re(oe)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(y,Pe,ye){var z=y("../internals/export"),E=y("../internals/array-from"),re=y("../internals/check-correctness-of-iteration"),oe=!re(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,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/array-includes").includes,re=y("../internals/add-to-unscopables");z({target:"Array",proto:!0},{includes:function(ee){return E(this,ee,arguments.length>1?arguments[1]:void 0)}}),re("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(y,Pe,ye){"use strict";var z=y("../internals/to-indexed-object"),E=y("../internals/add-to-unscopables"),re=y("../internals/iterators"),oe=y("../internals/internal-state"),ee=y("../internals/object-define-property").f,de=y("../internals/define-iterator"),x=y("../internals/is-pure"),ae=y("../internals/descriptors"),ie="Array Iterator",se=oe.set,ue=oe.getterFor(ie);Pe.exports=de(Array,"Array",function(he,ge){se(this,{type:ie,target:z(he),index:0,kind:ge})},function(){var he=ue(this),ge=he.target,me=he.kind,xe=he.index++;return!ge||xe>=ge.length?(he.target=void 0,{value:void 0,done:!0}):me=="keys"?{value:xe,done:!1}:me=="values"?{value:ge[xe],done:!1}:{value:[xe,ge[xe]],done:!1}},"values");var pe=re.Arguments=re.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,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/function-uncurry-this"),re=y("../internals/indexed-object"),oe=y("../internals/to-indexed-object"),ee=y("../internals/array-method-is-strict"),de=E([].join),x=re!=Object,ae=ee("join",",");z({target:"Array",proto:!0,forced:x||!ae},{join:function(se){return de(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,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/array-iteration").map,re=y("../internals/array-method-has-species-support"),oe=re("map");z({target:"Array",proto:!0,forced:!oe},{map:function(de){return E(this,de,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(y,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/global"),re=y("../internals/is-array"),oe=y("../internals/is-constructor"),ee=y("../internals/is-object"),de=y("../internals/to-absolute-index"),x=y("../internals/length-of-array-like"),ae=y("../internals/to-indexed-object"),ie=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"),ge=se("species"),me=E.Array,xe=Math.max;z({target:"Array",proto:!0,forced:!he},{slice:function(Ne,Be){var De=ae(this),we=x(De),Ce=de(Ne,we),Oe=de(Be===void 0?we:Be,we),je,Fe,ke;if(re(De)&&(je=De.constructor,oe(je)&&(je===me||re(je.prototype))?je=void 0:ee(je)&&(je=je[ge],je===null&&(je=void 0)),je===me||je===void 0))return pe(De,Ce,Oe);for(Fe=new(je===void 0?me:je)(xe(Oe-Ce,0)),ke=0;Ce<Oe;Ce++,ke++)Ce in De&&ie(Fe,ke,De[Ce]);return Fe.length=ke,Fe}})},{"../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,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/function-uncurry-this"),re=y("../internals/a-callable"),oe=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),de=y("../internals/to-string"),x=y("../internals/fails"),ae=y("../internals/array-sort"),ie=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"),ge=[],me=E(ge.sort),xe=E(ge.push),Ae=x(function(){ge.sort(void 0)}),Ne=x(function(){ge.sort(null)}),Be=ie("sort"),De=!x(function(){if(pe)return pe<70;if(!(se&&se>3)){if(ue)return!0;if(he)return he<603;var Oe="",je,Fe,ke,Ee;for(je=65;je<76;je++){switch(Fe=String.fromCharCode(je),je){case 66:case 69:case 70:case 72:ke=3;break;case 68:case 71:ke=4;break;default:ke=2}for(Ee=0;Ee<47;Ee++)ge.push({k:Fe+Ee,v:ke})}for(ge.sort(function(Ge,Ke){return Ke.v-Ge.v}),Ee=0;Ee<ge.length;Ee++)Fe=ge[Ee].k.charAt(0),Oe.charAt(Oe.length-1)!==Fe&&(Oe+=Fe);return Oe!=="DGBEFHACIJK"}}),we=Ae||!Ne||!Be||!De,Ce=function(Oe){return function(je,Fe){return Fe===void 0?-1:je===void 0?1:Oe!==void 0?+Oe(je,Fe)||0:de(je)>de(Fe)?1:-1}};z({target:"Array",proto:!0,forced:we},{sort:function(je){je!==void 0&&re(je);var Fe=oe(this);if(De)return je===void 0?me(Fe):me(Fe,je);var ke=[],Ee=ee(Fe),Ge,Ke;for(Ke=0;Ke<Ee;Ke++)Ke in Fe&&xe(ke,Fe[Ke]);for(ae(ke,Ce(je)),Ge=ke.length,Ke=0;Ke<Ge;)Fe[Ke]=ke[Ke++];for(;Ke<Ee;)delete Fe[Ke++];return Fe}})},{"../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,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/global"),re=y("../internals/to-absolute-index"),oe=y("../internals/to-integer-or-infinity"),ee=y("../internals/length-of-array-like"),de=y("../internals/to-object"),x=y("../internals/array-species-create"),ae=y("../internals/create-property"),ie=y("../internals/array-method-has-species-support"),se=ie("splice"),ue=E.TypeError,pe=Math.max,he=Math.min,ge=9007199254740991,me="Maximum allowed length exceeded";z({target:"Array",proto:!0,forced:!se},{splice:function(Ae,Ne){var Be=de(this),De=ee(Be),we=re(Ae,De),Ce=arguments.length,Oe,je,Fe,ke,Ee,Ge;if(Ce===0?Oe=je=0:Ce===1?(Oe=0,je=De-we):(Oe=Ce-2,je=he(pe(oe(Ne),0),De-we)),De+Oe-je>ge)throw ue(me);for(Fe=x(Be,je),ke=0;ke<je;ke++)Ee=we+ke,Ee in Be&&ae(Fe,ke,Be[Ee]);if(Fe.length=je,Oe<je){for(ke=we;ke<De-je;ke++)Ee=ke+je,Ge=ke+Oe,Ee in Be?Be[Ge]=Be[Ee]:delete Be[Ge];for(ke=De;ke>De-je+Oe;ke--)delete Be[ke-1]}else if(Oe>je)for(ke=De-je;ke>we;ke--)Ee=ke+je-1,Ge=ke+Oe-1,Ee in Be?Be[Ge]=Be[Ee]:delete Be[Ge];for(ke=0;ke<Oe;ke++)Be[ke+we]=arguments[ke+2];return Be.length=De-je+Oe,Fe}})},{"../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,Pe,ye){var z=y("../internals/descriptors"),E=y("../internals/function-name").EXISTS,re=y("../internals/function-uncurry-this"),oe=y("../internals/object-define-property").f,ee=Function.prototype,de=re(ee.toString),x=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ae=re(x.exec),ie="name";z&&!E&&oe(ee,ie,{configurable:!0,get:function(){try{return ae(x,de(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,Pe,ye){var z=y("../internals/export"),E=y("../internals/get-built-in"),re=y("../internals/function-apply"),oe=y("../internals/function-call"),ee=y("../internals/function-uncurry-this"),de=y("../internals/fails"),x=y("../internals/is-array"),ae=y("../internals/is-callable"),ie=y("../internals/is-object"),se=y("../internals/is-symbol"),ue=y("../internals/array-slice"),pe=y("../internals/native-symbol"),he=E("JSON","stringify"),ge=ee(/./.exec),me=ee("".charAt),xe=ee("".charCodeAt),Ae=ee("".replace),Ne=ee(1 .toString),Be=/[\uD800-\uDFFF]/g,De=/^[\uD800-\uDBFF]$/,we=/^[\uDC00-\uDFFF]$/,Ce=!pe||de(function(){var ke=E("Symbol")();return he([ke])!="[null]"||he({a:ke})!="{}"||he(Object(ke))!="{}"}),Oe=de(function(){return he("\uDF06\uD834")!=='"\\udf06\\ud834"'||he("\uDEAD")!=='"\\udead"'}),je=function(ke,Ee){var Ge=ue(arguments),Ke=Ee;if(!(!ie(Ee)&&ke===void 0||se(ke)))return x(Ee)||(Ee=function(Ve,it){if(ae(Ke)&&(it=oe(Ke,this,Ve,it)),!se(it))return it}),Ge[1]=Ee,re(he,null,Ge)},Fe=function(ke,Ee,Ge){var Ke=me(Ge,Ee-1),Ve=me(Ge,Ee+1);return ge(De,ke)&&!ge(we,Ve)||ge(we,ke)&&!ge(De,Ke)?"\\u"+Ne(xe(ke,0),16):ke};he&&z({target:"JSON",stat:!0,forced:Ce||Oe},{stringify:function(Ee,Ge,Ke){var Ve=ue(arguments),it=re(Ce?je:he,null,Ve);return Oe&&typeof it=="string"?Ae(it,Be,Fe):it}})},{"../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,Pe,ye){"use strict";var z=y("../internals/descriptors"),E=y("../internals/global"),re=y("../internals/function-uncurry-this"),oe=y("../internals/is-forced"),ee=y("../internals/redefine"),de=y("../internals/has-own-property"),x=y("../internals/inherit-if-required"),ae=y("../internals/object-is-prototype-of"),ie=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,ge=y("../internals/object-define-property").f,me=y("../internals/this-number-value"),xe=y("../internals/string-trim").trim,Ae="Number",Ne=E[Ae],Be=Ne.prototype,De=E.TypeError,we=re("".slice),Ce=re("".charCodeAt),Oe=function(Ke){var Ve=se(Ke,"number");return typeof Ve=="bigint"?Ve:je(Ve)},je=function(Ke){var Ve=se(Ke,"number"),it,Le,Ue,tt,nt,et,Ze,Ye;if(ie(Ve))throw De("Cannot convert a Symbol value to a number");if(typeof Ve=="string"&&Ve.length>2){if(Ve=xe(Ve),it=Ce(Ve,0),it===43||it===45){if(Le=Ce(Ve,2),Le===88||Le===120)return NaN}else if(it===48){switch(Ce(Ve,1)){case 66:case 98:Ue=2,tt=49;break;case 79:case 111:Ue=8,tt=55;break;default:return+Ve}for(nt=we(Ve,2),et=nt.length,Ze=0;Ze<et;Ze++)if(Ye=Ce(nt,Ze),Ye<48||Ye>tt)return NaN;return parseInt(nt,Ue)}}return+Ve};if(oe(Ae,!Ne(" 0o1")||!Ne("0b1")||Ne("+0x1"))){for(var Fe=function(Ve){var it=arguments.length<1?0:Ne(Oe(Ve)),Le=this;return ae(Be,Le)&&ue(function(){me(Le)})?x(Object(it),Le,Fe):it},ke=z?pe(Ne):"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(","),Ee=0,Ge;ke.length>Ee;Ee++)de(Ne,Ge=ke[Ee])&&!de(Fe,Ge)&&ge(Fe,Ge,he(Ne,Ge));Fe.prototype=Be,Be.constructor=Fe,ee(E,Ae,Fe)}},{"../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,Pe,ye){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,Pe,ye){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,Pe,ye){var z=y("../internals/export"),E=y("../internals/native-symbol"),re=y("../internals/fails"),oe=y("../internals/object-get-own-property-symbols"),ee=y("../internals/to-object"),de=!E||re(function(){oe.f(1)});z({target:"Object",stat:!0,forced:de},{getOwnPropertySymbols:function(ae){var ie=oe.f;return ie?ie(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,Pe,ye){var z=y("../internals/export"),E=y("../internals/to-object"),re=y("../internals/object-keys"),oe=y("../internals/fails"),ee=oe(function(){re(1)});z({target:"Object",stat:!0,forced:ee},{keys:function(x){return re(E(x))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(y,Pe,ye){var z=y("../internals/to-string-tag-support"),E=y("../internals/redefine"),re=y("../internals/object-to-string");z||E(Object.prototype,"toString",re,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(y,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/function-call"),re=y("../internals/a-callable"),oe=y("../internals/new-promise-capability"),ee=y("../internals/perform"),de=y("../internals/iterate"),x=y("../internals/promise-statics-incorrect-iteration");z({target:"Promise",stat:!0,forced:x},{all:function(ie){var se=this,ue=oe.f(se),pe=ue.resolve,he=ue.reject,ge=ee(function(){var me=re(se.resolve),xe=[],Ae=0,Ne=1;de(ie,function(Be){var De=Ae++,we=!1;Ne++,E(me,se,Be).then(function(Ce){we||(we=!0,xe[De]=Ce,--Ne||pe(xe))},he)}),--Ne||pe(xe)});return ge.error&&he(ge.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,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/is-pure"),re=y("../internals/promise-constructor-detection").CONSTRUCTOR,oe=y("../internals/promise-native-constructor"),ee=y("../internals/get-built-in"),de=y("../internals/is-callable"),x=y("../internals/redefine"),ae=oe&&oe.prototype;if(z({target:"Promise",proto:!0,forced:re,real:!0},{catch:function(se){return this.then(void 0,se)}}),!E&&de(oe)){var ie=ee("Promise").prototype.catch;ae.catch!==ie&&x(ae,"catch",ie,{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,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/is-pure"),re=y("../internals/engine-is-node"),oe=y("../internals/global"),ee=y("../internals/function-call"),de=y("../internals/redefine"),x=y("../internals/redefine-all"),ae=y("../internals/object-set-prototype-of"),ie=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"),ge=y("../internals/an-instance"),me=y("../internals/species-constructor"),xe=y("../internals/task").set,Ae=y("../internals/microtask"),Ne=y("../internals/host-report-errors"),Be=y("../internals/perform"),De=y("../internals/queue"),we=y("../internals/internal-state"),Ce=y("../internals/promise-native-constructor"),Oe=y("../internals/promise-constructor-detection"),je=y("../internals/new-promise-capability"),Fe="Promise",ke=Oe.CONSTRUCTOR,Ee=Oe.REJECTION_EVENT,Ge=Oe.SUBCLASSING,Ke=we.getterFor(Fe),Ve=we.set,it=Ce&&Ce.prototype,Le=Ce,Ue=it,tt=oe.TypeError,nt=oe.document,et=oe.process,Ze=je.f,Ye=Ze,Xe=!!(nt&&nt.createEvent&&oe.dispatchEvent),st="unhandledrejection",Qe="rejectionhandled",ht=0,at=1,qe=2,_e=1,Re=2,ne,fe,Me,He,be=function(lt){var At;return he(lt)&&pe(At=lt.then)?At:!1},ve=function(lt,At){var yt=At.value,Rt=At.state==at,Pt=Rt?lt.ok:lt.fail,Tt=lt.resolve,kt=lt.reject,Dt=lt.domain,gt,It,Vt;try{Pt?(Rt||(At.rejection===Re&&ct(At),At.rejection=_e),Pt===!0?gt=yt:(Dt&&Dt.enter(),gt=Pt(yt),Dt&&(Dt.exit(),Vt=!0)),gt===lt.promise?kt(tt("Promise-chain cycle")):(It=be(gt))?ee(It,gt,Tt,kt):Tt(gt)):kt(yt)}catch(rn){Dt&&!Vt&&Dt.exit(),kt(rn)}},Ie=function(lt,At){lt.notified||(lt.notified=!0,Ae(function(){for(var yt=lt.reactions,Rt;Rt=yt.get();)ve(Rt,lt);lt.notified=!1,At&&!lt.rejection&&We(lt)}))},$e=function(lt,At,yt){var Rt,Pt;Xe?(Rt=nt.createEvent("Event"),Rt.promise=At,Rt.reason=yt,Rt.initEvent(lt,!1,!0),oe.dispatchEvent(Rt)):Rt={promise:At,reason:yt},!Ee&&(Pt=oe["on"+lt])?Pt(Rt):lt===st&&Ne("Unhandled promise rejection",yt)},We=function(lt){ee(xe,oe,function(){var At=lt.facade,yt=lt.value,Rt=Je(lt),Pt;if(Rt&&(Pt=Be(function(){re?et.emit("unhandledRejection",yt,At):$e(st,At,yt)}),lt.rejection=re||Je(lt)?Re:_e,Pt.error))throw Pt.value})},Je=function(lt){return lt.rejection!==_e&&!lt.parent},ct=function(lt){ee(xe,oe,function(){var At=lt.facade;re?et.emit("rejectionHandled",At):$e(Qe,At,lt.value)})},ot=function(lt,At,yt){return function(Rt){lt(At,Rt,yt)}},ft=function(lt,At,yt){lt.done||(lt.done=!0,yt&&(lt=yt),lt.value=At,lt.state=qe,Ie(lt,!0))},ut=function(lt,At,yt){if(!lt.done){lt.done=!0,yt&&(lt=yt);try{if(lt.facade===At)throw tt("Promise can't be resolved itself");var Rt=be(At);Rt?Ae(function(){var Pt={done:!1};try{ee(Rt,At,ot(ut,Pt,lt),ot(ft,Pt,lt))}catch(Tt){ft(Pt,Tt,lt)}}):(lt.value=At,lt.state=at,Ie(lt,!1))}catch(Pt){ft({done:!1},Pt,lt)}}};if(ke&&(Le=function(At){ge(this,Ue),ue(At),ee(ne,this);var yt=Ke(this);try{At(ot(ut,yt),ot(ft,yt))}catch(Rt){ft(yt,Rt)}},Ue=Le.prototype,ne=function(At){Ve(this,{type:Fe,done:!1,notified:!1,parent:!1,reactions:new De,rejection:!1,state:ht,value:void 0})},ne.prototype=x(Ue,{then:function(At,yt){var Rt=Ke(this),Pt=Ze(me(this,Le));return Rt.parent=!0,Pt.ok=pe(At)?At:!0,Pt.fail=pe(yt)&&yt,Pt.domain=re?et.domain:void 0,Rt.state==ht?Rt.reactions.add(Pt):Ae(function(){ve(Pt,Rt)}),Pt.promise}}),fe=function(){var lt=new ne,At=Ke(lt);this.promise=lt,this.resolve=ot(ut,At),this.reject=ot(ft,At)},je.f=Ze=function(lt){return lt===Le||lt===Me?new fe(lt):Ye(lt)},!E&&pe(Ce)&&it!==Object.prototype)){He=it.then,Ge||de(it,"then",function(At,yt){var Rt=this;return new Le(function(Pt,Tt){ee(He,Rt,Pt,Tt)}).then(At,yt)},{unsafe:!0});try{delete it.constructor}catch(lt){}ae&&ae(it,Ue)}z({global:!0,wrap:!0,forced:ke},{Promise:Le}),ie(Le,Fe,!1,!0),se(Fe)},{"../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,Pe,ye){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,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/function-call"),re=y("../internals/a-callable"),oe=y("../internals/new-promise-capability"),ee=y("../internals/perform"),de=y("../internals/iterate"),x=y("../internals/promise-statics-incorrect-iteration");z({target:"Promise",stat:!0,forced:x},{race:function(ie){var se=this,ue=oe.f(se),pe=ue.reject,he=ee(function(){var ge=re(se.resolve);de(ie,function(me){E(ge,se,me).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,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/function-call"),re=y("../internals/new-promise-capability"),oe=y("../internals/promise-constructor-detection").CONSTRUCTOR;z({target:"Promise",stat:!0,forced:oe},{reject:function(de){var x=re.f(this);return E(x.reject,void 0,de),x.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(y,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/get-built-in"),re=y("../internals/is-pure"),oe=y("../internals/promise-native-constructor"),ee=y("../internals/promise-constructor-detection").CONSTRUCTOR,de=y("../internals/promise-resolve"),x=E("Promise"),ae=re&&!ee;z({target:"Promise",stat:!0,forced:re||ee},{resolve:function(se){return de(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,Pe,ye){var z=y("../internals/descriptors"),E=y("../internals/global"),re=y("../internals/function-uncurry-this"),oe=y("../internals/is-forced"),ee=y("../internals/inherit-if-required"),de=y("../internals/create-non-enumerable-property"),x=y("../internals/object-get-own-property-names").f,ae=y("../internals/object-is-prototype-of"),ie=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"),ge=y("../internals/redefine"),me=y("../internals/fails"),xe=y("../internals/has-own-property"),Ae=y("../internals/internal-state").enforce,Ne=y("../internals/set-species"),Be=y("../internals/well-known-symbol"),De=y("../internals/regexp-unsupported-dot-all"),we=y("../internals/regexp-unsupported-ncg"),Ce=Be("match"),Oe=E.RegExp,je=Oe.prototype,Fe=E.SyntaxError,ke=re(je.exec),Ee=re("".charAt),Ge=re("".replace),Ke=re("".indexOf),Ve=re("".slice),it=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Le=/a/g,Ue=/a/g,tt=new Oe(Le)!==Le,nt=pe.MISSED_STICKY,et=pe.UNSUPPORTED_Y,Ze=z&&(!tt||nt||De||we||me(function(){return Ue[Ce]=!1,Oe(Le)!=Le||Oe(Ue)==Ue||Oe(Le,"i")!="/a/i"})),Ye=function(at){for(var qe=at.length,_e=0,Re="",ne=!1,fe;_e<=qe;_e++){if(fe=Ee(at,_e),fe==="\\"){Re+=fe+Ee(at,++_e);continue}!ne&&fe==="."?Re+="[\\s\\S]":(fe==="["?ne=!0:fe==="]"&&(ne=!1),Re+=fe)}return Re},Xe=function(at){for(var qe=at.length,_e=0,Re="",ne=[],fe={},Me=!1,He=!1,be=0,ve="",Ie;_e<=qe;_e++){if(Ie=Ee(at,_e),Ie==="\\")Ie=Ie+Ee(at,++_e);else if(Ie==="]")Me=!1;else if(!Me)switch(!0){case Ie==="[":Me=!0;break;case Ie==="(":ke(it,Ve(at,_e+1))&&(_e+=2,He=!0),Re+=Ie,be++;continue;case(Ie===">"&&He):if(ve===""||xe(fe,ve))throw new Fe("Invalid capture group name");fe[ve]=!0,ne[ne.length]=[ve,be],He=!1,ve="";continue}He?ve+=Ie:Re+=Ie}return[Re,ne]};if(oe("RegExp",Ze)){for(var st=function(qe,_e){var Re=ae(je,this),ne=ie(qe),fe=_e===void 0,Me=[],He=qe,be,ve,Ie,$e,We,Je;if(!Re&&ne&&fe&&qe.constructor===st)return qe;if((ne||ae(je,qe))&&(qe=qe.source,fe&&(_e=ue(He))),qe=qe===void 0?"":se(qe),_e=_e===void 0?"":se(_e),He=qe,De&&"dotAll"in Le&&(ve=!!_e&&Ke(_e,"s")>-1,ve&&(_e=Ge(_e,/s/g,""))),be=_e,nt&&"sticky"in Le&&(Ie=!!_e&&Ke(_e,"y")>-1,Ie&&et&&(_e=Ge(_e,/y/g,""))),we&&($e=Xe(qe),qe=$e[0],Me=$e[1]),We=ee(Oe(qe,_e),Re?this:je,st),(ve||Ie||Me.length)&&(Je=Ae(We),ve&&(Je.dotAll=!0,Je.raw=st(Ye(qe),be)),Ie&&(Je.sticky=!0),Me.length&&(Je.groups=Me)),qe!==He)try{de(We,"source",He===""?"(?:)":He)}catch(ct){}return We},Qe=x(Oe),ht=0;Qe.length>ht;)he(st,Oe,Qe[ht++]);je.constructor=st,st.prototype=je,ge(E,"RegExp",st)}Ne("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,Pe,ye){"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,Pe,ye){"use strict";var z=y("../internals/function-name").PROPER,E=y("../internals/redefine"),re=y("../internals/an-object"),oe=y("../internals/to-string"),ee=y("../internals/fails"),de=y("../internals/regexp-get-flags"),x="toString",ae=RegExp.prototype,ie=ae[x],se=ee(function(){return ie.call({source:"a",flags:"b"})!="/a/b"}),ue=z&&ie.name!=x;(se||ue)&&E(RegExp.prototype,x,function(){var he=re(this),ge=oe(he.source),me=oe(de(he));return"/"+ge+"/"+me},{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,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/function-uncurry-this"),re=y("../internals/not-a-regexp"),oe=y("../internals/require-object-coercible"),ee=y("../internals/to-string"),de=y("../internals/correct-is-regexp-logic"),x=E("".indexOf);z({target:"String",proto:!0,forced:!de("includes")},{includes:function(ie){return!!~x(ee(oe(this)),ee(re(ie)),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,Pe,ye){"use strict";var z=y("../internals/string-multibyte").charAt,E=y("../internals/to-string"),re=y("../internals/internal-state"),oe=y("../internals/define-iterator"),ee="String Iterator",de=re.set,x=re.getterFor(ee);oe(String,"String",function(ae){de(this,{type:ee,string:E(ae),index:0})},function(){var ie=x(this),se=ie.string,ue=ie.index,pe;return ue>=se.length?{value:void 0,done:!0}:(pe=z(se,ue),ie.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,Pe,ye){"use strict";var z=y("../internals/function-call"),E=y("../internals/fix-regexp-well-known-symbol-logic"),re=y("../internals/an-object"),oe=y("../internals/to-length"),ee=y("../internals/to-string"),de=y("../internals/require-object-coercible"),x=y("../internals/get-method"),ae=y("../internals/advance-string-index"),ie=y("../internals/regexp-exec-abstract");E("match",function(se,ue,pe){return[function(ge){var me=de(this),xe=ge==null?void 0:x(ge,se);return xe?z(xe,ge,me):new RegExp(ge)[se](ee(me))},function(he){var ge=re(this),me=ee(he),xe=pe(ue,ge,me);if(xe.done)return xe.value;if(!ge.global)return ie(ge,me);var Ae=ge.unicode;ge.lastIndex=0;for(var Ne=[],Be=0,De;(De=ie(ge,me))!==null;){var we=ee(De[0]);Ne[Be]=we,we===""&&(ge.lastIndex=ae(me,oe(ge.lastIndex),Ae)),Be++}return Be===0?null:Ne}]})},{"../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,Pe,ye){"use strict";var z=y("../internals/function-apply"),E=y("../internals/function-call"),re=y("../internals/function-uncurry-this"),oe=y("../internals/fix-regexp-well-known-symbol-logic"),ee=y("../internals/fails"),de=y("../internals/an-object"),x=y("../internals/is-callable"),ae=y("../internals/to-integer-or-infinity"),ie=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"),ge=y("../internals/get-substitution"),me=y("../internals/regexp-exec-abstract"),xe=y("../internals/well-known-symbol"),Ae=xe("replace"),Ne=Math.max,Be=Math.min,De=re([].concat),we=re([].push),Ce=re("".indexOf),Oe=re("".slice),je=function(Ge){return Ge===void 0?Ge:String(Ge)},Fe=function(){return"a".replace(/./,"$0")==="$0"}(),ke=function(){return/./[Ae]?/./[Ae]("a","$0")==="":!1}(),Ee=!ee(function(){var Ge=/./;return Ge.exec=function(){var Ke=[];return Ke.groups={a:"7"},Ke},"".replace(Ge,"$<a>")!=="7"});oe("replace",function(Ge,Ke,Ve){var it=ke?"$":"$0";return[function(Ue,tt){var nt=ue(this),et=Ue==null?void 0:he(Ue,Ae);return et?E(et,Ue,nt,tt):E(Ke,se(nt),Ue,tt)},function(Le,Ue){var tt=de(this),nt=se(Le);if(typeof Ue=="string"&&Ce(Ue,it)===-1&&Ce(Ue,"$<")===-1){var et=Ve(Ke,tt,nt,Ue);if(et.done)return et.value}var Ze=x(Ue);Ze||(Ue=se(Ue));var Ye=tt.global;if(Ye){var Xe=tt.unicode;tt.lastIndex=0}for(var st=[];;){var Qe=me(tt,nt);if(Qe===null||(we(st,Qe),!Ye))break;var ht=se(Qe[0]);ht===""&&(tt.lastIndex=pe(nt,ie(tt.lastIndex),Xe))}for(var at="",qe=0,_e=0;_e<st.length;_e++){Qe=st[_e];for(var Re=se(Qe[0]),ne=Ne(Be(ae(Qe.index),nt.length),0),fe=[],Me=1;Me<Qe.length;Me++)we(fe,je(Qe[Me]));var He=Qe.groups;if(Ze){var be=De([Re],fe,ne,nt);He!==void 0&&we(be,He);var ve=se(z(Ue,void 0,be))}else ve=ge(Re,nt,ne,fe,He,Ue);ne>=qe&&(at+=Oe(nt,qe,ne)+ve,qe=ne+Re.length)}return at+Oe(nt,qe)}]},!Ee||!Fe||ke)},{"../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,Pe,ye){"use strict";var z=y("../internals/function-call"),E=y("../internals/fix-regexp-well-known-symbol-logic"),re=y("../internals/an-object"),oe=y("../internals/require-object-coercible"),ee=y("../internals/same-value"),de=y("../internals/to-string"),x=y("../internals/get-method"),ae=y("../internals/regexp-exec-abstract");E("search",function(ie,se,ue){return[function(he){var ge=oe(this),me=he==null?void 0:x(he,ie);return me?z(me,he,ge):new RegExp(he)[ie](de(ge))},function(pe){var he=re(this),ge=de(pe),me=ue(se,he,ge);if(me.done)return me.value;var xe=he.lastIndex;ee(xe,0)||(he.lastIndex=0);var Ae=ae(he,ge);return ee(he.lastIndex,xe)||(he.lastIndex=xe),Ae===null?-1:Ae.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,Pe,ye){"use strict";var z=y("../internals/function-apply"),E=y("../internals/function-call"),re=y("../internals/function-uncurry-this"),oe=y("../internals/fix-regexp-well-known-symbol-logic"),ee=y("../internals/is-regexp"),de=y("../internals/an-object"),x=y("../internals/require-object-coercible"),ae=y("../internals/species-constructor"),ie=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"),ge=y("../internals/regexp-exec-abstract"),me=y("../internals/regexp-exec"),xe=y("../internals/regexp-sticky-helpers"),Ae=y("../internals/fails"),Ne=xe.UNSUPPORTED_Y,Be=4294967295,De=Math.min,we=[].push,Ce=re(/./.exec),Oe=re(we),je=re("".slice),Fe=!Ae(function(){var ke=/(?:)/,Ee=ke.exec;ke.exec=function(){return Ee.apply(this,arguments)};var Ge="ab".split(ke);return Ge.length!==2||Ge[0]!=="a"||Ge[1]!=="b"});oe("split",function(ke,Ee,Ge){var Ke;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?Ke=function(Ve,it){var Le=ue(x(this)),Ue=it===void 0?Be:it>>>0;if(Ue===0)return[];if(Ve===void 0)return[Le];if(!ee(Ve))return E(Ee,Le,Ve,Ue);for(var tt=[],nt=(Ve.ignoreCase?"i":"")+(Ve.multiline?"m":"")+(Ve.unicode?"u":"")+(Ve.sticky?"y":""),et=0,Ze=new RegExp(Ve.source,nt+"g"),Ye,Xe,st;(Ye=E(me,Ze,Le))&&(Xe=Ze.lastIndex,!(Xe>et&&(Oe(tt,je(Le,et,Ye.index)),Ye.length>1&&Ye.index<Le.length&&z(we,tt,he(Ye,1)),st=Ye[0].length,et=Xe,tt.length>=Ue)));)Ze.lastIndex===Ye.index&&Ze.lastIndex++;return et===Le.length?(st||!Ce(Ze,""))&&Oe(tt,""):Oe(tt,je(Le,et)),tt.length>Ue?he(tt,0,Ue):tt}:"0".split(void 0,0).length?Ke=function(Ve,it){return Ve===void 0&&it===0?[]:E(Ee,this,Ve,it)}:Ke=Ee,[function(it,Le){var Ue=x(this),tt=it==null?void 0:pe(it,ke);return tt?E(tt,it,Ue,Le):E(Ke,ue(Ue),it,Le)},function(Ve,it){var Le=de(this),Ue=ue(Ve),tt=Ge(Ke,Le,Ue,it,Ke!==Ee);if(tt.done)return tt.value;var nt=ae(Le,RegExp),et=Le.unicode,Ze=(Le.ignoreCase?"i":"")+(Le.multiline?"m":"")+(Le.unicode?"u":"")+(Ne?"g":"y"),Ye=new nt(Ne?"^(?:"+Le.source+")":Le,Ze),Xe=it===void 0?Be:it>>>0;if(Xe===0)return[];if(Ue.length===0)return ge(Ye,Ue)===null?[Ue]:[];for(var st=0,Qe=0,ht=[];Qe<Ue.length;){Ye.lastIndex=Ne?0:Qe;var at=ge(Ye,Ne?je(Ue,Qe):Ue),qe;if(at===null||(qe=De(se(Ye.lastIndex+(Ne?Qe:0)),Ue.length))===st)Qe=ie(Ue,Qe,et);else{if(Oe(ht,je(Ue,st,Qe)),ht.length===Xe)return ht;for(var _e=1;_e<=at.length-1;_e++)if(Oe(ht,at[_e]),ht.length===Xe)return ht;Qe=st=qe}}return Oe(ht,je(Ue,st)),ht}]},!Fe,Ne)},{"../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,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/string-trim").trim,re=y("../internals/string-trim-forced");z({target:"String",proto:!0,forced:re("trim")},{trim:function(){return E(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(y,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/global"),re=y("../internals/function-call"),oe=y("../internals/function-uncurry-this"),ee=y("../internals/is-pure"),de=y("../internals/descriptors"),x=y("../internals/native-symbol"),ae=y("../internals/fails"),ie=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"),ge=y("../internals/to-string"),me=y("../internals/create-property-descriptor"),xe=y("../internals/object-create"),Ae=y("../internals/object-keys"),Ne=y("../internals/object-get-own-property-names"),Be=y("../internals/object-get-own-property-names-external"),De=y("../internals/object-get-own-property-symbols"),we=y("../internals/object-get-own-property-descriptor"),Ce=y("../internals/object-define-property"),Oe=y("../internals/object-define-properties"),je=y("../internals/object-property-is-enumerable"),Fe=y("../internals/redefine"),ke=y("../internals/shared"),Ee=y("../internals/shared-key"),Ge=y("../internals/hidden-keys"),Ke=y("../internals/uid"),Ve=y("../internals/well-known-symbol"),it=y("../internals/well-known-symbol-wrapped"),Le=y("../internals/define-well-known-symbol"),Ue=y("../internals/symbol-define-to-primitive"),tt=y("../internals/set-to-string-tag"),nt=y("../internals/internal-state"),et=y("../internals/array-iteration").forEach,Ze=Ee("hidden"),Ye="Symbol",Xe="prototype",st=nt.set,Qe=nt.getterFor(Ye),ht=Object[Xe],at=E.Symbol,qe=at&&at[Xe],_e=E.TypeError,Re=E.QObject,ne=we.f,fe=Ce.f,Me=Be.f,He=je.f,be=oe([].push),ve=ke("symbols"),Ie=ke("op-symbols"),$e=ke("wks"),We=!Re||!Re[Xe]||!Re[Xe].findChild,Je=de&&ae(function(){return xe(fe({},"a",{get:function(){return fe(this,"a",{value:7}).a}})).a!=7})?function(Pt,Tt,kt){var Dt=ne(ht,Tt);Dt&&delete ht[Tt],fe(Pt,Tt,kt),Dt&&Pt!==ht&&fe(ht,Tt,Dt)}:fe,ct=function(Pt,Tt){var kt=ve[Pt]=xe(qe);return st(kt,{type:Ye,tag:Pt,description:Tt}),de||(kt.description=Tt),kt},ot=function(Tt,kt,Dt){Tt===ht&&ot(Ie,kt,Dt),ue(Tt);var gt=he(kt);return ue(Dt),ie(ve,gt)?(Dt.enumerable?(ie(Tt,Ze)&&Tt[Ze][gt]&&(Tt[Ze][gt]=!1),Dt=xe(Dt,{enumerable:me(0,!1)})):(ie(Tt,Ze)||fe(Tt,Ze,me(1,{})),Tt[Ze][gt]=!0),Je(Tt,gt,Dt)):fe(Tt,gt,Dt)},ft=function(Tt,kt){ue(Tt);var Dt=pe(kt),gt=Ae(Dt).concat(Rt(Dt));return et(gt,function(It){(!de||re(lt,Dt,It))&&ot(Tt,It,Dt[It])}),Tt},ut=function(Tt,kt){return kt===void 0?xe(Tt):ft(xe(Tt),kt)},lt=function(Tt){var kt=he(Tt),Dt=re(He,this,kt);return this===ht&&ie(ve,kt)&&!ie(Ie,kt)?!1:Dt||!ie(this,kt)||!ie(ve,kt)||ie(this,Ze)&&this[Ze][kt]?Dt:!0},At=function(Tt,kt){var Dt=pe(Tt),gt=he(kt);if(!(Dt===ht&&ie(ve,gt)&&!ie(Ie,gt))){var It=ne(Dt,gt);return It&&ie(ve,gt)&&!(ie(Dt,Ze)&&Dt[Ze][gt])&&(It.enumerable=!0),It}},yt=function(Tt){var kt=Me(pe(Tt)),Dt=[];return et(kt,function(gt){!ie(ve,gt)&&!ie(Ge,gt)&&be(Dt,gt)}),Dt},Rt=function(Pt){var Tt=Pt===ht,kt=Me(Tt?Ie:pe(Pt)),Dt=[];return et(kt,function(gt){ie(ve,gt)&&(!Tt||ie(ht,gt))&&be(Dt,ve[gt])}),Dt};x||(at=function(){if(se(qe,this))throw _e("Symbol is not a constructor");var Tt=!arguments.length||arguments[0]===void 0?void 0:ge(arguments[0]),kt=Ke(Tt),Dt=function(gt){this===ht&&re(Dt,Ie,gt),ie(this,Ze)&&ie(this[Ze],kt)&&(this[Ze][kt]=!1),Je(this,kt,me(1,gt))};return de&&We&&Je(ht,kt,{configurable:!0,set:Dt}),ct(kt,Tt)},qe=at[Xe],Fe(qe,"toString",function(){return Qe(this).tag}),Fe(at,"withoutSetter",function(Pt){return ct(Ke(Pt),Pt)}),je.f=lt,Ce.f=ot,Oe.f=ft,we.f=At,Ne.f=Be.f=yt,De.f=Rt,it.f=function(Pt){return ct(Ve(Pt),Pt)},de&&(fe(qe,"description",{configurable:!0,get:function(){return Qe(this).description}}),ee||Fe(ht,"propertyIsEnumerable",lt,{unsafe:!0}))),z({global:!0,wrap:!0,forced:!x,sham:!x},{Symbol:at}),et(Ae($e),function(Pt){Le(Pt)}),z({target:Ye,stat:!0,forced:!x},{useSetter:function(){We=!0},useSimple:function(){We=!1}}),z({target:"Object",stat:!0,forced:!x,sham:!de},{create:ut,defineProperty:ot,defineProperties:ft,getOwnPropertyDescriptor:At}),z({target:"Object",stat:!0,forced:!x},{getOwnPropertyNames:yt}),Ue(),tt(at,Ye),Ge[Ze]=!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,Pe,ye){"use strict";var z=y("../internals/export"),E=y("../internals/descriptors"),re=y("../internals/global"),oe=y("../internals/function-uncurry-this"),ee=y("../internals/has-own-property"),de=y("../internals/is-callable"),x=y("../internals/object-is-prototype-of"),ae=y("../internals/to-string"),ie=y("../internals/object-define-property").f,se=y("../internals/copy-constructor-properties"),ue=re.Symbol,pe=ue&&ue.prototype;if(E&&de(ue)&&(!("description"in pe)||ue().description!==void 0)){var he={},ge=function(){var Ce=arguments.length<1||arguments[0]===void 0?void 0:ae(arguments[0]),Oe=x(pe,this)?new ue(Ce):Ce===void 0?ue():ue(Ce);return Ce===""&&(he[Oe]=!0),Oe};se(ge,ue),ge.prototype=pe,pe.constructor=ge;var me=String(ue("test"))=="Symbol(test)",xe=oe(pe.toString),Ae=oe(pe.valueOf),Ne=/^Symbol\((.*)\)[^)]+$/,Be=oe("".replace),De=oe("".slice);ie(pe,"description",{configurable:!0,get:function(){var Ce=Ae(this),Oe=xe(Ce);if(ee(he,Ce))return"";var je=me?De(Oe,7,-1):Be(Oe,Ne,"$1");return je===""?void 0:je}}),z({global:!0,forced:!0},{Symbol:ge})}},{"../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,Pe,ye){var z=y("../internals/export"),E=y("../internals/get-built-in"),re=y("../internals/has-own-property"),oe=y("../internals/to-string"),ee=y("../internals/shared"),de=y("../internals/native-symbol-registry"),x=ee("string-to-symbol-registry"),ae=ee("symbol-to-string-registry");z({target:"Symbol",stat:!0,forced:!de},{for:function(ie){var se=oe(ie);if(re(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,Pe,ye){var z=y("../internals/define-well-known-symbol");z("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(y,Pe,ye){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,Pe,ye){var z=y("../internals/export"),E=y("../internals/has-own-property"),re=y("../internals/is-symbol"),oe=y("../internals/try-to-string"),ee=y("../internals/shared"),de=y("../internals/native-symbol-registry"),x=ee("symbol-to-string-registry");z({target:"Symbol",stat:!0,forced:!de},{keyFor:function(ie){if(!re(ie))throw TypeError(oe(ie)+" is not a symbol");if(E(x,ie))return x[ie]}})},{"../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,Pe,ye){"use strict";var z=y("../internals/function-uncurry-this"),E=y("../internals/array-buffer-view-core"),re=y("../internals/array-copy-within"),oe=z(re),ee=E.aTypedArray,de=E.exportTypedArrayMethod;de("copyWithin",function(ae,ie){return oe(ee(this),ae,ie,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,Pe,ye){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").every,re=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("every",function(de){return E(re(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(y,Pe,ye){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/function-call"),re=y("../internals/array-fill"),oe=z.aTypedArray,ee=z.exportTypedArrayMethod;ee("fill",function(x){var ae=arguments.length;return E(re,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,Pe,ye){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").filter,re=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 re(this,ae)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(y,Pe,ye){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").findIndex,re=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("findIndex",function(de){return E(re(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(y,Pe,ye){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").find,re=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("find",function(de){return E(re(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(y,Pe,ye){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").forEach,re=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("forEach",function(de){E(re(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(y,Pe,ye){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-includes").includes,re=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("includes",function(de){return E(re(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(y,Pe,ye){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-includes").indexOf,re=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("indexOf",function(de){return E(re(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(y,Pe,ye){"use strict";var z=y("../internals/global"),E=y("../internals/fails"),re=y("../internals/function-uncurry-this"),oe=y("../internals/array-buffer-view-core"),ee=y("../modules/es.array.iterator"),de=y("../internals/well-known-symbol"),x=de("iterator"),ae=z.Uint8Array,ie=re(ee.values),se=re(ee.keys),ue=re(ee.entries),pe=oe.aTypedArray,he=oe.exportTypedArrayMethod,ge=ae&&ae.prototype,me=!E(function(){ge[x].call([1])}),xe=!!ge&&ge.values&&ge[x]===ge.values&&ge.values.name==="values",Ae=function(){return ie(pe(this))};he("entries",function(){return ue(pe(this))},me),he("keys",function(){return se(pe(this))},me),he("values",Ae,me||!xe,{name:"values"}),he(x,Ae,me||!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,Pe,ye){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/function-uncurry-this"),re=z.aTypedArray,oe=z.exportTypedArrayMethod,ee=E([].join);oe("join",function(x){return ee(re(this),x)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(y,Pe,ye){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/function-apply"),re=y("../internals/array-last-index-of"),oe=z.aTypedArray,ee=z.exportTypedArrayMethod;ee("lastIndexOf",function(x){var ae=arguments.length;return E(re,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,Pe,ye){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").map,re=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,ie){return new(re(ae))(ie)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(y,Pe,ye){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-reduce").right,re=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("reduceRight",function(de){var x=arguments.length;return E(re(this),de,x,x>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(y,Pe,ye){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-reduce").left,re=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("reduce",function(de){var x=arguments.length;return E(re(this),de,x,x>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(y,Pe,ye){"use strict";var z=y("../internals/array-buffer-view-core"),E=z.aTypedArray,re=z.exportTypedArrayMethod,oe=Math.floor;re("reverse",function(){for(var de=this,x=E(de).length,ae=oe(x/2),ie=0,se;ie<ae;)se=de[ie],de[ie++]=de[--x],de[x]=se;return de})},{"../internals/array-buffer-view-core":103}],331:[function(y,Pe,ye){"use strict";var z=y("../internals/global"),E=y("../internals/function-call"),re=y("../internals/array-buffer-view-core"),oe=y("../internals/length-of-array-like"),ee=y("../internals/to-offset"),de=y("../internals/to-object"),x=y("../internals/fails"),ae=z.RangeError,ie=z.Int8Array,se=ie&&ie.prototype,ue=se&&se.set,pe=re.aTypedArray,he=re.exportTypedArrayMethod,ge=!x(function(){var xe=new Uint8ClampedArray(2);return E(ue,xe,{length:1,0:3},1),xe[1]!==3}),me=ge&&re.NATIVE_ARRAY_BUFFER_VIEWS&&x(function(){var xe=new ie(2);return xe.set(1),xe.set("2",1),xe[0]!==0||xe[1]!==2});he("set",function(Ae){pe(this);var Ne=ee(arguments.length>1?arguments[1]:void 0,1),Be=de(Ae);if(ge)return E(ue,this,Be,Ne);var De=this.length,we=oe(Be),Ce=0;if(we+Ne>De)throw ae("Wrong length");for(;Ce<we;)this[Ne+Ce]=Be[Ce++]},!ge||me)},{"../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,Pe,ye){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/typed-array-species-constructor"),re=y("../internals/fails"),oe=y("../internals/array-slice"),ee=z.aTypedArray,de=z.exportTypedArrayMethod,x=re(function(){new Int8Array(1).slice()});de("slice",function(ie,se){for(var ue=oe(ee(this),ie,se),pe=E(this),he=0,ge=ue.length,me=new pe(ge);ge>he;)me[he]=ue[he++];return me},x)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(y,Pe,ye){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").some,re=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("some",function(de){return E(re(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(y,Pe,ye){"use strict";var z=y("../internals/global"),E=y("../internals/function-uncurry-this"),re=y("../internals/fails"),oe=y("../internals/a-callable"),ee=y("../internals/array-sort"),de=y("../internals/array-buffer-view-core"),x=y("../internals/engine-ff-version"),ae=y("../internals/engine-is-ie-or-edge"),ie=y("../internals/engine-v8-version"),se=y("../internals/engine-webkit-version"),ue=de.aTypedArray,pe=de.exportTypedArrayMethod,he=z.Uint16Array,ge=he&&E(he.prototype.sort),me=!!ge&&!(re(function(){ge(new he(2),null)})&&re(function(){ge(new he(2),{})})),xe=!!ge&&!re(function(){if(ie)return ie<74;if(x)return x<67;if(ae)return!0;if(se)return se<602;var Ne=new he(516),Be=Array(516),De,we;for(De=0;De<516;De++)we=De%4,Ne[De]=515-De,Be[De]=De-2*we+3;for(ge(Ne,function(Ce,Oe){return(Ce/4|0)-(Oe/4|0)}),De=0;De<516;De++)if(Ne[De]!==Be[De])return!0}),Ae=function(Ne){return function(Be,De){return Ne!==void 0?+Ne(Be,De)||0:De!==De?-1:Be!==Be?1:Be===0&&De===0?1/Be>0&&1/De<0?1:-1:Be>De}};pe("sort",function(Be){return Be!==void 0&&oe(Be),xe?ge(this,Be):ee(ue(this),Ae(Be))},!xe||me)},{"../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,Pe,ye){"use strict";var z=y("../internals/array-buffer-view-core"),E=y("../internals/to-length"),re=y("../internals/to-absolute-index"),oe=y("../internals/typed-array-species-constructor"),ee=z.aTypedArray,de=z.exportTypedArrayMethod;de("subarray",function(ae,ie){var se=ee(this),ue=se.length,pe=re(ae,ue),he=oe(se);return new he(se.buffer,se.byteOffset+pe*se.BYTES_PER_ELEMENT,E((ie===void 0?ue:re(ie,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,Pe,ye){"use strict";var z=y("../internals/global"),E=y("../internals/function-apply"),re=y("../internals/array-buffer-view-core"),oe=y("../internals/fails"),ee=y("../internals/array-slice"),de=z.Int8Array,x=re.aTypedArray,ae=re.exportTypedArrayMethod,ie=[].toLocaleString,se=!!de&&oe(function(){ie.call(new de(1))}),ue=oe(function(){return[1,2].toLocaleString()!=new de([1,2]).toLocaleString()})||!oe(function(){de.prototype.toLocaleString.call([1,2])});ae("toLocaleString",function(){return E(ie,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,Pe,ye){"use strict";var z=y("../internals/array-buffer-view-core").exportTypedArrayMethod,E=y("../internals/fails"),re=y("../internals/global"),oe=y("../internals/function-uncurry-this"),ee=re.Uint8Array,de=ee&&ee.prototype||{},x=[].toString,ae=oe([].join);E(function(){x.call({})})&&(x=function(){return ae(this)});var ie=de.toString!=x;z("toString",x,ie)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(y,Pe,ye){var z=y("../internals/typed-array-constructor");z("Uint8",function(E){return function(oe,ee,de){return E(this,oe,ee,de)}})},{"../internals/typed-array-constructor":258}],339:[function(y,Pe,ye){var z=y("../internals/global"),E=y("../internals/dom-iterables"),re=y("../internals/dom-token-list-prototype"),oe=y("../internals/array-for-each"),ee=y("../internals/create-non-enumerable-property"),de=function(ae){if(ae&&ae.forEach!==oe)try{ee(ae,"forEach",oe)}catch(ie){ae.forEach=oe}};for(var x in E)E[x]&&de(z[x]&&z[x].prototype);de(re)},{"../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,Pe,ye){var z=y("../internals/global"),E=y("../internals/dom-iterables"),re=y("../internals/dom-token-list-prototype"),oe=y("../modules/es.array.iterator"),ee=y("../internals/create-non-enumerable-property"),de=y("../internals/well-known-symbol"),x=de("iterator"),ae=de("toStringTag"),ie=oe.values,se=function(pe,he){if(pe){if(pe[x]!==ie)try{ee(pe,x,ie)}catch(me){pe[x]=ie}if(pe[ae]||ee(pe,ae,he),E[he]){for(var ge in oe)if(pe[ge]!==oe[ge])try{ee(pe,ge,oe[ge])}catch(me){pe[ge]=oe[ge]}}}};for(var ue in E)se(z[ue]&&z[ue].prototype,ue);se(re,"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,Pe,ye){function z(xe){return Array.isArray?Array.isArray(xe):me(xe)==="[object Array]"}ye.isArray=z;function E(xe){return typeof xe=="boolean"}ye.isBoolean=E;function re(xe){return xe===null}ye.isNull=re;function oe(xe){return xe==null}ye.isNullOrUndefined=oe;function ee(xe){return typeof xe=="number"}ye.isNumber=ee;function de(xe){return typeof xe=="string"}ye.isString=de;function x(xe){return typeof xe=="symbol"}ye.isSymbol=x;function ae(xe){return xe===void 0}ye.isUndefined=ae;function ie(xe){return me(xe)==="[object RegExp]"}ye.isRegExp=ie;function se(xe){return typeof xe=="object"&&xe!==null}ye.isObject=se;function ue(xe){return me(xe)==="[object Date]"}ye.isDate=ue;function pe(xe){return me(xe)==="[object Error]"||xe instanceof Error}ye.isError=pe;function he(xe){return typeof xe=="function"}ye.isFunction=he;function ge(xe){return xe===null||typeof xe=="boolean"||typeof xe=="number"||typeof xe=="string"||typeof xe=="symbol"||typeof xe=="undefined"}ye.isPrimitive=ge,ye.isBuffer=y("buffer").Buffer.isBuffer;function me(xe){return Object.prototype.toString.call(xe)}},{buffer:90}],342:[function(y,Pe,ye){(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,ie=/[^-+\dA-Z]/g;return function(se,ue,pe,he){if(arguments.length===1&&de(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 ge=ue.slice(0,4);(ge==="UTC:"||ge==="GMT:")&&(ue=ue.slice(4),pe=!0,ge==="GMT:"&&(he=!0));var me=pe?"getUTC":"get",xe=se[me+"Date"](),Ae=se[me+"Day"](),Ne=se[me+"Month"](),Be=se[me+"FullYear"](),De=se[me+"Hours"](),we=se[me+"Minutes"](),Ce=se[me+"Seconds"](),Oe=se[me+"Milliseconds"](),je=pe?0:se.getTimezoneOffset(),Fe=oe(se),ke=ee(se),Ee={d:xe,dd:re(xe),ddd:E.i18n.dayNames[Ae],dddd:E.i18n.dayNames[Ae+7],m:Ne+1,mm:re(Ne+1),mmm:E.i18n.monthNames[Ne],mmmm:E.i18n.monthNames[Ne+12],yy:String(Be).slice(2),yyyy:Be,h:De%12||12,hh:re(De%12||12),H:De,HH:re(De),M:we,MM:re(we),s:Ce,ss:re(Ce),l:re(Oe,3),L:re(Math.round(Oe/10)),t:De<12?"a":"p",tt:De<12?"am":"pm",T:De<12?"A":"P",TT:De<12?"AM":"PM",Z:he?"GMT":pe?"UTC":(String(se).match(ae)||[""]).pop().replace(ie,""),o:(je>0?"-":"+")+re(Math.floor(Math.abs(je)/60)*100+Math.abs(je)%60,4),S:["th","st","nd","rd"][xe%10>3?0:(xe%100-xe%10!=10)*xe%10],W:Fe,N:ke};return ue.replace(x,function(Ge){return Ge in Ee?Ee[Ge]:Ge.slice(1,Ge.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 re(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 ie=new Date(ae.getFullYear(),0,4);ie.setDate(ie.getDate()-(ie.getDay()+6)%7+3);var se=ae.getTimezoneOffset()-ie.getTimezoneOffset();ae.setHours(ae.getHours()-se);var ue=(ae-ie)/(864e5*7);return 1+Math.floor(ue)}function ee(x){var ae=x.getDay();return ae===0&&(ae=7),ae}function de(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 ye=="object"?Pe.exports=E:z.dateFormat=E})(this)},{}],343:[function(y,Pe,ye){"use strict";var z=/["'&<>]/;Pe.exports=E;function E(re){var oe=""+re,ee=z.exec(oe);if(!ee)return oe;var de,x="",ae=0,ie=0;for(ae=ee.index;ae<oe.length;ae++){switch(oe.charCodeAt(ae)){case 34:de="&quot;";break;case 38:de="&amp;";break;case 39:de="&#39;";break;case 60:de="&lt;";break;case 62:de="&gt;";break;default:continue}ie!==ae&&(x+=oe.substring(ie,ae)),ie=ae+1,x+=de}return ie!==ae?x+oe.substring(ie,ae):x}},{}],344:[function(y,Pe,ye){"use strict";var z=typeof Reflect=="object"?Reflect:null,E=z&&typeof z.apply=="function"?z.apply:function(Ce,Oe,je){return Function.prototype.apply.call(Ce,Oe,je)},re;z&&typeof z.ownKeys=="function"?re=z.ownKeys:Object.getOwnPropertySymbols?re=function(Ce){return Object.getOwnPropertyNames(Ce).concat(Object.getOwnPropertySymbols(Ce))}:re=function(Ce){return Object.getOwnPropertyNames(Ce)};function oe(we){console&&console.warn&&console.warn(we)}var ee=Number.isNaN||function(Ce){return Ce!==Ce};function de(){de.init.call(this)}Pe.exports=de,Pe.exports.once=Ne,de.EventEmitter=de,de.prototype._events=void 0,de.prototype._eventsCount=0,de.prototype._maxListeners=void 0;var x=10;function ae(we){if(typeof we!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof we)}Object.defineProperty(de,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(we){if(typeof we!="number"||we<0||ee(we))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+we+".");x=we}}),de.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},de.prototype.setMaxListeners=function(Ce){if(typeof Ce!="number"||Ce<0||ee(Ce))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Ce+".");return this._maxListeners=Ce,this};function ie(we){return we._maxListeners===void 0?de.defaultMaxListeners:we._maxListeners}de.prototype.getMaxListeners=function(){return ie(this)},de.prototype.emit=function(Ce){for(var Oe=[],je=1;je<arguments.length;je++)Oe.push(arguments[je]);var Fe=Ce==="error",ke=this._events;if(ke!==void 0)Fe=Fe&&ke.error===void 0;else if(!Fe)return!1;if(Fe){var Ee;if(Oe.length>0&&(Ee=Oe[0]),Ee instanceof Error)throw Ee;var Ge=new Error("Unhandled error."+(Ee?" ("+Ee.message+")":""));throw Ge.context=Ee,Ge}var Ke=ke[Ce];if(Ke===void 0)return!1;if(typeof Ke=="function")E(Ke,this,Oe);else for(var Ve=Ke.length,it=me(Ke,Ve),je=0;je<Ve;++je)E(it[je],this,Oe);return!0};function se(we,Ce,Oe,je){var Fe,ke,Ee;if(ae(Oe),ke=we._events,ke===void 0?(ke=we._events=Object.create(null),we._eventsCount=0):(ke.newListener!==void 0&&(we.emit("newListener",Ce,Oe.listener?Oe.listener:Oe),ke=we._events),Ee=ke[Ce]),Ee===void 0)Ee=ke[Ce]=Oe,++we._eventsCount;else if(typeof Ee=="function"?Ee=ke[Ce]=je?[Oe,Ee]:[Ee,Oe]:je?Ee.unshift(Oe):Ee.push(Oe),Fe=ie(we),Fe>0&&Ee.length>Fe&&!Ee.warned){Ee.warned=!0;var Ge=new Error("Possible EventEmitter memory leak detected. "+Ee.length+" "+String(Ce)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ge.name="MaxListenersExceededWarning",Ge.emitter=we,Ge.type=Ce,Ge.count=Ee.length,oe(Ge)}return we}de.prototype.addListener=function(Ce,Oe){return se(this,Ce,Oe,!1)},de.prototype.on=de.prototype.addListener,de.prototype.prependListener=function(Ce,Oe){return se(this,Ce,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(we,Ce,Oe){var je={fired:!1,wrapFn:void 0,target:we,type:Ce,listener:Oe},Fe=ue.bind(je);return Fe.listener=Oe,je.wrapFn=Fe,Fe}de.prototype.once=function(Ce,Oe){return ae(Oe),this.on(Ce,pe(this,Ce,Oe)),this},de.prototype.prependOnceListener=function(Ce,Oe){return ae(Oe),this.prependListener(Ce,pe(this,Ce,Oe)),this},de.prototype.removeListener=function(Ce,Oe){var je,Fe,ke,Ee,Ge;if(ae(Oe),Fe=this._events,Fe===void 0)return this;if(je=Fe[Ce],je===void 0)return this;if(je===Oe||je.listener===Oe)--this._eventsCount===0?this._events=Object.create(null):(delete Fe[Ce],Fe.removeListener&&this.emit("removeListener",Ce,je.listener||Oe));else if(typeof je!="function"){for(ke=-1,Ee=je.length-1;Ee>=0;Ee--)if(je[Ee]===Oe||je[Ee].listener===Oe){Ge=je[Ee].listener,ke=Ee;break}if(ke<0)return this;ke===0?je.shift():xe(je,ke),je.length===1&&(Fe[Ce]=je[0]),Fe.removeListener!==void 0&&this.emit("removeListener",Ce,Ge||Oe)}return this},de.prototype.off=de.prototype.removeListener,de.prototype.removeAllListeners=function(Ce){var Oe,je,Fe;if(je=this._events,je===void 0)return this;if(je.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):je[Ce]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete je[Ce]),this;if(arguments.length===0){var ke=Object.keys(je),Ee;for(Fe=0;Fe<ke.length;++Fe)Ee=ke[Fe],Ee!=="removeListener"&&this.removeAllListeners(Ee);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Oe=je[Ce],typeof Oe=="function")this.removeListener(Ce,Oe);else if(Oe!==void 0)for(Fe=Oe.length-1;Fe>=0;Fe--)this.removeListener(Ce,Oe[Fe]);return this};function he(we,Ce,Oe){var je=we._events;if(je===void 0)return[];var Fe=je[Ce];return Fe===void 0?[]:typeof Fe=="function"?Oe?[Fe.listener||Fe]:[Fe]:Oe?Ae(Fe):me(Fe,Fe.length)}de.prototype.listeners=function(Ce){return he(this,Ce,!0)},de.prototype.rawListeners=function(Ce){return he(this,Ce,!1)},de.listenerCount=function(we,Ce){return typeof we.listenerCount=="function"?we.listenerCount(Ce):ge.call(we,Ce)},de.prototype.listenerCount=ge;function ge(we){var Ce=this._events;if(Ce!==void 0){var Oe=Ce[we];if(typeof Oe=="function")return 1;if(Oe!==void 0)return Oe.length}return 0}de.prototype.eventNames=function(){return this._eventsCount>0?re(this._events):[]};function me(we,Ce){for(var Oe=new Array(Ce),je=0;je<Ce;++je)Oe[je]=we[je];return Oe}function xe(we,Ce){for(;Ce+1<we.length;Ce++)we[Ce]=we[Ce+1];we.pop()}function Ae(we){for(var Ce=new Array(we.length),Oe=0;Oe<Ce.length;++Oe)Ce[Oe]=we[Oe].listener||we[Oe];return Ce}function Ne(we,Ce){return new Promise(function(Oe,je){function Fe(Ee){we.removeListener(Ce,ke),je(Ee)}function ke(){typeof we.removeListener=="function"&&we.removeListener("error",Fe),Oe([].slice.call(arguments))}De(we,Ce,ke,{once:!0}),Ce!=="error"&&Be(we,Fe,{once:!0})})}function Be(we,Ce,Oe){typeof we.on=="function"&&De(we,"error",Ce,Oe)}function De(we,Ce,Oe,je){if(typeof we.on=="function")je.once?we.once(Ce,Oe):we.on(Ce,Oe);else if(typeof we.addEventListener=="function")we.addEventListener(Ce,function Fe(ke){je.once&&we.removeEventListener(Ce,Fe),Oe(ke)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof we)}},{}],345:[function(y,Pe,ye){"use strict";var z=y("is-callable"),E=Object.prototype.toString,re=Object.prototype.hasOwnProperty,oe=function(ie,se,ue){for(var pe=0,he=ie.length;pe<he;pe++)re.call(ie,pe)&&(ue==null?se(ie[pe],pe,ie):se.call(ue,ie[pe],pe,ie))},ee=function(ie,se,ue){for(var pe=0,he=ie.length;pe<he;pe++)ue==null?se(ie.charAt(pe),pe,ie):se.call(ue,ie.charAt(pe),pe,ie)},de=function(ie,se,ue){for(var pe in ie)re.call(ie,pe)&&(ue==null?se(ie[pe],pe,ie):se.call(ue,ie[pe],pe,ie))},x=function(ie,se,ue){if(!z(se))throw new TypeError("iterator must be a function");var pe;arguments.length>=3&&(pe=ue),E.call(ie)==="[object Array]"?oe(ie,se,pe):typeof ie=="string"?ee(ie,se,pe):de(ie,se,pe)};Pe.exports=x},{"is-callable":367}],346:[function(y,Pe,ye){"use strict";var z="Function.prototype.bind called on incompatible ",E=Array.prototype.slice,re=Object.prototype.toString,oe="[object Function]";Pe.exports=function(de){var x=this;if(typeof x!="function"||re.call(x)!==oe)throw new TypeError(z+x);for(var ae=E.call(arguments,1),ie,se=function(){if(this instanceof ie){var me=x.apply(this,ae.concat(E.call(arguments)));return Object(me)===me?me:this}else return x.apply(de,ae.concat(E.call(arguments)))},ue=Math.max(0,x.length-ae.length),pe=[],he=0;he<ue;he++)pe.push("$"+he);if(ie=Function("binder","return function ("+pe.join(",")+"){ return binder.apply(this,arguments); }")(se),x.prototype){var ge=function(){};ge.prototype=x.prototype,ie.prototype=new ge,ge.prototype=null}return ie}},{}],347:[function(y,Pe,ye){"use strict";var z=y("./implementation");Pe.exports=Function.prototype.bind||z},{"./implementation":346}],348:[function(y,Pe,ye){"use strict";var z,E=SyntaxError,re=Function,oe=TypeError,ee=function(Ke){try{return re('"use strict"; return ('+Ke+").constructor;")()}catch(Ve){}},de=Object.getOwnPropertyDescriptor;if(de)try{de({},"")}catch(Ke){de=null}var x=function(){throw new oe},ae=de?function(){try{return arguments.callee,x}catch(Ke){try{return de(arguments,"callee").get}catch(Ve){return x}}}():x,ie=y("has-symbols")(),se=y("has-proto")(),ue=Object.getPrototypeOf||(se?function(Ke){return Ke.__proto__}:null),pe={},he=typeof Uint8Array=="undefined"||!ue?z:ue(Uint8Array),ge={"%AggregateError%":typeof AggregateError=="undefined"?z:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?z:ArrayBuffer,"%ArrayIteratorPrototype%":ie&&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%":re,"%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%":ie&&ue?ue(ue([][Symbol.iterator]())):z,"%JSON%":typeof JSON=="object"?JSON:z,"%Map%":typeof Map=="undefined"?z:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!ie||!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"||!ie||!ue?z:ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?z:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ie&&ue?ue(""[Symbol.iterator]()):z,"%Symbol%":ie?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(Ke){var me=ue(ue(Ke));ge["%Error.prototype%"]=me}var xe=function Ke(Ve){var it;if(Ve==="%AsyncFunction%")it=ee("async function () {}");else if(Ve==="%GeneratorFunction%")it=ee("function* () {}");else if(Ve==="%AsyncGeneratorFunction%")it=ee("async function* () {}");else if(Ve==="%AsyncGenerator%"){var Le=Ke("%AsyncGeneratorFunction%");Le&&(it=Le.prototype)}else if(Ve==="%AsyncIteratorPrototype%"){var Ue=Ke("%AsyncGenerator%");Ue&&ue&&(it=ue(Ue.prototype))}return ge[Ve]=it,it},Ae={"%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"]},Ne=y("function-bind"),Be=y("has"),De=Ne.call(Function.call,Array.prototype.concat),we=Ne.call(Function.apply,Array.prototype.splice),Ce=Ne.call(Function.call,String.prototype.replace),Oe=Ne.call(Function.call,String.prototype.slice),je=Ne.call(Function.call,RegExp.prototype.exec),Fe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ke=/\\(\\)?/g,Ee=function(Ve){var it=Oe(Ve,0,1),Le=Oe(Ve,-1);if(it==="%"&&Le!=="%")throw new E("invalid intrinsic syntax, expected closing `%`");if(Le==="%"&&it!=="%")throw new E("invalid intrinsic syntax, expected opening `%`");var Ue=[];return Ce(Ve,Fe,function(tt,nt,et,Ze){Ue[Ue.length]=et?Ce(Ze,ke,"$1"):nt||tt}),Ue},Ge=function(Ve,it){var Le=Ve,Ue;if(Be(Ae,Le)&&(Ue=Ae[Le],Le="%"+Ue[0]+"%"),Be(ge,Le)){var tt=ge[Le];if(tt===pe&&(tt=xe(Le)),typeof tt=="undefined"&&!it)throw new oe("intrinsic "+Ve+" exists, but is not available. Please file an issue!");return{alias:Ue,name:Le,value:tt}}throw new E("intrinsic "+Ve+" does not exist!")};Pe.exports=function(Ve,it){if(typeof Ve!="string"||Ve.length===0)throw new oe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof it!="boolean")throw new oe('"allowMissing" argument must be a boolean');if(je(/^%?[^%]*%?$/,Ve)===null)throw new E("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Le=Ee(Ve),Ue=Le.length>0?Le[0]:"",tt=Ge("%"+Ue+"%",it),nt=tt.name,et=tt.value,Ze=!1,Ye=tt.alias;Ye&&(Ue=Ye[0],we(Le,De([0,1],Ye)));for(var Xe=1,st=!0;Xe<Le.length;Xe+=1){var Qe=Le[Xe],ht=Oe(Qe,0,1),at=Oe(Qe,-1);if((ht==='"'||ht==="'"||ht==="`"||at==='"'||at==="'"||at==="`")&&ht!==at)throw new E("property names with quotes must have matching quotes");if((Qe==="constructor"||!st)&&(Ze=!0),Ue+="."+Qe,nt="%"+Ue+"%",Be(ge,nt))et=ge[nt];else if(et!=null){if(!(Qe in et)){if(!it)throw new oe("base intrinsic for "+Ve+" exists, but the property is not available.");return}if(de&&Xe+1>=Le.length){var qe=de(et,Qe);st=!!qe,st&&"get"in qe&&!("originalValue"in qe.get)?et=qe.get:et=et[Qe]}else st=Be(et,Qe),et=et[Qe];st&&!Ze&&(ge[nt]=et)}}return et}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(y,Pe,ye){"use strict";var z=y("get-intrinsic"),E=z("%Object.getOwnPropertyDescriptor%",!0);if(E)try{E([],"length")}catch(re){E=null}Pe.exports=E},{"get-intrinsic":348}],350:[function(y,Pe,ye){"use strict";var z={foo:{}},E=Object;Pe.exports=function(){return{__proto__:z}.foo===z.foo&&!({__proto__:null}instanceof E)}},{}],351:[function(y,Pe,ye){"use strict";var z=typeof Symbol!="undefined"&&Symbol,E=y("./shams");Pe.exports=function(){return typeof z!="function"||typeof Symbol!="function"||typeof z("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:E()}},{"./shams":352}],352:[function(y,Pe,ye){"use strict";Pe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var E={},re=Symbol("test"),oe=Object(re);if(typeof re=="string"||Object.prototype.toString.call(re)!=="[object Symbol]"||Object.prototype.toString.call(oe)!=="[object Symbol]")return!1;var ee=42;E[re]=ee;for(re 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 de=Object.getOwnPropertySymbols(E);if(de.length!==1||de[0]!==re||!Object.prototype.propertyIsEnumerable.call(E,re))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var x=Object.getOwnPropertyDescriptor(E,re);if(x.value!==ee||x.enumerable!==!0)return!1}return!0}},{}],353:[function(y,Pe,ye){"use strict";var z=y("has-symbols/shams");Pe.exports=function(){return z()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(y,Pe,ye){"use strict";var z=y("function-bind");Pe.exports=z.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(y,Pe,ye){var z=y("http"),E=y("url"),re=Pe.exports;for(var oe in z)z.hasOwnProperty(oe)&&(re[oe]=z[oe]);re.request=function(de,x){return de=ee(de),z.request.call(this,de,x)},re.get=function(de,x){return de=ee(de),z.get.call(this,de,x)};function ee(de){if(typeof de=="string"&&(de=E.parse(de)),de.protocol||(de.protocol="https:"),de.protocol!=="https:")throw new Error('Protocol "'+de.protocol+'" not supported. Expected "https:"');return de}},{http:468,url:472}],356:[function(y,Pe,ye){"use strict";var z=y("util"),E=y("ms");Pe.exports=function(re){if(typeof re=="number")return re;var oe=E(re);if(oe===void 0){var ee=new Error(z.format("humanize-ms(%j) result undefined",re));console.warn(ee.stack)}return oe}},{ms:376,util:419}],357:[function(y,Pe,ye){ye.read=function(z,E,re,oe,ee){var de,x,ae=ee*8-oe-1,ie=(1<<ae)-1,se=ie>>1,ue=-7,pe=re?ee-1:0,he=re?-1:1,ge=z[E+pe];for(pe+=he,de=ge&(1<<-ue)-1,ge>>=-ue,ue+=ae;ue>0;de=de*256+z[E+pe],pe+=he,ue-=8);for(x=de&(1<<-ue)-1,de>>=-ue,ue+=oe;ue>0;x=x*256+z[E+pe],pe+=he,ue-=8);if(de===0)de=1-se;else{if(de===ie)return x?NaN:(ge?-1:1)*(1/0);x=x+Math.pow(2,oe),de=de-se}return(ge?-1:1)*x*Math.pow(2,de-oe)},ye.write=function(z,E,re,oe,ee,de){var x,ae,ie,se=de*8-ee-1,ue=(1<<se)-1,pe=ue>>1,he=ee===23?Math.pow(2,-24)-Math.pow(2,-77):0,ge=oe?0:de-1,me=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*(ie=Math.pow(2,-x))<1&&(x--,ie*=2),x+pe>=1?E+=he/ie:E+=he*Math.pow(2,1-pe),E*ie>=2&&(x++,ie/=2),x+pe>=ue?(ae=0,x=ue):x+pe>=1?(ae=(E*ie-1)*Math.pow(2,ee),x=x+pe):(ae=E*Math.pow(2,pe-1)*Math.pow(2,ee),x=0));ee>=8;z[re+ge]=ae&255,ge+=me,ae/=256,ee-=8);for(x=x<<ee|ae,se+=ee;se>0;z[re+ge]=x&255,ge+=me,x/=256,se-=8);z[re+ge-me]|=xe*128}},{}],358:[function(y,Pe,ye){"use strict";var z=[y("./nextTick"),y("./queueMicrotask"),y("./mutation.js"),y("./messageChannel"),y("./stateChange"),y("./timeout")],E,re,oe=-1,ee=[],de=!1;function x(){!E||!re||(E=!1,re.length?ee=re.concat(ee):oe=-1,ee.length&&ae())}function ae(){if(!E){de=!1,E=!0;for(var ge=ee.length,me=setTimeout(x);ge;){for(re=ee,ee=[];re&&++oe<ge;)re[oe].run();oe=-1,ge=ee.length}re=null,oe=-1,E=!1,clearTimeout(me)}}for(var ie,se=-1,ue=z.length;++se<ue;)if(z[se]&&z[se].test&&z[se].test()){ie=z[se].install(ae);break}function pe(ge,me){this.fun=ge,this.array=me}pe.prototype.run=function(){var ge=this.fun,me=this.array;switch(me.length){case 0:return ge();case 1:return ge(me[0]);case 2:return ge(me[0],me[1]);case 3:return ge(me[0],me[1],me[2]);default:return ge.apply(null,me)}},Pe.exports=he;function he(ge){var me=new Array(arguments.length-1);if(arguments.length>1)for(var xe=1;xe<arguments.length;xe++)me[xe-1]=arguments[xe];ee.push(new pe(ge,me)),!de&&!E&&(de=!0,ie())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(y,Pe,ye){(function(z){(function(){"use strict";ye.test=function(){return z.setImmediate?!1:typeof z.MessageChannel!="undefined"},ye.install=function(E){var re=new z.MessageChannel;return re.port1.onmessage=E,function(){re.port2.postMessage(0)}}}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(y,Pe,ye){(function(z){(function(){"use strict";var E=z.MutationObserver||z.WebKitMutationObserver;ye.test=function(){return E},ye.install=function(re){var oe=0,ee=new E(re),de=z.document.createTextNode("");return ee.observe(de,{characterData:!0}),function(){de.data=oe=++oe%2}}}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(y,Pe,ye){(function(z){(function(){"use strict";ye.test=function(){return typeof z.queueMicrotask=="function"},ye.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,Pe,ye){(function(z){(function(){"use strict";ye.test=function(){return"document"in z&&"onreadystatechange"in z.document.createElement("script")},ye.install=function(E){return function(){var re=z.document.createElement("script");return re.onreadystatechange=function(){E(),re.onreadystatechange=null,re.parentNode.removeChild(re),re=null},z.document.documentElement.appendChild(re),E}}}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(y,Pe,ye){"use strict";ye.test=function(){return!0},ye.install=function(z){return function(){setTimeout(z,0)}}},{}],364:[function(y,Pe,ye){typeof Object.create=="function"?Pe.exports=function(E,re){re&&(E.super_=re,E.prototype=Object.create(re.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}))}:Pe.exports=function(E,re){if(re){E.super_=re;var oe=function(){};oe.prototype=re.prototype,E.prototype=new oe,E.prototype.constructor=E}}},{}],365:[function(y,Pe,ye){"use strict";var z=y("has-tostringtag/shams")(),E=y("call-bind/callBound"),re=E("Object.prototype.toString"),oe=function(ae){return z&&ae&&typeof ae=="object"&&Symbol.toStringTag in ae?!1:re(ae)==="[object Arguments]"},ee=function(ae){return oe(ae)?!0:ae!==null&&typeof ae=="object"&&typeof ae.length=="number"&&ae.length>=0&&re(ae)!=="[object Array]"&&re(ae.callee)==="[object Function]"},de=function(){return oe(arguments)}();oe.isLegacyArguments=ee,Pe.exports=de?oe:ee},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(y,Pe,ye){Pe.exports=function(re){return re!=null&&(z(re)||E(re)||!!re._isBuffer)};function z(re){return!!re.constructor&&typeof re.constructor.isBuffer=="function"&&re.constructor.isBuffer(re)}function E(re){return typeof re.readFloatLE=="function"&&typeof re.slice=="function"&&z(re.slice(0,0))}},{}],367:[function(y,Pe,ye){"use strict";var z=Function.prototype.toString,E=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,re,oe;if(typeof E=="function"&&typeof Object.defineProperty=="function")try{re=Object.defineProperty({},"length",{get:function(){throw oe}}),oe={},E(function(){throw 42},null,re)}catch(Be){Be!==oe&&(E=null)}else E=null;var ee=/^\s*class\b/,de=function(De){try{var we=z.call(De);return ee.test(we)}catch(Ce){return!1}},x=function(De){try{return de(De)?!1:(z.call(De),!0)}catch(we){return!1}},ae=Object.prototype.toString,ie="[object Object]",se="[object Function]",ue="[object GeneratorFunction]",pe="[object HTMLAllCollection]",he="[object HTML document.all class]",ge="[object HTMLCollection]",me=typeof Symbol=="function"&&!!Symbol.toStringTag,xe=!(0 in[,]),Ae=function(){return!1};if(typeof document=="object"){var Ne=document.all;ae.call(Ne)===ae.call(document.all)&&(Ae=function(De){if((xe||!De)&&(typeof De=="undefined"||typeof De=="object"))try{var we=ae.call(De);return(we===pe||we===he||we===ge||we===ie)&&De("")==null}catch(Ce){}return!1})}Pe.exports=E?function(De){if(Ae(De))return!0;if(!De||typeof De!="function"&&typeof De!="object")return!1;try{E(De,null,re)}catch(we){if(we!==oe)return!1}return!de(De)&&x(De)}:function(De){if(Ae(De))return!0;if(!De||typeof De!="function"&&typeof De!="object")return!1;if(me)return x(De);if(de(De))return!1;var we=ae.call(De);return we!==se&&we!==ue&&!/^\[object HTML/.test(we)?!1:x(De)}},{}],368:[function(y,Pe,ye){"use strict";var z=Object.prototype.toString,E=Function.prototype.toString,re=/^\s*(?:function)?\*/,oe=y("has-tostringtag/shams")(),ee=Object.getPrototypeOf,de=function(){if(!oe)return!1;try{return Function("return function*() {}")()}catch(ae){}},x;Pe.exports=function(ie){if(typeof ie!="function")return!1;if(re.test(E.call(ie)))return!0;if(!oe){var se=z.call(ie);return se==="[object GeneratorFunction]"}if(!ee)return!1;if(typeof x=="undefined"){var ue=de();x=ue?ee(ue):!1}return ee(ie)===x}},{"has-tostringtag/shams":353}],369:[function(y,Pe,ye){"use strict";var z=y("which-typed-array");Pe.exports=function(re){return!!z(re)}},{"which-typed-array":420}],370:[function(y,Pe,ye){var z={}.toString;Pe.exports=Array.isArray||function(E){return z.call(E)=="[object Array]"}},{}],371:[function(y,Pe,ye){(function(z){(function(){(function(E,re){typeof ye=="object"&&typeof Pe!="undefined"?Pe.exports=re(E):typeof Te=="function"&&Te.amd?Te(re):re(E)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof z!="undefined"?z:this,function(E){"use strict";E=E||{};var re=E.Base64,oe="2.6.4",ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",de=function(Ve){for(var it={},Le=0,Ue=Ve.length;Le<Ue;Le++)it[Ve.charAt(Le)]=Le;return it}(ee),x=String.fromCharCode,ae=function(Ve){if(Ve.length<2){var it=Ve.charCodeAt(0);return it<128?Ve:it<2048?x(192|it>>>6)+x(128|it&63):x(224|it>>>12&15)+x(128|it>>>6&63)+x(128|it&63)}else{var it=65536+(Ve.charCodeAt(0)-55296)*1024+(Ve.charCodeAt(1)-56320);return x(240|it>>>18&7)+x(128|it>>>12&63)+x(128|it>>>6&63)+x(128|it&63)}},ie=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,se=function(Ve){return Ve.replace(ie,ae)},ue=function(Ve){var it=[0,2,1][Ve.length%3],Le=Ve.charCodeAt(0)<<16|(Ve.length>1?Ve.charCodeAt(1):0)<<8|(Ve.length>2?Ve.charCodeAt(2):0),Ue=[ee.charAt(Le>>>18),ee.charAt(Le>>>12&63),it>=2?"=":ee.charAt(Le>>>6&63),it>=1?"=":ee.charAt(Le&63)];return Ue.join("")},pe=E.btoa&&typeof E.btoa=="function"?function(Ve){return E.btoa(Ve)}:function(Ve){if(Ve.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ve.replace(/[\s\S]{1,3}/g,ue)},he=function(Ve){return pe(se(String(Ve)))},ge=function(Ve){return Ve.replace(/[+\/]/g,function(it){return it=="+"?"-":"_"}).replace(/=/g,"")},me=function(Ve,it){return it?ge(he(Ve)):he(Ve)},xe=function(Ve){return me(Ve,!0)},Ae;E.Uint8Array&&(Ae=function(Ve,it){for(var Le="",Ue=0,tt=Ve.length;Ue<tt;Ue+=3){var nt=Ve[Ue],et=Ve[Ue+1],Ze=Ve[Ue+2],Ye=nt<<16|et<<8|Ze;Le+=ee.charAt(Ye>>>18)+ee.charAt(Ye>>>12&63)+(typeof et!="undefined"?ee.charAt(Ye>>>6&63):"=")+(typeof Ze!="undefined"?ee.charAt(Ye&63):"=")}return it?ge(Le):Le});var Ne=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Be=function(Ve){switch(Ve.length){case 4:var it=(7&Ve.charCodeAt(0))<<18|(63&Ve.charCodeAt(1))<<12|(63&Ve.charCodeAt(2))<<6|63&Ve.charCodeAt(3),Le=it-65536;return x((Le>>>10)+55296)+x((Le&1023)+56320);case 3:return x((15&Ve.charCodeAt(0))<<12|(63&Ve.charCodeAt(1))<<6|63&Ve.charCodeAt(2));default:return x((31&Ve.charCodeAt(0))<<6|63&Ve.charCodeAt(1))}},De=function(Ve){return Ve.replace(Ne,Be)},we=function(Ve){var it=Ve.length,Le=it%4,Ue=(it>0?de[Ve.charAt(0)]<<18:0)|(it>1?de[Ve.charAt(1)]<<12:0)|(it>2?de[Ve.charAt(2)]<<6:0)|(it>3?de[Ve.charAt(3)]:0),tt=[x(Ue>>>16),x(Ue>>>8&255),x(Ue&255)];return tt.length-=[0,0,2,1][Le],tt.join("")},Ce=E.atob&&typeof E.atob=="function"?function(Ve){return E.atob(Ve)}:function(Ve){return Ve.replace(/\S{1,4}/g,we)},Oe=function(Ve){return Ce(String(Ve).replace(/[^A-Za-z0-9\+\/]/g,""))},je=function(Ve){return De(Ce(Ve))},Fe=function(Ve){return String(Ve).replace(/[-_]/g,function(it){return it=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ke=function(Ve){return je(Fe(Ve))},Ee;E.Uint8Array&&(Ee=function(Ve){return Uint8Array.from(Oe(Fe(Ve)),function(it){return it.charCodeAt(0)})});var Ge=function(){var Ve=E.Base64;return E.Base64=re,Ve};if(E.Base64={VERSION:oe,atob:Oe,btoa:pe,fromBase64:ke,toBase64:me,utob:se,encode:me,encodeURI:xe,btou:De,decode:ke,noConflict:Ge,fromUint8Array:Ae,toUint8Array:Ee},typeof Object.defineProperty=="function"){var Ke=function(Ve){return{value:Ve,enumerable:!1,writable:!0,configurable:!0}};E.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ke(function(){return ke(this)})),Object.defineProperty(String.prototype,"toBase64",Ke(function(Ve){return me(this,Ve)})),Object.defineProperty(String.prototype,"toBase64URI",Ke(function(){return me(this,!0)}))}}return E.Meteor&&(Base64=E.Base64),typeof Pe!="undefined"&&Pe.exports?Pe.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,Pe,ye){"use strict";Pe.exports=E;var z=Object.prototype.hasOwnProperty;function E(re,oe,ee){if(!re)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(re,x))){var ae=Object.getOwnPropertyDescriptor(oe,x);Object.defineProperty(re,x,ae)}}),re}},{}],373:[function(y,Pe,ye){"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,re){for(var oe in E){var ee=E[oe].map(function(ie){return ie.toLowerCase()});oe=oe.toLowerCase();for(var de=0;de<ee.length;de++){var x=ee[de];if(x[0]!=="*"){if(!re&&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(re||!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 re=E.replace(/^.*[/\\]/,"").toLowerCase(),oe=re.replace(/^.*\./,"").toLowerCase(),ee=re.length<E.length,de=oe.length<re.length-1;return(de||!ee)&&this._types[oe]||null},z.prototype.getExtension=function(E){return E=/^\s*([^;\s]*)/.test(E)&&RegExp.$1,E&&this._extensions[E.toLowerCase()]||null},Pe.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,Pe,ye){"use strict";var z=y("./Mime");Pe.exports=new z(y("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(y,Pe,ye){"use strict";Pe.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,Pe,ye){var z=1e3,E=z*60,re=E*60,oe=re*24,ee=oe*7,de=oe*365.25;Pe.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?ie(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]),ge=(pe[2]||"ms").toLowerCase();switch(ge){case"years":case"year":case"yrs":case"yr":case"y":return he*de;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*re;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>=re?Math.round(ue/re)+"h":pe>=E?Math.round(ue/E)+"m":pe>=z?Math.round(ue/z)+"s":ue+"ms"}function ie(ue){var pe=Math.abs(ue);return pe>=oe?se(ue,pe,oe,"day"):pe>=re?se(ue,pe,re,"hour"):pe>=E?se(ue,pe,E,"minute"):pe>=z?se(ue,pe,z,"second"):ue+" ms"}function se(ue,pe,he,ge){var me=pe>=he*1.5;return Math.round(ue/he)+" "+ge+(me?"s":"")}},{}],377:[function(y,Pe,ye){"use strict";var z=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable;function oe(de){if(de==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(de)}function ee(){try{if(!Object.assign)return!1;var de=new String("abc");if(de[5]="de",Object.getOwnPropertyNames(de)[0]==="5")return!1;for(var x={},ae=0;ae<10;ae++)x["_"+String.fromCharCode(ae)]=ae;var ie=Object.getOwnPropertyNames(x).map(function(ue){return x[ue]});if(ie.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}}Pe.exports=ee()?Object.assign:function(de,x){for(var ae,ie=oe(de),se,ue=1;ue<arguments.length;ue++){ae=Object(arguments[ue]);for(var pe in ae)E.call(ae,pe)&&(ie[pe]=ae[pe]);if(z){se=z(ae);for(var he=0;he<se.length;he++)re.call(ae,se[he])&&(ie[se[he]]=ae[se[he]])}}return ie}},{}],378:[function(y,Pe,ye){(function(z){(function(){"use strict";function E(de){if(typeof de!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(de))}function re(de,x){for(var ae="",ie=0,se=-1,ue=0,pe,he=0;he<=de.length;++he){if(he<de.length)pe=de.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||ie!==2||ae.charCodeAt(ae.length-1)!==46||ae.charCodeAt(ae.length-2)!==46){if(ae.length>2){var ge=ae.lastIndexOf("/");if(ge!==ae.length-1){ge===-1?(ae="",ie=0):(ae=ae.slice(0,ge),ie=ae.length-1-ae.lastIndexOf("/")),se=he,ue=0;continue}}else if(ae.length===2||ae.length===1){ae="",ie=0,se=he,ue=0;continue}}x&&(ae.length>0?ae+="/..":ae="..",ie=2)}else ae.length>0?ae+="/"+de.slice(se+1,he):ae=de.slice(se+1,he),ie=he-se-1;se=he,ue=0}else pe===46&&ue!==-1?++ue:ue=-1}return ae}function oe(de,x){var ae=x.dir||x.root,ie=x.base||(x.name||"")+(x.ext||"");return ae?ae===x.root?ae+ie:ae+de+ie:ie}var ee={resolve:function(){for(var x="",ae=!1,ie,se=arguments.length-1;se>=-1&&!ae;se--){var ue;se>=0?ue=arguments[se]:(ie===void 0&&(ie=z.cwd()),ue=ie),E(ue),ue.length!==0&&(x=ue+"/"+x,ae=ue.charCodeAt(0)===47)}return x=re(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,ie=x.charCodeAt(x.length-1)===47;return x=re(x,!ae),x.length===0&&!ae&&(x="."),x.length>0&&ie&&(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 ie=arguments[ae];E(ie),ie.length>0&&(x===void 0?x=ie:x+="/"+ie)}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 ie=1;ie<x.length&&x.charCodeAt(ie)===47;++ie);for(var se=x.length,ue=se-ie,pe=1;pe<ae.length&&ae.charCodeAt(pe)===47;++pe);for(var he=ae.length,ge=he-pe,me=ue<ge?ue:ge,xe=-1,Ae=0;Ae<=me;++Ae){if(Ae===me){if(ge>me){if(ae.charCodeAt(pe+Ae)===47)return ae.slice(pe+Ae+1);if(Ae===0)return ae.slice(pe+Ae)}else ue>me&&(x.charCodeAt(ie+Ae)===47?xe=Ae:Ae===0&&(xe=0));break}var Ne=x.charCodeAt(ie+Ae),Be=ae.charCodeAt(pe+Ae);if(Ne!==Be)break;Ne===47&&(xe=Ae)}var De="";for(Ae=ie+xe+1;Ae<=se;++Ae)(Ae===se||x.charCodeAt(Ae)===47)&&(De.length===0?De+="..":De+="/..");return De.length>0?De+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),ie=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?ie?"/":".":ie&&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 ie=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,ge=-1;for(pe=x.length-1;pe>=0;--pe){var me=x.charCodeAt(pe);if(me===47){if(!ue){ie=pe+1;break}}else ge===-1&&(ue=!1,ge=pe+1),he>=0&&(me===ae.charCodeAt(he)?--he===-1&&(se=pe):(he=-1,se=ge))}return ie===se?se=ge:se===-1&&(se=x.length),x.slice(ie,se)}else{for(pe=x.length-1;pe>=0;--pe)if(x.charCodeAt(pe)===47){if(!ue){ie=pe+1;break}}else se===-1&&(ue=!1,se=pe+1);return se===-1?"":x.slice(ie,se)}},extname:function(x){E(x);for(var ae=-1,ie=0,se=-1,ue=!0,pe=0,he=x.length-1;he>=0;--he){var ge=x.charCodeAt(he);if(ge===47){if(!ue){ie=he+1;break}continue}se===-1&&(ue=!1,se=he+1),ge===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===ie+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 ie=x.charCodeAt(0),se=ie===47,ue;se?(ae.root="/",ue=1):ue=0;for(var pe=-1,he=0,ge=-1,me=!0,xe=x.length-1,Ae=0;xe>=ue;--xe){if(ie=x.charCodeAt(xe),ie===47){if(!me){he=xe+1;break}continue}ge===-1&&(me=!1,ge=xe+1),ie===46?pe===-1?pe=xe:Ae!==1&&(Ae=1):pe!==-1&&(Ae=-1)}return pe===-1||ge===-1||Ae===0||Ae===1&&pe===ge-1&&pe===he+1?ge!==-1&&(he===0&&se?ae.base=ae.name=x.slice(1,ge):ae.base=ae.name=x.slice(he,ge)):(he===0&&se?(ae.name=x.slice(1,pe),ae.base=x.slice(1,ge)):(ae.name=x.slice(he,pe),ae.base=x.slice(he,ge)),ae.ext=x.slice(pe,ge)),he>0?ae.dir=x.slice(0,he-1):se&&(ae.dir="/"),ae},sep:"/",delimiter:":",win32:null,posix:null};ee.posix=ee,Pe.exports=ee}).call(this)}).call(this,y("_process"))},{_process:467}],379:[function(y,Pe,ye){(function(z){(function(){(function(){"use strict";var E={function:!0,object:!0},re=E[typeof window]&&window||this,oe=re,ee=E[typeof ye]&&ye,de=E[typeof Pe]&&Pe&&!Pe.nodeType&&Pe,x=ee&&de&&typeof z=="object"&&z;x&&(x.global===x||x.window===x||x.self===x)&&(re=x);var ae=Math.pow(2,53)-1,ie=/\bOpera/,se=this,ue=Object.prototype,pe=ue.hasOwnProperty,he=ue.toString;function ge(ke){return ke=String(ke),ke.charAt(0).toUpperCase()+ke.slice(1)}function me(ke,Ee,Ge){var Ke={"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 Ee&&Ge&&/^Win/i.test(ke)&&!/^Windows Phone /i.test(ke)&&(Ke=Ke[/[\d.]+$/.exec(ke)])&&(ke="Windows "+Ke),ke=String(ke),Ee&&Ge&&(ke=ke.replace(RegExp(Ee,"i"),Ge)),ke=Ae(ke.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]),ke}function xe(ke,Ee){var Ge=-1,Ke=ke?ke.length:0;if(typeof Ke=="number"&&Ke>-1&&Ke<=ae)for(;++Ge<Ke;)Ee(ke[Ge],Ge,ke);else Ne(ke,Ee)}function Ae(ke){return ke=Oe(ke),/^(?:webOS|i(?:OS|P))/.test(ke)?ke:ge(ke)}function Ne(ke,Ee){for(var Ge in ke)pe.call(ke,Ge)&&Ee(ke[Ge],Ge,ke)}function Be(ke){return ke==null?ge(ke):he.call(ke).slice(8,-1)}function De(ke,Ee){var Ge=ke!=null?typeof ke[Ee]:"number";return!/^(?:boolean|number|string|undefined)$/.test(Ge)&&(Ge=="object"?!!ke[Ee]:!0)}function we(ke){return String(ke).replace(/([ -])(?!$)/g,"$1?")}function Ce(ke,Ee){var Ge=null;return xe(ke,function(Ke,Ve){Ge=Ee(Ge,Ke,Ve,ke)}),Ge}function Oe(ke){return String(ke).replace(/^ +| +$/g,"")}function je(ke){var Ee=re,Ge=ke&&typeof ke=="object"&&Be(ke)!="String";Ge&&(Ee=ke,ke=null);var Ke=Ee.navigator||{},Ve=Ke.userAgent||"";ke||(ke=Ve);var it=Ge||se==oe,Le=Ge?!!Ke.likeChrome:/\bChrome\b/.test(ke)&&!/internal|\n/i.test(he.toString()),Ue="Object",tt=Ge?Ue:"ScriptBridgingProxyObject",nt=Ge?Ue:"Environment",et=Ge&&Ee.java?"JavaPackage":Be(Ee.java),Ze=Ge?Ue:"RuntimeObject",Ye=/\bJava/.test(et)&&Ee.java,Xe=Ye&&Be(Ee.environment)==nt,st=Ye?"a":"\u03B1",Qe=Ye?"b":"\u03B2",ht=Ee.document||{},at=Ee.operamini||Ee.opera,qe=ie.test(qe=Ge&&at?at["[[Class]]"]:Be(at))?qe:at=null,_e,Re=ke,ne=[],fe=null,Me=ke==Ve,He=Me&&at&&typeof at.version=="function"&&at.version(),be,ve=ct([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Ie=ft(["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=lt([{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"]),We=ot({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=ut(["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 ct(Pt){return Ce(Pt,function(Tt,kt){return Tt||RegExp("\\b"+(kt.pattern||we(kt))+"\\b","i").exec(ke)&&(kt.label||kt)})}function ot(Pt){return Ce(Pt,function(Tt,kt,Dt){return Tt||(kt[$e]||kt[/^[a-z]+(?: +[a-z]+\b)*/i.exec($e)]||RegExp("\\b"+we(Dt)+"(?:\\b|\\w*\\d)","i").exec(ke))&&Dt})}function ft(Pt){return Ce(Pt,function(Tt,kt){return Tt||RegExp("\\b"+(kt.pattern||we(kt))+"\\b","i").exec(ke)&&(kt.label||kt)})}function ut(Pt){return Ce(Pt,function(Tt,kt){var Dt=kt.pattern||we(kt);return!Tt&&(Tt=RegExp("\\b"+Dt+"(?:/[\\d.]+|[ \\w.]*)","i").exec(ke))&&(Tt=me(Tt,Dt,kt.label||kt)),Tt})}function lt(Pt){return Ce(Pt,function(Tt,kt){var Dt=kt.pattern||we(kt);return!Tt&&(Tt=RegExp("\\b"+Dt+" *\\d+[.\\w_]*","i").exec(ke)||RegExp("\\b"+Dt+" *\\w+-[\\w]*","i").exec(ke)||RegExp("\\b"+Dt+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(ke))&&((Tt=String(kt.label&&!RegExp(Dt,"i").test(kt.label)?kt.label:Tt).split("/"))[1]&&!/[\d.]+/.test(Tt[0])&&(Tt[0]+=" "+Tt[1]),kt=kt.label||kt,Tt=Ae(Tt[0].replace(RegExp(Dt,"i"),kt).replace(RegExp("; *(?:"+kt+"[_-])?","i")," ").replace(RegExp("("+kt+")[-_.]?(\\w)","i"),"$1 $2"))),Tt})}function At(Pt){return Ce(Pt,function(Tt,kt){return Tt||(RegExp(kt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(ke)||0)[1]||null})}function yt(){return this.description||""}if(ve&&(ve=[ve]),/\bAndroid\b/.test(Je)&&!$e&&(_e=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(ke))&&($e=Oe(_e[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),We&&!$e?$e=lt([We]):We&&$e&&($e=$e.replace(RegExp("^("+we(We)+")[-_.\\s]","i"),We+" ").replace(RegExp("^("+we(We)+")[-_.]?(\\w)","i"),We+" $2")),(_e=/\bGoogle TV\b/.exec($e))&&($e=_e[0]),/\bSimulator\b/i.test(ke)&&($e=($e?$e+" ":"")+"Simulator"),Ie=="Opera Mini"&&/\bOPiOS\b/.test(ke)&&ne.push("running in Turbo/Uncompressed mode"),Ie=="IE"&&/\blike iPhone OS\b/.test(ke)?(_e=je(ke.replace(/like iPhone OS/,"")),We=_e.manufacturer,$e=_e.product):/^iP/.test($e)?(Ie||(Ie="Safari"),Je="iOS"+((_e=/ OS ([\d_]+)/i.exec(ke))?" "+_e[1].replace(/_/g,"."):"")):Ie=="Konqueror"&&/^Linux\b/i.test(Je)?Je="Kubuntu":We&&We!="Google"&&(/Chrome/.test(Ie)&&!/\bMobile Safari\b/i.test(ke)||/\bVita\b/.test($e))||/\bAndroid\b/.test(Je)&&/^Chrome/.test(Ie)&&/\bVersion\//i.test(ke)?(Ie="Android Browser",Je=/\bAndroid\b/.test(Je)?Je:"Android"):Ie=="Silk"?(/\bMobi/i.test(ke)||(Je="Android",ne.unshift("desktop mode")),/Accelerated *= *true/i.test(ke)&&ne.unshift("accelerated")):Ie=="UC Browser"&&/\bUCWEB\b/.test(ke)?ne.push("speed mode"):Ie=="PaleMoon"&&(_e=/\bFirefox\/([\d.]+)\b/.exec(ke))?ne.push("identifying as Firefox "+_e[1]):Ie=="Firefox"&&(_e=/\b(Mobile|Tablet|TV)\b/i.exec(ke))?(Je||(Je="Firefox OS"),$e||($e=_e[1])):!Ie||(_e=!/\bMinefield\b/i.test(ke)&&/\b(?:Firefox|Safari)\b/.exec(Ie))?(Ie&&!$e&&/[\/,]|^[^(]+?\)/.test(ke.slice(ke.indexOf(_e+"/")+8))&&(Ie=null),(_e=$e||We||Je)&&($e||We||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Je))&&(Ie=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Je)?Je:_e)+" Browser")):Ie=="Electron"&&(_e=(/\bChrome\/([\d.]+)\b/.exec(ke)||0)[1])&&ne.push("Chromium "+_e),He||(He=At(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",we(Ie),"(?:Firefox|Minefield|NetFront)"])),(_e=ve=="iCab"&&parseFloat(He)>3&&"WebKit"||/\bOpera\b/.test(Ie)&&(/\bOPR\b/.test(ke)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(ke)&&!/^(?:Trident|EdgeHTML)$/.test(ve)&&"WebKit"||!ve&&/\bMSIE\b/i.test(ke)&&(Je=="Mac OS"?"Tasman":"Trident")||ve=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Ie)&&"NetFront")&&(ve=[_e]),Ie=="IE"&&(_e=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(ke)||0)[1])?(Ie+=" Mobile",Je="Windows Phone "+(/\+$/.test(_e)?_e:_e+".x"),ne.unshift("desktop mode")):/\bWPDesktop\b/i.test(ke)?(Ie="IE Mobile",Je="Windows Phone 8.x",ne.unshift("desktop mode"),He||(He=(/\brv:([\d.]+)/.exec(ke)||0)[1])):Ie!="IE"&&ve=="Trident"&&(_e=/\brv:([\d.]+)/.exec(ke))&&(Ie&&ne.push("identifying as "+Ie+(He?" "+He:"")),Ie="IE",He=_e[1]),Me){if(De(Ee,"global"))if(Ye&&(_e=Ye.lang.System,Re=_e.getProperty("os.arch"),Je=Je||_e.getProperty("os.name")+" "+_e.getProperty("os.version")),Xe){try{He=Ee.require("ringo/engine").version.join("."),Ie="RingoJS"}catch(Pt){(_e=Ee.system)&&_e.global.system==Ee.system&&(Ie="Narwhal",Je||(Je=_e[0].os||null))}Ie||(Ie="Rhino")}else typeof Ee.process=="object"&&!Ee.process.browser&&(_e=Ee.process)&&(typeof _e.versions=="object"&&(typeof _e.versions.electron=="string"?(ne.push("Node "+_e.versions.node),Ie="Electron",He=_e.versions.electron):typeof _e.versions.nw=="string"&&(ne.push("Chromium "+He,"Node "+_e.versions.node),Ie="NW.js",He=_e.versions.nw)),Ie||(Ie="Node.js",Re=_e.arch,Je=_e.platform,He=/[\d.]+/.exec(_e.version),He=He?He[0]:null));else Be(_e=Ee.runtime)==tt?(Ie="Adobe AIR",Je=_e.flash.system.Capabilities.os):Be(_e=Ee.phantom)==Ze?(Ie="PhantomJS",He=(_e=_e.version||null)&&_e.major+"."+_e.minor+"."+_e.patch):typeof ht.documentMode=="number"&&(_e=/\bTrident\/(\d+)/i.exec(ke))?(He=[He,ht.documentMode],(_e=+_e[1]+4)!=He[1]&&(ne.push("IE "+He[1]+" mode"),ve&&(ve[1]=""),He[1]=_e),He=Ie=="IE"?String(He[1].toFixed(1)):He[0]):typeof ht.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Ie)&&(ne.push("masking as "+Ie+" "+He),Ie="IE",He="11.0",ve=["Trident"],Je="Windows");Je=Je&&Ae(Je)}if(He&&(_e=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(He)||/(?:alpha|beta)(?: ?\d)?/i.exec(ke+";"+(Me&&Ke.appMinorVersion))||/\bMinefield\b/i.test(ke)&&"a")&&(fe=/b/i.test(_e)?"beta":"alpha",He=He.replace(RegExp(_e+"\\+?$"),"")+(fe=="beta"?Qe:st)+(/\d+\+?/.exec(_e)||"")),Ie=="Fennec"||Ie=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Je))Ie="Firefox Mobile";else if(Ie=="Maxthon"&&He)He=He.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test($e))$e=="Xbox 360"&&(Je=null),$e=="Xbox 360"&&/\bIEMobile\b/.test(ke)&&ne.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Ie)||Ie&&!$e&&!/Browser|Mobi/.test(Ie))&&(Je=="Windows CE"||/Mobi/i.test(ke)))Ie+=" Mobile";else if(Ie=="IE"&&Me)try{Ee.external===null&&ne.unshift("platform preview")}catch(Pt){ne.unshift("embedded")}else(/\bBlackBerry\b/.test($e)||/\bBB10\b/.test(ke))&&(_e=(RegExp($e.replace(/ +/g," *")+"/([.\\d]+)","i").exec(ke)||0)[1]||He)?(_e=[_e,/BB10/.test(ke)],Je=(_e[1]?($e=null,We="BlackBerry"):"Device Software")+" "+_e[0],He=null):this!=Ne&&$e!="Wii"&&(Me&&at||/Opera/.test(Ie)&&/\b(?:MSIE|Firefox)\b/i.test(ke)||Ie=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Je)||Ie=="IE"&&(Je&&!/^Win/.test(Je)&&He>5.5||/\bWindows XP\b/.test(Je)&&He>8||He==8&&!/\bTrident\b/.test(ke)))&&!ie.test(_e=je.call(Ne,ke.replace(ie,"")+";"))&&_e.name&&(_e="ing as "+_e.name+((_e=_e.version)?" "+_e:""),ie.test(Ie)?(/\bIE\b/.test(_e)&&Je=="Mac OS"&&(Je=null),_e="identify"+_e):(_e="mask"+_e,qe?Ie=Ae(qe.replace(/([a-z])([A-Z])/g,"$1 $2")):Ie="Opera",/\bIE\b/.test(_e)&&(Je=null),Me||(He=null)),ve=["Presto"],ne.push(_e));(_e=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(ke)||0)[1])&&(_e=[parseFloat(_e.replace(/\.(\d)$/,".0$1")),_e],Ie=="Safari"&&_e[1].slice(-1)=="+"?(Ie="WebKit Nightly",fe="alpha",He=_e[1].slice(0,-1)):(He==_e[1]||He==(_e[2]=(/\bSafari\/([\d.]+\+?)/i.exec(ke)||0)[1]))&&(He=null),_e[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(ke)||0)[1],_e[0]==537.36&&_e[2]==537.36&&parseFloat(_e[1])>=28&&ve=="WebKit"&&(ve=["Blink"]),!Me||!Le&&!_e[1]?(ve&&(ve[1]="like Safari"),_e=(_e=_e[0],_e<400?1:_e<500?2:_e<526?3:_e<533?4:_e<534?"4+":_e<535?5:_e<537?6:_e<538?7:_e<601?8:_e<602?9:_e<604?10:_e<606?11:_e<608?12:"12")):(ve&&(ve[1]="like Chrome"),_e=_e[1]||(_e=_e[0],_e<530?1:_e<532?2:_e<532.05?3:_e<533?4:_e<534.03?5:_e<534.07?6:_e<534.1?7:_e<534.13?8:_e<534.16?9:_e<534.24?10:_e<534.3?11:_e<535.01?12:_e<535.02?"13+":_e<535.07?15:_e<535.11?16:_e<535.19?17:_e<536.05?18:_e<536.1?19:_e<537.01?20:_e<537.11?"21+":_e<537.13?23:_e<537.18?24:_e<537.24?25:_e<537.36?26:ve!="Blink"?"27":"28")),ve&&(ve[1]+=" "+(_e+=typeof _e=="number"?".x":/[.+]/.test(_e)?"":"+")),Ie=="Safari"&&(!He||parseInt(He)>45)?He=_e:Ie=="Chrome"&&/\bHeadlessChrome/i.test(ke)&&ne.unshift("headless")),Ie=="Opera"&&(_e=/\bzbov|zvav$/.exec(Je))?(Ie+=" ",ne.unshift("desktop mode"),_e=="zvav"?(Ie+="Mini",He=null):Ie+="Mobile",Je=Je.replace(RegExp(" *"+_e+"$"),"")):Ie=="Safari"&&/\bChrome\b/.exec(ve&&ve[1])?(ne.unshift("desktop mode"),Ie="Chrome Mobile",He=null,/\bOS X\b/.test(Je)?(We="Apple",Je="iOS 4.3+"):Je=null):/\bSRWare Iron\b/.test(Ie)&&!He&&(He=At("Chrome")),He&&He.indexOf(_e=/[\d.]+$/.exec(Je))==0&&ke.indexOf("/"+_e+"-")>-1&&(Je=Oe(Je.replace(_e,""))),Je&&Je.indexOf(Ie)!=-1&&!RegExp(Ie+" OS").test(Je)&&(Je=Je.replace(RegExp(" *"+we(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])&&(_e=ve[ve.length-1])&&ne.push(_e),ne.length&&(ne=["("+ne.join("; ")+")"]),We&&$e&&$e.indexOf(We)<0&&ne.push("on "+We),$e&&ne.push((/^on /.test(ne[ne.length-1])?"":"on ")+$e),Je&&(_e=/ ([\d.+]+)$/.exec(Je),be=_e&&Je.charAt(Je.length-_e[0].length-1)=="/",Je={architecture:32,family:_e&&!be?Je.replace(_e[0],""):Je,version:_e?_e[1]:null,toString:function(){var Pt=this.version;return this.family+(Pt&&!be?" "+Pt:"")+(this.architecture==64?" 64-bit":"")}}),(_e=/\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(" *"+_e),"")),Ie&&(/\bWOW64\b/i.test(ke)||Me&&/\w(?:86|32)$/.test(Ke.cpuClass||Ke.platform)&&!/\bWin64; x64\b/i.test(ke))&&ne.unshift("32-bit")):Je&&/^OS X/.test(Je.family)&&Ie=="Chrome"&&parseFloat(He)>=39&&(Je.architecture=64),ke||(ke=null);var Rt={};return Rt.description=ke,Rt.layout=ve&&ve[0],Rt.manufacturer=We,Rt.name=Ie,Rt.prerelease=fe,Rt.product=$e,Rt.ua=ke,Rt.version=Ie&&He,Rt.os=Je||{architecture:null,family:null,version:null,toString:function(){return"null"}},Rt.parse=je,Rt.toString=yt,Rt.version&&ne.unshift(He),Rt.name&&ne.unshift(Ie),Je&&Ie&&!(Je==String(Je).split(" ")[0]&&(Je==Ie.split(" ")[0]||$e))&&ne.push($e?"("+Je+")":"on "+Je),ne.length&&(Rt.description=ne.join(" ")),Rt}var Fe=je();typeof Te=="function"&&typeof Te.amd=="object"&&Te.amd?(re.platform=Fe,Te(function(){return Fe})):ee&&de?Ne(Fe,function(ke,Ee){ee[Ee]=ke}):re.platform=Fe}).call(this)}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(y,Pe,ye){(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?Pe.exports={nextTick:E}:Pe.exports=z;function E(re,oe,ee,de){if(typeof re!="function")throw new TypeError('"callback" argument must be a function');var x=arguments.length,ae,ie;switch(x){case 0:case 1:return z.nextTick(re);case 2:return z.nextTick(function(){re.call(null,oe)});case 3:return z.nextTick(function(){re.call(null,oe,ee)});case 4:return z.nextTick(function(){re.call(null,oe,ee,de)});default:for(ae=new Array(x-1),ie=0;ie<ae.length;)ae[ie++]=arguments[ie];return z.nextTick(function(){re.apply(null,ae)})}}}).call(this)}).call(this,y("_process"))},{_process:467}],381:[function(y,Pe,ye){var z=Pe.exports={},E,re;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"?re=clearTimeout:re=ee}catch(xe){re=ee}})();function de(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(Ae){try{return E.call(null,xe,0)}catch(Ne){return E.call(this,xe,0)}}}function x(xe){if(re===clearTimeout)return clearTimeout(xe);if((re===ee||!re)&&clearTimeout)return re=clearTimeout,clearTimeout(xe);try{return re(xe)}catch(Ae){try{return re.call(null,xe)}catch(Ne){return re.call(this,xe)}}}var ae=[],ie=!1,se,ue=-1;function pe(){!ie||!se||(ie=!1,se.length?ae=se.concat(ae):ue=-1,ae.length&&he())}function he(){if(!ie){var xe=de(pe);ie=!0;for(var Ae=ae.length;Ae;){for(se=ae,ae=[];++ue<Ae;)se&&se[ue].run();ue=-1,Ae=ae.length}se=null,ie=!1,x(xe)}}z.nextTick=function(xe){var Ae=new Array(arguments.length-1);if(arguments.length>1)for(var Ne=1;Ne<arguments.length;Ne++)Ae[Ne-1]=arguments[Ne];ae.push(new ge(xe,Ae)),ae.length===1&&!ie&&de(he)};function ge(xe,Ae){this.fun=xe,this.array=Ae}ge.prototype.run=function(){this.fun.apply(null,this.array)},z.title="browser",z.browser=!0,z.env={},z.argv=[],z.version="",z.versions={};function me(){}z.on=me,z.addListener=me,z.once=me,z.off=me,z.removeListener=me,z.removeAllListeners=me,z.emit=me,z.prependListener=me,z.prependOnceListener=me,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,Pe,ye){(function(z){(function(){(function(E){var re=typeof ye=="object"&&ye&&!ye.nodeType&&ye,oe=typeof Pe=="object"&&Pe&&!Pe.nodeType&&Pe,ee=typeof z=="object"&&z;(ee.global===ee||ee.window===ee||ee.self===ee)&&(E=ee);var de,x=2147483647,ae=36,ie=1,se=26,ue=38,pe=700,he=72,ge=128,me="-",xe=/^xn--/,Ae=/[^\x20-\x7E]/,Ne=/[\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"},De=ae-ie,we=Math.floor,Ce=String.fromCharCode,Oe;function je(et){throw new RangeError(Be[et])}function Fe(et,Ze){for(var Ye=et.length,Xe=[];Ye--;)Xe[Ye]=Ze(et[Ye]);return Xe}function ke(et,Ze){var Ye=et.split("@"),Xe="";Ye.length>1&&(Xe=Ye[0]+"@",et=Ye[1]),et=et.replace(Ne,".");var st=et.split("."),Qe=Fe(st,Ze).join(".");return Xe+Qe}function Ee(et){for(var Ze=[],Ye=0,Xe=et.length,st,Qe;Ye<Xe;)st=et.charCodeAt(Ye++),st>=55296&&st<=56319&&Ye<Xe?(Qe=et.charCodeAt(Ye++),(Qe&64512)==56320?Ze.push(((st&1023)<<10)+(Qe&1023)+65536):(Ze.push(st),Ye--)):Ze.push(st);return Ze}function Ge(et){return Fe(et,function(Ze){var Ye="";return Ze>65535&&(Ze-=65536,Ye+=Ce(Ze>>>10&1023|55296),Ze=56320|Ze&1023),Ye+=Ce(Ze),Ye}).join("")}function Ke(et){return et-48<10?et-22:et-65<26?et-65:et-97<26?et-97:ae}function Ve(et,Ze){return et+22+75*(et<26)-((Ze!=0)<<5)}function it(et,Ze,Ye){var Xe=0;for(et=Ye?we(et/pe):et>>1,et+=we(et/Ze);et>De*se>>1;Xe+=ae)et=we(et/De);return we(Xe+(De+1)*et/(et+ue))}function Le(et){var Ze=[],Ye=et.length,Xe,st=0,Qe=ge,ht=he,at,qe,_e,Re,ne,fe,Me,He,be;for(at=et.lastIndexOf(me),at<0&&(at=0),qe=0;qe<at;++qe)et.charCodeAt(qe)>=128&&je("not-basic"),Ze.push(et.charCodeAt(qe));for(_e=at>0?at+1:0;_e<Ye;){for(Re=st,ne=1,fe=ae;_e>=Ye&&je("invalid-input"),Me=Ke(et.charCodeAt(_e++)),(Me>=ae||Me>we((x-st)/ne))&&je("overflow"),st+=Me*ne,He=fe<=ht?ie:fe>=ht+se?se:fe-ht,!(Me<He);fe+=ae)be=ae-He,ne>we(x/be)&&je("overflow"),ne*=be;Xe=Ze.length+1,ht=it(st-Re,Xe,Re==0),we(st/Xe)>x-Qe&&je("overflow"),Qe+=we(st/Xe),st%=Xe,Ze.splice(st++,0,Qe)}return Ge(Ze)}function Ue(et){var Ze,Ye,Xe,st,Qe,ht,at,qe,_e,Re,ne,fe=[],Me,He,be,ve;for(et=Ee(et),Me=et.length,Ze=ge,Ye=0,Qe=he,ht=0;ht<Me;++ht)ne=et[ht],ne<128&&fe.push(Ce(ne));for(Xe=st=fe.length,st&&fe.push(me);Xe<Me;){for(at=x,ht=0;ht<Me;++ht)ne=et[ht],ne>=Ze&&ne<at&&(at=ne);for(He=Xe+1,at-Ze>we((x-Ye)/He)&&je("overflow"),Ye+=(at-Ze)*He,Ze=at,ht=0;ht<Me;++ht)if(ne=et[ht],ne<Ze&&++Ye>x&&je("overflow"),ne==Ze){for(qe=Ye,_e=ae;Re=_e<=Qe?ie:_e>=Qe+se?se:_e-Qe,!(qe<Re);_e+=ae)ve=qe-Re,be=ae-Re,fe.push(Ce(Ve(Re+ve%be,0))),qe=we(ve/be);fe.push(Ce(Ve(qe,0))),Qe=it(Ye,He,Xe==st),Ye=0,++Xe}++Ye,++Ze}return fe.join("")}function tt(et){return ke(et,function(Ze){return xe.test(Ze)?Le(Ze.slice(4).toLowerCase()):Ze})}function nt(et){return ke(et,function(Ze){return Ae.test(Ze)?"xn--"+Ue(Ze):Ze})}if(de={version:"1.4.1",ucs2:{decode:Ee,encode:Ge},decode:Le,encode:Ue,toASCII:nt,toUnicode:tt},typeof Te=="function"&&typeof Te.amd=="object"&&Te.amd)Te("punycode",function(){return de});else if(re&&oe)if(Pe.exports==re)oe.exports=de;else for(Oe in de)de.hasOwnProperty(Oe)&&(re[Oe]=de[Oe]);else E.punycode=de})(this)}).call(this)}).call(this,typeof Yt!="undefined"?Yt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(y,Pe,ye){"use strict";function z(re,oe){return Object.prototype.hasOwnProperty.call(re,oe)}Pe.exports=function(re,oe,ee,de){oe=oe||"&",ee=ee||"=";var x={};if(typeof re!="string"||re.length===0)return x;var ae=/\+/g;re=re.split(oe);var ie=1e3;de&&typeof de.maxKeys=="number"&&(ie=de.maxKeys);var se=re.length;ie>0&&se>ie&&(se=ie);for(var ue=0;ue<se;++ue){var pe=re[ue].replace(ae,"%20"),he=pe.indexOf(ee),ge,me,xe,Ae;he>=0?(ge=pe.substr(0,he),me=pe.substr(he+1)):(ge=pe,me=""),xe=decodeURIComponent(ge),Ae=decodeURIComponent(me),z(x,xe)?E(x[xe])?x[xe].push(Ae):x[xe]=[x[xe],Ae]:x[xe]=Ae}return x};var E=Array.isArray||function(re){return Object.prototype.toString.call(re)==="[object Array]"}},{}],384:[function(y,Pe,ye){"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""}};Pe.exports=function(ee,de,x,ae){return de=de||"&",x=x||"=",ee===null&&(ee=void 0),typeof ee=="object"?re(oe(ee),function(ie){var se=encodeURIComponent(z(ie))+x;return E(ee[ie])?re(ee[ie],function(ue){return se+encodeURIComponent(z(ue))}).join(de):se+encodeURIComponent(z(ee[ie]))}).join(de):ae?encodeURIComponent(z(ae))+x+encodeURIComponent(z(ee)):""};var E=Array.isArray||function(ee){return Object.prototype.toString.call(ee)==="[object Array]"};function re(ee,de){if(ee.map)return ee.map(de);for(var x=[],ae=0;ae<ee.length;ae++)x.push(de(ee[ae],ae));return x}var oe=Object.keys||function(ee){var de=[];for(var x in ee)Object.prototype.hasOwnProperty.call(ee,x)&&de.push(x);return de}},{}],385:[function(y,Pe,ye){"use strict";ye.decode=ye.parse=y("./decode"),ye.encode=ye.stringify=y("./encode")},{"./decode":383,"./encode":384}],386:[function(y,Pe,ye){"use strict";var z=y("process-nextick-args"),E=Object.keys||function(pe){var he=[];for(var ge in pe)he.push(ge);return he};Pe.exports=ie;var re=Object.create(y("core-util-is"));re.inherits=y("inherits");var oe=y("./_stream_readable"),ee=y("./_stream_writable");re.inherits(ie,oe);for(var de=E(ee.prototype),x=0;x<de.length;x++){var ae=de[x];ie.prototype[ae]||(ie.prototype[ae]=ee.prototype[ae])}function ie(pe){if(!(this instanceof ie))return new ie(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(ie.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(ie.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)}}),ie.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,Pe,ye){"use strict";Pe.exports=re;var z=y("./_stream_transform"),E=Object.create(y("core-util-is"));E.inherits=y("inherits"),E.inherits(re,z);function re(oe){if(!(this instanceof re))return new re(oe);z.call(this,oe)}re.prototype._transform=function(oe,ee,de){de(null,oe)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(y,Pe,ye){(function(z,E){(function(){"use strict";var re=y("process-nextick-args");Pe.exports=Ce;var oe=y("isarray"),ee;Ce.ReadableState=we;var de=y("events").EventEmitter,x=function(ne,fe){return ne.listeners(fe).length},ae=y("./internal/streams/stream"),ie=y("safe-buffer").Buffer,se=E.Uint8Array||function(){};function ue(ne){return ie.from(ne)}function pe(ne){return ie.isBuffer(ne)||ne instanceof se}var he=Object.create(y("core-util-is"));he.inherits=y("inherits");var ge=y("util"),me=void 0;ge&&ge.debuglog?me=ge.debuglog("stream"):me=function(){};var xe=y("./internal/streams/BufferList"),Ae=y("./internal/streams/destroy"),Ne;he.inherits(Ce,ae);var Be=["error","close","destroy","pause","resume"];function De(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 we(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 He=ne.highWaterMark,be=ne.readableHighWaterMark,ve=this.objectMode?16:16*1024;He||He===0?this.highWaterMark=He:Me&&(be||be===0)?this.highWaterMark=be: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&&(Ne||(Ne=y("string_decoder/").StringDecoder),this.decoder=new Ne(ne.encoding),this.encoding=ne.encoding)}function Ce(ne){if(ee=ee||y("./_stream_duplex"),!(this instanceof Ce))return new Ce(ne);this._readableState=new we(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(Ce.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ne){this._readableState&&(this._readableState.destroyed=ne)}}),Ce.prototype.destroy=Ae.destroy,Ce.prototype._undestroy=Ae.undestroy,Ce.prototype._destroy=function(ne,fe){this.push(null),fe(ne)},Ce.prototype.push=function(ne,fe){var Me=this._readableState,He;return Me.objectMode?He=!0:typeof ne=="string"&&(fe=fe||Me.defaultEncoding,fe!==Me.encoding&&(ne=ie.from(ne,fe),fe=""),He=!0),Oe(this,ne,fe,!1,He)},Ce.prototype.unshift=function(ne){return Oe(this,ne,null,!0,!1)};function Oe(ne,fe,Me,He,be){var ve=ne._readableState;if(fe===null)ve.reading=!1,Ve(ne,ve);else{var Ie;be||(Ie=Fe(ve,fe)),Ie?ne.emit("error",Ie):ve.objectMode||fe&&fe.length>0?(typeof fe!="string"&&!ve.objectMode&&Object.getPrototypeOf(fe)!==ie.prototype&&(fe=ue(fe)),He?ve.endEmitted?ne.emit("error",new Error("stream.unshift() after end event")):je(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?je(ne,ve,fe,!1):Ue(ne,ve)):je(ne,ve,fe,!1))):He||(ve.reading=!1)}return ke(ve)}function je(ne,fe,Me,He){fe.flowing&&fe.length===0&&!fe.sync?(ne.emit("data",Me),ne.read(0)):(fe.length+=fe.objectMode?1:Me.length,He?fe.buffer.unshift(Me):fe.buffer.push(Me),fe.needReadable&&it(ne)),Ue(ne,fe)}function Fe(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 ke(ne){return!ne.ended&&(ne.needReadable||ne.length<ne.highWaterMark||ne.length===0)}Ce.prototype.isPaused=function(){return this._readableState.flowing===!1},Ce.prototype.setEncoding=function(ne){return Ne||(Ne=y("string_decoder/").StringDecoder),this._readableState.decoder=new Ne(ne),this._readableState.encoding=ne,this};var Ee=8388608;function Ge(ne){return ne>=Ee?ne=Ee:(ne--,ne|=ne>>>1,ne|=ne>>>2,ne|=ne>>>4,ne|=ne>>>8,ne|=ne>>>16,ne++),ne}function Ke(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=Ge(ne)),ne<=fe.length?ne:fe.ended?fe.length:(fe.needReadable=!0,0))}Ce.prototype.read=function(ne){me("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 me("read: emitReadable",fe.length,fe.ended),fe.length===0&&fe.ended?qe(this):it(this),null;if(ne=Ke(ne,fe),ne===0&&fe.ended)return fe.length===0&&qe(this),null;var He=fe.needReadable;me("need readable",He),(fe.length===0||fe.length-ne<fe.highWaterMark)&&(He=!0,me("length less than watermark",He)),fe.ended||fe.reading?(He=!1,me("reading or ended",He)):He&&(me("do read"),fe.reading=!0,fe.sync=!0,fe.length===0&&(fe.needReadable=!0),this._read(fe.highWaterMark),fe.sync=!1,fe.reading||(ne=Ke(Me,fe)));var be;return ne>0?be=st(ne,fe):be=null,be===null?(fe.needReadable=!0,ne=0):fe.length-=ne,fe.length===0&&(fe.ended||(fe.needReadable=!0),Me!==ne&&fe.ended&&qe(this)),be!==null&&this.emit("data",be),be};function Ve(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,it(ne)}}function it(ne){var fe=ne._readableState;fe.needReadable=!1,fe.emittedReadable||(me("emitReadable",fe.flowing),fe.emittedReadable=!0,fe.sync?re.nextTick(Le,ne):Le(ne))}function Le(ne){me("emit readable"),ne.emit("readable"),Xe(ne)}function Ue(ne,fe){fe.readingMore||(fe.readingMore=!0,re.nextTick(tt,ne,fe))}function tt(ne,fe){for(var Me=fe.length;!fe.reading&&!fe.flowing&&!fe.ended&&fe.length<fe.highWaterMark&&(me("maybeReadMore read 0"),ne.read(0),Me!==fe.length);)Me=fe.length;fe.readingMore=!1}Ce.prototype._read=function(ne){this.emit("error",new Error("_read() is not implemented"))},Ce.prototype.pipe=function(ne,fe){var Me=this,He=this._readableState;switch(He.pipesCount){case 0:He.pipes=ne;break;case 1:He.pipes=[He.pipes,ne];break;default:He.pipes.push(ne);break}He.pipesCount+=1,me("pipe count=%d opts=%j",He.pipesCount,fe);var be=(!fe||fe.end!==!1)&&ne!==z.stdout&&ne!==z.stderr,ve=be?$e:yt;He.endEmitted?re.nextTick(ve):Me.once("end",ve),ne.on("unpipe",Ie);function Ie(Rt,Pt){me("onunpipe"),Rt===Me&&Pt&&Pt.hasUnpiped===!1&&(Pt.hasUnpiped=!0,ct())}function $e(){me("onend"),ne.end()}var We=nt(Me);ne.on("drain",We);var Je=!1;function ct(){me("cleanup"),ne.removeListener("close",lt),ne.removeListener("finish",At),ne.removeListener("drain",We),ne.removeListener("error",ut),ne.removeListener("unpipe",Ie),Me.removeListener("end",$e),Me.removeListener("end",yt),Me.removeListener("data",ft),Je=!0,He.awaitDrain&&(!ne._writableState||ne._writableState.needDrain)&&We()}var ot=!1;Me.on("data",ft);function ft(Rt){me("ondata"),ot=!1;var Pt=ne.write(Rt);Pt===!1&&!ot&&((He.pipesCount===1&&He.pipes===ne||He.pipesCount>1&&Re(He.pipes,ne)!==-1)&&!Je&&(me("false write response, pause",Me._readableState.awaitDrain),Me._readableState.awaitDrain++,ot=!0),Me.pause())}function ut(Rt){me("onerror",Rt),yt(),ne.removeListener("error",ut),x(ne,"error")===0&&ne.emit("error",Rt)}De(ne,"error",ut);function lt(){ne.removeListener("finish",At),yt()}ne.once("close",lt);function At(){me("onfinish"),ne.removeListener("close",lt),yt()}ne.once("finish",At);function yt(){me("unpipe"),Me.unpipe(ne)}return ne.emit("pipe",Me),He.flowing||(me("pipe resume"),Me.resume()),ne};function nt(ne){return function(){var fe=ne._readableState;me("pipeOnDrain",fe.awaitDrain),fe.awaitDrain&&fe.awaitDrain--,fe.awaitDrain===0&&x(ne,"data")&&(fe.flowing=!0,Xe(ne))}}Ce.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 He=fe.pipes,be=fe.pipesCount;fe.pipes=null,fe.pipesCount=0,fe.flowing=!1;for(var ve=0;ve<be;ve++)He[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)},Ce.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 He=this._readableState;!He.endEmitted&&!He.readableListening&&(He.readableListening=He.needReadable=!0,He.emittedReadable=!1,He.reading?He.length&&it(this):re.nextTick(et,this))}return Me},Ce.prototype.addListener=Ce.prototype.on;function et(ne){me("readable nexttick read 0"),ne.read(0)}Ce.prototype.resume=function(){var ne=this._readableState;return ne.flowing||(me("resume"),ne.flowing=!0,Ze(this,ne)),this};function Ze(ne,fe){fe.resumeScheduled||(fe.resumeScheduled=!0,re.nextTick(Ye,ne,fe))}function Ye(ne,fe){fe.reading||(me("resume read 0"),ne.read(0)),fe.resumeScheduled=!1,fe.awaitDrain=0,ne.emit("resume"),Xe(ne),fe.flowing&&!fe.reading&&ne.read(0)}Ce.prototype.pause=function(){return me("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(me("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Xe(ne){var fe=ne._readableState;for(me("flow",fe.flowing);fe.flowing&&ne.read()!==null;);}Ce.prototype.wrap=function(ne){var fe=this,Me=this._readableState,He=!1;ne.on("end",function(){if(me("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(me("wrapped data"),Me.decoder&&(Ie=Me.decoder.write(Ie)),!(Me.objectMode&&Ie==null)&&!(!Me.objectMode&&(!Ie||!Ie.length))){var $e=fe.push(Ie);$e||(He=!0,ne.pause())}});for(var be in ne)this[be]===void 0&&typeof ne[be]=="function"&&(this[be]=function(Ie){return function(){return ne[Ie].apply(ne,arguments)}}(be));for(var ve=0;ve<Be.length;ve++)ne.on(Be[ve],this.emit.bind(this,Be[ve]));return this._read=function(Ie){me("wrapped _read",Ie),He&&(He=!1,ne.resume())},this},Object.defineProperty(Ce.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Ce._fromList=st;function st(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 He;return ne<fe.head.data.length?(He=fe.head.data.slice(0,ne),fe.head.data=fe.head.data.slice(ne)):ne===fe.head.data.length?He=fe.shift():He=Me?ht(ne,fe):at(ne,fe),He}function ht(ne,fe){var Me=fe.head,He=1,be=Me.data;for(ne-=be.length;Me=Me.next;){var ve=Me.data,Ie=ne>ve.length?ve.length:ne;if(Ie===ve.length?be+=ve:be+=ve.slice(0,ne),ne-=Ie,ne===0){Ie===ve.length?(++He,Me.next?fe.head=Me.next:fe.head=fe.tail=null):(fe.head=Me,Me.data=ve.slice(Ie));break}++He}return fe.length-=He,be}function at(ne,fe){var Me=ie.allocUnsafe(ne),He=fe.head,be=1;for(He.data.copy(Me),ne-=He.data.length;He=He.next;){var ve=He.data,Ie=ne>ve.length?ve.length:ne;if(ve.copy(Me,Me.length-ne,0,Ie),ne-=Ie,ne===0){Ie===ve.length?(++be,He.next?fe.head=He.next:fe.head=fe.tail=null):(fe.head=He,He.data=ve.slice(Ie));break}++be}return fe.length-=be,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,re.nextTick(_e,fe,ne))}function _e(ne,fe){!ne.endEmitted&&ne.length===0&&(ne.endEmitted=!0,fe.readable=!1,fe.emit("end"))}function Re(ne,fe){for(var Me=0,He=ne.length;Me<He;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,Pe,ye){"use strict";Pe.exports=oe;var z=y("./_stream_duplex"),E=Object.create(y("core-util-is"));E.inherits=y("inherits"),E.inherits(oe,z);function re(x,ae){var ie=this._transformState;ie.transforming=!1;var se=ie.writecb;if(!se)return this.emit("error",new Error("write callback called multiple times"));ie.writechunk=null,ie.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:re.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,ie){de(x,ae,ie)}):de(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,ie){throw new Error("_transform() is not implemented")},oe.prototype._write=function(x,ae,ie){var se=this._transformState;if(se.writecb=ie,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 ie=this;z.prototype._destroy.call(this,x,function(se){ae(se),ie.emit("close")})};function de(x,ae,ie){if(ae)return x.emit("error",ae);if(ie!=null&&x.push(ie),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,Pe,ye){(function(z,E,re){(function(){"use strict";var oe=y("process-nextick-args");Pe.exports=De;function ee(Ye,Xe,st){this.chunk=Ye,this.encoding=Xe,this.callback=st,this.next=null}function de(Ye){var Xe=this;this.next=null,this.entry=null,this.finish=function(){Ze(Xe,Ye)}}var x=!z.browser&&["v0.10","v0.9."].indexOf(z.version.slice(0,5))>-1?re:oe.nextTick,ae;De.WritableState=Ne;var ie=Object.create(y("core-util-is"));ie.inherits=y("inherits");var se={deprecate:y("util-deprecate")},ue=y("./internal/streams/stream"),pe=y("safe-buffer").Buffer,he=E.Uint8Array||function(){};function ge(Ye){return pe.from(Ye)}function me(Ye){return pe.isBuffer(Ye)||Ye instanceof he}var xe=y("./internal/streams/destroy");ie.inherits(De,ue);function Ae(){}function Ne(Ye,Xe){ae=ae||y("./_stream_duplex"),Ye=Ye||{};var st=Xe instanceof ae;this.objectMode=!!Ye.objectMode,st&&(this.objectMode=this.objectMode||!!Ye.writableObjectMode);var Qe=Ye.highWaterMark,ht=Ye.writableHighWaterMark,at=this.objectMode?16:16*1024;Qe||Qe===0?this.highWaterMark=Qe:st&&(ht||ht===0)?this.highWaterMark=ht: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(_e){Ge(Xe,_e)},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 de(this)}Ne.prototype.getBuffer=function(){for(var Xe=this.bufferedRequest,st=[];Xe;)st.push(Xe),Xe=Xe.next;return st},function(){try{Object.defineProperty(Ne.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(De,Symbol.hasInstance,{value:function(Ye){return Be.call(this,Ye)?!0:this!==De?!1:Ye&&Ye._writableState instanceof Ne}})):Be=function(Ye){return Ye instanceof this};function De(Ye){if(ae=ae||y("./_stream_duplex"),!Be.call(De,this)&&!(this instanceof ae))return new De(Ye);this._writableState=new Ne(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)}De.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function we(Ye,Xe){var st=new Error("write after end");Ye.emit("error",st),oe.nextTick(Xe,st)}function Ce(Ye,Xe,st,Qe){var ht=!0,at=!1;return st===null?at=new TypeError("May not write null values to stream"):typeof st!="string"&&st!==void 0&&!Xe.objectMode&&(at=new TypeError("Invalid non-string/buffer chunk")),at&&(Ye.emit("error",at),oe.nextTick(Qe,at),ht=!1),ht}De.prototype.write=function(Ye,Xe,st){var Qe=this._writableState,ht=!1,at=!Qe.objectMode&&me(Ye);return at&&!pe.isBuffer(Ye)&&(Ye=ge(Ye)),typeof Xe=="function"&&(st=Xe,Xe=null),at?Xe="buffer":Xe||(Xe=Qe.defaultEncoding),typeof st!="function"&&(st=Ae),Qe.ended?we(this,st):(at||Ce(this,Qe,Ye,st))&&(Qe.pendingcb++,ht=je(this,Qe,at,Ye,Xe,st)),ht},De.prototype.cork=function(){var Ye=this._writableState;Ye.corked++},De.prototype.uncork=function(){var Ye=this._writableState;Ye.corked&&(Ye.corked--,!Ye.writing&&!Ye.corked&&!Ye.finished&&!Ye.bufferProcessing&&Ye.bufferedRequest&&it(this,Ye))},De.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,st){return!Ye.objectMode&&Ye.decodeStrings!==!1&&typeof Xe=="string"&&(Xe=pe.from(Xe,st)),Xe}Object.defineProperty(De.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function je(Ye,Xe,st,Qe,ht,at){if(!st){var qe=Oe(Xe,Qe,ht);Qe!==qe&&(st=!0,ht="buffer",Qe=qe)}var _e=Xe.objectMode?1:Qe.length;Xe.length+=_e;var Re=Xe.length<Xe.highWaterMark;if(Re||(Xe.needDrain=!0),Xe.writing||Xe.corked){var ne=Xe.lastBufferedRequest;Xe.lastBufferedRequest={chunk:Qe,encoding:ht,isBuf:st,callback:at,next:null},ne?ne.next=Xe.lastBufferedRequest:Xe.bufferedRequest=Xe.lastBufferedRequest,Xe.bufferedRequestCount+=1}else Fe(Ye,Xe,!1,_e,Qe,ht,at);return Re}function Fe(Ye,Xe,st,Qe,ht,at,qe){Xe.writelen=Qe,Xe.writecb=qe,Xe.writing=!0,Xe.sync=!0,st?Ye._writev(ht,Xe.onwrite):Ye._write(ht,at,Xe.onwrite),Xe.sync=!1}function ke(Ye,Xe,st,Qe,ht){--Xe.pendingcb,st?(oe.nextTick(ht,Qe),oe.nextTick(nt,Ye,Xe),Ye._writableState.errorEmitted=!0,Ye.emit("error",Qe)):(ht(Qe),Ye._writableState.errorEmitted=!0,Ye.emit("error",Qe),nt(Ye,Xe))}function Ee(Ye){Ye.writing=!1,Ye.writecb=null,Ye.length-=Ye.writelen,Ye.writelen=0}function Ge(Ye,Xe){var st=Ye._writableState,Qe=st.sync,ht=st.writecb;if(Ee(st),Xe)ke(Ye,st,Qe,Xe,ht);else{var at=Le(st);!at&&!st.corked&&!st.bufferProcessing&&st.bufferedRequest&&it(Ye,st),Qe?x(Ke,Ye,st,at,ht):Ke(Ye,st,at,ht)}}function Ke(Ye,Xe,st,Qe){st||Ve(Ye,Xe),Xe.pendingcb--,Qe(),nt(Ye,Xe)}function Ve(Ye,Xe){Xe.length===0&&Xe.needDrain&&(Xe.needDrain=!1,Ye.emit("drain"))}function it(Ye,Xe){Xe.bufferProcessing=!0;var st=Xe.bufferedRequest;if(Ye._writev&&st&&st.next){var Qe=Xe.bufferedRequestCount,ht=new Array(Qe),at=Xe.corkedRequestsFree;at.entry=st;for(var qe=0,_e=!0;st;)ht[qe]=st,st.isBuf||(_e=!1),st=st.next,qe+=1;ht.allBuffers=_e,Fe(Ye,Xe,!0,Xe.length,ht,"",at.finish),Xe.pendingcb++,Xe.lastBufferedRequest=null,at.next?(Xe.corkedRequestsFree=at.next,at.next=null):Xe.corkedRequestsFree=new de(Xe),Xe.bufferedRequestCount=0}else{for(;st;){var Re=st.chunk,ne=st.encoding,fe=st.callback,Me=Xe.objectMode?1:Re.length;if(Fe(Ye,Xe,!1,Me,Re,ne,fe),st=st.next,Xe.bufferedRequestCount--,Xe.writing)break}st===null&&(Xe.lastBufferedRequest=null)}Xe.bufferedRequest=st,Xe.bufferProcessing=!1}De.prototype._write=function(Ye,Xe,st){st(new Error("_write() is not implemented"))},De.prototype._writev=null,De.prototype.end=function(Ye,Xe,st){var Qe=this._writableState;typeof Ye=="function"?(st=Ye,Ye=null,Xe=null):typeof Xe=="function"&&(st=Xe,Xe=null),Ye!=null&&this.write(Ye,Xe),Qe.corked&&(Qe.corked=1,this.uncork()),!Qe.ending&&!Qe.finished&&et(this,Qe,st)};function Le(Ye){return Ye.ending&&Ye.length===0&&Ye.bufferedRequest===null&&!Ye.finished&&!Ye.writing}function Ue(Ye,Xe){Ye._final(function(st){Xe.pendingcb--,st&&Ye.emit("error",st),Xe.prefinished=!0,Ye.emit("prefinish"),nt(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 nt(Ye,Xe){var st=Le(Xe);return st&&(tt(Ye,Xe),Xe.pendingcb===0&&(Xe.finished=!0,Ye.emit("finish"))),st}function et(Ye,Xe,st){Xe.ending=!0,nt(Ye,Xe),st&&(Xe.finished?oe.nextTick(st):Ye.once("finish",st)),Xe.ended=!0,Ye.writable=!1}function Ze(Ye,Xe,st){var Qe=Ye.entry;for(Ye.entry=null;Qe;){var ht=Qe.callback;Xe.pendingcb--,ht(st),Qe=Qe.next}Xe.corkedRequestsFree?Xe.corkedRequestsFree.next=Ye:Xe.corkedRequestsFree=Ye}Object.defineProperty(De.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Ye){this._writableState&&(this._writableState.destroyed=Ye)}}),De.prototype.destroy=xe.destroy,De.prototype._undestroy=xe.undestroy,De.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,Pe,ye){"use strict";function z(ee,de){if(!(ee instanceof de))throw new TypeError("Cannot call a class as a function")}var E=y("safe-buffer").Buffer,re=y("util");function oe(ee,de,x){ee.copy(de,x)}Pe.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,ie=""+ae.data;ae=ae.next;)ie+=x+ae.data;return ie},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),ie=this.head,se=0;ie;)oe(ie.data,ae,se),se+=ie.data.length,ie=ie.next;return ae},ee}(),re&&re.inspect&&re.inspect.custom&&(Pe.exports.prototype[re.inspect.custom]=function(){var ee=re.inspect({length:this.length});return this.constructor.name+" "+ee})},{"safe-buffer":396,util:89}],392:[function(y,Pe,ye){"use strict";var z=y("process-nextick-args");function E(ee,de){var x=this,ae=this._readableState&&this._readableState.destroyed,ie=this._writableState&&this._writableState.destroyed;return ae||ie?(de?de(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){!de&&se?(z.nextTick(oe,x,se),x._writableState&&(x._writableState.errorEmitted=!0)):de&&de(se)}),this)}function re(){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,de){ee.emit("error",de)}Pe.exports={destroy:E,undestroy:re}},{"process-nextick-args":380}],393:[function(y,Pe,ye){Pe.exports=y("events").EventEmitter},{events:344}],394:[function(y,Pe,ye){ye=Pe.exports=y("./lib/_stream_readable.js"),ye.Stream=ye,ye.Readable=ye,ye.Writable=y("./lib/_stream_writable.js"),ye.Duplex=y("./lib/_stream_duplex.js"),ye.Transform=y("./lib/_stream_transform.js"),ye.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,Pe,ye){var z=function(E){"use strict";var re=Object.prototype,oe=re.hasOwnProperty,ee,de=typeof Symbol=="function"?Symbol:{},x=de.iterator||"@@iterator",ae=de.asyncIterator||"@@asyncIterator",ie=de.toStringTag||"@@toStringTag";function se(tt,nt,et){return Object.defineProperty(tt,nt,{value:et,enumerable:!0,configurable:!0,writable:!0}),tt[nt]}try{se({},"")}catch(tt){se=function(nt,et,Ze){return nt[et]=Ze}}function ue(tt,nt,et,Ze){var Ye=nt&&nt.prototype instanceof Ne?nt:Ne,Xe=Object.create(Ye.prototype),st=new it(Ze||[]);return Xe._invoke=Ee(tt,et,st),Xe}E.wrap=ue;function pe(tt,nt,et){try{return{type:"normal",arg:tt.call(nt,et)}}catch(Ze){return{type:"throw",arg:Ze}}}var he="suspendedStart",ge="suspendedYield",me="executing",xe="completed",Ae={};function Ne(){}function Be(){}function De(){}var we={};se(we,x,function(){return this});var Ce=Object.getPrototypeOf,Oe=Ce&&Ce(Ce(Le([])));Oe&&Oe!==re&&oe.call(Oe,x)&&(we=Oe);var je=De.prototype=Ne.prototype=Object.create(we);Be.prototype=De,se(je,"constructor",De),se(De,"constructor",Be),Be.displayName=se(De,ie,"GeneratorFunction");function Fe(tt){["next","throw","return"].forEach(function(nt){se(tt,nt,function(et){return this._invoke(nt,et)})})}E.isGeneratorFunction=function(tt){var nt=typeof tt=="function"&&tt.constructor;return nt?nt===Be||(nt.displayName||nt.name)==="GeneratorFunction":!1},E.mark=function(tt){return Object.setPrototypeOf?Object.setPrototypeOf(tt,De):(tt.__proto__=De,se(tt,ie,"GeneratorFunction")),tt.prototype=Object.create(je),tt},E.awrap=function(tt){return{__await:tt}};function ke(tt,nt){function et(Xe,st,Qe,ht){var at=pe(tt[Xe],tt,st);if(at.type==="throw")ht(at.arg);else{var qe=at.arg,_e=qe.value;return _e&&typeof _e=="object"&&oe.call(_e,"__await")?nt.resolve(_e.__await).then(function(Re){et("next",Re,Qe,ht)},function(Re){et("throw",Re,Qe,ht)}):nt.resolve(_e).then(function(Re){qe.value=Re,Qe(qe)},function(Re){return et("throw",Re,Qe,ht)})}}var Ze;function Ye(Xe,st){function Qe(){return new nt(function(ht,at){et(Xe,st,ht,at)})}return Ze=Ze?Ze.then(Qe,Qe):Qe()}this._invoke=Ye}Fe(ke.prototype),se(ke.prototype,ae,function(){return this}),E.AsyncIterator=ke,E.async=function(tt,nt,et,Ze,Ye){Ye===void 0&&(Ye=Promise);var Xe=new ke(ue(tt,nt,et,Ze),Ye);return E.isGeneratorFunction(nt)?Xe:Xe.next().then(function(st){return st.done?st.value:Xe.next()})};function Ee(tt,nt,et){var Ze=he;return function(Xe,st){if(Ze===me)throw new Error("Generator is already running");if(Ze===xe){if(Xe==="throw")throw st;return Ue()}for(et.method=Xe,et.arg=st;;){var Qe=et.delegate;if(Qe){var ht=Ge(Qe,et);if(ht){if(ht===Ae)continue;return ht}}if(et.method==="next")et.sent=et._sent=et.arg;else if(et.method==="throw"){if(Ze===he)throw Ze=xe,et.arg;et.dispatchException(et.arg)}else et.method==="return"&&et.abrupt("return",et.arg);Ze=me;var at=pe(tt,nt,et);if(at.type==="normal"){if(Ze=et.done?xe:ge,at.arg===Ae)continue;return{value:at.arg,done:et.done}}else at.type==="throw"&&(Ze=xe,et.method="throw",et.arg=at.arg)}}}function Ge(tt,nt){var et=tt.iterator[nt.method];if(et===ee){if(nt.delegate=null,nt.method==="throw"){if(tt.iterator.return&&(nt.method="return",nt.arg=ee,Ge(tt,nt),nt.method==="throw"))return Ae;nt.method="throw",nt.arg=new TypeError("The iterator does not provide a 'throw' method")}return Ae}var Ze=pe(et,tt.iterator,nt.arg);if(Ze.type==="throw")return nt.method="throw",nt.arg=Ze.arg,nt.delegate=null,Ae;var Ye=Ze.arg;if(!Ye)return nt.method="throw",nt.arg=new TypeError("iterator result is not an object"),nt.delegate=null,Ae;if(Ye.done)nt[tt.resultName]=Ye.value,nt.next=tt.nextLoc,nt.method!=="return"&&(nt.method="next",nt.arg=ee);else return Ye;return nt.delegate=null,Ae}Fe(je),se(je,ie,"Generator"),se(je,x,function(){return this}),se(je,"toString",function(){return"[object Generator]"});function Ke(tt){var nt={tryLoc:tt[0]};1 in tt&&(nt.catchLoc=tt[1]),2 in tt&&(nt.finallyLoc=tt[2],nt.afterLoc=tt[3]),this.tryEntries.push(nt)}function Ve(tt){var nt=tt.completion||{};nt.type="normal",delete nt.arg,tt.completion=nt}function it(tt){this.tryEntries=[{tryLoc:"root"}],tt.forEach(Ke,this),this.reset(!0)}E.keys=function(tt){var nt=[];for(var et in tt)nt.push(et);return nt.reverse(),function Ze(){for(;nt.length;){var Ye=nt.pop();if(Ye in tt)return Ze.value=Ye,Ze.done=!1,Ze}return Ze.done=!0,Ze}};function Le(tt){if(tt){var nt=tt[x];if(nt)return nt.call(tt);if(typeof tt.next=="function")return tt;if(!isNaN(tt.length)){var et=-1,Ze=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 Ze.next=Ze}}return{next:Ue}}E.values=Le;function Ue(){return{value:ee,done:!0}}return it.prototype={constructor:it,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(Ve),!tt)for(var nt in this)nt.charAt(0)==="t"&&oe.call(this,nt)&&!isNaN(+nt.slice(1))&&(this[nt]=ee)},stop:function(){this.done=!0;var tt=this.tryEntries[0],nt=tt.completion;if(nt.type==="throw")throw nt.arg;return this.rval},dispatchException:function(tt){if(this.done)throw tt;var nt=this;function et(ht,at){return Xe.type="throw",Xe.arg=tt,nt.next=ht,at&&(nt.method="next",nt.arg=ee),!!at}for(var Ze=this.tryEntries.length-1;Ze>=0;--Ze){var Ye=this.tryEntries[Ze],Xe=Ye.completion;if(Ye.tryLoc==="root")return et("end");if(Ye.tryLoc<=this.prev){var st=oe.call(Ye,"catchLoc"),Qe=oe.call(Ye,"finallyLoc");if(st&&Qe){if(this.prev<Ye.catchLoc)return et(Ye.catchLoc,!0);if(this.prev<Ye.finallyLoc)return et(Ye.finallyLoc)}else if(st){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,nt){for(var et=this.tryEntries.length-1;et>=0;--et){var Ze=this.tryEntries[et];if(Ze.tryLoc<=this.prev&&oe.call(Ze,"finallyLoc")&&this.prev<Ze.finallyLoc){var Ye=Ze;break}}Ye&&(tt==="break"||tt==="continue")&&Ye.tryLoc<=nt&&nt<=Ye.finallyLoc&&(Ye=null);var Xe=Ye?Ye.completion:{};return Xe.type=tt,Xe.arg=nt,Ye?(this.method="next",this.next=Ye.finallyLoc,Ae):this.complete(Xe)},complete:function(tt,nt){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"&&nt&&(this.next=nt),Ae},finish:function(tt){for(var nt=this.tryEntries.length-1;nt>=0;--nt){var et=this.tryEntries[nt];if(et.finallyLoc===tt)return this.complete(et.completion,et.afterLoc),Ve(et),Ae}},catch:function(tt){for(var nt=this.tryEntries.length-1;nt>=0;--nt){var et=this.tryEntries[nt];if(et.tryLoc===tt){var Ze=et.completion;if(Ze.type==="throw"){var Ye=Ze.arg;Ve(et)}return Ye}}throw new Error("illegal catch attempt")},delegateYield:function(tt,nt,et){return this.delegate={iterator:Le(tt),resultName:nt,nextLoc:et},this.method==="next"&&(this.arg=ee),Ae}},E}(typeof Pe=="object"?Pe.exports:{});try{regeneratorRuntime=z}catch(E){typeof globalThis=="object"?globalThis.regeneratorRuntime=z:Function("r","regeneratorRuntime = r")(z)}},{}],396:[function(y,Pe,ye){var z=y("buffer"),E=z.Buffer;function re(ee,de){for(var x in ee)de[x]=ee[x]}E.from&&E.alloc&&E.allocUnsafe&&E.allocUnsafeSlow?Pe.exports=z:(re(z,ye),ye.Buffer=oe);function oe(ee,de,x){return E(ee,de,x)}re(E,oe),oe.from=function(ee,de,x){if(typeof ee=="number")throw new TypeError("Argument must not be a number");return E(ee,de,x)},oe.alloc=function(ee,de,x){if(typeof ee!="number")throw new TypeError("Argument must be a number");var ae=E(ee);return de!==void 0?typeof x=="string"?ae.fill(de,x):ae.fill(de):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,Pe,ye){(function(z){(function(){(function(E){E.parser=function(qe,_e){return new oe(qe,_e)},E.SAXParser=oe,E.SAXStream=ue,E.createStream=se,E.MAX_BUFFER_LENGTH=64*1024;var re=["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,_e){if(!(this instanceof oe))return new oe(qe,_e);var Re=this;de(Re),Re.q=Re.c="",Re.bufferCheckPosition=E.MAX_BUFFER_LENGTH,Re.opt=_e||{},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=ke.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),Ge(Re,"onready")}Object.create||(Object.create=function(qe){function _e(){}_e.prototype=qe;var Re=new _e;return Re}),Object.keys||(Object.keys=function(qe){var _e=[];for(var Re in qe)qe.hasOwnProperty(Re)&&_e.push(Re);return _e});function ee(qe){for(var _e=Math.max(E.MAX_BUFFER_LENGTH,10),Re=0,ne=0,fe=re.length;ne<fe;ne++){var Me=qe[re[ne]].length;if(Me>_e)switch(re[ne]){case"textNode":Ve(qe);break;case"cdata":Ke(qe,"oncdata",qe.cdata),qe.cdata="";break;case"script":Ke(qe,"onscript",qe.script),qe.script="";break;default:Le(qe,"Max buffer length exceeded: "+re[ne])}Re=Math.max(Re,Me)}var He=E.MAX_BUFFER_LENGTH-Re;qe.bufferCheckPosition=He+qe.position}function de(qe){for(var _e=0,Re=re.length;_e<Re;_e++)qe[re[_e]]=""}function x(qe){Ve(qe),qe.cdata!==""&&(Ke(qe,"oncdata",qe.cdata),qe.cdata=""),qe.script!==""&&(Ke(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 ie=E.EVENTS.filter(function(qe){return qe!=="error"&&qe!=="end"});function se(qe,_e){return new ue(qe,_e)}function ue(qe,_e){if(!(this instanceof ue))return new ue(qe,_e);ae.apply(this),this._parser=new oe(qe,_e),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,ie.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 _e=y("string_decoder").StringDecoder;this._decoder=new _e("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,_e){var Re=this;return!Re._parser["on"+qe]&&ie.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,_e)};var pe="[CDATA[",he="DOCTYPE",ge="http://www.w3.org/XML/1998/namespace",me="http://www.w3.org/2000/xmlns/",xe={xml:ge,xmlns:me},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]/,Ne=/[:_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]/,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-]/;function we(qe){return qe===" "||qe===`
`||qe==="\r"||qe===" "}function Ce(qe){return qe==='"'||qe==="'"}function Oe(qe){return qe===">"||we(qe)}function je(qe,_e){return qe.test(_e)}function Fe(qe,_e){return!je(qe,_e)}var ke=0;E.STATE={BEGIN:ke++,BEGIN_WHITESPACE:ke++,TEXT:ke++,TEXT_ENTITY:ke++,OPEN_WAKA:ke++,SGML_DECL:ke++,SGML_DECL_QUOTED:ke++,DOCTYPE:ke++,DOCTYPE_QUOTED:ke++,DOCTYPE_DTD:ke++,DOCTYPE_DTD_QUOTED:ke++,COMMENT_STARTING:ke++,COMMENT:ke++,COMMENT_ENDING:ke++,COMMENT_ENDED:ke++,CDATA:ke++,CDATA_ENDING:ke++,CDATA_ENDING_2:ke++,PROC_INST:ke++,PROC_INST_BODY:ke++,PROC_INST_ENDING:ke++,OPEN_TAG:ke++,OPEN_TAG_SLASH:ke++,ATTRIB:ke++,ATTRIB_NAME:ke++,ATTRIB_NAME_SAW_WHITE:ke++,ATTRIB_VALUE:ke++,ATTRIB_VALUE_QUOTED:ke++,ATTRIB_VALUE_CLOSED:ke++,ATTRIB_VALUE_UNQUOTED:ke++,ATTRIB_VALUE_ENTITY_Q:ke++,ATTRIB_VALUE_ENTITY_U:ke++,CLOSE_TAG:ke++,CLOSE_TAG_SAW_WHITE:ke++,SCRIPT:ke++,SCRIPT_ENDING:ke++},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 _e=E.ENTITIES[qe],Re=typeof _e=="number"?String.fromCharCode(_e):_e;E.ENTITIES[qe]=Re});for(var Ee in E.STATE)E.STATE[E.STATE[Ee]]=Ee;ke=E.STATE;function Ge(qe,_e,Re){qe[_e]&&qe[_e](Re)}function Ke(qe,_e,Re){qe.textNode&&Ve(qe),Ge(qe,_e,Re)}function Ve(qe){qe.textNode=it(qe.opt,qe.textNode),qe.textNode&&Ge(qe,"ontext",qe.textNode),qe.textNode=""}function it(qe,_e){return qe.trim&&(_e=_e.trim()),qe.normalize&&(_e=_e.replace(/\s+/g," ")),_e}function Le(qe,_e){return Ve(qe),qe.trackPosition&&(_e+=`
Line: `+qe.line+`
Column: `+qe.column+`
Char: `+qe.c),_e=new Error(_e),qe.error=_e,Ge(qe,"onerror",_e),qe}function Ue(qe){return qe.sawRoot&&!qe.closedRoot&&tt(qe,"Unclosed root tag"),qe.state!==ke.BEGIN&&qe.state!==ke.BEGIN_WHITESPACE&&qe.state!==ke.TEXT&&Le(qe,"Unexpected end"),Ve(qe),qe.c="",qe.closed=!0,Ge(qe,"onend"),oe.call(qe,qe.strict,qe.opt),qe}function tt(qe,_e){if(typeof qe!="object"||!(qe instanceof oe))throw new Error("bad call to strictFail");qe.strict&&Le(qe,_e)}function nt(qe){qe.strict||(qe.tagName=qe.tagName[qe.looseCase]());var _e=qe.tags[qe.tags.length-1]||qe,Re=qe.tag={name:qe.tagName,attributes:{}};qe.opt.xmlns&&(Re.ns=_e.ns),qe.attribList.length=0,Ke(qe,"onopentagstart",Re)}function et(qe,_e){var Re=qe.indexOf(":"),ne=Re<0?["",qe]:qe.split(":"),fe=ne[0],Me=ne[1];return _e&&qe==="xmlns"&&(fe="xmlns",Me=""),{prefix:fe,local:Me}}function Ze(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 _e=et(qe.attribName,!0),Re=_e.prefix,ne=_e.local;if(Re==="xmlns")if(ne==="xml"&&qe.attribValue!==ge)tt(qe,"xml: prefix must be bound to "+ge+`
Actual: `+qe.attribValue);else if(ne==="xmlns"&&qe.attribValue!==me)tt(qe,"xmlns: prefix must be bound to "+me+`
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,Ke(qe,"onattribute",{name:qe.attribName,value:qe.attribValue});qe.attribName=qe.attribValue=""}function Ye(qe,_e){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(ft){Ke(qe,"onopennamespace",{prefix:ft,uri:Re.ns[ft]})});for(var Me=0,He=qe.attribList.length;Me<He;Me++){var be=qe.attribList[Me],ve=be[0],Ie=be[1],$e=et(ve,!0),We=$e.prefix,Je=$e.local,ct=We===""?"":Re.ns[We]||"",ot={name:ve,value:Ie,prefix:We,local:Je,uri:ct};We&&We!=="xmlns"&&!ct&&(tt(qe,"Unbound namespace prefix: "+JSON.stringify(We)),ot.uri=We),qe.tag.attributes[ve]=ot,Ke(qe,"onattribute",ot)}qe.attribList.length=0}qe.tag.isSelfClosing=!!_e,qe.sawRoot=!0,qe.tags.push(qe.tag),Ke(qe,"onopentag",qe.tag),_e||(!qe.noscript&&qe.tagName.toLowerCase()==="script"?qe.state=ke.SCRIPT:qe.state=ke.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=ke.TEXT;return}if(qe.script){if(qe.tagName!=="script"){qe.script+="</"+qe.tagName+">",qe.tagName="",qe.state=ke.SCRIPT;return}Ke(qe,"onscript",qe.script),qe.script=""}var _e=qe.tags.length,Re=qe.tagName;qe.strict||(Re=Re[qe.looseCase]());for(var ne=Re;_e--;){var fe=qe.tags[_e];if(fe.name!==ne)tt(qe,"Unexpected close tag");else break}if(_e<0){tt(qe,"Unmatched closing tag: "+qe.tagName),qe.textNode+="</"+qe.tagName+">",qe.state=ke.TEXT;return}qe.tagName=Re;for(var Me=qe.tags.length;Me-- >_e;){var He=qe.tag=qe.tags.pop();qe.tagName=qe.tag.name,Ke(qe,"onclosetag",qe.tagName);var be={};for(var ve in He.ns)be[ve]=He.ns[ve];var Ie=qe.tags[qe.tags.length-1]||qe;qe.opt.xmlns&&He.ns!==Ie.ns&&Object.keys(He.ns).forEach(function($e){var We=He.ns[$e];Ke(qe,"onclosenamespace",{prefix:$e,uri:We})})}_e===0&&(qe.closedRoot=!0),qe.tagName=qe.attribValue=qe.attribName="",qe.attribList.length=0,qe.state=ke.TEXT}function st(qe){var _e=qe.entity,Re=_e.toLowerCase(),ne,fe="";return qe.ENTITIES[_e]?qe.ENTITIES[_e]:qe.ENTITIES[Re]?qe.ENTITIES[Re]:(_e=Re,_e.charAt(0)==="#"&&(_e.charAt(1)==="x"?(_e=_e.slice(2),ne=parseInt(_e,16),fe=ne.toString(16)):(_e=_e.slice(1),ne=parseInt(_e,10),fe=ne.toString(10))),_e=_e.replace(/^0+/,""),isNaN(ne)||fe.toLowerCase()!==_e?(tt(qe,"Invalid character entity"),"&"+qe.entity+";"):String.fromCodePoint(ne))}function Qe(qe,_e){_e==="<"?(qe.state=ke.OPEN_WAKA,qe.startTagPosition=qe.position):we(_e)||(tt(qe,"Non-whitespace before first tag."),qe.textNode=_e,qe.state=ke.TEXT)}function ht(qe,_e){var Re="";return _e<qe.length&&(Re=qe.charAt(_e)),Re}function at(qe){var _e=this;if(this.error)throw this.error;if(_e.closed)return Le(_e,"Cannot write after close. Assign an onready handler.");if(qe===null)return Ue(_e);typeof qe=="object"&&(qe=qe.toString());for(var Re=0,ne="";ne=ht(qe,Re++),_e.c=ne,!!ne;)switch(_e.trackPosition&&(_e.position++,ne===`
`?(_e.line++,_e.column=0):_e.column++),_e.state){case ke.BEGIN:if(_e.state=ke.BEGIN_WHITESPACE,ne==="\uFEFF")continue;Qe(_e,ne);continue;case ke.BEGIN_WHITESPACE:Qe(_e,ne);continue;case ke.TEXT:if(_e.sawRoot&&!_e.closedRoot){for(var fe=Re-1;ne&&ne!=="<"&&ne!=="&";)ne=ht(qe,Re++),ne&&_e.trackPosition&&(_e.position++,ne===`
`?(_e.line++,_e.column=0):_e.column++);_e.textNode+=qe.substring(fe,Re-1)}ne==="<"&&!(_e.sawRoot&&_e.closedRoot&&!_e.strict)?(_e.state=ke.OPEN_WAKA,_e.startTagPosition=_e.position):(!we(ne)&&(!_e.sawRoot||_e.closedRoot)&&tt(_e,"Text data outside of root node."),ne==="&"?_e.state=ke.TEXT_ENTITY:_e.textNode+=ne);continue;case ke.SCRIPT:ne==="<"?_e.state=ke.SCRIPT_ENDING:_e.script+=ne;continue;case ke.SCRIPT_ENDING:ne==="/"?_e.state=ke.CLOSE_TAG:(_e.script+="<"+ne,_e.state=ke.SCRIPT);continue;case ke.OPEN_WAKA:if(ne==="!")_e.state=ke.SGML_DECL,_e.sgmlDecl="";else if(!we(ne))if(je(Ae,ne))_e.state=ke.OPEN_TAG,_e.tagName=ne;else if(ne==="/")_e.state=ke.CLOSE_TAG,_e.tagName="";else if(ne==="?")_e.state=ke.PROC_INST,_e.procInstName=_e.procInstBody="";else{if(tt(_e,"Unencoded <"),_e.startTagPosition+1<_e.position){var Me=_e.position-_e.startTagPosition;ne=new Array(Me).join(" ")+ne}_e.textNode+="<"+ne,_e.state=ke.TEXT}continue;case ke.SGML_DECL:(_e.sgmlDecl+ne).toUpperCase()===pe?(Ke(_e,"onopencdata"),_e.state=ke.CDATA,_e.sgmlDecl="",_e.cdata=""):_e.sgmlDecl+ne==="--"?(_e.state=ke.COMMENT,_e.comment="",_e.sgmlDecl=""):(_e.sgmlDecl+ne).toUpperCase()===he?(_e.state=ke.DOCTYPE,(_e.doctype||_e.sawRoot)&&tt(_e,"Inappropriately located doctype declaration"),_e.doctype="",_e.sgmlDecl=""):ne===">"?(Ke(_e,"onsgmldeclaration",_e.sgmlDecl),_e.sgmlDecl="",_e.state=ke.TEXT):(Ce(ne)&&(_e.state=ke.SGML_DECL_QUOTED),_e.sgmlDecl+=ne);continue;case ke.SGML_DECL_QUOTED:ne===_e.q&&(_e.state=ke.SGML_DECL,_e.q=""),_e.sgmlDecl+=ne;continue;case ke.DOCTYPE:ne===">"?(_e.state=ke.TEXT,Ke(_e,"ondoctype",_e.doctype),_e.doctype=!0):(_e.doctype+=ne,ne==="["?_e.state=ke.DOCTYPE_DTD:Ce(ne)&&(_e.state=ke.DOCTYPE_QUOTED,_e.q=ne));continue;case ke.DOCTYPE_QUOTED:_e.doctype+=ne,ne===_e.q&&(_e.q="",_e.state=ke.DOCTYPE);continue;case ke.DOCTYPE_DTD:_e.doctype+=ne,ne==="]"?_e.state=ke.DOCTYPE:Ce(ne)&&(_e.state=ke.DOCTYPE_DTD_QUOTED,_e.q=ne);continue;case ke.DOCTYPE_DTD_QUOTED:_e.doctype+=ne,ne===_e.q&&(_e.state=ke.DOCTYPE_DTD,_e.q="");continue;case ke.COMMENT:ne==="-"?_e.state=ke.COMMENT_ENDING:_e.comment+=ne;continue;case ke.COMMENT_ENDING:ne==="-"?(_e.state=ke.COMMENT_ENDED,_e.comment=it(_e.opt,_e.comment),_e.comment&&Ke(_e,"oncomment",_e.comment),_e.comment=""):(_e.comment+="-"+ne,_e.state=ke.COMMENT);continue;case ke.COMMENT_ENDED:ne!==">"?(tt(_e,"Malformed comment"),_e.comment+="--"+ne,_e.state=ke.COMMENT):_e.state=ke.TEXT;continue;case ke.CDATA:ne==="]"?_e.state=ke.CDATA_ENDING:_e.cdata+=ne;continue;case ke.CDATA_ENDING:ne==="]"?_e.state=ke.CDATA_ENDING_2:(_e.cdata+="]"+ne,_e.state=ke.CDATA);continue;case ke.CDATA_ENDING_2:ne===">"?(_e.cdata&&Ke(_e,"oncdata",_e.cdata),Ke(_e,"onclosecdata"),_e.cdata="",_e.state=ke.TEXT):ne==="]"?_e.cdata+="]":(_e.cdata+="]]"+ne,_e.state=ke.CDATA);continue;case ke.PROC_INST:ne==="?"?_e.state=ke.PROC_INST_ENDING:we(ne)?_e.state=ke.PROC_INST_BODY:_e.procInstName+=ne;continue;case ke.PROC_INST_BODY:if(!_e.procInstBody&&we(ne))continue;ne==="?"?_e.state=ke.PROC_INST_ENDING:_e.procInstBody+=ne;continue;case ke.PROC_INST_ENDING:ne===">"?(Ke(_e,"onprocessinginstruction",{name:_e.procInstName,body:_e.procInstBody}),_e.procInstName=_e.procInstBody="",_e.state=ke.TEXT):(_e.procInstBody+="?"+ne,_e.state=ke.PROC_INST_BODY);continue;case ke.OPEN_TAG:je(Ne,ne)?_e.tagName+=ne:(nt(_e),ne===">"?Ye(_e):ne==="/"?_e.state=ke.OPEN_TAG_SLASH:(we(ne)||tt(_e,"Invalid character in tag name"),_e.state=ke.ATTRIB));continue;case ke.OPEN_TAG_SLASH:ne===">"?(Ye(_e,!0),Xe(_e)):(tt(_e,"Forward-slash in opening tag not followed by >"),_e.state=ke.ATTRIB);continue;case ke.ATTRIB:if(we(ne))continue;ne===">"?Ye(_e):ne==="/"?_e.state=ke.OPEN_TAG_SLASH:je(Ae,ne)?(_e.attribName=ne,_e.attribValue="",_e.state=ke.ATTRIB_NAME):tt(_e,"Invalid attribute name");continue;case ke.ATTRIB_NAME:ne==="="?_e.state=ke.ATTRIB_VALUE:ne===">"?(tt(_e,"Attribute without value"),_e.attribValue=_e.attribName,Ze(_e),Ye(_e)):we(ne)?_e.state=ke.ATTRIB_NAME_SAW_WHITE:je(Ne,ne)?_e.attribName+=ne:tt(_e,"Invalid attribute name");continue;case ke.ATTRIB_NAME_SAW_WHITE:if(ne==="=")_e.state=ke.ATTRIB_VALUE;else{if(we(ne))continue;tt(_e,"Attribute without value"),_e.tag.attributes[_e.attribName]="",_e.attribValue="",Ke(_e,"onattribute",{name:_e.attribName,value:""}),_e.attribName="",ne===">"?Ye(_e):je(Ae,ne)?(_e.attribName=ne,_e.state=ke.ATTRIB_NAME):(tt(_e,"Invalid attribute name"),_e.state=ke.ATTRIB)}continue;case ke.ATTRIB_VALUE:if(we(ne))continue;Ce(ne)?(_e.q=ne,_e.state=ke.ATTRIB_VALUE_QUOTED):(tt(_e,"Unquoted attribute value"),_e.state=ke.ATTRIB_VALUE_UNQUOTED,_e.attribValue=ne);continue;case ke.ATTRIB_VALUE_QUOTED:if(ne!==_e.q){ne==="&"?_e.state=ke.ATTRIB_VALUE_ENTITY_Q:_e.attribValue+=ne;continue}Ze(_e),_e.q="",_e.state=ke.ATTRIB_VALUE_CLOSED;continue;case ke.ATTRIB_VALUE_CLOSED:we(ne)?_e.state=ke.ATTRIB:ne===">"?Ye(_e):ne==="/"?_e.state=ke.OPEN_TAG_SLASH:je(Ae,ne)?(tt(_e,"No whitespace between attributes"),_e.attribName=ne,_e.attribValue="",_e.state=ke.ATTRIB_NAME):tt(_e,"Invalid attribute name");continue;case ke.ATTRIB_VALUE_UNQUOTED:if(!Oe(ne)){ne==="&"?_e.state=ke.ATTRIB_VALUE_ENTITY_U:_e.attribValue+=ne;continue}Ze(_e),ne===">"?Ye(_e):_e.state=ke.ATTRIB;continue;case ke.CLOSE_TAG:if(_e.tagName)ne===">"?Xe(_e):je(Ne,ne)?_e.tagName+=ne:_e.script?(_e.script+="</"+_e.tagName,_e.tagName="",_e.state=ke.SCRIPT):(we(ne)||tt(_e,"Invalid tagname in closing tag"),_e.state=ke.CLOSE_TAG_SAW_WHITE);else{if(we(ne))continue;Fe(Ae,ne)?_e.script?(_e.script+="</"+ne,_e.state=ke.SCRIPT):tt(_e,"Invalid tagname in closing tag."):_e.tagName=ne}continue;case ke.CLOSE_TAG_SAW_WHITE:if(we(ne))continue;ne===">"?Xe(_e):tt(_e,"Invalid characters in closing tag");continue;case ke.TEXT_ENTITY:case ke.ATTRIB_VALUE_ENTITY_Q:case ke.ATTRIB_VALUE_ENTITY_U:var He,be;switch(_e.state){case ke.TEXT_ENTITY:He=ke.TEXT,be="textNode";break;case ke.ATTRIB_VALUE_ENTITY_Q:He=ke.ATTRIB_VALUE_QUOTED,be="attribValue";break;case ke.ATTRIB_VALUE_ENTITY_U:He=ke.ATTRIB_VALUE_UNQUOTED,be="attribValue";break}ne===";"?(_e[be]+=st(_e),_e.entity="",_e.state=He):je(_e.entity.length?De:Be,ne)?_e.entity+=ne:(tt(_e,"Invalid character in entity name"),_e[be]+="&"+_e.entity+ne,_e.entity="",_e.state=He);continue;default:throw new Error(_e,"Unknown state: "+_e.state)}return _e.position>=_e.bufferCheckPosition&&ee(_e),_e}String.fromCodePoint||function(){var qe=String.fromCharCode,_e=Math.floor,Re=function(){var ne=16384,fe=[],Me,He,be=-1,ve=arguments.length;if(!ve)return"";for(var Ie="";++be<ve;){var $e=Number(arguments[be]);if(!isFinite($e)||$e<0||$e>1114111||_e($e)!==$e)throw RangeError("Invalid code point: "+$e);$e<=65535?fe.push($e):($e-=65536,Me=($e>>10)+55296,He=$e%1024+56320,fe.push(Me,He)),(be+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 ye=="undefined"?this.sax={}:ye)}).call(this)}).call(this,y("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(y,Pe,ye){Pe.exports=re;var z=y("events").EventEmitter,E=y("inherits");E(re,z),re.Readable=y("readable-stream/lib/_stream_readable.js"),re.Writable=y("readable-stream/lib/_stream_writable.js"),re.Duplex=y("readable-stream/lib/_stream_duplex.js"),re.Transform=y("readable-stream/lib/_stream_transform.js"),re.PassThrough=y("readable-stream/lib/_stream_passthrough.js"),re.finished=y("readable-stream/lib/internal/streams/end-of-stream.js"),re.pipeline=y("readable-stream/lib/internal/streams/pipeline.js"),re.Stream=re;function re(){z.call(this)}re.prototype.pipe=function(oe,ee){var de=this;function x(ge){oe.writable&&oe.write(ge)===!1&&de.pause&&de.pause()}de.on("data",x);function ae(){de.readable&&de.resume&&de.resume()}oe.on("drain",ae),!oe._isStdio&&(!ee||ee.end!==!1)&&(de.on("end",se),de.on("close",ue));var ie=!1;function se(){ie||(ie=!0,oe.end())}function ue(){ie||(ie=!0,typeof oe.destroy=="function"&&oe.destroy())}function pe(ge){if(he(),z.listenerCount(this,"error")===0)throw ge}de.on("error",pe),oe.on("error",pe);function he(){de.removeListener("data",x),oe.removeListener("drain",ae),de.removeListener("end",se),de.removeListener("close",ue),de.removeListener("error",pe),oe.removeListener("error",pe),de.removeListener("end",he),de.removeListener("close",he),oe.removeListener("close",he)}return de.on("end",he),de.on("close",he),oe.on("close",he),oe.emit("pipe",de),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,Pe,ye){"use strict";function z(ae,ie){ae.prototype=Object.create(ie.prototype),ae.prototype.constructor=ae,ae.__proto__=ie}var E={};function re(ae,ie,se){se||(se=Error);function ue(he,ge,me){return typeof ie=="string"?ie:ie(he,ge,me)}var pe=function(he){z(ge,he);function ge(me,xe,Ae){return he.call(this,ue(me,xe,Ae))||this}return ge}(se);pe.prototype.name=se.name,pe.prototype.code=ae,E[ae]=pe}function oe(ae,ie){if(Array.isArray(ae)){var se=ae.length;return ae=ae.map(function(ue){return String(ue)}),se>2?"one of ".concat(ie," ").concat(ae.slice(0,se-1).join(", "),", or ")+ae[se-1]:se===2?"one of ".concat(ie," ").concat(ae[0]," or ").concat(ae[1]):"of ".concat(ie," ").concat(ae[0])}else return"of ".concat(ie," ").concat(String(ae))}function ee(ae,ie,se){return ae.substr(!se||se<0?0:+se,ie.length)===ie}function de(ae,ie,se){return(se===void 0||se>ae.length)&&(se=ae.length),ae.substring(se-ie.length,se)===ie}function x(ae,ie,se){return typeof se!="number"&&(se=0),se+ie.length>ae.length?!1:ae.indexOf(ie,se)!==-1}re("ERR_INVALID_OPT_VALUE",function(ae,ie){return'The value "'+ie+'" is invalid for option "'+ae+'"'},TypeError),re("ERR_INVALID_ARG_TYPE",function(ae,ie,se){var ue;typeof ie=="string"&&ee(ie,"not ")?(ue="must not be",ie=ie.replace(/^not /,"")):ue="must be";var pe;if(de(ae," argument"))pe="The ".concat(ae," ").concat(ue," ").concat(oe(ie,"type"));else{var he=x(ae,".")?"property":"argument";pe='The "'.concat(ae,'" ').concat(he," ").concat(ue," ").concat(oe(ie,"type"))}return pe+=". Received type ".concat(typeof se),pe},TypeError),re("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),re("ERR_METHOD_NOT_IMPLEMENTED",function(ae){return"The "+ae+" method is not implemented"}),re("ERR_STREAM_PREMATURE_CLOSE","Premature close"),re("ERR_STREAM_DESTROYED",function(ae){return"Cannot call "+ae+" after a stream was destroyed"}),re("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),re("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),re("ERR_STREAM_WRITE_AFTER_END","write after end"),re("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),re("ERR_UNKNOWN_ENCODING",function(ae){return"Unknown encoding: "+ae},TypeError),re("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Pe.exports.codes=E},{}],400:[function(y,Pe,ye){(function(z){(function(){"use strict";var E=Object.keys||function(ue){var pe=[];for(var he in ue)pe.push(he);return pe};Pe.exports=ae;var re=y("./_stream_readable"),oe=y("./_stream_writable");y("inherits")(ae,re);for(var ee=E(oe.prototype),de=0;de<ee.length;de++){var x=ee[de];ae.prototype[x]||(ae.prototype[x]=oe.prototype[x])}function ae(ue){if(!(this instanceof ae))return new ae(ue);re.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",ie)))}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 ie(){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,Pe,ye){"use strict";Pe.exports=E;var z=y("./_stream_transform");y("inherits")(E,z);function E(re){if(!(this instanceof E))return new E(re);z.call(this,re)}E.prototype._transform=function(re,oe,ee){ee(null,re)}},{"./_stream_transform":403,inherits:364}],402:[function(y,Pe,ye){(function(z,E){(function(){"use strict";Pe.exports=Ke;var re;Ke.ReadableState=Ge;var oe=y("events").EventEmitter,ee=function(ve,Ie){return ve.listeners(Ie).length},de=y("./internal/streams/stream"),x=y("buffer").Buffer,ae=(typeof E!="undefined"?E:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function ie(be){return x.from(be)}function se(be){return x.isBuffer(be)||be instanceof ae}var ue=y("util"),pe;ue&&ue.debuglog?pe=ue.debuglog("stream"):pe=function(){};var he=y("./internal/streams/buffer_list"),ge=y("./internal/streams/destroy"),me=y("./internal/streams/state"),xe=me.getHighWaterMark,Ae=y("../errors").codes,Ne=Ae.ERR_INVALID_ARG_TYPE,Be=Ae.ERR_STREAM_PUSH_AFTER_EOF,De=Ae.ERR_METHOD_NOT_IMPLEMENTED,we=Ae.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ce,Oe,je;y("inherits")(Ke,de);var Fe=ge.errorOrDestroy,ke=["error","close","destroy","pause","resume"];function Ee(be,ve,Ie){if(typeof be.prependListener=="function")return be.prependListener(ve,Ie);!be._events||!be._events[ve]?be.on(ve,Ie):Array.isArray(be._events[ve])?be._events[ve].unshift(Ie):be._events[ve]=[Ie,be._events[ve]]}function Ge(be,ve,Ie){re=re||y("./_stream_duplex"),be=be||{},typeof Ie!="boolean"&&(Ie=ve instanceof re),this.objectMode=!!be.objectMode,Ie&&(this.objectMode=this.objectMode||!!be.readableObjectMode),this.highWaterMark=xe(this,be,"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=be.emitClose!==!1,this.autoDestroy=!!be.autoDestroy,this.destroyed=!1,this.defaultEncoding=be.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,be.encoding&&(Ce||(Ce=y("string_decoder/").StringDecoder),this.decoder=new Ce(be.encoding),this.encoding=be.encoding)}function Ke(be){if(re=re||y("./_stream_duplex"),!(this instanceof Ke))return new Ke(be);var ve=this instanceof re;this._readableState=new Ge(be,this,ve),this.readable=!0,be&&(typeof be.read=="function"&&(this._read=be.read),typeof be.destroy=="function"&&(this._destroy=be.destroy)),de.call(this)}Object.defineProperty(Ke.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ve){this._readableState&&(this._readableState.destroyed=ve)}}),Ke.prototype.destroy=ge.destroy,Ke.prototype._undestroy=ge.undestroy,Ke.prototype._destroy=function(be,ve){ve(be)},Ke.prototype.push=function(be,ve){var Ie=this._readableState,$e;return Ie.objectMode?$e=!0:typeof be=="string"&&(ve=ve||Ie.defaultEncoding,ve!==Ie.encoding&&(be=x.from(be,ve),ve=""),$e=!0),Ve(this,be,ve,!1,$e)},Ke.prototype.unshift=function(be){return Ve(this,be,null,!0,!1)};function Ve(be,ve,Ie,$e,We){pe("readableAddChunk",ve);var Je=be._readableState;if(ve===null)Je.reading=!1,et(be,Je);else{var ct;if(We||(ct=Le(Je,ve)),ct)Fe(be,ct);else if(Je.objectMode||ve&&ve.length>0)if(typeof ve!="string"&&!Je.objectMode&&Object.getPrototypeOf(ve)!==x.prototype&&(ve=ie(ve)),$e)Je.endEmitted?Fe(be,new we):it(be,Je,ve,!0);else if(Je.ended)Fe(be,new Be);else{if(Je.destroyed)return!1;Je.reading=!1,Je.decoder&&!Ie?(ve=Je.decoder.write(ve),Je.objectMode||ve.length!==0?it(be,Je,ve,!1):Xe(be,Je)):it(be,Je,ve,!1)}else $e||(Je.reading=!1,Xe(be,Je))}return!Je.ended&&(Je.length<Je.highWaterMark||Je.length===0)}function it(be,ve,Ie,$e){ve.flowing&&ve.length===0&&!ve.sync?(ve.awaitDrain=0,be.emit("data",Ie)):(ve.length+=ve.objectMode?1:Ie.length,$e?ve.buffer.unshift(Ie):ve.buffer.push(Ie),ve.needReadable&&Ze(be)),Xe(be,ve)}function Le(be,ve){var Ie;return!se(ve)&&typeof ve!="string"&&ve!==void 0&&!be.objectMode&&(Ie=new Ne("chunk",["string","Buffer","Uint8Array"],ve)),Ie}Ke.prototype.isPaused=function(){return this._readableState.flowing===!1},Ke.prototype.setEncoding=function(be){Ce||(Ce=y("string_decoder/").StringDecoder);var ve=new Ce(be);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(be){return be>=Ue?be=Ue:(be--,be|=be>>>1,be|=be>>>2,be|=be>>>4,be|=be>>>8,be|=be>>>16,be++),be}function nt(be,ve){return be<=0||ve.length===0&&ve.ended?0:ve.objectMode?1:be!==be?ve.flowing&&ve.length?ve.buffer.head.data.length:ve.length:(be>ve.highWaterMark&&(ve.highWaterMark=tt(be)),be<=ve.length?be:ve.ended?ve.length:(ve.needReadable=!0,0))}Ke.prototype.read=function(be){pe("read",be),be=parseInt(be,10);var ve=this._readableState,Ie=be;if(be!==0&&(ve.emittedReadable=!1),be===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):Ze(this),null;if(be=nt(be,ve),be===0&&ve.ended)return ve.length===0&&fe(this),null;var $e=ve.needReadable;pe("need readable",$e),(ve.length===0||ve.length-be<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||(be=nt(Ie,ve)));var We;return be>0?We=ne(be,ve):We=null,We===null?(ve.needReadable=ve.length<=ve.highWaterMark,be=0):(ve.length-=be,ve.awaitDrain=0),ve.length===0&&(ve.ended||(ve.needReadable=!0),Ie!==be&&ve.ended&&fe(this)),We!==null&&this.emit("data",We),We};function et(be,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?Ze(be):(ve.needReadable=!1,ve.emittedReadable||(ve.emittedReadable=!0,Ye(be)))}}function Ze(be){var ve=be._readableState;pe("emitReadable",ve.needReadable,ve.emittedReadable),ve.needReadable=!1,ve.emittedReadable||(pe("emitReadable",ve.flowing),ve.emittedReadable=!0,z.nextTick(Ye,be))}function Ye(be){var ve=be._readableState;pe("emitReadable_",ve.destroyed,ve.length,ve.ended),!ve.destroyed&&(ve.length||ve.ended)&&(be.emit("readable"),ve.emittedReadable=!1),ve.needReadable=!ve.flowing&&!ve.ended&&ve.length<=ve.highWaterMark,Re(be)}function Xe(be,ve){ve.readingMore||(ve.readingMore=!0,z.nextTick(st,be,ve))}function st(be,ve){for(;!ve.reading&&!ve.ended&&(ve.length<ve.highWaterMark||ve.flowing&&ve.length===0);){var Ie=ve.length;if(pe("maybeReadMore read 0"),be.read(0),Ie===ve.length)break}ve.readingMore=!1}Ke.prototype._read=function(be){Fe(this,new De("_read()"))},Ke.prototype.pipe=function(be,ve){var Ie=this,$e=this._readableState;switch($e.pipesCount){case 0:$e.pipes=be;break;case 1:$e.pipes=[$e.pipes,be];break;default:$e.pipes.push(be);break}$e.pipesCount+=1,pe("pipe count=%d opts=%j",$e.pipesCount,ve);var We=(!ve||ve.end!==!1)&&be!==z.stdout&&be!==z.stderr,Je=We?ot:Tt;$e.endEmitted?z.nextTick(Je):Ie.once("end",Je),be.on("unpipe",ct);function ct(kt,Dt){pe("onunpipe"),kt===Ie&&Dt&&Dt.hasUnpiped===!1&&(Dt.hasUnpiped=!0,lt())}function ot(){pe("onend"),be.end()}var ft=Qe(Ie);be.on("drain",ft);var ut=!1;function lt(){pe("cleanup"),be.removeListener("close",Rt),be.removeListener("finish",Pt),be.removeListener("drain",ft),be.removeListener("error",yt),be.removeListener("unpipe",ct),Ie.removeListener("end",ot),Ie.removeListener("end",Tt),Ie.removeListener("data",At),ut=!0,$e.awaitDrain&&(!be._writableState||be._writableState.needDrain)&&ft()}Ie.on("data",At);function At(kt){pe("ondata");var Dt=be.write(kt);pe("dest.write",Dt),Dt===!1&&(($e.pipesCount===1&&$e.pipes===be||$e.pipesCount>1&&He($e.pipes,be)!==-1)&&!ut&&(pe("false write response, pause",$e.awaitDrain),$e.awaitDrain++),Ie.pause())}function yt(kt){pe("onerror",kt),Tt(),be.removeListener("error",yt),ee(be,"error")===0&&Fe(be,kt)}Ee(be,"error",yt);function Rt(){be.removeListener("finish",Pt),Tt()}be.once("close",Rt);function Pt(){pe("onfinish"),be.removeListener("close",Rt),Tt()}be.once("finish",Pt);function Tt(){pe("unpipe"),Ie.unpipe(be)}return be.emit("pipe",Ie),$e.flowing||(pe("pipe resume"),Ie.resume()),be};function Qe(be){return function(){var Ie=be._readableState;pe("pipeOnDrain",Ie.awaitDrain),Ie.awaitDrain&&Ie.awaitDrain--,Ie.awaitDrain===0&&ee(be,"data")&&(Ie.flowing=!0,Re(be))}}Ke.prototype.unpipe=function(be){var ve=this._readableState,Ie={hasUnpiped:!1};if(ve.pipesCount===0)return this;if(ve.pipesCount===1)return be&&be!==ve.pipes?this:(be||(be=ve.pipes),ve.pipes=null,ve.pipesCount=0,ve.flowing=!1,be&&be.emit("unpipe",this,Ie),this);if(!be){var $e=ve.pipes,We=ve.pipesCount;ve.pipes=null,ve.pipesCount=0,ve.flowing=!1;for(var Je=0;Je<We;Je++)$e[Je].emit("unpipe",this,{hasUnpiped:!1});return this}var ct=He(ve.pipes,be);return ct===-1?this:(ve.pipes.splice(ct,1),ve.pipesCount-=1,ve.pipesCount===1&&(ve.pipes=ve.pipes[0]),be.emit("unpipe",this,Ie),this)},Ke.prototype.on=function(be,ve){var Ie=de.prototype.on.call(this,be,ve),$e=this._readableState;return be==="data"?($e.readableListening=this.listenerCount("readable")>0,$e.flowing!==!1&&this.resume()):be==="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?Ze(this):$e.reading||z.nextTick(at,this)),Ie},Ke.prototype.addListener=Ke.prototype.on,Ke.prototype.removeListener=function(be,ve){var Ie=de.prototype.removeListener.call(this,be,ve);return be==="readable"&&z.nextTick(ht,this),Ie},Ke.prototype.removeAllListeners=function(be){var ve=de.prototype.removeAllListeners.apply(this,arguments);return(be==="readable"||be===void 0)&&z.nextTick(ht,this),ve};function ht(be){var ve=be._readableState;ve.readableListening=be.listenerCount("readable")>0,ve.resumeScheduled&&!ve.paused?ve.flowing=!0:be.listenerCount("data")>0&&be.resume()}function at(be){pe("readable nexttick read 0"),be.read(0)}Ke.prototype.resume=function(){var be=this._readableState;return be.flowing||(pe("resume"),be.flowing=!be.readableListening,qe(this,be)),be.paused=!1,this};function qe(be,ve){ve.resumeScheduled||(ve.resumeScheduled=!0,z.nextTick(_e,be,ve))}function _e(be,ve){pe("resume",ve.reading),ve.reading||be.read(0),ve.resumeScheduled=!1,be.emit("resume"),Re(be),ve.flowing&&!ve.reading&&be.read(0)}Ke.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(be){var ve=be._readableState;for(pe("flow",ve.flowing);ve.flowing&&be.read()!==null;);}Ke.prototype.wrap=function(be){var ve=this,Ie=this._readableState,$e=!1;be.on("end",function(){if(pe("wrapped end"),Ie.decoder&&!Ie.ended){var ct=Ie.decoder.end();ct&&ct.length&&ve.push(ct)}ve.push(null)}),be.on("data",function(ct){if(pe("wrapped data"),Ie.decoder&&(ct=Ie.decoder.write(ct)),!(Ie.objectMode&&ct==null)&&!(!Ie.objectMode&&(!ct||!ct.length))){var ot=ve.push(ct);ot||($e=!0,be.pause())}});for(var We in be)this[We]===void 0&&typeof be[We]=="function"&&(this[We]=function(ot){return function(){return be[ot].apply(be,arguments)}}(We));for(var Je=0;Je<ke.length;Je++)be.on(ke[Je],this.emit.bind(this,ke[Je]));return this._read=function(ct){pe("wrapped _read",ct),$e&&($e=!1,be.resume())},this},typeof Symbol=="function"&&(Ke.prototype[Symbol.asyncIterator]=function(){return Oe===void 0&&(Oe=y("./internal/streams/async_iterator")),Oe(this)}),Object.defineProperty(Ke.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Ke.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Ke.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(ve){this._readableState&&(this._readableState.flowing=ve)}}),Ke._fromList=ne,Object.defineProperty(Ke.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ne(be,ve){if(ve.length===0)return null;var Ie;return ve.objectMode?Ie=ve.buffer.shift():!be||be>=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(be,ve.decoder),Ie}function fe(be){var ve=be._readableState;pe("endReadable",ve.endEmitted),ve.endEmitted||(ve.ended=!0,z.nextTick(Me,ve,be))}function Me(be,ve){if(pe("endReadableNT",be.endEmitted,be.length),!be.endEmitted&&be.length===0&&(be.endEmitted=!0,ve.readable=!1,ve.emit("end"),be.autoDestroy)){var Ie=ve._writableState;(!Ie||Ie.autoDestroy&&Ie.finished)&&ve.destroy()}}typeof Symbol=="function"&&(Ke.from=function(be,ve){return je===void 0&&(je=y("./internal/streams/from")),je(Ke,be,ve)});function He(be,ve){for(var Ie=0,$e=be.length;Ie<$e;Ie++)if(be[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,Pe,ye){"use strict";Pe.exports=ae;var z=y("../errors").codes,E=z.ERR_METHOD_NOT_IMPLEMENTED,re=z.ERR_MULTIPLE_CALLBACK,oe=z.ERR_TRANSFORM_ALREADY_TRANSFORMING,ee=z.ERR_TRANSFORM_WITH_LENGTH_0,de=y("./_stream_duplex");y("inherits")(ae,de);function x(ue,pe){var he=this._transformState;he.transforming=!1;var ge=he.writecb;if(ge===null)return this.emit("error",new re);he.writechunk=null,he.writecb=null,pe!=null&&this.push(pe),ge(ue);var me=this._readableState;me.reading=!1,(me.needReadable||me.length<me.highWaterMark)&&this._read(me.highWaterMark)}function ae(ue){if(!(this instanceof ae))return new ae(ue);de.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",ie)}function ie(){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,de.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 ge=this._transformState;if(ge.writecb=he,ge.writechunk=ue,ge.writeencoding=pe,!ge.transforming){var me=this._readableState;(ge.needTransform||me.needReadable||me.length<me.highWaterMark)&&this._read(me.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){de.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,Pe,ye){(function(z,E){(function(){"use strict";Pe.exports=Ge;function re(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(){_e(ne,Re)}}var ee;Ge.WritableState=ke;var de={deprecate:y("util-deprecate")},x=y("./internal/streams/stream"),ae=y("buffer").Buffer,ie=(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 ie}var pe=y("./internal/streams/destroy"),he=y("./internal/streams/state"),ge=he.getHighWaterMark,me=y("../errors").codes,xe=me.ERR_INVALID_ARG_TYPE,Ae=me.ERR_METHOD_NOT_IMPLEMENTED,Ne=me.ERR_MULTIPLE_CALLBACK,Be=me.ERR_STREAM_CANNOT_PIPE,De=me.ERR_STREAM_DESTROYED,we=me.ERR_STREAM_NULL_VALUES,Ce=me.ERR_STREAM_WRITE_AFTER_END,Oe=me.ERR_UNKNOWN_ENCODING,je=pe.errorOrDestroy;y("inherits")(Ge,x);function Fe(){}function ke(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=ge(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(He){et(ne,He)},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)}ke.prototype.getBuffer=function(){for(var ne=this.bufferedRequest,fe=[];ne;)fe.push(ne),ne=ne.next;return fe},function(){try{Object.defineProperty(ke.prototype,"buffer",{get:de.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Re){}}();var Ee;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ee=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ge,Symbol.hasInstance,{value:function(ne){return Ee.call(this,ne)?!0:this!==Ge?!1:ne&&ne._writableState instanceof ke}})):Ee=function(ne){return ne instanceof this};function Ge(Re){ee=ee||y("./_stream_duplex");var ne=this instanceof ee;if(!ne&&!Ee.call(Ge,this))return new Ge(Re);this._writableState=new ke(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)}Ge.prototype.pipe=function(){je(this,new Be)};function Ke(Re,ne){var fe=new Ce;je(Re,fe),z.nextTick(ne,fe)}function Ve(Re,ne,fe,Me){var He;return fe===null?He=new we:typeof fe!="string"&&!ne.objectMode&&(He=new xe("chunk",["string","Buffer"],fe)),He?(je(Re,He),z.nextTick(Me,He),!1):!0}Ge.prototype.write=function(Re,ne,fe){var Me=this._writableState,He=!1,be=!Me.objectMode&&ue(Re);return be&&!ae.isBuffer(Re)&&(Re=se(Re)),typeof ne=="function"&&(fe=ne,ne=null),be?ne="buffer":ne||(ne=Me.defaultEncoding),typeof fe!="function"&&(fe=Fe),Me.ending?Ke(this,fe):(be||Ve(this,Me,Re,fe))&&(Me.pendingcb++,He=Le(this,Me,be,Re,ne,fe)),He},Ge.prototype.cork=function(){this._writableState.corked++},Ge.prototype.uncork=function(){var Re=this._writableState;Re.corked&&(Re.corked--,!Re.writing&&!Re.corked&&!Re.bufferProcessing&&Re.bufferedRequest&&Xe(this,Re))},Ge.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(Ge.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function it(Re,ne,fe){return!Re.objectMode&&Re.decodeStrings!==!1&&typeof ne=="string"&&(ne=ae.from(ne,fe)),ne}Object.defineProperty(Ge.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Le(Re,ne,fe,Me,He,be){if(!fe){var ve=it(ne,Me,He);Me!==ve&&(fe=!0,He="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 We=ne.lastBufferedRequest;ne.lastBufferedRequest={chunk:Me,encoding:He,isBuf:fe,callback:be,next:null},We?We.next=ne.lastBufferedRequest:ne.bufferedRequest=ne.lastBufferedRequest,ne.bufferedRequestCount+=1}else Ue(Re,ne,!1,Ie,Me,He,be);return $e}function Ue(Re,ne,fe,Me,He,be,ve){ne.writelen=Me,ne.writecb=ve,ne.writing=!0,ne.sync=!0,ne.destroyed?ne.onwrite(new De("write")):fe?Re._writev(He,ne.onwrite):Re._write(He,be,ne.onwrite),ne.sync=!1}function tt(Re,ne,fe,Me,He){--ne.pendingcb,fe?(z.nextTick(He,Me),z.nextTick(at,Re,ne),Re._writableState.errorEmitted=!0,je(Re,Me)):(He(Me),Re._writableState.errorEmitted=!0,je(Re,Me),at(Re,ne))}function nt(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,He=fe.writecb;if(typeof He!="function")throw new Ne;if(nt(fe),ne)tt(Re,fe,Me,ne,He);else{var be=st(fe)||Re.destroyed;!be&&!fe.corked&&!fe.bufferProcessing&&fe.bufferedRequest&&Xe(Re,fe),Me?z.nextTick(Ze,Re,fe,be,He):Ze(Re,fe,be,He)}}function Ze(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,He=new Array(Me),be=ne.corkedRequestsFree;be.entry=fe;for(var ve=0,Ie=!0;fe;)He[ve]=fe,fe.isBuf||(Ie=!1),fe=fe.next,ve+=1;He.allBuffers=Ie,Ue(Re,ne,!0,ne.length,He,"",be.finish),ne.pendingcb++,ne.lastBufferedRequest=null,be.next?(ne.corkedRequestsFree=be.next,be.next=null):ne.corkedRequestsFree=new oe(ne),ne.bufferedRequestCount=0}else{for(;fe;){var $e=fe.chunk,We=fe.encoding,Je=fe.callback,ct=ne.objectMode?1:$e.length;if(Ue(Re,ne,!1,ct,$e,We,Je),fe=fe.next,ne.bufferedRequestCount--,ne.writing)break}fe===null&&(ne.lastBufferedRequest=null)}ne.bufferedRequest=fe,ne.bufferProcessing=!1}Ge.prototype._write=function(Re,ne,fe){fe(new Ae("_write()"))},Ge.prototype._writev=null,Ge.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(Ge.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function st(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&&je(Re,fe),ne.prefinished=!0,Re.emit("prefinish"),at(Re,ne)})}function ht(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=st(ne);if(fe&&(ht(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 _e(Re,ne,fe){var Me=Re.entry;for(Re.entry=null;Me;){var He=Me.callback;ne.pendingcb--,He(fe),Me=Me.next}ne.corkedRequestsFree.next=Re}Object.defineProperty(Ge.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(ne){this._writableState&&(this._writableState.destroyed=ne)}}),Ge.prototype.destroy=pe.destroy,Ge.prototype._undestroy=pe.undestroy,Ge.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,Pe,ye){(function(z){(function(){"use strict";var E;function re(we,Ce,Oe){return Ce=oe(Ce),Ce in we?Object.defineProperty(we,Ce,{value:Oe,enumerable:!0,configurable:!0,writable:!0}):we[Ce]=Oe,we}function oe(we){var Ce=ee(we,"string");return typeof Ce=="symbol"?Ce:String(Ce)}function ee(we,Ce){if(typeof we!="object"||we===null)return we;var Oe=we[Symbol.toPrimitive];if(Oe!==void 0){var je=Oe.call(we,Ce||"default");if(typeof je!="object")return je;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ce==="string"?String:Number)(we)}var de=y("./end-of-stream"),x=Symbol("lastResolve"),ae=Symbol("lastReject"),ie=Symbol("error"),se=Symbol("ended"),ue=Symbol("lastPromise"),pe=Symbol("handlePromise"),he=Symbol("stream");function ge(we,Ce){return{value:we,done:Ce}}function me(we){var Ce=we[x];if(Ce!==null){var Oe=we[he].read();Oe!==null&&(we[ue]=null,we[x]=null,we[ae]=null,Ce(ge(Oe,!1)))}}function xe(we){z.nextTick(me,we)}function Ae(we,Ce){return function(Oe,je){we.then(function(){if(Ce[se]){Oe(ge(void 0,!0));return}Ce[pe](Oe,je)},je)}}var Ne=Object.getPrototypeOf(function(){}),Be=Object.setPrototypeOf((E={get stream(){return this[he]},next:function(){var Ce=this,Oe=this[ie];if(Oe!==null)return Promise.reject(Oe);if(this[se])return Promise.resolve(ge(void 0,!0));if(this[he].destroyed)return new Promise(function(Ee,Ge){z.nextTick(function(){Ce[ie]?Ge(Ce[ie]):Ee(ge(void 0,!0))})});var je=this[ue],Fe;if(je)Fe=new Promise(Ae(je,this));else{var ke=this[he].read();if(ke!==null)return Promise.resolve(ge(ke,!1));Fe=new Promise(this[pe])}return this[ue]=Fe,Fe}},re(E,Symbol.asyncIterator,function(){return this}),re(E,"return",function(){var Ce=this;return new Promise(function(Oe,je){Ce[he].destroy(null,function(Fe){if(Fe){je(Fe);return}Oe(ge(void 0,!0))})})}),E),Ne),De=function(Ce){var Oe,je=Object.create(Be,(Oe={},re(Oe,he,{value:Ce,writable:!0}),re(Oe,x,{value:null,writable:!0}),re(Oe,ae,{value:null,writable:!0}),re(Oe,ie,{value:null,writable:!0}),re(Oe,se,{value:Ce._readableState.endEmitted,writable:!0}),re(Oe,pe,{value:function(ke,Ee){var Ge=je[he].read();Ge?(je[ue]=null,je[x]=null,je[ae]=null,ke(ge(Ge,!1))):(je[x]=ke,je[ae]=Ee)},writable:!0}),Oe));return je[ue]=null,de(Ce,function(Fe){if(Fe&&Fe.code!=="ERR_STREAM_PREMATURE_CLOSE"){var ke=je[ae];ke!==null&&(je[ue]=null,je[x]=null,je[ae]=null,ke(Fe)),je[ie]=Fe;return}var Ee=je[x];Ee!==null&&(je[ue]=null,je[x]=null,je[ae]=null,Ee(ge(void 0,!0))),je[se]=!0}),Ce.on("readable",xe.bind(null,je)),je};Pe.exports=De}).call(this)}).call(this,y("_process"))},{"./end-of-stream":408,_process:467}],406:[function(y,Pe,ye){"use strict";function z(me,xe){var Ae=Object.keys(me);if(Object.getOwnPropertySymbols){var Ne=Object.getOwnPropertySymbols(me);xe&&(Ne=Ne.filter(function(Be){return Object.getOwnPropertyDescriptor(me,Be).enumerable})),Ae.push.apply(Ae,Ne)}return Ae}function E(me){for(var xe=1;xe<arguments.length;xe++){var Ae=arguments[xe]!=null?arguments[xe]:{};xe%2?z(Object(Ae),!0).forEach(function(Ne){re(me,Ne,Ae[Ne])}):Object.getOwnPropertyDescriptors?Object.defineProperties(me,Object.getOwnPropertyDescriptors(Ae)):z(Object(Ae)).forEach(function(Ne){Object.defineProperty(me,Ne,Object.getOwnPropertyDescriptor(Ae,Ne))})}return me}function re(me,xe,Ae){return xe=x(xe),xe in me?Object.defineProperty(me,xe,{value:Ae,enumerable:!0,configurable:!0,writable:!0}):me[xe]=Ae,me}function oe(me,xe){if(!(me instanceof xe))throw new TypeError("Cannot call a class as a function")}function ee(me,xe){for(var Ae=0;Ae<xe.length;Ae++){var Ne=xe[Ae];Ne.enumerable=Ne.enumerable||!1,Ne.configurable=!0,"value"in Ne&&(Ne.writable=!0),Object.defineProperty(me,x(Ne.key),Ne)}}function de(me,xe,Ae){return xe&&ee(me.prototype,xe),Ae&&ee(me,Ae),Object.defineProperty(me,"prototype",{writable:!1}),me}function x(me){var xe=ae(me,"string");return typeof xe=="symbol"?xe:String(xe)}function ae(me,xe){if(typeof me!="object"||me===null)return me;var Ae=me[Symbol.toPrimitive];if(Ae!==void 0){var Ne=Ae.call(me,xe||"default");if(typeof Ne!="object")return Ne;throw new TypeError("@@toPrimitive must return a primitive value.")}return(xe==="string"?String:Number)(me)}var ie=y("buffer"),se=ie.Buffer,ue=y("util"),pe=ue.inspect,he=pe&&pe.custom||"inspect";function ge(me,xe,Ae){se.prototype.copy.call(me,xe,Ae)}Pe.exports=function(){function me(){oe(this,me),this.head=null,this.tail=null,this.length=0}return de(me,[{key:"push",value:function(Ae){var Ne={data:Ae,next:null};this.length>0?this.tail.next=Ne:this.head=Ne,this.tail=Ne,++this.length}},{key:"unshift",value:function(Ae){var Ne={data:Ae,next:this.head};this.length===0&&(this.tail=Ne),this.head=Ne,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Ae=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Ae}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Ae){if(this.length===0)return"";for(var Ne=this.head,Be=""+Ne.data;Ne=Ne.next;)Be+=Ae+Ne.data;return Be}},{key:"concat",value:function(Ae){if(this.length===0)return se.alloc(0);for(var Ne=se.allocUnsafe(Ae>>>0),Be=this.head,De=0;Be;)ge(Be.data,Ne,De),De+=Be.data.length,Be=Be.next;return Ne}},{key:"consume",value:function(Ae,Ne){var Be;return Ae<this.head.data.length?(Be=this.head.data.slice(0,Ae),this.head.data=this.head.data.slice(Ae)):Ae===this.head.data.length?Be=this.shift():Be=Ne?this._getString(Ae):this._getBuffer(Ae),Be}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Ae){var Ne=this.head,Be=1,De=Ne.data;for(Ae-=De.length;Ne=Ne.next;){var we=Ne.data,Ce=Ae>we.length?we.length:Ae;if(Ce===we.length?De+=we:De+=we.slice(0,Ae),Ae-=Ce,Ae===0){Ce===we.length?(++Be,Ne.next?this.head=Ne.next:this.head=this.tail=null):(this.head=Ne,Ne.data=we.slice(Ce));break}++Be}return this.length-=Be,De}},{key:"_getBuffer",value:function(Ae){var Ne=se.allocUnsafe(Ae),Be=this.head,De=1;for(Be.data.copy(Ne),Ae-=Be.data.length;Be=Be.next;){var we=Be.data,Ce=Ae>we.length?we.length:Ae;if(we.copy(Ne,Ne.length-Ae,0,Ce),Ae-=Ce,Ae===0){Ce===we.length?(++De,Be.next?this.head=Be.next:this.head=this.tail=null):(this.head=Be,Be.data=we.slice(Ce));break}++De}return this.length-=De,Ne}},{key:he,value:function(Ae,Ne){return pe(this,E(E({},Ne),{},{depth:0,customInspect:!1}))}}]),me}()},{buffer:90,util:89}],407:[function(y,Pe,ye){(function(z){(function(){"use strict";function E(ae,ie){var se=this,ue=this._readableState&&this._readableState.destroyed,pe=this._writableState&&this._writableState.destroyed;return ue||pe?(ie?ie(ae):ae&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,z.nextTick(de,this,ae)):z.nextTick(de,this,ae)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ae||null,function(he){!ie&&he?se._writableState?se._writableState.errorEmitted?z.nextTick(oe,se):(se._writableState.errorEmitted=!0,z.nextTick(re,se,he)):z.nextTick(re,se,he):ie?(z.nextTick(oe,se),ie(he)):z.nextTick(oe,se)}),this)}function re(ae,ie){de(ae,ie),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 de(ae,ie){ae.emit("error",ie)}function x(ae,ie){var se=ae._readableState,ue=ae._writableState;se&&se.autoDestroy||ue&&ue.autoDestroy?ae.destroy(ie):ae.emit("error",ie)}Pe.exports={destroy:E,undestroy:ee,errorOrDestroy:x}}).call(this)}).call(this,y("_process"))},{_process:467}],408:[function(y,Pe,ye){"use strict";var z=y("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function E(de){var x=!1;return function(){if(!x){x=!0;for(var ae=arguments.length,ie=new Array(ae),se=0;se<ae;se++)ie[se]=arguments[se];de.apply(this,ie)}}}function re(){}function oe(de){return de.setHeader&&typeof de.abort=="function"}function ee(de,x,ae){if(typeof x=="function")return ee(de,null,x);x||(x={}),ae=E(ae||re);var ie=x.readable||x.readable!==!1&&de.readable,se=x.writable||x.writable!==!1&&de.writable,ue=function(){de.writable||he()},pe=de._writableState&&de._writableState.finished,he=function(){se=!1,pe=!0,ie||ae.call(de)},ge=de._readableState&&de._readableState.endEmitted,me=function(){ie=!1,ge=!0,se||ae.call(de)},xe=function(De){ae.call(de,De)},Ae=function(){var De;if(ie&&!ge)return(!de._readableState||!de._readableState.ended)&&(De=new z),ae.call(de,De);if(se&&!pe)return(!de._writableState||!de._writableState.ended)&&(De=new z),ae.call(de,De)},Ne=function(){de.req.on("finish",he)};return oe(de)?(de.on("complete",he),de.on("abort",Ae),de.req?Ne():de.on("request",Ne)):se&&!de._writableState&&(de.on("end",ue),de.on("close",ue)),de.on("end",me),de.on("finish",he),x.error!==!1&&de.on("error",xe),de.on("close",Ae),function(){de.removeListener("complete",he),de.removeListener("abort",Ae),de.removeListener("request",Ne),de.req&&de.req.removeListener("finish",he),de.removeListener("end",ue),de.removeListener("close",ue),de.removeListener("finish",he),de.removeListener("end",me),de.removeListener("error",xe),de.removeListener("close",Ae)}}Pe.exports=ee},{"../../../errors":399}],409:[function(y,Pe,ye){Pe.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(y,Pe,ye){"use strict";var z;function E(he){var ge=!1;return function(){ge||(ge=!0,he.apply(void 0,arguments))}}var re=y("../../../errors").codes,oe=re.ERR_MISSING_ARGS,ee=re.ERR_STREAM_DESTROYED;function de(he){if(he)throw he}function x(he){return he.setHeader&&typeof he.abort=="function"}function ae(he,ge,me,xe){xe=E(xe);var Ae=!1;he.on("close",function(){Ae=!0}),z===void 0&&(z=y("./end-of-stream")),z(he,{readable:ge,writable:me},function(Be){if(Be)return xe(Be);Ae=!0,xe()});var Ne=!1;return function(Be){if(!Ae&&!Ne){if(Ne=!0,x(he))return he.abort();if(typeof he.destroy=="function")return he.destroy();xe(Be||new ee("pipe"))}}}function ie(he){he()}function se(he,ge){return he.pipe(ge)}function ue(he){return!he.length||typeof he[he.length-1]!="function"?de:he.pop()}function pe(){for(var he=arguments.length,ge=new Array(he),me=0;me<he;me++)ge[me]=arguments[me];var xe=ue(ge);if(Array.isArray(ge[0])&&(ge=ge[0]),ge.length<2)throw new oe("streams");var Ae,Ne=ge.map(function(Be,De){var we=De<ge.length-1,Ce=De>0;return ae(Be,we,Ce,function(Oe){Ae||(Ae=Oe),Oe&&Ne.forEach(ie),!we&&(Ne.forEach(ie),xe(Ae))})});return ge.reduce(se)}Pe.exports=pe},{"../../../errors":399,"./end-of-stream":408}],411:[function(y,Pe,ye){"use strict";var z=y("../../../errors").codes.ERR_INVALID_OPT_VALUE;function E(oe,ee,de){return oe.highWaterMark!=null?oe.highWaterMark:ee?oe[de]:null}function re(oe,ee,de,x){var ae=E(ee,x,de);if(ae!=null){if(!(isFinite(ae)&&Math.floor(ae)===ae)||ae<0){var ie=x?de:"highWaterMark";throw new z(ie,ae)}return Math.floor(ae)}return oe.objectMode?16:16*1024}Pe.exports={getHighWaterMark:re}},{"../../../errors":399}],412:[function(y,Pe,ye){arguments[4][393][0].apply(ye,arguments)},{dup:393,events:344}],413:[function(y,Pe,ye){"use strict";var z=y("safe-buffer").Buffer,E=z.isEncoding||function(Ne){switch(Ne=""+Ne,Ne&&Ne.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 re(Ne){if(!Ne)return"utf8";for(var Be;;)switch(Ne){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 Ne;default:if(Be)return;Ne=(""+Ne).toLowerCase(),Be=!0}}function oe(Ne){var Be=re(Ne);if(typeof Be!="string"&&(z.isEncoding===E||!E(Ne)))throw new Error("Unknown encoding: "+Ne);return Be||Ne}ye.StringDecoder=ee;function ee(Ne){this.encoding=oe(Ne);var Be;switch(this.encoding){case"utf16le":this.text=pe,this.end=he,Be=4;break;case"utf8":this.fillLast=ie,Be=4;break;case"base64":this.text=ge,this.end=me,Be=3;break;default:this.write=xe,this.end=Ae;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=z.allocUnsafe(Be)}ee.prototype.write=function(Ne){if(Ne.length===0)return"";var Be,De;if(this.lastNeed){if(Be=this.fillLast(Ne),Be===void 0)return"";De=this.lastNeed,this.lastNeed=0}else De=0;return De<Ne.length?Be?Be+this.text(Ne,De):this.text(Ne,De):Be||""},ee.prototype.end=ue,ee.prototype.text=se,ee.prototype.fillLast=function(Ne){if(this.lastNeed<=Ne.length)return Ne.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Ne.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Ne.length),this.lastNeed-=Ne.length};function de(Ne){return Ne<=127?0:Ne>>5===6?2:Ne>>4===14?3:Ne>>3===30?4:Ne>>6===2?-1:-2}function x(Ne,Be,De){var we=Be.length-1;if(we<De)return 0;var Ce=de(Be[we]);return Ce>=0?(Ce>0&&(Ne.lastNeed=Ce-1),Ce):--we<De||Ce===-2?0:(Ce=de(Be[we]),Ce>=0?(Ce>0&&(Ne.lastNeed=Ce-2),Ce):--we<De||Ce===-2?0:(Ce=de(Be[we]),Ce>=0?(Ce>0&&(Ce===2?Ce=0:Ne.lastNeed=Ce-3),Ce):0))}function ae(Ne,Be,De){if((Be[0]&192)!==128)return Ne.lastNeed=0,"\uFFFD";if(Ne.lastNeed>1&&Be.length>1){if((Be[1]&192)!==128)return Ne.lastNeed=1,"\uFFFD";if(Ne.lastNeed>2&&Be.length>2&&(Be[2]&192)!==128)return Ne.lastNeed=2,"\uFFFD"}}function ie(Ne){var Be=this.lastTotal-this.lastNeed,De=ae(this,Ne,Be);if(De!==void 0)return De;if(this.lastNeed<=Ne.length)return Ne.copy(this.lastChar,Be,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Ne.copy(this.lastChar,Be,0,Ne.length),this.lastNeed-=Ne.length}function se(Ne,Be){var De=x(this,Ne,Be);if(!this.lastNeed)return Ne.toString("utf8",Be);this.lastTotal=De;var we=Ne.length-(De-this.lastNeed);return Ne.copy(this.lastChar,0,we),Ne.toString("utf8",Be,we)}function ue(Ne){var Be=Ne&&Ne.length?this.write(Ne):"";return this.lastNeed?Be+"\uFFFD":Be}function pe(Ne,Be){if((Ne.length-Be)%2===0){var De=Ne.toString("utf16le",Be);if(De){var we=De.charCodeAt(De.length-1);if(we>=55296&&we<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Ne[Ne.length-2],this.lastChar[1]=Ne[Ne.length-1],De.slice(0,-1)}return De}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Ne[Ne.length-1],Ne.toString("utf16le",Be,Ne.length-1)}function he(Ne){var Be=Ne&&Ne.length?this.write(Ne):"";if(this.lastNeed){var De=this.lastTotal-this.lastNeed;return Be+this.lastChar.toString("utf16le",0,De)}return Be}function ge(Ne,Be){var De=(Ne.length-Be)%3;return De===0?Ne.toString("base64",Be):(this.lastNeed=3-De,this.lastTotal=3,De===1?this.lastChar[0]=Ne[Ne.length-1]:(this.lastChar[0]=Ne[Ne.length-2],this.lastChar[1]=Ne[Ne.length-1]),Ne.toString("base64",Be,Ne.length-De))}function me(Ne){var Be=Ne&&Ne.length?this.write(Ne):"";return this.lastNeed?Be+this.lastChar.toString("base64",0,3-this.lastNeed):Be}function xe(Ne){return Ne.toString(this.encoding)}function Ae(Ne){return Ne&&Ne.length?this.write(Ne):""}},{"safe-buffer":396}],414:[function(y,Pe,ye){(function(z,E){(function(){var re=y("process/browser.js").nextTick,oe=Function.prototype.apply,ee=Array.prototype.slice,de={},x=0;ye.setTimeout=function(){return new ae(oe.call(setTimeout,window,arguments),clearTimeout)},ye.setInterval=function(){return new ae(oe.call(setInterval,window,arguments),clearInterval)},ye.clearTimeout=ye.clearInterval=function(ie){ie.close()};function ae(ie,se){this._id=ie,this._clearFn=se}ae.prototype.unref=ae.prototype.ref=function(){},ae.prototype.close=function(){this._clearFn.call(window,this._id)},ye.enroll=function(ie,se){clearTimeout(ie._idleTimeoutId),ie._idleTimeout=se},ye.unenroll=function(ie){clearTimeout(ie._idleTimeoutId),ie._idleTimeout=-1},ye._unrefActive=ye.active=function(ie){clearTimeout(ie._idleTimeoutId);var se=ie._idleTimeout;se>=0&&(ie._idleTimeoutId=setTimeout(function(){ie._onTimeout&&ie._onTimeout()},se))},ye.setImmediate=typeof z=="function"?z:function(ie){var se=x++,ue=arguments.length<2?!1:ee.call(arguments,1);return de[se]=!0,re(function(){de[se]&&(ue?ie.apply(null,ue):ie.call(null),ye.clearImmediate(se))}),se},ye.clearImmediate=typeof E=="function"?E:function(ie){delete de[ie]}}).call(this)}).call(this,y("timers").setImmediate,y("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(y,Pe,ye){var z=y("buffer").Buffer;Pe.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 re=new Uint8Array(E.length),oe=E.length,ee=0;ee<oe;ee++)re[ee]=E[ee];return re.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(y,Pe,ye){(function(z){(function(){Pe.exports=E;function E(oe,ee){if(re("noDeprecation"))return oe;var de=!1;function x(){if(!de){if(re("throwDeprecation"))throw new Error(ee);re("traceDeprecation")?console.trace(ee):console.warn(ee),de=!0}return oe.apply(this,arguments)}return x}function re(oe){try{if(!z.localStorage)return!1}catch(de){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,Pe,ye){arguments[4][84][0].apply(ye,arguments)},{dup:84}],418:[function(y,Pe,ye){"use strict";var z=y("is-arguments"),E=y("is-generator-function"),re=y("which-typed-array"),oe=y("is-typed-array");function ee(We){return We.call.bind(We)}var de=typeof BigInt!="undefined",x=typeof Symbol!="undefined",ae=ee(Object.prototype.toString),ie=ee(Number.prototype.valueOf),se=ee(String.prototype.valueOf),ue=ee(Boolean.prototype.valueOf);if(de)var pe=ee(BigInt.prototype.valueOf);if(x)var he=ee(Symbol.prototype.valueOf);function ge(We,Je){if(typeof We!="object")return!1;try{return Je(We),!0}catch(ct){return!1}}ye.isArgumentsObject=z,ye.isGeneratorFunction=E,ye.isTypedArray=oe;function me(We){return typeof Promise!="undefined"&&We instanceof Promise||We!==null&&typeof We=="object"&&typeof We.then=="function"&&typeof We.catch=="function"}ye.isPromise=me;function xe(We){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(We):oe(We)||Xe(We)}ye.isArrayBufferView=xe;function Ae(We){return re(We)==="Uint8Array"}ye.isUint8Array=Ae;function Ne(We){return re(We)==="Uint8ClampedArray"}ye.isUint8ClampedArray=Ne;function Be(We){return re(We)==="Uint16Array"}ye.isUint16Array=Be;function De(We){return re(We)==="Uint32Array"}ye.isUint32Array=De;function we(We){return re(We)==="Int8Array"}ye.isInt8Array=we;function Ce(We){return re(We)==="Int16Array"}ye.isInt16Array=Ce;function Oe(We){return re(We)==="Int32Array"}ye.isInt32Array=Oe;function je(We){return re(We)==="Float32Array"}ye.isFloat32Array=je;function Fe(We){return re(We)==="Float64Array"}ye.isFloat64Array=Fe;function ke(We){return re(We)==="BigInt64Array"}ye.isBigInt64Array=ke;function Ee(We){return re(We)==="BigUint64Array"}ye.isBigUint64Array=Ee;function Ge(We){return ae(We)==="[object Map]"}Ge.working=typeof Map!="undefined"&&Ge(new Map);function Ke(We){return typeof Map=="undefined"?!1:Ge.working?Ge(We):We instanceof Map}ye.isMap=Ke;function Ve(We){return ae(We)==="[object Set]"}Ve.working=typeof Set!="undefined"&&Ve(new Set);function it(We){return typeof Set=="undefined"?!1:Ve.working?Ve(We):We instanceof Set}ye.isSet=it;function Le(We){return ae(We)==="[object WeakMap]"}Le.working=typeof WeakMap!="undefined"&&Le(new WeakMap);function Ue(We){return typeof WeakMap=="undefined"?!1:Le.working?Le(We):We instanceof WeakMap}ye.isWeakMap=Ue;function tt(We){return ae(We)==="[object WeakSet]"}tt.working=typeof WeakSet!="undefined"&&tt(new WeakSet);function nt(We){return tt(We)}ye.isWeakSet=nt;function et(We){return ae(We)==="[object ArrayBuffer]"}et.working=typeof ArrayBuffer!="undefined"&&et(new ArrayBuffer);function Ze(We){return typeof ArrayBuffer=="undefined"?!1:et.working?et(We):We instanceof ArrayBuffer}ye.isArrayBuffer=Ze;function Ye(We){return ae(We)==="[object DataView]"}Ye.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&Ye(new DataView(new ArrayBuffer(1),0,1));function Xe(We){return typeof DataView=="undefined"?!1:Ye.working?Ye(We):We instanceof DataView}ye.isDataView=Xe;var st=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Qe(We){return ae(We)==="[object SharedArrayBuffer]"}function ht(We){return typeof st=="undefined"?!1:(typeof Qe.working=="undefined"&&(Qe.working=Qe(new st)),Qe.working?Qe(We):We instanceof st)}ye.isSharedArrayBuffer=ht;function at(We){return ae(We)==="[object AsyncFunction]"}ye.isAsyncFunction=at;function qe(We){return ae(We)==="[object Map Iterator]"}ye.isMapIterator=qe;function _e(We){return ae(We)==="[object Set Iterator]"}ye.isSetIterator=_e;function Re(We){return ae(We)==="[object Generator]"}ye.isGeneratorObject=Re;function ne(We){return ae(We)==="[object WebAssembly.Module]"}ye.isWebAssemblyCompiledModule=ne;function fe(We){return ge(We,ie)}ye.isNumberObject=fe;function Me(We){return ge(We,se)}ye.isStringObject=Me;function He(We){return ge(We,ue)}ye.isBooleanObject=He;function be(We){return de&&ge(We,pe)}ye.isBigIntObject=be;function ve(We){return x&&ge(We,he)}ye.isSymbolObject=ve;function Ie(We){return fe(We)||Me(We)||He(We)||be(We)||ve(We)}ye.isBoxedPrimitive=Ie;function $e(We){return typeof Uint8Array!="undefined"&&(Ze(We)||ht(We))}ye.isAnyArrayBuffer=$e,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(We){Object.defineProperty(ye,We,{enumerable:!1,value:function(){throw new Error(We+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(y,Pe,ye){(function(z){(function(){var E=Object.getOwnPropertyDescriptors||function(st){for(var Qe=Object.keys(st),ht={},at=0;at<Qe.length;at++)ht[Qe[at]]=Object.getOwnPropertyDescriptor(st,Qe[at]);return ht},re=/%[sdj%]/g;ye.format=function(Xe){if(!Ce(Xe)){for(var st=[],Qe=0;Qe<arguments.length;Qe++)st.push(x(arguments[Qe]));return st.join(" ")}for(var Qe=1,ht=arguments,at=ht.length,qe=String(Xe).replace(re,function(Re){if(Re==="%%")return"%";if(Qe>=at)return Re;switch(Re){case"%s":return String(ht[Qe++]);case"%d":return Number(ht[Qe++]);case"%j":try{return JSON.stringify(ht[Qe++])}catch(ne){return"[Circular]"}default:return Re}}),_e=ht[Qe];Qe<at;_e=ht[++Qe])Be(_e)||!ke(_e)?qe+=" "+_e:qe+=" "+x(_e);return qe},ye.deprecate=function(Xe,st){if(typeof z!="undefined"&&z.noDeprecation===!0)return Xe;if(typeof z=="undefined")return function(){return ye.deprecate(Xe,st).apply(this,arguments)};var Qe=!1;function ht(){if(!Qe){if(z.throwDeprecation)throw new Error(st);z.traceDeprecation?console.trace(st):console.error(st),Qe=!0}return Xe.apply(this,arguments)}return ht};var oe={},ee=/^$/;if(z.env.NODE_DEBUG){var de=z.env.NODE_DEBUG;de=de.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ee=new RegExp("^"+de+"$","i")}ye.debuglog=function(Xe){if(Xe=Xe.toUpperCase(),!oe[Xe])if(ee.test(Xe)){var st=z.pid;oe[Xe]=function(){var Qe=ye.format.apply(ye,arguments);console.error("%s %d: %s",Xe,st,Qe)}}else oe[Xe]=function(){};return oe[Xe]};function x(Xe,st){var Qe={seen:[],stylize:ie};return arguments.length>=3&&(Qe.depth=arguments[2]),arguments.length>=4&&(Qe.colors=arguments[3]),Ne(st)?Qe.showHidden=st:st&&ye._extend(Qe,st),je(Qe.showHidden)&&(Qe.showHidden=!1),je(Qe.depth)&&(Qe.depth=2),je(Qe.colors)&&(Qe.colors=!1),je(Qe.customInspect)&&(Qe.customInspect=!0),Qe.colors&&(Qe.stylize=ae),ue(Qe,Xe,Qe.depth)}ye.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,st){var Qe=x.styles[st];return Qe?"\x1B["+x.colors[Qe][0]+"m"+Xe+"\x1B["+x.colors[Qe][1]+"m":Xe}function ie(Xe,st){return Xe}function se(Xe){var st={};return Xe.forEach(function(Qe,ht){st[Qe]=!0}),st}function ue(Xe,st,Qe){if(Xe.customInspect&&st&&Ke(st.inspect)&&st.inspect!==ye.inspect&&!(st.constructor&&st.constructor.prototype===st)){var ht=st.inspect(Qe,Xe);return Ce(ht)||(ht=ue(Xe,ht,Qe)),ht}var at=pe(Xe,st);if(at)return at;var qe=Object.keys(st),_e=se(qe);if(Xe.showHidden&&(qe=Object.getOwnPropertyNames(st)),Ge(st)&&(qe.indexOf("message")>=0||qe.indexOf("description")>=0))return he(st);if(qe.length===0){if(Ke(st)){var Re=st.name?": "+st.name:"";return Xe.stylize("[Function"+Re+"]","special")}if(Fe(st))return Xe.stylize(RegExp.prototype.toString.call(st),"regexp");if(Ee(st))return Xe.stylize(Date.prototype.toString.call(st),"date");if(Ge(st))return he(st)}var ne="",fe=!1,Me=["{","}"];if(Ae(st)&&(fe=!0,Me=["[","]"]),Ke(st)){var He=st.name?": "+st.name:"";ne=" [Function"+He+"]"}if(Fe(st)&&(ne=" "+RegExp.prototype.toString.call(st)),Ee(st)&&(ne=" "+Date.prototype.toUTCString.call(st)),Ge(st)&&(ne=" "+he(st)),qe.length===0&&(!fe||st.length==0))return Me[0]+ne+Me[1];if(Qe<0)return Fe(st)?Xe.stylize(RegExp.prototype.toString.call(st),"regexp"):Xe.stylize("[Object]","special");Xe.seen.push(st);var be;return fe?be=ge(Xe,st,Qe,_e,qe):be=qe.map(function(ve){return me(Xe,st,Qe,_e,ve,fe)}),Xe.seen.pop(),xe(be,ne,Me)}function pe(Xe,st){if(je(st))return Xe.stylize("undefined","undefined");if(Ce(st)){var Qe="'"+JSON.stringify(st).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Xe.stylize(Qe,"string")}if(we(st))return Xe.stylize(""+st,"number");if(Ne(st))return Xe.stylize(""+st,"boolean");if(Be(st))return Xe.stylize("null","null")}function he(Xe){return"["+Error.prototype.toString.call(Xe)+"]"}function ge(Xe,st,Qe,ht,at){for(var qe=[],_e=0,Re=st.length;_e<Re;++_e)nt(st,String(_e))?qe.push(me(Xe,st,Qe,ht,String(_e),!0)):qe.push("");return at.forEach(function(ne){ne.match(/^\d+$/)||qe.push(me(Xe,st,Qe,ht,ne,!0))}),qe}function me(Xe,st,Qe,ht,at,qe){var _e,Re,ne;if(ne=Object.getOwnPropertyDescriptor(st,at)||{value:st[at]},ne.get?ne.set?Re=Xe.stylize("[Getter/Setter]","special"):Re=Xe.stylize("[Getter]","special"):ne.set&&(Re=Xe.stylize("[Setter]","special")),nt(ht,at)||(_e="["+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")),je(_e)){if(qe&&at.match(/^\d+$/))return Re;_e=JSON.stringify(""+at),_e.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(_e=_e.slice(1,-1),_e=Xe.stylize(_e,"name")):(_e=_e.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),_e=Xe.stylize(_e,"string"))}return _e+": "+Re}function xe(Xe,st,Qe){var ht=0,at=Xe.reduce(function(qe,_e){return ht++,_e.indexOf(`
`)>=0&&ht++,qe+_e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return at>60?Qe[0]+(st===""?"":st+`
`)+" "+Xe.join(`,
`)+" "+Qe[1]:Qe[0]+st+" "+Xe.join(", ")+" "+Qe[1]}ye.types=y("./support/types");function Ae(Xe){return Array.isArray(Xe)}ye.isArray=Ae;function Ne(Xe){return typeof Xe=="boolean"}ye.isBoolean=Ne;function Be(Xe){return Xe===null}ye.isNull=Be;function De(Xe){return Xe==null}ye.isNullOrUndefined=De;function we(Xe){return typeof Xe=="number"}ye.isNumber=we;function Ce(Xe){return typeof Xe=="string"}ye.isString=Ce;function Oe(Xe){return typeof Xe=="symbol"}ye.isSymbol=Oe;function je(Xe){return Xe===void 0}ye.isUndefined=je;function Fe(Xe){return ke(Xe)&&it(Xe)==="[object RegExp]"}ye.isRegExp=Fe,ye.types.isRegExp=Fe;function ke(Xe){return typeof Xe=="object"&&Xe!==null}ye.isObject=ke;function Ee(Xe){return ke(Xe)&&it(Xe)==="[object Date]"}ye.isDate=Ee,ye.types.isDate=Ee;function Ge(Xe){return ke(Xe)&&(it(Xe)==="[object Error]"||Xe instanceof Error)}ye.isError=Ge,ye.types.isNativeError=Ge;function Ke(Xe){return typeof Xe=="function"}ye.isFunction=Ke;function Ve(Xe){return Xe===null||typeof Xe=="boolean"||typeof Xe=="number"||typeof Xe=="string"||typeof Xe=="symbol"||typeof Xe=="undefined"}ye.isPrimitive=Ve,ye.isBuffer=y("./support/isBuffer");function it(Xe){return Object.prototype.toString.call(Xe)}function Le(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,st=[Le(Xe.getHours()),Le(Xe.getMinutes()),Le(Xe.getSeconds())].join(":");return[Xe.getDate(),Ue[Xe.getMonth()],st].join(" ")}ye.log=function(){console.log("%s - %s",tt(),ye.format.apply(ye,arguments))},ye.inherits=y("inherits"),ye._extend=function(Xe,st){if(!st||!ke(st))return Xe;for(var Qe=Object.keys(st),ht=Qe.length;ht--;)Xe[Qe[ht]]=st[Qe[ht]];return Xe};function nt(Xe,st){return Object.prototype.hasOwnProperty.call(Xe,st)}var et=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ye.promisify=function(st){if(typeof st!="function")throw new TypeError('The "original" argument must be of type Function');if(et&&st[et]){var Qe=st[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 ht,at,qe=new Promise(function(ne,fe){ht=ne,at=fe}),_e=[],Re=0;Re<arguments.length;Re++)_e.push(arguments[Re]);_e.push(function(ne,fe){ne?at(ne):ht(fe)});try{st.apply(this,_e)}catch(ne){at(ne)}return qe}return Object.setPrototypeOf(Qe,Object.getPrototypeOf(st)),et&&Object.defineProperty(Qe,et,{value:Qe,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Qe,E(st))},ye.promisify.custom=et;function Ze(Xe,st){if(!Xe){var Qe=new Error("Promise was rejected with a falsy value");Qe.reason=Xe,Xe=Qe}return st(Xe)}function Ye(Xe){if(typeof Xe!="function")throw new TypeError('The "original" argument must be of type Function');function st(){for(var Qe=[],ht=0;ht<arguments.length;ht++)Qe.push(arguments[ht]);var at=Qe.pop();if(typeof at!="function")throw new TypeError("The last argument must be of type Function");var qe=this,_e=function(){return at.apply(qe,arguments)};Xe.apply(this,Qe).then(function(Re){z.nextTick(_e.bind(null,null,Re))},function(Re){z.nextTick(Ze.bind(null,Re,_e))})}return Object.setPrototypeOf(st,Object.getPrototypeOf(Xe)),Object.defineProperties(st,E(Xe)),st}ye.callbackify=Ye}).call(this)}).call(this,y("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(y,Pe,ye){(function(z){(function(){"use strict";var E=y("for-each"),re=y("available-typed-arrays"),oe=y("call-bind"),ee=y("call-bind/callBound"),de=y("gopd"),x=ee("Object.prototype.toString"),ae=y("has-tostringtag/shams")(),ie=typeof globalThis=="undefined"?z:globalThis,se=re(),ue=ee("String.prototype.slice"),pe=Object.getPrototypeOf,he=ee("Array.prototype.indexOf",!0)||function(Ne,Be){for(var De=0;De<Ne.length;De+=1)if(Ne[De]===Be)return De;return-1},ge={__proto__:null};ae&&de&&pe?E(se,function(Ae){var Ne=new ie[Ae];if(Symbol.toStringTag in Ne){var Be=pe(Ne),De=de(Be,Symbol.toStringTag);if(!De){var we=pe(Be);De=de(we,Symbol.toStringTag)}ge["$"+Ae]=oe(De.get)}}):E(se,function(Ae){var Ne=new ie[Ae];ge["$"+Ae]=oe(Ne.slice)});var me=function(Ne){var Be=!1;return E(ge,function(De,we){if(!Be)try{"$"+De(Ne)===we&&(Be=ue(we,1))}catch(Ce){}}),Be},xe=function(Ne){var Be=!1;return E(ge,function(De,we){if(!Be)try{De(Ne),Be=ue(we,1)}catch(Ce){}}),Be};Pe.exports=function(Ne){if(!Ne||typeof Ne!="object")return!1;if(!ae){var Be=ue(x(Ne),8,-1);return he(se,Be)>-1?Be:Be!=="Object"?!1:xe(Ne)}return de?me(Ne):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,Pe,ye){(function(){"use strict";ye.stripBOM=function(z){return z[0]==="\uFEFF"?z.substring(1):z}}).call(this)},{}],422:[function(y,Pe,ye){(function(){"use strict";var z,E,re,oe,ee,de={}.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["+re(x)+"]]>"},re=function(x){return x.replace("]]>","]]]]><![CDATA[>")},ye.Builder=function(){function x(ae){var ie,se,ue;this.options={},se=E["0.2"];for(ie in se)de.call(se,ie)&&(ue=se[ie],this.options[ie]=ue);for(ie in ae)de.call(ae,ie)&&(ue=ae[ie],this.options[ie]=ue)}return x.prototype.buildObject=function(ae){var ie,se,ue,pe,he;return ie=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(ge){return function(me,xe){var Ae,Ne,Be,De,we,Ce;if(typeof xe!="object")ge.options.cdata&&oe(xe)?me.raw(ee(xe)):me.txt(xe);else if(Array.isArray(xe)){for(De in xe)if(de.call(xe,De)){Ne=xe[De];for(we in Ne)Be=Ne[we],me=ue(me.ele(we),Be).up()}}else for(we in xe)if(de.call(xe,we))if(Ne=xe[we],we===ie){if(typeof Ne=="object")for(Ae in Ne)Ce=Ne[Ae],me=me.att(Ae,Ce)}else if(we===se)ge.options.cdata&&oe(Ne)?me=me.raw(ee(Ne)):me=me.txt(Ne);else if(Array.isArray(Ne))for(De in Ne)de.call(Ne,De)&&(Be=Ne[De],typeof Be=="string"?ge.options.cdata&&oe(Be)?me=me.ele(we).raw(ee(Be)).up():me=me.ele(we,Be).up():me=ue(me.ele(we),Be).up());else typeof Ne=="object"?me=ue(me.ele(we),Ne).up():typeof Ne=="string"&&ge.options.cdata&&oe(Ne)?me=me.ele(we).raw(ee(Ne)).up():(Ne==null&&(Ne=""),me=me.ele(we,Ne.toString()).up());return me}}(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,Pe,ye){(function(){ye.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,Pe,ye){(function(){"use strict";var z,E,re,oe,ee,de,x,ae,ie,se=function(he,ge){return function(){return he.apply(ge,arguments)}},ue=function(he,ge){for(var me in ge)pe.call(ge,me)&&(he[me]=ge[me]);function xe(){this.constructor=he}return xe.prototype=ge.prototype,he.prototype=new xe,he.__super__=ge.prototype,he},pe={}.hasOwnProperty;ae=y("sax"),oe=y("events"),z=y("./bom"),x=y("./processors"),ie=y("timers").setImmediate,E=y("./defaults").defaults,ee=function(he){return typeof he=="object"&&he!=null&&Object.keys(he).length===0},de=function(he,ge,me){var xe,Ae,Ne;for(xe=0,Ae=he.length;xe<Ae;xe++)Ne=he[xe],ge=Ne(ge,me);return ge},re=function(he,ge,me){var xe;return xe=Object.create(null),xe.value=me,xe.writable=!0,xe.enumerable=!0,xe.configurable=!0,Object.defineProperty(he,ge,xe)},ye.Parser=function(he){ue(ge,he);function ge(me){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,Ae,Ne;if(!(this instanceof ye.Parser))return new ye.Parser(me);this.options={},Ae=E["0.2"];for(xe in Ae)pe.call(Ae,xe)&&(Ne=Ae[xe],this.options[xe]=Ne);for(xe in me)pe.call(me,xe)&&(Ne=me[xe],this.options[xe]=Ne);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 ge.prototype.processAsync=function(){var me,xe;try{return this.remaining.length<=this.options.chunkSize?(me=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(me),this.saxParser.close()):(me=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(me),ie(this.processAsync))}catch(Ae){if(xe=Ae,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(xe)}},ge.prototype.assignOrPush=function(me,xe,Ae){return xe in me?(me[xe]instanceof Array||re(me,xe,[me[xe]]),me[xe].push(Ae)):this.options.explicitArray?re(me,xe,[Ae]):re(me,xe,Ae)},ge.prototype.reset=function(){var me,xe,Ae,Ne;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(De){if(Be.saxParser.resume(),!Be.saxParser.errThrown)return Be.saxParser.errThrown=!0,Be.emit("error",De)}}(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,Ne=[],me=this.options.attrkey,xe=this.options.charkey,this.saxParser.onopentag=function(Be){return function(De){var we,Ce,Oe,je,Fe;if(Oe={},Oe[xe]="",!Be.options.ignoreAttrs){Fe=De.attributes;for(we in Fe)pe.call(Fe,we)&&(!(me in Oe)&&!Be.options.mergeAttrs&&(Oe[me]={}),Ce=Be.options.attrValueProcessors?de(Be.options.attrValueProcessors,De.attributes[we],we):De.attributes[we],je=Be.options.attrNameProcessors?de(Be.options.attrNameProcessors,we):we,Be.options.mergeAttrs?Be.assignOrPush(Oe,je,Ce):re(Oe[me],je,Ce))}return Oe["#name"]=Be.options.tagNameProcessors?de(Be.options.tagNameProcessors,De.name):De.name,Be.options.xmlns&&(Oe[Be.options.xmlnskey]={uri:De.uri,local:De.local}),Ne.push(Oe)}}(this),this.saxParser.onclosetag=function(Be){return function(){var De,we,Ce,Oe,je,Fe,ke,Ee,Ge,Ke;if(Fe=Ne.pop(),je=Fe["#name"],(!Be.options.explicitChildren||!Be.options.preserveChildrenOrder)&&delete Fe["#name"],Fe.cdata===!0&&(De=Fe.cdata,delete Fe.cdata),Ge=Ne[Ne.length-1],Fe[xe].match(/^\s*$/)&&!De?(we=Fe[xe],delete Fe[xe]):(Be.options.trim&&(Fe[xe]=Fe[xe].trim()),Be.options.normalize&&(Fe[xe]=Fe[xe].replace(/\s{2,}/g," ").trim()),Fe[xe]=Be.options.valueProcessors?de(Be.options.valueProcessors,Fe[xe],je):Fe[xe],Object.keys(Fe).length===1&&xe in Fe&&!Be.EXPLICIT_CHARKEY&&(Fe=Fe[xe])),ee(Fe)&&(typeof Be.options.emptyTag=="function"?Fe=Be.options.emptyTag():Fe=Be.options.emptyTag!==""?Be.options.emptyTag:we),Be.options.validator!=null&&(Ke="/"+function(){var Ve,it,Le;for(Le=[],Ve=0,it=Ne.length;Ve<it;Ve++)Oe=Ne[Ve],Le.push(Oe["#name"]);return Le}().concat(je).join("/"),function(){var Ve;try{return Fe=Be.options.validator(Ke,Ge&&Ge[je],Fe)}catch(it){return Ve=it,Be.emit("error",Ve)}}()),Be.options.explicitChildren&&!Be.options.mergeAttrs&&typeof Fe=="object"){if(!Be.options.preserveChildrenOrder)Oe={},Be.options.attrkey in Fe&&(Oe[Be.options.attrkey]=Fe[Be.options.attrkey],delete Fe[Be.options.attrkey]),!Be.options.charsAsChildren&&Be.options.charkey in Fe&&(Oe[Be.options.charkey]=Fe[Be.options.charkey],delete Fe[Be.options.charkey]),Object.getOwnPropertyNames(Fe).length>0&&(Oe[Be.options.childkey]=Fe),Fe=Oe;else if(Ge){Ge[Be.options.childkey]=Ge[Be.options.childkey]||[],ke={};for(Ce in Fe)pe.call(Fe,Ce)&&re(ke,Ce,Fe[Ce]);Ge[Be.options.childkey].push(ke),delete Fe["#name"],Object.keys(Fe).length===1&&xe in Fe&&!Be.EXPLICIT_CHARKEY&&(Fe=Fe[xe])}}return Ne.length>0?Be.assignOrPush(Ge,je,Fe):(Be.options.explicitRoot&&(Ee=Fe,Fe={},re(Fe,je,Ee)),Be.resultObject=Fe,Be.saxParser.ended=!0,Be.emit("end",Be.resultObject))}}(this),Ae=function(Be){return function(De){var we,Ce;if(Ce=Ne[Ne.length-1],Ce)return Ce[xe]+=De,Be.options.explicitChildren&&Be.options.preserveChildrenOrder&&Be.options.charsAsChildren&&(Be.options.includeWhiteChars||De.replace(/\\n/g,"").trim()!=="")&&(Ce[Be.options.childkey]=Ce[Be.options.childkey]||[],we={"#name":"__text__"},we[xe]=De,Be.options.normalize&&(we[xe]=we[xe].replace(/\s{2,}/g," ").trim()),Ce[Be.options.childkey].push(we)),Ce}}(this),this.saxParser.ontext=Ae,this.saxParser.oncdata=function(Be){return function(De){var we;if(we=Ae(De),we)return we.cdata=!0}}(this)},ge.prototype.parseString=function(me,xe){var Ae;xe!=null&&typeof xe=="function"&&(this.on("end",function(Ne){return this.reset(),xe(null,Ne)}),this.on("error",function(Ne){return this.reset(),xe(Ne)}));try{return me=me.toString(),me.trim()===""?(this.emit("end",null),!0):(me=z.stripBOM(me),this.options.async?(this.remaining=me,ie(this.processAsync),this.saxParser):this.saxParser.write(me).close())}catch(Ne){if(Ae=Ne,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Ae}else return this.emit("error",Ae),this.saxParser.errThrown=!0}},ge.prototype.parseStringPromise=function(me){return new Promise(function(xe){return function(Ae,Ne){return xe.parseString(me,function(Be,De){return Be?Ne(Be):Ae(De)})}}(this))},ge}(oe),ye.parseString=function(he,ge,me){var xe,Ae,Ne;return me!=null?(typeof me=="function"&&(xe=me),typeof ge=="object"&&(Ae=ge)):(typeof ge=="function"&&(xe=ge),Ae={}),Ne=new ye.Parser(Ae),Ne.parseString(he,xe)},ye.parseStringPromise=function(he,ge){var me,xe;return typeof ge=="object"&&(me=ge),xe=new ye.Parser(me),xe.parseStringPromise(he)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(y,Pe,ye){(function(){"use strict";var z;z=new RegExp(/(?!xmlns)^.*:/),ye.normalize=function(E){return E.toLowerCase()},ye.firstCharLowerCase=function(E){return E.charAt(0).toLowerCase()+E.slice(1)},ye.stripPrefix=function(E){return E.replace(z,"")},ye.parseNumbers=function(E){return isNaN(E)||(E=E%1===0?parseInt(E,10):parseFloat(E)),E},ye.parseBooleans=function(E){return/^(?:true|false)$/i.test(E)&&(E=E.toLowerCase()==="true"),E}}).call(this)},{}],426:[function(y,Pe,ye){(function(){"use strict";var z,E,re,oe,ee=function(x,ae){for(var ie in ae)de.call(ae,ie)&&(x[ie]=ae[ie]);function se(){this.constructor=x}return se.prototype=ae.prototype,x.prototype=new se,x.__super__=ae.prototype,x},de={}.hasOwnProperty;E=y("./defaults"),z=y("./builder"),re=y("./parser"),oe=y("./processors"),ye.defaults=E.defaults,ye.processors=oe,ye.ValidationError=function(x){ee(ae,x);function ae(ie){this.message=ie}return ae}(Error),ye.Builder=z.Builder,ye.Parser=re.Parser,ye.parseString=re.parseString,ye.parseStringPromise=re.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(y,Pe,ye){(function(){Pe.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(y,Pe,ye){(function(){Pe.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,Pe,ye){(function(){var z,E,re,oe,ee,de,x,ae=[].slice,ie={}.hasOwnProperty;z=function(){var se,ue,pe,he,ge,me;if(me=arguments[0],ge=2<=arguments.length?ae.call(arguments,1):[],ee(Object.assign))Object.assign.apply(null,arguments);else for(se=0,pe=ge.length;se<pe;se++)if(he=ge[se],he!=null)for(ue in he)ie.call(he,ue)&&(me[ue]=he[ue]);return me},ee=function(se){return!!se&&Object.prototype.toString.call(se)==="[object Function]"},de=function(se){var ue;return!!se&&((ue=typeof se)=="function"||ue==="object")},re=function(se){return ee(Array.isArray)?Array.isArray(se):Object.prototype.toString.call(se)==="[object Array]"},oe=function(se){var ue;if(re(se))return!se.length;for(ue in se)if(ie.call(se,ue))return!1;return!0},x=function(se){var ue,pe;return de(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},Pe.exports.assign=z,Pe.exports.isFunction=ee,Pe.exports.isObject=de,Pe.exports.isArray=re,Pe.exports.isEmpty=oe,Pe.exports.isPlainObject=x,Pe.exports.getValue=E}).call(this)},{}],430:[function(y,Pe,ye){(function(){Pe.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(y,Pe,ye){(function(){var z,E,re;z=y("./NodeType"),re=y("./XMLNode"),Pe.exports=E=function(){function oe(ee,de,x){if(this.parent=ee,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),de==null)throw new Error("Missing attribute name. "+this.debugInfo(de));this.name=this.stringify.name(de),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,Pe,ye){(function(){var z,E,re,oe=function(de,x){for(var ae in x)ee.call(x,ae)&&(de[ae]=x[ae]);function ie(){this.constructor=de}return ie.prototype=x.prototype,de.prototype=new ie,de.__super__=x.prototype,de},ee={}.hasOwnProperty;z=y("./NodeType"),re=y("./XMLCharacterData"),Pe.exports=E=function(de){oe(x,de);function x(ae,ie){if(x.__super__.constructor.call(this,ae),ie==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=z.CData,this.value=this.stringify.cdata(ie)}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}(re)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(y,Pe,ye){(function(){var z,E,re=function(ee,de){for(var x in de)oe.call(de,x)&&(ee[x]=de[x]);function ae(){this.constructor=ee}return ae.prototype=de.prototype,ee.prototype=new ae,ee.__super__=de.prototype,ee},oe={}.hasOwnProperty;E=y("./XMLNode"),Pe.exports=z=function(ee){re(de,ee);function de(x){de.__super__.constructor.call(this,x),this.value=""}return Object.defineProperty(de.prototype,"data",{get:function(){return this.value},set:function(x){return this.value=x||""}}),Object.defineProperty(de.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(de.prototype,"textContent",{get:function(){return this.value},set:function(x){return this.value=x||""}}),de.prototype.clone=function(){return Object.create(this)},de.prototype.substringData=function(x,ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.appendData=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.insertData=function(x,ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.deleteData=function(x,ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.replaceData=function(x,ae,ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.isEqualNode=function(x){return!(!de.__super__.isEqualNode.apply(this,arguments).isEqualNode(x)||x.data!==this.data)},de}(E)}).call(this)},{"./XMLNode":450}],434:[function(y,Pe,ye){(function(){var z,E,re,oe=function(de,x){for(var ae in x)ee.call(x,ae)&&(de[ae]=x[ae]);function ie(){this.constructor=de}return ie.prototype=x.prototype,de.prototype=new ie,de.__super__=x.prototype,de},ee={}.hasOwnProperty;z=y("./NodeType"),E=y("./XMLCharacterData"),Pe.exports=re=function(de){oe(x,de);function x(ae,ie){if(x.__super__.constructor.call(this,ae),ie==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=z.Comment,this.value=this.stringify.comment(ie)}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,Pe,ye){(function(){var z,E,re;E=y("./XMLDOMErrorHandler"),re=y("./XMLDOMStringList"),Pe.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 re(Object.keys(this.defaultParams))}}),oe.prototype.getParameter=function(ee){return this.params.hasOwnProperty(ee)?this.params[ee]:null},oe.prototype.canSetParameter=function(ee,de){return!0},oe.prototype.setParameter=function(ee,de){return de!=null?this.params[ee]=de:delete this.params[ee]},oe}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(y,Pe,ye){(function(){var z;Pe.exports=z=function(){function E(){}return E.prototype.handleError=function(re){throw new Error(re)},E}()}).call(this)},{}],437:[function(y,Pe,ye){(function(){var z;Pe.exports=z=function(){function E(){}return E.prototype.hasFeature=function(re,oe){return!0},E.prototype.createDocumentType=function(re,oe,ee){throw new Error("This DOM method is not implemented.")},E.prototype.createDocument=function(re,oe,ee){throw new Error("This DOM method is not implemented.")},E.prototype.createHTMLDocument=function(re){throw new Error("This DOM method is not implemented.")},E.prototype.getFeature=function(re,oe){throw new Error("This DOM method is not implemented.")},E}()}).call(this)},{}],438:[function(y,Pe,ye){(function(){var z;Pe.exports=z=function(){function E(re){this.arr=re||[]}return Object.defineProperty(E.prototype,"length",{get:function(){return this.arr.length}}),E.prototype.item=function(re){return this.arr[re]||null},E.prototype.contains=function(re){return this.arr.indexOf(re)!==-1},E}()}).call(this)},{}],439:[function(y,Pe,ye){(function(){var z,E,re,oe=function(de,x){for(var ae in x)ee.call(x,ae)&&(de[ae]=x[ae]);function ie(){this.constructor=de}return ie.prototype=x.prototype,de.prototype=new ie,de.__super__=x.prototype,de},ee={}.hasOwnProperty;re=y("./XMLNode"),z=y("./NodeType"),Pe.exports=E=function(de){oe(x,de);function x(ae,ie,se,ue,pe,he){if(x.__super__.constructor.call(this,ae),ie==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(se==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(ie));if(!ue)throw new Error("Missing DTD attribute type. "+this.debugInfo(ie));if(!pe)throw new Error("Missing DTD attribute default. "+this.debugInfo(ie));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(ie));if(he&&!pe.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(ie));this.elementName=this.stringify.name(ie),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}(re)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(y,Pe,ye){(function(){var z,E,re,oe=function(de,x){for(var ae in x)ee.call(x,ae)&&(de[ae]=x[ae]);function ie(){this.constructor=de}return ie.prototype=x.prototype,de.prototype=new ie,de.__super__=x.prototype,de},ee={}.hasOwnProperty;re=y("./XMLNode"),z=y("./NodeType"),Pe.exports=E=function(de){oe(x,de);function x(ae,ie,se){if(x.__super__.constructor.call(this,ae),ie==null)throw new Error("Missing DTD element name. "+this.debugInfo());se||(se="(#PCDATA)"),Array.isArray(se)&&(se="("+se.join(",")+")"),this.name=this.stringify.name(ie),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}(re)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(y,Pe,ye){(function(){var z,E,re,oe,ee=function(x,ae){for(var ie in ae)de.call(ae,ie)&&(x[ie]=ae[ie]);function se(){this.constructor=x}return se.prototype=ae.prototype,x.prototype=new se,x.__super__=ae.prototype,x},de={}.hasOwnProperty;oe=y("./Utility").isObject,re=y("./XMLNode"),z=y("./NodeType"),Pe.exports=E=function(x){ee(ae,x);function ae(ie,se,ue,pe){if(ae.__super__.constructor.call(this,ie),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(ie){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(ie))},ae}(re)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(y,Pe,ye){(function(){var z,E,re,oe=function(de,x){for(var ae in x)ee.call(x,ae)&&(de[ae]=x[ae]);function ie(){this.constructor=de}return ie.prototype=x.prototype,de.prototype=new ie,de.__super__=x.prototype,de},ee={}.hasOwnProperty;re=y("./XMLNode"),z=y("./NodeType"),Pe.exports=E=function(de){oe(x,de);function x(ae,ie,se){if(x.__super__.constructor.call(this,ae),ie==null)throw new Error("Missing DTD notation name. "+this.debugInfo(ie));if(!se.pubID&&!se.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(ie));this.name=this.stringify.name(ie),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}(re)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(y,Pe,ye){(function(){var z,E,re,oe,ee=function(x,ae){for(var ie in ae)de.call(ae,ie)&&(x[ie]=ae[ie]);function se(){this.constructor=x}return se.prototype=ae.prototype,x.prototype=new se,x.__super__=ae.prototype,x},de={}.hasOwnProperty;oe=y("./Utility").isObject,re=y("./XMLNode"),z=y("./NodeType"),Pe.exports=E=function(x){ee(ae,x);function ae(ie,se,ue,pe){var he;ae.__super__.constructor.call(this,ie),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(ie){return this.options.writer.declaration(this,this.options.writer.filterOptions(ie))},ae}(re)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(y,Pe,ye){(function(){var z,E,re,oe,ee,de,x,ae,ie,se=function(pe,he){for(var ge in he)ue.call(he,ge)&&(pe[ge]=he[ge]);function me(){this.constructor=pe}return me.prototype=he.prototype,pe.prototype=new me,pe.__super__=he.prototype,pe},ue={}.hasOwnProperty;ie=y("./Utility").isObject,ae=y("./XMLNode"),z=y("./NodeType"),E=y("./XMLDTDAttList"),oe=y("./XMLDTDEntity"),re=y("./XMLDTDElement"),ee=y("./XMLDTDNotation"),x=y("./XMLNamedNodeMap"),Pe.exports=de=function(pe){se(he,pe);function he(ge,me,xe){var Ae,Ne,Be,De,we,Ce;if(he.__super__.constructor.call(this,ge),this.type=z.DocType,ge.children){for(De=ge.children,Ne=0,Be=De.length;Ne<Be;Ne++)if(Ae=De[Ne],Ae.type===z.Element){this.name=Ae.name;break}}this.documentObject=ge,ie(me)&&(we=me,me=we.pubID,xe=we.sysID),xe==null&&(Ce=[me,xe],xe=Ce[0],me=Ce[1]),me!=null&&(this.pubID=this.stringify.dtdPubID(me)),xe!=null&&(this.sysID=this.stringify.dtdSysID(xe))}return Object.defineProperty(he.prototype,"entities",{get:function(){var ge,me,xe,Ae,Ne;for(Ae={},Ne=this.children,me=0,xe=Ne.length;me<xe;me++)ge=Ne[me],ge.type===z.EntityDeclaration&&!ge.pe&&(Ae[ge.name]=ge);return new x(Ae)}}),Object.defineProperty(he.prototype,"notations",{get:function(){var ge,me,xe,Ae,Ne;for(Ae={},Ne=this.children,me=0,xe=Ne.length;me<xe;me++)ge=Ne[me],ge.type===z.NotationDeclaration&&(Ae[ge.name]=ge);return new x(Ae)}}),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(ge,me){var xe;return xe=new re(this,ge,me),this.children.push(xe),this},he.prototype.attList=function(ge,me,xe,Ae,Ne){var Be;return Be=new E(this,ge,me,xe,Ae,Ne),this.children.push(Be),this},he.prototype.entity=function(ge,me){var xe;return xe=new oe(this,!1,ge,me),this.children.push(xe),this},he.prototype.pEntity=function(ge,me){var xe;return xe=new oe(this,!0,ge,me),this.children.push(xe),this},he.prototype.notation=function(ge,me){var xe;return xe=new ee(this,ge,me),this.children.push(xe),this},he.prototype.toString=function(ge){return this.options.writer.docType(this,this.options.writer.filterOptions(ge))},he.prototype.ele=function(ge,me){return this.element(ge,me)},he.prototype.att=function(ge,me,xe,Ae,Ne){return this.attList(ge,me,xe,Ae,Ne)},he.prototype.ent=function(ge,me){return this.entity(ge,me)},he.prototype.pent=function(ge,me){return this.pEntity(ge,me)},he.prototype.not=function(ge,me){return this.notation(ge,me)},he.prototype.up=function(){return this.root()||this.documentObject},he.prototype.isEqualNode=function(ge){return!(!he.__super__.isEqualNode.apply(this,arguments).isEqualNode(ge)||ge.name!==this.name||ge.publicId!==this.publicId||ge.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,Pe,ye){(function(){var z,E,re,oe,ee,de,x,ae,ie=function(ue,pe){for(var he in pe)se.call(pe,he)&&(ue[he]=pe[he]);function ge(){this.constructor=ue}return ge.prototype=pe.prototype,ue.prototype=new ge,ue.__super__=pe.prototype,ue},se={}.hasOwnProperty;ae=y("./Utility").isPlainObject,re=y("./XMLDOMImplementation"),E=y("./XMLDOMConfiguration"),ee=y("./XMLNode"),z=y("./NodeType"),x=y("./XMLStringifier"),de=y("./XMLStringWriter"),Pe.exports=oe=function(ue){ie(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 de),this.options=he,this.stringify=new x(he)}return Object.defineProperty(pe.prototype,"implementation",{value:new re}),Object.defineProperty(pe.prototype,"doctype",{get:function(){var he,ge,me,xe;for(xe=this.children,ge=0,me=xe.length;ge<me;ge++)if(he=xe[ge],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 ge;return ge={},he?ae(he)&&(ge=he,he=this.options.writer):he=this.options.writer,he.document(this,he.filterOptions(ge))},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,ge){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,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.createElementNS=function(he,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.createAttributeNS=function(he,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagNameNS=function(he,ge){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,ge,me){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,ge,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.createTreeWalker=function(he,ge,me){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,Pe,ye){(function(){var z,E,re,oe,ee,de,x,ae,ie,se,ue,pe,he,ge,me,xe,Ae,Ne,Be,De,we,Ce,Oe,je,Fe={}.hasOwnProperty;je=y("./Utility"),Ce=je.isObject,we=je.isFunction,Oe=je.isPlainObject,De=je.getValue,z=y("./NodeType"),pe=y("./XMLDocument"),ge=y("./XMLElement"),oe=y("./XMLCData"),ee=y("./XMLComment"),xe=y("./XMLRaw"),Be=y("./XMLText"),me=y("./XMLProcessingInstruction"),se=y("./XMLDeclaration"),ue=y("./XMLDocType"),de=y("./XMLDTDAttList"),ae=y("./XMLDTDEntity"),x=y("./XMLDTDElement"),ie=y("./XMLDTDNotation"),re=y("./XMLAttribute"),Ne=y("./XMLStringifier"),Ae=y("./XMLStringWriter"),E=y("./WriterState"),Pe.exports=he=function(){function ke(Ee,Ge,Ke){var Ve;this.name="?xml",this.type=z.Document,Ee||(Ee={}),Ve={},Ee.writer?Oe(Ee.writer)&&(Ve=Ee.writer,Ee.writer=new Ae):Ee.writer=new Ae,this.options=Ee,this.writer=Ee.writer,this.writerOptions=this.writer.filterOptions(Ve),this.stringify=new Ne(Ee),this.onDataCallback=Ge||function(){},this.onEndCallback=Ke||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return ke.prototype.createChildNode=function(Ee){var Ge,Ke,Ve,it,Le,Ue,tt,nt;switch(Ee.type){case z.CData:this.cdata(Ee.value);break;case z.Comment:this.comment(Ee.value);break;case z.Element:Ve={},tt=Ee.attribs;for(Ke in tt)Fe.call(tt,Ke)&&(Ge=tt[Ke],Ve[Ke]=Ge.value);this.node(Ee.name,Ve);break;case z.Dummy:this.dummy();break;case z.Raw:this.raw(Ee.value);break;case z.Text:this.text(Ee.value);break;case z.ProcessingInstruction:this.instruction(Ee.target,Ee.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+Ee.constructor.name)}for(nt=Ee.children,Le=0,Ue=nt.length;Le<Ue;Le++)it=nt[Le],this.createChildNode(it),it.type===z.Element&&this.up();return this},ke.prototype.dummy=function(){return this},ke.prototype.node=function(Ee,Ge,Ke){var Ve;if(Ee==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(Ee));return this.openCurrent(),Ee=De(Ee),Ge==null&&(Ge={}),Ge=De(Ge),Ce(Ge)||(Ve=[Ge,Ke],Ke=Ve[0],Ge=Ve[1]),this.currentNode=new ge(this,Ee,Ge),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,Ke!=null&&this.text(Ke),this},ke.prototype.element=function(Ee,Ge,Ke){var Ve,it,Le,Ue,tt,nt;if(this.currentNode&&this.currentNode.type===z.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(Ee)||Ce(Ee)||we(Ee))for(Ue=this.options.noValidation,this.options.noValidation=!0,nt=new pe(this.options).element("TEMP_ROOT"),nt.element(Ee),this.options.noValidation=Ue,tt=nt.children,it=0,Le=tt.length;it<Le;it++)Ve=tt[it],this.createChildNode(Ve),Ve.type===z.Element&&this.up();else this.node(Ee,Ge,Ke);return this},ke.prototype.attribute=function(Ee,Ge){var Ke,Ve;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(Ee));if(Ee!=null&&(Ee=De(Ee)),Ce(Ee))for(Ke in Ee)Fe.call(Ee,Ke)&&(Ve=Ee[Ke],this.attribute(Ke,Ve));else we(Ge)&&(Ge=Ge.apply()),this.options.keepNullAttributes&&Ge==null?this.currentNode.attribs[Ee]=new re(this,Ee,""):Ge!=null&&(this.currentNode.attribs[Ee]=new re(this,Ee,Ge));return this},ke.prototype.text=function(Ee){var Ge;return this.openCurrent(),Ge=new Be(this,Ee),this.onData(this.writer.text(Ge,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.cdata=function(Ee){var Ge;return this.openCurrent(),Ge=new oe(this,Ee),this.onData(this.writer.cdata(Ge,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.comment=function(Ee){var Ge;return this.openCurrent(),Ge=new ee(this,Ee),this.onData(this.writer.comment(Ge,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.raw=function(Ee){var Ge;return this.openCurrent(),Ge=new xe(this,Ee),this.onData(this.writer.raw(Ge,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.instruction=function(Ee,Ge){var Ke,Ve,it,Le,Ue;if(this.openCurrent(),Ee!=null&&(Ee=De(Ee)),Ge!=null&&(Ge=De(Ge)),Array.isArray(Ee))for(Ke=0,Le=Ee.length;Ke<Le;Ke++)Ve=Ee[Ke],this.instruction(Ve);else if(Ce(Ee))for(Ve in Ee)Fe.call(Ee,Ve)&&(it=Ee[Ve],this.instruction(Ve,it));else we(Ge)&&(Ge=Ge.apply()),Ue=new me(this,Ee,Ge),this.onData(this.writer.processingInstruction(Ue,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},ke.prototype.declaration=function(Ee,Ge,Ke){var Ve;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return Ve=new se(this,Ee,Ge,Ke),this.onData(this.writer.declaration(Ve,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.doctype=function(Ee,Ge,Ke){if(this.openCurrent(),Ee==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,Ge,Ke),this.currentNode.rootNodeName=Ee,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},ke.prototype.dtdElement=function(Ee,Ge){var Ke;return this.openCurrent(),Ke=new x(this,Ee,Ge),this.onData(this.writer.dtdElement(Ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.attList=function(Ee,Ge,Ke,Ve,it){var Le;return this.openCurrent(),Le=new de(this,Ee,Ge,Ke,Ve,it),this.onData(this.writer.dtdAttList(Le,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.entity=function(Ee,Ge){var Ke;return this.openCurrent(),Ke=new ae(this,!1,Ee,Ge),this.onData(this.writer.dtdEntity(Ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.pEntity=function(Ee,Ge){var Ke;return this.openCurrent(),Ke=new ae(this,!0,Ee,Ge),this.onData(this.writer.dtdEntity(Ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.notation=function(Ee,Ge){var Ke;return this.openCurrent(),Ke=new ie(this,Ee,Ge),this.onData(this.writer.dtdNotation(Ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.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},ke.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},ke.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},ke.prototype.openNode=function(Ee){var Ge,Ke,Ve,it;if(!Ee.isOpen){if(!this.root&&this.currentLevel===0&&Ee.type===z.Element&&(this.root=Ee),Ke="",Ee.type===z.Element){this.writerOptions.state=E.OpenTag,Ke=this.writer.indent(Ee,this.writerOptions,this.currentLevel)+"<"+Ee.name,it=Ee.attribs;for(Ve in it)Fe.call(it,Ve)&&(Ge=it[Ve],Ke+=this.writer.attribute(Ge,this.writerOptions,this.currentLevel));Ke+=(Ee.children?">":"/>")+this.writer.endline(Ee,this.writerOptions,this.currentLevel),this.writerOptions.state=E.InsideTag}else this.writerOptions.state=E.OpenTag,Ke=this.writer.indent(Ee,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+Ee.rootNodeName,Ee.pubID&&Ee.sysID?Ke+=' PUBLIC "'+Ee.pubID+'" "'+Ee.sysID+'"':Ee.sysID&&(Ke+=' SYSTEM "'+Ee.sysID+'"'),Ee.children?(Ke+=" [",this.writerOptions.state=E.InsideTag):(this.writerOptions.state=E.CloseTag,Ke+=">"),Ke+=this.writer.endline(Ee,this.writerOptions,this.currentLevel);return this.onData(Ke,this.currentLevel),Ee.isOpen=!0}},ke.prototype.closeNode=function(Ee){var Ge;if(!Ee.isClosed)return Ge="",this.writerOptions.state=E.CloseTag,Ee.type===z.Element?Ge=this.writer.indent(Ee,this.writerOptions,this.currentLevel)+"</"+Ee.name+">"+this.writer.endline(Ee,this.writerOptions,this.currentLevel):Ge=this.writer.indent(Ee,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Ee,this.writerOptions,this.currentLevel),this.writerOptions.state=E.None,this.onData(Ge,this.currentLevel),Ee.isClosed=!0},ke.prototype.onData=function(Ee,Ge){return this.documentStarted=!0,this.onDataCallback(Ee,Ge+1)},ke.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},ke.prototype.debugInfo=function(Ee){return Ee==null?"":"node: <"+Ee+">"},ke.prototype.ele=function(){return this.element.apply(this,arguments)},ke.prototype.nod=function(Ee,Ge,Ke){return this.node(Ee,Ge,Ke)},ke.prototype.txt=function(Ee){return this.text(Ee)},ke.prototype.dat=function(Ee){return this.cdata(Ee)},ke.prototype.com=function(Ee){return this.comment(Ee)},ke.prototype.ins=function(Ee,Ge){return this.instruction(Ee,Ge)},ke.prototype.dec=function(Ee,Ge,Ke){return this.declaration(Ee,Ge,Ke)},ke.prototype.dtd=function(Ee,Ge,Ke){return this.doctype(Ee,Ge,Ke)},ke.prototype.e=function(Ee,Ge,Ke){return this.element(Ee,Ge,Ke)},ke.prototype.n=function(Ee,Ge,Ke){return this.node(Ee,Ge,Ke)},ke.prototype.t=function(Ee){return this.text(Ee)},ke.prototype.d=function(Ee){return this.cdata(Ee)},ke.prototype.c=function(Ee){return this.comment(Ee)},ke.prototype.r=function(Ee){return this.raw(Ee)},ke.prototype.i=function(Ee,Ge){return this.instruction(Ee,Ge)},ke.prototype.att=function(){return this.currentNode&&this.currentNode.type===z.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ke.prototype.a=function(){return this.currentNode&&this.currentNode.type===z.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ke.prototype.ent=function(Ee,Ge){return this.entity(Ee,Ge)},ke.prototype.pent=function(Ee,Ge){return this.pEntity(Ee,Ge)},ke.prototype.not=function(Ee,Ge){return this.notation(Ee,Ge)},ke}()}).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,Pe,ye){(function(){var z,E,re,oe=function(de,x){for(var ae in x)ee.call(x,ae)&&(de[ae]=x[ae]);function ie(){this.constructor=de}return ie.prototype=x.prototype,de.prototype=new ie,de.__super__=x.prototype,de},ee={}.hasOwnProperty;re=y("./XMLNode"),z=y("./NodeType"),Pe.exports=E=function(de){oe(x,de);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}(re)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(y,Pe,ye){(function(){var z,E,re,oe,ee,de,x,ae,ie,se=function(pe,he){for(var ge in he)ue.call(he,ge)&&(pe[ge]=he[ge]);function me(){this.constructor=pe}return me.prototype=he.prototype,pe.prototype=new me,pe.__super__=he.prototype,pe},ue={}.hasOwnProperty;ie=y("./Utility"),ae=ie.isObject,x=ie.isFunction,de=ie.getValue,ee=y("./XMLNode"),z=y("./NodeType"),E=y("./XMLAttribute"),oe=y("./XMLNamedNodeMap"),Pe.exports=re=function(pe){se(he,pe);function he(ge,me,xe){var Ae,Ne,Be,De;if(he.__super__.constructor.call(this,ge),me==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(me),this.type=z.Element,this.attribs={},this.schemaTypeInfo=null,xe!=null&&this.attribute(xe),ge.type===z.Document&&(this.isRoot=!0,this.documentObject=ge,ge.rootObject=this,ge.children)){for(De=ge.children,Ne=0,Be=De.length;Ne<Be;Ne++)if(Ae=De[Ne],Ae.type===z.DocType){Ae.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 ge,me,xe,Ae;xe=Object.create(this),xe.isRoot&&(xe.documentObject=null),xe.attribs={},Ae=this.attribs;for(me in Ae)ue.call(Ae,me)&&(ge=Ae[me],xe.attribs[me]=ge.clone());return xe.children=[],this.children.forEach(function(Ne){var Be;return Be=Ne.clone(),Be.parent=xe,xe.children.push(Be)}),xe},he.prototype.attribute=function(ge,me){var xe,Ae;if(ge!=null&&(ge=de(ge)),ae(ge))for(xe in ge)ue.call(ge,xe)&&(Ae=ge[xe],this.attribute(xe,Ae));else x(me)&&(me=me.apply()),this.options.keepNullAttributes&&me==null?this.attribs[ge]=new E(this,ge,""):me!=null&&(this.attribs[ge]=new E(this,ge,me));return this},he.prototype.removeAttribute=function(ge){var me,xe,Ae;if(ge==null)throw new Error("Missing attribute name. "+this.debugInfo());if(ge=de(ge),Array.isArray(ge))for(xe=0,Ae=ge.length;xe<Ae;xe++)me=ge[xe],delete this.attribs[me];else delete this.attribs[ge];return this},he.prototype.toString=function(ge){return this.options.writer.element(this,this.options.writer.filterOptions(ge))},he.prototype.att=function(ge,me){return this.attribute(ge,me)},he.prototype.a=function(ge,me){return this.attribute(ge,me)},he.prototype.getAttribute=function(ge){return this.attribs.hasOwnProperty(ge)?this.attribs[ge].value:null},he.prototype.setAttribute=function(ge,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getAttributeNode=function(ge){return this.attribs.hasOwnProperty(ge)?this.attribs[ge]:null},he.prototype.setAttributeNode=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.removeAttributeNode=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagName=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getAttributeNS=function(ge,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.setAttributeNS=function(ge,me,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.removeAttributeNS=function(ge,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getAttributeNodeNS=function(ge,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.setAttributeNodeNS=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagNameNS=function(ge,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.hasAttribute=function(ge){return this.attribs.hasOwnProperty(ge)},he.prototype.hasAttributeNS=function(ge,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.setIdAttribute=function(ge,me){return this.attribs.hasOwnProperty(ge)?this.attribs[ge].isId:me},he.prototype.setIdAttributeNS=function(ge,me,xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.setIdAttributeNode=function(ge,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagName=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagNameNS=function(ge,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByClassName=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.isEqualNode=function(ge){var me,xe,Ae;if(!he.__super__.isEqualNode.apply(this,arguments).isEqualNode(ge)||ge.namespaceURI!==this.namespaceURI||ge.prefix!==this.prefix||ge.localName!==this.localName||ge.attribs.length!==this.attribs.length)return!1;for(me=xe=0,Ae=this.attribs.length-1;0<=Ae?xe<=Ae:xe>=Ae;me=0<=Ae?++xe:--xe)if(!this.attribs[me].isEqualNode(ge.attribs[me]))return!1;return!0},he}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(y,Pe,ye){(function(){var z;Pe.exports=z=function(){function E(re){this.nodes=re}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(re){return this.nodes[re]},E.prototype.setNamedItem=function(re){var oe;return oe=this.nodes[re.nodeName],this.nodes[re.nodeName]=re,oe||null},E.prototype.removeNamedItem=function(re){var oe;return oe=this.nodes[re],delete this.nodes[re],oe||null},E.prototype.item=function(re){return this.nodes[Object.keys(this.nodes)[re]]||null},E.prototype.getNamedItemNS=function(re,oe){throw new Error("This DOM method is not implemented.")},E.prototype.setNamedItemNS=function(re){throw new Error("This DOM method is not implemented.")},E.prototype.removeNamedItemNS=function(re,oe){throw new Error("This DOM method is not implemented.")},E}()}).call(this)},{}],450:[function(y,Pe,ye){(function(){var z,E,re,oe,ee,de,x,ae,ie,se,ue,pe,he,ge,me,xe,Ae,Ne,Be,De={}.hasOwnProperty;Be=y("./Utility"),Ne=Be.isObject,Ae=Be.isFunction,xe=Be.isEmpty,me=Be.getValue,ae=null,re=null,oe=null,ee=null,de=null,he=null,ge=null,pe=null,x=null,E=null,ue=null,ie=null,z=null,Pe.exports=se=function(){function we(Ce){this.parent=Ce,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,ae||(ae=y("./XMLElement"),re=y("./XMLCData"),oe=y("./XMLComment"),ee=y("./XMLDeclaration"),de=y("./XMLDocType"),he=y("./XMLRaw"),ge=y("./XMLText"),pe=y("./XMLProcessingInstruction"),x=y("./XMLDummy"),E=y("./NodeType"),ue=y("./XMLNodeList"),ie=y("./XMLNamedNodeMap"),z=y("./DocumentPosition"))}return Object.defineProperty(we.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(we.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(we.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(we.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(we.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new ue(this.children)),this.childNodeList}}),Object.defineProperty(we.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(we.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(we.prototype,"previousSibling",{get:function(){var Ce;return Ce=this.parent.children.indexOf(this),this.parent.children[Ce-1]||null}}),Object.defineProperty(we.prototype,"nextSibling",{get:function(){var Ce;return Ce=this.parent.children.indexOf(this),this.parent.children[Ce+1]||null}}),Object.defineProperty(we.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(we.prototype,"textContent",{get:function(){var Ce,Oe,je,Fe,ke;if(this.nodeType===E.Element||this.nodeType===E.DocumentFragment){for(ke="",Fe=this.children,Oe=0,je=Fe.length;Oe<je;Oe++)Ce=Fe[Oe],Ce.textContent&&(ke+=Ce.textContent);return ke}else return null},set:function(Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),we.prototype.setParent=function(Ce){var Oe,je,Fe,ke,Ee;for(this.parent=Ce,Ce&&(this.options=Ce.options,this.stringify=Ce.stringify),ke=this.children,Ee=[],je=0,Fe=ke.length;je<Fe;je++)Oe=ke[je],Ee.push(Oe.setParent(this));return Ee},we.prototype.element=function(Ce,Oe,je){var Fe,ke,Ee,Ge,Ke,Ve,it,Le,Ue,tt,nt;if(Ve=null,Oe===null&&je==null&&(Ue=[{},null],Oe=Ue[0],je=Ue[1]),Oe==null&&(Oe={}),Oe=me(Oe),Ne(Oe)||(tt=[Oe,je],je=tt[0],Oe=tt[1]),Ce!=null&&(Ce=me(Ce)),Array.isArray(Ce))for(Ee=0,it=Ce.length;Ee<it;Ee++)ke=Ce[Ee],Ve=this.element(ke);else if(Ae(Ce))Ve=this.element(Ce.apply());else if(Ne(Ce)){for(Ke in Ce)if(De.call(Ce,Ke))if(nt=Ce[Ke],Ae(nt)&&(nt=nt.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&Ke.indexOf(this.stringify.convertAttKey)===0)Ve=this.attribute(Ke.substr(this.stringify.convertAttKey.length),nt);else if(!this.options.separateArrayItems&&Array.isArray(nt)&&xe(nt))Ve=this.dummy();else if(Ne(nt)&&xe(nt))Ve=this.element(Ke);else if(!this.options.keepNullNodes&&nt==null)Ve=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(nt))for(Ge=0,Le=nt.length;Ge<Le;Ge++)ke=nt[Ge],Fe={},Fe[Ke]=ke,Ve=this.element(Fe);else Ne(nt)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Ke.indexOf(this.stringify.convertTextKey)===0?Ve=this.element(nt):(Ve=this.element(Ke),Ve.element(nt)):Ve=this.element(Ke,nt)}else!this.options.keepNullNodes&&je===null?Ve=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Ce.indexOf(this.stringify.convertTextKey)===0?Ve=this.text(je):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&Ce.indexOf(this.stringify.convertCDataKey)===0?Ve=this.cdata(je):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&Ce.indexOf(this.stringify.convertCommentKey)===0?Ve=this.comment(je):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&Ce.indexOf(this.stringify.convertRawKey)===0?Ve=this.raw(je):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&Ce.indexOf(this.stringify.convertPIKey)===0?Ve=this.instruction(Ce.substr(this.stringify.convertPIKey.length),je):Ve=this.node(Ce,Oe,je);if(Ve==null)throw new Error("Could not create any elements with: "+Ce+". "+this.debugInfo());return Ve},we.prototype.insertBefore=function(Ce,Oe,je){var Fe,ke,Ee,Ge,Ke;if(Ce!=null&&Ce.type)return Ee=Ce,Ge=Oe,Ee.setParent(this),Ge?(ke=children.indexOf(Ge),Ke=children.splice(ke),children.push(Ee),Array.prototype.push.apply(children,Ke)):children.push(Ee),Ee;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ce));return ke=this.parent.children.indexOf(this),Ke=this.parent.children.splice(ke),Fe=this.parent.element(Ce,Oe,je),Array.prototype.push.apply(this.parent.children,Ke),Fe},we.prototype.insertAfter=function(Ce,Oe,je){var Fe,ke,Ee;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ce));return ke=this.parent.children.indexOf(this),Ee=this.parent.children.splice(ke+1),Fe=this.parent.element(Ce,Oe,je),Array.prototype.push.apply(this.parent.children,Ee),Fe},we.prototype.remove=function(){var Ce,Oe;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return Ce=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[Ce,Ce-Ce+1].concat(Oe=[])),this.parent},we.prototype.node=function(Ce,Oe,je){var Fe,ke;return Ce!=null&&(Ce=me(Ce)),Oe||(Oe={}),Oe=me(Oe),Ne(Oe)||(ke=[Oe,je],je=ke[0],Oe=ke[1]),Fe=new ae(this,Ce,Oe),je!=null&&Fe.text(je),this.children.push(Fe),Fe},we.prototype.text=function(Ce){var Oe;return Ne(Ce)&&this.element(Ce),Oe=new ge(this,Ce),this.children.push(Oe),this},we.prototype.cdata=function(Ce){var Oe;return Oe=new re(this,Ce),this.children.push(Oe),this},we.prototype.comment=function(Ce){var Oe;return Oe=new oe(this,Ce),this.children.push(Oe),this},we.prototype.commentBefore=function(Ce){var Oe,je,Fe;return je=this.parent.children.indexOf(this),Fe=this.parent.children.splice(je),Oe=this.parent.comment(Ce),Array.prototype.push.apply(this.parent.children,Fe),this},we.prototype.commentAfter=function(Ce){var Oe,je,Fe;return je=this.parent.children.indexOf(this),Fe=this.parent.children.splice(je+1),Oe=this.parent.comment(Ce),Array.prototype.push.apply(this.parent.children,Fe),this},we.prototype.raw=function(Ce){var Oe;return Oe=new he(this,Ce),this.children.push(Oe),this},we.prototype.dummy=function(){var Ce;return Ce=new x(this),Ce},we.prototype.instruction=function(Ce,Oe){var je,Fe,ke,Ee,Ge;if(Ce!=null&&(Ce=me(Ce)),Oe!=null&&(Oe=me(Oe)),Array.isArray(Ce))for(Ee=0,Ge=Ce.length;Ee<Ge;Ee++)je=Ce[Ee],this.instruction(je);else if(Ne(Ce))for(je in Ce)De.call(Ce,je)&&(Fe=Ce[je],this.instruction(je,Fe));else Ae(Oe)&&(Oe=Oe.apply()),ke=new pe(this,Ce,Oe),this.children.push(ke);return this},we.prototype.instructionBefore=function(Ce,Oe){var je,Fe,ke;return Fe=this.parent.children.indexOf(this),ke=this.parent.children.splice(Fe),je=this.parent.instruction(Ce,Oe),Array.prototype.push.apply(this.parent.children,ke),this},we.prototype.instructionAfter=function(Ce,Oe){var je,Fe,ke;return Fe=this.parent.children.indexOf(this),ke=this.parent.children.splice(Fe+1),je=this.parent.instruction(Ce,Oe),Array.prototype.push.apply(this.parent.children,ke),this},we.prototype.declaration=function(Ce,Oe,je){var Fe,ke;return Fe=this.document(),ke=new ee(Fe,Ce,Oe,je),Fe.children.length===0?Fe.children.unshift(ke):Fe.children[0].type===E.Declaration?Fe.children[0]=ke:Fe.children.unshift(ke),Fe.root()||Fe},we.prototype.dtd=function(Ce,Oe){var je,Fe,ke,Ee,Ge,Ke,Ve,it,Le,Ue;for(Fe=this.document(),ke=new de(Fe,Ce,Oe),Le=Fe.children,Ee=Ge=0,Ve=Le.length;Ge<Ve;Ee=++Ge)if(je=Le[Ee],je.type===E.DocType)return Fe.children[Ee]=ke,ke;for(Ue=Fe.children,Ee=Ke=0,it=Ue.length;Ke<it;Ee=++Ke)if(je=Ue[Ee],je.isRoot)return Fe.children.splice(Ee,0,ke),ke;return Fe.children.push(ke),ke},we.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},we.prototype.root=function(){var Ce;for(Ce=this;Ce;){if(Ce.type===E.Document)return Ce.rootObject;if(Ce.isRoot)return Ce;Ce=Ce.parent}},we.prototype.document=function(){var Ce;for(Ce=this;Ce;){if(Ce.type===E.Document)return Ce;Ce=Ce.parent}},we.prototype.end=function(Ce){return this.document().end(Ce)},we.prototype.prev=function(){var Ce;if(Ce=this.parent.children.indexOf(this),Ce<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[Ce-1]},we.prototype.next=function(){var Ce;if(Ce=this.parent.children.indexOf(this),Ce===-1||Ce===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[Ce+1]},we.prototype.importDocument=function(Ce){var Oe;return Oe=Ce.root().clone(),Oe.parent=this,Oe.isRoot=!1,this.children.push(Oe),this},we.prototype.debugInfo=function(Ce){var Oe,je;return Ce=Ce||this.name,Ce==null&&!((Oe=this.parent)!=null&&Oe.name)?"":Ce==null?"parent: <"+this.parent.name+">":(je=this.parent)!=null&&je.name?"node: <"+Ce+">, parent: <"+this.parent.name+">":"node: <"+Ce+">"},we.prototype.ele=function(Ce,Oe,je){return this.element(Ce,Oe,je)},we.prototype.nod=function(Ce,Oe,je){return this.node(Ce,Oe,je)},we.prototype.txt=function(Ce){return this.text(Ce)},we.prototype.dat=function(Ce){return this.cdata(Ce)},we.prototype.com=function(Ce){return this.comment(Ce)},we.prototype.ins=function(Ce,Oe){return this.instruction(Ce,Oe)},we.prototype.doc=function(){return this.document()},we.prototype.dec=function(Ce,Oe,je){return this.declaration(Ce,Oe,je)},we.prototype.e=function(Ce,Oe,je){return this.element(Ce,Oe,je)},we.prototype.n=function(Ce,Oe,je){return this.node(Ce,Oe,je)},we.prototype.t=function(Ce){return this.text(Ce)},we.prototype.d=function(Ce){return this.cdata(Ce)},we.prototype.c=function(Ce){return this.comment(Ce)},we.prototype.r=function(Ce){return this.raw(Ce)},we.prototype.i=function(Ce,Oe){return this.instruction(Ce,Oe)},we.prototype.u=function(){return this.up()},we.prototype.importXMLBuilder=function(Ce){return this.importDocument(Ce)},we.prototype.replaceChild=function(Ce,Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.removeChild=function(Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.appendChild=function(Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.hasChildNodes=function(){return this.children.length!==0},we.prototype.cloneNode=function(Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.isSupported=function(Ce,Oe){return!0},we.prototype.hasAttributes=function(){return this.attribs.length!==0},we.prototype.compareDocumentPosition=function(Ce){var Oe,je;return Oe=this,Oe===Ce?0:this.document()!==Ce.document()?(je=z.Disconnected|z.ImplementationSpecific,Math.random()<.5?je|=z.Preceding:je|=z.Following,je):Oe.isAncestor(Ce)?z.Contains|z.Preceding:Oe.isDescendant(Ce)?z.Contains|z.Following:Oe.isPreceding(Ce)?z.Preceding:z.Following},we.prototype.isSameNode=function(Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.lookupPrefix=function(Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.isDefaultNamespace=function(Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.lookupNamespaceURI=function(Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.isEqualNode=function(Ce){var Oe,je,Fe;if(Ce.nodeType!==this.nodeType||Ce.children.length!==this.children.length)return!1;for(Oe=je=0,Fe=this.children.length-1;0<=Fe?je<=Fe:je>=Fe;Oe=0<=Fe?++je:--je)if(!this.children[Oe].isEqualNode(Ce.children[Oe]))return!1;return!0},we.prototype.getFeature=function(Ce,Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.setUserData=function(Ce,Oe,je){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.getUserData=function(Ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},we.prototype.contains=function(Ce){return Ce?Ce===this||this.isDescendant(Ce):!1},we.prototype.isDescendant=function(Ce){var Oe,je,Fe,ke,Ee;for(Ee=this.children,Fe=0,ke=Ee.length;Fe<ke;Fe++)if(Oe=Ee[Fe],Ce===Oe||(je=Oe.isDescendant(Ce),je))return!0;return!1},we.prototype.isAncestor=function(Ce){return Ce.isDescendant(this)},we.prototype.isPreceding=function(Ce){var Oe,je;return Oe=this.treePosition(Ce),je=this.treePosition(this),Oe===-1||je===-1?!1:Oe<je},we.prototype.isFollowing=function(Ce){var Oe,je;return Oe=this.treePosition(Ce),je=this.treePosition(this),Oe===-1||je===-1?!1:Oe>je},we.prototype.treePosition=function(Ce){var Oe,je;return je=0,Oe=!1,this.foreachTreeNode(this.document(),function(Fe){if(je++,!Oe&&Fe===Ce)return Oe=!0}),Oe?je:-1},we.prototype.foreachTreeNode=function(Ce,Oe){var je,Fe,ke,Ee,Ge;for(Ce||(Ce=this.document()),Ee=Ce.children,Fe=0,ke=Ee.length;Fe<ke;Fe++){if(je=Ee[Fe],Ge=Oe(je))return Ge;if(Ge=this.foreachTreeNode(je,Oe),Ge)return Ge}},we}()}).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,Pe,ye){(function(){var z;Pe.exports=z=function(){function E(re){this.nodes=re}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(re){return this.nodes[re]||null},E}()}).call(this)},{}],452:[function(y,Pe,ye){(function(){var z,E,re,oe=function(de,x){for(var ae in x)ee.call(x,ae)&&(de[ae]=x[ae]);function ie(){this.constructor=de}return ie.prototype=x.prototype,de.prototype=new ie,de.__super__=x.prototype,de},ee={}.hasOwnProperty;z=y("./NodeType"),E=y("./XMLCharacterData"),Pe.exports=re=function(de){oe(x,de);function x(ae,ie,se){if(x.__super__.constructor.call(this,ae),ie==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=z.ProcessingInstruction,this.target=this.stringify.insTarget(ie),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,Pe,ye){(function(){var z,E,re,oe=function(de,x){for(var ae in x)ee.call(x,ae)&&(de[ae]=x[ae]);function ie(){this.constructor=de}return ie.prototype=x.prototype,de.prototype=new ie,de.__super__=x.prototype,de},ee={}.hasOwnProperty;z=y("./NodeType"),E=y("./XMLNode"),Pe.exports=re=function(de){oe(x,de);function x(ae,ie){if(x.__super__.constructor.call(this,ae),ie==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=z.Raw,this.value=this.stringify.raw(ie)}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,Pe,ye){(function(){var z,E,re,oe,ee=function(x,ae){for(var ie in ae)de.call(ae,ie)&&(x[ie]=ae[ie]);function se(){this.constructor=x}return se.prototype=ae.prototype,x.prototype=new se,x.__super__=ae.prototype,x},de={}.hasOwnProperty;z=y("./NodeType"),oe=y("./XMLWriterBase"),E=y("./WriterState"),Pe.exports=re=function(x){ee(ae,x);function ae(ie,se){this.stream=ie,ae.__super__.constructor.call(this,se)}return ae.prototype.endline=function(ie,se,ue){return ie.isLastRootNode&&se.state===E.CloseTag?"":ae.__super__.endline.call(this,ie,se,ue)},ae.prototype.document=function(ie,se){var ue,pe,he,ge,me,xe,Ae,Ne,Be;for(Ae=ie.children,pe=he=0,me=Ae.length;he<me;pe=++he)ue=Ae[pe],ue.isLastRootNode=pe===ie.children.length-1;for(se=this.filterOptions(se),Ne=ie.children,Be=[],ge=0,xe=Ne.length;ge<xe;ge++)ue=Ne[ge],Be.push(this.writeChildNode(ue,se,0));return Be},ae.prototype.attribute=function(ie,se,ue){return this.stream.write(ae.__super__.attribute.call(this,ie,se,ue))},ae.prototype.cdata=function(ie,se,ue){return this.stream.write(ae.__super__.cdata.call(this,ie,se,ue))},ae.prototype.comment=function(ie,se,ue){return this.stream.write(ae.__super__.comment.call(this,ie,se,ue))},ae.prototype.declaration=function(ie,se,ue){return this.stream.write(ae.__super__.declaration.call(this,ie,se,ue))},ae.prototype.docType=function(ie,se,ue){var pe,he,ge,me;if(ue||(ue=0),this.openNode(ie,se,ue),se.state=E.OpenTag,this.stream.write(this.indent(ie,se,ue)),this.stream.write("<!DOCTYPE "+ie.root().name),ie.pubID&&ie.sysID?this.stream.write(' PUBLIC "'+ie.pubID+'" "'+ie.sysID+'"'):ie.sysID&&this.stream.write(' SYSTEM "'+ie.sysID+'"'),ie.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(ie,se,ue)),se.state=E.InsideTag,me=ie.children,he=0,ge=me.length;he<ge;he++)pe=me[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(ie,se,ue)),se.state=E.None,this.closeNode(ie,se,ue)},ae.prototype.element=function(ie,se,ue){var pe,he,ge,me,xe,Ae,Ne,Be,De,we;ue||(ue=0),this.openNode(ie,se,ue),se.state=E.OpenTag,this.stream.write(this.indent(ie,se,ue)+"<"+ie.name),De=ie.attribs;for(Ne in De)de.call(De,Ne)&&(pe=De[Ne],this.attribute(pe,se,ue));if(ge=ie.children.length,me=ge===0?null:ie.children[0],ge===0||ie.children.every(function(Ce){return(Ce.type===z.Text||Ce.type===z.Raw)&&Ce.value===""}))se.allowEmpty?(this.stream.write(">"),se.state=E.CloseTag,this.stream.write("</"+ie.name+">")):(se.state=E.CloseTag,this.stream.write(se.spaceBeforeSlash+"/>"));else if(se.pretty&&ge===1&&(me.type===z.Text||me.type===z.Raw)&&me.value!=null)this.stream.write(">"),se.state=E.InsideTag,se.suppressPrettyCount++,Be=!0,this.writeChildNode(me,se,ue+1),se.suppressPrettyCount--,Be=!1,se.state=E.CloseTag,this.stream.write("</"+ie.name+">");else{for(this.stream.write(">"+this.endline(ie,se,ue)),se.state=E.InsideTag,we=ie.children,xe=0,Ae=we.length;xe<Ae;xe++)he=we[xe],this.writeChildNode(he,se,ue+1);se.state=E.CloseTag,this.stream.write(this.indent(ie,se,ue)+"</"+ie.name+">")}return this.stream.write(this.endline(ie,se,ue)),se.state=E.None,this.closeNode(ie,se,ue)},ae.prototype.processingInstruction=function(ie,se,ue){return this.stream.write(ae.__super__.processingInstruction.call(this,ie,se,ue))},ae.prototype.raw=function(ie,se,ue){return this.stream.write(ae.__super__.raw.call(this,ie,se,ue))},ae.prototype.text=function(ie,se,ue){return this.stream.write(ae.__super__.text.call(this,ie,se,ue))},ae.prototype.dtdAttList=function(ie,se,ue){return this.stream.write(ae.__super__.dtdAttList.call(this,ie,se,ue))},ae.prototype.dtdElement=function(ie,se,ue){return this.stream.write(ae.__super__.dtdElement.call(this,ie,se,ue))},ae.prototype.dtdEntity=function(ie,se,ue){return this.stream.write(ae.__super__.dtdEntity.call(this,ie,se,ue))},ae.prototype.dtdNotation=function(ie,se,ue){return this.stream.write(ae.__super__.dtdNotation.call(this,ie,se,ue))},ae}(oe)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(y,Pe,ye){(function(){var z,E,re=function(ee,de){for(var x in de)oe.call(de,x)&&(ee[x]=de[x]);function ae(){this.constructor=ee}return ae.prototype=de.prototype,ee.prototype=new ae,ee.__super__=de.prototype,ee},oe={}.hasOwnProperty;E=y("./XMLWriterBase"),Pe.exports=z=function(ee){re(de,ee);function de(x){de.__super__.constructor.call(this,x)}return de.prototype.document=function(x,ae){var ie,se,ue,pe,he;for(ae=this.filterOptions(ae),pe="",he=x.children,se=0,ue=he.length;se<ue;se++)ie=he[se],pe+=this.writeChildNode(ie,ae,0);return ae.pretty&&pe.slice(-ae.newline.length)===ae.newline&&(pe=pe.slice(0,-ae.newline.length)),pe},de}(E)}).call(this)},{"./XMLWriterBase":458}],456:[function(y,Pe,ye){(function(){var z,E=function(oe,ee){return function(){return oe.apply(ee,arguments)}},re={}.hasOwnProperty;Pe.exports=z=function(){function oe(ee){this.assertLegalName=E(this.assertLegalName,this),this.assertLegalChar=E(this.assertLegalChar,this);var de,x,ae;ee||(ee={}),this.options=ee,this.options.version||(this.options.version="1.0"),x=ee.stringify||{};for(de in x)re.call(x,de)&&(ae=x[de],this[de]=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 de,x;if(this.options.noValidation)return ee;if(de="",this.options.version==="1.0"){if(de=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,x=ee.match(de))throw new Error("Invalid character in string: "+ee+" at index "+x.index)}else if(this.options.version==="1.1"&&(de=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,x=ee.match(de)))throw new Error("Invalid character in string: "+ee+" at index "+x.index);return ee},oe.prototype.assertLegalName=function(ee){var de;if(this.options.noValidation)return ee;if(this.assertLegalChar(ee),de=/^([: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(de))throw new Error("Invalid character in name");return ee},oe.prototype.textEscape=function(ee){var de;return this.options.noValidation?ee:(de=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(de,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},oe.prototype.attEscape=function(ee){var de;return this.options.noValidation?ee:(de=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(de,"&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,Pe,ye){(function(){var z,E,re,oe=function(de,x){for(var ae in x)ee.call(x,ae)&&(de[ae]=x[ae]);function ie(){this.constructor=de}return ie.prototype=x.prototype,de.prototype=new ie,de.__super__=x.prototype,de},ee={}.hasOwnProperty;z=y("./NodeType"),E=y("./XMLCharacterData"),Pe.exports=re=function(de){oe(x,de);function x(ae,ie){if(x.__super__.constructor.call(this,ae),ie==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=z.Text,this.value=this.stringify.text(ie)}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,ie,se;for(se="",ie=this.previousSibling;ie;)se=ie.data+se,ie=ie.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,Pe,ye){(function(){var z,E,re,oe,ee,de,x,ae,ie,se,ue,pe,he,ge,me,xe,Ae,Ne={}.hasOwnProperty;Ae=y("./Utility").assign,z=y("./NodeType"),ie=y("./XMLDeclaration"),se=y("./XMLDocType"),re=y("./XMLCData"),oe=y("./XMLComment"),pe=y("./XMLElement"),ge=y("./XMLRaw"),me=y("./XMLText"),he=y("./XMLProcessingInstruction"),ue=y("./XMLDummy"),ee=y("./XMLDTDAttList"),de=y("./XMLDTDElement"),x=y("./XMLDTDEntity"),ae=y("./XMLDTDNotation"),E=y("./WriterState"),Pe.exports=xe=function(){function Be(De){var we,Ce,Oe;De||(De={}),this.options=De,Ce=De.writer||{};for(we in Ce)Ne.call(Ce,we)&&(Oe=Ce[we],this["_"+we]=this[we],this[we]=Oe)}return Be.prototype.filterOptions=function(De){var we,Ce,Oe,je,Fe,ke,Ee,Ge;return De||(De={}),De=Ae({},this.options,De),we={writer:this},we.pretty=De.pretty||!1,we.allowEmpty=De.allowEmpty||!1,we.indent=(Ce=De.indent)!=null?Ce:" ",we.newline=(Oe=De.newline)!=null?Oe:`
`,we.offset=(je=De.offset)!=null?je:0,we.dontPrettyTextNodes=(Fe=(ke=De.dontPrettyTextNodes)!=null?ke:De.dontprettytextnodes)!=null?Fe:0,we.spaceBeforeSlash=(Ee=(Ge=De.spaceBeforeSlash)!=null?Ge:De.spacebeforeslash)!=null?Ee:"",we.spaceBeforeSlash===!0&&(we.spaceBeforeSlash=" "),we.suppressPrettyCount=0,we.user={},we.state=E.None,we},Be.prototype.indent=function(De,we,Ce){var Oe;return!we.pretty||we.suppressPrettyCount?"":we.pretty&&(Oe=(Ce||0)+we.offset+1,Oe>0)?new Array(Oe).join(we.indent):""},Be.prototype.endline=function(De,we,Ce){return!we.pretty||we.suppressPrettyCount?"":we.newline},Be.prototype.attribute=function(De,we,Ce){var Oe;return this.openAttribute(De,we,Ce),Oe=" "+De.name+'="'+De.value+'"',this.closeAttribute(De,we,Ce),Oe},Be.prototype.cdata=function(De,we,Ce){var Oe;return this.openNode(De,we,Ce),we.state=E.OpenTag,Oe=this.indent(De,we,Ce)+"<![CDATA[",we.state=E.InsideTag,Oe+=De.value,we.state=E.CloseTag,Oe+="]]>"+this.endline(De,we,Ce),we.state=E.None,this.closeNode(De,we,Ce),Oe},Be.prototype.comment=function(De,we,Ce){var Oe;return this.openNode(De,we,Ce),we.state=E.OpenTag,Oe=this.indent(De,we,Ce)+"<!-- ",we.state=E.InsideTag,Oe+=De.value,we.state=E.CloseTag,Oe+=" -->"+this.endline(De,we,Ce),we.state=E.None,this.closeNode(De,we,Ce),Oe},Be.prototype.declaration=function(De,we,Ce){var Oe;return this.openNode(De,we,Ce),we.state=E.OpenTag,Oe=this.indent(De,we,Ce)+"<?xml",we.state=E.InsideTag,Oe+=' version="'+De.version+'"',De.encoding!=null&&(Oe+=' encoding="'+De.encoding+'"'),De.standalone!=null&&(Oe+=' standalone="'+De.standalone+'"'),we.state=E.CloseTag,Oe+=we.spaceBeforeSlash+"?>",Oe+=this.endline(De,we,Ce),we.state=E.None,this.closeNode(De,we,Ce),Oe},Be.prototype.docType=function(De,we,Ce){var Oe,je,Fe,ke,Ee;if(Ce||(Ce=0),this.openNode(De,we,Ce),we.state=E.OpenTag,ke=this.indent(De,we,Ce),ke+="<!DOCTYPE "+De.root().name,De.pubID&&De.sysID?ke+=' PUBLIC "'+De.pubID+'" "'+De.sysID+'"':De.sysID&&(ke+=' SYSTEM "'+De.sysID+'"'),De.children.length>0){for(ke+=" [",ke+=this.endline(De,we,Ce),we.state=E.InsideTag,Ee=De.children,je=0,Fe=Ee.length;je<Fe;je++)Oe=Ee[je],ke+=this.writeChildNode(Oe,we,Ce+1);we.state=E.CloseTag,ke+="]"}return we.state=E.CloseTag,ke+=we.spaceBeforeSlash+">",ke+=this.endline(De,we,Ce),we.state=E.None,this.closeNode(De,we,Ce),ke},Be.prototype.element=function(De,we,Ce){var Oe,je,Fe,ke,Ee,Ge,Ke,Ve,it,Le,Ue,tt,nt,et;Ce||(Ce=0),Le=!1,Ue="",this.openNode(De,we,Ce),we.state=E.OpenTag,Ue+=this.indent(De,we,Ce)+"<"+De.name,tt=De.attribs;for(it in tt)Ne.call(tt,it)&&(Oe=tt[it],Ue+=this.attribute(Oe,we,Ce));if(Fe=De.children.length,ke=Fe===0?null:De.children[0],Fe===0||De.children.every(function(Ze){return(Ze.type===z.Text||Ze.type===z.Raw)&&Ze.value===""}))we.allowEmpty?(Ue+=">",we.state=E.CloseTag,Ue+="</"+De.name+">"+this.endline(De,we,Ce)):(we.state=E.CloseTag,Ue+=we.spaceBeforeSlash+"/>"+this.endline(De,we,Ce));else if(we.pretty&&Fe===1&&(ke.type===z.Text||ke.type===z.Raw)&&ke.value!=null)Ue+=">",we.state=E.InsideTag,we.suppressPrettyCount++,Le=!0,Ue+=this.writeChildNode(ke,we,Ce+1),we.suppressPrettyCount--,Le=!1,we.state=E.CloseTag,Ue+="</"+De.name+">"+this.endline(De,we,Ce);else{if(we.dontPrettyTextNodes){for(nt=De.children,Ee=0,Ke=nt.length;Ee<Ke;Ee++)if(je=nt[Ee],(je.type===z.Text||je.type===z.Raw)&&je.value!=null){we.suppressPrettyCount++,Le=!0;break}}for(Ue+=">"+this.endline(De,we,Ce),we.state=E.InsideTag,et=De.children,Ge=0,Ve=et.length;Ge<Ve;Ge++)je=et[Ge],Ue+=this.writeChildNode(je,we,Ce+1);we.state=E.CloseTag,Ue+=this.indent(De,we,Ce)+"</"+De.name+">",Le&&we.suppressPrettyCount--,Ue+=this.endline(De,we,Ce),we.state=E.None}return this.closeNode(De,we,Ce),Ue},Be.prototype.writeChildNode=function(De,we,Ce){switch(De.type){case z.CData:return this.cdata(De,we,Ce);case z.Comment:return this.comment(De,we,Ce);case z.Element:return this.element(De,we,Ce);case z.Raw:return this.raw(De,we,Ce);case z.Text:return this.text(De,we,Ce);case z.ProcessingInstruction:return this.processingInstruction(De,we,Ce);case z.Dummy:return"";case z.Declaration:return this.declaration(De,we,Ce);case z.DocType:return this.docType(De,we,Ce);case z.AttributeDeclaration:return this.dtdAttList(De,we,Ce);case z.ElementDeclaration:return this.dtdElement(De,we,Ce);case z.EntityDeclaration:return this.dtdEntity(De,we,Ce);case z.NotationDeclaration:return this.dtdNotation(De,we,Ce);default:throw new Error("Unknown XML node type: "+De.constructor.name)}},Be.prototype.processingInstruction=function(De,we,Ce){var Oe;return this.openNode(De,we,Ce),we.state=E.OpenTag,Oe=this.indent(De,we,Ce)+"<?",we.state=E.InsideTag,Oe+=De.target,De.value&&(Oe+=" "+De.value),we.state=E.CloseTag,Oe+=we.spaceBeforeSlash+"?>",Oe+=this.endline(De,we,Ce),we.state=E.None,this.closeNode(De,we,Ce),Oe},Be.prototype.raw=function(De,we,Ce){var Oe;return this.openNode(De,we,Ce),we.state=E.OpenTag,Oe=this.indent(De,we,Ce),we.state=E.InsideTag,Oe+=De.value,we.state=E.CloseTag,Oe+=this.endline(De,we,Ce),we.state=E.None,this.closeNode(De,we,Ce),Oe},Be.prototype.text=function(De,we,Ce){var Oe;return this.openNode(De,we,Ce),we.state=E.OpenTag,Oe=this.indent(De,we,Ce),we.state=E.InsideTag,Oe+=De.value,we.state=E.CloseTag,Oe+=this.endline(De,we,Ce),we.state=E.None,this.closeNode(De,we,Ce),Oe},Be.prototype.dtdAttList=function(De,we,Ce){var Oe;return this.openNode(De,we,Ce),we.state=E.OpenTag,Oe=this.indent(De,we,Ce)+"<!ATTLIST",we.state=E.InsideTag,Oe+=" "+De.elementName+" "+De.attributeName+" "+De.attributeType,De.defaultValueType!=="#DEFAULT"&&(Oe+=" "+De.defaultValueType),De.defaultValue&&(Oe+=' "'+De.defaultValue+'"'),we.state=E.CloseTag,Oe+=we.spaceBeforeSlash+">"+this.endline(De,we,Ce),we.state=E.None,this.closeNode(De,we,Ce),Oe},Be.prototype.dtdElement=function(De,we,Ce){var Oe;return this.openNode(De,we,Ce),we.state=E.OpenTag,Oe=this.indent(De,we,Ce)+"<!ELEMENT",we.state=E.InsideTag,Oe+=" "+De.name+" "+De.value,we.state=E.CloseTag,Oe+=we.spaceBeforeSlash+">"+this.endline(De,we,Ce),we.state=E.None,this.closeNode(De,we,Ce),Oe},Be.prototype.dtdEntity=function(De,we,Ce){var Oe;return this.openNode(De,we,Ce),we.state=E.OpenTag,Oe=this.indent(De,we,Ce)+"<!ENTITY",we.state=E.InsideTag,De.pe&&(Oe+=" %"),Oe+=" "+De.name,De.value?Oe+=' "'+De.value+'"':(De.pubID&&De.sysID?Oe+=' PUBLIC "'+De.pubID+'" "'+De.sysID+'"':De.sysID&&(Oe+=' SYSTEM "'+De.sysID+'"'),De.nData&&(Oe+=" NDATA "+De.nData)),we.state=E.CloseTag,Oe+=we.spaceBeforeSlash+">"+this.endline(De,we,Ce),we.state=E.None,this.closeNode(De,we,Ce),Oe},Be.prototype.dtdNotation=function(De,we,Ce){var Oe;return this.openNode(De,we,Ce),we.state=E.OpenTag,Oe=this.indent(De,we,Ce)+"<!NOTATION",we.state=E.InsideTag,Oe+=" "+De.name,De.pubID&&De.sysID?Oe+=' PUBLIC "'+De.pubID+'" "'+De.sysID+'"':De.pubID?Oe+=' PUBLIC "'+De.pubID+'"':De.sysID&&(Oe+=' SYSTEM "'+De.sysID+'"'),we.state=E.CloseTag,Oe+=we.spaceBeforeSlash+">"+this.endline(De,we,Ce),we.state=E.None,this.closeNode(De,we,Ce),Oe},Be.prototype.openNode=function(De,we,Ce){},Be.prototype.closeNode=function(De,we,Ce){},Be.prototype.openAttribute=function(De,we,Ce){},Be.prototype.closeAttribute=function(De,we,Ce){},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,Pe,ye){(function(){var z,E,re,oe,ee,de,x,ae,ie,se;se=y("./Utility"),ae=se.assign,ie=se.isFunction,re=y("./XMLDOMImplementation"),oe=y("./XMLDocument"),ee=y("./XMLDocumentCB"),x=y("./XMLStringWriter"),de=y("./XMLStreamWriter"),z=y("./NodeType"),E=y("./WriterState"),Pe.exports.create=function(ue,pe,he,ge){var me,xe;if(ue==null)throw new Error("Root element needs a name.");return ge=ae({},pe,he,ge),me=new oe(ge),xe=me.element(ue),ge.headless||(me.declaration(ge),(ge.pubID!=null||ge.sysID!=null)&&me.dtd(ge)),xe},Pe.exports.begin=function(ue,pe,he){var ge;return ie(ue)&&(ge=[ue,pe],pe=ge[0],he=ge[1],ue={}),pe?new ee(ue,pe,he):new oe(ue)},Pe.exports.stringWriter=function(ue){return new x(ue)},Pe.exports.streamWriter=function(ue,pe){return new de(ue,pe)},Pe.exports.implementation=new re,Pe.exports.nodeType=z,Pe.exports.writerState=E}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(y,Pe,ye){Pe.exports=E;var z=Object.prototype.hasOwnProperty;function E(){for(var re={},oe=0;oe<arguments.length;oe++){var ee=arguments[oe];for(var de in ee)z.call(ee,de)&&(re[de]=ee[de])}return re}},{}],461:[function(y,Pe,ye){"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"),re=y("./md5"),oe={sha1:E,md5:re},ee=64,de=z.alloc(ee);de.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,de],ee));for(var he=z.alloc(ee),ge=z.alloc(ee),me=0;me<ee;me++)he[me]=ue[me]^54,ge[me]=ue[me]^92;var xe=se(z.concat([he,pe]));return se(z.concat([ge,xe]))}function ae(se,ue){se=se||"sha1";var pe=oe[se],he=[],ge=0;return pe||ie("algorithm:",se,"is not yet supported"),{update:function(xe){return z.isBuffer(xe)||(xe=z.from(xe)),he.push(xe),ge+=xe.length,this},digest:function(xe){var Ae=z.concat(he),Ne=ue?x(pe,ue,Ae):pe(Ae);return he=null,xe?Ne.toString(xe):Ne}}}function ie(){var se=[].slice.call(arguments).join(" ");throw new Error([se,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}ye.createHash=function(se){return ae(se)},ye.createHmac=function(se,ue){return ae(se,ue)},ye.createCredentials=function(){ie("sorry,createCredentials is not implemented yet")},ye.createCipher=function(){ie("sorry,createCipher is not implemented yet")},ye.createCipheriv=function(){ie("sorry,createCipheriv is not implemented yet")},ye.createDecipher=function(){ie("sorry,createDecipher is not implemented yet")},ye.createDecipheriv=function(){ie("sorry,createDecipheriv is not implemented yet")},ye.createSign=function(){ie("sorry,createSign is not implemented yet")},ye.createVerify=function(){ie("sorry,createVerify is not implemented yet")},ye.createDiffieHellman=function(){ie("sorry,createDiffieHellman is not implemented yet")},ye.pbkdf2=function(){ie("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,Pe,ye){"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,re=z.alloc(E);re.fill(0);var oe=8;function ee(ae,ie){if(ae.length%E!==0){var se=ae.length+(E-ae.length%E);ae=z.concat([ae,re],se)}for(var ue=[],pe=ie?ae.readInt32BE:ae.readInt32LE,he=0;he<ae.length;he+=E)ue.push(pe.call(ae,he));return ue}function de(ae,ie,se){for(var ue=z.alloc(ie),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,ie,se,ue){z.isBuffer(ae)||(ae=z.from(ae));var pe=ie(ee(ae,ue),ae.length*oe);return de(pe,se,ue)}Pe.exports={hash:x}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(y,Pe,ye){"use strict";var z=y("./helpers");function E(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function re(ue,pe){ue[pe>>5]|=128<<pe%32,ue[(pe+64>>>9<<4)+14]=pe;for(var he=1732584193,ge=-271733879,me=-1732584194,xe=271733878,Ae=0;Ae<ue.length;Ae+=16){var Ne=he,Be=ge,De=me,we=xe;he=ee(he,ge,me,xe,ue[Ae+0],7,-680876936),xe=ee(xe,he,ge,me,ue[Ae+1],12,-389564586),me=ee(me,xe,he,ge,ue[Ae+2],17,606105819),ge=ee(ge,me,xe,he,ue[Ae+3],22,-1044525330),he=ee(he,ge,me,xe,ue[Ae+4],7,-176418897),xe=ee(xe,he,ge,me,ue[Ae+5],12,1200080426),me=ee(me,xe,he,ge,ue[Ae+6],17,-1473231341),ge=ee(ge,me,xe,he,ue[Ae+7],22,-45705983),he=ee(he,ge,me,xe,ue[Ae+8],7,1770035416),xe=ee(xe,he,ge,me,ue[Ae+9],12,-1958414417),me=ee(me,xe,he,ge,ue[Ae+10],17,-42063),ge=ee(ge,me,xe,he,ue[Ae+11],22,-1990404162),he=ee(he,ge,me,xe,ue[Ae+12],7,1804603682),xe=ee(xe,he,ge,me,ue[Ae+13],12,-40341101),me=ee(me,xe,he,ge,ue[Ae+14],17,-1502002290),ge=ee(ge,me,xe,he,ue[Ae+15],22,1236535329),he=de(he,ge,me,xe,ue[Ae+1],5,-165796510),xe=de(xe,he,ge,me,ue[Ae+6],9,-1069501632),me=de(me,xe,he,ge,ue[Ae+11],14,643717713),ge=de(ge,me,xe,he,ue[Ae+0],20,-373897302),he=de(he,ge,me,xe,ue[Ae+5],5,-701558691),xe=de(xe,he,ge,me,ue[Ae+10],9,38016083),me=de(me,xe,he,ge,ue[Ae+15],14,-660478335),ge=de(ge,me,xe,he,ue[Ae+4],20,-405537848),he=de(he,ge,me,xe,ue[Ae+9],5,568446438),xe=de(xe,he,ge,me,ue[Ae+14],9,-1019803690),me=de(me,xe,he,ge,ue[Ae+3],14,-187363961),ge=de(ge,me,xe,he,ue[Ae+8],20,1163531501),he=de(he,ge,me,xe,ue[Ae+13],5,-1444681467),xe=de(xe,he,ge,me,ue[Ae+2],9,-51403784),me=de(me,xe,he,ge,ue[Ae+7],14,1735328473),ge=de(ge,me,xe,he,ue[Ae+12],20,-1926607734),he=x(he,ge,me,xe,ue[Ae+5],4,-378558),xe=x(xe,he,ge,me,ue[Ae+8],11,-2022574463),me=x(me,xe,he,ge,ue[Ae+11],16,1839030562),ge=x(ge,me,xe,he,ue[Ae+14],23,-35309556),he=x(he,ge,me,xe,ue[Ae+1],4,-1530992060),xe=x(xe,he,ge,me,ue[Ae+4],11,1272893353),me=x(me,xe,he,ge,ue[Ae+7],16,-155497632),ge=x(ge,me,xe,he,ue[Ae+10],23,-1094730640),he=x(he,ge,me,xe,ue[Ae+13],4,681279174),xe=x(xe,he,ge,me,ue[Ae+0],11,-358537222),me=x(me,xe,he,ge,ue[Ae+3],16,-722521979),ge=x(ge,me,xe,he,ue[Ae+6],23,76029189),he=x(he,ge,me,xe,ue[Ae+9],4,-640364487),xe=x(xe,he,ge,me,ue[Ae+12],11,-421815835),me=x(me,xe,he,ge,ue[Ae+15],16,530742520),ge=x(ge,me,xe,he,ue[Ae+2],23,-995338651),he=ae(he,ge,me,xe,ue[Ae+0],6,-198630844),xe=ae(xe,he,ge,me,ue[Ae+7],10,1126891415),me=ae(me,xe,he,ge,ue[Ae+14],15,-1416354905),ge=ae(ge,me,xe,he,ue[Ae+5],21,-57434055),he=ae(he,ge,me,xe,ue[Ae+12],6,1700485571),xe=ae(xe,he,ge,me,ue[Ae+3],10,-1894986606),me=ae(me,xe,he,ge,ue[Ae+10],15,-1051523),ge=ae(ge,me,xe,he,ue[Ae+1],21,-2054922799),he=ae(he,ge,me,xe,ue[Ae+8],6,1873313359),xe=ae(xe,he,ge,me,ue[Ae+15],10,-30611744),me=ae(me,xe,he,ge,ue[Ae+6],15,-1560198380),ge=ae(ge,me,xe,he,ue[Ae+13],21,1309151649),he=ae(he,ge,me,xe,ue[Ae+4],6,-145523070),xe=ae(xe,he,ge,me,ue[Ae+11],10,-1120210379),me=ae(me,xe,he,ge,ue[Ae+2],15,718787259),ge=ae(ge,me,xe,he,ue[Ae+9],21,-343485551),he=ie(he,Ne),ge=ie(ge,Be),me=ie(me,De),xe=ie(xe,we)}return Array(he,ge,me,xe)}function oe(ue,pe,he,ge,me,xe){return ie(se(ie(ie(pe,ue),ie(ge,xe)),me),he)}function ee(ue,pe,he,ge,me,xe,Ae){return oe(pe&he|~pe&ge,ue,pe,me,xe,Ae)}function de(ue,pe,he,ge,me,xe,Ae){return oe(pe&ge|he&~ge,ue,pe,me,xe,Ae)}function x(ue,pe,he,ge,me,xe,Ae){return oe(pe^he^ge,ue,pe,me,xe,Ae)}function ae(ue,pe,he,ge,me,xe,Ae){return oe(he^(pe|~ge),ue,pe,me,xe,Ae)}function ie(ue,pe){var he=(ue&65535)+(pe&65535),ge=(ue>>16)+(pe>>16)+(he>>16);return ge<<16|he&65535}function se(ue,pe){return ue<<pe|ue>>>32-pe}Pe.exports=function(pe){return z.hash(pe,re,16)}},{"./helpers":462}],464:[function(y,Pe,ye){"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 ie=Array(80),se=1732584193,ue=-271733879,pe=-1732584194,he=271733878,ge=-1009589776,me=0;me<x.length;me+=16){for(var xe=se,Ae=ue,Ne=pe,Be=he,De=ge,we=0;we<80;we++){we<16?ie[we]=x[me+we]:ie[we]=de(ie[we-3]^ie[we-8]^ie[we-14]^ie[we-16],1);var Ce=ee(ee(de(se,5),re(we,ue,pe,he)),ee(ee(ge,ie[we]),oe(we)));ge=he,he=pe,pe=de(ue,30),ue=se,se=Ce}se=ee(se,xe),ue=ee(ue,Ae),pe=ee(pe,Ne),he=ee(he,Be),ge=ee(ge,De)}return Array(se,ue,pe,he,ge)}function re(x,ae,ie,se){return x<20?ae&ie|~ae&se:x<40?ae^ie^se:x<60?ae&ie|ae&se|ie&se:ae^ie^se}function oe(x){return x<20?1518500249:x<40?1859775393:x<60?-1894007588:-899497514}function ee(x,ae){var ie=(x&65535)+(ae&65535),se=(x>>16)+(ae>>16)+(ie>>16);return se<<16|ie&65535}function de(x,ae){return x<<ae|x>>>32-ae}Pe.exports=function(ae){return z.hash(ae,E,20,!0)}},{"./helpers":462}],465:[function(y,Pe,ye){"use strict";Pe.exports=function(){return function(){}}},{}],466:[function(y,Pe,ye){(function(z){(function(){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),re=E(y("@babel/runtime/helpers/typeof")),oe=y("stream"),ee=oe.Stream,de=y("../lib/common/utils/isArray"),x=de.isArray;Pe.exports.string=function(se){return typeof se=="string"},Pe.exports.array=x,Pe.exports.buffer=z.isBuffer;function ae(ie){return ie instanceof ee}Pe.exports.writableStream=function(se){return ae(se)&&typeof se._write=="function"&&(0,re.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,Pe,ye){"use strict";var z=y("immediate"),E=Pe.exports={};E.nextTick=z,E.title="browser",E.browser=!0,E.env={},E.argv=[],E.version="",E.versions={};function re(){}E.on=re,E.addListener=re,E.once=re,E.off=re,E.removeListener=re,E.removeAllListeners=re,E.emit=re,E.prependListener=re,E.prependOnceListener=re,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,Pe,ye){(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"),re=y("./lib/response"),oe=y("xtend"),ee=y("builtin-status-codes"),de=y("url"),x=ye;x.request=function(ae,ie){typeof ae=="string"?ae=de.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,ge=ae.path||"/";pe&&pe.indexOf(":")!==-1&&(pe="["+pe+"]"),ae.url=(pe?ue+"//"+pe:"")+(he?":"+he:"")+ge,ae.method=(ae.method||"GET").toUpperCase(),ae.headers=ae.headers||{};var me=new E(ae);return ie&&me.on("response",ie),me},x.get=function(ie,se){var ue=x.request(ie,se);return ue.end(),ue},x.ClientRequest=E,x.IncomingMessage=re.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,Pe,ye){(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"),ye.fetch=x(z.fetch)&&x(z.ReadableStream),ye.writableStream=x(z.WritableStream),ye.abortController=x(z.AbortController),ye.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),ye.blobConstructor=!0}catch(ae){}var E;function re(){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 ie=re();if(!ie)return!1;try{return ie.responseType=ae,ie.responseType===ae}catch(se){}return!1}var ee=typeof z.ArrayBuffer!="undefined",de=ee&&x(z.ArrayBuffer.prototype.slice);ye.arraybuffer=ye.fetch||ee&&oe("arraybuffer"),ye.msstream=!ye.fetch&&de&&oe("ms-stream"),ye.mozchunkedarraybuffer=!ye.fetch&&ee&&oe("moz-chunked-arraybuffer"),ye.overrideMimeType=ye.fetch||(re()?x(re().overrideMimeType):!1),ye.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,Pe,ye){(function(z,E,re){(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"),de=y("./response"),x=y("readable-stream"),ae=y("to-arraybuffer"),ie=de.IncomingMessage,se=de.readyStates;function ue(me,xe){return oe.fetch&&xe?"fetch":oe.mozchunkedarraybuffer?"moz-chunked-arraybuffer":oe.msstream?"ms-stream":oe.arraybuffer&&me?"arraybuffer":oe.vbArray&&me?"text:vbarray":"text"}var pe=Pe.exports=function(me){var xe=this;x.Writable.call(xe),xe._opts=me,xe._body=[],xe._headers={},me.auth&&xe.setHeader("Authorization","Basic "+new re(me.auth).toString("base64")),Object.keys(me.headers).forEach(function(Be){xe.setHeader(Be,me.headers[Be])});var Ae,Ne=!0;if(me.mode==="disable-fetch"||"requestTimeout"in me&&!oe.abortController)Ne=!1,Ae=!0;else if(me.mode==="prefer-streaming")Ae=!1;else if(me.mode==="allow-wrong-content-type")Ae=!oe.overrideMimeType;else if(!me.mode||me.mode==="default"||me.mode==="prefer-fast")Ae=!0;else throw new Error("Invalid value for opts.mode");xe._mode=ue(Ae,Ne),xe._fetchTimer=null,xe.on("finish",function(){xe._onFinish()})};ee(pe,x.Writable),pe.prototype.setHeader=function(me,xe){var Ae=this,Ne=me.toLowerCase();ge.indexOf(Ne)===-1&&(Ae._headers[Ne]={name:me,value:xe})},pe.prototype.getHeader=function(me){var xe=this._headers[me.toLowerCase()];return xe?xe.value:null},pe.prototype.removeHeader=function(me){var xe=this;delete xe._headers[me.toLowerCase()]},pe.prototype._onFinish=function(){var me=this;if(!me._destroyed){var xe=me._opts,Ae=me._headers,Ne=null;xe.method!=="GET"&&xe.method!=="HEAD"&&(oe.arraybuffer?Ne=ae(re.concat(me._body)):oe.blobConstructor?Ne=new E.Blob(me._body.map(function(je){return ae(je)}),{type:(Ae["content-type"]||{}).value||""}):Ne=re.concat(me._body).toString());var Be=[];if(Object.keys(Ae).forEach(function(je){var Fe=Ae[je].name,ke=Ae[je].value;Array.isArray(ke)?ke.forEach(function(Ee){Be.push([Fe,Ee])}):Be.push([Fe,ke])}),me._mode==="fetch"){var De=null,we=null;if(oe.abortController){var Ce=new AbortController;De=Ce.signal,me._fetchAbortController=Ce,"requestTimeout"in xe&&xe.requestTimeout!==0&&(me._fetchTimer=E.setTimeout(function(){me.emit("requestTimeout"),me._fetchAbortController&&me._fetchAbortController.abort()},xe.requestTimeout))}E.fetch(me._opts.url,{method:me._opts.method,headers:Be,body:Ne||void 0,mode:"cors",credentials:xe.withCredentials?"include":"same-origin",signal:De}).then(function(je){me._fetchResponse=je,me._connect()},function(je){E.clearTimeout(me._fetchTimer),me._destroyed||me.emit("error",je)})}else{var Oe=me._xhr=new E.XMLHttpRequest;try{Oe.open(me._opts.method,me._opts.url,!0)}catch(je){z.nextTick(function(){me.emit("error",je)});return}"responseType"in Oe&&(Oe.responseType=me._mode.split(":")[0]),"withCredentials"in Oe&&(Oe.withCredentials=!!xe.withCredentials),me._mode==="text"&&"overrideMimeType"in Oe&&Oe.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in xe&&(Oe.timeout=xe.requestTimeout,Oe.ontimeout=function(){me.emit("requestTimeout")}),Be.forEach(function(je){Oe.setRequestHeader(je[0],je[1])}),me._response=null,Oe.onreadystatechange=function(){switch(Oe.readyState){case se.LOADING:case se.DONE:me._onXHRProgress();break}},me._mode==="moz-chunked-arraybuffer"&&(Oe.onprogress=function(){me._onXHRProgress()}),Oe.onerror=function(){me._destroyed||me.emit("error",new Error("XHR error"))};try{Oe.send(Ne)}catch(je){z.nextTick(function(){me.emit("error",je)});return}}}};function he(me){try{var xe=me.status;return xe!==null&&xe!==0}catch(Ae){return!1}}pe.prototype._onXHRProgress=function(){var me=this;!he(me._xhr)||me._destroyed||(me._response||me._connect(),me._response._onXHRProgress())},pe.prototype._connect=function(){var me=this;me._destroyed||(me._response=new ie(me._xhr,me._fetchResponse,me._mode,me._fetchTimer),me._response.on("error",function(xe){me.emit("error",xe)}),me.emit("response",me._response))},pe.prototype._write=function(me,xe,Ae){var Ne=this;Ne._body.push(me),Ae()},pe.prototype.abort=pe.prototype.destroy=function(){var me=this;me._destroyed=!0,E.clearTimeout(me._fetchTimer),me._response&&(me._response._destroyed=!0),me._xhr?me._xhr.abort():me._fetchAbortController&&me._fetchAbortController.abort()},pe.prototype.end=function(me,xe,Ae){var Ne=this;typeof me=="function"&&(Ae=me,me=void 0),x.Writable.prototype.end.call(Ne,me,xe,Ae)},pe.prototype.flushHeaders=function(){},pe.prototype.setTimeout=function(){},pe.prototype.setNoDelay=function(){},pe.prototype.setSocketKeepAlive=function(){};var ge=["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,Pe,ye){(function(z,E,re){(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"),de=y("readable-stream"),x=ye.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},ae=ye.IncomingMessage=function(ie,se,ue,pe){var he=this;if(de.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 ge=function De(){xe.read().then(function(we){if(!he._destroyed){if(we.done){E.clearTimeout(pe),he.push(null);return}he.push(new re(we.value)),De()}}).catch(function(we){E.clearTimeout(pe),he._destroyed||he.emit("error",we)})};if(he._fetchResponse=se,he.url=se.url,he.statusCode=se.status,he.statusMessage=se.statusText,se.headers.forEach(function(De,we){he.headers[we.toLowerCase()]=De,he.rawHeaders.push(we,De)}),oe.writableStream){var me=new WritableStream({write:function(we){return new Promise(function(Ce,Oe){he._destroyed?Oe():he.push(new re(we))?Ce():he._resumeFetch=Ce})},close:function(){E.clearTimeout(pe),he._destroyed||he.push(null)},abort:function(we){he._destroyed||he.emit("error",we)}});try{se.body.pipeTo(me).catch(function(De){E.clearTimeout(pe),he._destroyed||he.emit("error",De)});return}catch(De){}}var xe=se.body.getReader();ge()}else{he._xhr=ie,he._pos=0,he.url=ie.responseURL,he.statusCode=ie.status,he.statusMessage=ie.statusText;var Ae=ie.getAllResponseHeaders().split(/\r?\n/);if(Ae.forEach(function(De){var we=De.match(/^([^:]+):\s*(.*)/);if(we){var Ce=we[1].toLowerCase();Ce==="set-cookie"?(he.headers[Ce]===void 0&&(he.headers[Ce]=[]),he.headers[Ce].push(we[2])):he.headers[Ce]!==void 0?he.headers[Ce]+=", "+we[2]:he.headers[Ce]=we[2],he.rawHeaders.push(we[1],we[2])}}),he._charset="x-user-defined",!oe.overrideMimeType){var Ne=he.rawHeaders["mime-type"];if(Ne){var Be=Ne.match(/;\s*charset=([^;])(;|$)/);Be&&(he._charset=Be[1].toLowerCase())}he._charset||(he._charset="utf-8")}}};ee(ae,de.Readable),ae.prototype._read=function(){var ie=this,se=ie._resumeFetch;se&&(ie._resumeFetch=null,se())},ae.prototype._onXHRProgress=function(){var ie=this,se=ie._xhr,ue=null;switch(ie._mode){case"text:vbarray":if(se.readyState!==x.DONE)break;try{ue=new E.VBArray(se.responseBody).toArray()}catch(xe){}if(ue!==null){ie.push(new re(ue));break}case"text":try{ue=se.responseText}catch(xe){ie._mode="text:vbarray";break}if(ue.length>ie._pos){var pe=ue.substr(ie._pos);if(ie._charset==="x-user-defined"){for(var he=new re(pe.length),ge=0;ge<pe.length;ge++)he[ge]=pe.charCodeAt(ge)&255;ie.push(he)}else ie.push(pe,ie._charset);ie._pos=ue.length}break;case"arraybuffer":if(se.readyState!==x.DONE||!se.response)break;ue=se.response,ie.push(new re(new Uint8Array(ue)));break;case"moz-chunked-arraybuffer":if(ue=se.response,se.readyState!==x.LOADING||!ue)break;ie.push(new re(new Uint8Array(ue)));break;case"ms-stream":if(ue=se.response,se.readyState!==x.LOADING)break;var me=new E.MSStreamReader;me.onprogress=function(){me.result.byteLength>ie._pos&&(ie.push(new re(new Uint8Array(me.result.slice(ie._pos)))),ie._pos=me.result.byteLength)},me.onload=function(){ie.push(null)},me.readAsArrayBuffer(ue);break}ie._xhr.readyState===x.DONE&&ie._mode!=="ms-stream"&&ie.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,Pe,ye){"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 re=y("punycode"),oe=y("./util");ye.parse=we,ye.resolve=Oe,ye.resolveObject=je,ye.format=Ce,ye.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 de=/^([a-z0-9.+-]+:)/i,x=/:[0-9]*$/,ae=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ie=["<",">",'"',"`"," ","\r",`
`," "],se=["{","}","|","\\","^","`"].concat(ie),ue=["'"].concat(se),pe=["%","/","?",";","#"].concat(ue),he=["/","?","#"],ge=255,me=/^[+a-z0-9A-Z_-]{0,63}$/,xe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ae={javascript:!0,"javascript:":!0},Ne={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},De=y("querystring");function we(Fe,ke,Ee){if(Fe&&oe.isObject(Fe)&&Fe instanceof ee)return Fe;var Ge=new ee;return Ge.parse(Fe,ke,Ee),Ge}ee.prototype.parse=function(Fe,ke,Ee){if(!oe.isString(Fe))throw new TypeError("Parameter 'url' must be a string, not "+(0,E.default)(Fe));var Ge=Fe.indexOf("?"),Ke=Ge!==-1&&Ge<Fe.indexOf("#")?"?":"#",Ve=Fe.split(Ke),it=/\\/g;Ve[0]=Ve[0].replace(it,"/"),Fe=Ve.join(Ke);var Le=Fe;if(Le=Le.trim(),!Ee&&Fe.split("#").length===1){var Ue=ae.exec(Le);if(Ue)return this.path=Le,this.href=Le,this.pathname=Ue[1],Ue[2]?(this.search=Ue[2],ke?this.query=De.parse(this.search.substr(1)):this.query=this.search.substr(1)):ke&&(this.search="",this.query={}),this}var tt=de.exec(Le);if(tt){tt=tt[0];var nt=tt.toLowerCase();this.protocol=nt,Le=Le.substr(tt.length)}if(Ee||tt||Le.match(/^\/\/[^@\/]+@[^@\/]+/)){var et=Le.substr(0,2)==="//";et&&!(tt&&Ne[tt])&&(Le=Le.substr(2),this.slashes=!0)}if(!Ne[tt]&&(et||tt&&!Be[tt])){for(var Ze=-1,Ye=0;Ye<he.length;Ye++){var Xe=Le.indexOf(he[Ye]);Xe!==-1&&(Ze===-1||Xe<Ze)&&(Ze=Xe)}var st,Qe;Ze===-1?Qe=Le.lastIndexOf("@"):Qe=Le.lastIndexOf("@",Ze),Qe!==-1&&(st=Le.slice(0,Qe),Le=Le.slice(Qe+1),this.auth=decodeURIComponent(st)),Ze=-1;for(var Ye=0;Ye<pe.length;Ye++){var Xe=Le.indexOf(pe[Ye]);Xe!==-1&&(Ze===-1||Xe<Ze)&&(Ze=Xe)}Ze===-1&&(Ze=Le.length),this.host=Le.slice(0,Ze),Le=Le.slice(Ze),this.parseHost(),this.hostname=this.hostname||"";var ht=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ht)for(var at=this.hostname.split("."),Ye=0,qe=at.length;Ye<qe;Ye++){var _e=at[Ye];if(_e&&!_e.match(me)){for(var Re="",ne=0,fe=_e.length;ne<fe;ne++)_e.charCodeAt(ne)>127?Re+="x":Re+=_e[ne];if(!Re.match(me)){var Me=at.slice(0,Ye),He=at.slice(Ye+1),be=_e.match(xe);be&&(Me.push(be[1]),He.unshift(be[2])),He.length&&(Le="/"+He.join(".")+Le),this.hostname=Me.join(".");break}}}this.hostname.length>ge?this.hostname="":this.hostname=this.hostname.toLowerCase(),ht||(this.hostname=re.toASCII(this.hostname));var ve=this.port?":"+this.port:"",Ie=this.hostname||"";this.host=Ie+ve,this.href+=this.host,ht&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Le[0]!=="/"&&(Le="/"+Le))}if(!Ae[nt])for(var Ye=0,qe=ue.length;Ye<qe;Ye++){var $e=ue[Ye];if(Le.indexOf($e)!==-1){var We=encodeURIComponent($e);We===$e&&(We=escape($e)),Le=Le.split($e).join(We)}}var Je=Le.indexOf("#");Je!==-1&&(this.hash=Le.substr(Je),Le=Le.slice(0,Je));var ct=Le.indexOf("?");if(ct!==-1?(this.search=Le.substr(ct),this.query=Le.substr(ct+1),ke&&(this.query=De.parse(this.query)),Le=Le.slice(0,ct)):ke&&(this.search="",this.query={}),Le&&(this.pathname=Le),Be[nt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ve=this.pathname||"",ot=this.search||"";this.path=ve+ot}return this.href=this.format(),this};function Ce(Fe){return oe.isString(Fe)&&(Fe=we(Fe)),Fe instanceof ee?Fe.format():ee.prototype.format.call(Fe)}ee.prototype.format=function(){var Fe=this.auth||"";Fe&&(Fe=encodeURIComponent(Fe),Fe=Fe.replace(/%3A/i,":"),Fe+="@");var ke=this.protocol||"",Ee=this.pathname||"",Ge=this.hash||"",Ke=!1,Ve="";this.host?Ke=Fe+this.host:this.hostname&&(Ke=Fe+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(Ke+=":"+this.port)),this.query&&oe.isObject(this.query)&&Object.keys(this.query).length&&(Ve=De.stringify(this.query));var it=this.search||Ve&&"?"+Ve||"";return ke&&ke.substr(-1)!==":"&&(ke+=":"),this.slashes||(!ke||Be[ke])&&Ke!==!1?(Ke="//"+(Ke||""),Ee&&Ee.charAt(0)!=="/"&&(Ee="/"+Ee)):Ke||(Ke=""),Ge&&Ge.charAt(0)!=="#"&&(Ge="#"+Ge),it&&it.charAt(0)!=="?"&&(it="?"+it),Ee=Ee.replace(/[?#]/g,function(Le){return encodeURIComponent(Le)}),it=it.replace("#","%23"),ke+Ke+Ee+it+Ge};function Oe(Fe,ke){return we(Fe,!1,!0).resolve(ke)}ee.prototype.resolve=function(Fe){return this.resolveObject(we(Fe,!1,!0)).format()};function je(Fe,ke){return Fe?we(Fe,!1,!0).resolveObject(ke):ke}ee.prototype.resolveObject=function(Fe){if(oe.isString(Fe)){var ke=new ee;ke.parse(Fe,!1,!0),Fe=ke}for(var Ee=new ee,Ge=Object.keys(this),Ke=0;Ke<Ge.length;Ke++){var Ve=Ge[Ke];Ee[Ve]=this[Ve]}if(Ee.hash=Fe.hash,Fe.href==="")return Ee.href=Ee.format(),Ee;if(Fe.slashes&&!Fe.protocol){for(var it=Object.keys(Fe),Le=0;Le<it.length;Le++){var Ue=it[Le];Ue!=="protocol"&&(Ee[Ue]=Fe[Ue])}return Be[Ee.protocol]&&Ee.hostname&&!Ee.pathname&&(Ee.path=Ee.pathname="/"),Ee.href=Ee.format(),Ee}if(Fe.protocol&&Fe.protocol!==Ee.protocol){if(!Be[Fe.protocol]){for(var tt=Object.keys(Fe),nt=0;nt<tt.length;nt++){var et=tt[nt];Ee[et]=Fe[et]}return Ee.href=Ee.format(),Ee}if(Ee.protocol=Fe.protocol,!Fe.host&&!Ne[Fe.protocol]){for(var qe=(Fe.pathname||"").split("/");qe.length&&!(Fe.host=qe.shift()););Fe.host||(Fe.host=""),Fe.hostname||(Fe.hostname=""),qe[0]!==""&&qe.unshift(""),qe.length<2&&qe.unshift(""),Ee.pathname=qe.join("/")}else Ee.pathname=Fe.pathname;if(Ee.search=Fe.search,Ee.query=Fe.query,Ee.host=Fe.host||"",Ee.auth=Fe.auth,Ee.hostname=Fe.hostname||Fe.host,Ee.port=Fe.port,Ee.pathname||Ee.search){var Ze=Ee.pathname||"",Ye=Ee.search||"";Ee.path=Ze+Ye}return Ee.slashes=Ee.slashes||Fe.slashes,Ee.href=Ee.format(),Ee}var Xe=Ee.pathname&&Ee.pathname.charAt(0)==="/",st=Fe.host||Fe.pathname&&Fe.pathname.charAt(0)==="/",Qe=st||Xe||Ee.host&&Fe.pathname,ht=Qe,at=Ee.pathname&&Ee.pathname.split("/")||[],qe=Fe.pathname&&Fe.pathname.split("/")||[],_e=Ee.protocol&&!Be[Ee.protocol];if(_e&&(Ee.hostname="",Ee.port=null,Ee.host&&(at[0]===""?at[0]=Ee.host:at.unshift(Ee.host)),Ee.host="",Fe.protocol&&(Fe.hostname=null,Fe.port=null,Fe.host&&(qe[0]===""?qe[0]=Fe.host:qe.unshift(Fe.host)),Fe.host=null),Qe=Qe&&(qe[0]===""||at[0]==="")),st)Ee.host=Fe.host||Fe.host===""?Fe.host:Ee.host,Ee.hostname=Fe.hostname||Fe.hostname===""?Fe.hostname:Ee.hostname,Ee.search=Fe.search,Ee.query=Fe.query,at=qe;else if(qe.length)at||(at=[]),at.pop(),at=at.concat(qe),Ee.search=Fe.search,Ee.query=Fe.query;else if(!oe.isNullOrUndefined(Fe.search)){if(_e){Ee.hostname=Ee.host=at.shift();var Re=Ee.host&&Ee.host.indexOf("@")>0?Ee.host.split("@"):!1;Re&&(Ee.auth=Re.shift(),Ee.host=Ee.hostname=Re.shift())}return Ee.search=Fe.search,Ee.query=Fe.query,(!oe.isNull(Ee.pathname)||!oe.isNull(Ee.search))&&(Ee.path=(Ee.pathname?Ee.pathname:"")+(Ee.search?Ee.search:"")),Ee.href=Ee.format(),Ee}if(!at.length)return Ee.pathname=null,Ee.search?Ee.path="/"+Ee.search:Ee.path=null,Ee.href=Ee.format(),Ee;for(var ne=at.slice(-1)[0],fe=(Ee.host||Fe.host||at.length>1)&&(ne==="."||ne==="..")||ne==="",Me=0,He=at.length;He>=0;He--)ne=at[He],ne==="."?at.splice(He,1):ne===".."?(at.splice(He,1),Me++):Me&&(at.splice(He,1),Me--);if(!Qe&&!ht)for(;Me--;Me)at.unshift("..");Qe&&at[0]!==""&&(!at[0]||at[0].charAt(0)!=="/")&&at.unshift(""),fe&&at.join("/").substr(-1)!=="/"&&at.push("");var be=at[0]===""||at[0]&&at[0].charAt(0)==="/";if(_e){Ee.hostname=Ee.host=be?"":at.length?at.shift():"";var Re=Ee.host&&Ee.host.indexOf("@")>0?Ee.host.split("@"):!1;Re&&(Ee.auth=Re.shift(),Ee.host=Ee.hostname=Re.shift())}return Qe=Qe||Ee.host&&at.length,Qe&&!be&&at.unshift(""),at.length?Ee.pathname=at.join("/"):(Ee.pathname=null,Ee.path=null),(!oe.isNull(Ee.pathname)||!oe.isNull(Ee.search))&&(Ee.path=(Ee.pathname?Ee.pathname:"")+(Ee.search?Ee.search:"")),Ee.auth=Fe.auth||Ee.auth,Ee.slashes=Ee.slashes||Fe.slashes,Ee.href=Ee.format(),Ee},ee.prototype.parseHost=function(){var Fe=this.host,ke=x.exec(Fe);ke&&(ke=ke[0],ke!==":"&&(this.port=ke.substr(1)),Fe=Fe.substr(0,Fe.length-ke.length)),Fe&&(this.hostname=Fe)}},{"./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,Pe,ye){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),E=z(y("@babel/runtime/helpers/typeof"));Pe.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,Pe,ye){"use strict";y("core-js/modules/es.number.constructor.js"),ye.encodeURIComponent=function(z){try{return encodeURIComponent(z)}catch(E){return z}},ye.escape=y("escape-html"),ye.timestamp=function(E){if(E){var re=E;return typeof re=="string"&&(re=Number(re)),String(E).length===10&&(re*=1e3),new Date(re)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(y,Pe,ye){(function(z,E){(function(){"use strict";var re=y("@babel/runtime/helpers/interopRequireDefault"),oe=re(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"),de=y("url"),x=y("http"),ae=y("https"),ie=y("debug")("urllib"),se=y("humanize-ms"),ue=0,pe=Math.pow(2,31)-10,he=/^https?:\/\//i;function ge(Ne,Be){return Ne===void 0?Be:Ne}function me(Ne){return Ne?Ne.split(";")[0].trim().toLowerCase():""}function xe(Ne,Be){return function(De,we,Ce){if(De)return Be(De);Ne({data:we,status:Ce.statusCode,headers:Ce.headers,res:Ce})}}ye.TIMEOUTS=[se("300s"),se("300s")];var Ae=["json","text"];ye.request=function(Be,De,we){return arguments.length===2&&typeof De=="function"&&(we=De,De=null),typeof we=="function"?ye.requestWithCallback(Be,De,we):new Promise(function(Ce,Oe){ye.requestWithCallback(Be,De,xe(Ce,Oe))})},ye.requestWithCallback=function(Be,De,we){if(!Be||typeof Be!="string"&&(0,oe.default)(Be)!=="object"){var Ce=ee.format("expect request url to be a string or a http request options, but got %j",Be);throw new Error(Ce)}arguments.length===2&&typeof De=="function"&&(we=De,De=null),De=De||{},ue>=pe&&(ue=0);var Oe=++ue;De.requestUrls=De.requestUrls||[];var je={requestId:Oe,url:Be,args:De,ctx:De.ctx};De.emitter&&De.emitter.emit("request",je),De.timeout=De.timeout||ye.TIMEOUTS,De.maxRedirects=De.maxRedirects||10,De.streaming=De.streaming||De.customResponse;var Fe=Date.now(),ke;typeof Be=="string"?(he.test(Be)||(Be="https://"+Be),ke=de.parse(Be)):ke=Be;var Ee=(De.type||De.method||ke.method||"GET").toUpperCase(),Ge=ke.port||80,Ke=x,Ve=ge(De.agent,ye.agent),it=De.fixJSONCtlChars;ke.protocol==="https:"&&(Ke=ae,Ve=ge(De.httpsAgent,ye.httpsAgent),ke.port||(Ge=443));var Le={host:ke.hostname||ke.host||"localhost",path:ke.path||"/",method:Ee,port:Ge,agent:Ve,headers:De.headers||{},lookup:De.lookup};Array.isArray(De.timeout)?Le.requestTimeout=De.timeout[De.timeout.length-1]:typeof De.timeout!="undefined"&&(Le.requestTimeout=De.timeout);var Ue=De.auth||ke.auth;Ue&&(Le.auth=Ue);var tt=De.content||De.data,nt=Ee==="GET"||Ee==="HEAD"||De.dataAsQueryString;if(!De.content&&tt&&!(typeof tt=="string"||E.isBuffer(tt)))if(nt)tt=De.nestedQuerystring?qs.stringify(tt):querystring.stringify(tt);else{var et=Le.headers["Content-Type"]||Le.headers["content-type"];et||(De.contentType==="json"?et="application/json":et="application/x-www-form-urlencoded",Le.headers["Content-Type"]=et),me(et)==="application/json"?tt=JSON.stringify(tt):tt=De.nestedQuerystring?qs.stringify(tt):querystring.stringify(tt)}nt&&tt&&(Le.path+=(ke.query?"&":"?")+tt,tt=null);var Ze=0;if(tt){var Ye=tt.length;E.isBuffer(tt)||(Ye=E.byteLength(tt)),Ze=Le.headers["Content-Length"]=Ye}De.dataType==="json"&&(Le.headers.Accept="application/json"),typeof De.beforeRequest=="function"&&De.beforeRequest(Le);var Xe=null,st=null,Qe=null,ht=!1,at=!1,qe=0,_e=-1,Re=!1,ne="",fe="",Me=null;De.timing&&(Me={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function He(){Xe&&(clearTimeout(Xe),Xe=null)}function be(){st&&(clearTimeout(st),st=null)}function ve(yt,Rt,Pt){if(be(),!we){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Oe,z.pid,Le.method,Be),yt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),Oe,z.pid,yt.name,yt.message,yt.stack);return}var Tt=we;we=null;var kt={};Pt&&(_e=Pt.statusCode,kt=Pt.headers);var Dt=Date.now()-Fe;Me&&(Me.contentDownload=Dt),ie("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Dt,qe,_e,Le.method,Le.host,Le.path,at,Me);var gt={status:_e,statusCode:_e,headers:kt,size:qe,aborted:Re,rt:Dt,keepAliveSocket:at,data:Rt,requestUrls:De.requestUrls,timing:Me,remoteAddress:ne,remotePort:fe};if(yt){var It="";Ve&&typeof Ve.getCurrentStatus=="function"&&(It=", agent status: "+JSON.stringify(Ve.getCurrentStatus())),yt.message+=", "+Le.method+" "+Be+" "+_e+" (connected: "+ht+", keepalive socket: "+at+It+`)
headers: `+JSON.stringify(kt),yt.data=Rt,yt.path=Le.path,yt.status=_e,yt.headers=kt,yt.res=gt}Tt(yt,Rt,De.streaming?Pt:gt),De.emitter&&(je.url=Be,je.socket=lt&&lt.connection,je.options=Le,je.size=Ze,De.emitter.emit("response",{requestId:Oe,error:yt,ctx:De.ctx,req:je,res:gt}))}function Ie(yt){var Rt=null;if(De.followRedirect&&statuses.redirect[yt.statusCode]){De._followRedirectCount=(De._followRedirectCount||0)+1;var Pt=yt.headers.location;if(!Pt)Rt=new Error("Got statusCode "+yt.statusCode+" but cannot resolve next location from headers"),Rt.name="FollowRedirectError";else if(De._followRedirectCount>De.maxRedirects)Rt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Be),Rt.name="MaxRedirectError";else{var Tt=De.formatRedirectUrl?De.formatRedirectUrl(Be,Pt):de.resolve(Be,Pt);ie("Request#%d %s: `redirected` from %s to %s",Oe,Le.path,Be,Tt),be(),De.headers&&De.headers.Host&&he.test(Pt)&&(De.headers.Host=null);var kt=we;return we=null,ye.requestWithCallback(Tt,De,kt),{redirect:!0,error:null}}}return{redirect:!1,error:Rt}}De.gzip&&!Le.headers["Accept-Encoding"]&&!Le.headers["accept-encoding"]&&(Le.headers["Accept-Encoding"]="gzip");function $e(yt,Rt,Pt){var Tt=yt.headers["content-encoding"];return Pt(null,Rt,Tt)}var We=De.writeStream;ie("Request#%d %s %s with headers %j, options.path: %s",Oe,Ee,Be,Le.headers,Le.path),De.requestUrls.push(Be);function Je(yt){if(Me&&(Me.waiting=Date.now()-Fe),ie("Request#%d %s `req response` event emit: status %d, headers: %j",Oe,Be,yt.statusCode,yt.headers),De.streaming){var Rt=Ie(yt);if(Rt.redirect){yt.resume();return}return Rt.error?(yt.resume(),ve(Rt.error,null,yt)):ve(null,null,yt)}if(yt.on("close",function(){ie("Request#%d %s: `res close` event emit, total size %d",Oe,Be,qe)}),yt.on("error",function(){ie("Request#%d %s: `res error` event emit, total size %d",Oe,Be,qe)}),yt.on("aborted",function(){Re=!0,ie("Request#%d %s: `res aborted` event emit, total size %d",Oe,Be,qe)}),We){var Pt=Ie(yt);if(Pt.redirect){yt.resume();return}return Pt.error?(yt.resume(),We.end(),ve(Pt.error,null,yt)):(De.consumeWriteStream===!1?yt.on("end",ve.bind(null,null,null,yt)):We.on("close",function(){ie("Request#%d %s: writeStream close event emitted",Oe,Be),ve(Qe||null,null,yt)}),yt.pipe(We))}var Tt=[];yt.on("data",function(kt){ie("Request#%d %s: `res data` event emit, size %d",Oe,Be,kt.length),qe+=kt.length,Tt.push(kt)}),yt.on("end",function(){var kt=E.concat(Tt,qe);if(ie("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Oe,Be,qe,yt._dumped),Qe)return ve(Qe,kt,yt);var Dt=Ie(yt);if(Dt.error)return ve(Dt.error,kt,yt);Dt.redirect||$e(yt,kt,function(gt,It,Vt){if(gt)return ve(gt,kt,yt);if(!Vt&&Ae.indexOf(De.dataType)>=0){try{It=decodeBodyByCharset(It,yt)}catch(wt){return ie("decodeBodyByCharset error: %s",wt),ve(null,It,yt)}if(De.dataType==="json")if(qe===0)It=null;else{var rn=parseJSON(It,it);rn.error?gt=rn.error:It=rn.data}}Re&&ie("Request#%d %s: Remote socket was terminated before `response.end()` was called",Oe,Be),ve(gt,It,yt)})})}var ct,ot;Array.isArray(De.timeout)?(ct=se(De.timeout[0]),ot=se(De.timeout[1])):ct=ot=se(De.timeout),ie("ConnectTimeout: %d, ResponseTimeout: %d",ct,ot);function ft(){ie("Connect timer ticking, timeout: %d",ct),Xe=setTimeout(function(){Xe=null,_e===-1&&(_e=-2);var yt="Connect timeout for "+ct+"ms",Rt="ConnectionTimeoutError";lt.socket||(Rt="SocketAssignTimeoutError",yt+=", working sockets is full"),Qe=new Error(yt),Qe.name=Rt,Qe.requestId=Oe,ie("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Oe,Be,Qe.name,yt,ht),At()},ct)}function ut(){ie("Response timer ticking, timeout: %d",ot),st=setTimeout(function(){st=null;var yt="Response timeout for "+ot+"ms",Rt="ResponseTimeoutError";Qe=new Error(yt),Qe.name=Rt,Qe.requestId=Oe,ie("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Oe,Be,Qe.name,yt,ht),At()},ot)}var lt;Le.mode=De.mode?De.mode:"";try{lt=Ke.request(Le,Je)}catch(yt){return ve(yt)}typeof window=="undefined"?ft():lt.on("requestTimeout",function(){_e===-1&&(_e=-2);var yt="Connect timeout for "+ct+"ms",Rt="ConnectionTimeoutError";Qe=new Error(yt),Qe.name=Rt,Qe.requestId=Oe,At()});function At(){ie("Request#%d %s abort, connected: %s",Oe,Be,ht),lt.socket||(Qe.noSocket=!0,ve(Qe)),lt.abort()}return Me&&lt.on("finish",function(){Me.requestSent=Date.now()-Fe}),lt.once("socket",function(yt){Me&&(Me.queuing=Date.now()-Fe);var Rt=yt.readyState;if(Rt==="opening"){yt.once("lookup",function(Pt,Tt,kt){ie("Request#%d %s lookup: %s, %s, %s",Oe,Be,Pt,Tt,kt),Me&&(Me.dnslookup=Date.now()-Fe),Tt&&(ne=Tt)}),yt.once("connect",function(){Me&&(Me.connected=Date.now()-Fe),He(),ut(),ie("Request#%d %s new socket connected",Oe,Be),ht=!0,ne||(ne=yt.remoteAddress),fe=yt.remotePort});return}ie("Request#%d %s reuse socket connected, readyState: %s",Oe,Be,Rt),ht=!0,at=!0,ne||(ne=yt.remoteAddress),fe=yt.remotePort,He(),ut()}),lt.on("error",function(yt){(yt.name==="Error"||yt.name==="TypeError")&&(yt.name=ht?"ResponseError":"RequestError"),yt.message+=' (req "error")',ie("Request#%d %s `req error` event emit, %s: %s",Oe,Be,yt.name,yt.message),ve(Qe||yt)}),We&&We.once("error",function(yt){yt.message+=' (writeStream "error")',Qe=yt,ie("Request#%d %s `writeStream error` event emit, %s: %s",Oe,Be,yt.name,yt.message),At()}),De.stream?(De.stream.pipe(lt),De.stream.once("error",function(yt){yt.message+=' (stream "error")',Qe=yt,ie("Request#%d %s `readStream error` event emit, %s: %s",Oe,Be,yt.name,yt.message),At()})):lt.end(tt),lt.requestId=Oe,lt}}).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(wn,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(Pe=>{const ye=y[Pe];ye!==void 0&&(te[Pe]=ye)})}return te};Yt.Z=Te},86013:function(wn,Yt,Te){"use strict";var te=Te(59301),Ot=Te(19248);const y=Pe=>{let ye;return typeof Pe=="object"&&(Pe!=null&&Pe.clearIcon)?ye=Pe:Pe&&(ye={clearIcon:te.createElement(Ot.Z,null)}),ye};Yt.Z=y},97224:function(wn,Yt,Te){"use strict";Te.d(Yt,{F:function(){return te}});function te(y){return y!=null&&y===y.window}const Ot=y=>{var Pe,ye;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=(ye=((Pe=y.ownerDocument)!==null&&Pe!==void 0?Pe:y).documentElement)===null||ye===void 0?void 0:ye.scrollTop),z};Yt.Z=Ot},83010:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Pe}});var te=Te(16089);function Ot(ye,z,E,re){const oe=E-z;return ye/=re/2,ye<1?oe/2*ye*ye*ye+z:oe/2*((ye-=2)*ye*ye+2)+z}var y=Te(97224);function Pe(ye){let z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:E=()=>window,callback:re,duration:oe=450}=z,ee=E(),de=(0,y.Z)(ee),x=Date.now(),ae=()=>{const se=Date.now()-x,ue=Ot(se>oe?oe:se,de,ye,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 re=="function"&&re()};(0,te.Z)(ae)}},91882:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Ke}});var te=Te(59301),Ot=Te(92310),y=Te.n(Ot),Pe=Te(11592),ye=Te(26112),z=Te(22703),E=Te(48755),re=Te(84105),oe=Te(19563);const ee=Ve=>{let{children:it}=Ve;const{getPrefixCls:Le}=te.useContext(E.E_),Ue=Le("breadcrumb");return te.createElement("li",{className:`${Ue}-separator`,"aria-hidden":"true"},it===""?it:it||"/")};ee.__ANT_BREADCRUMB_SEPARATOR=!0;var de=ee,x=function(Ve,it){var Le={};for(var Ue in Ve)Object.prototype.hasOwnProperty.call(Ve,Ue)&&it.indexOf(Ue)<0&&(Le[Ue]=Ve[Ue]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ue=Object.getOwnPropertySymbols(Ve);tt<Ue.length;tt++)it.indexOf(Ue[tt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Ue[tt])&&(Le[Ue[tt]]=Ve[Ue[tt]]);return Le};function ae(Ve,it){if(Ve.title===void 0||Ve.title===null)return null;const Le=Object.keys(it).join("|");return typeof Ve.title=="object"?Ve.title:String(Ve.title).replace(new RegExp(`:(${Le})`,"g"),(Ue,tt)=>it[tt]||Ue)}function ie(Ve,it,Le,Ue){if(Le==null)return null;const{className:tt,onClick:nt}=it,et=x(it,["className","onClick"]),Ze=Object.assign(Object.assign({},(0,ye.Z)(et,{data:!0,aria:!0})),{onClick:nt});return Ue!==void 0?te.createElement("a",Object.assign({},Ze,{className:y()(`${Ve}-link`,tt),href:Ue}),Le):te.createElement("span",Object.assign({},Ze,{className:y()(`${Ve}-link`,tt)}),Le)}function se(Ve,it){return(Ue,tt,nt,et,Ze)=>{if(it)return it(Ue,tt,nt,et);const Ye=ae(Ue,tt);return ie(Ve,Ue,Ye,Ze)}}var ue=function(Ve,it){var Le={};for(var Ue in Ve)Object.prototype.hasOwnProperty.call(Ve,Ue)&&it.indexOf(Ue)<0&&(Le[Ue]=Ve[Ue]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ue=Object.getOwnPropertySymbols(Ve);tt<Ue.length;tt++)it.indexOf(Ue[tt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Ue[tt])&&(Le[Ue[tt]]=Ve[Ue[tt]]);return Le};const pe=Ve=>{const{prefixCls:it,separator:Le="/",children:Ue,menu:tt,overlay:nt,dropdownProps:et,href:Ze}=Ve,Xe=(st=>{if(tt||nt){const Qe=Object.assign({},et);if(tt){const ht=tt||{},{items:at}=ht,qe=ue(ht,["items"]);Qe.menu=Object.assign(Object.assign({},qe),{items:at==null?void 0:at.map((_e,Re)=>{var{key:ne,title:fe,label:Me,path:He}=_e,be=ue(_e,["key","title","label","path"]);let ve=Me!=null?Me:fe;return He&&(ve=te.createElement("a",{href:`${Ze}${He}`},ve)),Object.assign(Object.assign({},be),{key:ne!=null?ne:Re,label:ve})})})}else nt&&(Qe.overlay=nt);return te.createElement(oe.Z,Object.assign({placement:"bottom"},Qe),te.createElement("span",{className:`${it}-overlay-link`},st,te.createElement(re.Z,null)))}return st})(Ue);return Xe!=null?te.createElement(te.Fragment,null,te.createElement("li",null,Xe),Le&&te.createElement(de,null,Le)):null},he=Ve=>{const{prefixCls:it,children:Le,href:Ue}=Ve,tt=ue(Ve,["prefixCls","children","href"]),{getPrefixCls:nt}=te.useContext(E.E_),et=nt("breadcrumb",it);return te.createElement(pe,Object.assign({},tt,{prefixCls:et}),ie(et,tt,Le,Ue))};he.__ANT_BREADCRUMB_ITEM=!0;var ge=he,me=Te(36237),xe=Te(63356),Ae=Te(16931),Ne=Te(51636);const Be=Ve=>{const{componentCls:it,iconCls:Le,calc:Ue}=Ve;return{[it]:Object.assign(Object.assign({},(0,xe.Wf)(Ve)),{color:Ve.itemColor,fontSize:Ve.fontSize,[Le]:{fontSize:Ve.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ve.linkColor,transition:`color ${Ve.motionDurationMid}`,padding:`0 ${(0,me.unit)(Ve.paddingXXS)}`,borderRadius:Ve.borderRadiusSM,height:Ve.fontHeight,display:"inline-block",marginInline:Ue(Ve.marginXXS).mul(-1).equal(),"&:hover":{color:Ve.linkHoverColor,backgroundColor:Ve.colorBgTextHover}},(0,xe.Qy)(Ve)),"li:last-child":{color:Ve.lastItemColor},[`${it}-separator`]:{marginInline:Ve.separatorMargin,color:Ve.separatorColor},[`${it}-link`]:{[`
> ${Le} + span,
> ${Le} + a
`]:{marginInlineStart:Ve.marginXXS}},[`${it}-overlay-link`]:{borderRadius:Ve.borderRadiusSM,height:Ve.fontHeight,display:"inline-block",padding:`0 ${(0,me.unit)(Ve.paddingXXS)}`,marginInline:Ue(Ve.marginXXS).mul(-1).equal(),[`> ${Le}`]:{marginInlineStart:Ve.marginXXS,fontSize:Ve.fontSizeIcon},"&:hover":{color:Ve.linkHoverColor,backgroundColor:Ve.colorBgTextHover,a:{color:Ve.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ve.componentCls}-rtl`]:{direction:"rtl"}})}},De=Ve=>({itemColor:Ve.colorTextDescription,lastItemColor:Ve.colorText,iconFontSize:Ve.fontSize,linkColor:Ve.colorTextDescription,linkHoverColor:Ve.colorText,separatorColor:Ve.colorTextDescription,separatorMargin:Ve.marginXS});var we=(0,Ae.I$)("Breadcrumb",Ve=>{const it=(0,Ne.mergeToken)(Ve,{});return Be(it)},De),Ce=function(Ve,it){var Le={};for(var Ue in Ve)Object.prototype.hasOwnProperty.call(Ve,Ue)&&it.indexOf(Ue)<0&&(Le[Ue]=Ve[Ue]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ue=Object.getOwnPropertySymbols(Ve);tt<Ue.length;tt++)it.indexOf(Ue[tt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Ue[tt])&&(Le[Ue[tt]]=Ve[Ue[tt]]);return Le};function Oe(Ve){const{breadcrumbName:it,children:Le}=Ve,Ue=Ce(Ve,["breadcrumbName","children"]),tt=Object.assign({title:it},Ue);return Le&&(tt.menu={items:Le.map(nt=>{var{breadcrumbName:et}=nt,Ze=Ce(nt,["breadcrumbName"]);return Object.assign(Object.assign({},Ze),{title:et})})}),tt}function je(Ve,it){return(0,te.useMemo)(()=>Ve||(it?it.map(Oe):null),[Ve,it])}var Fe=function(Ve,it){var Le={};for(var Ue in Ve)Object.prototype.hasOwnProperty.call(Ve,Ue)&&it.indexOf(Ue)<0&&(Le[Ue]=Ve[Ue]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ue=Object.getOwnPropertySymbols(Ve);tt<Ue.length;tt++)it.indexOf(Ue[tt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Ue[tt])&&(Le[Ue[tt]]=Ve[Ue[tt]]);return Le};const ke=(Ve,it)=>{if(it===void 0)return it;let Le=(it||"").replace(/^\//,"");return Object.keys(Ve).forEach(Ue=>{Le=Le.replace(`:${Ue}`,Ve[Ue])}),Le},Ee=Ve=>{const{prefixCls:it,separator:Le="/",style:Ue,className:tt,rootClassName:nt,routes:et,items:Ze,children:Ye,itemRender:Xe,params:st={}}=Ve,Qe=Fe(Ve,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:ht,direction:at,breadcrumb:qe}=te.useContext(E.E_);let _e;const Re=ht("breadcrumb",it),[ne,fe,Me]=we(Re),He=je(Ze,et),be=se(Re,Xe);if(He&&He.length>0){const $e=[],We=Ze||et;_e=He.map((Je,ct)=>{const{path:ot,key:ft,type:ut,menu:lt,overlay:At,onClick:yt,className:Rt,separator:Pt,dropdownProps:Tt}=Je,kt=ke(st,ot);kt!==void 0&&$e.push(kt);const Dt=ft!=null?ft:ct;if(ut==="separator")return te.createElement(de,{key:Dt},Pt);const gt={},It=ct===He.length-1;lt?gt.menu=lt:At&&(gt.overlay=At);let{href:Vt}=Je;return $e.length&&kt!==void 0&&(Vt=`#/${$e.join("/")}`),te.createElement(pe,Object.assign({key:Dt},gt,(0,ye.Z)(Je,{data:!0,aria:!0}),{className:Rt,dropdownProps:Tt,href:Vt,separator:It?"":Le,onClick:yt,prefixCls:Re}),be(Je,st,We,$e,Vt))})}else if(Ye){const $e=(0,Pe.Z)(Ye).length;_e=(0,Pe.Z)(Ye).map((We,Je)=>{if(!We)return We;const ct=Je===$e-1;return(0,z.Tm)(We,{separator:ct?"":Le,key:Je})})}const ve=y()(Re,qe==null?void 0:qe.className,{[`${Re}-rtl`]:at==="rtl"},tt,nt,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,_e)))};Ee.Item=ge,Ee.Separator=de;var Ge=Ee,Ke=Ge},62673:function(wn,Yt,Te){"use strict";Te.d(Yt,{default:function(){return we}});var te=Te(59301),Ot=Te(92310),y=Te.n(Ot),Pe=Te(16632),ye=Te(8654),z=Te(12919),E=Te(63872),re=Te(48755),oe=Te(2171),ee=Te(83397),de=Te(56553),ae=te.createContext(null),ie=Te(36170),se=Te(74632),ue=function(Ce,Oe){var je={};for(var Fe in Ce)Object.prototype.hasOwnProperty.call(Ce,Fe)&&Oe.indexOf(Fe)<0&&(je[Fe]=Ce[Fe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Fe=Object.getOwnPropertySymbols(Ce);ke<Fe.length;ke++)Oe.indexOf(Fe[ke])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Fe[ke])&&(je[Fe[ke]]=Ce[Fe[ke]]);return je};const pe=(Ce,Oe)=>{var je;const{prefixCls:Fe,className:ke,rootClassName:Ee,children:Ge,indeterminate:Ke=!1,style:Ve,onMouseEnter:it,onMouseLeave:Le,skipGroup:Ue=!1,disabled:tt}=Ce,nt=ue(Ce,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:et,direction:Ze,checkbox:Ye}=te.useContext(re.E_),Xe=te.useContext(ae),{isFormItemInput:st}=te.useContext(de.aM),Qe=te.useContext(oe.Z),ht=(je=(Xe==null?void 0:Xe.disabled)||tt)!==null&&je!==void 0?je:Qe,at=te.useRef(nt.value),qe=te.useRef(null),_e=(0,ye.sQ)(Oe,qe);te.useEffect(()=>{Xe==null||Xe.registerValue(nt.value)},[]),te.useEffect(()=>{if(!Ue)return nt.value!==at.current&&(Xe==null||Xe.cancelValue(at.current),Xe==null||Xe.registerValue(nt.value),at.current=nt.value),()=>Xe==null?void 0:Xe.cancelValue(nt.value)},[nt.value]),te.useEffect(()=>{var Je;!((Je=qe.current)===null||Je===void 0)&&Je.input&&(qe.current.input.indeterminate=Ke)},[Ke]);const Re=et("checkbox",Fe),ne=(0,ee.Z)(Re),[fe,Me,He]=(0,ie.ZP)(Re,ne),be=Object.assign({},nt);Xe&&!Ue&&(be.onChange=function(){nt.onChange&&nt.onChange.apply(nt,arguments),Xe.toggleOption&&Xe.toggleOption({label:Ge,value:nt.value})},be.name=Xe.name,be.checked=Xe.value.includes(nt.value));const ve=y()(`${Re}-wrapper`,{[`${Re}-rtl`]:Ze==="rtl",[`${Re}-wrapper-checked`]:be.checked,[`${Re}-wrapper-disabled`]:ht,[`${Re}-wrapper-in-form-item`]:st},Ye==null?void 0:Ye.className,ke,Ee,He,ne,Me),Ie=y()({[`${Re}-indeterminate`]:Ke},E.A,Me),[$e,We]=(0,se.Z)(be.onClick);return fe(te.createElement(z.Z,{component:"Checkbox",disabled:ht},te.createElement("label",{className:ve,style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),Ve),onMouseEnter:it,onMouseLeave:Le,onClick:$e},te.createElement(Pe.Z,Object.assign({},be,{onClick:We,prefixCls:Re,className:Ie,disabled:ht,ref:_e})),Ge!==void 0&&te.createElement("span",{className:`${Re}-label`},Ge))))};var ge=te.forwardRef(pe),me=Te(94480),xe=Te(2738),Ae=function(Ce,Oe){var je={};for(var Fe in Ce)Object.prototype.hasOwnProperty.call(Ce,Fe)&&Oe.indexOf(Fe)<0&&(je[Fe]=Ce[Fe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Fe=Object.getOwnPropertySymbols(Ce);ke<Fe.length;ke++)Oe.indexOf(Fe[ke])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Fe[ke])&&(je[Fe[ke]]=Ce[Fe[ke]]);return je},Be=te.forwardRef((Ce,Oe)=>{const{defaultValue:je,children:Fe,options:ke=[],prefixCls:Ee,className:Ge,rootClassName:Ke,style:Ve,onChange:it}=Ce,Le=Ae(Ce,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ue,direction:tt}=te.useContext(re.E_),[nt,et]=te.useState(Le.value||je||[]),[Ze,Ye]=te.useState([]);te.useEffect(()=>{"value"in Le&&et(Le.value||[])},[Le.value]);const Xe=te.useMemo(()=>ke.map(Ie=>typeof Ie=="string"||typeof Ie=="number"?{label:Ie,value:Ie}:Ie),[ke]),st=Ie=>{Ye($e=>$e.filter(We=>We!==Ie))},Qe=Ie=>{Ye($e=>[].concat((0,me.Z)($e),[Ie]))},ht=Ie=>{const $e=nt.indexOf(Ie.value),We=(0,me.Z)(nt);$e===-1?We.push(Ie.value):We.splice($e,1),"value"in Le||et(We),it==null||it(We.filter(Je=>Ze.includes(Je)).sort((Je,ct)=>{const ot=Xe.findIndex(ut=>ut.value===Je),ft=Xe.findIndex(ut=>ut.value===ct);return ot-ft}))},at=Ue("checkbox",Ee),qe=`${at}-group`,_e=(0,ee.Z)(at),[Re,ne,fe]=(0,ie.ZP)(at,_e),Me=(0,xe.Z)(Le,["value","disabled"]),He=ke.length?Xe.map(Ie=>te.createElement(ge,{prefixCls:at,key:Ie.value.toString(),disabled:"disabled"in Ie?Ie.disabled:Le.disabled,value:Ie.value,checked:nt.includes(Ie.value),onChange:Ie.onChange,className:`${qe}-item`,style:Ie.style,title:Ie.title,id:Ie.id,required:Ie.required},Ie.label)):Fe,be={toggleOption:ht,value:nt,disabled:Le.disabled,name:Le.name,registerValue:Qe,cancelValue:st},ve=y()(qe,{[`${qe}-rtl`]:tt==="rtl"},Ge,Ke,fe,_e,ne);return Re(te.createElement("div",Object.assign({className:ve,style:Ve},Me,{ref:Oe}),te.createElement(ae.Provider,{value:be},He)))});const De=ge;De.Group=Be,De.__ANT_CHECKBOX=!0;var we=De},36170:function(wn,Yt,Te){"use strict";Te.d(Yt,{C2:function(){return z}});var te=Te(36237),Ot=Te(63356),y=Te(51636),Pe=Te(16931);const ye=E=>{const{checkboxCls:re}=E,oe=`${re}-wrapper`;return[{[`${re}-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}}}),[re]:Object.assign(Object.assign({},(0,Ot.Wf)(E)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:E.borderRadiusSM,alignSelf:"center",[`${re}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${re}-inner`]:Object.assign({},(0,Ot.oN)(E))},[`${re}-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),
${re}:not(${re}-disabled)
`]:{[`&:hover ${re}-inner`]:{borderColor:E.colorPrimary}},[`${oe}:not(${oe}-disabled)`]:{[`&:hover ${re}-checked:not(${re}-disabled) ${re}-inner`]:{backgroundColor:E.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${re}-checked:not(${re}-disabled):after`]:{borderColor:E.colorPrimaryHover}}},{[`${re}-checked`]:{[`${re}-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),
${re}-checked:not(${re}-disabled)
`]:{[`&:hover ${re}-inner`]:{backgroundColor:E.colorPrimaryHover,borderColor:"transparent"}}},{[re]:{"&-indeterminate":{[`${re}-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 ${re}-inner`]:{backgroundColor:`${E.colorBgContainer} !important`,borderColor:`${E.colorPrimary} !important`}}}},{[`${oe}-disabled`]:{cursor:"not-allowed"},[`${re}-disabled`]:{[`&, ${re}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${re}-inner`]:{background:E.colorBgContainerDisabled,borderColor:E.colorBorder,"&:after":{borderColor:E.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:E.colorTextDisabled},[`&${re}-indeterminate ${re}-inner::after`]:{background:E.colorTextDisabled}}}]};function z(E,re){const oe=(0,y.mergeToken)(re,{checkboxCls:`.${E}`,checkboxSize:re.controlInteractiveSize});return[ye(oe)]}Yt.ZP=(0,Pe.I$)("Checkbox",(E,re)=>{let{prefixCls:oe}=re;return[z(oe,E)]})},38406:function(wn,Yt,Te){"use strict";var te=Te(59301),Ot=Te(48755),y=Te(584);const Pe=ye=>{const{componentName:z}=ye,{getPrefixCls:E}=(0,te.useContext)(Ot.E_),re=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:`${re}-small`});case"Table.filter":return null;default:return te.createElement(y.Z,null)}};Yt.Z=Pe},36207:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return $e}});var te=Te(59301),Ot=Te(92310),y=Te.n(Ot),Pe=Te(33885),ye=Te(42978),z=Te(43403),E=Te(34280),re=te.createContext(null),oe=te.createContext({}),ee=re,de=Te(20068),x=Te(54476),ae=Te(77900),ie=Te(10228),se=Te(26112),ue=Te(75931),pe=Te(8654),he=["prefixCls","className","containerRef"],ge=function(Je){var ct=Je.prefixCls,ot=Je.className,ft=Je.containerRef,ut=(0,ue.Z)(Je,he),lt=te.useContext(oe),At=lt.panel,yt=(0,pe.x1)(At,ft);return te.createElement("div",(0,x.Z)({className:y()("".concat(ct,"-content"),ot),role:"dialog",ref:yt},(0,se.Z)(Je,{aria:!0}),{"aria-modal":"true"},ut))},me=ge,xe=Te(48736);function Ae(We){return typeof We=="string"&&String(Number(We))===We?((0,xe.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(We)):We}function Ne(We){warning(!("wrapperClassName"in We),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!We.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 De(We,Je){var ct,ot,ft,ut=We.prefixCls,lt=We.open,At=We.placement,yt=We.inline,Rt=We.push,Pt=We.forceRender,Tt=We.autoFocus,kt=We.keyboard,Dt=We.classNames,gt=We.rootClassName,It=We.rootStyle,Vt=We.zIndex,rn=We.className,wt=We.id,Ct=We.style,Zt=We.motion,en=We.width,ln=We.height,yn=We.children,Bn=We.mask,Wn=We.maskClosable,gn=We.maskMotion,Ln=We.maskClassName,pn=We.maskStyle,In=We.afterOpenChange,Gt=We.onClose,Ut=We.onMouseEnter,Lt=We.onMouseOver,sn=We.onMouseLeave,un=We.onClick,Cn=We.onKeyDown,Tn=We.onKeyUp,jn=We.styles,hn=We.drawerRender,Mn=te.useRef(),_n=te.useRef(),ur=te.useRef();te.useImperativeHandle(Je,function(){return Mn.current});var tr=function($t){var Ht=$t.keyCode,Xt=$t.shiftKey;switch(Ht){case ie.Z.TAB:{if(Ht===ie.Z.TAB){if(!Xt&&document.activeElement===ur.current){var En;(En=_n.current)===null||En===void 0||En.focus({preventScroll:!0})}else if(Xt&&document.activeElement===_n.current){var On;(On=ur.current)===null||On===void 0||On.focus({preventScroll:!0})}}break}case ie.Z.ESC:{Gt&&kt&&($t.stopPropagation(),Gt($t));break}}};te.useEffect(function(){if(lt&&Tt){var _t;(_t=Mn.current)===null||_t===void 0||_t.focus({preventScroll:!0})}},[lt]);var cn=te.useState(!1),tn=(0,ye.Z)(cn,2),Hn=tn[0],Gn=tn[1],Mt=te.useContext(ee),Kt;typeof Rt=="boolean"?Kt=Rt?{}:{distance:0}:Kt=Rt||{};var St=(ct=(ot=(ft=Kt)===null||ft===void 0?void 0:ft.distance)!==null&&ot!==void 0?ot:Mt==null?void 0:Mt.pushDistance)!==null&&ct!==void 0?ct:180,Nt=te.useMemo(function(){return{pushDistance:St,push:function(){Gn(!0)},pull:function(){Gn(!1)}}},[St]);te.useEffect(function(){if(lt){var _t;Mt==null||(_t=Mt.push)===null||_t===void 0||_t.call(Mt)}else{var $t;Mt==null||($t=Mt.pull)===null||$t===void 0||$t.call(Mt)}},[lt]),te.useEffect(function(){return function(){var _t;Mt==null||(_t=Mt.pull)===null||_t===void 0||_t.call(Mt)}},[]);var Et=Bn&&te.createElement(ae.default,(0,x.Z)({key:"mask"},gn,{visible:lt}),function(_t,$t){var Ht=_t.className,Xt=_t.style;return te.createElement("div",{className:y()("".concat(ut,"-mask"),Ht,Dt==null?void 0:Dt.mask,Ln),style:(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},Xt),pn),jn==null?void 0:jn.mask),onClick:Wn&&lt?Gt:void 0,ref:$t})}),zt=typeof Zt=="function"?Zt(At):Zt,bt={};if(Hn&&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=Ae(en):bt.height=Ae(ln);var Wt={onMouseEnter:Ut,onMouseOver:Lt,onMouseLeave:sn,onClick:un,onKeyDown:Cn,onKeyUp:Tn},Ft=te.createElement(ae.default,(0,x.Z)({key:"panel"},zt,{visible:lt,forceRender:Pt,onVisibleChanged:function($t){In==null||In($t)},removeOnLeave:!1,leavedClassName:"".concat(ut,"-content-wrapper-hidden")}),function(_t,$t){var Ht=_t.className,Xt=_t.style,En=te.createElement(me,(0,x.Z)({id:wt,containerRef:$t,prefixCls:ut,className:y()(rn,Dt==null?void 0:Dt.content),style:(0,Pe.Z)((0,Pe.Z)({},Ct),jn==null?void 0:jn.content)},(0,se.Z)(We,{aria:!0}),Wt),yn);return te.createElement("div",(0,x.Z)({className:y()("".concat(ut,"-content-wrapper"),Dt==null?void 0:Dt.wrapper,Ht),style:(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},bt),Xt),jn==null?void 0:jn.wrapper)},(0,se.Z)(We,{data:!0})),hn?hn(En):En)}),qt=(0,Pe.Z)({},It);return Vt&&(qt.zIndex=Vt),te.createElement(ee.Provider,{value:Nt},te.createElement("div",{className:y()(ut,"".concat(ut,"-").concat(At),gt,(0,de.Z)((0,de.Z)({},"".concat(ut,"-open"),lt),"".concat(ut,"-inline"),yt)),style:qt,tabIndex:-1,ref:Mn,onKeyDown:tr},Et,te.createElement("div",{tabIndex:0,ref:_n,style:Be,"aria-hidden":"true","data-sentinel":"start"}),Ft,te.createElement("div",{tabIndex:0,ref:ur,style:Be,"aria-hidden":"true","data-sentinel":"end"})))}var we=te.forwardRef(De),Ce=we,Oe=function(Je){var ct=Je.open,ot=ct===void 0?!1:ct,ft=Je.prefixCls,ut=ft===void 0?"rc-drawer":ft,lt=Je.placement,At=lt===void 0?"right":lt,yt=Je.autoFocus,Rt=yt===void 0?!0:yt,Pt=Je.keyboard,Tt=Pt===void 0?!0:Pt,kt=Je.width,Dt=kt===void 0?378:kt,gt=Je.mask,It=gt===void 0?!0:gt,Vt=Je.maskClosable,rn=Vt===void 0?!0:Vt,wt=Je.getContainer,Ct=Je.forceRender,Zt=Je.afterOpenChange,en=Je.destroyOnClose,ln=Je.onMouseEnter,yn=Je.onMouseOver,Bn=Je.onMouseLeave,Wn=Je.onClick,gn=Je.onKeyDown,Ln=Je.onKeyUp,pn=Je.panelRef,In=te.useState(!1),Gt=(0,ye.Z)(In,2),Ut=Gt[0],Lt=Gt[1],sn=te.useState(!1),un=(0,ye.Z)(sn,2),Cn=un[0],Tn=un[1];(0,E.Z)(function(){Tn(!0)},[]);var jn=Cn?ot:!1,hn=te.useRef(),Mn=te.useRef();(0,E.Z)(function(){jn&&(Mn.current=document.activeElement)},[jn]);var _n=function(Hn){var Gn;if(Lt(Hn),Zt==null||Zt(Hn),!Hn&&Mn.current&&!((Gn=hn.current)!==null&&Gn!==void 0&&Gn.contains(Mn.current))){var Mt;(Mt=Mn.current)===null||Mt===void 0||Mt.focus({preventScroll:!0})}},ur=te.useMemo(function(){return{panel:pn}},[pn]);if(!Ct&&!Ut&&!jn&&en)return null;var tr={onMouseEnter:ln,onMouseOver:yn,onMouseLeave:Bn,onClick:Wn,onKeyDown:gn,onKeyUp:Ln},cn=(0,Pe.Z)((0,Pe.Z)({},Je),{},{open:jn,prefixCls:ut,placement:At,autoFocus:Rt,keyboard:Tt,width:Dt,mask:It,maskClosable:rn,inline:wt===!1,afterOpenChange:_n,ref:hn},tr);return te.createElement(oe.Provider,{value:ur},te.createElement(z.Z,{open:jn||Ct||Ut,autoDestroy:!1,getContainer:wt,autoLock:It&&(jn||Ut)},te.createElement(Ce,cn)))},je=Oe,Fe=je,ke=Te(62487),Ee=Te(75030),Ge=Te(86641),Ke=Te(55743),Ve=Te(48755),it=Te(91190),Le=Te(78776),Ue=Te(458),nt=We=>{var Je,ct;const{prefixCls:ot,title:ft,footer:ut,extra:lt,loading:At,onClose:yt,headerStyle:Rt,bodyStyle:Pt,footerStyle:Tt,children:kt,classNames:Dt,styles:gt}=We,It=(0,Ve.dj)("drawer"),Vt=te.useCallback(en=>te.createElement("button",{type:"button",onClick:yt,"aria-label":"Close",className:`${ot}-close`},en),[yt]),[rn,wt]=(0,Le.Z)((0,Le.w)(We),(0,Le.w)(It),{closable:!0,closeIconRender:Vt}),Ct=te.useMemo(()=>{var en,ln;return!ft&&!rn?null:te.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(en=It.styles)===null||en===void 0?void 0:en.header),Rt),gt==null?void 0:gt.header),className:y()(`${ot}-header`,{[`${ot}-header-close-only`]:rn&&!ft&&!lt},(ln=It.classNames)===null||ln===void 0?void 0:ln.header,Dt==null?void 0:Dt.header)},te.createElement("div",{className:`${ot}-header-title`},wt,ft&&te.createElement("div",{className:`${ot}-title`},ft)),lt&&te.createElement("div",{className:`${ot}-extra`},lt))},[rn,wt,lt,Rt,ot,ft]),Zt=te.useMemo(()=>{var en,ln;if(!ut)return null;const yn=`${ot}-footer`;return te.createElement("div",{className:y()(yn,(en=It.classNames)===null||en===void 0?void 0:en.footer,Dt==null?void 0:Dt.footer),style:Object.assign(Object.assign(Object.assign({},(ln=It.styles)===null||ln===void 0?void 0:ln.footer),Tt),gt==null?void 0:gt.footer)},ut)},[ut,Tt,ot]);return te.createElement(te.Fragment,null,Ct,te.createElement("div",{className:y()(`${ot}-body`,Dt==null?void 0:Dt.body,(Je=It.classNames)===null||Je===void 0?void 0:Je.body),style:Object.assign(Object.assign(Object.assign({},(ct=It.styles)===null||ct===void 0?void 0:ct.body),Pt),gt==null?void 0:gt.body)},At?te.createElement(Ue.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${ot}-body-skeleton`}):kt),Zt)},et=Te(36237),Ze=Te(63356),Ye=Te(16931),Xe=Te(51636);const st=We=>{const Je="100%";return{left:`translateX(-${Je})`,right:`translateX(${Je})`,top:`translateY(-${Je})`,bottom:`translateY(${Je})`}[We]},Qe=(We,Je)=>({"&-enter, &-appear":Object.assign(Object.assign({},We),{"&-active":Je}),"&-leave":Object.assign(Object.assign({},Je),{"&-active":We})}),ht=(We,Je)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Je}`}}},Qe({opacity:We},{opacity:1})),at=(We,Je)=>[ht(.7,Je),Qe({transform:st(We)},{transform:"none"})];var _e=We=>{const{componentCls:Je,motionDurationSlow:ct}=We;return{[Je]:{[`${Je}-mask-motion`]:ht(0,ct),[`${Je}-panel-motion`]:["left","right","top","bottom"].reduce((ot,ft)=>Object.assign(Object.assign({},ot),{[`&-${ft}`]:at(ft,ct)}),{})}}};const Re=We=>{const{borderRadiusSM:Je,componentCls:ct,zIndexPopup:ot,colorBgMask:ft,colorBgElevated:ut,motionDurationSlow:lt,motionDurationMid:At,paddingXS:yt,padding:Rt,paddingLG:Pt,fontSizeLG:Tt,lineHeightLG:kt,lineWidth:Dt,lineType:gt,colorSplit:It,marginXS:Vt,colorIcon:rn,colorIconHover:wt,colorBgTextHover:Ct,colorBgTextActive:Zt,colorText:en,fontWeightStrong:ln,footerPaddingBlock:yn,footerPaddingInline:Bn,calc:Wn}=We,gn=`${ct}-content-wrapper`;return{[ct]:{position:"fixed",inset:0,zIndex:ot,pointerEvents:"none",color:en,"&-pure":{position:"relative",background:ut,display:"flex",flexDirection:"column",[`&${ct}-left`]:{boxShadow:We.boxShadowDrawerLeft},[`&${ct}-right`]:{boxShadow:We.boxShadowDrawerRight},[`&${ct}-top`]:{boxShadow:We.boxShadowDrawerUp},[`&${ct}-bottom`]:{boxShadow:We.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ct}-mask`]:{position:"absolute",inset:0,zIndex:ot,background:ft,pointerEvents:"auto"},[gn]:{position:"absolute",zIndex:ot,maxWidth:"100vw",transition:`all ${lt}`,"&-hidden":{display:"none"}},[`&-left > ${gn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:We.boxShadowDrawerLeft},[`&-right > ${gn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:We.boxShadowDrawerRight},[`&-top > ${gn}`]:{top:0,insetInline:0,boxShadow:We.boxShadowDrawerUp},[`&-bottom > ${gn}`]:{bottom:0,insetInline:0,boxShadow:We.boxShadowDrawerDown},[`${ct}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:ut,pointerEvents:"auto"},[`${ct}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,et.unit)(Rt)} ${(0,et.unit)(Pt)}`,fontSize:Tt,lineHeight:kt,borderBottom:`${(0,et.unit)(Dt)} ${gt} ${It}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ct}-extra`]:{flex:"none"},[`${ct}-close`]:Object.assign({display:"inline-flex",width:Wn(Tt).add(yt).equal(),height:Wn(Tt).add(yt).equal(),borderRadius:Je,justifyContent:"center",alignItems:"center",marginInlineEnd:Vt,color:rn,fontWeight:ln,fontSize:Tt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${At}`,textRendering:"auto","&:hover":{color:wt,backgroundColor:Ct,textDecoration:"none"},"&:active":{backgroundColor:Zt}},(0,Ze.Qy)(We)),[`${ct}-title`]:{flex:1,margin:0,fontWeight:We.fontWeightStrong,fontSize:Tt,lineHeight:kt},[`${ct}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Pt,overflow:"auto",[`${ct}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${ct}-footer`]:{flexShrink:0,padding:`${(0,et.unit)(yn)} ${(0,et.unit)(Bn)}`,borderTop:`${(0,et.unit)(Dt)} ${gt} ${It}`},"&-rtl":{direction:"rtl"}}}},ne=We=>({zIndexPopup:We.zIndexPopupBase,footerPaddingBlock:We.paddingXS,footerPaddingInline:We.padding});var fe=(0,Ye.I$)("Drawer",We=>{const Je=(0,Xe.mergeToken)(We,{});return[Re(Je),_e(Je)]},ne),Me=function(We,Je){var ct={};for(var ot in We)Object.prototype.hasOwnProperty.call(We,ot)&&Je.indexOf(ot)<0&&(ct[ot]=We[ot]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,ot=Object.getOwnPropertySymbols(We);ft<ot.length;ft++)Je.indexOf(ot[ft])<0&&Object.prototype.propertyIsEnumerable.call(We,ot[ft])&&(ct[ot[ft]]=We[ot[ft]]);return ct};const He=null,be={distance:180},ve=We=>{var Je;const{rootClassName:ct,width:ot,height:ft,size:ut="default",mask:lt=!0,push:At=be,open:yt,afterOpenChange:Rt,onClose:Pt,prefixCls:Tt,getContainer:kt,style:Dt,className:gt,visible:It,afterVisibleChange:Vt,maskStyle:rn,drawerStyle:wt,contentWrapperStyle:Ct}=We,Zt=Me(We,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:en,getPrefixCls:ln,direction:yn,className:Bn,style:Wn,classNames:gn,styles:Ln}=(0,Ve.dj)("drawer"),pn=ln("drawer",Tt),[In,Gt,Ut]=fe(pn),Lt=kt===void 0&&en?()=>en(document.body):kt,sn=y()({"no-mask":!lt,[`${pn}-rtl`]:yn==="rtl"},ct,Gt,Ut),un=te.useMemo(()=>ot!=null?ot:ut==="large"?736:378,[ot,ut]),Cn=te.useMemo(()=>ft!=null?ft:ut==="large"?736:378,[ft,ut]),Tn={motionName:(0,Ge.m)(pn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},jn=cn=>({motionName:(0,Ge.m)(pn,`panel-motion-${cn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),hn=(0,it.H)(),[Mn,_n]=(0,Ee.Cn)("Drawer",Zt.zIndex),{classNames:ur={},styles:tr={}}=Zt;return In(te.createElement(ke.Z,{form:!0,space:!0},te.createElement(Ke.Z.Provider,{value:_n},te.createElement(Fe,Object.assign({prefixCls:pn,onClose:Pt,maskMotion:Tn,motion:jn},Zt,{classNames:{mask:y()(ur.mask,gn.mask),content:y()(ur.content,gn.content),wrapper:y()(ur.wrapper,gn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},tr.mask),rn),Ln.mask),content:Object.assign(Object.assign(Object.assign({},tr.content),wt),Ln.content),wrapper:Object.assign(Object.assign(Object.assign({},tr.wrapper),Ct),Ln.wrapper)},open:yt!=null?yt:It,mask:lt,push:At,width:un,height:Cn,style:Object.assign(Object.assign({},Wn),Dt),className:y()(Bn,gt),rootClassName:sn,getContainer:Lt,afterOpenChange:Rt!=null?Rt:Vt,panelRef:hn,zIndex:Mn}),te.createElement(nt,Object.assign({prefixCls:pn},Zt,{onClose:Pt}))))))},Ie=We=>{const{prefixCls:Je,style:ct,className:ot,placement:ft="right"}=We,ut=Me(We,["prefixCls","style","className","placement"]),{getPrefixCls:lt}=te.useContext(Ve.E_),At=lt("drawer",Je),[yt,Rt,Pt]=fe(At),Tt=y()(At,`${At}-pure`,`${At}-${ft}`,Rt,Pt,ot);return yt(te.createElement("div",{className:Tt,style:ct},te.createElement(nt,Object.assign({prefixCls:At},ut))))};ve._InternalPanelDoNotUseOrYouWillBeFired=Ie;var $e=ve},19563:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return et}});var te=Te(59301),Ot=Te(33853),y=Te(38819),Pe=Te(92310),ye=Te.n(Pe),z=Te(96478),E=Te(6089),re=Te(18929),oe=Te(2738),ee=Te(75030),x=Ze=>typeof Ze!="object"&&typeof Ze!="function"||Ze===null,ae=Te(52838),ie=Te(45915),se=Te(22703),ue=Te(32383),pe=Te(55743),he=Te(48755),ge=Te(83397),me=Te(93041),xe=Te(78857),Ae=Te(57700),Ne=Te(36237),Be=Te(63356),De=Te(46e3),we=Te(93873),Ce=Te(34925),Oe=Te(37645),je=Te(36305),Fe=Te(16931),ke=Te(51636),Ge=Ze=>{const{componentCls:Ye,menuCls:Xe,colorError:st,colorTextLightSolid:Qe}=Ze,ht=`${Xe}-item`;return{[`${Ye}, ${Ye}-menu-submenu`]:{[`${Xe} ${ht}`]:{[`&${ht}-danger:not(${ht}-disabled)`]:{color:st,"&:hover":{color:Qe,backgroundColor:st}}}}}};const Ke=Ze=>{const{componentCls:Ye,menuCls:Xe,zIndexPopup:st,dropdownArrowDistance:Qe,sizePopupArrow:ht,antCls:at,iconCls:qe,motionDurationMid:_e,paddingBlock:Re,fontSize:ne,dropdownEdgeChildPadding:fe,colorTextDisabled:Me,fontSizeIcon:He,controlPaddingHorizontal:be,colorBgElevated:ve}=Ze;return[{[Ye]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:st,display:"block","&::before":{position:"absolute",insetBlock:Ze.calc(ht).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:He}},[`${Ye}-wrap`]:{position:"relative",[`${at}-btn > ${qe}-down`]:{fontSize:He},[`${qe}-down::before`]:{transition:`transform ${_e}`}},[`${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:De.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:De.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:De.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:De.ly}}},(0,Oe.ZP)(Ze,ve,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Ye} ${Xe}`]:{position:"relative",margin:0},[`${Xe}-submenu-popup`]:{position:"absolute",zIndex:st,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ye}, ${Ye}-menu-submenu`]:Object.assign(Object.assign({},(0,Be.Wf)(Ze)),{[Xe]:Object.assign(Object.assign({padding:fe,listStyleType:"none",backgroundColor:ve,backgroundClip:"padding-box",borderRadius:Ze.borderRadiusLG,outline:"none",boxShadow:Ze.boxShadowSecondary},(0,Be.Qy)(Ze)),{"&:empty":{padding:0,boxShadow:"none"},[`${Xe}-item-group-title`]:{padding:`${(0,Ne.unit)(Re)} ${(0,Ne.unit)(be)}`,color:Ze.colorTextDescription,transition:`all ${_e}`},[`${Xe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Xe}-item-icon`]:{minWidth:ne,marginInlineEnd:Ze.marginXS,fontSize:Ze.fontSizeSM},[`${Xe}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${_e}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Xe}-item-extra`]:{paddingInlineStart:Ze.padding,marginInlineStart:"auto",fontSize:Ze.fontSizeSM,color:Ze.colorTextDescription}},[`${Xe}-item, ${Xe}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,Ne.unit)(Re)} ${(0,Ne.unit)(be)}`,color:Ze.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Ze.lineHeight,cursor:"pointer",transition:`all ${_e}`,borderRadius:Ze.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ze.controlItemBgHover}},(0,Be.Qy)(Ze)),{"&-selected":{color:Ze.colorPrimary,backgroundColor:Ze.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ze.controlItemBgActiveHover}},"&-disabled":{color:Me,cursor:"not-allowed","&:hover":{color:Me,backgroundColor:ve,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,Ne.unit)(Ze.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ze.colorSplit},[`${Ye}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ze.paddingXS,[`${Ye}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ze.colorTextDescription,fontSize:He,fontStyle:"normal"}}}),[`${Xe}-item-group-list`]:{margin:`0 ${(0,Ne.unit)(Ze.marginXS)}`,padding:0,listStyle:"none"},[`${Xe}-submenu-title`]:{paddingInlineEnd:Ze.calc(be).add(Ze.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:Ze.colorPrimary}})})},[(0,De.oN)(Ze,"slide-up"),(0,De.oN)(Ze,"slide-down"),(0,we.Fm)(Ze,"move-up"),(0,we.Fm)(Ze,"move-down"),(0,Ce._y)(Ze,"zoom-big")]]},Ve=Ze=>Object.assign(Object.assign({zIndexPopup:Ze.zIndexPopupBase+50,paddingBlock:(Ze.controlHeight-Ze.fontSize*Ze.lineHeight)/2},(0,Oe.wZ)({contentRadius:Ze.borderRadiusLG,limitVerticalRadius:!0})),(0,je.w)(Ze));var it=(0,Fe.I$)("Dropdown",Ze=>{const{marginXXS:Ye,sizePopupArrow:Xe,paddingXXS:st,componentCls:Qe}=Ze,ht=(0,ke.mergeToken)(Ze,{menuCls:`${Qe}-menu`,dropdownArrowDistance:Ze.calc(Xe).div(2).add(Ye).equal(),dropdownEdgeChildPadding:st});return[Ke(ht),Ge(ht)]},Ve,{resetStyle:!1});const Le=null,Ue=Ze=>{var Ye;const{menu:Xe,arrow:st,prefixCls:Qe,children:ht,trigger:at,disabled:qe,dropdownRender:_e,getPopupContainer:Re,overlayClassName:ne,rootClassName:fe,overlayStyle:Me,open:He,onOpenChange:be,visible:ve,onVisibleChange:Ie,mouseEnterDelay:$e=.15,mouseLeaveDelay:We=.1,autoAdjustOverflow:Je=!0,placement:ct="",overlay:ot,transitionName:ft}=Ze,{getPopupContainer:ut,getPrefixCls:lt,direction:At,dropdown:yt}=te.useContext(he.E_),Rt=(0,ue.ln)("Dropdown"),Pt=te.useMemo(()=>{const Lt=lt();return ft!==void 0?ft:ct.includes("top")?`${Lt}-slide-down`:`${Lt}-slide-up`},[lt,ct,ft]),Tt=te.useMemo(()=>ct?ct.includes("Center")?ct.slice(0,ct.indexOf("Center")):ct:At==="rtl"?"bottomRight":"bottomLeft",[ct,At]),kt=lt("dropdown",Qe),Dt=(0,ge.Z)(kt),[gt,It,Vt]=it(kt,Dt),[,rn]=(0,Ae.ZP)(),wt=te.Children.only(x(ht)?te.createElement("span",null,ht):ht),Ct=(0,se.Tm)(wt,{className:ye()(`${kt}-trigger`,{[`${kt}-rtl`]:At==="rtl"},wt.props.className),disabled:(Ye=wt.props.disabled)!==null&&Ye!==void 0?Ye:qe}),Zt=qe?[]:at,en=!!(Zt!=null&&Zt.includes("contextMenu")),[ln,yn]=(0,re.Z)(!1,{value:He!=null?He:ve}),Bn=(0,E.Z)(Lt=>{be==null||be(Lt,{source:"trigger"}),Ie==null||Ie(Lt),yn(Lt)}),Wn=ye()(ne,fe,It,Vt,Dt,yt==null?void 0:yt.className,{[`${kt}-rtl`]:At==="rtl"}),gn=(0,ae.Z)({arrowPointAtCenter:typeof st=="object"&&st.pointAtCenter,autoAdjustOverflow:Je,offset:rn.marginXXS,arrowWidth:st?rn.sizePopupArrow:0,borderRadius:rn.borderRadius}),Ln=te.useCallback(()=>{Xe!=null&&Xe.selectable&&(Xe!=null&&Xe.multiple)||(be==null||be(!1,{source:"menu"}),yn(!1))},[Xe==null?void 0:Xe.selectable,Xe==null?void 0:Xe.multiple]),pn=()=>{let Lt;return Xe!=null&&Xe.items?Lt=te.createElement(me.default,Object.assign({},Xe)):typeof ot=="function"?Lt=ot():Lt=ot,_e&&(Lt=_e(Lt)),Lt=te.Children.only(typeof Lt=="string"?te.createElement("span",null,Lt):Lt),te.createElement(xe.J,{prefixCls:`${kt}-menu`,rootClassName:ye()(Vt,Dt),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:Ln,validator:sn=>{let{mode:un}=sn}},Lt)},[In,Gt]=(0,ee.Cn)("Dropdown",Me==null?void 0:Me.zIndex);let Ut=te.createElement(z.Z,Object.assign({alignPoint:en},(0,oe.Z)(Ze,["rootClassName"]),{mouseEnterDelay:$e,mouseLeaveDelay:We,visible:ln,builtinPlacements:gn,arrow:!!st,overlayClassName:Wn,prefixCls:kt,getPopupContainer:Re||ut,transitionName:Pt,trigger:Zt,overlay:pn,placement:Tt,onVisibleChange:Bn,overlayStyle:Object.assign(Object.assign(Object.assign({},yt==null?void 0:yt.style),Me),{zIndex:In})}),Ct);return In&&(Ut=te.createElement(pe.Z.Provider,{value:Gt},Ut)),gt(Ut)},tt=(0,ie.Z)(Ue,"align",void 0,"dropdown",Ze=>Ze),nt=Ze=>te.createElement(tt,Object.assign({},Ze),te.createElement("span",null));Ue._InternalPanelDoNotUseOrYouWillBeFired=nt;var et=Ue},75727:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(19563),Ot=Te(59301),y=Te(18785),Pe=Te(92310),ye=Te.n(Pe),z=Te(7939),E=Te(48755),re=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 ge=0,he=Object.getOwnPropertySymbols(se);ge<he.length;ge++)ue.indexOf(he[ge])<0&&Object.prototype.propertyIsEnumerable.call(se,he[ge])&&(pe[he[ge]]=se[he[ge]]);return pe};const de=se=>{const{getPopupContainer:ue,getPrefixCls:pe,direction:he}=Ot.useContext(E.E_),{prefixCls:ge,type:me="default",danger:xe,disabled:Ae,loading:Ne,onClick:Be,htmlType:De,children:we,className:Ce,menu:Oe,arrow:je,autoFocus:Fe,overlay:ke,trigger:Ee,align:Ge,open:Ke,onOpenChange:Ve,placement:it,getPopupContainer:Le,href:Ue,icon:tt=Ot.createElement(y.Z,null),title:nt,buttonsRender:et=$e=>$e,mouseEnterDelay:Ze,mouseLeaveDelay:Ye,overlayClassName:Xe,overlayStyle:st,destroyPopupOnHide:Qe,dropdownRender:ht}=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",ge),_e=`${qe}-button`,Re={menu:Oe,arrow:je,autoFocus:Fe,align:Ge,disabled:Ae,trigger:Ae?[]:Ee,onOpenChange:Ve,getPopupContainer:Le||ue,mouseEnterDelay:Ze,mouseLeaveDelay:Ye,overlayClassName:Xe,overlayStyle:st,destroyPopupOnHide:Qe,dropdownRender:ht},{compactSize:ne,compactItemClassnames:fe}=(0,oe.ri)(qe,he),Me=ye()(_e,fe,Ce);"overlay"in se&&(Re.overlay=ke),"open"in se&&(Re.open=Ke),"placement"in se?Re.placement=it:Re.placement=he==="rtl"?"bottomLeft":"bottomRight";const He=Ot.createElement(z.ZP,{type:me,danger:xe,disabled:Ae,loading:Ne,onClick:Be,htmlType:De,href:Ue,title:nt},we),be=Ot.createElement(z.ZP,{type:me,danger:xe,icon:tt}),[ve,Ie]=et([He,be]);return Ot.createElement(re.Z.Compact,Object.assign({className:Me,size:ne,block:!0},at),ve,Ot.createElement(te.Z,Object.assign({},Re),Ie))};de.__ANT_BUTTON=!0;var x=de;const ae=te.Z;ae.Button=x;var ie=ae},584:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return me}});var te=Te(59301),Ot=Te(92310),y=Te.n(Ot),Pe=Te(9017),ye=Te(17835),z=Te(57700),re=()=>{const[,xe]=(0,z.ZP)(),[Ae]=(0,Pe.Z)("Empty"),Be=new ye.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,(Ae==null?void 0:Ae.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)(),[Ae]=(0,Pe.Z)("Empty"),{colorFill:Ne,colorFillTertiary:Be,colorFillQuaternary:De,colorBgContainer:we}=xe,{borderColor:Ce,shadowColor:Oe,contentColor:je}=(0,te.useMemo)(()=>({borderColor:new ye.FastColor(Ne).onBackground(we).toHexString(),shadowColor:new ye.FastColor(Be).onBackground(we).toHexString(),contentColor:new ye.FastColor(De).onBackground(we).toHexString()}),[Ne,Be,De,we]);return te.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},te.createElement("title",null,(Ae==null?void 0:Ae.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:Ce},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:je}))))},de=Te(16931),x=Te(51636);const ae=xe=>{const{componentCls:Ae,margin:Ne,marginXS:Be,marginXL:De,fontSize:we,lineHeight:Ce}=xe;return{[Ae]:{marginInline:Be,fontSize:we,lineHeight:Ce,textAlign:"center",[`${Ae}-image`]:{height:xe.emptyImgHeight,marginBottom:Be,opacity:xe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ae}-description`]:{color:xe.colorTextDescription},[`${Ae}-footer`]:{marginTop:Ne},"&-normal":{marginBlock:De,color:xe.colorTextDescription,[`${Ae}-description`]:{color:xe.colorTextDescription},[`${Ae}-image`]:{height:xe.emptyImgHeightMD}},"&-small":{marginBlock:Be,color:xe.colorTextDescription,[`${Ae}-image`]:{height:xe.emptyImgHeightSM}}}}};var ie=(0,de.I$)("Empty",xe=>{const{componentCls:Ae,controlHeightLG:Ne,calc:Be}=xe,De=(0,x.mergeToken)(xe,{emptyImgCls:`${Ae}-img`,emptyImgHeight:Be(Ne).mul(2.5).equal(),emptyImgHeightMD:Ne,emptyImgHeightSM:Be(Ne).mul(.875).equal()});return[ae(De)]}),se=Te(48755),ue=function(xe,Ae){var Ne={};for(var Be in xe)Object.prototype.hasOwnProperty.call(xe,Be)&&Ae.indexOf(Be)<0&&(Ne[Be]=xe[Be]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Be=Object.getOwnPropertySymbols(xe);De<Be.length;De++)Ae.indexOf(Be[De])<0&&Object.prototype.propertyIsEnumerable.call(xe,Be[De])&&(Ne[Be[De]]=xe[Be[De]]);return Ne};const pe=te.createElement(re,null),he=te.createElement(ee,null),ge=xe=>{const{className:Ae,rootClassName:Ne,prefixCls:Be,image:De=pe,description:we,children:Ce,imageStyle:Oe,style:je,classNames:Fe,styles:ke}=xe,Ee=ue(xe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Ge,direction:Ke,className:Ve,style:it,classNames:Le,styles:Ue}=(0,se.dj)("empty"),tt=Ge("empty",Be),[nt,et,Ze]=ie(tt),[Ye]=(0,Pe.Z)("Empty"),Xe=typeof we!="undefined"?we:Ye==null?void 0:Ye.description,st=typeof Xe=="string"?Xe:"empty";let Qe=null;return typeof De=="string"?Qe=te.createElement("img",{alt:st,src:De}):Qe=De,nt(te.createElement("div",Object.assign({className:y()(et,Ze,tt,Ve,{[`${tt}-normal`]:De===he,[`${tt}-rtl`]:Ke==="rtl"},Ae,Ne,Le.root,Fe==null?void 0:Fe.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},Ue.root),it),ke==null?void 0:ke.root),je)},Ee),te.createElement("div",{className:y()(`${tt}-image`,Le.image,Fe==null?void 0:Fe.image),style:Object.assign(Object.assign(Object.assign({},Oe),Ue.image),ke==null?void 0:ke.image)},Qe),Xe&&te.createElement("div",{className:y()(`${tt}-description`,Le.description,Fe==null?void 0:Fe.description),style:Object.assign(Object.assign({},Ue.description),ke==null?void 0:ke.description)},Xe),Ce&&te.createElement("div",{className:y()(`${tt}-footer`,Le.footer,Fe==null?void 0:Fe.footer),style:Object.assign(Object.assign({},Ue.footer),ke==null?void 0:ke.footer)},Ce)))};ge.PRESENTED_IMAGE_DEFAULT=pe,ge.PRESENTED_IMAGE_SIMPLE=he;var me=ge},28284:function(wn,Yt,Te){"use strict";Te.d(Yt,{default:function(){return Kt}});var te=Te(56553),Ot=Te(94480),y=Te(59301),Pe=Te(92310),ye=Te.n(Pe),z=Te(77900),E=Te(86641),re=Te(83397);function oe(St){const[Nt,Et]=y.useState(St);return y.useEffect(()=>{const zt=setTimeout(()=>{Et(St)},St.length?0:10);return()=>{clearTimeout(zt)}},[St]),Nt}var ee=Te(36237),de=Te(63356),x=Te(34925),ae=Te(34961),ie=Te(51636),se=Te(16931),pe=St=>{const{componentCls:Nt}=St,Et=`${Nt}-show-help`,zt=`${Nt}-show-help-item`;return{[Et]:{transition:`opacity ${St.motionDurationFast} ${St.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[zt]:{overflow:"hidden",transition:`height ${St.motionDurationFast} ${St.motionEaseInOut},
opacity ${St.motionDurationFast} ${St.motionEaseInOut},
transform ${St.motionDurationFast} ${St.motionEaseInOut} !important`,[`&${zt}-appear, &${zt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${zt}-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}}),ge=(St,Nt)=>{const{formItemCls:Et}=St;return{[Et]:{[`${Et}-label > label`]:{height:Nt},[`${Et}-control-input`]:{minHeight:Nt}}}},me=St=>{const{componentCls:Nt}=St;return{[St.componentCls]:Object.assign(Object.assign(Object.assign({},(0,de.Wf)(St)),he(St)),{[`${Nt}-text`]:{display:"inline-block",paddingInlineEnd:St.paddingSM},"&-small":Object.assign({},ge(St,St.controlHeightSM)),"&-large":Object.assign({},ge(St,St.controlHeightLG))})}},xe=St=>{const{formItemCls:Nt,iconCls:Et,rootPrefixCls:zt,antCls:bt,labelRequiredMarkColor:Wt,labelColor:Ft,labelFontSize:qt,labelHeight:_t,labelColonMarginInlineStart:$t,labelColonMarginInlineEnd:Ht,itemMarginBottom:Xt}=St;return{[Nt]:Object.assign(Object.assign({},(0,de.Wf)(St)),{marginBottom:Xt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${bt}-row`]:{display:"none"},"&-has-warning":{[`${Nt}-split`]:{color:St.colorError}},"&-has-error":{[`${Nt}-split`]:{color:St.colorWarning}},[`${Nt}-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:_t,color:Ft,fontSize:qt,[`> ${Et}`]:{fontSize:St.fontSize,verticalAlign:"top"},[`&${Nt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:St.marginXXS,color:Wt,fontSize:St.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Nt}-required-mark-hidden, &${Nt}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Nt}-optional`]:{display:"inline-block",marginInlineStart:St.marginXXS,color:St.colorTextDescription,[`&${Nt}-required-mark-hidden`]:{display:"none"}},[`${Nt}-tooltip`]:{color:St.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:St.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:$t,marginInlineEnd:Ht},[`&${Nt}-no-colon::after`]:{content:'"\\a0"'}}},[`${Nt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${zt}-col-'"]):not([class*="' ${zt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:St.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Nt]:{"&-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 ${Nt}-explain`]:{height:"auto",opacity:1},[`${Nt}-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}}})}},Ae=(St,Nt)=>{const{formItemCls:Et}=St;return{[`${Nt}-horizontal`]:{[`${Et}-label`]:{flexGrow:0},[`${Et}-control`]:{flex:"1 1 0",minWidth:0},[`${Et}-label[class$='-24'], ${Et}-label[class*='-24 ']`]:{[`& + ${Et}-control`]:{minWidth:"unset"}}}}},Ne=St=>{const{componentCls:Nt,formItemCls:Et,inlineItemMarginBottom:zt}=St;return{[`${Nt}-inline`]:{display:"flex",flexWrap:"wrap",[Et]:{flex:"none",marginInlineEnd:St.margin,marginBottom:zt,"&-row":{flexWrap:"nowrap"},[`> ${Et}-label,
> ${Et}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Et}-label`]:{flex:"none"},[`${Nt}-text`]:{display:"inline-block"},[`${Et}-has-feedback`]:{display:"inline-block"}}}}},Be=St=>({padding:St.verticalLabelPadding,margin:St.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),De=St=>{const{componentCls:Nt,formItemCls:Et,rootPrefixCls:zt}=St;return{[`${Et} ${Et}-label`]:Be(St),[`${Nt}:not(${Nt}-inline)`]:{[Et]:{flexWrap:"wrap",[`${Et}-label, ${Et}-control`]:{[`&:not([class*=" ${zt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},we=St=>{const{componentCls:Nt,formItemCls:Et,antCls:zt}=St;return{[`${Nt}-vertical`]:{[`${Et}:not(${Et}-horizontal)`]:{[`${Et}-row`]:{flexDirection:"column"},[`${Et}-label > label`]:{height:"auto"},[`${Et}-control`]:{width:"100%"},[`${Et}-label,
${zt}-col-24${Et}-label,
${zt}-col-xl-24${Et}-label`]:Be(St)}},[`@media (max-width: ${(0,ee.unit)(St.screenXSMax)})`]:[De(St),{[Nt]:{[`${Et}:not(${Et}-horizontal)`]:{[`${zt}-col-xs-24${Et}-label`]:Be(St)}}}],[`@media (max-width: ${(0,ee.unit)(St.screenSMMax)})`]:{[Nt]:{[`${Et}:not(${Et}-horizontal)`]:{[`${zt}-col-sm-24${Et}-label`]:Be(St)}}},[`@media (max-width: ${(0,ee.unit)(St.screenMDMax)})`]:{[Nt]:{[`${Et}:not(${Et}-horizontal)`]:{[`${zt}-col-md-24${Et}-label`]:Be(St)}}},[`@media (max-width: ${(0,ee.unit)(St.screenLGMax)})`]:{[Nt]:{[`${Et}:not(${Et}-horizontal)`]:{[`${zt}-col-lg-24${Et}-label`]:Be(St)}}}}},Ce=St=>{const{formItemCls:Nt,antCls:Et}=St;return{[`${Nt}-vertical`]:{[`${Nt}-row`]:{flexDirection:"column"},[`${Nt}-label > label`]:{height:"auto"},[`${Nt}-control`]:{width:"100%"}},[`${Nt}-vertical ${Nt}-label,
${Et}-col-24${Nt}-label,
${Et}-col-xl-24${Nt}-label`]:Be(St),[`@media (max-width: ${(0,ee.unit)(St.screenXSMax)})`]:[De(St),{[Nt]:{[`${Et}-col-xs-24${Nt}-label`]:Be(St)}}],[`@media (max-width: ${(0,ee.unit)(St.screenSMMax)})`]:{[Nt]:{[`${Et}-col-sm-24${Nt}-label`]:Be(St)}},[`@media (max-width: ${(0,ee.unit)(St.screenMDMax)})`]:{[Nt]:{[`${Et}-col-md-24${Nt}-label`]:Be(St)}},[`@media (max-width: ${(0,ee.unit)(St.screenLGMax)})`]:{[Nt]:{[`${Et}-col-lg-24${Nt}-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}),je=(St,Nt)=>(0,ie.mergeToken)(St,{formItemCls:`${St.componentCls}-item`,rootPrefixCls:Nt});var Fe=(0,se.I$)("Form",(St,Nt)=>{let{rootPrefixCls:Et}=Nt;const zt=je(St,Et);return[me(zt),xe(zt),pe(zt),Ae(zt,zt.componentCls),Ae(zt,zt.formItemCls),Ne(zt),we(zt),Ce(zt),(0,ae.Z)(zt),x.kr]},Oe,{order:-1e3});const ke=[];function Ee(St,Nt,Et){let zt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof St=="string"?St:`${Nt}-${zt}`,error:St,errorStatus:Et}}var Ke=St=>{let{help:Nt,helpStatus:Et,errors:zt=ke,warnings:bt=ke,className:Wt,fieldId:Ft,onVisibleChanged:qt}=St;const{prefixCls:_t}=y.useContext(te.Rk),$t=`${_t}-item-explain`,Ht=(0,re.Z)(_t),[Xt,En,On]=Fe(_t,Ht),Rn=y.useMemo(()=>(0,E.Z)(_t),[_t]),rr=oe(zt),cr=oe(bt),mr=y.useMemo(()=>Nt!=null?[Ee(Nt,"help",Et)]:[].concat((0,Ot.Z)(rr.map((Yn,pr)=>Ee(Yn,"error","error",pr))),(0,Ot.Z)(cr.map((Yn,pr)=>Ee(Yn,"warning","warning",pr)))),[Nt,Et,rr,cr]),nr=y.useMemo(()=>{const Yn={};return mr.forEach(pr=>{let{key:Sr}=pr;Yn[Sr]=(Yn[Sr]||0)+1}),mr.map((pr,Sr)=>Object.assign(Object.assign({},pr),{key:Yn[pr.key]>1?`${pr.key}-fallback-${Sr}`:pr.key}))},[mr]),Un={};return Ft&&(Un.id=`${Ft}_help`),Xt(y.createElement(z.default,{motionDeadline:Rn.motionDeadline,motionName:`${_t}-show-help`,visible:!!nr.length,onVisibleChanged:qt},Yn=>{const{className:pr,style:Sr}=Yn;return y.createElement("div",Object.assign({},Un,{className:ye()($t,pr,On,Ht,Wt,En),style:Sr}),y.createElement(z.CSSMotionList,Object.assign({keys:nr},(0,E.Z)(_t),{motionName:`${_t}-show-help-item`,component:!1}),wr=>{const{key:Cr,error:qn,errorStatus:kn,className:Fn,style:Nn}=wr;return y.createElement("div",{key:Cr,className:ye()(Fn,{[`${$t}-${kn}`]:kn}),style:Nn},qn)}))}))},Ve=Te(22001),it=Te(48755),Le=Te(2171),Ue=Te(31756),tt=Te(23069),nt=Te(76846),et=Te(16722);const Ze=["parentNode"],Ye="form_item";function Xe(St){return St===void 0||St===!1?[]:Array.isArray(St)?St:[St]}function st(St,Nt){if(!St.length)return;const Et=St.join("_");return Nt?`${Nt}_${Et}`:Ze.includes(Et)?`${Ye}_${Et}`:Et}function Qe(St,Nt,Et,zt,bt,Wt){let Ft=zt;return Wt!==void 0?Ft=Wt:Et.validating?Ft="validating":St.length?Ft="error":Nt.length?Ft="warning":(Et.touched||bt&&Et.validated)&&(Ft="success"),Ft}var ht=function(St,Nt){var Et={};for(var zt in St)Object.prototype.hasOwnProperty.call(St,zt)&&Nt.indexOf(zt)<0&&(Et[zt]=St[zt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,zt=Object.getOwnPropertySymbols(St);bt<zt.length;bt++)Nt.indexOf(zt[bt])<0&&Object.prototype.propertyIsEnumerable.call(St,zt[bt])&&(Et[zt[bt]]=St[zt[bt]]);return Et};function at(St){return Xe(St).join("_")}function qe(St,Nt){const Et=Nt.getFieldInstance(St),zt=(0,nt.bn)(Et);if(zt)return zt;const bt=st(Xe(St),Nt.__INTERNAL__.name);if(bt)return document.getElementById(bt)}function _e(St){const[Nt]=(0,Ve.useForm)(),Et=y.useRef({}),zt=y.useMemo(()=>St!=null?St:Object.assign(Object.assign({},Nt),{__INTERNAL__:{itemRef:bt=>Wt=>{const Ft=at(bt);Wt?Et.current[Ft]=Wt:delete Et.current[Ft]}},scrollToField:function(bt){let Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:Ft}=Wt,qt=ht(Wt,["focus"]),_t=qe(bt,zt);_t&&((0,et.Z)(_t,Object.assign({scrollMode:"if-needed",block:"nearest"},qt)),Ft&&zt.focusField(bt))},focusField:bt=>{var Wt,Ft;const qt=zt.getFieldInstance(bt);typeof(qt==null?void 0:qt.focus)=="function"?qt.focus():(Ft=(Wt=qe(bt,zt))===null||Wt===void 0?void 0:Wt.focus)===null||Ft===void 0||Ft.call(Wt)},getFieldInstance:bt=>{const Wt=at(bt);return Et.current[Wt]}}),[St,Nt]);return[zt]}var Re=Te(98350),ne=function(St,Nt){var Et={};for(var zt in St)Object.prototype.hasOwnProperty.call(St,zt)&&Nt.indexOf(zt)<0&&(Et[zt]=St[zt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,zt=Object.getOwnPropertySymbols(St);bt<zt.length;bt++)Nt.indexOf(zt[bt])<0&&Object.prototype.propertyIsEnumerable.call(St,zt[bt])&&(Et[zt[bt]]=St[zt[bt]]);return Et};const fe=(St,Nt)=>{const Et=y.useContext(Le.Z),{getPrefixCls:zt,direction:bt,requiredMark:Wt,colon:Ft,scrollToFirstError:qt,className:_t,style:$t}=(0,it.dj)("form"),{prefixCls:Ht,className:Xt,rootClassName:En,size:On,disabled:Rn=Et,form:rr,colon:cr,labelAlign:mr,labelWrap:nr,labelCol:Un,wrapperCol:Yn,hideRequiredMark:pr,layout:Sr="horizontal",scrollToFirstError:wr,requiredMark:Cr,onFinishFailed:qn,name:kn,style:Fn,feedbackIcons:Nn,variant:ir}=St,br=ne(St,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Pr=(0,Ue.Z)(On),Kr=y.useContext(Re.Z),Nr=y.useMemo(()=>Cr!==void 0?Cr:pr?!1:Wt!==void 0?Wt:!0,[pr,Cr,Wt]),Wr=cr!=null?cr:Ft,Ir=zt("form",Ht),ni=(0,re.Z)(Ir),[ti,oi,fi]=Fe(Ir,ni),xi=ye()(Ir,`${Ir}-${Sr}`,{[`${Ir}-hide-required-mark`]:Nr===!1,[`${Ir}-rtl`]:bt==="rtl",[`${Ir}-${Pr}`]:Pr},fi,ni,oi,_t,Xt,En),[hi]=_e(rr),{__INTERNAL__:ei}=hi;ei.name=kn;const Ar=y.useMemo(()=>({name:kn,labelAlign:mr,labelCol:Un,labelWrap:nr,wrapperCol:Yn,vertical:Sr==="vertical",colon:Wr,requiredMark:Nr,itemRef:ei.itemRef,form:hi,feedbackIcons:Nn}),[kn,mr,Un,Yn,Sr,Wr,Nr,hi,Nn]),Dr=y.useRef(null);y.useImperativeHandle(Nt,()=>{var Kn;return Object.assign(Object.assign({},hi),{nativeElement:(Kn=Dr.current)===null||Kn===void 0?void 0:Kn.nativeElement})});const ar=(Kn,Xn)=>{if(Kn){let $n={block:"nearest"};typeof Kn=="object"&&($n=Object.assign(Object.assign({},$n),Kn)),hi.scrollToField(Xn,$n)}},Pn=Kn=>{if(qn==null||qn(Kn),Kn.errorFields.length){const Xn=Kn.errorFields[0].name;if(wr!==void 0){ar(wr,Xn);return}qt!==void 0&&ar(qt,Xn)}};return ti(y.createElement(te.pg.Provider,{value:ir},y.createElement(Le.n,{disabled:Rn},y.createElement(tt.Z.Provider,{value:Pr},y.createElement(te.RV,{validateMessages:Kr},y.createElement(te.q3.Provider,{value:Ar},y.createElement(Ve.default,Object.assign({id:kn},br,{name:kn,onFinishFailed:Pn,form:hi,ref:Dr,style:Object.assign(Object.assign({},$t),Fn),className:xi}))))))))};var He=y.forwardRef(fe),be=Te(41799),ve=Te(8654),Ie=Te(22703),$e=Te(32383),We=Te(11592);function Je(St){if(typeof St=="function")return St;const Nt=(0,We.Z)(St);return Nt.length<=1?Nt[0]:Nt}const ct=()=>{const{status:St,errors:Nt=[],warnings:Et=[]}=y.useContext(te.aM);return{status:St,errors:Nt,warnings:Et}};ct.Context=te.aM;var ot=ct,ft=Te(16089);function ut(St){const[Nt,Et]=y.useState(St),zt=y.useRef(null),bt=y.useRef([]),Wt=y.useRef(!1);y.useEffect(()=>(Wt.current=!1,()=>{Wt.current=!0,ft.Z.cancel(zt.current),zt.current=null}),[]);function Ft(qt){Wt.current||(zt.current===null&&(bt.current=[],zt.current=(0,ft.Z)(()=>{zt.current=null,Et(_t=>{let $t=_t;return bt.current.forEach(Ht=>{$t=Ht($t)}),$t})})),bt.current.push(qt))}return[Nt,Ft]}function lt(){const{itemRef:St}=y.useContext(te.q3),Nt=y.useRef({});function Et(zt,bt){const Wt=bt&&typeof bt=="object"&&(0,ve.C4)(bt),Ft=zt.join("_");return(Nt.current.name!==Ft||Nt.current.originRef!==Wt)&&(Nt.current.name=Ft,Nt.current.originRef=Wt,Nt.current.ref=(0,ve.sQ)(St(zt),Wt)),Nt.current.ref}return Et}var At=Te(29194),yt=Te(34280),Rt=Te(2738),Pt=Te(65970),Tt=Te(70425),kt=Te(5472);const Dt=St=>{const{formItemCls:Nt}=St;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Nt}-control`]:{display:"flex"}}}};var gt=(0,se.bk)(["Form","item-item"],(St,Nt)=>{let{rootPrefixCls:Et}=Nt;const zt=je(St,Et);return[Dt(zt)]}),It=function(St,Nt){var Et={};for(var zt in St)Object.prototype.hasOwnProperty.call(St,zt)&&Nt.indexOf(zt)<0&&(Et[zt]=St[zt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,zt=Object.getOwnPropertySymbols(St);bt<zt.length;bt++)Nt.indexOf(zt[bt])<0&&Object.prototype.propertyIsEnumerable.call(St,zt[bt])&&(Et[zt[bt]]=St[zt[bt]]);return Et};const Vt=24;var wt=St=>{const{prefixCls:Nt,status:Et,labelCol:zt,wrapperCol:bt,children:Wt,errors:Ft,warnings:qt,_internalItemRender:_t,extra:$t,help:Ht,fieldId:Xt,marginBottom:En,onErrorVisibleChanged:On,label:Rn}=St,rr=`${Nt}-item`,cr=y.useContext(te.q3),mr=y.useMemo(()=>{let br=Object.assign({},bt||cr.wrapperCol||{});return Rn===null&&!zt&&!bt&&cr.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Kr=>{const Nr=Kr?[Kr]:[],Wr=(0,Tt.U2)(cr.labelCol,Nr),Ir=typeof Wr=="object"?Wr:{},ni=(0,Tt.U2)(br,Nr),ti=typeof ni=="object"?ni:{};"span"in Ir&&!("offset"in ti)&&Ir.span<Vt&&(br=(0,Tt.t8)(br,[].concat(Nr,["offset"]),Ir.span))}),br},[bt,cr]),nr=ye()(`${rr}-control`,mr.className),Un=y.useMemo(()=>{const{labelCol:br,wrapperCol:Pr}=cr;return It(cr,["labelCol","wrapperCol"])},[cr]),Yn=y.useRef(null),[pr,Sr]=y.useState(0);(0,yt.Z)(()=>{$t&&Yn.current?Sr(Yn.current.clientHeight):Sr(0)},[$t]);const wr=y.createElement("div",{className:`${rr}-control-input`},y.createElement("div",{className:`${rr}-control-input-content`},Wt)),Cr=y.useMemo(()=>({prefixCls:Nt,status:Et}),[Nt,Et]),qn=En!==null||Ft.length||qt.length?y.createElement(te.Rk.Provider,{value:Cr},y.createElement(Ke,{fieldId:Xt,errors:Ft,warnings:qt,help:Ht,helpStatus:Et,className:`${rr}-explain-connected`,onVisibleChanged:On})):null,kn={};Xt&&(kn.id=`${Xt}_extra`);const Fn=$t?y.createElement("div",Object.assign({},kn,{className:`${rr}-extra`,ref:Yn}),$t):null,Nn=qn||Fn?y.createElement("div",{className:`${rr}-additional`,style:En?{minHeight:En+pr}:{}},qn,Fn):null,ir=_t&&_t.mark==="pro_table_render"&&_t.render?_t.render(St,{input:wr,errorList:qn,extra:Fn}):y.createElement(y.Fragment,null,wr,Nn);return y.createElement(te.q3.Provider,{value:Un},y.createElement(kt.Z,Object.assign({},mr,{className:nr}),ir),y.createElement(gt,{prefixCls:Nt}))},Ct=Te(61485),Zt=Te(9017),en=Te(85981),ln=Te(25399),yn=function(St,Nt){var Et={};for(var zt in St)Object.prototype.hasOwnProperty.call(St,zt)&&Nt.indexOf(zt)<0&&(Et[zt]=St[zt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,zt=Object.getOwnPropertySymbols(St);bt<zt.length;bt++)Nt.indexOf(zt[bt])<0&&Object.prototype.propertyIsEnumerable.call(St,zt[bt])&&(Et[zt[bt]]=St[zt[bt]]);return Et};function Bn(St){return St?typeof St=="object"&&!y.isValidElement(St)?St:{title:St}:null}var gn=St=>{let{prefixCls:Nt,label:Et,htmlFor:zt,labelCol:bt,labelAlign:Wt,colon:Ft,required:qt,requiredMark:_t,tooltip:$t,vertical:Ht}=St;var Xt;const[En]=(0,Zt.Z)("Form"),{labelAlign:On,labelCol:Rn,labelWrap:rr,colon:cr}=y.useContext(te.q3);if(!Et)return null;const mr=bt||Rn||{},nr=Wt||On,Un=`${Nt}-item-label`,Yn=ye()(Un,nr==="left"&&`${Un}-left`,mr.className,{[`${Un}-wrap`]:!!rr});let pr=Et;const Sr=Ft===!0||cr!==!1&&Ft!==!1;Sr&&!Ht&&typeof Et=="string"&&Et.trim()&&(pr=Et.replace(/[:|]\s*$/,""));const Cr=Bn($t);if(Cr){const{icon:br=y.createElement(Ct.Z,null)}=Cr,Pr=yn(Cr,["icon"]),Kr=y.createElement(ln.Z,Object.assign({},Pr),y.cloneElement(br,{className:`${Nt}-item-tooltip`,title:"",onClick:Nr=>{Nr.preventDefault()},tabIndex:null}));pr=y.createElement(y.Fragment,null,pr,Kr)}const qn=_t==="optional",kn=typeof _t=="function",Fn=_t===!1;kn?pr=_t(pr,{required:!!qt}):qn&&!qt&&(pr=y.createElement(y.Fragment,null,pr,y.createElement("span",{className:`${Nt}-item-optional`,title:""},(En==null?void 0:En.optional)||((Xt=en.Z.Form)===null||Xt===void 0?void 0:Xt.optional))));let Nn;Fn?Nn="hidden":(qn||kn)&&(Nn="optional");const ir=ye()({[`${Nt}-item-required`]:qt,[`${Nt}-item-required-mark-${Nn}`]:Nn,[`${Nt}-item-no-colon`]:!Sr});return y.createElement(kt.Z,Object.assign({},mr,{className:Yn}),y.createElement("label",{htmlFor:zt,className:ir,title:typeof Et=="string"?Et:""},pr))},Ln=Te(29679),pn=Te(19248),In=Te(96512),Gt=Te(58617);const Ut={success:Ln.Z,warning:In.Z,error:pn.Z,validating:Gt.Z};function Lt(St){let{children:Nt,errors:Et,warnings:zt,hasFeedback:bt,validateStatus:Wt,prefixCls:Ft,meta:qt,noStyle:_t}=St;const $t=`${Ft}-item`,{feedbackIcons:Ht}=y.useContext(te.q3),Xt=Qe(Et,zt,qt,null,!!bt,Wt),{isFormItemInput:En,status:On,hasFeedback:Rn,feedbackIcon:rr}=y.useContext(te.aM),cr=y.useMemo(()=>{var mr;let nr;if(bt){const Yn=bt!==!0&&bt.icons||Ht,pr=Xt&&((mr=Yn==null?void 0:Yn({status:Xt,errors:Et,warnings:zt}))===null||mr===void 0?void 0:mr[Xt]),Sr=Xt&&Ut[Xt];nr=pr!==!1&&Sr?y.createElement("span",{className:ye()(`${$t}-feedback-icon`,`${$t}-feedback-icon-${Xt}`)},pr||y.createElement(Sr,null)):null}const Un={status:Xt||"",errors:Et,warnings:zt,hasFeedback:!!bt,feedbackIcon:nr,isFormItemInput:!0};return _t&&(Un.status=(Xt!=null?Xt:On)||"",Un.isFormItemInput=En,Un.hasFeedback=!!(bt!=null?bt:Rn),Un.feedbackIcon=bt!==void 0?Un.feedbackIcon:rr),Un},[Xt,bt,_t,En,On]);return y.createElement(te.aM.Provider,{value:cr},Nt)}var sn=function(St,Nt){var Et={};for(var zt in St)Object.prototype.hasOwnProperty.call(St,zt)&&Nt.indexOf(zt)<0&&(Et[zt]=St[zt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,zt=Object.getOwnPropertySymbols(St);bt<zt.length;bt++)Nt.indexOf(zt[bt])<0&&Object.prototype.propertyIsEnumerable.call(St,zt[bt])&&(Et[zt[bt]]=St[zt[bt]]);return Et};function un(St){const{prefixCls:Nt,className:Et,rootClassName:zt,style:bt,help:Wt,errors:Ft,warnings:qt,validateStatus:_t,meta:$t,hasFeedback:Ht,hidden:Xt,children:En,fieldId:On,required:Rn,isRequired:rr,onSubItemMetaChange:cr,layout:mr}=St,nr=sn(St,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Un=`${Nt}-item`,{requiredMark:Yn,vertical:pr}=y.useContext(te.q3),Sr=pr||mr==="vertical",wr=y.useRef(null),Cr=oe(Ft),qn=oe(qt),kn=Wt!=null,Fn=!!(kn||Ft.length||qt.length),Nn=!!wr.current&&(0,At.Z)(wr.current),[ir,br]=y.useState(null);(0,yt.Z)(()=>{if(Fn&&wr.current){const Ir=getComputedStyle(wr.current);br(parseInt(Ir.marginBottom,10))}},[Fn,Nn]);const Pr=Ir=>{Ir||br(null)},Nr=function(){let Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ni=Ir?Cr:$t.errors,ti=Ir?qn:$t.warnings;return Qe(ni,ti,$t,"",!!Ht,_t)}(),Wr=ye()(Un,Et,zt,{[`${Un}-with-help`]:kn||Cr.length||qn.length,[`${Un}-has-feedback`]:Nr&&Ht,[`${Un}-has-success`]:Nr==="success",[`${Un}-has-warning`]:Nr==="warning",[`${Un}-has-error`]:Nr==="error",[`${Un}-is-validating`]:Nr==="validating",[`${Un}-hidden`]:Xt,[`${Un}-${mr}`]:mr});return y.createElement("div",{className:Wr,style:bt,ref:wr},y.createElement(Pt.Z,Object.assign({className:`${Un}-row`},(0,Rt.Z)(nr,["_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(gn,Object.assign({htmlFor:On},St,{requiredMark:Yn,required:Rn!=null?Rn:rr,prefixCls:Nt,vertical:Sr})),y.createElement(wt,Object.assign({},St,$t,{errors:Cr,warnings:qn,prefixCls:Nt,status:Nr,help:Wt,marginBottom:ir,onErrorVisibleChanged:Pr}),y.createElement(te.qI.Provider,{value:cr},y.createElement(Lt,{prefixCls:Nt,meta:$t,errors:$t.errors,warnings:$t.warnings,hasFeedback:Ht,validateStatus:Nr},En)))),!!ir&&y.createElement("div",{className:`${Un}-margin-offset`,style:{marginBottom:-ir}}))}const Cn="__SPLIT__",Tn=null;function jn(St,Nt){const Et=Object.keys(St),zt=Object.keys(Nt);return Et.length===zt.length&&Et.every(bt=>{const Wt=St[bt],Ft=Nt[bt];return Wt===Ft||typeof Wt=="function"||typeof Ft=="function"})}const hn=y.memo(St=>{let{children:Nt}=St;return Nt},(St,Nt)=>jn(St.control,Nt.control)&&St.update===Nt.update&&St.childProps.length===Nt.childProps.length&&St.childProps.every((Et,zt)=>Et===Nt.childProps[zt]));function Mn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function _n(St){const{name:Nt,noStyle:Et,className:zt,dependencies:bt,prefixCls:Wt,shouldUpdate:Ft,rules:qt,children:_t,required:$t,label:Ht,messageVariables:Xt,trigger:En="onChange",validateTrigger:On,hidden:Rn,help:rr,layout:cr}=St,{getPrefixCls:mr}=y.useContext(it.E_),{name:nr}=y.useContext(te.q3),Un=Je(_t),Yn=typeof Un=="function",pr=y.useContext(te.qI),{validateTrigger:Sr}=y.useContext(Ve.FieldContext),wr=On!==void 0?On:Sr,Cr=Nt!=null,qn=mr("form",Wt),kn=(0,re.Z)(qn),[Fn,Nn,ir]=Fe(qn,kn),br=(0,$e.ln)("Form.Item"),Pr=y.useContext(Ve.ListContext),Kr=y.useRef(null),[Nr,Wr]=ut({}),[Ir,ni]=(0,be.Z)(()=>Mn()),ti=Dr=>{const ar=Pr==null?void 0:Pr.getKey(Dr.name);if(ni(Dr.destroy?Mn():Dr,!0),Et&&rr!==!1&&pr){let Pn=Dr.name;if(Dr.destroy)Pn=Kr.current||Pn;else if(ar!==void 0){const[Kn,Xn]=ar;Pn=[Kn].concat((0,Ot.Z)(Xn)),Kr.current=Pn}pr(Dr,Pn)}},oi=(Dr,ar)=>{Wr(Pn=>{const Kn=Object.assign({},Pn),$n=[].concat((0,Ot.Z)(Dr.name.slice(0,-1)),(0,Ot.Z)(ar)).join(Cn);return Dr.destroy?delete Kn[$n]:Kn[$n]=Dr,Kn})},[fi,xi]=y.useMemo(()=>{const Dr=(0,Ot.Z)(Ir.errors),ar=(0,Ot.Z)(Ir.warnings);return Object.values(Nr).forEach(Pn=>{Dr.push.apply(Dr,(0,Ot.Z)(Pn.errors||[])),ar.push.apply(ar,(0,Ot.Z)(Pn.warnings||[]))}),[Dr,ar]},[Nr,Ir.errors,Ir.warnings]),hi=lt();function ei(Dr,ar,Pn){return Et&&!Rn?y.createElement(Lt,{prefixCls:qn,hasFeedback:St.hasFeedback,validateStatus:St.validateStatus,meta:Ir,errors:fi,warnings:xi,noStyle:!0},Dr):y.createElement(un,Object.assign({key:"row"},St,{className:ye()(zt,ir,kn,Nn),prefixCls:qn,fieldId:ar,isRequired:Pn,errors:fi,warnings:xi,meta:Ir,onSubItemMetaChange:oi,layout:cr}),Dr)}if(!Cr&&!Yn&&!bt)return Fn(ei(Un));let Ar={};return typeof Ht=="string"?Ar.label=Ht:Nt&&(Ar.label=String(Nt)),Xt&&(Ar=Object.assign(Object.assign({},Ar),Xt)),Fn(y.createElement(Ve.Field,Object.assign({},St,{messageVariables:Ar,trigger:En,validateTrigger:wr,onMetaChange:ti}),(Dr,ar,Pn)=>{const Kn=Xe(Nt).length&&ar?ar.name:[],Xn=st(Kn,nr),$n=$t!==void 0?$t:!!(qt!=null&&qt.some(Vn=>{if(Vn&&typeof Vn=="object"&&Vn.required&&!Vn.warningOnly)return!0;if(typeof Vn=="function"){const zn=Vn(Pn);return(zn==null?void 0:zn.required)&&!(zn!=null&&zn.warningOnly)}return!1})),hr=Object.assign({},Dr);let Tr=null;if(Array.isArray(Un)&&Cr)Tr=Un;else if(!(Yn&&(!(Ft||bt)||Cr))){if(!(bt&&!Yn&&!Cr))if(y.isValidElement(Un)){const Vn=Object.assign(Object.assign({},Un.props),hr);if(Vn.id||(Vn.id=Xn),rr||fi.length>0||xi.length>0||St.extra){const sr=[];(rr||fi.length>0)&&sr.push(`${Xn}_help`),St.extra&&sr.push(`${Xn}_extra`),Vn["aria-describedby"]=sr.join(" ")}fi.length>0&&(Vn["aria-invalid"]="true"),$n&&(Vn["aria-required"]="true"),(0,ve.Yr)(Un)&&(Vn.ref=hi(Kn,Un)),new Set([].concat((0,Ot.Z)(Xe(En)),(0,Ot.Z)(Xe(wr)))).forEach(sr=>{Vn[sr]=function(){for(var qr,Ti,gi,ki,Oi,Ii=arguments.length,Fi=new Array(Ii),Ri=0;Ri<Ii;Ri++)Fi[Ri]=arguments[Ri];(gi=hr[sr])===null||gi===void 0||(qr=gi).call.apply(qr,[hr].concat(Fi)),(Oi=(ki=Un.props)[sr])===null||Oi===void 0||(Ti=Oi).call.apply(Ti,[ki].concat(Fi))}});const er=[Vn["aria-required"],Vn["aria-invalid"],Vn["aria-describedby"]];Tr=y.createElement(hn,{control:hr,update:Un,childProps:er},(0,Ie.Tm)(Un,Vn))}else Yn&&(Ft||bt)&&!Cr?Tr=Un(Pn):Tr=Un}return ei(Tr,Xn,$n)}))}const ur=_n;ur.useStatus=ot;var tr=ur,cn=function(St,Nt){var Et={};for(var zt in St)Object.prototype.hasOwnProperty.call(St,zt)&&Nt.indexOf(zt)<0&&(Et[zt]=St[zt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,zt=Object.getOwnPropertySymbols(St);bt<zt.length;bt++)Nt.indexOf(zt[bt])<0&&Object.prototype.propertyIsEnumerable.call(St,zt[bt])&&(Et[zt[bt]]=St[zt[bt]]);return Et},Hn=St=>{var{prefixCls:Nt,children:Et}=St,zt=cn(St,["prefixCls","children"]);const{getPrefixCls:bt}=y.useContext(it.E_),Wt=bt("form",Nt),Ft=y.useMemo(()=>({prefixCls:Wt,status:"error"}),[Wt]);return y.createElement(Ve.List,Object.assign({},zt),(qt,_t,$t)=>y.createElement(te.Rk.Provider,{value:Ft},Et(qt.map(Ht=>Object.assign(Object.assign({},Ht),{fieldKey:Ht.key})),_t,{errors:$t.errors,warnings:$t.warnings})))};function Gn(){const{form:St}=y.useContext(te.q3);return St}const Mt=He;Mt.Item=tr,Mt.List=Hn,Mt.ErrorList=Ke,Mt.useForm=_e,Mt.useFormInstance=Gn,Mt.useWatch=Ve.useWatch,Mt.Provider=te.RV,Mt.create=()=>{};var Kt=Mt},4875:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return rn}});var te=Te(59301),Ot=Te(84105),y=Te(87395),Pe=Te(92310),ye=Te.n(Pe),z=Te(54476),E=Te(20068),re=Te(76190),oe=Te(42978),ee=Te(75931),de=Te(67732),x=Te(83652);function ae(){return typeof BigInt=="function"}function ie(wt){return!wt&&wt!==0&&!Number.isNaN(wt)||!String(wt).trim()}function se(wt){var Ct=wt.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",ln=en.split("."),yn=ln[0]||"0",Bn=ln[1]||"0";yn==="0"&&Bn==="0"&&(Zt=!1);var Wn=Zt?"-":"";return{negative:Zt,negativeStr:Wn,trimStr:en,integerStr:yn,decimalStr:Bn,fullStr:"".concat(Wn).concat(en)}}function ue(wt){var Ct=String(wt);return!Number.isNaN(Number(Ct))&&Ct.includes("e")}function pe(wt){var Ct=String(wt);if(ue(wt)){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(".")&&ge(Ct)?Ct.length-Ct.indexOf(".")-1:0}function he(wt){var Ct=String(wt);if(ue(wt)){if(wt>Number.MAX_SAFE_INTEGER)return String(ae()?BigInt(wt).toString():Number.MAX_SAFE_INTEGER);if(wt<Number.MIN_SAFE_INTEGER)return String(ae()?BigInt(wt).toString():Number.MIN_SAFE_INTEGER);Ct=wt.toFixed(pe(Ct))}return se(Ct).fullStr}function ge(wt){return typeof wt=="number"?!Number.isNaN(wt):wt?/^\s*-?\d+(\.\d+)?\s*$/.test(wt)||/^\s*-?\d+\.\s*$/.test(wt)||/^\s*-?\.\d+\s*$/.test(wt):!1}var me=function(){function wt(Ct){if((0,de.Z)(this,wt),(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),ie(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),ge(Zt)){var en=se(Zt);this.negative=en.negative;var ln=en.trimStr.split(".");this.integer=BigInt(ln[0]);var yn=ln[1]||"0";this.decimal=BigInt(yn),this.decimalLen=yn.length}else this.nan=!0}return(0,x.Z)(wt,[{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 wt(this.toString());return Zt.negative=!Zt.negative,Zt}},{key:"cal",value:function(Zt,en,ln){var yn=Math.max(this.getDecimalStr().length,Zt.getDecimalStr().length),Bn=this.alignDecimal(yn),Wn=Zt.alignDecimal(yn),gn=en(Bn,Wn).toString(),Ln=ln(yn),pn=se(gn),In=pn.negativeStr,Gt=pn.trimStr,Ut="".concat(In).concat(Gt.padStart(Ln+1,"0"));return new wt("".concat(Ut.slice(0,-Ln),".").concat(Ut.slice(-Ln)))}},{key:"add",value:function(Zt){if(this.isInvalidate())return new wt(Zt);var en=new wt(Zt);return en.isInvalidate()?this:this.cal(en,function(ln,yn){return ln+yn},function(ln){return ln})}},{key:"multi",value:function(Zt){var en=new wt(Zt);return this.isInvalidate()||en.isInvalidate()?new wt(NaN):this.cal(en,function(ln,yn){return ln*yn},function(ln){return ln*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}}]),wt}(),xe=function(){function wt(Ct){if((0,de.Z)(this,wt),(0,E.Z)(this,"origin",""),(0,E.Z)(this,"number",void 0),(0,E.Z)(this,"empty",void 0),ie(Ct)){this.empty=!0;return}this.origin=String(Ct),this.number=Number(Ct)}return(0,x.Z)(wt,[{key:"negate",value:function(){return new wt(-this.toNumber())}},{key:"add",value:function(Zt){if(this.isInvalidate())return new wt(Zt);var en=Number(Zt);if(Number.isNaN(en))return this;var ln=this.number+en;if(ln>Number.MAX_SAFE_INTEGER)return new wt(Number.MAX_SAFE_INTEGER);if(ln<Number.MIN_SAFE_INTEGER)return new wt(Number.MIN_SAFE_INTEGER);var yn=Math.max(pe(this.number),pe(en));return new wt(ln.toFixed(yn))}},{key:"multi",value:function(Zt){var en=Number(Zt);if(this.isInvalidate()||Number.isNaN(en))return new wt(NaN);var ln=this.number*en;if(ln>Number.MAX_SAFE_INTEGER)return new wt(Number.MAX_SAFE_INTEGER);if(ln<Number.MIN_SAFE_INTEGER)return new wt(Number.MIN_SAFE_INTEGER);var yn=Math.max(pe(this.number),pe(en));return new wt(ln.toFixed(yn))}},{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}}]),wt}();function Ae(wt){return ae()?new me(wt):new xe(wt)}function Ne(wt,Ct,Zt){var en=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(wt==="")return"";var ln=se(wt),yn=ln.negativeStr,Bn=ln.integerStr,Wn=ln.decimalStr,gn="".concat(Ct).concat(Wn),Ln="".concat(yn).concat(Bn);if(Zt>=0){var pn=Number(Wn[Zt]);if(pn>=5&&!en){var In=Ae(wt).add("".concat(yn,"0.").concat("0".repeat(Zt)).concat(10-pn));return Ne(In.toString(),Ct,Zt,en)}return Zt===0?Ln:"".concat(Ln).concat(Ct).concat(Wn.padEnd(Zt,"0").slice(0,Zt))}return gn===".0"?Ln:"".concat(Ln).concat(gn)}var Be=Ae,De=Te(36901),we=Te(34280);function Ce(wt,Ct){return typeof Proxy!="undefined"&&wt?new Proxy(wt,{get:function(en,ln){if(Ct[ln])return Ct[ln];var yn=en[ln];return typeof yn=="function"?yn.bind(en):yn}}):wt}var Oe=Te(8654),je=Te(48736);function Fe(wt,Ct){var Zt=(0,te.useRef)(null);function en(){try{var yn=wt.selectionStart,Bn=wt.selectionEnd,Wn=wt.value,gn=Wn.substring(0,yn),Ln=Wn.substring(Bn);Zt.current={start:yn,end:Bn,value:Wn,beforeTxt:gn,afterTxt:Ln}}catch(pn){}}function ln(){if(wt&&Zt.current&&Ct)try{var yn=wt.value,Bn=Zt.current,Wn=Bn.beforeTxt,gn=Bn.afterTxt,Ln=Bn.start,pn=yn.length;if(yn.startsWith(Wn))pn=Wn.length;else if(yn.endsWith(gn))pn=yn.length-Zt.current.afterTxt.length;else{var In=Wn[Ln-1],Gt=yn.indexOf(In,Ln-1);Gt!==-1&&(pn=Gt+1)}wt.setSelectionRange(pn,pn)}catch(Ut){(0,je.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Ut.message))}}return[en,ln]}var ke=Te(49658),Ee=function(){var Ct=(0,te.useState)(!1),Zt=(0,oe.Z)(Ct,2),en=Zt[0],ln=Zt[1];return(0,we.Z)(function(){ln((0,ke.Z)())},[]),en},Ge=Ee,Ke=Te(16089),Ve=200,it=600;function Le(wt){var Ct=wt.prefixCls,Zt=wt.upNode,en=wt.downNode,ln=wt.upDisabled,yn=wt.downDisabled,Bn=wt.onStep,Wn=te.useRef(),gn=te.useRef([]),Ln=te.useRef();Ln.current=Bn;var pn=function(){clearTimeout(Wn.current)},In=function(jn,hn){jn.preventDefault(),pn(),Ln.current(hn);function Mn(){Ln.current(hn),Wn.current=setTimeout(Mn,Ve)}Wn.current=setTimeout(Mn,it)};te.useEffect(function(){return function(){pn(),gn.current.forEach(function(Tn){return Ke.Z.cancel(Tn)})}},[]);var Gt=Ge();if(Gt)return null;var Ut="".concat(Ct,"-handler"),Lt=ye()(Ut,"".concat(Ut,"-up"),(0,E.Z)({},"".concat(Ut,"-up-disabled"),ln)),sn=ye()(Ut,"".concat(Ut,"-down"),(0,E.Z)({},"".concat(Ut,"-down-disabled"),yn)),un=function(){return gn.current.push((0,Ke.Z)(pn))},Cn={unselectable:"on",role:"button",onMouseUp:un,onMouseLeave:un};return te.createElement("div",{className:"".concat(Ut,"-wrap")},te.createElement("span",(0,z.Z)({},Cn,{onMouseDown:function(jn){In(jn,!0)},"aria-label":"Increase Value","aria-disabled":ln,className:Lt}),Zt||te.createElement("span",{unselectable:"on",className:"".concat(Ct,"-handler-up-inner")})),te.createElement("span",(0,z.Z)({},Cn,{onMouseDown:function(jn){In(jn,!1)},"aria-label":"Decrease Value","aria-disabled":yn,className:sn}),en||te.createElement("span",{unselectable:"on",className:"".concat(Ct,"-handler-down-inner")})))}function Ue(wt){var Ct=typeof wt=="number"?he(wt):se(wt).fullStr,Zt=Ct.includes(".");return Zt?se(Ct.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:wt+"0"}var tt=Te(30292),nt=function(){var wt=(0,te.useRef)(0),Ct=function(){Ke.Z.cancel(wt.current)};return(0,te.useEffect)(function(){return Ct},[]),function(Zt){Ct(),wt.current=(0,Ke.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"],Ze=["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},st=te.forwardRef(function(wt,Ct){var Zt=wt.prefixCls,en=wt.className,ln=wt.style,yn=wt.min,Bn=wt.max,Wn=wt.step,gn=Wn===void 0?1:Wn,Ln=wt.defaultValue,pn=wt.value,In=wt.disabled,Gt=wt.readOnly,Ut=wt.upHandler,Lt=wt.downHandler,sn=wt.keyboard,un=wt.changeOnWheel,Cn=un===void 0?!1:un,Tn=wt.controls,jn=Tn===void 0?!0:Tn,hn=wt.classNames,Mn=wt.stringMode,_n=wt.parser,ur=wt.formatter,tr=wt.precision,cn=wt.decimalSeparator,tn=wt.onChange,Hn=wt.onInput,Gn=wt.onPressEnter,Mt=wt.onStep,Kt=wt.changeOnBlur,St=Kt===void 0?!0:Kt,Nt=wt.domRef,Et=(0,ee.Z)(wt,et),zt="".concat(Zt,"-input"),bt=te.useRef(null),Wt=te.useState(!1),Ft=(0,oe.Z)(Wt,2),qt=Ft[0],_t=Ft[1],$t=te.useRef(!1),Ht=te.useRef(!1),Xt=te.useRef(!1),En=te.useState(function(){return Be(pn!=null?pn:Ln)}),On=(0,oe.Z)(En,2),Rn=On[0],rr=On[1];function cr(Xn){pn===void 0&&rr(Xn)}var mr=te.useCallback(function(Xn,$n){if(!$n)return tr>=0?tr:Math.max(pe(Xn),pe(gn))},[tr,gn]),nr=te.useCallback(function(Xn){var $n=String(Xn);if(_n)return _n($n);var hr=$n;return cn&&(hr=hr.replace(cn,".")),hr.replace(/[^\w.-]+/g,"")},[_n,cn]),Un=te.useRef(""),Yn=te.useCallback(function(Xn,$n){if(ur)return ur(Xn,{userTyping:$n,input:String(Un.current)});var hr=typeof Xn=="number"?he(Xn):Xn;if(!$n){var Tr=mr(hr,$n);if(ge(hr)&&(cn||Tr>=0)){var Vn=cn||".";hr=Ne(hr,Vn,Tr)}}return hr},[ur,mr,cn]),pr=te.useState(function(){var Xn=Ln!=null?Ln:pn;return Rn.isInvalidate()&&["string","number"].includes((0,re.Z)(Xn))?Number.isNaN(Xn)?"":Xn:Yn(Rn.toString(),!1)}),Sr=(0,oe.Z)(pr,2),wr=Sr[0],Cr=Sr[1];Un.current=wr;function qn(Xn,$n){Cr(Yn(Xn.isInvalidate()?Xn.toString(!1):Xn.toString(!$n),$n))}var kn=te.useMemo(function(){return Xe(Bn)},[Bn,tr]),Fn=te.useMemo(function(){return Xe(yn)},[yn,tr]),Nn=te.useMemo(function(){return!kn||!Rn||Rn.isInvalidate()?!1:kn.lessEquals(Rn)},[kn,Rn]),ir=te.useMemo(function(){return!Fn||!Rn||Rn.isInvalidate()?!1:Rn.lessEquals(Fn)},[Fn,Rn]),br=Fe(bt.current,qt),Pr=(0,oe.Z)(br,2),Kr=Pr[0],Nr=Pr[1],Wr=function($n){return kn&&!$n.lessEquals(kn)?kn:Fn&&!Fn.lessEquals($n)?Fn:null},Ir=function($n){return!Wr($n)},ni=function($n,hr){var Tr=$n,Vn=Ir(Tr)||Tr.isEmpty();if(!Tr.isEmpty()&&!hr&&(Tr=Wr(Tr)||Tr,Vn=!0),!Gt&&!In&&Vn){var zn=Tr.toString(),er=mr(zn,hr);return er>=0&&(Tr=Be(Ne(zn,".",er)),Ir(Tr)||(Tr=Be(Ne(zn,".",er,!0)))),Tr.equals(Rn)||(cr(Tr),tn==null||tn(Tr.isEmpty()?null:Ye(Mn,Tr)),pn===void 0&&qn(Tr,hr)),Tr}return Rn},ti=nt(),oi=function Xn($n){if(Kr(),Un.current=$n,Cr($n),!Ht.current){var hr=nr($n),Tr=Be(hr);Tr.isNaN()||ni(Tr,!0)}Hn==null||Hn($n),ti(function(){var Vn=$n;_n||(Vn=$n.replace(/。/g,".")),Vn!==$n&&Xn(Vn)})},fi=function(){Ht.current=!0},xi=function(){Ht.current=!1,oi(bt.current.value)},hi=function($n){oi($n.target.value)},ei=function($n){var hr;if(!($n&&Nn||!$n&&ir)){$t.current=!1;var Tr=Be(Xt.current?Ue(gn):gn);$n||(Tr=Tr.negate());var Vn=(Rn||Be(0)).add(Tr.toString()),zn=ni(Vn,!1);Mt==null||Mt(Ye(Mn,zn),{offset:Xt.current?Ue(gn):gn,type:$n?"up":"down"}),(hr=bt.current)===null||hr===void 0||hr.focus()}},Ar=function($n){var hr=Be(nr(wr)),Tr;hr.isNaN()?Tr=ni(Rn,$n):Tr=ni(hr,$n),pn!==void 0?qn(Rn,!1):Tr.isNaN()||qn(Tr,!1)},Dr=function(){$t.current=!0},ar=function($n){var hr=$n.key,Tr=$n.shiftKey;$t.current=!0,Xt.current=Tr,hr==="Enter"&&(Ht.current||($t.current=!1),Ar(!1),Gn==null||Gn($n)),sn!==!1&&!Ht.current&&["Up","ArrowUp","Down","ArrowDown"].includes(hr)&&(ei(hr==="Up"||hr==="ArrowUp"),$n.preventDefault())},Pn=function(){$t.current=!1,Xt.current=!1};te.useEffect(function(){if(Cn&&qt){var Xn=function(Tr){ei(Tr.deltaY<0),Tr.preventDefault()},$n=bt.current;if($n)return $n.addEventListener("wheel",Xn,{passive:!1}),function(){return $n.removeEventListener("wheel",Xn)}}});var Kn=function(){St&&Ar(!1),_t(!1),$t.current=!1};return(0,we.o)(function(){Rn.isInvalidate()||qn(Rn,!1)},[tr,ur]),(0,we.o)(function(){var Xn=Be(pn);rr(Xn);var $n=Be(nr(wr));(!Xn.equals($n)||!$t.current||ur)&&qn(Xn,$t.current)},[pn]),(0,we.o)(function(){ur&&Nr()},[wr]),te.createElement("div",{ref:Nt,className:ye()(Zt,en,(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)({},"".concat(Zt,"-focused"),qt),"".concat(Zt,"-disabled"),In),"".concat(Zt,"-readonly"),Gt),"".concat(Zt,"-not-a-number"),Rn.isNaN()),"".concat(Zt,"-out-of-range"),!Rn.isInvalidate()&&!Ir(Rn))),style:ln,onFocus:function(){_t(!0)},onBlur:Kn,onKeyDown:ar,onKeyUp:Pn,onCompositionStart:fi,onCompositionEnd:xi,onBeforeInput:Dr},jn&&te.createElement(Le,{prefixCls:Zt,upNode:Ut,downNode:Lt,upDisabled:Nn,downDisabled:ir,onStep:ei}),te.createElement("div",{className:"".concat(zt,"-wrap")},te.createElement("input",(0,z.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":yn,"aria-valuemax":Bn,"aria-valuenow":Rn.isInvalidate()?null:Rn.toString(),step:gn},Et,{ref:(0,Oe.sQ)(bt,Ct),className:zt,value:wr,onChange:hi,disabled:In,readOnly:Gt}))))}),Qe=te.forwardRef(function(wt,Ct){var Zt=wt.disabled,en=wt.style,ln=wt.prefixCls,yn=ln===void 0?"rc-input-number":ln,Bn=wt.value,Wn=wt.prefix,gn=wt.suffix,Ln=wt.addonBefore,pn=wt.addonAfter,In=wt.className,Gt=wt.classNames,Ut=(0,ee.Z)(wt,Ze),Lt=te.useRef(null),sn=te.useRef(null),un=te.useRef(null),Cn=function(jn){un.current&&(0,tt.nH)(un.current,jn)};return te.useImperativeHandle(Ct,function(){return Ce(un.current,{focus:Cn,nativeElement:Lt.current.nativeElement||sn.current})}),te.createElement(De.BaseInput,{className:In,triggerFocus:Cn,prefixCls:yn,value:Bn,disabled:Zt,style:en,prefix:Wn,suffix:gn,addonAfter:pn,addonBefore:Ln,classNames:Gt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Lt},te.createElement(st,(0,z.Z)({prefixCls:yn,disabled:Zt,ref:un,domRef:sn,className:Gt==null?void 0:Gt.input},Ut)))}),ht=Qe,at=ht,qe=Te(62487),_e=Te(82855),Re=Te(48755),ne=Te(60840),fe=Te(2171),Me=Te(83397),He=Te(31756),be=Te(56553),ve=Te(24971),Ie=Te(70045),$e=Te(36237),We=Te(53075),Je=Te(64910),ct=Te(39082),ot=Te(63356),ft=Te(56119),ut=Te(16931),lt=Te(51636),At=Te(17835);const yt=wt=>{var Ct;const Zt=(Ct=wt.handleVisible)!==null&&Ct!==void 0?Ct:"auto",en=wt.controlHeightSM-wt.lineWidth*2;return Object.assign(Object.assign({},(0,Je.T)(wt)),{controlWidth:90,handleWidth:en,handleFontSize:wt.fontSize/2,handleVisible:Zt,handleActiveBg:wt.colorFillAlter,handleBg:wt.colorBgContainer,filledHandleBg:new At.FastColor(wt.colorFillSecondary).onBackground(wt.colorBgContainer).toHexString(),handleHoverColor:wt.colorPrimary,handleBorderColor:wt.colorBorder,handleOpacity:Zt===!0?1:0,handleVisibleWidth:Zt===!0?en:0})},Rt=(wt,Ct)=>{let{componentCls:Zt,borderRadiusSM:en,borderRadiusLG:ln}=wt;const yn=Ct==="lg"?ln:en;return{[`&-${Ct}`]:{[`${Zt}-handler-wrap`]:{borderStartEndRadius:yn,borderEndEndRadius:yn},[`${Zt}-handler-up`]:{borderStartEndRadius:yn},[`${Zt}-handler-down`]:{borderEndEndRadius:yn}}}},Pt=wt=>{const{componentCls:Ct,lineWidth:Zt,lineType:en,borderRadius:ln,inputFontSizeSM:yn,inputFontSizeLG:Bn,controlHeightLG:Wn,controlHeightSM:gn,colorError:Ln,paddingInlineSM:pn,paddingBlockSM:In,paddingBlockLG:Gt,paddingInlineLG:Ut,colorTextDescription:Lt,motionDurationMid:sn,handleHoverColor:un,handleOpacity:Cn,paddingInline:Tn,paddingBlock:jn,handleBg:hn,handleActiveBg:Mn,colorTextDisabled:_n,borderRadiusSM:ur,borderRadiusLG:tr,controlWidth:cn,handleBorderColor:tn,filledHandleBg:Hn,lineHeightLG:Gn,calc:Mt}=wt;return[{[Ct]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ot.Wf)(wt)),(0,We.ik)(wt)),{display:"inline-block",width:cn,margin:0,padding:0,borderRadius:ln}),(0,ct.qG)(wt,{[`${Ct}-handler-wrap`]:{background:hn,[`${Ct}-handler-down`]:{borderBlockStart:`${(0,$e.unit)(Zt)} ${en} ${tn}`}}})),(0,ct.H8)(wt,{[`${Ct}-handler-wrap`]:{background:Hn,[`${Ct}-handler-down`]:{borderBlockStart:`${(0,$e.unit)(Zt)} ${en} ${tn}`}},"&:focus-within":{[`${Ct}-handler-wrap`]:{background:hn}}})),(0,ct.vc)(wt,{[`${Ct}-handler-wrap`]:{background:hn,[`${Ct}-handler-down`]:{borderBlockStart:`${(0,$e.unit)(Zt)} ${en} ${tn}`}}})),(0,ct.Mu)(wt)),{"&-rtl":{direction:"rtl",[`${Ct}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Bn,lineHeight:Gn,borderRadius:tr,[`input${Ct}-input`]:{height:Mt(Wn).sub(Mt(Zt).mul(2)).equal(),padding:`${(0,$e.unit)(Gt)} ${(0,$e.unit)(Ut)}`}},"&-sm":{padding:0,fontSize:yn,borderRadius:ur,[`input${Ct}-input`]:{height:Mt(gn).sub(Mt(Zt).mul(2)).equal(),padding:`${(0,$e.unit)(In)} ${(0,$e.unit)(pn)}`}},"&-out-of-range":{[`${Ct}-input-wrap`]:{input:{color:Ln}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,ot.Wf)(wt)),(0,We.s7)(wt)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Ct}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Ct}-group-addon`]:{borderRadius:tr,fontSize:wt.fontSizeLG}},"&-sm":{[`${Ct}-group-addon`]:{borderRadius:ur}}},(0,ct.ir)(wt)),(0,ct.S5)(wt)),{[`&: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,ot.Wf)(wt)),{width:"100%",padding:`${(0,$e.unit)(jn)} ${(0,$e.unit)(Tn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:ln,outline:0,transition:`all ${sn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,We.nz)(wt.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:wt.handleWidth,opacity:1}})},{[Ct]:Object.assign(Object.assign(Object.assign({[`${Ct}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:wt.handleVisibleWidth,opacity:Cn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:ln,borderEndEndRadius:ln,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${sn}`,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:wt.handleFontSize}}},[`${Ct}-handler`]:{height:"50%",overflow:"hidden",color:Lt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,$e.unit)(Zt)} ${en} ${tn}`,transition:`all ${sn} linear`,"&:active":{background:Mn},"&:hover":{height:"60%",[`
${Ct}-handler-up-inner,
${Ct}-handler-down-inner
`]:{color:un}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,ot.Ro)()),{color:Lt,transition:`all ${sn} linear`,userSelect:"none"})},[`${Ct}-handler-up`]:{borderStartEndRadius:ln},[`${Ct}-handler-down`]:{borderEndEndRadius:ln}},Rt(wt,"lg")),Rt(wt,"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:_n}})}]},Tt=wt=>{const{componentCls:Ct,paddingBlock:Zt,paddingInline:en,inputAffixPadding:ln,controlWidth:yn,borderRadiusLG:Bn,borderRadiusSM:Wn,paddingInlineLG:gn,paddingInlineSM:Ln,paddingBlockLG:pn,paddingBlockSM:In,motionDurationMid:Gt}=wt;return{[`${Ct}-affix-wrapper`]:Object.assign(Object.assign({[`input${Ct}-input`]:{padding:`${(0,$e.unit)(Zt)} 0`}},(0,We.ik)(wt)),{position:"relative",display:"inline-flex",alignItems:"center",width:yn,padding:0,paddingInlineStart:en,"&-lg":{borderRadius:Bn,paddingInlineStart:gn,[`input${Ct}-input`]:{padding:`${(0,$e.unit)(pn)} 0`}},"&-sm":{borderRadius:Wn,paddingInlineStart:Ln,[`input${Ct}-input`]:{padding:`${(0,$e.unit)(In)} 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:ln},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:en,marginInlineStart:ln,transition:`margin ${Gt}`}},[`&:hover ${Ct}-handler-wrap, &-focused ${Ct}-handler-wrap`]:{width:wt.handleWidth,opacity:1},[`&:not(${Ct}-affix-wrapper-without-controls):hover ${Ct}-suffix`]:{marginInlineEnd:wt.calc(wt.handleWidth).add(en).equal()}})}};var kt=(0,ut.I$)("InputNumber",wt=>{const Ct=(0,lt.mergeToken)(wt,(0,Je.e)(wt));return[Pt(Ct),Tt(Ct),(0,ft.c)(Ct)]},yt,{unitless:{handleOpacity:!0}}),Dt=function(wt,Ct){var Zt={};for(var en in wt)Object.prototype.hasOwnProperty.call(wt,en)&&Ct.indexOf(en)<0&&(Zt[en]=wt[en]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ln=0,en=Object.getOwnPropertySymbols(wt);ln<en.length;ln++)Ct.indexOf(en[ln])<0&&Object.prototype.propertyIsEnumerable.call(wt,en[ln])&&(Zt[en[ln]]=wt[en[ln]]);return Zt};const gt=te.forwardRef((wt,Ct)=>{const{getPrefixCls:Zt,direction:en}=te.useContext(Re.E_),ln=te.useRef(null);te.useImperativeHandle(Ct,()=>ln.current);const{className:yn,rootClassName:Bn,size:Wn,disabled:gn,prefixCls:Ln,addonBefore:pn,addonAfter:In,prefix:Gt,suffix:Ut,bordered:Lt,readOnly:sn,status:un,controls:Cn,variant:Tn}=wt,jn=Dt(wt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),hn=Zt("input-number",Ln),Mn=(0,Me.Z)(hn),[_n,ur,tr]=kt(hn,Mn),{compactSize:cn,compactItemClassnames:tn}=(0,Ie.ri)(hn,en);let Hn=te.createElement(y.Z,{className:`${hn}-handler-up-inner`}),Gn=te.createElement(Ot.Z,{className:`${hn}-handler-down-inner`});const Mt=typeof Cn=="boolean"?Cn:void 0;typeof Cn=="object"&&(Hn=typeof Cn.upIcon=="undefined"?Hn:te.createElement("span",{className:`${hn}-handler-up-inner`},Cn.upIcon),Gn=typeof Cn.downIcon=="undefined"?Gn:te.createElement("span",{className:`${hn}-handler-down-inner`},Cn.downIcon));const{hasFeedback:Kt,status:St,isFormItemInput:Nt,feedbackIcon:Et}=te.useContext(be.aM),zt=(0,_e.F)(St,un),bt=(0,He.Z)(On=>{var Rn;return(Rn=Wn!=null?Wn:cn)!==null&&Rn!==void 0?Rn:On}),Wt=te.useContext(fe.Z),Ft=gn!=null?gn:Wt,[qt,_t]=(0,ve.Z)("inputNumber",Tn,Lt),$t=Kt&&te.createElement(te.Fragment,null,Et),Ht=ye()({[`${hn}-lg`]:bt==="large",[`${hn}-sm`]:bt==="small",[`${hn}-rtl`]:en==="rtl",[`${hn}-in-form-item`]:Nt},ur),Xt=`${hn}-group`,En=te.createElement(at,Object.assign({ref:ln,disabled:Ft,className:ye()(tr,Mn,yn,Bn,tn),upHandler:Hn,downHandler:Gn,prefixCls:hn,readOnly:sn,controls:Mt,prefix:Gt,suffix:$t||Ut,addonBefore:pn&&te.createElement(qe.Z,{form:!0,space:!0},pn),addonAfter:In&&te.createElement(qe.Z,{form:!0,space:!0},In),classNames:{input:Ht,variant:ye()({[`${hn}-${qt}`]:_t},(0,_e.Z)(hn,zt,Kt)),affixWrapper:ye()({[`${hn}-affix-wrapper-sm`]:bt==="small",[`${hn}-affix-wrapper-lg`]:bt==="large",[`${hn}-affix-wrapper-rtl`]:en==="rtl",[`${hn}-affix-wrapper-without-controls`]:Cn===!1||Ft},ur),wrapper:ye()({[`${Xt}-rtl`]:en==="rtl"},ur),groupWrapper:ye()({[`${hn}-group-wrapper-sm`]:bt==="small",[`${hn}-group-wrapper-lg`]:bt==="large",[`${hn}-group-wrapper-rtl`]:en==="rtl",[`${hn}-group-wrapper-${qt}`]:_t},(0,_e.Z)(`${hn}-group-wrapper`,zt,Kt),ur)}},jn));return _n(En)}),It=gt,Vt=wt=>te.createElement(ne.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},te.createElement(gt,Object.assign({},wt)));It._InternalPanelDoNotUseOrYouWillBeFired=Vt;var rn=It},49397:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return xe}});var te=Te(59301),Ot=Te(92310),y=Te.n(Ot),Pe=Te(36901),ye=Te(8654),z=Te(62487),E=Te(86013),re=Te(82855),oe=Te(48755),ee=Te(2171),de=Te(83397),x=Te(31756),ae=Te(56553),ie=Te(24971),se=Te(70045),ue=Te(23826),pe=Te(53075);function he(Ae){return!!(Ae.prefix||Ae.suffix||Ae.allowClear||Ae.showCount)}var ge=function(Ae,Ne){var Be={};for(var De in Ae)Object.prototype.hasOwnProperty.call(Ae,De)&&Ne.indexOf(De)<0&&(Be[De]=Ae[De]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,De=Object.getOwnPropertySymbols(Ae);we<De.length;we++)Ne.indexOf(De[we])<0&&Object.prototype.propertyIsEnumerable.call(Ae,De[we])&&(Be[De[we]]=Ae[De[we]]);return Be},xe=(0,te.forwardRef)((Ae,Ne)=>{const{prefixCls:Be,bordered:De=!0,status:we,size:Ce,disabled:Oe,onBlur:je,onFocus:Fe,suffix:ke,allowClear:Ee,addonAfter:Ge,addonBefore:Ke,className:Ve,style:it,styles:Le,rootClassName:Ue,onChange:tt,classNames:nt,variant:et}=Ae,Ze=ge(Ae,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Ye,direction:Xe,allowClear:st,autoComplete:Qe,className:ht,style:at,classNames:qe,styles:_e}=(0,oe.dj)("input"),Re=Ye("input",Be),ne=(0,te.useRef)(null),fe=(0,de.Z)(Re),[Me,He,be]=(0,pe.TI)(Re,Ue),[ve]=(0,pe.ZP)(Re,fe),{compactSize:Ie,compactItemClassnames:$e}=(0,se.ri)(Re,Xe),We=(0,x.Z)(rn=>{var wt;return(wt=Ce!=null?Ce:Ie)!==null&&wt!==void 0?wt:rn}),Je=te.useContext(ee.Z),ct=Oe!=null?Oe:Je,{status:ot,hasFeedback:ft,feedbackIcon:ut}=(0,te.useContext)(ae.aM),lt=(0,re.F)(ot,we),At=he(Ae)||!!ft,yt=(0,te.useRef)(At),Rt=(0,ue.Z)(ne,!0),Pt=rn=>{Rt(),je==null||je(rn)},Tt=rn=>{Rt(),Fe==null||Fe(rn)},kt=rn=>{Rt(),tt==null||tt(rn)},Dt=(ft||ke)&&te.createElement(te.Fragment,null,ke,ft&&ut),gt=(0,E.Z)(Ee!=null?Ee:st),[It,Vt]=(0,ie.Z)("input",et,De);return Me(ve(te.createElement(Pe.default,Object.assign({ref:(0,ye.sQ)(Ne,ne),prefixCls:Re,autoComplete:Qe},Ze,{disabled:ct,onBlur:Pt,onFocus:Tt,style:Object.assign(Object.assign({},at),it),styles:Object.assign(Object.assign({},_e),Le),suffix:Dt,allowClear:gt,className:y()(Ve,Ue,be,fe,$e,ht),onChange:kt,addonBefore:Ke&&te.createElement(z.Z,{form:!0,space:!0},Ke),addonAfter:Ge&&te.createElement(z.Z,{form:!0,space:!0},Ge),classNames:Object.assign(Object.assign(Object.assign({},nt),qe),{input:y()({[`${Re}-sm`]:We==="small",[`${Re}-lg`]:We==="large",[`${Re}-rtl`]:Xe==="rtl"},nt==null?void 0:nt.input,qe.input,He),variant:y()({[`${Re}-${It}`]:Vt},(0,re.Z)(Re,lt)),affixWrapper:y()({[`${Re}-affix-wrapper-sm`]:We==="small",[`${Re}-affix-wrapper-lg`]:We==="large",[`${Re}-affix-wrapper-rtl`]:Xe==="rtl"},He),wrapper:y()({[`${Re}-group-rtl`]:Xe==="rtl"},He),groupWrapper:y()({[`${Re}-group-wrapper-sm`]:We==="small",[`${Re}-group-wrapper-lg`]:We==="large",[`${Re}-group-wrapper-rtl`]:Xe==="rtl",[`${Re}-group-wrapper-${It}`]:Vt},(0,re.Z)(`${Re}-group-wrapper`,lt,ft),He)})}))))})},79809:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Ne}});var te=Te(59301),Ot=Te(92310),y=Te.n(Ot),Pe=Te(22711),ye=Te(86013),z=Te(82855),E=Te(48755),re=Te(2171),oe=Te(83397),ee=Te(31756),de=Te(56553),x=Te(24971),ae=Te(70045),ie=Te(30292),se=Te(53075),ue=Te(16931),pe=Te(51636),he=Te(64910);const ge=Be=>{const{componentCls:De,paddingLG:we}=Be,Ce=`${De}-textarea`;return{[`textarea${De}`]:{maxWidth:"100%",height:"auto",minHeight:Be.controlHeight,lineHeight:Be.lineHeight,verticalAlign:"bottom",transition:`all ${Be.motionDurationSlow}`,resize:"vertical",[`&${De}-mouse-active`]:{transition:`all ${Be.motionDurationSlow}, height 0s, width 0s`}},[`${De}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Ce]:{position:"relative","&-show-count":{[`> ${De}`]:{height:"100%"},[`${De}-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 > ${De},
&-affix-wrapper${Ce}-has-feedback ${De}
`]:{paddingInlineEnd:we},[`&-affix-wrapper${De}-affix-wrapper`]:{padding:0,[`> textarea${De}`]:{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"}},[`${De}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${De}-clear-icon`]:{position:"absolute",insetInlineEnd:Be.paddingInline,insetBlockStart:Be.paddingXS},[`${Ce}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Be.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${De}-affix-wrapper-sm`]:{[`${De}-suffix`]:{[`${De}-clear-icon`]:{insetInlineEnd:Be.paddingInlineSM}}}}}};var me=(0,ue.I$)(["Input","TextArea"],Be=>{const De=(0,pe.mergeToken)(Be,(0,he.e)(Be));return[ge(De)]},he.T,{resetFont:!1}),xe=function(Be,De){var we={};for(var Ce in Be)Object.prototype.hasOwnProperty.call(Be,Ce)&&De.indexOf(Ce)<0&&(we[Ce]=Be[Ce]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Ce=Object.getOwnPropertySymbols(Be);Oe<Ce.length;Oe++)De.indexOf(Ce[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Be,Ce[Oe])&&(we[Ce[Oe]]=Be[Ce[Oe]]);return we},Ne=(0,te.forwardRef)((Be,De)=>{var we;const{prefixCls:Ce,bordered:Oe=!0,size:je,disabled:Fe,status:ke,allowClear:Ee,classNames:Ge,rootClassName:Ke,className:Ve,style:it,styles:Le,variant:Ue,showCount:tt,onMouseDown:nt,onResize:et}=Be,Ze=xe(Be,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Ye,direction:Xe,allowClear:st,autoComplete:Qe,className:ht,style:at,classNames:qe,styles:_e}=(0,E.dj)("textArea"),Re=te.useContext(re.Z),ne=Fe!=null?Fe:Re,{status:fe,hasFeedback:Me,feedbackIcon:He}=te.useContext(de.aM),be=(0,z.F)(fe,ke),ve=te.useRef(null);te.useImperativeHandle(De,()=>{var Vt;return{resizableTextArea:(Vt=ve.current)===null||Vt===void 0?void 0:Vt.resizableTextArea,focus:rn=>{var wt,Ct;(0,ie.nH)((Ct=(wt=ve.current)===null||wt===void 0?void 0:wt.resizableTextArea)===null||Ct===void 0?void 0:Ct.textArea,rn)},blur:()=>{var rn;return(rn=ve.current)===null||rn===void 0?void 0:rn.blur()}}});const Ie=Ye("input",Ce),$e=(0,oe.Z)(Ie),[We,Je,ct]=(0,se.TI)(Ie,Ke),[ot]=me(Ie,$e),{compactSize:ft,compactItemClassnames:ut}=(0,ae.ri)(Ie,Xe),lt=(0,ee.Z)(Vt=>{var rn;return(rn=je!=null?je:ft)!==null&&rn!==void 0?rn:Vt}),[At,yt]=(0,x.Z)("textArea",Ue,Oe),Rt=(0,ye.Z)(Ee!=null?Ee:st),[Pt,Tt]=te.useState(!1),[kt,Dt]=te.useState(!1),gt=Vt=>{Tt(!0),nt==null||nt(Vt);const rn=()=>{Tt(!1),document.removeEventListener("mouseup",rn)};document.addEventListener("mouseup",rn)},It=Vt=>{var rn,wt;if(et==null||et(Vt),Pt&&typeof getComputedStyle=="function"){const Ct=(wt=(rn=ve.current)===null||rn===void 0?void 0:rn.nativeElement)===null||wt===void 0?void 0:wt.querySelector("textarea");Ct&&getComputedStyle(Ct).resize==="both"&&Dt(!0)}};return We(ot(te.createElement(Pe.default,Object.assign({autoComplete:Qe},Ze,{style:Object.assign(Object.assign({},at),it),styles:Object.assign(Object.assign({},_e),Le),disabled:ne,allowClear:Rt,className:y()(ct,$e,Ve,Ke,ut,ht,kt&&`${Ie}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Ge),qe),{textarea:y()({[`${Ie}-sm`]:lt==="small",[`${Ie}-lg`]:lt==="large"},Je,Ge==null?void 0:Ge.textarea,qe.textarea,Pt&&`${Ie}-mouse-active`),variant:y()({[`${Ie}-${At}`]:yt},(0,z.Z)(Ie,be)),affixWrapper:y()(`${Ie}-textarea-affix-wrapper`,{[`${Ie}-affix-wrapper-rtl`]:Xe==="rtl",[`${Ie}-affix-wrapper-sm`]:lt==="small",[`${Ie}-affix-wrapper-lg`]:lt==="large",[`${Ie}-textarea-show-count`]:tt||((we=Be.count)===null||we===void 0?void 0:we.show)},Je)}),prefixCls:Ie,suffix:Me&&te.createElement("span",{className:`${Ie}-textarea-suffix`},He),showCount:tt,ref:ve,onResize:It,onMouseDown:gt}))))})},23826:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Ot}});var te=Te(59301);function Ot(y,Pe){const ye=(0,te.useRef)([]),z=()=>{ye.current.push(setTimeout(()=>{var E,re,oe,ee;!((E=y.current)===null||E===void 0)&&E.input&&((re=y.current)===null||re===void 0?void 0:re.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)(()=>(Pe&&z(),()=>ye.current.forEach(E=>{E&&clearTimeout(E)})),[]),z}},37568:function(wn,Yt,Te){"use strict";Te.d(Yt,{default:function(){return qe}});var te=Te(59301),Ot=Te(92310),y=Te.n(Ot),Pe=Te(48755),ye=Te(56553),z=Te(53075),re=_e=>{const{getPrefixCls:Re,direction:ne}=(0,te.useContext)(Pe.E_),{prefixCls:fe,className:Me}=_e,He=Re("input-group",fe),be=Re("input"),[ve,Ie,$e]=(0,z.ZP)(be),We=y()(He,$e,{[`${He}-lg`]:_e.size==="large",[`${He}-sm`]:_e.size==="small",[`${He}-compact`]:_e.compact,[`${He}-rtl`]:ne==="rtl"},Ie,Me),Je=(0,te.useContext)(ye.aM),ct=(0,te.useMemo)(()=>Object.assign(Object.assign({},Je),{isFormItemInput:!1}),[Je]);return ve(te.createElement("span",{className:We,style:_e.style,onMouseEnter:_e.onMouseEnter,onMouseLeave:_e.onMouseLeave,onFocus:_e.onFocus,onBlur:_e.onBlur},te.createElement(ye.aM.Provider,{value:ct},_e.children)))},oe=Te(49397),ee=Te(94480),de=Te(6089),x=Te(26112),ae=Te(82855),ie=Te(31756),se=Te(16931),ue=Te(51636),pe=Te(64910);const he=_e=>{const{componentCls:Re,paddingXS:ne}=_e;return{[Re]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ne,"&-rtl":{direction:"rtl"},[`${Re}-input`]:{textAlign:"center",paddingInline:_e.paddingXXS},[`&${Re}-sm ${Re}-input`]:{paddingInline:_e.calc(_e.paddingXXS).div(2).equal()},[`&${Re}-lg ${Re}-input`]:{paddingInline:_e.paddingXS}}}};var ge=(0,se.I$)(["Input","OTP"],_e=>{const Re=(0,ue.mergeToken)(_e,(0,pe.e)(_e));return[he(Re)]},pe.T),me=Te(16089),xe=function(_e,Re){var ne={};for(var fe in _e)Object.prototype.hasOwnProperty.call(_e,fe)&&Re.indexOf(fe)<0&&(ne[fe]=_e[fe]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,fe=Object.getOwnPropertySymbols(_e);Me<fe.length;Me++)Re.indexOf(fe[Me])<0&&Object.prototype.propertyIsEnumerable.call(_e,fe[Me])&&(ne[fe[Me]]=_e[fe[Me]]);return ne},Ne=te.forwardRef((_e,Re)=>{const{value:ne,onChange:fe,onActiveChange:Me,index:He,mask:be}=_e,ve=xe(_e,["value","onChange","onActiveChange","index","mask"]),Ie=ne&&typeof be=="string"?be:ne,$e=ft=>{fe(He,ft.target.value)},We=te.useRef(null);te.useImperativeHandle(Re,()=>We.current);const Je=()=>{(0,me.Z)(()=>{var ft;const ut=(ft=We.current)===null||ft===void 0?void 0:ft.input;document.activeElement===ut&&ut&&ut.select()})},ct=ft=>{const{key:ut,ctrlKey:lt,metaKey:At}=ft;ut==="ArrowLeft"?Me(He-1):ut==="ArrowRight"?Me(He+1):ut==="z"&&(lt||At)&&ft.preventDefault(),Je()},ot=ft=>{ft.key==="Backspace"&&!ne&&Me(He-1),Je()};return te.createElement(oe.Z,Object.assign({type:be===!0?"password":"text"},ve,{ref:We,value:Ie,onInput:$e,onFocus:Je,onKeyDown:ct,onKeyUp:ot,onMouseDown:Je,onMouseUp:Je}))}),Be=function(_e,Re){var ne={};for(var fe in _e)Object.prototype.hasOwnProperty.call(_e,fe)&&Re.indexOf(fe)<0&&(ne[fe]=_e[fe]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,fe=Object.getOwnPropertySymbols(_e);Me<fe.length;Me++)Re.indexOf(fe[Me])<0&&Object.prototype.propertyIsEnumerable.call(_e,fe[Me])&&(ne[fe[Me]]=_e[fe[Me]]);return ne};function De(_e){return(_e||"").split("")}const we=_e=>{const{index:Re,prefixCls:ne,separator:fe}=_e,Me=typeof fe=="function"?fe(Re):fe;return Me?te.createElement("span",{className:`${ne}-separator`},Me):null};var Oe=te.forwardRef((_e,Re)=>{const{prefixCls:ne,length:fe=6,size:Me,defaultValue:He,value:be,onChange:ve,formatter:Ie,separator:$e,variant:We,disabled:Je,status:ct,autoFocus:ot,mask:ft,type:ut,onInput:lt,inputMode:At}=_e,yt=Be(_e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Rt,direction:Pt}=te.useContext(Pe.E_),Tt=Rt("otp",ne),kt=(0,x.Z)(yt,{aria:!0,data:!0,attr:!0}),[Dt,gt,It]=ge(Tt),Vt=(0,ie.Z)(Gt=>Me!=null?Me:Gt),rn=te.useContext(ye.aM),wt=(0,ae.F)(rn.status,ct),Ct=te.useMemo(()=>Object.assign(Object.assign({},rn),{status:wt,hasFeedback:!1,feedbackIcon:null}),[rn,wt]),Zt=te.useRef(null),en=te.useRef({});te.useImperativeHandle(Re,()=>({focus:()=>{var Gt;(Gt=en.current[0])===null||Gt===void 0||Gt.focus()},blur:()=>{var Gt;for(let Ut=0;Ut<fe;Ut+=1)(Gt=en.current[Ut])===null||Gt===void 0||Gt.blur()},nativeElement:Zt.current}));const ln=Gt=>Ie?Ie(Gt):Gt,[yn,Bn]=te.useState(()=>De(ln(He||"")));te.useEffect(()=>{be!==void 0&&Bn(De(be))},[be]);const Wn=(0,de.Z)(Gt=>{Bn(Gt),lt&&lt(Gt),ve&&Gt.length===fe&&Gt.every(Ut=>Ut)&&Gt.some((Ut,Lt)=>yn[Lt]!==Ut)&&ve(Gt.join(""))}),gn=(0,de.Z)((Gt,Ut)=>{let Lt=(0,ee.Z)(yn);for(let un=0;un<Gt;un+=1)Lt[un]||(Lt[un]="");Ut.length<=1?Lt[Gt]=Ut:Lt=Lt.slice(0,Gt).concat(De(Ut)),Lt=Lt.slice(0,fe);for(let un=Lt.length-1;un>=0&&!Lt[un];un-=1)Lt.pop();const sn=ln(Lt.map(un=>un||" ").join(""));return Lt=De(sn).map((un,Cn)=>un===" "&&!Lt[Cn]?Lt[Cn]:un),Lt}),Ln=(Gt,Ut)=>{var Lt;const sn=gn(Gt,Ut),un=Math.min(Gt+Ut.length,fe-1);un!==Gt&&sn[Gt]!==void 0&&((Lt=en.current[un])===null||Lt===void 0||Lt.focus()),Wn(sn)},pn=Gt=>{var Ut;(Ut=en.current[Gt])===null||Ut===void 0||Ut.focus()},In={variant:We,disabled:Je,status:wt,mask:ft,type:ut,inputMode:At};return Dt(te.createElement("div",Object.assign({},kt,{ref:Zt,className:y()(Tt,{[`${Tt}-sm`]:Vt==="small",[`${Tt}-lg`]:Vt==="large",[`${Tt}-rtl`]:Pt==="rtl"},It,gt)}),te.createElement(ye.aM.Provider,{value:Ct},Array.from({length:fe}).map((Gt,Ut)=>{const Lt=`otp-${Ut}`,sn=yn[Ut]||"";return te.createElement(te.Fragment,{key:Lt},te.createElement(Ne,Object.assign({ref:un=>{en.current[Ut]=un},index:Ut,size:Vt,htmlSize:1,className:`${Tt}-input`,onChange:Ln,value:sn,onActiveChange:pn,autoFocus:Ut===0&&ot},In)),Ut<fe-1&&te.createElement(we,{separator:$e,index:Ut,prefixCls:Tt}))}))))}),je=Te(73331),Fe=Te(15277),ke=Te(2738),Ee=Te(8654),Ge=Te(2171),Ke=Te(23826),Ve=function(_e,Re){var ne={};for(var fe in _e)Object.prototype.hasOwnProperty.call(_e,fe)&&Re.indexOf(fe)<0&&(ne[fe]=_e[fe]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,fe=Object.getOwnPropertySymbols(_e);Me<fe.length;Me++)Re.indexOf(fe[Me])<0&&Object.prototype.propertyIsEnumerable.call(_e,fe[Me])&&(ne[fe[Me]]=_e[fe[Me]]);return ne};const it=_e=>_e?te.createElement(Fe.Z,null):te.createElement(je.Z,null),Le={click:"onClick",hover:"onMouseOver"};var tt=te.forwardRef((_e,Re)=>{const{disabled:ne,action:fe="click",visibilityToggle:Me=!0,iconRender:He=it}=_e,be=te.useContext(Ge.Z),ve=ne!=null?ne:be,Ie=typeof Me=="object"&&Me.visible!==void 0,[$e,We]=(0,te.useState)(()=>Ie?Me.visible:!1),Je=(0,te.useRef)(null);te.useEffect(()=>{Ie&&We(Me.visible)},[Ie,Me]);const ct=(0,Ke.Z)(Je),ot=()=>{var Vt;if(ve)return;$e&&ct();const rn=!$e;We(rn),typeof Me=="object"&&((Vt=Me.onVisibleChange)===null||Vt===void 0||Vt.call(Me,rn))},ft=Vt=>{const rn=Le[fe]||"",wt=He($e),Ct={[rn]:ot,className:`${Vt}-icon`,key:"passwordIcon",onMouseDown:Zt=>{Zt.preventDefault()},onMouseUp:Zt=>{Zt.preventDefault()}};return te.cloneElement(te.isValidElement(wt)?wt:te.createElement("span",null,wt),Ct)},{className:ut,prefixCls:lt,inputPrefixCls:At,size:yt}=_e,Rt=Ve(_e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Pt}=te.useContext(Pe.E_),Tt=Pt("input",At),kt=Pt("input-password",lt),Dt=Me&&ft(kt),gt=y()(kt,ut,{[`${kt}-${yt}`]:!!yt}),It=Object.assign(Object.assign({},(0,ke.Z)(Rt,["suffix","iconRender","visibilityToggle"])),{type:$e?"text":"password",className:gt,prefixCls:Tt,suffix:Dt});return yt&&(It.size=yt),te.createElement(oe.Z,Object.assign({ref:(0,Ee.sQ)(Re,Je)},It))}),nt=Te(47472),et=Te(22703),Ze=Te(7939),Ye=Te(70045),Xe=function(_e,Re){var ne={};for(var fe in _e)Object.prototype.hasOwnProperty.call(_e,fe)&&Re.indexOf(fe)<0&&(ne[fe]=_e[fe]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,fe=Object.getOwnPropertySymbols(_e);Me<fe.length;Me++)Re.indexOf(fe[Me])<0&&Object.prototype.propertyIsEnumerable.call(_e,fe[Me])&&(ne[fe[Me]]=_e[fe[Me]]);return ne},Qe=te.forwardRef((_e,Re)=>{const{prefixCls:ne,inputPrefixCls:fe,className:Me,size:He,suffix:be,enterButton:ve=!1,addonAfter:Ie,loading:$e,disabled:We,onSearch:Je,onChange:ct,onCompositionStart:ot,onCompositionEnd:ft}=_e,ut=Xe(_e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:lt,direction:At}=te.useContext(Pe.E_),yt=te.useRef(!1),Rt=lt("input-search",ne),Pt=lt("input",fe),{compactSize:Tt}=(0,Ye.ri)(Rt,At),kt=(0,ie.Z)(Ln=>{var pn;return(pn=He!=null?He:Tt)!==null&&pn!==void 0?pn:Ln}),Dt=te.useRef(null),gt=Ln=>{Ln!=null&&Ln.target&&Ln.type==="click"&&Je&&Je(Ln.target.value,Ln,{source:"clear"}),ct==null||ct(Ln)},It=Ln=>{var pn;document.activeElement===((pn=Dt.current)===null||pn===void 0?void 0:pn.input)&&Ln.preventDefault()},Vt=Ln=>{var pn,In;Je&&Je((In=(pn=Dt.current)===null||pn===void 0?void 0:pn.input)===null||In===void 0?void 0:In.value,Ln,{source:"input"})},rn=Ln=>{yt.current||$e||Vt(Ln)},wt=typeof ve=="boolean"?te.createElement(nt.Z,null):null,Ct=`${Rt}-button`;let Zt;const en=ve||{},ln=en.type&&en.type.__ANT_BUTTON===!0;ln||en.type==="button"?Zt=(0,et.Tm)(en,Object.assign({onMouseDown:It,onClick:Ln=>{var pn,In;(In=(pn=en==null?void 0:en.props)===null||pn===void 0?void 0:pn.onClick)===null||In===void 0||In.call(pn,Ln),Vt(Ln)},key:"enterButton"},ln?{className:Ct,size:kt}:{})):Zt=te.createElement(Ze.ZP,{className:Ct,type:ve?"primary":void 0,size:kt,disabled:We,key:"enterButton",onMouseDown:It,onClick:Vt,loading:$e,icon:wt},ve),Ie&&(Zt=[Zt,(0,et.Tm)(Ie,{key:"addonAfter"})]);const yn=y()(Rt,{[`${Rt}-rtl`]:At==="rtl",[`${Rt}-${kt}`]:!!kt,[`${Rt}-with-button`]:!!ve},Me),Bn=Object.assign(Object.assign({},ut),{className:yn,prefixCls:Pt,type:"search"}),Wn=Ln=>{yt.current=!0,ot==null||ot(Ln)},gn=Ln=>{yt.current=!1,ft==null||ft(Ln)};return te.createElement(oe.Z,Object.assign({ref:(0,Ee.sQ)(Dt,Re),onPressEnter:rn},Bn,{size:kt,onCompositionStart:Wn,onCompositionEnd:gn,addonAfter:Zt,suffix:be,onChange:gt,disabled:We}))}),ht=Te(79809);const at=oe.Z;at.Group=re,at.Search=Qe,at.TextArea=ht.Z,at.Password=tt,at.OTP=Oe;var qe=at},24303:function(wn,Yt,Te){"use strict";Te.d(Yt,{D:function(){return Be},Z:function(){return Ce}});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"},Pe=y,ye=Te(7657),z=function(je,Fe){return te.createElement(ye.Z,(0,Ot.Z)({},je,{ref:Fe,icon:Pe}))},E=te.forwardRef(z),re=E,oe=Te(33853),ee=Te(38819),de=Te(92310),x=Te.n(de),ae=Te(2738),ie=Te(48755),se=Te(6989),ue=Te(36237),pe=Te(48923),he=Te(16931);const ge=Oe=>{const{componentCls:je,siderBg:Fe,motionDurationMid:ke,motionDurationSlow:Ee,antCls:Ge,triggerHeight:Ke,triggerColor:Ve,triggerBg:it,headerHeight:Le,zeroTriggerWidth:Ue,zeroTriggerHeight:tt,borderRadiusLG:nt,lightSiderBg:et,lightTriggerColor:Ze,lightTriggerBg:Ye,bodyBg:Xe}=Oe;return{[je]:{position:"relative",minWidth:0,background:Fe,transition:`all ${ke}, background 0s`,"&-has-trigger":{paddingBottom:Ke},"&-right":{order:1},[`${je}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ge}-menu${Ge}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${je}-children`]:{overflow:"hidden"},[`${je}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Ke,color:Ve,lineHeight:(0,ue.unit)(Ke),textAlign:"center",background:it,cursor:"pointer",transition:`all ${ke}`},[`${je}-zero-width-trigger`]:{position:"absolute",top:Le,insetInlineEnd:Oe.calc(Ue).mul(-1).equal(),zIndex:1,width:Ue,height:tt,color:Ve,fontSize:Oe.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Fe,borderRadius:`0 ${(0,ue.unit)(nt)} ${(0,ue.unit)(nt)} 0`,cursor:"pointer",transition:`background ${Ee} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ee}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Oe.calc(Ue).mul(-1).equal(),borderRadius:`${(0,ue.unit)(nt)} 0 0 ${(0,ue.unit)(nt)}`}},"&-light":{background:et,[`${je}-trigger`]:{color:Ze,background:Ye},[`${je}-zero-width-trigger`]:{color:Ze,background:Ye,border:`1px solid ${Xe}`,borderInlineStart:0}}}}};var me=(0,he.I$)(["Layout","Sider"],Oe=>[ge(Oe)],pe.eh,{deprecatedTokens:pe.jn}),xe=function(Oe,je){var Fe={};for(var ke in Oe)Object.prototype.hasOwnProperty.call(Oe,ke)&&je.indexOf(ke)<0&&(Fe[ke]=Oe[ke]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,ke=Object.getOwnPropertySymbols(Oe);Ee<ke.length;Ee++)je.indexOf(ke[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Oe,ke[Ee])&&(Fe[ke[Ee]]=Oe[ke[Ee]]);return Fe};const Ae={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Ne=Oe=>!Number.isNaN(Number.parseFloat(Oe))&&isFinite(Oe),Be=te.createContext({}),De=(()=>{let Oe=0;return function(){let je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Oe+=1,`${je}${Oe}`}})();var Ce=te.forwardRef((Oe,je)=>{const{prefixCls:Fe,className:ke,trigger:Ee,children:Ge,defaultCollapsed:Ke=!1,theme:Ve="dark",style:it={},collapsible:Le=!1,reverseArrow:Ue=!1,width:tt=200,collapsedWidth:nt=80,zeroWidthTriggerStyle:et,breakpoint:Ze,onCollapse:Ye,onBreakpoint:Xe}=Oe,st=xe(Oe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Qe}=(0,te.useContext)(se.V),[ht,at]=(0,te.useState)("collapsed"in Oe?Oe.collapsed:Ke),[qe,_e]=(0,te.useState)(!1);(0,te.useEffect)(()=>{"collapsed"in Oe&&at(Oe.collapsed)},[Oe.collapsed]);const Re=(kt,Dt)=>{"collapsed"in Oe||at(kt),Ye==null||Ye(kt,Dt)},{getPrefixCls:ne,direction:fe}=(0,te.useContext)(ie.E_),Me=ne("layout-sider",Fe),[He,be,ve]=me(Me),Ie=(0,te.useRef)(null);Ie.current=kt=>{_e(kt.matches),Xe==null||Xe(kt.matches),ht!==kt.matches&&Re(kt.matches,"responsive")},(0,te.useEffect)(()=>{function kt(gt){return Ie.current(gt)}let Dt;if(typeof window!="undefined"){const{matchMedia:gt}=window;if(gt&&Ze&&Ze in Ae){Dt=gt(`screen and (max-width: ${Ae[Ze]})`);try{Dt.addEventListener("change",kt)}catch(It){Dt.addListener(kt)}kt(Dt)}}return()=>{try{Dt==null||Dt.removeEventListener("change",kt)}catch(gt){Dt==null||Dt.removeListener(kt)}}},[Ze]),(0,te.useEffect)(()=>{const kt=De("ant-sider-");return Qe.addSider(kt),()=>Qe.removeSider(kt)},[]);const $e=()=>{Re(!ht,"clickTrigger")},We=(0,ae.Z)(st,["collapsed"]),Je=ht?nt:tt,ct=Ne(Je)?`${Je}px`:String(Je),ot=parseFloat(String(nt||0))===0?te.createElement("span",{onClick:$e,className:x()(`${Me}-zero-width-trigger`,`${Me}-zero-width-trigger-${Ue?"right":"left"}`),style:et},Ee||te.createElement(re,null)):null,ft=fe==="rtl"==!Ue,At={expanded:ft?te.createElement(ee.Z,null):te.createElement(oe.Z,null),collapsed:ft?te.createElement(oe.Z,null):te.createElement(ee.Z,null)}[ht?"collapsed":"expanded"],yt=Ee!==null?ot||te.createElement("div",{className:`${Me}-trigger`,onClick:$e,style:{width:ct}},Ee||At):null,Rt=Object.assign(Object.assign({},it),{flex:`0 0 ${ct}`,maxWidth:ct,minWidth:ct,width:ct}),Pt=x()(Me,`${Me}-${Ve}`,{[`${Me}-collapsed`]:!!ht,[`${Me}-has-trigger`]:Le&&Ee!==null&&!ot,[`${Me}-below`]:!!qe,[`${Me}-zero-width`]:parseFloat(ct)===0},ke,be,ve),Tt=te.useMemo(()=>({siderCollapsed:ht}),[ht]);return He(te.createElement(Be.Provider,{value:Tt},te.createElement("aside",Object.assign({className:Pt},We,{style:Rt,ref:je}),te.createElement("div",{className:`${Me}-children`},Ge),Le||qe&&ot?yt:null)))})},6989:function(wn,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(wn,Yt,Te){"use strict";Te.d(Yt,{eh:function(){return Pe},jn:function(){return ye}});var te=Te(36237),Ot=Te(16931);const y=z=>{const{antCls:E,componentCls:re,colorText:oe,footerBg:ee,headerHeight:de,headerPadding:x,headerColor:ae,footerPadding:ie,fontSize:se,bodyBg:ue,headerBg:pe}=z;return{[re]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ue,"&, *":{boxSizing:"border-box"},[`&${re}-has-sider`]:{flexDirection:"row",[`> ${re}, > ${re}-content`]:{width:0}},[`${re}-header, &${re}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${re}-header`]:{height:de,padding:x,color:ae,lineHeight:(0,te.unit)(de),background:pe,[`${E}-menu`]:{lineHeight:"inherit"}},[`${re}-footer`]:{padding:ie,color:oe,fontSize:se,background:ee},[`${re}-content`]:{flex:"auto",color:oe,minHeight:0}}},Pe=z=>{const{colorBgLayout:E,controlHeight:re,controlHeightLG:oe,colorText:ee,controlHeightSM:de,marginXXS:x,colorTextLightSolid:ae,colorBgContainer:ie}=z,se=oe*1.25;return{colorBgHeader:"#001529",colorBgBody:E,colorBgTrigger:"#002140",bodyBg:E,headerBg:"#001529",headerHeight:re*2,headerPadding:`0 ${se}px`,headerColor:ee,footerPadding:`${de}px ${se}px`,footerBg:E,siderBg:"#001529",triggerHeight:oe+x*2,triggerBg:"#002140",triggerColor:ae,zeroTriggerWidth:oe,zeroTriggerHeight:oe,lightSiderBg:ie,lightTriggerBg:ie,lightTriggerColor:ee}},ye=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Yt.ZP=(0,Ot.I$)("Layout",z=>[y(z)],Pe,{deprecatedTokens:ye})},78857:function(wn,Yt,Te){"use strict";Te.d(Yt,{J:function(){return z}});var te=Te(59301),Ot=Te(8654),y=Te(62487),Pe=function(E,re){var oe={};for(var ee in E)Object.prototype.hasOwnProperty.call(E,ee)&&re.indexOf(ee)<0&&(oe[ee]=E[ee]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,ee=Object.getOwnPropertySymbols(E);de<ee.length;de++)re.indexOf(ee[de])<0&&Object.prototype.propertyIsEnumerable.call(E,ee[de])&&(oe[ee[de]]=E[ee[de]]);return oe};const ye=te.createContext(null),z=te.forwardRef((E,re)=>{const{children:oe}=E,ee=Pe(E,["children"]),de=te.useContext(ye),x=te.useMemo(()=>Object.assign(Object.assign({},de),ee),[de,ee.prefixCls,ee.mode,ee.selectable,ee.rootClassName]),ae=(0,Ot.t4)(oe),ie=(0,Ot.x1)(re,ae?(0,Ot.C4)(oe):null);return te.createElement(ye.Provider,{value:x},te.createElement(y.Z,{space:!0},ae?te.cloneElement(oe,{ref:ie}):oe))});Yt.Z=ye},93041:function(wn,Yt,Te){"use strict";Te.d(Yt,{default:function(){return He}});var te=Te(59301),Ot=Te(28321),y=Te(24303),Pe=Te(18785),ye=Te(92310),z=Te.n(ye),E=Te(6089),re=Te(2738),oe=Te(86641),ee=Te(22703),de=Te(48755),x=Te(83397),ie=(0,te.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),se=function(be,ve){var Ie={};for(var $e in be)Object.prototype.hasOwnProperty.call(be,$e)&&ve.indexOf($e)<0&&(Ie[$e]=be[$e]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,$e=Object.getOwnPropertySymbols(be);We<$e.length;We++)ve.indexOf($e[We])<0&&Object.prototype.propertyIsEnumerable.call(be,$e[We])&&(Ie[$e[We]]=be[$e[We]]);return Ie},pe=be=>{const{prefixCls:ve,className:Ie,dashed:$e}=be,We=se(be,["prefixCls","className","dashed"]),{getPrefixCls:Je}=te.useContext(de.E_),ct=Je("menu",ve),ot=z()({[`${ct}-item-divider-dashed`]:!!$e},Ie);return te.createElement(Ot.iz,Object.assign({className:ot},We))},he=Te(11592),ge=Te(25399),xe=be=>{var ve;const{className:Ie,children:$e,icon:We,title:Je,danger:ct,extra:ot}=be,{prefixCls:ft,firstLevel:ut,direction:lt,disableMenuItemTitleTooltip:At,inlineCollapsed:yt}=te.useContext(ie),Rt=It=>{const Vt=$e==null?void 0:$e[0],rn=te.createElement("span",{className:z()(`${ft}-title-content`,{[`${ft}-title-content-with-extra`]:!!ot||ot===0})},$e);return(!We||te.isValidElement($e)&&$e.type==="span")&&$e&&It&&ut&&typeof Vt=="string"?te.createElement("div",{className:`${ft}-inline-collapsed-noicon`},Vt.charAt(0)):rn},{siderCollapsed:Pt}=te.useContext(y.D);let Tt=Je;typeof Je=="undefined"?Tt=ut?$e:"":Je===!1&&(Tt="");const kt={title:Tt};!Pt&&!yt&&(kt.title=null,kt.open=!1);const Dt=(0,he.Z)($e).length;let gt=te.createElement(Ot.ck,Object.assign({},(0,re.Z)(be,["title","icon","danger"]),{className:z()({[`${ft}-item-danger`]:ct,[`${ft}-item-only-child`]:(We?Dt+1:Dt)===1},Ie),title:typeof Je=="string"?Je:void 0}),(0,ee.Tm)(We,{className:z()(te.isValidElement(We)?(ve=We.props)===null||ve===void 0?void 0:ve.className:"",`${ft}-item-icon`)}),Rt(yt));return At||(gt=te.createElement(ge.Z,Object.assign({},kt,{placement:lt==="rtl"?"left":"right",classNames:{root:`${ft}-inline-collapsed-tooltip`}}),gt)),gt},Ae=Te(78857),Ne=Te(36237),Be=Te(17835),De=Te(63356),we=Te(34961),Ce=Te(46e3),Oe=Te(34925),je=Te(16931),Fe=Te(51636),Ee=be=>{const{componentCls:ve,motionDurationSlow:Ie,horizontalLineHeight:$e,colorSplit:We,lineWidth:Je,lineType:ct,itemPaddingInline:ot}=be;return{[`${ve}-horizontal`]:{lineHeight:$e,border:0,borderBottom:`${(0,Ne.unit)(Je)} ${ct} ${We}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ve}-item, ${ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ot},[`> ${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"}}}},Ke=be=>{let{componentCls:ve,menuArrowOffset:Ie,calc:$e}=be;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,Ne.unit)($e(Ie).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,Ne.unit)(Ie)})`}}}}};const Ve=be=>Object.assign({},(0,De.oN)(be));var Le=(be,ve)=>{const{componentCls:Ie,itemColor:$e,itemSelectedColor:We,subMenuItemSelectedColor:Je,groupTitleColor:ct,itemBg:ot,subMenuItemBg:ft,itemSelectedBg:ut,activeBarHeight:lt,activeBarWidth:At,activeBarBorderWidth:yt,motionDurationSlow:Rt,motionEaseInOut:Pt,motionEaseOut:Tt,itemPaddingInline:kt,motionDurationMid:Dt,itemHoverColor:gt,lineType:It,colorSplit:Vt,itemDisabledColor:rn,dangerItemColor:wt,dangerItemHoverColor:Ct,dangerItemSelectedColor:Zt,dangerItemActiveBg:en,dangerItemSelectedBg:ln,popupBg:yn,itemHoverBg:Bn,itemActiveBg:Wn,menuSubMenuBg:gn,horizontalItemSelectedColor:Ln,horizontalItemSelectedBg:pn,horizontalItemBorderRadius:In,horizontalItemHoverBg:Gt}=be;return{[`${Ie}-${ve}, ${Ie}-${ve} > ${Ie}`]:{color:$e,background:ot,[`&${Ie}-root:focus-visible`]:Object.assign({},Ve(be)),[`${Ie}-item`]:{"&-group-title, &-extra":{color:ct}},[`${Ie}-submenu-selected > ${Ie}-submenu-title`]:{color:Je},[`${Ie}-item, ${Ie}-submenu-title`]:{color:$e,[`&:not(${Ie}-item-disabled):focus-visible`]:Object.assign({},Ve(be))},[`${Ie}-item-disabled, ${Ie}-submenu-disabled`]:{color:`${rn} !important`},[`${Ie}-item:not(${Ie}-item-selected):not(${Ie}-submenu-selected)`]:{[`&:hover, > ${Ie}-submenu-title:hover`]:{color:gt}},[`&:not(${Ie}-horizontal)`]:{[`${Ie}-item:not(${Ie}-item-selected)`]:{"&:hover":{backgroundColor:Bn},"&:active":{backgroundColor:Wn}},[`${Ie}-submenu-title`]:{"&:hover":{backgroundColor:Bn},"&:active":{backgroundColor:Wn}}},[`${Ie}-item-danger`]:{color:wt,[`&${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:We,[`&${Ie}-item-danger`]:{color:Zt},"a, a:hover":{color:"inherit"}},[`& ${Ie}-item-selected`]:{backgroundColor:ut,[`&${Ie}-item-danger`]:{backgroundColor:ln}},[`&${Ie}-submenu > ${Ie}`]:{backgroundColor:gn},[`&${Ie}-popup > ${Ie}`]:{backgroundColor:yn},[`&${Ie}-submenu-popup > ${Ie}`]:{backgroundColor:yn},[`&${Ie}-horizontal`]:Object.assign(Object.assign({},ve==="dark"?{borderBottom:0}:{}),{[`> ${Ie}-item, > ${Ie}-submenu`]:{top:yt,marginTop:be.calc(yt).mul(-1).equal(),marginBottom:0,borderRadius:In,"&::after":{position:"absolute",insetInline:kt,bottom:0,borderBottom:`${(0,Ne.unit)(lt)} solid transparent`,transition:`border-color ${Rt} ${Pt}`,content:'""'},"&:hover, &-active, &-open":{background:Gt,"&::after":{borderBottomWidth:lt,borderBottomColor:Ln}},"&-selected":{color:Ln,backgroundColor:pn,"&:hover":{backgroundColor:pn},"&::after":{borderBottomWidth:lt,borderBottomColor:Ln}}}}),[`&${Ie}-root`]:{[`&${Ie}-inline, &${Ie}-vertical`]:{borderInlineEnd:`${(0,Ne.unit)(yt)} ${It} ${Vt}`}},[`&${Ie}-inline`]:{[`${Ie}-sub${Ie}-inline`]:{background:ft},[`${Ie}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,Ne.unit)(At)} solid ${We}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Dt} ${Tt}`,`opacity ${Dt} ${Tt}`].join(","),content:'""'},[`&${Ie}-item-danger`]:{"&::after":{borderInlineEndColor:Zt}}},[`${Ie}-selected, ${Ie}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Dt} ${Pt}`,`opacity ${Dt} ${Pt}`].join(",")}}}}}};const Ue=be=>{const{componentCls:ve,itemHeight:Ie,itemMarginInline:$e,padding:We,menuArrowSize:Je,marginXS:ct,itemMarginBlock:ot,itemWidth:ft,itemPaddingInline:ut}=be,lt=be.calc(Je).add(We).add(ct).equal();return{[`${ve}-item`]:{position:"relative",overflow:"hidden"},[`${ve}-item, ${ve}-submenu-title`]:{height:Ie,lineHeight:(0,Ne.unit)(Ie),paddingInline:ut,overflow:"hidden",textOverflow:"ellipsis",marginInline:$e,marginBlock:ot,width:ft},[`> ${ve}-item,
> ${ve}-submenu > ${ve}-submenu-title`]:{height:Ie,lineHeight:(0,Ne.unit)(Ie)},[`${ve}-item-group-list ${ve}-submenu-title,
${ve}-submenu-title`]:{paddingInlineEnd:lt}}};var nt=be=>{const{componentCls:ve,iconCls:Ie,itemHeight:$e,colorTextLightSolid:We,dropdownWidth:Je,controlHeightLG:ct,motionEaseOut:ot,paddingXL:ft,itemMarginInline:ut,fontSizeLG:lt,motionDurationFast:At,motionDurationSlow:yt,paddingXS:Rt,boxShadowSecondary:Pt,collapsedWidth:Tt,collapsedIconSize:kt}=be,Dt={height:$e,lineHeight:(0,Ne.unit)($e),listStylePosition:"inside",listStyleType:"disc"};return[{[ve]:{"&-inline, &-vertical":Object.assign({[`&${ve}-root`]:{boxShadow:"none"}},Ue(be))},[`${ve}-submenu-popup`]:{[`${ve}-vertical`]:Object.assign(Object.assign({},Ue(be)),{boxShadow:Pt})}},{[`${ve}-submenu-popup ${ve}-vertical${ve}-sub`]:{minWidth:Je,maxHeight:`calc(100vh - ${(0,Ne.unit)(be.calc(ct).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 ${yt}`,`background ${yt}`,`padding ${At} ${ot}`].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`]:Dt,[`& ${ve}-item-group-title`]:{paddingInlineStart:ft}},[`${ve}-item`]:Dt}},{[`${ve}-inline-collapsed`]:{width:Tt,[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu ${ve}-submenu-title`]:{[`> ${ve}-inline-collapsed-noicon`]:{fontSize:lt,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,Ne.unit)(be.calc(kt).div(2).equal())} - ${(0,Ne.unit)(ut)})`,textOverflow:"clip",[`
${ve}-submenu-arrow,
${ve}-submenu-expand-icon
`]:{opacity:0},[`${ve}-item-icon, ${Ie}`]:{margin:0,fontSize:kt,lineHeight:(0,Ne.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:We}},[`${ve}-item-group-title`]:Object.assign(Object.assign({},De.vS),{paddingInline:Rt})}}]};const et=be=>{const{componentCls:ve,motionDurationSlow:Ie,motionDurationMid:$e,motionEaseInOut:We,motionEaseOut:Je,iconCls:ct,iconSize:ot,iconMarginInlineEnd:ft}=be;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) ${We}`].join(","),[`${ve}-item-icon, ${ct}`]:{minWidth:ot,fontSize:ot,transition:[`font-size ${$e} ${Je}`,`margin ${Ie} ${We}`,`color ${Ie}`].join(","),"+ span":{marginInlineStart:ft,opacity:1,transition:[`opacity ${Ie} ${We}`,`margin ${Ie}`,`color ${Ie}`].join(",")}},[`${ve}-item-icon`]:Object.assign({},(0,De.Ro)()),[`&${ve}-item-only-child`]:{[`> ${ct}, > ${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"}}}},Ze=be=>{const{componentCls:ve,motionDurationSlow:Ie,motionEaseInOut:$e,borderRadius:We,menuArrowSize:Je,menuArrowOffset:ct}=be;return{[`${ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:be.margin,width:Je,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ie} ${$e}, opacity ${Ie}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:be.calc(Je).mul(.6).equal(),height:be.calc(Je).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:We,transition:[`background ${Ie} ${$e}`,`transform ${Ie} ${$e}`,`top ${Ie} ${$e}`,`color ${Ie} ${$e}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,Ne.unit)(be.calc(ct).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,Ne.unit)(ct)})`}}}}},Ye=be=>{const{antCls:ve,componentCls:Ie,fontSize:$e,motionDurationSlow:We,motionDurationMid:Je,motionEaseInOut:ct,paddingXS:ot,padding:ft,colorSplit:ut,lineWidth:lt,zIndexPopup:At,borderRadiusLG:yt,subMenuItemBorderRadius:Rt,menuArrowSize:Pt,menuArrowOffset:Tt,lineType:kt,groupTitleLineHeight:Dt,groupTitleFontSize:gt}=be;return[{"":{[Ie]:Object.assign(Object.assign({},(0,De.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,De.Wf)(be)),(0,De.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:$e,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${We} 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:be.itemBorderRadius},[`${Ie}-item-group-title`]:{padding:`${(0,Ne.unit)(ot)} ${(0,Ne.unit)(ft)}`,fontSize:gt,lineHeight:Dt,transition:`all ${We}`},[`&-horizontal ${Ie}-submenu`]:{transition:[`border-color ${We} ${ct}`,`background ${We} ${ct}`].join(",")},[`${Ie}-submenu, ${Ie}-submenu-inline`]:{transition:[`border-color ${We} ${ct}`,`background ${We} ${ct}`,`padding ${Je} ${ct}`].join(",")},[`${Ie}-submenu ${Ie}-sub`]:{cursor:"initial",transition:[`background ${We} ${ct}`,`padding ${We} ${ct}`].join(",")},[`${Ie}-title-content`]:{transition:`color ${We}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${ve}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Ie}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:be.padding}},[`${Ie}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ie}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ut,borderStyle:kt,borderWidth:0,borderTopWidth:lt,marginBlock:lt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),et(be)),{[`${Ie}-item-group`]:{[`${Ie}-item-group-list`]:{margin:0,padding:0,[`${Ie}-item, ${Ie}-submenu-title`]:{paddingInline:`${(0,Ne.unit)(be.calc($e).mul(2).equal())} ${(0,Ne.unit)(ft)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:At,borderRadius:yt,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:yt},et(be)),Ze(be)),{[`${Ie}-item, ${Ie}-submenu > ${Ie}-submenu-title`]:{borderRadius:Rt},[`${Ie}-submenu-title::after`]:{transition:`transform ${We} ${ct}`}})},"\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:be.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:be.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:be.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:be.paddingXS}}}),Ze(be)),{[`&-inline-collapsed ${Ie}-submenu-arrow,
&-inline ${Ie}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,Ne.unit)(Tt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,Ne.unit)(be.calc(Tt).mul(-1).equal())})`}},[`${Ie}-submenu-open${Ie}-submenu-inline > ${Ie}-submenu-title > ${Ie}-submenu-arrow`]:{transform:`translateY(${(0,Ne.unit)(be.calc(Pt).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,Ne.unit)(be.calc(Tt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,Ne.unit)(Tt)})`}}})},{[`${ve}-layout-header`]:{[Ie]:{lineHeight:"inherit"}}}]},Xe=be=>{var ve,Ie,$e;const{colorPrimary:We,colorError:Je,colorTextDisabled:ct,colorErrorBg:ot,colorText:ft,colorTextDescription:ut,colorBgContainer:lt,colorFillAlter:At,colorFillContent:yt,lineWidth:Rt,lineWidthBold:Pt,controlItemBgActive:Tt,colorBgTextHover:kt,controlHeightLG:Dt,lineHeight:gt,colorBgElevated:It,marginXXS:Vt,padding:rn,fontSize:wt,controlHeightSM:Ct,fontSizeLG:Zt,colorTextLightSolid:en,colorErrorHover:ln}=be,yn=(ve=be.activeBarWidth)!==null&&ve!==void 0?ve:0,Bn=(Ie=be.activeBarBorderWidth)!==null&&Ie!==void 0?Ie:Rt,Wn=($e=be.itemMarginInline)!==null&&$e!==void 0?$e:be.marginXXS,gn=new Be.FastColor(en).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:be.zIndexPopupBase+50,radiusItem:be.borderRadiusLG,itemBorderRadius:be.borderRadiusLG,radiusSubMenuItem:be.borderRadiusSM,subMenuItemBorderRadius:be.borderRadiusSM,colorItemText:ft,itemColor:ft,colorItemTextHover:ft,itemHoverColor:ft,colorItemTextHoverHorizontal:We,horizontalItemHoverColor:We,colorGroupTitle:ut,groupTitleColor:ut,colorItemTextSelected:We,itemSelectedColor:We,subMenuItemSelectedColor:We,colorItemTextSelectedHorizontal:We,horizontalItemSelectedColor:We,colorItemBg:lt,itemBg:lt,colorItemBgHover:kt,itemHoverBg:kt,colorItemBgActive:yt,itemActiveBg:Tt,colorSubItemBg:At,subMenuItemBg:At,colorItemBgSelected:Tt,itemSelectedBg:Tt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:yn,colorActiveBarHeight:Pt,activeBarHeight:Pt,colorActiveBarBorderSize:Rt,activeBarBorderWidth:Bn,colorItemTextDisabled:ct,itemDisabledColor:ct,colorDangerItemText:Je,dangerItemColor:Je,colorDangerItemTextHover:Je,dangerItemHoverColor:Je,colorDangerItemTextSelected:Je,dangerItemSelectedColor:Je,colorDangerItemBgActive:ot,dangerItemActiveBg:ot,colorDangerItemBgSelected:ot,dangerItemSelectedBg:ot,itemMarginInline:Wn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Dt,groupTitleLineHeight:gt,collapsedWidth:Dt*2,popupBg:It,itemMarginBlock:Vt,itemPaddingInline:rn,horizontalLineHeight:`${Dt*1.15}px`,iconSize:wt,iconMarginInlineEnd:Ct-wt,collapsedIconSize:Zt,groupTitleFontSize:wt,darkItemDisabledColor:new Be.FastColor(en).setA(.25).toRgbString(),darkItemColor:gn,darkDangerItemColor:Je,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:en,darkItemSelectedBg:We,darkDangerItemSelectedBg:Je,darkItemHoverBg:"transparent",darkGroupTitleColor:gn,darkItemHoverColor:en,darkDangerItemHoverColor:ln,darkDangerItemSelectedColor:en,darkDangerItemActiveBg:Je,itemWidth:yn?`calc(100% + ${Bn}px)`:`calc(100% - ${Wn*2}px)`}};var st=function(be){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:be,Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,je.I$)("Menu",We=>{const{colorBgElevated:Je,controlHeightLG:ct,fontSize:ot,darkItemColor:ft,darkDangerItemColor:ut,darkItemBg:lt,darkSubMenuItemBg:At,darkItemSelectedColor:yt,darkItemSelectedBg:Rt,darkDangerItemSelectedBg:Pt,darkItemHoverBg:Tt,darkGroupTitleColor:kt,darkItemHoverColor:Dt,darkItemDisabledColor:gt,darkDangerItemHoverColor:It,darkDangerItemSelectedColor:Vt,darkDangerItemActiveBg:rn,popupBg:wt,darkPopupBg:Ct}=We,Zt=We.calc(ot).div(7).mul(5).equal(),en=(0,Fe.mergeToken)(We,{menuArrowSize:Zt,menuHorizontalHeight:We.calc(ct).mul(1.15).equal(),menuArrowOffset:We.calc(Zt).mul(.25).equal(),menuSubMenuBg:Je,calc:We.calc,popupBg:wt}),ln=(0,Fe.mergeToken)(en,{itemColor:ft,itemHoverColor:Dt,groupTitleColor:kt,itemSelectedColor:yt,subMenuItemSelectedColor:yt,itemBg:lt,popupBg:Ct,subMenuItemBg:At,itemActiveBg:"transparent",itemSelectedBg:Rt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Tt,itemDisabledColor:gt,dangerItemColor:ut,dangerItemHoverColor:It,dangerItemSelectedColor:Vt,dangerItemActiveBg:rn,dangerItemSelectedBg:Pt,menuSubMenuBg:At,horizontalItemSelectedColor:yt,horizontalItemSelectedBg:Rt});return[Ye(en),Ee(en),nt(en),Le(en,"light"),Le(ln,"dark"),Ke(en),(0,we.Z)(en),(0,Ce.oN)(en,"slide-up"),(0,Ce.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}})(be,ve)},Qe=Te(75030),at=be=>{var ve;const{popupClassName:Ie,icon:$e,title:We,theme:Je}=be,ct=te.useContext(ie),{prefixCls:ot,inlineCollapsed:ft,theme:ut}=ct,lt=(0,Ot.Xl)();let At;if(!$e)At=ft&&!lt.length&&We&&typeof We=="string"?te.createElement("div",{className:`${ot}-inline-collapsed-noicon`},We.charAt(0)):te.createElement("span",{className:`${ot}-title-content`},We);else{const Pt=te.isValidElement(We)&&We.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:"",`${ot}-item-icon`)}),Pt?We:te.createElement("span",{className:`${ot}-title-content`},We))}const yt=te.useMemo(()=>Object.assign(Object.assign({},ct),{firstLevel:!1}),[ct]),[Rt]=(0,Qe.Cn)("Menu");return te.createElement(ie.Provider,{value:yt},te.createElement(Ot.Wd,Object.assign({},(0,re.Z)(be,["icon"]),{title:At,popupClassName:z()(ot,Ie,`${ot}-${Je||ut}`),popupStyle:Object.assign({zIndex:Rt},be.popupStyle)})))},qe=function(be,ve){var Ie={};for(var $e in be)Object.prototype.hasOwnProperty.call(be,$e)&&ve.indexOf($e)<0&&(Ie[$e]=be[$e]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,$e=Object.getOwnPropertySymbols(be);We<$e.length;We++)ve.indexOf($e[We])<0&&Object.prototype.propertyIsEnumerable.call(be,$e[We])&&(Ie[$e[We]]=be[$e[We]]);return Ie};function _e(be){return be===null||be===!1}const Re={item:xe,submenu:at,divider:pe};var fe=(0,te.forwardRef)((be,ve)=>{var Ie;const $e=te.useContext(Ae.Z),We=$e||{},{getPrefixCls:Je,getPopupContainer:ct,direction:ot,menu:ft}=te.useContext(de.E_),ut=Je(),{prefixCls:lt,className:At,style:yt,theme:Rt="light",expandIcon:Pt,_internalDisableMenuItemTitleTooltip:Tt,inlineCollapsed:kt,siderCollapsed:Dt,rootClassName:gt,mode:It,selectable:Vt,onClick:rn,overflowedIndicatorPopupClassName:wt}=be,Ct=qe(be,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Zt=(0,re.Z)(Ct,["collapsedWidth"]);(Ie=We.validator)===null||Ie===void 0||Ie.call(We,{mode:It});const en=(0,E.Z)(function(){var un;rn==null||rn.apply(void 0,arguments),(un=We.onClick)===null||un===void 0||un.call(We)}),ln=We.mode||It,yn=Vt!=null?Vt:We.selectable,Bn=kt!=null?kt:Dt,Wn={horizontal:{motionName:`${ut}-slide-up`},inline:(0,oe.Z)(ut),other:{motionName:`${ut}-zoom-big`}},gn=Je("menu",lt||We.prefixCls),Ln=(0,x.Z)(gn),[pn,In,Gt]=st(gn,Ln,!$e),Ut=z()(`${gn}-${Rt}`,ft==null?void 0:ft.className,At),Lt=te.useMemo(()=>{var un,Cn;if(typeof Pt=="function"||_e(Pt))return Pt||null;if(typeof We.expandIcon=="function"||_e(We.expandIcon))return We.expandIcon||null;if(typeof(ft==null?void 0:ft.expandIcon)=="function"||_e(ft==null?void 0:ft.expandIcon))return(ft==null?void 0:ft.expandIcon)||null;const Tn=(un=Pt!=null?Pt:We==null?void 0:We.expandIcon)!==null&&un!==void 0?un:ft==null?void 0:ft.expandIcon;return(0,ee.Tm)(Tn,{className:z()(`${gn}-submenu-expand-icon`,te.isValidElement(Tn)?(Cn=Tn.props)===null||Cn===void 0?void 0:Cn.className:void 0)})},[Pt,We==null?void 0:We.expandIcon,ft==null?void 0:ft.expandIcon,gn]),sn=te.useMemo(()=>({prefixCls:gn,inlineCollapsed:Bn||!1,direction:ot,firstLevel:!0,theme:Rt,mode:ln,disableMenuItemTitleTooltip:Tt}),[gn,Bn,ot,Tt,Rt]);return pn(te.createElement(Ae.Z.Provider,{value:null},te.createElement(ie.Provider,{value:sn},te.createElement(Ot.ZP,Object.assign({getPopupContainer:ct,overflowedIndicator:te.createElement(Pe.Z,null),overflowedIndicatorPopupClassName:z()(gn,`${gn}-${Rt}`,wt),mode:ln,selectable:yn,onClick:en},Zt,{inlineCollapsed:Bn,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),yt),className:Ut,prefixCls:gn,direction:ot,defaultMotions:Wn,expandIcon:Lt,ref:ve,rootClassName:z()(gt,In,We.rootClassName,Gt,Ln),_internalComponents:Re})))))});const Me=(0,te.forwardRef)((be,ve)=>{const Ie=(0,te.useRef)(null),$e=te.useContext(y.D);return(0,te.useImperativeHandle)(ve,()=>({menu:Ie.current,focus:We=>{var Je;(Je=Ie.current)===null||Je===void 0||Je.focus(We)}})),te.createElement(fe,Object.assign({ref:Ie},be,$e))});Me.Item=xe,Me.SubMenu=at,Me.Divider=pe,Me.ItemGroup=Ot.BW;var He=Me},31709:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ft}});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"},Pe=y,ye=Te(7657),z=function(lt,At){return te.createElement(ye.Z,(0,Ot.Z)({},lt,{ref:At,icon:Pe}))},E=te.forwardRef(z),re=E,oe=Te(49198),ee=Te(33853),de=Te(38819),x=Te(92310),ae=Te.n(x),ie=Te(20068),se=Te(76190),ue=Te(33885),pe=Te(42978),he=Te(18929),ge=Te(10228),me=Te(26112),xe=Te(48736),Ae=Te(17119),Ne=[10,20,50,100],Be=function(lt){var At=lt.pageSizeOptions,yt=At===void 0?Ne:At,Rt=lt.locale,Pt=lt.changeSize,Tt=lt.pageSize,kt=lt.goButton,Dt=lt.quickGo,gt=lt.rootPrefixCls,It=lt.disabled,Vt=lt.buildOptionText,rn=lt.showSizeChanger,wt=lt.sizeChangerRender,Ct=te.useState(""),Zt=(0,pe.Z)(Ct,2),en=Zt[0],ln=Zt[1],yn=function(){return!en||Number.isNaN(en)?void 0:Number(en)},Bn=typeof Vt=="function"?Vt:function(sn){return"".concat(sn," ").concat(Rt.items_per_page)},Wn=function(un){ln(un.target.value)},gn=function(un){kt||en===""||(ln(""),!(un.relatedTarget&&(un.relatedTarget.className.indexOf("".concat(gt,"-item-link"))>=0||un.relatedTarget.className.indexOf("".concat(gt,"-item"))>=0))&&(Dt==null||Dt(yn())))},Ln=function(un){en!==""&&(un.keyCode===ge.Z.ENTER||un.type==="click")&&(ln(""),Dt==null||Dt(yn()))},pn=function(){return yt.some(function(un){return un.toString()===Tt.toString()})?yt:yt.concat([Tt]).sort(function(un,Cn){var Tn=Number.isNaN(Number(un))?0:Number(un),jn=Number.isNaN(Number(Cn))?0:Number(Cn);return Tn-jn})},In="".concat(gt,"-options");if(!rn&&!Dt)return null;var Gt=null,Ut=null,Lt=null;return rn&&wt&&(Gt=wt({disabled:It,size:Tt,onSizeChange:function(un){Pt==null||Pt(Number(un))},"aria-label":Rt.page_size,className:"".concat(In,"-size-changer"),options:pn().map(function(sn){return{label:Bn(sn),value:sn}})})),Dt&&(kt&&(Lt=typeof kt=="boolean"?te.createElement("button",{type:"button",onClick:Ln,onKeyUp:Ln,disabled:It,className:"".concat(In,"-quick-jumper-button")},Rt.jump_to_confirm):te.createElement("span",{onClick:Ln,onKeyUp:Ln},kt)),Ut=te.createElement("div",{className:"".concat(In,"-quick-jumper")},Rt.jump_to,te.createElement("input",{disabled:It,type:"text",value:en,onChange:Wn,onKeyUp:Ln,onBlur:gn,"aria-label":Rt.page}),Rt.page,Lt)),te.createElement("li",{className:In},Gt,Ut)},De=Be,we=function(lt){var At=lt.rootPrefixCls,yt=lt.page,Rt=lt.active,Pt=lt.className,Tt=lt.showTitle,kt=lt.onClick,Dt=lt.onKeyPress,gt=lt.itemRender,It="".concat(At,"-item"),Vt=ae()(It,"".concat(It,"-").concat(yt),(0,ie.Z)((0,ie.Z)({},"".concat(It,"-active"),Rt),"".concat(It,"-disabled"),!yt),Pt),rn=function(){kt(yt)},wt=function(en){Dt(en,kt,yt)},Ct=gt(yt,"page",te.createElement("a",{rel:"nofollow"},yt));return Ct?te.createElement("li",{title:Tt?String(yt):null,className:Vt,onClick:rn,onKeyDown:wt,tabIndex:0},Ct):null},Ce=we,Oe=function(lt,At,yt){return yt};function je(){}function Fe(ut){var lt=Number(ut);return typeof lt=="number"&&!Number.isNaN(lt)&&isFinite(lt)&&Math.floor(lt)===lt}function ke(ut,lt,At){var yt=typeof ut=="undefined"?lt:ut;return Math.floor((At-1)/yt)+1}var Ee=function(lt){var At=lt.prefixCls,yt=At===void 0?"rc-pagination":At,Rt=lt.selectPrefixCls,Pt=Rt===void 0?"rc-select":Rt,Tt=lt.className,kt=lt.current,Dt=lt.defaultCurrent,gt=Dt===void 0?1:Dt,It=lt.total,Vt=It===void 0?0:It,rn=lt.pageSize,wt=lt.defaultPageSize,Ct=wt===void 0?10:wt,Zt=lt.onChange,en=Zt===void 0?je:Zt,ln=lt.hideOnSinglePage,yn=lt.align,Bn=lt.showPrevNextJumpers,Wn=Bn===void 0?!0:Bn,gn=lt.showQuickJumper,Ln=lt.showLessItems,pn=lt.showTitle,In=pn===void 0?!0:pn,Gt=lt.onShowSizeChange,Ut=Gt===void 0?je:Gt,Lt=lt.locale,sn=Lt===void 0?Ae.Z:Lt,un=lt.style,Cn=lt.totalBoundaryShowSizeChanger,Tn=Cn===void 0?50:Cn,jn=lt.disabled,hn=lt.simple,Mn=lt.showTotal,_n=lt.showSizeChanger,ur=_n===void 0?Vt>Tn:_n,tr=lt.sizeChangerRender,cn=lt.pageSizeOptions,tn=lt.itemRender,Hn=tn===void 0?Oe:tn,Gn=lt.jumpPrevIcon,Mt=lt.jumpNextIcon,Kt=lt.prevIcon,St=lt.nextIcon,Nt=te.useRef(null),Et=(0,he.Z)(10,{value:rn,defaultValue:Ct}),zt=(0,pe.Z)(Et,2),bt=zt[0],Wt=zt[1],Ft=(0,he.Z)(1,{value:kt,defaultValue:gt,postState:function(Gr){return Math.max(1,Math.min(Gr,ke(void 0,bt,Vt)))}}),qt=(0,pe.Z)(Ft,2),_t=qt[0],$t=qt[1],Ht=te.useState(_t),Xt=(0,pe.Z)(Ht,2),En=Xt[0],On=Xt[1];(0,te.useEffect)(function(){On(_t)},[_t]);var Rn=en!==je,rr="current"in lt,cr=Math.max(1,_t-(Ln?3:5)),mr=Math.min(ke(void 0,bt,Vt),_t+(Ln?3:5));function nr(ri,Gr){var Qi=ri||te.createElement("button",{type:"button","aria-label":Gr,className:"".concat(yt,"-item-link")});return typeof ri=="function"&&(Qi=te.createElement(ri,(0,ue.Z)({},lt))),Qi}function Un(ri){var Gr=ri.target.value,Qi=ke(void 0,bt,Vt),qi;return Gr===""?qi=Gr:Number.isNaN(Number(Gr))?qi=En:Gr>=Qi?qi=Qi:qi=Number(Gr),qi}function Yn(ri){return Fe(ri)&&ri!==_t&&Fe(Vt)&&Vt>0}var pr=Vt>bt?gn:!1;function Sr(ri){(ri.keyCode===ge.Z.UP||ri.keyCode===ge.Z.DOWN)&&ri.preventDefault()}function wr(ri){var Gr=Un(ri);switch(Gr!==En&&On(Gr),ri.keyCode){case ge.Z.ENTER:kn(Gr);break;case ge.Z.UP:kn(Gr-1);break;case ge.Z.DOWN:kn(Gr+1);break;default:break}}function Cr(ri){kn(Un(ri))}function qn(ri){var Gr=ke(ri,bt,Vt),Qi=_t>Gr&&Gr!==0?Gr:_t;Wt(ri),On(Qi),Ut==null||Ut(_t,ri),$t(Qi),en==null||en(Qi,ri)}function kn(ri){if(Yn(ri)&&!jn){var Gr=ke(void 0,bt,Vt),Qi=ri;return ri>Gr?Qi=Gr:ri<1&&(Qi=1),Qi!==En&&On(Qi),$t(Qi),en==null||en(Qi,bt),Qi}return _t}var Fn=_t>1,Nn=_t<ke(void 0,bt,Vt);function ir(){Fn&&kn(_t-1)}function br(){Nn&&kn(_t+1)}function Pr(){kn(cr)}function Kr(){kn(mr)}function Nr(ri,Gr){if(ri.key==="Enter"||ri.charCode===ge.Z.ENTER||ri.keyCode===ge.Z.ENTER){for(var Qi=arguments.length,qi=new Array(Qi>2?Qi-2:0),ui=2;ui<Qi;ui++)qi[ui-2]=arguments[ui];Gr.apply(void 0,qi)}}function Wr(ri){Nr(ri,ir)}function Ir(ri){Nr(ri,br)}function ni(ri){Nr(ri,Pr)}function ti(ri){Nr(ri,Kr)}function oi(ri){var Gr=Hn(ri,"prev",nr(Kt,"prev page"));return te.isValidElement(Gr)?te.cloneElement(Gr,{disabled:!Fn}):Gr}function fi(ri){var Gr=Hn(ri,"next",nr(St,"next page"));return te.isValidElement(Gr)?te.cloneElement(Gr,{disabled:!Nn}):Gr}function xi(ri){(ri.type==="click"||ri.keyCode===ge.Z.ENTER)&&kn(En)}var hi=null,ei=(0,me.Z)(lt,{aria:!0,data:!0}),Ar=Mn&&te.createElement("li",{className:"".concat(yt,"-total-text")},Mn(Vt,[Vt===0?0:(_t-1)*bt+1,_t*bt>Vt?Vt:_t*bt])),Dr=null,ar=ke(void 0,bt,Vt);if(ln&&Vt<=bt)return null;var Pn=[],Kn={rootPrefixCls:yt,onClick:kn,onKeyPress:Nr,showTitle:In,itemRender:Hn,page:-1},Xn=_t-1>0?_t-1:0,$n=_t+1<ar?_t+1:ar,hr=gn&&gn.goButton,Tr=(0,se.Z)(hn)==="object"?hn.readOnly:!hn,Vn=hr,zn=null;hn&&(hr&&(typeof hr=="boolean"?Vn=te.createElement("button",{type:"button",onClick:xi,onKeyUp:xi},sn.jump_to_confirm):Vn=te.createElement("span",{onClick:xi,onKeyUp:xi},hr),Vn=te.createElement("li",{title:In?"".concat(sn.jump_to).concat(_t,"/").concat(ar):null,className:"".concat(yt,"-simple-pager")},Vn)),zn=te.createElement("li",{title:In?"".concat(_t,"/").concat(ar):null,className:"".concat(yt,"-simple-pager")},Tr?En:te.createElement("input",{type:"text","aria-label":sn.jump_to,value:En,disabled:jn,onKeyDown:Sr,onKeyUp:wr,onChange:wr,onBlur:Cr,size:3}),te.createElement("span",{className:"".concat(yt,"-slash")},"/"),ar));var er=Ln?1:2;if(ar<=3+er*2){ar||Pn.push(te.createElement(Ce,(0,Ot.Z)({},Kn,{key:"noPager",page:1,className:"".concat(yt,"-item-disabled")})));for(var sr=1;sr<=ar;sr+=1)Pn.push(te.createElement(Ce,(0,Ot.Z)({},Kn,{key:sr,page:sr,active:_t===sr})))}else{var qr=Ln?sn.prev_3:sn.prev_5,Ti=Ln?sn.next_3:sn.next_5,gi=Hn(cr,"jump-prev",nr(Gn,"prev page")),ki=Hn(mr,"jump-next",nr(Mt,"next page"));Wn&&(hi=gi?te.createElement("li",{title:In?qr:null,key:"prev",onClick:Pr,tabIndex:0,onKeyDown:ni,className:ae()("".concat(yt,"-jump-prev"),(0,ie.Z)({},"".concat(yt,"-jump-prev-custom-icon"),!!Gn))},gi):null,Dr=ki?te.createElement("li",{title:In?Ti:null,key:"next",onClick:Kr,tabIndex:0,onKeyDown:ti,className:ae()("".concat(yt,"-jump-next"),(0,ie.Z)({},"".concat(yt,"-jump-next-custom-icon"),!!Mt))},ki):null);var Oi=Math.max(1,_t-er),Ii=Math.min(_t+er,ar);_t-1<=er&&(Ii=1+er*2),ar-_t<=er&&(Oi=ar-er*2);for(var Fi=Oi;Fi<=Ii;Fi+=1)Pn.push(te.createElement(Ce,(0,Ot.Z)({},Kn,{key:Fi,page:Fi,active:_t===Fi})));if(_t-1>=er*2&&_t!==3&&(Pn[0]=te.cloneElement(Pn[0],{className:ae()("".concat(yt,"-item-after-jump-prev"),Pn[0].props.className)}),Pn.unshift(hi)),ar-_t>=er*2&&_t!==ar-2){var Ri=Pn[Pn.length-1];Pn[Pn.length-1]=te.cloneElement(Ri,{className:ae()("".concat(yt,"-item-before-jump-next"),Ri.props.className)}),Pn.push(Dr)}Oi!==1&&Pn.unshift(te.createElement(Ce,(0,Ot.Z)({},Kn,{key:1,page:1}))),Ii!==ar&&Pn.push(te.createElement(Ce,(0,Ot.Z)({},Kn,{key:ar,page:ar})))}var Ni=oi(Xn);if(Ni){var so=!Fn||!ar;Ni=te.createElement("li",{title:In?sn.prev_page:null,onClick:ir,tabIndex:so?null:0,onKeyDown:Wr,className:ae()("".concat(yt,"-prev"),(0,ie.Z)({},"".concat(yt,"-disabled"),so)),"aria-disabled":so},Ni)}var xo=fi($n);if(xo){var Ao,jo;hn?(Ao=!Nn,jo=Fn?0:null):(Ao=!Nn||!ar,jo=Ao?null:0),xo=te.createElement("li",{title:In?sn.next_page:null,onClick:br,tabIndex:jo,onKeyDown:Ir,className:ae()("".concat(yt,"-next"),(0,ie.Z)({},"".concat(yt,"-disabled"),Ao)),"aria-disabled":Ao},xo)}var wo=ae()(yt,Tt,(0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)({},"".concat(yt,"-start"),yn==="start"),"".concat(yt,"-center"),yn==="center"),"".concat(yt,"-end"),yn==="end"),"".concat(yt,"-simple"),hn),"".concat(yt,"-disabled"),jn));return te.createElement("ul",(0,Ot.Z)({className:wo,style:un,ref:Nt},ei),Ar,Ni,hn?zn:Pn,xo,te.createElement(De,{locale:sn,rootPrefixCls:yt,disabled:jn,selectPrefixCls:Pt,changeSize:qn,pageSize:bt,pageSizeOptions:cn,quickGo:pr?kn:null,goButton:Vn,showSizeChanger:ur,sizeChangerRender:tr}))},Ge=Ee,Ke=Te(61852),Ve=Te(48755),it=Te(31756),Le=Te(13783),Ue=Te(9017),tt=Te(82326),nt=Te(57700),et=Te(36237),Ze=Te(53075),Ye=Te(64910),Xe=Te(39082),st=Te(63356),Qe=Te(51636),ht=Te(16931);const at=ut=>{const{componentCls:lt}=ut;return{[`${lt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${lt}-item-link`]:{color:ut.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${lt}-item-link`]:{color:ut.colorTextDisabled,cursor:"not-allowed"}}},[`&${lt}-disabled`]:{cursor:"not-allowed",[`${lt}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:ut.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:ut.colorBorder,backgroundColor:ut.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:ut.itemActiveBgDisabled},a:{color:ut.itemActiveColorDisabled}}},[`${lt}-item-link`]:{color:ut.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${lt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${lt}-simple-pager`]:{color:ut.colorTextDisabled},[`${lt}-jump-prev, ${lt}-jump-next`]:{[`${lt}-item-link-icon`]:{opacity:0},[`${lt}-item-ellipsis`]:{opacity:1}}},[`&${lt}-simple`]:{[`${lt}-prev, ${lt}-next`]:{[`&${lt}-disabled ${lt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},qe=ut=>{const{componentCls:lt}=ut;return{[`&${lt}-mini ${lt}-total-text, &${lt}-mini ${lt}-simple-pager`]:{height:ut.itemSizeSM,lineHeight:(0,et.unit)(ut.itemSizeSM)},[`&${lt}-mini ${lt}-item`]:{minWidth:ut.itemSizeSM,height:ut.itemSizeSM,margin:0,lineHeight:(0,et.unit)(ut.calc(ut.itemSizeSM).sub(2).equal())},[`&${lt}-mini ${lt}-prev, &${lt}-mini ${lt}-next`]:{minWidth:ut.itemSizeSM,height:ut.itemSizeSM,margin:0,lineHeight:(0,et.unit)(ut.itemSizeSM)},[`&${lt}-mini:not(${lt}-disabled)`]:{[`${lt}-prev, ${lt}-next`]:{[`&:hover ${lt}-item-link`]:{backgroundColor:ut.colorBgTextHover},[`&:active ${lt}-item-link`]:{backgroundColor:ut.colorBgTextActive},[`&${lt}-disabled:hover ${lt}-item-link`]:{backgroundColor:"transparent"}}},[`
&${lt}-mini ${lt}-prev ${lt}-item-link,
&${lt}-mini ${lt}-next ${lt}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:ut.itemSizeSM,lineHeight:(0,et.unit)(ut.itemSizeSM)}},[`&${lt}-mini ${lt}-jump-prev, &${lt}-mini ${lt}-jump-next`]:{height:ut.itemSizeSM,marginInlineEnd:0,lineHeight:(0,et.unit)(ut.itemSizeSM)},[`&${lt}-mini ${lt}-options`]:{marginInlineStart:ut.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:ut.miniOptionsSizeChangerTop},"&-quick-jumper":{height:ut.itemSizeSM,lineHeight:(0,et.unit)(ut.itemSizeSM),input:Object.assign(Object.assign({},(0,Ze.x0)(ut)),{width:ut.paginationMiniQuickJumperInputWidth,height:ut.controlHeightSM})}}}},_e=ut=>{const{componentCls:lt}=ut;return{[`
&${lt}-simple ${lt}-prev,
&${lt}-simple ${lt}-next
`]:{height:ut.itemSizeSM,lineHeight:(0,et.unit)(ut.itemSizeSM),verticalAlign:"top",[`${lt}-item-link`]:{height:ut.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:ut.colorBgTextHover},"&:active":{backgroundColor:ut.colorBgTextActive},"&::after":{height:ut.itemSizeSM,lineHeight:(0,et.unit)(ut.itemSizeSM)}}},[`&${lt}-simple ${lt}-simple-pager`]:{display:"inline-block",height:ut.itemSizeSM,marginInlineEnd:ut.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,et.unit)(ut.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:ut.itemInputBg,border:`${(0,et.unit)(ut.lineWidth)} ${ut.lineType} ${ut.colorBorder}`,borderRadius:ut.borderRadius,outline:"none",transition:`border-color ${ut.motionDurationMid}`,color:"inherit","&:hover":{borderColor:ut.colorPrimary},"&:focus":{borderColor:ut.colorPrimaryHover,boxShadow:`${(0,et.unit)(ut.inputOutlineOffset)} 0 ${(0,et.unit)(ut.controlOutlineWidth)} ${ut.controlOutline}`},"&[disabled]":{color:ut.colorTextDisabled,backgroundColor:ut.colorBgContainerDisabled,borderColor:ut.colorBorder,cursor:"not-allowed"}}}}},Re=ut=>{const{componentCls:lt}=ut;return{[`${lt}-jump-prev, ${lt}-jump-next`]:{outline:0,[`${lt}-item-container`]:{position:"relative",[`${lt}-item-link-icon`]:{color:ut.colorPrimary,fontSize:ut.fontSizeSM,opacity:0,transition:`all ${ut.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${lt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:ut.colorTextDisabled,letterSpacing:ut.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:ut.paginationEllipsisTextIndent,opacity:1,transition:`all ${ut.motionDurationMid}`}},"&:hover":{[`${lt}-item-link-icon`]:{opacity:1},[`${lt}-item-ellipsis`]:{opacity:0}}},[`
${lt}-prev,
${lt}-jump-prev,
${lt}-jump-next
`]:{marginInlineEnd:ut.marginXS},[`
${lt}-prev,
${lt}-next,
${lt}-jump-prev,
${lt}-jump-next
`]:{display:"inline-block",minWidth:ut.itemSize,height:ut.itemSize,color:ut.colorText,fontFamily:ut.fontFamily,lineHeight:(0,et.unit)(ut.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:ut.borderRadius,cursor:"pointer",transition:`all ${ut.motionDurationMid}`},[`${lt}-prev, ${lt}-next`]:{outline:0,button:{color:ut.colorText,cursor:"pointer",userSelect:"none"},[`${lt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:ut.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,et.unit)(ut.lineWidth)} ${ut.lineType} transparent`,borderRadius:ut.borderRadius,outline:"none",transition:`all ${ut.motionDurationMid}`},[`&:hover ${lt}-item-link`]:{backgroundColor:ut.colorBgTextHover},[`&:active ${lt}-item-link`]:{backgroundColor:ut.colorBgTextActive},[`&${lt}-disabled:hover`]:{[`${lt}-item-link`]:{backgroundColor:"transparent"}}},[`${lt}-slash`]:{marginInlineEnd:ut.paginationSlashMarginInlineEnd,marginInlineStart:ut.paginationSlashMarginInlineStart},[`${lt}-options`]:{display:"inline-block",marginInlineStart:ut.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:ut.controlHeight,marginInlineStart:ut.marginXS,lineHeight:(0,et.unit)(ut.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,Ze.ik)(ut)),(0,Xe.$U)(ut,{borderColor:ut.colorBorder,hoverBorderColor:ut.colorPrimaryHover,activeBorderColor:ut.colorPrimary,activeShadow:ut.activeShadow})),{"&[disabled]":Object.assign({},(0,Xe.Xy)(ut)),width:ut.calc(ut.controlHeightLG).mul(1.25).equal(),height:ut.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:ut.marginXS,marginInlineEnd:ut.marginXS})}}}},ne=ut=>{const{componentCls:lt}=ut;return{[`${lt}-item`]:{display:"inline-block",minWidth:ut.itemSize,height:ut.itemSize,marginInlineEnd:ut.marginXS,fontFamily:ut.fontFamily,lineHeight:(0,et.unit)(ut.calc(ut.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:ut.itemBg,border:`${(0,et.unit)(ut.lineWidth)} ${ut.lineType} transparent`,borderRadius:ut.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,et.unit)(ut.paginationItemPaddingInline)}`,color:ut.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${lt}-item-active)`]:{"&:hover":{transition:`all ${ut.motionDurationMid}`,backgroundColor:ut.colorBgTextHover},"&:active":{backgroundColor:ut.colorBgTextActive}},"&-active":{fontWeight:ut.fontWeightStrong,backgroundColor:ut.itemActiveBg,borderColor:ut.colorPrimary,a:{color:ut.colorPrimary},"&:hover":{borderColor:ut.colorPrimaryHover},"&:hover a":{color:ut.colorPrimaryHover}}}}},fe=ut=>{const{componentCls:lt}=ut;return{[lt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,st.Wf)(ut)),{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:'""'},[`${lt}-total-text`]:{display:"inline-block",height:ut.itemSize,marginInlineEnd:ut.marginXS,lineHeight:(0,et.unit)(ut.calc(ut.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ne(ut)),Re(ut)),_e(ut)),qe(ut)),at(ut)),{[`@media only screen and (max-width: ${ut.screenLG}px)`]:{[`${lt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${ut.screenSM}px)`]:{[`${lt}-options`]:{display:"none"}}}),[`&${ut.componentCls}-rtl`]:{direction:"rtl"}}},Me=ut=>{const{componentCls:lt}=ut;return{[`${lt}:not(${lt}-disabled)`]:{[`${lt}-item`]:Object.assign({},(0,st.Qy)(ut)),[`${lt}-jump-prev, ${lt}-jump-next`]:{"&:focus-visible":Object.assign({[`${lt}-item-link-icon`]:{opacity:1},[`${lt}-item-ellipsis`]:{opacity:0}},(0,st.oN)(ut))},[`${lt}-prev, ${lt}-next`]:{[`&:focus-visible ${lt}-item-link`]:Object.assign({},(0,st.oN)(ut))}}}},He=ut=>Object.assign({itemBg:ut.colorBgContainer,itemSize:ut.controlHeight,itemSizeSM:ut.controlHeightSM,itemActiveBg:ut.colorBgContainer,itemLinkBg:ut.colorBgContainer,itemActiveColorDisabled:ut.colorTextDisabled,itemActiveBgDisabled:ut.controlItemBgActiveDisabled,itemInputBg:ut.colorBgContainer,miniOptionsSizeChangerTop:0},(0,Ye.T)(ut)),be=ut=>(0,Qe.mergeToken)(ut,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:ut.calc(ut.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:ut.calc(ut.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:ut.calc(ut.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:ut.calc(ut.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:ut.marginSM,paginationSlashMarginInlineEnd:ut.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ye.e)(ut));var ve=(0,ht.I$)("Pagination",ut=>{const lt=be(ut);return[fe(lt),Me(lt)]},He);const Ie=ut=>{const{componentCls:lt}=ut;return{[`${lt}${lt}-bordered${lt}-disabled:not(${lt}-mini)`]:{"&, &:hover":{[`${lt}-item-link`]:{borderColor:ut.colorBorder}},"&:focus-visible":{[`${lt}-item-link`]:{borderColor:ut.colorBorder}},[`${lt}-item, ${lt}-item-link`]:{backgroundColor:ut.colorBgContainerDisabled,borderColor:ut.colorBorder,[`&:hover:not(${lt}-item-active)`]:{backgroundColor:ut.colorBgContainerDisabled,borderColor:ut.colorBorder,a:{color:ut.colorTextDisabled}},[`&${lt}-item-active`]:{backgroundColor:ut.itemActiveBgDisabled}},[`${lt}-prev, ${lt}-next`]:{"&:hover button":{backgroundColor:ut.colorBgContainerDisabled,borderColor:ut.colorBorder,color:ut.colorTextDisabled},[`${lt}-item-link`]:{backgroundColor:ut.colorBgContainerDisabled,borderColor:ut.colorBorder}}},[`${lt}${lt}-bordered:not(${lt}-mini)`]:{[`${lt}-prev, ${lt}-next`]:{"&:hover button":{borderColor:ut.colorPrimaryHover,backgroundColor:ut.itemBg},[`${lt}-item-link`]:{backgroundColor:ut.itemLinkBg,borderColor:ut.colorBorder},[`&:hover ${lt}-item-link`]:{borderColor:ut.colorPrimary,backgroundColor:ut.itemBg,color:ut.colorPrimary},[`&${lt}-disabled`]:{[`${lt}-item-link`]:{borderColor:ut.colorBorder,color:ut.colorTextDisabled}}},[`${lt}-item`]:{backgroundColor:ut.itemBg,border:`${(0,et.unit)(ut.lineWidth)} ${ut.lineType} ${ut.colorBorder}`,[`&:hover:not(${lt}-item-active)`]:{borderColor:ut.colorPrimary,backgroundColor:ut.itemBg,a:{color:ut.colorPrimary}},"&-active":{borderColor:ut.colorPrimary}}}}};var $e=(0,ht.bk)(["Pagination","bordered"],ut=>{const lt=be(ut);return[Ie(lt)]},He);function We(ut){return(0,te.useMemo)(()=>typeof ut=="boolean"?[ut,{}]:ut&&typeof ut=="object"?[!0,ut]:[void 0,void 0],[ut])}var Je=function(ut,lt){var At={};for(var yt in ut)Object.prototype.hasOwnProperty.call(ut,yt)&&lt.indexOf(yt)<0&&(At[yt]=ut[yt]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,yt=Object.getOwnPropertySymbols(ut);Rt<yt.length;Rt++)lt.indexOf(yt[Rt])<0&&Object.prototype.propertyIsEnumerable.call(ut,yt[Rt])&&(At[yt[Rt]]=ut[yt[Rt]]);return At},ot=ut=>{const{align:lt,prefixCls:At,selectPrefixCls:yt,className:Rt,rootClassName:Pt,style:Tt,size:kt,locale:Dt,responsive:gt,showSizeChanger:It,selectComponentClass:Vt,pageSizeOptions:rn}=ut,wt=Je(ut,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:Ct}=(0,Le.Z)(gt),[,Zt]=(0,nt.ZP)(),{getPrefixCls:en,direction:ln,showSizeChanger:yn,className:Bn,style:Wn}=(0,Ve.dj)("pagination"),gn=en("pagination",At),[Ln,pn,In]=ve(gn),Gt=(0,it.Z)(kt),Ut=Gt==="small"||!!(Ct&&!Gt&&gt),[Lt]=(0,Ue.Z)("Pagination",Ke.Z),sn=Object.assign(Object.assign({},Lt),Dt),[un,Cn]=We(It),[Tn,jn]=We(yn),hn=un!=null?un:Tn,Mn=Cn!=null?Cn:jn,_n=Vt||tt.default,ur=te.useMemo(()=>rn?rn.map(Mt=>Number(Mt)):void 0,[rn]),tr=Mt=>{var Kt;const{disabled:St,size:Nt,onSizeChange:Et,"aria-label":zt,className:bt,options:Wt}=Mt,{className:Ft,onChange:qt}=Mn||{},_t=(Kt=Wt.find($t=>String($t.value)===String(Nt)))===null||Kt===void 0?void 0:Kt.value;return te.createElement(_n,Object.assign({disabled:St,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:$t=>$t.parentNode,"aria-label":zt,options:Wt},Mn,{value:_t,onChange:($t,Ht)=>{Et==null||Et($t),qt==null||qt($t,Ht)},size:Ut?"small":"middle",className:ae()(bt,Ft)}))},cn=te.useMemo(()=>{const Mt=te.createElement("span",{className:`${gn}-item-ellipsis`},"\u2022\u2022\u2022"),Kt=te.createElement("button",{className:`${gn}-item-link`,type:"button",tabIndex:-1},ln==="rtl"?te.createElement(de.Z,null):te.createElement(ee.Z,null)),St=te.createElement("button",{className:`${gn}-item-link`,type:"button",tabIndex:-1},ln==="rtl"?te.createElement(ee.Z,null):te.createElement(de.Z,null)),Nt=te.createElement("a",{className:`${gn}-item-link`},te.createElement("div",{className:`${gn}-item-container`},ln==="rtl"?te.createElement(oe.Z,{className:`${gn}-item-link-icon`}):te.createElement(re,{className:`${gn}-item-link-icon`}),Mt)),Et=te.createElement("a",{className:`${gn}-item-link`},te.createElement("div",{className:`${gn}-item-container`},ln==="rtl"?te.createElement(re,{className:`${gn}-item-link-icon`}):te.createElement(oe.Z,{className:`${gn}-item-link-icon`}),Mt));return{prevIcon:Kt,nextIcon:St,jumpPrevIcon:Nt,jumpNextIcon:Et}},[ln,gn]),tn=en("select",yt),Hn=ae()({[`${gn}-${lt}`]:!!lt,[`${gn}-mini`]:Ut,[`${gn}-rtl`]:ln==="rtl",[`${gn}-bordered`]:Zt.wireframe},Bn,Rt,Pt,pn,In),Gn=Object.assign(Object.assign({},Wn),Tt);return Ln(te.createElement(te.Fragment,null,Zt.wireframe&&te.createElement($e,{prefixCls:gn}),te.createElement(Ge,Object.assign({},cn,wt,{style:Gn,prefixCls:gn,selectPrefixCls:tn,className:Hn,locale:sn,pageSizeOptions:ur,showSizeChanger:hn,sizeChangerRender:tr}))))},ft=ot},89787:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Dt}});var te=Te(59301),Ot=Te(17835),y=Te(29679),Pe=Te(40001),ye=Te(19248),z=Te(99267),E=Te(92310),re=Te.n(E),oe=Te(2738),ee=Te(48755),de=Te(54476),x=Te(33885),ae=Te(75931),ie={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},se=function(){var It=(0,te.useRef)([]),Vt=(0,te.useRef)(null);return(0,te.useEffect)(function(){var rn=Date.now(),wt=!1;It.current.forEach(function(Ct){if(Ct){wt=!0;var Zt=Ct.style;Zt.transitionDuration=".3s, .3s, .3s, .06s",Vt.current&&rn-Vt.current<100&&(Zt.transitionDuration="0s, 0s")}}),wt&&(Vt.current=Date.now())}),It.current},ue=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],pe=function(It){var Vt=(0,x.Z)((0,x.Z)({},ie),It),rn=Vt.className,wt=Vt.percent,Ct=Vt.prefixCls,Zt=Vt.strokeColor,en=Vt.strokeLinecap,ln=Vt.strokeWidth,yn=Vt.style,Bn=Vt.trailColor,Wn=Vt.trailWidth,gn=Vt.transition,Ln=(0,ae.Z)(Vt,ue);delete Ln.gapPosition;var pn=Array.isArray(wt)?wt:[wt],In=Array.isArray(Zt)?Zt:[Zt],Gt=se(),Ut=ln/2,Lt=100-ln/2,sn="M ".concat(en==="round"?Ut:0,",").concat(Ut,`
L `).concat(en==="round"?Lt:100,",").concat(Ut),un="0 0 100 ".concat(ln),Cn=0;return te.createElement("svg",(0,de.Z)({className:re()("".concat(Ct,"-line"),rn),viewBox:un,preserveAspectRatio:"none",style:yn},Ln),te.createElement("path",{className:"".concat(Ct,"-line-trail"),d:sn,strokeLinecap:en,stroke:Bn,strokeWidth:Wn||ln,fillOpacity:"0"}),pn.map(function(Tn,jn){var hn=1;switch(en){case"round":hn=1-ln/100;break;case"square":hn=1-ln/2/100;break;default:hn=1;break}var Mn={strokeDasharray:"".concat(Tn*hn,"px, 100px"),strokeDashoffset:"-".concat(Cn,"px"),transition:gn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},_n=In[jn]||In[In.length-1];return Cn+=Tn,te.createElement("path",{key:jn,className:"".concat(Ct,"-line-path"),d:sn,strokeLinecap:en,stroke:_n,strokeWidth:ln,fillOpacity:"0",ref:function(tr){Gt[jn]=tr},style:Mn})}))},he=pe,ge=Te(76190),me=Te(42978),xe=Te(47273),Ae=0,Ne=(0,xe.Z)();function Be(){var gt;return Ne?(gt=Ae,Ae+=1):gt="TEST_OR_SSR",gt}var De=function(gt){var It=te.useState(),Vt=(0,me.Z)(It,2),rn=Vt[0],wt=Vt[1];return te.useEffect(function(){wt("rc_progress_".concat(Be()))},[]),gt||rn},we=function(It){var Vt=It.bg,rn=It.children;return te.createElement("div",{style:{width:"100%",height:"100%",background:Vt}},rn)};function Ce(gt,It){return Object.keys(gt).map(function(Vt){var rn=parseFloat(Vt),wt="".concat(Math.floor(rn*It),"%");return"".concat(gt[Vt]," ").concat(wt)})}var Oe=te.forwardRef(function(gt,It){var Vt=gt.prefixCls,rn=gt.color,wt=gt.gradientId,Ct=gt.radius,Zt=gt.style,en=gt.ptg,ln=gt.strokeLinecap,yn=gt.strokeWidth,Bn=gt.size,Wn=gt.gapDegree,gn=rn&&(0,ge.Z)(rn)==="object",Ln=gn?"#FFF":void 0,pn=Bn/2,In=te.createElement("circle",{className:"".concat(Vt,"-circle-path"),r:Ct,cx:pn,cy:pn,stroke:Ln,strokeLinecap:ln,strokeWidth:yn,opacity:en===0?0:1,style:Zt,ref:It});if(!gn)return In;var Gt="".concat(wt,"-conic"),Ut=Wn?"".concat(180+Wn/2,"deg"):"0deg",Lt=Ce(rn,(360-Wn)/360),sn=Ce(rn,1),un="conic-gradient(from ".concat(Ut,", ").concat(Lt.join(", "),")"),Cn="linear-gradient(to ".concat(Wn?"bottom":"top",", ").concat(sn.join(", "),")");return te.createElement(te.Fragment,null,te.createElement("mask",{id:Gt},In),te.createElement("foreignObject",{x:0,y:0,width:Bn,height:Bn,mask:"url(#".concat(Gt,")")},te.createElement(we,{bg:Cn},te.createElement(we,{bg:un}))))}),je=Oe,Fe=100,ke=function(It,Vt,rn,wt,Ct,Zt,en,ln,yn,Bn){var Wn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,gn=rn/100*360*((360-Zt)/360),Ln=Zt===0?0:{bottom:0,top:180,left:90,right:-90}[en],pn=(100-wt)/100*Vt;yn==="round"&&wt!==100&&(pn+=Bn/2,pn>=Vt&&(pn=Vt-.01));var In=Fe/2;return{stroke:typeof ln=="string"?ln:void 0,strokeDasharray:"".concat(Vt,"px ").concat(It),strokeDashoffset:pn+Wn,transform:"rotate(".concat(Ct+gn+Ln,"deg)"),transformOrigin:"".concat(In,"px ").concat(In,"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}},Ee=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ge(gt){var It=gt!=null?gt:[];return Array.isArray(It)?It:[It]}var Ke=function(It){var Vt=(0,x.Z)((0,x.Z)({},ie),It),rn=Vt.id,wt=Vt.prefixCls,Ct=Vt.steps,Zt=Vt.strokeWidth,en=Vt.trailWidth,ln=Vt.gapDegree,yn=ln===void 0?0:ln,Bn=Vt.gapPosition,Wn=Vt.trailColor,gn=Vt.strokeLinecap,Ln=Vt.style,pn=Vt.className,In=Vt.strokeColor,Gt=Vt.percent,Ut=(0,ae.Z)(Vt,Ee),Lt=Fe/2,sn=De(rn),un="".concat(sn,"-gradient"),Cn=Lt-Zt/2,Tn=Math.PI*2*Cn,jn=yn>0?90+yn/2:-90,hn=Tn*((360-yn)/360),Mn=(0,ge.Z)(Ct)==="object"?Ct:{count:Ct,gap:2},_n=Mn.count,ur=Mn.gap,tr=Ge(Gt),cn=Ge(In),tn=cn.find(function(Et){return Et&&(0,ge.Z)(Et)==="object"}),Hn=tn&&(0,ge.Z)(tn)==="object",Gn=Hn?"butt":gn,Mt=ke(Tn,hn,0,100,jn,yn,Bn,Wn,Gn,Zt),Kt=se(),St=function(){var zt=0;return tr.map(function(bt,Wt){var Ft=cn[Wt]||cn[cn.length-1],qt=ke(Tn,hn,zt,bt,jn,yn,Bn,Ft,Gn,Zt);return zt+=bt,te.createElement(je,{key:Wt,color:Ft,ptg:bt,radius:Cn,prefixCls:wt,gradientId:un,style:qt,strokeLinecap:Gn,strokeWidth:Zt,gapDegree:yn,ref:function($t){Kt[Wt]=$t},size:Fe})}).reverse()},Nt=function(){var zt=Math.round(_n*(tr[0]/100)),bt=100/_n,Wt=0;return new Array(_n).fill(null).map(function(Ft,qt){var _t=qt<=zt-1?cn[0]:Wn,$t=_t&&(0,ge.Z)(_t)==="object"?"url(#".concat(un,")"):void 0,Ht=ke(Tn,hn,Wt,bt,jn,yn,Bn,_t,"butt",Zt,ur);return Wt+=(hn-Ht.strokeDashoffset+ur)*100/hn,te.createElement("circle",{key:qt,className:"".concat(wt,"-circle-path"),r:Cn,cx:Lt,cy:Lt,stroke:$t,strokeWidth:Zt,opacity:1,style:Ht,ref:function(En){Kt[qt]=En}})})};return te.createElement("svg",(0,de.Z)({className:re()("".concat(wt,"-circle"),pn),viewBox:"0 0 ".concat(Fe," ").concat(Fe),style:Ln,id:rn,role:"presentation"},Ut),!_n&&te.createElement("circle",{className:"".concat(wt,"-circle-trail"),r:Cn,cx:Lt,cy:Lt,stroke:Wn,strokeLinecap:Gn,strokeWidth:en||Zt,style:Mt}),_n?Nt():St())},Ve=Ke,it={Line:he,Circle:Ve},Le=Te(25399),Ue=Te(68361);function tt(gt){return!gt||gt<0?0:gt>100?100:gt}function nt(gt){let{success:It,successPercent:Vt}=gt,rn=Vt;return It&&"progress"in It&&(rn=It.progress),It&&"percent"in It&&(rn=It.percent),rn}const et=gt=>{let{percent:It,success:Vt,successPercent:rn}=gt;const wt=tt(nt({success:Vt,successPercent:rn}));return[wt,tt(tt(It)-wt)]},Ze=gt=>{let{success:It={},strokeColor:Vt}=gt;const{strokeColor:rn}=It;return[rn||Ue.presetPrimaryColors.green,Vt||null]},Ye=(gt,It,Vt)=>{var rn,wt,Ct,Zt;let en=-1,ln=-1;if(It==="step"){const yn=Vt.steps,Bn=Vt.strokeWidth;typeof gt=="string"||typeof gt=="undefined"?(en=gt==="small"?2:14,ln=Bn!=null?Bn:8):typeof gt=="number"?[en,ln]=[gt,gt]:[en=14,ln=8]=Array.isArray(gt)?gt:[gt.width,gt.height],en*=yn}else if(It==="line"){const yn=Vt==null?void 0:Vt.strokeWidth;typeof gt=="string"||typeof gt=="undefined"?ln=yn||(gt==="small"?6:8):typeof gt=="number"?[en,ln]=[gt,gt]:[en=-1,ln=8]=Array.isArray(gt)?gt:[gt.width,gt.height]}else(It==="circle"||It==="dashboard")&&(typeof gt=="string"||typeof gt=="undefined"?[en,ln]=gt==="small"?[60,60]:[120,120]:typeof gt=="number"?[en,ln]=[gt,gt]:Array.isArray(gt)&&(en=(wt=(rn=gt[0])!==null&&rn!==void 0?rn:gt[1])!==null&&wt!==void 0?wt:120,ln=(Zt=(Ct=gt[0])!==null&&Ct!==void 0?Ct:gt[1])!==null&&Zt!==void 0?Zt:120));return[en,ln]},Xe=3,st=gt=>Xe/gt*100;var ht=gt=>{const{prefixCls:It,trailColor:Vt=null,strokeLinecap:rn="round",gapPosition:wt,gapDegree:Ct,width:Zt=120,type:en,children:ln,success:yn,size:Bn=Zt,steps:Wn}=gt,[gn,Ln]=Ye(Bn,"circle");let{strokeWidth:pn}=gt;pn===void 0&&(pn=Math.max(st(gn),6));const In={width:gn,height:Ln,fontSize:gn*.15+6},Gt=te.useMemo(()=>{if(Ct||Ct===0)return Ct;if(en==="dashboard")return 75},[Ct,en]),Ut=et(gt),Lt=wt||en==="dashboard"&&"bottom"||void 0,sn=Object.prototype.toString.call(gt.strokeColor)==="[object Object]",un=Ze({success:yn,strokeColor:gt.strokeColor}),Cn=re()(`${It}-inner`,{[`${It}-circle-gradient`]:sn}),Tn=te.createElement(Ve,{steps:Wn,percent:Wn?Ut[1]:Ut,strokeWidth:pn,trailWidth:pn,strokeColor:Wn?un[1]:un,strokeLinecap:rn,trailColor:Vt,prefixCls:It,gapDegree:Gt,gapPosition:Lt}),jn=gn<=20,hn=te.createElement("div",{className:Cn,style:In},Tn,!jn&&ln);return jn?te.createElement(Le.Z,{title:ln},hn):hn},at=Te(36237),qe=Te(63356),_e=Te(16931),Re=Te(51636);const ne="--progress-line-stroke-color",fe="--progress-percent",Me=gt=>{const It=gt?"100%":"-100%";return new at.Keyframes(`antProgress${gt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${It}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${It}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},He=gt=>{const{componentCls:It,iconCls:Vt}=gt;return{[It]:Object.assign(Object.assign({},(0,qe.Wf)(gt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:gt.fontSize},[`${It}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${It}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:gt.remainingColor,borderRadius:gt.lineBorderRadius},[`${It}-inner:not(${It}-circle-gradient)`]:{[`${It}-circle-path`]:{stroke:gt.defaultColor}},[`${It}-success-bg, ${It}-bg`]:{position:"relative",background:gt.defaultColor,borderRadius:gt.lineBorderRadius,transition:`all ${gt.motionDurationSlow} ${gt.motionEaseInOutCirc}`},[`${It}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${It}-text`]:{width:"max-content",marginInlineStart:0,marginTop:gt.marginXXS}},[`${It}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${ne})`]},height:"100%",width:`calc(1 / var(${fe}) * 100%)`,display:"block"},[`&${It}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${It}-text-inner`]:{color:gt.colorWhite,[`&${It}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${It}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:gt.colorSuccess},[`${It}-text`]:{display:"inline-block",marginInlineStart:gt.marginXS,color:gt.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Vt]:{fontSize:gt.fontSize},[`&${It}-text-outer`]:{width:"max-content"},[`&${It}-text-outer${It}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:gt.marginXS}},[`${It}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,at.unit)(gt.paddingXXS)}`,[`&${It}-text-start`]:{justifyContent:"start"},[`&${It}-text-end`]:{justifyContent:"end"}},[`&${It}-status-active`]:{[`${It}-bg::before`]:{position:"absolute",inset:0,backgroundColor:gt.colorBgContainer,borderRadius:gt.lineBorderRadius,opacity:0,animationName:Me(),animationDuration:gt.progressActiveMotionDuration,animationTimingFunction:gt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${It}-rtl${It}-status-active`]:{[`${It}-bg::before`]:{animationName:Me(!0)}},[`&${It}-status-exception`]:{[`${It}-bg`]:{backgroundColor:gt.colorError},[`${It}-text`]:{color:gt.colorError}},[`&${It}-status-exception ${It}-inner:not(${It}-circle-gradient)`]:{[`${It}-circle-path`]:{stroke:gt.colorError}},[`&${It}-status-success`]:{[`${It}-bg`]:{backgroundColor:gt.colorSuccess},[`${It}-text`]:{color:gt.colorSuccess}},[`&${It}-status-success ${It}-inner:not(${It}-circle-gradient)`]:{[`${It}-circle-path`]:{stroke:gt.colorSuccess}}})}},be=gt=>{const{componentCls:It,iconCls:Vt}=gt;return{[It]:{[`${It}-circle-trail`]:{stroke:gt.remainingColor},[`&${It}-circle ${It}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${It}-circle ${It}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:gt.circleTextColor,fontSize:gt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Vt]:{fontSize:gt.circleIconFontSize}},[`${It}-circle&-status-exception`]:{[`${It}-text`]:{color:gt.colorError}},[`${It}-circle&-status-success`]:{[`${It}-text`]:{color:gt.colorSuccess}}},[`${It}-inline-circle`]:{lineHeight:1,[`${It}-inner`]:{verticalAlign:"bottom"}}}},ve=gt=>{const{componentCls:It}=gt;return{[It]:{[`${It}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:gt.progressStepMinWidth,marginInlineEnd:gt.progressStepMarginInlineEnd,backgroundColor:gt.remainingColor,transition:`all ${gt.motionDurationSlow}`,"&-active":{backgroundColor:gt.defaultColor}}}}}},Ie=gt=>{const{componentCls:It,iconCls:Vt}=gt;return{[It]:{[`${It}-small&-line, ${It}-small&-line ${It}-text ${Vt}`]:{fontSize:gt.fontSizeSM}}}},$e=gt=>({circleTextColor:gt.colorText,defaultColor:gt.colorInfo,remainingColor:gt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${gt.fontSize/gt.fontSizeSM}em`});var We=(0,_e.I$)("Progress",gt=>{const It=gt.calc(gt.marginXXS).div(2).equal(),Vt=(0,Re.mergeToken)(gt,{progressStepMarginInlineEnd:It,progressStepMinWidth:It,progressActiveMotionDuration:"2.4s"});return[He(Vt),be(Vt),ve(Vt),Ie(Vt)]},$e),Je=function(gt,It){var Vt={};for(var rn in gt)Object.prototype.hasOwnProperty.call(gt,rn)&&It.indexOf(rn)<0&&(Vt[rn]=gt[rn]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,rn=Object.getOwnPropertySymbols(gt);wt<rn.length;wt++)It.indexOf(rn[wt])<0&&Object.prototype.propertyIsEnumerable.call(gt,rn[wt])&&(Vt[rn[wt]]=gt[rn[wt]]);return Vt};const ct=gt=>{let It=[];return Object.keys(gt).forEach(Vt=>{const rn=parseFloat(Vt.replace(/%/g,""));Number.isNaN(rn)||It.push({key:rn,value:gt[Vt]})}),It=It.sort((Vt,rn)=>Vt.key-rn.key),It.map(Vt=>{let{key:rn,value:wt}=Vt;return`${wt} ${rn}%`}).join(", ")},ot=(gt,It)=>{const{from:Vt=Ue.presetPrimaryColors.blue,to:rn=Ue.presetPrimaryColors.blue,direction:wt=It==="rtl"?"to left":"to right"}=gt,Ct=Je(gt,["from","to","direction"]);if(Object.keys(Ct).length!==0){const en=ct(Ct),ln=`linear-gradient(${wt}, ${en})`;return{background:ln,[ne]:ln}}const Zt=`linear-gradient(${wt}, ${Vt}, ${rn})`;return{background:Zt,[ne]:Zt}};var ut=gt=>{const{prefixCls:It,direction:Vt,percent:rn,size:wt,strokeWidth:Ct,strokeColor:Zt,strokeLinecap:en="round",children:ln,trailColor:yn=null,percentPosition:Bn,success:Wn}=gt,{align:gn,type:Ln}=Bn,pn=Zt&&typeof Zt!="string"?ot(Zt,Vt):{[ne]:Zt,background:Zt},In=en==="square"||en==="butt"?0:void 0,Gt=wt!=null?wt:[-1,Ct||(wt==="small"?6:8)],[Ut,Lt]=Ye(Gt,"line",{strokeWidth:Ct}),sn={backgroundColor:yn||void 0,borderRadius:In},un=Object.assign(Object.assign({width:`${tt(rn)}%`,height:Lt,borderRadius:In},pn),{[fe]:tt(rn)/100}),Cn=nt(gt),Tn={width:`${tt(Cn)}%`,height:Lt,borderRadius:In,backgroundColor:Wn==null?void 0:Wn.strokeColor},jn={width:Ut<0?"100%":Ut},hn=te.createElement("div",{className:`${It}-inner`,style:sn},te.createElement("div",{className:re()(`${It}-bg`,`${It}-bg-${Ln}`),style:un},Ln==="inner"&&ln),Cn!==void 0&&te.createElement("div",{className:`${It}-success-bg`,style:Tn})),Mn=Ln==="outer"&&gn==="start",_n=Ln==="outer"&&gn==="end";return Ln==="outer"&&gn==="center"?te.createElement("div",{className:`${It}-layout-bottom`},hn,ln):te.createElement("div",{className:`${It}-outer`,style:jn},Mn&&ln,hn,_n&&ln)},At=gt=>{const{size:It,steps:Vt,rounding:rn=Math.round,percent:wt=0,strokeWidth:Ct=8,strokeColor:Zt,trailColor:en=null,prefixCls:ln,children:yn}=gt,Bn=rn(Vt*(wt/100)),Wn=It==="small"?2:14,gn=It!=null?It:[Wn,Ct],[Ln,pn]=Ye(gn,"step",{steps:Vt,strokeWidth:Ct}),In=Ln/Vt,Gt=Array.from({length:Vt});for(let Ut=0;Ut<Vt;Ut++){const Lt=Array.isArray(Zt)?Zt[Ut]:Zt;Gt[Ut]=te.createElement("div",{key:Ut,className:re()(`${ln}-steps-item`,{[`${ln}-steps-item-active`]:Ut<=Bn-1}),style:{backgroundColor:Ut<=Bn-1?Lt:en,width:In,height:pn}})}return te.createElement("div",{className:`${ln}-steps-outer`},Gt,yn)},yt=function(gt,It){var Vt={};for(var rn in gt)Object.prototype.hasOwnProperty.call(gt,rn)&&It.indexOf(rn)<0&&(Vt[rn]=gt[rn]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,rn=Object.getOwnPropertySymbols(gt);wt<rn.length;wt++)It.indexOf(rn[wt])<0&&Object.prototype.propertyIsEnumerable.call(gt,rn[wt])&&(Vt[rn[wt]]=gt[rn[wt]]);return Vt};const Rt=null,Pt=["normal","exception","active","success"];var kt=te.forwardRef((gt,It)=>{const{prefixCls:Vt,className:rn,rootClassName:wt,steps:Ct,strokeColor:Zt,percent:en=0,size:ln="default",showInfo:yn=!0,type:Bn="line",status:Wn,format:gn,style:Ln,percentPosition:pn={}}=gt,In=yt(gt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Gt="end",type:Ut="outer"}=pn,Lt=Array.isArray(Zt)?Zt[0]:Zt,sn=typeof Zt=="string"||Array.isArray(Zt)?Zt:void 0,un=te.useMemo(()=>{if(Lt){const St=typeof Lt=="string"?Lt:Object.values(Lt)[0];return new Ot.FastColor(St).isLight()}return!1},[Zt]),Cn=te.useMemo(()=>{var St,Nt;const Et=nt(gt);return parseInt(Et!==void 0?(St=Et!=null?Et:0)===null||St===void 0?void 0:St.toString():(Nt=en!=null?en:0)===null||Nt===void 0?void 0:Nt.toString(),10)},[en,gt.success,gt.successPercent]),Tn=te.useMemo(()=>!Pt.includes(Wn)&&Cn>=100?"success":Wn||"normal",[Wn,Cn]),{getPrefixCls:jn,direction:hn,progress:Mn}=te.useContext(ee.E_),_n=jn("progress",Vt),[ur,tr,cn]=We(_n),tn=Bn==="line",Hn=tn&&!Ct,Gn=te.useMemo(()=>{if(!yn)return null;const St=nt(gt);let Nt;const Et=gn||(bt=>`${bt}%`),zt=tn&&un&&Ut==="inner";return Ut==="inner"||gn||Tn!=="exception"&&Tn!=="success"?Nt=Et(tt(en),tt(St)):Tn==="exception"?Nt=tn?te.createElement(ye.Z,null):te.createElement(z.Z,null):Tn==="success"&&(Nt=tn?te.createElement(y.Z,null):te.createElement(Pe.Z,null)),te.createElement("span",{className:re()(`${_n}-text`,{[`${_n}-text-bright`]:zt,[`${_n}-text-${Gt}`]:Hn,[`${_n}-text-${Ut}`]:Hn}),title:typeof Nt=="string"?Nt:void 0},Nt)},[yn,en,Cn,Tn,Bn,_n,gn]);let Mt;Bn==="line"?Mt=Ct?te.createElement(At,Object.assign({},gt,{strokeColor:sn,prefixCls:_n,steps:typeof Ct=="object"?Ct.count:Ct}),Gn):te.createElement(ut,Object.assign({},gt,{strokeColor:Lt,prefixCls:_n,direction:hn,percentPosition:{align:Gt,type:Ut}}),Gn):(Bn==="circle"||Bn==="dashboard")&&(Mt=te.createElement(ht,Object.assign({},gt,{strokeColor:Lt,prefixCls:_n,progressStatus:Tn}),Gn));const Kt=re()(_n,`${_n}-status-${Tn}`,{[`${_n}-${Bn==="dashboard"&&"circle"||Bn}`]:Bn!=="line",[`${_n}-inline-circle`]:Bn==="circle"&&Ye(ln,"circle")[0]<=20,[`${_n}-line`]:Hn,[`${_n}-line-align-${Gt}`]:Hn,[`${_n}-line-position-${Ut}`]:Hn,[`${_n}-steps`]:Ct,[`${_n}-show-info`]:yn,[`${_n}-${ln}`]:typeof ln=="string",[`${_n}-rtl`]:hn==="rtl"},Mn==null?void 0:Mn.className,rn,wt,tr,cn);return ur(te.createElement("div",Object.assign({ref:It,style:Object.assign(Object.assign({},Mn==null?void 0:Mn.style),Ln),className:Kt,role:"progressbar","aria-valuenow":Cn,"aria-valuemin":0,"aria-valuemax":100},(0,oe.Z)(In,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Mt))}),Dt=kt},63139:function(wn,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"},Pe=y,ye=Te(7657),z=function(Ye,Xe){return te.createElement(ye.Z,(0,Ot.Z)({},Ye,{ref:Xe,icon:Pe}))},E=te.forwardRef(z),re=E,oe=Te(92310),ee=Te.n(oe),de=Te(20068),x=Te(42978),ae=Te(75931),ie=Te(18929),se=Te(10228),ue=Te(26112);function pe(Ze,Ye){var Xe=Ze.disabled,st=Ze.prefixCls,Qe=Ze.character,ht=Ze.characterRender,at=Ze.index,qe=Ze.count,_e=Ze.value,Re=Ze.allowHalf,ne=Ze.focused,fe=Ze.onHover,Me=Ze.onClick,He=function(ot){fe(ot,at)},be=function(ot){Me(ot,at)},ve=function(ot){ot.keyCode===se.Z.ENTER&&Me(ot,at)},Ie=at+1,$e=new Set([st]);_e===0&&at===0&&ne?$e.add("".concat(st,"-focused")):Re&&_e+.5>=Ie&&_e<Ie?($e.add("".concat(st,"-half")),$e.add("".concat(st,"-active")),ne&&$e.add("".concat(st,"-focused"))):(Ie<=_e?$e.add("".concat(st,"-full")):$e.add("".concat(st,"-zero")),Ie===_e&&ne&&$e.add("".concat(st,"-focused")));var We=typeof Qe=="function"?Qe(Ze):Qe,Je=te.createElement("li",{className:ee()(Array.from($e)),ref:Ye},te.createElement("div",{onClick:Xe?null:be,onKeyDown:Xe?null:ve,onMouseMove:Xe?null:He,role:"radio","aria-checked":_e>at?"true":"false","aria-posinset":at+1,"aria-setsize":qe,tabIndex:Xe?-1:0},te.createElement("div",{className:"".concat(st,"-first")},We),te.createElement("div",{className:"".concat(st,"-second")},We)));return ht&&(Je=ht(Je,Ze)),Je}var he=te.forwardRef(pe);function ge(){var Ze=te.useRef({});function Ye(st){return Ze.current[st]}function Xe(st){return function(Qe){Ze.current[st]=Qe}}return[Ye,Xe]}function me(Ze){var Ye=Ze.pageXOffset,Xe="scrollLeft";if(typeof Ye!="number"){var st=Ze.document;Ye=st.documentElement[Xe],typeof Ye!="number"&&(Ye=st.body[Xe])}return Ye}function xe(Ze){var Ye,Xe,st=Ze.ownerDocument,Qe=st.body,ht=st&&st.documentElement,at=Ze.getBoundingClientRect();return Ye=at.left,Xe=at.top,Ye-=ht.clientLeft||Qe.clientLeft||0,Xe-=ht.clientTop||Qe.clientTop||0,{left:Ye,top:Xe}}function Ae(Ze){var Ye=xe(Ze),Xe=Ze.ownerDocument,st=Xe.defaultView||Xe.parentWindow;return Ye.left+=me(st),Ye.left}var Ne=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Be(Ze,Ye){var Xe=Ze.prefixCls,st=Xe===void 0?"rc-rate":Xe,Qe=Ze.className,ht=Ze.defaultValue,at=Ze.value,qe=Ze.count,_e=qe===void 0?5:qe,Re=Ze.allowHalf,ne=Re===void 0?!1:Re,fe=Ze.allowClear,Me=fe===void 0?!0:fe,He=Ze.keyboard,be=He===void 0?!0:He,ve=Ze.character,Ie=ve===void 0?"\u2605":ve,$e=Ze.characterRender,We=Ze.disabled,Je=Ze.direction,ct=Je===void 0?"ltr":Je,ot=Ze.tabIndex,ft=ot===void 0?0:ot,ut=Ze.autoFocus,lt=Ze.onHoverChange,At=Ze.onChange,yt=Ze.onFocus,Rt=Ze.onBlur,Pt=Ze.onKeyDown,Tt=Ze.onMouseLeave,kt=(0,ae.Z)(Ze,Ne),Dt=ge(),gt=(0,x.Z)(Dt,2),It=gt[0],Vt=gt[1],rn=te.useRef(null),wt=function(){if(!We){var Gn;(Gn=rn.current)===null||Gn===void 0||Gn.focus()}};te.useImperativeHandle(Ye,function(){return{focus:wt,blur:function(){if(!We){var Gn;(Gn=rn.current)===null||Gn===void 0||Gn.blur()}}}});var Ct=(0,ie.Z)(ht||0,{value:at}),Zt=(0,x.Z)(Ct,2),en=Zt[0],ln=Zt[1],yn=(0,ie.Z)(null),Bn=(0,x.Z)(yn,2),Wn=Bn[0],gn=Bn[1],Ln=function(Gn,Mt){var Kt=ct==="rtl",St=Gn+1;if(ne){var Nt=It(Gn),Et=Ae(Nt),zt=Nt.clientWidth;(Kt&&Mt-Et>zt/2||!Kt&&Mt-Et<zt/2)&&(St-=.5)}return St},pn=function(Gn){ln(Gn),At==null||At(Gn)},In=te.useState(!1),Gt=(0,x.Z)(In,2),Ut=Gt[0],Lt=Gt[1],sn=function(){Lt(!0),yt==null||yt()},un=function(){Lt(!1),Rt==null||Rt()},Cn=te.useState(null),Tn=(0,x.Z)(Cn,2),jn=Tn[0],hn=Tn[1],Mn=function(Gn,Mt){var Kt=Ln(Mt,Gn.pageX);Kt!==Wn&&(hn(Kt),gn(null)),lt==null||lt(Kt)},_n=function(Gn){We||(hn(null),gn(null),lt==null||lt(void 0)),Gn&&(Tt==null||Tt(Gn))},ur=function(Gn,Mt){var Kt=Ln(Mt,Gn.pageX),St=!1;Me&&(St=Kt===en),_n(),pn(St?0:Kt),gn(St?Kt:null)},tr=function(Gn){var Mt=Gn.keyCode,Kt=ct==="rtl",St=ne?.5:1;be&&(Mt===se.Z.RIGHT&&en<_e&&!Kt?(pn(en+St),Gn.preventDefault()):Mt===se.Z.LEFT&&en>0&&!Kt||Mt===se.Z.RIGHT&&en>0&&Kt?(pn(en-St),Gn.preventDefault()):Mt===se.Z.LEFT&&en<_e&&Kt&&(pn(en+St),Gn.preventDefault())),Pt==null||Pt(Gn)};te.useEffect(function(){ut&&!We&&wt()},[]);var cn=new Array(_e).fill(0).map(function(Hn,Gn){return te.createElement(he,{ref:Vt(Gn),index:Gn,count:_e,disabled:We,prefixCls:"".concat(st,"-star"),allowHalf:ne,value:jn===null?en:jn,onClick:ur,onHover:Mn,key:Hn||Gn,character:Ie,characterRender:$e,focused:Ut})}),tn=ee()(st,Qe,(0,de.Z)((0,de.Z)({},"".concat(st,"-disabled"),We),"".concat(st,"-rtl"),ct==="rtl"));return te.createElement("ul",(0,Ot.Z)({className:tn,onMouseLeave:_n,tabIndex:We?-1:ft,onFocus:We?null:sn,onBlur:We?null:un,onKeyDown:We?null:tr,ref:rn},(0,ue.Z)(kt,{aria:!0,data:!0,attr:!0})),cn)}var De=te.forwardRef(Be),we=De,Ce=Te(48755),Oe=Te(25399),je=Te(36237),Fe=Te(63356),ke=Te(16931),Ee=Te(51636);const Ge=Ze=>{const{componentCls:Ye}=Ze;return{[`${Ye}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ze.marginXS},"> div":{transition:`all ${Ze.motionDurationMid}, outline 0s`,"&:hover":{transform:Ze.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,je.unit)(Ze.lineWidth)} dashed ${Ze.starColor}`,transform:Ze.starHoverScale}},"&-first, &-second":{color:Ze.starBg,transition:`all ${Ze.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"}}}},Ke=Ze=>({[`&-rtl${Ze.componentCls}`]:{direction:"rtl"}}),Ve=Ze=>{const{componentCls:Ye}=Ze;return{[Ye]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Fe.Wf)(Ze)),{display:"inline-block",margin:0,padding:0,color:Ze.starColor,fontSize:Ze.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${Ye} ${Ye}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ge(Ze)),Ke(Ze))}},it=Ze=>({starColor:Ze.yellow6,starSize:Ze.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ze.colorFillContent});var Le=(0,ke.I$)("Rate",Ze=>{const Ye=(0,Ee.mergeToken)(Ze,{});return[Ve(Ye)]},it),Ue=Te(2171),tt=function(Ze,Ye){var Xe={};for(var st in Ze)Object.prototype.hasOwnProperty.call(Ze,st)&&Ye.indexOf(st)<0&&(Xe[st]=Ze[st]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,st=Object.getOwnPropertySymbols(Ze);Qe<st.length;Qe++)Ye.indexOf(st[Qe])<0&&Object.prototype.propertyIsEnumerable.call(Ze,st[Qe])&&(Xe[st[Qe]]=Ze[st[Qe]]);return Xe},et=te.forwardRef((Ze,Ye)=>{const{prefixCls:Xe,className:st,rootClassName:Qe,style:ht,tooltips:at,character:qe=te.createElement(re,null),disabled:_e}=Ze,Re=tt(Ze,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),ne=(ot,ft)=>{let{index:ut}=ft;return at?te.createElement(Oe.Z,{title:at[ut]},ot):ot},{getPrefixCls:fe,direction:Me,rate:He}=te.useContext(Ce.E_),be=fe("rate",Xe),[ve,Ie,$e]=Le(be),We=Object.assign(Object.assign({},He==null?void 0:He.style),ht),Je=te.useContext(Ue.Z),ct=_e!=null?_e:Je;return ve(te.createElement(we,Object.assign({ref:Ye,character:qe,characterRender:ne,disabled:ct},Re,{className:ee()(st,Qe,Ie,$e,He==null?void 0:He.className),style:We,prefixCls:be,direction:Me})))})},82326:function(wn,Yt,Te){"use strict";var te=Te(59301),Ot=Te(92310),y=Te.n(Ot),Pe=Te(37463),ye=Te(2738),z=Te(75030),E=Te(86641),re=Te(45915),oe=Te(82855),ee=Te(48755),de=Te(38406),x=Te(2171),ae=Te(83397),ie=Te(31756),se=Te(56553),ue=Te(24971),pe=Te(70045),he=Te(57700),ge=Te(1722),me=Te(90376),xe=Te(68525),Ae=Te(90005),Ne=function(Oe,je){var Fe={};for(var ke in Oe)Object.prototype.hasOwnProperty.call(Oe,ke)&&je.indexOf(ke)<0&&(Fe[ke]=Oe[ke]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,ke=Object.getOwnPropertySymbols(Oe);Ee<ke.length;Ee++)je.indexOf(ke[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Oe,ke[Ee])&&(Fe[ke[Ee]]=Oe[ke[Ee]]);return Fe};const Be="SECRET_COMBOBOX_MODE_DO_NOT_USE",De=(Oe,je)=>{var Fe;const{prefixCls:ke,bordered:Ee,className:Ge,rootClassName:Ke,getPopupContainer:Ve,popupClassName:it,dropdownClassName:Le,listHeight:Ue=256,placement:tt,listItemHeight:nt,size:et,disabled:Ze,notFoundContent:Ye,status:Xe,builtinPlacements:st,dropdownMatchSelectWidth:Qe,popupMatchSelectWidth:ht,direction:at,style:qe,allowClear:_e,variant:Re,dropdownStyle:ne,transitionName:fe,tagRender:Me,maxCount:He,prefix:be}=Oe,ve=Ne(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:We,direction:Je,virtual:ct,popupMatchSelectWidth:ot,popupOverflow:ft}=te.useContext(ee.E_),ut=(0,ee.dj)("select"),[,lt]=(0,he.ZP)(),At=nt!=null?nt:lt==null?void 0:lt.controlHeight,yt=$e("select",ke),Rt=$e(),Pt=at!=null?at:Je,{compactSize:Tt,compactItemClassnames:kt}=(0,pe.ri)(yt,Pt),[Dt,gt]=(0,ue.Z)("select",Re,Ee),It=(0,ae.Z)(yt),[Vt,rn,wt]=(0,me.Z)(yt,It),Ct=te.useMemo(()=>{const{mode:tr}=Oe;if(tr!=="combobox")return tr===Be?"combobox":tr},[Oe.mode]),Zt=Ct==="multiple"||Ct==="tags",en=(0,Ae.Z)(Oe.suffixIcon,Oe.showArrow),ln=(Fe=ht!=null?ht:Qe)!==null&&Fe!==void 0?Fe:ot,{status:yn,hasFeedback:Bn,isFormItemInput:Wn,feedbackIcon:gn}=te.useContext(se.aM),Ln=(0,oe.F)(yn,Xe);let pn;Ye!==void 0?pn=Ye:Ct==="combobox"?pn=null:pn=(We==null?void 0:We("Select"))||te.createElement(de.Z,{componentName:"Select"});const{suffixIcon:In,itemIcon:Gt,removeIcon:Ut,clearIcon:Lt}=(0,xe.Z)(Object.assign(Object.assign({},ve),{multiple:Zt,hasFeedback:Bn,feedbackIcon:gn,showSuffixIcon:en,prefixCls:yt,componentName:"Select"})),sn=_e===!0?{clearIcon:Lt}:_e,un=(0,ye.Z)(ve,["suffixIcon","itemIcon"]),Cn=y()(it||Le,{[`${yt}-dropdown-${Pt}`]:Pt==="rtl"},Ke,wt,It,rn),Tn=(0,ie.Z)(tr=>{var cn;return(cn=et!=null?et:Tt)!==null&&cn!==void 0?cn:tr}),jn=te.useContext(x.Z),hn=Ze!=null?Ze:jn,Mn=y()({[`${yt}-lg`]:Tn==="large",[`${yt}-sm`]:Tn==="small",[`${yt}-rtl`]:Pt==="rtl",[`${yt}-${Dt}`]:gt,[`${yt}-in-form-item`]:Wn},(0,oe.Z)(yt,Ln,Bn),kt,ut.className,Ge,Ke,wt,It,rn),_n=te.useMemo(()=>tt!==void 0?tt:Pt==="rtl"?"bottomRight":"bottomLeft",[tt,Pt]),[ur]=(0,z.Cn)("SelectLike",ne==null?void 0:ne.zIndex);return Vt(te.createElement(Pe.ZP,Object.assign({ref:je,virtual:ct,showSearch:ut.showSearch},un,{style:Object.assign(Object.assign({},ut.style),qe),dropdownMatchSelectWidth:ln,transitionName:(0,E.m)(Rt,"slide-up",fe),builtinPlacements:(0,ge.Z)(st,ft),listHeight:Ue,listItemHeight:At,mode:Ct,prefixCls:yt,placement:_n,direction:Pt,prefix:be,suffixIcon:In,menuItemSelectedIcon:Gt,removeIcon:Ut,allowClear:sn,notFoundContent:pn,className:Mn,getPopupContainer:Ve||Ie,dropdownClassName:Cn,disabled:hn,dropdownStyle:Object.assign(Object.assign({},ne),{zIndex:ur}),maxCount:Zt?He:void 0,tagRender:Zt?Me:void 0})))},we=te.forwardRef(De),Ce=(0,re.Z)(we,"dropdownAlign");we.SECRET_COMBOBOX_MODE_DO_NOT_USE=Be,we.Option=Pe.Wx,we.OptGroup=Pe.Xo,we._InternalPanelDoNotUseOrYouWillBeFired=Ce,Yt.default=we},1722:function(wn,Yt){"use strict";const Te=Ot=>{const Pe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Ot==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Pe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Pe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Pe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Pe),{points:["br","tr"],offset:[0,-4]})}};function te(Ot,y){return Ot||Te(y)}Yt.Z=te},90376:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ke}});var te=Te(63356),Ot=Te(56119),y=Te(16931),Pe=Te(51636),ye=Te(46e3),z=Te(93873);const E=Ee=>{const{optionHeight:Ge,optionFontSize:Ke,optionLineHeight:Ve,optionPadding:it}=Ee;return{position:"relative",display:"block",minHeight:Ge,padding:it,color:Ee.colorText,fontWeight:"normal",fontSize:Ke,lineHeight:Ve,boxSizing:"border-box"}};var oe=Ee=>{const{antCls:Ge,componentCls:Ke}=Ee,Ve=`${Ke}-item`,it=`&${Ge}-slide-up-enter${Ge}-slide-up-enter-active`,Le=`&${Ge}-slide-up-appear${Ge}-slide-up-appear-active`,Ue=`&${Ge}-slide-up-leave${Ge}-slide-up-leave-active`,tt=`${Ke}-dropdown-placement-`,nt=`${Ve}-option-selected`;return[{[`${Ke}-dropdown`]:Object.assign(Object.assign({},(0,te.Wf)(Ee)),{position:"absolute",top:-9999,zIndex:Ee.zIndexPopup,boxSizing:"border-box",padding:Ee.paddingXXS,overflow:"hidden",fontSize:Ee.fontSize,fontVariant:"initial",backgroundColor:Ee.colorBgElevated,borderRadius:Ee.borderRadiusLG,outline:"none",boxShadow:Ee.boxShadowSecondary,[`
${it}${tt}bottomLeft,
${Le}${tt}bottomLeft
`]:{animationName:ye.fJ},[`
${it}${tt}topLeft,
${Le}${tt}topLeft,
${it}${tt}topRight,
${Le}${tt}topRight
`]:{animationName:ye.Qt},[`${Ue}${tt}bottomLeft`]:{animationName:ye.Uw},[`
${Ue}${tt}topLeft,
${Ue}${tt}topRight
`]:{animationName:ye.ly},"&-hidden":{display:"none"},[Ve]:Object.assign(Object.assign({},E(Ee)),{cursor:"pointer",transition:`background ${Ee.motionDurationSlow} ease`,borderRadius:Ee.borderRadiusSM,"&-group":{color:Ee.colorTextDescription,fontSize:Ee.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},te.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ve}-option-disabled)`]:{backgroundColor:Ee.optionActiveBg},[`&-selected:not(${Ve}-option-disabled)`]:{color:Ee.optionSelectedColor,fontWeight:Ee.optionSelectedFontWeight,backgroundColor:Ee.optionSelectedBg,[`${Ve}-option-state`]:{color:Ee.colorPrimary}},"&-disabled":{[`&${Ve}-option-selected`]:{backgroundColor:Ee.colorBgContainerDisabled},color:Ee.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ee.calc(Ee.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},E(Ee)),{color:Ee.colorTextDisabled})}),[`${nt}:has(+ ${nt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${nt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,ye.oN)(Ee,"slide-up"),(0,ye.oN)(Ee,"slide-down"),(0,z.Fm)(Ee,"move-up"),(0,z.Fm)(Ee,"move-down")]},ee=Te(26743),de=Te(36237);function x(Ee,Ge){const{componentCls:Ke,inputPaddingHorizontalBase:Ve,borderRadius:it}=Ee,Le=Ee.calc(Ee.controlHeight).sub(Ee.calc(Ee.lineWidth).mul(2)).equal(),Ue=Ge?`${Ke}-${Ge}`:"";return{[`${Ke}-single${Ue}`]:{fontSize:Ee.fontSize,height:Ee.controlHeight,[`${Ke}-selector`]:Object.assign(Object.assign({},(0,te.Wf)(Ee,!0)),{display:"flex",borderRadius:it,flex:"1 1 auto",[`${Ke}-selection-wrap:after`]:{lineHeight:(0,de.unit)(Le)},[`${Ke}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${Ke}-selection-item,
${Ke}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,de.unit)(Le),transition:`all ${Ee.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Ke}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ke}-selection-item:empty:after`,`${Ke}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${Ke}-show-arrow ${Ke}-selection-item,
&${Ke}-show-arrow ${Ke}-selection-search,
&${Ke}-show-arrow ${Ke}-selection-placeholder
`]:{paddingInlineEnd:Ee.showArrowPaddingInlineEnd},[`&${Ke}-open ${Ke}-selection-item`]:{color:Ee.colorTextPlaceholder},[`&:not(${Ke}-customize-input)`]:{[`${Ke}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,de.unit)(Ve)}`,[`${Ke}-selection-search-input`]:{height:Le,fontSize:Ee.fontSize},"&:after":{lineHeight:(0,de.unit)(Le)}}},[`&${Ke}-customize-input`]:{[`${Ke}-selector`]:{"&:after":{display:"none"},[`${Ke}-selection-search`]:{position:"static",width:"100%"},[`${Ke}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,de.unit)(Ve)}`,"&:after":{display:"none"}}}}}}}function ae(Ee){const{componentCls:Ge}=Ee,Ke=Ee.calc(Ee.controlPaddingHorizontalSM).sub(Ee.lineWidth).equal();return[x(Ee),x((0,Pe.mergeToken)(Ee,{controlHeight:Ee.controlHeightSM,borderRadius:Ee.borderRadiusSM}),"sm"),{[`${Ge}-single${Ge}-sm`]:{[`&:not(${Ge}-customize-input)`]:{[`${Ge}-selector`]:{padding:`0 ${(0,de.unit)(Ke)}`},[`&${Ge}-show-arrow ${Ge}-selection-search`]:{insetInlineEnd:Ee.calc(Ke).add(Ee.calc(Ee.fontSize).mul(1.5)).equal()},[`
&${Ge}-show-arrow ${Ge}-selection-item,
&${Ge}-show-arrow ${Ge}-selection-placeholder
`]:{paddingInlineEnd:Ee.calc(Ee.fontSize).mul(1.5).equal()}}}},x((0,Pe.mergeToken)(Ee,{controlHeight:Ee.singleItemHeightLG,fontSize:Ee.fontSizeLG,borderRadius:Ee.borderRadiusLG}),"lg")]}const ie=Ee=>{const{fontSize:Ge,lineHeight:Ke,lineWidth:Ve,controlHeight:it,controlHeightSM:Le,controlHeightLG:Ue,paddingXXS:tt,controlPaddingHorizontal:nt,zIndexPopupBase:et,colorText:Ze,fontWeightStrong:Ye,controlItemBgActive:Xe,controlItemBgHover:st,colorBgContainer:Qe,colorFillSecondary:ht,colorBgContainerDisabled:at,colorTextDisabled:qe,colorPrimaryHover:_e,colorPrimary:Re,controlOutline:ne}=Ee,fe=tt*2,Me=Ve*2,He=Math.min(it-fe,it-Me),be=Math.min(Le-fe,Le-Me),ve=Math.min(Ue-fe,Ue-Me);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(tt/2),zIndexPopup:et+50,optionSelectedColor:Ze,optionSelectedFontWeight:Ye,optionSelectedBg:Xe,optionActiveBg:st,optionPadding:`${(it-Ge*Ke)/2}px ${nt}px`,optionFontSize:Ge,optionLineHeight:Ke,optionHeight:it,selectorBg:Qe,clearBg:Qe,singleItemHeightLG:Ue,multipleItemBg:ht,multipleItemBorderColor:"transparent",multipleItemHeight:He,multipleItemHeightSM:be,multipleItemHeightLG:ve,multipleSelectorBgDisabled:at,multipleItemColorDisabled:qe,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(Ee.fontSize*1.25),hoverBorderColor:_e,activeBorderColor:Re,activeOutlineColor:ne,selectAffixPadding:tt}},se=(Ee,Ge)=>{const{componentCls:Ke,antCls:Ve,controlOutlineWidth:it}=Ee;return{[`&:not(${Ke}-customize-input) ${Ke}-selector`]:{border:`${(0,de.unit)(Ee.lineWidth)} ${Ee.lineType} ${Ge.borderColor}`,background:Ee.selectorBg},[`&:not(${Ke}-disabled):not(${Ke}-customize-input):not(${Ve}-pagination-size-changer)`]:{[`&:hover ${Ke}-selector`]:{borderColor:Ge.hoverBorderHover},[`${Ke}-focused& ${Ke}-selector`]:{borderColor:Ge.activeBorderColor,boxShadow:`0 0 0 ${(0,de.unit)(it)} ${Ge.activeOutlineColor}`,outline:0},[`${Ke}-prefix`]:{color:Ge.color}}}},ue=(Ee,Ge)=>({[`&${Ee.componentCls}-status-${Ge.status}`]:Object.assign({},se(Ee,Ge))}),pe=Ee=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},se(Ee,{borderColor:Ee.colorBorder,hoverBorderHover:Ee.hoverBorderColor,activeBorderColor:Ee.activeBorderColor,activeOutlineColor:Ee.activeOutlineColor,color:Ee.colorText})),ue(Ee,{status:"error",borderColor:Ee.colorError,hoverBorderHover:Ee.colorErrorHover,activeBorderColor:Ee.colorError,activeOutlineColor:Ee.colorErrorOutline,color:Ee.colorError})),ue(Ee,{status:"warning",borderColor:Ee.colorWarning,hoverBorderHover:Ee.colorWarningHover,activeBorderColor:Ee.colorWarning,activeOutlineColor:Ee.colorWarningOutline,color:Ee.colorWarning})),{[`&${Ee.componentCls}-disabled`]:{[`&:not(${Ee.componentCls}-customize-input) ${Ee.componentCls}-selector`]:{background:Ee.colorBgContainerDisabled,color:Ee.colorTextDisabled}},[`&${Ee.componentCls}-multiple ${Ee.componentCls}-selection-item`]:{background:Ee.multipleItemBg,border:`${(0,de.unit)(Ee.lineWidth)} ${Ee.lineType} ${Ee.multipleItemBorderColor}`}})}),he=(Ee,Ge)=>{const{componentCls:Ke,antCls:Ve}=Ee;return{[`&:not(${Ke}-customize-input) ${Ke}-selector`]:{background:Ge.bg,border:`${(0,de.unit)(Ee.lineWidth)} ${Ee.lineType} transparent`,color:Ge.color},[`&:not(${Ke}-disabled):not(${Ke}-customize-input):not(${Ve}-pagination-size-changer)`]:{[`&:hover ${Ke}-selector`]:{background:Ge.hoverBg},[`${Ke}-focused& ${Ke}-selector`]:{background:Ee.selectorBg,borderColor:Ge.activeBorderColor,outline:0}}}},ge=(Ee,Ge)=>({[`&${Ee.componentCls}-status-${Ge.status}`]:Object.assign({},he(Ee,Ge))}),me=Ee=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},he(Ee,{bg:Ee.colorFillTertiary,hoverBg:Ee.colorFillSecondary,activeBorderColor:Ee.activeBorderColor,color:Ee.colorText})),ge(Ee,{status:"error",bg:Ee.colorErrorBg,hoverBg:Ee.colorErrorBgHover,activeBorderColor:Ee.colorError,color:Ee.colorError})),ge(Ee,{status:"warning",bg:Ee.colorWarningBg,hoverBg:Ee.colorWarningBgHover,activeBorderColor:Ee.colorWarning,color:Ee.colorWarning})),{[`&${Ee.componentCls}-disabled`]:{[`&:not(${Ee.componentCls}-customize-input) ${Ee.componentCls}-selector`]:{borderColor:Ee.colorBorder,background:Ee.colorBgContainerDisabled,color:Ee.colorTextDisabled}},[`&${Ee.componentCls}-multiple ${Ee.componentCls}-selection-item`]:{background:Ee.colorBgContainer,border:`${(0,de.unit)(Ee.lineWidth)} ${Ee.lineType} ${Ee.colorSplit}`}})}),xe=Ee=>({"&-borderless":{[`${Ee.componentCls}-selector`]:{background:"transparent",border:`${(0,de.unit)(Ee.lineWidth)} ${Ee.lineType} transparent`},[`&${Ee.componentCls}-disabled`]:{[`&:not(${Ee.componentCls}-customize-input) ${Ee.componentCls}-selector`]:{color:Ee.colorTextDisabled}},[`&${Ee.componentCls}-multiple ${Ee.componentCls}-selection-item`]:{background:Ee.multipleItemBg,border:`${(0,de.unit)(Ee.lineWidth)} ${Ee.lineType} ${Ee.multipleItemBorderColor}`},[`&${Ee.componentCls}-status-error`]:{[`${Ee.componentCls}-prefix, ${Ee.componentCls}-selection-item`]:{color:Ee.colorError}},[`&${Ee.componentCls}-status-warning`]:{[`${Ee.componentCls}-prefix, ${Ee.componentCls}-selection-item`]:{color:Ee.colorWarning}}}}),Ae=(Ee,Ge)=>{const{componentCls:Ke,antCls:Ve}=Ee;return{[`&:not(${Ke}-customize-input) ${Ke}-selector`]:{borderWidth:`0 0 ${(0,de.unit)(Ee.lineWidth)} 0`,borderStyle:`none none ${Ee.lineType} none`,borderColor:Ge.borderColor,background:Ee.selectorBg,borderRadius:0},[`&:not(${Ke}-disabled):not(${Ke}-customize-input):not(${Ve}-pagination-size-changer)`]:{[`&:hover ${Ke}-selector`]:{borderColor:Ge.hoverBorderHover},[`${Ke}-focused& ${Ke}-selector`]:{borderColor:Ge.activeBorderColor,outline:0},[`${Ke}-prefix`]:{color:Ge.color}}}},Ne=(Ee,Ge)=>({[`&${Ee.componentCls}-status-${Ge.status}`]:Object.assign({},Ae(Ee,Ge))}),Be=Ee=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ae(Ee,{borderColor:Ee.colorBorder,hoverBorderHover:Ee.hoverBorderColor,activeBorderColor:Ee.activeBorderColor,activeOutlineColor:Ee.activeOutlineColor,color:Ee.colorText})),Ne(Ee,{status:"error",borderColor:Ee.colorError,hoverBorderHover:Ee.colorErrorHover,activeBorderColor:Ee.colorError,activeOutlineColor:Ee.colorErrorOutline,color:Ee.colorError})),Ne(Ee,{status:"warning",borderColor:Ee.colorWarning,hoverBorderHover:Ee.colorWarningHover,activeBorderColor:Ee.colorWarning,activeOutlineColor:Ee.colorWarningOutline,color:Ee.colorWarning})),{[`&${Ee.componentCls}-disabled`]:{[`&:not(${Ee.componentCls}-customize-input) ${Ee.componentCls}-selector`]:{color:Ee.colorTextDisabled}},[`&${Ee.componentCls}-multiple ${Ee.componentCls}-selection-item`]:{background:Ee.multipleItemBg,border:`${(0,de.unit)(Ee.lineWidth)} ${Ee.lineType} ${Ee.multipleItemBorderColor}`}})});var we=Ee=>({[Ee.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},pe(Ee)),me(Ee)),xe(Ee)),Be(Ee))});const Ce=Ee=>{const{componentCls:Ge}=Ee;return{position:"relative",transition:`all ${Ee.motionDurationMid} ${Ee.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ge}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Ge}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Oe=Ee=>{const{componentCls:Ge}=Ee;return{[`${Ge}-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"}}}},je=Ee=>{const{antCls:Ge,componentCls:Ke,inputPaddingHorizontalBase:Ve,iconCls:it}=Ee;return{[Ke]:Object.assign(Object.assign({},(0,te.Wf)(Ee)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Ke}-customize-input) ${Ke}-selector`]:Object.assign(Object.assign({},Ce(Ee)),Oe(Ee)),[`${Ke}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},te.vS),{[`> ${Ge}-typography`]:{display:"inline"}}),[`${Ke}-selection-placeholder`]:Object.assign(Object.assign({},te.vS),{flex:1,color:Ee.colorTextPlaceholder,pointerEvents:"none"}),[`${Ke}-arrow`]:Object.assign(Object.assign({},(0,te.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ve,height:Ee.fontSizeIcon,marginTop:Ee.calc(Ee.fontSizeIcon).mul(-1).div(2).equal(),color:Ee.colorTextQuaternary,fontSize:Ee.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${Ee.motionDurationSlow} ease`,[it]:{verticalAlign:"top",transition:`transform ${Ee.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ke}-suffix)`]:{pointerEvents:"auto"}},[`${Ke}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ke}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Ke}-prefix`]:{flex:"none",marginInlineEnd:Ee.selectAffixPadding},[`${Ke}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ve,zIndex:1,display:"inline-block",width:Ee.fontSizeIcon,height:Ee.fontSizeIcon,marginTop:Ee.calc(Ee.fontSizeIcon).mul(-1).div(2).equal(),color:Ee.colorTextQuaternary,fontSize:Ee.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${Ee.motionDurationMid} ease, opacity ${Ee.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ee.colorTextTertiary}},[`&:hover ${Ke}-clear`]:{opacity:1,background:Ee.colorBgBase,borderRadius:"50%"}}),[`${Ke}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Ke}-has-feedback`]:{[`${Ke}-clear`]:{insetInlineEnd:Ee.calc(Ve).add(Ee.fontSize).add(Ee.paddingXS).equal()}}}}}},Fe=Ee=>{const{componentCls:Ge}=Ee;return[{[Ge]:{[`&${Ge}-in-form-item`]:{width:"100%"}}},je(Ee),ae(Ee),(0,ee.ZP)(Ee),oe(Ee),{[`${Ge}-rtl`]:{direction:"rtl"}},(0,Ot.c)(Ee,{borderElCls:`${Ge}-selector`,focusElCls:`${Ge}-focused`})]};var ke=(0,y.I$)("Select",(Ee,Ge)=>{let{rootPrefixCls:Ke}=Ge;const Ve=(0,Pe.mergeToken)(Ee,{rootPrefixCls:Ke,inputPaddingHorizontalBase:Ee.calc(Ee.paddingSM).sub(1).equal(),multipleSelectItemHeight:Ee.multipleItemHeight,selectHeight:Ee.controlHeight});return[Fe(Ve),we(Ve)]},ie,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(wn,Yt,Te){"use strict";Te.d(Yt,{_z:function(){return z},gp:function(){return Pe}});var te=Te(36237),Ot=Te(63356),y=Te(51636);const Pe=ee=>{const{multipleSelectItemHeight:de,paddingXXS:x,lineWidth:ae,INTERNAL_FIXED_ITEM_MARGIN:ie}=ee,se=ee.max(ee.calc(x).sub(ae).equal(),0),ue=ee.max(ee.calc(se).sub(ie).equal(),0);return{basePadding:se,containerPadding:ue,itemHeight:(0,te.unit)(de),itemLineHeight:(0,te.unit)(ee.calc(de).sub(ee.calc(ee.lineWidth).mul(2)).equal())}},ye=ee=>{const{multipleSelectItemHeight:de,selectHeight:x,lineWidth:ae}=ee;return ee.calc(x).sub(de).div(2).sub(ae).equal()},z=ee=>{const{componentCls:de,iconCls:x,borderRadiusSM:ae,motionDurationSlow:ie,paddingXS:se,multipleItemColorDisabled:ue,multipleItemBorderColorDisabled:pe,colorIcon:he,colorIconHover:ge,INTERNAL_FIXED_ITEM_MARGIN:me}=ee;return{[`${de}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${de}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:me,borderRadius:ae,cursor:"default",transition:`font-size ${ie}, line-height ${ie}, height ${ie}`,marginInlineEnd:ee.calc(me).mul(2).equal(),paddingInlineStart:se,paddingInlineEnd:ee.calc(se).div(2).equal(),[`${de}-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:ge}})}}}},E=(ee,de)=>{const{componentCls:x,INTERNAL_FIXED_ITEM_MARGIN:ae}=ee,ie=`${x}-selection-overflow`,se=ee.multipleSelectItemHeight,ue=ye(ee),pe=de?`${x}-${de}`:"",he=Pe(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()},[`${ie}-item + ${ie}-item,
${x}-prefix + ${x}-selection-wrap
`]:{[`${x}-selection-search`]:{marginInlineStart:0},[`${x}-selection-placeholder`]:{insetInlineStart:0}},[`${ie}-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 re(ee,de){const{componentCls:x}=ee,ae=de?`${x}-${de}`:"",ie={[`${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,de),ie]}const oe=ee=>{const{componentCls:de}=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[re(ee),re(x,"sm"),{[`${de}-multiple${de}-sm`]:{[`${de}-selection-placeholder`]:{insetInline:ee.calc(ee.controlPaddingHorizontalSM).sub(ee.lineWidth).equal()},[`${de}-selection-search`]:{marginInlineStart:2}}},re(ae,"lg")]};Yt.ZP=oe},68525:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});var te=Te(59301),Ot=Te(40001),y=Te(19248),Pe=Te(99267),ye=Te(84105),z=Te(58617),E=Te(47472);function re(oe){let{suffixIcon:ee,clearIcon:de,menuItemSelectedIcon:x,removeIcon:ae,loading:ie,multiple:se,hasFeedback:ue,prefixCls:pe,showSuffixIcon:he,feedbackIcon:ge,showArrow:me,componentName:xe}=oe;const Ae=de!=null?de:te.createElement(y.Z,null),Ne=Ce=>ee===null&&!ue&&!me?null:te.createElement(te.Fragment,null,he!==!1&&Ce,ue&&ge);let Be=null;if(ee!==void 0)Be=Ne(ee);else if(ie)Be=Ne(te.createElement(z.Z,{spin:!0}));else{const Ce=`${pe}-suffix`;Be=Oe=>{let{open:je,showSearch:Fe}=Oe;return Ne(je&&Fe?te.createElement(E.Z,{className:Ce}):te.createElement(ye.Z,{className:Ce}))}}let De=null;x!==void 0?De=x:se?De=te.createElement(Ot.Z,null):De=null;let we=null;return ae!==void 0?we=ae:we=te.createElement(Pe.Z,null),{clearIcon:Ae,suffixIcon:Be,itemIcon:De,removeIcon:we}}},90005:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return te}});function te(Ot,y){return y!==void 0?y:Ot!==null}},11938:function(wn,Yt,Te){"use strict";Te.d(Yt,{default:function(){return Oe}});var te=Te(59301),Ot=Te(40192),y=Te(22703),Pe=Te(92310),ye=Te.n(Pe),z=Te(26112),E=Te(48755),re=Te(458),ee=je=>{const{value:Fe,formatter:ke,precision:Ee,decimalSeparator:Ge,groupSeparator:Ke="",prefixCls:Ve}=je;let it;if(typeof ke=="function")it=ke(Fe);else{const Le=String(Fe),Ue=Le.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Ue||Le==="-")it=Le;else{const tt=Ue[1];let nt=Ue[2]||"0",et=Ue[4]||"";nt=nt.replace(/\B(?=(\d{3})+(?!\d))/g,Ke),typeof Ee=="number"&&(et=et.padEnd(Ee,"0").slice(0,Ee>0?Ee:0)),et&&(et=`${Ge}${et}`),it=[te.createElement("span",{key:"int",className:`${Ve}-content-value-int`},tt,nt),et&&te.createElement("span",{key:"decimal",className:`${Ve}-content-value-decimal`},et)]}}return te.createElement("span",{className:`${Ve}-content-value`},it)},de=Te(63356),x=Te(16931),ae=Te(51636);const ie=je=>{const{componentCls:Fe,marginXXS:ke,padding:Ee,colorTextDescription:Ge,titleFontSize:Ke,colorTextHeading:Ve,contentFontSize:it,fontFamily:Le}=je;return{[Fe]:Object.assign(Object.assign({},(0,de.Wf)(je)),{[`${Fe}-title`]:{marginBottom:ke,color:Ge,fontSize:Ke},[`${Fe}-skeleton`]:{paddingTop:Ee},[`${Fe}-content`]:{color:Ve,fontSize:it,fontFamily:Le,[`${Fe}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Fe}-content-prefix, ${Fe}-content-suffix`]:{display:"inline-block"},[`${Fe}-content-prefix`]:{marginInlineEnd:ke},[`${Fe}-content-suffix`]:{marginInlineStart:ke}}})}},se=je=>{const{fontSizeHeading3:Fe,fontSize:ke}=je;return{titleFontSize:ke,contentFontSize:Fe}};var ue=(0,x.I$)("Statistic",je=>{const Fe=(0,ae.mergeToken)(je,{});return[ie(Fe)]},se),pe=function(je,Fe){var ke={};for(var Ee in je)Object.prototype.hasOwnProperty.call(je,Ee)&&Fe.indexOf(Ee)<0&&(ke[Ee]=je[Ee]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Ee=Object.getOwnPropertySymbols(je);Ge<Ee.length;Ge++)Fe.indexOf(Ee[Ge])<0&&Object.prototype.propertyIsEnumerable.call(je,Ee[Ge])&&(ke[Ee[Ge]]=je[Ee[Ge]]);return ke},ge=je=>{const{prefixCls:Fe,className:ke,rootClassName:Ee,style:Ge,valueStyle:Ke,value:Ve=0,title:it,valueRender:Le,prefix:Ue,suffix:tt,loading:nt=!1,formatter:et,precision:Ze,decimalSeparator:Ye=".",groupSeparator:Xe=",",onMouseEnter:st,onMouseLeave:Qe}=je,ht=pe(je,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:at,direction:qe,className:_e,style:Re}=(0,E.dj)("statistic"),ne=at("statistic",Fe),[fe,Me,He]=ue(ne),be=te.createElement(ee,{decimalSeparator:Ye,groupSeparator:Xe,prefixCls:ne,formatter:et,precision:Ze,value:Ve}),ve=ye()(ne,{[`${ne}-rtl`]:qe==="rtl"},_e,ke,Ee,Me,He),Ie=(0,z.Z)(ht,{aria:!0,data:!0});return fe(te.createElement("div",Object.assign({},Ie,{className:ve,style:Object.assign(Object.assign({},Re),Ge),onMouseEnter:st,onMouseLeave:Qe}),it&&te.createElement("div",{className:`${ne}-title`},it),te.createElement(re.Z,{paragraph:!1,loading:nt,className:`${ne}-skeleton`},te.createElement("div",{style:Ke,className:`${ne}-content`},Ue&&te.createElement("span",{className:`${ne}-content-prefix`},Ue),Le?Le(be):be,tt&&te.createElement("span",{className:`${ne}-content-suffix`},tt)))))};const me=[["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(je,Fe){let ke=je;const Ee=/\[[^\]]*]/g,Ge=(Fe.match(Ee)||[]).map(Le=>Le.slice(1,-1)),Ke=Fe.replace(Ee,"[]"),Ve=me.reduce((Le,Ue)=>{let[tt,nt]=Ue;if(Le.includes(tt)){const et=Math.floor(ke/nt);return ke-=et*nt,Le.replace(new RegExp(`${tt}+`,"g"),Ze=>{const Ye=Ze.length;return et.toString().padStart(Ye,"0")})}return Le},Ke);let it=0;return Ve.replace(Ee,()=>{const Le=Ge[it];return it+=1,Le})}function Ae(je,Fe){const{format:ke=""}=Fe,Ee=new Date(je).getTime(),Ge=Date.now(),Ke=Math.max(Ee-Ge,0);return xe(Ke,ke)}var Ne=function(je,Fe){var ke={};for(var Ee in je)Object.prototype.hasOwnProperty.call(je,Ee)&&Fe.indexOf(Ee)<0&&(ke[Ee]=je[Ee]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Ee=Object.getOwnPropertySymbols(je);Ge<Ee.length;Ge++)Fe.indexOf(Ee[Ge])<0&&Object.prototype.propertyIsEnumerable.call(je,Ee[Ge])&&(ke[Ee[Ge]]=je[Ee[Ge]]);return ke};const Be=1e3/30;function De(je){return new Date(je).getTime()}const we=je=>{const{value:Fe,format:ke="HH:mm:ss",onChange:Ee,onFinish:Ge}=je,Ke=Ne(je,["value","format","onChange","onFinish"]),Ve=(0,Ot.Z)(),it=te.useRef(null),Le=()=>{Ge==null||Ge(),it.current&&(clearInterval(it.current),it.current=null)},Ue=()=>{const et=De(Fe);et>=Date.now()&&(it.current=setInterval(()=>{Ve(),Ee==null||Ee(et-Date.now()),et<Date.now()&&Le()},Be))};te.useEffect(()=>(Ue(),()=>{it.current&&(clearInterval(it.current),it.current=null)}),[Fe]);const tt=(et,Ze)=>Ae(et,Object.assign(Object.assign({},Ze),{format:ke})),nt=et=>(0,y.Tm)(et,{title:void 0});return te.createElement(ge,Object.assign({},Ke,{value:Fe,valueRender:nt,formatter:tt}))};var Ce=te.memo(we);ge.Countdown=Ce;var Oe=ge},58755:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Ge}});var te=Te(59301),Ot=Te(58617),y=Te(92310),Pe=Te.n(y),ye=Te(54476),z=Te(20068),E=Te(42978),re=Te(75931),oe=Te(18929),ee=Te(10228),de=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],x=te.forwardRef(function(Ke,Ve){var it,Le=Ke.prefixCls,Ue=Le===void 0?"rc-switch":Le,tt=Ke.className,nt=Ke.checked,et=Ke.defaultChecked,Ze=Ke.disabled,Ye=Ke.loadingIcon,Xe=Ke.checkedChildren,st=Ke.unCheckedChildren,Qe=Ke.onClick,ht=Ke.onChange,at=Ke.onKeyDown,qe=(0,re.Z)(Ke,de),_e=(0,oe.Z)(!1,{value:nt,defaultValue:et}),Re=(0,E.Z)(_e,2),ne=Re[0],fe=Re[1];function Me(Ie,$e){var We=ne;return Ze||(We=Ie,fe(We),ht==null||ht(We,$e)),We}function He(Ie){Ie.which===ee.Z.LEFT?Me(!1,Ie):Ie.which===ee.Z.RIGHT&&Me(!0,Ie),at==null||at(Ie)}function be(Ie){var $e=Me(!ne,Ie);Qe==null||Qe($e,Ie)}var ve=Pe()(Ue,tt,(it={},(0,z.Z)(it,"".concat(Ue,"-checked"),ne),(0,z.Z)(it,"".concat(Ue,"-disabled"),Ze),it));return te.createElement("button",(0,ye.Z)({},qe,{type:"button",role:"switch","aria-checked":ne,disabled:Ze,className:ve,ref:Ve,onKeyDown:He,onClick:be}),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")},st)))});x.displayName="Switch";var ae=x,ie=Te(12919),se=Te(48755),ue=Te(2171),pe=Te(31756),he=Te(36237),ge=Te(17835),me=Te(63356),xe=Te(16931),Ae=Te(51636);const Ne=Ke=>{const{componentCls:Ve,trackHeightSM:it,trackPadding:Le,trackMinWidthSM:Ue,innerMinMarginSM:tt,innerMaxMarginSM:nt,handleSizeSM:et,calc:Ze}=Ke,Ye=`${Ve}-inner`,Xe=(0,he.unit)(Ze(et).add(Ze(Le).mul(2)).equal()),st=(0,he.unit)(Ze(nt).mul(2).equal());return{[Ve]:{[`&${Ve}-small`]:{minWidth:Ue,height:it,lineHeight:(0,he.unit)(it),[`${Ve}-inner`]:{paddingInlineStart:nt,paddingInlineEnd:tt,[`${Ye}-checked, ${Ye}-unchecked`]:{minHeight:it},[`${Ye}-checked`]:{marginInlineStart:`calc(-100% + ${Xe} - ${st})`,marginInlineEnd:`calc(100% - ${Xe} + ${st})`},[`${Ye}-unchecked`]:{marginTop:Ze(it).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Ve}-handle`]:{width:et,height:et},[`${Ve}-loading-icon`]:{top:Ze(Ze(et).sub(Ke.switchLoadingIconSize)).div(2).equal(),fontSize:Ke.switchLoadingIconSize},[`&${Ve}-checked`]:{[`${Ve}-inner`]:{paddingInlineStart:tt,paddingInlineEnd:nt,[`${Ye}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ye}-unchecked`]:{marginInlineStart:`calc(100% - ${Xe} + ${st})`,marginInlineEnd:`calc(-100% + ${Xe} - ${st})`}},[`${Ve}-handle`]:{insetInlineStart:`calc(100% - ${(0,he.unit)(Ze(et).add(Le).equal())})`}},[`&:not(${Ve}-disabled):active`]:{[`&:not(${Ve}-checked) ${Ye}`]:{[`${Ye}-unchecked`]:{marginInlineStart:Ze(Ke.marginXXS).div(2).equal(),marginInlineEnd:Ze(Ke.marginXXS).mul(-1).div(2).equal()}},[`&${Ve}-checked ${Ye}`]:{[`${Ye}-checked`]:{marginInlineStart:Ze(Ke.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Ze(Ke.marginXXS).div(2).equal()}}}}}}},Be=Ke=>{const{componentCls:Ve,handleSize:it,calc:Le}=Ke;return{[Ve]:{[`${Ve}-loading-icon${Ke.iconCls}`]:{position:"relative",top:Le(Le(it).sub(Ke.fontSize)).div(2).equal(),color:Ke.switchLoadingIconColor,verticalAlign:"top"},[`&${Ve}-checked ${Ve}-loading-icon`]:{color:Ke.switchColor}}}},De=Ke=>{const{componentCls:Ve,trackPadding:it,handleBg:Le,handleShadow:Ue,handleSize:tt,calc:nt}=Ke,et=`${Ve}-handle`;return{[Ve]:{[et]:{position:"absolute",top:it,insetInlineStart:it,width:tt,height:tt,transition:`all ${Ke.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Le,borderRadius:nt(tt).div(2).equal(),boxShadow:Ue,transition:`all ${Ke.switchDuration} ease-in-out`,content:'""'}},[`&${Ve}-checked ${et}`]:{insetInlineStart:`calc(100% - ${(0,he.unit)(nt(tt).add(it).equal())})`},[`&:not(${Ve}-disabled):active`]:{[`${et}::before`]:{insetInlineEnd:Ke.switchHandleActiveInset,insetInlineStart:0},[`&${Ve}-checked ${et}::before`]:{insetInlineEnd:0,insetInlineStart:Ke.switchHandleActiveInset}}}}},we=Ke=>{const{componentCls:Ve,trackHeight:it,trackPadding:Le,innerMinMargin:Ue,innerMaxMargin:tt,handleSize:nt,calc:et}=Ke,Ze=`${Ve}-inner`,Ye=(0,he.unit)(et(nt).add(et(Le).mul(2)).equal()),Xe=(0,he.unit)(et(tt).mul(2).equal());return{[Ve]:{[Ze]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:tt,paddingInlineEnd:Ue,transition:`padding-inline-start ${Ke.switchDuration} ease-in-out, padding-inline-end ${Ke.switchDuration} ease-in-out`,[`${Ze}-checked, ${Ze}-unchecked`]:{display:"block",color:Ke.colorTextLightSolid,fontSize:Ke.fontSizeSM,transition:`margin-inline-start ${Ke.switchDuration} ease-in-out, margin-inline-end ${Ke.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:it},[`${Ze}-checked`]:{marginInlineStart:`calc(-100% + ${Ye} - ${Xe})`,marginInlineEnd:`calc(100% - ${Ye} + ${Xe})`},[`${Ze}-unchecked`]:{marginTop:et(it).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Ve}-checked ${Ze}`]:{paddingInlineStart:Ue,paddingInlineEnd:tt,[`${Ze}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ze}-unchecked`]:{marginInlineStart:`calc(100% - ${Ye} + ${Xe})`,marginInlineEnd:`calc(-100% + ${Ye} - ${Xe})`}},[`&:not(${Ve}-disabled):active`]:{[`&:not(${Ve}-checked) ${Ze}`]:{[`${Ze}-unchecked`]:{marginInlineStart:et(Le).mul(2).equal(),marginInlineEnd:et(Le).mul(-1).mul(2).equal()}},[`&${Ve}-checked ${Ze}`]:{[`${Ze}-checked`]:{marginInlineStart:et(Le).mul(-1).mul(2).equal(),marginInlineEnd:et(Le).mul(2).equal()}}}}}},Ce=Ke=>{const{componentCls:Ve,trackHeight:it,trackMinWidth:Le}=Ke;return{[Ve]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,me.Wf)(Ke)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Le,height:it,lineHeight:(0,he.unit)(it),verticalAlign:"middle",background:Ke.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ke.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ve}-disabled)`]:{background:Ke.colorTextTertiary}}),(0,me.Qy)(Ke)),{[`&${Ve}-checked`]:{background:Ke.switchColor,[`&:hover:not(${Ve}-disabled)`]:{background:Ke.colorPrimaryHover}},[`&${Ve}-loading, &${Ve}-disabled`]:{cursor:"not-allowed",opacity:Ke.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ve}-rtl`]:{direction:"rtl"}})}},Oe=Ke=>{const{fontSize:Ve,lineHeight:it,controlHeight:Le,colorWhite:Ue}=Ke,tt=Ve*it,nt=Le/2,et=2,Ze=tt-et*2,Ye=nt-et*2;return{trackHeight:tt,trackHeightSM:nt,trackMinWidth:Ze*2+et*4,trackMinWidthSM:Ye*2+et*2,trackPadding:et,handleBg:Ue,handleSize:Ze,handleSizeSM:Ye,handleShadow:`0 2px 4px 0 ${new ge.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Ze/2,innerMaxMargin:Ze+et+et*2,innerMinMarginSM:Ye/2,innerMaxMarginSM:Ye+et+et*2}};var je=(0,xe.I$)("Switch",Ke=>{const Ve=(0,Ae.mergeToken)(Ke,{switchDuration:Ke.motionDurationMid,switchColor:Ke.colorPrimary,switchDisabledOpacity:Ke.opacityLoading,switchLoadingIconSize:Ke.calc(Ke.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Ke.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ce(Ve),we(Ve),De(Ve),Be(Ve),Ne(Ve)]},Oe),Fe=function(Ke,Ve){var it={};for(var Le in Ke)Object.prototype.hasOwnProperty.call(Ke,Le)&&Ve.indexOf(Le)<0&&(it[Le]=Ke[Le]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Le=Object.getOwnPropertySymbols(Ke);Ue<Le.length;Ue++)Ve.indexOf(Le[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Ke,Le[Ue])&&(it[Le[Ue]]=Ke[Le[Ue]]);return it};const Ee=te.forwardRef((Ke,Ve)=>{const{prefixCls:it,size:Le,disabled:Ue,loading:tt,className:nt,rootClassName:et,style:Ze,checked:Ye,value:Xe,defaultChecked:st,defaultValue:Qe,onChange:ht}=Ke,at=Fe(Ke,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[qe,_e]=(0,oe.Z)(!1,{value:Ye!=null?Ye:Xe,defaultValue:st!=null?st:Qe}),{getPrefixCls:Re,direction:ne,switch:fe}=te.useContext(se.E_),Me=te.useContext(ue.Z),He=(Ue!=null?Ue:Me)||tt,be=Re("switch",it),ve=te.createElement("div",{className:`${be}-handle`},tt&&te.createElement(Ot.Z,{className:`${be}-loading-icon`})),[Ie,$e,We]=je(be),Je=(0,pe.Z)(Le),ct=Pe()(fe==null?void 0:fe.className,{[`${be}-small`]:Je==="small",[`${be}-loading`]:tt,[`${be}-rtl`]:ne==="rtl"},nt,et,$e,We),ot=Object.assign(Object.assign({},fe==null?void 0:fe.style),Ze),ft=function(){_e(arguments.length<=0?void 0:arguments[0]),ht==null||ht.apply(void 0,arguments)};return Ie(te.createElement(ie.Z,{component:"Switch"},te.createElement(ae,Object.assign({},at,{checked:qe,onChange:ft,prefixCls:be,className:ct,style:ot,disabled:He,ref:Ve,loadingIcon:ve}))))});Ee.__ANT_SWITCH=!0;var Ge=Ee},70858:function(wn,Yt,Te){"use strict";Te.d(Yt,{default:function(){return vu}});var te=Te(59301),Ot={},y="rc-table-internal-hook",Pe=Te(42978),ye=Te(6089),z=Te(34280),E=Te(13697),re=Te(4676);function oe(mt){var pt=te.createContext(void 0),jt=function(Jt){var nn=Jt.value,dn=Jt.children,an=te.useRef(nn);an.current=nn;var mn=te.useState(function(){return{getValue:function(){return an.current},listeners:new Set}}),fn=(0,Pe.Z)(mn,1),Zn=fn[0];return(0,z.Z)(function(){(0,re.unstable_batchedUpdates)(function(){Zn.listeners.forEach(function(Dn){Dn(nn)})})},[nn]),te.createElement(pt.Provider,{value:Zn},dn)};return{Context:pt,Provider:jt,defaultValue:mt}}function ee(mt,pt){var jt=(0,ye.Z)(typeof pt=="function"?pt:function(Dn){if(pt===void 0)return Dn;if(!Array.isArray(pt))return Dn[pt];var An={};return pt.forEach(function(xn){An[xn]=Dn[xn]}),An}),Bt=te.useContext(mt==null?void 0:mt.Context),Jt=Bt||{},nn=Jt.listeners,dn=Jt.getValue,an=te.useRef();an.current=jt(Bt?dn():mt==null?void 0:mt.defaultValue);var mn=te.useState({}),fn=(0,Pe.Z)(mn,2),Zn=fn[1];return(0,z.Z)(function(){if(!Bt)return;function Dn(An){var xn=jt(An);(0,E.Z)(an.current,xn,!0)||Zn({})}return nn.add(Dn),function(){nn.delete(Dn)}},[Bt]),an.current}var de=Te(54476),x=Te(8654);function ae(){var mt=te.createContext(null);function pt(){return te.useContext(mt)}function jt(Jt,nn){var dn=(0,x.Yr)(Jt),an=function(fn,Zn){var Dn=dn?{ref:Zn}:{},An=te.useRef(0),xn=te.useRef(fn),bn=pt();return bn!==null?te.createElement(Jt,(0,de.Z)({},fn,Dn)):((!nn||nn(xn.current,fn))&&(An.current+=1),xn.current=fn,te.createElement(mt.Provider,{value:An.current},te.createElement(Jt,(0,de.Z)({},fn,Dn))))};return dn?te.forwardRef(an):an}function Bt(Jt,nn){var dn=(0,x.Yr)(Jt),an=function(fn,Zn){var Dn=dn?{ref:Zn}:{};return pt(),te.createElement(Jt,(0,de.Z)({},fn,Dn))};return dn?te.memo(te.forwardRef(an),nn):te.memo(an,nn)}return{makeImmutable:jt,responseImmutable:Bt,useImmutableMark:pt}}var ie=ae(),se=ie.makeImmutable,ue=ie.responseImmutable,pe=ie.useImmutableMark,he=ae(),ge=he.makeImmutable,me=he.responseImmutable,xe=he.useImmutableMark,Ae=oe(),Ne=Ae;function Be(mt,pt){var jt=React.useRef(0);jt.current+=1;var Bt=React.useRef(mt),Jt=[];Object.keys(mt||{}).map(function(dn){var an;(mt==null?void 0:mt[dn])!==((an=Bt.current)===null||an===void 0?void 0:an[dn])&&Jt.push(dn)}),Bt.current=mt;var nn=React.useRef([]);return Jt.length&&(nn.current=Jt),React.useDebugValue(jt.current),React.useDebugValue(nn.current.join(", ")),pt&&console.log("".concat(pt,":"),jt.current,nn.current),jt.current}var De=null,we=null,Ce=Te(76190),Oe=Te(33885),je=Te(20068),Fe=Te(92310),ke=Te.n(Fe),Ee=Te(80547),Ge=Te(97938),Ke=Te(48736),Ve=te.createContext({renderWithProps:!1}),it=Ve,Le="RC_TABLE_KEY";function Ue(mt){return mt==null?[]:Array.isArray(mt)?mt:[mt]}function tt(mt){var pt=[],jt={};return mt.forEach(function(Bt){for(var Jt=Bt||{},nn=Jt.key,dn=Jt.dataIndex,an=nn||Ue(dn).join("-")||Le;jt[an];)an="".concat(an,"_next");jt[an]=!0,pt.push(an)}),pt}function nt(mt){return mt!=null}function et(mt){return typeof mt=="number"&&!Number.isNaN(mt)}function Ze(mt){return mt&&(0,Ce.Z)(mt)==="object"&&!Array.isArray(mt)&&!te.isValidElement(mt)}function Ye(mt,pt,jt,Bt,Jt,nn){var dn=te.useContext(it),an=xe(),mn=(0,Ee.Z)(function(){if(nt(Bt))return[Bt];var fn=pt==null||pt===""?[]:Array.isArray(pt)?pt:[pt],Zn=(0,Ge.Z)(mt,fn),Dn=Zn,An=void 0;if(Jt){var xn=Jt(Zn,mt,jt);Ze(xn)?(Dn=xn.children,An=xn.props,dn.renderWithProps=!0):Dn=xn}return[Dn,An]},[an,mt,Bt,pt,Jt,jt],function(fn,Zn){if(nn){var Dn=(0,Pe.Z)(fn,2),An=Dn[1],xn=(0,Pe.Z)(Zn,2),bn=xn[1];return nn(bn,An)}return dn.renderWithProps?!0:!(0,E.Z)(fn,Zn,!0)});return mn}function Xe(mt,pt,jt,Bt){var Jt=mt+pt-1;return mt<=Bt&&Jt>=jt}function st(mt,pt){return ee(Ne,function(jt){var Bt=Xe(mt,pt||1,jt.hoverStartRow,jt.hoverEndRow);return[Bt,jt.onHover]})}var Qe=Te(70425),ht=function(pt){var jt=pt.ellipsis,Bt=pt.rowType,Jt=pt.children,nn,dn=jt===!0?{showTitle:!0}:jt;return dn&&(dn.showTitle||Bt==="header")&&(typeof Jt=="string"||typeof Jt=="number"?nn=Jt.toString():te.isValidElement(Jt)&&typeof Jt.props.children=="string"&&(nn=Jt.props.children)),nn};function at(mt){var pt,jt,Bt,Jt,nn,dn,an,mn,fn=mt.component,Zn=mt.children,Dn=mt.ellipsis,An=mt.scope,xn=mt.prefixCls,bn=mt.className,lr=mt.align,Jn=mt.record,dr=mt.render,vr=mt.dataIndex,fr=mt.renderIndex,xr=mt.shouldCellUpdate,jr=mt.index,Fr=mt.rowType,Mr=mt.colSpan,yi=mt.rowSpan,Jr=mt.fixLeft,Ur=mt.fixRight,li=mt.firstFixLeft,_r=mt.lastFixLeft,$r=mt.firstFixRight,Er=mt.lastFixRight,gr=mt.appendNode,Lr=mt.additionalProps,zr=Lr===void 0?{}:Lr,Qr=mt.isSticky,Or="".concat(xn,"-cell"),Ei=ee(Ne,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Ai=Ei.supportSticky,yo=Ei.allColumnsFixedLeft,fo=Ei.rowHoverable,ro=Ye(Jn,vr,fr,Zn,dr,xr),po=(0,Pe.Z)(ro,2),So=po[0],ji=po[1],Pi={},Co=typeof Jr=="number"&&Ai,Ro=typeof Ur=="number"&&Ai;Co&&(Pi.position="sticky",Pi.left=Jr),Ro&&(Pi.position="sticky",Pi.right=Ur);var Vr=(pt=(jt=(Bt=ji==null?void 0:ji.colSpan)!==null&&Bt!==void 0?Bt:zr.colSpan)!==null&&jt!==void 0?jt:Mr)!==null&&pt!==void 0?pt:1,mi=(Jt=(nn=(dn=ji==null?void 0:ji.rowSpan)!==null&&dn!==void 0?dn:zr.rowSpan)!==null&&nn!==void 0?nn:yi)!==null&&Jt!==void 0?Jt:1,Zr=st(jr,mi),Br=(0,Pe.Z)(Zr,2),Bi=Br[0],Ki=Br[1],uo=(0,Qe.zX)(function(eo){var Ji;Jn&&Ki(jr,jr+mi-1),zr==null||(Ji=zr.onMouseEnter)===null||Ji===void 0||Ji.call(zr,eo)}),to=(0,Qe.zX)(function(eo){var Ji;Jn&&Ki(-1,-1),zr==null||(Ji=zr.onMouseLeave)===null||Ji===void 0||Ji.call(zr,eo)});if(Vr===0||mi===0)return null;var Eo=(an=zr.title)!==null&&an!==void 0?an:ht({rowType:Fr,ellipsis:Dn,children:So}),Bo=ke()(Or,bn,(mn={},(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)(mn,"".concat(Or,"-fix-left"),Co&&Ai),"".concat(Or,"-fix-left-first"),li&&Ai),"".concat(Or,"-fix-left-last"),_r&&Ai),"".concat(Or,"-fix-left-all"),_r&&yo&&Ai),"".concat(Or,"-fix-right"),Ro&&Ai),"".concat(Or,"-fix-right-first"),$r&&Ai),"".concat(Or,"-fix-right-last"),Er&&Ai),"".concat(Or,"-ellipsis"),Dn),"".concat(Or,"-with-append"),gr),"".concat(Or,"-fix-sticky"),(Co||Ro)&&Qr&&Ai),(0,je.Z)(mn,"".concat(Or,"-row-hover"),!ji&&Bi)),zr.className,ji==null?void 0:ji.className),Yr={};lr&&(Yr.textAlign=lr);var ii=(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({},ji==null?void 0:ji.style),Pi),Yr),zr.style),Vi=So;return(0,Ce.Z)(Vi)==="object"&&!Array.isArray(Vi)&&!te.isValidElement(Vi)&&(Vi=null),Dn&&(_r||$r)&&(Vi=te.createElement("span",{className:"".concat(Or,"-content")},Vi)),te.createElement(fn,(0,de.Z)({},ji,zr,{className:Bo,style:ii,title:Eo,scope:An,onMouseEnter:fo?uo:void 0,onMouseLeave:fo?to:void 0,colSpan:Vr!==1?Vr:null,rowSpan:mi!==1?mi:null}),gr,Vi)}var qe=te.memo(at);function _e(mt,pt,jt,Bt,Jt){var nn=jt[mt]||{},dn=jt[pt]||{},an,mn;nn.fixed==="left"?an=Bt.left[Jt==="rtl"?pt:mt]:dn.fixed==="right"&&(mn=Bt.right[Jt==="rtl"?mt:pt]);var fn=!1,Zn=!1,Dn=!1,An=!1,xn=jt[pt+1],bn=jt[mt-1],lr=xn&&!xn.fixed||bn&&!bn.fixed||jt.every(function(xr){return xr.fixed==="left"});if(Jt==="rtl"){if(an!==void 0){var Jn=bn&&bn.fixed==="left";An=!Jn&&lr}else if(mn!==void 0){var dr=xn&&xn.fixed==="right";Dn=!dr&&lr}}else if(an!==void 0){var vr=xn&&xn.fixed==="left";fn=!vr&&lr}else if(mn!==void 0){var fr=bn&&bn.fixed==="right";Zn=!fr&&lr}return{fixLeft:an,fixRight:mn,lastFixLeft:fn,firstFixRight:Zn,lastFixRight:Dn,firstFixLeft:An,isSticky:Bt.isSticky}}var Re=te.createContext({}),ne=Re;function fe(mt){var pt=mt.className,jt=mt.index,Bt=mt.children,Jt=mt.colSpan,nn=Jt===void 0?1:Jt,dn=mt.rowSpan,an=mt.align,mn=ee(Ne,["prefixCls","direction"]),fn=mn.prefixCls,Zn=mn.direction,Dn=te.useContext(ne),An=Dn.scrollColumnIndex,xn=Dn.stickyOffsets,bn=Dn.flattenColumns,lr=jt+nn-1,Jn=lr+1===An?nn+1:nn,dr=_e(jt,jt+Jn-1,bn,xn,Zn);return te.createElement(qe,(0,de.Z)({className:pt,index:jt,component:"td",prefixCls:fn,record:null,dataIndex:null,align:an,colSpan:Jn,rowSpan:dn,render:function(){return Bt}},dr))}var Me=Te(75931),He=["children"];function be(mt){var pt=mt.children,jt=(0,Me.Z)(mt,He);return te.createElement("tr",jt,pt)}function ve(mt){var pt=mt.children;return pt}ve.Row=be,ve.Cell=fe;var Ie=ve;function $e(mt){var pt=mt.children,jt=mt.stickyOffsets,Bt=mt.flattenColumns,Jt=ee(Ne,"prefixCls"),nn=Bt.length-1,dn=Bt[nn],an=te.useMemo(function(){return{stickyOffsets:jt,flattenColumns:Bt,scrollColumnIndex:dn!=null&&dn.scrollbar?nn:null}},[dn,Bt,nn,jt]);return te.createElement(ne.Provider,{value:an},te.createElement("tfoot",{className:"".concat(Jt,"-summary")},pt))}var We=me($e),Je=Ie,ct=Te(29301),ot=Te(3465),ft=Te(75152),ut=Te(26112);function lt(mt,pt,jt,Bt,Jt,nn,dn){mt.push({record:pt,indent:jt,index:dn});var an=nn(pt),mn=Jt==null?void 0:Jt.has(an);if(pt&&Array.isArray(pt[Bt])&&mn)for(var fn=0;fn<pt[Bt].length;fn+=1)lt(mt,pt[Bt][fn],jt+1,Bt,Jt,nn,fn)}function At(mt,pt,jt,Bt){var Jt=te.useMemo(function(){if(jt!=null&&jt.size){for(var nn=[],dn=0;dn<(mt==null?void 0:mt.length);dn+=1){var an=mt[dn];lt(nn,an,0,pt,jt,Bt,dn)}return nn}return mt==null?void 0:mt.map(function(mn,fn){return{record:mn,indent:0,index:fn}})},[mt,pt,jt,Bt]);return Jt}function yt(mt,pt,jt,Bt){var Jt=ee(Ne,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),nn=Jt.flattenColumns,dn=Jt.expandableType,an=Jt.expandedKeys,mn=Jt.childrenColumnName,fn=Jt.onTriggerExpand,Zn=Jt.rowExpandable,Dn=Jt.onRow,An=Jt.expandRowByClick,xn=Jt.rowClassName,bn=dn==="nest",lr=dn==="row"&&(!Zn||Zn(mt)),Jn=lr||bn,dr=an&&an.has(pt),vr=mn&&mt&&mt[mn],fr=(0,Qe.zX)(fn),xr=Dn==null?void 0:Dn(mt,jt),jr=xr==null?void 0:xr.onClick,Fr=function(Ur){An&&Jn&&fn(mt,Ur);for(var li=arguments.length,_r=new Array(li>1?li-1:0),$r=1;$r<li;$r++)_r[$r-1]=arguments[$r];jr==null||jr.apply(void 0,[Ur].concat(_r))},Mr;typeof xn=="string"?Mr=xn:typeof xn=="function"&&(Mr=xn(mt,jt,Bt));var yi=tt(nn);return(0,Oe.Z)((0,Oe.Z)({},Jt),{},{columnsKey:yi,nestExpandable:bn,expanded:dr,hasNestChildren:vr,record:mt,onTriggerExpand:fr,rowSupportExpand:lr,expandable:Jn,rowProps:(0,Oe.Z)((0,Oe.Z)({},xr),{},{className:ke()(Mr,xr==null?void 0:xr.className),onClick:Fr})})}function Rt(mt){var pt=mt.prefixCls,jt=mt.children,Bt=mt.component,Jt=mt.cellComponent,nn=mt.className,dn=mt.expanded,an=mt.colSpan,mn=mt.isEmpty,fn=ee(Ne,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Zn=fn.scrollbarSize,Dn=fn.fixHeader,An=fn.fixColumn,xn=fn.componentWidth,bn=fn.horizonScroll,lr=jt;return(mn?bn&&xn:An)&&(lr=te.createElement("div",{style:{width:xn-(Dn&&!mn?Zn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(pt,"-expanded-row-fixed")},lr)),te.createElement(Bt,{className:nn,style:{display:dn?null:"none"}},te.createElement(qe,{component:Jt,prefixCls:pt,colSpan:an},lr))}var Pt=Rt;function Tt(mt){var pt=mt.prefixCls,jt=mt.record,Bt=mt.onExpand,Jt=mt.expanded,nn=mt.expandable,dn="".concat(pt,"-row-expand-icon");if(!nn)return te.createElement("span",{className:ke()(dn,"".concat(pt,"-row-spaced"))});var an=function(fn){Bt(jt,fn),fn.stopPropagation()};return te.createElement("span",{className:ke()(dn,(0,je.Z)((0,je.Z)({},"".concat(pt,"-row-expanded"),Jt),"".concat(pt,"-row-collapsed"),!Jt)),onClick:an})}function kt(mt,pt,jt){var Bt=[];function Jt(nn){(nn||[]).forEach(function(dn,an){Bt.push(pt(dn,an)),Jt(dn[jt])})}return Jt(mt),Bt}function Dt(mt,pt,jt,Bt){return typeof mt=="string"?mt:typeof mt=="function"?mt(pt,jt,Bt):""}function gt(mt,pt,jt,Bt,Jt){var nn=mt.record,dn=mt.prefixCls,an=mt.columnsKey,mn=mt.fixedInfoList,fn=mt.expandIconColumnIndex,Zn=mt.nestExpandable,Dn=mt.indentSize,An=mt.expandIcon,xn=mt.expanded,bn=mt.hasNestChildren,lr=mt.onTriggerExpand,Jn=an[jt],dr=mn[jt],vr;jt===(fn||0)&&Zn&&(vr=te.createElement(te.Fragment,null,te.createElement("span",{style:{paddingLeft:"".concat(Dn*Bt,"px")},className:"".concat(dn,"-row-indent indent-level-").concat(Bt)}),An({prefixCls:dn,expanded:xn,expandable:bn,record:nn,onExpand:lr})));var fr;return pt.onCell&&(fr=pt.onCell(nn,Jt)),{key:Jn,fixedInfo:dr,appendCellNode:vr,additionalCellProps:fr||{}}}function It(mt){var pt=mt.className,jt=mt.style,Bt=mt.record,Jt=mt.index,nn=mt.renderIndex,dn=mt.rowKey,an=mt.indent,mn=an===void 0?0:an,fn=mt.rowComponent,Zn=mt.cellComponent,Dn=mt.scopeCellComponent,An=yt(Bt,dn,Jt,mn),xn=An.prefixCls,bn=An.flattenColumns,lr=An.expandedRowClassName,Jn=An.expandedRowRender,dr=An.rowProps,vr=An.expanded,fr=An.rowSupportExpand,xr=te.useRef(!1);xr.current||(xr.current=vr);var jr=Dt(lr,Bt,Jt,mn),Fr=te.createElement(fn,(0,de.Z)({},dr,{"data-row-key":dn,className:ke()(pt,"".concat(xn,"-row"),"".concat(xn,"-row-level-").concat(mn),dr==null?void 0:dr.className,(0,je.Z)({},jr,mn>=1)),style:(0,Oe.Z)((0,Oe.Z)({},jt),dr==null?void 0:dr.style)}),bn.map(function(Jr,Ur){var li=Jr.render,_r=Jr.dataIndex,$r=Jr.className,Er=gt(An,Jr,Ur,mn,Jt),gr=Er.key,Lr=Er.fixedInfo,zr=Er.appendCellNode,Qr=Er.additionalCellProps;return te.createElement(qe,(0,de.Z)({className:$r,ellipsis:Jr.ellipsis,align:Jr.align,scope:Jr.rowScope,component:Jr.rowScope?Dn:Zn,prefixCls:xn,key:gr,record:Bt,index:Jt,renderIndex:nn,dataIndex:_r,render:li,shouldCellUpdate:Jr.shouldCellUpdate},Lr,{appendNode:zr,additionalProps:Qr}))})),Mr;if(fr&&(xr.current||vr)){var yi=Jn(Bt,Jt,mn+1,vr);Mr=te.createElement(Pt,{expanded:vr,className:ke()("".concat(xn,"-expanded-row"),"".concat(xn,"-expanded-row-level-").concat(mn+1),jr),prefixCls:xn,component:fn,cellComponent:Zn,colSpan:bn.length,isEmpty:!1},yi)}return te.createElement(te.Fragment,null,Fr,Mr)}var Vt=me(It);function rn(mt){var pt=mt.columnKey,jt=mt.onColumnResize,Bt=te.useRef();return(0,z.Z)(function(){Bt.current&&jt(pt,Bt.current.offsetWidth)},[]),te.createElement(ct.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 wt=Te(29194);function Ct(mt){var pt=mt.prefixCls,jt=mt.columnsKey,Bt=mt.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(ct.Z.Collection,{onBatchResize:function(dn){(0,wt.Z)(Jt.current)&&dn.forEach(function(an){var mn=an.data,fn=an.size;Bt(mn,fn.offsetWidth)})}},jt.map(function(nn){return te.createElement(rn,{key:nn,columnKey:nn,onColumnResize:Bt})})))}function Zt(mt){var pt=mt.data,jt=mt.measureColumnWidth,Bt=ee(Ne,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Jt=Bt.prefixCls,nn=Bt.getComponent,dn=Bt.onColumnResize,an=Bt.flattenColumns,mn=Bt.getRowKey,fn=Bt.expandedKeys,Zn=Bt.childrenColumnName,Dn=Bt.emptyNode,An=At(pt,Zn,fn,mn),xn=te.useRef({renderWithProps:!1}),bn=nn(["body","wrapper"],"tbody"),lr=nn(["body","row"],"tr"),Jn=nn(["body","cell"],"td"),dr=nn(["body","cell"],"th"),vr;pt.length?vr=An.map(function(xr,jr){var Fr=xr.record,Mr=xr.indent,yi=xr.index,Jr=mn(Fr,jr);return te.createElement(Vt,{key:Jr,rowKey:Jr,record:Fr,index:jr,renderIndex:yi,rowComponent:lr,cellComponent:Jn,scopeCellComponent:dr,indent:Mr})}):vr=te.createElement(Pt,{expanded:!0,className:"".concat(Jt,"-placeholder"),prefixCls:Jt,component:lr,cellComponent:Jn,colSpan:an.length,isEmpty:!0},Dn);var fr=tt(an);return te.createElement(it.Provider,{value:xn.current},te.createElement(bn,{className:"".concat(Jt,"-tbody")},jt&&te.createElement(Ct,{prefixCls:Jt,columnsKey:fr,onColumnResize:dn}),vr))}var en=me(Zt),ln=["expandable"],yn="RC_TABLE_INTERNAL_COL_DEFINE";function Bn(mt){var pt=mt.expandable,jt=(0,Me.Z)(mt,ln),Bt;return"expandable"in mt?Bt=(0,Oe.Z)((0,Oe.Z)({},jt),pt):Bt=jt,Bt.showExpandColumn===!1&&(Bt.expandIconColumnIndex=-1),Bt}var Wn=["columnType"];function gn(mt){for(var pt=mt.colWidths,jt=mt.columns,Bt=mt.columCount,Jt=ee(Ne,["tableLayout"]),nn=Jt.tableLayout,dn=[],an=Bt||jt.length,mn=!1,fn=an-1;fn>=0;fn-=1){var Zn=pt[fn],Dn=jt&&jt[fn],An=void 0,xn=void 0;if(Dn&&(An=Dn[yn],nn==="auto"&&(xn=Dn.minWidth)),Zn||xn||An||mn){var bn=An||{},lr=bn.columnType,Jn=(0,Me.Z)(bn,Wn);dn.unshift(te.createElement("col",(0,de.Z)({key:fn,style:{width:Zn,minWidth:xn}},Jn))),mn=!0}}return te.createElement("colgroup",null,dn)}var Ln=gn,pn=Te(94480),In=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Gt(mt,pt){return(0,te.useMemo)(function(){for(var jt=[],Bt=0;Bt<pt;Bt+=1){var Jt=mt[Bt];if(Jt!==void 0)jt[Bt]=Jt;else return null}return jt},[mt.join("_"),pt])}var Ut=te.forwardRef(function(mt,pt){var jt=mt.className,Bt=mt.noData,Jt=mt.columns,nn=mt.flattenColumns,dn=mt.colWidths,an=mt.columCount,mn=mt.stickyOffsets,fn=mt.direction,Zn=mt.fixHeader,Dn=mt.stickyTopOffset,An=mt.stickyBottomOffset,xn=mt.stickyClassName,bn=mt.onScroll,lr=mt.maxContentScroll,Jn=mt.children,dr=(0,Me.Z)(mt,In),vr=ee(Ne,["prefixCls","scrollbarSize","isSticky","getComponent"]),fr=vr.prefixCls,xr=vr.scrollbarSize,jr=vr.isSticky,Fr=vr.getComponent,Mr=Fr(["header","table"],"table"),yi=jr&&!Zn?0:xr,Jr=te.useRef(null),Ur=te.useCallback(function(Qr){(0,x.mH)(pt,Qr),(0,x.mH)(Jr,Qr)},[]);te.useEffect(function(){var Qr;function Or(Ei){var Ai=Ei,yo=Ai.currentTarget,fo=Ai.deltaX;fo&&(bn({currentTarget:yo,scrollLeft:yo.scrollLeft+fo}),Ei.preventDefault())}return(Qr=Jr.current)===null||Qr===void 0||Qr.addEventListener("wheel",Or,{passive:!1}),function(){var Ei;(Ei=Jr.current)===null||Ei===void 0||Ei.removeEventListener("wheel",Or)}},[]);var li=te.useMemo(function(){return nn.every(function(Qr){return Qr.width})},[nn]),_r=nn[nn.length-1],$r={fixed:_r?_r.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(fr,"-cell-scrollbar")}}},Er=(0,te.useMemo)(function(){return yi?[].concat((0,pn.Z)(Jt),[$r]):Jt},[yi,Jt]),gr=(0,te.useMemo)(function(){return yi?[].concat((0,pn.Z)(nn),[$r]):nn},[yi,nn]),Lr=(0,te.useMemo)(function(){var Qr=mn.right,Or=mn.left;return(0,Oe.Z)((0,Oe.Z)({},mn),{},{left:fn==="rtl"?[].concat((0,pn.Z)(Or.map(function(Ei){return Ei+yi})),[0]):Or,right:fn==="rtl"?Qr:[].concat((0,pn.Z)(Qr.map(function(Ei){return Ei+yi})),[0]),isSticky:jr})},[yi,mn,jr]),zr=Gt(dn,an);return te.createElement("div",{style:(0,Oe.Z)({overflow:"hidden"},jr?{top:Dn,bottom:An}:{}),ref:Ur,className:ke()(jt,(0,je.Z)({},xn,!!xn))},te.createElement(Mr,{style:{tableLayout:"fixed",visibility:Bt||zr?null:"hidden"}},(!Bt||!lr||li)&&te.createElement(Ln,{colWidths:zr?[].concat((0,pn.Z)(zr),[yi]):[],columCount:an+1,columns:gr}),Jn((0,Oe.Z)((0,Oe.Z)({},dr),{},{stickyOffsets:Lr,columns:Er,flattenColumns:gr}))))}),Lt=te.memo(Ut),sn=function(pt){var jt=pt.cells,Bt=pt.stickyOffsets,Jt=pt.flattenColumns,nn=pt.rowComponent,dn=pt.cellComponent,an=pt.onHeaderRow,mn=pt.index,fn=ee(Ne,["prefixCls","direction"]),Zn=fn.prefixCls,Dn=fn.direction,An;an&&(An=an(jt.map(function(bn){return bn.column}),mn));var xn=tt(jt.map(function(bn){return bn.column}));return te.createElement(nn,An,jt.map(function(bn,lr){var Jn=bn.column,dr=_e(bn.colStart,bn.colEnd,Jt,Bt,Dn),vr;return Jn&&Jn.onHeaderCell&&(vr=bn.column.onHeaderCell(Jn)),te.createElement(qe,(0,de.Z)({},bn,{scope:Jn.title?bn.colSpan>1?"colgroup":"col":null,ellipsis:Jn.ellipsis,align:Jn.align,component:dn,prefixCls:Zn,key:xn[lr]},dr,{additionalProps:vr,rowType:"header"}))}))},un=sn;function Cn(mt){var pt=[];function jt(dn,an){var mn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;pt[mn]=pt[mn]||[];var fn=an,Zn=dn.filter(Boolean).map(function(Dn){var An={key:Dn.key,className:Dn.className||"",children:Dn.title,column:Dn,colStart:fn},xn=1,bn=Dn.children;return bn&&bn.length>0&&(xn=jt(bn,fn,mn+1).reduce(function(lr,Jn){return lr+Jn},0),An.hasSubColumns=!0),"colSpan"in Dn&&(xn=Dn.colSpan),"rowSpan"in Dn&&(An.rowSpan=Dn.rowSpan),An.colSpan=xn,An.colEnd=An.colStart+xn-1,pt[mn].push(An),fn+=xn,xn});return Zn}jt(mt,0);for(var Bt=pt.length,Jt=function(an){pt[an].forEach(function(mn){!("rowSpan"in mn)&&!mn.hasSubColumns&&(mn.rowSpan=Bt-an)})},nn=0;nn<Bt;nn+=1)Jt(nn);return pt}var Tn=function(pt){var jt=pt.stickyOffsets,Bt=pt.columns,Jt=pt.flattenColumns,nn=pt.onHeaderRow,dn=ee(Ne,["prefixCls","getComponent"]),an=dn.prefixCls,mn=dn.getComponent,fn=te.useMemo(function(){return Cn(Bt)},[Bt]),Zn=mn(["header","wrapper"],"thead"),Dn=mn(["header","row"],"tr"),An=mn(["header","cell"],"th");return te.createElement(Zn,{className:"".concat(an,"-thead")},fn.map(function(xn,bn){var lr=te.createElement(un,{key:bn,flattenColumns:Jt,cells:xn,stickyOffsets:jt,rowComponent:Dn,cellComponent:An,onHeaderRow:nn,index:bn});return lr}))},jn=me(Tn),hn=Te(11592);function Mn(mt){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof pt=="number"?pt:pt.endsWith("%")?mt*parseFloat(pt)/100:null}function _n(mt,pt,jt){return te.useMemo(function(){if(pt&&pt>0){var Bt=0,Jt=0;mt.forEach(function(An){var xn=Mn(pt,An.width);xn?Bt+=xn:Jt+=1});var nn=Math.max(pt,jt),dn=Math.max(nn-Bt,Jt),an=Jt,mn=dn/Jt,fn=0,Zn=mt.map(function(An){var xn=(0,Oe.Z)({},An),bn=Mn(pt,xn.width);if(bn)xn.width=bn;else{var lr=Math.floor(mn);xn.width=an===1?dn:lr,dn-=lr,an-=1}return fn+=xn.width,xn});if(fn<nn){var Dn=nn/fn;dn=nn,Zn.forEach(function(An,xn){var bn=Math.floor(An.width*Dn);An.width=xn===Zn.length-1?dn:bn,dn-=bn})}return[Zn,Math.max(fn,nn)]}return[mt,pt]},[mt,pt,jt])}var ur=["children"],tr=["fixed"];function cn(mt){return(0,hn.Z)(mt).filter(function(pt){return te.isValidElement(pt)}).map(function(pt){var jt=pt.key,Bt=pt.props,Jt=Bt.children,nn=(0,Me.Z)(Bt,ur),dn=(0,Oe.Z)({key:jt},nn);return Jt&&(dn.children=cn(Jt)),dn})}function tn(mt){return mt.filter(function(pt){return pt&&(0,Ce.Z)(pt)==="object"&&!pt.hidden}).map(function(pt){var jt=pt.children;return jt&&jt.length>0?(0,Oe.Z)((0,Oe.Z)({},pt),{},{children:tn(jt)}):pt})}function Hn(mt){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return mt.filter(function(jt){return jt&&(0,Ce.Z)(jt)==="object"}).reduce(function(jt,Bt,Jt){var nn=Bt.fixed,dn=nn===!0?"left":nn,an="".concat(pt,"-").concat(Jt),mn=Bt.children;return mn&&mn.length>0?[].concat((0,pn.Z)(jt),(0,pn.Z)(Hn(mn,an).map(function(fn){return(0,Oe.Z)({fixed:dn},fn)}))):[].concat((0,pn.Z)(jt),[(0,Oe.Z)((0,Oe.Z)({key:an},Bt),{},{fixed:dn})])},[])}function Gn(mt){return mt.map(function(pt){var jt=pt.fixed,Bt=(0,Me.Z)(pt,tr),Jt=jt;return jt==="left"?Jt="right":jt==="right"&&(Jt="left"),(0,Oe.Z)({fixed:Jt},Bt)})}function Mt(mt,pt){var jt=mt.prefixCls,Bt=mt.columns,Jt=mt.children,nn=mt.expandable,dn=mt.expandedKeys,an=mt.columnTitle,mn=mt.getRowKey,fn=mt.onTriggerExpand,Zn=mt.expandIcon,Dn=mt.rowExpandable,An=mt.expandIconColumnIndex,xn=mt.direction,bn=mt.expandRowByClick,lr=mt.columnWidth,Jn=mt.fixed,dr=mt.scrollWidth,vr=mt.clientWidth,fr=te.useMemo(function(){var _r=Bt||cn(Jt)||[];return tn(_r.slice())},[Bt,Jt]),xr=te.useMemo(function(){if(nn){var _r=fr.slice();if(!_r.includes(Ot)){var $r=An||0;$r>=0&&($r||Jn==="left"||!Jn)&&_r.splice($r,0,Ot),Jn==="right"&&_r.splice(fr.length,0,Ot)}var Er=_r.indexOf(Ot);_r=_r.filter(function(Qr,Or){return Qr!==Ot||Or===Er});var gr=fr[Er],Lr;Jn?Lr=Jn:Lr=gr?gr.fixed:null;var zr=(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},yn,{className:"".concat(jt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",an),"fixed",Lr),"className","".concat(jt,"-row-expand-icon-cell")),"width",lr),"render",function(Or,Ei,Ai){var yo=mn(Ei,Ai),fo=dn.has(yo),ro=Dn?Dn(Ei):!0,po=Zn({prefixCls:jt,expanded:fo,expandable:ro,record:Ei,onExpand:fn});return bn?te.createElement("span",{onClick:function(ji){return ji.stopPropagation()}},po):po});return _r.map(function(Qr){return Qr===Ot?zr:Qr})}return fr.filter(function(Qr){return Qr!==Ot})},[nn,fr,mn,dn,Zn,xn]),jr=te.useMemo(function(){var _r=xr;return pt&&(_r=pt(_r)),_r.length||(_r=[{render:function(){return null}}]),_r},[pt,xr,xn]),Fr=te.useMemo(function(){return xn==="rtl"?Gn(Hn(jr)):Hn(jr)},[jr,xn,dr]),Mr=te.useMemo(function(){for(var _r=-1,$r=Fr.length-1;$r>=0;$r-=1){var Er=Fr[$r].fixed;if(Er==="left"||Er===!0){_r=$r;break}}if(_r>=0)for(var gr=0;gr<=_r;gr+=1){var Lr=Fr[gr].fixed;if(Lr!=="left"&&Lr!==!0)return!0}var zr=Fr.findIndex(function(Ei){var Ai=Ei.fixed;return Ai==="right"});if(zr>=0)for(var Qr=zr;Qr<Fr.length;Qr+=1){var Or=Fr[Qr].fixed;if(Or!=="right")return!0}return!1},[Fr]),yi=_n(Fr,dr,vr),Jr=(0,Pe.Z)(yi,2),Ur=Jr[0],li=Jr[1];return[jr,Ur,li,Mr]}var Kt=Mt;function St(mt,pt,jt){var Bt=Bn(mt),Jt=Bt.expandIcon,nn=Bt.expandedRowKeys,dn=Bt.defaultExpandedRowKeys,an=Bt.defaultExpandAllRows,mn=Bt.expandedRowRender,fn=Bt.onExpand,Zn=Bt.onExpandedRowsChange,Dn=Bt.childrenColumnName,An=Jt||Tt,xn=Dn||"children",bn=te.useMemo(function(){return mn?"row":mt.expandable&&mt.internalHooks===y&&mt.expandable.__PARENT_RENDER_ICON__||pt.some(function(jr){return jr&&(0,Ce.Z)(jr)==="object"&&jr[xn]})?"nest":!1},[!!mn,pt]),lr=te.useState(function(){return dn||(an?kt(pt,jt,xn):[])}),Jn=(0,Pe.Z)(lr,2),dr=Jn[0],vr=Jn[1],fr=te.useMemo(function(){return new Set(nn||dr||[])},[nn,dr]),xr=te.useCallback(function(jr){var Fr=jt(jr,pt.indexOf(jr)),Mr,yi=fr.has(Fr);yi?(fr.delete(Fr),Mr=(0,pn.Z)(fr)):Mr=[].concat((0,pn.Z)(fr),[Fr]),vr(Mr),fn&&fn(!yi,jr),Zn&&Zn(Mr)},[jt,fr,pt,fn,Zn]);return[Bt,bn,fr,An,xn,xr]}function Nt(mt,pt,jt){var Bt=mt.map(function(Jt,nn){return _e(nn,nn,mt,pt,jt)});return(0,Ee.Z)(function(){return Bt},[Bt],function(Jt,nn){return!(0,E.Z)(Jt,nn)})}function Et(mt){var pt=(0,te.useRef)(mt),jt=(0,te.useState)({}),Bt=(0,Pe.Z)(jt,2),Jt=Bt[1],nn=(0,te.useRef)(null),dn=(0,te.useRef)([]);function an(mn){dn.current.push(mn);var fn=Promise.resolve();nn.current=fn,fn.then(function(){if(nn.current===fn){var Zn=dn.current,Dn=pt.current;dn.current=[],Zn.forEach(function(An){pt.current=An(pt.current)}),nn.current=null,Dn!==pt.current&&Jt({})}})}return(0,te.useEffect)(function(){return function(){nn.current=null}},[]),[pt.current,an]}function zt(mt){var pt=(0,te.useRef)(mt||null),jt=(0,te.useRef)();function Bt(){window.clearTimeout(jt.current)}function Jt(dn){pt.current=dn,Bt(),jt.current=window.setTimeout(function(){pt.current=null,jt.current=void 0},100)}function nn(){return pt.current}return(0,te.useEffect)(function(){return Bt},[]),[Jt,nn]}function bt(){var mt=te.useState(-1),pt=(0,Pe.Z)(mt,2),jt=pt[0],Bt=pt[1],Jt=te.useState(-1),nn=(0,Pe.Z)(Jt,2),dn=nn[0],an=nn[1],mn=te.useCallback(function(fn,Zn){Bt(fn),an(Zn)},[]);return[jt,dn,mn]}var Wt=Te(47273),Ft=(0,Wt.Z)()?window:null;function qt(mt,pt){var jt=(0,Ce.Z)(mt)==="object"?mt:{},Bt=jt.offsetHeader,Jt=Bt===void 0?0:Bt,nn=jt.offsetSummary,dn=nn===void 0?0:nn,an=jt.offsetScroll,mn=an===void 0?0:an,fn=jt.getContainer,Zn=fn===void 0?function(){return Ft}:fn,Dn=Zn()||Ft,An=!!mt;return te.useMemo(function(){return{isSticky:An,stickyClassName:An?"".concat(pt,"-sticky-holder"):"",offsetHeader:Jt,offsetSummary:dn,offsetScroll:mn,container:Dn}},[An,mn,Jt,dn,pt,Dn])}function _t(mt,pt,jt){var Bt=(0,te.useMemo)(function(){var Jt=pt.length,nn=function(fn,Zn,Dn){for(var An=[],xn=0,bn=fn;bn!==Zn;bn+=Dn)An.push(xn),pt[bn].fixed&&(xn+=mt[bn]||0);return An},dn=nn(0,Jt,1),an=nn(Jt-1,-1,-1).reverse();return jt==="rtl"?{left:an,right:dn}:{left:dn,right:an}},[mt,pt,jt]);return Bt}var $t=_t;function Ht(mt){var pt=mt.className,jt=mt.children;return te.createElement("div",{className:pt},jt)}var Xt=Ht,En=Te(8224),On=Te(16089),Rn=Te(76846);function rr(mt){var pt=(0,Rn.bn)(mt),jt=pt.getBoundingClientRect(),Bt=document.documentElement;return{left:jt.left+(window.pageXOffset||Bt.scrollLeft)-(Bt.clientLeft||document.body.clientLeft||0),top:jt.top+(window.pageYOffset||Bt.scrollTop)-(Bt.clientTop||document.body.clientTop||0)}}var cr=function(pt,jt){var Bt,Jt,nn=pt.scrollBodyRef,dn=pt.onScroll,an=pt.offsetScroll,mn=pt.container,fn=pt.direction,Zn=ee(Ne,"prefixCls"),Dn=((Bt=nn.current)===null||Bt===void 0?void 0:Bt.scrollWidth)||0,An=((Jt=nn.current)===null||Jt===void 0?void 0:Jt.clientWidth)||0,xn=Dn&&An*(An/Dn),bn=te.useRef(),lr=Et({scrollLeft:0,isHiddenScrollBar:!0}),Jn=(0,Pe.Z)(lr,2),dr=Jn[0],vr=Jn[1],fr=te.useRef({delta:0,x:0}),xr=te.useState(!1),jr=(0,Pe.Z)(xr,2),Fr=jr[0],Mr=jr[1],yi=te.useRef(null);te.useEffect(function(){return function(){On.Z.cancel(yi.current)}},[]);var Jr=function(){Mr(!1)},Ur=function(gr){gr.persist(),fr.current.delta=gr.pageX-dr.scrollLeft,fr.current.x=0,Mr(!0),gr.preventDefault()},li=function(gr){var Lr,zr=gr||((Lr=window)===null||Lr===void 0?void 0:Lr.event),Qr=zr.buttons;if(!Fr||Qr===0){Fr&&Mr(!1);return}var Or=fr.current.x+gr.pageX-fr.current.x-fr.current.delta,Ei=fn==="rtl";Or=Math.max(Ei?xn-An:0,Math.min(Ei?0:An-xn,Or));var Ai=!Ei||Math.abs(Or)+Math.abs(xn)<An;Ai&&(dn({scrollLeft:Or/An*(Dn+2)}),fr.current.x=gr.pageX)},_r=function(){On.Z.cancel(yi.current),yi.current=(0,On.Z)(function(){if(nn.current){var gr=rr(nn.current).top,Lr=gr+nn.current.offsetHeight,zr=mn===window?document.documentElement.scrollTop+window.innerHeight:rr(mn).top+mn.clientHeight;Lr-(0,ft.Z)()<=zr||gr>=zr-an?vr(function(Qr){return(0,Oe.Z)((0,Oe.Z)({},Qr),{},{isHiddenScrollBar:!0})}):vr(function(Qr){return(0,Oe.Z)((0,Oe.Z)({},Qr),{},{isHiddenScrollBar:!1})})}})},$r=function(gr){vr(function(Lr){return(0,Oe.Z)((0,Oe.Z)({},Lr),{},{scrollLeft:gr/Dn*An||0})})};return te.useImperativeHandle(jt,function(){return{setScrollLeft:$r,checkScrollBarVisible:_r}}),te.useEffect(function(){var Er=(0,En.Z)(document.body,"mouseup",Jr,!1),gr=(0,En.Z)(document.body,"mousemove",li,!1);return _r(),function(){Er.remove(),gr.remove()}},[xn,Fr]),te.useEffect(function(){if(nn.current){for(var Er=[],gr=(0,Rn.bn)(nn.current);gr;)Er.push(gr),gr=gr.parentElement;return Er.forEach(function(Lr){return Lr.addEventListener("scroll",_r,!1)}),window.addEventListener("resize",_r,!1),window.addEventListener("scroll",_r,!1),mn.addEventListener("scroll",_r,!1),function(){Er.forEach(function(Lr){return Lr.removeEventListener("scroll",_r)}),window.removeEventListener("resize",_r),window.removeEventListener("scroll",_r),mn.removeEventListener("scroll",_r)}}},[mn]),te.useEffect(function(){dr.isHiddenScrollBar||vr(function(Er){var gr=nn.current;return gr?(0,Oe.Z)((0,Oe.Z)({},Er),{},{scrollLeft:gr.scrollLeft/gr.scrollWidth*gr.clientWidth}):Er})},[dr.isHiddenScrollBar]),Dn<=An||!xn||dr.isHiddenScrollBar?null:te.createElement("div",{style:{height:(0,ft.Z)(),width:An,bottom:an},className:"".concat(Zn,"-sticky-scroll")},te.createElement("div",{onMouseDown:Ur,ref:bn,className:ke()("".concat(Zn,"-sticky-scroll-bar"),(0,je.Z)({},"".concat(Zn,"-sticky-scroll-bar-active"),Fr)),style:{width:"".concat(xn,"px"),transform:"translate3d(".concat(dr.scrollLeft,"px, 0, 0)")}}))},mr=te.forwardRef(cr);function nr(mt){return null}var Un=nr;function Yn(mt){return null}var pr=Yn,Sr="rc-table",wr=[],Cr={};function qn(){return"No Data"}function kn(mt,pt){var jt=(0,Oe.Z)({rowKey:"key",prefixCls:Sr,emptyText:qn},mt),Bt=jt.prefixCls,Jt=jt.className,nn=jt.rowClassName,dn=jt.style,an=jt.data,mn=jt.rowKey,fn=jt.scroll,Zn=jt.tableLayout,Dn=jt.direction,An=jt.title,xn=jt.footer,bn=jt.summary,lr=jt.caption,Jn=jt.id,dr=jt.showHeader,vr=jt.components,fr=jt.emptyText,xr=jt.onRow,jr=jt.onHeaderRow,Fr=jt.onScroll,Mr=jt.internalHooks,yi=jt.transformColumns,Jr=jt.internalRefs,Ur=jt.tailor,li=jt.getContainerWidth,_r=jt.sticky,$r=jt.rowHoverable,Er=$r===void 0?!0:$r,gr=an||wr,Lr=!!gr.length,zr=Mr===y,Qr=te.useCallback(function(Hi,Gi){return(0,Ge.Z)(vr,Hi)||Gi},[vr]),Or=te.useMemo(function(){return typeof mn=="function"?mn:function(Hi){var Gi=Hi&&Hi[mn];return Gi}},[mn]),Ei=Qr(["body"]),Ai=bt(),yo=(0,Pe.Z)(Ai,3),fo=yo[0],ro=yo[1],po=yo[2],So=St(jt,gr,Or),ji=(0,Pe.Z)(So,6),Pi=ji[0],Co=ji[1],Ro=ji[2],Vr=ji[3],mi=ji[4],Zr=ji[5],Br=fn==null?void 0:fn.x,Bi=te.useState(0),Ki=(0,Pe.Z)(Bi,2),uo=Ki[0],to=Ki[1],Eo=Kt((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({},jt),Pi),{},{expandable:!!Pi.expandedRowRender,columnTitle:Pi.columnTitle,expandedKeys:Ro,getRowKey:Or,onTriggerExpand:Zr,expandIcon:Vr,expandIconColumnIndex:Pi.expandIconColumnIndex,direction:Dn,scrollWidth:zr&&Ur&&typeof Br=="number"?Br:null,clientWidth:uo}),zr?yi:null),Bo=(0,Pe.Z)(Eo,4),Yr=Bo[0],ii=Bo[1],Vi=Bo[2],eo=Bo[3],Ji=Vi!=null?Vi:Br,$o=te.useMemo(function(){return{columns:Yr,flattenColumns:ii}},[Yr,ii]),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,Ps=Gi.key;if(et(na)){var ls;(ls=ho.current)===null||ls===void 0||ls.scrollTo({top:na})}else{var Qa,Ds=Ps!=null?Ps:Or(gr[Ta]);(Qa=ho.current.querySelector('[data-row-key="'.concat(Ds,'"]')))===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,Pe.Z)(io,2),bo=Lo[0],zi=Lo[1],mo=te.useState(!1),Xi=(0,Pe.Z)(mo,2),Qo=Xi[0],No=Xi[1],ca=te.useState(new Map),ga=(0,Pe.Z)(ca,2),Ga=ga[0],oo=ga[1],Zs=tt(ii),da=Zs.map(function(Hi){return Ga.get(Hi)}),Ra=te.useMemo(function(){return da},[da.join("_")]),Ca=$t(Ra,ii,Dn),ya=fn&&nt(fn.y),ao=fn&&nt(Ji)||!!Pi.fixed,Ea=ao&&ii.some(function(Hi){var Gi=Hi.fixed;return Gi}),as=te.useRef(),Va=qt(_r,Bt),Xa=Va.isSticky,ol=Va.offsetHeader,al=Va.offsetSummary,sl=Va.offsetScroll,ll=Va.stickyClassName,Ol=Va.container,wi=te.useMemo(function(){return bn==null?void 0:bn(gr)},[bn,gr]),Mi=(ya||Xa)&&te.isValidElement(wi)&&wi.type===Ie&&wi.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})},[]),Fa=zt(null),ea=(0,Pe.Z)(Fa,2),As=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,ye.Z)(function(Hi){var Gi=Hi.currentTarget,ta=Hi.scrollLeft,Ta=Dn==="rtl",na=typeof ta=="number"?ta:Gi.scrollLeft,Ps=Gi||Cr;if(!Il()||Il()===Ps){var ls;As(Ps),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 Ds=zr&&Ur&&typeof Ji=="number"?Ji:Qa.scrollWidth,_l=Qa.clientWidth;if(Ds===_l){zi(!1),No(!1);return}Ta?(zi(-na<Ds-_l),No(-na>0)):(zi(na>0),No(na<Ds-_l))}}),ul=(0,ye.Z)(function(Hi){vs(Hi),Fr==null||Fr(Hi)}),gs=function(){if(ao&&ho.current){var Gi;vs({currentTarget:(0,Rn.bn)(ho.current),scrollLeft:(Gi=ho.current)===null||Gi===void 0?void 0:Gi.scrollLeft})}else zi(!1),No(!1)},Al=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&&li&&To.current&&(na=li(To.current,na)||na),na!==uo&&(gs(),to(na))},cl=te.useRef(!1);te.useEffect(function(){cl.current&&gs()},[ao,an,Yr.length]),te.useEffect(function(){cl.current=!0},[]);var jl=te.useState(0),Ql=(0,Pe.Z)(jl,2),ss=Ql[0],Pl=Ql[1],gu=te.useState(!0),Dl=(0,Pe.Z)(gu,2),Us=Dl[0],yu=Dl[1];(0,z.Z)(function(){(!Ur||!zr)&&(ho.current instanceof Element?Pl((0,ft.o)(ho.current).width):Pl((0,ft.o)($i.current).width)),yu((0,ot.G)("position","sticky"))},[]),te.useEffect(function(){zr&&Jr&&(Jr.body.current=ho.current)});var bu=te.useCallback(function(Hi){return te.createElement(te.Fragment,null,te.createElement(jn,Hi),Mi==="top"&&te.createElement(We,Hi,wi))},[Mi,wi]),Ks=te.useCallback(function(Hi){return te.createElement(We,Hi,wi)},[wi]),kl=Qr(["table"],"table"),Gs=te.useMemo(function(){return Zn||(Ea?Ji==="max-content"?"auto":"fixed":ya||Xa||ii.some(function(Hi){var Gi=Hi.ellipsis;return Gi})?"fixed":"auto")},[ya,Ea,ii,Zn,Xa]),Rl,Vs={colWidths:Ra,columCount:ii.length,stickyOffsets:Ca,onHeaderRow:jr,fixHeader:ya,scroll:fn},Nl=te.useMemo(function(){return Lr?null:typeof fr=="function"?fr():fr},[Lr,fr]),ql=te.createElement(en,{data:gr,measureColumnWidth:ya||ao||Xa}),Ml=te.createElement(Ln,{colWidths:ii.map(function(Hi){var Gi=Hi.width;return Gi}),columns:ii}),Bl=lr!=null?te.createElement("caption",{className:"".concat(Bt,"-caption")},lr):void 0,xu=(0,ut.Z)(jt,{data:!0}),dl=(0,ut.Z)(jt,{aria:!0});if(ya||Xa){var ys;typeof Ei=="function"?(ys=Ei(gr,{scrollbarSize:ss,ref:ho,onScroll:vs}),Vs.colWidths=ii.map(function(Hi,Gi){var ta=Hi.width,Ta=Gi===ii.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:ke()("".concat(Bt,"-body"))},te.createElement(kl,(0,de.Z)({style:(0,Oe.Z)((0,Oe.Z)({},Go),{},{tableLayout:Gs})},dl),Bl,Ml,ql,!Mi&&wi&&te.createElement(We,{stickyOffsets:Ca,flattenColumns:ii},wi)));var js=(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({noData:!gr.length,maxContentScroll:ao&&Ji==="max-content"},Vs),$o),{},{direction:Dn,stickyClassName:ll,onScroll:vs});Rl=te.createElement(te.Fragment,null,dr!==!1&&te.createElement(Lt,(0,de.Z)({},js,{stickyTopOffset:ol,className:"".concat(Bt,"-header"),ref:va}),bu),ys,Mi&&Mi!=="top"&&te.createElement(Lt,(0,de.Z)({},js,{stickyBottomOffset:al,className:"".concat(Bt,"-summary"),ref:no}),Ks),Xa&&ho.current&&ho.current instanceof Element&&te.createElement(mr,{ref:as,offsetScroll:sl,scrollBodyRef:ho,onScroll:vs,container:Ol,direction:Dn}))}else Rl=te.createElement("div",{style:(0,Oe.Z)((0,Oe.Z)({},vo),Oo),className:ke()("".concat(Bt,"-content")),onScroll:vs,ref:ho},te.createElement(kl,(0,de.Z)({style:(0,Oe.Z)((0,Oe.Z)({},Go),{},{tableLayout:Gs})},dl),Bl,Ml,dr!==!1&&te.createElement(jn,(0,de.Z)({},Vs,$o)),ql,wi&&te.createElement(We,{stickyOffsets:Ca,flattenColumns:ii},wi)));var Ll=te.createElement("div",(0,de.Z)({className:ke()(Bt,Jt,(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},"".concat(Bt,"-rtl"),Dn==="rtl"),"".concat(Bt,"-ping-left"),bo),"".concat(Bt,"-ping-right"),Qo),"".concat(Bt,"-layout-fixed"),Zn==="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"),ii[0]&&ii[0].fixed),"".concat(Bt,"-has-fix-right"),ii[ii.length-1]&&ii[ii.length-1].fixed==="right")),style:dn,id:Jn,ref:To},xu),An&&te.createElement(Xt,{className:"".concat(Bt,"-title")},An(gr)),te.createElement("div",{ref:$i,className:"".concat(Bt,"-container")},Rl),xn&&te.createElement(Xt,{className:"".concat(Bt,"-footer")},xn(gr)));ao&&(Ll=te.createElement(ct.Z,{onResize:Al},Ll));var Fl=Nt(ii,Ca,Dn),wu=te.useMemo(function(){return{scrollX:Ji,prefixCls:Bt,getComponent:Qr,scrollbarSize:ss,direction:Dn,fixedInfoList:Fl,isSticky:Xa,supportSticky:Us,componentWidth:uo,fixHeader:ya,fixColumn:Ea,horizonScroll:ao,tableLayout:Gs,rowClassName:nn,expandedRowClassName:Pi.expandedRowClassName,expandIcon:Vr,expandableType:Co,expandRowByClick:Pi.expandRowByClick,expandedRowRender:Pi.expandedRowRender,onTriggerExpand:Zr,expandIconColumnIndex:Pi.expandIconColumnIndex,indentSize:Pi.indentSize,allColumnsFixedLeft:ii.every(function(Hi){return Hi.fixed==="left"}),emptyNode:Nl,columns:Yr,flattenColumns:ii,onColumnResize:zo,hoverStartRow:fo,hoverEndRow:ro,onHover:po,rowExpandable:Pi.rowExpandable,onRow:xr,getRowKey:Or,expandedKeys:Ro,childrenColumnName:mi,rowHoverable:Er}},[Ji,Bt,Qr,ss,Dn,Fl,Xa,Us,uo,ya,Ea,ao,Gs,nn,Pi.expandedRowClassName,Vr,Co,Pi.expandRowByClick,Pi.expandedRowRender,Zr,Pi.expandIconColumnIndex,Pi.indentSize,Nl,Yr,ii,zo,fo,ro,po,Pi.rowExpandable,xr,Or,Ro,mi,Er]);return te.createElement(Ne.Provider,{value:wu},Ll)}var Fn=te.forwardRef(kn);function Nn(mt){return ge(Fn,mt)}var ir=Nn();ir.EXPAND_COLUMN=Ot,ir.INTERNAL_HOOKS=y,ir.Column=Un,ir.ColumnGroup=pr,ir.Summary=Je;var br=ir,Pr=Te(48911),Kr=oe(null),Nr=oe(null);function Wr(mt,pt,jt){var Bt=pt||1;return jt[mt+Bt]-(jt[mt]||0)}function Ir(mt){var pt=mt.rowInfo,jt=mt.column,Bt=mt.colIndex,Jt=mt.indent,nn=mt.index,dn=mt.component,an=mt.renderIndex,mn=mt.record,fn=mt.style,Zn=mt.className,Dn=mt.inverse,An=mt.getHeight,xn=jt.render,bn=jt.dataIndex,lr=jt.className,Jn=jt.width,dr=ee(Nr,["columnsOffset"]),vr=dr.columnsOffset,fr=gt(pt,jt,Bt,Jt,nn),xr=fr.key,jr=fr.fixedInfo,Fr=fr.appendCellNode,Mr=fr.additionalCellProps,yi=Mr.style,Jr=Mr.colSpan,Ur=Jr===void 0?1:Jr,li=Mr.rowSpan,_r=li===void 0?1:li,$r=Bt-1,Er=Wr($r,Ur,vr),gr=Ur>1?Jn-Er:0,Lr=(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({},yi),fn),{},{flex:"0 0 ".concat(Er,"px"),width:"".concat(Er,"px"),marginRight:gr,pointerEvents:"auto"}),zr=te.useMemo(function(){return Dn?_r<=1:Ur===0||_r===0||_r>1},[_r,Ur,Dn]);zr?Lr.visibility="hidden":Dn&&(Lr.height=An==null?void 0:An(_r));var Qr=zr?function(){return null}:xn,Or={};return(_r===0||Ur===0)&&(Or.rowSpan=1,Or.colSpan=1),te.createElement(qe,(0,de.Z)({className:ke()(lr,Zn),ellipsis:jt.ellipsis,align:jt.align,scope:jt.rowScope,component:dn,prefixCls:pt.prefixCls,key:xr,record:mn,index:nn,renderIndex:an,dataIndex:bn,render:Qr,shouldCellUpdate:jt.shouldCellUpdate},jr,{appendNode:Fr,additionalProps:(0,Oe.Z)((0,Oe.Z)({},Mr),{},{style:Lr},Or)}))}var ni=Ir,ti=["data","index","className","rowKey","style","extra","getHeight"],oi=te.forwardRef(function(mt,pt){var jt=mt.data,Bt=mt.index,Jt=mt.className,nn=mt.rowKey,dn=mt.style,an=mt.extra,mn=mt.getHeight,fn=(0,Me.Z)(mt,ti),Zn=jt.record,Dn=jt.indent,An=jt.index,xn=ee(Ne,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),bn=xn.scrollX,lr=xn.flattenColumns,Jn=xn.prefixCls,dr=xn.fixColumn,vr=xn.componentWidth,fr=ee(Kr,["getComponent"]),xr=fr.getComponent,jr=yt(Zn,nn,Bt,Dn),Fr=xr(["body","row"],"div"),Mr=xr(["body","cell"],"div"),yi=jr.rowSupportExpand,Jr=jr.expanded,Ur=jr.rowProps,li=jr.expandedRowRender,_r=jr.expandedRowClassName,$r;if(yi&&Jr){var Er=li(Zn,Bt,Dn+1,Jr),gr=Dt(_r,Zn,Bt,Dn),Lr={};dr&&(Lr={style:(0,je.Z)({},"--virtual-width","".concat(vr,"px"))});var zr="".concat(Jn,"-expanded-row-cell");$r=te.createElement(Fr,{className:ke()("".concat(Jn,"-expanded-row"),"".concat(Jn,"-expanded-row-level-").concat(Dn+1),gr)},te.createElement(qe,{component:Mr,prefixCls:Jn,className:ke()(zr,(0,je.Z)({},"".concat(zr,"-fixed"),dr)),additionalProps:Lr},Er))}var Qr=(0,Oe.Z)((0,Oe.Z)({},dn),{},{width:bn});an&&(Qr.position="absolute",Qr.pointerEvents="none");var Or=te.createElement(Fr,(0,de.Z)({},Ur,fn,{"data-row-key":nn,ref:yi?null:pt,className:ke()(Jt,"".concat(Jn,"-row"),Ur==null?void 0:Ur.className,(0,je.Z)({},"".concat(Jn,"-row-extra"),an)),style:(0,Oe.Z)((0,Oe.Z)({},Qr),Ur==null?void 0:Ur.style)}),lr.map(function(Ei,Ai){return te.createElement(ni,{key:Ai,component:Mr,rowInfo:jr,column:Ei,colIndex:Ai,indent:Dn,index:Bt,renderIndex:An,record:Zn,inverse:an,getHeight:mn})}));return yi?te.createElement("div",{ref:pt},Or,$r):Or}),fi=me(oi),xi=fi,hi=te.forwardRef(function(mt,pt){var jt=mt.data,Bt=mt.onScroll,Jt=ee(Ne,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),nn=Jt.flattenColumns,dn=Jt.onColumnResize,an=Jt.getRowKey,mn=Jt.expandedKeys,fn=Jt.prefixCls,Zn=Jt.childrenColumnName,Dn=Jt.scrollX,An=Jt.direction,xn=ee(Kr),bn=xn.sticky,lr=xn.scrollY,Jn=xn.listItemHeight,dr=xn.getComponent,vr=xn.onScroll,fr=te.useRef(),xr=At(jt,Zn,mn,an),jr=te.useMemo(function(){var $r=0;return nn.map(function(Er){var gr=Er.width,Lr=Er.key;return $r+=gr,[Lr,gr,$r]})},[nn]),Fr=te.useMemo(function(){return jr.map(function($r){return $r[2]})},[jr]);te.useEffect(function(){jr.forEach(function($r){var Er=(0,Pe.Z)($r,2),gr=Er[0],Lr=Er[1];dn(gr,Lr)})},[jr]),te.useImperativeHandle(pt,function(){var $r,Er={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(Er,"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})}}),Er});var Mr=function(Er,gr){var Lr,zr=(Lr=xr[gr])===null||Lr===void 0?void 0:Lr.record,Qr=Er.onCell;if(Qr){var Or,Ei=Qr(zr,gr);return(Or=Ei==null?void 0:Ei.rowSpan)!==null&&Or!==void 0?Or:1}return 1},yi=function(Er){var gr=Er.start,Lr=Er.end,zr=Er.getSize,Qr=Er.offsetY;if(Lr<0)return null;for(var Or=nn.filter(function(Vr){return Mr(Vr,gr)===0}),Ei=gr,Ai=function(mi){if(Or=Or.filter(function(Zr){return Mr(Zr,mi)===0}),!Or.length)return Ei=mi,1},yo=gr;yo>=0&&!Ai(yo);yo-=1);for(var fo=nn.filter(function(Vr){return Mr(Vr,Lr)!==1}),ro=Lr,po=function(mi){if(fo=fo.filter(function(Zr){return Mr(Zr,mi)!==1}),!fo.length)return ro=Math.max(mi-1,Lr),1},So=Lr;So<xr.length&&!po(So);So+=1);for(var ji=[],Pi=function(mi){var Zr=xr[mi];if(!Zr)return 1;nn.some(function(Br){return Mr(Br,mi)>1})&&ji.push(mi)},Co=Ei;Co<=ro;Co+=1)Pi(Co);var Ro=ji.map(function(Vr){var mi=xr[Vr],Zr=an(mi.record,Vr),Br=function(uo){var to=Vr+uo-1,Eo=an(xr[to].record,to),Bo=zr(Zr,Eo);return Bo.bottom-Bo.top},Bi=zr(Zr);return te.createElement(xi,{key:Vr,data:mi,rowKey:Zr,index:Vr,style:{top:-Qr+Bi.top},extra:!0,getHeight:Br})});return Ro},Jr=te.useMemo(function(){return{columnsOffset:Fr}},[Fr]),Ur="".concat(fn,"-tbody"),li=dr(["body","wrapper"]),_r={};return bn&&(_r.position="sticky",_r.bottom=0,(0,Ce.Z)(bn)==="object"&&bn.offsetScroll&&(_r.bottom=bn.offsetScroll)),te.createElement(Nr.Provider,{value:Jr},te.createElement(Pr.Z,{fullHeight:!1,ref:fr,prefixCls:"".concat(Ur,"-virtual"),styles:{horizontalScrollBar:_r},className:Ur,height:lr,itemHeight:Jn||24,data:xr,itemKey:function(Er){return an(Er.record)},component:li,scrollWidth:Dn,direction:An,onVirtualScroll:function(Er){var gr,Lr=Er.x;Bt({currentTarget:(gr=fr.current)===null||gr===void 0?void 0:gr.nativeElement,scrollLeft:Lr})},onScroll:vr,extraRender:yi},function($r,Er,gr){var Lr=an($r.record,Er);return te.createElement(xi,{data:$r,rowKey:Lr,index:Er,style:gr.style})}))}),ei=me(hi),Ar=ei,Dr=function(pt,jt){var Bt=jt.ref,Jt=jt.onScroll;return te.createElement(Ar,{ref:Bt,data:pt,onScroll:Jt})};function ar(mt,pt){var jt=mt.data,Bt=mt.columns,Jt=mt.scroll,nn=mt.sticky,dn=mt.prefixCls,an=dn===void 0?Sr:dn,mn=mt.className,fn=mt.listItemHeight,Zn=mt.components,Dn=mt.onScroll,An=Jt||{},xn=An.x,bn=An.y;typeof xn!="number"&&(xn=1),typeof bn!="number"&&(bn=500);var lr=(0,Qe.zX)(function(vr,fr){return(0,Ge.Z)(Zn,vr)||fr}),Jn=(0,Qe.zX)(Dn),dr=te.useMemo(function(){return{sticky:nn,scrollY:bn,listItemHeight:fn,getComponent:lr,onScroll:Jn}},[nn,bn,fn,lr,Jn]);return te.createElement(Kr.Provider,{value:dr},te.createElement(br,(0,de.Z)({},mt,{className:ke()(mn,"".concat(an,"-virtual")),scroll:(0,Oe.Z)((0,Oe.Z)({},Jt),{},{x:xn}),components:(0,Oe.Z)((0,Oe.Z)({},Zn),{},{body:jt!=null&&jt.length?Dr:void 0}),columns:Bt,internalHooks:y,tailor:!0,ref:pt})))}var Pn=te.forwardRef(ar);function Kn(mt){return ge(Pn,mt)}var Xn=Kn(),$n=null,Tr=mt=>null,zn=mt=>null,er=Te(84105),sr=Te(82661),qr=Te(34643),Ti=Te(34061),gi=Te(18929);function ki(mt){const[pt,jt]=(0,te.useState)(null);return[(0,te.useCallback)((nn,dn,an)=>{const mn=pt!=null?pt:nn,fn=Math.min(mn||0,nn),Zn=Math.max(mn||0,nn),Dn=dn.slice(fn,Zn+1).map(bn=>mt(bn)),An=Dn.some(bn=>!an.has(bn)),xn=[];return Dn.forEach(bn=>{An?(an.has(bn)||xn.push(bn),an.add(bn)):(an.delete(bn),xn.push(bn))}),jt(An?Zn:null),xn},[pt]),nn=>{jt(nn)}]}var Oi=Te(32383),Ii=Te(62673),Fi=Te(75727),Ri=Te(47889);const Ni={},so="SELECT_ALL",xo="SELECT_INVERT",Ao="SELECT_NONE",jo=[],wo=(mt,pt)=>{let jt=[];return(pt||[]).forEach(Bt=>{jt.push(Bt),Bt&&typeof Bt=="object"&&mt in Bt&&(jt=[].concat((0,pn.Z)(jt),(0,pn.Z)(wo(mt,Bt[mt]))))}),jt};var Gr=(mt,pt)=>{const{preserveSelectedRowKeys:jt,selectedRowKeys:Bt,defaultSelectedRowKeys:Jt,getCheckboxProps:nn,onChange:dn,onSelect:an,onSelectAll:mn,onSelectInvert:fn,onSelectNone:Zn,onSelectMultiple:Dn,columnWidth:An,type:xn,selections:bn,fixed:lr,renderCell:Jn,hideSelectAll:dr,checkStrictly:vr=!0}=pt||{},{prefixCls:fr,data:xr,pageData:jr,getRecordByKey:Fr,getRowKey:Mr,expandType:yi,childrenColumnName:Jr,locale:Ur,getPopupContainer:li}=mt,_r=(0,Oi.ln)("Table"),[$r,Er]=ki(Vr=>Vr),[gr,Lr]=(0,gi.Z)(Bt||Jt||jo,{value:Bt}),zr=te.useRef(new Map),Qr=(0,te.useCallback)(Vr=>{if(jt){const mi=new Map;Vr.forEach(Zr=>{let Br=Fr(Zr);!Br&&zr.current.has(Zr)&&(Br=zr.current.get(Zr)),mi.set(Zr,Br)}),zr.current=mi}},[Fr,jt]);te.useEffect(()=>{Qr(gr)},[gr]);const Or=(0,te.useMemo)(()=>wo(Jr,jr),[Jr,jr]),{keyEntities:Ei}=(0,te.useMemo)(()=>{if(vr)return{keyEntities:null};let Vr=xr;if(jt){const mi=new Set(Or.map((Br,Bi)=>Mr(Br,Bi))),Zr=Array.from(zr.current).reduce((Br,Bi)=>{let[Ki,uo]=Bi;return mi.has(Ki)?Br:Br.concat(uo)},[]);Vr=[].concat((0,pn.Z)(Vr),(0,pn.Z)(Zr))}return(0,Ti.I8)(Vr,{externalGetKey:Mr,childrenPropName:Jr})},[xr,Mr,vr,Jr,jt,Or]),Ai=(0,te.useMemo)(()=>{const Vr=new Map;return Or.forEach((mi,Zr)=>{const Br=Mr(mi,Zr),Bi=(nn?nn(mi):null)||{};Vr.set(Br,Bi)}),Vr},[Or,Mr,nn]),yo=(0,te.useCallback)(Vr=>{const mi=Mr(Vr);let Zr;return Ai.has(mi)?Zr=Ai.get(Mr(Vr)):Zr=nn?nn(Vr):void 0,!!(Zr!=null&&Zr.disabled)},[Ai,Mr]),[fo,ro]=(0,te.useMemo)(()=>{if(vr)return[gr||[],[]];const{checkedKeys:Vr,halfCheckedKeys:mi}=(0,qr.S)(gr,!0,Ei,yo);return[Vr||[],mi]},[gr,vr,Ei,yo]),po=(0,te.useMemo)(()=>{const Vr=xn==="radio"?fo.slice(0,1):fo;return new Set(Vr)},[fo,xn]),So=(0,te.useMemo)(()=>xn==="radio"?new Set:new Set(ro),[ro,xn]);te.useEffect(()=>{pt||Lr(jo)},[!!pt]);const ji=(0,te.useCallback)((Vr,mi)=>{let Zr,Br;Qr(Vr),jt?(Zr=Vr,Br=Vr.map(Bi=>zr.current.get(Bi))):(Zr=[],Br=[],Vr.forEach(Bi=>{const Ki=Fr(Bi);Ki!==void 0&&(Zr.push(Bi),Br.push(Ki))})),Lr(Zr),dn==null||dn(Zr,Br,{type:mi})},[Lr,Fr,dn,jt]),Pi=(0,te.useCallback)((Vr,mi,Zr,Br)=>{if(an){const Bi=Zr.map(Ki=>Fr(Ki));an(Fr(Vr),mi,Bi,Br)}ji(Zr,"single")},[an,Fr,ji]),Co=(0,te.useMemo)(()=>!bn||dr?null:(bn===!0?[so,xo,Ao]:bn).map(mi=>mi===so?{key:"all",text:Ur.selectionAll,onSelect(){ji(xr.map((Zr,Br)=>Mr(Zr,Br)).filter(Zr=>{const Br=Ai.get(Zr);return!(Br!=null&&Br.disabled)||po.has(Zr)}),"all")}}:mi===xo?{key:"invert",text:Ur.selectInvert,onSelect(){const Zr=new Set(po);jr.forEach((Bi,Ki)=>{const uo=Mr(Bi,Ki),to=Ai.get(uo);to!=null&&to.disabled||(Zr.has(uo)?Zr.delete(uo):Zr.add(uo))});const Br=Array.from(Zr);fn&&(_r.deprecated(!1,"onSelectInvert","onChange"),fn(Br)),ji(Br,"invert")}}:mi===Ao?{key:"none",text:Ur.selectNone,onSelect(){Zn==null||Zn(),ji(Array.from(po).filter(Zr=>{const Br=Ai.get(Zr);return Br==null?void 0:Br.disabled}),"none")}}:mi).map(mi=>Object.assign(Object.assign({},mi),{onSelect:function(){for(var Zr,Br,Bi=arguments.length,Ki=new Array(Bi),uo=0;uo<Bi;uo++)Ki[uo]=arguments[uo];(Br=mi.onSelect)===null||Br===void 0||(Zr=Br).call.apply(Zr,[mi].concat(Ki)),Er(null)}})),[bn,po,jr,Mr,fn,ji]);return[(0,te.useCallback)(Vr=>{var mi;if(!pt)return Vr.filter($i=>$i!==Ni);let Zr=(0,pn.Z)(Vr);const Br=new Set(po),Bi=Or.map(Mr).filter($i=>!Ai.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);mn==null||mn(!Ki,no.map(io=>Fr(io)),$i.map(io=>Fr(io))),ji(no,"all"),Er(null)};let Eo,Bo;if(xn!=="radio"){let $i;if(Co){const zi={getPopupContainer:li,items:Co.map((mo,Xi)=>{const{key:Qo,text:No,onSelect:ca}=mo;return{key:Qo!=null?Qo:Xi,onClick:()=>{ca==null||ca(Bi)},label:No}})};$i=te.createElement("div",{className:`${fr}-selection-extra`},te.createElement(Fi.Z,{menu:zi,getPopupContainer:li},te.createElement("span",null,te.createElement(er.Z,null))))}const no=Or.map((zi,mo)=>{const Xi=Mr(zi,mo),Qo=Ai.get(Xi)||{};return Object.assign({checked:Br.has(Xi)},Qo)}).filter(zi=>{let{disabled:mo}=zi;return mo}),io=!!no.length&&no.length===Or.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:!!Or.length&&Ki,indeterminate:io?!Lo&&bo:!Ki&&uo,onChange:to,disabled:Or.length===0||io,"aria-label":$i?"Custom selection":"Select all",skipGroup:!0}),Eo=!dr&&te.createElement("div",{className:`${fr}-selection`},Bo,$i)}let Yr;xn==="radio"?Yr=($i,no,io)=>{const Lo=Mr(no,io),bo=Br.has(Lo),zi=Ai.get(Lo);return{node:te.createElement(Ri.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)||Pi(Lo,!0,[Lo],mo.nativeEvent),(Xi=zi==null?void 0:zi.onChange)===null||Xi===void 0||Xi.call(zi,mo)}})),checked:bo}}:Yr=($i,no,io)=>{var Lo;const bo=Mr(no,io),zi=Br.has(bo),mo=So.has(bo),Xi=Ai.get(bo);let Qo;return yi==="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:No=>{var ca;No.stopPropagation(),(ca=Xi==null?void 0:Xi.onClick)===null||ca===void 0||ca.call(Xi,No)},onChange:No=>{var ca;const{nativeEvent:ga}=No,{shiftKey:Ga}=ga,oo=Bi.findIndex(da=>da===bo),Zs=fo.some(da=>Bi.includes(da));if(Ga&&vr&&Zs){const da=$r(oo,Bi,Br),Ra=Array.from(Br);Dn==null||Dn(!zi,Ra.map(Ca=>Fr(Ca)),da.map(Ca=>Fr(Ca))),ji(Ra,"multiple")}else{const da=fo;if(vr){const Ra=zi?(0,sr._5)(da,bo):(0,sr.L0)(da,bo);Pi(bo,!zi,Ra,ga)}else{const Ra=(0,qr.S)([].concat((0,pn.Z)(da),[bo]),!0,Ei,yo),{checkedKeys:Ca,halfCheckedKeys:ya}=Ra;let ao=Ca;if(zi){const Ea=new Set(Ca);Ea.delete(bo),ao=(0,qr.S)(Array.from(Ea),{checked:!1,halfCheckedKeys:ya},Ei,yo).checkedKeys}Pi(bo,!zi,ao,ga)}}Er(zi?null:oo),(ca=Xi==null?void 0:Xi.onChange)===null||ca===void 0||ca.call(Xi,No)}})),checked:zi}};const ii=($i,no,io)=>{const{node:Lo,checked:bo}=Yr($i,no,io);return Jn?Jn(bo,no,io,Lo):Lo};if(!Zr.includes(Ni))if(Zr.findIndex($i=>{var no;return((no=$i[yn])===null||no===void 0?void 0:no.columnType)==="EXPAND_COLUMN"})===0){const[$i,...no]=Zr;Zr=[$i,Ni].concat((0,pn.Z)(no))}else Zr=[Ni].concat((0,pn.Z)(Zr));const Vi=Zr.indexOf(Ni);Zr=Zr.filter(($i,no)=>$i!==Ni||no===Vi);const eo=Zr[Vi-1],Ji=Zr[Vi+1];let $o=lr;$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&&((mi=eo[yn])===null||mi===void 0?void 0:mi.columnType)==="EXPAND_COLUMN"&&eo.fixed===void 0&&(eo.fixed=$o);const To=ke()(`${fr}-selection-col`,{[`${fr}-selection-col-with-dropdown`]:bn&&xn==="checkbox"}),va=()=>pt!=null&&pt.columnTitle?typeof pt.columnTitle=="function"?pt.columnTitle(Bo):pt.columnTitle:Eo,ho={fixed:$o,width:An,className:`${fr}-selection-column`,title:va(),render:ii,onCell:pt.onCell,[yn]:{className:To}};return Zr.map($i=>$i===Ni?ho:$i)},[Mr,Or,pt,fo,po,So,An,Co,yi,Ai,Dn,Pi,yo]),po]},Qi=Te(2738);function qi(mt,pt){return mt._antProxy=mt._antProxy||{},Object.keys(pt).forEach(jt=>{if(!(jt in mt._antProxy)){const Bt=mt[jt];mt._antProxy[jt]=Bt,mt[jt]=pt[jt]}}),mt}function ui(mt,pt){return(0,te.useImperativeHandle)(mt,()=>{const jt=pt(),{nativeElement:Bt}=jt;return typeof Proxy!="undefined"?new Proxy(Bt,{get(Jt,nn){return jt[nn]?jt[nn]:Reflect.get(Jt,nn)}}):qi(Bt,jt)})}var Zi=Te(83010),Yi=Te(48755),bi=Te(38406),_i=Te(83397),Di=Te(31756),_o=Te(13783),pa=Te(85981),Zo=Te(31709),Po=Te(29787),cs=Te(57700);function es(mt){return pt=>{const{prefixCls:jt,onExpand:Bt,record:Jt,expanded:nn,expandable:dn}=pt,an=`${jt}-row-expand-icon`;return te.createElement("button",{type:"button",onClick:mn=>{Bt(Jt,mn),mn.stopPropagation()},className:ke()(an,{[`${an}-spaced`]:!dn,[`${an}-expanded`]:dn&&nn,[`${an}-collapsed`]:dn&&!nn}),"aria-label":nn?mt.collapse:mt.expand,"aria-expanded":nn})}}var di=es;function Si(mt){return(jt,Bt)=>{const Jt=jt.querySelector(`.${mt}-container`);let nn=Bt;if(Jt){const dn=getComputedStyle(Jt),an=parseInt(dn.borderLeftWidth,10),mn=parseInt(dn.borderRightWidth,10);nn=Bt-an-mn}return nn}}const ai=(mt,pt)=>"key"in mt&&mt.key!==void 0&&mt.key!==null?mt.key:mt.dataIndex?Array.isArray(mt.dataIndex)?mt.dataIndex.join("."):mt.dataIndex:pt;function pi(mt,pt){return pt?`${pt}-${mt}`:`${mt}`}const Ui=(mt,pt)=>typeof mt=="function"?mt(pt):mt,lo=(mt,pt)=>{const jt=Ui(mt,pt);return Object.prototype.toString.call(jt)==="[object Object]"?"":jt};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),Do=function(pt,jt){return te.createElement(Yo.Z,(0,de.Z)({},pt,{ref:jt,icon:oa}))},ja=te.forwardRef(Do),_a=ja,ha=Te(9981),$a=Te(40192);function Ya(mt){const pt=te.useRef(mt),jt=(0,$a.Z)();return[()=>pt.current,Bt=>{pt.current=Bt,jt()}]}var Pa=Te(7939),ds=Te(584),vl=Te(93041),Js=Te(78857),za=Te(18287),ts=Te(47472),Da=Te(49397),Rs=mt=>{const{value:pt,filterSearch:jt,tablePrefixCls:Bt,locale:Jt,onChange:nn}=mt;return jt?te.createElement("div",{className:`${Bt}-filter-dropdown-search`},te.createElement(Da.Z,{prefix:te.createElement(ts.Z,null),placeholder:Jt.filterSearchPlaceholder,onChange:nn,value:pt,htmlSize:1,className:`${Bt}-filter-dropdown-search-input`})):null},Qs=Te(10228);const el=mt=>{const{keyCode:pt}=mt;pt===Qs.Z.ENTER&&mt.stopPropagation()};var Ns=te.forwardRef((mt,pt)=>te.createElement("div",{className:mt.className,onClick:jt=>jt.stopPropagation(),onKeyDown:el,ref:pt},mt.children));function Ha(mt){let pt=[];return(mt||[]).forEach(jt=>{let{value:Bt,children:Jt}=jt;pt.push(Bt),Jt&&(pt=[].concat((0,pn.Z)(pt),(0,pn.Z)(Ha(Jt))))}),pt}function fs(mt){return mt.some(pt=>{let{children:jt}=pt;return jt})}function xs(mt,pt){return typeof pt=="string"||typeof pt=="number"?pt==null?void 0:pt.toString().toLowerCase().includes(mt.trim().toLowerCase()):!1}function Ms(mt){let{filters:pt,prefixCls:jt,filteredKeys:Bt,filterMultiple:Jt,searchValue:nn,filterSearch:dn}=mt;return pt.map((an,mn)=>{const fn=String(an.value);if(an.children)return{key:fn||mn,label:an.text,popupClassName:`${jt}-dropdown-submenu`,children:Ms({filters:an.children,prefixCls:jt,filteredKeys:Bt,filterMultiple:Jt,searchValue:nn,filterSearch:dn})};const Zn=Jt?Ii.default:Ri.ZP,Dn={key:an.value!==void 0?fn:mn,label:te.createElement(te.Fragment,null,te.createElement(Zn,{checked:Bt.includes(fn)}),te.createElement("span",null,an.text))};return nn.trim()?typeof dn=="function"?dn(nn,an)?Dn:null:xs(nn,an.text)?Dn:null:Dn})}function ps(mt){return mt||[]}var tl=mt=>{var pt,jt,Bt,Jt;const{tablePrefixCls:nn,prefixCls:dn,column:an,dropdownPrefixCls:mn,columnKey:fn,filterOnClose:Zn,filterMultiple:Dn,filterMode:An="menu",filterSearch:xn=!1,filterState:bn,triggerFilter:lr,locale:Jn,children:dr,getPopupContainer:vr,rootClassName:fr}=mt,{filterResetToDefaultFilteredValue:xr,defaultFilteredValue:jr,filterDropdownProps:Fr={},filterDropdownOpen:Mr,filterDropdownVisible:yi,onFilterDropdownVisibleChange:Jr,onFilterDropdownOpenChange:Ur}=an,[li,_r]=te.useState(!1),$r=!!(bn&&(!((pt=bn.filteredKeys)===null||pt===void 0)&&pt.length||bn.forceFiltered)),Er=Yr=>{var ii;_r(Yr),(ii=Fr.onOpenChange)===null||ii===void 0||ii.call(Fr,Yr),Ur==null||Ur(Yr),Jr==null||Jr(Yr)},gr=(Jt=(Bt=(jt=Fr.open)!==null&&jt!==void 0?jt:Mr)!==null&&Bt!==void 0?Bt:yi)!==null&&Jt!==void 0?Jt:li,Lr=bn==null?void 0:bn.filteredKeys,[zr,Qr]=Ya(ps(Lr)),Or=Yr=>{let{selectedKeys:ii}=Yr;Qr(ii)},Ei=(Yr,ii)=>{let{node:Vi,checked:eo}=ii;Or(Dn?{selectedKeys:Yr}:{selectedKeys:eo&&Vi.key?[Vi.key]:[]})};te.useEffect(()=>{li&&Or({selectedKeys:ps(Lr)})},[Lr]);const[Ai,yo]=te.useState([]),fo=Yr=>{yo(Yr)},[ro,po]=te.useState(""),So=Yr=>{const{value:ii}=Yr.target;po(ii)};te.useEffect(()=>{li||po("")},[li]);const ji=Yr=>{const ii=Yr!=null&&Yr.length?Yr:null;if(ii===null&&(!bn||!bn.filteredKeys)||(0,E.Z)(ii,bn==null?void 0:bn.filteredKeys,!0))return null;lr({column:an,key:fn,filteredKeys:ii})},Pi=()=>{Er(!1),ji(zr())},Co=function(){let{confirm:Yr,closeDropdown:ii}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Yr&&ji([]),ii&&Er(!1),po(""),Qr(xr?(jr||[]).map(Vi=>String(Vi)):[])},Ro=function(){let{closeDropdown:Yr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Yr&&Er(!1),ji(zr())},Vr=(Yr,ii)=>{ii.source==="trigger"&&(Yr&&Lr!==void 0&&Qr(ps(Lr)),Er(Yr),!Yr&&!an.filterDropdown&&Zn&&Pi())},mi=ke()({[`${mn}-menu-without-submenu`]:!fs(an.filters||[])}),Zr=Yr=>{if(Yr.target.checked){const ii=Ha(an==null?void 0:an.filters).map(Vi=>String(Vi));Qr(ii)}else Qr([])},Br=Yr=>{let{filters:ii}=Yr;return(ii||[]).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=Yr=>{var ii;return Object.assign(Object.assign({},Yr),{text:Yr.title,value:Yr.key,children:((ii=Yr.children)===null||ii===void 0?void 0:ii.map(Vi=>Bi(Vi)))||[]})};let Ki;const{direction:uo,renderEmpty:to}=te.useContext(Yi.E_);if(typeof an.filterDropdown=="function")Ki=an.filterDropdown({prefixCls:`${mn}-custom`,setSelectedKeys:Yr=>Or({selectedKeys:Yr}),selectedKeys:zr(),confirm:Ro,clearFilters:Co,filters:an.filters,visible:gr,close:()=>{Er(!1)}});else if(an.filterDropdown)Ki=an.filterDropdown;else{const Yr=zr()||[],ii=()=>{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:Jn.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((an.filters||[]).length===0)return $o;if(An==="tree")return te.createElement(te.Fragment,null,te.createElement(Rs,{filterSearch:xn,value:ro,onChange:So,tablePrefixCls:nn,locale:Jn}),te.createElement("div",{className:`${nn}-filter-dropdown-tree`},Dn?te.createElement(Ii.default,{checked:Yr.length===Ha(an.filters).length,indeterminate:Yr.length>0&&Yr.length<Ha(an.filters).length,className:`${nn}-filter-dropdown-checkall`,onChange:Zr},(Ji=Jn==null?void 0:Jn.filterCheckall)!==null&&Ji!==void 0?Ji:Jn==null?void 0:Jn.filterCheckAll):null,te.createElement(za.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Dn,checkStrictly:!Dn,className:`${mn}-menu`,onCheck:Ei,checkedKeys:Yr,selectedKeys:Yr,showIcon:!1,treeData:Br({filters:an.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:ro.trim()?ho=>typeof xn=="function"?xn(ro,Bi(ho)):xs(ro,ho.title):void 0})));const To=Ms({filters:an.filters||[],filterSearch:xn,prefixCls:dn,filteredKeys:zr(),filterMultiple:Dn,searchValue:ro}),va=To.every(ho=>ho===null);return te.createElement(te.Fragment,null,te.createElement(Rs,{filterSearch:xn,value:ro,onChange:So,tablePrefixCls:nn,locale:Jn}),va?$o:te.createElement(vl.default,{selectable:!0,multiple:Dn,prefixCls:`${mn}-menu`,className:mi,onSelect:Or,onDeselect:Or,selectedKeys:Yr,getPopupContainer:vr,openKeys:Ai,onOpenChange:fo,items:To}))},Vi=()=>xr?(0,E.Z)((jr||[]).map(eo=>String(eo)),Yr,!0):Yr.length===0;Ki=te.createElement(te.Fragment,null,ii(),te.createElement("div",{className:`${dn}-dropdown-btns`},te.createElement(Pa.ZP,{type:"link",size:"small",disabled:Vi(),onClick:()=>Co()},Jn.filterReset),te.createElement(Pa.ZP,{type:"primary",size:"small",onClick:Pi},Jn.filterConfirm)))}an.filterDropdown&&(Ki=te.createElement(Js.J,{selectable:void 0},Ki)),Ki=te.createElement(Ns,{className:`${dn}-dropdown`},Ki);const Eo=()=>{let Yr;return typeof an.filterIcon=="function"?Yr=an.filterIcon($r):an.filterIcon?Yr=an.filterIcon:Yr=te.createElement(_a,null),te.createElement("span",{role:"button",tabIndex:-1,className:ke()(`${dn}-trigger`,{active:$r}),onClick:ii=>{ii.stopPropagation()}},Yr)},Bo=(0,ha.Z)({trigger:["click"],placement:uo==="rtl"?"bottomLeft":"bottomRight",children:Eo(),getPopupContainer:vr},Object.assign(Object.assign({},Fr),{rootClassName:ke()(fr,Fr.rootClassName),open:gr,onOpenChange:Vr,dropdownRender:()=>typeof(Fr==null?void 0:Fr.dropdownRender)=="function"?Fr.dropdownRender(Ki):Ki}));return te.createElement("div",{className:`${dn}-column`},te.createElement("span",{className:`${nn}-column-title`},dr),te.createElement(Fi.Z,Object.assign({},Bo)))};const ns=(mt,pt,jt)=>{let Bt=[];return(mt||[]).forEach((Jt,nn)=>{var dn;const an=pi(nn,jt);if(Jt.filters||"filterDropdown"in Jt||"onFilter"in Jt)if("filteredValue"in Jt){let mn=Jt.filteredValue;"filterDropdown"in Jt||(mn=(dn=mn==null?void 0:mn.map(String))!==null&&dn!==void 0?dn:mn),Bt.push({column:Jt,key:ai(Jt,an),filteredKeys:mn,forceFiltered:Jt.filtered})}else Bt.push({column:Jt,key:ai(Jt,an),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,an))))}),Bt};function aa(mt,pt,jt,Bt,Jt,nn,dn,an,mn){return jt.map((fn,Zn)=>{const Dn=pi(Zn,an),{filterOnClose:An=!0,filterMultiple:xn=!0,filterMode:bn,filterSearch:lr}=fn;let Jn=fn;if(Jn.filters||Jn.filterDropdown){const dr=ai(Jn,Dn),vr=Bt.find(fr=>{let{key:xr}=fr;return dr===xr});Jn=Object.assign(Object.assign({},Jn),{title:fr=>te.createElement(tl,{tablePrefixCls:mt,prefixCls:`${mt}-filter`,dropdownPrefixCls:pt,column:Jn,columnKey:dr,filterState:vr,filterOnClose:An,filterMultiple:xn,filterMode:bn,filterSearch:lr,triggerFilter:nn,locale:Jt,getPopupContainer:dn,rootClassName:mn},Ui(fn.title,fr))})}return"children"in Jn&&(Jn=Object.assign(Object.assign({},Jn),{children:aa(mt,pt,Jn.children,Bt,Jt,nn,dn,Dn,mn)})),Jn})}const Wi=mt=>{const pt={};return mt.forEach(jt=>{let{key:Bt,filteredKeys:Jt,column:nn}=jt;const dn=Bt,{filters:an,filterDropdown:mn}=nn;if(mn)pt[dn]=Jt||null;else if(Array.isArray(Jt)){const fn=Ha(an);pt[dn]=fn.filter(Zn=>Jt.includes(String(Zn)))}else pt[dn]=null}),pt},Ci=(mt,pt,jt)=>pt.reduce((Jt,nn)=>{const{column:{onFilter:dn,filters:an},filteredKeys:mn}=nn;return dn&&mn&&mn.length?Jt.map(fn=>Object.assign({},fn)).filter(fn=>mn.some(Zn=>{const Dn=Ha(an),An=Dn.findIndex(bn=>String(bn)===String(Zn)),xn=An!==-1?Dn[An]:Zn;return fn[jt]&&(fn[jt]=Ci(fn[jt],pt,jt)),dn(xn,fn)})):Jt},mt),Wo=mt=>mt.flatMap(pt=>"children"in pt?[pt].concat((0,pn.Z)(Wo(pt.children||[]))):[pt]);var ko=mt=>{const{prefixCls:pt,dropdownPrefixCls:jt,mergedColumns:Bt,onFilterChange:Jt,getPopupContainer:nn,locale:dn,rootClassName:an}=mt,mn=(0,Oi.ln)("Table"),fn=te.useMemo(()=>Wo(Bt||[]),[Bt]),[Zn,Dn]=te.useState(()=>ns(fn,!0)),An=te.useMemo(()=>{const Jn=ns(fn,!1);if(Jn.length===0)return Jn;let dr=!0,vr=!0;if(Jn.forEach(fr=>{let{filteredKeys:xr}=fr;xr!==void 0?dr=!1:vr=!1}),dr){const fr=(fn||[]).map((xr,jr)=>ai(xr,pi(jr)));return Zn.filter(xr=>{let{key:jr}=xr;return fr.includes(jr)}).map(xr=>{const jr=fn[fr.findIndex(Fr=>Fr===xr.key)];return Object.assign(Object.assign({},xr),{column:Object.assign(Object.assign({},xr.column),jr),forceFiltered:jr.filtered})})}return Jn},[fn,Zn]),xn=te.useMemo(()=>Wi(An),[An]),bn=Jn=>{const dr=An.filter(vr=>{let{key:fr}=vr;return fr!==Jn.key});dr.push(Jn),Dn(dr),Jt(Wi(dr),dr)};return[Jn=>aa(pt,jt,Jn,An,dn,bn,nn,void 0,an),An,xn]},Ba=(mt,pt,jt)=>{const Bt=te.useRef({});function Jt(nn){var dn;if(!Bt.current||Bt.current.data!==mt||Bt.current.childrenColumnName!==pt||Bt.current.getRowKey!==jt){let mn=function(fn){fn.forEach((Zn,Dn)=>{const An=jt(Zn,Dn);an.set(An,Zn),Zn&&typeof Zn=="object"&&pt in Zn&&mn(Zn[pt]||[])})};const an=new Map;mn(mt),Bt.current={data:mt,childrenColumnName:pt,kvMap:an,getRowKey:jt}}return(dn=Bt.current.kvMap)===null||dn===void 0?void 0:dn.get(nn)}return[Jt]},ka=function(mt,pt){var jt={};for(var Bt in mt)Object.prototype.hasOwnProperty.call(mt,Bt)&&pt.indexOf(Bt)<0&&(jt[Bt]=mt[Bt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,Bt=Object.getOwnPropertySymbols(mt);Jt<Bt.length;Jt++)pt.indexOf(Bt[Jt])<0&&Object.prototype.propertyIsEnumerable.call(mt,Bt[Jt])&&(jt[Bt[Jt]]=mt[Bt[Jt]]);return jt};const Za=10;function xa(mt,pt){const jt={current:mt.current,pageSize:mt.pageSize};return Object.keys(pt&&typeof pt=="object"?pt:{}).forEach(Jt=>{const nn=mt[Jt];typeof nn!="function"&&(jt[Jt]=nn)}),jt}function wa(mt,pt,jt){const Bt=jt&&typeof jt=="object"?jt:{},{total:Jt=0}=Bt,nn=ka(Bt,["total"]),[dn,an]=(0,te.useState)(()=>({current:"defaultCurrent"in nn?nn.defaultCurrent:1,pageSize:"defaultPageSize"in nn?nn.defaultPageSize:Za})),mn=(0,ha.Z)(dn,nn,{total:Jt>0?Jt:mt}),fn=Math.ceil((Jt||mt)/mn.pageSize);mn.current>fn&&(mn.current=fn||1);const Zn=(An,xn)=>{an({current:An!=null?An:1,pageSize:xn||mn.pageSize})},Dn=(An,xn)=>{var bn;jt&&((bn=jt.onChange)===null||bn===void 0||bn.call(jt,An,xn)),Zn(An,xn),pt(An,xn||(mn==null?void 0:mn.pageSize))};return jt===!1?[{},()=>{}]:[Object.assign(Object.assign({},mn),{onChange:Dn}),Zn]}var La=wa,rs=Te(89489),yl=Te(59477),bl=Te(25399);const ws="ascend",Ja="descend",Wa=mt=>typeof mt.sorter=="object"&&typeof mt.sorter.multiple=="number"?mt.sorter.multiple:!1,la=mt=>typeof mt=="function"?mt:mt&&typeof mt=="object"&&mt.compare?mt.compare:!1,is=(mt,pt)=>pt?mt[mt.indexOf(pt)+1]:mt[0],Ua=(mt,pt,jt)=>{let Bt=[];const Jt=(nn,dn)=>{Bt.push({column:nn,key:ai(nn,dn),multiplePriority:Wa(nn),sortOrder:nn.sortOrder})};return(mt||[]).forEach((nn,dn)=>{const an=pi(dn,jt);nn.children?("sortOrder"in nn&&Jt(nn,an),Bt=[].concat((0,pn.Z)(Bt),(0,pn.Z)(Ua(nn.children,pt,an)))):nn.sorter&&("sortOrder"in nn?Jt(nn,an):pt&&nn.defaultSortOrder&&Bt.push({column:nn,key:ai(nn,an),multiplePriority:Wa(nn),sortOrder:nn.defaultSortOrder}))}),Bt},Ls=(mt,pt,jt,Bt,Jt,nn,dn,an)=>(pt||[]).map((fn,Zn)=>{const Dn=pi(Zn,an);let An=fn;if(An.sorter){const xn=An.sortDirections||Jt,bn=An.showSorterTooltip===void 0?dn:An.showSorterTooltip,lr=ai(An,Dn),Jn=jt.find(Jr=>{let{key:Ur}=Jr;return Ur===lr}),dr=Jn?Jn.sortOrder:null,vr=is(xn,dr);let fr;if(fn.sortIcon)fr=fn.sortIcon({sortOrder:dr});else{const Jr=xn.includes(ws)&&te.createElement(yl.Z,{className:ke()(`${mt}-column-sorter-up`,{active:dr===ws})}),Ur=xn.includes(Ja)&&te.createElement(rs.Z,{className:ke()(`${mt}-column-sorter-down`,{active:dr===Ja})});fr=te.createElement("span",{className:ke()(`${mt}-column-sorter`,{[`${mt}-column-sorter-full`]:!!(Jr&&Ur)})},te.createElement("span",{className:`${mt}-column-sorter-inner`,"aria-hidden":"true"},Jr,Ur))}const{cancelSort:xr,triggerAsc:jr,triggerDesc:Fr}=nn||{};let Mr=xr;vr===Ja?Mr=Fr:vr===ws&&(Mr=jr);const yi=typeof bn=="object"?Object.assign({title:Mr},bn):{title:Mr};An=Object.assign(Object.assign({},An),{className:ke()(An.className,{[`${mt}-column-sort`]:dr}),title:Jr=>{const Ur=`${mt}-column-sorters`,li=te.createElement("span",{className:`${mt}-column-title`},Ui(fn.title,Jr)),_r=te.createElement("div",{className:Ur},li,fr);return bn?typeof bn!="boolean"&&(bn==null?void 0:bn.target)==="sorter-icon"?te.createElement("div",{className:`${Ur} ${mt}-column-sorters-tooltip-target-sorter`},li,te.createElement(bl.Z,Object.assign({},yi),fr)):te.createElement(bl.Z,Object.assign({},yi),_r):_r},onHeaderCell:Jr=>{var Ur;const li=((Ur=fn.onHeaderCell)===null||Ur===void 0?void 0:Ur.call(fn,Jr))||{},_r=li.onClick,$r=li.onKeyDown;li.onClick=Lr=>{Bt({column:fn,key:lr,sortOrder:vr,multiplePriority:Wa(fn)}),_r==null||_r(Lr)},li.onKeyDown=Lr=>{Lr.keyCode===Qs.Z.ENTER&&(Bt({column:fn,key:lr,sortOrder:vr,multiplePriority:Wa(fn)}),$r==null||$r(Lr))};const Er=lo(fn.title,{}),gr=Er==null?void 0:Er.toString();return dr&&(li["aria-sort"]=dr==="ascend"?"ascending":"descending"),li["aria-label"]=gr||"",li.className=ke()(li.className,`${mt}-column-has-sorters`),li.tabIndex=0,fn.ellipsis&&(li.title=(Er!=null?Er:"").toString()),li}})}return"children"in An&&(An=Object.assign(Object.assign({},An),{children:Ls(mt,An.children,jt,Bt,Jt,nn,dn,Dn)})),An}),Hl=mt=>{const{column:pt,sortOrder:jt}=mt;return{column:pt,order:jt,field:pt.dataIndex,columnKey:pt.key}},xl=mt=>{const pt=mt.filter(jt=>{let{sortOrder:Bt}=jt;return Bt}).map(Hl);if(pt.length===0&&mt.length){const jt=mt.length-1;return Object.assign(Object.assign({},Hl(mt[jt])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return pt.length<=1?pt[0]||{}:pt},hs=(mt,pt,jt)=>{const Bt=pt.slice().sort((dn,an)=>an.multiplePriority-dn.multiplePriority),Jt=mt.slice(),nn=Bt.filter(dn=>{let{column:{sorter:an},sortOrder:mn}=dn;return la(an)&&mn});return nn.length?Jt.sort((dn,an)=>{for(let mn=0;mn<nn.length;mn+=1){const fn=nn[mn],{column:{sorter:Zn},sortOrder:Dn}=fn,An=la(Zn);if(An&&Dn){const xn=An(dn,an,Dn);if(xn!==0)return Dn===ws?xn:-xn}}return 0}).map(dn=>{const an=dn[jt];return an?Object.assign(Object.assign({},dn),{[jt]:hs(an,pt,jt)}):dn}):Jt};var Zl=mt=>{const{prefixCls:pt,mergedColumns:jt,sortDirections:Bt,tableLocale:Jt,showSorterTooltip:nn,onSorterChange:dn}=mt,[an,mn]=te.useState(Ua(jt,!0)),fn=(lr,Jn)=>{const dr=[];return lr.forEach((vr,fr)=>{const xr=pi(fr,Jn);if(dr.push(ai(vr,xr)),Array.isArray(vr.children)){const jr=fn(vr.children,xr);dr.push.apply(dr,(0,pn.Z)(jr))}}),dr},Zn=te.useMemo(()=>{let lr=!0;const Jn=Ua(jt,!1);if(!Jn.length){const xr=fn(jt);return an.filter(jr=>{let{key:Fr}=jr;return xr.includes(Fr)})}const dr=[];function vr(xr){lr?dr.push(xr):dr.push(Object.assign(Object.assign({},xr),{sortOrder:null}))}let fr=null;return Jn.forEach(xr=>{fr===null?(vr(xr),xr.sortOrder&&(xr.multiplePriority===!1?lr=!1:fr=!0)):(fr&&xr.multiplePriority!==!1||(lr=!1),vr(xr))}),dr},[jt,an]),Dn=te.useMemo(()=>{var lr,Jn;const dr=Zn.map(vr=>{let{column:fr,sortOrder:xr}=vr;return{column:fr,order:xr}});return{sortColumns:dr,sortColumn:(lr=dr[0])===null||lr===void 0?void 0:lr.column,sortOrder:(Jn=dr[0])===null||Jn===void 0?void 0:Jn.order}},[Zn]),An=lr=>{let Jn;lr.multiplePriority===!1||!Zn.length||Zn[0].multiplePriority===!1?Jn=[lr]:Jn=[].concat((0,pn.Z)(Zn.filter(dr=>{let{key:vr}=dr;return vr!==lr.key})),[lr]),mn(Jn),dn(xl(Jn),Jn)};return[lr=>Ls(pt,lr,Zn,An,Bt,Jt,nn),Zn,Dn,()=>xl(Zn)]};const Fs=(mt,pt)=>mt.map(Bt=>{const Jt=Object.assign({},Bt);return Jt.title=Ui(Bt.title,pt),"children"in Jt&&(Jt.children=Fs(Jt.children,pt)),Jt});var wl=mt=>[te.useCallback(jt=>Fs(jt,mt),[mt])],Wl=Nn((mt,pt)=>{const{_renderTimes:jt}=mt,{_renderTimes:Bt}=pt;return jt!==Bt}),Ss=Kn((mt,pt)=>{const{_renderTimes:jt}=mt,{_renderTimes:Bt}=pt;return jt!==Bt}),si=Te(36237),Cs=Te(17835),os=Te(63356),au=Te(16931),su=Te(51636),Sl=mt=>{const{componentCls:pt,lineWidth:jt,lineType:Bt,tableBorderColor:Jt,tableHeaderBg:nn,tablePaddingVertical:dn,tablePaddingHorizontal:an,calc:mn}=mt,fn=`${(0,si.unit)(jt)} ${Bt} ${Jt}`,Zn=(Dn,An,xn)=>({[`&${pt}-${Dn}`]:{[`> ${pt}-container`]:{[`> ${pt}-content, > ${pt}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${pt}-expanded-row-fixed`]:{margin:`${(0,si.unit)(mn(An).mul(-1).equal())}
${(0,si.unit)(mn(mn(xn).add(jt)).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,si.unit)(mn(dn).mul(-1).equal())} ${(0,si.unit)(mn(mn(an).add(jt)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:jt,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}}}}}},Zn("middle",mt.tablePaddingVerticalMiddle,mt.tablePaddingHorizontalMiddle)),Zn("small",mt.tablePaddingVerticalSmall,mt.tablePaddingHorizontalSmall)),{[`> ${pt}-footer`]:{border:fn,borderTop:0}}),[`${pt}-cell`]:{[`${pt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,si.unit)(jt)} 0 ${(0,si.unit)(jt)} ${nn}`}},[`${pt}-bordered ${pt}-cell-scrollbar`]:{borderInlineEnd:fn}}}},Es=mt=>{const{componentCls:pt}=mt;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=mt=>{const{componentCls:pt}=mt;return{[`${pt}-wrapper`]:{[`${pt}-tbody > tr${pt}-placeholder`]:{textAlign:"center",color:mt.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:mt.colorBgContainer}}}}},Gl=mt=>{const{componentCls:pt,antCls:jt,motionDurationSlow:Bt,lineWidth:Jt,paddingXS:nn,lineType:dn,tableBorderColor:an,tableExpandIconBg:mn,tableExpandColumnWidth:fn,borderRadius:Zn,tablePaddingVertical:Dn,tablePaddingHorizontal:An,tableExpandedRowBg:xn,paddingXXS:bn,expandIconMarginTop:lr,expandIconSize:Jn,expandIconHalfInner:dr,expandIconScale:vr,calc:fr}=mt,xr=`${(0,si.unit)(Jt)} ${dn} ${an}`,jr=fr(bn).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)(mt)),{position:"relative",float:"left",width:Jn,height:Jn,color:"inherit",lineHeight:(0,si.unit)(Jn),background:mn,border:xr,borderRadius:Zn,transform:`scale(${vr})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Bt} ease-out`,content:'""'},"&::before":{top:dr,insetInlineEnd:jr,insetInlineStart:jr,height:Jt},"&::after":{top:jr,bottom:jr,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:lr,marginInlineEnd:nn},[`tr${pt}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:xn}},[`${jt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${pt}-expanded-row-fixed`]:{position:"relative",margin:`${(0,si.unit)(fr(Dn).mul(-1).equal())} ${(0,si.unit)(fr(An).mul(-1).equal())}`,padding:`${(0,si.unit)(Dn)} ${(0,si.unit)(An)}`}}}},Vl=mt=>{const{componentCls:pt,antCls:jt,iconCls:Bt,tableFilterDropdownWidth:Jt,tableFilterDropdownSearchWidth:nn,paddingXXS:dn,paddingXS:an,colorText:mn,lineWidth:fn,lineType:Zn,tableBorderColor:Dn,headerIconColor:An,fontSizeSM:xn,tablePaddingHorizontal:bn,borderRadius:lr,motionDurationSlow:Jn,colorTextDescription:dr,colorPrimary:vr,tableHeaderFilterActiveBg:fr,colorTextDisabled:xr,tableFilterDropdownBg:jr,tableFilterDropdownHeight:Fr,controlItemBgHover:Mr,controlItemBgActive:yi,boxShadowSecondary:Jr,filterDropdownMenuBg:Ur,calc:li}=mt,_r=`${jt}-dropdown`,$r=`${pt}-filter-dropdown`,Er=`${jt}-tree`,gr=`${(0,si.unit)(fn)} ${Zn} ${Dn}`;return[{[`${pt}-wrapper`]:{[`${pt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${pt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:li(dn).mul(-1).equal(),marginInline:`${(0,si.unit)(dn)} ${(0,si.unit)(li(bn).div(2).mul(-1).equal())}`,padding:`0 ${(0,si.unit)(dn)}`,color:An,fontSize:xn,borderRadius:lr,cursor:"pointer",transition:`all ${Jn}`,"&:hover":{color:dr,background:fr},"&.active":{color:vr}}}},{[`${jt}-dropdown`]:{[$r]:Object.assign(Object.assign({},(0,os.Wf)(mt)),{minWidth:Jt,backgroundColor:jr,borderRadius:lr,boxShadow:Jr,overflow:"hidden",[`${_r}-menu`]:{maxHeight:Fr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Ur,"&:empty::after":{display:"block",padding:`${(0,si.unit)(an)} 0`,color:xr,fontSize:xn,textAlign:"center",content:'"Not Found"'}},[`${$r}-tree`]:{paddingBlock:`${(0,si.unit)(an)} 0`,paddingInline:an,[Er]:{padding:0},[`${Er}-treenode ${Er}-node-content-wrapper:hover`]:{backgroundColor:Mr},[`${Er}-treenode-checkbox-checked ${Er}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:yi}}},[`${$r}-search`]:{padding:an,borderBottom:gr,"&-input":{input:{minWidth:nn},[Bt]:{color:xr}}},[`${$r}-checkall`]:{width:"100%",marginBottom:dn,marginInlineStart:dn},[`${$r}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,si.unit)(li(an).sub(fn).equal())} ${(0,si.unit)(an)}`,overflow:"hidden",borderTop:gr}})}},{[`${jt}-dropdown ${$r}, ${$r}-submenu`]:{[`${jt}-checkbox-wrapper + span`]:{paddingInlineStart:an,color:mn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},_s=mt=>{const{componentCls:pt,lineWidth:jt,colorSplit:Bt,motionDurationSlow:Jt,zIndexTableFixed:nn,tableBg:dn,zIndexTableSticky:an,calc:mn}=mt,fn=Bt;return{[`${pt}-wrapper`]:{[`
${pt}-cell-fix-left,
${pt}-cell-fix-right
`]:{position:"sticky !important",zIndex:nn,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:mn(jt).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:mn(jt).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:mn(an).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=mt=>{const{componentCls:pt,antCls:jt,margin:Bt}=mt;return{[`${pt}-wrapper`]:{[`${pt}-pagination${jt}-pagination`]:{margin:`${(0,si.unit)(Bt)} 0`},[`${pt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:mt.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Xl=mt=>{const{componentCls:pt,tableRadius:jt}=mt;return{[`${pt}-wrapper`]:{[pt]:{[`${pt}-title, ${pt}-header`]:{borderRadius:`${(0,si.unit)(jt)} ${(0,si.unit)(jt)} 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:jt,borderStartEndRadius:jt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:jt},"> *:last-child":{borderStartEndRadius:jt}}},"&-footer":{borderRadius:`0 0 ${(0,si.unit)(jt)} ${(0,si.unit)(jt)}`}}}}},Yl=mt=>{const{componentCls:pt}=mt;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=mt=>{const{componentCls:pt,antCls:jt,iconCls:Bt,fontSizeIcon:Jt,padding:nn,paddingXS:dn,headerIconColor:an,headerIconHoverColor:mn,tableSelectionColumnWidth:fn,tableSelectedRowBg:Zn,tableSelectedRowHoverBg:Dn,tableRowHoverBg:An,tablePaddingHorizontal:xn,calc:bn}=mt;return{[`${pt}-wrapper`]:{[`${pt}-selection-col`]:{width:fn,[`&${pt}-selection-col-with-dropdown`]:{width:bn(fn).add(Jt).add(bn(nn).div(4)).equal()}},[`${pt}-bordered ${pt}-selection-col`]:{width:bn(fn).add(bn(dn).mul(2)).equal(),[`&${pt}-selection-col-with-dropdown`]:{width:bn(fn).add(Jt).add(bn(nn).div(4)).add(bn(dn).mul(2)).equal()}},[`
table tr th${pt}-selection-column,
table tr td${pt}-selection-column,
${pt}-selection-column
`]:{paddingInlineEnd:mt.paddingXS,paddingInlineStart:mt.paddingXS,textAlign:"center",[`${jt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${pt}-selection-column${pt}-cell-fix-left`]:{zIndex:bn(mt.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 ${mt.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,si.unit)(bn(xn).div(4).equal()),[Bt]:{color:an,fontSize:Jt,verticalAlign:"baseline","&:hover":{color:mn}}},[`${pt}-tbody`]:{[`${pt}-row`]:{[`&${pt}-row-selected`]:{[`> ${pt}-cell`]:{background:Zn,"&-row-hover":{background:Dn}}},[`> ${pt}-cell-row-hover`]:{background:An}}}}}},cu=mt=>{const{componentCls:pt,tableExpandColumnWidth:jt,calc:Bt}=mt,Jt=(nn,dn,an,mn)=>({[`${pt}${pt}-${nn}`]:{fontSize:mn,[`
${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,si.unit)(dn)} ${(0,si.unit)(an)}`},[`${pt}-filter-trigger`]:{marginInlineEnd:(0,si.unit)(Bt(an).div(2).mul(-1).equal())},[`${pt}-expanded-row-fixed`]:{margin:`${(0,si.unit)(Bt(dn).mul(-1).equal())} ${(0,si.unit)(Bt(an).mul(-1).equal())}`},[`${pt}-tbody`]:{[`${pt}-wrapper:only-child ${pt}`]:{marginBlock:(0,si.unit)(Bt(dn).mul(-1).equal()),marginInline:`${(0,si.unit)(Bt(jt).sub(an).equal())} ${(0,si.unit)(Bt(an).mul(-1).equal())}`}},[`${pt}-selection-extra`]:{paddingInlineStart:(0,si.unit)(Bt(an).div(4).equal())}}});return{[`${pt}-wrapper`]:Object.assign(Object.assign({},Jt("middle",mt.tablePaddingVerticalMiddle,mt.tablePaddingHorizontalMiddle,mt.tableFontSizeMiddle)),Jt("small",mt.tablePaddingVerticalSmall,mt.tablePaddingHorizontalSmall,mt.tableFontSizeSmall))}},du=mt=>{const{componentCls:pt,marginXXS:jt,fontSizeIcon:Bt,headerIconColor:Jt,headerIconHoverColor:nn}=mt;return{[`${pt}-wrapper`]:{[`${pt}-thead th${pt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${mt.motionDurationSlow}, left 0s`,"&:hover":{background:mt.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:mt.colorPrimary},[`
&${pt}-cell-fix-left:hover,
&${pt}-cell-fix-right:hover
`]:{background:mt.tableFixedHeaderSortActiveBg}},[`${pt}-thead th${pt}-column-sort`]:{background:mt.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${pt}-column-sort`]:{background:mt.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:jt,color:Jt,fontSize:0,transition:`color ${mt.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Bt,"&.active":{color:mt.colorPrimary}},[`${pt}-column-sorter-up + ${pt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${pt}-column-sorters:hover ${pt}-column-sorter`]:{color:nn}}}},fu=mt=>{const{componentCls:pt,opacityLoading:jt,tableScrollThumbBg:Bt,tableScrollThumbBgHover:Jt,tableScrollThumbSize:nn,tableScrollBg:dn,zIndexTableSticky:an,stickyScrollBarBorderRadius:mn,lineWidth:fn,lineType:Zn,tableBorderColor:Dn}=mt,An=`${(0,si.unit)(fn)} ${Zn} ${Dn}`;return{[`${pt}-wrapper`]:{[`${pt}-sticky`]:{"&-holder":{position:"sticky",zIndex:an,background:mt.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,si.unit)(nn)} !important`,zIndex:an,display:"flex",alignItems:"center",background:dn,borderTop:An,opacity:jt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:nn,backgroundColor:Bt,borderRadius:mn,transition:`all ${mt.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Jt}}}}}}},ma=mt=>{const{componentCls:pt,lineWidth:jt,tableBorderColor:Bt,calc:Jt}=mt,nn=`${(0,si.unit)(jt)} ${mt.lineType} ${Bt}`;return{[`${pt}-wrapper`]:{[`${pt}-summary`]:{position:"relative",zIndex:mt.zIndexTableFixed,background:mt.tableBg,"> tr":{"> th, > td":{borderBottom:nn}}},[`div${pt}-summary`]:{boxShadow:`0 ${(0,si.unit)(Jt(jt).mul(-1).equal())} 0 ${Bt}`}}}},ua=mt=>{const{componentCls:pt,motionDurationMid:jt,lineWidth:Bt,lineType:Jt,tableBorderColor:nn,calc:dn}=mt,an=`${(0,si.unit)(Bt)} ${Jt} ${nn}`,mn=`${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:an,transition:`background ${jt}`},[`${pt}-expanded-row`]:{[`${mn}${mn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,si.unit)(Bt)})`,borderInlineEnd:"none"}}},[`${pt}-bordered`]:{[`${pt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:an,position:"absolute"},[`${pt}-cell`]:{borderInlineEnd:an,[`&${pt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:dn(Bt).mul(-1).equal(),borderInlineStart:an}}},[`&${pt}-virtual`]:{[`${pt}-placeholder ${pt}-cell`]:{borderInlineEnd:an,borderBottom:an}}}}}};const Ko=mt=>{const{componentCls:pt,fontWeightStrong:jt,tablePaddingVertical:Bt,tablePaddingHorizontal:Jt,tableExpandColumnWidth:nn,lineWidth:dn,lineType:an,tableBorderColor:mn,tableFontSize:fn,tableBg:Zn,tableRadius:Dn,tableHeaderTextColor:An,motionDurationMid:xn,tableHeaderBg:bn,tableHeaderCellSplitColor:lr,tableFooterTextColor:Jn,tableFooterBg:dr,calc:vr}=mt,fr=`${(0,si.unit)(dn)} ${an} ${mn}`;return{[`${pt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,os.dF)()),{[pt]:Object.assign(Object.assign({},(0,os.Wf)(mt)),{fontSize:fn,background:Zn,borderRadius:`${(0,si.unit)(Dn)} ${(0,si.unit)(Dn)} 0 0`,scrollbarColor:`${mt.tableScrollThumbBg} ${mt.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,si.unit)(Dn)} ${(0,si.unit)(Dn)} 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,si.unit)(Bt)} ${(0,si.unit)(Jt)}`,overflowWrap:"break-word"},[`${pt}-title`]:{padding:`${(0,si.unit)(Bt)} ${(0,si.unit)(Jt)}`},[`${pt}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:An,fontWeight:jt,textAlign:"start",background:bn,borderBottom:fr,transition:`background ${xn} 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:lr,transform:"translateY(-50%)",transition:`background-color ${xn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${pt}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${xn}, border-color ${xn}`,borderBottom:fr,[`
> ${pt}-wrapper:only-child,
> ${pt}-expanded-row-fixed > ${pt}-wrapper:only-child
`]:{[pt]:{marginBlock:(0,si.unit)(vr(Bt).mul(-1).equal()),marginInline:`${(0,si.unit)(vr(nn).sub(Jt).equal())}
${(0,si.unit)(vr(Jt).mul(-1).equal())}`,[`${pt}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:An,fontWeight:jt,textAlign:"start",background:bn,borderBottom:fr,transition:`background ${xn} ease`}}},[`${pt}-footer`]:{padding:`${(0,si.unit)(Bt)} ${(0,si.unit)(Jt)}`,color:Jn,background:dr}})}},Hs=mt=>{const{colorFillAlter:pt,colorBgContainer:jt,colorTextHeading:Bt,colorFillSecondary:Jt,colorFillContent:nn,controlItemBgActive:dn,controlItemBgActiveHover:an,padding:mn,paddingSM:fn,paddingXS:Zn,colorBorderSecondary:Dn,borderRadiusLG:An,controlHeight:xn,colorTextPlaceholder:bn,fontSize:lr,fontSizeSM:Jn,lineHeight:dr,lineWidth:vr,colorIcon:fr,colorIconHover:xr,opacityLoading:jr,controlInteractiveSize:Fr}=mt,Mr=new Cs.FastColor(Jt).onBackground(jt).toHexString(),yi=new Cs.FastColor(nn).onBackground(jt).toHexString(),Jr=new Cs.FastColor(pt).onBackground(jt).toHexString(),Ur=new Cs.FastColor(fr),li=new Cs.FastColor(xr),_r=Fr/2-vr,$r=_r*2+vr*3;return{headerBg:Jr,headerColor:Bt,headerSortActiveBg:Mr,headerSortHoverBg:yi,bodySortBg:Jr,rowHoverBg:Jr,rowSelectedBg:dn,rowSelectedHoverBg:an,rowExpandedBg:pt,cellPaddingBlock:mn,cellPaddingInline:mn,cellPaddingBlockMD:fn,cellPaddingInlineMD:Zn,cellPaddingBlockSM:Zn,cellPaddingInlineSM:Zn,borderColor:Dn,headerBorderRadius:An,footerBg:Jr,footerColor:Bt,cellFontSize:lr,cellFontSizeMD:lr,cellFontSizeSM:lr,headerSplitColor:Dn,fixedHeaderSortActiveBg:Mr,headerFilterHoverBg:nn,filterDropdownMenuBg:jt,filterDropdownBg:jt,expandIconBg:jt,selectionColumnWidth:xn,stickyScrollBarBg:bn,stickyScrollBarBorderRadius:100,expandIconMarginTop:(lr*dr-vr*3)/2-Math.ceil((Jn*1.4-vr*3)/2),headerIconColor:Ur.clone().setA(Ur.a*jr).toRgbString(),headerIconHoverColor:li.clone().setA(li.a*jr).toRgbString(),expandIconHalfInner:_r,expandIconSize:$r,expandIconScale:Fr/$r}},Jl=2;var il=(0,au.I$)("Table",mt=>{const{colorTextHeading:pt,colorSplit:jt,colorBgContainer:Bt,controlInteractiveSize:Jt,headerBg:nn,headerColor:dn,headerSortActiveBg:an,headerSortHoverBg:mn,bodySortBg:fn,rowHoverBg:Zn,rowSelectedBg:Dn,rowSelectedHoverBg:An,rowExpandedBg:xn,cellPaddingBlock:bn,cellPaddingInline:lr,cellPaddingBlockMD:Jn,cellPaddingInlineMD:dr,cellPaddingBlockSM:vr,cellPaddingInlineSM:fr,borderColor:xr,footerBg:jr,footerColor:Fr,headerBorderRadius:Mr,cellFontSize:yi,cellFontSizeMD:Jr,cellFontSizeSM:Ur,headerSplitColor:li,fixedHeaderSortActiveBg:_r,headerFilterHoverBg:$r,filterDropdownBg:Er,expandIconBg:gr,selectionColumnWidth:Lr,stickyScrollBarBg:zr,calc:Qr}=mt,Or=(0,su.mergeToken)(mt,{tableFontSize:yi,tableBg:Bt,tableRadius:Mr,tablePaddingVertical:bn,tablePaddingHorizontal:lr,tablePaddingVerticalMiddle:Jn,tablePaddingHorizontalMiddle:dr,tablePaddingVerticalSmall:vr,tablePaddingHorizontalSmall:fr,tableBorderColor:xr,tableHeaderTextColor:dn,tableHeaderBg:nn,tableFooterTextColor:Fr,tableFooterBg:jr,tableHeaderCellSplitColor:li,tableHeaderSortBg:an,tableHeaderSortHoverBg:mn,tableBodySortBg:fn,tableFixedHeaderSortActiveBg:_r,tableHeaderFilterActiveBg:$r,tableFilterDropdownBg:Er,tableRowHoverBg:Zn,tableSelectedRowBg:Dn,tableSelectedRowHoverBg:An,zIndexTableFixed:Jl,zIndexTableSticky:Qr(Jl).add(1).equal({unit:!1}),tableFontSizeMiddle:Jr,tableFontSizeSmall:Ur,tableSelectionColumnWidth:Lr,tableExpandIconBg:gr,tableExpandColumnWidth:Qr(Jt).add(Qr(mt.padding).mul(2)).equal(),tableExpandedRowBg:xn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:zr,tableScrollThumbBgHover:pt,tableScrollBg:jt});return[Ko(Or),$s(Or),ma(Or),du(Or),Vl(Or),Sl(Or),Xl(Or),Gl(Or),ma(Or),lu(Or),ms(Or),_s(Or),fu(Or),Es(Or),cu(Or),Yl(Or),ua(Or)]},Hs,{unitless:{expandIconScale:!0}});const pu=[],hu=(mt,pt)=>{var jt,Bt;const{prefixCls:Jt,className:nn,rootClassName:dn,style:an,size:mn,bordered:fn,dropdownPrefixCls:Zn,dataSource:Dn,pagination:An,rowSelection:xn,rowKey:bn="key",rowClassName:lr,columns:Jn,children:dr,childrenColumnName:vr,onChange:fr,getPopupContainer:xr,loading:jr,expandIcon:Fr,expandable:Mr,expandedRowRender:yi,expandIconColumnIndex:Jr,indentSize:Ur,scroll:li,sortDirections:_r,locale:$r,showSorterTooltip:Er={target:"full-header"},virtual:gr}=mt,Lr=(0,Oi.ln)("Table"),zr=te.useMemo(()=>Jn||cn(dr),[Jn,dr]),Qr=te.useMemo(()=>zr.some(wi=>wi.responsive),[zr]),Or=(0,_o.Z)(Qr),Ei=te.useMemo(()=>{const wi=new Set(Object.keys(Or).filter(Mi=>Or[Mi]));return zr.filter(Mi=>!Mi.responsive||Mi.responsive.some(vo=>wi.has(vo)))},[zr,Or]),Ai=(0,Qi.Z)(mt,["className","style","columns"]),{locale:yo=pa.Z,direction:fo,table:ro,renderEmpty:po,getPrefixCls:So,getPopupContainer:ji}=te.useContext(Yi.E_),Pi=(0,Di.Z)(mn),Co=Object.assign(Object.assign({},yo.Table),$r),Ro=Dn||pu,Vr=So("table",Jt),mi=So("dropdown",Zn),[,Zr]=(0,cs.ZP)(),Br=(0,_i.Z)(Vr),[Bi,Ki,uo]=il(Vr,Br),to=Object.assign(Object.assign({childrenColumnName:vr,expandIconColumnIndex:Jr},Mr),{expandIcon:(jt=Mr==null?void 0:Mr.expandIcon)!==null&&jt!==void 0?jt:(Bt=ro==null?void 0:ro.expandable)===null||Bt===void 0?void 0:Bt.expandIcon}),{childrenColumnName:Eo="children"}=to,Bo=te.useMemo(()=>Ro.some(wi=>wi==null?void 0:wi[Eo])?"nest":yi||Mr!=null&&Mr.expandedRowRender?"row":null,[Ro]),Yr={body:te.useRef(null)},ii=Si(Vr),Vi=te.useRef(null),eo=te.useRef(null);ui(pt,()=>Object.assign(Object.assign({},eo.current),{nativeElement:Vi.current}));const Ji=te.useMemo(()=>typeof bn=="function"?bn:wi=>wi==null?void 0:wi[bn],[bn]),[$o]=Ba(Ro,Eo,Ji),To={},va=function(wi,Mi){let vo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Oo,Go,zo,Fa;const ea=Object.assign(Object.assign({},To),wi);vo&&((Oo=To.resetPagination)===null||Oo===void 0||Oo.call(To),!((Go=ea.pagination)===null||Go===void 0)&&Go.current&&(ea.pagination.current=1),An&&((zo=An.onChange)===null||zo===void 0||zo.call(An,1,(Fa=ea.pagination)===null||Fa===void 0?void 0:Fa.pageSize))),li&&li.scrollToFirstRowOnChange!==!1&&Yr.body.current&&(0,Zi.Z)(0,{getContainer:()=>Yr.body.current}),fr==null||fr(ea.pagination,ea.filters,ea.sorter,{currentDataSource:Ci(hs(Ro,ea.sorterStates,Eo),ea.filterStates,Eo),action:Mi})},ho=(wi,Mi)=>{va({sorter:wi,sorterStates:Mi},"sort",!1)},[$i,no,io,Lo]=Zl({prefixCls:Vr,mergedColumns:Ei,onSorterChange:ho,sortDirections:_r||["ascend","descend"],tableLocale:Co,showSorterTooltip:Er}),bo=te.useMemo(()=>hs(Ro,no,Eo),[Ro,no]);To.sorter=Lo(),To.sorterStates=no;const zi=(wi,Mi)=>{va({filters:wi,filterStates:Mi},"filter",!0)},[mo,Xi,Qo]=ko({prefixCls:Vr,locale:Co,dropdownPrefixCls:mi,mergedColumns:Ei,onFilterChange:zi,getPopupContainer:xr||ji,rootClassName:ke()(dn,Br)}),No=Ci(bo,Xi,Eo);To.filters=Qo,To.filterStates=Xi;const ca=te.useMemo(()=>{const wi={};return Object.keys(Qo).forEach(Mi=>{Qo[Mi]!==null&&(wi[Mi]=Qo[Mi])}),Object.assign(Object.assign({},io),{filters:wi})},[io,Qo]),[ga]=wl(ca),Ga=(wi,Mi)=>{va({pagination:Object.assign(Object.assign({},To.pagination),{current:wi,pageSize:Mi})},"paginate")},[oo,Zs]=La(No.length,Ga,An);To.pagination=An===!1?{}:xa(oo,An),To.resetPagination=Zs;const da=te.useMemo(()=>{if(An===!1||!oo.pageSize)return No;const{current:wi=1,total:Mi,pageSize:vo=Za}=oo;return No.length<Mi?No.length>vo?No.slice((wi-1)*vo,wi*vo):No:No.slice((wi-1)*vo,wi*vo)},[!!An,No,oo==null?void 0:oo.current,oo==null?void 0:oo.pageSize,oo==null?void 0:oo.total]),[Ra,Ca]=Gr({prefixCls:Vr,data:No,pageData:da,getRowKey:Ji,getRecordByKey:$o,expandType:Bo,childrenColumnName:Eo,locale:Co,getPopupContainer:xr||ji},xn),ya=(wi,Mi,vo)=>{let Oo;return typeof lr=="function"?Oo=ke()(lr(wi,Mi,vo)):Oo=ke()(lr),ke()({[`${Vr}-row-selected`]:Ca.has(Ji(wi,Mi))},Oo)};to.__PARENT_RENDER_ICON__=to.expandIcon,to.expandIcon=to.expandIcon||Fr||di(Co),Bo==="nest"&&to.expandIconColumnIndex===void 0?to.expandIconColumnIndex=xn?1:0:to.expandIconColumnIndex>0&&xn&&(to.expandIconColumnIndex-=1),typeof to.indentSize!="number"&&(to.indentSize=typeof Ur=="number"?Ur:15);const ao=te.useCallback(wi=>ga(Ra(mo($i(wi)))),[$i,mo,Ra]);let Ea,as;if(An!==!1&&(oo!=null&&oo.total)){let wi;oo.size?wi=oo.size:wi=Pi==="small"||Pi==="middle"?"small":void 0;const Mi=Go=>te.createElement(Zo.Z,Object.assign({},oo,{className:ke()(`${Vr}-pagination ${Vr}-pagination-${Go}`,oo.className),size:wi})),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")),Fa=Oo.every(ea=>`${ea}`=="none");!Go&&!zo&&!Fa&&(as=Mi(vo)),Go&&(Ea=Mi(Go.toLowerCase().replace("top",""))),zo&&(as=Mi(zo.toLowerCase().replace("bottom","")))}else as=Mi(vo)}let Va;typeof jr=="boolean"?Va={spinning:jr}:typeof jr=="object"&&(Va=Object.assign({spinning:!0},jr));const Xa=ke()(uo,Br,`${Vr}-wrapper`,ro==null?void 0:ro.className,{[`${Vr}-wrapper-rtl`]:fo==="rtl"},nn,dn,Ki),ol=Object.assign(Object.assign({},ro==null?void 0:ro.style),an),al=typeof($r==null?void 0:$r.emptyText)!="undefined"?$r.emptyText:(po==null?void 0:po("Table"))||te.createElement(bi.Z,{componentName:"Table"}),sl=gr?Ss:Wl,ll={},Ol=te.useMemo(()=>{const{fontSize:wi,lineHeight:Mi,lineWidth:vo,padding:Oo,paddingXS:Go,paddingSM:zo}=Zr,Fa=Math.floor(wi*Mi);switch(Pi){case"middle":return zo*2+Fa+vo;case"small":return Go*2+Fa+vo;default:return Oo*2+Fa+vo}},[Zr,Pi]);return gr&&(ll.listItemHeight=Ol),Bi(te.createElement("div",{ref:Vi,className:Xa,style:ol},te.createElement(Po.Z,Object.assign({spinning:!1},Va),Ea,te.createElement(sl,Object.assign({},ll,Ai,{ref:eo,columns:Ei,direction:fo,expandable:to,prefixCls:Vr,className:ke()({[`${Vr}-middle`]:Pi==="middle",[`${Vr}-small`]:Pi==="small",[`${Vr}-bordered`]:fn,[`${Vr}-empty`]:Ro.length===0},uo,Br,Ki),data:da,rowKey:Ji,rowClassName:ya,emptyText:al,internalHooks:y,internalRefs:Yr,transformColumns:ao,getContainerWidth:ii})),as)))};var mu=te.forwardRef(hu);const El=(mt,pt)=>{const jt=te.useRef(0);return jt.current+=1,te.createElement(mu,Object.assign({},mt,{ref:pt,_renderTimes:jt.current}))},Ka=te.forwardRef(El);Ka.SELECTION_COLUMN=Ni,Ka.EXPAND_COLUMN=Ot,Ka.SELECTION_ALL=so,Ka.SELECTION_INVERT=xo,Ka.SELECTION_NONE=Ao,Ka.Column=Tr,Ka.ColumnGroup=zn,Ka.Summary=Je;var Tl=Ka,vu=Tl},18287:function(wn,Yt,Te){"use strict";Te.d(Yt,{default:function(){return et}});var te=Te(3741),Ot=Te(94480),y=Te(59301),Pe=Te(52671),ye=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"},re=E,oe=Te(7657),ee=function(Ye,Xe){return y.createElement(oe.Z,(0,z.Z)({},Ye,{ref:Xe,icon:re}))},de=y.forwardRef(ee),x=de,ae=Te(92310),ie=Te.n(ae),se=Te(82661),ue=Te(34061),pe=Te(48755),he=Te(56082),ge=Te(86641),me=Te(57700),xe=Te(12425);const Ae=4;function Ne(Ze){const{dropPosition:Ye,dropLevelOffset:Xe,prefixCls:st,indent:Qe,direction:ht="ltr"}=Ze,at=ht==="ltr"?"left":"right",qe=ht==="ltr"?"right":"left",_e={[at]:-Xe*Qe+Ae,[qe]:0};switch(Ye){case-1:_e.top=-3;break;case 1:_e.bottom=-3;break;default:_e.bottom=-3,_e[at]=Qe+Ae;break}return y.createElement("div",{style:_e,className:`${st}-drop-indicator`})}var Be=Ne,De=Te(85278),Ce=y.forwardRef((Ze,Ye)=>{var Xe;const{getPrefixCls:st,direction:Qe,virtual:ht,tree:at}=y.useContext(pe.E_),{prefixCls:qe,className:_e,showIcon:Re=!1,showLine:ne,switcherIcon:fe,switcherLoadingIcon:Me,blockNode:He=!1,children:be,checkable:ve=!1,selectable:Ie=!0,draggable:$e,motion:We,style:Je}=Ze,ct=st("tree",qe),ot=st(),ft=We!=null?We:Object.assign(Object.assign({},(0,ge.Z)(ot)),{motionAppear:!1}),ut=Object.assign(Object.assign({},Ze),{checkable:ve,selectable:Ie,showIcon:Re,motion:ft,blockNode:He,showLine:!!ne,dropIndicatorRender:Be}),[lt,At,yt]=(0,xe.ZP)(ct),[,Rt]=(0,me.ZP)(),Pt=Rt.paddingXS/2+(((Xe=Rt.Tree)===null||Xe===void 0?void 0:Xe.titleHeight)||Rt.controlHeightSM),Tt=y.useMemo(()=>{if(!$e)return!1;let Dt={};switch(typeof $e){case"function":Dt.nodeDraggable=$e;break;case"object":Dt=Object.assign({},$e);break;default:break}return Dt.icon!==!1&&(Dt.icon=Dt.icon||y.createElement(he.Z,null)),Dt},[$e]),kt=Dt=>y.createElement(De.Z,{prefixCls:ct,switcherIcon:fe,switcherLoadingIcon:Me,treeNodeProps:Dt,showLine:ne});return lt(y.createElement(te.ZP,Object.assign({itemHeight:Pt,ref:Ye,virtual:ht},ut,{style:Object.assign(Object.assign({},at==null?void 0:at.style),Je),prefixCls:ct,className:ie()({[`${ct}-icon-hide`]:!Re,[`${ct}-block-node`]:He,[`${ct}-unselectable`]:!Ie,[`${ct}-rtl`]:Qe==="rtl"},at==null?void 0:at.className,_e,At,yt),direction:Qe,checkable:ve&&y.createElement("span",{className:`${ct}-checkbox-inner`}),selectable:Ie,switcherIcon:kt,draggable:Tt}),be))});const Oe=0,je=1,Fe=2;function ke(Ze,Ye,Xe){const{key:st,children:Qe}=Xe;function ht(at){const qe=at[st],_e=at[Qe];Ye(qe,at)!==!1&&ke(_e||[],Ye,Xe)}Ze.forEach(ht)}function Ee(Ze){let{treeData:Ye,expandedKeys:Xe,startKey:st,endKey:Qe,fieldNames:ht}=Ze;const at=[];let qe=Oe;if(st&&st===Qe)return[st];if(!st||!Qe)return[];function _e(Re){return Re===st||Re===Qe}return ke(Ye,Re=>{if(qe===Fe)return!1;if(_e(Re)){if(at.push(Re),qe===Oe)qe=je;else if(qe===je)return qe=Fe,!1}else qe===je&&at.push(Re);return Xe.includes(Re)},(0,ue.w$)(ht)),at}function Ge(Ze,Ye,Xe){const st=(0,Ot.Z)(Ye),Qe=[];return ke(Ze,(ht,at)=>{const qe=st.indexOf(ht);return qe!==-1&&(Qe.push(at),st.splice(qe,1)),!!st.length},(0,ue.w$)(Xe)),Qe}var Ke=function(Ze,Ye){var Xe={};for(var st in Ze)Object.prototype.hasOwnProperty.call(Ze,st)&&Ye.indexOf(st)<0&&(Xe[st]=Ze[st]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,st=Object.getOwnPropertySymbols(Ze);Qe<st.length;Qe++)Ye.indexOf(st[Qe])<0&&Object.prototype.propertyIsEnumerable.call(Ze,st[Qe])&&(Xe[st[Qe]]=Ze[st[Qe]]);return Xe};function Ve(Ze){const{isLeaf:Ye,expanded:Xe}=Ze;return Ye?y.createElement(Pe.Z,null):Xe?y.createElement(ye.Z,null):y.createElement(x,null)}function it(Ze){let{treeData:Ye,children:Xe}=Ze;return Ye||(0,ue.zn)(Xe)}const Le=(Ze,Ye)=>{var{defaultExpandAll:Xe,defaultExpandParent:st,defaultExpandedKeys:Qe}=Ze,ht=Ke(Ze,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const at=y.useRef(null),qe=y.useRef(null),_e=()=>{const{keyEntities:lt}=(0,ue.I8)(it(ht));let At;return Xe?At=Object.keys(lt):st?At=(0,se.r7)(ht.expandedKeys||Qe||[],lt):At=ht.expandedKeys||Qe||[],At},[Re,ne]=y.useState(ht.selectedKeys||ht.defaultSelectedKeys||[]),[fe,Me]=y.useState(()=>_e());y.useEffect(()=>{"selectedKeys"in ht&&ne(ht.selectedKeys)},[ht.selectedKeys]),y.useEffect(()=>{"expandedKeys"in ht&&Me(ht.expandedKeys)},[ht.expandedKeys]);const He=(lt,At)=>{var yt;return"expandedKeys"in ht||Me(lt),(yt=ht.onExpand)===null||yt===void 0?void 0:yt.call(ht,lt,At)},be=(lt,At)=>{var yt;const{multiple:Rt,fieldNames:Pt}=ht,{node:Tt,nativeEvent:kt}=At,{key:Dt=""}=Tt,gt=it(ht),It=Object.assign(Object.assign({},At),{selected:!0}),Vt=(kt==null?void 0:kt.ctrlKey)||(kt==null?void 0:kt.metaKey),rn=kt==null?void 0:kt.shiftKey;let wt;Rt&&Vt?(wt=lt,at.current=Dt,qe.current=wt,It.selectedNodes=Ge(gt,wt,Pt)):Rt&&rn?(wt=Array.from(new Set([].concat((0,Ot.Z)(qe.current||[]),(0,Ot.Z)(Ee({treeData:gt,expandedKeys:fe,startKey:Dt,endKey:at.current,fieldNames:Pt}))))),It.selectedNodes=Ge(gt,wt,Pt)):(wt=[Dt],at.current=Dt,qe.current=wt,It.selectedNodes=Ge(gt,wt,Pt)),(yt=ht.onSelect)===null||yt===void 0||yt.call(ht,wt,It),"selectedKeys"in ht||ne(wt)},{getPrefixCls:ve,direction:Ie}=y.useContext(pe.E_),{prefixCls:$e,className:We,showIcon:Je=!0,expandAction:ct="click"}=ht,ot=Ke(ht,["prefixCls","className","showIcon","expandAction"]),ft=ve("tree",$e),ut=ie()(`${ft}-directory`,{[`${ft}-directory-rtl`]:Ie==="rtl"},We);return y.createElement(Ce,Object.assign({icon:Ve,ref:Ye,blockNode:!0},ot,{showIcon:Je,expandAction:ct,prefixCls:ft,className:ut,expandedKeys:fe,selectedKeys:Re,onSelect:be,onExpand:He}))};var tt=y.forwardRef(Le);const nt=Ce;nt.DirectoryTree=tt,nt.TreeNode=te.OF;var et=nt},12425:function(wn,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),Pe=Te(34961),ye=Te(51636),z=Te(16931);const E=ue=>{let{treeCls:pe,treeNodeCls:he,directoryNodeSelectedBg:ge,directoryNodeSelectedColor:me,motionDurationMid:xe,borderRadius:Ae,controlItemBgHover:Ne}=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:Ae},"&:hover:before":{background:Ne}},[`${pe}-switcher, ${pe}-checkbox, ${pe}-draggable-icon`]:{zIndex:1},"&-selected":{[`${pe}-switcher, ${pe}-draggable-icon`]:{color:me},[`${pe}-node-content-wrapper`]:{color:me,background:"transparent","&:before, &:hover:before":{background:ge}}}}}},re=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:'""'}}}),de=(ue,pe)=>{const{treeCls:he,treeNodeCls:ge,treeNodePadding:me,titleHeight:xe,indentSize:Ae,nodeSelectedBg:Ne,nodeHoverBg:Be,colorTextQuaternary:De,controlItemBgActiveDisabled:we}=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"},[`${ge}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${pe.colorPrimary}`,opacity:0,animationName:re,animationDuration:pe.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:pe.borderRadius}}},[ge]:{display:"flex",alignItems:"flex-start",marginBottom:me,lineHeight:(0,te.unit)(xe),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:me},[`&-disabled ${he}-node-content-wrapper`]:{color:pe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${he}-checkbox-disabled + ${he}-node-selected,&${ge}-disabled${ge}-selected ${he}-node-content-wrapper`]:{backgroundColor:we},[`${he}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${ge}-disabled)`]:{[`${he}-node-content-wrapper`]:{"&:hover":{color:pe.nodeHoverColor}}},[`&-active ${he}-node-content-wrapper`]:{background:pe.controlItemBgHover},[`&:not(${ge}-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:De},[`&${ge}-disabled ${he}-draggable-icon`]:{visibility:"hidden"}}},[`${he}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Ae}},[`${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(me).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:Ne},[`${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"},[`${ge}.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(me).mul(-1).equal(),borderInlineEnd:`1px solid ${pe.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${he}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ge}-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 ge=`.${ue}`,me=`${ge}-treenode`,xe=pe.calc(pe.paddingXS).div(2).equal(),Ae=(0,ye.mergeToken)(pe,{treeCls:ge,treeNodeCls:me,treeNodePadding:xe});return[de(ue,Ae),he&&E(Ae)].filter(Boolean)},ae=ue=>{const{controlHeightSM:pe,controlItemBgHover:he,controlItemBgActive:ge}=ue,me=pe;return{titleHeight:me,indentSize:me,nodeHoverBg:he,nodeHoverColor:ue.colorText,nodeSelectedBg:ge,nodeSelectedColor:ue.colorText}},ie=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,Pe.Z)(ue)]},ie)},85278:function(wn,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"},Pe=y,ye=Te(7657),z=function(ge,me){return te.createElement(ye.Z,(0,Ot.Z)({},ge,{ref:me,icon:Pe}))},E=te.forwardRef(z),re=E,oe=Te(52671),ee=Te(58617),de=Te(15075),x=Te(43531),ae=Te(92310),ie=Te.n(ae),se=Te(22703),pe=he=>{const{prefixCls:ge,switcherIcon:me,treeNodeProps:xe,showLine:Ae,switcherLoadingIcon:Ne}=he,{isLeaf:Be,expanded:De,loading:we}=xe;if(we)return te.isValidElement(Ne)?Ne:te.createElement(ee.Z,{className:`${ge}-switcher-loading-icon`});let Ce;if(Ae&&typeof Ae=="object"&&(Ce=Ae.showLeafIcon),Be){if(!Ae)return null;if(typeof Ce!="boolean"&&Ce){const Fe=typeof Ce=="function"?Ce(xe):Ce,ke=`${ge}-switcher-line-custom-icon`;return te.isValidElement(Fe)?(0,se.Tm)(Fe,{className:ie()(Fe.props.className||"",ke)}):Fe}return Ce?te.createElement(oe.Z,{className:`${ge}-switcher-line-icon`}):te.createElement("span",{className:`${ge}-switcher-leaf-line`})}const Oe=`${ge}-switcher-icon`,je=typeof me=="function"?me(xe):me;return te.isValidElement(je)?(0,se.Tm)(je,{className:ie()(je.props.className||"",Oe)}):je!==void 0?je:Ae?De?te.createElement(de.Z,{className:`${ge}-switcher-line-icon`}):te.createElement(x.Z,{className:`${ge}-switcher-line-icon`}):te.createElement(re,{className:Oe})}},94968:function(wn,Yt,Te){"use strict";Te.d(Yt,{default:function(){return zt}});var te=Te(59301),Ot=Te(94480),y=Te(4676),Pe=Te(92310),ye=Te.n(Pe),z=Te(54476),E=Te(67732),re=Te(83652),oe=Te(31226),ee=Te(42403),de=Te(158),x=Te(20068),ae=Te(33885),ie=Te(75931),se=Te(76190),ue=Te(75044),pe=Te(3202),he=Te(26112),ge=Te(48736),me=function(bt,Wt){if(bt&&Wt){var Ft=Array.isArray(Wt)?Wt:Wt.split(","),qt=bt.name||"",_t=bt.type||"",$t=_t.replace(/\/.*$/,"");return Ft.some(function(Ht){var Xt=Ht.trim();if(/^\*(\/\*)?$/.test(Ht))return!0;if(Xt.charAt(0)==="."){var En=qt.toLowerCase(),On=Xt.toLowerCase(),Rn=[On];return(On===".jpg"||On===".jpeg")&&(Rn=[".jpg",".jpeg"]),Rn.some(function(rr){return En.endsWith(rr)})}return/\/\*$/.test(Xt)?$t===Xt.replace(/\/.*$/,""):_t===Xt?!0:/^\w+$/.test(Xt)?((0,ge.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Xt,"'.Skip for check.")),!0):!1})}return!0};function xe(bt,Wt){var Ft="cannot ".concat(bt.method," ").concat(bt.action," ").concat(Wt.status,"'"),qt=new Error(Ft);return qt.status=Wt.status,qt.method=bt.method,qt.url=bt.action,qt}function Ae(bt){var Wt=bt.responseText||bt.response;if(!Wt)return Wt;try{return JSON.parse(Wt)}catch(Ft){return Wt}}function Ne(bt){var Wt=new XMLHttpRequest;bt.onProgress&&Wt.upload&&(Wt.upload.onprogress=function($t){$t.total>0&&($t.percent=$t.loaded/$t.total*100),bt.onProgress($t)});var Ft=new FormData;bt.data&&Object.keys(bt.data).forEach(function(_t){var $t=bt.data[_t];if(Array.isArray($t)){$t.forEach(function(Ht){Ft.append("".concat(_t,"[]"),Ht)});return}Ft.append(_t,$t)}),bt.file instanceof Blob?Ft.append(bt.filename,bt.file,bt.file.name):Ft.append(bt.filename,bt.file),Wt.onerror=function($t){bt.onError($t)},Wt.onload=function(){return Wt.status<200||Wt.status>=300?bt.onError(xe(bt,Wt),Ae(Wt)):bt.onSuccess(Ae(Wt),Wt)},Wt.open(bt.method,bt.action,!0),bt.withCredentials&&"withCredentials"in Wt&&(Wt.withCredentials=!0);var qt=bt.headers||{};return qt["X-Requested-With"]!==null&&Wt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(qt).forEach(function(_t){qt[_t]!==null&&Wt.setRequestHeader(_t,qt[_t])}),Wt.send(Ft),{abort:function(){Wt.abort()}}}var Be=function(){var bt=(0,pe.Z)((0,ue.Z)().mark(function Wt(Ft,qt){var _t,$t,Ht,Xt,En,On,Rn,rr;return(0,ue.Z)().wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:On=function(){return On=(0,pe.Z)((0,ue.Z)().mark(function Un(Yn){return(0,ue.Z)().wrap(function(Sr){for(;;)switch(Sr.prev=Sr.next){case 0:return Sr.abrupt("return",new Promise(function(wr){Yn.file(function(Cr){qt(Cr)?(Yn.fullPath&&!Cr.webkitRelativePath&&(Object.defineProperties(Cr,{webkitRelativePath:{writable:!0}}),Cr.webkitRelativePath=Yn.fullPath.replace(/^\//,""),Object.defineProperties(Cr,{webkitRelativePath:{writable:!1}})),wr(Cr)):wr(null)})}));case 1:case"end":return Sr.stop()}},Un)})),On.apply(this,arguments)},En=function(Un){return On.apply(this,arguments)},Xt=function(){return Xt=(0,pe.Z)((0,ue.Z)().mark(function Un(Yn){var pr,Sr,wr,Cr,qn;return(0,ue.Z)().wrap(function(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:pr=Yn.createReader(),Sr=[];case 2:return Fn.next=5,new Promise(function(Nn){pr.readEntries(Nn,function(){return Nn([])})});case 5:if(wr=Fn.sent,Cr=wr.length,Cr){Fn.next=9;break}return Fn.abrupt("break",12);case 9:for(qn=0;qn<Cr;qn++)Sr.push(wr[qn]);Fn.next=2;break;case 12:return Fn.abrupt("return",Sr);case 13:case"end":return Fn.stop()}},Un)})),Xt.apply(this,arguments)},Ht=function(Un){return Xt.apply(this,arguments)},_t=[],$t=[],Ft.forEach(function(nr){return $t.push(nr.webkitGetAsEntry())}),Rn=function(){var nr=(0,pe.Z)((0,ue.Z)().mark(function Un(Yn,pr){var Sr,wr;return(0,ue.Z)().wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:if(Yn){qn.next=2;break}return qn.abrupt("return");case 2:if(Yn.path=pr||"",!Yn.isFile){qn.next=10;break}return qn.next=6,En(Yn);case 6:Sr=qn.sent,Sr&&_t.push(Sr),qn.next=15;break;case 10:if(!Yn.isDirectory){qn.next=15;break}return qn.next=13,Ht(Yn);case 13:wr=qn.sent,$t.push.apply($t,(0,Ot.Z)(wr));case 15:case"end":return qn.stop()}},Un)}));return function(Yn,pr){return nr.apply(this,arguments)}}(),rr=0;case 9:if(!(rr<$t.length)){mr.next=15;break}return mr.next=12,Rn($t[rr]);case 12:rr++,mr.next=9;break;case 15:return mr.abrupt("return",_t);case 16:case"end":return mr.stop()}},Wt)}));return function(Ft,qt){return bt.apply(this,arguments)}}(),De=Be,we=+new Date,Ce=0;function Oe(){return"rc-upload-".concat(we,"-").concat(++Ce)}var je=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Fe=function(bt){(0,ee.Z)(Ft,bt);var Wt=(0,de.Z)(Ft);function Ft(){var qt;(0,E.Z)(this,Ft);for(var _t=arguments.length,$t=new Array(_t),Ht=0;Ht<_t;Ht++)$t[Ht]=arguments[Ht];return qt=Wt.call.apply(Wt,[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 En=qt.props,On=En.accept,Rn=En.directory,rr=Xt.target.files,cr=(0,Ot.Z)(rr).filter(function(mr){return!Rn||me(mr,On)});qt.uploadFiles(cr),qt.reset()}),(0,x.Z)((0,oe.Z)(qt),"onClick",function(Xt){var En=qt.fileInput;if(En){var On=Xt.target,Rn=qt.props.onClick;if(On&&On.tagName==="BUTTON"){var rr=En.parentNode;rr.focus(),On.blur()}En.click(),Rn&&Rn(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 En(On){var Rn,rr,cr;return(0,ue.Z)().wrap(function(nr){for(;;)switch(nr.prev=nr.next){case 0:if(Rn=qt.props.multiple,On.preventDefault(),On.type!=="dragover"){nr.next=4;break}return nr.abrupt("return");case 4:if(!qt.props.directory){nr.next=11;break}return nr.next=7,De(Array.prototype.slice.call(On.dataTransfer.items),function(Un){return me(Un,qt.props.accept)});case 7:rr=nr.sent,qt.uploadFiles(rr),nr.next=14;break;case 11:cr=(0,Ot.Z)(On.dataTransfer.files).filter(function(Un){return me(Un,qt.props.accept)}),Rn===!1&&(cr=cr.slice(0,1)),qt.uploadFiles(cr);case 14:case"end":return nr.stop()}},En)}));return function(En){return Xt.apply(this,arguments)}}()),(0,x.Z)((0,oe.Z)(qt),"uploadFiles",function(Xt){var En=(0,Ot.Z)(Xt),On=En.map(function(Rn){return Rn.uid=Oe(),qt.processFile(Rn,En)});Promise.all(On).then(function(Rn){var rr=qt.props.onBatchStart;rr==null||rr(Rn.map(function(cr){var mr=cr.origin,nr=cr.parsedFile;return{file:mr,parsedFile:nr}})),Rn.filter(function(cr){return cr.parsedFile!==null}).forEach(function(cr){qt.post(cr)})})}),(0,x.Z)((0,oe.Z)(qt),"processFile",function(){var Xt=(0,pe.Z)((0,ue.Z)().mark(function En(On,Rn){var rr,cr,mr,nr,Un,Yn,pr,Sr,wr;return(0,ue.Z)().wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:if(rr=qt.props.beforeUpload,cr=On,!rr){qn.next=14;break}return qn.prev=3,qn.next=6,rr(On,Rn);case 6:cr=qn.sent,qn.next=12;break;case 9:qn.prev=9,qn.t0=qn.catch(3),cr=!1;case 12:if(cr!==!1){qn.next=14;break}return qn.abrupt("return",{origin:On,parsedFile:null,action:null,data:null});case 14:if(mr=qt.props.action,typeof mr!="function"){qn.next=21;break}return qn.next=18,mr(On);case 18:nr=qn.sent,qn.next=22;break;case 21:nr=mr;case 22:if(Un=qt.props.data,typeof Un!="function"){qn.next=29;break}return qn.next=26,Un(On);case 26:Yn=qn.sent,qn.next=30;break;case 29:Yn=Un;case 30:return pr=((0,se.Z)(cr)==="object"||typeof cr=="string")&&cr?cr:On,pr instanceof File?Sr=pr:Sr=new File([pr],On.name,{type:On.type}),wr=Sr,wr.uid=On.uid,qn.abrupt("return",{origin:On,data:Yn,parsedFile:wr,action:nr});case 35:case"end":return qn.stop()}},En,null,[[3,9]])}));return function(En,On){return Xt.apply(this,arguments)}}()),(0,x.Z)((0,oe.Z)(qt),"saveFileInput",function(Xt){qt.fileInput=Xt}),qt}return(0,re.Z)(Ft,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(_t){var $t=this,Ht=_t.data,Xt=_t.origin,En=_t.action,On=_t.parsedFile;if(this._isMounted){var Rn=this.props,rr=Rn.onStart,cr=Rn.customRequest,mr=Rn.name,nr=Rn.headers,Un=Rn.withCredentials,Yn=Rn.method,pr=Xt.uid,Sr=cr||Ne,wr={action:En,filename:mr,data:Ht,file:On,headers:nr,withCredentials:Un,method:Yn||"post",onProgress:function(qn){var kn=$t.props.onProgress;kn==null||kn(qn,On)},onSuccess:function(qn,kn){var Fn=$t.props.onSuccess;Fn==null||Fn(qn,On,kn),delete $t.reqs[pr]},onError:function(qn,kn){var Fn=$t.props.onError;Fn==null||Fn(qn,kn,On),delete $t.reqs[pr]}};rr(Xt),this.reqs[pr]=Sr(wr)}}},{key:"reset",value:function(){this.setState({uid:Oe()})}},{key:"abort",value:function(_t){var $t=this.reqs;if(_t){var Ht=_t.uid?_t.uid:_t;$t[Ht]&&$t[Ht].abort&&$t[Ht].abort(),delete $t[Ht]}else Object.keys($t).forEach(function(Xt){$t[Xt]&&$t[Xt].abort&&$t[Xt].abort(),delete $t[Xt]})}},{key:"render",value:function(){var _t=this.props,$t=_t.component,Ht=_t.prefixCls,Xt=_t.className,En=_t.classNames,On=En===void 0?{}:En,Rn=_t.disabled,rr=_t.id,cr=_t.name,mr=_t.style,nr=_t.styles,Un=nr===void 0?{}:nr,Yn=_t.multiple,pr=_t.accept,Sr=_t.capture,wr=_t.children,Cr=_t.directory,qn=_t.openFileDialogOnClick,kn=_t.onMouseEnter,Fn=_t.onMouseLeave,Nn=_t.hasControlInside,ir=(0,ie.Z)(_t,je),br=ye()((0,x.Z)((0,x.Z)((0,x.Z)({},Ht,!0),"".concat(Ht,"-disabled"),Rn),Xt,Xt)),Pr=Cr?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Kr=Rn?{}:{onClick:qn?this.onClick:function(){},onKeyDown:qn?this.onKeyDown:function(){},onMouseEnter:kn,onMouseLeave:Fn,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Nn?void 0:"0"};return te.createElement($t,(0,z.Z)({},Kr,{className:br,role:Nn?void 0:"button",style:mr}),te.createElement("input",(0,z.Z)({},(0,he.Z)(ir,{aria:!0,data:!0}),{id:rr,name:cr,disabled:Rn,type:"file",ref:this.saveFileInput,onClick:function(Wr){return Wr.stopPropagation()},key:this.state.uid,style:(0,ae.Z)({display:"none"},Un.input),className:On.input,accept:pr},Pr,{multiple:Yn,onChange:this.onChange},Sr!=null?{capture:Sr}:{})),wr)}}]),Ft}(te.Component),ke=Fe;function Ee(){}var Ge=function(bt){(0,ee.Z)(Ft,bt);var Wt=(0,de.Z)(Ft);function Ft(){var qt;(0,E.Z)(this,Ft);for(var _t=arguments.length,$t=new Array(_t),Ht=0;Ht<_t;Ht++)$t[Ht]=arguments[Ht];return qt=Wt.call.apply(Wt,[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,re.Z)(Ft,[{key:"abort",value:function(_t){this.uploader.abort(_t)}},{key:"render",value:function(){return te.createElement(ke,(0,z.Z)({},this.props,{ref:this.saveUploader}))}}]),Ft}(te.Component);(0,x.Z)(Ge,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ee,onError:Ee,onSuccess:Ee,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Ke=Ge,Ve=Ke,it=Te(18929),Le=Te(48755),Ue=Te(2171),tt=Te(9017),nt=Te(85981),et=Te(63356),Ze=Te(34961),Ye=Te(16931),Xe=Te(51636),st=Te(36237),ht=bt=>{const{componentCls:Wt,iconCls:Ft}=bt;return{[`${Wt}-wrapper`]:{[`${Wt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:bt.colorFillAlter,border:`${(0,st.unit)(bt.lineWidth)} dashed ${bt.colorBorder}`,borderRadius:bt.borderRadiusLG,cursor:"pointer",transition:`border-color ${bt.motionDurationSlow}`,[Wt]:{padding:bt.padding},[`${Wt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:bt.borderRadiusLG,"&:focus-visible":{outline:`${(0,st.unit)(bt.lineWidthFocus)} solid ${bt.colorPrimaryBorder}`}},[`${Wt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
&:not(${Wt}-disabled):hover,
&-hover:not(${Wt}-disabled)
`]:{borderColor:bt.colorPrimaryHover},[`p${Wt}-drag-icon`]:{marginBottom:bt.margin,[Ft]:{color:bt.colorPrimary,fontSize:bt.uploadThumbnailSize}},[`p${Wt}-text`]:{margin:`0 0 ${(0,st.unit)(bt.marginXXS)}`,color:bt.colorTextHeading,fontSize:bt.fontSizeLG},[`p${Wt}-hint`]:{color:bt.colorTextDescription,fontSize:bt.fontSize},[`&${Wt}-disabled`]:{[`p${Wt}-drag-icon ${Ft},
p${Wt}-text,
p${Wt}-hint
`]:{color:bt.colorTextDisabled}}}}}},qe=bt=>{const{componentCls:Wt,iconCls:Ft,fontSize:qt,lineHeight:_t,calc:$t}=bt,Ht=`${Wt}-list-item`,Xt=`${Ht}-actions`,En=`${Ht}-action`;return{[`${Wt}-wrapper`]:{[`${Wt}-list`]:Object.assign(Object.assign({},(0,et.dF)()),{lineHeight:bt.lineHeight,[Ht]:{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},[`${Ht}-name`]:Object.assign(Object.assign({},et.vS),{padding:`0 ${(0,st.unit)(bt.paddingXS)}`,lineHeight:_t,flex:"auto",transition:`all ${bt.motionDurationSlow}`}),[Xt]:{whiteSpace:"nowrap",[En]:{opacity:0},[Ft]:{color:bt.actionsColor,transition:`all ${bt.motionDurationSlow}`},[`
${En}:focus-visible,
&.picture ${En}
`]:{opacity:1}},[`${Wt}-icon ${Ft}`]:{color:bt.colorTextDescription,fontSize:qt},[`${Ht}-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}}},[`${Ht}:hover ${En}`]:{opacity:1},[`${Ht}-error`]:{color:bt.colorError,[`${Ht}-name, ${Wt}-icon ${Ft}`]:{color:bt.colorError},[Xt]:{[`${Ft}, ${Ft}:hover`]:{color:bt.colorError},[En]:{opacity:1}}},[`${Wt}-list-item-container`]:{transition:`opacity ${bt.motionDurationSlow}, height ${bt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},_e=Te(99495),ne=bt=>{const{componentCls:Wt}=bt,Ft=new st.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:bt.calc(bt.marginXS).div(-2).equal()}}),qt=new st.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:bt.calc(bt.marginXS).div(-2).equal()}}),_t=`${Wt}-animate-inline`;return[{[`${Wt}-wrapper`]:{[`${_t}-appear, ${_t}-enter, ${_t}-leave`]:{animationDuration:bt.motionDurationSlow,animationTimingFunction:bt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${_t}-appear, ${_t}-enter`]:{animationName:Ft},[`${_t}-leave`]:{animationName:qt}}},{[`${Wt}-wrapper`]:(0,_e.J$)(bt)},Ft,qt]},fe=Te(68361);const Me=bt=>{const{componentCls:Wt,iconCls:Ft,uploadThumbnailSize:qt,uploadProgressOffset:_t,calc:$t}=bt,Ht=`${Wt}-list`,Xt=`${Ht}-item`;return{[`${Wt}-wrapper`]:{[`
${Ht}${Ht}-picture,
${Ht}${Ht}-picture-card,
${Ht}${Ht}-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,st.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,st.unit)($t(qt).add(bt.paddingSM).equal()),textAlign:"center",flex:"none",[Ft]:{fontSize:bt.fontSizeHeading2,color:bt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Xt}-progress`]:{bottom:_t,width:`calc(100% - ${(0,st.unit)($t(bt.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:$t(qt).add(bt.paddingXS).equal()}},[`${Xt}-error`]:{borderColor:bt.colorError,[`${Xt}-thumbnail ${Ft}`]:{[`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:_t}}},[`${Ht}${Ht}-picture-circle ${Xt}`]:{[`&, &::before, ${Xt}-thumbnail`]:{borderRadius:"50%"}}}}},He=bt=>{const{componentCls:Wt,iconCls:Ft,fontSizeLG:qt,colorTextLightSolid:_t,calc:$t}=bt,Ht=`${Wt}-list`,Xt=`${Ht}-item`,En=bt.uploadPicCardSize;return{[`
${Wt}-wrapper${Wt}-picture-card-wrapper,
${Wt}-wrapper${Wt}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,et.dF)()),{display:"block",[`${Wt}${Wt}-select`]:{width:En,height:En,textAlign:"center",verticalAlign:"top",backgroundColor:bt.colorFillAlter,border:`${(0,st.unit)(bt.lineWidth)} dashed ${bt.colorBorder}`,borderRadius:bt.borderRadiusLG,cursor:"pointer",transition:`border-color ${bt.motionDurationSlow}`,[`> ${Wt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Wt}-disabled):hover`]:{borderColor:bt.colorPrimary}},[`${Ht}${Ht}-picture-card, ${Ht}${Ht}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:bt.marginXS,marginInlineEnd:bt.marginXS}},"@supports (gap: 1px)":{gap:bt.marginXS},[`${Ht}-item-container`]:{display:"inline-block",width:En,height:En,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[Xt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,st.unit)($t(bt.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,st.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}`,[`
${Ft}-eye,
${Ft}-download,
${Ft}-delete
`]:{zIndex:10,width:qt,margin:`0 ${(0,st.unit)(bt.marginXXS)}`,fontSize:qt,cursor:"pointer",transition:`all ${bt.motionDurationSlow}`,color:_t,"&:hover":{color:_t},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,st.unit)($t(bt.paddingXS).mul(2).equal())})`},[`${Xt}-uploading`]:{[`&${Xt}`]:{backgroundColor:bt.colorFillAlter},[`&::before, ${Ft}-eye, ${Ft}-download, ${Ft}-delete`]:{display:"none"}},[`${Xt}-progress`]:{bottom:bt.marginXL,width:`calc(100% - ${(0,st.unit)($t(bt.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${Wt}-wrapper${Wt}-picture-circle-wrapper`]:{[`${Wt}${Wt}-select`]:{borderRadius:"50%"}}}};var ve=bt=>{const{componentCls:Wt}=bt;return{[`${Wt}-rtl`]:{direction:"rtl"}}};const Ie=bt=>{const{componentCls:Wt,colorTextDisabled:Ft}=bt;return{[`${Wt}-wrapper`]:Object.assign(Object.assign({},(0,et.Wf)(bt)),{[Wt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Wt}-select`]:{display:"inline-block"},[`${Wt}-hidden`]:{display:"none"},[`${Wt}-disabled`]:{color:Ft,cursor:"not-allowed"}})}},$e=bt=>({actionsColor:bt.colorTextDescription});var We=(0,Ye.I$)("Upload",bt=>{const{fontSizeHeading3:Wt,fontHeight:Ft,lineWidth:qt,controlHeightLG:_t,calc:$t}=bt,Ht=(0,Xe.mergeToken)(bt,{uploadThumbnailSize:$t(Wt).mul(2).equal(),uploadProgressOffset:$t($t(Ft).div(2)).add(qt).equal(),uploadPicCardSize:$t(_t).mul(2.55).equal()});return[Ie(Ht),ht(Ht),Me(Ht),He(Ht),qe(Ht),ne(Ht),ve(Ht),(0,Ze.Z)(Ht)]},$e),Je={icon:function(Wt,Ft){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Ft}},{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:Wt}}]}},name:"file",theme:"twotone"},ct=Je,ot=Te(7657),ft=function(Wt,Ft){return te.createElement(ot.Z,(0,z.Z)({},Wt,{ref:Ft,icon:ct}))},ut=te.forwardRef(ft),lt=ut,At=Te(58617),yt={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"},Rt=yt,Pt=function(Wt,Ft){return te.createElement(ot.Z,(0,z.Z)({},Wt,{ref:Ft,icon:Rt}))},Tt=te.forwardRef(Pt),kt=Tt,Dt={icon:function(Wt,Ft){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:Wt}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Ft}},{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:Ft}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Ft}},{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:Wt}}]}},name:"picture",theme:"twotone"},gt=Dt,It=function(Wt,Ft){return te.createElement(ot.Z,(0,z.Z)({},Wt,{ref:Ft,icon:gt}))},Vt=te.forwardRef(It),rn=Vt,wt=Te(77900),Ct=Te(2738),Zt=Te(40192),en=Te(86641),ln=Te(22703),yn=Te(7939);function Bn(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 Wn(bt,Wt){const Ft=(0,Ot.Z)(Wt),qt=Ft.findIndex(_t=>{let{uid:$t}=_t;return $t===bt.uid});return qt===-1?Ft.push(bt):Ft[qt]=bt,Ft}function gn(bt,Wt){const Ft=bt.uid!==void 0?"uid":"name";return Wt.filter(qt=>qt[Ft]===bt[Ft])[0]}function Ln(bt,Wt){const Ft=bt.uid!==void 0?"uid":"name",qt=Wt.filter(_t=>_t[Ft]!==bt[Ft]);return qt.length===Wt.length?null:qt}const pn=function(){const Wt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),qt=Wt[Wt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(qt)||[""])[0]},In=bt=>bt.indexOf("image/")===0,Gt=bt=>{if(bt.type&&!bt.thumbUrl)return In(bt.type);const Wt=bt.thumbUrl||bt.url||"",Ft=pn(Wt);return/^data:image\//.test(Wt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Ft)?!0:!(/^data:/.test(Wt)||Ft)},Ut=200;function Lt(bt){return new Promise(Wt=>{if(!bt.type||!In(bt.type)){Wt("");return}const Ft=document.createElement("canvas");Ft.width=Ut,Ft.height=Ut,Ft.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ut}px; height: ${Ut}px; z-index: 9999; display: none;`,document.body.appendChild(Ft);const qt=Ft.getContext("2d"),_t=new Image;if(_t.onload=()=>{const{width:$t,height:Ht}=_t;let Xt=Ut,En=Ut,On=0,Rn=0;$t>Ht?(En=Ht*(Ut/$t),Rn=-(En-Xt)/2):(Xt=$t*(Ut/Ht),On=-(Xt-En)/2),qt.drawImage(_t,On,Rn,Xt,En);const rr=Ft.toDataURL();document.body.removeChild(Ft),window.URL.revokeObjectURL(_t.src),Wt(rr)},_t.crossOrigin="anonymous",bt.type.startsWith("image/svg+xml")){const $t=new FileReader;$t.onload=()=>{$t.result&&typeof $t.result=="string"&&(_t.src=$t.result)},$t.readAsDataURL(bt)}else if(bt.type.startsWith("image/gif")){const $t=new FileReader;$t.onload=()=>{$t.result&&Wt($t.result)},$t.readAsDataURL(bt)}else _t.src=window.URL.createObjectURL(bt)})}var sn=Te(26227),un=Te(41464),Cn=Te(15277),Tn=Te(89787),jn=Te(25399),Mn=te.forwardRef((bt,Wt)=>{let{prefixCls:Ft,className:qt,style:_t,locale:$t,listType:Ht,file:Xt,items:En,progress:On,iconRender:Rn,actionIconRender:rr,itemRender:cr,isImgUrl:mr,showPreviewIcon:nr,showRemoveIcon:Un,showDownloadIcon:Yn,previewIcon:pr,removeIcon:Sr,downloadIcon:wr,extra:Cr,onPreview:qn,onDownload:kn,onClose:Fn}=bt;var Nn,ir;const{status:br}=Xt,[Pr,Kr]=te.useState(br);te.useEffect(()=>{br!=="removed"&&Kr(br)},[br]);const[Nr,Wr]=te.useState(!1);te.useEffect(()=>{const zn=setTimeout(()=>{Wr(!0)},300);return()=>{clearTimeout(zn)}},[]);const Ir=Rn(Xt);let ni=te.createElement("div",{className:`${Ft}-icon`},Ir);if(Ht==="picture"||Ht==="picture-card"||Ht==="picture-circle")if(Pr==="uploading"||!Xt.thumbUrl&&!Xt.url){const zn=ye()(`${Ft}-list-item-thumbnail`,{[`${Ft}-list-item-file`]:Pr!=="uploading"});ni=te.createElement("div",{className:zn},Ir)}else{const zn=mr!=null&&mr(Xt)?te.createElement("img",{src:Xt.thumbUrl||Xt.url,alt:Xt.name,className:`${Ft}-list-item-image`,crossOrigin:Xt.crossOrigin}):Ir,er=ye()(`${Ft}-list-item-thumbnail`,{[`${Ft}-list-item-file`]:mr&&!mr(Xt)});ni=te.createElement("a",{className:er,onClick:sr=>qn(Xt,sr),href:Xt.url||Xt.thumbUrl,target:"_blank",rel:"noopener noreferrer"},zn)}const ti=ye()(`${Ft}-list-item`,`${Ft}-list-item-${Pr}`),oi=typeof Xt.linkProps=="string"?JSON.parse(Xt.linkProps):Xt.linkProps,fi=(typeof Un=="function"?Un(Xt):Un)?rr((typeof Sr=="function"?Sr(Xt):Sr)||te.createElement(sn.Z,null),()=>Fn(Xt),Ft,$t.removeFile,!0):null,xi=(typeof Yn=="function"?Yn(Xt):Yn)&&Pr==="done"?rr((typeof wr=="function"?wr(Xt):wr)||te.createElement(un.Z,null),()=>kn(Xt),Ft,$t.downloadFile):null,hi=Ht!=="picture-card"&&Ht!=="picture-circle"&&te.createElement("span",{key:"download-delete",className:ye()(`${Ft}-list-item-actions`,{picture:Ht==="picture"})},xi,fi),ei=typeof Cr=="function"?Cr(Xt):Cr,Ar=ei&&te.createElement("span",{className:`${Ft}-list-item-extra`},ei),Dr=ye()(`${Ft}-list-item-name`),ar=Xt.url?te.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Dr,title:Xt.name},oi,{href:Xt.url,onClick:zn=>qn(Xt,zn)}),Xt.name,Ar):te.createElement("span",{key:"view",className:Dr,onClick:zn=>qn(Xt,zn),title:Xt.name},Xt.name,Ar),Pn=(typeof nr=="function"?nr(Xt):nr)&&(Xt.url||Xt.thumbUrl)?te.createElement("a",{href:Xt.url||Xt.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:zn=>qn(Xt,zn),title:$t.previewFile},typeof pr=="function"?pr(Xt):pr||te.createElement(Cn.Z,null)):null,Kn=(Ht==="picture-card"||Ht==="picture-circle")&&Pr!=="uploading"&&te.createElement("span",{className:`${Ft}-list-item-actions`},Pn,Pr==="done"&&xi,fi),{getPrefixCls:Xn}=te.useContext(Le.E_),$n=Xn(),hr=te.createElement("div",{className:ti},ni,ar,hi,Kn,Nr&&te.createElement(wt.default,{motionName:`${$n}-fade`,visible:Pr==="uploading",motionDeadline:2e3},zn=>{let{className:er}=zn;const sr="percent"in Xt?te.createElement(Tn.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:ye()(`${Ft}-list-item-progress`,er)},sr)})),Tr=Xt.response&&typeof Xt.response=="string"?Xt.response:((Nn=Xt.error)===null||Nn===void 0?void 0:Nn.statusText)||((ir=Xt.error)===null||ir===void 0?void 0:ir.message)||$t.uploadError,Vn=Pr==="error"?te.createElement(jn.Z,{title:Tr,getPopupContainer:zn=>zn.parentNode},hr):hr;return te.createElement("div",{className:ye()(`${Ft}-list-item-container`,qt),style:_t,ref:Wt},cr?cr(Vn,Xt,En,{download:kn.bind(null,Xt),preview:qn.bind(null,Xt),remove:Fn.bind(null,Xt)}):Vn)});const _n=(bt,Wt)=>{const{listType:Ft="text",previewFile:qt=Lt,onPreview:_t,onDownload:$t,onRemove:Ht,locale:Xt,iconRender:En,isImageUrl:On=Gt,prefixCls:Rn,items:rr=[],showPreviewIcon:cr=!0,showRemoveIcon:mr=!0,showDownloadIcon:nr=!1,removeIcon:Un,previewIcon:Yn,downloadIcon:pr,extra:Sr,progress:wr={size:[-1,2],showInfo:!1},appendAction:Cr,appendActionVisible:qn=!0,itemRender:kn,disabled:Fn}=bt,Nn=(0,Zt.Z)(),[ir,br]=te.useState(!1),Pr=["picture-card","picture-circle"].includes(Ft);te.useEffect(()=>{Ft.startsWith("picture")&&(rr||[]).forEach(Ar=>{!(Ar.originFileObj instanceof File||Ar.originFileObj instanceof Blob)||Ar.thumbUrl!==void 0||(Ar.thumbUrl="",qt==null||qt(Ar.originFileObj).then(Dr=>{Ar.thumbUrl=Dr||"",Nn()}))})},[Ft,rr,qt]),te.useEffect(()=>{br(!0)},[]);const Kr=(Ar,Dr)=>{if(_t)return Dr==null||Dr.preventDefault(),_t(Ar)},Nr=Ar=>{typeof $t=="function"?$t(Ar):Ar.url&&window.open(Ar.url)},Wr=Ar=>{Ht==null||Ht(Ar)},Ir=Ar=>{if(En)return En(Ar,Ft);const Dr=Ar.status==="uploading";if(Ft.startsWith("picture")){const ar=Ft==="picture"?te.createElement(At.Z,null):Xt.uploading,Pn=On!=null&&On(Ar)?te.createElement(rn,null):te.createElement(lt,null);return Dr?ar:Pn}return Dr?te.createElement(At.Z,null):te.createElement(kt,null)},ni=(Ar,Dr,ar,Pn,Kn)=>{const Xn={type:"text",size:"small",title:Pn,onClick:$n=>{var hr,Tr;Dr(),te.isValidElement(Ar)&&((Tr=(hr=Ar.props).onClick)===null||Tr===void 0||Tr.call(hr,$n))},className:`${ar}-list-item-action`};return Kn&&(Xn.disabled=Fn),te.isValidElement(Ar)?te.createElement(yn.ZP,Object.assign({},Xn,{icon:(0,ln.Tm)(Ar,Object.assign(Object.assign({},Ar.props),{onClick:()=>{}}))})):te.createElement(yn.ZP,Object.assign({},Xn),te.createElement("span",null,Ar))};te.useImperativeHandle(Wt,()=>({handlePreview:Kr,handleDownload:Nr}));const{getPrefixCls:ti}=te.useContext(Le.E_),oi=ti("upload",Rn),fi=ti(),xi=ye()(`${oi}-list`,`${oi}-list-${Ft}`),hi=te.useMemo(()=>(0,Ct.Z)((0,en.Z)(fi),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[fi]),ei=Object.assign(Object.assign({},Pr?{}:hi),{motionDeadline:2e3,motionName:`${oi}-${Pr?"animate-inline":"animate"}`,keys:(0,Ot.Z)(rr.map(Ar=>({key:Ar.uid,file:Ar}))),motionAppear:ir});return te.createElement("div",{className:xi},te.createElement(wt.CSSMotionList,Object.assign({},ei,{component:!1}),Ar=>{let{key:Dr,file:ar,className:Pn,style:Kn}=Ar;return te.createElement(Mn,{key:Dr,locale:Xt,prefixCls:oi,className:Pn,style:Kn,file:ar,items:rr,progress:wr,listType:Ft,isImgUrl:On,showPreviewIcon:cr,showRemoveIcon:mr,showDownloadIcon:nr,removeIcon:Un,previewIcon:Yn,downloadIcon:pr,extra:Sr,iconRender:Ir,actionIconRender:ni,itemRender:kn,onPreview:Kr,onDownload:Nr,onClose:Wr})}),Cr&&te.createElement(wt.default,Object.assign({},ei,{visible:qn,forceRender:!0}),Ar=>{let{className:Dr,style:ar}=Ar;return(0,ln.Tm)(Cr,Pn=>({className:ye()(Pn.className,Dr),style:Object.assign(Object.assign(Object.assign({},ar),{pointerEvents:Dr?"none":void 0}),Pn.style)}))}))};var tr=te.forwardRef(_n),cn=function(bt,Wt,Ft,qt){function _t($t){return $t instanceof Ft?$t:new Ft(function(Ht){Ht($t)})}return new(Ft||(Ft=Promise))(function($t,Ht){function Xt(Rn){try{On(qt.next(Rn))}catch(rr){Ht(rr)}}function En(Rn){try{On(qt.throw(Rn))}catch(rr){Ht(rr)}}function On(Rn){Rn.done?$t(Rn.value):_t(Rn.value).then(Xt,En)}On((qt=qt.apply(bt,Wt||[])).next())})};const tn=`__LIST_IGNORE_${Date.now()}__`,Hn=(bt,Wt)=>{const{fileList:Ft,defaultFileList:qt,onRemove:_t,showUploadList:$t=!0,listType:Ht="text",onPreview:Xt,onDownload:En,onChange:On,onDrop:Rn,previewFile:rr,disabled:cr,locale:mr,iconRender:nr,isImageUrl:Un,progress:Yn,prefixCls:pr,className:Sr,type:wr="select",children:Cr,style:qn,itemRender:kn,maxCount:Fn,data:Nn={},multiple:ir=!1,hasControlInside:br=!0,action:Pr="",accept:Kr="",supportServerRender:Nr=!0,rootClassName:Wr}=bt,Ir=te.useContext(Ue.Z),ni=cr!=null?cr:Ir,[ti,oi]=(0,it.Z)(qt||[],{value:Ft,postState:ui=>ui!=null?ui:[]}),[fi,xi]=te.useState("drop"),hi=te.useRef(null),ei=te.useRef(null);te.useMemo(()=>{const ui=Date.now();(Ft||[]).forEach((Zi,Yi)=>{!Zi.uid&&!Object.isFrozen(Zi)&&(Zi.uid=`__AUTO__${ui}_${Yi}__`)})},[Ft]);const Ar=(ui,Zi,Yi)=>{let bi=(0,Ot.Z)(Zi),_i=!1;Fn===1?bi=bi.slice(-1):Fn&&(_i=bi.length>Fn,bi=bi.slice(0,Fn)),(0,y.flushSync)(()=>{oi(bi)});const Di={file:ui,fileList:bi};Yi&&(Di.event=Yi),(!_i||ui.status==="removed"||bi.some(_o=>_o.uid===ui.uid))&&(0,y.flushSync)(()=>{On==null||On(Di)})},Dr=(ui,Zi)=>cn(void 0,void 0,void 0,function*(){const{beforeUpload:Yi,transformFile:bi}=bt;let _i=ui;if(Yi){const Di=yield Yi(ui,Zi);if(Di===!1)return!1;if(delete ui[tn],Di===tn)return Object.defineProperty(ui,tn,{value:!0,configurable:!0}),!1;typeof Di=="object"&&Di&&(_i=Di)}return bi&&(_i=yield bi(_i)),_i}),ar=ui=>{const Zi=ui.filter(_i=>!_i.file[tn]);if(!Zi.length)return;const Yi=Zi.map(_i=>Bn(_i.file));let bi=(0,Ot.Z)(ti);Yi.forEach(_i=>{bi=Wn(_i,bi)}),Yi.forEach((_i,Di)=>{let _o=_i;if(Zi[Di].parsedFile)_i.status="uploading";else{const{originFileObj:pa}=_i;let Zo;try{Zo=new File([pa],pa.name,{type:pa.type})}catch(Po){Zo=new Blob([pa],{type:pa.type}),Zo.name=pa.name,Zo.lastModifiedDate=new Date,Zo.lastModified=new Date().getTime()}Zo.uid=_i.uid,_o=Zo}Ar(_o,bi)})},Pn=(ui,Zi,Yi)=>{try{typeof ui=="string"&&(ui=JSON.parse(ui))}catch(Di){}if(!gn(Zi,ti))return;const bi=Bn(Zi);bi.status="done",bi.percent=100,bi.response=ui,bi.xhr=Yi;const _i=Wn(bi,ti);Ar(bi,_i)},Kn=(ui,Zi)=>{if(!gn(Zi,ti))return;const Yi=Bn(Zi);Yi.status="uploading",Yi.percent=ui.percent;const bi=Wn(Yi,ti);Ar(Yi,bi,ui)},Xn=(ui,Zi,Yi)=>{if(!gn(Yi,ti))return;const bi=Bn(Yi);bi.error=ui,bi.response=Zi,bi.status="error";const _i=Wn(bi,ti);Ar(bi,_i)},$n=ui=>{let Zi;Promise.resolve(typeof _t=="function"?_t(ui):_t).then(Yi=>{var bi;if(Yi===!1)return;const _i=Ln(ui,ti);_i&&(Zi=Object.assign(Object.assign({},ui),{status:"removed"}),ti==null||ti.forEach(Di=>{const _o=Zi.uid!==void 0?"uid":"name";Di[_o]===Zi[_o]&&!Object.isFrozen(Di)&&(Di.status="removed")}),(bi=hi.current)===null||bi===void 0||bi.abort(Zi),Ar(Zi,_i))})},hr=ui=>{xi(ui.type),ui.type==="drop"&&(Rn==null||Rn(ui))};te.useImperativeHandle(Wt,()=>({onBatchStart:ar,onSuccess:Pn,onProgress:Kn,onError:Xn,fileList:ti,upload:hi.current,nativeElement:ei.current}));const{getPrefixCls:Tr,direction:Vn,upload:zn}=te.useContext(Le.E_),er=Tr("upload",pr),sr=Object.assign(Object.assign({onBatchStart:ar,onError:Xn,onProgress:Kn,onSuccess:Pn},bt),{data:Nn,multiple:ir,action:Pr,accept:Kr,supportServerRender:Nr,prefixCls:er,disabled:ni,beforeUpload:Dr,onChange:void 0,hasControlInside:br});delete sr.className,delete sr.style,(!Cr||ni)&&delete sr.id;const qr=`${er}-wrapper`,[Ti,gi,ki]=We(er,qr),[Oi]=(0,tt.Z)("Upload",nt.Z.Upload),{showRemoveIcon:Ii,showPreviewIcon:Fi,showDownloadIcon:Ri,removeIcon:Ni,previewIcon:so,downloadIcon:xo,extra:Ao}=typeof $t=="boolean"?{}:$t,jo=typeof Ii=="undefined"?!ni:Ii,wo=(ui,Zi)=>$t?te.createElement(tr,{prefixCls:er,listType:Ht,items:ti,previewFile:rr,onPreview:Xt,onDownload:En,onRemove:$n,showRemoveIcon:jo,showPreviewIcon:Fi,showDownloadIcon:Ri,removeIcon:Ni,previewIcon:so,downloadIcon:xo,iconRender:nr,extra:Ao,locale:Object.assign(Object.assign({},Oi),mr),isImageUrl:Un,progress:Yn,appendAction:ui,appendActionVisible:Zi,itemRender:kn,disabled:ni}):ui,ri=ye()(qr,Sr,Wr,gi,ki,zn==null?void 0:zn.className,{[`${er}-rtl`]:Vn==="rtl",[`${er}-picture-card-wrapper`]:Ht==="picture-card",[`${er}-picture-circle-wrapper`]:Ht==="picture-circle"}),Gr=Object.assign(Object.assign({},zn==null?void 0:zn.style),qn);if(wr==="drag"){const ui=ye()(gi,er,`${er}-drag`,{[`${er}-drag-uploading`]:ti.some(Zi=>Zi.status==="uploading"),[`${er}-drag-hover`]:fi==="dragover",[`${er}-disabled`]:ni,[`${er}-rtl`]:Vn==="rtl"});return Ti(te.createElement("span",{className:ri,ref:ei},te.createElement("div",{className:ui,style:Gr,onDrop:hr,onDragOver:hr,onDragLeave:hr},te.createElement(Ve,Object.assign({},sr,{ref:hi,className:`${er}-btn`}),te.createElement("div",{className:`${er}-drag-container`},Cr))),wo()))}const Qi=ye()(er,`${er}-select`,{[`${er}-disabled`]:ni,[`${er}-hidden`]:!Cr}),qi=te.createElement("div",{className:Qi},te.createElement(Ve,Object.assign({},sr,{ref:hi})));return Ti(Ht==="picture-card"||Ht==="picture-circle"?te.createElement("span",{className:ri,ref:ei},wo(qi,!!Cr)):te.createElement("span",{className:ri,ref:ei},qi,wo()))};var Mt=te.forwardRef(Hn),Kt=function(bt,Wt){var Ft={};for(var qt in bt)Object.prototype.hasOwnProperty.call(bt,qt)&&Wt.indexOf(qt)<0&&(Ft[qt]=bt[qt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,qt=Object.getOwnPropertySymbols(bt);_t<qt.length;_t++)Wt.indexOf(qt[_t])<0&&Object.prototype.propertyIsEnumerable.call(bt,qt[_t])&&(Ft[qt[_t]]=bt[qt[_t]]);return Ft},Nt=te.forwardRef((bt,Wt)=>{var{style:Ft,height:qt,hasControlInside:_t=!1}=bt,$t=Kt(bt,["style","height","hasControlInside"]);return te.createElement(Mt,Object.assign({ref:Wt,hasControlInside:_t},$t,{type:"drag",style:Object.assign(Object.assign({},Ft),{height:qt})}))});const Et=Mt;Et.Dragger=Nt,Et.LIST_IGNORE=tn;var zt=Et},99498:function(wn,Yt,Te){(function(te){te(Te(89780))})(function(te){te.defineOption("placeholder","",function(re,oe,ee){var de=ee&&ee!=te.Init;if(oe&&!de)re.on("blur",ye),re.on("change",z),re.on("swapDoc",z),te.on(re.getInputField(),"compositionupdate",re.state.placeholderCompose=function(){Pe(re)}),z(re);else if(!oe&&de){re.off("blur",ye),re.off("change",z),re.off("swapDoc",z),te.off(re.getInputField(),"compositionupdate",re.state.placeholderCompose),Ot(re);var x=re.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}oe&&!re.hasFocus()&&ye(re)});function Ot(re){re.state.placeholder&&(re.state.placeholder.parentNode.removeChild(re.state.placeholder),re.state.placeholder=null)}function y(re){Ot(re);var oe=re.state.placeholder=document.createElement("pre");oe.style.cssText="height: 0; overflow: visible",oe.style.direction=re.getOption("direction"),oe.className="CodeMirror-placeholder CodeMirror-line-like";var ee=re.getOption("placeholder");typeof ee=="string"&&(ee=document.createTextNode(ee)),oe.appendChild(ee),re.display.lineSpace.insertBefore(oe,re.display.lineSpace.firstChild)}function Pe(re){setTimeout(function(){var oe=!1,ee=re.getInputField();ee.nodeName=="TEXTAREA"?oe=!ee.value:re.lineCount()==1&&(oe=!/[^\u200b]/.test(ee.querySelector(".CodeMirror-line").textContent)),oe?y(re):Ot(re)},20)}function ye(re){E(re)&&y(re)}function z(re){var oe=re.getWrapperElement(),ee=E(re);oe.className=oe.className.replace(" CodeMirror-empty","")+(ee?" CodeMirror-empty":""),ee?y(re):Ot(re)}function E(re){return re.lineCount()===1&&re.getLine(0)===""}})},25717:function(wn,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(ye),se.state.closeBrackets=null),ue&&(z(Pe(ue,"pairs")),se.state.closeBrackets=ue,se.addKeyMap(ye))});function Pe(se,ue){return ue=="pairs"&&typeof se=="string"?se:typeof se=="object"&&se[ue]!=null?se[ue]:Ot[ue]}var ye={Backspace:oe,Enter:ee};function z(se){for(var ue=0;ue<se.length;ue++){var pe=se.charAt(ue),he="'"+pe+"'";ye[he]||(ye[he]=E(pe))}}z(Ot.pairs+"`");function E(se){return function(ue){return x(ue,se)}}function re(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=re(se);if(!ue||se.getOption("disableInput"))return te.Pass;for(var pe=Pe(ue,"pairs"),he=se.listSelections(),ge=0;ge<he.length;ge++){if(!he[ge].empty())return te.Pass;var me=ae(se,he[ge].head);if(!me||pe.indexOf(me)%2!=0)return te.Pass}for(var ge=he.length-1;ge>=0;ge--){var xe=he[ge].head;se.replaceRange("",y(xe.line,xe.ch-1),y(xe.line,xe.ch+1),"+delete")}}function ee(se){var ue=re(se),pe=ue&&Pe(ue,"explode");if(!pe||se.getOption("disableInput"))return te.Pass;for(var he=se.listSelections(),ge=0;ge<he.length;ge++){if(!he[ge].empty())return te.Pass;var me=ae(se,he[ge].head);if(!me||pe.indexOf(me)%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 Ae=0;Ae<he.length;Ae++){var Ne=he[Ae].head.line;se.indentLine(Ne,null,!0),se.indentLine(Ne+1,null,!0)}})}function de(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=re(se);if(!pe||se.getOption("disableInput"))return te.Pass;var he=Pe(pe,"pairs"),ge=he.indexOf(ue);if(ge==-1)return te.Pass;for(var me=Pe(pe,"closeBefore"),xe=Pe(pe,"triples"),Ae=he.charAt(ge+1)==ue,Ne=se.listSelections(),Be=ge%2==0,De,we=0;we<Ne.length;we++){var Ce=Ne[we],Oe=Ce.head,je,Fe=se.getRange(Oe,y(Oe.line,Oe.ch+1));if(Be&&!Ce.empty())je="surround";else if((Ae||!Be)&&Fe==ue)Ae&&ie(se,Oe)?je="both":xe.indexOf(ue)>=0&&se.getRange(Oe,y(Oe.line,Oe.ch+3))==ue+ue+ue?je="skipThree":je="skip";else if(Ae&&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;je="addFour"}else if(Ae){var ke=Oe.ch==0?" ":se.getRange(y(Oe.line,Oe.ch-1),Oe);if(!te.isWordChar(Fe)&&ke!=ue&&!te.isWordChar(ke))je="both";else return te.Pass}else if(Be&&(Fe.length===0||/\s/.test(Fe)||me.indexOf(Fe)>-1))je="both";else return te.Pass;if(!De)De=je;else if(De!=je)return te.Pass}var Ee=ge%2?he.charAt(ge-1):ue,Ge=ge%2?ue:he.charAt(ge+1);se.operation(function(){if(De=="skip")se.execCommand("goCharRight");else if(De=="skipThree")for(var Ke=0;Ke<3;Ke++)se.execCommand("goCharRight");else if(De=="surround"){for(var Ve=se.getSelections(),Ke=0;Ke<Ve.length;Ke++)Ve[Ke]=Ee+Ve[Ke]+Ge;se.replaceSelections(Ve,"around"),Ve=se.listSelections().slice();for(var Ke=0;Ke<Ve.length;Ke++)Ve[Ke]=de(Ve[Ke]);se.setSelections(Ve)}else De=="both"?(se.replaceSelection(Ee+Ge,null),se.triggerElectric(Ee+Ge),se.execCommand("goCharLeft")):De=="addFour"&&(se.replaceSelection(Ee+Ee+Ee+Ee,"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 ie(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(wn,Yt,Te){(function(te){te(Te(89780),Te(32855))})(function(te){te.defineOption("autoCloseTags",!1,function(oe,ee,de){if(de!=te.Init&&de&&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 Pe(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 Pe(oe){if(oe.getOption("disableInput"))return te.Pass;for(var ee=oe.listSelections(),de=[],x=oe.getOption("autoCloseTags"),ae=0;ae<ee.length;ae++){if(!ee[ae].empty())return te.Pass;var ie=ee[ae].head,se=oe.getTokenAt(ie),ue=te.innerMode(oe.getMode(),se.state),pe=ue.state,he=ue.mode.xmlCurrentTag&&ue.mode.xmlCurrentTag(pe),ge=he&&he.name;if(!ge)return te.Pass;var me=ue.mode.configuration=="html",xe=typeof x=="object"&&x.dontCloseTags||me&&Ot,Ae=typeof x=="object"&&x.indentTags||me&&y;se.end>ie.ch&&(ge=ge.slice(0,ge.length-se.end+ie.ch));var Ne=ge.toLowerCase();if(!ge||se.type=="string"&&(se.end!=ie.ch||!/[\"\']/.test(se.string.charAt(se.string.length-1))||se.string.length==1)||se.type=="tag"&&he.close||se.string.indexOf("/")==ie.ch-se.start-1||xe&&E(xe,Ne)>-1||re(oe,ue.mode.xmlCurrentContext&&ue.mode.xmlCurrentContext(pe)||[],ge,ie,!0))return te.Pass;var Be=typeof x=="object"&&x.emptyTags;if(Be&&E(Be,ge)>-1){de[ae]={text:"/>",newPos:te.Pos(ie.line,ie.ch+2)};continue}var De=Ae&&E(Ae,Ne)>-1;de[ae]={indent:De,text:">"+(De?`
`:"")+"</"+ge+">",newPos:De?te.Pos(ie.line+1,0):te.Pos(ie.line,ie.ch+1)}}for(var we=typeof x=="object"&&x.dontIndentOnAutoClose,ae=ee.length-1;ae>=0;ae--){var Ce=de[ae];oe.replaceRange(Ce.text,ee[ae].head,ee[ae].anchor,"+insert");var Oe=oe.listSelections().slice(0);Oe[ae]={head:Ce.newPos,anchor:Ce.newPos},oe.setSelections(Oe),!we&&Ce.indent&&(oe.indentLine(Ce.newPos.line,null,!0),oe.indentLine(Ce.newPos.line+1,null,!0))}}function ye(oe,ee){for(var de=oe.listSelections(),x=[],ae=ee?"/":"</",ie=oe.getOption("autoCloseTags"),se=typeof ie=="object"&&ie.dontIndentOnSlash,ue=0;ue<de.length;ue++){if(!de[ue].empty())return te.Pass;var pe=de[ue].head,he=oe.getTokenAt(pe),ge=te.innerMode(oe.getMode(),he.state),me=ge.state;if(ee&&(he.type=="string"||he.string.charAt(0)!="<"||he.start!=pe.ch-1))return te.Pass;var xe,Ae=ge.mode.name!="xml"&&oe.getMode().name=="htmlmixed";if(Ae&&ge.mode.name=="javascript")xe=ae+"script";else if(Ae&&ge.mode.name=="css")xe=ae+"style";else{var Ne=ge.mode.xmlCurrentContext&&ge.mode.xmlCurrentContext(me);if(!Ne||Ne.length&&re(oe,Ne,Ne[Ne.length-1],pe))return te.Pass;xe=ae+Ne[Ne.length-1]}oe.getLine(pe.line).charAt(he.end)!=">"&&(xe+=">"),x[ue]=xe}if(oe.replaceSelections(x),de=oe.listSelections(),!se)for(var ue=0;ue<de.length;ue++)(ue==de.length-1||de[ue].head.line<de[ue+1].head.line)&&oe.indentLine(de[ue].head.line)}function z(oe){return oe.getOption("disableInput")?te.Pass:ye(oe,!0)}te.commands.closeTag=function(oe){return ye(oe)};function E(oe,ee){if(oe.indexOf)return oe.indexOf(ee);for(var de=0,x=oe.length;de<x;++de)if(oe[de]==ee)return de;return-1}function re(oe,ee,de,x,ae){if(!te.scanForClosingTag)return!1;var ie=Math.min(oe.lastLine()+1,x.line+500),se=te.scanForClosingTag(oe,x,null,ie);if(!se||se.tag!=de)return!1;for(var ue=ae?1:0,pe=ee.length-1;pe>=0&&ee[pe]==de;pe--)++ue;x=se.to;for(var pe=1;pe<ue;pe++){var he=te.scanForClosingTag(oe,x,null,ie);if(!he||he.tag!=de)return!1;x=he.to}return!0}})},32855:function(wn,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 Pe="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",ye=Pe+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",z=new RegExp("<(/?)(["+Pe+"]["+ye+"]*)","g");function E(pe,he,ge,me){this.line=he,this.ch=ge,this.cm=pe,this.text=pe.getLine(he),this.min=me?Math.max(me.from,pe.firstLine()):pe.firstLine(),this.max=me?Math.min(me.to-1,pe.lastLine()):pe.lastLine()}function re(pe,he){var ge=pe.cm.getTokenTypeAt(Ot(pe.line,he));return ge&&/\btag\b/.test(ge)}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 de(pe){for(;;){var he=pe.text.indexOf(">",pe.ch);if(he==-1){if(oe(pe))continue;return}if(!re(pe,he+1)){pe.ch=he+1;continue}var ge=pe.text.lastIndexOf("/",he),me=ge>-1&&!/\S/.test(pe.text.slice(ge+1,he));return pe.ch=he+1,me?"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(!re(pe,he+1)){pe.ch=he;continue}z.lastIndex=he,pe.ch=he;var ge=z.exec(pe.text);if(ge&&ge.index==he)return ge}}function ae(pe){for(;;){z.lastIndex=pe.ch;var he=z.exec(pe.text);if(!he){if(oe(pe))continue;return}if(!re(pe,he.index+1)){pe.ch=he.index+1;continue}return pe.ch=he.index+he[0].length,he}}function ie(pe){for(;;){var he=pe.ch?pe.text.lastIndexOf(">",pe.ch-1):-1;if(he==-1){if(ee(pe))continue;return}if(!re(pe,he+1)){pe.ch=he;continue}var ge=pe.text.lastIndexOf("/",he),me=ge>-1&&!/\S/.test(pe.text.slice(ge+1,he));return pe.ch=he+1,me?"selfClose":"regular"}}function se(pe,he){for(var ge=[];;){var me=ae(pe),xe,Ae=pe.line,Ne=pe.ch-(me?me[0].length:0);if(!me||!(xe=de(pe)))return;if(xe!="selfClose")if(me[1]){for(var Be=ge.length-1;Be>=0;--Be)if(ge[Be]==me[2]){ge.length=Be;break}if(Be<0&&(!he||he==me[2]))return{tag:me[2],from:Ot(Ae,Ne),to:Ot(pe.line,pe.ch)}}else ge.push(me[2])}}function ue(pe,he){for(var ge=[];;){var me=ie(pe);if(!me)return;if(me=="selfClose"){x(pe);continue}var xe=pe.line,Ae=pe.ch,Ne=x(pe);if(!Ne)return;if(Ne[1])ge.push(Ne[2]);else{for(var Be=ge.length-1;Be>=0;--Be)if(ge[Be]==Ne[2]){ge.length=Be;break}if(Be<0&&(!he||he==Ne[2]))return{tag:Ne[2],from:Ot(pe.line,pe.ch),to:Ot(xe,Ae)}}}}te.registerHelper("fold","xml",function(pe,he){for(var ge=new E(pe,he.line,0);;){var me=ae(ge);if(!me||ge.line!=he.line)return;var xe=de(ge);if(!xe)return;if(!me[1]&&xe!="selfClose"){var Ae=Ot(ge.line,ge.ch),Ne=se(ge,me[2]);return Ne&&y(Ne.from,Ae)>0?{from:Ae,to:Ne.from}:null}}}),te.findMatchingTag=function(pe,he,ge){var me=new E(pe,he.line,he.ch,ge);if(!(me.text.indexOf(">")==-1&&me.text.indexOf("<")==-1)){var xe=de(me),Ae=xe&&Ot(me.line,me.ch),Ne=xe&&x(me);if(!(!xe||!Ne||y(me,he)>0)){var Be={from:Ot(me.line,me.ch),to:Ae,tag:Ne[2]};return xe=="selfClose"?{open:Be,close:null,at:"open"}:Ne[1]?{open:ue(me,Ne[2]),close:Be,at:"close"}:(me=new E(pe,Ae.line,Ae.ch,ge),{open:Be,close:se(me,Ne[2]),at:"open"})}}},te.findEnclosingTag=function(pe,he,ge,me){for(var xe=new E(pe,he.line,he.ch,ge);;){var Ae=ue(xe,me);if(!Ae)break;var Ne=new E(pe,he.line,he.ch,ge),Be=se(Ne,Ae.tag);if(Be)return{open:Ae,close:Be}}},te.scanForClosingTag=function(pe,he,ge,me){var xe=new E(pe,he.line,he.ch,me?{from:0,to:me}:null);return se(xe,ge)}})},89780:function(wn){(function(Yt,Te){wn.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),Pe=/Edge\/(\d+)/.exec(Yt),ye=Ot||y||Pe,z=ye&&(Ot?document.documentMode||6:+(Pe||y)[1]),E=!Pe&&/WebKit\//.test(Yt),re=E&&/Qt\/\d+\.\d+/.test(Yt),oe=!Pe&&/Chrome\//.test(Yt),ee=/Opera\//.test(Yt),de=/Apple Computer/.test(navigator.vendor),x=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Yt),ae=/PhantomJS/.test(Yt),ie=!Pe&&/AppleWebKit/.test(Yt)&&/Mobile\/\w+/.test(Yt),se=/Android/.test(Yt),ue=ie||se||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Yt),pe=ie||/Mac/.test(Te),he=/\bCrOS\b/.test(Yt),ge=/win/i.test(Te),me=ee&&Yt.match(/Version\/(\d*\.\d*)/);me&&(me=Number(me[1])),me&&me>=15&&(ee=!1,E=!0);var xe=pe&&(re||ee&&(me==null||me<12.11)),Ae=te||ye&&z>=9;function Ne(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Be=function(a,b){var ce=a.className,le=Ne(b).exec(ce);if(le){var Se=ce.slice(le.index+le[0].length);a.className=ce.slice(0,le.index)+(Se?le[1]+Se:"")}};function De(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function we(a,b){return De(a).appendChild(b)}function Ce(a,b,ce,le){var Se=document.createElement(a);if(ce&&(Se.className=ce),le&&(Se.style.cssText=le),typeof b=="string")Se.appendChild(document.createTextNode(b));else if(b)for(var ze=0;ze<b.length;++ze)Se.appendChild(b[ze]);return Se}function Oe(a,b,ce,le){var Se=Ce(a,b,ce,le);return Se.setAttribute("role","presentation"),Se}var je;document.createRange?je=function(a,b,ce,le){var Se=document.createRange();return Se.setEnd(le||a,ce),Se.setStart(a,b),Se}:je=function(a,b,ce){var le=document.body.createTextRange();try{le.moveToElementText(a.parentNode)}catch(Se){return le}return le.collapse(!0),le.moveEnd("character",ce),le.moveStart("character",b),le};function Fe(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 ke(){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 Ee(a,b){var ce=a.className;Ne(b).test(ce)||(a.className+=(ce?" ":"")+b)}function Ge(a,b){for(var ce=a.split(" "),le=0;le<ce.length;le++)ce[le]&&!Ne(ce[le]).test(b)&&(b+=" "+ce[le]);return b}var Ke=function(a){a.select()};ie?Ke=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:ye&&(Ke=function(a){try{a.select()}catch(b){}});function Ve(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function it(a,b,ce){b||(b={});for(var le in a)a.hasOwnProperty(le)&&(ce!==!1||!b.hasOwnProperty(le))&&(b[le]=a[le]);return b}function Le(a,b,ce,le,Se){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var ze=le||0,rt=Se||0;;){var dt=a.indexOf(" ",ze);if(dt<0||dt>=b)return rt+(b-ze);rt+=dt-ze,rt+=ce-rt%ce,ze=dt+1}}var Ue=function(){this.id=null,this.f=null,this.time=0,this.handler=Ve(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 ce=+new Date+a;(!this.id||ce<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=ce)};function tt(a,b){for(var ce=0;ce<a.length;++ce)if(a[ce]==b)return ce;return-1}var nt=50,et={toString:function(){return"CodeMirror.Pass"}},Ze={scroll:!1},Ye={origin:"*mouse"},Xe={origin:"+move"};function st(a,b,ce){for(var le=0,Se=0;;){var ze=a.indexOf(" ",le);ze==-1&&(ze=a.length);var rt=ze-le;if(ze==a.length||Se+rt>=b)return le+Math.min(rt,b-Se);if(Se+=ze-le,Se+=ce-Se%ce,le=ze+1,Se>=b)return le}}var Qe=[""];function ht(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 ce=[],le=0;le<a.length;le++)ce[le]=b(a[le],le);return ce}function _e(a,b,ce){for(var le=0,Se=ce(b);le<a.length&&ce(a[le])<=Se;)le++;a.splice(le,0,b)}function Re(){}function ne(a,b){var ce;return Object.create?ce=Object.create(a):(Re.prototype=a,ce=new Re),b&&it(b,ce),ce}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 He(a,b){return b?b.source.indexOf("\\w")>-1&&Me(a)?!0:b.test(a):Me(a)}function be(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,ce){for(;(ce<0?b>0:b<a.length)&&Ie(a.charAt(b));)b+=ce;return b}function We(a,b,ce){for(var le=b>ce?-1:1;;){if(b==ce)return b;var Se=(b+ce)/2,ze=le<0?Math.ceil(Se):Math.floor(Se);if(ze==b)return a(ze)?b:ce;a(ze)?ce=ze:b=ze+le}}function Je(a,b,ce,le){if(!a)return le(b,ce,"ltr",0);for(var Se=!1,ze=0;ze<a.length;++ze){var rt=a[ze];(rt.from<ce&&rt.to>b||b==ce&&rt.to==b)&&(le(Math.max(rt.from,b),Math.min(rt.to,ce),rt.level==1?"rtl":"ltr",ze),Se=!0)}Se||le(b,ce,"ltr")}var ct=null;function ot(a,b,ce){var le;ct=null;for(var Se=0;Se<a.length;++Se){var ze=a[Se];if(ze.from<b&&ze.to>b)return Se;ze.to==b&&(ze.from!=ze.to&&ce=="before"?le=Se:ct=Se),ze.from==b&&(ze.from!=ze.to&&ce!="before"?le=Se:ct=Se)}return le!=null?le:ct}var ft=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ce(xt){return xt<=247?a.charAt(xt):1424<=xt&&xt<=1524?"R":1536<=xt&&xt<=1785?b.charAt(xt-1536):1774<=xt&&xt<=2220?"r":8192<=xt&&xt<=8203?"w":xt==8204?"b":"L"}var le=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Se=/[stwN]/,ze=/[LRr]/,rt=/[Lb1n]/,dt=/[1n]/;function vt(xt,Qt,on){this.level=xt,this.from=Qt,this.to=on}return function(xt,Qt){var on=Qt=="ltr"?"L":"R";if(xt.length==0||Qt=="ltr"&&!le.test(xt))return!1;for(var Sn=xt.length,vn=[],Qn=0;Qn<Sn;++Qn)vn.push(ce(xt.charCodeAt(Qn)));for(var or=0,yr=on;or<Sn;++or){var kr=vn[or];kr=="m"?vn[or]=yr:yr=kr}for(var Hr=0,Rr=on;Hr<Sn;++Hr){var Xr=vn[Hr];Xr=="1"&&Rr=="r"?vn[Hr]="n":ze.test(Xr)&&(Rr=Xr,Xr=="r"&&(vn[Hr]="R"))}for(var vi=1,ci=vn[0];vi<Sn-1;++vi){var Li=vn[vi];Li=="+"&&ci=="1"&&vn[vi+1]=="1"?vn[vi]="1":Li==","&&ci==vn[vi+1]&&(ci=="1"||ci=="n")&&(vn[vi]=ci),ci=Li}for(var go=0;go<Sn;++go){var ra=vn[go];if(ra==",")vn[go]="N";else if(ra=="%"){var Mo=void 0;for(Mo=go+1;Mo<Sn&&vn[Mo]=="%";++Mo);for(var Na=go&&vn[go-1]=="!"||Mo<Sn&&vn[Mo]=="1"?"1":"N",Oa=go;Oa<Mo;++Oa)vn[Oa]=Na;go=Mo-1}}for(var Vo=0,Ia=on;Vo<Sn;++Vo){var fa=vn[Vo];Ia=="L"&&fa=="1"?vn[Vo]="L":ze.test(fa)&&(Ia=fa)}for(var qo=0;qo<Sn;++qo)if(Se.test(vn[qo])){var Xo=void 0;for(Xo=qo+1;Xo<Sn&&Se.test(vn[Xo]);++Xo);for(var Fo=(qo?vn[qo-1]:on)=="L",Aa=(Xo<Sn?vn[Xo]:on)=="L",hl=Fo==Aa?Fo?"L":"R":on,ks=qo;ks<Xo;++ks)vn[ks]=hl;qo=Xo-1}for(var ba=[],us,ia=0;ia<Sn;)if(rt.test(vn[ia])){var Tu=ia;for(++ia;ia<Sn&&rt.test(vn[ia]);++ia);ba.push(new vt(0,Tu,ia))}else{var bs=ia,Xs=ba.length,Ys=Qt=="rtl"?1:0;for(++ia;ia<Sn&&vn[ia]!="L";++ia);for(var Sa=bs;Sa<ia;)if(dt.test(vn[Sa])){bs<Sa&&(ba.splice(Xs,0,new vt(1,bs,Sa)),Xs+=Ys);var ml=Sa;for(++Sa;Sa<ia&&dt.test(vn[Sa]);++Sa);ba.splice(Xs,0,new vt(2,ml,Sa)),Xs+=Ys,bs=Sa}else++Sa;bs<ia&&ba.splice(Xs,0,new vt(1,bs,ia))}return Qt=="ltr"&&(ba[0].level==1&&(us=xt.match(/^\s+/))&&(ba[0].from=us[0].length,ba.unshift(new vt(0,0,us[0].length))),at(ba).level==1&&(us=xt.match(/\s+$/))&&(at(ba).to-=us[0].length,ba.push(new vt(0,Sn-us[0].length,Sn)))),Qt=="rtl"?ba.reverse():ba}}();function ut(a,b){var ce=a.order;return ce==null&&(ce=a.order=ft(a.text,b)),ce}var lt=[],At=function(a,b,ce){if(a.addEventListener)a.addEventListener(b,ce,!1);else if(a.attachEvent)a.attachEvent("on"+b,ce);else{var le=a._handlers||(a._handlers={});le[b]=(le[b]||lt).concat(ce)}};function yt(a,b){return a._handlers&&a._handlers[b]||lt}function Rt(a,b,ce){if(a.removeEventListener)a.removeEventListener(b,ce,!1);else if(a.detachEvent)a.detachEvent("on"+b,ce);else{var le=a._handlers,Se=le&&le[b];if(Se){var ze=tt(Se,ce);ze>-1&&(le[b]=Se.slice(0,ze).concat(Se.slice(ze+1)))}}}function Pt(a,b){var ce=yt(a,b);if(ce.length)for(var le=Array.prototype.slice.call(arguments,2),Se=0;Se<ce.length;++Se)ce[Se].apply(null,le)}function Tt(a,b,ce){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),Pt(a,ce||b.type,a,b),rn(b)||b.codemirrorIgnore}function kt(a){var b=a._handlers&&a._handlers.cursorActivity;if(b)for(var ce=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),le=0;le<b.length;++le)tt(ce,b[le])==-1&&ce.push(b[le])}function Dt(a,b){return yt(a,b).length>0}function gt(a){a.prototype.on=function(b,ce){At(this,b,ce)},a.prototype.off=function(b,ce){Rt(this,b,ce)}}function It(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Vt(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function rn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function wt(a){It(a),Vt(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(ye&&z<9)return!1;var a=Ce("div");return"draggable"in a||"dragDrop"in a}(),ln;function yn(a){if(ln==null){var b=Ce("span","\u200B");we(a,Ce("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(ln=b.offsetWidth<=1&&b.offsetHeight>2&&!(ye&&z<8))}var ce=ln?Ce("span","\u200B"):Ce("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ce.setAttribute("cm-text",""),ce}var Bn;function Wn(a){if(Bn!=null)return Bn;var b=we(a,document.createTextNode("A\u062EA")),ce=je(b,0,1).getBoundingClientRect(),le=je(b,1,2).getBoundingClientRect();return De(a),!ce||ce.left==ce.right?!1:Bn=le.right-ce.right<3}var gn=`
b`.split(/\n/).length!=3?function(a){for(var b=0,ce=[],le=a.length;b<=le;){var Se=a.indexOf(`
`,b);Se==-1&&(Se=a.length);var ze=a.slice(b,a.charAt(Se-1)=="\r"?Se-1:Se),rt=ze.indexOf("\r");rt!=-1?(ce.push(ze.slice(0,rt)),b+=rt+1):(ce.push(ze),b=Se+1)}return ce}:function(a){return a.split(/\r\n?|\n/)},Ln=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(ce){}return!b||b.parentElement()!=a?!1:b.compareEndPoints("StartToEnd",b)!=0},pn=function(){var a=Ce("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),In=null;function Gt(a){if(In!=null)return In;var b=we(a,Ce("span","x")),ce=b.getBoundingClientRect(),le=je(b,0,1).getBoundingClientRect();return In=Math.abs(ce.left-le.left)>1}var Ut={},Lt={};function sn(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),Ut[a]=b}function un(a,b){Lt[a]=b}function Cn(a){if(typeof a=="string"&&Lt.hasOwnProperty(a))a=Lt[a];else if(a&&typeof a.name=="string"&&Lt.hasOwnProperty(a.name)){var b=Lt[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 Cn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Cn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Tn(a,b){b=Cn(b);var ce=Ut[b.name];if(!ce)return Tn(a,"text/plain");var le=ce(a,b);if(jn.hasOwnProperty(b.name)){var Se=jn[b.name];for(var ze in Se)Se.hasOwnProperty(ze)&&(le.hasOwnProperty(ze)&&(le["_"+ze]=le[ze]),le[ze]=Se[ze])}if(le.name=b.name,b.helperType&&(le.helperType=b.helperType),b.modeProps)for(var rt in b.modeProps)le[rt]=b.modeProps[rt];return le}var jn={};function hn(a,b){var ce=jn.hasOwnProperty(a)?jn[a]:jn[a]={};it(b,ce)}function Mn(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var ce={};for(var le in b){var Se=b[le];Se instanceof Array&&(Se=Se.concat([])),ce[le]=Se}return ce}function _n(a,b){for(var ce;a.innerMode&&(ce=a.innerMode(b),!(!ce||ce.mode==a));)b=ce.state,a=ce.mode;return ce||{mode:a,state:b}}function ur(a,b,ce){return a.startState?a.startState(b,ce):!0}var tr=function(a,b,ce){this.pos=this.start=0,this.string=a,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ce};tr.prototype.eol=function(){return this.pos>=this.string.length},tr.prototype.sol=function(){return this.pos==this.lineStart},tr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},tr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},tr.prototype.eat=function(a){var b=this.string.charAt(this.pos),ce;if(typeof a=="string"?ce=b==a:ce=b&&(a.test?a.test(b):a(b)),ce)return++this.pos,b},tr.prototype.eatWhile=function(a){for(var b=this.pos;this.eat(a););return this.pos>b},tr.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},tr.prototype.skipToEnd=function(){this.pos=this.string.length},tr.prototype.skipTo=function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},tr.prototype.backUp=function(a){this.pos-=a},tr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Le(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},tr.prototype.indentation=function(){return Le(this.string,null,this.tabSize)-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},tr.prototype.match=function(a,b,ce){if(typeof a=="string"){var le=function(rt){return ce?rt.toLowerCase():rt},Se=this.string.substr(this.pos,a.length);if(le(Se)==le(a))return b!==!1&&(this.pos+=a.length),!0}else{var ze=this.string.slice(this.pos).match(a);return ze&&ze.index>0?null:(ze&&b!==!1&&(this.pos+=ze[0].length),ze)}},tr.prototype.current=function(){return this.string.slice(this.start,this.pos)},tr.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}},tr.prototype.lookAhead=function(a){var b=this.lineOracle;return b&&b.lookAhead(a)},tr.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function cn(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 ce=a;!ce.lines;)for(var le=0;;++le){var Se=ce.children[le],ze=Se.chunkSize();if(b<ze){ce=Se;break}b-=ze}return ce.lines[b]}function tn(a,b,ce){var le=[],Se=b.line;return a.iter(b.line,ce.line+1,function(ze){var rt=ze.text;Se==ce.line&&(rt=rt.slice(0,ce.ch)),Se==b.line&&(rt=rt.slice(b.ch)),le.push(rt),++Se}),le}function Hn(a,b,ce){var le=[];return a.iter(b,ce,function(Se){le.push(Se.text)}),le}function Gn(a,b){var ce=b-a.height;if(ce)for(var le=a;le;le=le.parent)le.height+=ce}function Mt(a){if(a.parent==null)return null;for(var b=a.parent,ce=tt(b.lines,a),le=b.parent;le;b=le,le=le.parent)for(var Se=0;le.children[Se]!=b;++Se)ce+=le.children[Se].chunkSize();return ce+b.first}function Kt(a,b){var ce=a.first;e:do{for(var le=0;le<a.children.length;++le){var Se=a.children[le],ze=Se.height;if(b<ze){a=Se;continue e}b-=ze,ce+=Se.chunkSize()}return ce}while(!a.lines);for(var rt=0;rt<a.lines.length;++rt){var dt=a.lines[rt],vt=dt.height;if(b<vt)break;b-=vt}return ce+rt}function St(a,b){return b>=a.first&&b<a.first+a.size}function Nt(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function Et(a,b,ce){if(ce===void 0&&(ce=null),!(this instanceof Et))return new Et(a,b,ce);this.line=a,this.ch=b,this.sticky=ce}function zt(a,b){return a.line-b.line||a.ch-b.ch}function bt(a,b){return a.sticky==b.sticky&&zt(a,b)==0}function Wt(a){return Et(a.line,a.ch)}function Ft(a,b){return zt(a,b)<0?b:a}function qt(a,b){return zt(a,b)<0?a:b}function _t(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 Et(a.first,0);var ce=a.first+a.size-1;return b.line>ce?Et(ce,cn(a,ce).text.length):Ht(b,cn(a,b.line).text.length)}function Ht(a,b){var ce=a.ch;return ce==null||ce>b?Et(a.line,b):ce<0?Et(a.line,0):a}function Xt(a,b){for(var ce=[],le=0;le<b.length;le++)ce[le]=$t(a,b[le]);return ce}var En=function(a,b){this.state=a,this.lookAhead=b},On=function(a,b,ce,le){this.state=b,this.doc=a,this.line=ce,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,ce){return b instanceof En?new On(a,Mn(a.mode,b.state),ce,b.lookAhead):new On(a,Mn(a.mode,b),ce)},On.prototype.save=function(a){var b=a!==!1?Mn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new En(b,this.maxLookAhead):b};function Rn(a,b,ce,le){var Se=[a.state.modeGen],ze={};wr(a,b.text,a.doc.mode,ce,function(xt,Qt){return Se.push(xt,Qt)},ze,le);for(var rt=ce.state,dt=function(xt){ce.baseTokens=Se;var Qt=a.state.overlays[xt],on=1,Sn=0;ce.state=!0,wr(a,b.text,Qt.mode,ce,function(vn,Qn){for(var or=on;Sn<vn;){var yr=Se[on];yr>vn&&Se.splice(on,1,vn,Se[on+1],yr),on+=2,Sn=Math.min(vn,yr)}if(Qn)if(Qt.opaque)Se.splice(or,on-or,vn,"overlay "+Qn),on=or+2;else for(;or<on;or+=2){var kr=Se[or+1];Se[or+1]=(kr?kr+" ":"")+"overlay "+Qn}},ze),ce.state=rt,ce.baseTokens=null,ce.baseTokenPos=1},vt=0;vt<a.state.overlays.length;++vt)dt(vt);return{styles:Se,classes:ze.bgClass||ze.textClass?ze:null}}function rr(a,b,ce){if(!b.styles||b.styles[0]!=a.state.modeGen){var le=cr(a,Mt(b)),Se=b.text.length>a.options.maxHighlightLength&&Mn(a.doc.mode,le.state),ze=Rn(a,b,le);Se&&(le.state=Se),b.stateAfter=le.save(!Se),b.styles=ze.styles,ze.classes?b.styleClasses=ze.classes:b.styleClasses&&(b.styleClasses=null),ce===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return b.styles}function cr(a,b,ce){var le=a.doc,Se=a.display;if(!le.mode.startState)return new On(le,!0,b);var ze=Cr(a,b,ce),rt=ze>le.first&&cn(le,ze-1).stateAfter,dt=rt?On.fromSaved(le,rt,ze):new On(le,ur(le.mode),ze);return le.iter(ze,b,function(vt){mr(a,vt.text,dt);var xt=dt.line;vt.stateAfter=xt==b-1||xt%5==0||xt>=Se.viewFrom&&xt<Se.viewTo?dt.save():null,dt.nextLine()}),ce&&(le.modeFrontier=dt.line),dt}function mr(a,b,ce,le){var Se=a.doc.mode,ze=new tr(b,a.options.tabSize,ce);for(ze.start=ze.pos=le||0,b==""&&nr(Se,ce.state);!ze.eol();)Un(Se,ze,ce.state),ze.start=ze.pos}function nr(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var ce=_n(a,b);if(ce.mode.blankLine)return ce.mode.blankLine(ce.state)}}function Un(a,b,ce,le){for(var Se=0;Se<10;Se++){le&&(le[0]=_n(a,ce).mode);var ze=a.token(b,ce);if(b.pos>b.start)return ze}throw new Error("Mode "+a.name+" failed to advance stream.")}var Yn=function(a,b,ce){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=b||null,this.state=ce};function pr(a,b,ce,le){var Se=a.doc,ze=Se.mode,rt;b=$t(Se,b);var dt=cn(Se,b.line),vt=cr(a,b.line,ce),xt=new tr(dt.text,a.options.tabSize,vt),Qt;for(le&&(Qt=[]);(le||xt.pos<b.ch)&&!xt.eol();)xt.start=xt.pos,rt=Un(ze,xt,vt.state),le&&Qt.push(new Yn(xt,rt,Mn(Se.mode,vt.state)));return le?Qt:new Yn(xt,rt,vt.state)}function Sr(a,b){if(a)for(;;){var ce=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ce)break;a=a.slice(0,ce.index)+a.slice(ce.index+ce[0].length);var le=ce[1]?"bgClass":"textClass";b[le]==null?b[le]=ce[2]:new RegExp("(?:^|\\s)"+ce[2]+"(?:$|\\s)").test(b[le])||(b[le]+=" "+ce[2])}return a}function wr(a,b,ce,le,Se,ze,rt){var dt=ce.flattenSpans;dt==null&&(dt=a.options.flattenSpans);var vt=0,xt=null,Qt=new tr(b,a.options.tabSize,le),on,Sn=a.options.addModeClass&&[null];for(b==""&&Sr(nr(ce,le.state),ze);!Qt.eol();){if(Qt.pos>a.options.maxHighlightLength?(dt=!1,rt&&mr(a,b,le,Qt.pos),Qt.pos=b.length,on=null):on=Sr(Un(ce,Qt,le.state,Sn),ze),Sn){var vn=Sn[0].name;vn&&(on="m-"+(on?vn+" "+on:vn))}if(!dt||xt!=on){for(;vt<Qt.start;)vt=Math.min(Qt.start,vt+5e3),Se(vt,xt);xt=on}Qt.start=Qt.pos}for(;vt<Qt.pos;){var Qn=Math.min(Qt.pos,vt+5e3);Se(Qn,xt),vt=Qn}}function Cr(a,b,ce){for(var le,Se,ze=a.doc,rt=ce?-1:b-(a.doc.mode.innerMode?1e3:100),dt=b;dt>rt;--dt){if(dt<=ze.first)return ze.first;var vt=cn(ze,dt-1),xt=vt.stateAfter;if(xt&&(!ce||dt+(xt instanceof En?xt.lookAhead:0)<=ze.modeFrontier))return dt;var Qt=Le(vt.text,null,a.options.tabSize);(Se==null||le>Qt)&&(Se=dt-1,le=Qt)}return Se}function qn(a,b){if(a.modeFrontier=Math.min(a.modeFrontier,b),!(a.highlightFrontier<b-10)){for(var ce=a.first,le=b-1;le>ce;le--){var Se=cn(a,le).stateAfter;if(Se&&(!(Se instanceof En)||le+Se.lookAhead<b)){ce=le+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,ce)}}var kn=!1,Fn=!1;function Nn(){kn=!0}function ir(){Fn=!0}function br(a,b,ce){this.marker=a,this.from=b,this.to=ce}function Pr(a,b){if(a)for(var ce=0;ce<a.length;++ce){var le=a[ce];if(le.marker==b)return le}}function Kr(a,b){for(var ce,le=0;le<a.length;++le)a[le]!=b&&(ce||(ce=[])).push(a[le]);return ce}function Nr(a,b){a.markedSpans=a.markedSpans?a.markedSpans.concat([b]):[b],b.marker.attachLine(a)}function Wr(a,b,ce){var le;if(a)for(var Se=0;Se<a.length;++Se){var ze=a[Se],rt=ze.marker,dt=ze.from==null||(rt.inclusiveLeft?ze.from<=b:ze.from<b);if(dt||ze.from==b&&rt.type=="bookmark"&&(!ce||!ze.marker.insertLeft)){var vt=ze.to==null||(rt.inclusiveRight?ze.to>=b:ze.to>b);(le||(le=[])).push(new br(rt,ze.from,vt?null:ze.to))}}return le}function Ir(a,b,ce){var le;if(a)for(var Se=0;Se<a.length;++Se){var ze=a[Se],rt=ze.marker,dt=ze.to==null||(rt.inclusiveRight?ze.to>=b:ze.to>b);if(dt||ze.from==b&&rt.type=="bookmark"&&(!ce||ze.marker.insertLeft)){var vt=ze.from==null||(rt.inclusiveLeft?ze.from<=b:ze.from<b);(le||(le=[])).push(new br(rt,vt?null:ze.from-b,ze.to==null?null:ze.to-b))}}return le}function ni(a,b){if(b.full)return null;var ce=St(a,b.from.line)&&cn(a,b.from.line).markedSpans,le=St(a,b.to.line)&&cn(a,b.to.line).markedSpans;if(!ce&&!le)return null;var Se=b.from.ch,ze=b.to.ch,rt=zt(b.from,b.to)==0,dt=Wr(ce,Se,rt),vt=Ir(le,ze,rt),xt=b.text.length==1,Qt=at(b.text).length+(xt?Se:0);if(dt)for(var on=0;on<dt.length;++on){var Sn=dt[on];if(Sn.to==null){var vn=Pr(vt,Sn.marker);vn?xt&&(Sn.to=vn.to==null?null:vn.to+Qt):Sn.to=Se}}if(vt)for(var Qn=0;Qn<vt.length;++Qn){var or=vt[Qn];if(or.to!=null&&(or.to+=Qt),or.from==null){var yr=Pr(dt,or.marker);yr||(or.from=Qt,xt&&(dt||(dt=[])).push(or))}else or.from+=Qt,xt&&(dt||(dt=[])).push(or)}dt&&(dt=ti(dt)),vt&&vt!=dt&&(vt=ti(vt));var kr=[dt];if(!xt){var Hr=b.text.length-2,Rr;if(Hr>0&&dt)for(var Xr=0;Xr<dt.length;++Xr)dt[Xr].to==null&&(Rr||(Rr=[])).push(new br(dt[Xr].marker,null,null));for(var vi=0;vi<Hr;++vi)kr.push(Rr);kr.push(vt)}return kr}function ti(a){for(var b=0;b<a.length;++b){var ce=a[b];ce.from!=null&&ce.from==ce.to&&ce.marker.clearWhenEmpty!==!1&&a.splice(b--,1)}return a.length?a:null}function oi(a,b,ce){var le=null;if(a.iter(b.line,ce.line+1,function(vn){if(vn.markedSpans)for(var Qn=0;Qn<vn.markedSpans.length;++Qn){var or=vn.markedSpans[Qn].marker;or.readOnly&&(!le||tt(le,or)==-1)&&(le||(le=[])).push(or)}}),!le)return null;for(var Se=[{from:b,to:ce}],ze=0;ze<le.length;++ze)for(var rt=le[ze],dt=rt.find(0),vt=0;vt<Se.length;++vt){var xt=Se[vt];if(!(zt(xt.to,dt.from)<0||zt(xt.from,dt.to)>0)){var Qt=[vt,1],on=zt(xt.from,dt.from),Sn=zt(xt.to,dt.to);(on<0||!rt.inclusiveLeft&&!on)&&Qt.push({from:xt.from,to:dt.from}),(Sn>0||!rt.inclusiveRight&&!Sn)&&Qt.push({from:dt.to,to:xt.to}),Se.splice.apply(Se,Qt),vt+=Qt.length-3}}return Se}function fi(a){var b=a.markedSpans;if(b){for(var ce=0;ce<b.length;++ce)b[ce].marker.detachLine(a);a.markedSpans=null}}function xi(a,b){if(b){for(var ce=0;ce<b.length;++ce)b[ce].marker.attachLine(a);a.markedSpans=b}}function hi(a){return a.inclusiveLeft?-1:0}function ei(a){return a.inclusiveRight?1:0}function Ar(a,b){var ce=a.lines.length-b.lines.length;if(ce!=0)return ce;var le=a.find(),Se=b.find(),ze=zt(le.from,Se.from)||hi(a)-hi(b);if(ze)return-ze;var rt=zt(le.to,Se.to)||ei(a)-ei(b);return rt||b.id-a.id}function Dr(a,b){var ce=Fn&&a.markedSpans,le;if(ce)for(var Se=void 0,ze=0;ze<ce.length;++ze)Se=ce[ze],Se.marker.collapsed&&(b?Se.from:Se.to)==null&&(!le||Ar(le,Se.marker)<0)&&(le=Se.marker);return le}function ar(a){return Dr(a,!0)}function Pn(a){return Dr(a,!1)}function Kn(a,b){var ce=Fn&&a.markedSpans,le;if(ce)for(var Se=0;Se<ce.length;++Se){var ze=ce[Se];ze.marker.collapsed&&(ze.from==null||ze.from<b)&&(ze.to==null||ze.to>b)&&(!le||Ar(le,ze.marker)<0)&&(le=ze.marker)}return le}function Xn(a,b,ce,le,Se){var ze=cn(a,b),rt=Fn&&ze.markedSpans;if(rt)for(var dt=0;dt<rt.length;++dt){var vt=rt[dt];if(vt.marker.collapsed){var xt=vt.marker.find(0),Qt=zt(xt.from,ce)||hi(vt.marker)-hi(Se),on=zt(xt.to,le)||ei(vt.marker)-ei(Se);if(!(Qt>=0&&on<=0||Qt<=0&&on>=0)&&(Qt<=0&&(vt.marker.inclusiveRight&&Se.inclusiveLeft?zt(xt.to,ce)>=0:zt(xt.to,ce)>0)||Qt>=0&&(vt.marker.inclusiveRight&&Se.inclusiveLeft?zt(xt.from,le)<=0:zt(xt.from,le)<0)))return!0}}}function $n(a){for(var b;b=ar(a);)a=b.find(-1,!0).line;return a}function hr(a){for(var b;b=Pn(a);)a=b.find(1,!0).line;return a}function Tr(a){for(var b,ce;b=Pn(a);)a=b.find(1,!0).line,(ce||(ce=[])).push(a);return ce}function Vn(a,b){var ce=cn(a,b),le=$n(ce);return ce==le?b:Mt(le)}function zn(a,b){if(b>a.lastLine())return b;var ce=cn(a,b),le;if(!er(a,ce))return b;for(;le=Pn(ce);)ce=le.find(1,!0).line;return Mt(ce)+1}function er(a,b){var ce=Fn&&b.markedSpans;if(ce){for(var le=void 0,Se=0;Se<ce.length;++Se)if(le=ce[Se],!!le.marker.collapsed){if(le.from==null)return!0;if(!le.marker.widgetNode&&le.from==0&&le.marker.inclusiveLeft&&sr(a,b,le))return!0}}}function sr(a,b,ce){if(ce.to==null){var le=ce.marker.find(1,!0);return sr(a,le.line,Pr(le.line.markedSpans,ce.marker))}if(ce.marker.inclusiveRight&&ce.to==b.text.length)return!0;for(var Se=void 0,ze=0;ze<b.markedSpans.length;++ze)if(Se=b.markedSpans[ze],Se.marker.collapsed&&!Se.marker.widgetNode&&Se.from==ce.to&&(Se.to==null||Se.to!=ce.from)&&(Se.marker.inclusiveLeft||ce.marker.inclusiveRight)&&sr(a,b,Se))return!0}function qr(a){a=$n(a);for(var b=0,ce=a.parent,le=0;le<ce.lines.length;++le){var Se=ce.lines[le];if(Se==a)break;b+=Se.height}for(var ze=ce.parent;ze;ce=ze,ze=ce.parent)for(var rt=0;rt<ze.children.length;++rt){var dt=ze.children[rt];if(dt==ce)break;b+=dt.height}return b}function Ti(a){if(a.height==0)return 0;for(var b=a.text.length,ce,le=a;ce=ar(le);){var Se=ce.find(0,!0);le=Se.from.line,b+=Se.from.ch-Se.to.ch}for(le=a;ce=Pn(le);){var ze=ce.find(0,!0);b-=le.text.length-ze.from.ch,le=ze.to.line,b+=le.text.length-ze.to.ch}return b}function gi(a){var b=a.display,ce=a.doc;b.maxLine=cn(ce,ce.first),b.maxLineLength=Ti(b.maxLine),b.maxLineChanged=!0,ce.iter(function(le){var Se=Ti(le);Se>b.maxLineLength&&(b.maxLineLength=Se,b.maxLine=le)})}var ki=function(a,b,ce){this.text=a,xi(this,b),this.height=ce?ce(this):1};ki.prototype.lineNo=function(){return Mt(this)},gt(ki);function Oi(a,b,ce,le){a.text=b,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),fi(a),xi(a,ce);var Se=le?le(a):1;Se!=a.height&&Gn(a,Se)}function Ii(a){a.parent=null,fi(a)}var Fi={},Ri={};function Ni(a,b){if(!a||/^\s*$/.test(a))return null;var ce=b.addModeClass?Ri:Fi;return ce[a]||(ce[a]=a.replace(/\S+/g,"cm-$&"))}function so(a,b){var ce=Oe("span",null,null,E?"padding-right: .1px":null),le={pre:Oe("pre",[ce],"CodeMirror-line"),content:ce,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};b.measure={};for(var Se=0;Se<=(b.rest?b.rest.length:0);Se++){var ze=Se?b.rest[Se-1]:b.line,rt=void 0;le.pos=0,le.addToken=Ao,Wn(a.display.measure)&&(rt=ut(ze,a.doc.direction))&&(le.addToken=wo(le.addToken,rt)),le.map=[];var dt=b!=a.display.externalMeasured&&Mt(ze);Gr(ze,le,rr(a,ze,dt)),ze.styleClasses&&(ze.styleClasses.bgClass&&(le.bgClass=Ge(ze.styleClasses.bgClass,le.bgClass||"")),ze.styleClasses.textClass&&(le.textClass=Ge(ze.styleClasses.textClass,le.textClass||""))),le.map.length==0&&le.map.push(0,0,le.content.appendChild(yn(a.display.measure))),Se==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 vt=le.content.lastChild;(/\bcm-tab\b/.test(vt.className)||vt.querySelector&&vt.querySelector(".cm-tab"))&&(le.content.className="cm-tab-wrap-hack")}return Pt(a,"renderLine",a,b.line,le.pre),le.pre.className&&(le.textClass=Ge(le.pre.className,le.textClass||"")),le}function xo(a){var b=Ce("span","\u2022","cm-invalidchar");return b.title="\\u"+a.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function Ao(a,b,ce,le,Se,ze,rt){if(b){var dt=a.splitSpaces?jo(b,a.trailingSpace):b,vt=a.cm.state.specialChars,xt=!1,Qt;if(!vt.test(b))a.col+=b.length,Qt=document.createTextNode(dt),a.map.push(a.pos,a.pos+b.length,Qt),ye&&z<9&&(xt=!0),a.pos+=b.length;else{Qt=document.createDocumentFragment();for(var on=0;;){vt.lastIndex=on;var Sn=vt.exec(b),vn=Sn?Sn.index-on:b.length-on;if(vn){var Qn=document.createTextNode(dt.slice(on,on+vn));ye&&z<9?Qt.appendChild(Ce("span",[Qn])):Qt.appendChild(Qn),a.map.push(a.pos,a.pos+vn,Qn),a.col+=vn,a.pos+=vn}if(!Sn)break;on+=vn+1;var or=void 0;if(Sn[0]==" "){var yr=a.cm.options.tabSize,kr=yr-a.col%yr;or=Qt.appendChild(Ce("span",ht(kr),"cm-tab")),or.setAttribute("role","presentation"),or.setAttribute("cm-text"," "),a.col+=kr}else Sn[0]=="\r"||Sn[0]==`
`?(or=Qt.appendChild(Ce("span",Sn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),or.setAttribute("cm-text",Sn[0]),a.col+=1):(or=a.cm.options.specialCharPlaceholder(Sn[0]),or.setAttribute("cm-text",Sn[0]),ye&&z<9?Qt.appendChild(Ce("span",[or])):Qt.appendChild(or),a.col+=1);a.map.push(a.pos,a.pos+1,or),a.pos++}}if(a.trailingSpace=dt.charCodeAt(b.length-1)==32,ce||le||Se||xt||ze||rt){var Hr=ce||"";le&&(Hr+=le),Se&&(Hr+=Se);var Rr=Ce("span",[Qt],Hr,ze);if(rt)for(var Xr in rt)rt.hasOwnProperty(Xr)&&Xr!="style"&&Xr!="class"&&Rr.setAttribute(Xr,rt[Xr]);return a.content.appendChild(Rr)}a.content.appendChild(Qt)}}function jo(a,b){if(a.length>1&&!/ /.test(a))return a;for(var ce=b,le="",Se=0;Se<a.length;Se++){var ze=a.charAt(Se);ze==" "&&ce&&(Se==a.length-1||a.charCodeAt(Se+1)==32)&&(ze="\xA0"),le+=ze,ce=ze==" "}return le}function wo(a,b){return function(ce,le,Se,ze,rt,dt,vt){Se=Se?Se+" cm-force-border":"cm-force-border";for(var xt=ce.pos,Qt=xt+le.length;;){for(var on=void 0,Sn=0;Sn<b.length&&(on=b[Sn],!(on.to>xt&&on.from<=xt));Sn++);if(on.to>=Qt)return a(ce,le,Se,ze,rt,dt,vt);a(ce,le.slice(0,on.to-xt),Se,ze,null,dt,vt),ze=null,le=le.slice(on.to-xt),xt=on.to}}}function ri(a,b,ce,le){var Se=!le&&ce.widgetNode;Se&&a.map.push(a.pos,a.pos+b,Se),!le&&a.cm.display.input.needsContentAttribute&&(Se||(Se=a.content.appendChild(document.createElement("span"))),Se.setAttribute("cm-marker",ce.id)),Se&&(a.cm.display.input.setUneditable(Se),a.content.appendChild(Se)),a.pos+=b,a.trailingSpace=!1}function Gr(a,b,ce){var le=a.markedSpans,Se=a.text,ze=0;if(!le){for(var rt=1;rt<ce.length;rt+=2)b.addToken(b,Se.slice(ze,ze=ce[rt]),Ni(ce[rt+1],b.cm.options));return}for(var dt=Se.length,vt=0,xt=1,Qt="",on,Sn,vn=0,Qn,or,yr,kr,Hr;;){if(vn==vt){Qn=or=yr=Sn="",Hr=null,kr=null,vn=1/0;for(var Rr=[],Xr=void 0,vi=0;vi<le.length;++vi){var ci=le[vi],Li=ci.marker;if(Li.type=="bookmark"&&ci.from==vt&&Li.widgetNode)Rr.push(Li);else if(ci.from<=vt&&(ci.to==null||ci.to>vt||Li.collapsed&&ci.to==vt&&ci.from==vt)){if(ci.to!=null&&ci.to!=vt&&vn>ci.to&&(vn=ci.to,or=""),Li.className&&(Qn+=" "+Li.className),Li.css&&(Sn=(Sn?Sn+";":"")+Li.css),Li.startStyle&&ci.from==vt&&(yr+=" "+Li.startStyle),Li.endStyle&&ci.to==vn&&(Xr||(Xr=[])).push(Li.endStyle,ci.to),Li.title&&((Hr||(Hr={})).title=Li.title),Li.attributes)for(var go in Li.attributes)(Hr||(Hr={}))[go]=Li.attributes[go];Li.collapsed&&(!kr||Ar(kr.marker,Li)<0)&&(kr=ci)}else ci.from>vt&&vn>ci.from&&(vn=ci.from)}if(Xr)for(var ra=0;ra<Xr.length;ra+=2)Xr[ra+1]==vn&&(or+=" "+Xr[ra]);if(!kr||kr.from==vt)for(var Mo=0;Mo<Rr.length;++Mo)ri(b,0,Rr[Mo]);if(kr&&(kr.from||0)==vt){if(ri(b,(kr.to==null?dt+1:kr.to)-vt,kr.marker,kr.from==null),kr.to==null)return;kr.to==vt&&(kr=!1)}}if(vt>=dt)break;for(var Na=Math.min(dt,vn);;){if(Qt){var Oa=vt+Qt.length;if(!kr){var Vo=Oa>Na?Qt.slice(0,Na-vt):Qt;b.addToken(b,Vo,on?on+Qn:Qn,yr,vt+Vo.length==vn?or:"",Sn,Hr)}if(Oa>=Na){Qt=Qt.slice(Na-vt),vt=Na;break}vt=Oa,yr=""}Qt=Se.slice(ze,ze=ce[xt++]),on=Ni(ce[xt++],b.cm.options)}}}function Qi(a,b,ce){this.line=b,this.rest=Tr(b),this.size=this.rest?Mt(at(this.rest))-ce+1:1,this.node=this.text=null,this.hidden=er(a,b)}function qi(a,b,ce){for(var le=[],Se,ze=b;ze<ce;ze=Se){var rt=new Qi(a.doc,cn(a.doc,ze),ze);Se=ze+rt.size,le.push(rt)}return le}var ui=null;function Zi(a){ui?ui.ops.push(a):a.ownsGroup=ui={ops:[a],delayedCallbacks:[]}}function Yi(a){var b=a.delayedCallbacks,ce=0;do{for(;ce<b.length;ce++)b[ce].call(null);for(var le=0;le<a.ops.length;le++){var Se=a.ops[le];if(Se.cursorActivityHandlers)for(;Se.cursorActivityCalled<Se.cursorActivityHandlers.length;)Se.cursorActivityHandlers[Se.cursorActivityCalled++].call(null,Se.cm)}}while(ce<b.length)}function bi(a,b){var ce=a.ownsGroup;if(ce)try{Yi(ce)}finally{ui=null,b(ce)}}var _i=null;function Di(a,b){var ce=yt(a,b);if(ce.length){var le=Array.prototype.slice.call(arguments,2),Se;ui?Se=ui.delayedCallbacks:_i?Se=_i:(Se=_i=[],setTimeout(_o,0));for(var ze=function(dt){Se.push(function(){return ce[dt].apply(null,le)})},rt=0;rt<ce.length;++rt)ze(rt)}}function _o(){var a=_i;_i=null;for(var b=0;b<a.length;++b)a[b]()}function pa(a,b,ce,le){for(var Se=0;Se<b.changes.length;Se++){var ze=b.changes[Se];ze=="text"?es(a,b):ze=="gutter"?Si(a,b,ce,le):ze=="class"?di(a,b):ze=="widget"&&ai(a,b,le)}b.changes=null}function Zo(a){return a.node==a.text&&(a.node=Ce("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),ye&&z<8&&(a.node.style.zIndex=2)),a.node}function Po(a,b){var ce=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;if(ce&&(ce+=" CodeMirror-linebackground"),b.background)ce?b.background.className=ce:(b.background.parentNode.removeChild(b.background),b.background=null);else if(ce){var le=Zo(b);b.background=le.insertBefore(Ce("div",null,ce),le.firstChild),a.display.input.setUneditable(b.background)}}function cs(a,b){var ce=a.display.externalMeasured;return ce&&ce.line==b.line?(a.display.externalMeasured=null,b.measure=ce.measure,ce.built):so(a,b)}function es(a,b){var ce=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,di(a,b)):ce&&(b.text.className=ce)}function di(a,b){Po(a,b),b.line.wrapClass?Zo(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");var ce=b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass;b.text.className=ce||""}function Si(a,b,ce,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 Se=Zo(b);b.gutterBackground=Ce("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),Se.insertBefore(b.gutterBackground,b.text)}var ze=b.line.gutterMarkers;if(a.options.lineNumbers||ze){var rt=Zo(b),dt=b.gutter=Ce("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?le.fixedPos:-le.gutterTotalWidth)+"px");if(a.display.input.setUneditable(dt),rt.insertBefore(dt,b.text),b.line.gutterClass&&(dt.className+=" "+b.line.gutterClass),a.options.lineNumbers&&(!ze||!ze["CodeMirror-linenumbers"])&&(b.lineNumber=dt.appendChild(Ce("div",Nt(a.options,ce),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+le.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),ze)for(var vt=0;vt<a.display.gutterSpecs.length;++vt){var xt=a.display.gutterSpecs[vt].className,Qt=ze.hasOwnProperty(xt)&&ze[xt];Qt&&dt.appendChild(Ce("div",[Qt],"CodeMirror-gutter-elt","left: "+le.gutterLeft[xt]+"px; width: "+le.gutterWidth[xt]+"px"))}}}function ai(a,b,ce){b.alignable&&(b.alignable=null);for(var le=Ne("CodeMirror-linewidget"),Se=b.node.firstChild,ze=void 0;Se;Se=ze)ze=Se.nextSibling,le.test(Se.className)&&b.node.removeChild(Se);Ui(a,b,ce)}function pi(a,b,ce,le){var Se=cs(a,b);return b.text=b.node=Se.pre,Se.bgClass&&(b.bgClass=Se.bgClass),Se.textClass&&(b.textClass=Se.textClass),di(a,b),Si(a,b,ce,le),Ui(a,b,le),b.node}function Ui(a,b,ce){if(lo(a,b.line,b,ce,!0),b.rest)for(var le=0;le<b.rest.length;le++)lo(a,b.rest[le],b,ce,!1)}function lo(a,b,ce,le,Se){if(b.widgets)for(var ze=Zo(ce),rt=0,dt=b.widgets;rt<dt.length;++rt){var vt=dt[rt],xt=Ce("div",[vt.node],"CodeMirror-linewidget"+(vt.className?" "+vt.className:""));vt.handleMouseEvents||xt.setAttribute("cm-ignore-events","true"),Ma(vt,xt,ce,le),a.display.input.setUneditable(xt),Se&&vt.above?ze.insertBefore(xt,ce.gutter||ce.text):ze.appendChild(xt),Di(vt,"redraw")}}function Ma(a,b,ce,le){if(a.noHScroll){(ce.alignable||(ce.alignable=[])).push(b);var Se=le.wrapperWidth;b.style.left=le.fixedPos+"px",a.coverGutter||(Se-=le.gutterTotalWidth,b.style.paddingLeft=le.gutterTotalWidth+"px"),b.style.width=Se+"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(!Fe(document.body,a.node)){var ce="position: relative;";a.coverGutter&&(ce+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),a.noHScroll&&(ce+="width: "+b.display.wrapper.clientWidth+"px;"),we(b.display.measure,Ce("div",[a.node],null,ce))}return a.height=a.node.parentNode.offsetHeight}function Yo(a,b){for(var ce=Ct(b);ce!=a.wrapper;ce=ce.parentNode)if(!ce||ce.nodeType==1&&ce.getAttribute("cm-ignore-events")=="true"||ce.parentNode==a.sizer&&ce!=a.mover)return!0}function Do(a){return a.lineSpace.offsetTop}function ja(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function _a(a){if(a.cachedPaddingH)return a.cachedPaddingH;var b=we(a.measure,Ce("pre","x","CodeMirror-line-like")),ce=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,le={left:parseInt(ce.paddingLeft),right:parseInt(ce.paddingRight)};return!isNaN(le.left)&&!isNaN(le.right)&&(a.cachedPaddingH=le),le}function ha(a){return nt-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 Pa(a,b,ce){var le=a.options.lineWrapping,Se=le&&$a(a);if(!b.measure.heights||le&&b.measure.width!=Se){var ze=b.measure.heights=[];if(le){b.measure.width=Se;for(var rt=b.text.firstChild.getClientRects(),dt=0;dt<rt.length-1;dt++){var vt=rt[dt],xt=rt[dt+1];Math.abs(vt.bottom-xt.bottom)>2&&ze.push((vt.bottom+xt.top)/2-ce.top)}}ze.push(ce.bottom-ce.top)}}function ds(a,b,ce){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 Se=0;Se<a.rest.length;Se++)if(Mt(a.rest[Se])>ce)return{map:a.measure.maps[Se],cache:a.measure.caches[Se],before:!0}}function vl(a,b){b=$n(b);var ce=Mt(b),le=a.display.externalMeasured=new Qi(a.doc,b,ce);le.lineN=ce;var Se=le.built=so(a,le);return le.text=Se.pre,we(a.display.lineMeasure,Se.pre),le}function Js(a,b,ce,le){return Da(a,ts(a,b),ce,le)}function za(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[Wa(a,b)];var ce=a.display.externalMeasured;if(ce&&b>=ce.lineN&&b<ce.lineN+ce.size)return ce}function ts(a,b){var ce=Mt(b),le=za(a,ce);le&&!le.text?le=null:le&&le.changes&&(pa(a,le,ce,rs(a)),a.curOp.forceUpdate=!0),le||(le=vl(a,b));var Se=ds(le,b,ce);return{line:b,view:le,rect:null,map:Se.map,cache:Se.cache,before:Se.before,hasHeights:!1}}function Da(a,b,ce,le,Se){b.before&&(ce=-1);var ze=ce+(le||""),rt;return b.cache.hasOwnProperty(ze)?rt=b.cache[ze]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(Pa(a,b.view,b.rect),b.hasHeights=!0),rt=el(a,b,ce,le),rt.bogus||(b.cache[ze]=rt)),{left:rt.left,right:rt.right,top:Se?rt.rtop:rt.top,bottom:Se?rt.rbottom:rt.bottom}}var gl={left:0,right:0,top:0,bottom:0};function Rs(a,b,ce){for(var le,Se,ze,rt,dt,vt,xt=0;xt<a.length;xt+=3)if(dt=a[xt],vt=a[xt+1],b<dt?(Se=0,ze=1,rt="left"):b<vt?(Se=b-dt,ze=Se+1):(xt==a.length-3||b==vt&&a[xt+3]>b)&&(ze=vt-dt,Se=ze-1,b>=vt&&(rt="right")),Se!=null){if(le=a[xt+2],dt==vt&&ce==(le.insertLeft?"left":"right")&&(rt=ce),ce=="left"&&Se==0)for(;xt&&a[xt-2]==a[xt-3]&&a[xt-1].insertLeft;)le=a[(xt-=3)+2],rt="left";if(ce=="right"&&Se==vt-dt)for(;xt<a.length-3&&a[xt+3]==a[xt+4]&&!a[xt+5].insertLeft;)le=a[(xt+=3)+2],rt="right";break}return{node:le,start:Se,end:ze,collapse:rt,coverStart:dt,coverEnd:vt}}function Qs(a,b){var ce=gl;if(b=="left")for(var le=0;le<a.length&&(ce=a[le]).left==ce.right;le++);else for(var Se=a.length-1;Se>=0&&(ce=a[Se]).left==ce.right;Se--);return ce}function el(a,b,ce,le){var Se=Rs(b.map,ce,le),ze=Se.node,rt=Se.start,dt=Se.end,vt=Se.collapse,xt;if(ze.nodeType==3){for(var Qt=0;Qt<4;Qt++){for(;rt&&Ie(b.line.text.charAt(Se.coverStart+rt));)--rt;for(;Se.coverStart+dt<Se.coverEnd&&Ie(b.line.text.charAt(Se.coverStart+dt));)++dt;if(ye&&z<9&&rt==0&&dt==Se.coverEnd-Se.coverStart?xt=ze.parentNode.getBoundingClientRect():xt=Qs(je(ze,rt,dt).getClientRects(),le),xt.left||xt.right||rt==0)break;dt=rt,rt=rt-1,vt="right"}ye&&z<11&&(xt=zl(a.display.measure,xt))}else{rt>0&&(vt=le="right");var on;a.options.lineWrapping&&(on=ze.getClientRects()).length>1?xt=on[le=="right"?on.length-1:0]:xt=ze.getBoundingClientRect()}if(ye&&z<9&&!rt&&(!xt||!xt.left&&!xt.right)){var Sn=ze.parentNode.getClientRects()[0];Sn?xt={left:Sn.left,right:Sn.left+La(a.display),top:Sn.top,bottom:Sn.bottom}:xt=gl}for(var vn=xt.top-b.rect.top,Qn=xt.bottom-b.rect.top,or=(vn+Qn)/2,yr=b.view.measure.heights,kr=0;kr<yr.length-1&&!(or<yr[kr]);kr++);var Hr=kr?yr[kr-1]:0,Rr=yr[kr],Xr={left:(vt=="right"?xt.right:xt.left)-b.rect.left,right:(vt=="left"?xt.left:xt.right)-b.rect.left,top:Hr,bottom:Rr};return!xt.left&&!xt.right&&(Xr.bogus=!0),a.options.singleCursorHeightPerLine||(Xr.rtop=vn,Xr.rbottom=Qn),Xr}function zl(a,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Gt(a))return b;var ce=screen.logicalXDPI/screen.deviceXDPI,le=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*ce,right:b.right*ce,top:b.top*le,bottom:b.bottom*le}}function Ns(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,De(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)Ns(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 ce=0;ce<a.widgets.length;++ce)a.widgets[ce].above&&(b+=oa(a.widgets[ce]));return b}function Bs(a,b,ce,le,Se){if(!Se){var ze=ps(b);ce.top+=ze,ce.bottom+=ze}if(le=="line")return ce;le||(le="local");var rt=qr(b);if(le=="local"?rt+=Do(a.display):rt-=a.display.viewOffset,le=="page"||le=="window"){var dt=a.display.lineSpace.getBoundingClientRect();rt+=dt.top+(le=="window"?0:Ms());var vt=dt.left+(le=="window"?0:xs());ce.left+=vt,ce.right+=vt}return ce.top+=rt,ce.bottom+=rt,ce}function tl(a,b,ce){if(ce=="div")return b;var le=b.left,Se=b.top;if(ce=="page")le-=xs(),Se-=Ms();else if(ce=="local"||!ce){var ze=a.display.sizer.getBoundingClientRect();le+=ze.left,Se+=ze.top}var rt=a.display.lineSpace.getBoundingClientRect();return{left:le-rt.left,top:Se-rt.top}}function ns(a,b,ce,le,Se){return le||(le=cn(a.doc,b.line)),Bs(a,le,Js(a,le,b.ch,Se),ce)}function aa(a,b,ce,le,Se,ze){le=le||cn(a.doc,b.line),Se||(Se=ts(a,le));function rt(Qn,or){var yr=Da(a,Se,Qn,or?"right":"left",ze);return or?yr.left=yr.right:yr.right=yr.left,Bs(a,le,yr,ce)}var dt=ut(le,a.doc.direction),vt=b.ch,xt=b.sticky;if(vt>=le.text.length?(vt=le.text.length,xt="before"):vt<=0&&(vt=0,xt="after"),!dt)return rt(xt=="before"?vt-1:vt,xt=="before");function Qt(Qn,or,yr){var kr=dt[or],Hr=kr.level==1;return rt(yr?Qn-1:Qn,Hr!=yr)}var on=ot(dt,vt,xt),Sn=ct,vn=Qt(vt,on,xt=="before");return Sn!=null&&(vn.other=Qt(vt,Sn,xt!="before")),vn}function Wi(a,b){var ce=0;b=$t(a.doc,b),a.options.lineWrapping||(ce=La(a.display)*b.ch);var le=cn(a.doc,b.line),Se=qr(le)+Do(a.display);return{left:ce,right:ce,top:Se,bottom:Se+le.height}}function Ci(a,b,ce,le,Se){var ze=Et(a,b,ce);return ze.xRel=Se,le&&(ze.outside=le),ze}function Wo(a,b,ce){var le=a.doc;if(ce+=a.display.viewOffset,ce<0)return Ci(le.first,0,null,-1,-1);var Se=Kt(le,ce),ze=le.first+le.size-1;if(Se>ze)return Ci(le.first+le.size-1,cn(le,ze).text.length,null,1,1);b<0&&(b=0);for(var rt=cn(le,Se);;){var dt=Ba(a,rt,Se,b,ce),vt=Kn(rt,dt.ch+(dt.xRel>0||dt.outside>0?1:0));if(!vt)return dt;var xt=vt.find(1);if(xt.line==Se)return xt;rt=cn(le,Se=xt.line)}}function sa(a,b,ce,le){le-=ps(b);var Se=b.text.length,ze=We(function(rt){return Da(a,ce,rt-1).bottom<=le},Se,0);return Se=We(function(rt){return Da(a,ce,rt).top>le},ze,Se),{begin:ze,end:Se}}function ko(a,b,ce,le){ce||(ce=ts(a,b));var Se=Bs(a,b,Da(a,ce,le),"line").top;return sa(a,b,ce,Se)}function Uo(a,b,ce,le){return a.bottom<=ce?!1:a.top>ce?!0:(le?a.left:a.right)>b}function Ba(a,b,ce,le,Se){Se-=qr(b);var ze=ts(a,b),rt=ps(b),dt=0,vt=b.text.length,xt=!0,Qt=ut(b,a.doc.direction);if(Qt){var on=(a.options.lineWrapping?Za:ka)(a,b,ce,ze,Qt,le,Se);xt=on.level!=1,dt=xt?on.from:on.to-1,vt=xt?on.to:on.from-1}var Sn=null,vn=null,Qn=We(function(vi){var ci=Da(a,ze,vi);return ci.top+=rt,ci.bottom+=rt,Uo(ci,le,Se,!1)?(ci.top<=Se&&ci.left<=le&&(Sn=vi,vn=ci),!0):!1},dt,vt),or,yr,kr=!1;if(vn){var Hr=le-vn.left<vn.right-le,Rr=Hr==xt;Qn=Sn+(Rr?0:1),yr=Rr?"after":"before",or=Hr?vn.left:vn.right}else{!xt&&(Qn==vt||Qn==dt)&&Qn++,yr=Qn==0?"after":Qn==b.text.length?"before":Da(a,ze,Qn-(xt?1:0)).bottom+rt<=Se==xt?"after":"before";var Xr=aa(a,Et(ce,Qn,yr),"line",b,ze);or=Xr.left,kr=Se<Xr.top?-1:Se>=Xr.bottom?1:0}return Qn=$e(b.text,Qn,1),Ci(ce,Qn,yr,kr,le-or)}function ka(a,b,ce,le,Se,ze,rt){var dt=We(function(on){var Sn=Se[on],vn=Sn.level!=1;return Uo(aa(a,Et(ce,vn?Sn.to:Sn.from,vn?"before":"after"),"line",b,le),ze,rt,!0)},0,Se.length-1),vt=Se[dt];if(dt>0){var xt=vt.level!=1,Qt=aa(a,Et(ce,xt?vt.from:vt.to,xt?"after":"before"),"line",b,le);Uo(Qt,ze,rt,!0)&&Qt.top>rt&&(vt=Se[dt-1])}return vt}function Za(a,b,ce,le,Se,ze,rt){var dt=sa(a,b,le,rt),vt=dt.begin,xt=dt.end;/\s/.test(b.text.charAt(xt-1))&&xt--;for(var Qt=null,on=null,Sn=0;Sn<Se.length;Sn++){var vn=Se[Sn];if(!(vn.from>=xt||vn.to<=vt)){var Qn=vn.level!=1,or=Da(a,le,Qn?Math.min(xt,vn.to)-1:Math.max(vt,vn.from)).right,yr=or<ze?ze-or+1e9:or-ze;(!Qt||on>yr)&&(Qt=vn,on=yr)}}return Qt||(Qt=Se[Se.length-1]),Qt.from<vt&&(Qt={from:vt,to:Qt.to,level:Qt.level}),Qt.to>xt&&(Qt={from:Qt.from,to:xt,level:Qt.level}),Qt}var xa;function wa(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(xa==null){xa=Ce("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)xa.appendChild(document.createTextNode("x")),xa.appendChild(Ce("br"));xa.appendChild(document.createTextNode("x"))}we(a.measure,xa);var ce=xa.offsetHeight/50;return ce>3&&(a.cachedTextHeight=ce),De(a.measure),ce||1}function La(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=Ce("span","xxxxxxxxxx"),ce=Ce("pre",[b],"CodeMirror-line-like");we(a.measure,ce);var le=b.getBoundingClientRect(),Se=(le.right-le.left)/10;return Se>2&&(a.cachedCharWidth=Se),Se||10}function rs(a){for(var b=a.display,ce={},le={},Se=b.gutters.clientLeft,ze=b.gutters.firstChild,rt=0;ze;ze=ze.nextSibling,++rt){var dt=a.display.gutterSpecs[rt].className;ce[dt]=ze.offsetLeft+ze.clientLeft+Se,le[dt]=ze.clientWidth}return{fixedPos:yl(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:ce,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),ce=a.options.lineWrapping,le=ce&&Math.max(5,a.display.scroller.clientWidth/La(a.display)-3);return function(Se){if(er(a.doc,Se))return 0;var ze=0;if(Se.widgets)for(var rt=0;rt<Se.widgets.length;rt++)Se.widgets[rt].height&&(ze+=Se.widgets[rt].height);return ce?ze+(Math.ceil(Se.text.length/le)||1)*b:ze+b}}function ws(a){var b=a.doc,ce=bl(a);b.iter(function(le){var Se=ce(le);Se!=le.height&&Gn(le,Se)})}function Ja(a,b,ce,le){var Se=a.display;if(!ce&&Ct(b).getAttribute("cm-not-content")=="true")return null;var ze,rt,dt=Se.lineSpace.getBoundingClientRect();try{ze=b.clientX-dt.left,rt=b.clientY-dt.top}catch(on){return null}var vt=Wo(a,ze,rt),xt;if(le&&vt.xRel>0&&(xt=cn(a.doc,vt.line).text).length==vt.ch){var Qt=Le(xt,xt.length,a.options.tabSize)-xt.length;vt=Et(vt.line,Math.max(0,Math.round((ze-_a(a.display).left)/La(a.display))-Qt))}return vt}function Wa(a,b){if(b>=a.display.viewTo||(b-=a.display.viewFrom,b<0))return null;for(var ce=a.display.view,le=0;le<ce.length;le++)if(b-=ce[le].size,b<0)return le}function la(a,b,ce,le){b==null&&(b=a.doc.first),ce==null&&(ce=a.doc.first+a.doc.size),le||(le=0);var Se=a.display;if(le&&ce<Se.viewTo&&(Se.updateLineNumbers==null||Se.updateLineNumbers>b)&&(Se.updateLineNumbers=b),a.curOp.viewChanged=!0,b>=Se.viewTo)Fn&&Vn(a.doc,b)<Se.viewTo&&Ua(a);else if(ce<=Se.viewFrom)Fn&&zn(a.doc,ce+le)>Se.viewFrom?Ua(a):(Se.viewFrom+=le,Se.viewTo+=le);else if(b<=Se.viewFrom&&ce>=Se.viewTo)Ua(a);else if(b<=Se.viewFrom){var ze=Ls(a,ce,ce+le,1);ze?(Se.view=Se.view.slice(ze.index),Se.viewFrom=ze.lineN,Se.viewTo+=le):Ua(a)}else if(ce>=Se.viewTo){var rt=Ls(a,b,b,-1);rt?(Se.view=Se.view.slice(0,rt.index),Se.viewTo=rt.lineN):Ua(a)}else{var dt=Ls(a,b,b,-1),vt=Ls(a,ce,ce+le,1);dt&&vt?(Se.view=Se.view.slice(0,dt.index).concat(qi(a,dt.lineN,vt.lineN)).concat(Se.view.slice(vt.index)),Se.viewTo+=le):Ua(a)}var xt=Se.externalMeasured;xt&&(ce<xt.lineN?xt.lineN+=le:b<xt.lineN+xt.size&&(Se.externalMeasured=null))}function is(a,b,ce){a.curOp.viewChanged=!0;var le=a.display,Se=a.display.externalMeasured;if(Se&&b>=Se.lineN&&b<Se.lineN+Se.size&&(le.externalMeasured=null),!(b<le.viewFrom||b>=le.viewTo)){var ze=le.view[Wa(a,b)];if(ze.node!=null){var rt=ze.changes||(ze.changes=[]);tt(rt,ce)==-1&&rt.push(ce)}}}function Ua(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ls(a,b,ce,le){var Se=Wa(a,b),ze,rt=a.display.view;if(!Fn||ce==a.doc.first+a.doc.size)return{index:Se,lineN:ce};for(var dt=a.display.viewFrom,vt=0;vt<Se;vt++)dt+=rt[vt].size;if(dt!=b){if(le>0){if(Se==rt.length-1)return null;ze=dt+rt[Se].size-b,Se++}else ze=dt-b;b+=ze,ce+=ze}for(;Vn(a.doc,ce)!=ce;){if(Se==(le<0?0:rt.length-1))return null;ce+=le*rt[Se-(le<0?1:0)].size,Se+=le}return{index:Se,lineN:ce}}function Hl(a,b,ce){var le=a.display,Se=le.view;Se.length==0||b>=le.viewTo||ce<=le.viewFrom?(le.view=qi(a,b,ce),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<ce?le.view=le.view.concat(qi(a,le.viewTo,ce)):le.viewTo>ce&&(le.view=le.view.slice(0,Wa(a,ce)))),le.viewTo=ce}function xl(a){for(var b=a.display.view,ce=0,le=0;le<b.length;le++){var Se=b[le];!Se.hidden&&(!Se.node||Se.changes)&&++ce}return ce}function hs(a){a.display.input.showSelection(a.display.input.prepareSelection())}function iu(a,b){b===void 0&&(b=!0);for(var ce=a.doc,le={},Se=le.cursors=document.createDocumentFragment(),ze=le.selection=document.createDocumentFragment(),rt=0;rt<ce.sel.ranges.length;rt++)if(!(!b&&rt==ce.sel.primIndex)){var dt=ce.sel.ranges[rt];if(!(dt.from().line>=a.display.viewTo||dt.to().line<a.display.viewFrom)){var vt=dt.empty();(vt||a.options.showCursorWhenSelecting)&&Zl(a,dt.head,Se),vt||Iu(a,dt,ze)}}return le}function Zl(a,b,ce){var le=aa(a,b,"div",null,null,!a.options.singleCursorHeightPerLine),Se=ce.appendChild(Ce("div","\xA0","CodeMirror-cursor"));if(Se.style.left=le.left+"px",Se.style.top=le.top+"px",Se.style.height=Math.max(0,le.bottom-le.top)*a.options.cursorHeight+"px",le.other){var ze=ce.appendChild(Ce("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ze.style.display="",ze.style.left=le.other.left+"px",ze.style.top=le.other.top+"px",ze.style.height=(le.other.bottom-le.other.top)*.85+"px"}}function Fs(a,b){return a.top-b.top||a.left-b.left}function Iu(a,b,ce){var le=a.display,Se=a.doc,ze=document.createDocumentFragment(),rt=_a(a.display),dt=rt.left,vt=Math.max(le.sizerWidth,$a(a)-le.sizer.offsetLeft)-rt.right,xt=Se.direction=="ltr";function Qt(Rr,Xr,vi,ci){Xr<0&&(Xr=0),Xr=Math.round(Xr),ci=Math.round(ci),ze.appendChild(Ce("div",null,"CodeMirror-selected","position: absolute; left: "+Rr+`px;
top: `+Xr+"px; width: "+(vi==null?vt-Rr:vi)+`px;
height: `+(ci-Xr)+"px"))}function on(Rr,Xr,vi){var ci=cn(Se,Rr),Li=ci.text.length,go,ra;function Mo(Vo,Ia){return ns(a,Et(Rr,Vo),"div",ci,Ia)}function Na(Vo,Ia,fa){var qo=ko(a,ci,null,Vo),Xo=Ia=="ltr"==(fa=="after")?"left":"right",Fo=fa=="after"?qo.begin:qo.end-(/\s/.test(ci.text.charAt(qo.end-1))?2:1);return Mo(Fo,Xo)[Xo]}var Oa=ut(ci,Se.direction);return Je(Oa,Xr||0,vi==null?Li:vi,function(Vo,Ia,fa,qo){var Xo=fa=="ltr",Fo=Mo(Vo,Xo?"left":"right"),Aa=Mo(Ia-1,Xo?"right":"left"),hl=Xr==null&&Vo==0,ks=vi==null&&Ia==Li,ba=qo==0,us=!Oa||qo==Oa.length-1;if(Aa.top-Fo.top<=3){var ia=(xt?hl:ks)&&ba,Tu=(xt?ks:hl)&&us,bs=ia?dt:(Xo?Fo:Aa).left,Xs=Tu?vt:(Xo?Aa:Fo).right;Qt(bs,Fo.top,Xs-bs,Fo.bottom)}else{var Ys,Sa,ml,Ou;Xo?(Ys=xt&&hl&&ba?dt:Fo.left,Sa=xt?vt:Na(Vo,fa,"before"),ml=xt?dt:Na(Ia,fa,"after"),Ou=xt&&ks&&us?vt:Aa.right):(Ys=xt?Na(Vo,fa,"before"):dt,Sa=!xt&&hl&&ba?vt:Fo.right,ml=!xt&&ks&&us?dt:Aa.left,Ou=xt?Na(Ia,fa,"after"):vt),Qt(Ys,Fo.top,Sa-Ys,Fo.bottom),Fo.bottom<Aa.top&&Qt(dt,Fo.bottom,null,Aa.top),Qt(ml,Aa.top,Ou-ml,Aa.bottom)}(!go||Fs(Fo,go)<0)&&(go=Fo),Fs(Aa,go)<0&&(go=Aa),(!ra||Fs(Fo,ra)<0)&&(ra=Fo),Fs(Aa,ra)<0&&(ra=Aa)}),{start:go,end:ra}}var Sn=b.from(),vn=b.to();if(Sn.line==vn.line)on(Sn.line,Sn.ch,vn.ch);else{var Qn=cn(Se,Sn.line),or=cn(Se,vn.line),yr=$n(Qn)==$n(or),kr=on(Sn.line,Sn.ch,yr?Qn.text.length+1:null).end,Hr=on(vn.line,yr?0:null,vn.ch).start;yr&&(kr.top<Hr.top-2?(Qt(kr.right,kr.top,null,kr.bottom),Qt(dt,Hr.top,Hr.left,Hr.bottom)):Qt(kr.right,kr.top,Hr.left-kr.right,kr.bottom)),kr.bottom<Hr.top&&Qt(dt,kr.bottom,null,Hr.top)}ce.appendChild(ze)}function wl(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var ce=!0;b.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?b.blinker=setInterval(function(){a.hasFocus()||Ss(a),b.cursorDiv.style.visibility=(ce=!ce)?"":"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||(Pt(a,"focus",a,b),a.state.focused=!0,Ee(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&&(Pt(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 si(a){for(var b=a.display,ce=b.lineDiv.offsetTop,le=0;le<b.view.length;le++){var Se=b.view[le],ze=a.options.lineWrapping,rt=void 0,dt=0;if(!Se.hidden){if(ye&&z<8){var vt=Se.node.offsetTop+Se.node.offsetHeight;rt=vt-ce,ce=vt}else{var xt=Se.node.getBoundingClientRect();rt=xt.bottom-xt.top,!ze&&Se.text.firstChild&&(dt=Se.text.firstChild.getBoundingClientRect().right-xt.left-1)}var Qt=Se.line.height-rt;if((Qt>.005||Qt<-.005)&&(Gn(Se.line,rt),Cs(Se.line),Se.rest))for(var on=0;on<Se.rest.length;on++)Cs(Se.rest[on]);if(dt>a.display.sizerWidth){var Sn=Math.ceil(dt/La(a.display));Sn>a.display.maxLineLength&&(a.display.maxLineLength=Sn,a.display.maxLine=Se.line,a.display.maxLineChanged=!0)}}}}function Cs(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b){var ce=a.widgets[b],le=ce.node.parentNode;le&&(ce.height=le.offsetHeight)}}function os(a,b,ce){var le=ce&&ce.top!=null?Math.max(0,ce.top):a.scroller.scrollTop;le=Math.floor(le-Do(a));var Se=ce&&ce.bottom!=null?ce.bottom:le+a.wrapper.clientHeight,ze=Kt(b,le),rt=Kt(b,Se);if(ce&&ce.ensure){var dt=ce.ensure.from.line,vt=ce.ensure.to.line;dt<ze?(ze=dt,rt=Kt(b,qr(cn(b,dt))+a.wrapper.clientHeight)):Math.min(vt,b.lastLine())>=rt&&(ze=Kt(b,qr(cn(b,vt))-a.wrapper.clientHeight),rt=vt)}return{from:ze,to:Math.max(rt,ze+1)}}function au(a,b){if(!Tt(a,"scrollCursorIntoView")){var ce=a.display,le=ce.sizer.getBoundingClientRect(),Se=null;if(b.top+le.top<0?Se=!0:b.bottom+le.top>(window.innerHeight||document.documentElement.clientHeight)&&(Se=!1),Se!=null&&!ae){var ze=Ce("div","\u200B",null,`position: absolute;
top: `+(b.top-ce.viewOffset-Do(a.display))+`px;
height: `+(b.bottom-b.top+ha(a)+ce.barHeight)+`px;
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");a.display.lineSpace.appendChild(ze),ze.scrollIntoView(Se),a.display.lineSpace.removeChild(ze)}}}function su(a,b,ce,le){le==null&&(le=0);var Se;!a.options.lineWrapping&&b==ce&&(b=b.ch?Et(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,ce=b.sticky=="before"?Et(b.line,b.ch+1,"before"):b);for(var ze=0;ze<5;ze++){var rt=!1,dt=aa(a,b),vt=!ce||ce==b?dt:aa(a,ce);Se={left:Math.min(dt.left,vt.left),top:Math.min(dt.top,vt.top)-le,right:Math.max(dt.left,vt.left),bottom:Math.max(dt.bottom,vt.bottom)+le};var xt=Sl(a,Se),Qt=a.doc.scrollTop,on=a.doc.scrollLeft;if(xt.scrollTop!=null&&(rl(a,xt.scrollTop),Math.abs(a.doc.scrollTop-Qt)>1&&(rt=!0)),xt.scrollLeft!=null&&(Ts(a,xt.scrollLeft),Math.abs(a.doc.scrollLeft-on)>1&&(rt=!0)),!rt)break}return Se}function Au(a,b){var ce=Sl(a,b);ce.scrollTop!=null&&rl(a,ce.scrollTop),ce.scrollLeft!=null&&Ts(a,ce.scrollLeft)}function Sl(a,b){var ce=a.display,le=wa(a.display);b.top<0&&(b.top=0);var Se=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:ce.scroller.scrollTop,ze=Ya(a),rt={};b.bottom-b.top>ze&&(b.bottom=b.top+ze);var dt=a.doc.height+ja(ce),vt=b.top<le,xt=b.bottom>dt-le;if(b.top<Se)rt.scrollTop=vt?0:b.top;else if(b.bottom>Se+ze){var Qt=Math.min(b.top,(xt?dt:b.bottom)-ze);Qt!=Se&&(rt.scrollTop=Qt)}var on=a.options.fixedGutter?0:ce.gutters.offsetWidth,Sn=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:ce.scroller.scrollLeft-on,vn=$a(a)-ce.gutters.offsetWidth,Qn=b.right-b.left>vn;return Qn&&(b.right=b.left+vn),b.left<10?rt.scrollLeft=0:b.left<Sn?rt.scrollLeft=Math.max(0,b.left+on-(Qn?0:10)):b.right>vn+Sn-3&&(rt.scrollLeft=b.right+(Qn?0:10)-vn),rt}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,ce){(b!=null||ce!=null)&&Cl(a),b!=null&&(a.curOp.scrollLeft=b),ce!=null&&(a.curOp.scrollTop=ce)}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 ce=Wi(a,b.from),le=Wi(a,b.to);Gl(a,ce,le,b.margin)}}function Gl(a,b,ce,le){var Se=Sl(a,{left:Math.min(b.left,ce.left),top:Math.min(b.top,ce.top)-le,right:Math.max(b.right,ce.right),bottom:Math.max(b.bottom,ce.bottom)+le});nl(a,Se.scrollLeft,Se.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,ce){b=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,b)),!(a.display.scroller.scrollTop==b&&!ce)&&(a.doc.scrollTop=b,a.display.scrollbars.setScrollTop(b),a.display.scroller.scrollTop!=b&&(a.display.scroller.scrollTop=b))}function Ts(a,b,ce,le){b=Math.max(0,Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((ce?b==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-b)<2)&&!le)&&(a.doc.scrollLeft=b,jt(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function _s(a){var b=a.display,ce=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?ce:0,docHeight:le,scrollHeight:le+ha(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:ce}}var Os=function(a,b,ce){this.cm=ce;var le=this.vert=Ce("div",[Ce("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Se=this.horiz=Ce("div",[Ce("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");le.tabIndex=Se.tabIndex=-1,a(le),a(Se),At(le,"scroll",function(){le.clientHeight&&b(le.scrollTop,"vertical")}),At(Se,"scroll",function(){Se.clientWidth&&b(Se.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ye&&z<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Os.prototype.update=function(a){var b=a.scrollWidth>a.clientWidth+1,ce=a.scrollHeight>a.clientHeight+1,le=a.nativeBarWidth;if(ce){this.vert.style.display="block",this.vert.style.bottom=b?le+"px":"0";var Se=a.viewHeight-(b?le:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+Se)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=ce?le+"px":"0",this.horiz.style.left=a.barLeft+"px";var ze=a.viewWidth-a.barLeft-(ce?le:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+ze)+"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:ce?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,ce){a.style.pointerEvents="auto";function le(){var Se=a.getBoundingClientRect(),ze=ce=="vert"?document.elementFromPoint(Se.right-1,(Se.top+Se.bottom)/2):document.elementFromPoint((Se.right+Se.left)/2,Se.bottom-1);ze!=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=_s(a));var ce=a.display.barWidth,le=a.display.barHeight;Xl(a,b);for(var Se=0;Se<4&&ce!=a.display.barWidth||le!=a.display.barHeight;Se++)ce!=a.display.barWidth&&a.options.lineWrapping&&si(a),Xl(a,_s(a)),ce=a.display.barWidth,le=a.display.barHeight}function Xl(a,b){var ce=a.display,le=ce.scrollbars.update(b);ce.sizer.style.paddingRight=(ce.barWidth=le.right)+"px",ce.sizer.style.paddingBottom=(ce.barHeight=le.bottom)+"px",ce.heightForcer.style.borderBottom=le.bottom+"px solid transparent",le.right&&le.bottom?(ce.scrollbarFiller.style.display="block",ce.scrollbarFiller.style.height=le.bottom+"px",ce.scrollbarFiller.style.width=le.right+"px"):ce.scrollbarFiller.style.display="",le.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(ce.gutterFiller.style.display="block",ce.gutterFiller.style.height=le.bottom+"px",ce.gutterFiller.style.width=b.gutterWidth+"px"):ce.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,ce){ce=="horizontal"?Ts(a,b):rl(a,b)},a),a.display.scrollbars.addClass&&Ee(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&&bi(b,function(ce){for(var le=0;le<ce.ops.length;le++)ce.ops[le].cm.curOp=null;cu(ce)})}function cu(a){for(var b=a.ops,ce=0;ce<b.length;ce++)Pu(b[ce]);for(var le=0;le<b.length;le++)du(b[le]);for(var Se=0;Se<b.length;Se++)Du(b[Se]);for(var ze=0;ze<b.length;ze++)fu(b[ze]);for(var rt=0;rt<b.length;rt++)ku(b[rt])}function Pu(a){var b=a.cm,ce=b.display;pu(b),a.updateMaxLine&&gi(b),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<ce.viewFrom||a.scrollToPos.to.line>=ce.viewTo)||ce.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 Du(a){var b=a.cm,ce=b.display;a.updatedDisplay&&si(b),a.barMeasure=_s(b),ce.maxLineChanged&&!b.options.lineWrapping&&(a.adjustWidthTo=Js(b,ce.maxLine,ce.maxLine.text.length).left+3,b.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(ce.scroller.clientWidth,ce.sizer.offsetLeft+a.adjustWidthTo+ha(b)+b.display.barWidth),a.maxScrollLeft=Math.max(0,ce.sizer.offsetLeft+a.adjustWidthTo-$a(b))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=ce.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 ce=a.focus&&a.focus==ke();a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,ce),(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),ce&&ou(a.cm)}function ku(a){var b=a.cm,ce=b.display,le=b.doc;if(a.updatedDisplay&&Ka(b,a.update),ce.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(ce.wheelStartX=ce.wheelStartY=null),a.scrollTop!=null&&Vl(b,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Ts(b,a.scrollLeft,!0,!0),a.scrollToPos){var Se=su(b,$t(le,a.scrollToPos.from),$t(le,a.scrollToPos.to),a.scrollToPos.margin);au(b,Se)}var ze=a.maybeHiddenMarkers,rt=a.maybeUnhiddenMarkers;if(ze)for(var dt=0;dt<ze.length;++dt)ze[dt].lines.length||Pt(ze[dt],"hide");if(rt)for(var vt=0;vt<rt.length;++vt)rt[vt].lines.length&&Pt(rt[vt],"unhide");ce.wrapper.offsetHeight&&(le.scrollTop=b.display.scroller.scrollTop),a.changeObjs&&Pt(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,Ve(Jl,a))}function Jl(a){var b=a.doc;if(!(b.highlightFrontier>=a.display.viewTo)){var ce=+new Date+a.options.workTime,le=cr(a,b.highlightFrontier),Se=[];b.iter(le.line,Math.min(b.first+b.size,a.display.viewTo+500),function(ze){if(le.line>=a.display.viewFrom){var rt=ze.styles,dt=ze.text.length>a.options.maxHighlightLength?Mn(b.mode,le.state):null,vt=Rn(a,ze,le,!0);dt&&(le.state=dt),ze.styles=vt.styles;var xt=ze.styleClasses,Qt=vt.classes;Qt?ze.styleClasses=Qt:xt&&(ze.styleClasses=null);for(var on=!rt||rt.length!=ze.styles.length||xt!=Qt&&(!xt||!Qt||xt.bgClass!=Qt.bgClass||xt.textClass!=Qt.textClass),Sn=0;!on&&Sn<rt.length;++Sn)on=rt[Sn]!=ze.styles[Sn];on&&Se.push(le.line),ze.stateAfter=le.save(),le.nextLine()}else ze.text.length<=a.options.maxHighlightLength&&mr(a,ze.text,le),ze.stateAfter=le.line%5==0?le.save():null,le.nextLine();if(+new Date>ce)return Hs(a,a.options.workDelay),!0}),b.highlightFrontier=le.line,b.modeFrontier=Math.max(b.modeFrontier,le.line),Se.length&&ma(a,function(){for(var ze=0;ze<Se.length;ze++)is(a,Se[ze],"text")})}}var il=function(a,b,ce){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=ce,this.dims=rs(a),this.events=[]};il.prototype.signal=function(a,b){Dt(a,b)&&this.events.push(arguments)},il.prototype.finish=function(){for(var a=0;a<this.events.length;a++)Pt.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=ke();if(!b||!Fe(a.display.lineDiv,b))return null;var ce={activeElt:b};if(window.getSelection){var le=window.getSelection();le.anchorNode&&le.extend&&Fe(a.display.lineDiv,le.anchorNode)&&(ce.anchorNode=le.anchorNode,ce.anchorOffset=le.anchorOffset,ce.focusNode=le.focusNode,ce.focusOffset=le.focusOffset)}return ce}function mu(a){if(!(!a||!a.activeElt||a.activeElt==ke())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Fe(document.body,a.anchorNode)&&Fe(document.body,a.focusNode))){var b=window.getSelection(),ce=document.createRange();ce.setEnd(a.anchorNode,a.anchorOffset),ce.collapse(!1),b.removeAllRanges(),b.addRange(ce),b.extend(a.focusNode,a.focusOffset)}}function El(a,b){var ce=a.display,le=a.doc;if(b.editorIsHidden)return Ua(a),!1;if(!b.force&&b.visible.from>=ce.viewFrom&&b.visible.to<=ce.viewTo&&(ce.updateLineNumbers==null||ce.updateLineNumbers>=ce.viewTo)&&ce.renderedView==ce.view&&xl(a)==0)return!1;Bt(a)&&(Ua(a),b.dims=rs(a));var Se=le.first+le.size,ze=Math.max(b.visible.from-a.options.viewportMargin,le.first),rt=Math.min(Se,b.visible.to+a.options.viewportMargin);ce.viewFrom<ze&&ze-ce.viewFrom<20&&(ze=Math.max(le.first,ce.viewFrom)),ce.viewTo>rt&&ce.viewTo-rt<20&&(rt=Math.min(Se,ce.viewTo)),Fn&&(ze=Vn(a.doc,ze),rt=zn(a.doc,rt));var dt=ze!=ce.viewFrom||rt!=ce.viewTo||ce.lastWrapHeight!=b.wrapperHeight||ce.lastWrapWidth!=b.wrapperWidth;Hl(a,ze,rt),ce.viewOffset=qr(cn(a.doc,ce.viewFrom)),a.display.mover.style.top=ce.viewOffset+"px";var vt=xl(a);if(!dt&&vt==0&&!b.force&&ce.renderedView==ce.view&&(ce.updateLineNumbers==null||ce.updateLineNumbers>=ce.viewTo))return!1;var xt=hu(a);return vt>4&&(ce.lineDiv.style.display="none"),vu(a,ce.updateLineNumbers,b.dims),vt>4&&(ce.lineDiv.style.display=""),ce.renderedView=ce.view,mu(xt),De(ce.cursorDiv),De(ce.selectionDiv),ce.gutters.style.height=ce.sizer.style.minHeight=0,dt&&(ce.lastWrapHeight=b.wrapperHeight,ce.lastWrapWidth=b.wrapperWidth,Hs(a,400)),ce.updateLineNumbers=null,!0}function Ka(a,b){for(var ce=b.viewport,le=!0;;le=!1){if(!le||!a.options.lineWrapping||b.oldDisplayWidth==$a(a)){if(ce&&ce.top!=null&&(ce={top:Math.min(a.doc.height+ja(a.display)-Ya(a),ce.top)}),b.visible=os(a.display,a.doc,ce),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break}else le&&(b.visible=os(a.display,a.doc,ce));if(!El(a,b))break;si(a);var Se=_s(a);hs(a),zs(a,Se),pt(a,Se),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 ce=new il(a,b);if(El(a,ce)){si(a),Ka(a,ce);var le=_s(a);hs(a),zs(a,le),pt(a,le),ce.finish()}}function vu(a,b,ce){var le=a.display,Se=a.options.lineNumbers,ze=le.lineDiv,rt=ze.firstChild;function dt(Qn){var or=Qn.nextSibling;return E&&pe&&a.display.currentWheelTarget==Qn?Qn.style.display="none":Qn.parentNode.removeChild(Qn),or}for(var vt=le.view,xt=le.viewFrom,Qt=0;Qt<vt.length;Qt++){var on=vt[Qt];if(!on.hidden)if(!on.node||on.node.parentNode!=ze){var Sn=pi(a,on,xt,ce);ze.insertBefore(Sn,rt)}else{for(;rt!=on.node;)rt=dt(rt);var vn=Se&&b!=null&&b<=xt&&on.lineNumber;on.changes&&(tt(on.changes,"gutter")>-1&&(vn=!1),pa(a,on,xt,ce)),vn&&(De(on.lineNumber),on.lineNumber.appendChild(document.createTextNode(Nt(a.options,xt)))),rt=on.node.nextSibling}xt+=on.size}for(;rt;)rt=dt(rt)}function mt(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 jt(a){var b=a.display,ce=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!a.options.fixedGutter))){for(var le=yl(b)-b.scroller.scrollLeft+a.doc.scrollLeft,Se=b.gutters.offsetWidth,ze=le+"px",rt=0;rt<ce.length;rt++)if(!ce[rt].hidden){a.options.fixedGutter&&(ce[rt].gutter&&(ce[rt].gutter.style.left=ze),ce[rt].gutterBackground&&(ce[rt].gutterBackground.style.left=ze));var dt=ce[rt].alignable;if(dt)for(var vt=0;vt<dt.length;vt++)dt[vt].style.left=ze}a.options.fixedGutter&&(b.gutters.style.left=le+Se+"px")}}function Bt(a){if(!a.options.lineNumbers)return!1;var b=a.doc,ce=Nt(a.options,b.first+b.size-1),le=a.display;if(ce.length!=le.lineNumChars){var Se=le.measure.appendChild(Ce("div",[Ce("div",ce)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ze=Se.firstChild.offsetWidth,rt=Se.offsetWidth-ze;return le.lineGutter.style.width="",le.lineNumInnerWidth=Math.max(ze,le.lineGutter.offsetWidth-rt)+1,le.lineNumWidth=le.lineNumInnerWidth+rt,le.lineNumChars=le.lineNumInnerWidth?ce.length:-1,le.lineGutter.style.width=le.lineNumWidth+"px",mt(a.display),!0}return!1}function Jt(a,b){for(var ce=[],le=!1,Se=0;Se<a.length;Se++){var ze=a[Se],rt=null;if(typeof ze!="string"&&(rt=ze.style,ze=ze.className),ze=="CodeMirror-linenumbers")if(b)le=!0;else continue;ce.push({className:ze,style:rt})}return b&&!le&&ce.push({className:"CodeMirror-linenumbers",style:null}),ce}function nn(a){var b=a.gutters,ce=a.gutterSpecs;De(b),a.lineGutter=null;for(var le=0;le<ce.length;++le){var Se=ce[le],ze=Se.className,rt=Se.style,dt=b.appendChild(Ce("div",null,"CodeMirror-gutter "+ze));rt&&(dt.style.cssText=rt),ze=="CodeMirror-linenumbers"&&(a.lineGutter=dt,dt.style.width=(a.lineNumWidth||1)+"px")}b.style.display=ce.length?"":"none",mt(a)}function dn(a){nn(a.display),la(a),jt(a)}function an(a,b,ce,le){var Se=this;this.input=ce,Se.scrollbarFiller=Ce("div",null,"CodeMirror-scrollbar-filler"),Se.scrollbarFiller.setAttribute("cm-not-content","true"),Se.gutterFiller=Ce("div",null,"CodeMirror-gutter-filler"),Se.gutterFiller.setAttribute("cm-not-content","true"),Se.lineDiv=Oe("div",null,"CodeMirror-code"),Se.selectionDiv=Ce("div",null,null,"position: relative; z-index: 1"),Se.cursorDiv=Ce("div",null,"CodeMirror-cursors"),Se.measure=Ce("div",null,"CodeMirror-measure"),Se.lineMeasure=Ce("div",null,"CodeMirror-measure"),Se.lineSpace=Oe("div",[Se.measure,Se.lineMeasure,Se.selectionDiv,Se.cursorDiv,Se.lineDiv],null,"position: relative; outline: none");var ze=Oe("div",[Se.lineSpace],"CodeMirror-lines");Se.mover=Ce("div",[ze],null,"position: relative"),Se.sizer=Ce("div",[Se.mover],"CodeMirror-sizer"),Se.sizerWidth=null,Se.heightForcer=Ce("div",null,null,"position: absolute; height: "+nt+"px; width: 1px;"),Se.gutters=Ce("div",null,"CodeMirror-gutters"),Se.lineGutter=null,Se.scroller=Ce("div",[Se.sizer,Se.heightForcer,Se.gutters],"CodeMirror-scroll"),Se.scroller.setAttribute("tabIndex","-1"),Se.wrapper=Ce("div",[Se.scrollbarFiller,Se.gutterFiller,Se.scroller],"CodeMirror"),ye&&z<8&&(Se.gutters.style.zIndex=-1,Se.scroller.style.paddingRight=0),!E&&!(te&&ue)&&(Se.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(Se.wrapper):a(Se.wrapper)),Se.viewFrom=Se.viewTo=b.first,Se.reportedViewFrom=Se.reportedViewTo=b.first,Se.view=[],Se.renderedView=null,Se.externalMeasured=null,Se.viewOffset=0,Se.lastWrapHeight=Se.lastWrapWidth=0,Se.updateLineNumbers=null,Se.nativeBarWidth=Se.barHeight=Se.barWidth=0,Se.scrollbarsClipped=!1,Se.lineNumWidth=Se.lineNumInnerWidth=Se.lineNumChars=null,Se.alignWidgets=!1,Se.cachedCharWidth=Se.cachedTextHeight=Se.cachedPaddingH=null,Se.maxLine=null,Se.maxLineLength=0,Se.maxLineChanged=!1,Se.wheelDX=Se.wheelDY=Se.wheelStartX=Se.wheelStartY=null,Se.shift=!1,Se.selForContextMenu=null,Se.activeTouch=null,Se.gutterSpecs=Jt(le.gutters,le.lineNumbers),nn(Se),ce.init(Se)}var mn=0,fn=null;ye?fn=-.53:te?fn=15:oe?fn=-.7:de&&(fn=-1/3);function Zn(a){var b=a.wheelDeltaX,ce=a.wheelDeltaY;return b==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(b=a.detail),ce==null&&a.detail&&a.axis==a.VERTICAL_AXIS?ce=a.detail:ce==null&&(ce=a.wheelDelta),{x:b,y:ce}}function Dn(a){var b=Zn(a);return b.x*=fn,b.y*=fn,b}function An(a,b){var ce=Zn(b),le=ce.x,Se=ce.y,ze=a.display,rt=ze.scroller,dt=rt.scrollWidth>rt.clientWidth,vt=rt.scrollHeight>rt.clientHeight;if(le&&dt||Se&&vt){if(Se&&pe&&E){e:for(var xt=b.target,Qt=ze.view;xt!=rt;xt=xt.parentNode)for(var on=0;on<Qt.length;on++)if(Qt[on].node==xt){a.display.currentWheelTarget=xt;break e}}if(le&&!te&&!ee&&fn!=null){Se&&vt&&rl(a,Math.max(0,rt.scrollTop+Se*fn)),Ts(a,Math.max(0,rt.scrollLeft+le*fn)),(!Se||Se&&vt)&&It(b),ze.wheelStartX=null;return}if(Se&&fn!=null){var Sn=Se*fn,vn=a.doc.scrollTop,Qn=vn+ze.wrapper.clientHeight;Sn<0?vn=Math.max(0,vn+Sn-50):Qn=Math.min(a.doc.height,Qn+Sn+50),Tl(a,{top:vn,bottom:Qn})}mn<20&&(ze.wheelStartX==null?(ze.wheelStartX=rt.scrollLeft,ze.wheelStartY=rt.scrollTop,ze.wheelDX=le,ze.wheelDY=Se,setTimeout(function(){if(ze.wheelStartX!=null){var or=rt.scrollLeft-ze.wheelStartX,yr=rt.scrollTop-ze.wheelStartY,kr=yr&&ze.wheelDY&&yr/ze.wheelDY||or&&ze.wheelDX&&or/ze.wheelDX;ze.wheelStartX=ze.wheelStartY=null,kr&&(fn=(fn*mn+kr)/(mn+1),++mn)}},200)):(ze.wheelDX+=le,ze.wheelDY+=Se))}}var xn=function(a,b){this.ranges=a,this.primIndex=b};xn.prototype.primary=function(){return this.ranges[this.primIndex]},xn.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 ce=this.ranges[b],le=a.ranges[b];if(!bt(ce.anchor,le.anchor)||!bt(ce.head,le.head))return!1}return!0},xn.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new bn(Wt(this.ranges[b].anchor),Wt(this.ranges[b].head));return new xn(a,this.primIndex)},xn.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},xn.prototype.contains=function(a,b){b||(b=a);for(var ce=0;ce<this.ranges.length;ce++){var le=this.ranges[ce];if(zt(b,le.from())>=0&&zt(a,le.to())<=0)return ce}return-1};var bn=function(a,b){this.anchor=a,this.head=b};bn.prototype.from=function(){return qt(this.anchor,this.head)},bn.prototype.to=function(){return Ft(this.anchor,this.head)},bn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function lr(a,b,ce){var le=a&&a.options.selectionsMayTouch,Se=b[ce];b.sort(function(Sn,vn){return zt(Sn.from(),vn.from())}),ce=tt(b,Se);for(var ze=1;ze<b.length;ze++){var rt=b[ze],dt=b[ze-1],vt=zt(dt.to(),rt.from());if(le&&!rt.empty()?vt>0:vt>=0){var xt=qt(dt.from(),rt.from()),Qt=Ft(dt.to(),rt.to()),on=dt.empty()?rt.from()==rt.head:dt.from()==dt.head;ze<=ce&&--ce,b.splice(--ze,2,new bn(on?Qt:xt,on?xt:Qt))}}return new xn(b,ce)}function Jn(a,b){return new xn([new bn(a,b||a)],0)}function dr(a){return a.text?Et(a.from.line+a.text.length-1,at(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function vr(a,b){if(zt(a,b.from)<0)return a;if(zt(a,b.to)<=0)return dr(b);var ce=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),Et(ce,le)}function fr(a,b){for(var ce=[],le=0;le<a.sel.ranges.length;le++){var Se=a.sel.ranges[le];ce.push(new bn(vr(Se.anchor,b),vr(Se.head,b)))}return lr(a.cm,ce,a.sel.primIndex)}function xr(a,b,ce){return a.line==b.line?Et(ce.line,a.ch-b.ch+ce.ch):Et(ce.line+(a.line-b.line),a.ch)}function jr(a,b,ce){for(var le=[],Se=Et(a.first,0),ze=Se,rt=0;rt<b.length;rt++){var dt=b[rt],vt=xr(dt.from,Se,ze),xt=xr(dr(dt),Se,ze);if(Se=dt.to,ze=xt,ce=="around"){var Qt=a.sel.ranges[rt],on=zt(Qt.head,Qt.anchor)<0;le[rt]=new bn(on?xt:vt,on?vt:xt)}else le[rt]=new bn(vt,vt)}return new xn(le,a.sel.primIndex)}function Fr(a){a.doc.mode=Tn(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 yi(a,b){return b.from.ch==0&&b.to.ch==0&&at(b.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Jr(a,b,ce,le){function Se(Hr){return ce?ce[Hr]:null}function ze(Hr,Rr,Xr){Oi(Hr,Rr,Xr,le),Di(Hr,"change",Hr,b)}function rt(Hr,Rr){for(var Xr=[],vi=Hr;vi<Rr;++vi)Xr.push(new ki(xt[vi],Se(vi),le));return Xr}var dt=b.from,vt=b.to,xt=b.text,Qt=cn(a,dt.line),on=cn(a,vt.line),Sn=at(xt),vn=Se(xt.length-1),Qn=vt.line-dt.line;if(b.full)a.insert(0,rt(0,xt.length)),a.remove(xt.length,a.size-xt.length);else if(yi(a,b)){var or=rt(0,xt.length-1);ze(on,on.text,vn),Qn&&a.remove(dt.line,Qn),or.length&&a.insert(dt.line,or)}else if(Qt==on)if(xt.length==1)ze(Qt,Qt.text.slice(0,dt.ch)+Sn+Qt.text.slice(vt.ch),vn);else{var yr=rt(1,xt.length-1);yr.push(new ki(Sn+Qt.text.slice(vt.ch),vn,le)),ze(Qt,Qt.text.slice(0,dt.ch)+xt[0],Se(0)),a.insert(dt.line+1,yr)}else if(xt.length==1)ze(Qt,Qt.text.slice(0,dt.ch)+xt[0]+on.text.slice(vt.ch),Se(0)),a.remove(dt.line+1,Qn);else{ze(Qt,Qt.text.slice(0,dt.ch)+xt[0],Se(0)),ze(on,Sn+on.text.slice(vt.ch),vn);var kr=rt(1,xt.length-1);Qn>1&&a.remove(dt.line+1,Qn-1),a.insert(dt.line+1,kr)}Di(a,"change",a,b)}function Ur(a,b,ce){function le(Se,ze,rt){if(Se.linked)for(var dt=0;dt<Se.linked.length;++dt){var vt=Se.linked[dt];if(vt.doc!=ze){var xt=rt&&vt.sharedHist;ce&&!xt||(b(vt.doc,xt),le(vt.doc,Se,xt))}}}le(a,null,!0)}function li(a,b){if(b.cm)throw new Error("This document is already in use.");a.doc=b,b.cm=a,ws(a),Fr(a),_r(a),a.options.lineWrapping||gi(a),a.options.mode=b.modeOption,la(a)}function _r(a){(a.doc.direction=="rtl"?Ee:Be)(a.display.lineDiv,"CodeMirror-rtl")}function $r(a){ma(a,function(){_r(a),la(a)})}function Er(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 gr(a,b){var ce={from:Wt(b.from),to:dr(b),text:tn(a,b.from,b.to)};return yo(a,ce,b.from.line,b.to.line+1),Ur(a,function(le){return yo(le,ce,b.from.line,b.to.line+1)},!0),ce}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,ce,le){var Se=a.history;Se.undone.length=0;var ze=+new Date,rt,dt;if((Se.lastOp==le||Se.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&Se.lastModTime>ze-(a.cm?a.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(rt=zr(Se,Se.lastOp==le)))dt=at(rt.changes),zt(b.from,b.to)==0&&zt(b.from,dt.to)==0?dt.to=dr(b):rt.changes.push(gr(a,b));else{var vt=at(Se.done);for((!vt||!vt.ranges)&&Ai(a.sel,Se.done),rt={changes:[gr(a,b)],generation:Se.generation},Se.done.push(rt);Se.done.length>Se.undoDepth;)Se.done.shift(),Se.done[0].ranges||Se.done.shift()}Se.done.push(ce),Se.generation=++Se.maxGeneration,Se.lastModTime=Se.lastSelTime=ze,Se.lastOp=Se.lastSelOp=le,Se.lastOrigin=Se.lastSelOrigin=b.origin,dt||Pt(a,"historyAdded")}function Or(a,b,ce,le){var Se=b.charAt(0);return Se=="*"||Se=="+"&&ce.ranges.length==le.ranges.length&&ce.somethingSelected()==le.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function Ei(a,b,ce,le){var Se=a.history,ze=le&&le.origin;ce==Se.lastSelOp||ze&&Se.lastSelOrigin==ze&&(Se.lastModTime==Se.lastSelTime&&Se.lastOrigin==ze||Or(a,ze,at(Se.done),b))?Se.done[Se.done.length-1]=b:Ai(b,Se.done),Se.lastSelTime=+new Date,Se.lastSelOrigin=ze,Se.lastSelOp=ce,le&&le.clearRedo!==!1&&Lr(Se.undone)}function Ai(a,b){var ce=at(b);ce&&ce.ranges&&ce.equals(a)||b.push(a)}function yo(a,b,ce,le){var Se=b["spans_"+a.id],ze=0;a.iter(Math.max(a.first,ce),Math.min(a.first+a.size,le),function(rt){rt.markedSpans&&((Se||(Se=b["spans_"+a.id]={}))[ze]=rt.markedSpans),++ze})}function fo(a){if(!a)return null;for(var b,ce=0;ce<a.length;++ce)a[ce].marker.explicitlyCleared?b||(b=a.slice(0,ce)):b&&b.push(a[ce]);return b?b.length?b:null:a}function ro(a,b){var ce=b["spans_"+a.id];if(!ce)return null;for(var le=[],Se=0;Se<b.text.length;++Se)le.push(fo(ce[Se]));return le}function po(a,b){var ce=ro(a,b),le=ni(a,b);if(!ce)return le;if(!le)return ce;for(var Se=0;Se<ce.length;++Se){var ze=ce[Se],rt=le[Se];if(ze&&rt)e:for(var dt=0;dt<rt.length;++dt){for(var vt=rt[dt],xt=0;xt<ze.length;++xt)if(ze[xt].marker==vt.marker)continue e;ze.push(vt)}else rt&&(ce[Se]=rt)}return ce}function So(a,b,ce){for(var le=[],Se=0;Se<a.length;++Se){var ze=a[Se];if(ze.ranges){le.push(ce?xn.prototype.deepCopy.call(ze):ze);continue}var rt=ze.changes,dt=[];le.push({changes:dt});for(var vt=0;vt<rt.length;++vt){var xt=rt[vt],Qt=void 0;if(dt.push({from:xt.from,to:xt.to,text:xt.text}),b)for(var on in xt)(Qt=on.match(/^spans_(\d+)$/))&&tt(b,Number(Qt[1]))>-1&&(at(dt)[on]=xt[on],delete xt[on])}}return le}function ji(a,b,ce,le){if(le){var Se=a.anchor;if(ce){var ze=zt(b,Se)<0;ze!=zt(ce,Se)<0?(Se=b,b=ce):ze!=zt(b,ce)<0&&(b=ce)}return new bn(Se,b)}else return new bn(ce||b,b)}function Pi(a,b,ce,le,Se){Se==null&&(Se=a.cm&&(a.cm.display.shift||a.extend)),Br(a,new xn([ji(a.sel.primary(),b,ce,Se)],0),le)}function Co(a,b,ce){for(var le=[],Se=a.cm&&(a.cm.display.shift||a.extend),ze=0;ze<a.sel.ranges.length;ze++)le[ze]=ji(a.sel.ranges[ze],b[ze],null,Se);var rt=lr(a.cm,le,a.sel.primIndex);Br(a,rt,ce)}function Ro(a,b,ce,le){var Se=a.sel.ranges.slice(0);Se[b]=ce,Br(a,lr(a.cm,Se,a.sel.primIndex),le)}function Vr(a,b,ce,le){Br(a,Jn(b,ce),le)}function mi(a,b,ce){var le={ranges:b.ranges,update:function(Se){this.ranges=[];for(var ze=0;ze<Se.length;ze++)this.ranges[ze]=new bn($t(a,Se[ze].anchor),$t(a,Se[ze].head))},origin:ce&&ce.origin};return Pt(a,"beforeSelectionChange",a,le),a.cm&&Pt(a.cm,"beforeSelectionChange",a.cm,le),le.ranges!=b.ranges?lr(a.cm,le.ranges,le.ranges.length-1):b}function Zr(a,b,ce){var le=a.history.done,Se=at(le);Se&&Se.ranges?(le[le.length-1]=b,Bi(a,b,ce)):Br(a,b,ce)}function Br(a,b,ce){Bi(a,b,ce),Ei(a,a.sel,a.cm?a.cm.curOp.id:NaN,ce)}function Bi(a,b,ce){(Dt(a,"beforeSelectionChange")||a.cm&&Dt(a.cm,"beforeSelectionChange"))&&(b=mi(a,b,ce));var le=ce&&ce.bias||(zt(b.primary().head,a.sel.primary().head)<0?-1:1);Ki(a,to(a,b,le,!0)),!(ce&&ce.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)),Di(a,"cursorActivity",a))}function uo(a){Ki(a,to(a,a.sel,null,!1))}function to(a,b,ce,le){for(var Se,ze=0;ze<b.ranges.length;ze++){var rt=b.ranges[ze],dt=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[ze],vt=Bo(a,rt.anchor,dt&&dt.anchor,ce,le),xt=Bo(a,rt.head,dt&&dt.head,ce,le);(Se||vt!=rt.anchor||xt!=rt.head)&&(Se||(Se=b.ranges.slice(0,ze)),Se[ze]=new bn(vt,xt))}return Se?lr(a.cm,Se,b.primIndex):b}function Eo(a,b,ce,le,Se){var ze=cn(a,b.line);if(ze.markedSpans)for(var rt=0;rt<ze.markedSpans.length;++rt){var dt=ze.markedSpans[rt],vt=dt.marker,xt="selectLeft"in vt?!vt.selectLeft:vt.inclusiveLeft,Qt="selectRight"in vt?!vt.selectRight:vt.inclusiveRight;if((dt.from==null||(xt?dt.from<=b.ch:dt.from<b.ch))&&(dt.to==null||(Qt?dt.to>=b.ch:dt.to>b.ch))){if(Se&&(Pt(vt,"beforeCursorEnter"),vt.explicitlyCleared))if(ze.markedSpans){--rt;continue}else break;if(!vt.atomic)continue;if(ce){var on=vt.find(le<0?1:-1),Sn=void 0;if((le<0?Qt:xt)&&(on=Yr(a,on,-le,on&&on.line==b.line?ze:null)),on&&on.line==b.line&&(Sn=zt(on,ce))&&(le<0?Sn<0:Sn>0))return Eo(a,on,b,le,Se)}var vn=vt.find(le<0?-1:1);return(le<0?xt:Qt)&&(vn=Yr(a,vn,le,vn.line==b.line?ze:null)),vn?Eo(a,vn,b,le,Se):null}}return b}function Bo(a,b,ce,le,Se){var ze=le||1,rt=Eo(a,b,ce,ze,Se)||!Se&&Eo(a,b,ce,ze,!0)||Eo(a,b,ce,-ze,Se)||!Se&&Eo(a,b,ce,-ze,!0);return rt||(a.cantEdit=!0,Et(a.first,0))}function Yr(a,b,ce,le){return ce<0&&b.ch==0?b.line>a.first?$t(a,Et(b.line-1)):null:ce>0&&b.ch==(le||cn(a,b.line)).text.length?b.line<a.first+a.size-1?Et(b.line+1,0):null:new Et(b.line,b.ch+ce)}function ii(a){a.setSelection(Et(a.firstLine(),0),Et(a.lastLine()),Ze)}function Vi(a,b,ce){var le={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return le.canceled=!0}};return ce&&(le.update=function(Se,ze,rt,dt){Se&&(le.from=$t(a,Se)),ze&&(le.to=$t(a,ze)),rt&&(le.text=rt),dt!==void 0&&(le.origin=dt)}),Pt(a,"beforeChange",a,le),a.cm&&Pt(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,ce){if(a.cm){if(!a.cm.curOp)return Jo(a.cm,eo)(a,b,ce);if(a.cm.state.suppressEdits)return}if(!((Dt(a,"beforeChange")||a.cm&&Dt(a.cm,"beforeChange"))&&(b=Vi(a,b,!0),!b))){var le=kn&&!ce&&oi(a,b.from,b.to);if(le)for(var Se=le.length-1;Se>=0;--Se)Ji(a,{from:le[Se].from,to:le[Se].to,text:Se?[""]:b.text,origin:b.origin});else Ji(a,b)}}function Ji(a,b){if(!(b.text.length==1&&b.text[0]==""&&zt(b.from,b.to)==0)){var ce=fr(a,b);Qr(a,b,ce,a.cm?a.cm.curOp.id:NaN),va(a,b,ce,ni(a,b));var le=[];Ur(a,function(Se,ze){!ze&&tt(le,Se.history)==-1&&(Lo(Se.history,b),le.push(Se.history)),va(Se,b,null,ni(Se,b))})}}function $o(a,b,ce){var le=a.cm&&a.cm.state.suppressEdits;if(!(le&&!ce)){for(var Se=a.history,ze,rt=a.sel,dt=b=="undo"?Se.done:Se.undone,vt=b=="undo"?Se.undone:Se.done,xt=0;xt<dt.length&&(ze=dt[xt],!(ce?ze.ranges&&!ze.equals(a.sel):!ze.ranges));xt++);if(xt!=dt.length){for(Se.lastOrigin=Se.lastSelOrigin=null;;)if(ze=dt.pop(),ze.ranges){if(Ai(ze,vt),ce&&!ze.equals(a.sel)){Br(a,ze,{clearRedo:!1});return}rt=ze}else if(le){dt.push(ze);return}else break;var Qt=[];Ai(rt,vt),vt.push({changes:Qt,generation:Se.generation}),Se.generation=ze.generation||++Se.maxGeneration;for(var on=Dt(a,"beforeChange")||a.cm&&Dt(a.cm,"beforeChange"),Sn=function(or){var yr=ze.changes[or];if(yr.origin=b,on&&!Vi(a,yr,!1))return dt.length=0,{};Qt.push(gr(a,yr));var kr=or?fr(a,yr):at(dt);va(a,yr,kr,po(a,yr)),!or&&a.cm&&a.cm.scrollIntoView({from:yr.from,to:dr(yr)});var Hr=[];Ur(a,function(Rr,Xr){!Xr&&tt(Hr,Rr.history)==-1&&(Lo(Rr.history,yr),Hr.push(Rr.history)),va(Rr,yr,null,po(Rr,yr))})},vn=ze.changes.length-1;vn>=0;--vn){var Qn=Sn(vn);if(Qn)return Qn.v}}}}function To(a,b){if(b!=0&&(a.first+=b,a.sel=new xn(qe(a.sel.ranges,function(Se){return new bn(Et(Se.anchor.line+b,Se.anchor.ch),Et(Se.head.line+b,Se.head.ch))}),a.sel.primIndex),a.cm)){la(a.cm,a.first,a.first-b,b);for(var ce=a.cm.display,le=ce.viewFrom;le<ce.viewTo;le++)is(a.cm,le,"gutter")}}function va(a,b,ce,le){if(a.cm&&!a.cm.curOp)return Jo(a.cm,va)(a,b,ce,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 Se=b.text.length-1-(a.first-b.from.line);To(a,Se),b={from:Et(a.first,0),to:Et(b.to.line+Se,b.to.ch),text:[at(b.text)],origin:b.origin}}var ze=a.lastLine();b.to.line>ze&&(b={from:b.from,to:Et(ze,cn(a,ze).text.length),text:[b.text[0]],origin:b.origin}),b.removed=tn(a,b.from,b.to),ce||(ce=fr(a,b)),a.cm?ho(a.cm,b,le):Jr(a,b,le),Bi(a,ce,Ze),a.cantEdit&&Bo(a,Et(a.firstLine(),0))&&(a.cantEdit=!1)}}function ho(a,b,ce){var le=a.doc,Se=a.display,ze=b.from,rt=b.to,dt=!1,vt=ze.line;a.options.lineWrapping||(vt=Mt($n(cn(le,ze.line))),le.iter(vt,rt.line+1,function(vn){if(vn==Se.maxLine)return dt=!0,!0})),le.sel.contains(b.from,b.to)>-1&&kt(a),Jr(le,b,ce,bl(a)),a.options.lineWrapping||(le.iter(vt,ze.line+b.text.length,function(vn){var Qn=Ti(vn);Qn>Se.maxLineLength&&(Se.maxLine=vn,Se.maxLineLength=Qn,Se.maxLineChanged=!0,dt=!1)}),dt&&(a.curOp.updateMaxLine=!0)),qn(le,ze.line),Hs(a,400);var xt=b.text.length-(rt.line-ze.line)-1;b.full?la(a):ze.line==rt.line&&b.text.length==1&&!yi(a.doc,b)?is(a,ze.line,"text"):la(a,ze.line,rt.line+1,xt);var Qt=Dt(a,"changes"),on=Dt(a,"change");if(on||Qt){var Sn={from:ze,to:rt,text:b.text,removed:b.removed,origin:b.origin};on&&Di(a,"change",a,Sn),Qt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Sn)}a.display.selForContextMenu=null}function $i(a,b,ce,le,Se){var ze;le||(le=ce),zt(le,ce)<0&&(ze=[le,ce],ce=ze[0],le=ze[1]),typeof b=="string"&&(b=a.splitLines(b)),eo(a,{from:ce,to:le,text:b,origin:Se})}function no(a,b,ce,le){ce<a.line?a.line+=le:b<a.line&&(a.line=b,a.ch=0)}function io(a,b,ce,le){for(var Se=0;Se<a.length;++Se){var ze=a[Se],rt=!0;if(ze.ranges){ze.copied||(ze=a[Se]=ze.deepCopy(),ze.copied=!0);for(var dt=0;dt<ze.ranges.length;dt++)no(ze.ranges[dt].anchor,b,ce,le),no(ze.ranges[dt].head,b,ce,le);continue}for(var vt=0;vt<ze.changes.length;++vt){var xt=ze.changes[vt];if(ce<xt.from.line)xt.from=Et(xt.from.line+le,xt.from.ch),xt.to=Et(xt.to.line+le,xt.to.ch);else if(b<=xt.to.line){rt=!1;break}}rt||(a.splice(0,Se+1),Se=0)}}function Lo(a,b){var ce=b.from.line,le=b.to.line,Se=b.text.length-(le-ce)-1;io(a.done,ce,le,Se),io(a.undone,ce,le,Se)}function bo(a,b,ce,le){var Se=b,ze=b;return typeof b=="number"?ze=cn(a,_t(a,b)):Se=Mt(b),Se==null?null:(le(ze,Se)&&a.cm&&is(a.cm,Se,ce),ze)}function zi(a){this.lines=a,this.parent=null;for(var b=0,ce=0;ce<a.length;++ce)a[ce].parent=this,b+=a[ce].height;this.height=b}zi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var ce=a,le=a+b;ce<le;++ce){var Se=this.lines[ce];this.height-=Se.height,Ii(Se),Di(Se,"delete")}this.lines.splice(a,b)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,b,ce){this.height+=ce,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,ce){for(var le=a+b;a<le;++a)if(ce(this.lines[a]))return!0}};function mo(a){this.children=a;for(var b=0,ce=0,le=0;le<a.length;++le){var Se=a[le];b+=Se.chunkSize(),ce+=Se.height,Se.parent=this}this.size=b,this.height=ce,this.parent=null}mo.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size-=b;for(var ce=0;ce<this.children.length;++ce){var le=this.children[ce],Se=le.chunkSize();if(a<Se){var ze=Math.min(b,Se-a),rt=le.height;if(le.removeInner(a,ze),this.height-=rt-le.height,Se==ze&&(this.children.splice(ce--,1),le.parent=null),(b-=ze)==0)break;a=0}else a-=Se}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,ce){this.size+=b.length,this.height+=ce;for(var le=0;le<this.children.length;++le){var Se=this.children[le],ze=Se.chunkSize();if(a<=ze){if(Se.insertInner(a,b,ce),Se.lines&&Se.lines.length>50){for(var rt=Se.lines.length%25+25,dt=rt;dt<Se.lines.length;){var vt=new zi(Se.lines.slice(dt,dt+=25));Se.height-=vt.height,this.children.splice(++le,0,vt),vt.parent=this}Se.lines=Se.lines.slice(0,rt),this.maybeSpill()}break}a-=ze}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var b=a.children.splice(a.children.length-5,5),ce=new mo(b);if(a.parent){a.size-=ce.size,a.height-=ce.height;var Se=tt(a.parent.children,a);a.parent.children.splice(Se+1,0,ce)}else{var le=new mo(a.children);le.parent=a,a.children=[le,ce],a=le}ce.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,b,ce){for(var le=0;le<this.children.length;++le){var Se=this.children[le],ze=Se.chunkSize();if(a<ze){var rt=Math.min(b,ze-a);if(Se.iterN(a,rt,ce))return!0;if((b-=rt)==0)break;a=0}else a-=ze}}};var Xi=function(a,b,ce){if(ce)for(var le in ce)ce.hasOwnProperty(le)&&(this[le]=ce[le]);this.doc=a,this.node=b};Xi.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,ce=this.line,le=Mt(ce);if(!(le==null||!b)){for(var Se=0;Se<b.length;++Se)b[Se]==this&&b.splice(Se--,1);b.length||(ce.widgets=null);var ze=oa(this);Gn(ce,Math.max(0,ce.height-ze)),a&&(ma(a,function(){Qo(a,ce,-ze),is(a,le,"widget")}),Di(a,"lineWidgetCleared",a,this,le))}},Xi.prototype.changed=function(){var a=this,b=this.height,ce=this.doc.cm,le=this.line;this.height=null;var Se=oa(this)-b;Se&&(er(this.doc,le)||Gn(le,le.height+Se),ce&&ma(ce,function(){ce.curOp.forceUpdate=!0,Qo(ce,le,Se),Di(ce,"lineWidgetChanged",ce,a,Mt(le))}))},gt(Xi);function Qo(a,b,ce){qr(b)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Kl(a,ce)}function No(a,b,ce,le){var Se=new Xi(a,ce,le),ze=a.cm;return ze&&Se.noHScroll&&(ze.display.alignWidgets=!0),bo(a,b,"widget",function(rt){var dt=rt.widgets||(rt.widgets=[]);if(Se.insertAt==null?dt.push(Se):dt.splice(Math.min(dt.length-1,Math.max(0,Se.insertAt)),0,Se),Se.line=rt,ze&&!er(a,rt)){var vt=qr(rt)<a.scrollTop;Gn(rt,rt.height+oa(Se)),vt&&Kl(ze,Se.height),ze.curOp.forceUpdate=!0}return!0}),ze&&Di(ze,"lineWidgetAdded",ze,Se,typeof b=="number"?b:Mt(b)),Se}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),Dt(this,"clear")){var ce=this.find();ce&&Di(this,"clear",ce.from,ce.to)}for(var le=null,Se=null,ze=0;ze<this.lines.length;++ze){var rt=this.lines[ze],dt=Pr(rt.markedSpans,this);a&&!this.collapsed?is(a,Mt(rt),"text"):a&&(dt.to!=null&&(Se=Mt(rt)),dt.from!=null&&(le=Mt(rt))),rt.markedSpans=Kr(rt.markedSpans,dt),dt.from==null&&this.collapsed&&!er(this.doc,rt)&&a&&Gn(rt,wa(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var vt=0;vt<this.lines.length;++vt){var xt=$n(this.lines[vt]),Qt=Ti(xt);Qt>a.display.maxLineLength&&(a.display.maxLine=xt,a.display.maxLineLength=Qt,a.display.maxLineChanged=!0)}le!=null&&a&&this.collapsed&&la(a,le,Se+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&uo(a.doc)),a&&Di(a,"markerCleared",a,this,le,Se),b&&Is(a),this.parent&&this.parent.clear()}},ga.prototype.find=function(a,b){a==null&&this.type=="bookmark"&&(a=1);for(var ce,le,Se=0;Se<this.lines.length;++Se){var ze=this.lines[Se],rt=Pr(ze.markedSpans,this);if(rt.from!=null&&(ce=Et(b?ze:Mt(ze),rt.from),a==-1))return ce;if(rt.to!=null&&(le=Et(b?ze:Mt(ze),rt.to),a==1))return le}return ce&&{from:ce,to:le}},ga.prototype.changed=function(){var a=this,b=this.find(-1,!0),ce=this,le=this.doc.cm;!b||!le||ma(le,function(){var Se=b.line,ze=Mt(b.line),rt=za(le,ze);if(rt&&(Ns(rt),le.curOp.selectionChanged=le.curOp.forceUpdate=!0),le.curOp.updateMaxLine=!0,!er(ce.doc,Se)&&ce.height!=null){var dt=ce.height;ce.height=null;var vt=oa(ce)-dt;vt&&Gn(Se,Se.height+vt)}Di(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)}},gt(ga);function Ga(a,b,ce,le,Se){if(le&&le.shared)return Zs(a,b,ce,le,Se);if(a.cm&&!a.cm.curOp)return Jo(a.cm,Ga)(a,b,ce,le,Se);var ze=new ga(a,Se),rt=zt(b,ce);if(le&&it(le,ze,!1),rt>0||rt==0&&ze.clearWhenEmpty!==!1)return ze;if(ze.replacedWith&&(ze.collapsed=!0,ze.widgetNode=Oe("span",[ze.replacedWith],"CodeMirror-widget"),le.handleMouseEvents||ze.widgetNode.setAttribute("cm-ignore-events","true"),le.insertLeft&&(ze.widgetNode.insertLeft=!0)),ze.collapsed){if(Xn(a,b.line,b,ce,ze)||b.line!=ce.line&&Xn(a,ce.line,b,ce,ze))throw new Error("Inserting collapsed marker partially overlapping an existing one");ir()}ze.addToHistory&&Qr(a,{from:b,to:ce,origin:"markText"},a.sel,NaN);var dt=b.line,vt=a.cm,xt;if(a.iter(dt,ce.line+1,function(on){vt&&ze.collapsed&&!vt.options.lineWrapping&&$n(on)==vt.display.maxLine&&(xt=!0),ze.collapsed&&dt!=b.line&&Gn(on,0),Nr(on,new br(ze,dt==b.line?b.ch:null,dt==ce.line?ce.ch:null)),++dt}),ze.collapsed&&a.iter(b.line,ce.line+1,function(on){er(a,on)&&Gn(on,0)}),ze.clearOnEnter&&At(ze,"beforeCursorEnter",function(){return ze.clear()}),ze.readOnly&&(Nn(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ze.collapsed&&(ze.id=++ca,ze.atomic=!0),vt){if(xt&&(vt.curOp.updateMaxLine=!0),ze.collapsed)la(vt,b.line,ce.line+1);else if(ze.className||ze.startStyle||ze.endStyle||ze.css||ze.attributes||ze.title)for(var Qt=b.line;Qt<=ce.line;Qt++)is(vt,Qt,"text");ze.atomic&&uo(vt.doc),Di(vt,"markerAdded",vt,ze)}return ze}var oo=function(a,b){this.markers=a,this.primary=b;for(var ce=0;ce<a.length;++ce)a[ce].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();Di(this,"clear")}},oo.prototype.find=function(a,b){return this.primary.find(a,b)},gt(oo);function Zs(a,b,ce,le,Se){le=it(le),le.shared=!1;var ze=[Ga(a,b,ce,le,Se)],rt=ze[0],dt=le.widgetNode;return Ur(a,function(vt){dt&&(le.widgetNode=dt.cloneNode(!0)),ze.push(Ga(vt,$t(vt,b),$t(vt,ce),le,Se));for(var xt=0;xt<vt.linked.length;++xt)if(vt.linked[xt].isParent)return;rt=at(ze)}),new oo(ze,rt)}function da(a){return a.findMarks(Et(a.first,0),a.clipPos(Et(a.lastLine())),function(b){return b.parent})}function Ra(a,b){for(var ce=0;ce<b.length;ce++){var le=b[ce],Se=le.find(),ze=a.clipPos(Se.from),rt=a.clipPos(Se.to);if(zt(ze,rt)){var dt=Ga(a,ze,rt,le.primary,le.primary.type);le.markers.push(dt),dt.parent=le}}}function Ca(a){for(var b=function(le){var Se=a[le],ze=[Se.primary.doc];Ur(Se.primary.doc,function(vt){return ze.push(vt)});for(var rt=0;rt<Se.markers.length;rt++){var dt=Se.markers[rt];tt(ze,dt.doc)==-1&&(dt.parent=null,Se.markers.splice(rt--,1))}},ce=0;ce<a.length;ce++)b(ce)}var ya=0,ao=function(a,b,ce,le,Se){if(!(this instanceof ao))return new ao(a,b,ce,le,Se);ce==null&&(ce=0),mo.call(this,[new zi([new ki("",null)])]),this.first=ce,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ce;var ze=Et(ce,0);this.sel=Jn(ze),this.history=new Er(null),this.id=++ya,this.modeOption=b,this.lineSep=le,this.direction=Se=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),Jr(this,{from:ze,to:ze,text:a}),Br(this,Jn(ze),Ze)};ao.prototype=ne(mo.prototype,{constructor:ao,iter:function(a,b,ce){ce?this.iterN(a-this.first,b-a,ce):this.iterN(this.first,this.first+this.size,a)},insert:function(a,b){for(var ce=0,le=0;le<b.length;++le)ce+=b[le].height;this.insertInner(a-this.first,b,ce)},remove:function(a,b){this.removeInner(a-this.first,b)},getValue:function(a){var b=Hn(this,this.first,this.first+this.size);return a===!1?b:b.join(a||this.lineSeparator())},setValue:Ko(function(a){var b=Et(this.first,0),ce=this.first+this.size-1;eo(this,{from:b,to:Et(ce,cn(this,ce).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&nl(this.cm,0,0),Br(this,Jn(b),Ze)}),replaceRange:function(a,b,ce,le){b=$t(this,b),ce=ce?$t(this,ce):b,$i(this,a,b,ce,le)},getRange:function(a,b,ce){var le=tn(this,$t(this,a),$t(this,b));return ce===!1?le:le.join(ce||this.lineSeparator())},getLine:function(a){var b=this.getLineHandle(a);return b&&b.text},getLineHandle:function(a){if(St(this,a))return cn(this,a)},getLineNumber:function(a){return Mt(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=cn(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(),ce;return a==null||a=="head"?ce=b.head:a=="anchor"?ce=b.anchor:a=="end"||a=="to"||a===!1?ce=b.to():ce=b.from(),ce},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ko(function(a,b,ce){Vr(this,$t(this,typeof a=="number"?Et(a,b||0):a),null,ce)}),setSelection:Ko(function(a,b,ce){Vr(this,$t(this,a),$t(this,b||a),ce)}),extendSelection:Ko(function(a,b,ce){Pi(this,$t(this,a),b&&$t(this,b),ce)}),extendSelections:Ko(function(a,b){Co(this,Xt(this,a),b)}),extendSelectionsBy:Ko(function(a,b){var ce=qe(this.sel.ranges,a);Co(this,Xt(this,ce),b)}),setSelections:Ko(function(a,b,ce){if(a.length){for(var le=[],Se=0;Se<a.length;Se++)le[Se]=new bn($t(this,a[Se].anchor),$t(this,a[Se].head));b==null&&(b=Math.min(a.length-1,this.sel.primIndex)),Br(this,lr(this.cm,le,b),ce)}}),addSelection:Ko(function(a,b,ce){var le=this.sel.ranges.slice(0);le.push(new bn($t(this,a),$t(this,b||a))),Br(this,lr(this.cm,le,le.length-1),ce)}),getSelection:function(a){for(var b=this.sel.ranges,ce,le=0;le<b.length;le++){var Se=tn(this,b[le].from(),b[le].to());ce=ce?ce.concat(Se):Se}return a===!1?ce:ce.join(a||this.lineSeparator())},getSelections:function(a){for(var b=[],ce=this.sel.ranges,le=0;le<ce.length;le++){var Se=tn(this,ce[le].from(),ce[le].to());a!==!1&&(Se=Se.join(a||this.lineSeparator())),b[le]=Se}return b},replaceSelection:function(a,b,ce){for(var le=[],Se=0;Se<this.sel.ranges.length;Se++)le[Se]=a;this.replaceSelections(le,b,ce||"+input")},replaceSelections:Ko(function(a,b,ce){for(var le=[],Se=this.sel,ze=0;ze<Se.ranges.length;ze++){var rt=Se.ranges[ze];le[ze]={from:rt.from(),to:rt.to(),text:this.splitLines(a[ze]),origin:ce}}for(var dt=b&&b!="end"&&jr(this,le,b),vt=le.length-1;vt>=0;vt--)eo(this,le[vt]);dt?Zr(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,ce=0,le=0;le<a.done.length;le++)a.done[le].ranges||++b;for(var Se=0;Se<a.undone.length;Se++)a.undone[Se].ranges||++ce;return{undo:b,redo:ce}},clearHistory:function(){var a=this;this.history=new Er(this.history.maxGeneration),Ur(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 Er(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,ce){return bo(this,a,"gutter",function(le){var Se=le.gutterMarkers||(le.gutterMarkers={});return Se[b]=ce,!ce&&be(Se)&&(le.gutterMarkers=null),!0})}),clearGutter:Ko(function(a){var b=this;this.iter(function(ce){ce.gutterMarkers&&ce.gutterMarkers[a]&&bo(b,ce,"gutter",function(){return ce.gutterMarkers[a]=null,be(ce.gutterMarkers)&&(ce.gutterMarkers=null),!0})})}),lineInfo:function(a){var b;if(typeof a=="number"){if(!St(this,a)||(b=a,a=cn(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,ce){return bo(this,a,b=="gutter"?"gutter":"class",function(le){var Se=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!le[Se])le[Se]=ce;else{if(Ne(ce).test(le[Se]))return!1;le[Se]+=" "+ce}return!0})}),removeLineClass:Ko(function(a,b,ce){return bo(this,a,b=="gutter"?"gutter":"class",function(le){var Se=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",ze=le[Se];if(ze)if(ce==null)le[Se]=null;else{var rt=ze.match(Ne(ce));if(!rt)return!1;var dt=rt.index+rt[0].length;le[Se]=ze.slice(0,rt.index)+(!rt.index||dt==ze.length?"":" ")+ze.slice(dt)||null}else return!1;return!0})}),addLineWidget:Ko(function(a,b,ce){return No(this,a,b,ce)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,ce){return Ga(this,$t(this,a),$t(this,b),ce,ce&&ce.type||"range")},setBookmark:function(a,b){var ce={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,ce,"bookmark")},findMarksAt:function(a){a=$t(this,a);var b=[],ce=cn(this,a.line).markedSpans;if(ce)for(var le=0;le<ce.length;++le){var Se=ce[le];(Se.from==null||Se.from<=a.ch)&&(Se.to==null||Se.to>=a.ch)&&b.push(Se.marker.parent||Se.marker)}return b},findMarks:function(a,b,ce){a=$t(this,a),b=$t(this,b);var le=[],Se=a.line;return this.iter(a.line,b.line+1,function(ze){var rt=ze.markedSpans;if(rt)for(var dt=0;dt<rt.length;dt++){var vt=rt[dt];!(vt.to!=null&&Se==a.line&&a.ch>=vt.to||vt.from==null&&Se!=a.line||vt.from!=null&&Se==b.line&&vt.from>=b.ch)&&(!ce||ce(vt.marker))&&le.push(vt.marker.parent||vt.marker)}++Se}),le},getAllMarks:function(){var a=[];return this.iter(function(b){var ce=b.markedSpans;if(ce)for(var le=0;le<ce.length;++le)ce[le].from!=null&&a.push(ce[le].marker)}),a},posFromIndex:function(a){var b,ce=this.first,le=this.lineSeparator().length;return this.iter(function(Se){var ze=Se.text.length+le;if(ze>a)return b=a,!0;a-=ze,++ce}),$t(this,Et(ce,b))},indexFromPos:function(a){a=$t(this,a);var b=a.ch;if(a.line<this.first||a.ch<0)return 0;var ce=this.lineSeparator().length;return this.iter(this.first,a.line,function(le){b+=le.text.length+ce}),b},copy:function(a){var b=new ao(Hn(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,ce=this.first+this.size;a.from!=null&&a.from>b&&(b=a.from),a.to!=null&&a.to<ce&&(ce=a.to);var le=new ao(Hn(this,b,ce),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}],Ra(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 ce=this.linked[b];if(ce.doc==a){this.linked.splice(b,1),a.unlinkDoc(this),Ca(da(this));break}}if(a.history==this.history){var le=[a.id];Ur(a,function(Se){return le.push(Se.id)},!0),a.history=new Er(null),a.history.done=So(this.history.done,le),a.history.undone=So(this.history.undone,le)}},iterLinkedDocs:function(a){Ur(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):gn(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection: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),!(Tt(b,a)||Yo(b.display,a))){It(a),ye&&(Ea=+new Date);var ce=Ja(b,a,!0),le=a.dataTransfer.files;if(!(!ce||b.isReadOnly()))if(le&&le.length&&window.FileReader&&window.File)for(var Se=le.length,ze=Array(Se),rt=0,dt=function(){++rt==Se&&Jo(b,function(){ce=$t(b.doc,ce);var vn={from:ce,to:ce,text:b.doc.splitLines(ze.filter(function(Qn){return Qn!=null}).join(b.doc.lineSeparator())),origin:"paste"};eo(b.doc,vn),Zr(b.doc,Jn($t(b.doc,ce),$t(b.doc,dr(vn))))})()},vt=function(vn,Qn){if(b.options.allowDropFileTypes&&tt(b.options.allowDropFileTypes,vn.type)==-1){dt();return}var or=new FileReader;or.onerror=function(){return dt()},or.onload=function(){var yr=or.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(yr)){dt();return}ze[Qn]=yr,dt()},or.readAsText(vn)},xt=0;xt<le.length;xt++)vt(le[xt],xt);else{if(b.state.draggingText&&b.doc.sel.contains(ce)>-1){b.state.draggingText(a),setTimeout(function(){return b.display.input.focus()},20);return}try{var Qt=a.dataTransfer.getData("Text");if(Qt){var on;if(b.state.draggingText&&!b.state.draggingText.copy&&(on=b.listSelections()),Bi(b.doc,Jn(ce,ce)),on)for(var Sn=0;Sn<on.length;++Sn)$i(b.doc,"",on[Sn].anchor,on[Sn].head,"drag");b.replaceSelection(Qt,"around","paste"),b.display.input.focus()}}catch(vn){}}}}function Va(a,b){if(ye&&(!a.state.draggingText||+new Date-Ea<100)){wt(b);return}if(!(Tt(a,b)||Yo(a.display,b))&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!de)){var ce=Ce("img",null,null,"position: fixed; left: 0; top: 0;");ce.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ee&&(ce.width=ce.height=1,a.display.wrapper.appendChild(ce),ce._top=ce.offsetTop),b.dataTransfer.setDragImage(ce,0,0),ee&&ce.parentNode.removeChild(ce)}}function Xa(a,b){var ce=Ja(a,b);if(ce){var le=document.createDocumentFragment();Zl(a,ce,le),a.display.dragCursor||(a.display.dragCursor=Ce("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),we(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"),ce=[],le=0;le<b.length;le++){var Se=b[le].CodeMirror;Se&&ce.push(Se)}ce.length&&ce[0].operation(function(){for(var ze=0;ze<ce.length;ze++)a(ce[ze])})}}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(wi)},100))}),At(window,"blur",function(){return al(Ss)})}function wi(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 Fa(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var ce,le,Se,ze,rt=0;rt<b.length-1;rt++){var dt=b[rt];if(/^(cmd|meta|m)$/i.test(dt))ze=!0;else if(/^a(lt)?$/i.test(dt))ce=!0;else if(/^(c|ctrl|control)$/i.test(dt))le=!0;else if(/^s(hift)?$/i.test(dt))Se=!0;else throw new Error("Unrecognized modifier name: "+dt)}return ce&&(a="Alt-"+a),le&&(a="Ctrl-"+a),ze&&(a="Cmd-"+a),Se&&(a="Shift-"+a),a}function ea(a){var b={};for(var ce in a)if(a.hasOwnProperty(ce)){var le=a[ce];if(/^(name|fallthrough|(de|at)tach)$/.test(ce))continue;if(le=="..."){delete a[ce];continue}for(var Se=qe(ce.split(" "),Fa),ze=0;ze<Se.length;ze++){var rt=void 0,dt=void 0;ze==Se.length-1?(dt=Se.join(" "),rt=le):(dt=Se.slice(0,ze+1).join(" "),rt="...");var vt=b[dt];if(!vt)b[dt]=rt;else if(vt!=rt)throw new Error("Inconsistent bindings for "+dt)}delete a[ce]}for(var xt in b)a[xt]=b[xt];return a}function As(a,b,ce,le){b=ul(b);var Se=b.call?b.call(a,le):b[a];if(Se===!1)return"nothing";if(Se==="...")return"multi";if(Se!=null&&ce(Se))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return As(a,b.fallthrough,ce,le);for(var ze=0;ze<b.fallthrough.length;ze++){var rt=As(a,b.fallthrough[ze],ce,le);if(rt)return rt}}}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,ce){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),!ce&&b.shiftKey&&le!="Shift"&&(a="Shift-"+a),a}function vs(a,b){if(ee&&a.keyCode==34&&a.char)return!1;var ce=Mi[a.keyCode];return ce==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(ce=a.code),Ws(ce,a,b))}function ul(a){return typeof a=="string"?zo[a]:a}function gs(a,b){for(var ce=a.doc.sel.ranges,le=[],Se=0;Se<ce.length;Se++){for(var ze=b(ce[Se]);le.length&&zt(ze.from,at(le).to)<=0;){var rt=le.pop();if(zt(rt.from,ze.from)<0){ze.from=rt.from;break}}le.push(ze)}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 Al(a,b,ce){var le=$e(a.text,b+ce,ce);return le<0||le>a.text.length?null:le}function cl(a,b,ce){var le=Al(a,b.ch,ce);return le==null?null:new Et(b.line,le,ce<0?"after":"before")}function jl(a,b,ce,le,Se){if(a){b.doc.direction=="rtl"&&(Se=-Se);var ze=ut(ce,b.doc.direction);if(ze){var rt=Se<0?at(ze):ze[0],dt=Se<0==(rt.level==1),vt=dt?"after":"before",xt;if(rt.level>0||b.doc.direction=="rtl"){var Qt=ts(b,ce);xt=Se<0?ce.text.length-1:0;var on=Da(b,Qt,xt).top;xt=We(function(Sn){return Da(b,Qt,Sn).top==on},Se<0==(rt.level==1)?rt.from:rt.to-1,xt),vt=="before"&&(xt=Al(ce,xt,1))}else xt=Se<0?rt.to:rt.from;return new Et(le,xt,vt)}}return new Et(le,Se<0?ce.text.length:0,Se<0?"before":"after")}function Ql(a,b,ce,le){var Se=ut(b,a.doc.direction);if(!Se)return cl(b,ce,le);ce.ch>=b.text.length?(ce.ch=b.text.length,ce.sticky="before"):ce.ch<=0&&(ce.ch=0,ce.sticky="after");var ze=ot(Se,ce.ch,ce.sticky),rt=Se[ze];if(a.doc.direction=="ltr"&&rt.level%2==0&&(le>0?rt.to>ce.ch:rt.from<ce.ch))return cl(b,ce,le);var dt=function(kr,Hr){return Al(b,kr instanceof Et?kr.ch:kr,Hr)},vt,xt=function(kr){return a.options.lineWrapping?(vt=vt||ts(a,b),ko(a,b,vt,kr)):{begin:0,end:b.text.length}},Qt=xt(ce.sticky=="before"?dt(ce,-1):ce.ch);if(a.doc.direction=="rtl"||rt.level==1){var on=rt.level==1==le<0,Sn=dt(ce,on?1:-1);if(Sn!=null&&(on?Sn<=rt.to&&Sn<=Qt.end:Sn>=rt.from&&Sn>=Qt.begin)){var vn=on?"before":"after";return new Et(ce.line,Sn,vn)}}var Qn=function(kr,Hr,Rr){for(var Xr=function(go,ra){return ra?new Et(ce.line,dt(go,1),"before"):new Et(ce.line,go,"after")};kr>=0&&kr<Se.length;kr+=Hr){var vi=Se[kr],ci=Hr>0==(vi.level!=1),Li=ci?Rr.begin:dt(Rr.end,-1);if(vi.from<=Li&&Li<vi.to||(Li=ci?vi.from:dt(vi.to,-1),Rr.begin<=Li&&Li<Rr.end))return Xr(Li,ci)}},or=Qn(ze+le,le,Qt);if(or)return or;var yr=le>0?Qt.end:dt(Qt.begin,-1);return yr!=null&&!(le>0&&yr==b.text.length)&&(or=Qn(le>0?0:Se.length-1,le,xt(yr)),or)?or:null}var ss={selectAll:ii,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Ze)},killLine:function(a){return gs(a,function(b){if(b.empty()){var ce=cn(a.doc,b.head.line).text.length;return b.head.ch==ce&&b.head.line<a.lastLine()?{from:b.head,to:Et(b.head.line+1,0)}:{from:b.head,to:Et(b.head.line,ce)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return gs(a,function(b){return{from:Et(b.from().line,0),to:$t(a.doc,Et(b.to().line+1,0))}})},delLineLeft:function(a){return gs(a,function(b){return{from:Et(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(a){return gs(a,function(b){var ce=a.charCoords(b.head,"div").top+5,le=a.coordsChar({left:0,top:ce},"div");return{from:le,to:b.from()}})},delWrappedLineRight:function(a){return gs(a,function(b){var ce=a.charCoords(b.head,"div").top+5,le=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:ce},"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(Et(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Et(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(b){return Pl(a,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(b){return Dl(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 ce=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:ce},"div")},Xe)},goLineLeft:function(a){return a.extendSelectionsBy(function(b){var ce=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:0,top:ce},"div")},Xe)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(b){var ce=a.cursorCoords(b.head,"div").top+5,le=a.coordsChar({left:0,top:ce},"div");return le.ch<a.getLine(le.line).search(/\S/)?Dl(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=[],ce=a.listSelections(),le=a.options.tabSize,Se=0;Se<ce.length;Se++){var ze=ce[Se].from(),rt=Le(a.getLine(ze.line),ze.ch,le);b.push(ht(le-rt%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(),ce=[],le=0;le<b.length;le++)if(b[le].empty()){var Se=b[le].head,ze=cn(a.doc,Se.line).text;if(ze){if(Se.ch==ze.length&&(Se=new Et(Se.line,Se.ch-1)),Se.ch>0)Se=new Et(Se.line,Se.ch+1),a.replaceRange(ze.charAt(Se.ch-1)+ze.charAt(Se.ch-2),Et(Se.line,Se.ch-2),Se,"+transpose");else if(Se.line>a.doc.first){var rt=cn(a.doc,Se.line-1).text;rt&&(Se=new Et(Se.line,1),a.replaceRange(ze.charAt(0)+a.doc.lineSeparator()+rt.charAt(rt.length-1),Et(Se.line-1,rt.length-1),Se,"+transpose"))}}ce.push(new bn(Se,Se))}a.setSelections(ce)})},newlineAndIndent:function(a){return ma(a,function(){for(var b=a.listSelections(),ce=b.length-1;ce>=0;ce--)a.replaceRange(a.doc.lineSeparator(),b[ce].anchor,b[ce].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 Pl(a,b){var ce=cn(a.doc,b),le=$n(ce);return le!=ce&&(b=Mt(le)),jl(!0,a,le,b,1)}function gu(a,b){var ce=cn(a.doc,b),le=hr(ce);return le!=ce&&(b=Mt(le)),jl(!0,a,ce,b,-1)}function Dl(a,b){var ce=Pl(a,b.line),le=cn(a.doc,ce.line),Se=ut(le,a.doc.direction);if(!Se||Se[0].level==0){var ze=Math.max(ce.ch,le.text.search(/\S/)),rt=b.line==ce.line&&b.ch<=ze&&b.ch;return Et(ce.line,rt?0:ze,ce.sticky)}return ce}function Us(a,b,ce){if(typeof b=="string"&&(b=ss[b],!b))return!1;a.display.input.ensurePolled();var le=a.display.shift,Se=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ce&&(a.display.shift=!1),Se=b(a)!=et}finally{a.display.shift=le,a.state.suppressEdits=!1}return Se}function yu(a,b,ce){for(var le=0;le<a.state.keyMaps.length;le++){var Se=As(b,a.state.keyMaps[le],ce,a);if(Se)return Se}return a.options.extraKeys&&As(b,a.options.extraKeys,ce,a)||As(b,a.options.keyMap,ce,a)}var bu=new Ue;function Ks(a,b,ce,le){var Se=a.state.keySeq;if(Se){if(Il(b))return"handled";if(/\'$/.test(b)?a.state.keySeq=null:bu.set(50,function(){a.state.keySeq==Se&&(a.state.keySeq=null,a.display.input.reset())}),kl(a,Se+" "+b,ce,le))return!0}return kl(a,b,ce,le)}function kl(a,b,ce,le){var Se=yu(a,b,le);return Se=="multi"&&(a.state.keySeq=b),Se=="handled"&&Di(a,"keyHandled",a,b,ce),(Se=="handled"||Se=="multi")&&(It(ce),wl(a)),!!Se}function Gs(a,b){var ce=vs(b,!0);return ce?b.shiftKey&&!a.state.keySeq?Ks(a,"Shift-"+ce,b,function(le){return Us(a,le,!0)})||Ks(a,ce,b,function(le){if(typeof le=="string"?/^go[A-Z]/.test(le):le.motion)return Us(a,le)}):Ks(a,ce,b,function(le){return Us(a,le)}):!1}function Rl(a,b,ce){return Ks(a,"'"+ce+"'",b,function(le){return Us(a,le,!0)})}var Vs=null;function Nl(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&(b.curOp.focus=ke(),!Tt(b,a))){ye&&z<11&&a.keyCode==27&&(a.returnValue=!1);var ce=a.keyCode;b.display.shift=ce==16||a.shiftKey;var le=Gs(b,a);ee&&(Vs=le?ce:null,!le&&ce==88&&!pn&&(pe?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),te&&!pe&&!le&&ce==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),ce==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&ql(b)}}function ql(a){var b=a.display.lineDiv;Ee(b,"CodeMirror-crosshair");function ce(le){(le.keyCode==18||!le.altKey)&&(Be(b,"CodeMirror-crosshair"),Rt(document,"keyup",ce),Rt(document,"mouseover",ce))}At(document,"keyup",ce),At(document,"mouseover",ce)}function Ml(a){a.keyCode==16&&(this.doc.sel.shift=!1),Tt(this,a)}function Bl(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(Yo(b.display,a)||Tt(b,a)||a.ctrlKey&&!a.altKey||pe&&a.metaKey)){var ce=a.keyCode,le=a.charCode;if(ee&&ce==Vs){Vs=null,It(a);return}if(!(ee&&(!a.which||a.which<10)&&Gs(b,a))){var Se=String.fromCharCode(le==null?ce:le);Se!="\b"&&(Rl(b,a,Se)||b.display.input.onKeyPress(a))}}}var xu=400,dl=function(a,b,ce){this.time=a,this.pos=b,this.button=ce};dl.prototype.compare=function(a,b,ce){return this.time+xu>a&&zt(b,this.pos)==0&&ce==this.button};var ys,js;function Ll(a,b){var ce=+new Date;return js&&js.compare(ce,a,b)?(ys=js=null,"triple"):ys&&ys.compare(ce,a,b)?(js=new dl(ce,a,b),ys=null,"double"):(ys=new dl(ce,a,b),js=null,"single")}function Fl(a){var b=this,ce=b.display;if(!(Tt(b,a)||ce.activeTouch&&ce.input.supportsTouch())){if(ce.input.ensurePolled(),ce.shift=a.shiftKey,Yo(ce,a)){E||(ce.scroller.draggable=!1,setTimeout(function(){return ce.scroller.draggable=!0},100));return}if(!Qa(b,a)){var le=Ja(b,a),Se=Zt(a),ze=le?Ll(le,Se):"single";window.focus(),Se==1&&b.state.selectingText&&b.state.selectingText(a),!(le&&wu(b,Se,le,ze,a))&&(Se==1?le?Gi(b,le,ze,a):Ct(a)==ce.scroller&&It(a):Se==2?(le&&Pi(b.doc,le),setTimeout(function(){return ce.input.focus()},20)):Se==3&&(Ae?b.display.input.onContextMenu(a):Wl(b)))}}}function wu(a,b,ce,le,Se){var ze="Click";return le=="double"?ze="Double"+ze:le=="triple"&&(ze="Triple"+ze),ze=(b==1?"Left":b==2?"Middle":"Right")+ze,Ks(a,Ws(ze,Se),Se,function(rt){if(typeof rt=="string"&&(rt=ss[rt]),!rt)return!1;var dt=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),dt=rt(a,ce)!=et}finally{a.state.suppressEdits=!1}return dt})}function Hi(a,b,ce){var le=a.getOption("configureMouse"),Se=le?le(a,b,ce):{};if(Se.unit==null){var ze=he?ce.shiftKey&&ce.metaKey:ce.altKey;Se.unit=ze?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(Se.extend==null||a.doc.extend)&&(Se.extend=a.doc.extend||ce.shiftKey),Se.addNew==null&&(Se.addNew=pe?ce.metaKey:ce.ctrlKey),Se.moveOnDrag==null&&(Se.moveOnDrag=!(pe?ce.altKey:ce.ctrlKey)),Se}function Gi(a,b,ce,le){ye?setTimeout(Ve(ou,a),0):a.curOp.focus=ke();var Se=Hi(a,ce,le),ze=a.doc.sel,rt;a.options.dragDrop&&en&&!a.isReadOnly()&&ce=="single"&&(rt=ze.contains(b))>-1&&(zt((rt=ze.ranges[rt]).from(),b)<0||b.xRel>0)&&(zt(rt.to(),b)>0||b.xRel<0)?ta(a,le,b,Se):na(a,le,b,Se)}function ta(a,b,ce,le){var Se=a.display,ze=!1,rt=Jo(a,function(xt){E&&(Se.scroller.draggable=!1),a.state.draggingText=!1,Rt(Se.wrapper.ownerDocument,"mouseup",rt),Rt(Se.wrapper.ownerDocument,"mousemove",dt),Rt(Se.scroller,"dragstart",vt),Rt(Se.scroller,"drop",rt),ze||(It(xt),le.addNew||Pi(a.doc,ce,null,null,le.extend),E&&!de||ye&&z==9?setTimeout(function(){Se.wrapper.ownerDocument.body.focus({preventScroll:!0}),Se.input.focus()},20):Se.input.focus())}),dt=function(xt){ze=ze||Math.abs(b.clientX-xt.clientX)+Math.abs(b.clientY-xt.clientY)>=10},vt=function(){return ze=!0};E&&(Se.scroller.draggable=!0),a.state.draggingText=rt,rt.copy=!le.moveOnDrag,Se.scroller.dragDrop&&Se.scroller.dragDrop(),At(Se.wrapper.ownerDocument,"mouseup",rt),At(Se.wrapper.ownerDocument,"mousemove",dt),At(Se.scroller,"dragstart",vt),At(Se.scroller,"drop",rt),Wl(a),setTimeout(function(){return Se.input.focus()},20)}function Ta(a,b,ce){if(ce=="char")return new bn(b,b);if(ce=="word")return a.findWordAt(b);if(ce=="line")return new bn(Et(b.line,0),$t(a.doc,Et(b.line+1,0)));var le=ce(a,b);return new bn(le.from,le.to)}function na(a,b,ce,le){var Se=a.display,ze=a.doc;It(b);var rt,dt,vt=ze.sel,xt=vt.ranges;if(le.addNew&&!le.extend?(dt=ze.sel.contains(ce),dt>-1?rt=xt[dt]:rt=new bn(ce,ce)):(rt=ze.sel.primary(),dt=ze.sel.primIndex),le.unit=="rectangle")le.addNew||(rt=new bn(ce,ce)),ce=Ja(a,b,!0,!0),dt=-1;else{var Qt=Ta(a,ce,le.unit);le.extend?rt=ji(rt,Qt.anchor,Qt.head,le.extend):rt=Qt}le.addNew?dt==-1?(dt=xt.length,Br(ze,lr(a,xt.concat([rt]),dt),{scroll:!1,origin:"*mouse"})):xt.length>1&&xt[dt].empty()&&le.unit=="char"&&!le.extend?(Br(ze,lr(a,xt.slice(0,dt).concat(xt.slice(dt+1)),0),{scroll:!1,origin:"*mouse"}),vt=ze.sel):Ro(ze,dt,rt,Ye):(dt=0,Br(ze,new xn([rt],0),Ye),vt=ze.sel);var on=ce;function Sn(Rr){if(zt(on,Rr)!=0)if(on=Rr,le.unit=="rectangle"){for(var Xr=[],vi=a.options.tabSize,ci=Le(cn(ze,ce.line).text,ce.ch,vi),Li=Le(cn(ze,Rr.line).text,Rr.ch,vi),go=Math.min(ci,Li),ra=Math.max(ci,Li),Mo=Math.min(ce.line,Rr.line),Na=Math.min(a.lastLine(),Math.max(ce.line,Rr.line));Mo<=Na;Mo++){var Oa=cn(ze,Mo).text,Vo=st(Oa,go,vi);go==ra?Xr.push(new bn(Et(Mo,Vo),Et(Mo,Vo))):Oa.length>Vo&&Xr.push(new bn(Et(Mo,Vo),Et(Mo,st(Oa,ra,vi))))}Xr.length||Xr.push(new bn(ce,ce)),Br(ze,lr(a,vt.ranges.slice(0,dt).concat(Xr),dt),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Rr)}else{var Ia=rt,fa=Ta(a,Rr,le.unit),qo=Ia.anchor,Xo;zt(fa.anchor,qo)>0?(Xo=fa.head,qo=qt(Ia.from(),fa.anchor)):(Xo=fa.anchor,qo=Ft(Ia.to(),fa.head));var Fo=vt.ranges.slice(0);Fo[dt]=Ps(a,new bn($t(ze,qo),Xo)),Br(ze,lr(a,Fo,dt),Ye)}}var vn=Se.wrapper.getBoundingClientRect(),Qn=0;function or(Rr){var Xr=++Qn,vi=Ja(a,Rr,!0,le.unit=="rectangle");if(vi)if(zt(vi,on)!=0){a.curOp.focus=ke(),Sn(vi);var ci=os(Se,ze);(vi.line>=ci.to||vi.line<ci.from)&&setTimeout(Jo(a,function(){Qn==Xr&&or(Rr)}),150)}else{var Li=Rr.clientY<vn.top?-20:Rr.clientY>vn.bottom?20:0;Li&&setTimeout(Jo(a,function(){Qn==Xr&&(Se.scroller.scrollTop+=Li,or(Rr))}),50)}}function yr(Rr){a.state.selectingText=!1,Qn=1/0,Rr&&(It(Rr),Se.input.focus()),Rt(Se.wrapper.ownerDocument,"mousemove",kr),Rt(Se.wrapper.ownerDocument,"mouseup",Hr),ze.history.lastSelOrigin=null}var kr=Jo(a,function(Rr){Rr.buttons===0||!Zt(Rr)?yr(Rr):or(Rr)}),Hr=Jo(a,yr);a.state.selectingText=Hr,At(Se.wrapper.ownerDocument,"mousemove",kr),At(Se.wrapper.ownerDocument,"mouseup",Hr)}function Ps(a,b){var ce=b.anchor,le=b.head,Se=cn(a.doc,ce.line);if(zt(ce,le)==0&&ce.sticky==le.sticky)return b;var ze=ut(Se);if(!ze)return b;var rt=ot(ze,ce.ch,ce.sticky),dt=ze[rt];if(dt.from!=ce.ch&&dt.to!=ce.ch)return b;var vt=rt+(dt.from==ce.ch==(dt.level!=1)?0:1);if(vt==0||vt==ze.length)return b;var xt;if(le.line!=ce.line)xt=(le.line-ce.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Qt=ot(ze,le.ch,le.sticky),on=Qt-rt||(le.ch-ce.ch)*(dt.level==1?-1:1);Qt==vt-1||Qt==vt?xt=on<0:xt=on>0}var Sn=ze[vt+(xt?-1:0)],vn=xt==(Sn.level==1),Qn=vn?Sn.from:Sn.to,or=vn?"after":"before";return ce.ch==Qn&&ce.sticky==or?b:new bn(new Et(ce.line,Qn,or),le)}function ls(a,b,ce,le){var Se,ze;if(b.touches)Se=b.touches[0].clientX,ze=b.touches[0].clientY;else try{Se=b.clientX,ze=b.clientY}catch(Sn){return!1}if(Se>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;le&&It(b);var rt=a.display,dt=rt.lineDiv.getBoundingClientRect();if(ze>dt.bottom||!Dt(a,ce))return rn(b);ze-=dt.top-rt.viewOffset;for(var vt=0;vt<a.display.gutterSpecs.length;++vt){var xt=rt.gutters.childNodes[vt];if(xt&&xt.getBoundingClientRect().right>=Se){var Qt=Kt(a.doc,ze),on=a.display.gutterSpecs[vt];return Pt(a,ce,a,Qt,on.className,b),rn(b)}}}function Qa(a,b){return ls(a,b,"gutterClick",!0)}function Ds(a,b){Yo(a.display,b)||_l(a,b)||Tt(a,b,"contextmenu")||Ae||a.display.input.onContextMenu(b)}function _l(a,b){return Dt(a,"gutterContextMenu")?ls(a,b,"gutterContextMenu",!1):!1}function Ru(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"}},Nu={},eu={};function Zu(a){var b=a.optionHandlers;function ce(le,Se,ze,rt){a.defaults[le]=Se,ze&&(b[le]=rt?function(dt,vt,xt){xt!=fl&&ze(dt,vt,xt)}:ze)}a.defineOption=ce,a.Init=fl,ce("value","",function(le,Se){return le.setValue(Se)},!0),ce("mode",null,function(le,Se){le.doc.modeOption=Se,Fr(le)},!0),ce("indentUnit",2,Fr,!0),ce("indentWithTabs",!1),ce("smartIndent",!0),ce("tabSize",4,function(le){Mr(le),fs(le),la(le)},!0),ce("lineSeparator",null,function(le,Se){if(le.doc.lineSep=Se,!!Se){var ze=[],rt=le.doc.first;le.doc.iter(function(vt){for(var xt=0;;){var Qt=vt.text.indexOf(Se,xt);if(Qt==-1)break;xt=Qt+Se.length,ze.push(Et(rt,Qt))}rt++});for(var dt=ze.length-1;dt>=0;dt--)$i(le.doc,Se,ze[dt],Et(ze[dt].line,ze[dt].ch+Se.length))}}),ce("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(le,Se,ze){le.state.specialChars=new RegExp(Se.source+(Se.test(" ")?"":"| "),"g"),ze!=fl&&le.refresh()}),ce("specialCharPlaceholder",xo,function(le){return le.refresh()},!0),ce("electricChars",!0),ce("inputStyle",ue?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ce("spellcheck",!1,function(le,Se){return le.getInputField().spellcheck=Se},!0),ce("autocorrect",!1,function(le,Se){return le.getInputField().autocorrect=Se},!0),ce("autocapitalize",!1,function(le,Se){return le.getInputField().autocapitalize=Se},!0),ce("rtlMoveVisually",!ge),ce("wholeLineUpdateBefore",!0),ce("theme","default",function(le){Ru(le),dn(le)},!0),ce("keyMap","default",function(le,Se,ze){var rt=ul(Se),dt=ze!=fl&&ul(ze);dt&&dt.detach&&dt.detach(le,rt),rt.attach&&rt.attach(le,dt||null)}),ce("extraKeys",null),ce("configureMouse",null),ce("lineWrapping",!1,Uu,!0),ce("gutters",[],function(le,Se){le.display.gutterSpecs=Jt(Se,le.options.lineNumbers),dn(le)},!0),ce("fixedGutter",!0,function(le,Se){le.display.gutters.style.left=Se?yl(le.display)+"px":"0",le.refresh()},!0),ce("coverGutterNextToScrollbar",!1,function(le){return zs(le)},!0),ce("scrollbarStyle","native",function(le){Yl(le),zs(le),le.display.scrollbars.setScrollTop(le.doc.scrollTop),le.display.scrollbars.setScrollLeft(le.doc.scrollLeft)},!0),ce("lineNumbers",!1,function(le,Se){le.display.gutterSpecs=Jt(le.options.gutters,Se),dn(le)},!0),ce("firstLineNumber",1,dn,!0),ce("lineNumberFormatter",function(le){return le},dn,!0),ce("showCursorWhenSelecting",!1,hs,!0),ce("resetSelectionOnContextMenu",!0),ce("lineWiseCopyCut",!0),ce("pasteLinesPerSelection",!0),ce("selectionsMayTouch",!1),ce("readOnly",!1,function(le,Se){Se=="nocursor"&&(Ss(le),le.display.input.blur()),le.display.input.readOnlyChanged(Se)}),ce("screenReaderLabel",null,function(le,Se){Se=Se===""?null:Se,le.display.input.screenReaderLabelChanged(Se)}),ce("disableInput",!1,function(le,Se){Se||le.display.input.reset()},!0),ce("dragDrop",!0,Wu),ce("allowDropFileTypes",null),ce("cursorBlinkRate",530),ce("cursorScrollMargin",0),ce("cursorHeight",1,hs,!0),ce("singleCursorHeightPerLine",!0,hs,!0),ce("workTime",100),ce("workDelay",100),ce("flattenSpans",!0,Mr,!0),ce("addModeClass",!1,Mr,!0),ce("pollInterval",100),ce("undoDepth",200,function(le,Se){return le.doc.history.undoDepth=Se}),ce("historyEventDelay",1250),ce("viewportMargin",10,function(le){return le.refresh()},!0),ce("maxHighlightLength",1e4,Mr,!0),ce("moveInputWithCursor",!0,function(le,Se){Se||le.display.input.resetPosition()}),ce("tabindex",null,function(le,Se){return le.display.input.getField().tabIndex=Se||""}),ce("autofocus",null),ce("direction","ltr",function(le,Se){return le.doc.setDirection(Se)},!0),ce("phrases",null)}function Wu(a,b,ce){var le=ce&&ce!=fl;if(!b!=!le){var Se=a.display.dragFunctions,ze=b?At:Rt;ze(a.display.scroller,"dragstart",Se.start),ze(a.display.scroller,"dragenter",Se.enter),ze(a.display.scroller,"dragover",Se.over),ze(a.display.scroller,"dragleave",Se.leave),ze(a.display.scroller,"drop",Se.drop)}}function Uu(a){a.options.lineWrapping?(Ee(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Be(a.display.wrapper,"CodeMirror-wrap"),gi(a)),ws(a),la(a),fs(a),setTimeout(function(){return zs(a)},100)}function Io(a,b){var ce=this;if(!(this instanceof Io))return new Io(a,b);this.options=b=b?it(b):{},it(Nu,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 Se=new Io.inputStyles[b.inputStyle](this),ze=this.display=new an(a,le,Se,b);ze.wrapper.CodeMirror=this,Ru(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&&ze.input.focus(),ye&&z<11&&setTimeout(function(){return ce.display.input.reset(!0)},20),Ku(this),ll(),ms(this),this.curOp.forceUpdate=!0,li(this,le),b.autofocus&&!ue||this.hasFocus()?setTimeout(function(){ce.hasFocus()&&!ce.state.focused&&Ul(ce)},20):Ss(this);for(var rt in eu)eu.hasOwnProperty(rt)&&eu[rt](this,b[rt],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(ze.lineDiv).textRendering=="optimizelegibility"&&(ze.lineDiv.style.textRendering="auto")}Io.defaults=Nu,Io.optionHandlers=eu;function Ku(a){var b=a.display;At(b.scroller,"mousedown",Jo(a,Fl)),ye&&z<11?At(b.scroller,"dblclick",Jo(a,function(vt){if(!Tt(a,vt)){var xt=Ja(a,vt);if(!(!xt||Qa(a,vt)||Yo(a.display,vt))){It(vt);var Qt=a.findWordAt(xt);Pi(a.doc,Qt.anchor,Qt.head)}}})):At(b.scroller,"dblclick",function(vt){return Tt(a,vt)||It(vt)}),At(b.scroller,"contextmenu",function(vt){return Ds(a,vt)}),At(b.input.getField(),"contextmenu",function(vt){b.scroller.contains(vt.target)||Ds(a,vt)});var ce,le={end:0};function Se(){b.activeTouch&&(ce=setTimeout(function(){return b.activeTouch=null},1e3),le=b.activeTouch,le.end=+new Date)}function ze(vt){if(vt.touches.length!=1)return!1;var xt=vt.touches[0];return xt.radiusX<=1&&xt.radiusY<=1}function rt(vt,xt){if(xt.left==null)return!0;var Qt=xt.left-vt.left,on=xt.top-vt.top;return Qt*Qt+on*on>20*20}At(b.scroller,"touchstart",function(vt){if(!Tt(a,vt)&&!ze(vt)&&!Qa(a,vt)){b.input.ensurePolled(),clearTimeout(ce);var xt=+new Date;b.activeTouch={start:xt,moved:!1,prev:xt-le.end<=300?le:null},vt.touches.length==1&&(b.activeTouch.left=vt.touches[0].pageX,b.activeTouch.top=vt.touches[0].pageY)}}),At(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),At(b.scroller,"touchend",function(vt){var xt=b.activeTouch;if(xt&&!Yo(b,vt)&&xt.left!=null&&!xt.moved&&new Date-xt.start<300){var Qt=a.coordsChar(b.activeTouch,"page"),on;!xt.prev||rt(xt,xt.prev)?on=new bn(Qt,Qt):!xt.prev.prev||rt(xt,xt.prev.prev)?on=a.findWordAt(Qt):on=new bn(Et(Qt.line,0),$t(a.doc,Et(Qt.line+1,0))),a.setSelection(on.anchor,on.head),a.focus(),It(vt)}Se()}),At(b.scroller,"touchcancel",Se),At(b.scroller,"scroll",function(){b.scroller.clientHeight&&(rl(a,b.scroller.scrollTop),Ts(a,b.scroller.scrollLeft,!0),Pt(a,"scroll",a))}),At(b.scroller,"mousewheel",function(vt){return An(a,vt)}),At(b.scroller,"DOMMouseScroll",function(vt){return An(a,vt)}),At(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(vt){Tt(a,vt)||wt(vt)},over:function(vt){Tt(a,vt)||(Xa(a,vt),wt(vt))},start:function(vt){return Va(a,vt)},drop:Jo(a,as),leave:function(vt){Tt(a,vt)||ol(a)}};var dt=b.input.getField();At(dt,"keyup",function(vt){return Ml.call(a,vt)}),At(dt,"keydown",Jo(a,Nl)),At(dt,"keypress",Jo(a,Bl)),At(dt,"focus",function(vt){return Ul(a,vt)}),At(dt,"blur",function(vt){return Ss(a,vt)})}var Su=[];Io.defineInitHook=function(a){return Su.push(a)};function $l(a,b,ce,le){var Se=a.doc,ze;ce==null&&(ce="add"),ce=="smart"&&(Se.mode.indent?ze=cr(a,b).state:ce="prev");var rt=a.options.tabSize,dt=cn(Se,b),vt=Le(dt.text,null,rt);dt.stateAfter&&(dt.stateAfter=null);var xt=dt.text.match(/^\s*/)[0],Qt;if(!le&&!/\S/.test(dt.text))Qt=0,ce="not";else if(ce=="smart"&&(Qt=Se.mode.indent(ze,dt.text.slice(xt.length),dt.text),Qt==et||Qt>150)){if(!le)return;ce="prev"}ce=="prev"?b>Se.first?Qt=Le(cn(Se,b-1).text,null,rt):Qt=0:ce=="add"?Qt=vt+a.options.indentUnit:ce=="subtract"?Qt=vt-a.options.indentUnit:typeof ce=="number"&&(Qt=vt+ce),Qt=Math.max(0,Qt);var on="",Sn=0;if(a.options.indentWithTabs)for(var vn=Math.floor(Qt/rt);vn;--vn)Sn+=rt,on+=" ";if(Sn<Qt&&(on+=ht(Qt-Sn)),on!=xt)return $i(Se,on,Et(b,0),Et(b,xt.length),"+input"),dt.stateAfter=null,!0;for(var Qn=0;Qn<Se.sel.ranges.length;Qn++){var or=Se.sel.ranges[Qn];if(or.head.line==b&&or.head.ch<xt.length){var yr=Et(b,xt.length);Ro(Se,Qn,new bn(yr,yr));break}}}var qa=null;function tu(a){qa=a}function Cu(a,b,ce,le,Se){var ze=a.doc;a.display.shift=!1,le||(le=ze.sel);var rt=+new Date-200,dt=Se=="paste"||a.state.pasteIncoming>rt,vt=gn(b),xt=null;if(dt&&le.ranges.length>1)if(qa&&qa.text.join(`
`)==b){if(le.ranges.length%qa.text.length==0){xt=[];for(var Qt=0;Qt<qa.text.length;Qt++)xt.push(ze.splitLines(qa.text[Qt]))}}else vt.length==le.ranges.length&&a.options.pasteLinesPerSelection&&(xt=qe(vt,function(kr){return[kr]}));for(var on=a.curOp.updateInput,Sn=le.ranges.length-1;Sn>=0;Sn--){var vn=le.ranges[Sn],Qn=vn.from(),or=vn.to();vn.empty()&&(ce&&ce>0?Qn=Et(Qn.line,Qn.ch-ce):a.state.overwrite&&!dt?or=Et(or.line,Math.min(cn(ze,or.line).text.length,or.ch+at(vt).length)):dt&&qa&&qa.lineWise&&qa.text.join(`
`)==vt.join(`
`)&&(Qn=or=Et(Qn.line,0)));var yr={from:Qn,to:or,text:xt?xt[Sn%xt.length]:vt,origin:Se||(dt?"paste":a.state.cutIncoming>rt?"cut":"+input")};eo(a.doc,yr),Di(a,"inputRead",a,yr)}b&&!dt&&Bu(a,b),Es(a),a.curOp.updateInput<2&&(a.curOp.updateInput=on),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Mu(a,b){var ce=a.clipboardData&&a.clipboardData.getData("Text");if(ce)return a.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&ma(b,function(){return Cu(b,ce,0,null,"paste")}),!0}function Bu(a,b){if(!(!a.options.electricChars||!a.options.smartIndent))for(var ce=a.doc.sel,le=ce.ranges.length-1;le>=0;le--){var Se=ce.ranges[le];if(!(Se.head.ch>100||le&&ce.ranges[le-1].head.line==Se.head.line)){var ze=a.getModeAt(Se.head),rt=!1;if(ze.electricChars){for(var dt=0;dt<ze.electricChars.length;dt++)if(b.indexOf(ze.electricChars.charAt(dt))>-1){rt=$l(a,Se.head.line,"smart");break}}else ze.electricInput&&ze.electricInput.test(cn(a.doc,Se.head.line).text.slice(0,Se.head.ch))&&(rt=$l(a,Se.head.line,"smart"));rt&&Di(a,"electricInput",a,Se.head.line)}}}function Lu(a){for(var b=[],ce=[],le=0;le<a.doc.sel.ranges.length;le++){var Se=a.doc.sel.ranges[le].head.line,ze={anchor:Et(Se,0),head:Et(Se+1,0)};ce.push(ze),b.push(a.getRange(ze.anchor,ze.head))}return{text:b,ranges:ce}}function Fu(a,b,ce,le){a.setAttribute("autocorrect",ce?"":"off"),a.setAttribute("autocapitalize",le?"":"off"),a.setAttribute("spellcheck",!!b)}function _u(){var a=Ce("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=Ce("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return E?a.style.width="1000px":a.setAttribute("wrap","off"),ie&&(a.style.border="1px solid black"),Fu(a),b}function Gu(a){var b=a.optionHandlers,ce=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(le,Se){var ze=this.options,rt=ze[le];ze[le]==Se&&le!="mode"||(ze[le]=Se,b.hasOwnProperty(le)&&Jo(this,b[le])(this,Se,rt),Pt(this,"optionChange",this,le))},getOption:function(le){return this.options[le]},getDoc:function(){return this.doc},addKeyMap:function(le,Se){this.state.keyMaps[Se?"push":"unshift"](ul(le))},removeKeyMap:function(le){for(var Se=this.state.keyMaps,ze=0;ze<Se.length;++ze)if(Se[ze]==le||Se[ze].name==le)return Se.splice(ze,1),!0},addOverlay:ua(function(le,Se){var ze=le.token?le:a.getMode(this.options,le);if(ze.startState)throw new Error("Overlays may not be stateful.");_e(this.state.overlays,{mode:ze,modeSpec:le,opaque:Se&&Se.opaque,priority:Se&&Se.priority||0},function(rt){return rt.priority}),this.state.modeGen++,la(this)}),removeOverlay:ua(function(le){for(var Se=this.state.overlays,ze=0;ze<Se.length;++ze){var rt=Se[ze].modeSpec;if(rt==le||typeof le=="string"&&rt.name==le){Se.splice(ze,1),this.state.modeGen++,la(this);return}}}),indentLine:ua(function(le,Se,ze){typeof Se!="string"&&typeof Se!="number"&&(Se==null?Se=this.options.smartIndent?"smart":"prev":Se=Se?"add":"subtract"),St(this.doc,le)&&$l(this,le,Se,ze)}),indentSelection:ua(function(le){for(var Se=this.doc.sel.ranges,ze=-1,rt=0;rt<Se.length;rt++){var dt=Se[rt];if(dt.empty())dt.head.line>ze&&($l(this,dt.head.line,le,!0),ze=dt.head.line,rt==this.doc.sel.primIndex&&Es(this));else{var vt=dt.from(),xt=dt.to(),Qt=Math.max(ze,vt.line);ze=Math.min(this.lastLine(),xt.line-(xt.ch?0:1))+1;for(var on=Qt;on<ze;++on)$l(this,on,le);var Sn=this.doc.sel.ranges;vt.ch==0&&Se.length==Sn.length&&Sn[rt].from().ch>0&&Ro(this.doc,rt,new bn(vt,Sn[rt].to()),Ze)}}}),getTokenAt:function(le,Se){return pr(this,le,Se)},getLineTokens:function(le,Se){return pr(this,Et(le),Se,!0)},getTokenTypeAt:function(le){le=$t(this.doc,le);var Se=rr(this,cn(this.doc,le.line)),ze=0,rt=(Se.length-1)/2,dt=le.ch,vt;if(dt==0)vt=Se[2];else for(;;){var xt=ze+rt>>1;if((xt?Se[xt*2-1]:0)>=dt)rt=xt;else if(Se[xt*2+1]<dt)ze=xt+1;else{vt=Se[xt*2+2];break}}var Qt=vt?vt.indexOf("overlay "):-1;return Qt<0?vt:Qt==0?null:vt.slice(0,Qt-1)},getModeAt:function(le){var Se=this.doc.mode;return Se.innerMode?a.innerMode(Se,this.getTokenAt(le).state).mode:Se},getHelper:function(le,Se){return this.getHelpers(le,Se)[0]},getHelpers:function(le,Se){var ze=[];if(!ce.hasOwnProperty(Se))return ze;var rt=ce[Se],dt=this.getModeAt(le);if(typeof dt[Se]=="string")rt[dt[Se]]&&ze.push(rt[dt[Se]]);else if(dt[Se])for(var vt=0;vt<dt[Se].length;vt++){var xt=rt[dt[Se][vt]];xt&&ze.push(xt)}else dt.helperType&&rt[dt.helperType]?ze.push(rt[dt.helperType]):rt[dt.name]&&ze.push(rt[dt.name]);for(var Qt=0;Qt<rt._global.length;Qt++){var on=rt._global[Qt];on.pred(dt,this)&&tt(ze,on.val)==-1&&ze.push(on.val)}return ze},getStateAfter:function(le,Se){var ze=this.doc;return le=_t(ze,le==null?ze.first+ze.size-1:le),cr(this,le+1,Se).state},cursorCoords:function(le,Se){var ze,rt=this.doc.sel.primary();return le==null?ze=rt.head:typeof le=="object"?ze=$t(this.doc,le):ze=le?rt.from():rt.to(),aa(this,ze,Se||"page")},charCoords:function(le,Se){return ns(this,$t(this.doc,le),Se||"page")},coordsChar:function(le,Se){return le=tl(this,le,Se||"page"),Wo(this,le.left,le.top)},lineAtHeight:function(le,Se){return le=tl(this,{top:le,left:0},Se||"page").top,Kt(this.doc,le+this.display.viewOffset)},heightAtLine:function(le,Se,ze){var rt=!1,dt;if(typeof le=="number"){var vt=this.doc.first+this.doc.size-1;le<this.doc.first?le=this.doc.first:le>vt&&(le=vt,rt=!0),dt=cn(this.doc,le)}else dt=le;return Bs(this,dt,{top:0,left:0},Se||"page",ze||rt).top+(rt?this.doc.height-qr(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,Se,ze,rt,dt){var vt=this.display;le=aa(this,$t(this.doc,le));var xt=le.bottom,Qt=le.left;if(Se.style.position="absolute",Se.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Se),vt.sizer.appendChild(Se),rt=="over")xt=le.top;else if(rt=="above"||rt=="near"){var on=Math.max(vt.wrapper.clientHeight,this.doc.height),Sn=Math.max(vt.sizer.clientWidth,vt.lineSpace.clientWidth);(rt=="above"||le.bottom+Se.offsetHeight>on)&&le.top>Se.offsetHeight?xt=le.top-Se.offsetHeight:le.bottom+Se.offsetHeight<=on&&(xt=le.bottom),Qt+Se.offsetWidth>Sn&&(Qt=Sn-Se.offsetWidth)}Se.style.top=xt+"px",Se.style.left=Se.style.right="",dt=="right"?(Qt=vt.sizer.clientWidth-Se.offsetWidth,Se.style.right="0px"):(dt=="left"?Qt=0:dt=="middle"&&(Qt=(vt.sizer.clientWidth-Se.offsetWidth)/2),Se.style.left=Qt+"px"),ze&&Au(this,{left:Qt,top:xt,right:Qt+Se.offsetWidth,bottom:xt+Se.offsetHeight})},triggerOnKeyDown:ua(Nl),triggerOnKeyPress:ua(Bl),triggerOnKeyUp:Ml,triggerOnMouseDown:ua(Fl),execCommand:function(le){if(ss.hasOwnProperty(le))return ss[le].call(null,this)},triggerElectric:ua(function(le){Bu(this,le)}),findPosH:function(le,Se,ze,rt){var dt=1;Se<0&&(dt=-1,Se=-Se);for(var vt=$t(this.doc,le),xt=0;xt<Se&&(vt=Eu(this.doc,vt,dt,ze,rt),!vt.hitSide);++xt);return vt},moveH:ua(function(le,Se){var ze=this;this.extendSelectionsBy(function(rt){return ze.display.shift||ze.doc.extend||rt.empty()?Eu(ze.doc,rt.head,le,Se,ze.options.rtlMoveVisually):le<0?rt.from():rt.to()},Xe)}),deleteH:ua(function(le,Se){var ze=this.doc.sel,rt=this.doc;ze.somethingSelected()?rt.replaceSelection("",null,"+delete"):gs(this,function(dt){var vt=Eu(rt,dt.head,le,Se,!1);return le<0?{from:vt,to:dt.head}:{from:dt.head,to:vt}})}),findPosV:function(le,Se,ze,rt){var dt=1,vt=rt;Se<0&&(dt=-1,Se=-Se);for(var xt=$t(this.doc,le),Qt=0;Qt<Se;++Qt){var on=aa(this,xt,"div");if(vt==null?vt=on.left:on.left=vt,xt=$u(this,on,dt,ze),xt.hitSide)break}return xt},moveV:ua(function(le,Se){var ze=this,rt=this.doc,dt=[],vt=!this.display.shift&&!rt.extend&&rt.sel.somethingSelected();if(rt.extendSelectionsBy(function(Qt){if(vt)return le<0?Qt.from():Qt.to();var on=aa(ze,Qt.head,"div");Qt.goalColumn!=null&&(on.left=Qt.goalColumn),dt.push(on.left);var Sn=$u(ze,on,le,Se);return Se=="page"&&Qt==rt.sel.primary()&&Kl(ze,ns(ze,Sn,"div").top-on.top),Sn},Xe),dt.length)for(var xt=0;xt<rt.sel.ranges.length;xt++)rt.sel.ranges[xt].goalColumn=dt[xt]}),findWordAt:function(le){var Se=this.doc,ze=cn(Se,le.line).text,rt=le.ch,dt=le.ch;if(ze){var vt=this.getHelper(le,"wordChars");(le.sticky=="before"||dt==ze.length)&&rt?--rt:++dt;for(var xt=ze.charAt(rt),Qt=He(xt,vt)?function(on){return He(on,vt)}:/\s/.test(xt)?function(on){return/\s/.test(on)}:function(on){return!/\s/.test(on)&&!He(on)};rt>0&&Qt(ze.charAt(rt-1));)--rt;for(;dt<ze.length&&Qt(ze.charAt(dt));)++dt}return new bn(Et(le.line,rt),Et(le.line,dt))},toggleOverwrite:function(le){le!=null&&le==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ee(this.display.cursorDiv,"CodeMirror-overwrite"):Be(this.display.cursorDiv,"CodeMirror-overwrite"),Pt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ke()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ua(function(le,Se){nl(this,le,Se)}),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,Se){le==null?(le={from:this.doc.sel.primary().head,to:null},Se==null&&(Se=this.options.cursorScrollMargin)):typeof le=="number"?le={from:Et(le,0),to:null}:le.from==null&&(le={from:le,to:null}),le.to||(le.to=le.from),le.margin=Se||0,le.from.line!=null?lu(this,le):Gl(this,le.from,le.to,le.margin)}),setSize:ua(function(le,Se){var ze=this,rt=function(vt){return typeof vt=="number"||/^\d+$/.test(String(vt))?vt+"px":vt};le!=null&&(this.display.wrapper.style.width=rt(le)),Se!=null&&(this.display.wrapper.style.height=rt(Se)),this.options.lineWrapping&&Ha(this);var dt=this.display.viewFrom;this.doc.iter(dt,this.display.viewTo,function(vt){if(vt.widgets){for(var xt=0;xt<vt.widgets.length;xt++)if(vt.widgets[xt].noHScroll){is(ze,dt,"widget");break}}++dt}),this.curOp.forceUpdate=!0,Pt(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),mt(this.display),(le==null||Math.abs(le-wa(this.display))>.5||this.options.lineWrapping)&&ws(this),Pt(this,"refresh",this)}),swapDoc:ua(function(le){var Se=this.doc;return Se.cm=null,this.state.selectingText&&this.state.selectingText(),li(this,le),fs(this),this.display.input.reset(),nl(this,le.scrollLeft,le.scrollTop),this.curOp.forceScroll=!0,Di(this,"swapDoc",this,Se),Se}),phrase:function(le){var Se=this.options.phrases;return Se&&Object.prototype.hasOwnProperty.call(Se,le)?Se[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}},gt(a),a.registerHelper=function(le,Se,ze){ce.hasOwnProperty(le)||(ce[le]=a[le]={_global:[]}),ce[le][Se]=ze},a.registerGlobalHelper=function(le,Se,ze,rt){a.registerHelper(le,Se,rt),ce[le]._global.push({pred:ze,val:rt})}}function Eu(a,b,ce,le,Se){var ze=b,rt=ce,dt=cn(a,b.line),vt=Se&&a.direction=="rtl"?-ce:ce;function xt(){var Hr=b.line+vt;return Hr<a.first||Hr>=a.first+a.size?!1:(b=new Et(Hr,b.ch,b.sticky),dt=cn(a,Hr))}function Qt(Hr){var Rr;if(le=="codepoint"){var Xr=dt.text.charCodeAt(b.ch+(le>0?0:-1));isNaN(Xr)?Rr=null:Rr=new Et(b.line,Math.max(0,Math.min(dt.text.length,b.ch+ce*(Xr>=55296&&Xr<56320?2:1))),-ce)}else Se?Rr=Ql(a.cm,dt,b,ce):Rr=cl(dt,b,ce);if(Rr==null)if(!Hr&&xt())b=jl(Se,a.cm,dt,b.line,vt);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 on=null,Sn=le=="group",vn=a.cm&&a.cm.getHelper(b,"wordChars"),Qn=!0;!(ce<0&&!Qt(!Qn));Qn=!1){var or=dt.text.charAt(b.ch)||`
`,yr=He(or,vn)?"w":Sn&&or==`
`?"n":!Sn||/\s/.test(or)?null:"p";if(Sn&&!Qn&&!yr&&(yr="s"),on&&on!=yr){ce<0&&(ce=1,Qt(),b.sticky="after");break}if(yr&&(on=yr),ce>0&&!Qt(!Qn))break}var kr=Bo(a,b,ze,rt,!0);return bt(ze,kr)&&(kr.hitSide=!0),kr}function $u(a,b,ce,le){var Se=a.doc,ze=b.left,rt;if(le=="page"){var dt=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),vt=Math.max(dt-.5*wa(a.display),3);rt=(ce>0?b.bottom:b.top)+ce*vt}else le=="line"&&(rt=ce>0?b.bottom+3:b.top-3);for(var xt;xt=Wo(a,ze,rt),!!xt.outside;){if(ce<0?rt<=0:rt>=Se.height){xt.hitSide=!0;break}rt+=ce*5}return xt}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,ce=this,le=ce.cm,Se=ce.div=a.lineDiv;Fu(Se,le.options.spellcheck,le.options.autocorrect,le.options.autocapitalize);function ze(dt){for(var vt=dt.target;vt;vt=vt.parentNode){if(vt==Se)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(vt.className))break}return!1}At(Se,"paste",function(dt){!ze(dt)||Tt(le,dt)||Mu(dt,le)||z<=11&&setTimeout(Jo(le,function(){return b.updateFromDOM()}),20)}),At(Se,"compositionstart",function(dt){b.composing={data:dt.data,done:!1}}),At(Se,"compositionupdate",function(dt){b.composing||(b.composing={data:dt.data,done:!1})}),At(Se,"compositionend",function(dt){b.composing&&(dt.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),At(Se,"touchstart",function(){return ce.forceCompositionEnd()}),At(Se,"input",function(){b.composing||b.readFromDOMSoon()});function rt(dt){if(!(!ze(dt)||Tt(le,dt))){if(le.somethingSelected())tu({lineWise:!1,text:le.getSelections()}),dt.type=="cut"&&le.replaceSelection("",null,"cut");else if(le.options.lineWiseCopyCut){var vt=Lu(le);tu({lineWise:!0,text:vt.text}),dt.type=="cut"&&le.operation(function(){le.setSelections(vt.ranges,0,Ze),le.replaceSelection("",null,"cut")})}else return;if(dt.clipboardData){dt.clipboardData.clearData();var xt=qa.text.join(`
`);if(dt.clipboardData.setData("Text",xt),dt.clipboardData.getData("Text")==xt){dt.preventDefault();return}}var Qt=_u(),on=Qt.firstChild;le.display.lineSpace.insertBefore(Qt,le.display.lineSpace.firstChild),on.value=qa.text.join(`
`);var Sn=document.activeElement;Ke(on),setTimeout(function(){le.display.lineSpace.removeChild(Qt),Sn.focus(),Sn==Se&&ce.showPrimarySelection()},50)}}At(Se,"copy",rt),At(Se,"cut",rt)},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,ce=b.doc.sel.primary(),le=ce.from(),Se=ce.to();if(b.display.viewTo==b.display.viewFrom||le.line>=b.display.viewTo||Se.line<b.display.viewFrom){a.removeAllRanges();return}var ze=nu(b,a.anchorNode,a.anchorOffset),rt=nu(b,a.focusNode,a.focusOffset);if(!(ze&&!ze.bad&&rt&&!rt.bad&&zt(qt(ze,rt),le)==0&&zt(Ft(ze,rt),Se)==0)){var dt=b.display.view,vt=le.line>=b.display.viewFrom&&zu(b,le)||{node:dt[0].measure.map[2],offset:0},xt=Se.line<b.display.viewTo&&zu(b,Se);if(!xt){var Qt=dt[dt.length-1].measure,on=Qt.maps?Qt.maps[Qt.maps.length-1]:Qt.map;xt={node:on[on.length-1],offset:on[on.length-2]-on[on.length-3]}}if(!vt||!xt){a.removeAllRanges();return}var Sn=a.rangeCount&&a.getRangeAt(0),vn;try{vn=je(vt.node,vt.offset,xt.offset,xt.node)}catch(Qn){}vn&&(!te&&b.state.focused?(a.collapse(vt.node,vt.offset),vn.collapsed||(a.removeAllRanges(),a.addRange(vn))):(a.removeAllRanges(),a.addRange(vn)),Sn&&a.anchorNode==null?a.addRange(Sn):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){we(this.cm.display.cursorDiv,a.cursors),we(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 Fe(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 ce=nu(b,a.anchorNode,a.anchorOffset),le=nu(b,a.focusNode,a.focusOffset);ce&&le&&ma(b,function(){Br(b.doc,Jn(ce,le),Ze),(ce.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,ce=a.doc.sel.primary(),le=ce.from(),Se=ce.to();if(le.ch==0&&le.line>a.firstLine()&&(le=Et(le.line-1,cn(a.doc,le.line-1).length)),Se.ch==cn(a.doc,Se.line).text.length&&Se.line<a.lastLine()&&(Se=Et(Se.line+1,0)),le.line<b.viewFrom||Se.line>b.viewTo-1)return!1;var ze,rt,dt;le.line==b.viewFrom||(ze=Wa(a,le.line))==0?(rt=Mt(b.view[0].line),dt=b.view[0].node):(rt=Mt(b.view[ze].line),dt=b.view[ze-1].node.nextSibling);var vt=Wa(a,Se.line),xt,Qt;if(vt==b.view.length-1?(xt=b.viewTo-1,Qt=b.lineDiv.lastChild):(xt=Mt(b.view[vt+1].line)-1,Qt=b.view[vt+1].node.previousSibling),!dt)return!1;for(var on=a.doc.splitLines(Xu(a,dt,Qt,rt,xt)),Sn=tn(a.doc,Et(rt,0),Et(xt,cn(a.doc,xt).text.length));on.length>1&&Sn.length>1;)if(at(on)==at(Sn))on.pop(),Sn.pop(),xt--;else if(on[0]==Sn[0])on.shift(),Sn.shift(),rt++;else break;for(var vn=0,Qn=0,or=on[0],yr=Sn[0],kr=Math.min(or.length,yr.length);vn<kr&&or.charCodeAt(vn)==yr.charCodeAt(vn);)++vn;for(var Hr=at(on),Rr=at(Sn),Xr=Math.min(Hr.length-(on.length==1?vn:0),Rr.length-(Sn.length==1?vn:0));Qn<Xr&&Hr.charCodeAt(Hr.length-Qn-1)==Rr.charCodeAt(Rr.length-Qn-1);)++Qn;if(on.length==1&&Sn.length==1&&rt==le.line)for(;vn&&vn>le.ch&&Hr.charCodeAt(Hr.length-Qn-1)==Rr.charCodeAt(Rr.length-Qn-1);)vn--,Qn++;on[on.length-1]=Hr.slice(0,Hr.length-Qn).replace(/^\u200b+/,""),on[0]=on[0].slice(vn).replace(/\u200b+$/,"");var vi=Et(rt,vn),ci=Et(xt,Sn.length?at(Sn).length-Qn:0);if(on.length>1||on[0]||zt(vi,ci))return $i(a.doc,on,vi,ci,"+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 ce=za(a,b.line);if(!ce||ce.hidden)return null;var le=cn(a.doc,b.line),Se=ds(ce,le,b.line),ze=ut(le,a.doc.direction),rt="left";if(ze){var dt=ot(ze,b.ch);rt=dt%2?"right":"left"}var vt=Rs(Se.map,b.ch,rt);return vt.offset=vt.collapse=="right"?vt.end:vt.start,vt}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,ce,le,Se){var ze="",rt=!1,dt=a.doc.lineSeparator(),vt=!1;function xt(vn){return function(Qn){return Qn.id==vn}}function Qt(){rt&&(ze+=dt,vt&&(ze+=dt),rt=vt=!1)}function on(vn){vn&&(Qt(),ze+=vn)}function Sn(vn){if(vn.nodeType==1){var Qn=vn.getAttribute("cm-text");if(Qn){on(Qn);return}var or=vn.getAttribute("cm-marker"),yr;if(or){var kr=a.findMarks(Et(le,0),Et(Se+1,0),xt(+or));kr.length&&(yr=kr[0].find(0))&&on(tn(a.doc,yr.from,yr.to).join(dt));return}if(vn.getAttribute("contenteditable")=="false")return;var Hr=/^(pre|div|p|li|table|br)$/i.test(vn.nodeName);if(!/^br$/i.test(vn.nodeName)&&vn.textContent.length==0)return;Hr&&Qt();for(var Rr=0;Rr<vn.childNodes.length;Rr++)Sn(vn.childNodes[Rr]);/^(pre|p)$/i.test(vn.nodeName)&&(vt=!0),Hr&&(rt=!0)}else vn.nodeType==3&&on(vn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Sn(b),b!=ce;)b=b.nextSibling,vt=!1;return ze}function nu(a,b,ce){var le;if(b==a.display.lineDiv){if(le=a.display.lineDiv.childNodes[ce],!le)return pl(a.clipPos(Et(a.display.viewTo-1)),!0);b=null,ce=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 Se=0;Se<a.display.view.length;Se++){var ze=a.display.view[Se];if(ze.node==le)return Yu(ze,b,ce)}}function Yu(a,b,ce){var le=a.text.firstChild,Se=!1;if(!b||!Fe(le,b))return pl(Et(Mt(a.line),0),!0);if(b==le&&(Se=!0,b=le.childNodes[ce],ce=0,!b)){var ze=a.rest?at(a.rest):a.line;return pl(Et(Mt(ze),ze.text.length),Se)}var rt=b.nodeType==3?b:null,dt=b;for(!rt&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(rt=b.firstChild,ce&&(ce=rt.nodeValue.length));dt.parentNode!=le;)dt=dt.parentNode;var vt=a.measure,xt=vt.maps;function Qt(yr,kr,Hr){for(var Rr=-1;Rr<(xt?xt.length:0);Rr++)for(var Xr=Rr<0?vt.map:xt[Rr],vi=0;vi<Xr.length;vi+=3){var ci=Xr[vi+2];if(ci==yr||ci==kr){var Li=Mt(Rr<0?a.line:a.rest[Rr]),go=Xr[vi]+Hr;return(Hr<0||ci!=yr)&&(go=Xr[vi+(Hr?1:0)]),Et(Li,go)}}}var on=Qt(rt,dt,ce);if(on)return pl(on,Se);for(var Sn=dt.nextSibling,vn=rt?rt.nodeValue.length-ce:0;Sn;Sn=Sn.nextSibling){if(on=Qt(Sn,Sn.firstChild,0),on)return pl(Et(on.line,on.ch-vn),Se);vn+=Sn.textContent.length}for(var Qn=dt.previousSibling,or=ce;Qn;Qn=Qn.previousSibling){if(on=Qt(Qn,Qn.firstChild,-1),on)return pl(Et(on.line,on.ch+or),Se);or+=Qn.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,ce=this,le=this.cm;this.createField(a);var Se=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),ie&&(Se.style.width="0px"),At(Se,"input",function(){ye&&z>=9&&b.hasSelection&&(b.hasSelection=null),ce.poll()}),At(Se,"paste",function(rt){Tt(le,rt)||Mu(rt,le)||(le.state.pasteIncoming=+new Date,ce.fastPoll())});function ze(rt){if(!Tt(le,rt)){if(le.somethingSelected())tu({lineWise:!1,text:le.getSelections()});else if(le.options.lineWiseCopyCut){var dt=Lu(le);tu({lineWise:!0,text:dt.text}),rt.type=="cut"?le.setSelections(dt.ranges,null,Ze):(ce.prevInput="",Se.value=dt.text.join(`
`),Ke(Se))}else return;rt.type=="cut"&&(le.state.cutIncoming=+new Date)}}At(Se,"cut",ze),At(Se,"copy",ze),At(a.scroller,"paste",function(rt){if(!(Yo(a,rt)||Tt(le,rt))){if(!Se.dispatchEvent){le.state.pasteIncoming=+new Date,ce.focus();return}var dt=new Event("paste");dt.clipboardData=rt.clipboardData,Se.dispatchEvent(dt)}}),At(a.lineSpace,"selectstart",function(rt){Yo(a,rt)||It(rt)}),At(Se,"compositionstart",function(){var rt=le.getCursor("from");ce.composing&&ce.composing.range.clear(),ce.composing={start:rt,range:le.markText(rt,le.getCursor("to"),{className:"CodeMirror-composing"})}}),At(Se,"compositionend",function(){ce.composing&&(ce.poll(),ce.composing.range.clear(),ce.composing=null)})},Ho.prototype.createField=function(a){this.wrapper=_u(),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,ce=a.doc,le=iu(a);if(a.options.moveInputWithCursor){var Se=aa(a,ce.sel.primary().head,"div"),ze=b.wrapper.getBoundingClientRect(),rt=b.lineDiv.getBoundingClientRect();le.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,Se.top+rt.top-ze.top)),le.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,Se.left+rt.left-ze.left))}return le},Ho.prototype.showSelection=function(a){var b=this.cm,ce=b.display;we(ce.cursorDiv,a.cursors),we(ce.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 ce=b.getSelection();this.textarea.value=ce,b.state.focused&&Ke(this.textarea),ye&&z>=9&&(this.hasSelection=ce)}else a||(this.prevInput=this.textarea.value="",ye&&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||ke()!=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 ce(){var le=b.poll();!le&&!a?(a=!0,b.polling.set(60,ce)):(b.pollingFast=!1,b.slowPoll())}b.polling.set(20,ce)},Ho.prototype.poll=function(){var a=this,b=this.cm,ce=this.textarea,le=this.prevInput;if(this.contextMenuPending||!b.state.focused||Ln(ce)&&!le&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var Se=ce.value;if(Se==le&&!b.somethingSelected())return!1;if(ye&&z>=9&&this.hasSelection===Se||pe&&/[\uf700-\uf7ff]/.test(Se))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var ze=Se.charCodeAt(0);if(ze==8203&&!le&&(le="\u200B"),ze==8666)return this.reset(),this.cm.execCommand("undo")}for(var rt=0,dt=Math.min(le.length,Se.length);rt<dt&&le.charCodeAt(rt)==Se.charCodeAt(rt);)++rt;return ma(b,function(){Cu(b,Se.slice(rt),le.length-rt,null,a.composing?"*compose":null),Se.length>1e3||Se.indexOf(`
`)>-1?ce.value=a.prevInput="":a.prevInput=Se,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(){ye&&z>=9&&(this.hasSelection=null),this.fastPoll()},Ho.prototype.onContextMenu=function(a){var b=this,ce=b.cm,le=ce.display,Se=b.textarea;b.contextMenuPending&&b.contextMenuPending();var ze=Ja(ce,a),rt=le.scroller.scrollTop;if(!ze||ee)return;var dt=ce.options.resetSelectionOnContextMenu;dt&&ce.doc.sel.contains(ze)==-1&&Jo(ce,Br)(ce.doc,Jn(ze),Ze);var vt=Se.style.cssText,xt=b.wrapper.style.cssText,Qt=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",Se.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: `+(ye?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var on;E&&(on=window.scrollY),le.input.focus(),E&&window.scrollTo(null,on),le.input.reset(),ce.somethingSelected()||(Se.value=b.prevInput=" "),b.contextMenuPending=vn,le.selForContextMenu=ce.doc.sel,clearTimeout(le.detectingSelectAll);function Sn(){if(Se.selectionStart!=null){var or=ce.somethingSelected(),yr="\u200B"+(or?Se.value:"");Se.value="\u21DA",Se.value=yr,b.prevInput=or?"":"\u200B",Se.selectionStart=1,Se.selectionEnd=yr.length,le.selForContextMenu=ce.doc.sel}}function vn(){if(b.contextMenuPending==vn&&(b.contextMenuPending=!1,b.wrapper.style.cssText=xt,Se.style.cssText=vt,ye&&z<9&&le.scrollbars.setScrollTop(le.scroller.scrollTop=rt),Se.selectionStart!=null)){(!ye||ye&&z<9)&&Sn();var or=0,yr=function(){le.selForContextMenu==ce.doc.sel&&Se.selectionStart==0&&Se.selectionEnd>0&&b.prevInput=="\u200B"?Jo(ce,ii)(ce):or++<10?le.detectingSelectAll=setTimeout(yr,500):(le.selForContextMenu=null,le.input.reset())};le.detectingSelectAll=setTimeout(yr,200)}}if(ye&&z>=9&&Sn(),Ae){wt(a);var Qn=function(){Rt(window,"mouseup",Qn),setTimeout(vn,20)};At(window,"mouseup",Qn)}else setTimeout(vn,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?it(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 ce=ke();b.autofocus=ce==a||a.getAttribute("autofocus")!=null&&ce==document.body}function le(){a.value=dt.getValue()}var Se;if(a.form&&(At(a.form,"submit",le),!b.leaveSubmitMethodAlone)){var ze=a.form;Se=ze.submit;try{var rt=ze.submit=function(){le(),ze.submit=Se,ze.submit(),ze.submit=rt}}catch(vt){}}b.finishInit=function(vt){vt.save=le,vt.getTextArea=function(){return a},vt.toTextArea=function(){vt.toTextArea=isNaN,le(),a.parentNode.removeChild(vt.getWrapperElement()),a.style.display="",a.form&&(Rt(a.form,"submit",le),!b.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=Se))}},a.style.display="none";var dt=Io(function(vt){return a.parentNode.insertBefore(vt,a.nextSibling)},b);return dt}function Qu(a){a.off=Rt,a.on=At,a.wheelEventPixels=Dn,a.Doc=ao,a.splitLines=gn,a.countColumn=Le,a.findColumn=st,a.isWordChar=Me,a.Pass=et,a.signal=Pt,a.Line=ki,a.changeEnd=dr,a.scrollbarModel=uu,a.Pos=Et,a.cmpPos=zt,a.modes=Ut,a.mimeModes=Lt,a.resolveMode=Cn,a.getMode=Tn,a.modeExtensions=jn,a.extendMode=hn,a.copyState=Mn,a.startState=ur,a.innerMode=_n,a.commands=ss,a.keyMap=zo,a.keyName=vs,a.isModifierKey=Il,a.lookupKey=As,a.normalizeKeyMap=ea,a.StringStream=tr,a.SharedTextMarker=oo,a.TextMarker=ga,a.LineWidget=Xi,a.e_preventDefault=It,a.e_stopPropagation=Vt,a.e_stop=wt,a.addClass=Ee,a.contains=Fe,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 gt(ao),Io.inputStyles={textarea:Ho,contenteditable:co},Io.defineMode=function(a){!Io.defaults.mode&&a!="null"&&(Io.defaults.mode=a),sn.apply(this,arguments)},Io.defineMIME=un,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(wn,Yt,Te){(function(te){te(Te(89780),Te(15525),Te(98101))})(function(te){"use strict";te.defineMode("markdown",function(Ot,y){var Pe=te.getMode(Ot,"text/html"),ye=Pe.name=="null";function z(Le){if(te.findModeByName){var Ue=te.findModeByName(Le);Ue&&(Le=Ue.mime||Ue.mimes[0])}var tt=te.getMode(Ot,Le);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 re in E)E.hasOwnProperty(re)&&y.tokenTypeOverrides[re]&&(E[re]=y.tokenTypeOverrides[re]);var oe=/^([*\-_])(?:\s*\1){2,}\s*$/,ee=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,de=/^\[(x| )\](?=\s)/i,x=y.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ae=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ie=/^[^#!\[\]*_\\<>` "'(~:]+/,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 ge(Le,Ue,tt){return Ue.f=Ue.inline=tt,tt(Le,Ue)}function me(Le,Ue,tt){return Ue.f=Ue.block=tt,tt(Le,Ue)}function xe(Le){return!Le||!/\S/.test(Le.string)}function Ae(Le){if(Le.linkTitle=!1,Le.linkHref=!1,Le.linkText=!1,Le.em=!1,Le.strong=!1,Le.strikethrough=!1,Le.quote=0,Le.indentedCode=!1,Le.f==Be){var Ue=ye;if(!Ue){var tt=te.innerMode(Pe,Le.htmlState);Ue=tt.mode.name=="xml"&&tt.state.tagStart===null&&!tt.state.context&&tt.state.tokenize.isInText}Ue&&(Le.f=Oe,Le.block=Ne,Le.htmlState=null)}return Le.trailingSpace=0,Le.trailingSpaceNewLine=!1,Le.prevLine=Le.thisLine,Le.thisLine={stream:null},null}function Ne(Le,Ue){var tt=Le.column()===Ue.indentation,nt=xe(Ue.prevLine.stream),et=Ue.indentedCode,Ze=Ue.prevLine.hr,Ye=Ue.list!==!1,Xe=(Ue.listStack[Ue.listStack.length-1]||0)+3;Ue.indentedCode=!1;var st=Ue.indentation;if(Ue.indentationDiff===null&&(Ue.indentationDiff=Ue.indentation,Ye)){for(Ue.list=null;st<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=st-Ue.listStack[Ue.listStack.length-1])}var Qe=!nt&&!Ze&&!Ue.prevLine.header&&(!Ye||!et)&&!Ue.prevLine.fencedCodeEnd,ht=(Ue.list===!1||Ze||nt)&&Ue.indentation<=Xe&&Le.match(oe),at=null;if(Ue.indentationDiff>=4&&(et||Ue.prevLine.fencedCodeEnd||Ue.prevLine.header||nt))return Le.skipToEnd(),Ue.indentedCode=!0,E.code;if(Le.eatSpace())return null;if(tt&&Ue.indentation<=Xe&&(at=Le.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,we(Ue);if(Ue.indentation<=Xe&&Le.eat(">"))return Ue.quote=tt?1:Ue.quote+1,y.highlightFormatting&&(Ue.formatting="quote"),Le.eatSpace(),we(Ue);if(!ht&&!Ue.setext&&tt&&Ue.indentation<=Xe&&(at=Le.match(ee))){var qe=at[1]?"ol":"ul";return Ue.indentation=st+Le.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&&Le.match(de,!1)&&(Ue.taskList=!0),Ue.f=Ue.inline,y.highlightFormatting&&(Ue.formatting=["list","list-"+qe]),we(Ue)}else{if(tt&&Ue.indentation<=Xe&&(at=Le.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=De,y.highlightFormatting&&(Ue.formatting="code-block"),Ue.code=-1,we(Ue);if(Ue.setext||(!Qe||!Ye)&&!Ue.quote&&Ue.list===!1&&!Ue.code&&!ht&&!ue.test(Le.string)&&(at=Le.lookAhead(1))&&(at=at.match(ae)))return Ue.setext?(Ue.header=Ue.setext,Ue.setext=0,Le.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,we(Ue);if(ht)return Le.skipToEnd(),Ue.hr=!0,Ue.thisLine.hr=!0,E.hr;if(Le.peek()==="[")return ge(Le,Ue,Ge)}return ge(Le,Ue,Ue.inline)}function Be(Le,Ue){var tt=Pe.token(Le,Ue.htmlState);if(!ye){var nt=te.innerMode(Pe,Ue.htmlState);(nt.mode.name=="xml"&&nt.state.tagStart===null&&!nt.state.context&&nt.state.tokenize.isInText||Ue.md_inside&&Le.current().indexOf(">")>-1)&&(Ue.f=Oe,Ue.block=Ne,Ue.htmlState=null)}return tt}function De(Le,Ue){var tt=Ue.listStack[Ue.listStack.length-1]||0,nt=Ue.indentation<tt,et=tt+3;if(Ue.fencedEndRE&&Ue.indentation<=et&&(nt||Le.match(Ue.fencedEndRE))){y.highlightFormatting&&(Ue.formatting="code-block");var Ze;return nt||(Ze=we(Ue)),Ue.localMode=Ue.localState=null,Ue.block=Ne,Ue.f=Oe,Ue.fencedEndRE=null,Ue.code=0,Ue.thisLine.fencedCodeEnd=!0,nt?me(Le,Ue,Ue.block):Ze}else return Ue.localMode?Ue.localMode.token(Le,Ue.localState):(Le.skipToEnd(),E.code)}function we(Le){var Ue=[];if(Le.formatting){Ue.push(E.formatting),typeof Le.formatting=="string"&&(Le.formatting=[Le.formatting]);for(var tt=0;tt<Le.formatting.length;tt++)Ue.push(E.formatting+"-"+Le.formatting[tt]),Le.formatting[tt]==="header"&&Ue.push(E.formatting+"-"+Le.formatting[tt]+"-"+Le.header),Le.formatting[tt]==="quote"&&(!y.maxBlockquoteDepth||y.maxBlockquoteDepth>=Le.quote?Ue.push(E.formatting+"-"+Le.formatting[tt]+"-"+Le.quote):Ue.push("error"))}if(Le.taskOpen)return Ue.push("meta"),Ue.length?Ue.join(" "):null;if(Le.taskClosed)return Ue.push("property"),Ue.length?Ue.join(" "):null;if(Le.linkHref?Ue.push(E.linkHref,"url"):(Le.strong&&Ue.push(E.strong),Le.em&&Ue.push(E.em),Le.strikethrough&&Ue.push(E.strikethrough),Le.emoji&&Ue.push(E.emoji),Le.linkText&&Ue.push(E.linkText),Le.code&&Ue.push(E.code),Le.image&&Ue.push(E.image),Le.imageAltText&&Ue.push(E.imageAltText,"link"),Le.imageMarker&&Ue.push(E.imageMarker)),Le.header&&Ue.push(E.header,E.header+"-"+Le.header),Le.quote&&(Ue.push(E.quote),!y.maxBlockquoteDepth||y.maxBlockquoteDepth>=Le.quote?Ue.push(E.quote+"-"+Le.quote):Ue.push(E.quote+"-"+y.maxBlockquoteDepth)),Le.list!==!1){var nt=(Le.listStack.length-1)%3;nt?nt===1?Ue.push(E.list2):Ue.push(E.list3):Ue.push(E.list1)}return Le.trailingSpaceNewLine?Ue.push("trailing-space-new-line"):Le.trailingSpace&&Ue.push("trailing-space-"+(Le.trailingSpace%2?"a":"b")),Ue.length?Ue.join(" "):null}function Ce(Le,Ue){if(Le.match(ie,!0))return we(Ue)}function Oe(Le,Ue){var tt=Ue.text(Le,Ue);if(typeof tt!="undefined")return tt;if(Ue.list)return Ue.list=null,we(Ue);if(Ue.taskList){var nt=Le.match(de,!0)[1]===" ";return nt?Ue.taskOpen=!0:Ue.taskClosed=!0,y.highlightFormatting&&(Ue.formatting="task"),Ue.taskList=!1,we(Ue)}if(Ue.taskOpen=!1,Ue.taskClosed=!1,Ue.header&&Le.match(/^#+$/,!0))return y.highlightFormatting&&(Ue.formatting="header"),we(Ue);var et=Le.next();if(Ue.linkTitle){Ue.linkTitle=!1;var Ze=et;et==="("&&(Ze=")"),Ze=(Ze+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ye="^\\s*(?:[^"+Ze+"\\\\]+|\\\\\\\\|\\\\.)"+Ze;if(Le.match(new RegExp(Ye),!0))return E.linkHref}if(et==="`"){var Xe=Ue.formatting;y.highlightFormatting&&(Ue.formatting="code"),Le.eatWhile("`");var st=Le.current().length;if(Ue.code==0&&(!Ue.quote||st==1))return Ue.code=st,we(Ue);if(st==Ue.code){var Qe=we(Ue);return Ue.code=0,Qe}else return Ue.formatting=Xe,we(Ue)}else if(Ue.code)return we(Ue);if(et==="\\"&&(Le.next(),y.highlightFormatting)){var ht=we(Ue),at=E.formatting+"-escape";return ht?ht+" "+at:at}if(et==="!"&&Le.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ue.imageMarker=!0,Ue.image=!0,y.highlightFormatting&&(Ue.formatting="image"),we(Ue);if(et==="["&&Ue.imageMarker&&Le.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ue.imageMarker=!1,Ue.imageAltText=!0,y.highlightFormatting&&(Ue.formatting="image"),we(Ue);if(et==="]"&&Ue.imageAltText){y.highlightFormatting&&(Ue.formatting="image");var ht=we(Ue);return Ue.imageAltText=!1,Ue.image=!1,Ue.inline=Ue.f=Fe,ht}if(et==="["&&!Ue.image)return Ue.linkText&&Le.match(/^.*?\]/)||(Ue.linkText=!0,y.highlightFormatting&&(Ue.formatting="link")),we(Ue);if(et==="]"&&Ue.linkText){y.highlightFormatting&&(Ue.formatting="link");var ht=we(Ue);return Ue.linkText=!1,Ue.inline=Ue.f=Le.match(/\(.*?\)| ?\[.*?\]/,!1)?Fe:Oe,ht}if(et==="<"&&Le.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ue.f=Ue.inline=je,y.highlightFormatting&&(Ue.formatting="link");var ht=we(Ue);return ht?ht+=" ":ht="",ht+E.linkInline}if(et==="<"&&Le.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ue.f=Ue.inline=je,y.highlightFormatting&&(Ue.formatting="link");var ht=we(Ue);return ht?ht+=" ":ht="",ht+E.linkEmail}if(y.xml&&et==="<"&&Le.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var qe=Le.string.indexOf(">",Le.pos);if(qe!=-1){var _e=Le.string.substring(Le.start,qe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(_e)&&(Ue.md_inside=!0)}return Le.backUp(1),Ue.htmlState=te.startState(Pe),me(Le,Ue,Be)}if(y.xml&&et==="<"&&Le.match(/^\/\w*?>/))return Ue.md_inside=!1,"tag";if(et==="*"||et==="_"){for(var Re=1,ne=Le.pos==1?" ":Le.string.charAt(Le.pos-2);Re<3&&Le.eat(et);)Re++;var fe=Le.peek()||" ",Me=!/\s/.test(fe)&&(!pe.test(fe)||/\s/.test(ne)||pe.test(ne)),He=!/\s/.test(ne)&&(!pe.test(ne)||/\s/.test(fe)||pe.test(fe)),be=null,ve=null;if(Re%2&&(!Ue.em&&Me&&(et==="*"||!He||pe.test(ne))?be=!0:Ue.em==et&&He&&(et==="*"||!Me||pe.test(fe))&&(be=!1)),Re>1&&(!Ue.strong&&Me&&(et==="*"||!He||pe.test(ne))?ve=!0:Ue.strong==et&&He&&(et==="*"||!Me||pe.test(fe))&&(ve=!1)),ve!=null||be!=null){y.highlightFormatting&&(Ue.formatting=be==null?"strong":ve==null?"em":"strong em"),be===!0&&(Ue.em=et),ve===!0&&(Ue.strong=et);var Qe=we(Ue);return be===!1&&(Ue.em=!1),ve===!1&&(Ue.strong=!1),Qe}}else if(et===" "&&(Le.eat("*")||Le.eat("_"))){if(Le.peek()===" ")return we(Ue);Le.backUp(1)}if(y.strikethrough){if(et==="~"&&Le.eatWhile(et)){if(Ue.strikethrough){y.highlightFormatting&&(Ue.formatting="strikethrough");var Qe=we(Ue);return Ue.strikethrough=!1,Qe}else if(Le.match(/^[^\s]/,!1))return Ue.strikethrough=!0,y.highlightFormatting&&(Ue.formatting="strikethrough"),we(Ue)}else if(et===" "&&Le.match(/^~~/,!0)){if(Le.peek()===" ")return we(Ue);Le.backUp(2)}}if(y.emoji&&et===":"&&Le.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ue.emoji=!0,y.highlightFormatting&&(Ue.formatting="emoji");var Ie=we(Ue);return Ue.emoji=!1,Ie}return et===" "&&(Le.match(/^ +$/,!1)?Ue.trailingSpace++:Ue.trailingSpace&&(Ue.trailingSpaceNewLine=!0)),we(Ue)}function je(Le,Ue){var tt=Le.next();if(tt===">"){Ue.f=Ue.inline=Oe,y.highlightFormatting&&(Ue.formatting="link");var nt=we(Ue);return nt?nt+=" ":nt="",nt+E.linkInline}return Le.match(/^[^>]+/,!0),E.linkInline}function Fe(Le,Ue){if(Le.eatSpace())return null;var tt=Le.next();return tt==="("||tt==="["?(Ue.f=Ue.inline=Ee(tt==="("?")":"]"),y.highlightFormatting&&(Ue.formatting="link-string"),Ue.linkHref=!0,we(Ue)):"error"}var ke={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ee(Le){return function(Ue,tt){var nt=Ue.next();if(nt===Le){tt.f=tt.inline=Oe,y.highlightFormatting&&(tt.formatting="link-string");var et=we(tt);return tt.linkHref=!1,et}return Ue.match(ke[Le]),tt.linkHref=!0,we(tt)}}function Ge(Le,Ue){return Le.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ue.f=Ke,Le.next(),y.highlightFormatting&&(Ue.formatting="link"),Ue.linkText=!0,we(Ue)):ge(Le,Ue,Oe)}function Ke(Le,Ue){if(Le.match(/^\]:/,!0)){Ue.f=Ue.inline=Ve,y.highlightFormatting&&(Ue.formatting="link");var tt=we(Ue);return Ue.linkText=!1,tt}return Le.match(/^([^\]\\]|\\.)+/,!0),E.linkText}function Ve(Le,Ue){return Le.eatSpace()?null:(Le.match(/^[^\s]+/,!0),Le.peek()===void 0?Ue.linkTitle=!0:Le.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ue.f=Ue.inline=Oe,E.linkHref+" url")}var it={startState:function(){return{f:Ne,prevLine:{stream:null},thisLine:{stream:null},block:Ne,htmlState:null,indentation:0,inline:Oe,text:Ce,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(Le){return{f:Le.f,prevLine:Le.prevLine,thisLine:Le.thisLine,block:Le.block,htmlState:Le.htmlState&&te.copyState(Pe,Le.htmlState),indentation:Le.indentation,localMode:Le.localMode,localState:Le.localMode?te.copyState(Le.localMode,Le.localState):null,inline:Le.inline,text:Le.text,formatting:!1,linkText:Le.linkText,linkTitle:Le.linkTitle,linkHref:Le.linkHref,code:Le.code,em:Le.em,strong:Le.strong,strikethrough:Le.strikethrough,emoji:Le.emoji,header:Le.header,setext:Le.setext,hr:Le.hr,taskList:Le.taskList,list:Le.list,listStack:Le.listStack.slice(0),quote:Le.quote,indentedCode:Le.indentedCode,trailingSpace:Le.trailingSpace,trailingSpaceNewLine:Le.trailingSpaceNewLine,md_inside:Le.md_inside,fencedEndRE:Le.fencedEndRE}},token:function(Le,Ue){if(Ue.formatting=!1,Le!=Ue.thisLine.stream){if(Ue.header=0,Ue.hr=!1,Le.match(/^\s*$/,!0))return Ae(Ue),null;if(Ue.prevLine=Ue.thisLine,Ue.thisLine={stream:Le},Ue.taskList=!1,Ue.trailingSpace=0,Ue.trailingSpaceNewLine=!1,!Ue.localState&&(Ue.f=Ue.block,Ue.f!=Be)){var tt=Le.match(/^\s*/,!0)[0].replace(/\t/g,he).length;if(Ue.indentation=tt,Ue.indentationDiff=null,tt>0)return null}}return Ue.f(Le,Ue)},innerMode:function(Le){return Le.block==Be?{state:Le.htmlState,mode:Pe}:Le.localState?{state:Le.localState,mode:Le.localMode}:{state:Le,mode:it}},indent:function(Le,Ue,tt){return Le.block==Be&&Pe.indent?Pe.indent(Le.htmlState,Ue,tt):Le.localState&&Le.localMode.indent?Le.localMode.indent(Le.localState,Ue,tt):te.Pass},blankLine:Ae,getType:we,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return it},"xml"),te.defineMIME("text/markdown","markdown"),te.defineMIME("text/x-markdown","markdown")})},98101:function(wn,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(Pe){Pe=Pe.toLowerCase();for(var ye=0;ye<te.modeInfo.length;ye++){var z=te.modeInfo[ye];if(z.mime==Pe)return z;if(z.mimes){for(var E=0;E<z.mimes.length;E++)if(z.mimes[E]==Pe)return z}}if(/\+xml$/.test(Pe))return te.findModeByMIME("application/xml");if(/\+json$/.test(Pe))return te.findModeByMIME("application/json")},te.findModeByExtension=function(Pe){Pe=Pe.toLowerCase();for(var ye=0;ye<te.modeInfo.length;ye++){var z=te.modeInfo[ye];if(z.ext){for(var E=0;E<z.ext.length;E++)if(z.ext[E]==Pe)return z}}},te.findModeByFileName=function(Pe){for(var ye=0;ye<te.modeInfo.length;ye++){var z=te.modeInfo[ye];if(z.file&&z.file.test(Pe))return z}var E=Pe.lastIndexOf("."),re=E>-1&&Pe.substring(E+1,Pe.length);if(re)return te.findModeByExtension(re)},te.findModeByName=function(Pe){Pe=Pe.toLowerCase();for(var ye=0;ye<te.modeInfo.length;ye++){var z=te.modeInfo[ye];if(z.name.toLowerCase()==Pe)return z;if(z.alias){for(var E=0;E<z.alias.length;E++)if(z.alias[E].toLowerCase()==Pe)return z}}}})},67549:function(wn,Yt,Te){(function(te){te(Te(89780))})(function(te){"use strict";te.defineMode("stex",function(Ot,y){"use strict";function Pe(ie,se){ie.cmdState.push(se)}function ye(ie){return ie.cmdState.length>0?ie.cmdState[ie.cmdState.length-1]:null}function z(ie){var se=ie.cmdState.pop();se&&se.closeBracket()}function E(ie){for(var se=ie.cmdState,ue=se.length-1;ue>=0;ue--){var pe=se[ue];if(pe.name!="DEFAULT")return pe}return{styleIdentifier:function(){return null}}}function re(ie,se,ue){return function(){this.name=ie,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=re("importmodule","tag",["string","builtin"]),oe.documentclass=re("documentclass","tag",["","atom"]),oe.usepackage=re("usepackage","tag",["atom"]),oe.begin=re("begin","tag",["atom"]),oe.end=re("end","tag",["atom"]),oe.label=re("label","tag",["atom"]),oe.ref=re("ref","tag",["atom"]),oe.eqref=re("eqref","tag",["atom"]),oe.cite=re("cite","tag",["atom"]),oe.bibitem=re("bibitem","tag",["atom"]),oe.Bibitem=re("Bibitem","tag",["atom"]),oe.RBibitem=re("RBibitem","tag",["atom"]),oe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ee(ie,se){ie.f=se}function de(ie,se){var ue;if(ie.match(/^\\[a-zA-Z@]+/)){var pe=ie.current().slice(1);return ue=oe.hasOwnProperty(pe)?oe[pe]:oe.DEFAULT,ue=new ue,Pe(se,ue),ee(se,ae),ue.style}if(ie.match(/^\\[$&%#{}_]/)||ie.match(/^\\[,;!\/\\]/))return"tag";if(ie.match("\\["))return ee(se,function(ge,me){return x(ge,me,"\\]")}),"keyword";if(ie.match("\\("))return ee(se,function(ge,me){return x(ge,me,"\\)")}),"keyword";if(ie.match("$$"))return ee(se,function(ge,me){return x(ge,me,"$$")}),"keyword";if(ie.match("$"))return ee(se,function(ge,me){return x(ge,me,"$")}),"keyword";var he=ie.next();if(he=="%")return ie.skipToEnd(),"comment";if(he=="}"||he=="]"){if(ue=ye(se),ue)ue.closeBracket(he),ee(se,ae);else return"error";return"bracket"}else return he=="{"||he=="["?(ue=oe.DEFAULT,ue=new ue,Pe(se,ue),"bracket"):/\d/.test(he)?(ie.eatWhile(/[\w.%]/),"atom"):(ie.eatWhile(/[\w\-_]/),ue=E(se),ue.name=="begin"&&(ue.argument=ie.current()),ue.styleIdentifier())}function x(ie,se,ue){if(ie.eatSpace())return null;if(ue&&ie.match(ue))return ee(se,de),"keyword";if(ie.match(/^\\[a-zA-Z@]+/))return"tag";if(ie.match(/^[a-zA-Z]+/))return"variable-2";if(ie.match(/^\\[$&%#{}_]/)||ie.match(/^\\[,;!\/]/)||ie.match(/^[\^_&]/))return"tag";if(ie.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(ie.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var pe=ie.next();return pe=="{"||pe=="}"||pe=="["||pe=="]"||pe=="("||pe==")"?"bracket":pe=="%"?(ie.skipToEnd(),"comment"):"error"}function ae(ie,se){var ue=ie.peek(),pe;return ue=="{"||ue=="["?(pe=ye(se),pe.openBracket(ue),ie.eat(ue),ee(se,de),"bracket"):/[ \t\r]/.test(ue)?(ie.eat(ue),null):(ee(se,de),z(se),de(ie,se))}return{startState:function(){var ie=y.inMathMode?function(se,ue){return x(se,ue)}:de;return{cmdState:[],f:ie}},copyState:function(ie){return{cmdState:ie.cmdState.slice(),f:ie.f}},token:function(ie,se){return se.f(ie,se)},blankLine:function(ie){ie.f=de,ie.cmdState.length=0},lineComment:"%"}}),te.defineMIME("text/x-stex","stex"),te.defineMIME("text/x-latex","stex")})},15525:function(wn,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(Pe,ye){var z=Pe.indentUnit,E={},re=ye.htmlMode?Ot:y;for(var oe in re)E[oe]=re[oe];for(var oe in ye)E[oe]=ye[oe];var ee,de;function x(je,Fe){function ke(Ke){return Fe.tokenize=Ke,Ke(je,Fe)}var Ee=je.next();if(Ee=="<")return je.eat("!")?je.eat("[")?je.match("CDATA[")?ke(se("atom","]]>")):null:je.match("--")?ke(se("comment","-->")):je.match("DOCTYPE",!0,!0)?(je.eatWhile(/[\w\._\-]/),ke(ue(1))):null:je.eat("?")?(je.eatWhile(/[\w\._\-]/),Fe.tokenize=se("meta","?>"),"meta"):(ee=je.eat("/")?"closeTag":"openTag",Fe.tokenize=ae,"tag bracket");if(Ee=="&"){var Ge;return je.eat("#")?je.eat("x")?Ge=je.eatWhile(/[a-fA-F\d]/)&&je.eat(";"):Ge=je.eatWhile(/[\d]/)&&je.eat(";"):Ge=je.eatWhile(/[\w\.\-:]/)&&je.eat(";"),Ge?"atom":"error"}else return je.eatWhile(/[^&<]/),null}x.isInText=!0;function ae(je,Fe){var ke=je.next();if(ke==">"||ke=="/"&&je.eat(">"))return Fe.tokenize=x,ee=ke==">"?"endTag":"selfcloseTag","tag bracket";if(ke=="=")return ee="equals",null;if(ke=="<"){Fe.tokenize=x,Fe.state=me,Fe.tagName=Fe.tagStart=null;var Ee=Fe.tokenize(je,Fe);return Ee?Ee+" tag error":"tag error"}else return/[\'\"]/.test(ke)?(Fe.tokenize=ie(ke),Fe.stringStartCol=je.column(),Fe.tokenize(je,Fe)):(je.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ie(je){var Fe=function(ke,Ee){for(;!ke.eol();)if(ke.next()==je){Ee.tokenize=ae;break}return"string"};return Fe.isInAttribute=!0,Fe}function se(je,Fe){return function(ke,Ee){for(;!ke.eol();){if(ke.match(Fe)){Ee.tokenize=x;break}ke.next()}return je}}function ue(je){return function(Fe,ke){for(var Ee;(Ee=Fe.next())!=null;){if(Ee=="<")return ke.tokenize=ue(je+1),ke.tokenize(Fe,ke);if(Ee==">")if(je==1){ke.tokenize=x;break}else return ke.tokenize=ue(je-1),ke.tokenize(Fe,ke)}return"meta"}}function pe(je,Fe,ke){this.prev=je.context,this.tagName=Fe,this.indent=je.indented,this.startOfLine=ke,(E.doNotIndent.hasOwnProperty(Fe)||je.context&&je.context.noIndent)&&(this.noIndent=!0)}function he(je){je.context&&(je.context=je.context.prev)}function ge(je,Fe){for(var ke;;){if(!je.context||(ke=je.context.tagName,!E.contextGrabbers.hasOwnProperty(ke)||!E.contextGrabbers[ke].hasOwnProperty(Fe)))return;he(je)}}function me(je,Fe,ke){return je=="openTag"?(ke.tagStart=Fe.column(),xe):je=="closeTag"?Ae:me}function xe(je,Fe,ke){return je=="word"?(ke.tagName=Fe.current(),de="tag",De):E.allowMissingTagName&&je=="endTag"?(de="tag bracket",De(je,Fe,ke)):(de="error",xe)}function Ae(je,Fe,ke){if(je=="word"){var Ee=Fe.current();return ke.context&&ke.context.tagName!=Ee&&E.implicitlyClosed.hasOwnProperty(ke.context.tagName)&&he(ke),ke.context&&ke.context.tagName==Ee||E.matchClosing===!1?(de="tag",Ne):(de="tag error",Be)}else return E.allowMissingTagName&&je=="endTag"?(de="tag bracket",Ne(je,Fe,ke)):(de="error",Be)}function Ne(je,Fe,ke){return je!="endTag"?(de="error",Ne):(he(ke),me)}function Be(je,Fe,ke){return de="error",Ne(je,Fe,ke)}function De(je,Fe,ke){if(je=="word")return de="attribute",we;if(je=="endTag"||je=="selfcloseTag"){var Ee=ke.tagName,Ge=ke.tagStart;return ke.tagName=ke.tagStart=null,je=="selfcloseTag"||E.autoSelfClosers.hasOwnProperty(Ee)?ge(ke,Ee):(ge(ke,Ee),ke.context=new pe(ke,Ee,Ge==ke.indented)),me}return de="error",De}function we(je,Fe,ke){return je=="equals"?Ce:(E.allowMissing||(de="error"),De(je,Fe,ke))}function Ce(je,Fe,ke){return je=="string"?Oe:je=="word"&&E.allowUnquoted?(de="string",De):(de="error",De(je,Fe,ke))}function Oe(je,Fe,ke){return je=="string"?Oe:De(je,Fe,ke)}return{startState:function(je){var Fe={tokenize:x,state:me,indented:je||0,tagName:null,tagStart:null,context:null};return je!=null&&(Fe.baseIndent=je),Fe},token:function(je,Fe){if(!Fe.tagName&&je.sol()&&(Fe.indented=je.indentation()),je.eatSpace())return null;ee=null;var ke=Fe.tokenize(je,Fe);return(ke||ee)&&ke!="comment"&&(de=null,Fe.state=Fe.state(ee||ke,je,Fe),de&&(ke=de=="error"?ke+" error":de)),ke},indent:function(je,Fe,ke){var Ee=je.context;if(je.tokenize.isInAttribute)return je.tagStart==je.indented?je.stringStartCol+1:je.indented+z;if(Ee&&Ee.noIndent)return te.Pass;if(je.tokenize!=ae&&je.tokenize!=x)return ke?ke.match(/^(\s*)/)[0].length:0;if(je.tagName)return E.multilineTagIndentPastTag!==!1?je.tagStart+je.tagName.length+2:je.tagStart+z*(E.multilineTagIndentFactor||1);if(E.alignCDATA&&/<!\[CDATA\[/.test(Fe))return 0;var Ge=Fe&&/^<(\/)?([\w_:\.-]*)/.exec(Fe);if(Ge&&Ge[1])for(;Ee;)if(Ee.tagName==Ge[2]){Ee=Ee.prev;break}else if(E.implicitlyClosed.hasOwnProperty(Ee.tagName))Ee=Ee.prev;else break;else if(Ge)for(;Ee;){var Ke=E.contextGrabbers[Ee.tagName];if(Ke&&Ke.hasOwnProperty(Ge[2]))Ee=Ee.prev;else break}for(;Ee&&Ee.prev&&!Ee.startOfLine;)Ee=Ee.prev;return Ee?Ee.indent+z:je.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:E.htmlMode?"html":"xml",helperType:E.htmlMode?"html":"xml",skipAttribute:function(je){je.state==Ce&&(je.state=De)},xmlCurrentTag:function(je){return je.tagName?{name:je.tagName,close:je.type=="closeTag"}:null},xmlCurrentContext:function(je){for(var Fe=[],ke=je.context;ke;ke=ke.prev)ke.tagName&&Fe.push(ke.tagName);return Fe.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(wn,Yt,Te){"use strict";Te.d(Yt,{hP:function(){return _e}});var te=function(Re,ne){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,Me){fe.__proto__=Me}||function(fe,Me){for(var He in Me)Object.prototype.hasOwnProperty.call(Me,He)&&(fe[He]=Me[He])})(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(He,be){function ve(We){try{$e(Me.next(We))}catch(Je){be(Je)}}function Ie(We){try{$e(Me.throw(We))}catch(Je){be(Je)}}function $e(We){var Je;We.done?He(We.value):(Je=We.value,Je instanceof fe?Je:new fe(function(ct){ct(Je)})).then(ve,Ie)}$e((Me=Me.apply(Re,ne||[])).next())})}function Pe(Re,ne){var fe,Me,He,be,ve={label:0,sent:function(){if(1&He[0])throw He[1];return He[1]},trys:[],ops:[]};return be={next:Ie(0),throw:Ie(1),return:Ie(2)},typeof Symbol=="function"&&(be[Symbol.iterator]=function(){return this}),be;function Ie($e){return function(We){return function(Je){if(fe)throw new TypeError("Generator is already executing.");for(;ve;)try{if(fe=1,Me&&(He=2&Je[0]?Me.return:Je[0]?Me.throw||((He=Me.return)&&He.call(Me),0):Me.next)&&!(He=He.call(Me,Je[1])).done)return He;switch(Me=0,He&&(Je=[2&Je[0],He.value]),Je[0]){case 0:case 1:He=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(He=ve.trys,!((He=He.length>0&&He[He.length-1])||Je[0]!==6&&Je[0]!==2)){ve=0;continue}if(Je[0]===3&&(!He||Je[1]>He[0]&&Je[1]<He[3])){ve.label=Je[1];break}if(Je[0]===6&&ve.label<He[1]){ve.label=He[1],He=Je;break}if(He&&ve.label<He[2]){ve.label=He[2],ve.ops.push(Je);break}He[2]&&ve.ops.pop(),ve.trys.pop();continue}Je=ne.call(Re,ve)}catch(ct){Je=[6,ct],Me=0}finally{fe=He=0}if(5&Je[0])throw Je[1];return{value:Je[0]?Je[1]:void 0,done:!0}}([$e,We])}}}function ye(){for(var Re=0,ne=0,fe=arguments.length;ne<fe;ne++)Re+=arguments[ne].length;var Me=Array(Re),He=0;for(ne=0;ne<fe;ne++)for(var be=arguments[ne],ve=0,Ie=be.length;ve<Ie;ve++,He++)Me[He]=be[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,He=fe;Me<He.length;Me++){var be=He[Me],ve=be[0],Ie=be[1];ne.setAttribute(ve,Ie)}},Re.createRect=function(ne,fe,Me){var He=document.createElementNS("http://www.w3.org/2000/svg","rect");return He.setAttribute("width",ne.toString()),He.setAttribute("height",fe.toString()),Me&&Re.setAttributes(He,Me),He},Re.createLine=function(ne,fe,Me,He,be){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",He.toString()),be&&Re.setAttributes(ve,be),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 He=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return He.setAttribute("cx",(ne/2).toString()),He.setAttribute("cy",(fe/2).toString()),He.setAttribute("rx",(ne/2).toString()),He.setAttribute("ry",(fe/2).toString()),Me&&Re.setAttributes(He,Me),He},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,He,be,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",He.toString()],["refX",be.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}(),re=function(){function Re(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Re.prototype.rasterize=function(ne,fe,Me){var He=this;return new Promise(function(be){var ve=Me!==void 0?Me:document.createElement("canvas");ne===null&&(He.markersOnly=!0,He.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,He.naturalSize===!0?(Ie.width.baseVal.value=ne.naturalWidth,Ie.height.baseVal.value=ne.naturalHeight):He.width!==void 0&&He.height!==void 0&&(Ie.width.baseVal.value=He.width,Ie.height.baseVal.value=He.height),ve.width=Ie.width.baseVal.value,ve.height=Ie.height.baseVal.value;var $e=Ie.outerHTML,We=ve.getContext("2d");He.markersOnly!==!0&&We.drawImage(ne,0,0,ve.width,ve.height);var Je=window.URL,ct=new Image(ve.width,ve.height);ct.setAttribute("crossOrigin","anonymous");var ot=new Blob([$e],{type:"image/svg+xml"}),ft=Je.createObjectURL(ot);ct.onload=function(){We.drawImage(ct,0,0),Je.revokeObjectURL(ft);var ut=ve.toDataURL(He.imageType,He.imageQuality);be(ut)},ct.src=ft})},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 de("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new de("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new de("@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}(),de=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,He,be){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ne,this.displayMode=fe,this.markerItems=Me,this.uiStyleSettings=He,this.styles=be,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(be){var ve=document.createElement("div");ve.className=""+fe.toolbarButtonStyleClass.name,ve.setAttribute("data-type-name",be.typeName),ve.innerHTML=be.icon,ve.addEventListener("click",function(){fe.markerToolbarButtonClicked(ve,be)}),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 He=document.createElement("div");He.className=this.toolbarBlockStyleClass.name,He.style.whiteSpace="nowrap",He.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(He),this.addActionButton(He,'<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(He,'<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 He=this,be=document.createElement("div");switch(be.className=""+this.toolbarButtonStyleClass.name,be.innerHTML=fe,be.setAttribute("data-action",Me),be.addEventListener("click",function(){He.actionToolbarButtonClicked(be,Me)}),Me){case"select":be.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":be.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":be.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":be.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":be.style.fill=this.uiStyleSettings.closeButtonColor}ne.appendChild(be),this.buttons.push(be)},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 de("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new de("."+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}(),ie=function(){function Re(ne,fe,Me,He){this.panels=[],this.panelButtons=[],this.markerjsContainer=ne,this.displayMode=fe,this.uiStyleSettings=Me,this.styles=He,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 de("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new de("."+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,He=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(be){var ve;be.uiStyleSettings=He.uiStyleSettings;var Ie=document.createElement("div");Ie.className=He.toolboxButtonStyleClass.name+" "+((ve=He.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ve!==void 0?ve:He.toolboxButtonStyleColorsClass.name),Ie.innerHTML=be.icon,Ie.title=be.title,Ie.addEventListener("click",function(){He.panelButtonClick(be)}),He.panelButtons.push(Ie),He.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 He=ne.getUi();He.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(He),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(be,ve){var Ie,$e;be.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,He,be){var ve=Re.call(this,fe,be||'<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=He,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(He){var be=fe.getColorBox(He);Me.appendChild(be),fe.colorBoxes.push(be)}),Me},ne.prototype.getColorBox=function(fe){var Me=this,He=this.uiStyleSettings.toolbarHeight/4,be=this.uiStyleSettings.toolbarHeight-He,ve=document.createElement("div");ve.style.display="inline-block",ve.style.boxSizing="content-box",ve.style.width=be-2+"px",ve.style.height=be-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=(be+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=be-2+"px",Ie.style.height=be-2+"px",Ie.style.backgroundColor=fe,Ie.style.borderRadius=be/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 He=this;this.currentColor=fe,this.colorBoxes.forEach(function(be){be.style.borderColor=be===Me?He.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}(),ge=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}(),me=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,He){var be=Re.call(this,fe,Me,He)||this;return be.left=0,be.top=0,be.width=0,be.height=0,be.defaultSize={x:50,y:20},be.offsetX=0,be.offsetY=0,be.rotationAngle=0,be.CB_DISTANCE=10,be._suppressMarkerCreateEvent=!1,be.container.transform.baseVal.appendItem(z.createTransform()),be.setupControlBox(),be}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 He=this.unrotatePoint(fe);if(this.manipulationStartX=He.x,this.manipulationStartY=He.y,this.offsetX=He.x-this.left,this.offsetY=He.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 be=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=be.x-this.width/2,this.top=be.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,He=this.manipulationStartWidth,be=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,He=this.manipulationStartWidth+this.manipulationStartLeft-Me;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:He=this.manipulationStartWidth+fe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:be=this.manipulationStartTop+fe.y-this.manipulationStartY,ve=this.manipulationStartHeight+this.manipulationStartTop-be;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ve=this.manipulationStartHeight+fe.y-this.manipulationStartY}He>=0?(this.left=Me,this.width=He):(this.left=Me+He,this.width=-He),ve>=0?(this.top=be,this.height=ve):(this.top=be+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(),He=z.createPoint(fe.x,fe.y);return{x:(He=He.matrixTransform(Me)).x,y:He.y}},ne.prototype.unrotatePoint=function(fe){if(this.rotationAngle===0)return fe;var Me=this.container.getCTM();Me=Me.inverse();var He=z.createPoint(fe.x,fe.y);return{x:(He=He.matrixTransform(Me)).x,y:He.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 ge;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,He=Me,be=(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,He),this.positionGrip(this.controlGrips.topCenter.visual,be,He),this.positionGrip(this.controlGrips.topRight.visual,$e,He),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,be,Ie),this.positionGrip(this.controlGrips.bottomRight.visual,$e,Ie),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,be,He-3*this.CB_DISTANCE)},ne.prototype.positionGrip=function(fe,Me,He){var be=fe.transform.baseVal.getItem(0);be.setTranslate(Me,He),fe.transform.baseVal.replaceItem(be,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:me.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:me.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(me.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Me.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Me.containerTransformMatrix))},ne.prototype.scale=function(fe,Me){Re.prototype.scale.call(this,fe,Me);var He=this.rotatePoint({x:this.left,y:this.top}),be=this.unrotatePoint({x:He.x*fe,y:He.y*Me});this.left=be.x,this.top=be.y,this.width=this.width*fe,this.height=this.height*Me,this.adjustControlBox()},ne}(pe),Ae=function(Re){function ne(fe,Me,He){var be=Re.call(this,fe,Me,He)||this;return be.fillColor="transparent",be.strokeColor="transparent",be.strokeWidth=0,be.strokeDasharray="",be.opacity=1,be.setStrokeColor=be.setStrokeColor.bind(be),be.setFillColor=be.setFillColor.bind(be),be.setStrokeWidth=be.setStrokeWidth.bind(be),be.setStrokeDasharray=be.setStrokeDasharray.bind(be),be.createVisual=be.createVisual.bind(be),be}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),Ne=function(Re){function ne(fe,Me,He,be){var ve=Re.call(this,fe,be||'<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=He,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(He){var be=document.createElement("div");be.style.display="flex",be.style.flexGrow="2",be.style.alignItems="center",be.style.justifyContent="space-between",be.style.padding="5px",be.style.borderWidth="2px",be.style.borderStyle="solid",be.style.borderColor=He===fe.currentWidth?fe.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){fe.setCurrentWidth(He,be)}),Me.appendChild(be);var ve=document.createElement("div");ve.innerText=He.toString(),ve.style.marginRight="5px",be.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=He+"px solid "+fe.uiStyleSettings.toolboxColor,$e.style.flexGrow="2",Ie.appendChild($e),be.appendChild(Ie),fe.widthBoxes.push(be)}),Me},ne.prototype.setCurrentWidth=function(fe,Me){var He=this;this.currentWidth=fe,this.widthBoxes.forEach(function(be){be.style.borderColor=be===Me?He.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ne}(se),Be=function(Re){function ne(fe,Me,He,be){var ve=Re.call(this,fe,be||'<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=He,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(He){var be=document.createElement("div");be.style.display="flex",be.style.alignItems="center",be.style.justifyContent="space-between",be.style.padding="5px",be.style.borderWidth="2px",be.style.borderStyle="solid",be.style.overflow="hidden",be.style.maxWidth=100/fe.styles.length-5+"%",be.style.borderColor=He===fe.currentStyle?fe.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){fe.setCurrentStyle(He,be)}),Me.appendChild(be);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" '+(He!==""?'stroke-dasharray="'+He+'"':"")+` />
</svg>`;ve.innerHTML=Ie,be.appendChild(ve),fe.styleBoxes.push(be)}),Me},ne.prototype.setCurrentStyle=function(fe,Me){var He=this;this.currentStyle=fe,this.styleBoxes.forEach(function(be){be.style.borderColor=be===Me?He.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ne}(se),De=function(Re){function ne(fe,Me,He){var be=Re.call(this,fe,Me,He)||this;return be.strokeColor=He.defaultColor,be.strokeWidth=He.defaultStrokeWidth,be.strokeDasharray=He.defaultStrokeDasharray,be.strokePanel=new ue("Line color",He.defaultColorSet,He.defaultColor),be.strokePanel.onColorChanged=be.setStrokeColor,be.strokeWidthPanel=new Ne("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),be.strokeWidthPanel.onWidthChanged=be.setStrokeWidth,be.strokeStylePanel=new Be("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),be.strokeStylePanel.onStyleChanged=be.setStrokeDasharray,be}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}(Ae),we=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"},Ce=function(Re){function ne(fe,Me,He){var be=Re.call(this,fe,Me,He)||this;return be.x1=0,be.y1=0,be.x2=0,be.y2=0,be.defaultLength=50,be.manipulationStartX=0,be.manipulationStartY=0,be.manipulationStartX1=0,be.manipulationStartY1=0,be.manipulationStartX2=0,be.manipulationStartY2=0,be.setupControlBox(),be}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 ge;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,He){var be=fe.transform.baseVal.getItem(0);be.setTranslate(Me,He),fe.transform.baseVal.replaceItem(be,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,He){var be=Re.call(this,fe,Me,He)||this;return be.strokeColor="transparent",be.strokeWidth=0,be.strokeDasharray="",be.setStrokeColor=be.setStrokeColor.bind(be),be.setStrokeWidth=be.setStrokeWidth.bind(be),be.setStrokeDasharray=be.setStrokeDasharray.bind(be),be.strokeColor=He.defaultColor,be.strokeWidth=He.defaultStrokeWidth,be.strokeDasharray=He.defaultStrokeDasharray,be.strokePanel=new ue("Line color",He.defaultColorSet,He.defaultColor),be.strokePanel.onColorChanged=be.setStrokeColor,be.strokeWidthPanel=new Ne("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),be.strokeWidthPanel.onWidthChanged=be.setStrokeWidth,be.strokeStylePanel=new Be("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),be.strokeStylePanel.onStyleChanged=be.setStrokeDasharray,be}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}(Ce),je=function(Re){function ne(fe,Me,He,be){var ve=Re.call(this,fe,be||'<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=He,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(He){var be=document.createElement("div");be.style.display="inline-block",be.style.alignItems="center",be.style.justifyContent="space-between",be.style.padding="5px",be.style.borderWidth="2px",be.style.borderStyle="solid",be.style.overflow="hidden",be.style.maxWidth=100/fe.fonts.length-5+"%",be.style.borderColor=He===fe.currentFont?fe.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){fe.setCurrentFont(He,be)}),Me.appendChild(be);var ve=document.createElement("div");ve.style.display="flex",ve.style.minHeight="20px",ve.style.flexGrow="2",ve.style.fontFamily=He,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),be.appendChild(ve),fe.fontBoxes.push(be)}),Me},ne.prototype.setCurrentFont=function(fe,Me){var He=this;this.currentFont=fe,this.fontBoxes.forEach(function(be){be.style.borderColor=be===Me?He.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ne}(se),Fe=function(Re){function ne(fe,Me,He){var be=Re.call(this,fe,Me,He)||this;return be.color="transparent",be.padding=5,be.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",be.text=be.DEFAULT_TEXT,be.isMoved=!1,be.color=He.defaultColor,be.fontFamily=He.defaultFontFamily,be.defaultSize={x:100,y:30},be.setColor=be.setColor.bind(be),be.setFont=be.setFont.bind(be),be.renderText=be.renderText.bind(be),be.sizeText=be.sizeText.bind(be),be.textEditDivClicked=be.textEditDivClicked.bind(be),be.showTextEditor=be.showTextEditor.bind(be),be.setSize=be.setSize.bind(be),be.positionTextEditor=be.positionTextEditor.bind(be),be.colorPanel=new ue("Color",He.defaultColorSet,He.defaultColor),be.colorPanel.onColorChanged=be.setColor,be.fontFamilyPanel=new je("Font",He.defaultFontFamilies,He.defaultFontFamily),be.fontFamilyPanel.onFontChanged=be.setFont,be}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(He){He===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 He=(1*this.width-this.width*this.padding*2/100)/fe.width,be=(1*this.height-this.height*this.padding*2/100)/fe.height;Me=Math.min(He,be)}return Me},ne.prototype.getTextPosition=function(fe){var Me=this.textElement.getBBox(),He=0,be=0;return Me.width>0&&Me.height>0&&(He=(this.width-Me.width*fe)/2,be=this.height/2-Me.height*fe/2),{x:He,y:be}},ne.prototype.sizeText=function(){var fe=this.textElement.getBBox(),Me=this.getTextScale(),He=this.getTextPosition(Me);He.y-=fe.y*Me,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+He.x+"px, "+He.y+"px) scale("+Me+", "+Me+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(He.x,He.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 He=Me.clipboardData.getData("text"),be=window.getSelection();if(!be.rangeCount)return!1;be.deleteFromDocument(),be.getRangeAt(0).insertNode(document.createTextNode(He)),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}),He=this.textElement.getBBox(),be={x:He.width*fe,y:He.height*fe};Me.x-=be.x/2,Me.y-=be.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),ke=function(Re){function ne(fe,Me,He){var be=Re.call(this,fe,Me,He)||this;return be.color="transparent",be.lineWidth=3,be.drawing=!1,be.pixelRatio=1,be.color=He.defaultColor,be.lineWidth=He.defaultStrokeWidth,be.pixelRatio=He.freehandPixelRatio,be.setColor=be.setColor.bind(be),be.addCanvas=be.addCanvas.bind(be),be.finishCreation=be.finishCreation.bind(be),be.setLineWidth=be.setLineWidth.bind(be),be.colorPanel=new ue("Color",He.defaultColorSet,He.defaultColor),be.colorPanel.onColorChanged=be.setColor,be.lineWidthPanel=new Ne("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),be.lineWidthPanel.onWidthChanged=be.setLineWidth,be}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],He=Me[0],be=Me[1],ve=Me[2],Ie=Me[3],$e=!1,We=0;We<this.canvasElement.height;We++)for(var Je=0;Je<this.canvasElement.width;Je++)fe.data[We*this.canvasElement.width*4+4*Je+3]>0&&($e=!0,We<be&&(be=We),Je<He&&(He=Je),We>Ie&&(Ie=We),Je>ve&&(ve=Je));if($e){this.left=He/this.pixelRatio,this.top=be/this.pixelRatio,this.width=(ve-He)/this.pixelRatio,this.height=(Ie-be)/this.pixelRatio;var ct=document.createElement("canvas");ct.width=ve-He,ct.height=Ie-be,ct.getContext("2d").putImageData(this.canvasContext.getImageData(He,be,ve-He,Ie-be),0,0),this.drawingImgUrl=ct.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),Ee=function(Re){function ne(fe,Me,He){var be=Re.call(this,fe,He||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return be.typeBoxes=[],be.currentType=Me,be.setCurrentType=be.setCurrentType.bind(be),be}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 He=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 We=document.createElement("div");if(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=$e===be.currentType?be.uiStyleSettings.toolboxAccentColor:"transparent",We.addEventListener("click",function(){fe.setCurrentType($e,We)}),Me.appendChild(We),$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="`+(be.uiStyleSettings!==void 0?be.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Je.style.marginLeft="5px",We.appendChild(Je)}var ct=document.createElement("div");ct.style.display="flex",ct.style.alignItems="center",ct.style.minHeight="20px",ct.style.flexGrow="2";var ot=document.createElement("hr");if(ot.style.minWidth="20px",ot.style.border="0px",ot.style.borderTop="3px solid "+(be.uiStyleSettings!==void 0?be.uiStyleSettings.toolboxColor:"#eeeeee"),ot.style.flexGrow="2",ct.appendChild(ot),We.appendChild(ct),$e==="both"||$e==="end"){var ft=document.createElement("div");ft.style.display="flex",ft.style.alignItems="center",ft.style.minHeight="20px",ft.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="`+(be.uiStyleSettings!==void 0?be.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,ft.style.marginRight="5px",We.appendChild(ft)}be.typeBoxes.push(We)},be=this,ve=0;ve<4;ve++)He(ve);return Me},ne.prototype.setCurrentType=function(fe,Me){var He=this;this.currentType=fe,this.typeBoxes.forEach(function(be){be.style.borderColor=be===Me?He.uiStyleSettings!==void 0?He.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ne}(se),Ge=function(Re){function ne(fe,Me,He){var be=Re.call(this,fe,Me,He)||this;return be.arrowType="end",be.arrowBaseHeight=10,be.arrowBaseWidth=10,be.getArrowPoints=be.getArrowPoints.bind(be),be.setArrowType=be.setArrowType.bind(be),be.arrowTypePanel=new Ee("Arrow type","end"),be.arrowTypePanel.onArrowTypeChanged=be.setArrowType,be}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 He=this.arrowBaseWidth+2*this.strokeWidth,be=this.arrowBaseHeight+2*this.strokeWidth;return fe-He/2+","+(Me+be/2)+" "+fe+","+(Me-be/2)+" "+(fe+He/2)+","+(Me+be/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 He=this.arrow2.transform.baseVal.getItem(0);He.setRotate(fe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(He,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),Ke=function(Re){function ne(fe,Me,He){var be=Re.call(this,fe,Me,He)||this;return be.fillColor=He.defaultFillColor,be.strokeWidth=0,be.fillPanel=new ue("Color",He.defaultColorSet,He.defaultFillColor),be.fillPanel.onColorChanged=be.setFillColor,be}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}(Ae),Ve=function(Re){function ne(fe,Me,He,be){var ve=Re.call(this,fe,be||'<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=He,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(He){var be=document.createElement("div");be.style.display="flex",be.style.alignItems="center",be.style.justifyContent="center",be.style.padding="5px",be.style.borderWidth="2px",be.style.borderStyle="solid",be.style.borderColor=He===fe.currentOpacity?fe.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){fe.setCurrentOpacity(He,be)}),Me.appendChild(be);var ve=document.createElement("div");ve.innerText=100*He+"%",be.appendChild(ve),fe.opacityBoxes.push(be)}),Me},ne.prototype.setCurrentOpacity=function(fe,Me){var He=this;this.currentOpacity=fe,this.opacityBoxes.forEach(function(be){be.style.borderColor=be===Me?He.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ne}(se),it=function(Re){function ne(fe,Me,He){var be=Re.call(this,fe,Me,He)||this;return be.setOpacity=be.setOpacity.bind(be),be.fillColor=He.defaultHighlightColor,be.strokeWidth=0,be.opacity=He.defaultHighlightOpacity,be.fillPanel=new ue("Color",He.defaultColorSet,be.fillColor),be.fillPanel.onColorChanged=be.setFillColor,be.opacityPanel=new Ve("Opacity",He.defaultOpacitySteps,be.opacity),be.opacityPanel.onOpacityChanged=be.setOpacity,be}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}(Ke),Le='<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,He){var be=Re.call(this,fe,Me,He)||this;return be.bgColor="transparent",be.tipPosition={x:0,y:0},be.tipBase1Position={x:0,y:0},be.tipBase2Position={x:0,y:0},be.tipMoving=!1,be.color=He.defaultStrokeColor,be.bgColor=He.defaultFillColor,be.fontFamily=He.defaultFontFamily,be.defaultSize={x:100,y:30},be.setBgColor=be.setBgColor.bind(be),be.getTipPoints=be.getTipPoints.bind(be),be.positionTip=be.positionTip.bind(be),be.setTipPoints=be.setTipPoints.bind(be),be.colorPanel=new ue("Text color",He.defaultColorSet,be.color,Le),be.colorPanel.onColorChanged=be.setColor,be.bgColorPanel=new ue("Fill color",He.defaultColorSet,be.bgColor,Ue),be.bgColorPanel.onColorChanged=be.setBgColor,be.fontFamilyPanel=new je("Font",He.defaultFontFamilies,He.defaultFontFamily),be.fontFamilyPanel.onFontChanged=be.setFont,be.tipGrip=new ge,be.tipGrip.visual.transform.baseVal.appendItem(z.createTransform()),be.controlBox.appendChild(be.tipGrip.visual),be}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),He=this.height/5;fe&&(this.tipPosition={x:Me+He/2,y:this.height+20});var be=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?be<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(He=this.width/5,Me=Math.min(this.width/2,15),this.tipBase1Position={x:Me,y:0},this.tipBase2Position={x:Me+He,y:0}):(this.tipBase1Position={x:0,y:Me},this.tipBase2Position={x:0,y:Me+He}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?be<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(He=this.width/5,Me=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Me-He,y:0},this.tipBase2Position={x:this.width-Me,y:0}):(this.tipBase1Position={x:this.width,y:Me},this.tipBase2Position={x:this.width,y:Me+He}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?be<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(He=this.width/5,Me=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Me-He,y:this.height},this.tipBase2Position={x:this.width-Me,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Me-He},this.tipBase2Position={x:this.width,y:this.height-Me}):be<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(He=this.width/5,Me=Math.min(this.width/2,15),this.tipBase1Position={x:Me,y:this.height},this.tipBase2Position={x:Me+He,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Me},this.tipBase2Position={x:0,y:this.height-Me-He})},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}(Fe),nt=function(Re){function ne(fe,Me,He){var be=Re.call(this,fe,Me,He)||this;return be.fillColor="transparent",be.strokeColor="transparent",be.strokeWidth=0,be.strokeDasharray="",be.opacity=1,be.strokeColor=He.defaultColor,be.strokeWidth=He.defaultStrokeWidth,be.strokeDasharray=He.defaultStrokeDasharray,be.fillColor=He.defaultFillColor,be.setStrokeColor=be.setStrokeColor.bind(be),be.setFillColor=be.setFillColor.bind(be),be.setStrokeWidth=be.setStrokeWidth.bind(be),be.setStrokeDasharray=be.setStrokeDasharray.bind(be),be.setOpacity=be.setOpacity.bind(be),be.createVisual=be.createVisual.bind(be),be.strokePanel=new ue("Line color",ye(He.defaultColorSet,["transparent"]),He.defaultColor),be.strokePanel.onColorChanged=be.setStrokeColor,be.fillPanel=new ue("Fill color",ye(He.defaultColorSet,["transparent"]),be.fillColor,Ue),be.fillPanel.onColorChanged=be.setFillColor,be.strokeWidthPanel=new Ne("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),be.strokeWidthPanel.onWidthChanged=be.setStrokeWidth,be.strokeStylePanel=new Be("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),be.strokeStylePanel.onStyleChanged=be.setStrokeDasharray,be.opacityPanel=new Ve("Opacity",He.defaultOpacitySteps,be.opacity),be.opacityPanel.onOpacityChanged=be.setOpacity,be}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,He){return Re.call(this,fe,Me,He)||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 He=this.tip2.transform.baseVal.getItem(0);He.setRotate(fe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(He,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),Ze=function(Re){function ne(fe,Me,He){var be=Re.call(this,fe,Me,He)||this;return be.strokePanel.colors=He.defaultColorSet,be.fillColor="transparent",be}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}(nt),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,He){var be=Re.call(this,fe,Me,He)||this;return be.strokeColor="transparent",be.strokeWidth=0,be.strokeDasharray="",be.curveX=0,be.curveY=0,be.manipulationStartCurveX=0,be.manipulationStartCurveY=0,be.setStrokeColor=be.setStrokeColor.bind(be),be.setStrokeWidth=be.setStrokeWidth.bind(be),be.setStrokeDasharray=be.setStrokeDasharray.bind(be),be.positionGrips=be.positionGrips.bind(be),be.addControlGrips=be.addControlGrips.bind(be),be.adjustVisual=be.adjustVisual.bind(be),be.setupControlBox=be.setupControlBox.bind(be),be.resize=be.resize.bind(be),be.strokeColor=He.defaultColor,be.strokeWidth=He.defaultStrokeWidth,be.strokeDasharray=He.defaultStrokeDasharray,be.strokePanel=new ue("Line color",He.defaultColorSet,He.defaultColor),be.strokePanel.onColorChanged=be.setStrokeColor,be.strokeWidthPanel=new Ne("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),be.strokeWidthPanel.onWidthChanged=be.setStrokeWidth,be.strokeStylePanel=new Be("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),be.strokeStylePanel.onStyleChanged=be.setStrokeDasharray,be}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}(Ce),st=function(Re){function ne(fe,Me,He){var be=Re.call(this,fe,Me,He)||this;return be.fillColor="transparent",be.strokeColor="transparent",be.strokeWidth=0,be.strokeDasharray="",be.textColor="transparent",be.fontSize="1rem",be.isMoved=!1,be.captionText="Caption",be.PADDING=5,be.captionBoxWidth=0,be.captionBoxHeight=0,be.strokeColor=He.defaultColor,be.strokeWidth=He.defaultStrokeWidth,be.strokeDasharray=He.defaultStrokeDasharray,be.fillColor=He.defaultFillColor,be.textColor=He.defaultStrokeColor,be.fontFamily=He.defaultFontFamily,be.fontSize=He.defaultCaptionFontSize,be.captionText=He.defaultCaptionText,be.setStrokeColor=be.setStrokeColor.bind(be),be.setFillColor=be.setFillColor.bind(be),be.setStrokeWidth=be.setStrokeWidth.bind(be),be.setStrokeDasharray=be.setStrokeDasharray.bind(be),be.createVisual=be.createVisual.bind(be),be.sizeCaption=be.sizeCaption.bind(be),be.setCaptionText=be.setCaptionText.bind(be),be.showTextEditor=be.showTextEditor.bind(be),be.positionTextEditor=be.positionTextEditor.bind(be),be.finishTextEditing=be.finishTextEditing.bind(be),be.setFont=be.setFont.bind(be),be.setTextColor=be.setTextColor.bind(be),be.strokePanel=new ue("Line color",ye(He.defaultColorSet,["transparent"]),be.strokeColor),be.strokePanel.onColorChanged=be.setStrokeColor,be.fillPanel=new ue("Fill color",ye(He.defaultColorSet,["transparent"]),be.fillColor,Ue),be.fillPanel.onColorChanged=be.setFillColor,be.strokeWidthPanel=new Ne("Line width",He.defaultStrokeWidths,He.defaultStrokeWidth),be.strokeWidthPanel.onWidthChanged=be.setStrokeWidth,be.strokeStylePanel=new Be("Line style",He.defaultStrokeDasharrays,He.defaultStrokeDasharray),be.strokeStylePanel.onStyleChanged=be.setStrokeDasharray,be.fontFamilyPanel=new je("Font",He.defaultFontFamilies,He.defaultFontFamily),be.fontFamilyPanel.onFontChanged=be.setFont,be.textColorPanel=new ue("Text color",He.defaultColorSet,be.textColor,Le),be.textColorPanel.onColorChanged=be.setTextColor,be}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}(),ht=function(Re){function ne(fe,Me,He){var be=Re.call(this,fe,!1)||this;return be.dataUrl=Me,be.state=He,be}return Ot(ne,Re),ne}(Qe),at=function(Re){function ne(fe,Me,He){He===void 0&&(He=!1);var be=Re.call(this,fe,He)||this;return be.marker=Me,be}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}(),_e=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 we,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[De,ke,Ge,Fe,Ze,nt,it,tt,et,Ke,Oe,Xe,st]},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[De,ke,Ge,Fe,nt,it,tt]},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"BASIC_MARKER_TYPES",{get:function(){return[De,ke,Ge,Fe,it]},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 He=fe.ALL_MARKER_TYPES.find(function(be){return be.typeName===Me});He!==void 0&&fe._availableMarkerTypes.push(He)}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 Pe(this,function(fe){switch(fe.label){case 0:return this.setCurrentMarker(),(ne=new re).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(He){var be=new Qe(fe,!0);He(be),be.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(He){return He(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,He=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,He),this._isResizing=!1},Re.prototype.scaleMarkers=function(ne,fe){var Me,He=this;this._currentMarker&&this._currentMarker instanceof Fe?this._currentMarker.scale(ne,fe):(Me=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(be){be!==He._currentMarker&&be.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 ie(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(He){var be=new at(ne,ne._currentMarker,!0);He(be),be.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(He){return He(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=He.markers[ve];He.setCurrentMarker(He.markers[ve]),He._currentMarker.dispose(),He.markerImage.removeChild(He._currentMarker.container),He.markers.splice(He.markers.indexOf(He._currentMarker),1),He.eventListeners.markerdelete.forEach(function($e){return $e(new at(ne,Ie))})},He=this,be=this.markers.length-1;be>=0;be--)Me(be);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 He=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(fe),He<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(be){return be(new Qe(ne))})}else this.undoRedoManager.replaceLastUndoStep(fe),this.eventListeners.statechange.forEach(function(be){return be(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 Pe(this,function(He){switch(He.label){case 0:return[4,this.render()];case 1:return ne=He.sent(),fe=this.getState(),this.eventListeners.render.forEach(function(be){return be(new ht(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 He=fe._availableMarkerTypes.find(function(ve){return ve.typeName===Me.typeName});if(He!==void 0){var be=fe.addNewMarker(He);be.restoreState(Me),fe.markers.push(be)}}),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(He){return He.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(He){return He(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 ke&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ke):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(wn,Yt,Te){"use strict";Te.d(Yt,{ZP:function(){return E}});var te=Te(42978),Ot=Te(59301),y=Te(47273),Pe=0,ye=(0,y.Z)();function z(){var re;return ye?(re=Pe,Pe+=1):re="TEST_OR_SSR",re}function E(re){var oe=Ot.useState(),ee=(0,te.Z)(oe,2),de=ee[0],x=ee[1];return Ot.useEffect(function(){x("rc_select_".concat(z()))},[]),re||de}},37463:function(wn,Yt,Te){"use strict";Te.d(Yt,{Ac:function(){return Tt},Xo:function(){return Dt},Wx:function(){return It},ZP:function(){return Gn},lk:function(){return me}});var te=Te(54476),Ot=Te(94480),y=Te(20068),Pe=Te(33885),ye=Te(42978),z=Te(75931),E=Te(76190),re=Te(18929),oe=Te(48736),ee=Te(59301),de=Te(92310),x=Te.n(de),ae=Te(34280),ie=Te(49658),se=Te(8654),ue=function(Kt){var St=Kt.className,Nt=Kt.customizeIcon,Et=Kt.customizeIconProps,zt=Kt.children,bt=Kt.onMouseDown,Wt=Kt.onClick,Ft=typeof Nt=="function"?Nt(Et):Nt;return ee.createElement("span",{className:St,onMouseDown:function(_t){_t.preventDefault(),bt==null||bt(_t)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Wt,"aria-hidden":!0},Ft!==void 0?Ft:ee.createElement("span",{className:x()(St.split(/\s+/).map(function(qt){return"".concat(qt,"-icon")}))},zt))},pe=ue,he=function(Kt,St,Nt,Et,zt){var bt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Wt=arguments.length>6?arguments[6]:void 0,Ft=arguments.length>7?arguments[7]:void 0,qt=ee.useMemo(function(){if((0,E.Z)(Et)==="object")return Et.clearIcon;if(zt)return zt},[Et,zt]),_t=ee.useMemo(function(){return!!(!bt&&Et&&(Nt.length||Wt)&&!(Ft==="combobox"&&Wt===""))},[Et,bt,Nt.length,Wt,Ft]);return{allowClear:_t,clearIcon:ee.createElement(pe,{className:"".concat(Kt,"-clear"),onMouseDown:St,customizeIcon:qt},"\xD7")}},ge=ee.createContext(null);function me(){return ee.useContext(ge)}function xe(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Kt=ee.useState(!1),St=(0,ye.Z)(Kt,2),Nt=St[0],Et=St[1],zt=ee.useRef(null),bt=function(){window.clearTimeout(zt.current)};ee.useEffect(function(){return bt},[]);var Wt=function(qt,_t){bt(),zt.current=window.setTimeout(function(){Et(qt),_t&&_t()},Mt)};return[Nt,Wt,bt]}function Ae(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Kt=ee.useRef(null),St=ee.useRef(null);ee.useEffect(function(){return function(){window.clearTimeout(St.current)}},[]);function Nt(Et){(Et||Kt.current===null)&&(Kt.current=Et),window.clearTimeout(St.current),St.current=window.setTimeout(function(){Kt.current=null},Mt)}return[function(){return Kt.current},Nt]}function Ne(Mt,Kt,St,Nt){var Et=ee.useRef(null);Et.current={open:Kt,triggerOpen:St,customizedTrigger:Nt},ee.useEffect(function(){function zt(bt){var Wt;if(!((Wt=Et.current)!==null&&Wt!==void 0&&Wt.customizedTrigger)){var Ft=bt.target;Ft.shadowRoot&&bt.composed&&(Ft=bt.composedPath()[0]||Ft),Et.current.open&&Mt().filter(function(qt){return qt}).every(function(qt){return!qt.contains(Ft)&&qt!==Ft})&&Et.current.triggerOpen(!1)}}return window.addEventListener("mousedown",zt),function(){return window.removeEventListener("mousedown",zt)}},[])}var Be=Te(10228);function De(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 we=Te(26112),Ce=Te(83836);function Oe(Mt,Kt,St){var Nt=(0,Pe.Z)((0,Pe.Z)({},Mt),St?Kt:{});return Object.keys(Kt).forEach(function(Et){var zt=Kt[Et];typeof zt=="function"&&(Nt[Et]=function(){for(var bt,Wt=arguments.length,Ft=new Array(Wt),qt=0;qt<Wt;qt++)Ft[qt]=arguments[qt];return zt.apply(void 0,Ft),(bt=Mt[Et])===null||bt===void 0?void 0:bt.call.apply(bt,[Mt].concat(Ft))})}),Nt}var je=Oe,Fe=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],ke=function(Kt,St){var Nt=Kt.prefixCls,Et=Kt.id,zt=Kt.inputElement,bt=Kt.autoFocus,Wt=Kt.autoComplete,Ft=Kt.editable,qt=Kt.activeDescendantId,_t=Kt.value,$t=Kt.open,Ht=Kt.attrs,Xt=(0,z.Z)(Kt,Fe),En=zt||ee.createElement("input",null),On=En,Rn=On.ref,rr=On.props;return(0,oe.Kp)(!("maxLength"in En.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),En=ee.cloneElement(En,(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({type:"search"},je(Xt,rr,!0)),{},{id:Et,ref:(0,se.sQ)(St,Rn),autoComplete:Wt||"off",autoFocus:bt,className:x()("".concat(Nt,"-selection-search-input"),rr==null?void 0:rr.className),role:"combobox","aria-expanded":$t||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Et,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Et,"_list"),"aria-activedescendant":$t?qt:void 0},Ht),{},{value:Ft?_t:"",readOnly:!Ft,unselectable:Ft?null:"on",style:(0,Pe.Z)((0,Pe.Z)({},rr.style),{},{opacity:Ft?null:0})})),En},Ee=ee.forwardRef(ke),Ge=Ee;function Ke(Mt){return Array.isArray(Mt)?Mt:Mt!==void 0?[Mt]:[]}var Ve=typeof window!="undefined"&&window.document&&window.document.documentElement,it=Ve;function Le(Mt){return Mt!=null}function Ue(Mt){return!Mt&&Mt!==0}function tt(Mt){return["string","number"].includes((0,E.Z)(Mt))}function nt(Mt){var Kt=void 0;return Mt&&(tt(Mt.title)?Kt=Mt.title.toString():tt(Mt.label)&&(Kt=Mt.label.toString())),Kt}function et(Mt,Kt){it?ee.useLayoutEffect(Mt,Kt):ee.useEffect(Mt,Kt)}function Ze(Mt){var Kt;return(Kt=Mt.key)!==null&&Kt!==void 0?Kt:Mt.value}var Ye=function(Kt){Kt.preventDefault(),Kt.stopPropagation()},Xe=function(Kt){var St=Kt.id,Nt=Kt.prefixCls,Et=Kt.values,zt=Kt.open,bt=Kt.searchValue,Wt=Kt.autoClearSearchValue,Ft=Kt.inputRef,qt=Kt.placeholder,_t=Kt.disabled,$t=Kt.mode,Ht=Kt.showSearch,Xt=Kt.autoFocus,En=Kt.autoComplete,On=Kt.activeDescendantId,Rn=Kt.tabIndex,rr=Kt.removeIcon,cr=Kt.maxTagCount,mr=Kt.maxTagTextLength,nr=Kt.maxTagPlaceholder,Un=nr===void 0?function(Xn){return"+ ".concat(Xn.length," ...")}:nr,Yn=Kt.tagRender,pr=Kt.onToggleOpen,Sr=Kt.onRemove,wr=Kt.onInputChange,Cr=Kt.onInputPaste,qn=Kt.onInputKeyDown,kn=Kt.onInputMouseDown,Fn=Kt.onInputCompositionStart,Nn=Kt.onInputCompositionEnd,ir=Kt.onInputBlur,br=ee.useRef(null),Pr=(0,ee.useState)(0),Kr=(0,ye.Z)(Pr,2),Nr=Kr[0],Wr=Kr[1],Ir=(0,ee.useState)(!1),ni=(0,ye.Z)(Ir,2),ti=ni[0],oi=ni[1],fi="".concat(Nt,"-selection"),xi=zt||$t==="multiple"&&Wt===!1||$t==="tags"?bt:"",hi=$t==="tags"||$t==="multiple"&&Wt===!1||Ht&&(zt||ti);et(function(){Wr(br.current.scrollWidth)},[xi]);var ei=function($n,hr,Tr,Vn,zn){return ee.createElement("span",{title:nt($n),className:x()("".concat(fi,"-item"),(0,y.Z)({},"".concat(fi,"-item-disabled"),Tr))},ee.createElement("span",{className:"".concat(fi,"-item-content")},hr),Vn&&ee.createElement(pe,{className:"".concat(fi,"-item-remove"),onMouseDown:Ye,onClick:zn,customizeIcon:rr},"\xD7"))},Ar=function($n,hr,Tr,Vn,zn,er){var sr=function(Ti){Ye(Ti),pr(!zt)};return ee.createElement("span",{onMouseDown:sr},Yn({label:hr,value:$n,disabled:Tr,closable:Vn,onClose:zn,isMaxTag:!!er}))},Dr=function($n){var hr=$n.disabled,Tr=$n.label,Vn=$n.value,zn=!_t&&!hr,er=Tr;if(typeof mr=="number"&&(typeof Tr=="string"||typeof Tr=="number")){var sr=String(er);sr.length>mr&&(er="".concat(sr.slice(0,mr),"..."))}var qr=function(gi){gi&&gi.stopPropagation(),Sr($n)};return typeof Yn=="function"?Ar(Vn,er,hr,zn,qr):ei($n,er,hr,zn,qr)},ar=function($n){if(!Et.length)return null;var hr=typeof Un=="function"?Un($n):Un;return typeof Yn=="function"?Ar(void 0,hr,!1,!1,void 0,!0):ei({title:hr},hr,!1)},Pn=ee.createElement("div",{className:"".concat(fi,"-search"),style:{width:Nr},onFocus:function(){oi(!0)},onBlur:function(){oi(!1)}},ee.createElement(Ge,{ref:Ft,open:zt,prefixCls:Nt,id:St,inputElement:null,disabled:_t,autoFocus:Xt,autoComplete:En,editable:hi,activeDescendantId:On,value:xi,onKeyDown:qn,onMouseDown:kn,onChange:wr,onPaste:Cr,onCompositionStart:Fn,onCompositionEnd:Nn,onBlur:ir,tabIndex:Rn,attrs:(0,we.Z)(Kt,!0)}),ee.createElement("span",{ref:br,className:"".concat(fi,"-search-mirror"),"aria-hidden":!0},xi,"\xA0")),Kn=ee.createElement(Ce.Z,{prefixCls:"".concat(fi,"-overflow"),data:Et,renderItem:Dr,renderRest:ar,suffix:Pn,itemKey:Ze,maxCount:cr});return ee.createElement("span",{className:"".concat(fi,"-wrap")},Kn,!Et.length&&!xi&&ee.createElement("span",{className:"".concat(fi,"-placeholder")},qt))},st=Xe,Qe=function(Kt){var St=Kt.inputElement,Nt=Kt.prefixCls,Et=Kt.id,zt=Kt.inputRef,bt=Kt.disabled,Wt=Kt.autoFocus,Ft=Kt.autoComplete,qt=Kt.activeDescendantId,_t=Kt.mode,$t=Kt.open,Ht=Kt.values,Xt=Kt.placeholder,En=Kt.tabIndex,On=Kt.showSearch,Rn=Kt.searchValue,rr=Kt.activeValue,cr=Kt.maxLength,mr=Kt.onInputKeyDown,nr=Kt.onInputMouseDown,Un=Kt.onInputChange,Yn=Kt.onInputPaste,pr=Kt.onInputCompositionStart,Sr=Kt.onInputCompositionEnd,wr=Kt.onInputBlur,Cr=Kt.title,qn=ee.useState(!1),kn=(0,ye.Z)(qn,2),Fn=kn[0],Nn=kn[1],ir=_t==="combobox",br=ir||On,Pr=Ht[0],Kr=Rn||"";ir&&rr&&!Fn&&(Kr=rr),ee.useEffect(function(){ir&&Nn(!1)},[ir,rr]);var Nr=_t!=="combobox"&&!$t&&!On?!1:!!Kr,Wr=Cr===void 0?nt(Pr):Cr,Ir=ee.useMemo(function(){return Pr?null:ee.createElement("span",{className:"".concat(Nt,"-selection-placeholder"),style:Nr?{visibility:"hidden"}:void 0},Xt)},[Pr,Nr,Xt,Nt]);return ee.createElement("span",{className:"".concat(Nt,"-selection-wrap")},ee.createElement("span",{className:"".concat(Nt,"-selection-search")},ee.createElement(Ge,{ref:zt,prefixCls:Nt,id:Et,open:$t,inputElement:St,disabled:bt,autoFocus:Wt,autoComplete:Ft,editable:br,activeDescendantId:qt,value:Kr,onKeyDown:mr,onMouseDown:nr,onChange:function(ti){Nn(!0),Un(ti)},onPaste:Yn,onCompositionStart:pr,onCompositionEnd:Sr,onBlur:wr,tabIndex:En,attrs:(0,we.Z)(Kt,!0),maxLength:ir?cr:void 0})),!ir&&Pr?ee.createElement("span",{className:"".concat(Nt,"-selection-item"),title:Wr,style:Nr?{visibility:"hidden"}:void 0},Pr.label):null,Ir)},ht=Qe,at=function(Kt,St){var Nt=(0,ee.useRef)(null),Et=(0,ee.useRef)(!1),zt=Kt.prefixCls,bt=Kt.open,Wt=Kt.mode,Ft=Kt.showSearch,qt=Kt.tokenWithEnter,_t=Kt.disabled,$t=Kt.prefix,Ht=Kt.autoClearSearchValue,Xt=Kt.onSearch,En=Kt.onSearchSubmit,On=Kt.onToggleOpen,Rn=Kt.onInputKeyDown,rr=Kt.onInputBlur,cr=Kt.domRef;ee.useImperativeHandle(St,function(){return{focus:function(Wr){Nt.current.focus(Wr)},blur:function(){Nt.current.blur()}}});var mr=Ae(0),nr=(0,ye.Z)(mr,2),Un=nr[0],Yn=nr[1],pr=function(Wr){var Ir=Wr.which,ni=Nt.current instanceof HTMLTextAreaElement;!ni&&bt&&(Ir===Be.Z.UP||Ir===Be.Z.DOWN)&&Wr.preventDefault(),Rn&&Rn(Wr),Ir===Be.Z.ENTER&&Wt==="tags"&&!Et.current&&!bt&&(En==null||En(Wr.target.value)),!(ni&&!bt&&~[Be.Z.UP,Be.Z.DOWN,Be.Z.LEFT,Be.Z.RIGHT].indexOf(Ir))&&De(Ir)&&On(!0)},Sr=function(){Yn(!0)},wr=(0,ee.useRef)(null),Cr=function(Wr){Xt(Wr,!0,Et.current)!==!1&&On(!0)},qn=function(){Et.current=!0},kn=function(Wr){Et.current=!1,Wt!=="combobox"&&Cr(Wr.target.value)},Fn=function(Wr){var Ir=Wr.target.value;if(qt&&wr.current&&/[\r\n]/.test(wr.current)){var ni=wr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ir=Ir.replace(ni,wr.current)}wr.current=null,Cr(Ir)},Nn=function(Wr){var Ir=Wr.clipboardData,ni=Ir==null?void 0:Ir.getData("text");wr.current=ni||""},ir=function(Wr){var Ir=Wr.target;if(Ir!==Nt.current){var ni=document.body.style.msTouchAction!==void 0;ni?setTimeout(function(){Nt.current.focus()}):Nt.current.focus()}},br=function(Wr){var Ir=Un();Wr.target!==Nt.current&&!Ir&&!(Wt==="combobox"&&_t)&&Wr.preventDefault(),(Wt!=="combobox"&&(!Ft||!Ir)||!bt)&&(bt&&Ht!==!1&&Xt("",!0,!1),On())},Pr={inputRef:Nt,onInputKeyDown:pr,onInputMouseDown:Sr,onInputChange:Fn,onInputPaste:Nn,onInputCompositionStart:qn,onInputCompositionEnd:kn,onInputBlur:rr},Kr=Wt==="multiple"||Wt==="tags"?ee.createElement(st,(0,te.Z)({},Kt,Pr)):ee.createElement(ht,(0,te.Z)({},Kt,Pr));return ee.createElement("div",{ref:cr,className:"".concat(zt,"-selector"),onClick:ir,onMouseDown:br},$t&&ee.createElement("div",{className:"".concat(zt,"-prefix")},$t),Kr)},qe=ee.forwardRef(at),_e=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(Kt){var St=Kt===!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(Kt,St){var Nt=Kt.prefixCls,Et=Kt.disabled,zt=Kt.visible,bt=Kt.children,Wt=Kt.popupElement,Ft=Kt.animation,qt=Kt.transitionName,_t=Kt.dropdownStyle,$t=Kt.dropdownClassName,Ht=Kt.direction,Xt=Ht===void 0?"ltr":Ht,En=Kt.placement,On=Kt.builtinPlacements,Rn=Kt.dropdownMatchSelectWidth,rr=Kt.dropdownRender,cr=Kt.dropdownAlign,mr=Kt.getPopupContainer,nr=Kt.empty,Un=Kt.getTriggerDOMNode,Yn=Kt.onPopupVisibleChange,pr=Kt.onPopupMouseEnter,Sr=(0,z.Z)(Kt,ne),wr="".concat(Nt,"-dropdown"),Cr=Wt;rr&&(Cr=rr(Wt));var qn=ee.useMemo(function(){return On||fe(Rn)},[On,Rn]),kn=Ft?"".concat(wr,"-").concat(Ft):qt,Fn=typeof Rn=="number",Nn=ee.useMemo(function(){return Fn?null:Rn===!1?"minWidth":"width"},[Rn,Fn]),ir=_t;Fn&&(ir=(0,Pe.Z)((0,Pe.Z)({},ir),{},{width:Rn}));var br=ee.useRef(null);return ee.useImperativeHandle(St,function(){return{getPopupElement:function(){var Kr;return(Kr=br.current)===null||Kr===void 0?void 0:Kr.popupElement}}}),ee.createElement(Re.Z,(0,te.Z)({},Sr,{showAction:Yn?["click"]:[],hideAction:Yn?["click"]:[],popupPlacement:En||(Xt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:qn,prefixCls:wr,popupTransitionName:kn,popup:ee.createElement("div",{onMouseEnter:pr},Cr),ref:br,stretch:Nn,popupAlign:cr,popupVisible:zt,getPopupContainer:mr,popupClassName:x()($t,(0,y.Z)({},"".concat(wr,"-empty"),nr)),popupStyle:ir,getTriggerDOMNode:Un,onPopupVisibleChange:Yn}),bt)},He=ee.forwardRef(Me),be=He,ve=Te(66712);function Ie(Mt,Kt){var St=Mt.key,Nt;return"value"in Mt&&(Nt=Mt.value),St!=null?St:Nt!==void 0?Nt:"rc-index-key-".concat(Kt)}function $e(Mt){return typeof Mt!="undefined"&&!Number.isNaN(Mt)}function We(Mt,Kt){var St=Mt||{},Nt=St.label,Et=St.value,zt=St.options,bt=St.groupLabel,Wt=Nt||(Kt?"children":"label");return{label:Wt,value:Et||"value",options:zt||"options",groupLabel:bt||Wt}}function Je(Mt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},St=Kt.fieldNames,Nt=Kt.childrenAsData,Et=[],zt=We(St,!1),bt=zt.label,Wt=zt.value,Ft=zt.options,qt=zt.groupLabel;function _t($t,Ht){Array.isArray($t)&&$t.forEach(function(Xt){if(Ht||!(Ft in Xt)){var En=Xt[Wt];Et.push({key:Ie(Xt,Et.length),groupOption:Ht,data:Xt,label:Xt[bt],value:En})}else{var On=Xt[qt];On===void 0&&Nt&&(On=Xt.label),Et.push({key:Ie(Xt,Et.length),group:!0,data:Xt,label:On}),_t(Xt[Ft],!0)}})}return _t(Mt,!1),Et}function ct(Mt){var Kt=(0,Pe.Z)({},Mt);return"props"in Kt||Object.defineProperty(Kt,"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`."),Kt}}),Kt}var ot=function(Kt,St,Nt){if(!St||!St.length)return null;var Et=!1,zt=function Wt(Ft,qt){var _t=(0,ve.Z)(qt),$t=_t[0],Ht=_t.slice(1);if(!$t)return[Ft];var Xt=Ft.split($t);return Et=Et||Xt.length>1,Xt.reduce(function(En,On){return[].concat((0,Ot.Z)(En),(0,Ot.Z)(Wt(On,Ht)))},[]).filter(Boolean)},bt=zt(Kt,St);return Et?typeof Nt!="undefined"?bt.slice(0,Nt):bt:null},ft=ee.createContext(null),ut=ft;function lt(Mt){var Kt=Mt.visible,St=Mt.values;if(!Kt)return null;var Nt=50;return ee.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(St.slice(0,Nt).map(function(Et){var zt=Et.label,bt=Et.value;return["number","string"].includes((0,E.Z)(zt))?zt:bt}).join(", ")),St.length>Nt?", ...":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"],yt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Rt=function(Kt){return Kt==="tags"||Kt==="multiple"},Pt=ee.forwardRef(function(Mt,Kt){var St,Nt=Mt.id,Et=Mt.prefixCls,zt=Mt.className,bt=Mt.showSearch,Wt=Mt.tagRender,Ft=Mt.direction,qt=Mt.omitDomProps,_t=Mt.displayValues,$t=Mt.onDisplayValuesChange,Ht=Mt.emptyOptions,Xt=Mt.notFoundContent,En=Xt===void 0?"Not Found":Xt,On=Mt.onClear,Rn=Mt.mode,rr=Mt.disabled,cr=Mt.loading,mr=Mt.getInputElement,nr=Mt.getRawInputElement,Un=Mt.open,Yn=Mt.defaultOpen,pr=Mt.onDropdownVisibleChange,Sr=Mt.activeValue,wr=Mt.onActiveValueChange,Cr=Mt.activeDescendantId,qn=Mt.searchValue,kn=Mt.autoClearSearchValue,Fn=Mt.onSearch,Nn=Mt.onSearchSplit,ir=Mt.tokenSeparators,br=Mt.allowClear,Pr=Mt.prefix,Kr=Mt.suffixIcon,Nr=Mt.clearIcon,Wr=Mt.OptionList,Ir=Mt.animation,ni=Mt.transitionName,ti=Mt.dropdownStyle,oi=Mt.dropdownClassName,fi=Mt.dropdownMatchSelectWidth,xi=Mt.dropdownRender,hi=Mt.dropdownAlign,ei=Mt.placement,Ar=Mt.builtinPlacements,Dr=Mt.getPopupContainer,ar=Mt.showAction,Pn=ar===void 0?[]:ar,Kn=Mt.onFocus,Xn=Mt.onBlur,$n=Mt.onKeyUp,hr=Mt.onKeyDown,Tr=Mt.onMouseDown,Vn=(0,z.Z)(Mt,At),zn=Rt(Rn),er=(bt!==void 0?bt:zn)||Rn==="combobox",sr=(0,Pe.Z)({},Vn);yt.forEach(function(Wi){delete sr[Wi]}),qt==null||qt.forEach(function(Wi){delete sr[Wi]});var qr=ee.useState(!1),Ti=(0,ye.Z)(qr,2),gi=Ti[0],ki=Ti[1];ee.useEffect(function(){ki((0,ie.Z)())},[]);var Oi=ee.useRef(null),Ii=ee.useRef(null),Fi=ee.useRef(null),Ri=ee.useRef(null),Ni=ee.useRef(null),so=ee.useRef(!1),xo=xe(),Ao=(0,ye.Z)(xo,3),jo=Ao[0],wo=Ao[1],ri=Ao[2];ee.useImperativeHandle(Kt,function(){var Wi,Ci;return{focus:(Wi=Ri.current)===null||Wi===void 0?void 0:Wi.focus,blur:(Ci=Ri.current)===null||Ci===void 0?void 0:Ci.blur,scrollTo:function(sa){var ko;return(ko=Ni.current)===null||ko===void 0?void 0:ko.scrollTo(sa)},nativeElement:Oi.current||Ii.current}});var Gr=ee.useMemo(function(){var Wi;if(Rn!=="combobox")return qn;var Ci=(Wi=_t[0])===null||Wi===void 0?void 0:Wi.value;return typeof Ci=="string"||typeof Ci=="number"?String(Ci):""},[qn,Rn,_t]),Qi=Rn==="combobox"&&typeof mr=="function"&&mr()||null,qi=typeof nr=="function"&&nr(),ui=(0,se.x1)(Ii,qi==null||(St=qi.props)===null||St===void 0?void 0:St.ref),Zi=ee.useState(!1),Yi=(0,ye.Z)(Zi,2),bi=Yi[0],_i=Yi[1];(0,ae.Z)(function(){_i(!0)},[]);var Di=(0,re.Z)(!1,{defaultValue:Yn,value:Un}),_o=(0,ye.Z)(Di,2),pa=_o[0],Zo=_o[1],Po=bi?pa:!1,cs=!En&&Ht;(rr||cs&&Po&&Rn==="combobox")&&(Po=!1);var es=cs?!1:Po,di=ee.useCallback(function(Wi){var Ci=Wi!==void 0?Wi:!Po;rr||(Zo(Ci),Po!==Ci&&(pr==null||pr(Ci)))},[rr,Po,Zo,pr]),Si=ee.useMemo(function(){return(ir||[]).some(function(Wi){return[`
`,`\r
`].includes(Wi)})},[ir]),ai=ee.useContext(ut)||{},pi=ai.maxCount,Ui=ai.rawValues,lo=function(Ci,Wo,sa){if(!(zn&&$e(pi)&&(Ui==null?void 0:Ui.size)>=pi)){var ko=!0,Uo=Ci;wr==null||wr(null);var Ba=ot(Ci,ir,$e(pi)?pi-Ui.size:void 0),ka=sa?null:Ba;return Rn!=="combobox"&&ka&&(Uo="",Nn==null||Nn(ka),di(!1),ko=!1),Fn&&Gr!==Uo&&Fn(Uo,{source:Wo?"typing":"effect"}),ko}},Ma=function(Ci){!Ci||!Ci.trim()||Fn(Ci,{source:"submit"})};ee.useEffect(function(){!Po&&!zn&&Rn!=="combobox"&&lo("",!1,!1)},[Po]),ee.useEffect(function(){pa&&rr&&Zo(!1),rr&&!so.current&&wo(!1)},[rr]);var oa=Ae(),Yo=(0,ye.Z)(oa,2),Do=Yo[0],ja=Yo[1],_a=ee.useRef(!1),ha=function(Ci){var Wo=Do(),sa=Ci.key,ko=sa==="Enter";if(ko&&(Rn!=="combobox"&&Ci.preventDefault(),Po||di(!0)),ja(!!Gr),sa==="Backspace"&&!Wo&&zn&&!Gr&&_t.length){for(var Uo=(0,Ot.Z)(_t),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(Po&&(!ko||!_a.current)){var rs;ko&&(_a.current=!0),(rs=Ni.current)===null||rs===void 0||rs.onKeyDown.apply(rs,[Ci].concat(wa))}hr==null||hr.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(Po){var Uo;(Uo=Ni.current)===null||Uo===void 0||Uo.onKeyUp.apply(Uo,[Ci].concat(sa))}Ci.key==="Enter"&&(_a.current=!1),$n==null||$n.apply(void 0,[Ci].concat(sa))},Ya=function(Ci){var Wo=_t.filter(function(sa){return sa!==Ci});$t(Wo,{type:"remove",values:[Ci]})},Pa=function(){_a.current=!1},ds=ee.useRef(!1),vl=function(){wo(!0),rr||(Kn&&!ds.current&&Kn.apply(void 0,arguments),Pn.includes("focus")&&di(!0)),ds.current=!0},Js=function(){so.current=!0,wo(!1,function(){ds.current=!1,so.current=!1,di(!1)}),!rr&&(Gr&&(Rn==="tags"?Fn(Gr,{source:"submit"}):Rn==="multiple"&&Fn("",{source:"blur"})),Xn&&Xn.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=Fi.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),ri(),!gi&&!ko.contains(document.activeElement)){var wa;(wa=Ri.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];Tr==null||Tr.apply(void 0,[Ci].concat(ka))},Da=ee.useState({}),gl=(0,ye.Z)(Da,2),Rs=gl[1];function Qs(){Rs({})}var el;qi&&(el=function(Ci){di(Ci)}),Ne(function(){var Wi;return[Oi.current,(Wi=Fi.current)===null||Wi===void 0?void 0:Wi.getPopupElement()]},es,di,!!qi);var zl=ee.useMemo(function(){return(0,Pe.Z)((0,Pe.Z)({},Mt),{},{notFoundContent:En,open:Po,triggerOpen:es,id:Nt,showSearch:er,multiple:zn,toggleOpen:di})},[Mt,En,es,Po,Nt,er,zn,di]),Ns=!!Kr||cr,Ha;Ns&&(Ha=ee.createElement(pe,{className:x()("".concat(Et,"-arrow"),(0,y.Z)({},"".concat(Et,"-arrow-loading"),cr)),customizeIcon:Kr,customizeIconProps:{loading:cr,searchValue:Gr,open:Po,focused:jo,showSearch:er}}));var fs=function(){var Ci;On==null||On(),(Ci=Ri.current)===null||Ci===void 0||Ci.focus(),$t([],{type:"clear",values:_t}),lo("",!1,!1)},xs=he(Et,fs,_t,br,Nr,rr,Gr,Rn),Ms=xs.allowClear,ps=xs.clearIcon,Bs=ee.createElement(Wr,{ref:Ni}),tl=x()(Et,zt,(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(Et,"-focused"),jo),"".concat(Et,"-multiple"),zn),"".concat(Et,"-single"),!zn),"".concat(Et,"-allow-clear"),br),"".concat(Et,"-show-arrow"),Ns),"".concat(Et,"-disabled"),rr),"".concat(Et,"-loading"),cr),"".concat(Et,"-open"),Po),"".concat(Et,"-customize-input"),Qi),"".concat(Et,"-show-search"),er)),ns=ee.createElement(be,{ref:Fi,disabled:rr,prefixCls:Et,visible:es,popupElement:Bs,animation:Ir,transitionName:ni,dropdownStyle:ti,dropdownClassName:oi,direction:Ft,dropdownMatchSelectWidth:fi,dropdownRender:xi,dropdownAlign:hi,placement:ei,builtinPlacements:Ar,getPopupContainer:Dr,empty:Ht,getTriggerDOMNode:function(Ci){return Ii.current||Ci},onPopupVisibleChange:el,onPopupMouseEnter:Qs},qi?ee.cloneElement(qi,{ref:ui}):ee.createElement(_e,(0,te.Z)({},Mt,{domRef:Ii,prefixCls:Et,inputElement:Qi,ref:Ri,id:Nt,prefix:Pr,showSearch:er,autoClearSearchValue:kn,mode:Rn,activeDescendantId:Cr,tagRender:Wt,values:_t,open:Po,onToggleOpen:di,activeValue:Sr,searchValue:Gr,onSearch:lo,onSearchSubmit:Ma,onRemove:Ya,tokenWithEnter:Si,onInputBlur:Pa}))),aa;return qi?aa=ns:aa=ee.createElement("div",(0,te.Z)({className:tl},sr,{ref:Oi,onMouseDown:ts,onKeyDown:ha,onKeyUp:$a,onFocus:vl,onBlur:Js}),ee.createElement(lt,{visible:jo&&!Po,values:_t}),ns,Ha,Ms&&ps),ee.createElement(ge.Provider,{value:zl},aa)}),Tt=Pt,kt=function(){return null};kt.isSelectOptGroup=!0;var Dt=kt,gt=function(){return null};gt.isSelectOption=!0;var It=gt,Vt=Te(80547),rn=Te(2738),wt=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 ln=function(Kt,St){var Nt=me(),Et=Nt.prefixCls,zt=Nt.id,bt=Nt.open,Wt=Nt.multiple,Ft=Nt.mode,qt=Nt.searchValue,_t=Nt.toggleOpen,$t=Nt.notFoundContent,Ht=Nt.onPopupScroll,Xt=ee.useContext(ut),En=Xt.maxCount,On=Xt.flattenOptions,Rn=Xt.onActiveValue,rr=Xt.defaultActiveFirstOption,cr=Xt.onSelect,mr=Xt.menuItemSelectedIcon,nr=Xt.rawValues,Un=Xt.fieldNames,Yn=Xt.virtual,pr=Xt.direction,Sr=Xt.listHeight,wr=Xt.listItemHeight,Cr=Xt.optionRender,qn="".concat(Et,"-item"),kn=(0,Vt.Z)(function(){return On},[bt,On],function(ar,Pn){return Pn[0]&&ar[1]!==Pn[1]}),Fn=ee.useRef(null),Nn=ee.useMemo(function(){return Wt&&$e(En)&&(nr==null?void 0:nr.size)>=En},[Wt,En,nr==null?void 0:nr.size]),ir=function(Pn){Pn.preventDefault()},br=function(Pn){var Kn;(Kn=Fn.current)===null||Kn===void 0||Kn.scrollTo(typeof Pn=="number"?{index:Pn}:Pn)},Pr=ee.useCallback(function(ar){return Ft==="combobox"?!1:nr.has(ar)},[Ft,(0,Ot.Z)(nr).toString(),nr.size]),Kr=function(Pn){for(var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Xn=kn.length,$n=0;$n<Xn;$n+=1){var hr=(Pn+$n*Kn+Xn)%Xn,Tr=kn[hr]||{},Vn=Tr.group,zn=Tr.data;if(!Vn&&!(zn!=null&&zn.disabled)&&(Pr(zn.value)||!Nn))return hr}return-1},Nr=ee.useState(function(){return Kr(0)}),Wr=(0,ye.Z)(Nr,2),Ir=Wr[0],ni=Wr[1],ti=function(Pn){var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ni(Pn);var Xn={source:Kn?"keyboard":"mouse"},$n=kn[Pn];if(!$n){Rn(null,-1,Xn);return}Rn($n.value,Pn,Xn)};(0,ee.useEffect)(function(){ti(rr!==!1?Kr(0):-1)},[kn.length,qt]);var oi=ee.useCallback(function(ar){return Ft==="combobox"?String(ar).toLowerCase()===qt.toLowerCase():nr.has(ar)},[Ft,qt,(0,Ot.Z)(nr).toString(),nr.size]);(0,ee.useEffect)(function(){var ar=setTimeout(function(){if(!Wt&&bt&&nr.size===1){var Kn=Array.from(nr)[0],Xn=kn.findIndex(function($n){var hr=$n.data;return qt?String(hr.value).startsWith(qt):hr.value===Kn});Xn!==-1&&(ti(Xn),br(Xn))}});if(bt){var Pn;(Pn=Fn.current)===null||Pn===void 0||Pn.scrollTo(void 0)}return function(){return clearTimeout(ar)}},[bt,qt]);var fi=function(Pn){Pn!==void 0&&cr(Pn,{selected:!nr.has(Pn)}),Wt||_t(!1)};if(ee.useImperativeHandle(St,function(){return{onKeyDown:function(Pn){var Kn=Pn.which,Xn=Pn.ctrlKey;switch(Kn){case Be.Z.N:case Be.Z.P:case Be.Z.UP:case Be.Z.DOWN:{var $n=0;if(Kn===Be.Z.UP?$n=-1:Kn===Be.Z.DOWN?$n=1:Ct()&&Xn&&(Kn===Be.Z.N?$n=1:Kn===Be.Z.P&&($n=-1)),$n!==0){var hr=Kr(Ir+$n,$n);br(hr),ti(hr,!0)}break}case Be.Z.TAB:case Be.Z.ENTER:{var Tr,Vn=kn[Ir];Vn&&!(Vn!=null&&(Tr=Vn.data)!==null&&Tr!==void 0&&Tr.disabled)&&!Nn?fi(Vn.value):fi(void 0),bt&&Pn.preventDefault();break}case Be.Z.ESC:_t(!1),bt&&Pn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Pn){br(Pn)}}}),kn.length===0)return ee.createElement("div",{role:"listbox",id:"".concat(zt,"_list"),className:"".concat(qn,"-empty"),onMouseDown:ir},$t);var xi=Object.keys(Un).map(function(ar){return Un[ar]}),hi=function(Pn){return Pn.label};function ei(ar,Pn){var Kn=ar.group;return{role:Kn?"presentation":"option",id:"".concat(zt,"_list_").concat(Pn)}}var Ar=function(Pn){var Kn=kn[Pn];if(!Kn)return null;var Xn=Kn.data||{},$n=Xn.value,hr=Kn.group,Tr=(0,we.Z)(Xn,!0),Vn=hi(Kn);return Kn?ee.createElement("div",(0,te.Z)({"aria-label":typeof Vn=="string"&&!hr?Vn:null},Tr,{key:Pn},ei(Kn,Pn),{"aria-selected":oi($n)}),$n):null},Dr={role:"listbox",id:"".concat(zt,"_list")};return ee.createElement(ee.Fragment,null,Yn&&ee.createElement("div",(0,te.Z)({},Dr,{style:{height:0,width:0,overflow:"hidden"}}),Ar(Ir-1),Ar(Ir),Ar(Ir+1)),ee.createElement(wt.Z,{itemKey:"key",ref:Fn,data:kn,height:Sr,itemHeight:wr,fullHeight:!1,onMouseDown:ir,onScroll:Ht,virtual:Yn,direction:pr,innerProps:Yn?null:Dr},function(ar,Pn){var Kn=ar.group,Xn=ar.groupOption,$n=ar.data,hr=ar.label,Tr=ar.value,Vn=$n.key;if(Kn){var zn,er=(zn=$n.title)!==null&&zn!==void 0?zn:en(hr)?hr.toString():void 0;return ee.createElement("div",{className:x()(qn,"".concat(qn,"-group"),$n.className),title:er},hr!==void 0?hr:Vn)}var sr=$n.disabled,qr=$n.title,Ti=$n.children,gi=$n.style,ki=$n.className,Oi=(0,z.Z)($n,Zt),Ii=(0,rn.Z)(Oi,xi),Fi=Pr(Tr),Ri=sr||!Fi&&Nn,Ni="".concat(qn,"-option"),so=x()(qn,Ni,ki,(0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)({},"".concat(Ni,"-grouped"),Xn),"".concat(Ni,"-active"),Ir===Pn&&!Ri),"".concat(Ni,"-disabled"),Ri),"".concat(Ni,"-selected"),Fi)),xo=hi(ar),Ao=!mr||typeof mr=="function"||Fi,jo=typeof xo=="number"?xo:xo||Tr,wo=en(jo)?jo.toString():void 0;return qr!==void 0&&(wo=qr),ee.createElement("div",(0,te.Z)({},(0,we.Z)(Ii),Yn?{}:ei(ar,Pn),{"aria-selected":oi(Tr),className:so,title:wo,onMouseMove:function(){Ir===Pn||Ri||ti(Pn)},onClick:function(){Ri||fi(Tr)},style:gi}),ee.createElement("div",{className:"".concat(Ni,"-content")},typeof Cr=="function"?Cr(ar,{index:Pn}):jo),ee.isValidElement(mr)||Fi,Ao&&ee.createElement(pe,{className:"".concat(qn,"-option-state"),customizeIcon:mr,customizeIconProps:{value:Tr,disabled:Ri,isSelected:Fi}},Fi?"\u2713":null))}))},yn=ee.forwardRef(ln),Bn=yn,Wn=function(Mt,Kt){var St=ee.useRef({values:new Map,options:new Map}),Nt=ee.useMemo(function(){var zt=St.current,bt=zt.values,Wt=zt.options,Ft=Mt.map(function($t){if($t.label===void 0){var Ht;return(0,Pe.Z)((0,Pe.Z)({},$t),{},{label:(Ht=bt.get($t.value))===null||Ht===void 0?void 0:Ht.label})}return $t}),qt=new Map,_t=new Map;return Ft.forEach(function($t){qt.set($t.value,$t),_t.set($t.value,Kt.get($t.value)||Wt.get($t.value))}),St.current.values=qt,St.current.options=_t,Ft},[Mt,Kt]),Et=ee.useCallback(function(zt){return Kt.get(zt)||St.current.options.get(zt)},[Kt]);return[Nt,Et]};function gn(Mt,Kt){return Ke(Mt).join("").toUpperCase().includes(Kt)}var Ln=function(Mt,Kt,St,Nt,Et){return ee.useMemo(function(){if(!St||Nt===!1)return Mt;var zt=Kt.options,bt=Kt.label,Wt=Kt.value,Ft=[],qt=typeof Nt=="function",_t=St.toUpperCase(),$t=qt?Nt:function(Xt,En){return Et?gn(En[Et],_t):En[zt]?gn(En[bt!=="children"?bt:"label"],_t):gn(En[Wt],_t)},Ht=qt?function(Xt){return ct(Xt)}:function(Xt){return Xt};return Mt.forEach(function(Xt){if(Xt[zt]){var En=$t(St,Ht(Xt));if(En)Ft.push(Xt);else{var On=Xt[zt].filter(function(Rn){return $t(St,Ht(Rn))});On.length&&Ft.push((0,Pe.Z)((0,Pe.Z)({},Xt),{},(0,y.Z)({},zt,On)))}return}$t(St,Ht(Xt))&&Ft.push(Xt)}),Ft},[Mt,Nt,Et,St,Kt])},pn=Te(6551),In=Te(11592),Gt=["children","value"],Ut=["children"];function Lt(Mt){var Kt=Mt,St=Kt.key,Nt=Kt.props,Et=Nt.children,zt=Nt.value,bt=(0,z.Z)(Nt,Gt);return(0,Pe.Z)({key:St,value:zt!==void 0?zt:St,children:Et},bt)}function sn(Mt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,In.Z)(Mt).map(function(St,Nt){if(!ee.isValidElement(St)||!St.type)return null;var Et=St,zt=Et.type.isSelectOptGroup,bt=Et.key,Wt=Et.props,Ft=Wt.children,qt=(0,z.Z)(Wt,Ut);return Kt||!zt?Lt(St):(0,Pe.Z)((0,Pe.Z)({key:"__RC_SELECT_GRP__".concat(bt===null?Nt:bt,"__"),label:bt},qt),{},{options:sn(Ft)})}).filter(function(St){return St})}var un=function(Kt,St,Nt,Et,zt){return ee.useMemo(function(){var bt=Kt,Wt=!Kt;Wt&&(bt=sn(St));var Ft=new Map,qt=new Map,_t=function(Xt,En,On){On&&typeof On=="string"&&Xt.set(En[On],En)},$t=function Ht(Xt){for(var En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,On=0;On<Xt.length;On+=1){var Rn=Xt[On];!Rn[Nt.options]||En?(Ft.set(Rn[Nt.value],Rn),_t(qt,Rn,Nt.label),_t(qt,Rn,Et),_t(qt,Rn,zt)):Ht(Rn[Nt.options],!0)}};return $t(bt),{options:bt,valueOptions:Ft,labelOptions:qt}},[Kt,St,Nt,Et,zt])},Cn=un;function Tn(Mt){var Kt=ee.useRef();Kt.current=Mt;var St=ee.useCallback(function(){return Kt.current.apply(Kt,arguments)},[]);return St}function jn(Mt){var Kt=Mt.mode,St=Mt.options,Nt=Mt.children,Et=Mt.backfill,zt=Mt.allowClear,bt=Mt.placeholder,Wt=Mt.getInputElement,Ft=Mt.showSearch,qt=Mt.onSearch,_t=Mt.defaultOpen,$t=Mt.autoFocus,Ht=Mt.labelInValue,Xt=Mt.value,En=Mt.inputValue,On=Mt.optionLabelProp,Rn=isMultiple(Kt),rr=Ft!==void 0?Ft:Rn||Kt==="combobox",cr=St||convertChildrenToData(Nt);if(warning(Kt!=="tags"||cr.every(function(Yn){return!Yn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Kt==="tags"||Kt==="combobox"){var mr=cr.some(function(Yn){return Yn.options?Yn.options.some(function(pr){return typeof("value"in pr?pr.value:pr.key)=="number"}):typeof("value"in Yn?Yn.value:Yn.key)=="number"});warning(!mr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Kt!=="combobox"||!On,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Kt==="combobox"||!Et,"`backfill` only works with `combobox` mode."),warning(Kt==="combobox"||!Wt,"`getInputElement` only work with `combobox` mode."),noteOnce(Kt!=="combobox"||!Wt||!zt||!bt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),qt&&!rr&&Kt!=="combobox"&&Kt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!_t||$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 nr=toArray(Xt);warning(!Ht||nr.every(function(Yn){return _typeof(Yn)==="object"&&("key"in Yn||"value"in Yn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Rn||Array.isArray(Xt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Nt){var Un=null;toNodeArray(Nt).some(function(Yn){if(!React.isValidElement(Yn)||!Yn.type)return!1;var pr=Yn,Sr=pr.type;if(Sr.isSelectOption)return!1;if(Sr.isSelectOptGroup){var wr=toNodeArray(Yn.props.children).every(function(Cr){return!React.isValidElement(Cr)||!Yn.type||Cr.type.isSelectOption?!0:(Un=Cr.type,!1)});return!wr}return Un=Sr,!0}),Un&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Un.displayName||Un.name||Un,"`.")),warning(En===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function hn(Mt,Kt){if(Mt){var St=function Nt(Et){for(var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,bt=0;bt<Et.length;bt++){var Wt=Et[bt];if(Wt[Kt==null?void 0:Kt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!zt&&Array.isArray(Wt[Kt==null?void 0:Kt.options])&&Nt(Wt[Kt==null?void 0:Kt.options],!0))break}};St(Mt)}}var Mn=null,_n=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],ur=["inputValue"];function tr(Mt){return!Mt||(0,E.Z)(Mt)!=="object"}var cn=ee.forwardRef(function(Mt,Kt){var St=Mt.id,Nt=Mt.mode,Et=Mt.prefixCls,zt=Et===void 0?"rc-select":Et,bt=Mt.backfill,Wt=Mt.fieldNames,Ft=Mt.inputValue,qt=Mt.searchValue,_t=Mt.onSearch,$t=Mt.autoClearSearchValue,Ht=$t===void 0?!0:$t,Xt=Mt.onSelect,En=Mt.onDeselect,On=Mt.dropdownMatchSelectWidth,Rn=On===void 0?!0:On,rr=Mt.filterOption,cr=Mt.filterSort,mr=Mt.optionFilterProp,nr=Mt.optionLabelProp,Un=Mt.options,Yn=Mt.optionRender,pr=Mt.children,Sr=Mt.defaultActiveFirstOption,wr=Mt.menuItemSelectedIcon,Cr=Mt.virtual,qn=Mt.direction,kn=Mt.listHeight,Fn=kn===void 0?200:kn,Nn=Mt.listItemHeight,ir=Nn===void 0?20:Nn,br=Mt.labelRender,Pr=Mt.value,Kr=Mt.defaultValue,Nr=Mt.labelInValue,Wr=Mt.onChange,Ir=Mt.maxCount,ni=(0,z.Z)(Mt,_n),ti=(0,pn.ZP)(St),oi=Rt(Nt),fi=!!(!Un&&pr),xi=ee.useMemo(function(){return rr===void 0&&Nt==="combobox"?!1:rr},[rr,Nt]),hi=ee.useMemo(function(){return We(Wt,fi)},[JSON.stringify(Wt),fi]),ei=(0,re.Z)("",{value:qt!==void 0?qt:Ft,postState:function(Si){return Si||""}}),Ar=(0,ye.Z)(ei,2),Dr=Ar[0],ar=Ar[1],Pn=Cn(Un,pr,hi,mr,nr),Kn=Pn.valueOptions,Xn=Pn.labelOptions,$n=Pn.options,hr=ee.useCallback(function(di){var Si=Ke(di);return Si.map(function(ai){var pi,Ui,lo,Ma,oa;if(tr(ai))pi=ai;else{var Yo;lo=ai.key,Ui=ai.label,pi=(Yo=ai.value)!==null&&Yo!==void 0?Yo:lo}var Do=Kn.get(pi);if(Do){var ja;if(Ui===void 0&&(Ui=Do==null?void 0:Do[nr||hi.label]),lo===void 0&&(lo=(ja=Do==null?void 0:Do.key)!==null&&ja!==void 0?ja:pi),Ma=Do==null?void 0:Do.disabled,oa=Do==null?void 0:Do.title,0)var _a}return{label:Ui,value:pi,key:lo,disabled:Ma,title:oa}})},[hi,nr,Kn]),Tr=(0,re.Z)(Kr,{value:Pr}),Vn=(0,ye.Z)(Tr,2),zn=Vn[0],er=Vn[1],sr=ee.useMemo(function(){var di,Si=oi&&zn===null?[]:zn,ai=hr(Si);return Nt==="combobox"&&Ue((di=ai[0])===null||di===void 0?void 0:di.value)?[]:ai},[zn,hr,Nt,oi]),qr=Wn(sr,Kn),Ti=(0,ye.Z)(qr,2),gi=Ti[0],ki=Ti[1],Oi=ee.useMemo(function(){if(!Nt&&gi.length===1){var di=gi[0];if(di.value===null&&(di.label===null||di.label===void 0))return[]}return gi.map(function(Si){var ai;return(0,Pe.Z)((0,Pe.Z)({},Si),{},{label:(ai=typeof br=="function"?br(Si):Si.label)!==null&&ai!==void 0?ai:Si.value})})},[Nt,gi,br]),Ii=ee.useMemo(function(){return new Set(gi.map(function(di){return di.value}))},[gi]);ee.useEffect(function(){if(Nt==="combobox"){var di,Si=(di=gi[0])===null||di===void 0?void 0:di.value;ar(Le(Si)?String(Si):"")}},[gi]);var Fi=Tn(function(di,Si){var ai=Si!=null?Si:di;return(0,y.Z)((0,y.Z)({},hi.value,di),hi.label,ai)}),Ri=ee.useMemo(function(){if(Nt!=="tags")return $n;var di=(0,Ot.Z)($n),Si=function(pi){return Kn.has(pi)};return(0,Ot.Z)(gi).sort(function(ai,pi){return ai.value<pi.value?-1:1}).forEach(function(ai){var pi=ai.value;Si(pi)||di.push(Fi(pi,ai.label))}),di},[Fi,$n,Kn,gi,Nt]),Ni=Ln(Ri,hi,Dr,xi,mr),so=ee.useMemo(function(){return Nt!=="tags"||!Dr||Ni.some(function(di){return di[mr||"value"]===Dr})||Ni.some(function(di){return di[hi.value]===Dr})?Ni:[Fi(Dr)].concat((0,Ot.Z)(Ni))},[Fi,mr,Nt,Ni,Dr,hi]),xo=function di(Si){var ai=(0,Ot.Z)(Si).sort(function(pi,Ui){return cr(pi,Ui,{searchValue:Dr})});return ai.map(function(pi){return Array.isArray(pi.options)?(0,Pe.Z)((0,Pe.Z)({},pi),{},{options:pi.options.length>0?di(pi.options):pi.options}):pi})},Ao=ee.useMemo(function(){return cr?xo(so):so},[so,cr,Dr]),jo=ee.useMemo(function(){return Je(Ao,{fieldNames:hi,childrenAsData:fi})},[Ao,hi,fi]),wo=function(Si){var ai=hr(Si);if(er(ai),Wr&&(ai.length!==gi.length||ai.some(function(lo,Ma){var oa;return((oa=gi[Ma])===null||oa===void 0?void 0:oa.value)!==(lo==null?void 0:lo.value)}))){var pi=Nr?ai:ai.map(function(lo){return lo.value}),Ui=ai.map(function(lo){return ct(ki(lo.value))});Wr(oi?pi:pi[0],oi?Ui:Ui[0])}},ri=ee.useState(null),Gr=(0,ye.Z)(ri,2),Qi=Gr[0],qi=Gr[1],ui=ee.useState(0),Zi=(0,ye.Z)(ui,2),Yi=Zi[0],bi=Zi[1],_i=Sr!==void 0?Sr:Nt!=="combobox",Di=ee.useCallback(function(di,Si){var ai=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pi=ai.source,Ui=pi===void 0?"keyboard":pi;bi(Si),bt&&Nt==="combobox"&&di!==null&&Ui==="keyboard"&&qi(String(di))},[bt,Nt]),_o=function(Si,ai,pi){var Ui=function(){var Ya,Pa=ki(Si);return[Nr?{label:Pa==null?void 0:Pa[hi.label],value:Si,key:(Ya=Pa==null?void 0:Pa.key)!==null&&Ya!==void 0?Ya:Si}:Si,ct(Pa)]};if(ai&&Xt){var lo=Ui(),Ma=(0,ye.Z)(lo,2),oa=Ma[0],Yo=Ma[1];Xt(oa,Yo)}else if(!ai&&En&&pi!=="clear"){var Do=Ui(),ja=(0,ye.Z)(Do,2),_a=ja[0],ha=ja[1];En(_a,ha)}},pa=Tn(function(di,Si){var ai,pi=oi?Si.selected:!0;pi?ai=oi?[].concat((0,Ot.Z)(gi),[di]):[di]:ai=gi.filter(function(Ui){return Ui.value!==di}),wo(ai),_o(di,pi),Nt==="combobox"?qi(""):(!Rt||Ht)&&(ar(""),qi(""))}),Zo=function(Si,ai){wo(Si);var pi=ai.type,Ui=ai.values;(pi==="remove"||pi==="clear")&&Ui.forEach(function(lo){_o(lo.value,!1,pi)})},Po=function(Si,ai){if(ar(Si),qi(null),ai.source==="submit"){var pi=(Si||"").trim();if(pi){var Ui=Array.from(new Set([].concat((0,Ot.Z)(Ii),[pi])));wo(Ui),_o(pi,!0),ar("")}return}ai.source!=="blur"&&(Nt==="combobox"&&wo(Si),_t==null||_t(Si))},cs=function(Si){var ai=Si;Nt!=="tags"&&(ai=Si.map(function(Ui){var lo=Xn.get(Ui);return lo==null?void 0:lo.value}).filter(function(Ui){return Ui!==void 0}));var pi=Array.from(new Set([].concat((0,Ot.Z)(Ii),(0,Ot.Z)(ai))));wo(pi),pi.forEach(function(Ui){_o(Ui,!0)})},es=ee.useMemo(function(){var di=Cr!==!1&&Rn!==!1;return(0,Pe.Z)((0,Pe.Z)({},Pn),{},{flattenOptions:jo,onActiveValue:Di,defaultActiveFirstOption:_i,onSelect:pa,menuItemSelectedIcon:wr,rawValues:Ii,fieldNames:hi,virtual:di,direction:qn,listHeight:Fn,listItemHeight:ir,childrenAsData:fi,maxCount:Ir,optionRender:Yn})},[Ir,Pn,jo,Di,_i,pa,wr,Ii,hi,Cr,Rn,qn,Fn,ir,fi,Yn]);return ee.createElement(ut.Provider,{value:es},ee.createElement(Tt,(0,te.Z)({},ni,{id:ti,prefixCls:zt,ref:Kt,omitDomProps:ur,mode:Nt,displayValues:Oi,onDisplayValuesChange:Zo,direction:qn,searchValue:Dr,onSearch:Po,autoClearSearchValue:Ht,onSearchSplit:cs,dropdownMatchSelectWidth:Rn,OptionList:Bn,emptyOptions:!jo.length,activeValue:Qi,activeDescendantId:"".concat(ti,"_list_").concat(Yi)})))}),tn=cn;tn.Option=It,tn.OptGroup=Dt;var Hn=tn,Gn=Hn},22711:function(wn,Yt,Te){"use strict";Te.r(Yt),Te.d(Yt,{ResizableTextArea:function(){return je},default:function(){return Ge}});var te=Te(54476),Ot=Te(20068),y=Te(33885),Pe=Te(94480),ye=Te(42978),z=Te(75931),E=Te(92310),re=Te.n(E),oe=Te(36901),ee=Te(66003),de=Te(30292),x=Te(18929),ae=Te(59301),ie=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;
`,ge=["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"],me={},xe;function Ae(Ke){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=Ke.getAttribute("id")||Ke.getAttribute("data-reactid")||Ke.getAttribute("name");if(Ve&&me[it])return me[it];var Le=window.getComputedStyle(Ke),Ue=Le.getPropertyValue("box-sizing")||Le.getPropertyValue("-moz-box-sizing")||Le.getPropertyValue("-webkit-box-sizing"),tt=parseFloat(Le.getPropertyValue("padding-bottom"))+parseFloat(Le.getPropertyValue("padding-top")),nt=parseFloat(Le.getPropertyValue("border-bottom-width"))+parseFloat(Le.getPropertyValue("border-top-width")),et=ge.map(function(Ye){return"".concat(Ye,":").concat(Le.getPropertyValue(Ye))}).join(";"),Ze={sizingStyle:et,paddingSize:tt,borderSize:nt,boxSizing:Ue};return Ve&&it&&(me[it]=Ze),Ze}function Ne(Ke){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Le=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)),Ke.getAttribute("wrap")?xe.setAttribute("wrap",Ke.getAttribute("wrap")):xe.removeAttribute("wrap");var Ue=Ae(Ke,Ve),tt=Ue.paddingSize,nt=Ue.borderSize,et=Ue.boxSizing,Ze=Ue.sizingStyle;xe.setAttribute("style","".concat(Ze,";").concat(he)),xe.value=Ke.value||Ke.placeholder||"";var Ye=void 0,Xe=void 0,st,Qe=xe.scrollHeight;if(et==="border-box"?Qe+=nt:et==="content-box"&&(Qe-=tt),it!==null||Le!==null){xe.value=" ";var ht=xe.scrollHeight-tt;it!==null&&(Ye=ht*it,et==="border-box"&&(Ye=Ye+tt+nt),Qe=Math.max(Ye,Qe)),Le!==null&&(Xe=ht*Le,et==="border-box"&&(Xe=Xe+tt+nt),st=Qe>Xe?"":"hidden",Qe=Math.min(Xe,Qe))}var at={height:Qe,overflowY:st,resize:"none"};return Ye&&(at.minHeight=Ye),Xe&&(at.maxHeight=Xe),at}var Be=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],De=0,we=1,Ce=2,Oe=ae.forwardRef(function(Ke,Ve){var it=Ke,Le=it.prefixCls,Ue=it.defaultValue,tt=it.value,nt=it.autoSize,et=it.onResize,Ze=it.className,Ye=it.style,Xe=it.disabled,st=it.onChange,Qe=it.onInternalAutoSize,ht=(0,z.Z)(it,Be),at=(0,x.Z)(Ue,{value:tt,postState:function(It){return It!=null?It:""}}),qe=(0,ye.Z)(at,2),_e=qe[0],Re=qe[1],ne=function(It){Re(It.target.value),st==null||st(It)},fe=ae.useRef();ae.useImperativeHandle(Ve,function(){return{textArea:fe.current}});var Me=ae.useMemo(function(){return nt&&(0,ie.Z)(nt)==="object"?[nt.minRows,nt.maxRows]:[]},[nt]),He=(0,ye.Z)(Me,2),be=He[0],ve=He[1],Ie=!!nt,$e=function(){try{if(document.activeElement===fe.current){var It=fe.current,Vt=It.selectionStart,rn=It.selectionEnd,wt=It.scrollTop;fe.current.setSelectionRange(Vt,rn),fe.current.scrollTop=wt}}catch(Ct){}},We=ae.useState(Ce),Je=(0,ye.Z)(We,2),ct=Je[0],ot=Je[1],ft=ae.useState(),ut=(0,ye.Z)(ft,2),lt=ut[0],At=ut[1],yt=function(){ot(De)};(0,ue.Z)(function(){Ie&&yt()},[tt,be,ve,Ie]),(0,ue.Z)(function(){if(ct===De)ot(we);else if(ct===we){var gt=Ne(fe.current,!1,be,ve);ot(Ce),At(gt)}else $e()},[ct]);var Rt=ae.useRef(),Pt=function(){pe.Z.cancel(Rt.current)},Tt=function(It){ct===Ce&&(et==null||et(It),nt&&(Pt(),Rt.current=(0,pe.Z)(function(){yt()})))};ae.useEffect(function(){return Pt},[]);var kt=Ie?lt:null,Dt=(0,y.Z)((0,y.Z)({},Ye),kt);return(ct===De||ct===we)&&(Dt.overflowY="hidden",Dt.overflowX="hidden"),ae.createElement(se.Z,{onResize:Tt,disabled:!(nt||et)},ae.createElement("textarea",(0,te.Z)({},ht,{ref:fe,style:Dt,className:re()(Le,Ze,(0,Ot.Z)({},"".concat(Le,"-disabled"),Xe)),disabled:Xe,value:_e,onChange:ne})))}),je=Oe,Fe=["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"],ke=ae.forwardRef(function(Ke,Ve){var it,Le=Ke.defaultValue,Ue=Ke.value,tt=Ke.onFocus,nt=Ke.onBlur,et=Ke.onChange,Ze=Ke.allowClear,Ye=Ke.maxLength,Xe=Ke.onCompositionStart,st=Ke.onCompositionEnd,Qe=Ke.suffix,ht=Ke.prefixCls,at=ht===void 0?"rc-textarea":ht,qe=Ke.showCount,_e=Ke.count,Re=Ke.className,ne=Ke.style,fe=Ke.disabled,Me=Ke.hidden,He=Ke.classNames,be=Ke.styles,ve=Ke.onResize,Ie=Ke.onClear,$e=Ke.onPressEnter,We=Ke.readOnly,Je=Ke.autoSize,ct=Ke.onKeyDown,ot=(0,z.Z)(Ke,Fe),ft=(0,x.Z)(Le,{value:Ue,defaultValue:Le}),ut=(0,ye.Z)(ft,2),lt=ut[0],At=ut[1],yt=lt==null?"":String(lt),Rt=ae.useState(!1),Pt=(0,ye.Z)(Rt,2),Tt=Pt[0],kt=Pt[1],Dt=ae.useRef(!1),gt=ae.useState(null),It=(0,ye.Z)(gt,2),Vt=It[0],rn=It[1],wt=(0,ae.useRef)(null),Ct=(0,ae.useRef)(null),Zt=function(){var tn;return(tn=Ct.current)===null||tn===void 0?void 0:tn.textArea},en=function(){Zt().focus()};(0,ae.useImperativeHandle)(Ve,function(){var cn;return{resizableTextArea:Ct.current,focus:en,blur:function(){Zt().blur()},nativeElement:((cn=wt.current)===null||cn===void 0?void 0:cn.nativeElement)||Zt()}}),(0,ae.useEffect)(function(){kt(function(cn){return!fe&&cn})},[fe]);var ln=ae.useState(null),yn=(0,ye.Z)(ln,2),Bn=yn[0],Wn=yn[1];ae.useEffect(function(){if(Bn){var cn;(cn=Zt()).setSelectionRange.apply(cn,(0,Pe.Z)(Bn))}},[Bn]);var gn=(0,ee.Z)(_e,qe),Ln=(it=gn.max)!==null&&it!==void 0?it:Ye,pn=Number(Ln)>0,In=gn.strategy(yt),Gt=!!Ln&&In>Ln,Ut=function(tn,Hn){var Gn=Hn;!Dt.current&&gn.exceedFormatter&&gn.max&&gn.strategy(Hn)>gn.max&&(Gn=gn.exceedFormatter(Hn,{max:gn.max}),Hn!==Gn&&Wn([Zt().selectionStart||0,Zt().selectionEnd||0])),At(Gn),(0,de.rJ)(tn.currentTarget,tn,et,Gn)},Lt=function(tn){Dt.current=!0,Xe==null||Xe(tn)},sn=function(tn){Dt.current=!1,Ut(tn,tn.currentTarget.value),st==null||st(tn)},un=function(tn){Ut(tn,tn.target.value)},Cn=function(tn){tn.key==="Enter"&&$e&&$e(tn),ct==null||ct(tn)},Tn=function(tn){kt(!0),tt==null||tt(tn)},jn=function(tn){kt(!1),nt==null||nt(tn)},hn=function(tn){At(""),en(),(0,de.rJ)(Zt(),tn,et)},Mn=Qe,_n;gn.show&&(gn.showFormatter?_n=gn.showFormatter({value:yt,count:In,maxLength:Ln}):_n="".concat(In).concat(pn?" / ".concat(Ln):""),Mn=ae.createElement(ae.Fragment,null,Mn,ae.createElement("span",{className:re()("".concat(at,"-data-count"),He==null?void 0:He.count),style:be==null?void 0:be.count},_n)));var ur=function(tn){var Hn;ve==null||ve(tn),(Hn=Zt())!==null&&Hn!==void 0&&Hn.style.height&&rn(!0)},tr=!Je&&!qe&&!Ze;return ae.createElement(oe.BaseInput,{ref:wt,value:yt,allowClear:Ze,handleReset:hn,suffix:Mn,prefixCls:at,classNames:(0,y.Z)((0,y.Z)({},He),{},{affixWrapper:re()(He==null?void 0:He.affixWrapper,(0,Ot.Z)((0,Ot.Z)({},"".concat(at,"-show-count"),qe),"".concat(at,"-textarea-allow-clear"),Ze))}),disabled:fe,focused:Tt,className:re()(Re,Gt&&"".concat(at,"-out-of-range")),style:(0,y.Z)((0,y.Z)({},ne),Vt&&!tr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof _n=="string"?_n:void 0}},hidden:Me,readOnly:We,onClear:Ie},ae.createElement(je,(0,te.Z)({},ot,{autoSize:Je,maxLength:Ye,onKeyDown:Cn,onChange:un,onFocus:Tn,onBlur:jn,onCompositionStart:Lt,onCompositionEnd:sn,className:re()(He==null?void 0:He.textarea),style:(0,y.Z)((0,y.Z)({},be==null?void 0:be.textarea),{},{resize:ne==null?void 0:ne.resize}),disabled:fe,prefixCls:at,onResize:ur,ref:Ct,readOnly:We})))}),Ee=ke,Ge=Ee},639:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return me}});var te=Te(54476),Ot=Te(20068),y=Te(33885),Pe=Te(42978),ye=Te(75931),z=Te(59301),E=Te(92310),re=Te.n(E),oe=Te(26112),ee=Te(30699),de=function(Ae){for(var Ne=Ae.prefixCls,Be=Ae.level,De=Ae.isStart,we=Ae.isEnd,Ce="".concat(Ne,"-indent-unit"),Oe=[],je=0;je<Be;je+=1)Oe.push(z.createElement("span",{key:je,className:re()(Ce,(0,Ot.Z)((0,Ot.Z)({},"".concat(Ce,"-start"),De[je]),"".concat(Ce,"-end"),we[je]))}));return z.createElement("span",{"aria-hidden":"true",className:"".concat(Ne,"-indent")},Oe)},x=z.memo(de),ae=Te(65065),ie=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="---",ge=function(Ae){var Ne,Be,De,we=Ae.eventKey,Ce=Ae.className,Oe=Ae.style,je=Ae.dragOver,Fe=Ae.dragOverGapTop,ke=Ae.dragOverGapBottom,Ee=Ae.isLeaf,Ge=Ae.isStart,Ke=Ae.isEnd,Ve=Ae.expanded,it=Ae.selected,Le=Ae.checked,Ue=Ae.halfChecked,tt=Ae.loading,nt=Ae.domRef,et=Ae.active,Ze=Ae.data,Ye=Ae.onMouseMove,Xe=Ae.selectable,st=(0,ye.Z)(Ae,se),Qe=z.useContext(ee.k),ht=z.useContext(ee.y),at=z.useRef(null),qe=z.useState(!1),_e=(0,Pe.Z)(qe,2),Re=_e[0],ne=_e[1],fe=!!(Qe.disabled||Ae.disabled||(Ne=ht.nodeDisabled)!==null&&Ne!==void 0&&Ne.call(ht,Ze)),Me=z.useMemo(function(){return!Qe.checkable||Ae.checkable===!1?!1:Qe.checkable},[Qe.checkable,Ae.checkable]),He=function(In){fe||Qe.onNodeSelect(In,(0,ie.F)(Ae))},be=function(In){fe||!Me||Ae.disableCheckbox||Qe.onNodeCheck(In,(0,ie.F)(Ae),!Le)},ve=z.useMemo(function(){return typeof Xe=="boolean"?Xe:Qe.selectable},[Xe,Qe.selectable]),Ie=function(In){Qe.onNodeClick(In,(0,ie.F)(Ae)),ve?He(In):be(In)},$e=function(In){Qe.onNodeDoubleClick(In,(0,ie.F)(Ae))},We=function(In){Qe.onNodeMouseEnter(In,(0,ie.F)(Ae))},Je=function(In){Qe.onNodeMouseLeave(In,(0,ie.F)(Ae))},ct=function(In){Qe.onNodeContextMenu(In,(0,ie.F)(Ae))},ot=z.useMemo(function(){return!!(Qe.draggable&&(!Qe.draggable.nodeDraggable||Qe.draggable.nodeDraggable(Ze)))},[Qe.draggable,Ze]),ft=function(In){In.stopPropagation(),ne(!0),Qe.onNodeDragStart(In,Ae);try{In.dataTransfer.setData("text/plain","")}catch(Gt){}},ut=function(In){In.preventDefault(),In.stopPropagation(),Qe.onNodeDragEnter(In,Ae)},lt=function(In){In.preventDefault(),In.stopPropagation(),Qe.onNodeDragOver(In,Ae)},At=function(In){In.stopPropagation(),Qe.onNodeDragLeave(In,Ae)},yt=function(In){In.stopPropagation(),ne(!1),Qe.onNodeDragEnd(In,Ae)},Rt=function(In){In.preventDefault(),In.stopPropagation(),ne(!1),Qe.onNodeDrop(In,Ae)},Pt=function(In){tt||Qe.onNodeExpand(In,(0,ie.F)(Ae))},Tt=z.useMemo(function(){var pn=(0,ae.Z)(Qe.keyEntities,we)||{},In=pn.children;return!!(In||[]).length},[Qe.keyEntities,we]),kt=z.useMemo(function(){return Ee===!1?!1:Ee||!Qe.loadData&&!Tt||Qe.loadData&&Ae.loaded&&!Tt},[Ee,Qe.loadData,Tt,Ae.loaded]);z.useEffect(function(){tt||typeof Qe.loadData=="function"&&Ve&&!kt&&!Ae.loaded&&Qe.onNodeLoad((0,ie.F)(Ae))},[tt,Qe.loadData,Qe.onNodeLoad,Ve,kt,Ae]);var Dt=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]),gt=function(In){var Gt=Ae.switcherIcon||Qe.switcherIcon;return typeof Gt=="function"?Gt((0,y.Z)((0,y.Z)({},Ae),{},{isLeaf:In})):Gt},It=function(){if(kt){var In=gt(!0);return In!==!1?z.createElement("span",{className:re()("".concat(Qe.prefixCls,"-switcher"),"".concat(Qe.prefixCls,"-switcher-noop"))},In):null}var Gt=gt(!1);return Gt!==!1?z.createElement("span",{onClick:Pt,className:re()("".concat(Qe.prefixCls,"-switcher"),"".concat(Qe.prefixCls,"-switcher_").concat(Ve?ue:pe))},Gt):null},Vt=z.useMemo(function(){if(!Me)return null;var pn=typeof Me!="boolean"?Me:null;return z.createElement("span",{className:re()("".concat(Qe.prefixCls,"-checkbox"),(0,Ot.Z)((0,Ot.Z)((0,Ot.Z)({},"".concat(Qe.prefixCls,"-checkbox-checked"),Le),"".concat(Qe.prefixCls,"-checkbox-indeterminate"),!Le&&Ue),"".concat(Qe.prefixCls,"-checkbox-disabled"),fe||Ae.disableCheckbox)),onClick:be,role:"checkbox","aria-checked":Ue?"mixed":Le,"aria-disabled":fe||Ae.disableCheckbox,"aria-label":"Select ".concat(typeof Ae.title=="string"?Ae.title:"tree node")},pn)},[Me,Le,Ue,fe,Ae.disableCheckbox,Ae.title]),rn=z.useMemo(function(){return kt?null:Ve?ue:pe},[kt,Ve]),wt=z.useMemo(function(){return z.createElement("span",{className:re()("".concat(Qe.prefixCls,"-iconEle"),"".concat(Qe.prefixCls,"-icon__").concat(rn||"docu"),(0,Ot.Z)({},"".concat(Qe.prefixCls,"-icon_loading"),tt))})},[Qe.prefixCls,rn,tt]),Ct=z.useMemo(function(){var pn=!!Qe.draggable,In=!Ae.disabled&&pn&&Qe.dragOverNodeKey===we;return In?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=Ae.title,In=pn===void 0?he:pn,Gt="".concat(Qe.prefixCls,"-node-content-wrapper"),Ut;if(Qe.showIcon){var Lt=Ae.icon||Qe.icon;Ut=Lt?z.createElement("span",{className:re()("".concat(Qe.prefixCls,"-iconEle"),"".concat(Qe.prefixCls,"-icon__customize"))},typeof Lt=="function"?Lt(Ae):Lt):wt}else Qe.loadData&&tt&&(Ut=wt);var sn;return typeof In=="function"?sn=In(Ze):Qe.titleRender?sn=Qe.titleRender(Ze):sn=In,z.createElement("span",{ref:at,title:typeof In=="string"?In:"",className:re()(Gt,"".concat(Gt,"-").concat(rn||"normal"),(0,Ot.Z)({},"".concat(Qe.prefixCls,"-node-selected"),!fe&&(it||Re))),onMouseEnter:We,onMouseLeave:Je,onContextMenu:ct,onClick:Ie,onDoubleClick:$e},Ut,z.createElement("span",{className:"".concat(Qe.prefixCls,"-title")},sn),Ct)},[Qe.prefixCls,Qe.showIcon,Ae,Qe.icon,wt,Qe.titleRender,Ze,rn,We,Je,ct,Ie,$e]),en=(0,oe.Z)(st,{aria:!0,data:!0}),ln=(0,ae.Z)(Qe.keyEntities,we)||{},yn=ln.level,Bn=Ke[Ke.length-1],Wn=!fe&&ot,gn=Qe.draggingNodeKey===we,Ln=Xe!==void 0?{"aria-selected":!!Xe}:void 0;return z.createElement("div",(0,te.Z)({ref:nt,role:"treeitem","aria-expanded":Ee?void 0:Ve,className:re()(Ce,"".concat(Qe.prefixCls,"-treenode"),(De={},(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)(De,"".concat(Qe.prefixCls,"-treenode-disabled"),fe),"".concat(Qe.prefixCls,"-treenode-switcher-").concat(Ve?"open":"close"),!Ee),"".concat(Qe.prefixCls,"-treenode-checkbox-checked"),Le),"".concat(Qe.prefixCls,"-treenode-checkbox-indeterminate"),Ue),"".concat(Qe.prefixCls,"-treenode-selected"),it),"".concat(Qe.prefixCls,"-treenode-loading"),tt),"".concat(Qe.prefixCls,"-treenode-active"),et),"".concat(Qe.prefixCls,"-treenode-leaf-last"),Bn),"".concat(Qe.prefixCls,"-treenode-draggable"),ot),"dragging",gn),(0,Ot.Z)((0,Ot.Z)((0,Ot.Z)((0,Ot.Z)((0,Ot.Z)((0,Ot.Z)((0,Ot.Z)(De,"drop-target",Qe.dropTargetKey===we),"drop-container",Qe.dropContainerKey===we),"drag-over",!fe&&je),"drag-over-gap-top",!fe&&Fe),"drag-over-gap-bottom",!fe&&ke),"filter-node",(Be=Qe.filterTreeNode)===null||Be===void 0?void 0:Be.call(Qe,(0,ie.F)(Ae))),"".concat(Qe.prefixCls,"-treenode-leaf"),kt))),style:Oe,draggable:Wn,onDragStart:Wn?ft:void 0,onDragEnter:ot?ut:void 0,onDragOver:ot?lt:void 0,onDragLeave:ot?At:void 0,onDrop:ot?Rt:void 0,onDragEnd:ot?yt:void 0,onMouseMove:Ye},Ln,en),z.createElement(x,{prefixCls:Qe.prefixCls,level:yn,isStart:Ge,isEnd:Ke}),Dt,It(),Vt,Zt)};ge.isTreeNode=1;var me=ge},30699:function(wn,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(wn,Yt,Te){"use strict";Te.d(Yt,{OF:function(){return we.Z},y6:function(){return pe.y},ZP:function(){return fe}});var te=Te(54476),Ot=Te(76190),y=Te(33885),Pe=Te(94480),ye=Te(67732),z=Te(83652),E=Te(31226),re=Te(42403),oe=Te(158),ee=Te(20068),de=Te(92310),x=Te.n(de),ae=Te(10228),ie=Te(26112),se=Te(48736),ue=Te(59301),pe=Te(30699),he=function(He){var be=He.dropPosition,ve=He.dropLevelOffset,Ie=He.indent,$e={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(be){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})},ge=he;function me(Me){if(Me==null)throw new TypeError("Cannot destructure "+Me)}var xe=Te(42978),Ae=Te(75931),Ne=Te(34280),Be=Te(48911),De=Te(77900),we=Te(639);function Ce(Me,He){var be=ue.useState(!1),ve=(0,xe.Z)(be,2),Ie=ve[0],$e=ve[1];(0,Ne.Z)(function(){if(Ie)return Me(),function(){He()}},[Ie]),(0,Ne.Z)(function(){return $e(!0),function(){$e(!1)}},[])}var Oe=Ce,je=Te(34061),Fe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ke=ue.forwardRef(function(Me,He){var be=Me.className,ve=Me.style,Ie=Me.motion,$e=Me.motionNodes,We=Me.motionType,Je=Me.onMotionStart,ct=Me.onMotionEnd,ot=Me.active,ft=Me.treeNodeRequiredProps,ut=(0,Ae.Z)(Me,Fe),lt=ue.useState(!0),At=(0,xe.Z)(lt,2),yt=At[0],Rt=At[1],Pt=ue.useContext(pe.k),Tt=Pt.prefixCls,kt=$e&&We!=="hide";(0,Ne.Z)(function(){$e&&kt!==yt&&Rt(kt)},[$e]);var Dt=function(){$e&&Je()},gt=ue.useRef(!1),It=function(){$e&&!gt.current&&(gt.current=!0,ct())};Oe(Dt,It);var Vt=function(wt){kt===wt&&It()};return $e?ue.createElement(De.default,(0,te.Z)({ref:He,visible:yt},Ie,{motionAppear:We==="show",onVisibleChanged:Vt}),function(rn,wt){var Ct=rn.className,Zt=rn.style;return ue.createElement("div",{ref:wt,className:x()("".concat(Tt,"-treenode-motion"),Ct),style:Zt},$e.map(function(en){var ln=Object.assign({},(me(en.data),en.data)),yn=en.title,Bn=en.key,Wn=en.isStart,gn=en.isEnd;delete ln.children;var Ln=(0,je.H8)(Bn,ft);return ue.createElement(we.Z,(0,te.Z)({},ln,Ln,{title:yn,active:ot,data:en.data,key:Bn,isStart:Wn,isEnd:gn}))}))}):ue.createElement(we.Z,(0,te.Z)({domRef:He,className:be,style:ve},ut,{active:ot}))}),Ee=ke;function Ge(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],be=Me.length,ve=He.length;if(Math.abs(be-ve)!==1)return{add:!1,key:null};function Ie($e,We){var Je=new Map;$e.forEach(function(ot){Je.set(ot,!0)});var ct=We.filter(function(ot){return!Je.has(ot)});return ct.length===1?ct[0]:null}return be<ve?{add:!0,key:Ie(Me,He)}:{add:!1,key:Ie(He,Me)}}function Ke(Me,He,be){var ve=Me.findIndex(function(Je){return Je.key===be}),Ie=Me[ve+1],$e=He.findIndex(function(Je){return Je.key===be});if(Ie){var We=He.findIndex(function(Je){return Je.key===Ie.key});return He.slice($e+1,We)}return He.slice($e+1)}var Ve=["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"],it={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Le=function(){},Ue="RC_TREE_MOTION_".concat(Math.random()),tt={key:Ue},nt={key:Ue,level:0,index:0,pos:"0",node:tt,nodes:[tt]},et={parent:null,children:[],pos:nt.pos,data:tt,title:null,key:Ue,isStart:[],isEnd:[]};function Ze(Me,He,be,ve){return He===!1||!be?Me:Me.slice(0,Math.ceil(be/ve)+1)}function Ye(Me){var He=Me.key,be=Me.pos;return(0,je.km)(He,be)}function Xe(Me){for(var He=String(Me.data.key),be=Me;be.parent;)be=be.parent,He="".concat(be.data.key," > ").concat(He);return He}var st=ue.forwardRef(function(Me,He){var be=Me.prefixCls,ve=Me.data,Ie=Me.selectable,$e=Me.checkable,We=Me.expandedKeys,Je=Me.selectedKeys,ct=Me.checkedKeys,ot=Me.loadedKeys,ft=Me.loadingKeys,ut=Me.halfCheckedKeys,lt=Me.keyEntities,At=Me.disabled,yt=Me.dragging,Rt=Me.dragOverNodeKey,Pt=Me.dropPosition,Tt=Me.motion,kt=Me.height,Dt=Me.itemHeight,gt=Me.virtual,It=Me.scrollWidth,Vt=Me.focusable,rn=Me.activeItem,wt=Me.focused,Ct=Me.tabIndex,Zt=Me.onKeyDown,en=Me.onFocus,ln=Me.onBlur,yn=Me.onActiveChange,Bn=Me.onListChangeStart,Wn=Me.onListChangeEnd,gn=(0,Ae.Z)(Me,Ve),Ln=ue.useRef(null),pn=ue.useRef(null);ue.useImperativeHandle(He,function(){return{scrollTo:function(Wt){Ln.current.scrollTo(Wt)},getIndentWidth:function(){return pn.current.offsetWidth}}});var In=ue.useState(We),Gt=(0,xe.Z)(In,2),Ut=Gt[0],Lt=Gt[1],sn=ue.useState(ve),un=(0,xe.Z)(sn,2),Cn=un[0],Tn=un[1],jn=ue.useState(ve),hn=(0,xe.Z)(jn,2),Mn=hn[0],_n=hn[1],ur=ue.useState([]),tr=(0,xe.Z)(ur,2),cn=tr[0],tn=tr[1],Hn=ue.useState(null),Gn=(0,xe.Z)(Hn,2),Mt=Gn[0],Kt=Gn[1],St=ue.useRef(ve);St.current=ve;function Nt(){var bt=St.current;Tn(bt),_n(bt),tn([]),Kt(null),Wn()}(0,Ne.Z)(function(){Lt(We);var bt=Ge(Ut,We);if(bt.key!==null)if(bt.add){var Wt=Cn.findIndex(function(Xt){var En=Xt.key;return En===bt.key}),Ft=Ze(Ke(Cn,ve,bt.key),gt,kt,Dt),qt=Cn.slice();qt.splice(Wt+1,0,et),_n(qt),tn(Ft),Kt("show")}else{var _t=ve.findIndex(function(Xt){var En=Xt.key;return En===bt.key}),$t=Ze(Ke(ve,Cn,bt.key),gt,kt,Dt),Ht=ve.slice();Ht.splice(_t+1,0,et),_n(Ht),tn($t),Kt("hide")}else Cn!==ve&&(Tn(ve),_n(ve))},[We,ve]),ue.useEffect(function(){yt||Nt()},[yt]);var Et=Tt?Mn:ve,zt={expandedKeys:We,selectedKeys:Je,loadedKeys:ot,loadingKeys:ft,checkedKeys:ct,halfCheckedKeys:ut,dragOverNodeKey:Rt,dropPosition:Pt,keyEntities:lt};return ue.createElement(ue.Fragment,null,wt&&rn&&ue.createElement("span",{style:it,"aria-live":"assertive"},Xe(rn)),ue.createElement("div",null,ue.createElement("input",{style:it,disabled:Vt===!1||At,tabIndex:Vt!==!1?Ct:null,onKeyDown:Zt,onFocus:en,onBlur:ln,value:"",onChange:Le,"aria-label":"for screen reader"})),ue.createElement("div",{className:"".concat(be,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ue.createElement("div",{className:"".concat(be,"-indent")},ue.createElement("div",{ref:pn,className:"".concat(be,"-indent-unit")}))),ue.createElement(Be.Z,(0,te.Z)({},gn,{data:Et,itemKey:Ye,height:kt,fullHeight:!1,virtual:gt,itemHeight:Dt,scrollWidth:It,prefixCls:"".concat(be,"-list"),ref:Ln,role:"tree",onVisibleChange:function(Wt){Wt.every(function(Ft){return Ye(Ft)!==Ue})&&Nt()}}),function(bt){var Wt=bt.pos,Ft=Object.assign({},(me(bt.data),bt.data)),qt=bt.title,_t=bt.key,$t=bt.isStart,Ht=bt.isEnd,Xt=(0,je.km)(_t,Wt);delete Ft.key,delete Ft.children;var En=(0,je.H8)(Xt,zt);return ue.createElement(Ee,(0,te.Z)({},Ft,En,{title:qt,active:!!rn&&_t===rn.key,pos:Wt,data:bt.data,isStart:$t,isEnd:Ht,motion:Tt,motionNodes:_t===Ue?cn:null,motionType:Mt,onMotionStart:Bn,onMotionEnd:Nt,treeNodeRequiredProps:zt,onMouseMove:function(){yn(null)}}))}))}),Qe=st,ht=Te(82661),at=Te(34643),qe=Te(65065),_e=10,Re=function(Me){(0,re.Z)(be,Me);var He=(0,oe.Z)(be);function be(){var ve;(0,ye.Z)(this,be);for(var Ie=arguments.length,$e=new Array(Ie),We=0;We<Ie;We++)$e[We]=arguments[We];return ve=He.call.apply(He,[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,je.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,ct){var ot=ve.state,ft=ot.expandedKeys,ut=ot.keyEntities,lt=ve.props.onDragStart,At=ct.eventKey;ve.dragNodeProps=ct,ve.dragStartMousePosition={x:Je.clientX,y:Je.clientY};var yt=(0,ht._5)(ft,At);ve.setState({draggingNodeKey:At,dragChildrenKeys:(0,ht.wA)(At,ut),indent:ve.listRef.current.getIndentWidth()}),ve.setExpandedKeys(yt),window.addEventListener("dragend",ve.onWindowDragEnd),lt==null||lt({event:Je,node:(0,je.F)(ct)})}),(0,ee.Z)((0,E.Z)(ve),"onNodeDragEnter",function(Je,ct){var ot=ve.state,ft=ot.expandedKeys,ut=ot.keyEntities,lt=ot.dragChildrenKeys,At=ot.flattenNodes,yt=ot.indent,Rt=ve.props,Pt=Rt.onDragEnter,Tt=Rt.onExpand,kt=Rt.allowDrop,Dt=Rt.direction,gt=ct.pos,It=ct.eventKey;if(ve.currentMouseOverDroppableNodeKey!==It&&(ve.currentMouseOverDroppableNodeKey=It),!ve.dragNodeProps){ve.resetDragState();return}var Vt=(0,ht.OM)(Je,ve.dragNodeProps,ct,yt,ve.dragStartMousePosition,kt,At,ut,ft,Dt),rn=Vt.dropPosition,wt=Vt.dropLevelOffset,Ct=Vt.dropTargetKey,Zt=Vt.dropContainerKey,en=Vt.dropTargetPos,ln=Vt.dropAllowed,yn=Vt.dragOverNodeKey;if(lt.includes(Ct)||!ln){ve.resetDragState();return}if(ve.delayedDragEnterLogic||(ve.delayedDragEnterLogic={}),Object.keys(ve.delayedDragEnterLogic).forEach(function(Bn){clearTimeout(ve.delayedDragEnterLogic[Bn])}),ve.dragNodeProps.eventKey!==ct.eventKey&&(Je.persist(),ve.delayedDragEnterLogic[gt]=window.setTimeout(function(){if(ve.state.draggingNodeKey!==null){var Bn=(0,Pe.Z)(ft),Wn=(0,qe.Z)(ut,ct.eventKey);Wn&&(Wn.children||[]).length&&(Bn=(0,ht.L0)(ft,ct.eventKey)),ve.props.hasOwnProperty("expandedKeys")||ve.setExpandedKeys(Bn),Tt==null||Tt(Bn,{node:(0,je.F)(ct),expanded:!0,nativeEvent:Je.nativeEvent})}},800)),ve.dragNodeProps.eventKey===Ct&&wt===0){ve.resetDragState();return}ve.setState({dragOverNodeKey:yn,dropPosition:rn,dropLevelOffset:wt,dropTargetKey:Ct,dropContainerKey:Zt,dropTargetPos:en,dropAllowed:ln}),Pt==null||Pt({event:Je,node:(0,je.F)(ct),expandedKeys:ft})}),(0,ee.Z)((0,E.Z)(ve),"onNodeDragOver",function(Je,ct){var ot=ve.state,ft=ot.dragChildrenKeys,ut=ot.flattenNodes,lt=ot.keyEntities,At=ot.expandedKeys,yt=ot.indent,Rt=ve.props,Pt=Rt.onDragOver,Tt=Rt.allowDrop,kt=Rt.direction;if(ve.dragNodeProps){var Dt=(0,ht.OM)(Je,ve.dragNodeProps,ct,yt,ve.dragStartMousePosition,Tt,ut,lt,At,kt),gt=Dt.dropPosition,It=Dt.dropLevelOffset,Vt=Dt.dropTargetKey,rn=Dt.dropContainerKey,wt=Dt.dropTargetPos,Ct=Dt.dropAllowed,Zt=Dt.dragOverNodeKey;ft.includes(Vt)||!Ct||(ve.dragNodeProps.eventKey===Vt&&It===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():gt===ve.state.dropPosition&&It===ve.state.dropLevelOffset&&Vt===ve.state.dropTargetKey&&rn===ve.state.dropContainerKey&&wt===ve.state.dropTargetPos&&Ct===ve.state.dropAllowed&&Zt===ve.state.dragOverNodeKey||ve.setState({dropPosition:gt,dropLevelOffset:It,dropTargetKey:Vt,dropContainerKey:rn,dropTargetPos:wt,dropAllowed:Ct,dragOverNodeKey:Zt}),Pt==null||Pt({event:Je,node:(0,je.F)(ct)}))}}),(0,ee.Z)((0,E.Z)(ve),"onNodeDragLeave",function(Je,ct){ve.currentMouseOverDroppableNodeKey===ct.eventKey&&!Je.currentTarget.contains(Je.relatedTarget)&&(ve.resetDragState(),ve.currentMouseOverDroppableNodeKey=null);var ot=ve.props.onDragLeave;ot==null||ot({event:Je,node:(0,je.F)(ct)})}),(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,ct){var ot=ve.props.onDragEnd;ve.setState({dragOverNodeKey:null}),ve.cleanDragState(),ot==null||ot({event:Je,node:(0,je.F)(ct)}),ve.dragNodeProps=null,window.removeEventListener("dragend",ve.onWindowDragEnd)}),(0,ee.Z)((0,E.Z)(ve),"onNodeDrop",function(Je,ct){var ot,ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ut=ve.state,lt=ut.dragChildrenKeys,At=ut.dropPosition,yt=ut.dropTargetKey,Rt=ut.dropTargetPos,Pt=ut.dropAllowed;if(Pt){var Tt=ve.props.onDrop;if(ve.setState({dragOverNodeKey:null}),ve.cleanDragState(),yt!==null){var kt=(0,y.Z)((0,y.Z)({},(0,je.H8)(yt,ve.getTreeNodeRequiredProps())),{},{active:((ot=ve.getActiveItem())===null||ot===void 0?void 0:ot.key)===yt,data:(0,qe.Z)(ve.state.keyEntities,yt).node}),Dt=lt.includes(yt);(0,se.ZP)(!Dt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var gt=(0,ht.yx)(Rt),It={event:Je,node:(0,je.F)(kt),dragNode:ve.dragNodeProps?(0,je.F)(ve.dragNodeProps):null,dragNodesKeys:[ve.dragNodeProps.eventKey].concat(lt),dropToGap:At!==0,dropPosition:At+Number(gt[gt.length-1])};ft||Tt==null||Tt(It),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,ct){var ot=ve.state,ft=ot.expandedKeys,ut=ot.flattenNodes,lt=ct.expanded,At=ct.key,yt=ct.isLeaf;if(!(yt||Je.shiftKey||Je.metaKey||Je.ctrlKey)){var Rt=ut.filter(function(Tt){return Tt.key===At})[0],Pt=(0,je.F)((0,y.Z)((0,y.Z)({},(0,je.H8)(At,ve.getTreeNodeRequiredProps())),{},{data:Rt.data}));ve.setExpandedKeys(lt?(0,ht._5)(ft,At):(0,ht.L0)(ft,At)),ve.onNodeExpand(Je,Pt)}}),(0,ee.Z)((0,E.Z)(ve),"onNodeClick",function(Je,ct){var ot=ve.props,ft=ot.onClick,ut=ot.expandAction;ut==="click"&&ve.triggerExpandActionExpand(Je,ct),ft==null||ft(Je,ct)}),(0,ee.Z)((0,E.Z)(ve),"onNodeDoubleClick",function(Je,ct){var ot=ve.props,ft=ot.onDoubleClick,ut=ot.expandAction;ut==="doubleClick"&&ve.triggerExpandActionExpand(Je,ct),ft==null||ft(Je,ct)}),(0,ee.Z)((0,E.Z)(ve),"onNodeSelect",function(Je,ct){var ot=ve.state.selectedKeys,ft=ve.state,ut=ft.keyEntities,lt=ft.fieldNames,At=ve.props,yt=At.onSelect,Rt=At.multiple,Pt=ct.selected,Tt=ct[lt.key],kt=!Pt;kt?Rt?ot=(0,ht.L0)(ot,Tt):ot=[Tt]:ot=(0,ht._5)(ot,Tt);var Dt=ot.map(function(gt){var It=(0,qe.Z)(ut,gt);return It?It.node:null}).filter(Boolean);ve.setUncontrolledState({selectedKeys:ot}),yt==null||yt(ot,{event:"select",selected:kt,node:ct,selectedNodes:Dt,nativeEvent:Je.nativeEvent})}),(0,ee.Z)((0,E.Z)(ve),"onNodeCheck",function(Je,ct,ot){var ft=ve.state,ut=ft.keyEntities,lt=ft.checkedKeys,At=ft.halfCheckedKeys,yt=ve.props,Rt=yt.checkStrictly,Pt=yt.onCheck,Tt=ct.key,kt,Dt={event:"check",node:ct,checked:ot,nativeEvent:Je.nativeEvent};if(Rt){var gt=ot?(0,ht.L0)(lt,Tt):(0,ht._5)(lt,Tt),It=(0,ht._5)(At,Tt);kt={checked:gt,halfChecked:It},Dt.checkedNodes=gt.map(function(en){return(0,qe.Z)(ut,en)}).filter(Boolean).map(function(en){return en.node}),ve.setUncontrolledState({checkedKeys:gt})}else{var Vt=(0,at.S)([].concat((0,Pe.Z)(lt),[Tt]),!0,ut),rn=Vt.checkedKeys,wt=Vt.halfCheckedKeys;if(!ot){var Ct=new Set(rn);Ct.delete(Tt);var Zt=(0,at.S)(Array.from(Ct),{checked:!1,halfCheckedKeys:wt},ut);rn=Zt.checkedKeys,wt=Zt.halfCheckedKeys}kt=rn,Dt.checkedNodes=[],Dt.checkedNodesPositions=[],Dt.halfCheckedKeys=wt,rn.forEach(function(en){var ln=(0,qe.Z)(ut,en);if(ln){var yn=ln.node,Bn=ln.pos;Dt.checkedNodes.push(yn),Dt.checkedNodesPositions.push({node:yn,pos:Bn})}}),ve.setUncontrolledState({checkedKeys:rn},!1,{halfCheckedKeys:wt})}Pt==null||Pt(kt,Dt)}),(0,ee.Z)((0,E.Z)(ve),"onNodeLoad",function(Je){var ct,ot=Je.key,ft=ve.state.keyEntities,ut=(0,qe.Z)(ft,ot);if(!(ut!=null&&(ct=ut.children)!==null&&ct!==void 0&&ct.length)){var lt=new Promise(function(At,yt){ve.setState(function(Rt){var Pt=Rt.loadedKeys,Tt=Pt===void 0?[]:Pt,kt=Rt.loadingKeys,Dt=kt===void 0?[]:kt,gt=ve.props,It=gt.loadData,Vt=gt.onLoad;if(!It||Tt.includes(ot)||Dt.includes(ot))return null;var rn=It(Je);return rn.then(function(){var wt=ve.state.loadedKeys,Ct=(0,ht.L0)(wt,ot);Vt==null||Vt(Ct,{event:"load",node:Je}),ve.setUncontrolledState({loadedKeys:Ct}),ve.setState(function(Zt){return{loadingKeys:(0,ht._5)(Zt.loadingKeys,ot)}}),At()}).catch(function(wt){if(ve.setState(function(Zt){return{loadingKeys:(0,ht._5)(Zt.loadingKeys,ot)}}),ve.loadingRetryTimes[ot]=(ve.loadingRetryTimes[ot]||0)+1,ve.loadingRetryTimes[ot]>=_e){var Ct=ve.state.loadedKeys;(0,se.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ve.setUncontrolledState({loadedKeys:(0,ht.L0)(Ct,ot)}),At()}yt(wt)}),{loadingKeys:(0,ht.L0)(Dt,ot)}})});return lt.catch(function(){}),lt}}),(0,ee.Z)((0,E.Z)(ve),"onNodeMouseEnter",function(Je,ct){var ot=ve.props.onMouseEnter;ot==null||ot({event:Je,node:ct})}),(0,ee.Z)((0,E.Z)(ve),"onNodeMouseLeave",function(Je,ct){var ot=ve.props.onMouseLeave;ot==null||ot({event:Je,node:ct})}),(0,ee.Z)((0,E.Z)(ve),"onNodeContextMenu",function(Je,ct){var ot=ve.props.onRightClick;ot&&(Je.preventDefault(),ot({event:Je,node:ct}))}),(0,ee.Z)((0,E.Z)(ve),"onFocus",function(){var Je=ve.props.onFocus;ve.setState({focused:!0});for(var ct=arguments.length,ot=new Array(ct),ft=0;ft<ct;ft++)ot[ft]=arguments[ft];Je==null||Je.apply(void 0,ot)}),(0,ee.Z)((0,E.Z)(ve),"onBlur",function(){var Je=ve.props.onBlur;ve.setState({focused:!1}),ve.onActiveChange(null);for(var ct=arguments.length,ot=new Array(ct),ft=0;ft<ct;ft++)ot[ft]=arguments[ft];Je==null||Je.apply(void 0,ot)}),(0,ee.Z)((0,E.Z)(ve),"getTreeNodeRequiredProps",function(){var Je=ve.state,ct=Je.expandedKeys,ot=Je.selectedKeys,ft=Je.loadedKeys,ut=Je.loadingKeys,lt=Je.checkedKeys,At=Je.halfCheckedKeys,yt=Je.dragOverNodeKey,Rt=Je.dropPosition,Pt=Je.keyEntities;return{expandedKeys:ct||[],selectedKeys:ot||[],loadedKeys:ft||[],loadingKeys:ut||[],checkedKeys:lt||[],halfCheckedKeys:At||[],dragOverNodeKey:yt,dropPosition:Rt,keyEntities:Pt}}),(0,ee.Z)((0,E.Z)(ve),"setExpandedKeys",function(Je){var ct=ve.state,ot=ct.treeData,ft=ct.fieldNames,ut=(0,je.oH)(ot,Je,ft);ve.setUncontrolledState({expandedKeys:Je,flattenNodes:ut},!0)}),(0,ee.Z)((0,E.Z)(ve),"onNodeExpand",function(Je,ct){var ot=ve.state.expandedKeys,ft=ve.state,ut=ft.listChanging,lt=ft.fieldNames,At=ve.props,yt=At.onExpand,Rt=At.loadData,Pt=ct.expanded,Tt=ct[lt.key];if(!ut){var kt=ot.includes(Tt),Dt=!Pt;if((0,se.ZP)(Pt&&kt||!Pt&&!kt,"Expand state not sync with index check"),ot=Dt?(0,ht.L0)(ot,Tt):(0,ht._5)(ot,Tt),ve.setExpandedKeys(ot),yt==null||yt(ot,{node:ct,expanded:Dt,nativeEvent:Je.nativeEvent}),Dt&&Rt){var gt=ve.onNodeLoad(ct);gt&&gt.then(function(){var It=(0,je.oH)(ve.state.treeData,ot,lt);ve.setUncontrolledState({flattenNodes:It})}).catch(function(){var It=ve.state.expandedKeys,Vt=(0,ht._5)(It,Tt);ve.setExpandedKeys(Vt)})}}}),(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 ct=ve.state.activeKey,ot=ve.props,ft=ot.onActiveChange,ut=ot.itemScrollOffset,lt=ut===void 0?0:ut;ct!==Je&&(ve.setState({activeKey:Je}),Je!==null&&ve.scrollTo({key:Je,offset:lt}),ft==null||ft(Je))}),(0,ee.Z)((0,E.Z)(ve),"getActiveItem",function(){var Je=ve.state,ct=Je.activeKey,ot=Je.flattenNodes;return ct===null?null:ot.find(function(ft){var ut=ft.key;return ut===ct})||null}),(0,ee.Z)((0,E.Z)(ve),"offsetActiveKey",function(Je){var ct=ve.state,ot=ct.flattenNodes,ft=ct.activeKey,ut=ot.findIndex(function(yt){var Rt=yt.key;return Rt===ft});ut===-1&&Je<0&&(ut=ot.length),ut=(ut+Je+ot.length)%ot.length;var lt=ot[ut];if(lt){var At=lt.key;ve.onActiveChange(At)}else ve.onActiveChange(null)}),(0,ee.Z)((0,E.Z)(ve),"onKeyDown",function(Je){var ct=ve.state,ot=ct.activeKey,ft=ct.expandedKeys,ut=ct.checkedKeys,lt=ct.fieldNames,At=ve.props,yt=At.onKeyDown,Rt=At.checkable,Pt=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 Tt=ve.getActiveItem();if(Tt&&Tt.data){var kt=ve.getTreeNodeRequiredProps(),Dt=Tt.data.isLeaf===!1||!!(Tt.data[lt.children]||[]).length,gt=(0,je.F)((0,y.Z)((0,y.Z)({},(0,je.H8)(ot,kt)),{},{data:Tt.data,active:!0}));switch(Je.which){case ae.Z.LEFT:{Dt&&ft.includes(ot)?ve.onNodeExpand({},gt):Tt.parent&&ve.onActiveChange(Tt.parent.key),Je.preventDefault();break}case ae.Z.RIGHT:{Dt&&!ft.includes(ot)?ve.onNodeExpand({},gt):Tt.children&&Tt.children.length&&ve.onActiveChange(Tt.children[0].key),Je.preventDefault();break}case ae.Z.ENTER:case ae.Z.SPACE:{Rt&&!gt.disabled&&gt.checkable!==!1&&!gt.disableCheckbox?ve.onNodeCheck({},gt,!ut.includes(ot)):!Rt&&Pt&&!gt.disabled&&gt.selectable!==!1&&ve.onNodeSelect({},gt);break}}}yt==null||yt(Je)}),(0,ee.Z)((0,E.Z)(ve),"setUncontrolledState",function(Je){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ve.destroyed){var ft=!1,ut=!0,lt={};Object.keys(Je).forEach(function(At){if(ve.props.hasOwnProperty(At)){ut=!1;return}ft=!0,lt[At]=Je[At]}),ft&&(!ct||ut)&&ve.setState((0,y.Z)((0,y.Z)({},lt),ot))}}),(0,ee.Z)((0,E.Z)(ve),"scrollTo",function(Je){ve.listRef.current.scrollTo(Je)}),ve}return(0,z.Z)(be,[{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,We=Ie.itemScrollOffset,Je=We===void 0?0:We;$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,We=Ie.flattenNodes,Je=Ie.keyEntities,ct=Ie.draggingNodeKey,ot=Ie.activeKey,ft=Ie.dropLevelOffset,ut=Ie.dropContainerKey,lt=Ie.dropTargetKey,At=Ie.dropPosition,yt=Ie.dragOverNodeKey,Rt=Ie.indent,Pt=this.props,Tt=Pt.prefixCls,kt=Pt.className,Dt=Pt.style,gt=Pt.showLine,It=Pt.focusable,Vt=Pt.tabIndex,rn=Vt===void 0?0:Vt,wt=Pt.selectable,Ct=Pt.showIcon,Zt=Pt.icon,en=Pt.switcherIcon,ln=Pt.draggable,yn=Pt.checkable,Bn=Pt.checkStrictly,Wn=Pt.disabled,gn=Pt.motion,Ln=Pt.loadData,pn=Pt.filterTreeNode,In=Pt.height,Gt=Pt.itemHeight,Ut=Pt.scrollWidth,Lt=Pt.virtual,sn=Pt.titleRender,un=Pt.dropIndicatorRender,Cn=Pt.onContextMenu,Tn=Pt.onScroll,jn=Pt.direction,hn=Pt.rootClassName,Mn=Pt.rootStyle,_n=(0,ie.Z)(this.props,{aria:!0,data:!0}),ur;ln&&((0,Ot.Z)(ln)==="object"?ur=ln:typeof ln=="function"?ur={nodeDraggable:ln}:ur={});var tr={prefixCls:Tt,selectable:wt,showIcon:Ct,icon:Zt,switcherIcon:en,draggable:ur,draggingNodeKey:ct,checkable:yn,checkStrictly:Bn,disabled:Wn,keyEntities:Je,dropLevelOffset:ft,dropContainerKey:ut,dropTargetKey:lt,dropPosition:At,dragOverNodeKey:yt,indent:Rt,direction:jn,dropIndicatorRender:un,loadData:Ln,filterTreeNode:pn,titleRender:sn,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:tr},ue.createElement("div",{className:x()(Tt,kt,hn,(0,ee.Z)((0,ee.Z)((0,ee.Z)({},"".concat(Tt,"-show-line"),gt),"".concat(Tt,"-focused"),$e),"".concat(Tt,"-active-focused"),ot!==null)),style:Mn},ue.createElement(Qe,(0,te.Z)({ref:this.listRef,prefixCls:Tt,style:Dt,data:We,disabled:Wn,selectable:wt,checkable:!!yn,motion:gn,dragging:ct!==null,height:In,itemHeight:Gt,virtual:Lt,focusable:It,focused:$e,tabIndex:rn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Cn,onScroll:Tn,scrollWidth:Ut},this.getTreeNodeRequiredProps(),_n))))}}],[{key:"getDerivedStateFromProps",value:function(Ie,$e){var We=$e.prevProps,Je={prevProps:Ie};function ct(rn){return!We&&Ie.hasOwnProperty(rn)||We&&We[rn]!==Ie[rn]}var ot,ft=$e.fieldNames;if(ct("fieldNames")&&(ft=(0,je.w$)(Ie.fieldNames),Je.fieldNames=ft),ct("treeData")?ot=Ie.treeData:ct("children")&&((0,se.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ot=(0,je.zn)(Ie.children)),ot){Je.treeData=ot;var ut=(0,je.I8)(ot,{fieldNames:ft});Je.keyEntities=(0,y.Z)((0,ee.Z)({},Ue,nt),ut.keyEntities)}var lt=Je.keyEntities||$e.keyEntities;if(ct("expandedKeys")||We&&ct("autoExpandParent"))Je.expandedKeys=Ie.autoExpandParent||!We&&Ie.defaultExpandParent?(0,ht.r7)(Ie.expandedKeys,lt):Ie.expandedKeys;else if(!We&&Ie.defaultExpandAll){var At=(0,y.Z)({},lt);delete At[Ue];var yt=[];Object.keys(At).forEach(function(rn){var wt=At[rn];wt.children&&wt.children.length&&yt.push(wt.key)}),Je.expandedKeys=yt}else!We&&Ie.defaultExpandedKeys&&(Je.expandedKeys=Ie.autoExpandParent||Ie.defaultExpandParent?(0,ht.r7)(Ie.defaultExpandedKeys,lt):Ie.defaultExpandedKeys);if(Je.expandedKeys||delete Je.expandedKeys,ot||Je.expandedKeys){var Rt=(0,je.oH)(ot||$e.treeData,Je.expandedKeys||$e.expandedKeys,ft);Je.flattenNodes=Rt}if(Ie.selectable&&(ct("selectedKeys")?Je.selectedKeys=(0,ht.BT)(Ie.selectedKeys,Ie):!We&&Ie.defaultSelectedKeys&&(Je.selectedKeys=(0,ht.BT)(Ie.defaultSelectedKeys,Ie))),Ie.checkable){var Pt;if(ct("checkedKeys")?Pt=(0,ht.E6)(Ie.checkedKeys)||{}:!We&&Ie.defaultCheckedKeys?Pt=(0,ht.E6)(Ie.defaultCheckedKeys)||{}:ot&&(Pt=(0,ht.E6)(Ie.checkedKeys)||{checkedKeys:$e.checkedKeys,halfCheckedKeys:$e.halfCheckedKeys}),Pt){var Tt=Pt,kt=Tt.checkedKeys,Dt=kt===void 0?[]:kt,gt=Tt.halfCheckedKeys,It=gt===void 0?[]:gt;if(!Ie.checkStrictly){var Vt=(0,at.S)(Dt,!0,lt);Dt=Vt.checkedKeys,It=Vt.halfCheckedKeys}Je.checkedKeys=Dt,Je.halfCheckedKeys=It}}return ct("loadedKeys")&&(Je.loadedKeys=Ie.loadedKeys),Je}}]),be}(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:ge,allowDrop:function(){return!0},expandAction:!1}),(0,ee.Z)(Re,"TreeNode",we.Z);var ne=Re,fe=ne},82661:function(wn,Yt,Te){"use strict";Te.d(Yt,{BT:function(){return ue},E6:function(){return ge},L0:function(){return ee},OM:function(){return se},_5:function(){return oe},r7:function(){return me},wA:function(){return x},yx:function(){return de}});var te=Te(94480),Ot=Te(76190),y=Te(48736),Pe=Te(59301),ye=Te(639),z=Te(65065),E=Te(34061),re=null;function oe(xe,Ae){if(!xe)return[];var Ne=xe.slice(),Be=Ne.indexOf(Ae);return Be>=0&&Ne.splice(Be,1),Ne}function ee(xe,Ae){var Ne=(xe||[]).slice();return Ne.indexOf(Ae)===-1&&Ne.push(Ae),Ne}function de(xe){return xe.split("-")}function x(xe,Ae){var Ne=[],Be=(0,z.Z)(Ae,xe);function De(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];we.forEach(function(Ce){var Oe=Ce.key,je=Ce.children;Ne.push(Oe),De(je)})}return De(Be.children),Ne}function ae(xe){if(xe.parent){var Ae=de(xe.pos);return Number(Ae[Ae.length-1])===xe.parent.children.length-1}return!1}function ie(xe){var Ae=de(xe.pos);return Number(Ae[Ae.length-1])===0}function se(xe,Ae,Ne,Be,De,we,Ce,Oe,je,Fe){var ke,Ee=xe.clientX,Ge=xe.clientY,Ke=xe.target.getBoundingClientRect(),Ve=Ke.top,it=Ke.height,Le=(Fe==="rtl"?-1:1)*(((De==null?void 0:De.x)||0)-Ee),Ue=(Le-12)/Be,tt=je.filter(function(fe){var Me;return(Me=Oe[fe])===null||Me===void 0||(Me=Me.children)===null||Me===void 0?void 0:Me.length}),nt=(0,z.Z)(Oe,Ne.eventKey);if(Ge<Ve+it/2){var et=Ce.findIndex(function(fe){return fe.key===nt.key}),Ze=et<=0?0:et-1,Ye=Ce[Ze].key;nt=(0,z.Z)(Oe,Ye)}var Xe=nt.key,st=nt,Qe=nt.key,ht=0,at=0;if(!tt.includes(Xe))for(var qe=0;qe<Ue&&ae(nt);qe+=1)nt=nt.parent,at+=1;var _e=Ae.data,Re=nt.node,ne=!0;return ie(nt)&&nt.level===0&&Ge<Ve+it/2&&we({dragNode:_e,dropNode:Re,dropPosition:-1})&&nt.key===Ne.eventKey?ht=-1:(st.children||[]).length&&tt.includes(Qe)?we({dragNode:_e,dropNode:Re,dropPosition:0})?ht=0:ne=!1:at===0?Ue>-1.5?we({dragNode:_e,dropNode:Re,dropPosition:1})?ht=1:ne=!1:we({dragNode:_e,dropNode:Re,dropPosition:0})?ht=0:we({dragNode:_e,dropNode:Re,dropPosition:1})?ht=1:ne=!1:we({dragNode:_e,dropNode:Re,dropPosition:1})?ht=1:ne=!1,{dropPosition:ht,dropLevelOffset:at,dropTargetKey:nt.key,dropTargetPos:nt.pos,dragOverNodeKey:Qe,dropContainerKey:ht===0?null:((ke=nt.parent)===null||ke===void 0?void 0:ke.key)||null,dropAllowed:ne}}function ue(xe,Ae){if(xe){var Ne=Ae.multiple;return Ne?xe.slice():xe.length?[xe[0]]:xe}}var pe=function(Ae){return Ae};function he(xe,Ae){if(!xe)return[];var Ne=Ae||{},Be=Ne.processProps,De=Be===void 0?pe:Be,we=Array.isArray(xe)?xe:[xe];return we.map(function(Ce){var Oe=Ce.children,je=_objectWithoutProperties(Ce,re),Fe=he(Oe,Ae);return React.createElement(TreeNode,_extends({key:je.key},De(je)),Fe)})}function ge(xe){if(!xe)return null;var Ae;if(Array.isArray(xe))Ae={checkedKeys:xe,halfCheckedKeys:void 0};else if((0,Ot.Z)(xe)==="object")Ae={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 Ae}function me(xe,Ae){var Ne=new Set;function Be(De){if(!Ne.has(De)){var we=(0,z.Z)(Ae,De);if(we){Ne.add(De);var Ce=we.parent,Oe=we.node;Oe.disabled||Ce&&Be(Ce.key)}}}return(xe||[]).forEach(function(De){Be(De)}),(0,te.Z)(Ne)}},34643:function(wn,Yt,Te){"use strict";Te.d(Yt,{S:function(){return E}});var te=Te(48736),Ot=Te(65065);function y(re,oe){var ee=new Set;return re.forEach(function(de){oe.has(de)||ee.add(de)}),ee}function Pe(re){var oe=re||{},ee=oe.disabled,de=oe.disableCheckbox,x=oe.checkable;return!!(ee||de)||x===!1}function ye(re,oe,ee,de){for(var x=new Set(re),ae=new Set,ie=0;ie<=ee;ie+=1){var se=oe.get(ie)||new Set;se.forEach(function(ge){var me=ge.key,xe=ge.node,Ae=ge.children,Ne=Ae===void 0?[]:Ae;x.has(me)&&!de(xe)&&Ne.filter(function(Be){return!de(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(ge){var me=ge.parent,xe=ge.node;if(!(de(xe)||!ge.parent||ue.has(ge.parent.key))){if(de(ge.parent.node)){ue.add(me.key);return}var Ae=!0,Ne=!1;(me.children||[]).filter(function(Be){return!de(Be.node)}).forEach(function(Be){var De=Be.key,we=x.has(De);Ae&&!we&&(Ae=!1),!Ne&&(we||ae.has(De))&&(Ne=!0)}),Ae&&x.add(me.key),Ne&&ae.add(me.key),ue.add(me.key)}})}return{checkedKeys:Array.from(x),halfCheckedKeys:Array.from(y(ae,x))}}function z(re,oe,ee,de,x){for(var ae=new Set(re),ie=new Set(oe),se=0;se<=de;se+=1){var ue=ee.get(se)||new Set;ue.forEach(function(me){var xe=me.key,Ae=me.node,Ne=me.children,Be=Ne===void 0?[]:Ne;!ae.has(xe)&&!ie.has(xe)&&!x(Ae)&&Be.filter(function(De){return!x(De.node)}).forEach(function(De){ae.delete(De.key)})})}ie=new Set;for(var pe=new Set,he=de;he>=0;he-=1){var ge=ee.get(he)||new Set;ge.forEach(function(me){var xe=me.parent,Ae=me.node;if(!(x(Ae)||!me.parent||pe.has(me.parent.key))){if(x(me.parent.node)){pe.add(xe.key);return}var Ne=!0,Be=!1;(xe.children||[]).filter(function(De){return!x(De.node)}).forEach(function(De){var we=De.key,Ce=ae.has(we);Ne&&!Ce&&(Ne=!1),!Be&&(Ce||ie.has(we))&&(Be=!0)}),Ne||ae.delete(xe.key),Be&&ie.add(xe.key),pe.add(xe.key)}})}return{checkedKeys:Array.from(ae),halfCheckedKeys:Array.from(y(ie,ae))}}function E(re,oe,ee,de){var x=[],ae;de?ae=de:ae=Pe;var ie=new Set(re.filter(function(he){var ge=!!(0,Ot.Z)(ee,he);return ge||x.push(he),ge})),se=new Map,ue=0;Object.keys(ee).forEach(function(he){var ge=ee[he],me=ge.level,xe=se.get(me);xe||(xe=new Set,se.set(me,xe)),xe.add(ge),ue=Math.max(ue,me)}),(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=ye(ie,se,ue,ae):pe=z(ie,oe.halfCheckedKeys,se,ue,ae),pe}},65065:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return te}});function te(Ot,y){return Ot[y]}},34061:function(wn,Yt,Te){"use strict";Te.d(Yt,{F:function(){return me},H8:function(){return ge},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),Pe=Te(75931),ye=Te(11592),z=Te(2738),E=Te(48736),re=Te(65065),oe=["children"];function ee(xe,Ae){return"".concat(xe,"-").concat(Ae)}function de(xe){return xe&&xe.type&&xe.type.isTreeNode}function x(xe,Ae){return xe!=null?xe:Ae}function ae(xe){var Ae=xe||{},Ne=Ae.title,Be=Ae._title,De=Ae.key,we=Ae.children,Ce=Ne||"title";return{title:Ce,_title:Be||[Ce],key:De||"key",children:we||"children"}}function ie(xe,Ae){var Ne=new Map;function Be(De){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(De||[]).forEach(function(Ce){var Oe=Ce[Ae.key],je=Ce[Ae.children];warning(Oe!=null,"Tree node must have a certain key: [".concat(we).concat(Oe,"]"));var Fe=String(Oe);warning(!Ne.has(Fe)||Oe===null||Oe===void 0,"Same 'key' exist in the Tree: ".concat(Fe)),Ne.set(Fe,!0),Be(je,"".concat(we).concat(Fe," > "))})}Be(xe)}function se(xe){function Ae(Ne){var Be=(0,ye.Z)(Ne);return Be.map(function(De){if(!de(De))return(0,E.ZP)(!De,"Tree/TreeNode can only accept TreeNode as children."),null;var we=De.key,Ce=De.props,Oe=Ce.children,je=(0,Pe.Z)(Ce,oe),Fe=(0,y.Z)({key:we},je),ke=Ae(Oe);return ke.length&&(Fe.children=ke),Fe}).filter(function(De){return De})}return Ae(xe)}function ue(xe,Ae,Ne){var Be=ae(Ne),De=Be._title,we=Be.key,Ce=Be.children,Oe=new Set(Ae===!0?[]:Ae),je=[];function Fe(ke){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ke.map(function(Ge,Ke){for(var Ve=ee(Ee?Ee.pos:"0",Ke),it=x(Ge[we],Ve),Le,Ue=0;Ue<De.length;Ue+=1){var tt=De[Ue];if(Ge[tt]!==void 0){Le=Ge[tt];break}}var nt=Object.assign((0,z.Z)(Ge,[].concat((0,Ot.Z)(De),[we,Ce])),{title:Le,key:it,parent:Ee,pos:Ve,children:null,data:Ge,isStart:[].concat((0,Ot.Z)(Ee?Ee.isStart:[]),[Ke===0]),isEnd:[].concat((0,Ot.Z)(Ee?Ee.isEnd:[]),[Ke===ke.length-1])});return je.push(nt),Ae===!0||Oe.has(it)?nt.children=Fe(Ge[Ce]||[],nt):nt.children=[],nt})}return Fe(xe),je}function pe(xe,Ae,Ne){var Be={};(0,te.Z)(Ne)==="object"?Be=Ne:Be={externalGetKey:Ne},Be=Be||{};var De=Be,we=De.childrenPropName,Ce=De.externalGetKey,Oe=De.fieldNames,je=ae(Oe),Fe=je.key,ke=je.children,Ee=we||ke,Ge;Ce?typeof Ce=="string"?Ge=function(it){return it[Ce]}:typeof Ce=="function"&&(Ge=function(it){return Ce(it)}):Ge=function(it,Le){return x(it[Fe],Le)};function Ke(Ve,it,Le,Ue){var tt=Ve?Ve[Ee]:xe,nt=Ve?ee(Le.pos,it):"0",et=Ve?[].concat((0,Ot.Z)(Ue),[Ve]):[];if(Ve){var Ze=Ge(Ve,nt),Ye={node:Ve,index:it,pos:nt,key:Ze,parentPos:Le.node?Le.pos:null,level:Le.level+1,nodes:et};Ae(Ye)}tt&&tt.forEach(function(Xe,st){Ke(Xe,st,{node:Ve,pos:nt,level:Le?Le.level+1:-1},et)})}Ke(null)}function he(xe){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ne=Ae.initWrapper,Be=Ae.processEntity,De=Ae.onProcessFinished,we=Ae.externalGetKey,Ce=Ae.childrenPropName,Oe=Ae.fieldNames,je=arguments.length>2?arguments[2]:void 0,Fe=we||je,ke={},Ee={},Ge={posEntities:ke,keyEntities:Ee};return Ne&&(Ge=Ne(Ge)||Ge),pe(xe,function(Ke){var Ve=Ke.node,it=Ke.index,Le=Ke.pos,Ue=Ke.key,tt=Ke.parentPos,nt=Ke.level,et=Ke.nodes,Ze={node:Ve,nodes:et,index:it,key:Ue,pos:Le,level:nt},Ye=x(Ue,Le);ke[Le]=Ze,Ee[Ye]=Ze,Ze.parent=ke[tt],Ze.parent&&(Ze.parent.children=Ze.parent.children||[],Ze.parent.children.push(Ze)),Be&&Be(Ze,Ge)},{externalGetKey:Fe,childrenPropName:Ce,fieldNames:Oe}),De&&De(Ge),Ge}function ge(xe,Ae){var Ne=Ae.expandedKeys,Be=Ae.selectedKeys,De=Ae.loadedKeys,we=Ae.loadingKeys,Ce=Ae.checkedKeys,Oe=Ae.halfCheckedKeys,je=Ae.dragOverNodeKey,Fe=Ae.dropPosition,ke=Ae.keyEntities,Ee=(0,re.Z)(ke,xe),Ge={eventKey:xe,expanded:Ne.indexOf(xe)!==-1,selected:Be.indexOf(xe)!==-1,loaded:De.indexOf(xe)!==-1,loading:we.indexOf(xe)!==-1,checked:Ce.indexOf(xe)!==-1,halfChecked:Oe.indexOf(xe)!==-1,pos:String(Ee?Ee.pos:""),dragOver:je===xe&&Fe===0,dragOverGapTop:je===xe&&Fe===-1,dragOverGapBottom:je===xe&&Fe===1};return Ge}function me(xe){var Ae=xe.data,Ne=xe.expanded,Be=xe.selected,De=xe.checked,we=xe.loaded,Ce=xe.loading,Oe=xe.halfChecked,je=xe.dragOver,Fe=xe.dragOverGapTop,ke=xe.dragOverGapBottom,Ee=xe.pos,Ge=xe.active,Ke=xe.eventKey,Ve=(0,y.Z)((0,y.Z)({},Ae),{},{expanded:Ne,selected:Be,checked:De,loaded:we,loading:Ce,halfChecked:Oe,dragOver:je,dragOverGapTop:Fe,dragOverGapBottom:ke,pos:Ee,active:Ge,key:Ke});return"props"in Ve||Object.defineProperty(Ve,"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}}),Ve}},8224:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Ot}});var te=Te(4676);function Ot(y,Pe,ye,z){var E=te.unstable_batchedUpdates?function(oe){te.unstable_batchedUpdates(ye,oe)}:ye;return y!=null&&y.addEventListener&&y.addEventListener(Pe,E,z),{remove:function(){y!=null&&y.removeEventListener&&y.removeEventListener(Pe,E,z)}}}},3465:function(wn,Yt,Te){"use strict";Te.d(Yt,{G:function(){return Pe}});var te=Te(47273),Ot=function(z){if((0,te.Z)()&&window.document.documentElement){var E=Array.isArray(z)?z:[z],re=window.document.documentElement;return E.some(function(oe){return oe in re.style})}return!1},y=function(z,E){if(!Ot(z))return!1;var re=document.createElement("div"),oe=re.style[z];return re.style[z]=E,re.style[z]!==oe};function Pe(ye,z){return!Array.isArray(ye)&&z!==void 0?y(ye,z):Ot(ye)}},48911:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return _e}});var te=Te(54476),Ot=Te(76190),y=Te(33885),Pe=Te(20068),ye=Te(42978),z=Te(75931),E=Te(92310),re=Te.n(E),oe=Te(29301),ee=Te(70425),de=Te(34280),x=Te(59301),ae=Te(4676),ie=x.forwardRef(function(Re,ne){var fe=Re.height,Me=Re.offsetY,He=Re.offsetX,be=Re.children,ve=Re.prefixCls,Ie=Re.onInnerResize,$e=Re.innerProps,We=Re.rtl,Je=Re.extra,ct={},ot={display:"flex",flexDirection:"column"};return Me!==void 0&&(ct={height:fe,position:"relative",overflow:"hidden"},ot=(0,y.Z)((0,y.Z)({},ot),{},(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({transform:"translateY(".concat(Me,"px)")},We?"marginRight":"marginLeft",-He),"position","absolute"),"left",0),"right",0),"top",0))),x.createElement("div",{style:ct},x.createElement(oe.Z,{onResize:function(ut){var lt=ut.offsetHeight;lt&&Ie&&Ie()}},x.createElement("div",(0,te.Z)({style:ot,className:re()((0,Pe.Z)({},"".concat(ve,"-holder-inner"),ve)),ref:ne},$e),be,Je)))});ie.displayName="Filler";var se=ie;function ue(Re){var ne=Re.children,fe=Re.setRef,Me=x.useCallback(function(He){fe(He)},[]);return x.cloneElement(ne,{ref:Me})}function pe(Re,ne,fe,Me,He,be,ve,Ie){var $e=Ie.getKey;return Re.slice(ne,fe+1).map(function(We,Je){var ct=ne+Je,ot=ve(We,ct,{style:{width:Me},offsetX:He}),ft=$e(We);return x.createElement(ue,{key:ft,setRef:function(lt){return be(We,lt)}},ot)})}function he(Re,ne,fe,Me){var He=fe-Re,be=ne-fe,ve=Math.min(He,be)*2;if(Me<=ve){var Ie=Math.floor(Me/2);return Me%2?fe+Ie+1:fe-Ie}return He>be?fe-(Me-be):fe+(Me-He)}function ge(Re,ne,fe){var Me=Re.length,He=ne.length,be,ve;if(Me===0&&He===0)return null;Me<He?(be=Re,ve=ne):(be=ne,ve=Re);var Ie={__EMPTY_ITEM__:!0};function $e(ut){return ut!==void 0?fe(ut):Ie}for(var We=null,Je=Math.abs(Me-He)!==1,ct=0;ct<ve.length;ct+=1){var ot=$e(be[ct]),ft=$e(ve[ct]);if(ot!==ft){We=ct,Je=Je||ot!==$e(ve[ct+1]);break}}return We===null?null:{index:We,multiple:Je}}function me(Re,ne,fe){var Me=x.useState(Re),He=(0,ye.Z)(Me,2),be=He[0],ve=He[1],Ie=x.useState(null),$e=(0,ye.Z)(Ie,2),We=$e[0],Je=$e[1];return x.useEffect(function(){var ct=ge(be||[],Re||[],ne);(ct==null?void 0:ct.index)!==void 0&&(fe==null||fe(ct.index),Je(Re[ct.index])),ve(Re)},[Re]),[We]}var xe=Te(16089),Ae=(typeof navigator=="undefined"?"undefined":(0,Ot.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ne=Ae,Be=function(Re,ne,fe,Me){var He=(0,x.useRef)(!1),be=(0,x.useRef)(null);function ve(){clearTimeout(be.current),He.current=!0,be.current=setTimeout(function(){He.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,We){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ct=$e?We<0&&Ie.current.left||We>0&&Ie.current.right:We<0&&Ie.current.top||We>0&&Ie.current.bottom;return Je&&ct?(clearTimeout(be.current),He.current=!1):(!ct||He.current)&&ve(),!He.current&&ct}};function De(Re,ne,fe,Me,He,be,ve){var Ie=(0,x.useRef)(0),$e=(0,x.useRef)(null),We=(0,x.useRef)(null),Je=(0,x.useRef)(!1),ct=Be(ne,fe,Me,He);function ot(Rt,Pt){if(xe.Z.cancel($e.current),!ct(!1,Pt)){var Tt=Rt;if(!Tt._virtualHandled)Tt._virtualHandled=!0;else return;Ie.current+=Pt,We.current=Pt,Ne||Tt.preventDefault(),$e.current=(0,xe.Z)(function(){var kt=Je.current?10:1;ve(Ie.current*kt,!1),Ie.current=0})}}function ft(Rt,Pt){ve(Pt,!0),Ne||Rt.preventDefault()}var ut=(0,x.useRef)(null),lt=(0,x.useRef)(null);function At(Rt){if(Re){xe.Z.cancel(lt.current),lt.current=(0,xe.Z)(function(){ut.current=null},2);var Pt=Rt.deltaX,Tt=Rt.deltaY,kt=Rt.shiftKey,Dt=Pt,gt=Tt;(ut.current==="sx"||!ut.current&&kt&&Tt&&!Pt)&&(Dt=Tt,gt=0,ut.current="sx");var It=Math.abs(Dt),Vt=Math.abs(gt);ut.current===null&&(ut.current=be&&It>Vt?"x":"y"),ut.current==="y"?ot(Rt,gt):ft(Rt,Dt)}}function yt(Rt){Re&&(Je.current=Rt.detail===We.current)}return[At,yt]}function we(Re,ne,fe,Me){var He=x.useMemo(function(){return[new Map,[]]},[Re,fe.id,Me]),be=(0,ye.Z)(He,2),ve=be[0],Ie=be[1],$e=function(Je){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Je,ot=ve.get(Je),ft=ve.get(ct);if(ot===void 0||ft===void 0)for(var ut=Re.length,lt=Ie.length;lt<ut;lt+=1){var At,yt=Re[lt],Rt=ne(yt);ve.set(Rt,lt);var Pt=(At=fe.get(Rt))!==null&&At!==void 0?At:Me;if(Ie[lt]=(Ie[lt-1]||0)+Pt,Rt===Je&&(ot=lt),Rt===ct&&(ft=lt),ot!==void 0&&ft!==void 0)break}return{top:Ie[ot-1]||0,bottom:Ie[ft]}};return $e}var Ce=Te(67732),Oe=Te(83652),je=function(){function Re(){(0,Ce.Z)(this,Re),(0,Pe.Z)(this,"maps",void 0),(0,Pe.Z)(this,"id",0),(0,Pe.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}(),Fe=je;function ke(Re){var ne=parseFloat(Re);return isNaN(ne)?0:ne}function Ee(Re,ne,fe){var Me=x.useState(0),He=(0,ye.Z)(Me,2),be=He[0],ve=He[1],Ie=(0,x.useRef)(new Map),$e=(0,x.useRef)(new Fe),We=(0,x.useRef)(0);function Je(){We.current+=1}function ct(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Je();var ut=function(){var yt=!1;Ie.current.forEach(function(Rt,Pt){if(Rt&&Rt.offsetParent){var Tt=Rt.offsetHeight,kt=getComputedStyle(Rt),Dt=kt.marginTop,gt=kt.marginBottom,It=ke(Dt),Vt=ke(gt),rn=Tt+It+Vt;$e.current.get(Pt)!==rn&&($e.current.set(Pt,rn),yt=!0)}}),yt&&ve(function(Rt){return Rt+1})};if(ft)ut();else{We.current+=1;var lt=We.current;Promise.resolve().then(function(){lt===We.current&&ut()})}}function ot(ft,ut){var lt=Re(ft),At=Ie.current.get(lt);ut?(Ie.current.set(lt,ut),ct()):Ie.current.delete(lt),!At!=!ut&&(ut?ne==null||ne(ft):fe==null||fe(ft))}return(0,x.useEffect)(function(){return Je},[]),[ot,ct,$e.current,be]}var Ge=14/15;function Ke(Re,ne,fe){var Me=(0,x.useRef)(!1),He=(0,x.useRef)(0),be=(0,x.useRef)(0),ve=(0,x.useRef)(null),Ie=(0,x.useRef)(null),$e,We=function(ft){if(Me.current){var ut=Math.ceil(ft.touches[0].pageX),lt=Math.ceil(ft.touches[0].pageY),At=He.current-ut,yt=be.current-lt,Rt=Math.abs(At)>Math.abs(yt);Rt?He.current=ut:be.current=lt;var Pt=fe(Rt,Rt?At:yt,!1,ft);Pt&&ft.preventDefault(),clearInterval(Ie.current),Pt&&(Ie.current=setInterval(function(){Rt?At*=Ge:yt*=Ge;var Tt=Math.floor(Rt?At:yt);(!fe(Rt,Tt,!0)||Math.abs(Tt)<=.1)&&clearInterval(Ie.current)},16))}},Je=function(){Me.current=!1,$e()},ct=function(ft){$e(),ft.touches.length===1&&!Me.current&&(Me.current=!0,He.current=Math.ceil(ft.touches[0].pageX),be.current=Math.ceil(ft.touches[0].pageY),ve.current=ft.target,ve.current.addEventListener("touchmove",We,{passive:!1}),ve.current.addEventListener("touchend",Je,{passive:!0}))};$e=function(){ve.current&&(ve.current.removeEventListener("touchmove",We),ve.current.removeEventListener("touchend",Je))},(0,de.Z)(function(){return Re&&ne.current.addEventListener("touchstart",ct,{passive:!0}),function(){var ot;(ot=ne.current)===null||ot===void 0||ot.removeEventListener("touchstart",ct),$e(),clearInterval(Ie.current)}},[Re])}function Ve(Re){return Math.floor(Math.pow(Re,.5))}function it(Re,ne){var fe="touches"in Re?Re.touches[0]:Re;return fe[ne?"pageX":"pageY"]-window[ne?"scrollX":"scrollY"]}function Le(Re,ne,fe){x.useEffect(function(){var Me=ne.current;if(Re&&Me){var He=!1,be,ve,Ie=function(){xe.Z.cancel(be)},$e=function ot(){Ie(),be=(0,xe.Z)(function(){fe(ve),ot()})},We=function(){He=!1,Ie()},Je=function(ft){if(!(ft.target.draggable||ft.button!==0)){var ut=ft;ut._virtualHandled||(ut._virtualHandled=!0,He=!0)}},ct=function(ft){if(He){var ut=it(ft,!1),lt=Me.getBoundingClientRect(),At=lt.top,yt=lt.bottom;if(ut<=At){var Rt=At-ut;ve=-Ve(Rt),$e()}else if(ut>=yt){var Pt=ut-yt;ve=Ve(Pt),$e()}else Ie()}};return Me.addEventListener("mousedown",Je),Me.ownerDocument.addEventListener("mouseup",We),Me.ownerDocument.addEventListener("mousemove",ct),Me.ownerDocument.addEventListener("dragend",We),function(){Me.removeEventListener("mousedown",Je),Me.ownerDocument.removeEventListener("mouseup",We),Me.ownerDocument.removeEventListener("mousemove",ct),Me.ownerDocument.removeEventListener("dragend",We),Ie()}}},[Re])}var Ue=10;function tt(Re,ne,fe,Me,He,be,ve,Ie){var $e=x.useRef(),We=x.useState(null),Je=(0,ye.Z)(We,2),ct=Je[0],ot=Je[1];return(0,de.Z)(function(){if(ct&&ct.times<Ue){if(!Re.current){ot(function(gn){return(0,y.Z)({},gn)});return}be();var ft=ct.targetAlign,ut=ct.originAlign,lt=ct.index,At=ct.offset,yt=Re.current.clientHeight,Rt=!1,Pt=ft,Tt=null;if(yt){for(var kt=ft||ut,Dt=0,gt=0,It=0,Vt=Math.min(ne.length-1,lt),rn=0;rn<=Vt;rn+=1){var wt=He(ne[rn]);gt=Dt;var Ct=fe.get(wt);It=gt+(Ct===void 0?Me:Ct),Dt=It}for(var Zt=kt==="top"?At:yt-At,en=Vt;en>=0;en-=1){var ln=He(ne[en]),yn=fe.get(ln);if(yn===void 0){Rt=!0;break}if(Zt-=yn,Zt<=0)break}switch(kt){case"top":Tt=gt-At;break;case"bottom":Tt=It-yt+At;break;default:{var Bn=Re.current.scrollTop,Wn=Bn+yt;gt<Bn?Pt="top":It>Wn&&(Pt="bottom")}}Tt!==null&&ve(Tt),Tt!==ct.lastTop&&(Rt=!0)}Rt&&ot((0,y.Z)((0,y.Z)({},ct),{},{times:ct.times+1,targetAlign:Pt,lastTop:Tt}))}},[ct,Re.current]),function(ft){if(ft==null){Ie();return}if(xe.Z.cancel($e.current),typeof ft=="number")ve(ft);else if(ft&&(0,Ot.Z)(ft)==="object"){var ut,lt=ft.align;"index"in ft?ut=ft.index:ut=ne.findIndex(function(Rt){return He(Rt)===ft.key});var At=ft.offset,yt=At===void 0?0:At;ot({times:0,index:ut,offset:yt,originAlign:lt})}}}var nt=x.forwardRef(function(Re,ne){var fe=Re.prefixCls,Me=Re.rtl,He=Re.scrollOffset,be=Re.scrollRange,ve=Re.onStartMove,Ie=Re.onStopMove,$e=Re.onScroll,We=Re.horizontal,Je=Re.spinSize,ct=Re.containerSize,ot=Re.style,ft=Re.thumbStyle,ut=Re.showScrollBar,lt=x.useState(!1),At=(0,ye.Z)(lt,2),yt=At[0],Rt=At[1],Pt=x.useState(null),Tt=(0,ye.Z)(Pt,2),kt=Tt[0],Dt=Tt[1],gt=x.useState(null),It=(0,ye.Z)(gt,2),Vt=It[0],rn=It[1],wt=!Me,Ct=x.useRef(),Zt=x.useRef(),en=x.useState(ut),ln=(0,ye.Z)(en,2),yn=ln[0],Bn=ln[1],Wn=x.useRef(),gn=function(){ut===!0||ut===!1||(clearTimeout(Wn.current),Bn(!0),Wn.current=setTimeout(function(){Bn(!1)},3e3))},Ln=be-ct||0,pn=ct-Je||0,In=x.useMemo(function(){if(He===0||Ln===0)return 0;var hn=He/Ln;return hn*pn},[He,Ln,pn]),Gt=function(Mn){Mn.stopPropagation(),Mn.preventDefault()},Ut=x.useRef({top:In,dragging:yt,pageY:kt,startTop:Vt});Ut.current={top:In,dragging:yt,pageY:kt,startTop:Vt};var Lt=function(Mn){Rt(!0),Dt(it(Mn,We)),rn(Ut.current.top),ve(),Mn.stopPropagation(),Mn.preventDefault()};x.useEffect(function(){var hn=function(tr){tr.preventDefault()},Mn=Ct.current,_n=Zt.current;return Mn.addEventListener("touchstart",hn,{passive:!1}),_n.addEventListener("touchstart",Lt,{passive:!1}),function(){Mn.removeEventListener("touchstart",hn),_n.removeEventListener("touchstart",Lt)}},[]);var sn=x.useRef();sn.current=Ln;var un=x.useRef();un.current=pn,x.useEffect(function(){if(yt){var hn,Mn=function(tr){var cn=Ut.current,tn=cn.dragging,Hn=cn.pageY,Gn=cn.startTop;xe.Z.cancel(hn);var Mt=Ct.current.getBoundingClientRect(),Kt=ct/(We?Mt.width:Mt.height);if(tn){var St=(it(tr,We)-Hn)*Kt,Nt=Gn;!wt&&We?Nt-=St:Nt+=St;var Et=sn.current,zt=un.current,bt=zt?Nt/zt:0,Wt=Math.ceil(bt*Et);Wt=Math.max(Wt,0),Wt=Math.min(Wt,Et),hn=(0,xe.Z)(function(){$e(Wt,We)})}},_n=function(){Rt(!1),Ie()};return window.addEventListener("mousemove",Mn,{passive:!0}),window.addEventListener("touchmove",Mn,{passive:!0}),window.addEventListener("mouseup",_n,{passive:!0}),window.addEventListener("touchend",_n,{passive:!0}),function(){window.removeEventListener("mousemove",Mn),window.removeEventListener("touchmove",Mn),window.removeEventListener("mouseup",_n),window.removeEventListener("touchend",_n),xe.Z.cancel(hn)}}},[yt]),x.useEffect(function(){return gn(),function(){clearTimeout(Wn.current)}},[He]),x.useImperativeHandle(ne,function(){return{delayHidden:gn}});var Cn="".concat(fe,"-scrollbar"),Tn={position:"absolute",visibility:yn?null:"hidden"},jn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return We?(Object.assign(Tn,{height:8,left:0,right:0,bottom:0}),Object.assign(jn,(0,Pe.Z)({height:"100%",width:Je},wt?"left":"right",In))):(Object.assign(Tn,(0,Pe.Z)({width:8,top:0,bottom:0},wt?"right":"left",0)),Object.assign(jn,{width:"100%",height:Je,top:In})),x.createElement("div",{ref:Ct,className:re()(Cn,(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},"".concat(Cn,"-horizontal"),We),"".concat(Cn,"-vertical"),!We),"".concat(Cn,"-visible"),yn)),style:(0,y.Z)((0,y.Z)({},Tn),ot),onMouseDown:Gt,onMouseMove:gn},x.createElement("div",{ref:Zt,className:re()("".concat(Cn,"-thumb"),(0,Pe.Z)({},"".concat(Cn,"-thumb-moving"),yt)),style:(0,y.Z)((0,y.Z)({},jn),ft),onMouseDown:Lt}))}),et=nt,Ze=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,Ze),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"],st=[],Qe={overflowY:"auto",overflowAnchor:"none"};function ht(Re,ne){var fe=Re.prefixCls,Me=fe===void 0?"rc-virtual-list":fe,He=Re.className,be=Re.height,ve=Re.itemHeight,Ie=Re.fullHeight,$e=Ie===void 0?!0:Ie,We=Re.style,Je=Re.data,ct=Re.children,ot=Re.itemKey,ft=Re.virtual,ut=Re.direction,lt=Re.scrollWidth,At=Re.component,yt=At===void 0?"div":At,Rt=Re.onScroll,Pt=Re.onVirtualScroll,Tt=Re.onVisibleChange,kt=Re.innerProps,Dt=Re.extraRender,gt=Re.styles,It=Re.showScrollBar,Vt=It===void 0?"optional":It,rn=(0,z.Z)(Re,Xe),wt=x.useCallback(function(Pn){return typeof ot=="function"?ot(Pn):Pn==null?void 0:Pn[ot]},[ot]),Ct=Ee(wt,null,null),Zt=(0,ye.Z)(Ct,4),en=Zt[0],ln=Zt[1],yn=Zt[2],Bn=Zt[3],Wn=!!(ft!==!1&&be&&ve),gn=x.useMemo(function(){return Object.values(yn.maps).reduce(function(Pn,Kn){return Pn+Kn},0)},[yn.id,yn.maps]),Ln=Wn&&Je&&(Math.max(ve*Je.length,gn)>be||!!lt),pn=ut==="rtl",In=re()(Me,(0,Pe.Z)({},"".concat(Me,"-rtl"),pn),He),Gt=Je||st,Ut=(0,x.useRef)(),Lt=(0,x.useRef)(),sn=(0,x.useRef)(),un=(0,x.useState)(0),Cn=(0,ye.Z)(un,2),Tn=Cn[0],jn=Cn[1],hn=(0,x.useState)(0),Mn=(0,ye.Z)(hn,2),_n=Mn[0],ur=Mn[1],tr=(0,x.useState)(!1),cn=(0,ye.Z)(tr,2),tn=cn[0],Hn=cn[1],Gn=function(){Hn(!0)},Mt=function(){Hn(!1)},Kt={getKey:wt};function St(Pn){jn(function(Kn){var Xn;typeof Pn=="function"?Xn=Pn(Kn):Xn=Pn;var $n=Sr(Xn);return Ut.current.scrollTop=$n,$n})}var Nt=(0,x.useRef)({start:0,end:Gt.length}),Et=(0,x.useRef)(),zt=me(Gt,wt),bt=(0,ye.Z)(zt,1),Wt=bt[0];Et.current=Wt;var Ft=x.useMemo(function(){if(!Wn)return{scrollHeight:void 0,start:0,end:Gt.length-1,offset:void 0};if(!Ln){var Pn;return{scrollHeight:((Pn=Lt.current)===null||Pn===void 0?void 0:Pn.offsetHeight)||0,start:0,end:Gt.length-1,offset:void 0}}for(var Kn=0,Xn,$n,hr,Tr=Gt.length,Vn=0;Vn<Tr;Vn+=1){var zn=Gt[Vn],er=wt(zn),sr=yn.get(er),qr=Kn+(sr===void 0?ve:sr);qr>=Tn&&Xn===void 0&&(Xn=Vn,$n=Kn),qr>Tn+be&&hr===void 0&&(hr=Vn),Kn=qr}return Xn===void 0&&(Xn=0,$n=0,hr=Math.ceil(be/ve)),hr===void 0&&(hr=Gt.length-1),hr=Math.min(hr+1,Gt.length-1),{scrollHeight:Kn,start:Xn,end:hr,offset:$n}},[Ln,Wn,Tn,Gt,Bn,be]),qt=Ft.scrollHeight,_t=Ft.start,$t=Ft.end,Ht=Ft.offset;Nt.current.start=_t,Nt.current.end=$t,x.useLayoutEffect(function(){var Pn=yn.getRecord();if(Pn.size===1){var Kn=Array.from(Pn.keys())[0],Xn=Pn.get(Kn),$n=Gt[_t];if($n&&Xn===void 0){var hr=wt($n);if(hr===Kn){var Tr=yn.get(Kn),Vn=Tr-ve;St(function(zn){return zn+Vn})}}}yn.resetRecord()},[qt]);var Xt=x.useState({width:0,height:be}),En=(0,ye.Z)(Xt,2),On=En[0],Rn=En[1],rr=function(Kn){Rn({width:Kn.offsetWidth,height:Kn.offsetHeight})},cr=(0,x.useRef)(),mr=(0,x.useRef)(),nr=x.useMemo(function(){return Ye(On.width,lt)},[On.width,lt]),Un=x.useMemo(function(){return Ye(On.height,qt)},[On.height,qt]),Yn=qt-be,pr=(0,x.useRef)(Yn);pr.current=Yn;function Sr(Pn){var Kn=Pn;return Number.isNaN(pr.current)||(Kn=Math.min(Kn,pr.current)),Kn=Math.max(Kn,0),Kn}var wr=Tn<=0,Cr=Tn>=Yn,qn=_n<=0,kn=_n>=lt,Fn=Be(wr,Cr,qn,kn),Nn=function(){return{x:pn?-_n:_n,y:Tn}},ir=(0,x.useRef)(Nn()),br=(0,ee.zX)(function(Pn){if(Pt){var Kn=(0,y.Z)((0,y.Z)({},Nn()),Pn);(ir.current.x!==Kn.x||ir.current.y!==Kn.y)&&(Pt(Kn),ir.current=Kn)}});function Pr(Pn,Kn){var Xn=Pn;Kn?((0,ae.flushSync)(function(){ur(Xn)}),br()):St(Xn)}function Kr(Pn){var Kn=Pn.currentTarget.scrollTop;Kn!==Tn&&St(Kn),Rt==null||Rt(Pn),br()}var Nr=function(Kn){var Xn=Kn,$n=lt?lt-On.width:0;return Xn=Math.max(Xn,0),Xn=Math.min(Xn,$n),Xn},Wr=(0,ee.zX)(function(Pn,Kn){Kn?((0,ae.flushSync)(function(){ur(function(Xn){var $n=Xn+(pn?-Pn:Pn);return Nr($n)})}),br()):St(function(Xn){var $n=Xn+Pn;return $n})}),Ir=De(Wn,wr,Cr,qn,kn,!!lt,Wr),ni=(0,ye.Z)(Ir,2),ti=ni[0],oi=ni[1];Ke(Wn,Ut,function(Pn,Kn,Xn,$n){var hr=$n;return Fn(Pn,Kn,Xn)?!1:!hr||!hr._virtualHandled?(hr&&(hr._virtualHandled=!0),ti({preventDefault:function(){},deltaX:Pn?Kn:0,deltaY:Pn?0:Kn}),!0):!1}),Le(Ln,Ut,function(Pn){St(function(Kn){return Kn+Pn})}),(0,de.Z)(function(){function Pn(Xn){var $n=wr&&Xn.detail<0,hr=Cr&&Xn.detail>0;Wn&&!$n&&!hr&&Xn.preventDefault()}var Kn=Ut.current;return Kn.addEventListener("wheel",ti,{passive:!1}),Kn.addEventListener("DOMMouseScroll",oi,{passive:!0}),Kn.addEventListener("MozMousePixelScroll",Pn,{passive:!1}),function(){Kn.removeEventListener("wheel",ti),Kn.removeEventListener("DOMMouseScroll",oi),Kn.removeEventListener("MozMousePixelScroll",Pn)}},[Wn,wr,Cr]),(0,de.Z)(function(){if(lt){var Pn=Nr(_n);ur(Pn),br({x:Pn})}},[On.width,lt]);var fi=function(){var Kn,Xn;(Kn=cr.current)===null||Kn===void 0||Kn.delayHidden(),(Xn=mr.current)===null||Xn===void 0||Xn.delayHidden()},xi=tt(Ut,Gt,yn,ve,wt,function(){return ln(!0)},St,fi);x.useImperativeHandle(ne,function(){return{nativeElement:sn.current,getScrollInfo:Nn,scrollTo:function(Kn){function Xn($n){return $n&&(0,Ot.Z)($n)==="object"&&("left"in $n||"top"in $n)}Xn(Kn)?(Kn.left!==void 0&&ur(Nr(Kn.left)),xi(Kn.top)):xi(Kn)}}}),(0,de.Z)(function(){if(Tt){var Pn=Gt.slice(_t,$t+1);Tt(Pn,Gt)}},[_t,$t,Gt]);var hi=we(Gt,wt,yn,ve),ei=Dt==null?void 0:Dt({start:_t,end:$t,virtual:Ln,offsetX:_n,offsetY:Ht,rtl:pn,getSize:hi}),Ar=pe(Gt,_t,$t,lt,_n,en,ct,Kt),Dr=null;be&&(Dr=(0,y.Z)((0,Pe.Z)({},$e?"height":"maxHeight",be),Qe),Wn&&(Dr.overflowY="hidden",lt&&(Dr.overflowX="hidden"),tn&&(Dr.pointerEvents="none")));var ar={};return pn&&(ar.dir="rtl"),x.createElement("div",(0,te.Z)({ref:sn,style:(0,y.Z)((0,y.Z)({},We),{},{position:"relative"}),className:In},ar,rn),x.createElement(oe.Z,{onResize:rr},x.createElement(yt,{className:"".concat(Me,"-holder"),style:Dr,ref:Ut,onScroll:Kr,onMouseEnter:fi},x.createElement(se,{prefixCls:Me,height:qt,offsetX:_n,offsetY:Ht,scrollWidth:lt,onInnerResize:ln,ref:Lt,innerProps:kt,rtl:pn,extra:ei},Ar))),Ln&&qt>be&&x.createElement(et,{ref:cr,prefixCls:Me,scrollOffset:Tn,scrollRange:qt,rtl:pn,onScroll:Pr,onStartMove:Gn,onStopMove:Mt,spinSize:Un,containerSize:On.height,style:gt==null?void 0:gt.verticalScrollBar,thumbStyle:gt==null?void 0:gt.verticalScrollBarThumb,showScrollBar:Vt}),Ln&&lt>On.width&&x.createElement(et,{ref:mr,prefixCls:Me,scrollOffset:_n,scrollRange:lt,rtl:pn,onScroll:Pr,onStartMove:Gn,onStopMove:Mt,spinSize:nr,containerSize:On.width,horizontal:!0,style:gt==null?void 0:gt.horizontalScrollBar,thumbStyle:gt==null?void 0:gt.horizontalScrollBarThumb,showScrollBar:Vt}))}var at=x.forwardRef(ht);at.displayName="List";var qe=at,_e=qe},93314:function(wn){"use strict";wn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},96908:function(wn){"use strict";wn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},57177:function(wn){"use strict";wn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},81378:function(wn){"use strict";wn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(wn,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return re}});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 de=getComputedStyle(oe,null);return Ot(de.overflowY,ee)||Ot(de.overflowX,ee)||(x=>{const ae=(ie=>{if(!ie.ownerDocument||!ie.ownerDocument.defaultView)return null;try{return ie.ownerDocument.defaultView.frameElement}catch(se){return null}})(x);return!!ae&&(ae.clientHeight<x.scrollHeight||ae.clientWidth<x.scrollWidth)})(oe)}return!1},Pe=(oe,ee,de,x,ae,ie,se,ue)=>ie<oe&&se>ee||ie>oe&&se<ee?0:ie<=oe&&ue<=de||se>=ee&&ue>=de?ie-oe-x:se>ee&&ue<de||ie<oe&&ue>de?se-ee+ae:0,ye=oe=>{const ee=oe.parentElement;return ee==null?oe.getRootNode().host||null:ee},z=(oe,ee)=>{var de,x,ae,ie;if(typeof document=="undefined")return[];const{scrollMode:se,block:ue,inline:pe,boundary:he,skipOverflowHiddenElements:ge}=ee,me=typeof he=="function"?he:et=>et!==he;if(!te(oe))throw new TypeError("Invalid target");const xe=document.scrollingElement||document.documentElement,Ae=[];let Ne=oe;for(;te(Ne)&&me(Ne);){if(Ne=ye(Ne),Ne===xe){Ae.push(Ne);break}Ne!=null&&Ne===document.body&&y(Ne)&&!y(document.documentElement)||Ne!=null&&y(Ne,ge)&&Ae.push(Ne)}const Be=(x=(de=window.visualViewport)==null?void 0:de.width)!=null?x:innerWidth,De=(ie=(ae=window.visualViewport)==null?void 0:ae.height)!=null?ie:innerHeight,{scrollX:we,scrollY:Ce}=window,{height:Oe,width:je,top:Fe,right:ke,bottom:Ee,left:Ge}=oe.getBoundingClientRect(),{top:Ke,right:Ve,bottom:it,left:Le}=(et=>{const Ze=window.getComputedStyle(et);return{top:parseFloat(Ze.scrollMarginTop)||0,right:parseFloat(Ze.scrollMarginRight)||0,bottom:parseFloat(Ze.scrollMarginBottom)||0,left:parseFloat(Ze.scrollMarginLeft)||0}})(oe);let Ue=ue==="start"||ue==="nearest"?Fe-Ke:ue==="end"?Ee+it:Fe+Oe/2-Ke+it,tt=pe==="center"?Ge+je/2-Le+Ve:pe==="end"?ke+Ve:Ge-Le;const nt=[];for(let et=0;et<Ae.length;et++){const Ze=Ae[et],{height:Ye,width:Xe,top:st,right:Qe,bottom:ht,left:at}=Ze.getBoundingClientRect();if(se==="if-needed"&&Fe>=0&&Ge>=0&&Ee<=De&&ke<=Be&&(Ze===xe&&!y(Ze)||Fe>=st&&Ee<=ht&&Ge>=at&&ke<=Qe))return nt;const qe=getComputedStyle(Ze),_e=parseInt(qe.borderLeftWidth,10),Re=parseInt(qe.borderTopWidth,10),ne=parseInt(qe.borderRightWidth,10),fe=parseInt(qe.borderBottomWidth,10);let Me=0,He=0;const be="offsetWidth"in Ze?Ze.offsetWidth-Ze.clientWidth-_e-ne:0,ve="offsetHeight"in Ze?Ze.offsetHeight-Ze.clientHeight-Re-fe:0,Ie="offsetWidth"in Ze?Ze.offsetWidth===0?0:Xe/Ze.offsetWidth:0,$e="offsetHeight"in Ze?Ze.offsetHeight===0?0:Ye/Ze.offsetHeight:0;if(xe===Ze)Me=ue==="start"?Ue:ue==="end"?Ue-De:ue==="nearest"?Pe(Ce,Ce+De,De,Re,fe,Ce+Ue,Ce+Ue+Oe,Oe):Ue-De/2,He=pe==="start"?tt:pe==="center"?tt-Be/2:pe==="end"?tt-Be:Pe(we,we+Be,Be,_e,ne,we+tt,we+tt+je,je),Me=Math.max(0,Me+Ce),He=Math.max(0,He+we);else{Me=ue==="start"?Ue-st-Re:ue==="end"?Ue-ht+fe+ve:ue==="nearest"?Pe(st,ht,Ye,Re,fe+ve,Ue,Ue+Oe,Oe):Ue-(st+Ye/2)+ve/2,He=pe==="start"?tt-at-_e:pe==="center"?tt-(at+Xe/2)+be/2:pe==="end"?tt-Qe+ne+be:Pe(at,Qe,Xe,_e,ne+be,tt,tt+je,je);const{scrollLeft:We,scrollTop:Je}=Ze;Me=$e===0?0:Math.max(0,Math.min(Je+Me/$e,Ze.scrollHeight-Ye/$e+ve)),He=Ie===0?0:Math.max(0,Math.min(We+He/Ie,Ze.scrollWidth-Xe/Ie+be)),Ue+=Je-Me,tt+=We-He}nt.push({el:Ze,top:Me,left:He})}return nt},E=oe=>oe===!1?{block:"end",inline:"nearest"}:(ee=>ee===Object(ee)&&Object.keys(ee).length!==0)(oe)?oe:{block:"start",inline:"nearest"};function re(oe,ee){if(!oe.isConnected||!(ae=>{let ie=ae;for(;ie&&ie.parentNode;){if(ie.parentNode===document)return!0;ie=ie.parentNode instanceof ShadowRoot?ie.parentNode.host:ie.parentNode}return!1})(oe))return;const de=(ae=>{const ie=window.getComputedStyle(ae);return{top:parseFloat(ie.scrollMarginTop)||0,right:parseFloat(ie.scrollMarginRight)||0,bottom:parseFloat(ie.scrollMarginBottom)||0,left:parseFloat(ie.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:ie,left:se}of z(oe,E(ee))){const ue=ie-de.top+de.bottom,pe=se-de.left+de.right;ae.scroll({top:ue,left:pe,behavior:x})}}}}]);