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

1352 lines
1.7 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([[6913],{89489:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(60499),yt=Ce(59301),a={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"},Te=a,ge=Ce(7657),x=function(ee,ue){return yt.createElement(ge.Z,(0,le.Z)({},ee,{ref:ue,icon:Te}))},z=yt.forwardRef(x),ie=z},59477:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(60499),yt=Ce(59301),a={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"},Te=a,ge=Ce(7657),x=function(ee,ue){return yt.createElement(ge.Z,(0,le.Z)({},ee,{ref:ue,icon:Te}))},z=yt.forwardRef(x),ie=z},40001:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(60499),yt=Ce(59301),a={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"},Te=a,ge=Ce(7657),x=function(ee,ue){return yt.createElement(ge.Z,(0,le.Z)({},ee,{ref:ue,icon:Te}))},z=yt.forwardRef(x),ie=z},65363:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(60499),yt=Ce(59301),a={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},Te=a,ge=Ce(7657),x=function(ee,ue){return yt.createElement(ge.Z,(0,le.Z)({},ee,{ref:ue,icon:Te}))},z=yt.forwardRef(x),ie=z},26227:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(60499),yt=Ce(59301),a={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"},Te=a,ge=Ce(7657),x=function(ee,ue){return yt.createElement(ge.Z,(0,le.Z)({},ee,{ref:ue,icon:Te}))},z=yt.forwardRef(x),ie=z},49198:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(60499),yt=Ce(59301),a={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"},Te=a,ge=Ce(7657),x=function(ee,ue){return yt.createElement(ge.Z,(0,le.Z)({},ee,{ref:ue,icon:Te}))},z=yt.forwardRef(x),ie=z},41464:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(60499),yt=Ce(59301),a={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"},Te=a,ge=Ce(7657),x=function(ee,ue){return yt.createElement(ge.Z,(0,le.Z)({},ee,{ref:ue,icon:Te}))},z=yt.forwardRef(x),ie=z},73331:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(60499),yt=Ce(59301),a={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"},Te=a,ge=Ce(7657),x=function(ee,ue){return yt.createElement(ge.Z,(0,le.Z)({},ee,{ref:ue,icon:Te}))},z=yt.forwardRef(x),ie=z},15277:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(60499),yt=Ce(59301),a={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"},Te=a,ge=Ce(7657),x=function(ee,ue){return yt.createElement(ge.Z,(0,le.Z)({},ee,{ref:ue,icon:Te}))},z=yt.forwardRef(x),ie=z},52671:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(60499),yt=Ce(59301),a={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"},Te=a,ge=Ce(7657),x=function(ee,ue){return yt.createElement(ge.Z,(0,le.Z)({},ee,{ref:ue,icon:Te}))},z=yt.forwardRef(x),ie=z},8657:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(60499),yt=Ce(59301),a={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"},Te=a,ge=Ce(7657),x=function(ee,ue){return yt.createElement(ge.Z,(0,le.Z)({},ee,{ref:ue,icon:Te}))},z=yt.forwardRef(x),ie=z},56082:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(60499),yt=Ce(59301),a={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"},Te=a,ge=Ce(7657),x=function(ee,ue){return yt.createElement(ge.Z,(0,le.Z)({},ee,{ref:ue,icon:Te}))},z=yt.forwardRef(x),ie=z},33853:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(60499),yt=Ce(59301),a={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"},Te=a,ge=Ce(7657),x=function(ee,ue){return yt.createElement(ge.Z,(0,le.Z)({},ee,{ref:ue,icon:Te}))},z=yt.forwardRef(x),ie=z},15075:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(60499),yt=Ce(59301),a={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"},Te=a,ge=Ce(7657),x=function(ee,ue){return yt.createElement(ge.Z,(0,le.Z)({},ee,{ref:ue,icon:Te}))},z=yt.forwardRef(x),ie=z},43531:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(60499),yt=Ce(59301),a={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"},Te=a,ge=Ce(7657),x=function(ee,ue){return yt.createElement(ge.Z,(0,le.Z)({},ee,{ref:ue,icon:Te}))},z=yt.forwardRef(x),ie=z},76618:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(60499),yt=Ce(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},Te=a,ge=Ce(7657),x=function(ee,ue){return yt.createElement(ge.Z,(0,le.Z)({},ee,{ref:ue,icon:Te}))},z=yt.forwardRef(x),ie=z},61485:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(60499),yt=Ce(59301),a={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"},Te=a,ge=Ce(7657),x=function(ee,ue){return yt.createElement(ge.Z,(0,le.Z)({},ee,{ref:ue,icon:Te}))},z=yt.forwardRef(x),ie=z},47472:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(60499),yt=Ce(59301),a={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"},Te=a,ge=Ce(7657),x=function(ee,ue){return yt.createElement(ge.Z,(0,le.Z)({},ee,{ref:ue,icon:Te}))},z=yt.forwardRef(x),ie=z},87395:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(60499),yt=Ce(59301),a={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"},Te=a,ge=Ce(7657),x=function(ee,ue){return yt.createElement(ge.Z,(0,le.Z)({},ee,{ref:ue,icon:Te}))},z=yt.forwardRef(x),ie=z},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(on,Lt){"use strict";Lt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},21385:function(){"use strict"},84915:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var on={},Lt="5.0",Ce={},le=null,yt=!1,a=!1,Te=null,ge=!1,x=null,z=null,ie=0;ie<arguments.length;ie++){var oe=arguments[ie];if(oe!==null)switch(typeof oe){case"number":Lt=oe.toFixed(1);break;case"string":oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Lt=oe:Te=oe;break;case"object":typeof oe.is3D!="undefined"?le=oe:Ce=oe;break;case"boolean":yt=oe,a=!0;break}}le===null&&(le={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Ce.material_id!==void 0&&!a&&(yt=!0)),Te!==null&&Ce.id===void 0&&(Ce.id=Te);var ee="",ue="",E=!1,re=null,te=null,se=null,ae=!1,he=null,me=null,ve=null,pe=null,be=null;Ce.height!==void 0&&(Ce.height=Math.round(Ce.height)),Ce.width!==void 0&&(Ce.width=Math.round(Ce.width));var je=function(Ve){return parseFloat(Ve)>4?parseFloat(Ve):5};on.setHTML5Codebase=function(Ve,Ye){z=Ve,nt(Ve,Ye)},on.setJavaCodebase=on.setJavaCodebaseVersion=on.isCompiledInstalled=on.setPreCompiledScriptPath=on.setPreCompiledResourcePath=function(){},on.setHTML5CodebaseVersion=function(Ve,Ye){var Ge=parseFloat(Ve);if(Ge!==NaN&&Ge<5){console.log("The GeoGebra HTML5 codebase version "+Ge+" is deprecated. Using version latest instead.");return}x=Ve,Ke(Ve,Ye)},on.getHTML5CodebaseVersion=function(){return te},on.getParameters=function(){return Ce},on.setFontsCSSURL=function(Ve){pe=Ve},on.setGiacJSURL=function(Ve){},on.setJNLPFile=function(Ve){ee=Ve},on.setJNLPBaseDir=function(Ve){},on.inject=function(){function Ve(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ye="auto",Ge=Ce.id,it,qe=!1,vt=0;vt<arguments.length;vt++){var ot=arguments[vt];typeof ot=="string"?(ot=ot.toLowerCase(),ot.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ye=ot:Ge=arguments[vt]):typeof ot=="boolean"?qe=ot:ot instanceof HTMLElement&&(it=ot)}Qe();function Qe(){if(!ge){setTimeout(Qe,200);return}Ye=st(Ye);var Fe=it||document.getElementById(Ge);if(!Fe){console.log("possibly bug on ajax loading? ");return}if(on.removeExistingApplet(Fe,!1),Ce.width===void 0&&Fe.clientWidth&&(Ce.width=Fe.clientWidth),Ce.height===void 0&&Fe.clientHeight&&(Ce.height=Fe.clientHeight),!(Ce.width&&Ce.height)&&Ye==="html5"&&(delete Ce.width,delete Ce.height),re=Ye,Ye==="screenshot")Ae(Fe,Ce);else{var Re=!1;Ce.hasOwnProperty("playButton")&&Ce.playButton||Ce.hasOwnProperty("clickToLoad")&&Ce.clickToLoad?Re=!0:Ce.hasOwnProperty("playButtonAutoDecide")&&Ce.playButtonAutoDecide&&(Re=(!ke()||Ve())&&Be()),Re?(re="screenshot",Ue(Fe,Ce,qe,Ye)):Le(Fe,Ce,qe)}}};function ke(){try{return window.self!==window.top}catch(Ve){return!0}}function Be(){return Ce.hasOwnProperty("screenshotGenerator")&&Ce.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}on.getViews=function(){return le},on.isJavaInstalled=function(){return!1};var De=function(Ve){var Ye=function(vt){var ot=JSON.parse(vt),Qe=function(ne){return ne.type=="G"||ne.type=="E"},Fe=ot.elements?ot.elements.filter(Qe)[0]:ot;if(!Fe||!Fe.url){Ge();return}Ce.fileName=Fe.url,Se(Fe.settings||{}),le.is3D=!0;var Re="https://www.geogebra.org/images/";on.setPreviewImage(he||Fe.previewUrl,Re+"GeoGebra_loading.png",Re+"applet_play.png"),Ve()},Ge=function(){Ce.onError&&Ce.onError(),rt("Error: Fetching material (id "+Ce.material_id+") failed.",Ce)},it=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",qe="/materials/"+Ce.material_id+"?scope=basic";Ee("https://"+it+"/api/proxy.php?path="+encodeURIComponent(qe),Ye,Ge)};function Se(Ve){var Ye=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ge){Ve[Ge]=!!Ve[Ge]}),Ye.forEach(function(Ge){Ce[Ge]===void 0&&Ve[Ge]!==void 0&&(Ce[Ge]=Ve[Ge])}),Ce.showToolBarHelp===void 0&&(Ce.showToolBarHelp=Ce.showToolBar)}function Ee(Ve,Ye,Ge){var it=new XMLHttpRequest;it.open("GET",Ve),it.onload=function(){Ye(it.responseText)},it.onerror=Ge,it.send()}on.isHTML5Installed=function(){return!0},on.getLoadedAppletType=function(){return re},on.setPreviewImage=function(Ve,Ye,Ge){he=Ve,me=Ye,ve=Ge},on.removeExistingApplet=function(Ve,Ye){var Ge;typeof Ve=="string"&&(Ve=document.getElementById(Ve)),re=null;var it=null;for(Ge=0;Ge<Ve.childNodes.length;Ge++){var qe=Ve.childNodes[Ge],vt=qe.className;vt==="applet_screenshot"?Ye?(qe.style.display="block",re="screenshot"):qe.style.display="none":vt!=="applet_scaler prerender"&&(Ve.removeChild(qe),it=vt&&vt.indexOf("appletParameters")!=-1?qe.id:null,Ge--)}var ot=Ce.id!==void 0?Ce.id:it,Qe=window[ot];Qe&&typeof Qe.getBase64=="function"&&(Qe.remove(),window[ot]=null)},on.refreshHitPoints=function(){if(je(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ve=on.getAppletObject();return Ve&&typeof Ve.recalculateEnvironments=="function"?(Ve.recalculateEnvironments(),!0):!1},on.startAnimation=function(){var Ve=on.getAppletObject();return Ve&&typeof Ve.startAnimation=="function"?(Ve.startAnimation(),!0):!1},on.stopAnimation=function(){var Ve=on.getAppletObject();return Ve&&typeof Ve.stopAnimation=="function"?(Ve.stopAnimation(),!0):!1},on.getAppletObject=function(){var Ve=Ce.id!==void 0?Ce.id:"ggbApplet";return window[Ve]},on.resize=function(){};var Ie=function(Ve,Ye,Ge){var it=document.createElement("param");it.setAttribute("name",Ye),it.setAttribute("value",Ge),Ve.appendChild(it)},Me=function(Ve){return Ve&&Ve!=="false"},Le=function(Ve,Ye,Ge){je(te)<=4.2&&(Ge=!0);var it=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==te||ggbHTML5LoadedCodebaseIsWebSimple&&!ae)&&(it=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var qe=document.createElement("div");qe.classList.add("appletParameters","notranslate");var vt=Ye.width,ot=Ye.height;if(Ye.disableAutoScale=Ye.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ye.disableAutoScale,Ye.width!==void 0)if(je(te)<=4.4)Me(Ye.showToolBar)&&(Ye.height-=7),Me(Ye.showAlgebraInput)&&(Ye.height-=37),Ye.width<605&&Me(Ye.showToolBar)&&(Ye.width=605,vt=605);else{var Qe=100;(Me(Ye.showToolBar)||Me(Ye.showMenuBar))&&(Ye.hasOwnProperty("customToolBar")&&(Ye.customToolbar=Ye.customToolBar),Qe=Me(Ye.showMenuBar)?245:155),vt<Qe&&(Ye.width=Qe,vt=Qe)}qe.style.border="none",qe.style.display="inline-block";for(var Fe in Ye)Ye.hasOwnProperty(Fe)&&Fe!=="appletOnLoad"&&qe.setAttribute("data-param-"+Fe,Ye[Fe]);pe&&qe.setAttribute("data-param-fontscssurl",pe),on.resize=function(){GGBAppletUtils.responsiveResize(Ve,Ye)},window.addEventListener("resize",function(lt){on.resize()});var Re=typeof Ye.appletOnLoad=="function"?Ye.appletOnLoad:function(){};if(!Ge&&Ye.width!==void 0){Ye.hasOwnProperty("showSplash")||qe.setAttribute("data-param-showSplash","false");var ne=Ve.querySelector(".applet_scaler.prerender"),fe=ne!==null;if(fe)var Ne=ne.querySelector(".ggb_preview");else{var Ne=Je(vt,ot,Ye.borderColor,!1);ne=document.createElement("div"),ne.className="applet_scaler",ne.style.position="relative",ne.style.display="block",ne.style.width=vt+"px",ne.style.height=ot+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ne,"66%"),je(te)>=5?(Ye.appletOnLoad=function(lt){var mt=Ve.querySelector(".ggb_preview");mt&&mt.parentNode.removeChild(mt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ne),window.GGBT_wsf_view&&$(window).trigger("resize"),Re(lt)},fe||ne.appendChild(Ne)):qe.appendChild(Ne),ne.appendChild(qe),fe||Ve.appendChild(ne),setTimeout(function(){on.resize()},1)}else{var We=document.createElement("div");We.className="applet_scaler",We.style.position="relative",We.style.display="block",We.appendChild(qe),Ve.appendChild(We),Ye.appletOnLoad=function(lt){on.resize(),Re(lt)}}function we(lt,mt){mt&&typeof mt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(lt,mt.appletOnLoad):renderGGBElement(lt),rt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",mt)}function ye(lt,mt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:lt,params:mt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ut){we(ut.article,ut.params)}),html5AppletsToProcess=null)},je(te)<5&&(lt.className+=" geogebraweb")):we(lt,mt)}if(it){scriptLoadStarted=!0;for(var Oe=0;Oe<qe.childNodes.length;Oe++){var $e=qe.childNodes[Oe].tagName;$e==="TABLE"&&(qe.removeChild(qe.childNodes[Oe]),Oe--)}if(ggbHTML5LoadedScript!==null){var Ze=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ze!=null&&Ze.parentNode.removeChild(Ze)}var Xe=document.createElement("script"),at=function(){ye(qe,Ye)};Xe.src=ue+se,ggbHTML5LoadedCodebaseIsWebSimple=ae,ggbHTML5LoadedCodebaseVersion=te,ggbHTML5LoadedScript=Xe.src,rt("GeoGebra HTML5 codebase loaded: '"+ue+"'.",Ye),!z&&(!x||x=="5.0")?(ae?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),at()):ue.requirejs?__webpack_require__.e(4510).then(function(){var lt=[__webpack_require__(4510)];at.apply(null,lt)}.bind(this)).catch(__webpack_require__.oe):(Xe.onload=at,Ve.appendChild(Xe))}else ye(qe,Ye);Ye.height=ot,Ye.width=vt},Ae=function(Ve,Ye,Ge){var it=Je(Ye.width,Ye.height,Ye.borderColor,Ge),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"+(Ge?" applet_screenshot_play":""),qe.appendChild(it);var vt=GGBAppletUtils.getScale(Ye,Ve,Ge);Ge?(Ve.appendChild(He()),window.GGBT_wsf_view||(Ve.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(qe,"66%"),Ve.appendChild(qe),vt!==1&&!isNaN(vt)&&(GGBAppletUtils.scaleElement(qe,vt),qe.style.width=Ye.width+"px",qe.style.height=Ye.height+"px",qe.parentNode.style.width=Ye.width*vt+"px",qe.parentNode.style.height=Ye.height*vt+"px"),on.resize=function(){Pe(Ve,it,qe,Ge)},window.addEventListener("resize",function(ot){on.resize()}),on.resize()};function Pe(Ve,Ye,Ge,it){if(Ve.contains(Ye)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ve.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ve)}var qe=GGBAppletUtils.getScale(Ce,Ve,it);Ge.parentNode!==null&&(!isNaN(qe)&&qe!==1?(GGBAppletUtils.scaleElement(Ge,qe),Ge.parentNode.style.width=Ce.width*qe+"px",Ge.parentNode.style.height=Ce.height*qe+"px"):(GGBAppletUtils.scaleElement(Ge,1),Ge.parentNode.style.width=Ce.width+"px",Ge.parentNode.style.height=Ce.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ve),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}on.onExitFullscreen=function(Ve,Ye){Ye.appendChild(Ve)};var Ue=function(Ve,Ye,Ge,it){Ae(Ve,Ye,!0);for(var qe=function(){var Qe=[];for(ot=0;ot<Ve.childNodes.length;ot++)Qe.push(Ve.childNodes[ot]);if(window.GGBT_wsf_view){var Fe=window.GGBT_wsf_view.renderFullScreen(Ve,Ye.id),Re=document.getElementById("fullscreencontainer"),ne=jQuery(Ve).find(".fullscreencontent");ne.length>0?(Fe.remove(),ne.attr("id","fullscreencontent").show(),jQuery(Re).append(ne),window.dispatchEvent(new Event("resize"))):Le(Fe,Ye,!1),window.GGBT_wsf_view.launchFullScreen(Re)}else re=it,Le(Ve,Ye,!1);if(!window.GGBT_wsf_view)for(ot=0;ot<Qe.length;ot++)Ve.removeChild(Qe[ot])},vt=Ve.getElementsByClassName("ggb_preview_play"),ot=0;ot<vt.length;ot++)vt[ot].addEventListener("click",qe,!1),vt[ot].addEventListener("ontouchstart",qe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ve),Be()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},He=function(){var Ve=document.createElement("div");if(Ve.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");}',Ge=document.createElement("style");Ge.styleSheet?Ge.styleSheet.cssText=Ye:Ge.appendChild(document.createTextNode(Ye)),document.getElementsByTagName("head")[0].appendChild(Ge)}return Ve},Je=function(Ve,Ye,Ge,it){var qe=document.createElement("div");qe.className="ggb_preview",qe.style.position="absolute",qe.style.zIndex="90",qe.style.width=Ve-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 vt="lightgrey";Ge!==void 0&&(Ge==="none"?vt="transparent":vt=Ge),qe.style.border="1px solid "+vt;var ot=document.createElement("img");if(ot.style.position="relative",ot.style.zIndex="1000",ot.style.top="-1px",ot.style.left="-1px",he!==null&&ot.setAttribute("src",he),ot.style.opacity=.7,me!==null){var Qe,Fe,Re;if(!it){Qe=document.createElement("img"),Qe.style.position="absolute",Qe.style.zIndex="1001",Qe.style.opacity=1,ot.style.opacity=.3,Fe=360,Fe>Ve/4*3&&(Fe=Ve/4*3),Re=Fe/5.8,Qe.setAttribute("src",me),Qe.setAttribute("width",Fe),Qe.setAttribute("height",Re);var ne=(Ve-Fe)/2,fe=(Ye-Re)/2;Qe.style.left=ne+"px",Qe.style.top=fe+"px",qe.appendChild(Qe)}}return qe.appendChild(ot),qe},st=function(Ve){return Ve=Ve.toLowerCase(),Ve==="html5"||Ve==="screenshot"?Ve:"html5"},_e=["web","webSimple","web3d","tablet","tablet3d","phone"],Ke=function(Ve,Ye){if(te=Ve,Ye){nt(te,!0);return}var Ge=!yt;if(Ge){var it=je(te);!isNaN(it)&&it<4.4&&(Ge=!1)}var qe,vt;window.location.protocol.substr(0,4)==="http"?qe=window.location.protocol:qe="http:";var ot=te.indexOf("//");ot>0?vt=te:ot===0?vt=qe+te:vt="https://www.geogebra.org/apps/5.2.814.0/";for(var Qe in _e)if(te.slice(_e[Qe].length*-1)===_e[Qe]||te.slice((_e[Qe].length+1)*-1)===_e[Qe]+"/"){nt(vt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ge&&!le.is3D&&!le.AV&&!le.SV&&!le.CV&&!le.EV2&&!le.CP&&!le.PC&&!le.DA&&!le.FI&&!le.PV&&!Me(Ce.showToolBar)&&!Me(Ce.showMenuBar)&&!Me(Ce.showAlgebraInput)&&!Me(Ce.enableRightClick)&&(!Ce.appName||Ce.appName=="classic")?vt+="webSimple/":vt+="web3d/",nt(vt,!1)},nt=function(Ve,Ye){if(Ve.requirejs){ue=Ve;return}Ve.slice(-1)!=="/"&&(Ve+="/"),ue=Ve,Ye===null&&(Ye=Ve.indexOf("http")===-1),E=Ye,se="web.nocache.js",ae=!1;var Ge=ue.split("/");Ge.length>1&&(!Ye&&Ge[Ge.length-2]==="webSimple"?(se="webSimple.nocache.js",ae=!0):_e.indexOf(Ge[Ge.length-2])>=0&&(se=Ge[Ge.length-2]+".nocache.js")),Ge=Ve.split("/"),te=Ge[Ge.length-3],te.substr(0,4)==="test"?te=te.substr(4,1)+"."+te.substr(5,1):(te.substr(0,3)==="war"||te.substr(0,4)==="beta")&&(te="5.0");var it=parseFloat(te);it!==NaN&&it<5&&Ve.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+it+" is deprecated. Using version latest instead."),Ke("5.0",Ye))},rt=function(Ve,Ye){window.console&&window.console.log&&(!Ye||typeof Ye.showLogging=="undefined"||Ye.showLogging&&Ye.showLogging!=="false")&&console.log(Ve)};Ce.material_id!==void 0?De(et):et();function et(){var Ve=Lt;x!==null?Ve=x:parseFloat(Ve)<5&&(Ve="5.0"),Ke(Ve,!1),z!==null&&nt(z,E),ge=!0}return on},GGBAppletUtils=function(){"use strict";function on(){return window.GGBT_wsf_edit!==void 0}function Lt(ge,x){x!=1?(ge.style.transformOrigin="0% 0% 0px",ge.style.webkitTransformOrigin="0% 0% 0px",ge.style.transform="scale("+x+","+x+")",ge.style.webkitTransform="scale("+x+","+x+")",ge.style.maxWidth="initial",ge.querySelector(".ggb_preview")!==null&&(ge.querySelector(".ggb_preview").style.maxWidth="initial"),ge.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ge.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ge.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ge.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ge.style.transform="none",ge.style.webkitTransform="none")}function Ce(ge,x,z,ie,oe,ee){var ue=null;if(ee!=null&&ee!="")for(var E=ge.parentNode;E!=null;)if((" "+E.className+" ").indexOf(" "+ee+" ")>-1){ue=E;break}else E=E.parentNode;var re=0,te=0,se=0,ae=0,he=0,me=0,ve=0;if(ue)re=ue.offsetWidth,te=Math.max(ie?ue.offsetWidth:0,ue.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(re=Math.min(window.innerWidth,document.documentElement.clientWidth),te=Math.min(window.innerHeight,document.documentElement.clientHeight),se=re):(re=window.innerWidth,te=window.innerHeight,se=window.innerWidth),ge){var pe=ge.getBoundingClientRect();pe.left>0&&pe.left<=re&&(oe===void 0||!oe)&&(document.dir==="rtl"?(he=re-pe.width-pe.left,me=se<=480?10:30):(me=pe.left,he=se<=480?10:30),ae=me+he)}if(ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var be=ge.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ae=40,ve=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ae=0,ve=40)}}return ge&&((z===void 0||!z)&&x>0&&x+ae<re?re=x:re-=ae,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(z===void 0||!z)&&(te-=ve)),{width:re,height:te}}function le(ge,x,z,ie,oe){if(ge.isScreenshoGenerator)return 1;var ee=ie!==void 0&&ie,ue=ge.noScaleMargin!=null&&ge.noScaleMargin,E=function(be){return be&&be!=="false"},re=E(ge.autoHeight),te=Ce(x,ge.width,z,re,ee&&window.GGBT_wsf_view||ue,oe),se=parseInt(te.width),ae=ge.width,he=ge.height;if(ae===void 0){var me=x.querySelector(".appletParameters");me&&(ae=me.offsetWidth,he=me.offsetHeight)}var ve=se/ae,pe=ee?1:te.height/he;return z!==void 0&&!z&&(ve=Math.min(1,ve),pe=Math.min(1,pe)),Math.min(ve,pe)}function yt(ge,x,z){var ie=1,oe,ee=!1;if(ge.hasOwnProperty("allowUpscale")&&(ee=ge.allowUpscale),ge.hasOwnProperty("scale")&&(ie=parseFloat(ge.scale),(isNaN(ie)||ie===null||ie===0)&&(ie=1),ie>1&&(ee=!0)),x&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ee=!0),!(ge.hasOwnProperty("disableAutoScale")&&ge.disableAutoScale))oe=le(ge,x,ee,z,ge.scaleContainerClass);else return ie;return ee&&(!ge.hasOwnProperty("scale")||ie===1)?oe:Math.min(ie,oe)}function a(ge){var x=Math.min(window.innerWidth,document.documentElement.clientWidth),z=Math.min(window.innerHeight,document.documentElement.clientHeight),ie=ge.getBoundingClientRect(),oe=(x-ie.width)/2,ee=(z-ie.height)/2;ee<0&&(ee=0),ge.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(oe<40?ge.style.left="40px":ge.style.left=oe+"px",ge.style.top=ee+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee<40?ge.style.top="40px":ge.style.top=ee+"px",ge.style.left=oe+"px")}function Te(ge,x){var z=ge.querySelector(".appletParameters");if(z){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(x.id!==z.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ge)}if(z.parentElement&&/fullscreen/.test(z.parentElement.className))return;var ie=yt(x,ge);on()&&z.setAttribute("data-param-scale",ie);for(var oe=null,ee=0;ee<ge.childNodes.length;ee++)if(ge.childNodes[ee].className!==void 0&&ge.childNodes[ee].className.match(/^applet_scaler/)){oe=ge.childNodes[ee];break}if(oe!==null&&oe.querySelector(".noscale")!==null)return;var ue=x.id!==void 0?x.id:"ggbApplet",E=window[ue];(E==null||!E.recalculateEnvironments)&&oe!==null&&!oe.className.match(/fullscreen/)&&(oe.parentNode.style.transform="",!isNaN(ie)&&ie!==1?(oe.parentNode.style.width=x.width*ie+"px",oe.parentNode.style.height=x.height*ie+"px",Lt(oe,ie)):(Lt(oe,1),oe.parentNode.style.width=x.width+"px",oe.parentNode.style.height=x.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&a(ge),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(z).parents(".content-added-content"))}}return{responsiveResize:Te,isFlexibleWorksheetEditor:on,positionCenter:a,getScale:yt,scaleElement:Lt}}();__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 on=n.location.search;return on.indexOf(J)!=-1||on.indexOf(K)!=-1}function q(on,Lt){}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(on){var Lt=s[L].bindings;s[L].bindings=function(){for(var Ce=Lt?Lt():{},le=on[webModule.__softPermutationId],yt=O;yt<le.length;yt++){var a=le[yt];Ce[a[O]]=a[P]}return Ce}};var t;function u(){return v(),t}function v(){if(!t){var on=o.createElement(Q);if(on.id=L,on.style.cssText=R+S,on.tabIndex=-1,o.body.appendChild(on),t=on.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Lt=document.compatMode==U?V:W;t.write(Lt+X),t.close()}}}function w(on){function Lt(le){function yt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var a=yt();if(a){le();return}function Te(){if(!a){if(!yt())return;a=!0,le(),o.removeEventListener&&o.removeEventListener(Z,Te,!1),ge&&clearInterval(ge)}}o.addEventListener&&o.addEventListener(Z,Te,!1);var ge=setInterval(function(){Te()},$)}function Ce(le){var yt=u(),a=yt.body,Te=yt.createElement(_);Te.language=ab,Te.crossOrigin=W,Te.src=le,webModule.__errFn&&(Te.onerror=function(){webModule.__errFn(L,new Error(bb+le))}),a.appendChild(Te)}Lt(function(){Ce(on)})}webModule.__startLoadingFragment=function(on){return C(on)},webModule.__installRunAsyncCode=function(on){var Lt=u(),Ce=Lt.body,le=Lt.createElement(_);le.language=ab,le.text=on,Ce.appendChild(le),Ce.removeChild(le)};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(on){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(on){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(on){var Lt=c[on];return Lt==null?null:Lt},r=d,webModule.__errFn=e}function B(){function on(ge){var x=ge.lastIndexOf(rb);x==-1&&(x=ge.length);var z=ge.indexOf(sb);z==-1&&(z=ge.length);var ie=ge.lastIndexOf(tb,Math.min(z,x));return ie>=O?ge.substring(O,ie+P):W}function Lt(ge){if(!ge.match(/^\w+:\/\//)){var x=o.createElement(ub);x.src=ge+vb,ge=on(x.src)}return ge}function Ce(){var ge=__gwt_getMetaProperty(wb);return ge!=null?ge:W}function le(){for(var ge=o.getElementsByTagName(_),x=O;x<ge.length;++x)if(ge[x].src.indexOf(xb)!=-1)return on(ge[x].src);return W}function yt(){var ge=o.getElementsByTagName(yb);return ge.length>O?ge[ge.length-P].href:W}function a(){var ge=o.location;return ge.href==ge.protocol+zb+ge.host+ge.pathname+ge.search+ge.hash}var Te=Ce();return Te==W&&(Te=le()),Te==W&&(Te=yt()),Te==W&&a()&&(Te=on(o.location.href)),Te=Lt(Te),Te}function C(on){return on.match(/^\//)||on.match(/^[a-zA-Z]+:\/\//)?on:webModule.__moduleBase+on}function D(){var on=[],Lt=O,Ce=[],le=[];function yt(ge){var x=le[ge](),z=Ce[ge];if(x in z)return x;var ie=[];for(var oe in z)ie[z[oe]]=oe;throw r&&r(ge,ie,x),null}if(__gwt_isKnownPropertyValue=function(ge,x){return x in Ce[ge]},webModule.__getPropMap=function(){var ge={};for(var x in Ce)Ce.hasOwnProperty(x)&&(ge[x]=yt(x));return ge},webModule.__computePropValue=yt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var a;try{a=Cb;var Te=a.indexOf(Db);Te!=-1&&(Lt=parseInt(a.substring(Te+P),$),a=a.substring(O,Te))}catch(ge){}return webModule.__softPermutationId=Lt,C(a+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},23216:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Ax:function(){return Te},Ds:function(){return ge},KI:function(){return z},SI:function(){return a},f1:function(){return yt}});var le=Ce(14185);function yt(ie){let oe=!0;if(ie.length>0){for(let ee=0;ee<ie.length;ee++)if(ie[ee].compile_success==0||!ie[ee].compile_success){oe=!1;break}}else oe=!1;return oe}function a(ie,oe=""){let ee=[];for(let ue=0;ue<ie.length;ue++){let E=ie[ue],re=oe?`${oe}/${E.name}`:`${E.name}`;ee.push({title:E.name,type:E.type,isLeaf:E.type!=="tree",key:re})}return ee}function Te(ie,oe,ee){for(let ue=0;ue<ie.length;ue++){let E=ie[ue];if(E.key===oe){E.children=ee;break}E.children&&Te(E.children,oe,ee)}return ie}function ge(ie,oe,ee){let ue;return function(){let E=this,re=arguments,te=function(){ue=null,ee||ie.apply(E,re)},se=ee&&!ue;clearTimeout(ue),ue=setTimeout(te,oe),se&&ie.apply(E,re)}}const x=!0,z=le.Z.API_SERVER},40254:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ue}});var le=Ce(59301),yt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},a=Ce(92310),Te=Ce.n(a),ge=Ce(29787),x=Ce(2859),z=Ce(49317),ie=Ce(76406),oe=(E,re,te)=>new Promise((se,ae)=>{var he=pe=>{try{ve(te.next(pe))}catch(be){ae(be)}},me=pe=>{try{ve(te.throw(pe))}catch(be){ae(be)}},ve=pe=>pe.done?se(pe.value):Promise.resolve(pe.value).then(he,me);ve((te=te.apply(E,re)).next())}),ue=({data:E,className:re,fullWidth:te,style:se={},onClose:ae,onOk:he,showFullTools:me,noAssociationId:ve})=>{const pe=(0,le.useRef)(null),be=(0,le.useRef)(null),je=(0,le.useRef)(null),ke=(0,le.useRef)(null),[Be,De]=(0,le.useState)(!1),[Se,Ee]=(0,le.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,le.useEffect)(()=>(je.current||(je.current=document.createElement("style"),document.head.appendChild(je.current)),E!=null&&E.visible?(document.body.setAttribute("data-custom","y-hidden"),je.current.innerHTML=" html { overflow-y: hidden; }",E!=null&&E.src&&Ie()):(document.body.removeAttribute("data-custom"),je.current&&(document.head.removeChild(je.current),je.current=null)),()=>{document.body.removeAttribute("data-custom"),je.current&&(document.head.removeChild(je.current),je.current=null)}),[E==null?void 0:E.visible]);const Ie=()=>oe(void 0,null,function*(){De(!0),Ee("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Pe=yield(0,ie.ZJ)(E==null?void 0:E.src);pe.current.src="",pe.current.src=Pe,pe.current.onload=function(){Ae()},De(!1),Ee("")}),Me=Pe=>oe(void 0,null,function*(){De(!0),Ee("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ue=yield(0,z.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:E.title,file:Pe.dataUrl}});Ue!=null&&Ue.id&&!ve?(yield(0,z.ZP)(`/api/attachments/${E.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ue==null?void 0:Ue.id,settings:JSON.stringify(Pe.state)}})).status===0&&he():Ue!=null&&Ue.id&&he(Ue),De(!1),Ee("")}),Le=()=>{const Pe=document.querySelector('a[href="https://markerjs.com/"]');Pe&&Pe.parentNode&&(Pe.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(He=>{const Je=document.querySelector(He.name);Je&&Je.setAttribute("title",He.title)})},Ae=()=>{be.current=new x.hP(pe.current),be.current.targetRoot=ke.current,be.current.addEventListener("render",Me),be.current.addEventListener("beforeclose",ae),me&&(be.current.availableMarkerTypes=be.current.ALL_MARKER_TYPES,be.current.uiStyleSettings.redoButtonVisible=!0,be.current.uiStyleSettings.notesButtonVisible=!0,be.current.uiStyleSettings.zoomButtonVisible=!0,be.current.uiStyleSettings.zoomOutButtonVisible=!0,be.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=be.current.uiStyleSettings,be.current.show(),E!=null&&E.snapshotData&&be.current.restoreState(E.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Le()},300)};return le.createElement(le.Fragment,null,(E==null?void 0:E.visible)&&le.createElement(ge.Z,{spinning:Be,tip:Se,style:{position:"absolute",width:"100vw"}},le.createElement("div",{ref:ke,className:Te()(yt.imageDimensions,re,te?yt.fullWidth:""),style:se},le.createElement("img",{className:yt.img,ref:pe}))))}},9057:function(on,Lt,Ce){"use strict";var le=Ce(59301),yt=Ce(77019),a=Ce(5269),Te=Ce(31691),ge=Ce(7939),x=Ce(35883),z=Ce(74501),ie=Ce(48136),oe=Ce(59301);const ee=(0,le.forwardRef)(({callback:ue,showSaveButton:E,value:re=""},te)=>{const se=(0,le.useRef)(),ae=[{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 "}]}]}],he=[{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}`}]}]}],me=be=>{se.current.setValue(se.current.getValue()+" "+be.value+" ")},ve=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:oe.createElement(yt.Z,{className:z.Z.lists,gutter:[10,10]},ae.map((be,je)=>oe.createElement(a.Z,{flex:"110px",className:z.Z.item},oe.createElement("div",null,oe.createElement(x.Z,{value:`$$${be.value}$$`}),be.name),oe.createElement("div",{className:z.Z.children},be.children.map((ke,Be)=>oe.createElement("div",{key:Be},oe.createElement("h1",null,ke.name),oe.createElement(yt.Z,{gutter:[10,10]},ke.data.map((De,Se)=>oe.createElement(a.Z,{key:Se,onClick:()=>me(De),className:z.Z.diamond},oe.createElement(x.Z,{value:"`$$"+De.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:oe.createElement(yt.Z,{className:z.Z.lists,gutter:[10,10]},he.map((be,je)=>oe.createElement(a.Z,{flex:"110px",className:z.Z.item},oe.createElement("div",null,oe.createElement(x.Z,{value:"`$$"+be.value+"$$`"}),be.name),oe.createElement("div",{className:z.Z.children},be.children.map((ke,Be)=>oe.createElement("div",{key:Be},ke.name&&oe.createElement("h1",null,ke.name),oe.createElement(yt.Z,{gutter:[10,10]},ke.data.map((De,Se)=>oe.createElement(a.Z,{key:Se,onClick:()=>me(De),className:z.Z.diamond},oe.createElement(x.Z,{value:"`$$"+De.value+"$$`"}))))))))))}],pe=()=>{var be=document.createElement("div");be.innerHTML=se.current.getValue();var je=be.innerText;return ue&&ue(je),je};return(0,le.useImperativeHandle)(te,()=>({getData:pe})),oe.createElement("div",{className:z.Z.mathWrap},oe.createElement(Te.default,{defaultActiveKey:"1",items:ve}),oe.createElement("math-field",{locale:"zh_cn",className:z.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:se,style:{width:800,marginTop:30,fontSize:18}},re||""),E&&oe.createElement("div",{className:z.Z.button},oe.createElement(ge.ZP,{size:"large",onClick:pe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Lt.Z=ee},90736:function(on,Lt,Ce){"use strict";var le=Ce(59301),yt=Ce(4977),a=Ce(7939),Te=Object.defineProperty,ge=Object.defineProperties,x=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ee=(te,se,ae)=>se in te?Te(te,se,{enumerable:!0,configurable:!0,writable:!0,value:ae}):te[se]=ae,ue=(te,se)=>{for(var ae in se||(se={}))ie.call(se,ae)&&ee(te,ae,se[ae]);if(z)for(var ae of z(se))oe.call(se,ae)&&ee(te,ae,se[ae]);return te},E=(te,se)=>ge(te,x(se));const re=({img:te,buttonProps:se={},styles:ae={},customText:he,ButtonText:me,ButtonClick:ve,Buttonclass:pe,ButtonTwo:be,imgStyles:je,loading:ke=!1,className:Be=""})=>le.createElement("section",{className:`tc animated fadeIn ${Be}`,style:ue({color:"#999",margin:"100px auto",visibility:ke?"hidden":"visible"},ae)},le.createElement("img",{src:te||yt,style:E(ue({},je),{pointerEvents:"none",userSelect:"none"})}),le.createElement("p",{className:"mt20 font14"},he||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),me&&le.createElement(a.ZP,ue({className:pe,onClick:ve},se),me),be&&be);Lt.Z=re},86974:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return pe}});var le=Ce(59301),yt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},a=Ce(7939),Te=Ce(70557),ge=Ce(34728),x=Ce(25399),z=Ce(76406),ie=Ce(84849),oe=Ce(90736),ee=Ce(14185),ue=Ce(52078),E=Ce(59301),re=Object.defineProperty,te=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,he=(be,je,ke)=>je in be?re(be,je,{enumerable:!0,configurable:!0,writable:!0,value:ke}):be[je]=ke,me=(be,je)=>{for(var ke in je||(je={}))se.call(je,ke)&&he(be,ke,je[ke]);if(te)for(var ke of te(je))ae.call(je,ke)&&he(be,ke,je[ke]);return be},ve=(be,je,ke)=>new Promise((Be,De)=>{var Se=Me=>{try{Ie(ke.next(Me))}catch(Le){De(Le)}},Ee=Me=>{try{Ie(ke.throw(Me))}catch(Le){De(Le)}},Ie=Me=>Me.done?Be(Me.value):Promise.resolve(Me.value).then(Se,Ee);Ie((ke=ke.apply(be,je)).next())}),pe=({editOffice:be="view",data:je,issaver:ke,onSaver:Be,theme:De,type:Se,filename:Ee,monacoEditor:Ie,className:Me,style:Le,close:Ae,onClose:Pe,hasMask:Ue,disabledDownload:He,onImgDimensions:Je,showNodata:st,recordInfo:_e})=>{const[Ke,nt]=(0,le.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[rt,et]=(0,le.useState)(""),[Ve,Ye]=(0,le.useState)(),Ge=window.ENV==="build"?"/react/build":"",it=location.host.startsWith("localhost")?ee.Z.PROXY_SERVER:ee.Z.API_SERVER,vt=10*(1024*1024),ot=(0,le.useRef)();je!=null&&je.startsWith("/api")&&Se!=="txt"&&(je=ee.Z.API_SERVER+je);const Qe=We=>We.substring(We.lastIndexOf("/")+1).split(".").pop();Ee&&Ie&&(Ie.filename=Ee),(0,le.useEffect)(()=>{var We,we;const ye=(we=(We=document.cookie)==null?void 0:We.replace(/\s/g,""))==null?void 0:we.split(";");ye==null||ye.map(Oe=>{let $e=Oe.split("=");$e[0]==="_educoder_session"&&et($e[1])})},[]),(0,le.useEffect)(()=>{Se==="office"&&(je.indexOf("bigfilescdn.")>-1||je.indexOf("bigfiles1")>-1?Ye({url:je,fileType:Qe(je),model:je.indexOf("model=edit")?"edit":"view"}):je.indexOf("coze")>-1?Ye({url:je,fileType:"doc",model:"view"}):Re())},[Se,je]);function Fe(We){return ve(this,null,function*(){We.data.type==="pdfdata"&&(Be(We.data.data),window.removeEventListener("message",Fe,!1)),console.log("mess---:",We.data)})}const Re=()=>ve(void 0,null,function*(){console.log("data:",je);let We=je;je.startsWith("http")||(We=location.origin+We);let we=new URL(We).pathname.split("/").pop();const ye=yield(0,ie.gJ)({attachment_id:we});ye.url=it+ye.url,Ye(ye)}),ne=()=>{if(je.startsWith("http")||je.startsWith("blob:")){fe();return}(0,z.Sv)(Ee||"educoder",je,Ee)},fe=()=>{_e&&(0,ue.fc)({id:_e==null?void 0:_e.id,watch_type:1,course_id:_e==null?void 0:_e.course_id}),(0,z.Nd)(Ee||"educoder",decodeURIComponent(je))};(0,le.useEffect)(()=>(window.addEventListener("message",Ne),()=>{window.removeEventListener("message",Ne)}),[]);const Ne=We=>{var we;((we=We==null?void 0:We.data)==null?void 0:we.type)==="closePop"&&Pe()};return E.createElement("div",{style:me({},Le||{}),className:`${Ue&&yt.bgBlack} ${Se?yt.wrp:"hide"}`},!!Se&&Ae&&E.createElement("div",{id:"closePop",className:yt.close,ref:ot},!!Je&&E.createElement(x.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ot.current},E.createElement("span",{onClick:()=>{Pe(),Je()}},E.createElement("i",{className:"icon-yulanpizhu"}))),!He&&window.parent===window&&E.createElement(x.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ot.current},E.createElement("span",{onClick:fe},E.createElement("i",{className:"icon-quxiaozhiding"}))),ke&&E.createElement(x.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>ot.current},E.createElement("span",{className:"",onClick:()=>{const We=document.getElementById("pdfiframe");window.addEventListener("message",Fe,!1),setTimeout(()=>{We.contentWindow.postMessage("getData","*")},300)}},E.createElement("i",{className:"icon-baocun"}))),E.createElement(x.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ot.current},E.createElement("span",{className:"",onClick:()=>{Pe()}},E.createElement("i",{className:"icon-guanbi1"})))),E.createElement("div",{className:`${yt[Me]} ${Me} ${yt.monaco} ${Se==="txt"?"show":"hide"}`},Se==="txt"&&E.createElement(E.Fragment,null,E.createElement(ge.ZP,me({},Ie)))),Se==="audio"&&E.createElement("audio",{controls:!0,src:`${(je==null?void 0:je.indexOf("http://"))>-1||(je==null?void 0:je.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${je}`,autoPlay:!0}),Se==="video"&&E.createElement(E.Fragment,null,(je==null?void 0:je.indexOf("http"))>-1?E.createElement("video",{controls:!0,src:`${je}`,autoPlay:!0}):E.createElement("video",{controls:!0,src:`data:video/mp4;base64,${je}`,autoPlay:!0})),Se==="office"&&Ve&&E.createElement("iframe",{src:`${Ge}/office.html?key=${Ve.key}&url=${btoa(Ve.url)}&callbackUrl=${it+(Ve.callbackUrl||"")}&fileType=${Ve.fileType}&title=${Ve.title||""}&model=${be}&officeServer=${ee.Z.ONLYOFFICE}&disabledDownload=${!!He}`}),Se==="html"&&E.createElement("iframe",{src:je+"&disposition=inline"}),Se==="pdf"&&E.createElement("iframe",{id:"pdfiframe",src:`${Ge}/js/pdf/index.html?filename=${Ee||"educoder.pdf"}&url=${encodeURIComponent(je)}&disabledDownload=${!!He}&model=${be}`}),Se==="image"&&E.createElement("img",{src:`${(je==null?void 0:je.indexOf("http://"))>-1||(je==null?void 0:je.indexOf("https://"))>-1?"":"data:image/png;base64,"}${je}`}),(Se==="other"||Se==="download")&&E.createElement(E.Fragment,null,st?E.createElement(oe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:E.createElement(a.ZP,{icon:E.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ne,disabled:He},"\u4E0B\u8F7D")}):E.createElement(a.ZP,{type:"primary",size:"middle",onClick:ne,disabled:He},E.createElement(Te.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Se==="flowChart"&&E.createElement("div",{className:"embed"},E.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${je||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(on,Lt,Ce){"use strict";Ce.d(Lt,{z:function(){return Ie},Z:function(){return Me}});var le=Ce(59301),yt=Ce(46214),a=Ce(20047),Te=Ce(64018),ge=Ce(16471),x=Ce(14185),z=Ce(76406),ie=Ce(15342),oe=Ce(44104),ee=Ce(7939),ue=Ce(1012),E=Ce(86974),re=Ce(59301),se=({html:Le})=>{const Ae=(0,le.useRef)(null),Pe=(0,le.useRef)(null),Ue=`.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,le.useEffect)(()=>{const He=Ae.current.attachShadow({mode:"open"});Pe.current=document.createElement("div"),Pe.current.className="markdown-body",Pe.current.innerHTML=Le,He.appendChild(Pe.current);const Je=document.createElement("style");return Je.textContent=Ue,He.appendChild(Je),()=>{He.innerHTML=""}},[]),(0,le.useEffect)(()=>{Pe.current&&(Pe.current.innerHTML=Le)},[Le]),re.createElement("div",{ref:Ae})};function ae(Le){const Ae=["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"],Pe=new RegExp(`\\b(${Ae.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Ue=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return Le.replace(Pe,"").replace(Ue,"").trim()}var he={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},me=Object.defineProperty,ve=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,je=(Le,Ae,Pe)=>Ae in Le?me(Le,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Le[Ae]=Pe,ke=(Le,Ae)=>{for(var Pe in Ae||(Ae={}))pe.call(Ae,Pe)&&je(Le,Pe,Ae[Pe]);if(ve)for(var Pe of ve(Ae))be.call(Ae,Pe)&&je(Le,Pe,Ae[Pe]);return Le};const Be="@\u2581\u2581@",De="@\u2581@",Se=/<pre[^>]*>/g;function Ee(Le){let Ae=document.createElement("div");return Ae.innerHTML=Le,Ae.childNodes.length===0?"":Ae.childNodes[0].nodeValue}const Ie=(Le,Ae)=>{Le=Le||"";const Pe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ue=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,He=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Je=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ae?Le.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Pe,(st,_e,Ke,nt,rt,et,Ve)=>{const Ye=_e||nt||et,Ge=Ke||rt||Ve||"?";return x.Z.API_SERVER+"/api/attachments/"+Ye+Ge+"&t="+(0,z.Jn)(Ye,Date.now())+(st.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Le=Le.replace(Je,(st,_e,Ke,nt,rt,et,Ve)=>{const Ye=_e||nt||et,Ge=Ke||rt||Ve||"?";return x.Z.API_SERVER+"/attachments/download/"+Ye+Ge+"&t="+(0,z.Jn)(Ye,Date.now())+(st.indexOf(")")>-1?")":"&")}).replace(Pe,(st,_e,Ke,nt,rt,et,Ve)=>{const Ye=_e||nt||et,Ge=Ke||rt||Ve||"?";return x.Z.API_SERVER+"/api/attachments/"+Ye+Ge+"&t="+(0,z.Jn)(Ye,Date.now())+(st.indexOf(")")>-1?")":"&")}).replace(Ue,(st,_e,Ke,nt,rt)=>{const et=_e||nt,Ve=Ke||rt||"";return'"'+x.Z.API_SERVER+"/api/attachments/"+et+Ve+et+Ve+"&t="+(0,z.Jn)(et,Date.now())}).replace(He,(st,_e,Ke,nt,rt)=>{const et=_e||nt,Ve=Ke||rt||"";return"("+x.Z.API_SERVER+"/files/uploads/"+et+Ve+et+Ve+"&t="+(0,z.Jn)(et,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),Le)};var Me=({value:Le="",edit:Ae=!1,className:Pe,showTextOnly:Ue,showLines:He,style:Je={},stylesPrev:st={},highlightKeywords:_e,showProgramFill:Ke,isProgramFill:nt,disabledFill:rt=!1,programFillValue:et,openEditor:Ve=()=>{},onFillChange:Ye=qe=>{},onFillBlur:Ge=()=>{},onFillFocus:it=()=>{}})=>{let qe=ae(String(Le||""));const vt=(0,le.useRef)(),ot=(0,le.useRef)(),[Qe,Fe]=(0,le.useState)(""),[Re,ne]=(0,le.useState)("office"),[fe,Ne]=(0,le.useState)([]),We=(0,le.useRef)("a"+(0,ue.Z)()),we={},ye=pt=>/<style[\s\S]*?>/i.test(pt||""),Oe=(pt,Mt,kt)=>{const xt=document.createElement(pt===De?"input":"textarea");xt.style.width="100%",xt.style.height=pt===De?"40px":"151px",xt.rows=5,xt.spellcheck=!1,xt.name="edu-program-fill",xt.placeholder="\u8BF7\u8F93\u5165",xt.dataset.id=Mt;const It=Object.keys(we).length;return we[It]=xt,`<span class="edu-program-fill-wrap ${pt===De?"":"show"}" style="width:${pt===De?"600px":"100%"}" title=${kt||""}><span>${xt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function $e(pt){return pt=pt.replace(/!\[.*?\]\(.*?\)/g,""),pt=pt.replace(/\[.*?\]\(.*?\)/g,""),pt=pt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),pt=pt.replace(/<embed.*?>/g,""),pt=pt.replace(/<img.*?>/g,""),pt=pt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),pt=pt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),pt=pt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),pt=pt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),pt}const Ze=pt=>!Ue&&ye(qe)?pt:pt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Mt,kt){let xt=kt.replace(/(\n|\r)/g,"").split("}"),It=[];return xt.map(Ut=>{Ut!=""&&It.push(`.${We.current} ${Ut}`)}),`<style>${It.join("}")}</style>`}),Xe=(0,le.useMemo)(()=>{(0,a.Iy)();try{const xt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,It=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ut=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,en=/\(\/attachments\/download\//g;qe=qe.replace(en,"("+x.Z.API_SERVER+"/attachments/download/").replace(xt,"("+x.Z.API_SERVER+"/api/attachments/").replace(It,'"'+x.Z.API_SERVER+"/api/attachments/").replace(Ut,'"'+x.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,`
`),vt.current.style.display="none"}catch(xt){}if(Ke){let xt=-1;return qe=qe.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(It,Ut,en){var St;return++xt,Oe(It,xt,(St=et==null?void 0:et[xt])==null?void 0:St.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Ze(qe||"")}</pre>`}let pt=Ze(qe);pt=(0,a.ZP)(pt);const Mt=(0,a.ez)();qe.match(/\[TOC\]/)&&(pt=pt.replace("<p>[TOC]</p>",(0,a.Qv)()),(0,a.Iy)()),pt=pt.replace(/(__special_katext_id_\d+__)/g,(xt,It)=>{const{type:Ut,expression:en}=Mt[It];return(0,ie.renderToString)(Ee(en)||"",{displayMode:Ut==="block",throwOnError:!1,output:"html"})}),pt=pt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,a.AL)();const kt=document.createElement("div");if(kt.innerHTML=pt,Ue)return kt.innerText;if(_e){const xt=_e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return ut(kt,xt),kt.innerHTML}return setTimeout(()=>wt(),500),kt.innerHTML},[qe,_e]);(0,le.useEffect)(()=>{ct.current&&ct.current.querySelectorAll(["input","textarea"]).forEach(Mt=>{Mt.oninput=at,Mt.onblur=lt,Mt.onfocus=mt})},[fe]),(0,le.useEffect)(()=>{var pt,Mt,kt,xt,It;if(et!=null&&et.length)try{const Ut=ct.current.querySelectorAll(".edu-program-fill-score"),en=ct.current.querySelectorAll('[name="edu-program-fill"]');for(const[St,jt]of en.entries())jt.value=((pt=et==null?void 0:et[St])==null?void 0:pt.value)||"",((Mt=et==null?void 0:et[St])==null?void 0:Mt.type)==="warning"?jt.className="program-fill-warning":((kt=et==null?void 0:et[St])==null?void 0:kt.type)==="success"?jt.className="program-fill-success":jt.className="";for(const[St,jt]of Ut.entries())jt.innerHTML=(xt=et==null?void 0:et[St])!=null&&xt.score?`${(It=et==null?void 0:et[St])==null?void 0:It.score}\u5206`:"";Ne(et)}catch(Ut){console.log(Ut,"error")}},[et]);const at=pt=>{fe[pt.target.dataset.id]=fe[pt.target.dataset.id]||{},fe[pt.target.dataset.id].value=pt.target.value,Ne([...fe]),Ye(fe,pt.target.dataset.id)},lt=pt=>{fe[pt.target.dataset.id]=fe[pt.target.dataset.id]||{},fe[pt.target.dataset.id].value=pt.target.value,Ne([...fe]),Ge(fe,pt.target.dataset.id)},mt=pt=>{fe[pt.target.dataset.id]=fe[pt.target.dataset.id]||{},fe[pt.target.dataset.id].value=pt.target.value,Ne([...fe]),it(fe,pt.target.dataset.id)};function ut(pt,Mt){return pt.childNodes.forEach(kt=>{var xt;if(kt.childNodes.length>0)ut(kt,Mt);else if(kt.nodeName!=="IMG")if(kt.innerHTML)kt.innerHTML=(xt=kt.innerHTML)==null?void 0:xt.replace(new RegExp(Mt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const It=document.createElement("span");It.innerHTML=kt.textContent.replace(new RegExp(Mt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),kt.replaceWith(It)}})}const ct=(0,le.useRef)();a.jb.WebkitLineClamp=He,He&&(Je=ke(ke({},Je),a.jb));function Pt(pt){let Mt=pt.target;if(Mt.tagName.toUpperCase()==="A"){let kt=Mt.getAttribute("href");if(kt.indexOf("office")>-1)pt.preventDefault(),Fe(kt),ne("office");else if(kt.indexOf("application/pdf")>-1)pt.preventDefault(),Fe(kt),ne("pdf");else if(kt.indexOf("text/html")>-1)pt.preventDefault(),Fe(kt),ne("html");else if(kt.startsWith("#")){pt.preventDefault();let xt=document.getElementById(kt.replace("#",""));xt&&xt.scrollIntoView(!0)}}}const wt=()=>{var pt;const Mt=(pt=ct.current)==null?void 0:pt.querySelectorAll("video");Mt==null||Mt.forEach(kt=>{if(kt.oncontextmenu=()=>!1,kt.src.indexOf(".m3u8")>-1&&!kt.canPlayType("application/vnd.apple.mpegurl")){if(ge.ZP.isSupported()){var xt=new ge.ZP;xt.loadSource(kt.src),xt.attachMedia(kt)}}})};(0,le.useEffect)(()=>{if(ct.current&&Xe&&Xe.match(Se)&&window.PR.prettyPrint(),ct.current)return ct.current.addEventListener("click",Pt),()=>{var pt;(pt=ct.current)==null||pt.removeEventListener("click",Pt),(0,a.AL)(),(0,a.Iy)()}},[Xe,ct.current,Pt]);const Bt=pt=>{pt.target.nodeName==="IMG"&&pt.target.className.indexOf("draw-flowchart")>-1?(vt.current.style.zIndex=1,vt.current.style.display="flex",vt.current.style.width=pt.target.clientWidth+"px",vt.current.style.height=pt.target.clientHeight+"px",vt.current.style.top=pt.target.offsetTop+"px",vt.current.style.left=pt.target.offsetLeft+"px",pt.target.id&&(ot.current=pt.target.id)):vt.current.style.display="none"},At=()=>{vt.current.style.display="none"};return(0,le.useEffect)(()=>{var pt;const Mt=kt=>{kt.preventDefault(),kt.clipboardData.setData("text",window.getSelection().toString())};return(pt=ct.current)==null||pt.addEventListener("copy",Mt),()=>{var kt;(kt=ct.current)==null||kt.removeEventListener("copy",Mt)}},[ct.current]),le.createElement("div",{style:{position:"relative"},onMouseLeave:At},Ue&&le.createElement("div",{ref:ct,className:`${he.mdBody} `},Xe),!Ue&&!ye(Xe)&&le.createElement("div",{ref:ct,style:ke({},Je),onMouseOver:Bt,className:`${Pe||""} ${rt?"disabled-fill":""} markdown-body ${he.mdBody} ${We.current}`,dangerouslySetInnerHTML:{__html:Xe}}),!Ue&&ye(Xe)&&le.createElement(se,{html:Xe}),le.createElement("div",{ref:vt,className:`${he.button} ${Ae?"":he.previewFlowChart}`},le.createElement(oe.Z,null,le.createElement(ee.ZP,{onClick:()=>{Ae?Ve(ot.current):(Fe(ot.current),ne("flowChart"))}},Ae?"\u7F16\u8F91":"\u9884\u89C8"))),le.createElement(E.Z,{close:!0,data:Qe,type:Qe!=null&&Qe.length?Re:"",style:ke({},st),onClose:()=>Fe("")}))}},22914:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return Te}});var le=Ce(59301),yt=Ce(33156),a=Ce(59301),Te=({defaultX:ge="40%",leftChild:x,rightChild:z,className:ie,hideResize:oe=!1})=>{const[ee,ue]=(0,le.useState)(ge),E=(0,le.useRef)();function re(){E.current=!0}(0,le.useEffect)(()=>{function ae(me){E.current&&(yt.Z.publish("resize-move-bar",me),ue(me.pageX))}function he(){E.current=!1}return window.addEventListener("mousemove",ae),window.addEventListener("mouseup",he),()=>{window.removeEventListener("mousemove",ae),window.removeEventListener("mouseup",he)}},[]);const te=typeof ee=="number"&&ee!==.01?`${ee}px`:ge,se=`calc(100% - ${oe?"0px":"4px"} - ${te})`;return a.createElement("div",{className:`split-panel-container ${ie}`},a.createElement("section",{style:{width:te,display:ee===.01?"none":""}},x),a.createElement("section",{className:"resize-x-bar",onMouseDown:re},a.createElement("a",{className:"btn-resize"},a.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},a.createElement("path",{d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"})))),a.createElement("section",{style:{width:se}},z))}},25173:function(on,Lt,Ce){"use strict";Ce.d(Lt,{cT:function(){return Se},pe:function(){return ke}});var le=Ce(59301),yt=Ce(94968),a=Ce(6767),Te=Ce(49317),ge=Ce(28209),x=Ce.n(ge),z=Ce(1012),ie=Ce(44283),oe=Ce(47257),ee=Ce.n(oe),ue=Object.defineProperty,E=Object.defineProperties,re=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,he=(Ie,Me,Le)=>Me in Ie?ue(Ie,Me,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Ie[Me]=Le,me=(Ie,Me)=>{for(var Le in Me||(Me={}))se.call(Me,Le)&&he(Ie,Le,Me[Le]);if(te)for(var Le of te(Me))ae.call(Me,Le)&&he(Ie,Le,Me[Le]);return Ie},ve=(Ie,Me)=>E(Ie,re(Me)),pe=(Ie,Me)=>{var Le={};for(var Ae in Ie)se.call(Ie,Ae)&&Me.indexOf(Ae)<0&&(Le[Ae]=Ie[Ae]);if(Ie!=null&&te)for(var Ae of te(Ie))Me.indexOf(Ae)<0&&ae.call(Ie,Ae)&&(Le[Ae]=Ie[Ae]);return Le},be=(Ie,Me,Le)=>new Promise((Ae,Pe)=>{var Ue=st=>{try{Je(Le.next(st))}catch(_e){Pe(_e)}},He=st=>{try{Je(Le.throw(st))}catch(_e){Pe(_e)}},Je=st=>st.done?Ae(st.value):Promise.resolve(st.value).then(Ue,He);Je((Le=Le.apply(Ie,Me)).next())});const{Dragger:je}=yt.default,ke=Ie=>{const Me="bf3c199c2470cb477d907b1e0917c17b",Le="5183666c72eec9e4";var Ae=x().enc.Utf8.parse(Me);let Pe=x().enc.Utf8.parse(Le);var Ue=x().AES.decrypt(Ie,Ae,{iv:Pe,mode:x().mode.CBC});return Ue.toString(x().enc.Utf8)};let Be;const De=Ie=>be(void 0,[Ie],function*({identifier:Me,oldFilename:Le,newFilename:Ae}){var Pe,Ue,He,Je,st,_e;const Ke=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});Ke.data=JSON.parse(ke(Ke.data));const nt=new OSS({endpoint:(Pe=Ke==null?void 0:Ke.data)==null?void 0:Pe.end_point,region:(Ue=Ke==null?void 0:Ke.data)==null?void 0:Ue.region,accessKeyId:(He=Ke==null?void 0:Ke.data)==null?void 0:He.access_key_id,accessKeySecret:(Je=Ke==null?void 0:Ke.data)==null?void 0:Je.access_key_secret,bucket:(st=Ke==null?void 0:Ke.data)==null?void 0:st.bucket,stsToken:(_e=Ke==null?void 0:Ke.data)==null?void 0:_e.security_token});return new Promise((rt,et)=>{console.log(11111,`${Me}/${Le}`,`${Me}/${Ae}`,Ke.data),nt.copy(`/${Me}/${Le}`,`/${Me}/${Ae}`).then(Ve=>{console.log("\u62F7\u8D1D\u6210\u529F",Ve)}).catch(Ve=>{console.log(Ve)})})}),Se=(Ie,Me,Le)=>be(void 0,null,function*(){var Ae,Pe,Ue,He,Je,st;Me.file_name=Ie.name;const _e=yield(0,Te.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",ke(_e.data)),_e.data=JSON.parse(ke(_e.data));const Ke=Ie.name.split(".");Ke.pop();const nt=Me.realFileName?Ke.join(""):(0,z.Z)(),rt=new(ee())({endpoint:(Ae=_e==null?void 0:_e.data)==null?void 0:Ae.end_point,region:(Pe=_e==null?void 0:_e.data)==null?void 0:Pe.region,accessKeyId:(Ue=_e==null?void 0:_e.data)==null?void 0:Ue.access_key_id,accessKeySecret:(He=_e==null?void 0:_e.data)==null?void 0:He.access_key_secret,bucket:(Je=_e==null?void 0:_e.data)==null?void 0:Je.bucket,stsToken:(st=_e==null?void 0:_e.data)==null?void 0:st.security_token});return new Promise((et,Ve)=>{var Ye;rt.multipartUpload(`${nt}`,new Blob([Ie],{type:Ie.type}),ve(me({timeout:200*1e3,partSize:102400},Le),{callback:{url:(Ye=_e==null?void 0:_e.data)==null?void 0:Ye.callback_url,host:_e==null?void 0:_e.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Te.rz)(Me)}})).then(function(Ge){var it;Ie.response=(it=Ge.data)==null?void 0:it.data,et(Ge==null?void 0:Ge.data)}).catch(function(Ge){Ve(Ge),console.log("err:",Ge)})})}),Ee=Ie=>{var Me=Ie,{user:Le,cancelUpload:Ae}=Me,Pe=pe(Me,["user","cancelUpload"]);const[Ue,He]=(0,le.useState)([]);let[Je,st]=(0,le.useState)();const _e={onRemove:nt=>{He([...Ue.filter(rt=>rt.name!==nt.name)]),Pe.onChange(Ue.filter(rt=>rt.name!==nt.name))},disabled:Pe.disabled,multiple:!0,fileList:Ue==null?void 0:Ue.map(nt=>nt.file),customRequest:()=>{},beforeUpload:nt=>be(void 0,null,function*(){let rt=Pe.maxSize||1073741824;if(Ue.filter(et=>et.name===nt.name).length){a.ZP.info(`${nt.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(nt==null?void 0:nt.size)>rt?(a.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${rt/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(Ue.push({name:nt.name,file:nt}),He([...Ue]),Pe.onChange(Ue),!1)})},Ke=(nt,rt)=>be(void 0,null,function*(){var et,Ve,Ye,Ge,it,qe;rt.file_name=nt.name;const vt=nt.name,ot=yield(0,Te.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(ot.data=JSON.parse(ke(ot.data)),(ot==null?void 0:ot.status)!==0){Ue[Ue.findIndex(Re=>Re.name===vt)].status="error",Ue[Ue.findIndex(Re=>Re.name===vt)].file.status="error",Pe.onChange(Ue),a.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}Je=new(ee())({endpoint:(et=ot==null?void 0:ot.data)==null?void 0:et.end_point,region:(Ve=ot==null?void 0:ot.data)==null?void 0:Ve.region,accessKeyId:(Ye=ot==null?void 0:ot.data)==null?void 0:Ye.access_key_id,accessKeySecret:(Ge=ot==null?void 0:ot.data)==null?void 0:Ge.access_key_secret,bucket:(it=ot==null?void 0:ot.data)==null?void 0:it.bucket,stsToken:(qe=ot==null?void 0:ot.data)==null?void 0:qe.security_token}),console.log(nt,"file"),st(Je);const Qe=nt.name.split(".");Qe.pop();const Fe=vt.indexOf(".")>-1?rt.realFileName?Qe.join("."):(0,z.Z)():vt;return new Promise((Re,ne)=>{var fe;try{Je.multipartUpload(`${Pe.identifier}/${Fe}${vt.indexOf(".")>-1?"."+vt.split(".").pop():""}`,new Blob([nt.file],{type:nt.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Ne,We,we)=>{try{console.log("\u8FDB\u5EA6",Ne,We,we);const ye=Ue.findIndex(Oe=>Oe.name===vt);Ue[ye].file.percent=Ne*100,Ue[ye].tempCheckpoint=We,He([...Ue])}catch(ye){}},checkpoint:Ue[Ue.findIndex(Ne=>Ne.name===vt)].tempCheckpoint,callback:{customValue:{id:vt+""},url:(fe=ot==null?void 0:ot.data)==null?void 0:fe.callback_url,host:ot==null?void 0:ot.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Te.rz)(rt)}}).then(function(Ne){var We,we,ye;const Oe=Ue.findIndex(Ze=>Ze.name===vt);let $e="done";if(((We=Ne.data)==null?void 0:We.status)===0){nt.response=(we=Ne.data)==null?void 0:we.data;const Ze=Ue.findIndex(Xe=>Xe.name===vt);Ue[Ze].status="done",Ue[Ze].file.status="done"}else a.ZP.warning((ye=Ne.data)==null?void 0:ye.message),$e="error";Ue[Oe].status=$e,Ue[Oe].file.status=$e,Pe.onChange(Ue),Re(Ne==null?void 0:Ne.data)}).catch(function(Ne){Ue[Ue.findIndex(We=>We.name===vt)].status="error",Ue[Ue.findIndex(We=>We.name===vt)].file.status="error",a.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),He([...Ue]),Pe.onChange(Ue),ne(Ne),console.log("err:",Ne)})}catch(Ne){}})});return(0,le.useEffect)(()=>{Ue.every(nt=>nt==="done"||nt==="error")&&Pe.onComplete(Ue)},[Ue]),(0,le.useEffect)(()=>{Ae&&(Je==null||Je.cancel())},[Ae]),(0,le.useEffect)(()=>{Pe.uploading&&Ue.map(nt=>be(void 0,null,function*(){var rt;if((!nt.status||nt.status==="error")&&!Ae){nt.status="uploading",nt.file.status="uploading";const et=yield Ke(nt,{login:(rt=Le==null?void 0:Le.userInfo)==null?void 0:rt.login,container_type:Pe.container_type,container_id:Pe.container_id,description:Pe.description,realFileName:Pe.realFileName})}}))},[Pe.uploading]),le.createElement(je,ve(me({},_e),{height:Pe.height,className:Pe.className}),le.createElement("p",{className:"ant-upload-hint"},Pe.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Lt.ZP=(0,ie.connect)(({loading:Ie,globalSetting:Me,user:Le})=>({globalSetting:Me,loading:Ie.models.competitions,user:Le}))(Ee)},28267:function(on,Lt,Ce){"use strict";Ce.d(Lt,{h:function(){return be}});var le=Ce(59301),yt=Ce(82326),a=Ce(28284),Te=Ce(7939),ge=Ce(89780),x=Ce.n(ge),z=Ce(88319),ie=Ce(94896),oe=Object.defineProperty,ee=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,se=(je,ke,Be)=>ke in je?oe(je,ke,{enumerable:!0,configurable:!0,writable:!0,value:Be}):je[ke]=Be,ae=(je,ke)=>{for(var Be in ke||(ke={}))re.call(ke,Be)&&se(je,Be,ke[Be]);if(E)for(var Be of E(ke))te.call(ke,Be)&&se(je,Be,ke[Be]);return je},he=(je,ke)=>ee(je,ue(ke));const me=yt.default.Option,ve={labelCol:{span:4},wrapperCol:{span:20}},pe={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"]};Lt.Z=({callback:je,onCancel:ke})=>{const[Be,De]=(0,le.useState)("python");function Se(Ie){De(pe[Ie][1])}function Ee(Ie){je(Ie)}return le.createElement(a.default,he(ae({},ve),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ee,style:{width:500}}),le.createElement(a.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},le.createElement(yt.default,{getPopupContainer:Ie=>Ie.parentNode,onChange:Se},Object.keys(pe).map(Ie=>le.createElement(me,{key:Ie,value:Ie},pe[Ie][0])))),le.createElement(a.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},le.createElement(be,{mode:Be})),le.createElement("div",{className:"flex-container flex-end"},le.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(Te.ZP,{type:"ghost",onClick:ke},"\u53D6\u6D88")))};function be({value:je,onChange:ke,mode:Be,options:De={}}){const Se=(0,le.useRef)(),[Ee,Ie]=(0,le.useState)();return(0,le.useEffect)(()=>{if(Ee){let Me=function(Le){const Ae=Le.getValue();ke&&ke(Ae)};return Ee.on("change",Me),()=>{Ee.off("change",Me)}}},[Ee,ke]),(0,le.useEffect)(()=>{Ee&&Ee.setOption("mode",Be)},[Ee,Be]),(0,le.useEffect)(()=>{Ee&&(je!==Ee.getValue()||je==="")&&setTimeout(()=>{Ee.setValue(je||"")},300)},[Ee,je]),(0,le.useEffect)(()=>{if(Se.current&&!Ee){const Me=x().fromTextArea(Se.current,ae({mode:Be,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},De));Ie(Me)}},[Se.current,Ee]),le.createElement("div",{className:"my-codemirror-container"},le.createElement("textarea",{ref:Se}))}},39116:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return nn}});var le=Ce(59301),yt=Ce(44283),a=Ce(89780),Te=Ce.n(a),ge=Ce(76374),x=Ce(88319),z=Ce(6313),ie=Ce(25717),oe=Ce(99498),ee=Ce(25419),ue=Ce(67549),E=Ce(35883),re=({value:tn="",className:dn,showTextOnly:Cn,showLines:Pn,style:Hn={}})=>{const Gn=(0,le.useMemo)(()=>"",[tn]);return le.createElement(le.Fragment,null,le.createElement("div",{dangerouslySetInnerHTML:{__html:Gn}}))},te=Object.defineProperty,se=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,pe=(tn,dn,Cn)=>dn in tn?te(tn,dn,{enumerable:!0,configurable:!0,writable:!0,value:Cn}):tn[dn]=Cn,be=(tn,dn)=>{for(var Cn in dn||(dn={}))me.call(dn,Cn)&&pe(tn,Cn,dn[Cn]);if(he)for(var Cn of he(dn))ve.call(dn,Cn)&&pe(tn,Cn,dn[Cn]);return tn},je=(tn,dn)=>se(tn,ae(dn));let ke=[{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:tn,title:dn,icon:Cn,actionName:Pn,className:Hn="",children:Gn}){function _n(){tn(Pn)}return le.createElement("a",{title:dn,className:Hn,onClick:_n},le.createElement("i",{className:`${Cn}`}),Gn)}var De=({watch:tn,showNullButton:dn,showNullProgramButton:Cn,onActionCallback:Pn,fullScreen:Hn,insertTemp:Gn,hidetoolBar:_n,extraUse:Yn})=>{const Wn=[...ke,{title:`${tn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${tn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return le.createElement("ul",{className:"markdown-toolbar-container"},!_n&&Wn.map((yr,cr)=>le.createElement("li",{key:cr},yr.actionName?le.createElement(Be,je(be({},yr),{onActionCallback:Pn})):le.createElement("span",{className:"v-line"}))),dn?le.createElement("li",null,le.createElement(Be,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Pn},le.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Cn?le.createElement(le.Fragment,null,le.createElement("li",null,le.createElement(Be,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Pn},le.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),le.createElement("li",null,le.createElement(Be,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Pn},le.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Gn&&le.createElement("li",null,le.createElement(Be,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Gn}`,onActionCallback:Pn},le.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Yn&&le.createElement("li",null,Yn),le.createElement("li",{className:"btn-full-screen"},le.createElement(Be,{icon:`${Hn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Hn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Pn})))},Se=Ce(88487),Ee=Ce(28284),Ie=Ce(37568),Me=Ce(7939),Le=Object.defineProperty,Ae=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,st=(tn,dn,Cn)=>dn in tn?Le(tn,dn,{enumerable:!0,configurable:!0,writable:!0,value:Cn}):tn[dn]=Cn,_e=(tn,dn)=>{for(var Cn in dn||(dn={}))He.call(dn,Cn)&&st(tn,Cn,dn[Cn]);if(Ue)for(var Cn of Ue(dn))Je.call(dn,Cn)&&st(tn,Cn,dn[Cn]);return tn},Ke=(tn,dn)=>Ae(tn,Pe(dn));const nt={labelCol:{span:4},wrapperCol:{span:20}};var rt=({callback:tn,onCancel:dn})=>{function Cn(Pn){tn(Pn)}return le.createElement(Ee.default,Ke(_e({},nt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Cn,style:{width:500}}),le.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},le.createElement(Ie.default,null)),le.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},le.createElement(Ie.default,null)),le.createElement("div",{className:"flex-container flex-end"},le.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(Me.ZP,{type:"ghost",onClick:dn},"\u53D6\u6D88")))},et=Ce(28267),Ve=Ce(53332),Ye=Ce(62957),Ge=Ce(77019),it=Ce(40254),qe=Ce(59301),vt=({callback:tn,onCancel:dn})=>{const Cn=document.createElement("canvas"),Pn=Cn.getContext("2d");Cn.width=1e3,Cn.height=800,Pn.fillStyle="#ffffff",Pn.fillRect(0,0,Cn.width,Cn.height);const Hn=Cn.toDataURL("image/png");return qe.createElement(Ye.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},qe.createElement(Ge.Z,{style:{height:"100vh"}},qe.createElement(it.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Hn,visible:!0,title:String(Date.now())},onOk:Gn=>{tn({src:Gn.url})},onClose:dn})))},ot=Ce(36207),Qe=Ce(5269),Fe=Ce(6767),Re={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ne=Ce(59301),Ne=(0,le.forwardRef)(({onCancel:tn,editImgId:dn,callback:Cn},Pn)=>{let Hn=(0,le.useRef)(),Gn=(0,le.useRef)(),_n=(0,le.useRef)(),Yn=(0,le.useRef)(!1);const Wn=(0,le.useRef)(!1);console.log("ref:",Pn);const[yr,cr]=(0,le.useState)(0),[cn,An]=(0,le.useState)("100vh");return(0,le.useEffect)(()=>{cr(1)},[]),(0,le.useImperativeHandle)(Pn,()=>({setHeight:An})),ne.createElement("div",{ref:Wn,className:"body-overflow-initial"},ne.createElement(ot.Z,{width:"100vw",height:cn,footer:null,closable:!0,placement:"bottom",open:!!yr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Re.drawerWrap}`,onClose:()=>{window.saveDrawData(qn=>{Cn({src:`/api/attachments/${qn}`,id:qn})})},title:ne.createElement(Ge.Z,{align:"middle"},ne.createElement(Qe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ne.createElement(Qe.Z,{onClick:()=>{An(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(qn=>{if(qn===null){Fe.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Fe.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Cn({src:`/api/attachments/${qn}`,id:qn,disabledClose:!0})})}},ne.createElement(Me.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ne.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${dn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Gn})))}),We=Ce(14185),we=Ce(47889),ye=Ce(4875);const Oe=we.ZP.Group,$e={margin:"0 8px"};var Ze=({callback:tn,onCancel:dn})=>{function Cn(Pn){tn(Pn)}return le.createElement(Ee.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Cn},le.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},le.createElement("span",{style:$e},"\u5355\u5143\u683C\u6570\uFF1A"),le.createElement("span",{style:$e},"\u884C\u6570"),le.createElement(Ee.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},le.createElement(ye.Z,null)),le.createElement("span",{style:$e},"\u5217\u6570"),le.createElement(Ee.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},le.createElement(ye.Z,null))),le.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},le.createElement("span",{style:$e},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),le.createElement(Ee.default.Item,{name:"align"},le.createElement(Oe,null,le.createElement(we.ZP,{value:"default"},le.createElement("i",{className:"fa fa-align-justify"})),le.createElement(we.ZP,{value:"left"},le.createElement("i",{className:"fa fa-align-left"})),le.createElement(we.ZP,{value:"center"},le.createElement("i",{className:"fa fa-align-center"})),le.createElement(we.ZP,{value:"right"},le.createElement("i",{className:"fa fa-align-right"}))))),le.createElement("div",{className:"flex-container flex-end"},le.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(Me.ZP,{type:"ghost",onClick:dn},"\u53D6\u6D88")))},Xe=Ce(58755),at=Ce(84915),lt=Ce.n(at),ut=(0,le.forwardRef)(({use3d:tn,width:dn,height:Cn,callback:Pn,showSaveButton:Hn},Gn)=>{const _n=(0,le.useRef)(),Yn=(0,le.useRef)(),[Wn,yr]=(0,le.useState)(!1),cr=(0,le.useRef)({id:_n,appName:"graphing",width:dn||1e3,height:Cn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,le.useEffect)(()=>{Yn.current=new(lt())(cr.current,!0),window.onload=function(){Yn.current.inject("applet_container")}},[]);const cn=()=>{var An=window.ggbApplet.getPNGBase64(1,!0,72);return Pn&&Pn(An),An};return(0,le.useEffect)(()=>{cr.current.appName=Wn?"3D":"graphing",Yn.current.inject("applet_container")},[Wn]),(0,le.useEffect)(()=>{yr(tn)},[tn]),(0,le.useImperativeHandle)(Gn,()=>({getImgData:cn})),le.createElement(le.Fragment,null,le.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:_n}),le.createElement(Ge.Z,{align:"middle"},le.createElement(Qe.Z,{flex:1},le.createElement(Xe.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Wn,onChange:An=>yr(An)})),le.createElement(Qe.Z,null,le.createElement(Me.ZP,{size:"large",onClick:cn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ct=Ce(9057);const Pt="link",wt="upload-image",Bt="add-flowchart",At="draw-image",pt="add-flowchart",Mt="code-block",kt="add-table",xt="------------",It={default:xt,left:`:${xt}`,center:`:${xt}:`,right:`${xt}:`};var Ut=Ce(79006),en=Ce(76406);function St(){}let jt=0;const Ht=1e4,Qt="\u2581",sn="@\u2581\u2581@",wn="@\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`,Fn=["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(tn){return/^\d+$/.test(tn)?`${tn}px`:tn}const un=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Tn={[un+"-B"]:"bold",[un+"-I"]:"italic"},Mn={[Pt]:"\u6DFB\u52A0\u94FE\u63A5",[Mt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[wt]:"\u6DFB\u52A0\u56FE\u7247",[At]:"\u6DFB\u52A0\u753B\u56FE",[Bt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[kt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var nn=({defaultValue:tn="",onChange:dn,width:Cn="100%",height:Pn=400,miniToolbar:Hn=!1,isFocus:Gn=!1,watch:_n,insertTemp:Yn,mode:Wn="markdown",id:yr="markdown-editor-id",showResizeBar:cr=!1,noStorage:cn=!1,showNullButton:An=!1,showNullProgramButton:qn=!1,hidetoolBar:wr=!1,fullScreen:Rt=!1,onBlur:Xt,onCMBeforeChange:Et,onFullScreen:Dt,className:Tt="",disablePaste:_t=!1,disabled:bt=!1,disabledFill:Zt=!1,placeholder:Kt="",values:Yt="",extraUse:Ft,onAddBlank:$t})=>{const[zt,Wt]=(0,le.useState)(null),[hn,mn]=(0,le.useState)(tn),[In,er]=(0,le.useState)(_n),[ar,fr]=(0,le.useState)(Rt),[Jn,Kn]=(0,le.useState)(""),[$n,dr]=(0,le.useState)(0),[Tr,Cr]=(0,le.useState)(Pn),[Or,Vn]=(0,le.useState)(!1),[xr,hr]=(0,le.useState)(0),[Hr,Xr]=(0,le.useState)(0),Ur=(0,le.useRef)(),Kr=(0,le.useRef)(),ri=(0,le.useRef)(),Fr=(0,le.useRef)(),qr=(0,le.useRef)(),Pr=(0,le.useRef)(),ei=(0,yt.useDispatch)();(0,le.useEffect)(()=>{const Nn=window.scrollY||window.pageYOffset;mn(Yt),zt==null||zt.setValue(Yt),window.scrollTo(0,Nn)},[Yt]),(0,le.useEffect)(()=>{Dt==null||Dt(ar)},[ar]),(0,le.useEffect)(()=>{if(Ur.current){let Nn=function(Un,rr){var Gr;if(_t){rr.preventDefault();return}const wi=rr.clipboardData;if(wi){const ci=wi.types.toString(),ji=wi.items;if(ci==="Files"||wi.types.indexOf("Files")>-1){if(rr.preventDefault(),Wn=="stex")return;try{let Ci=ji[1];((Gr=ji[0])==null?void 0:Gr.kind)==="file"&&(Ci=ji[0]);const Si=Ci.getAsFile(),Ni=Si.name.split(".").pop();(0,Ve.I)(Si,Mi=>{var Pi,ro,vo;Mi.id?((Pi=Si==null?void 0:Si.type)==null?void 0:Pi.indexOf("image"))>-1?Sn.replaceSelection(`<img width="100%" src="/api/attachments/${Mi.id}?type=${Mi.content_type})" alt="" />`):((ro=Si==null?void 0:Si.type)==null?void 0:ro.indexOf("video"))>-1?Sn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Mi.id}"></video>`):((vo=Si==null?void 0:Si.type)==null?void 0:vo.indexOf("pdf"))>-1?Sn.replaceSelection(`<a href="/api/attachments/${Mi.id}?type=${Si.type}&disposition=inline" target="_blank">${Si.name}</a>`):Fn.includes(Ni)?Sn.replaceSelection(`<a href="/api/attachments/${Mi.id}?type=office&disposition=inline" target="_blank">${Si.name}</a>`):Sn.replaceSelection(`[${Si.name}](/api/attachments/${Mi.id}?type=${Mi.content_type})`):(Mi==null?void 0:Mi.status)===401&&(document.location.href="/user/login")})}catch(Ci){Fe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Sn=Te().fromTextArea(Ur.current,{mode:Wn,lineNumbers:!Hn,lineWrapping:!0,value:tn,autoCloseTags:!0,autoCloseBrackets:!0});return Sn.on("keyup",function(Un,rr){rr.keyCode===8&&(Un.getValue()==""?Sn.setOption("placeholder",Kt):Sn.setOption("placeholder",null))}),Sn.on("keydown",function(Un,rr){if(rr.keyCode===8){var Gr=ki(Un);Gr&&rr.preventDefault()}}),Gn&&Sn.focus(),Sn.on("paste",Nn),bt&&Sn.on("beforeChange",function(Un,rr){(rr.origin==="paste"||rr.origin==="+input")&&rr.cancel()}),Wt(Sn),()=>{Sn.off("paste",Nn)}}},[]);const ui=(0,le.useCallback)(()=>{if(Kr.current)try{}catch(Nn){console.log(Nn,"---- to set md editor body height")}},[Tr,Kr,ar]);(0,le.useEffect)(()=>{function Nn(){let Sn=new ge.Z(Un=>{for(let rr of Un)(rr.target.offsetHeight>0||rr.target.offsetWidth>0)&&(ui(),zt.setSize("100%","100%"),zt.refresh())});return Sn.observe(Ur.current.parentElement),Sn}if(zt){const Sn=Nn();return()=>{var Un,rr;(Un=Ur.current)!=null&&Un.parentElement&&Sn.unobserve((rr=Ur.current)==null?void 0:rr.parentElement)}}},[zt,ui]),(0,le.useEffect)(()=>{if(zt){let Nn=[];for(const[Sn,Un]of Object.entries(Tn)){let rr={[Sn]:()=>{mi(Un)}};Nn.push(rr),zt.addKeyMap(rr)}return()=>{for(let Sn of Nn)zt.removeKeyMap(Sn)}}},[zt]),(0,le.useEffect)(()=>{Rt!==ar&&fr(Rt)},[Rt]),(0,Ut.Z)(()=>{if(!cn&&$n>0){let Nn=new Date().getTime(),Sn=window.sessionStorage.getItem(yr);Nn>=$n+Ht&&(!Sn||Sn!==hn)&&(window.sessionStorage.setItem(yr,hn),Vn(!0))}},Ht),(0,le.useEffect)(()=>{er(_n)},[zt,_n]),(0,le.useEffect)(()=>{zt&&Gn&&zt.focus()},[zt,Gn]),(0,le.useEffect)(()=>{if(In&&zt){let Nn=function(Un){let rr=Un.target;if(Fr.current){let Gr=rr.scrollTop/rr.scrollHeight;Fr.current.scrollTop=Fr.current.scrollHeight*Gr}};const Sn=zt.getScrollerElement();return Sn.addEventListener("scroll",Nn),()=>{Sn.removeEventListener("scroll",Nn)}}},[zt,In]),(0,le.useEffect)(()=>{if(zt&&Et){let Nn=function(Sn,Un){Et(Sn,Un)};return zt.on("beforeChange",Nn),()=>{zt.off("beforeChange",Nn)}}},[zt,Et]),(0,le.useEffect)(()=>{if(zt&&Xt){let Nn=function(){Xt(zt.getValue())};return zt.on("blur",Nn),()=>{zt.off("blur",Nn)}}},[zt,Xt]);function ki(Nn,Sn){var Un=Nn.getDoc(),rr=Un.getCursor(),Gr=Un.getLine(rr.line),wi=Gr.charAt(rr.ch-1),ci=Gr.lastIndexOf("@\u2581@",rr.ch),ji=Gr.lastIndexOf("@\u2581\u2581@",rr.ch),Ci=ci>ji?ci:ji,Si=ci>ji?3:4;if(sn.indexOf(wi)===-1)return null;if(console.log("change1:",Sn,Nn,Gr,rr,Ci,ci,ji,wi),Ci>=0&&rr.ch-Ci<5){var Ni=Ci+Si;return Un.replaceRange("",{line:rr.line,ch:Ci},{line:rr.line,ch:Ni}),{line:rr.line,ch:Ni}}return null}(0,le.useEffect)(()=>{if(zt){let Nn=function(Sn,Un){const rr=Sn.getValue();mn(rr),dr(new Date().getTime()),Sn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),dn&&(qn?dn(rr,kn(rr)):dn(rr))};return zt.on("change",Nn),()=>{zt.off("change",Nn)}}},[zt,dn]),(0,le.useEffect)(()=>{if(zt)if(tn==null)zt.setValue(""),mn("");else{const Nn=window.scrollY||window.pageYOffset;tn!==zt.getValue()&&(zt.setValue(tn),mn(tn),zt.setCursor(bt?1:zt.lineCount(),0),window.scrollTo(0,Nn))}},[zt,tn]);const mi=(0,le.useCallback)(Nn=>{const Sn=zt.getCursor(),Un=zt.getSelection();let rr=Un.split(`
`);switch(Nn){case"bold":return zt.replaceSelection("**"+Un+"**"),Un===""&&zt.setCursor(Sn.line,Sn.ch+2),zt.focus();case"italic":return zt.replaceSelection("*"+Un+"*"),Un===""&&zt.setCursor(Sn.line,Sn.ch+1),zt.focus();case"code":return zt.replaceSelection("`"+Un+"`"),Un===""&&zt.setCursor(Sn.line,Sn.ch+1),zt.focus();case"inline-latex":return(0,en.Ye)(ei)?void 0:(Kn("inline-latex"),zt.focus());case"latex":return zt.replaceSelection("```latex\n"+Un+"\n```"),zt.setCursor(Sn.line+1,Un.length+1),zt.focus();case"line-break":return zt.replaceSelection(`<br/>
`),zt.focus();case"list-ul":return Un===""?zt.replaceSelection("- "+Un):zt.replaceSelection(rr.map(Gr=>Gr===""?"":`- ${Gr}`).join(`
`)),zt.focus();case"list-ol":return Un===""?zt.replaceSelection("1. "+Un):zt.replaceSelection(rr.map((Gr,wi)=>Gr===""?"":`${wi+1}. ${Gr}`).join(`
`)),zt.focus();case"add-null-ch":$t==null||$t();return;case"add-signal":return Un===""&&zt.setCursor(Sn.line,Sn.ch),zt.replaceSelection(wn),zt.focus();case"add-multiple":return Un===""&&zt.setCursor(Sn.line,Sn.ch),zt.replaceSelection(sn),zt.focus();case"inster-template-1":return Un===""&&zt.setCursor(Sn.line,Sn.ch),zt.replaceSelection(Bn),zt.focus();case"eraser":return zt.setValue(""),zt.focus();case"trigger-watch":return er(!In),zt.focus();case"trigger-full-screen":return fr(!ar),zt.focus();case Pt:Kn(Pt);return;case Mt:Kn(Mt);return;case wt:Kn(wt);return;case At:Kn(At);return;case"maths-latex":if((0,en.Ye)(ei))return;Kn("maths-latex");return;case Bt:qr.current="",sessionStorage.removeItem("file_id"),Kn(Bt);return;case kt:Kn(kt);return;default:throw new Error}},[zt,In,ar]),xi=(0,le.useCallback)((Nn,Sn)=>{var Un,rr,Gr,wi,ci,ji;Nn!=null&&Nn.disabledClose||Kn("");const{src:Ci,alt:Si,id:Ni}=Nn||{};switch(Jn){case Pt:const{title:go,link:Ao}=Nn;return zt.replaceSelection(`[${go}](${Ao})`),zt.focus();case Mt:const{language:Co,content:ti}=Nn;return zt.replaceSelection(["```"+Co,ti,"```"].join(`
`)),zt.focus();case"maths-latex":for(var Mi=atob(Nn),Pi=new Uint8Array(Mi.length),ro=0;ro<Mi.length;ro++)Pi[ro]=Mi.charCodeAt(ro);var vo=new Blob([Pi],{type:"image/png"});return(0,Ve.I)(vo,yi=>{yi.id?zt.replaceSelection(`![,](/api/attachments/${yi.id}?type=${yi.content_type})`):(yi==null?void 0:yi.status)===401&&(document.location.href="/user/login")}),zt.focus();case"inline-latex":return(0,en.Ye)(ei)?void 0:(zt.replaceSelection("`$$"+Nn+"$$`"),zt.focus());case pt:return Ni?(zt.getValue().indexOf(Ci)===-1?zt.replaceSelection(`<center><img id="${Ni}" width="80%" src="${Ci}" class="draw-flowchart" alt="${Si||""}" /></center>`):document.getElementById(Ni).src=We.Z.API_SERVER+Ci+"?t="+Date.now(),zt.focus()):void 0;case wt:case At:const Wr=Sn,Qi=(Gr=(rr=(Un=Wr==null?void 0:Wr.name)==null?void 0:Un.split("."))==null?void 0:rr.pop)==null?void 0:Gr.call(rr);return((wi=Wr==null?void 0:Wr.type)==null?void 0:wi.indexOf("image"))>-1||!(Wr!=null&&Wr.type)?Wr!=null&&Wr.align||Wr!=null&&Wr.width?zt.replaceSelection(`<p style="text-align:${Wr.align||"initial"}"><img width="${Wr.width?Wr.width+"%":"initial"}" src="${Ci}" alt="${Si||""}" /></p>`):zt.replaceSelection(`<img width="100%" src="${Ci}" alt="${Si||""}" />`):((ci=Wr==null?void 0:Wr.type)==null?void 0:ci.indexOf("video"))>-1?zt.replaceSelection(`<video width="100%" controls src="${Ci}"></video>`):((ji=Wr==null?void 0:Wr.type)==null?void 0:ji.indexOf("pdf"))>-1?zt.replaceSelection(`<a href="${Ci}?type=${Wr.type}&disposition=inline" target="_blank">${Wr.name}</a>`):Fn.includes(Qi)?zt.replaceSelection(`<a href="${Ci}?type=office&disposition=inline" target="_blank">${Wr.name}</a>`):zt.replaceSelection(`[${Wr.name}](${Ci})`),zt.focus();case kt:const{row:qi,col:si,align:Zi}=Nn;let Yi=`
`;for(let yi=0;yi<qi;yi++){let _i=[],Ri=[];for(let _o=0;_o<si;_o++)yi===1&&Ri.push(It[Zi]),_i.push(" ");yi===1&&(Yi+=`| ${Ri.join(" | ")} |
`),Yi+=`| ${_i.join(si===1?"":" | ")} |
`}return zt.replaceSelection(Yi+`
`),zt.focus();default:throw new Error}},[zt,Jn]),hi=(0,le.useMemo)(()=>{switch(Jn){case Pt:return le.createElement(rt,{callback:xi,onCancel:ir});case Mt:return le.createElement(et.Z,{callback:xi,onCancel:ir});case wt:return le.createElement(Ve.Z,{callback:xi,onCancel:ir});case Bt:return le.createElement(Ne,{editImgId:qr.current,callback:xi,onCancel:ir});case kt:return le.createElement(Ze,{callback:xi,onCancel:ir});case"maths-latex":return le.createElement(ut,{showSaveButton:!0,callback:xi});case"inline-latex":return le.createElement(ct.Z,{showSaveButton:!0,callback:xi});default:return null}},[Jn]);function ir(){Kn("")}(0,le.useEffect)(()=>{if(ri.current){let Nn=function(ci){Gr=!0,wi=ci.pageY},Sn=function(){Gr=!1},Un=function(ci){if(Gr){let ji=ci.pageY-wi;ji<0&&(ji=0),ji>300&&(ji=300);let Ci=Pn+ji+"px";Cr(Ci)}},rr=ri.current,Gr=!1,wi=0;return rr.addEventListener("mousedown",Nn),document.addEventListener("mousemove",Un),document.addEventListener("mouseup",Sn),()=>{rr.removeEventListener("mousedown",Nn),document.removeEventListener("mousemove",Un),document.removeEventListener("mouseup",Sn)}}},[zt,ri]),(0,le.useEffect)(()=>{Cr(Pn)},[Pn]);const Qn=gn(Cn),gr=gn(Tr),Xn={width:Qn,height:gr},bn=(0,le.useMemo)(()=>{if($n){let Nn=new Date($n),Sn=Nn.getHours(),Un=Nn.getMinutes(),rr=Nn.getSeconds();return Sn=Sn<10?"0"+Sn:Sn,Un=Un<10?"0"+Un:Un,rr=rr<10?"0"+rr:rr,`${Sn}:${Un}:${rr}`}return 0},[$n]),kn=Nn=>{const Sn=[];if(qn){let Un=-1;Nn=Nn.replace(/(@▁▁@|@▁@)/g,function(rr,Gr,wi){Sn.push({multiLine:rr!==wn})})}return Sn};function Ln(){window.sessionStorage.removeItem(yr),Vn(!1),dr(0)}function jn(){Vn(!1),dr(0),zt.setValue(window.sessionStorage.getItem(yr))}(0,le.useEffect)(()=>{Mn[Jn]&&Jn!==At&&Jn!==Bt&&setTimeout(()=>{const Nn=document.getElementsByClassName("markdown-popup-form")[0],Sn=window.innerWidth/2-Nn.offsetWidth/2,Un=window.innerHeight/2-Nn.offsetHeight/2;hr(Sn),Xr(Un)},0)},[Jn]);const tr=Nn=>{Nn.preventDefault();const Sn=Nn.clientX-xr,Un=Nn.clientY-Hr;document.body.onmousemove=rr=>{let Gr=rr.clientX-Sn,wi=rr.clientY-Un;const ci=document.getElementsByClassName("markdown-popup-form")[0],ji=window.innerWidth-ci.offsetWidth,Ci=window.innerHeight-ci.offsetHeight;Gr=Math.max(0,Math.min(Gr,ji)),wi=Math.max(0,Math.min(wi,Ci)),ur(rr.clientX,rr.clientY,Sn,Un)&&(hr(Gr),Xr(wi))},document.body.onmouseup=function(){document.body.onmousemove=null}},ur=(Nn,Sn,Un,rr)=>{const Gr=document.body.clientHeight,wi=document.body.clientWidth;return Nn<20&&Un>Nn||Nn>wi-20&&Un<Nn||Sn<20&&rr>Sn||Sn>Gr-20&&rr<Sn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return le.createElement(le.Fragment,null,le.createElement("div",{className:"markdown-editor-wrapper",ref:Kr},le.createElement("div",{className:`markdown-editor-container ${Tt} ${In?"on-preview":""} ${Hn?"mini":""} ${ar?"full-screen":""}`,style:Xn},le.createElement(De,{insertTemp:Yn,watch:In,fullScreen:ar,showNullButton:An,showNullProgramButton:qn,onActionCallback:mi,hidetoolBar:wr,extraUse:Ft}),le.createElement("div",{className:"markdown-editor-body"},le.createElement("div",{className:"codemirror-container"},le.createElement("textarea",{ref:Ur,placeholder:Kt})),In?le.createElement("div",{ref:Fr,className:"preview-container"},Wn==="stex"&&le.createElement(re,{value:hn}),Wn!=="stex"&&le.createElement(E.Z,{edit:!0,disabledFill:Zt,showProgramFill:qn,value:hn,openEditor:Nn=>{var Sn;qr.current=Nn,(Sn=Pr.current)==null||Sn.setHeight("100vh"),setTimeout(()=>{Kn("add-flowchart")},150)}})):null))),cr?le.createElement("a",{ref:ri,className:"editor-resize"}):null,Jn===At&&le.createElement(vt,{callback:xi,onCancel:ir}),Jn===Bt&&le.createElement(Ne,{ref:Pr,editImgId:qr.current,callback:xi,onCancel:ir}),le.createElement(Se.Z,null,Mn[Jn]&&Jn!==At&&Jn!==Bt?le.createElement(Ye.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:xr,top:Hr},title:le.createElement("div",{style:{cursor:"move"},onMouseDown:tr},Mn[Jn]),open:!0,onCancel:ir,footer:null,destroyOnClose:!0,width:Jn===Bt?"1200px":null,height:Jn===Bt?"80vh":null,className:"markdown-popup-form"},hi):null))}},53332:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ke},I:function(){return De}});var le=Ce(28284),yt=Ce(6767),a=Ce(37568),Te=Ce(44104),ge=Ce(4875),x=Ce(47889),z=Ce(7939),ie=Ce(23216),oe=Ce(59301),ee=Ce(59301),ue=Object.defineProperty,E=Object.defineProperties,re=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,he=(Se,Ee,Ie)=>Ee in Se?ue(Se,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Se[Ee]=Ie,me=(Se,Ee)=>{for(var Ie in Ee||(Ee={}))se.call(Ee,Ie)&&he(Se,Ie,Ee[Ie]);if(te)for(var Ie of te(Ee))ae.call(Ee,Ie)&&he(Se,Ie,Ee[Ie]);return Se},ve=(Se,Ee)=>E(Se,re(Ee));const{useForm:pe}=le.default,be={width:280,marginRight:10},je={labelCol:{span:5},wrapperCol:{span:19}};var ke=({callback:Se,onCancel:Ee})=>{const[Ie]=pe();let Me=(0,oe.useRef)();function Le(Ue){Me.current.width=Ie.getFieldValue("width"),Me.current.align=Ie.getFieldValue("align"),Se(Ue,Me.current)}function Ae(Ue,He){if(Ue.status===-1){yt.ZP.error(Ue.message);return}Ie.setFieldsValue({src:`/api/attachments/${Ue.id}`,type:He.type})}function Pe(Ue){let He=Ue.target.files[0];Me.current=He,De(He,Ae)}return ee.createElement(le.default,ve(me({form:Ie},je),{className:"upload-image-panel",onFinish:Le,style:{width:470,overflow:"hidden"}}),ee.createElement(le.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ee.createElement("div",{className:"flex-container"},ee.createElement(le.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ee.createElement(a.default,{style:be})),ee.createElement(Be,{onFileChange:Pe}))),ee.createElement(le.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ee.createElement(a.default,{style:{width:264}})),ee.createElement(le.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ee.createElement(Te.Z,null,ee.createElement(le.default.Item,{name:"width",style:{margin:0}},ee.createElement(ge.Z,{style:{width:264}})),ee.createElement("span",{className:"ml8"},"%"))),ee.createElement(le.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ee.createElement(x.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(le.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ee.createElement(z.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(z.ZP,{type:"default",onClick:Ee},"\u53D6\u6D88"))))};function Be({onFileChange:Se}){return ee.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ee.createElement("input",{type:"file",onChange:Se}))}function De(Se,Ee){if(!Se)throw new String("\u6CA1\u6709\u6587\u4EF6");let Ie=new FormData;Ie.append("editormd-image-file",Se),Ie.append("file_param_name","editormd-image-file"),Ie.append("byxhr","true");var Me=new window.XMLHttpRequest;Me.withCredentials=!0,Me.addEventListener("load",function(Le){Ee(JSON.parse(Le.target.responseText),Se)},!1),Me.addEventListener("error",function(Le){console.error(Le)},!1),Me.open("POST",`${ie.KI}/api/attachments.json`),Me.send(Ie)}},88487:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return a}});var le=Ce(59301),yt=Ce(4676);class a extends le.Component{constructor(ge){super(ge);const x=window.document;this.node=x.createElement("div"),x.body.appendChild(this.node)}render(){const{children:ge}=this.props;return(0,yt.createPortal)(ge,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(on,Lt,Ce){"use strict";Ce.d(Lt,{SV:function(){return vt},ZP:function(){return qe}});var le=Ce(59301),yt=Ce(76374);const a={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"]},Te={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"]},ge={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(`
`)}]},x={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(`
`)}]},z={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var ie=Ce(53184),oe=Ce.n(ie),ee=(ot,Qe,Fe)=>new Promise((Re,ne)=>{var fe=we=>{try{We(Fe.next(we))}catch(ye){ne(ye)}},Ne=we=>{try{We(Fe.throw(we))}catch(ye){ne(ye)}},We=we=>we.done?Re(we.value):Promise.resolve(we.value).then(fe,Ne);We((Fe=Fe.apply(ot,Qe)).next())});const ue={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"]}},E=(ot,Qe,Fe,Re)=>{const ne=Qe.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Fe.lineNumber,endColumn:Fe.column});return Array.from(new Set(ne.match(/\b\w{2,}\b/g)||[])).map(Ne=>({label:Ne,kind:ot.languages.CompletionItemKind.Text,insertText:Ne,range:Re}))},re=(ot,Qe,Fe,Re)=>{ot.languages.registerCompletionItemProvider(Qe,{provideCompletionItems(ne,fe){const Ne=ne.getWordUntilPosition(fe),We={startLineNumber:fe.lineNumber,endLineNumber:fe.lineNumber,startColumn:Ne.startColumn,endColumn:Ne.endColumn},we=ne.getLineContent(fe.lineNumber).substring(Ne.startColumn-2,Ne.endColumn);return{suggestions:[...E(ot,ne,fe,We),...Fe.map(Oe=>({label:Oe,kind:ot.languages.CompletionItemKind.Keyword,documentation:Oe,insertText:Oe,insertTextRules:ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We})),...Re.map(Oe=>({label:Oe.label,kind:ot.languages.CompletionItemKind.Snippet,documentation:Oe.content,insertText:we.startsWith("#")?Oe.content.replace(/#/,""):Oe.content,insertTextRules:ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We}))]}}})};var te=ot=>{ue.languages.forEach(Qe=>{ot.languages.registerDocumentFormattingEditProvider(Qe,{provideDocumentFormattingEdits(Fe){return ee(this,null,function*(){const Re=oe()(Fe.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Fe.getFullModelRange(),text:Re}]})}})}),re(ot,"java",Te.keywords,Te.quickKey),re(ot,"cpp",ge.keywords,ge.quickKey),re(ot,"c",a.keywords,[]),re(ot,"python",x.keywords,x.quickKey),re(ot,"scala",z.keywords,z.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 ae=Object.defineProperty,he=(ot,Qe,Fe)=>Qe in ot?ae(ot,Qe,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):ot[Qe]=Fe,me=(ot,Qe,Fe)=>he(ot,typeof Qe!="symbol"?Qe+"":Qe,Fe);const ve=class Wu{constructor(Qe,Fe,Re){this.placeholder=Qe,this.editor=Fe,this.monaco=Re,Fe.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Wu.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)}};me(ve,"ID","editor.widget.placeholderHint");var be=ve,je=Ce(96236),ke=Ce(6767),Be=Ce(25399),De=Ce(78267),Se=Ce(33156),Ee=Ce(56102),Ie=Object.defineProperty,Me=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,He=(ot,Qe,Fe)=>Qe in ot?Ie(ot,Qe,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):ot[Qe]=Fe,Je=(ot,Qe)=>{for(var Fe in Qe||(Qe={}))Pe.call(Qe,Fe)&&He(ot,Fe,Qe[Fe]);if(Ae)for(var Fe of Ae(Qe))Ue.call(Qe,Fe)&&He(ot,Fe,Qe[Fe]);return ot},st=(ot,Qe)=>Me(ot,Le(Qe)),_e=(ot,Qe)=>{var Fe={};for(var Re in ot)Pe.call(ot,Re)&&Qe.indexOf(Re)<0&&(Fe[Re]=ot[Re]);if(ot!=null&&Ae)for(var Re of Ae(ot))Qe.indexOf(Re)<0&&Ue.call(ot,Re)&&(Fe[Re]=ot[Re]);return Fe},Ke=(ot,Qe,Fe)=>new Promise((Re,ne)=>{var fe=we=>{try{We(Fe.next(we))}catch(ye){ne(ye)}},Ne=we=>{try{We(Fe.throw(we))}catch(ye){ne(ye)}},We=we=>we.done?Re(we.value):Promise.resolve(we.value).then(fe,Ne);We((Fe=Fe.apply(ot,Qe)).next())});function nt(ot){return/^\d+$/.test(ot)?`${ot}px`:ot}function rt(){}let et=!1;const Ve={"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(ot=[]){let Qe=ot;if(Array.isArray(ot)){for(let Fe=0;Fe<ot.length;Fe++){let Re=Ve[ot[Fe]];if(Re)return Re}return Qe[0]}return Ve[Qe]||Qe}let Ge=null;const it=()=>Ke(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(ot){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",ot)}});var qe=ot=>{var Qe=ot,{width:Fe="100%",height:Re="100%",value:ne,language:fe="javascript",style:Ne={},options:We={},overrideServices:we={},theme:ye="vs-dark",onEditBlur:Oe,isCopy:$e=!1,onSave:Ze,autoHeight:Xe=!1,forbidCopy:at=!1,forbidCopyTips:lt,onChange:mt=rt,editorDidMount:ut=rt,onFocus:ct=rt,onBreakPoint:Pt=rt,breakPointValue:wt=[],filename:Bt="educoder.txt",errorLine:At,errorContent:pt="",highlightLine:Mt,openBreakPoint:kt=!1,placeholder:xt="",showMiniMap:It=!0}=Qe,Ut=_e(Qe,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const en=(0,le.useRef)(),St=(0,le.useRef)({}),jt=(0,le.useRef)(),Ht=(0,le.useRef)(),Qt=(0,le.useRef)([]),sn=(0,le.useRef)(!1),wn=(0,le.useRef)(),Bn=(0,le.useRef)(),Fn=(0,le.useRef)(!1),[gn,Dn]=(0,le.useState)(!1);function un(){let cn;return en.current&&(cn=new yt.Z(An=>{for(let qn of An)(qn.target.offsetHeight>0||qn.target.offsetWidth>0)&&St.current.instance.layout()}),cn.observe(en.current)),cn}function Tn(){ke.ZP.warning({content:decodeURIComponent(lt||se),key:"monaco-editor-tip"})}const Mn=()=>{let cn=St.current.instance;if(ne!=null&&cn&&gn){const An=cn.getModel();An&&ne!==An.getValue()&&(et=!0,An.setValue(ne),cn.layout(),et=!1)}};(0,le.useEffect)(()=>{const cn=Se.Z.subscribe("formatDocument",An=>{var qn;let wr=St.current.instance;(qn=wr==null?void 0:wr.getAction)==null||qn.call(wr,"editor.action.formatDocument").run()});return window.updateMonacoValue=An=>{mt(An)},cn},[]),(0,le.useEffect)(()=>{var cn;let An=St.current.instance;Ht.current&&clearTimeout(Ht.current),Ht.current=setTimeout(()=>{Mn()},500),ne&&(ne!=null&&ne.length)&&((cn=An==null?void 0:An.updateOptions)==null||cn.call(An,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ne.split(/\r\n|\r|\n/g).length))+3,5)}))},[ne,gn,St.current]),(0,le.useEffect)(()=>{if(At&&St.current&&St.current.instance){let An=St.current.instance;An.changeViewZones(function(qn){var wr=document.createElement("div");wr.style.padding="10px 20px",wr.style.width="calc(100% - 20px)",wr.className="my-error-line-wrp",wr.innerHTML=pt,qn.addZone({afterLineNumber:At||11,heightInLines:3,domNode:wr})});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}};An.addOverlayWidget(cn),An.revealPositionInCenter({lineNumber:20,column:1})}},[At,St.current,gn]);const nn=(cn="",An)=>{if(!cn||cn.trim()==="")return!0;const wr=St.current.instance.getModel().getLineTokens(An);let Rt=!1;for(let Xt=0;Xt<2;Xt++)wr.getStandardTokenType(Xt)===1&&(Rt=!0);return Rt};(0,le.useEffect)(()=>{var cn;const An=(cn=St.current)==null?void 0:cn.instance;if(An&&gn&&at){const qn=An.onDidBlurEditorWidget(()=>{Fn.current=!1}),wr=An.onDidFocusEditorText(()=>{Fn.current=!0});return()=>{qn.dispose(),wr.dispose()}}},[St.current,gn,at]),(0,le.useEffect)(()=>{var cn;if((cn=St.current)!=null&&cn.instance&&gn&&kt){let An=St.current.instance,qn=An.getModel();if(!qn)return;(()=>{var Ft;let $t=[],zt=[];const Wt=qn.getAllDecorations();for(let mn of Wt)mn.options.className==="highlighted-line"&&($t.push((Ft=mn==null?void 0:mn.range)==null?void 0:Ft.startLineNumber),zt.push(mn==null?void 0:mn.id));if(Mt===$t[0])return;qn.deltaDecorations(zt,[]);const hn=qn.getLineCount();Mt&&Mt<=hn&&(An.deltaDecorations([],[{range:new Ge.Range(Mt,1,Mt,qn.getLineMaxColumn(Mt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),An.revealLineInCenter(Mt))})();const Rt=(Ft=!1)=>{var $t;let zt=[],Wt=[];const hn=qn.getAllDecorations();for(let mn of hn)mn.options.linesDecorationsClassName==="breakpoints-select"&&(zt.push(($t=mn==null?void 0:mn.range)==null?void 0:$t.startLineNumber),Wt.push(mn==null?void 0:mn.id));if(Ft)return{lines:zt,ids:Wt};Pt(zt)},Xt=Ft=>Ke(void 0,null,function*(){let $t={range:new Ge.Range(Ft,1,Ft,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield qn.deltaDecorations([],[$t]),Rt()}),Et=Ft=>Ke(void 0,null,function*(){let $t=[];const zt=An.getLineDecorations(Ft);for(let Wt of zt)Wt.options.linesDecorationsClassName==="breakpoints-select"&&$t.push(Wt.id);yield qn.deltaDecorations($t,[]),Rt()}),Dt=Ft=>{let $t=An.getLineDecorations(Ft);for(let zt of $t)if(zt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,De.isEqual)(wt,Rt(!0).lines)){qn.deltaDecorations(Rt(!0).ids,[]);const Ft=wt.map($t=>({range:new Ge.Range($t,1,$t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));qn.deltaDecorations([],Ft)}const Tt=An.onDidChangeModelContent(Ft=>{let $t=An.getPosition();if($t){let zt=$t.lineNumber;clearTimeout(Bn.current),Bn.current=setTimeout(()=>{nn(qn.getLineContent(zt),zt)?Et(zt):Dt(zt)?(Et(zt),Xt(zt)):Rt()},100)}}),_t=An.onMouseDown(Ft=>{var $t,zt,Wt;if(Ft.target.detail&&((Wt=(zt=($t=Ft.target)==null?void 0:$t.element)==null?void 0:zt.className)!=null&&Wt.includes("line-numbers"))){let hn=Ft.target.position.lineNumber;if(nn(qn.getLineContent(hn),hn))return;Dt(hn)?Et(hn):Xt(hn)}}),bt=Ft=>{let $t={range:new Ge.Range(Ft,1,Ft,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Qt.current=An.deltaDecorations(Qt.current,[$t])},Zt=()=>{Qt.current=An.deltaDecorations(Qt.current,[])},Kt=An.onMouseMove(Ft=>{var $t,zt,Wt;if(Zt(),Ft.target.detail&&((Wt=(zt=($t=Ft.target)==null?void 0:$t.element)==null?void 0:zt.className)!=null&&Wt.includes("line-numbers"))){let hn=Ft.target.position.lineNumber;if(nn(qn.getLineContent(hn),hn))return;bt(hn)}}),Yt=An.onMouseLeave(()=>{Zt()});return()=>{Tt.dispose(),_t.dispose(),Kt.dispose(),Yt.dispose()}}},[St.current,gn,wt,Mt,kt,fe]),(0,le.useEffect)(()=>{var cn;(cn=St.current)!=null&&cn.instance&&kt&&St.current.instance.setPosition({lineNumber:0,column:0})},[Mt]);function tn(){let cn=St.current.instance;if(cn){const An=cn.getSelection(),qn=St.current.pastePos||{},wr=new Ge.Range(qn.startLineNumber||An.endLineNumber,qn.startColumn||An.endColumn,qn.endLineNumber||An.endLineNumber,qn.endColumn||An.endColumn);setTimeout(()=>{cn.executeEdits("",[{range:wr,text:""}])},300)}}function dn(cn){(window.navigator.platform.match("Mac")?cn.metaKey:cn.ctrlKey)&&cn.keyCode==83&&(cn.preventDefault(),Ze())}const Cn=()=>{if(Xe&&St.current.instance){const cn=St.current.instance.getContentHeight();yr(cn<Re?Re:cn)}else yr(Re)};function Pn(cn){var An=document.createEvent("MouseEvents");An.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),cn.dispatchEvent(An)}const Hn=cn=>{if(!Fn.current)return;const{keyCode:An,ctrlKey:qn,metaKey:wr,target:Rt,type:Xt}=cn;return(Xt==="paste"||(An===67||An===86)&&(wr||qn))&&Rt.nodeName==="TEXTAREA"&&(Tn(),cn.preventDefault()),!1};function Gn(cn,An){var qn=window.URL||window.webkitURL||window,wr=new Blob([An]),Rt=document.createElementNS("http://www.w3.org/1999/xhtml","a");Rt.href=qn.createObjectURL(wr),Rt.download=cn,Pn(Rt)}(0,le.useEffect)(()=>{Cn()},[Cn]),(0,le.useEffect)(()=>{en.current&&!gn&&Promise.all([Ce.e(8909),Ce.e(5977)]).then(Ce.bind(Ce,71448)).then(cn=>{try{Ge=cn,St.current.instance=Ge.editor.create(en.current,{value:ne,language:Ye(fe),theme:ye,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:It||!1}},we);const An=St.current.instance;let Rt=[...je.BH._menuItems].find(Tt=>Tt[0]._debugName=="EditorContext")[1],Xt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Et=(Tt,_t)=>{var bt,Zt;let Kt=Tt._first;do _t.includes((Zt=(bt=Kt.element)==null?void 0:bt.command)==null?void 0:Zt.id)&&Tt._remove(Kt);while(Kt=Kt.next)};if(ut(An,Ge),setTimeout(()=>{Cn(),St.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Gn(Bt||"educoder.txt",An.getValue())}})},500),St.current.subscription=An.onDidChangeModelContent(Tt=>{sn.current?clearTimeout(wn.current):(Cn(),mt(An.getValue(),Tt)),wn.current=setTimeout(()=>{sn.current=!1},500)}),window.Monaco||te(Ge,Ye(fe)),at&&(Et(Rt,Xt),en.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Hn),window.removeEventListener("paste",Hn),window.addEventListener("keydown",Hn),window.addEventListener("paste",Hn)),window.Monaco=Ge,Oe&&An.onDidBlurEditorWidget(()=>{Oe(An.getValue())}),ct&&An.onDidFocusEditorText(()=>{at&&it(),ct(An.getValue())}),at){it();try{An.onDidPaste(Tt=>{const _t=An.getSelection(),bt=St.current.pastePos||{},Zt=new Ge.Range(bt.startLineNumber||_t.endLineNumber,bt.startColumn||_t.endColumn,bt.endLineNumber||_t.endLineNumber,bt.endColumn||_t.endColumn);An.executeEdits("",[{range:Tt.range,text:""}])})}catch(Tt){}}let Dt=un();return xt&&typeof xt=="string"&&new be(xt,An,Ge),Dn(!0),()=>{const Tt=St.current.instance;Tt.dispose();const _t=Tt.getModel();_t&&_t.dispose(),St.current.subscription&&St.current.subscription.dispose(),Dt.unobserve(en.current)}}catch(An){}})},[]),(0,le.useEffect)(()=>{if(St.current.instance&&gn)return document.addEventListener("keydown",dn,!1),()=>{document.removeEventListener("keydown",dn)}},[Ze,gn]),(0,le.useEffect)(()=>{let cn=St.current.instance;if(cn&&gn){let An=Ye(fe);Ge.editor.setModelLanguage(cn.getModel(),An)}},[fe,gn]),(0,le.useEffect)(()=>{St.current.instance&&gn&&Ge.editor.setTheme(ye)},[ye,gn]),(0,le.useEffect)(()=>{let cn=St.current.instance;jt.current=We,cn&&gn&&(cn.updateOptions(Je({},We)),setTimeout(()=>{cn.getModel().updateOptions(Je({},We))},200))},[JSON.stringify(We),gn]),(0,le.useEffect)(()=>{let cn=St.current.instance;cn&&gn&&cn.layout()},[Fe,Re,gn]);const[_n,Yn]=(0,le.useState)(nt(Fe)),[Wn,yr]=(0,le.useState)(nt(Re)),cr=st(Je({},Ne),{width:_n,height:Wn,position:"relative"});return le.createElement("div",{className:"my-monaco-editor",ref:en,style:cr,onFocus:()=>{at&&it()}},$e&&le.createElement(Ee.CopyToClipboard,{text:ne,onCopy:()=>ke.ZP.success("\u590D\u5236\u6210\u529F")},le.createElement(Be.Z,{title:"\u590D\u5236\u4EE3\u7801"},le.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},le.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function vt({width:ot="100%",height:Qe="100%",original:Fe,modified:Re,language:ne,options:fe={}}){const Ne=(0,le.useRef)(),[We,we]=(0,le.useState)(null);function ye(Xe){let at;return Ne.current&&(at=new yt.Z(lt=>{for(let mt of lt)(mt.target.offsetHeight>0||mt.target.offsetWidth>0)&&Xe.layout()}),at.observe(Ne.current)),at}(0,le.useEffect)(()=>(Ne.current&&Promise.all([Ce.e(8909),Ce.e(9404)]).then(Ce.bind(Ce,2550)).then(Xe=>{Ge=Xe;const at=Ge.editor.createDiffEditor(Ne.current,st(Je({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},fe),{wordWrap:!0}));we(at);let lt=ye(at);return()=>{at.dispose();const mt=at.getModel();mt&&mt.dispose(),lt.unobserve(Ne.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,le.useEffect)(()=>{We&&We.setModel({original:Ge.editor.createModel(Fe,ne),modified:Ge.editor.createModel(Re,ne)})},[Fe,Re,ne,We]);const Oe=nt(ot),$e=nt(Qe),Ze={width:Oe,height:$e};return le.createElement("div",{className:"my-diff-editor",ref:Ne,style:Ze})}},83078:function(on,Lt,Ce){"use strict";var le=Ce(21385),yt=Ce(82326),a=Ce(58755),Te=Ce(59301);const ge=yt.default.Option;Lt.Z=({isTheoretical:x,onFontSizeChange:z,cmFontSize:ie,cmCodeMode:oe,autoFormat:ee,onCodeModeChange:ue,onTabToSpace:E,onAutoFormat:re,formatDocument:te,className:se="",tabToSpace:ae,children:he,code_editor:me,challenge:ve,shixun_environment_id:pe,shixun_environments:be})=>{var je;const ke={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},Be=(je=be==null?void 0:be.find(De=>De.shixun_environment_id===pe))==null?void 0:je.program_language;return console.log("----",Be,be,pe,me),Te.createElement("div",{className:`tpi-code-setting ${se}`},Te.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),Te.createElement("section",null,Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),Te.createElement(yt.default,{bordered:!1,size:"small",value:oe,onChange:ue},Te.createElement(ge,{value:"vs"},"\u767D\u8272\u80CC\u666F"),Te.createElement(ge,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!x&&Te.createElement(Te.Fragment,null,Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),Te.createElement(yt.default,{bordered:!1,size:"small",value:ie,onChange:z},Te.createElement(ge,{value:12},"12px"),Te.createElement(ge,{value:14},"14px"),Te.createElement(ge,{value:16},"16px"),Te.createElement(ge,{value:18},"18px"),Te.createElement(ge,{value:20},"20px"),Te.createElement(ge,{value:22},"22px"))),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"Tab\u8F6C\u6362"),Te.createElement(a.Z,{checked:ae,onChange:E})),Te.createElement("div",{className:"file-item",onClick:te},Te.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!x&&Te.createElement(Te.Fragment,null,Te.createElement("h3",null,"\u5FEB\u6377\u952E"),Te.createElement("section",null,Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),Te.createElement("span",null,"Ctrl + S")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),Te.createElement("span",null,"F1 / Alt + F1")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),Te.createElement("span",null,"Ctrl + ]/[")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),Te.createElement("span",null,"Ctrl + Shift + \\")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),Te.createElement("span",null,"Home")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),Te.createElement("span",null,"End"))),he),!x&&Te.createElement(Te.Fragment,null,Te.createElement("h3",null,"\u5B9E\u8BAD\u57FA\u672C\u4FE1\u606F"),Te.createElement("section",null,Be&&Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),Te.createElement("span",null,Be)),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),Te.createElement("span",null,ke[ve==null?void 0:ve.difficulty])),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),Te.createElement("span",null,me==null?void 0:me.name)),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),Te.createElement("span",null,me!=null&&me.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},79006:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return yt}});var le=Ce(59301);function yt(a,Te){const ge=(0,le.useRef)();(0,le.useEffect)(()=>{ge.current=a}),(0,le.useEffect)(()=>{function x(){ge.current()}if(Te!==null){let z=setInterval(x,Te);return()=>clearInterval(z)}},[Te])}},92863:function(on,Lt,Ce){"use strict";Ce.r(Lt),Ce.d(Lt,{Types:function(){return gn},default:function(){return Tn}});var le=Ce(59301),yt={header:"header___N_IdR",field:"field___XG_dh","oj-form-container":"oj-form-container___syYzK","oj-left-panel":"oj-left-panel___L082x","oj-form-info":"oj-form-info___q0IU5",footer:"footer___pGCM2",result:"result___LM9Ms",passText:"passText___nUoL4",noPassText:"noPassText___ECHHG",pass:"pass___tDubp",noPass:"noPass___ilYvg","test-case-name":"test-case-name___MI_KD","btn-remove-case":"btn-remove-case___OiaTQ","icon-tag":"icon-tag___D86WO",btn_back:"btn_back___FyaSY",testJi:"testJi___NDviK",upBtn:"upBtn___FiZX4","oj-problems":"oj-problems___xb70g",row:"row___v036E",a:"a___yRaYH",b:"b___gWQyu",inputTwo:"inputTwo___IZ9og",inputOne:"inputOne____NmcT",cusModal:"cusModal___fJ5gm","oj-custom-large-spin":"oj-custom-large-spin___Aar0g",MdEditor:"MdEditor___hgoes"},a=Ce(37568),Te=Ce(62957),ge=Ce(8848),x=Ce(28284),z=Ce(6767),ie=Ce(77019),oe=Ce(5269),ee=Ce(29787),ue=Ce(7939),E=Ce(70858),re=Ce(82326),te=Ce(4875),se=Ce(47889),ae=Ce(62673),he=Ce(44104),me=Ce(93725),ve=Ce(59301);const{Option:pe}=re.default;var be=(nn=>(nn[nn.language=0]="language",nn[nn.difficulty=1]="difficulty",nn[nn.category=2]="category",nn[nn.openOrNot=3]="openOrNot",nn))(be||{});const je={0:[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],1:[{title:"\u7B80\u5355",key:1},{title:"\u9002\u4E2D",key:2},{title:"\u56F0\u96BE",key:3}],2:[{title:"\u7A0B\u5E8F\u8BBE\u8BA1",key:1},{title:"\u7B97\u6CD5",key:2}],3:[{title:"\u516C\u5F00",key:1},{title:"\u79C1\u6709",key:0}]};function ke(nn){return je[nn].map(tn=>ve.createElement(pe,{key:tn.title,value:tn.key}," ",tn.title," "))}function Be(nn,tn){nn.map(dn=>{const{id:Cn,name:Pn,sub_disciplines:Hn}=dn;let Gn={value:Cn,label:Pn};tn.push(Gn),Hn&&Hn.length>0&&(Gn.children=[],Be(Hn,Gn.children))})}function De(nn,tn){var dn;let Cn=[];for(let Pn=0;Pn<nn.length;Pn++){const Hn=nn[Pn];if(((dn=Hn.sub_disciplines)==null?void 0:dn.length)>0){Cn[0]=Hn.id;for(let Gn=0;Gn<Hn.sub_disciplines.length;Gn++){const _n=Hn.sub_disciplines[Gn];if(_n.id===tn)return Cn[1]=_n.id,[Cn,_n.tag_disciplines||_n.sub_disciplines||[]]}}}return[Cn,[]]}var Se=Ce(44283),Ee=Ce(24334),Ie=Ce(76618),Me=Ce(65363),Le=Ce(39116),Ae=Ce(49317);function Pe(nn){return(0,Ae.v_)("practices.json",nn)}function Ue(){return(0,Ae.U2)("problems/new.json")}function He(nn){return(0,Ae.U2)(`practices/${nn}/edit.json`)}function Je(nn,tn){return(0,Ae.gz)(`practices/${nn}`,tn)}function st(nn,tn){return post(`exercises/${nn}/exercise_questions.json`,tn)}function _e(nn,tn){return put(`exercise_questions/${nn}.json`,tn)}var Ke=Ce(22914),nt=Ce(36207),rt=Ce(34728),et=Ce(83078),Ve=Ce(88487),Ye=Ce(83477),Ge={"code-panel-container":"code-panel-container___BZjjl","action-oj-bar":"action-oj-bar___xbXpK",active:"active___EMVKI"},it=Object.defineProperty,qe=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,Re=(nn,tn,dn)=>tn in nn?it(nn,tn,{enumerable:!0,configurable:!0,writable:!0,value:dn}):nn[tn]=dn,ne=(nn,tn)=>{for(var dn in tn||(tn={}))Qe.call(tn,dn)&&Re(nn,dn,tn[dn]);if(ot)for(var dn of ot(tn))Fe.call(tn,dn)&&Re(nn,dn,tn[dn]);return nn},fe=(nn,tn)=>qe(nn,vt(tn));const Ne={theme:(0,Ye.G)("cmCodeMode","vs-dark"),fontSize:(0,Ye.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,Ye.G)("cmTabToSpace",!0)};var We=(nn=>(nn[nn.set_font_size=0]="set_font_size",nn[nn.set_theme=1]="set_theme",nn[nn.on_tab_to_space=2]="on_tab_to_space",nn[nn.set_show_editor_setting=3]="set_show_editor_setting",nn))(We||{});function we(nn,tn){switch(tn.type){case 3:return fe(ne({},nn),{showEditorSetting:tn.payload});case 1:return fe(ne({},nn),{theme:tn.payload});case 0:return fe(ne({},nn),{fontSize:tn.payload});case 2:return fe(ne({},nn),{tabToSpace:tn.payload});default:throw new Error}}var ye=({value:nn,onChange:tn,language:dn,onLanguage:Cn,languageItems:Pn,ActionBarRender:Hn=Gn=>le.createElement(Oe,{languageItems:Pn,onLanguage:Cn,language:dn,onShowCodeSetting:Gn})})=>{const[Gn,_n]=(0,le.useReducer)(we,Ne),{theme:Yn,fontSize:Wn,showEditorSetting:yr,tabToSpace:cr}=Gn;console.log(nn,dn,"value");const cn={onFontSizeChange:Rt=>{_n({type:0,payload:Rt}),(0,Ye.t)("cmFontSize",Rt)},tabToSpace:cr,cmFontSize:Wn,className:"oj",cmCodeMode:Yn,onTabToSpace:Rt=>{_n({type:2,payload:Rt}),(0,Ye.t)("cmTabToSpace",Rt)},onCodeModeChange:Rt=>{_n({type:1,payload:Rt}),(0,Ye.t)("cmCodeMode",Rt)}};function An(){_n({type:3,payload:!1})}function qn(){_n({type:3,payload:!0})}const wr={value:nn,language:dn,onChange:tn,theme:Yn,height:"calc(100% - 56px)",options:{fontSize:Wn,insertSpaces:cr}};return le.createElement(le.Fragment,null,le.createElement("div",{className:Ge["code-panel-container"]},Hn(qn),le.createElement(rt.ZP,ne({key:dn},wr))),le.createElement(Ve.Z,null,le.createElement(nt.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:yr,onClose:An},le.createElement(et.Z,ne({},cn)))))};function Oe({languageItems:nn,language:tn,onShowCodeSetting:dn,onLanguage:Cn}){return le.createElement("div",{className:Ge["action-oj-bar"]},nn==null?void 0:nn.map(Pn=>le.createElement("div",{className:tn===(Pn==null?void 0:Pn.language)?Ge.active:"",onClick:()=>Cn(Pn==null?void 0:Pn.language),key:Pn==null?void 0:Pn.language},Pn==null?void 0:Pn.language)),le.createElement("a",{onClick:dn},le.createElement("i",{className:"iconfont icon-shezhi"})))}var $e=Ce(31691),Ze={flex_box_center:"flex_box_center___4yAaY",flex_space_between:"flex_space_between___YaUgM",flex_box_vertical_center:"flex_box_vertical_center___zR3dp",flex_box_center_end:"flex_box_center_end___rwgS5",flex_box_column:"flex_box_column___LhFeP",wrap:"wrap___xTL91",in:"in___eSY86",btns:"btns___UdEGI",customModal:"customModal___CL0OL"},Xe=(nn,tn,dn)=>new Promise((Cn,Pn)=>{var Hn=Yn=>{try{_n(dn.next(Yn))}catch(Wn){Pn(Wn)}},Gn=Yn=>{try{_n(dn.throw(Yn))}catch(Wn){Pn(Wn)}},_n=Yn=>Yn.done?Cn(Yn.value):Promise.resolve(Yn.value).then(Hn,Gn);_n((dn=dn.apply(nn,tn)).next())}),lt=({visible:nn,onOK:tn,onCancel:dn})=>{const[Cn,Pn]=(0,le.useState)(!1),[Hn,Gn]=(0,le.useState)(!1),[_n,Yn]=(0,le.useState)("1"),[Wn,yr]=(0,le.useState)(""),[cr,cn]=(0,le.useState)([]),An=()=>Xe(void 0,null,function*(){if(!Wn){z.ZP.warning(`\u9898\u76EE${Et}\u4E0D\u80FD\u4E3A\u7A7A`);return}Gn(!0);const Dt=yield(0,Ae.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:nn,name:Wn}});if((Dt==null?void 0:Dt.status)===0){tn();return}Gn(!1)}),qn=(Dt="")=>Xe(void 0,null,function*(){Pn(!0);let Tt=yield(0,Ae.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:nn,search:Dt}});cn(Tt.tag_disciplines||[]),Pn(!1)}),wr=Dt=>{let Tt=Dt.name;Te.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u91CD\u547D\u540D",content:le.createElement("div",null,le.createElement(a.default,{defaultValue:Tt,placeholder:`\u8BF7\u8F93\u5165${Et}\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57`,maxLength:20,onChange:_t=>{Tt=_t.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Xe(void 0,null,function*(){if(!Tt)return z.ZP.warning(`\u9898\u76EE${Et}\u4E0D\u80FD\u4E3A\u7A7A`),Promise.reject();const _t=yield(0,Ae.ZP)(`/api/tag_disciplines/${Dt.id}/rename.json`,{method:"post",body:{id:Dt.id,name:Tt}});(_t==null?void 0:_t.status)===0&&qn()})})},Rt=Dt=>{Te.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:570,title:"\u5220\u9664",content:nn==="practice"?le.createElement("div",null,"\u786E\u8BA4\u5C06\u9898\u76EE\u6765\u6E90\u201C",le.createElement("span",{className:"c-light-primary"},Dt.name),"\u201D\u5220\u9664\u5417\uFF1F",le.createElement("br",null),"\u5220\u9664\u540E\uFF0C\u4F1A\u5C06\u76F8\u5173\u9898\u76EE\u4E2D\u7684\u6765\u6E90\u8FDB\u884C\u6E05\u9664\u3002"):le.createElement("div",null,"\u786E\u8BA4\u5C06\u9898\u76EE\u77E5\u8BC6\u70B9\u201C",le.createElement("span",{className:"c-light-primary"},Dt.name),"\u201D\u5220\u9664\u5417\uFF1F",le.createElement("br",null),"\u5220\u9664\u540E\uFF0C\u4F1A\u5C06\u76F8\u5173\u9898\u76EE\u4E2D\u7684\u77E5\u8BC6\u70B9\u8FDB\u884C\u6E05\u9664\u3002"),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Xe(void 0,null,function*(){const Tt=yield(0,Ae.ZP)(`/api/tag_disciplines/${Dt.id}.json`,{method:"delete",body:{id:Dt.id}});(Tt==null?void 0:Tt.status)===0&&qn()})})},Xt=Dt=>{qn(Dt)},Et=nn==="practice"?"\u77E5\u8BC6\u70B9":"\u6765\u6E90";return le.createElement(Te.default,{afterClose:()=>{Gn(!1),Pn(!1),yr(""),Yn("1"),cn([])},centered:!0,keyboard:!1,width:600,title:`${Et}\u7BA1\u7406`,open:!!nn,className:Ze.customModal,footer:null,onCancel:dn},le.createElement("section",{className:Ze.wrap},le.createElement($e.default,{activeKey:_n,onChange:Dt=>{yr(""),Yn(Dt),qn()}},le.createElement($e.default.TabPane,{tab:`\u65B0\u589E${Et}`,key:"1"},le.createElement(a.default,{value:Wn,onChange:Dt=>yr(Dt.target.value),className:Ze.in,placeholder:`\u8F93\u5165${Et}\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57`,maxLength:20}),le.createElement("div",{className:Ze.btns},le.createElement(ue.ZP,{onClick:dn,className:"mr20"},"\u53D6\u6D88 "),le.createElement(ue.ZP,{loading:Hn,onClick:An,type:"primary"},"\u786E\u8BA4\u65B0\u5EFA"))),le.createElement($e.default.TabPane,{tab:`\u5DF2\u6709${Et}`,key:"2"},le.createElement(a.default.Search,{allowClear:!0,onSearch:Xt,value:Wn,onChange:Dt=>yr(Dt.target.value),className:Ze.in,placeholder:`\u8F93\u5165${Et}\u540D\u79F0\u8FDB\u884C\u67E5\u8BE2`}),le.createElement(E.default,{dataSource:cr,bordered:!1,loading:Cn,scroll:cr.length>7?{y:300}:{},style:{padding:"0 0px 20px 0px"},columns:[{title:`${Et}\u540D\u79F0`,dataIndex:"name",ellipsis:!0},{title:"\u64CD\u4F5C",dataIndex:"action",width:120,render:(Dt,Tt)=>le.createElement("span",null,le.createElement("span",{onClick:()=>wr(Tt),className:"current mr10 c-light-primary"},"\u91CD\u547D\u540D"),le.createElement("span",{onClick:()=>Rt(Tt),className:"current c-grey-666"},"\u5220\u9664"))}],pagination:!1})))))},mt=Ce(14185),ut=Ce(55178),ct=Ce(66649),Pt=Ce.n(ct),wt=Ce(76406),Bt=Ce(35883),At=Ce(15267),pt=Ce(59301),Mt=Object.defineProperty,kt=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,St=(nn,tn,dn)=>tn in nn?Mt(nn,tn,{enumerable:!0,configurable:!0,writable:!0,value:dn}):nn[tn]=dn,jt=(nn,tn)=>{for(var dn in tn||(tn={}))Ut.call(tn,dn)&&St(nn,dn,tn[dn]);if(It)for(var dn of It(tn))en.call(tn,dn)&&St(nn,dn,tn[dn]);return nn},Ht=(nn,tn)=>kt(nn,xt(tn)),Qt=(nn,tn,dn)=>new Promise((Cn,Pn)=>{var Hn=Yn=>{try{_n(dn.next(Yn))}catch(Wn){Pn(Wn)}},Gn=Yn=>{try{_n(dn.throw(Yn))}catch(Wn){Pn(Wn)}},_n=Yn=>Yn.done?Cn(Yn.value):Promise.resolve(Yn.value).then(Hn,Gn);_n((dn=dn.apply(nn,tn)).next())});const{TextArea:sn}=a.default,{confirm:wn}=Te.default,{Panel:Bn}=ge.default,Fn={loading:!0,user:null,status:0,data:void 0,lastedUpdateTime:0};var gn=(nn=>(nn[nn.SET_INITAL_DATA=0]="SET_INITAL_DATA",nn[nn.SET_LOADING=1]="SET_LOADING",nn[nn.SET_STATUS=2]="SET_STATUS",nn))(gn||{});const Dn="#### \u9898\u76EE\u63CF\u8FF0\n\u73B0\u6709\u4E00\u4E2A\u6574\u578B\u6570\u7EC4 `nums`\uFF0C\u8BF7\u7F16\u5199\u7A0B\u5E8F\u5C06\u6570\u7EC4 `nums` \u4E2D\u7684\u6240\u6709 `$$0$$` \u79FB\u52A8\u5230\u6570\u7EC4\u7684\u672B\u5C3E\uFF0C\u4F46\u4E0D\u6539\u53D8\u975E\u96F6\u5143\u7D20\u5728\u6570\u7EC4\u4E2D\u7684\u76F8\u5BF9\u4F4D\u7F6E\u3002\u8BF7\u5728\u539F\u6570\u7EC4 `nums` \u4E0A\u8FDB\u884C\u64CD\u4F5C\u3002\n#### \u8F93\u5165\u8F93\u51FA\u683C\u5F0F\n**\u8F93\u5165\u683C\u5F0F**\n\u7B2C\u4E00\u884C\u6709\u4E00\u4E2A\u6574\u6570 `numsSize`\uFF0C\u8868\u793A\u6570\u7EC4 `nums` \u7684\u5927\u5C0F\uFF1B\n\u7B2C\u4E8C\u884C\u6709 `numsSize` \u4E2A\u6574\u6570\uFF0C\u8868\u793A\u6570\u7EC4 `nums` \u7684\u6240\u6709\u5143\u7D20\uFF0C\u6BCF\u4E2A\u6574\u6570\u7528\u4E00\u4E2A\u7A7A\u683C\u9694\u5F00\u3002\n**\u8F93\u51FA\u683C\u5F0F**\n\u4E00\u884C\u8F93\u51FA\u6570\u7EC4 `nums` \u7684\u6240\u6709\u5143\u7D20\uFF0C\u6709 `numsSize` \u4E2A\u6574\u6570\uFF0C\u6BCF\u4E2A\u6574\u6570\u7528\u4E00\u4E2A\u7A7A\u683C\u9694\u5F00\u3002\n#### \u8F93\u5165\u8F93\u51FA\u6837\u4F8B1\n**\u8F93\u5165**\n`4`\n`0 1 2 3`\n**\u8F93\u51FA**\n`1 2 3 0`\n**\u89E3\u91CA\uFF08\u53EF\u9009\uFF09**\nXXXXX\n#### \u8F93\u5165\u8F93\u51FA\u6837\u4F8B2\n**\u8F93\u5165**\n`5`\n`1 1 0 1 0`\n**\u8F93\u51FA**\n`1 1 1 0 0`\n**\u89E3\u91CA\uFF08\u53EF\u9009\uFF09**\nXXXXX\n#### \u8BF4\u660E\u63D0\u793A\n-`1\u2264n\u2264100`";function un(nn,tn){switch(tn.type){case 0:return jt(jt({},nn),tn.payload);case 1:return Ht(jt({},nn),{loading:tn.payload});case 2:return Ht(jt({},nn),{status:tn.payload});default:throw new Error}}var Tn=()=>{var nn,tn,dn;const Cn=(0,Se.useLocation)(),{id:Pn}=(0,Se.useParams)(),[Hn]=x.default.useForm(),[Gn,_n]=(0,le.useState)(),[Yn,Wn]=(0,le.useState)(!1),[yr,cr]=(0,le.useState)([]),[cn,An]=(0,le.useState)([]),[qn,wr]=(0,le.useState)([]),[Rt,Xt]=(0,le.useState)([]),[Et,Dt]=(0,le.useState)([]),[Tt,_t]=(0,le.useState)("C"),[bt,Zt]=(0,le.useReducer)(un,Fn),{loading:Kt,data:Yt,user:Ft,status:$t}=bt,zt=Yt==null?void 0:Yt.hack_sets,Wt=(nn=Yt==null?void 0:Yt.hack)==null?void 0:nn.test_set_average,[hn,mn]=(0,le.useState)(!1),In=(0,le.useRef)([]),[er,ar]=(0,le.useState)(!1),[fr,Jn]=(0,le.useState)(!1),Kn=(0,le.useRef)(!0),[$n,dr]=(0,le.useState)({});(0,le.useEffect)(()=>((0,Se.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,Se.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),()=>{(0,Se.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,Se.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}),[]),(0,le.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)});const Tr=()=>Qt(void 0,null,function*(){const ir=yield(0,Ae.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice"}}),Qn=yield(0,Ae.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source"}});An(ir.tag_disciplines||[]),wr(Qn.tag_disciplines||[])});var Cr=[{language:"C",code:""},{language:"C++",code:""},{language:"Java",code:""},{language:"Python",code:""}];const Or=(0,le.useCallback)(()=>Qt(void 0,null,function*(){if(Zt({type:1,payload:!0}),Pn){const ir=yield He(Pn),{user:Qn,language:gr,practice_sets:Xn,practice_codes:bn,description:kn,difficulty:Ln,name:jn,open_or_not:tr,time_limit:ur,test_set_average:Nn,test_set_score:Sn,status:Un,tag_discipline_ids:rr,source_discipline_ids:Gr,item_banks_group_id:wi,is_file:ci=!1,hide_actual_output:ji,review_privilege:Ci,review_description:Si,submit_rule:Ni}=ir;dr({review_privilege:Ci,status:Un,review_description:Si,name:jn}),mn(ji);const Pi=ci?[{input:"",output:"",score:100,position:1}]:Xn;ci?(cr(Xn),Hn.setFieldsValue({hack_sets:Pi})):cr([]),Zt({type:0,payload:{loading:!0,user:Qn,status:Un,data:{hack:{difficulty:Ln,name:jn,description:kn,open_or_not:tr,time_limit:ur,test_set_average:Nn,test_set_score:Sn,tag_discipline_ids:rr,source_discipline_ids:Gr,is_file:ci,submit_rule:Ni},hack_sets:Pi}}}),_n({hack:{difficulty:Ln,name:jn,description:kn,open_or_not:tr,time_limit:ur,test_set_average:Nn,test_set_score:Sn,tag_discipline_ids:rr,source_discipline_ids:Gr,is_file:ci}});const vo=bn==null?void 0:bn.map(go=>Ht(jt({},go),{code:Ee.Base64.decode(go==null?void 0:go.code)}));Dt(vo),In.current=vo}else{const{user:ir}=yield Ue();Zt({type:0,payload:{loading:!0,status:0,user:ir,data:{hack:{difficulty:"",time_limit:3,description:Dn,test_set_score:!0,test_set_average:!0,open_or_not:!0,name:"",is_file:!1,submit_rule:1},hack_sets:[{input:"",output:"",score:100,position:1}]}}}),_n({hack:{difficulty:"",time_limit:3,description:"",test_set_average:!0,open_or_not:!0,name:"",is_file:!1}}),Dt(Cr),In.current=Cr}Zt({type:1,payload:!1})}),[Pn]);(0,le.useEffect)(()=>{try{Or(),Tr()}catch(ir){console.log(ir,"----")}},[]);function Vn(ir,Qn){return Qt(this,null,function*(){var gr;const{hack_sets:Xn,hack:bn}=jt({},ir);bn.hide_actual_output=hn;let kn=[],Ln=[],jn=0;const tr=bn!=null&&bn.is_file?yr.map((Sn,Un)=>Ht(jt({},Sn),{position:Un+1})):Xn.map(Sn=>Ht(jt({},Sn),{is_file:!1}));for(let Sn of tr)jn+=Sn.score,Sn.id&&Sn.id>=0?kn.push(Sn):Ln.push(Sn);if(!(tr!=null&&tr.length)){z.ZP.error("\u6D4B\u8BD5\u96C6\u4E0D\u80FD\u4E3A\u7A7A");return}if(jn!==100&&!bn.test_set_score){z.ZP.error("\u6D4B\u8BD5\u96C6\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");return}if(tr!=null&&tr.some(Sn=>!Sn.output)){z.ZP.error("\u6D4B\u8BD5\u96C6\u8F93\u51FA\u4E0D\u80FD\u4E3A\u7A7A");return}Kn.current?ar(!0):Jn(!0);let ur;const Nn=Et==null?void 0:Et.map(Sn=>Ht(jt({},Sn),{code:Ee.Base64.encode(Sn==null?void 0:Sn.code)}));if(Pn?ur=yield Je(Pn,{practice:bn,practice_codes:Nn,practice_sets:Ln,update_practice_sets:kn}):ur=yield Pe({practice:bn,practice_codes:Nn,practice_sets:tr,publish:!Kn.current}),ar(!1),Jn(!1),(ur==null?void 0:ur.status)===0){if((gr=ur==null?void 0:ur.similar_practice)!=null&&gr.length){Wn(!0),Xt(ur==null?void 0:ur.similar_practice);return}if(Pn){if(z.ZP.success("\u4FDD\u5B58\u6210\u529F"),!Kn.current){const Sn=yield(0,Ae.ZP)(`/api/practices/${Pn}/start`,{method:"get"});(Sn==null?void 0:Sn.status)===0&&Se.history.push(`/problems/${Sn==null?void 0:Sn.identifier}/oj/${Pn}`)}}else z.ZP.success("\u65B0\u5EFA\u6210\u529F"),Se.history.replace(`/problems/${ur==null?void 0:ur.identifier}/ojedit`)}})}function xr(){Se.history.replace("/problems")}const hr=ir=>{const Qn=Math.floor(100/ir.length),gr=Qn+100%ir.length;ir=ir.map((Xn,bn)=>bn===ir.length-1?Ht(jt({},Xn),{score:gr}):Ht(jt({},Xn),{score:Qn})),cr(ir)};function Hr(ir){ir.target.value||hr(yr),Zt({type:0,payload:{data:Ht(jt({},Yt),{hack:Ht(jt({},Yt.hack),{test_set_score:ir.target.value})})}})}function Xr(ir){Zt({type:0,payload:{data:Ht(jt({},Yt),{hack:Ht(jt({},Yt.hack),{is_file:ir.target.value})})}})}function Ur(ir){mn(ir.target.checked)}function Kr(ir){const Qn=ir.target.value;Qn&&hr(yr),Zt({type:0,payload:{data:Ht(jt({},Yt),{hack:Ht(jt({},Yt.hack),{test_set_average:Qn})})}})}function ri(){let ir=Hn.getFieldValue("hack_sets");const Qn=ir.length+1,gr=Math.floor(100/Qn),Xn=100%Qn;ir.map((bn,kn)=>(Wt&&(bn.score=gr),bn.position=kn+1,bn)),ir.push({input:"",output:"",position:Qn,score:Wt?gr+Xn:0}),Hn.setFieldsValue({hack_sets:ir}),Zt({type:0,payload:{data:Ht(jt({},Yt),{hack_sets:ir})}})}(0,le.useEffect)(()=>{if(Wt){const ir=zt==null?void 0:zt.length,Qn=Math.floor(100/ir),gr=100%ir;zt==null||zt.map((Xn,bn)=>(Xn.score=Qn,Xn.position=bn+1,bn===ir-1&&(Xn.score=Qn+gr),Xn)),Zt({type:0,payload:{data:Ht(jt({},Yt),{hack_sets:zt})}}),Hn.setFieldsValue({hack_sets:zt})}},[Wt]);function Fr(ir){let Qn=Hn.getFieldValue("hack_sets");const gr=(Qn==null?void 0:Qn.length)-1,Xn=Math.ceil(100/gr),bn=100%gr;Qn.splice(ir,1),Qn==null||Qn.map((kn,Ln)=>(Wt&&(kn.score=Xn,Ln===gr-1&&(kn.score=Xn+bn)),kn.position=Ln+1,kn)),Zt({type:0,payload:{data:Ht(jt({},Yt),{hack_sets:Qn})}}),Hn.setFieldsValue({hack_sets:Qn})}function qr(ir){_t(ir)}const Pr=ir=>{var Qn;const gr=(Qn=In.current)==null?void 0:Qn.findIndex(Xn=>Xn.language===Tt);In.current[gr].code=ir,Dt(In.current)},ei=ir=>{_n(jt({},Hn.getFieldsValue()))},ui=ir=>Qt(void 0,null,function*(){const Qn=yield(0,Ae.ZP)(`/api/practices/${ir}/start`,{method:"get"});(Qn==null?void 0:Qn.status)===0&&(0,wt.xg)(`/problems/${Qn==null?void 0:Qn.identifier}/oj/${ir}`)}),ki=()=>Qt(void 0,null,function*(){const ir=yield He(Pn),{name:Qn,status:gr,review_privilege:Xn,review_description:bn}=ir;dr({review_privilege:Xn,status:gr,review_description:bn,name:Qn})}),mi=()=>{let ir="";Te.default.confirm({icon:null,width:700,className:"custom-modal-divider",centered:!0,title:"\u4E0D\u901A\u8FC7\u539F\u56E0",content:pt.createElement("div",{className:"mt20"},pt.createElement(Le.Z,{className:yt.MdEditor,defaultValue:ir,onChange:Qn=>{ir=Qn}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Qt(void 0,null,function*(){if(!ir)return z.ZP.warning("\u4E0D\u901A\u8FC7\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const Qn=yield(0,Ae.ZP)(`/api/practices/${Pn}/review.json`,{method:"post",body:{op:"fail",description:ir}});(Qn==null?void 0:Qn.status)===0&&(z.ZP.success("\u63D0\u4EA4\u6210\u529F"),ki())})})},xi=()=>Qt(void 0,null,function*(){Te.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u63D0\u793A",content:`\u786E\u8BA4\u5C06\u9898\u76EE\u300A${$n==null?void 0:$n.name}\u300B\u7684\u5BA1\u6838\u901A\u8FC7\u5417\uFF1F`,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Qt(void 0,null,function*(){const ir=yield(0,Ae.ZP)(`/api/practices/${Pn}/review.json`,{method:"post",body:{op:"pass"}});(ir==null?void 0:ir.status)===0&&(z.ZP.success("\u63D0\u4EA4\u6210\u529F"),ki())})})}),hi=()=>{const ir=Te.default.confirm({icon:null,width:700,className:`${yt.cusModal} custom-modal-divider`,centered:!0,title:pt.createElement(ie.Z,null,pt.createElement(oe.Z,{flex:"1"},"\u4E0D\u901A\u8FC7\u539F\u56E0"),pt.createElement(oe.Z,null,pt.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:()=>ir.destroy()}))),content:pt.createElement("div",null,pt.createElement(Bt.Z,{className:"mt20",value:($n==null?void 0:$n.review_description)||""}))})};return pt.createElement(ee.Z,{spinning:Kt,size:"large",className:yt["oj-custom-large-spin"]},Yt?pt.createElement(le.Fragment,null,pt.createElement("header",{className:yt.header},pt.createElement("div",null,pt.createElement("img",{src:`${mt.Z.IMG_SERVER}/images/${Ft==null?void 0:Ft.image_url}`,alt:"user",width:30}),pt.createElement("span",null,Ft==null?void 0:Ft.name)),pt.createElement("h2",null," ",(tn=Yt==null?void 0:Yt.hack)==null?void 0:tn.name," "),Pn?pt.createElement("a",{className:yt.btn_back,onClick:xr}," ",pt.createElement(Ie.Z,null),"\u9000\u51FA"):null),pt.createElement(x.default,{form:Hn,initialValues:Yt,layout:"vertical",className:yt["oj-form-container"],onValuesChange:ei,onFinish:Vn},pt.createElement(Ke.Z,{hideResize:!0,className:yt["oj-problems"],leftChild:pt.createElement(Mn,{formValue:Gn,onRemoveTestCase:Fr,onAddTestCase:ri,hack:Yt.hack,onChangeScore:Hr,onChangehide:Ur,onChangeAverage:Kr,onChangeFile:Xr,uploadData:yr,setUploadData:cr,handleUploadRatio:hr,ischecked:hn,pointData:cn,sourceData:qn,getPointData:Tr}),rightChild:pt.createElement(ye,{value:(dn=Et==null?void 0:Et.find(ir=>ir.language===Tt))==null?void 0:dn.code,onChange:Pr,onLanguage:qr,languageItems:Et,language:Tt})}),pt.createElement("div",{className:yt.footer},!!Pn&&pt.createElement("div",{className:yt.result},pt.createElement("span",null,"\u5BA1\u6838\u7ED3\u679C:"),$n!=null&&$n.review_privilege?pt.createElement(pt.Fragment,null,pt.createElement("div",{onClick:xi,className:yt.pass},"\u901A\u8FC7"),pt.createElement("div",{onClick:mi,className:yt.noPass},"\u4E0D\u901A\u8FC7")):pt.createElement(pt.Fragment,null,($n==null?void 0:$n.status)===0&&pt.createElement("div",{className:yt.passText},pt.createElement("i",{className:"iconfont icon-tongguo"}),"\u672A\u53D1\u5E03"),($n==null?void 0:$n.status)===1&&pt.createElement("div",{className:yt.passText},pt.createElement("i",{className:"iconfont icon-tongguo"}),"\u5DF2\u516C\u5F00"),($n==null?void 0:$n.status)===2&&pt.createElement("div",{className:yt.passText},pt.createElement("i",{className:"iconfont icon-tongguo"}),"\u672A\u5BA1\u6279"),($n==null?void 0:$n.status)===3&&pt.createElement("div",{className:yt.passText},pt.createElement("i",{className:"iconfont icon-tongguo"}),"\u5BA1\u6838\u4E2D"),($n==null?void 0:$n.status)===4&&pt.createElement("div",{className:yt.passText},pt.createElement("i",{className:"iconfont icon-tongguo"}),"\u5BA1\u6838\u5B8C\u6210\u5F85\u516C\u5F00"),($n==null?void 0:$n.status)===5&&pt.createElement("div",{className:yt.noPassText},pt.createElement("i",{className:"iconfont icon-weitongguo1"}),"\u5BA1\u6838\u4E0D\u901A\u8FC7",pt.createElement("span",{onClick:hi},"\u67E5\u770B\u539F\u56E0")))),pt.createElement(ue.ZP,{type:"primary",ghost:!0,onClick:xr},"\u9000\u51FA\u7F16\u8F91"),pt.createElement(ue.ZP,{disabled:fr,loading:er,type:"primary",onClick:()=>{Kn.current=!0,Hn.submit()}},"\u4FDD\u5B58 "),Pn?pt.createElement(ue.ZP,{disabled:er,loading:fr,style:{background:"#2FC25B",border:0},type:"primary",onClick:()=>{Kn.current=!1,Hn.submit()}},"\u7ACB\u5373\u4F53\u9A8C"):pt.createElement(ue.ZP,{disabled:er,loading:fr,type:"primary",onClick:()=>{Kn.current=!1,Hn.submit()}},"\u4FDD\u5B58\u5E76\u53D1\u5E03\u5BA1\u6838")))):null,pt.createElement(Te.default,{centered:!0,destroyOnClose:!0,footer:null,open:Yn,onCancel:()=>Wn(!1),title:"\u76F8\u4F3C\u6027\u68C0\u6D4B",width:"600px"},pt.createElement("div",null,pt.createElement("p",{className:"font14"},"\u7ECF\u7CFB\u7EDF\u68C0\u6D4B\u53D1\u73B0\uFF0C\u672C\u9898\u76EE\u4E0E\u7CFB\u7EDF\u4E2D\u5DF2\u521B\u5EFA\u7684\u9898\u76EE\u9AD8\u5EA6\u96F7\u540C\uFF0C\u8BF7\u8C03\u6574\u9898\u76EE\u540E\u518D\u8FDB\u884C\u4FDD\u5B58"),pt.createElement(E.default,{dataSource:Rt,bordered:!1,scroll:Rt.length>7?{y:300}:{},columns:[{title:"\u76F8\u4F3C\u9898\u9898\u76EE",dataIndex:"name",ellipsis:!0,render:(ir,Qn)=>pt.createElement("span",{onClick:()=>ui(Qn==null?void 0:Qn.identifier),style:{textDecorationLine:"underline"},className:"current c-light-primary"},ir)},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"create_time",width:170,render:ir=>{var Qn;return(Qn=Pt()(ir))==null?void 0:Qn.format("YYYY-MM-DD HH:mm")}}],pagination:!1}))))};function Mn({ischecked:nn,formValue:tn,hack:dn,onChangeAverage:Cn,onChangeScore:Pn,onChangehide:Hn,onChangeFile:Gn,onAddTestCase:_n,onRemoveTestCase:Yn,uploadData:Wn,setUploadData:yr,handleUploadRatio:cr,pointData:cn,sourceData:An,getPointData:qn}){var wr,Rt;const{test_set_average:Xt,test_set_score:Et}=dn,[Dt,Tt]=(0,le.useState)(!1),[_t,bt]=(0,le.useState)(!1),Zt=(Wt,hn)=>{const mn=[...Wn];mn.splice(hn,1),Xt?cr(mn):yr(mn)},Kt=(Wt,hn)=>{console.log(Wt,hn);const mn=Wn.map((In,er)=>er===hn?Ht(jt({},In),{score:Wt.target.value?Number(Wt.target.value):0}):In);yr(mn)},Yt=Wt=>{const hn=Wn.concat(Wt);dn.test_set_average?cr(hn):yr(hn)};function Ft(Wt){Wt.stopPropagation()}function $t(){if((0,At.Ny)()){bt("practice");return}let Wt="";Te.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",content:pt.createElement("div",null,pt.createElement(a.default,{placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57",maxLength:20,onChange:hn=>{Wt=hn.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Qt(this,null,function*(){const hn=yield(0,Ae.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:"practice",name:Wt}});(hn==null?void 0:hn.status)===0&&qn()})})}function zt(){if((0,At.Ny)()){bt("practice_source");return}let Wt="";Te.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u65B0\u5EFA\u6765\u6E90",content:pt.createElement("div",null,pt.createElement(a.default,{placeholder:"\u8BF7\u8F93\u5165\u6765\u6E90\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57",maxLength:20,onChange:hn=>{Wt=hn.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Qt(this,null,function*(){const hn=yield(0,Ae.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:"practice_source",name:Wt}});(hn==null?void 0:hn.status)===0&&qn()})})}return pt.createElement("div",{className:yt["oj-left-panel"]},pt.createElement("div",{className:yt["oj-form-info"]},pt.createElement(x.default.Item,{label:"\u9898\u76EE\u540D\u79F0",name:["hack","name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0"}],className:yt.inputOne},pt.createElement(a.default,{bordered:!1,maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0",suffix:pt.createElement("span",null,((Rt=(wr=tn==null?void 0:tn.hack)==null?void 0:wr.name)==null?void 0:Rt.length)||0,"/",pt.createElement("span",{className:"c-grey-999"},"60"))})),pt.createElement(x.default.Item,{name:["hack","description"],valuePropName:"defaultValue",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0\u5185\u5BB9"}]},pt.createElement(Le.Z,{placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u63CF\u8FF0\u2026",miniToolbar:!0,id:"moop_cases_content",noStorage:!0,height:200})),pt.createElement("div",{className:yt.row},pt.createElement("div",{className:yt.a},pt.createElement(x.default.Item,{label:"\u96BE\u6613\u5EA6",name:["hack","difficulty"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u6613\u5EA6"}]},pt.createElement(re.default,null,ke(be.difficulty)))),pt.createElement("div",{className:yt.b},pt.createElement(x.default.Item,{label:"\u9898\u76EE\u6765\u6E90",name:["hack","source_discipline_ids"]},pt.createElement(re.default,{placeholder:"\u9009\u62E9\u9898\u76EE\u6765\u6E90",showSearch:!1,mode:"multiple",showArrow:!0,getPopupContainer:Wt=>Wt.parentNode},An.map(Wt=>pt.createElement(re.default.Option,{key:Wt.id,value:Wt.id},Wt.name)))),pt.createElement(ue.ZP,{style:{padding:"0 18px"},type:"primary",ghost:!0,onClick:()=>zt()},(0,At.Ny)()?"\u6765\u6E90\u7BA1\u7406":"\u65B0\u5EFA\u6765\u6E90"))),pt.createElement("div",{className:yt.row},pt.createElement("div",{className:yt.b,style:{width:"100%",marginLeft:0}},pt.createElement(x.default.Item,{label:"\u77E5\u8BC6\u70B9",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"}],name:["hack","tag_discipline_ids"]},pt.createElement(re.default,{placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,mode:"multiple",showArrow:!0,getPopupContainer:Wt=>Wt.parentNode},cn.map(Wt=>pt.createElement(re.default.Option,{key:Wt.id,value:Wt.id},Wt.name)))),pt.createElement(ue.ZP,{type:"primary",ghost:!0,onClick:()=>$t()},(0,At.Ny)()?"\u77E5\u8BC6\u70B9\u7BA1\u7406":"\u65B0\u5EFA\u77E5\u8BC6\u70B9"))),pt.createElement("div",{className:yt.field},pt.createElement(x.default.Item,{label:"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236",name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:1,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F1\u79D2"}],className:yt.inputTwo,extra:pt.createElement("span",{style:{position:"absolute",left:200,top:11,color:"#333"}},"\u79D2",pt.createElement("span",{className:"ml5 c-grey-999"},"(\u4EE3\u7801\u6267\u884C\u6240\u5141\u8BB8\u7684\u6700\u5927\u65F6\u957F)"))},pt.createElement(te.Z,{style:{width:185},min:1}))),pt.createElement("div",{className:"tst-case-info"},pt.createElement("h3",{className:"flex-container",style:{justifyContent:"space-between"}}," ","\u6D4B\u8BD5\u7528\u4F8B\u4E0E\u7CFB\u7EDF\u8BC4\u5206\u89C4\u5219",!dn.is_file&&pt.createElement(ue.ZP,{style:{height:40},type:"primary",ghost:!0,onClick:_n},"\u6DFB\u52A0\u6D4B\u8BD5\u7528\u4F8B")),pt.createElement(x.default.Item,{name:["hack","test_set_score"]},pt.createElement(se.ZP.Group,{onChange:Pn},pt.createElement(se.ZP,{value:!0},"\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6",pt.createElement("span",{className:"tip"}," ","\uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u4EC5\u5F53\u6240\u6709\u6D4B\u8BD5\u96C6\u90FD\u6B63\u786E\u65F6\uFF0C\u624D\u83B7\u5F97\u4E00\u6B21\u6027\u5956\u52B1\uFF09")),pt.createElement(se.ZP,{value:!1},"\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6",pt.createElement("span",{className:"tip"}," ","\uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u901A\u8FC7\u6D4B\u8BD5\u96C6\u5373\u53EF\u83B7\u5F97\u5BF9\u5E94\u5956\u52B1\uFF09")))),pt.createElement(ae.default,{style:{marginBottom:"5px"},checked:nn,onChange:Hn},"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA \uFF08\u9009\u4E2D\uFF0C\u5219\u5728\u5B66\u751F\u505A\u9898\u8FC7\u7A0B\u4E2D\u65E0\u6CD5\u770B\u5230\u5B9E\u9645\u8F93\u51FA\u7ED3\u679C\uFF0C\u4EC5\u5C55\u793A\u662F\u5426\u8BC4\u6D4B\u662F\u5426\u901A\u8FC7\uFF09"),pt.createElement(x.default.Item,{className:yt.testJi,name:["hack","is_file"],label:"\u7528\u4F8B\u7C7B\u578B:"},pt.createElement(se.ZP.Group,{onChange:Gn},pt.createElement(he.Z,{direction:"horizontal"},pt.createElement(se.ZP,{value:!1},"\u6587\u672C"),pt.createElement(se.ZP,{value:!0},"\u6587\u4EF6")))),pt.createElement(x.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",name:["hack","submit_rule"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},pt.createElement(se.ZP.Group,null,pt.createElement(se.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),pt.createElement(se.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),pt.createElement(se.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"),pt.createElement(se.ZP,{value:3},"\u5FFD\u7565\u6BCF\u884C\u9996\u5C3E\u7A7A\u683C"))),!dn.test_set_score&&pt.createElement(x.default.Item,{name:["hack","test_set_average"],label:"\u7CFB\u7EDF\u8BC4\u5206\u5360\u6BD4"},pt.createElement(se.ZP.Group,{onChange:Cn},pt.createElement(se.ZP,{value:!0},"\u5747\u5206\u6BD4\u4F8B"),pt.createElement(se.ZP,{value:!1},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B"))),dn.is_file&&pt.createElement("div",{className:yt.upBtn},pt.createElement(ue.ZP,{ghost:!0,type:"primary",className:"mb20",onClick:()=>Tt(!0)},"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"),pt.createElement(ut.Y2,{disabled:dn==null?void 0:dn.test_set_average,inputChange:Kt,showScore:!dn.test_set_score,data:Wn,onRemove:Zt})),!dn.is_file&&pt.createElement(x.default.List,{name:"hack_sets"},(Wt,{})=>pt.createElement(ge.default,{accordion:!0},Wt.map((hn,mn)=>pt.createElement(Bn,{key:`${hn.key}--${mn}`,header:pt.createElement("a",{className:yt["test-case-name"]},pt.createElement("span",null,"\u6D4B\u8BD5\u7528\u4F8B",mn+1),Et?null:pt.createElement(pt.Fragment,null,pt.createElement(x.default.Item,{name:[hn.name,"score"],fieldKey:[hn.fieldKey,"score"],rules:[{required:!0,message:`\u8BF7\u8F93\u5165\u6D4B\u8BD5\u96C6${mn+1}\u8BC4\u5206`}]},pt.createElement(te.Z,{onClick:Ft,min:0,max:100,disabled:Xt})),pt.createElement("span",null,"%"))),extra:mn>0?pt.createElement("div",{onClick:Ft},pt.createElement(me.Z,{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u6D4B\u8BD5\u96C6\b"+(mn+1),onConfirm:()=>{Yn(mn)}},pt.createElement(Me.Z,{className:yt["btn-remove-case"]}))):null},pt.createElement(x.default.Item,{label:"\u8F93\u5165",name:[hn.name,"input"],fieldKey:[hn.fieldKey,"input"]},pt.createElement(sn,null)),pt.createElement(x.default.Item,{label:"\u8F93\u51FA",name:[hn.name,"output"],fieldKey:[hn.fieldKey,"output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},pt.createElement(sn,null)))))))),pt.createElement(ut.ZP,{rootIdentifier:null,visible:Dt,onClose:()=>Tt(!1),onOK:Yt}),pt.createElement(lt,{visible:_t,onCancel:()=>{bt(!1),qn()},onOK:()=>{bt(!1),qn()}}))}},55178:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Y2:function(){return He},ZP:function(){return Je}});var le=Ce(59301),yt=Ce(94968),a=Ce(6767),Te=Ce(62957),ge=Ce(77019),x=Ce(47889),z=Ce(7939),ie=Ce(62673),oe=Ce(25399),ee=Ce(37568),ue={wrap:"wrap___MkYbQ",colorBlue:"colorBlue___onjbP",repeatedName:"repeatedName___nbqnE",text:"text___xvutp",greyText:"greyText___dihvZ",noData:"noData___LxOJA",dragger:"dragger___y7F4A",uploadText:"uploadText___Et3KS",btnS:"btnS___k1e6j",testCaseRadio:"testCaseRadio___q1wXT",head:"head___s4Eix",operation:"operation___JCAVh",headProgram:"headProgram___uWA_M",listWrapper:"listWrapper___xW3b4",list:"list___dCbd6",del:"del___abNho",info:"info___J1Wmf"},E="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAADICAYAAACAj9YNAAAAAXNSR0IArs4c6QAAD59JREFUeF7tnet527gShsFUZFeQpJN1GkncyG46iVJBVFG4D6mLKYmSMLgQM4NXf855NrgMvm/8egBC9BD4oIBhBV7++fPlHP6n8PH/p/84Dp8XS7v8txB2N8sext/h7+G/73++3v67YZ08hz54Xhxr86fAy7c/P+ZVHQB1DaYaCz7AbBzfgVsNefPHBGL5GjJCRQUW0PpecRrp0DugJpWsXnsgVk9bRk5QQCm0nq1khhpb0Gcy1fl3IFZHV0YVKDCfa03nWeOgqdoSrODc9Lz1BGgp8qX1AWJputGrgAJz1bXd2VaBiEVDUJ2J5EpvDMTStaNnogJHeFmvuiSrB2gStYRtgZhQMJqnKWD0rCttsfd7AbPSioYQgFgFURnyQwHnW8ZUq4FZqnIr/YBYQTEZ6lKBDreNshQYxvf9v6+He298khUAYsnS0fGeAsBLmBvj+JWnmULNFs2BWLp29LxSYL4qMczXJLa4Se9Nf7aYiY4CsUTh6MbWsUoOsMUUywrExJLRYakAW8cq+UBVJpAViAnEoinV16Y5QFUWJTcQi5KJRtcKUIFtlBOA7KnQQOypRDS42D5yeN8iIdhePlAdiLVISaNzUn01No6rGKsGALHGeWllegCmxCm2lzdGADEluak5DACmzB1AdmEIEFOWn9rCAWDaHDnGA8jOxgAxpTmqIayXt/0vbt9rcOJODIBsFgaIKc7RlqFRgbVUXzA3IANignTppikAM2Z15yCjEjOWr7XDBWC1Fa40fscgA2KVcsrisADMomuLmDsFGRAznrelwj++Rmc6yOdjWYEOL8QCMcsJWyh2AFZISCXD7P976ernuqvFKskxVWEAMFV2lAmms20lECuTNmZH4S6YWeseB94RyICY0xyOWRYH+TEqGW7TCciAmOEczQmdbWSOenb69nA+BsTs5GPRSNlGFpVT72AdVGNATG/6VYuMbWQ1aXUO7BxkQExn2lWN6uVtP1adgMHVKeB5WwnE1KVb3YDYRtbVV+3ojqsxIKY268oHxmF+eU0tjei1GgNilrIwM1a2kZkCWu/utBoDYtYTMzJ+tpGRQnlv5hBkQMx70h7XRxXWidHPl7nb//fy9XkzOy2AmB2vkiPlSkWydD47OqvGgJjPNL1YFVVYByZLlgjEJGrRtrUCPJFs7YDS+R2BjEpMSY7NsDl+9j9fd6XC4kC/lJLOxgFizgzdYDnzudTpMw6fj//3DK4HIRyANoy/w9+wkwCOKmwDYy1P4QRkVGIVk/AMrnH4XniaXQzUqMIKq+5tOCDmzdH89cyVz6fwJRwqrZgqK3/SEFaBRhVWQlr/Y3i4xU8lVihPlVxj2IVxfJ+2nFRhhYz1PoyDagyIZSapEnhdr2I6R9uqEsxUkO5NFQBiTeVvOrlSeDXVhMltKmB9S0klJsw74CUUjOb6FTBejQExQYoBMIFYNLWkgOnvUwKxyFTjoDxSKJqZVMDylhKIPUk5riqY/JkkaKkChreUQOyB2WwfpT8JtDerABAza93dwAGYP09Z0WMFrG4pqcRWfGULyY97jwoAMSeuAzAnRrIMuQJGt5RUYldW8xRSnvv0cKIAELNvJACz7yEryFLA5H0xKrGj5xzkZyU/nZ0oYPFcDIiFEDgHc/ITyDKyFQBi2RK2GYBtZBvdmVWhAuP4VfL2YA0r6L4SYxupIQ2JQY0CBg/3gdjbflSTQASCAq0VAGKtHZDNTxUm04vWHSgAxOyYzGG+Ha+IdFMFzF2z6HY7yWH+pj8YTGZHASBmwSuqMAsuEWMjBYBYI+FF0wIxkVw07kwBa3fFutxOspXs7KeS5YoUAGIiudo0fuFaRRvhmdWEAkBMuU1sJZUbRHjNFQBizS14HABbSeUGEV5zBYBYcwueQowb+so9Iry2CgCxtvo/nJ2tpGJzCE2NAkBMjRW3gQAxxeYQmhoFgJgaK1Yg9u3PjzAO3xWHSGgo0FoBLru2duDR/HzhW7M7xKZEASCmxIjVMHgyqdkdYlOiABBTYgQQ02wEsWlWAIhpdodKTLM7xKZCAd4npsKGu0HwdSPd/hCdAgV4x35bE+YrFNPnUzj87/IzDp9DWPnvbUNmdhTQpQAQ286P+Unj9DnAafrcgmu7cJgJBVwoYO2O2CS6mVfxXEELYLn4kWERShXYhXF8t/Kn21RDbAEuLqgqzXbCcq+AeqCpgxjgcv9DwQLtKqASaGogxm16u5lN5B0qoOgqRnOIAa8OfwBYshcFVFRmzSAGvLzkMetAgdAUZptD7Agv7myR+SjgT4EmMNsUYlRf/rKWFaHAigKbwmwTiAEvEh0FOlRgo8P/6hADYB0mL0tGgZMCG4CsGsSOr4KeLqlyu56URoG+Fai6vawCMaqvvjOW1aPAqgKVqrLiEANgJDAKoMBdBSqArCjEABjJiwIoEKFA0bfHFoMYAIuwjiYogAInBYqBrAjEeO0zmYkCKJCgQBGQZUMMgCVYRxcUQIFiFVkWxNhCkokogALZCmQe9idDDIBlW8cAKIACJwUyQJYEMQBG7qEAChRXIBFkYogdb+L/Kr4ABkQBFECBBJDJIfa2H1EaBVAABaopIASZCGI8iaxmGwOjAAosFJD86bhoiHEORo6hAApspoCgGouCGOdgm1nHRCiAAsInlnEQe9tPB/m8Uof0kiswjO/hb9jNHYeBVzPJFey6R8y28inE2EZ2nUM5i1/9Sgn5lCNph30jtpUPIcY2ssOkKbTkR79BAVkhkXsZ5gnIHkOMbWQvaVJ2neP4df/z9bCFvPMBZGUl9z7ao1+KdyFGFeY9LSqtLwJgp5m5slPJA4/DPqjG7kOMKsxjKtRdU8T5xXUAL1yeruuJo9HvVWOrEKMKc+T8VktJANgUGrm2lUEO5rmTY+sQowpz4PiGS0gE2Hlb+c+fL2EY+D7uhpaZnCoWYvxmNGlvu6AzAXYG2bc/P8I43yPjgwL3FVjJt5tKjMNWMkigQJHXCwMygeK9N42EGG+p6D1R4tZfFGCALE50WoVwfcB/UYmxlSRFohUQXKWIHvPYkDtkUsU6a39VjV1CjAP9zrIhcbkVAXauyMjFRHP66Lasxq4hxlayjxxIX+UGAANk6fZ003ORh2eIsZXsxv70hRZ6EikJgMuwErU6arvIxQ+IUb53lAEJS20AsClKfrkmeNVHl/ODpSXE2Er2Yb58lY0AxhNLuVU99Tidi80Q47ddT9aL11rlKoU0Cp5YShXroP3xlysQ68DrjCWqABgVWYaDnrteQIzzMM9Wp65NFcAAWaqNrvvNOXqoxICYa6eTFrfhVQppfGwtpYr5bT+di50gxqG+X5/lK1MMsHNFxi9eua8eewzj+8ChvkdnM9bU+EmkJHJ2EBK1nLYFYk6NTV2WIYDNxyC8hyzVaT/9ZojxHic/huasxBjAzttKQJbjuv2+M8Q4W7BvZO4KjAKMJ5a5xrvovwNiLnzMWoTKqxTSFbGjkCrmpj0Qc2Nl2kJcAIyKLM18L72oxLw4mbIOA1cppMuiIpMqZr/9BDHuiNn3Ub4ChwCjIpOngYceQMyDi9I1OAbYGWQ8sJJmhdn2QMysdYmBG38SKVk1uwyJWnbbAjG73skj7whgkzhchpWniMUeQMyiaykxdwaw87aSy7Ap2WKqD08nTdmVHKyrqxRSFXhiKVXMVnsgZsuvlGi7BhhPLFNSxlYfIGbLL2m0AGyhGBWZNH1stAdiNnxKi7KDqxRSYQCZVDH97XmLhX6P0iIEYHd146UHaSmltNcOiCl1JissAPZUPkD2VCIrDXa82dWKVbFxdnqVIlaeZTsuw6aopqzP9D6xKSTMVGZMajgATKQcl2FFculsPI7nv3bEl8B1WiSJiieRErWObTnoTxBNU5cFxH6FEL5oio1YhApwDiYU7KM5IEuWrnnHjz/Zxnv2m5uRGQBVWIaAQCxDvLZdF388l++XtbWiwOzTb6QCw3Q5BBAzavvxDPic+BzuGzXyFDbbyWQDuW6RLF3bjsecX0KMc7G2luTPDsjEGlKFiSVT0+G0+/iAGOdiaszJDGSX1X8c3/c/X/PGyAogrvMMn+kzDp/jeqy24mFWhniNu57PgT8gxrlYY09UTa/6QQHVk6pcaRPMYtdxcRjM2UAbP1TOqvTiLBdUVWbL5kEtH2RdQowt5eZmqJ0QiKm1hsDCxU7h5rE8TylJkaMCKreUVGLkZ7h6gHULMaoxsuSgABAjE1QqcH0nEoiptElFUEBMhQ0EcaXATV6u3vJmS0niUImRAyoVWLkLuQ4xtpQq/ds4KCqxjQVnuqcKrObk3e/bUY09FdR7AyDm3WFr67vzjZT7EKMas2Zx6XiBWGlFGS9Hgbv5+PDNB1RjOZqb7wvEzFvoaAEPvhf8GGJUY46yQLwUICaWjA5VFHhy8frpO6j4nloVWywMCsQsuOQ/xqd5+BRik0ZsK/1nysoKnyZPC1W4sd9C9YZzRrxeKg5ibCsbuthsaiDWTHomPioQlYNREJurMUDWW2ZFJdDWolCJba14u/liX7keDTG2le3MbDQzEGskPNNOL7scv8a+nFMGMaqxnvILiPXktqa1Cl8DJYIY20pNTlePBYhVl5gJSjxQEkMMkHWTeECsG6v1LDT2HGwZcRLEjudj/HUkPd7XiASI1VCVMe8rIDgHKwIxQOY+G4GYe4sVLTARYNMKkiuxGWL8hSRFWVA8FCBWXFIGXFVAeJB/PUYWxACZ66QEYq7tVbK4TIBlV2InGajIlCRE2TCAWFk9Ge2mhBrf9/++Hv4IcsYnuxK7Atn3EAJ/VTnDEEVdgZgiM9yFUqACO2lSDGJnmL3teWrpI+OAmA8f9a0i4xB/bTHFITafkwEyfYkjjwiIyTWjx2MFdmEc32O/ThQrZhWIzSDjK0qxHmhtB8S0OmMxroLbx5ujtZp6HA/8OSerKXK9sYFYPW37GrkiwCYhq1ViS5fYXprMWSBm0jZVQVfZPm5aiV2A7HAxlqpMVY49DAaI2fFKX6SVq6/lgjepxC5gxlmZvoRbjwiIWXFKU5wbwuu07M0hNh/6U5VpSrt7sQAxCy5pirEBwDY7E7unMzDTlIE3sQAx1fYoCq4RvJpWYtfyAzNFCfkRChBTaYuioBrDSxXETsEAM0UJGgIQU2WHkmCG8X2KpMR3HkutqMmZWEzwAC1GpaptgFhVeU0NvgvD+FsTuJbqqYXYMkiA1iThgVgT2dVMqhpc5iB2A7T5kcR852z68NaMOnkPxOroqnXUGVrhb9iV/m5j7QWbqMSeiTBXatPnU/gSxuHzSntA90zE238HYnLNWvTYXU26lusfbSZQnT4GgbUm8P/6C+VmwqlgeQAAAABJRU5ErkJggg==",re=Ce(47257),te=Ce.n(re),se=Ce(25173),ae=Ce(49317),he=Ce(1012),me=Ce(76406),ve=Ce(86974),pe=Ce(59301),be=Object.defineProperty,je=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Ee=(st,_e,Ke)=>_e in st?be(st,_e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):st[_e]=Ke,Ie=(st,_e)=>{for(var Ke in _e||(_e={}))De.call(_e,Ke)&&Ee(st,Ke,_e[Ke]);if(Be)for(var Ke of Be(_e))Se.call(_e,Ke)&&Ee(st,Ke,_e[Ke]);return st},Me=(st,_e)=>je(st,ke(_e)),Le=(st,_e,Ke)=>new Promise((nt,rt)=>{var et=Ge=>{try{Ye(Ke.next(Ge))}catch(it){rt(it)}},Ve=Ge=>{try{Ye(Ke.throw(Ge))}catch(it){rt(it)}},Ye=Ge=>Ge.done?nt(Ge.value):Promise.resolve(Ge.value).then(et,Ve);Ye((Ke=Ke.apply(st,_e)).next())});const{Dragger:Ae}=yt.default,Pe=st=>{const _e=it=>it&&it.substring(0,it.lastIndexOf("."));for(var Ke=[...st],nt=0,rt=[],et=0;et<Ke.length;et++){for(var Ve="",Ye=0;Ye<rt.length;Ye++)if(_e(rt[Ye][0].name)==_e(Ke[et].name)){nt=1,Ve=Ye;break}if(nt==1)rt[Ve].push(Ke[et]),nt=0;else if(nt==0){let it=new Array;it.push(Ke[et]),rt.push(it)}}return rt.map(it=>{if(it.forEach(qe=>{let vt=qe.name.split(/\.(?=[^\.]+$)/);qe.name=`${vt[0]}.${vt[1].toLowerCase()}`}),it[0].name.includes(".in"))return it.length===2?it:[it[0],{}];if(it[0].name.includes(".out"))return it.length===2?it.reverse():[{},it[0]]})},Ue=({onClose:st,onOK:_e,visible:Ke,wrapClassName:nt,rootIdentifier:rt,multiple:et=!1,defaultMultipleValue:Ve=!0})=>{const[Ye,Ge]=(0,le.useState)([]),[it,qe]=(0,le.useState)({}),[vt,ot]=(0,le.useState)(!1),[Qe,Fe]=(0,le.useState)(!0),Re=(0,le.useRef)([]),ne=(0,le.useRef)(0),fe=()=>{st()};(0,le.useEffect)(()=>{Ne()},[]),(0,le.useEffect)(()=>{Ke&&(Re.current=[],ne.current=0,Ge([]),Fe(Ve))},[Ke]);const Ne=()=>Le(void 0,null,function*(){try{const at=yield(0,ae.ZP)("/api/buckets/get_upload_token_for_big_files",{method:"get"}),lt=JSON.parse((0,se.pe)(at.data));qe(lt)}catch(at){}}),We=at=>at&&at.substring(0,at.lastIndexOf(".")),we=at=>{var lt,mt;const ut=We((lt=at[0])==null?void 0:lt.name)||We((mt=at[1])==null?void 0:mt.name),ct=Ye.filter(Pt=>We(Pt.name)!==ut);Re.current=[...ct],Ge([...ct])},ye=at=>{if(!Qe){const wt=new FormData;wt.append("file",at.file),(0,ae.ZP)("/api/attachments/get_file_content.json",{method:"post",body:wt},!0).then(At=>{if(At.status===0){ne.current=ne.current+1;const pt=Re.current.map(Mt=>{var kt;if(Mt.name===at.name){const xt=Ie({},Mt);return(kt=at==null?void 0:at.name)!=null&&kt.includes(".in")?xt.input=At==null?void 0:At.content:xt.output=At==null?void 0:At.content,xt}return Mt});if(Re.current=[...pt],Ge([...pt]),ne.current>0&&ne.current===Ye.length){ot(!1);let Mt=Pe(pt);Mt=Mt.filter(kt=>{var xt,It;return!!((xt=kt[0])!=null&&xt.name&&((It=kt[1])!=null&&It.name))}),Mt=Mt.map(kt=>Me(Ie(Ie({},kt[0]),kt[1]),{is_file:!1})),_e(Mt),st()}}else ot(!1),st()});return}const lt=new(te())({endpoint:it.end_point,region:it.region,accessKeyId:it.access_key_id,accessKeySecret:it.access_key_secret,bucket:it.bucket,stsToken:it.security_token}),mt=at.name,ut={container_type:"TestSet",file_name:mt},ct=(0,he.Z)();let Pt=`testsets/${rt}/${ct}${mt.indexOf(".")>-1?"."+mt.split(".").pop():""}`;rt===null&&(Pt=`testsets/${ct}${mt.indexOf(".")>-1?"."+mt.split(".").pop():""}`),lt.multipartUpload(Pt,new Blob([at.file],{type:at.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:mt+""},url:it==null?void 0:it.callback_url,host:it==null?void 0:it.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ae.rz)(ut)}}).then(function(wt){if(wt.data.status===0){ne.current=ne.current+1;const Bt=Re.current.map(At=>{var pt,Mt,kt,xt,It,Ut,en,St,jt,Ht,Qt,sn,wn,Bn,Fn,gn,Dn;if(At.name===((Mt=(pt=wt.data)==null?void 0:pt.data)==null?void 0:Mt.file_name)){const un=Ie({},At);return(It=(xt=(kt=wt.data)==null?void 0:kt.data)==null?void 0:xt.file_name)!=null&&It.includes(".in")?(un.in_object_key=(en=(Ut=wt.data)==null?void 0:Ut.data)==null?void 0:en.object,un.in_object_size=(jt=(St=wt.data)==null?void 0:St.data)==null?void 0:jt.size,un.input=(Qt=(Ht=wt.data)==null?void 0:Ht.data)==null?void 0:Qt.file_name,un.in_file=at):(un.out_object_key=(wn=(sn=wt.data)==null?void 0:sn.data)==null?void 0:wn.object,un.out_object_size=(Fn=(Bn=wt.data)==null?void 0:Bn.data)==null?void 0:Fn.size,un.output=(Dn=(gn=wt.data)==null?void 0:gn.data)==null?void 0:Dn.file_name,un.out_file=at),un}return At});if(Re.current=[...Bt],Ge([...Bt]),ne.current>0&&ne.current===Ye.length){ot(!1);let At=Pe(Bt);At=At.filter(pt=>{var Mt,kt;return!!((Mt=pt[0])!=null&&Mt.name&&((kt=pt[1])!=null&&kt.name))}),At=At.map(pt=>Me(Ie(Ie({},pt[0]),pt[1]),{is_file:!0})),_e(At),st()}}})},Oe=at=>new Promise((lt,mt)=>{let ut=0,ct=[];for(let Pt=0;Pt<at.length;Pt++)at[Pt].file.slice(0,1).arrayBuffer().then(()=>{ut++,ut===at.length&&(ct.length?(a.ZP.warning(`${ct.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),mt()):lt(at))}).catch(wt=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",wt),ut++,ct.push(at[Pt].name),ut===at.length&&(ct.length?(a.ZP.warning(`${ct.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),mt()):lt(at))})}),$e=()=>Le(void 0,null,function*(){if(Ye.length===0){a.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield Oe(Ye),ot(!0),Pe(Ye).some(lt=>{var mt,ut;return!((mt=lt[0])!=null&&mt.name&&((ut=lt[1])!=null&&ut.name))})){Te.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>Le(void 0,null,function*(){Ye.map(lt=>Le(void 0,null,function*(){ye(lt)}))}),onCancel:()=>{ot(!1)}});return}Ye.map(lt=>Le(void 0,null,function*(){ye(lt)}))}),Ze={name:"file",fileList:Ye,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:at=>{if(Ye!=null&&Ye.some(mt=>mt.name===at.name))return a.ZP.info(`${at.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(at.size/1024/1024>100)return a.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(at.name))return a.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const lt={name:at.name,uid:at.uid,file:at,percent:0};return Ye.push(lt),Re.current=[...Ye],Ge([...Ye]),!1}},Xe=Pe(Ye);return console.log(Ye,Xe,"fileList"),pe.createElement(Te.default,{open:Ke,wrapClassName:nt,onOk:$e,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:vt},onCancel:fe,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},pe.createElement("div",{className:ue.wrap},Ye.length?pe.createElement("div",null,pe.createElement(ge.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},pe.createElement("div",{style:{visibility:et?"visible":"hidden"}},pe.createElement("span",{className:ue.greyText},"\u7528\u4F8B\u7C7B\u578B"),pe.createElement(x.ZP.Group,{className:`ml20 ${ue.testCaseRadio}`,optionType:"button",value:Qe,onChange:at=>Fe(at.target.value)},pe.createElement(x.ZP,{value:!1},"\u6587\u672C"),pe.createElement(x.ZP,{value:!0},"\u6587\u4EF6"))),pe.createElement(yt.default,Ie({},Ze),pe.createElement(z.ZP,{type:"primary",className:ue.btnS},pe.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),pe.createElement(He,{data:Xe,onRemove:we})):pe.createElement("div",{className:`${ue.noData} mb30`},pe.createElement(yt.default.Dragger,Me(Ie({},Ze),{className:ue.dragger}),pe.createElement("img",{src:E,alt:"",className:"mb20"}),pe.createElement("div",null,pe.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),pe.createElement("span",{className:ue.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),pe.createElement("div",{className:ue.text},pe.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),pe.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",pe.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",pe.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",pe.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",pe.createElement("br",null))))},He=({data:st=[],onRemove:_e,width:Ke="auto",showScore:nt=!1,disabled:rt=!1,inputChange:et,onEvaluatingChange:Ve,onSelectAll:Ye,checkAll1:Ge,checkAll2:it,checkAll3:qe,checkAll4:vt,checkAll5:ot,showEvaluatingSetting:Qe=!1,className:Fe="",isProgramHomework:Re=!1})=>{const ne={value:"",filename:"",dataUrl:""},[fe,Ne]=(0,le.useState)(Ie({},ne)),We=Oe=>{let $e=document.createElement("a");document.body.appendChild($e);let Ze=URL.createObjectURL(Oe.file);$e.href=Ze,$e.download=Oe.name,$e.click(),URL.revokeObjectURL(Ze),document.body.removeChild($e)},we=(Oe,$e)=>{(0,me.LR)(Oe,$e)},ye=(Oe,$e)=>{Te.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:pe.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{_e(Oe,$e)},onCancel:()=>{}})};return st.length?pe.createElement("div",{className:Fe,style:{width:Ke}},pe.createElement("div",{className:`${Re?ue.headProgram:ue.head}`},Qe&&pe.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},pe.createElement(ie.default,{checked:Ge,onChange:Oe=>{Ye(Oe.target.checked,"hidden")}}),pe.createElement(oe.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},pe.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),pe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),pe.createElement("div",{style:{width:Re?"25%":"15%"}},"\u7528\u4F8B"),pe.createElement("div",{style:{width:nt?Re?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),pe.createElement("div",{style:{width:nt?Re?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),nt&&pe.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),Qe&&pe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},pe.createElement(ie.default,{checked:vt,onChange:Oe=>{Ye(Oe.target.checked,"input_visible")}}),pe.createElement(oe.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},pe.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),pe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Qe&&pe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},pe.createElement(ie.default,{checked:it,onChange:Oe=>{Ye(Oe.target.checked,"is_invisible")}}),pe.createElement(oe.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},pe.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),pe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Qe&&pe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},pe.createElement(ie.default,{checked:ot,onChange:Oe=>{Ye(Oe.target.checked,"actual_output_visible")}}),pe.createElement(oe.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},pe.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),pe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Qe&&pe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},pe.createElement(ie.default,{checked:qe,onChange:Oe=>{Ye(Oe.target.checked,"last_match_rule")}}),pe.createElement(oe.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},pe.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),pe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),pe.createElement("div",{className:ue.operation,style:Re?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),pe.createElement("div",{className:ue.listWrapper,style:{boxShadow:Re?"0px 2px 4px 0px #EAEEF4":"unset"}},st.map((Oe,$e)=>{var Ze,Xe,at,lt;return pe.createElement("div",{key:$e,className:ue.list,style:Re?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},Qe&&pe.createElement("div",{style:{width:"15%"}},pe.createElement(ie.default,{checked:!!Oe.hidden,onChange:mt=>{Ve(mt.target.checked,$e,"hidden")}})),pe.createElement("div",{style:{width:Re?"25%":"15%",paddingLeft:Re?"5px":"0px",paddingRight:Re?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",$e+1),pe.createElement("div",{className:ue.info,style:{width:nt?Re?"20%":"15%":"25%"}},pe.createElement("span",{title:Oe.input||((Ze=Oe[0])==null?void 0:Ze.name),onClick:()=>Le(void 0,null,function*(){let mt;Oe.input?Oe.input_file_url?mt=Oe.input_file_url:mt=Oe.in_file:mt=Oe[0];let ut;typeof mt=="string"?(ut=yield fetch(mt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Ne({value:yield ut.text(),filename:"",dataUrl:mt})):(ut=yield(0,me.db)(mt.file),Ne({value:ut.text,filename:mt.name,dataUrl:ut.link}))})},Oe.input||((Xe=Oe[0])==null?void 0:Xe.name))),pe.createElement("div",{className:ue.info,style:{width:nt?Re?"20%":"15%":"25%"}},pe.createElement("span",{title:Oe.output||((at=Oe[1])==null?void 0:at.name),onClick:()=>Le(void 0,null,function*(){let mt;Oe.input?Oe.output_file_url?mt=Oe.output_file_url:mt=Oe.out_file:mt=Oe[1];let ut;typeof mt=="string"?(ut=yield fetch(mt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Ne({value:yield ut.text(),filename:"",dataUrl:mt})):(ut=yield(0,me.db)(mt.file),Ne({value:ut.text,filename:mt.name,dataUrl:ut.link}))})},Oe.output||((lt=Oe[1])==null?void 0:lt.name))),nt&&pe.createElement("div",{style:{width:"20%"}},pe.createElement(ee.default,{size:"large",addonAfter:Re?"%":null,disabled:rt,style:{width:"80%"},onChange:mt=>et(mt,$e),value:Oe.score}),!Re&&pe.createElement("span",null,"\xA0%")),Qe&&pe.createElement("div",{style:{width:"20%"}},pe.createElement(ie.default,{checked:Oe.input_visible||!1,onChange:mt=>{Ve(mt.target.checked,$e,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Qe&&pe.createElement("div",{style:{width:"20%"}},pe.createElement(ie.default,{checked:Oe.is_invisible||!1,onChange:mt=>{Ve(mt.target.checked,$e,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Qe&&pe.createElement("div",{style:{width:"20%"}},pe.createElement(ie.default,{checked:Oe.actual_output_visible||!1,onChange:mt=>{Ve(mt.target.checked,$e,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Qe&&pe.createElement("div",{style:{width:"20%"}},pe.createElement(ie.default,{checked:Oe.last_match_rule||!1,onChange:mt=>{Ve(mt.target.checked,$e,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),pe.createElement("div",{onClick:()=>ye(Oe,$e),style:Re?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},pe.createElement("span",{className:ue.del},"\u5220\u9664")))})),pe.createElement(ve.Z,{close:!0,data:fe.dataUrl,filename:fe.filename,type:fe.dataUrl.length?"txt":"",onClose:()=>Ne(Ie({},ne)),monacoEditor:{value:fe.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):pe.createElement(pe.Fragment,null)};var Je=Ue},20047:function(on,Lt,Ce){"use strict";Ce.d(Lt,{AL:function(){return be},Iy:function(){return ue},Qv:function(){return te},ez:function(){return pe},jb:function(){return E}});var le=Ce(32834),yt=Ce.n(le),a=Ce(11690),Te=Ce.n(a);let ge=1;function x(Se,Ee){const Ie=Se.match(/^(\s+)(?:```)/);if(Ie===null)return Ee;const Me=Ie[1];return Ee.split(`
`).map(Le=>{const Ae=Le.match(/^\s+/);if(Ae===null)return Le;const[Pe]=Ae;return Pe.length>=Me.length?Le.slice(Me.length):Le}).join(`
`)}let z=[],ie=["<ul>"];const oe=new(yt()).Renderer,ee=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function ue(){z.length=0,ie=["<ul>"]}const E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function re(Se,Ee,Ie,Me){if(Ee>=Se.length||Se[Ee].level<=Ie)return Ee;var Le=Se[Ee];Me.push("<li><a href='#"+ge+Le.anchor+"'>"+Le.text+"</a>"),Ee++;var Ae=[];return Ee=re(Se,Ee,Le.level,Ae),Ae.length>0&&(Me.push("<ul>"),Ae.forEach(function(Pe){Me.push(Pe)}),Me.push("</ul>")),Me.push("</li>"),Ee=re(Se,Ee,Ie,Me),Ee}function te(){return re(z,0,0,ie),ie.push("</ul>"),ie.join("")}const se={heading(Se){const Ee=ee.exec(Se);if(ge+=1,Ee)return{type:"heading",raw:Ee[0],depth:Ee[1].length,text:Ee[2]}},fences(Se){const Ee=this.rules.block.fences.exec(Se);if(Ee){const Ie=Ee[0];let Me=x(Ie,Ee[3]||"");const Le=Ee[2]?Ee[2].trim():Ee[2];if(["latex","katex","math"].indexOf(Le)>=0){const Ae=me(),Pe=Me;Me=Ae,ve[Ae]={type:"block",expression:Pe}}return{type:"code",raw:Ie,lang:Le,text:Me}}}},ae=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let he=0;const me=()=>`__special_katext_id_${he++}__`;let ve={};function pe(){return ve}function be(){he=0,ve={}}function je(Se){return Se=Se.replace(ae,(Ee,Ie)=>{const Me=me();return ve[Me]={type:"inline",expression:Ie},Me}),Se}const ke=oe.listitem;oe.listitem=function(Se){return ke(je(Se))};const Be=oe.paragraph;oe.paragraph=function(Se){return Be(je(Se))};const De=oe.tablecell;oe.tablecell=function(Se,Ee){return De(je(Se),Ee)},oe.code=function(Se,Ee,Ie){const Me=(Ee||"").match(/\S*/)[0];return Me?["latex","katex","math"].indexOf(Me)>=0?`<p class='editormd-tex'>${Se}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ee}">${Ie?Se:(0,a.escape)(Se,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Ie?Se:(0,a.escape)(Se,!0))+"</code></pre>"},oe.heading=function(Se,Ee,Ie){let Me=this.options.headerPrefix+Ie.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return z.push({anchor:Me,level:Ee,text:Se}),"<h"+Ee+' id="'+ge+Me+'">'+Se+"</h"+Ee+">"},yt().setOptions({silent:!0,gfm:!0,pedantic:!1}),yt().use({tokenizer:se,renderer:oe}),Lt.ZP=yt()},83477:function(on,Lt,Ce){"use strict";Ce.d(Lt,{G:function(){return ge},t:function(){return Te}});var le=Ce(7062),yt=Ce.n(le);const a=null;function Te(x,z){let ie=yt().get("__ec");ie||(ie={}),ie[x]=z,yt().set("__ec",ie)}function ge(x,z){let ie=yt().get("__ec");return ie?ie[x]===void 0?z:ie[x]:z}},47257:function(on){(function(Lt){(function(Ce){if(1)on.exports=Ce();else var le})(function(){var Ce,le,yt;return function(){function a(Te,ge,x){function z(ee,ue){if(!ge[ee]){if(!Te[ee]){var E=void 0;if(!ue&&E)return require(ee,!0);if(ie)return ie(ee,!0);var re=new Error("Cannot find module '"+ee+"'");throw re.code="MODULE_NOT_FOUND",re}var te=ge[ee]={exports:{}};Te[ee][0].call(te.exports,function(se){var ae=Te[ee][1][se];return z(ae||se)},te,te.exports,a,Te,ge,x)}return ge[ee].exports}for(var ie=void 0,oe=0;oe<x.length;oe++)z(x[oe]);return z}return a}()({1:[function(a,Te,ge){"use strict";var x=a("./browser/client");x.Buffer=a("buffer").Buffer,x.urllib=a("../shims/xhr"),x.version=a("./browser/version").version,Te.exports=x},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator")),ie=x(a("@babel/runtime/helpers/asyncToGenerator"));a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.slice.js");var oe=a("assert"),ee=a("../common/utils/checkBucketName"),ue=ee.checkBucketName,E=ge;function re(se){return Array.isArray?Array.isArray(se):Object.prototype.toString.call(se)==="[object Array]"}function te(se){return se?re(se)?se:[se]:[]}E.useBucket=function(ae){return ue(ae),this.options.bucket=ae,this},E.setBucket=function(ae){return ue(ae),this.options.bucket=ae,this},E.getBucket=function(){return this.options.bucket},E.deleteBucket=function(){var se=(0,ie.default)(z.default.mark(function he(me,ve){var pe,be;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return pe=this._bucketRequestParams("DELETE",me,"",ve),ke.next=3,this.request(pe);case 3:if(be=ke.sent,!(be.status===200||be.status===204)){ke.next=6;break}return ke.abrupt("return",{res:be.res});case 6:return ke.next=8,this.requestError(be);case 8:throw ke.sent;case 9:case"end":return ke.stop()}},he,this)}));function ae(he,me){return se.apply(this,arguments)}return ae}(),E.putBucketACL=function(){var se=(0,ie.default)(z.default.mark(function he(me,ve,pe){var be,je;return z.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return be=this._bucketRequestParams("PUT",me,"acl",pe),be.headers={"x-oss-acl":ve},be.successStatuses=[200],Be.next=5,this.request(be);case 5:return je=Be.sent,Be.abrupt("return",{bucket:je.headers.location&&je.headers.location.substring(1)||null,res:je.res});case 7:case"end":return Be.stop()}},he,this)}));function ae(he,me,ve){return se.apply(this,arguments)}return ae}(),E.getBucketACL=function(){var se=(0,ie.default)(z.default.mark(function he(me,ve){var pe,be;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return pe=this._bucketRequestParams("GET",me,"acl",ve),pe.successStatuses=[200],pe.xmlResponse=!0,ke.next=5,this.request(pe);case 5:return be=ke.sent,ke.abrupt("return",{acl:be.data.AccessControlList.Grant,owner:{id:be.data.Owner.ID,displayName:be.data.Owner.DisplayName},res:be.res});case 7:case"end":return ke.stop()}},he,this)}));function ae(he,me){return se.apply(this,arguments)}return ae}(),E.putBucketLogging=function(){var se=(0,ie.default)(z.default.mark(function he(me,ve,pe){var be,je,ke;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return be=this._bucketRequestParams("PUT",me,"logging",pe),je=`<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
<LoggingEnabled>
<TargetBucket>`.concat(me,`</TargetBucket>
`),ve&&(je+="<TargetPrefix>".concat(ve,`</TargetPrefix>
`)),je+=`</LoggingEnabled>
</BucketLoggingStatus>`,be.content=je,be.mime="xml",be.successStatuses=[200],De.next=9,this.request(be);case 9:return ke=De.sent,De.abrupt("return",{res:ke.res});case 11:case"end":return De.stop()}},he,this)}));function ae(he,me,ve){return se.apply(this,arguments)}return ae}(),E.getBucketLogging=function(){var se=(0,ie.default)(z.default.mark(function he(me,ve){var pe,be,je;return z.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return pe=this._bucketRequestParams("GET",me,"logging",ve),pe.successStatuses=[200],pe.xmlResponse=!0,Be.next=5,this.request(pe);case 5:return be=Be.sent,je=be.data.LoggingEnabled,Be.abrupt("return",{enable:!!je,prefix:je&&je.TargetPrefix||null,res:be.res});case 8:case"end":return Be.stop()}},he,this)}));function ae(he,me){return se.apply(this,arguments)}return ae}(),E.deleteBucketLogging=function(){var se=(0,ie.default)(z.default.mark(function he(me,ve){var pe,be;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return pe=this._bucketRequestParams("DELETE",me,"logging",ve),pe.successStatuses=[204,200],ke.next=4,this.request(pe);case 4:return be=ke.sent,ke.abrupt("return",{res:be.res});case 6:case"end":return ke.stop()}},he,this)}));function ae(he,me){return se.apply(this,arguments)}return ae}(),E.putBucketCORS=function(){var se=(0,ie.default)(z.default.mark(function he(me,ve,pe){var be,je,ke,Be,De,Se,Ee,Ie,Me,Le;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:for(ve=ve||[],oe(ve.length,"rules is required"),ve.forEach(function(Ue){oe(Ue.allowedOrigin,"allowedOrigin is required"),oe(Ue.allowedMethod,"allowedMethod is required")}),be=this._bucketRequestParams("PUT",me,"cors",pe),je=`<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>`,ke=function(He){je+="<AllowedOrigin>".concat(He,"</AllowedOrigin>")},Be=function(He){je+="<AllowedMethod>".concat(He,"</AllowedMethod>")},De=function(He){je+="<AllowedHeader>".concat(He,"</AllowedHeader>")},Se=function(He){je+="<ExposeHeader>".concat(He,"</ExposeHeader>")},Ee=0,Ie=ve.length;Ee<Ie;Ee++)Me=ve[Ee],je+="<CORSRule>",te(Me.allowedOrigin).forEach(ke),te(Me.allowedMethod).forEach(Be),te(Me.allowedHeader).forEach(De),te(Me.exposeHeader).forEach(Se),Me.maxAgeSeconds&&(je+="<MaxAgeSeconds>".concat(Me.maxAgeSeconds,"</MaxAgeSeconds>")),je+="</CORSRule>";return je+="</CORSConfiguration>",be.content=je,be.mime="xml",be.successStatuses=[200],Pe.next=16,this.request(be);case 16:return Le=Pe.sent,Pe.abrupt("return",{res:Le.res});case 18:case"end":return Pe.stop()}},he,this)}));function ae(he,me,ve){return se.apply(this,arguments)}return ae}(),E.getBucketCORS=function(){var se=(0,ie.default)(z.default.mark(function he(me,ve){var pe,be,je,ke;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return pe=this._bucketRequestParams("GET",me,"cors",ve),pe.successStatuses=[200],pe.xmlResponse=!0,De.next=5,this.request(pe);case 5:return be=De.sent,je=[],be.data&&be.data.CORSRule&&(ke=be.data.CORSRule,re(ke)||(ke=[ke]),ke.forEach(function(Se){var Ee={};Object.keys(Se).forEach(function(Ie){Ee[Ie.slice(0,1).toLowerCase()+Ie.slice(1,Ie.length)]=Se[Ie]}),je.push(Ee)})),De.abrupt("return",{rules:je,res:be.res});case 9:case"end":return De.stop()}},he,this)}));function ae(he,me){return se.apply(this,arguments)}return ae}(),E.deleteBucketCORS=function(){var se=(0,ie.default)(z.default.mark(function he(me,ve){var pe,be;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return pe=this._bucketRequestParams("DELETE",me,"cors",ve),pe.successStatuses=[204],ke.next=4,this.request(pe);case 4:return be=ke.sent,ke.abrupt("return",{res:be.res});case 6:case"end":return ke.stop()}},he,this)}));function ae(he,me){return se.apply(this,arguments)}return ae}(),E.putBucketReferer=function(){var se=(0,ie.default)(z.default.mark(function he(me,ve,pe,be){var je,ke,Be,De;return z.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(je=this._bucketRequestParams("PUT",me,"referer",be),ke=`<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
`,ke+=" <AllowEmptyReferer>".concat(ve?"true":"false",`</AllowEmptyReferer>
`),pe&&pe.length>0){for(ke+=` <RefererList>
`,Be=0;Be<pe.length;Be++)ke+=" <Referer>".concat(pe[Be],`</Referer>
`);ke+=` </RefererList>
`}else ke+=` <RefererList />
`;return ke+="</RefererConfiguration>",je.content=ke,je.mime="xml",je.successStatuses=[200],Ee.next=10,this.request(je);case 10:return De=Ee.sent,Ee.abrupt("return",{res:De.res});case 12:case"end":return Ee.stop()}},he,this)}));function ae(he,me,ve,pe){return se.apply(this,arguments)}return ae}(),E.getBucketReferer=function(){var se=(0,ie.default)(z.default.mark(function he(me,ve){var pe,be,je;return z.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return pe=this._bucketRequestParams("GET",me,"referer",ve),pe.successStatuses=[200],pe.xmlResponse=!0,Be.next=5,this.request(pe);case 5:return be=Be.sent,je=be.data.RefererList.Referer||null,je&&(re(je)||(je=[je])),Be.abrupt("return",{allowEmpty:be.data.AllowEmptyReferer==="true",referers:je,res:be.res});case 9:case"end":return Be.stop()}},he,this)}));function ae(he,me){return se.apply(this,arguments)}return ae}(),E.deleteBucketReferer=function(){var se=(0,ie.default)(z.default.mark(function he(me,ve){return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return be.next=2,this.putBucketReferer(me,!0,null,ve);case 2:return be.abrupt("return",be.sent);case 3:case"end":return be.stop()}},he,this)}));function ae(he,me){return se.apply(this,arguments)}return ae}(),E._bucketRequestParams=function(ae,he,me,ve){return{method:ae,bucket:he,subres:me,timeout:ve&&ve.timeout,ctx:ve&&ve.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(a,Te,ge){(function(x,z){(function(){"use strict";var ie=a("@babel/runtime/helpers/interopRequireDefault"),oe=ie(a("@babel/runtime/regenerator")),ee=ie(a("@babel/runtime/helpers/asyncToGenerator"));a("core-js/modules/es.function.name.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.split.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.symbol.js"),a("core-js/modules/es.symbol.description.js"),a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.regexp.to-string.js");var ue=a("debug")("ali-oss"),E=a("xml2js"),re=a("agentkeepalive"),te=a("merge-descriptors"),se=a("platform"),ae=a("utility"),he=a("urllib"),me=a("./version"),ve=a("bowser"),pe=a("../common/signUtils"),be=a("../common/client/initOptions"),je=a("../common/utils/createRequest"),ke=je.createRequest,Be=a("../common/utils/encoder"),De=Be.encoder,Se=a("../common/client/getReqUrl"),Ee=Se.getReqUrl,Ie=a("../common/utils/setSTSToken"),Me=Ie.setSTSToken,Le=a("../common/utils/retry"),Ae=Le.retry,Pe=a("../common/utils/isFunction"),Ue=Pe.isFunction,He=new re;function Je(){var et=se.name,Ve=se.version;et&&et.toLowerCase&&et.toLowerCase()==="ie"&&Ve.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function st(){return location&&location.protocol==="https:"}function _e(et,Ve){if(Je(),!(this instanceof _e))return new _e(et,Ve);et&&et.inited?this.options=et:this.options=_e.initOptions(et),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=he,this.agent=this.options.agent||He),this.ctx=Ve,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}Te.exports=_e,_e.initOptions=function(Ve){Ve.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:st(),useFetch:!1},Ve);return be(Ye)};var Ke=_e.prototype;Ke.debug=ue,te(Ke,a("./object")),te(Ke,a("./bucket")),te(Ke,a("../common/bucket/getBucketWebsite")),te(Ke,a("../common/bucket/putBucketWebsite")),te(Ke,a("../common/bucket/deleteBucketWebsite")),te(Ke,a("../common/bucket/getBucketLifecycle")),te(Ke,a("../common/bucket/putBucketLifecycle")),te(Ke,a("../common/bucket/deleteBucketLifecycle")),te(Ke,a("../common/bucket/putBucketVersioning")),te(Ke,a("../common/bucket/getBucketVersioning")),te(Ke,a("../common/bucket/getBucketInventory")),te(Ke,a("../common/bucket/deleteBucketInventory")),te(Ke,a("../common/bucket/listBucketInventory")),te(Ke,a("../common/bucket/putBucketInventory")),te(Ke,a("../common/bucket/abortBucketWorm")),te(Ke,a("../common/bucket/completeBucketWorm")),te(Ke,a("../common/bucket/extendBucketWorm")),te(Ke,a("../common/bucket/getBucketWorm")),te(Ke,a("../common/bucket/initiateBucketWorm")),te(Ke,a("./managed-upload")),te(Ke,a("../common/multipart-copy")),te(Ke,a("../common/multipart")),te(Ke,a("../common/parallel")),Ke.signature=function(Ve){return this.debug("authorization stringToSign: %s",Ve,"info"),pe.computeSignature(this.options.accessKeySecret,Ve,this.options.headerEncoding)},Ke._getReqUrl=Ee,Ke.authorization=function(Ve,Ye,Ge,it){var qe=pe.buildCanonicalString(Ve.toUpperCase(),Ye,{headers:it,parameters:Ge});return pe.authorization(this.options.accessKeyId,this.options.accessKeySecret,qe,this.options.headerEncoding)},Ke.request=function(){var et=(0,ee.default)(oe.default.mark(function Ve(Ye){var Ge=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,Ae(nt.bind(this),this.options.retryMax,{errorHandler:function(ot){var Qe=function(Re){if(Ye.stream)return!1;var ne=[-1,-2].includes(Re.status),fe=Ge.options.requestErrorRetryHandle||function(){return!0};return ne&&fe(Re)};return!!Qe(ot)}})(Ye);case 3:return qe.abrupt("return",qe.sent);case 6:return qe.abrupt("return",nt.call(this,Ye));case 7:case"end":return qe.stop()}},Ve,this)}));return function(Ve){return et.apply(this,arguments)}}();function nt(et){return rt.apply(this,arguments)}function rt(){return rt=(0,ee.default)(oe.default.mark(function et(Ve){var Ye,Ge,it,qe,vt,ot;return oe.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(!(this.options.stsToken&&Ue(this.options.refreshSTSToken))){Fe.next=3;break}return Fe.next=3,Me.call(this);case 3:return Ye=ke.call(this,Ve),this.options.useFetch||(Ye.params.mode="disable-fetch"),qe=!!Ve.stream,Fe.prev=6,Fe.next=9,this.urllib.request(Ye.url,Ye.params);case 9:Ge=Fe.sent,this.debug("response %s %s, got %s, headers: %j",Ve.method,Ye.url,Ge.status,Ge.headers,"info"),Fe.next=16;break;case 13:Fe.prev=13,Fe.t0=Fe.catch(6),it=Fe.t0;case 16:if(!(Ge&&Ve.successStatuses&&Ve.successStatuses.indexOf(Ge.status)===-1)){Fe.next=28;break}return Fe.next=19,this.requestError(Ge);case 19:if(vt=Fe.sent,!(vt.code==="RequestTimeTooSkewed"&&!qe)){Fe.next=25;break}return this.options.amendTimeSkewed=+new Date(vt.serverTime)-new Date,Fe.next=24,this.request(Ve);case 24:return Fe.abrupt("return",Fe.sent);case 25:vt.params=Ve,Fe.next=32;break;case 28:if(!it){Fe.next=32;break}return Fe.next=31,this.requestError(it);case 31:vt=Fe.sent;case 32:if(!vt){Fe.next=34;break}throw vt;case 34:if(!Ve.xmlResponse){Fe.next=39;break}return Fe.next=37,this.parseXML(Ge.data);case 37:ot=Fe.sent,Ge.data=ot;case 39:return Fe.abrupt("return",Ge);case 40:case"end":return Fe.stop()}},et,this,[[6,13]])})),rt.apply(this,arguments)}Ke._getResource=function(Ve){var Ye="/";return Ve.bucket&&(Ye+="".concat(Ve.bucket,"/")),Ve.object&&(Ye+=De(Ve.object,this.options.headerEncoding)),Ye},Ke._escape=function(Ve){return ae.encodeURIComponent(Ve).replace(/%2F/g,"/")},Ke._getUserAgent=function(){var Ve=z&&z.browser?"js":"nodejs",Ye="aliyun-sdk-".concat(Ve,"/").concat(me.version),Ge=se.description;return!Ge&&z&&(Ge="Node.js ".concat(z.version.slice(1)," on ").concat(z.platform," ").concat(z.arch)),this._checkUserAgent("".concat(Ye," ").concat(Ge))},Ke._checkUserAgent=function(Ve){var Ye=Ve.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return Ye},Ke.checkBrowserAndVersion=function(Ve,Ye){return ve.name===Ve&&ve.version.split(".")[0]===Ye},Ke.parseXML=function(Ve){return new Promise(function(Ye,Ge){x.isBuffer(Ve)&&(Ve=Ve.toString()),E.parseString(Ve,{explicitRoot:!1,explicitArray:!1},function(it,qe){it?Ge(it):Ye(qe)})})},Ke.requestError=function(){var et=(0,ee.default)(oe.default.mark(function Ye(Ge){var it,qe,vt,ot;return oe.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(it=null,!(!Ge.data||!Ge.data.length)){Fe.next=5;break}Ge.status===-1||Ge.status===-2?(it=new Error(Ge.message),it.name=Ge.name,it.status=Ge.status,it.code=Ge.name):(Ge.status===404?(it=new Error("Object not exists"),it.name="NoSuchKeyError",it.status=404,it.code="NoSuchKey"):Ge.status===412?(it=new Error("Pre condition failed"),it.name="PreconditionFailedError",it.status=412,it.code="PreconditionFailed"):(it=new Error("Unknow error, status: ".concat(Ge.status)),it.name="UnknownError",it.status=Ge.status),it.requestId=Ge.headers["x-oss-request-id"],it.host=""),Fe.next=32;break;case 5:return qe=String(Ge.data),this.debug("request response error data: %s",qe,"error"),Fe.prev=7,Fe.next=10,this.parseXML(qe);case 10:if(Fe.t0=Fe.sent,Fe.t0){Fe.next=13;break}Fe.t0={};case 13:vt=Fe.t0,Fe.next=23;break;case 16:return Fe.prev=16,Fe.t1=Fe.catch(7),this.debug(qe,"error"),Fe.t1.message+=`
raw xml: `.concat(qe),Fe.t1.status=Ge.status,Fe.t1.requestId=Ge.headers["x-oss-request-id"],Fe.abrupt("return",Fe.t1);case 23:ot=vt.Message||"unknow request error, status: ".concat(Ge.status),vt.Condition&&(ot+=" (condition: ".concat(vt.Condition,")")),it=new Error(ot),it.name=vt.Code?"".concat(vt.Code,"Error"):"UnknownError",it.status=Ge.status,it.code=vt.Code,it.requestId=vt.RequestId,it.hostId=vt.HostId,it.serverTime=vt.ServerTime;case 32:return this.debug("generate error %j",it,"error"),Fe.abrupt("return",it);case 34:case"end":return Fe.stop()}},Ye,this,[[7,16]])}));function Ve(Ye){return et.apply(this,arguments)}return Ve}()}).call(this)}).call(this,{isBuffer:a("../../node_modules/is-buffer/index.js")},a("_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(a,Te,ge){(function(x){(function(){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),ie=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.function.name.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.array.from.js"),a("core-js/modules/es.string.iterator.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.array.filter.js"),a("core-js/modules/es.array.find.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.array.iterator.js"),a("core-js/modules/es.array-buffer.slice.js"),a("core-js/modules/es.typed-array.uint8-array.js"),a("core-js/modules/es.typed-array.copy-within.js"),a("core-js/modules/es.typed-array.every.js"),a("core-js/modules/es.typed-array.fill.js"),a("core-js/modules/es.typed-array.filter.js"),a("core-js/modules/es.typed-array.find.js"),a("core-js/modules/es.typed-array.find-index.js"),a("core-js/modules/es.typed-array.for-each.js"),a("core-js/modules/es.typed-array.includes.js"),a("core-js/modules/es.typed-array.index-of.js"),a("core-js/modules/es.typed-array.iterator.js"),a("core-js/modules/es.typed-array.join.js"),a("core-js/modules/es.typed-array.last-index-of.js"),a("core-js/modules/es.typed-array.map.js"),a("core-js/modules/es.typed-array.reduce.js"),a("core-js/modules/es.typed-array.reduce-right.js"),a("core-js/modules/es.typed-array.reverse.js"),a("core-js/modules/es.typed-array.set.js"),a("core-js/modules/es.typed-array.slice.js"),a("core-js/modules/es.typed-array.some.js"),a("core-js/modules/es.typed-array.sort.js"),a("core-js/modules/es.typed-array.subarray.js"),a("core-js/modules/es.typed-array.to-locale-string.js"),a("core-js/modules/es.typed-array.to-string.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("util"),ue=a("path"),E=a("mime"),re=a("copy-to"),te=a("../common/utils/isBlob"),se=te.isBlob,ae=a("../common/utils/isFile"),he=ae.isFile,me=a("../common/utils/isBuffer"),ve=me.isBuffer,pe=ge;pe.multipartUpload=function(){var De=(0,oe.default)(ie.default.mark(function Ee(Ie,Me){var Le,Ae,Pe,Ue,He,Je,st,_e,Ke,nt=arguments;return ie.default.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:if(Le=nt.length>2&&nt[2]!==void 0?nt[2]:{},this.resetCancelFlag(),Le.disabledMD5=Le.disabledMD5===void 0?!0:!!Le.disabledMD5,!(Le.checkpoint&&Le.checkpoint.uploadId)){et.next=8;break}return Me&&he(Me)&&(Le.checkpoint.file=Me),et.next=7,this._resumeMultipart(Le.checkpoint,Le);case 7:return et.abrupt("return",et.sent);case 8:return Ae=102400,Le.mime||(he(Me)?Le.mime=E.getType(ue.extname(Me.name)):se(Me)?Le.mime=Me.type:ve(Me)?Le.mime="":Le.mime=E.getType(ue.extname(Me))),Le.headers=Le.headers||{},this._convertMetaToHeaders(Le.meta,Le.headers),et.next=14,this._getFileSize(Me);case 14:if(Pe=et.sent,!(Pe<Ae)){et.next=26;break}return Le.contentLength=Pe,et.next=19,this.put(Ie,Me,Le);case 19:if(Ue=et.sent,!(Le&&Le.progress)){et.next=23;break}return et.next=23,Le.progress(1);case 23:return He={res:Ue.res,bucket:this.options.bucket,name:Ie,etag:Ue.res.headers.etag},(Le.headers&&Le.headers["x-oss-callback"]||Le.callback)&&(He.data=Ue.data),et.abrupt("return",He);case 26:if(!(Le.partSize&&parseInt(Le.partSize,10)!==Le.partSize)){et.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Le.partSize&&Le.partSize<Ae)){et.next=30;break}throw new Error("partSize must not be smaller than ".concat(Ae));case 30:return et.next=32,this.initMultipartUpload(Ie,Le);case 32:if(Je=et.sent,st=Je.uploadId,_e=this._getPartSize(Pe,Le.partSize),Ke={file:Me,name:Ie,fileSize:Pe,partSize:_e,uploadId:st,doneParts:[]},!(Le&&Le.progress)){et.next=39;break}return et.next=39,Le.progress(0,Ke,Je.res);case 39:return et.next=41,this._resumeMultipart(Ke,Le);case 41:return et.abrupt("return",et.sent);case 42:case"end":return et.stop()}},Ee,this)}));function Se(Ee,Ie){return De.apply(this,arguments)}return Se}(),pe._resumeMultipart=function(){var De=(0,oe.default)(ie.default.mark(function Ee(Ie,Me){var Le,Ae,Pe,Ue,He,Je,st,_e,Ke,nt,rt,et,Ve,Ye,Ge,it,qe,vt,ot;return ie.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(Le=this,!this.isCancel()){Fe.next=3;break}throw this._makeCancelEvent();case 3:return Ae=Ie.file,Pe=Ie.fileSize,Ue=Ie.partSize,He=Ie.uploadId,Je=Ie.doneParts,st=Ie.name,_e=[],Je.length>0&&re(Je).to(_e),Ke=this._divideParts(Pe,Ue),nt=Ke.length,rt=!1,et=function(ne,fe){return new Promise(function(){var Ne=(0,oe.default)(ie.default.mark(function We(we,ye){var Oe,$e,Ze,Xe,at;return ie.default.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:if(mt.prev=0,ne.isCancel()){mt.next=29;break}return Oe=Ke[fe-1],mt.next=5,ne._createBuffer(Ae,Oe.start,Oe.end);case 5:return $e=mt.sent,Ze={content:$e,size:Oe.end-Oe.start},mt.prev=7,mt.next=10,ne._uploadPart(st,He,fe,Ze,Me);case 10:Xe=mt.sent,mt.next=18;break;case 13:if(mt.prev=13,mt.t0=mt.catch(7),mt.t0.status!==404){mt.next=17;break}throw ne._makeAbortEvent();case 17:throw mt.t0;case 18:if(!(!ne.isCancel()&&!rt)){mt.next=26;break}if(Ie.doneParts.push({number:fe,etag:Xe.res.headers.etag}),!Me.progress){mt.next=23;break}return mt.next=23,Me.progress(Je.length/(nt+1),Ie,Xe.res);case 23:we({number:fe,etag:Xe.res.headers.etag}),mt.next=27;break;case 26:we();case 27:mt.next=30;break;case 29:we();case 30:mt.next=41;break;case 32:mt.prev=32,mt.t1=mt.catch(0),at=new Error,at.name=mt.t1.name,at.message=mt.t1.message,at.stack=mt.t1.stack,at.partNum=fe,re(mt.t1).to(at),ye(at);case 41:case"end":return mt.stop()}},We,null,[[0,32],[7,13]])}));return function(We,we){return Ne.apply(this,arguments)}}())},Ve=Array.from(new Array(nt),function(Re,ne){return ne+1}),Ye=_e.map(function(Re){return Re.number}),Ge=Ve.filter(function(Re){return Ye.indexOf(Re)<0}),it=5,qe=Me.parallel||it,Fe.next=17,this._parallel(Ge,qe,function(Re){return new Promise(function(ne,fe){et(Le,Re).then(function(Ne){Ne&&_e.push(Ne),ne()}).catch(function(Ne){fe(Ne)})})});case 17:if(vt=Fe.sent,rt=!0,ot=vt.find(function(Re){return Re.name==="abort"}),!ot){Fe.next=22;break}throw ot;case 22:if(!this.isCancel()){Fe.next=25;break}throw et=null,this._makeCancelEvent();case 25:if(!(vt&&vt.length>0)){Fe.next=28;break}throw vt[0].message="Failed to upload some parts with error: ".concat(vt[0].toString()," part_num: ").concat(vt[0].partNum),vt[0];case 28:return Fe.next=30,this.completeMultipartUpload(st,He,_e,Me);case 30:return Fe.abrupt("return",Fe.sent);case 31:case"end":return Fe.stop()}},Ee,this)}));function Se(Ee,Ie){return De.apply(this,arguments)}return Se}(),pe._getFileSize=function(){var De=(0,oe.default)(ie.default.mark(function Ee(Ie){return ie.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(!ve(Ie)){Le.next=4;break}return Le.abrupt("return",Ie.length);case 4:if(!(se(Ie)||he(Ie))){Le.next=6;break}return Le.abrupt("return",Ie.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Le.stop()}},Ee)}));function Se(Ee){return De.apply(this,arguments)}return Se}();var be=a("stream"),je=be.Readable;function ke(De,Se){if(!(this instanceof ke))return new ke(De,Se);je.call(this,Se),this.file=De,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}ee.inherits(ke,je),ke.prototype.readFileAndPush=function(Se){if(this.fileBuffer)for(var Ee=!0;Ee&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Ie=this.start,Me=Ie+Se;Me=Me>this.fileBuffer.length?this.fileBuffer.length:Me,this.start=Me,Ee=this.push(this.fileBuffer.slice(Ie,Me))}},ke.prototype._read=function(Se){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var Ee=16*1024;Se=Se||Ee;var Ie=this;this.reader.onload=function(Le){Ie.fileBuffer=x.from(new Uint8Array(Le.target.result)),Ie.file=null,Ie.readFileAndPush(Se)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(Se)};function Be(De){return De.arrayBuffer?De.arrayBuffer():new Promise(function(Se,Ee){var Ie=new FileReader;Ie.onload=function(Me){Se(Me.target.result)},Ie.onerror=function(Me){Ee(Me)},Ie.readAsArrayBuffer(De)})}pe._createBuffer=function(){var De=(0,oe.default)(ie.default.mark(function Ee(Ie,Me,Le){var Ae,Pe;return ie.default.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:if(!(se(Ie)||he(Ie))){He.next=8;break}return Ae=Ie.slice(Me,Le),He.next=4,Be(Ae);case 4:return Pe=He.sent,He.abrupt("return",x.from(Pe));case 8:if(!ve(Ie)){He.next=12;break}return He.abrupt("return",Ie.subarray(Me,Le));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return He.stop()}},Ee)}));function Se(Ee,Ie,Me){return De.apply(this,arguments)}return Se}(),pe._getPartSize=function(Se,Ee){var Ie=1e4,Me=1*1024*1024;Ee||(Ee=Me);var Le=Math.ceil(Se/Ie);return Ee<Le&&(Ee=Le,console.warn("partSize has been set to ".concat(Ee,", because the partSize you provided causes partNumber to be greater than 10,000"))),Ee},pe._divideParts=function(Se,Ee){for(var Ie=Math.ceil(Se/Ee),Me=[],Le=0;Le<Ie;Le++){var Ae=Ee*Le,Pe=Math.min(Ae+Ee,Se);Me.push({start:Ae,end:Pe})}return Me}}).call(this)}).call(this,a("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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault");a("core-js/modules/es.function.name.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.number.constructor.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.promise.js");var z=x(a("@babel/runtime/regenerator")),ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("fs"),ee=a("copy-to"),ue=a("path"),E=a("mime"),re=a("../common/callback"),te=a("merge-descriptors"),se=a("../common/utils/isBlob"),ae=se.isBlob,he=a("../common/utils/isFile"),me=he.isFile,ve=a("../common/utils/isBuffer"),pe=ve.isBuffer,be=a("../common/utils/obj2xml"),je=be.obj2xml,ke=ge;ke.append=function(){var Be=(0,ie.default)(z.default.mark(function Se(Ee,Ie,Me){var Le;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Me=Me||{},Me.position===void 0&&(Me.position="0"),Me.subres={append:"",position:Me.position},Me.method="POST",Pe.next=6,this.put(Ee,Ie,Me);case 6:return Le=Pe.sent,Le.nextAppendPosition=Le.res.headers["x-oss-next-append-position"],Pe.abrupt("return",Le);case 9:case"end":return Pe.stop()}},Se,this)}));function De(Se,Ee,Ie){return Be.apply(this,arguments)}return De}(),ke.put=function(){var Be=(0,ie.default)(z.default.mark(function Se(Ee,Ie,Me){var Le,Ae,Pe,Ue,He;return z.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(Me=Me||{},Me.disabledMD5=Me.disabledMD5===void 0?!0:!!Me.disabledMD5,Me.headers=Me.headers||{},Ee=this._objectName(Ee),!pe(Ie)){st.next=8;break}Le=Ie,st.next=19;break;case 8:if(!(ae(Ie)||me(Ie))){st.next=18;break}return Me.mime||(me(Ie)?Me.mime=E.getType(ue.extname(Ie.name)):Me.mime=Ie.type),st.next=12,this._createBuffer(Ie,0,Ie.size);case 12:return Le=st.sent,st.next=15,this._getFileSize(Ie);case 15:Me.contentLength=st.sent,st.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(Me.meta,Me.headers),Ae=Me.method||"PUT",Pe=this._objectRequestParams(Ae,Ee,Me),re.encodeCallback(Pe,Me),Pe.mime=Me.mime,Pe.disabledMD5=Me.disabledMD5,Pe.content=Le,Pe.successStatuses=[200],st.next=29,this.request(Pe);case 29:return Ue=st.sent,He={name:Ee,url:this._objectUrl(Ee),res:Ue.res},Pe.headers&&Pe.headers["x-oss-callback"]&&(He.data=JSON.parse(Ue.data.toString())),st.abrupt("return",He);case 33:case"end":return st.stop()}},Se,this)}));function De(Se,Ee,Ie){return Be.apply(this,arguments)}return De}(),ke.putStream=function(){var Be=(0,ie.default)(z.default.mark(function Se(Ee,Ie,Me){var Le,Ae,Pe,Ue;return z.default.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Me=Me||{},Me.headers=Me.headers||{},Ee=this._objectName(Ee),Me.contentLength?Me.headers["Content-Length"]=Me.contentLength:Me.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Me.meta,Me.headers),Le=Me.method||"PUT",Ae=this._objectRequestParams(Le,Ee,Me),re.encodeCallback(Ae,Me),Ae.mime=Me.mime,Ae.stream=Ie,Ae.successStatuses=[200],Je.next=13,this.request(Ae);case 13:return Pe=Je.sent,Ue={name:Ee,url:this._objectUrl(Ee),res:Pe.res},Ae.headers&&Ae.headers["x-oss-callback"]&&(Ue.data=JSON.parse(Pe.data.toString())),Je.abrupt("return",Ue);case 17:case"end":return Je.stop()}},Se,this)}));function De(Se,Ee,Ie){return Be.apply(this,arguments)}return De}(),te(ke,a("../common/object/copyObject")),te(ke,a("../common/object/getObjectTagging")),te(ke,a("../common/object/putObjectTagging")),te(ke,a("../common/object/deleteObjectTagging")),te(ke,a("../common/image")),te(ke,a("../common/object/getBucketVersions")),te(ke,a("../common/object/getACL")),te(ke,a("../common/object/putACL")),te(ke,a("../common/object/head")),te(ke,a("../common/object/delete")),te(ke,a("../common/object/get")),te(ke,a("../common/object/putSymlink")),te(ke,a("../common/object/getSymlink")),te(ke,a("../common/object/deleteMulti")),te(ke,a("../common/object/getObjectMeta")),te(ke,a("../common/object/getObjectUrl")),te(ke,a("../common/object/generateObjectUrl")),te(ke,a("../common/object/signatureUrl")),te(ke,a("../common/object/asyncSignatureUrl")),ke.putMeta=function(){var Be=(0,ie.default)(z.default.mark(function Se(Ee,Ie,Me){var Le;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Pe.next=2,this.copy(Ee,Ee,{meta:Ie||{},timeout:Me&&Me.timeout,ctx:Me&&Me.ctx});case 2:return Le=Pe.sent,Pe.abrupt("return",Le);case 4:case"end":return Pe.stop()}},Se,this)}));function De(Se,Ee,Ie){return Be.apply(this,arguments)}return De}(),ke.list=function(){var Be=(0,ie.default)(z.default.mark(function Se(Ee,Ie){var Me,Le,Ae,Pe,Ue;return z.default.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Me=this._objectRequestParams("GET","",Ie),Me.query=Ee,Me.xmlResponse=!0,Me.successStatuses=[200],Je.next=6,this.request(Me);case 6:return Le=Je.sent,Ae=Le.data.Contents||[],Pe=this,Ae&&(Array.isArray(Ae)||(Ae=[Ae]),Ae=Ae.map(function(st){return{name:st.Key,url:Pe._objectUrl(st.Key),lastModified:st.LastModified,etag:st.ETag,type:st.Type,size:Number(st.Size),storageClass:st.StorageClass,owner:{id:st.Owner.ID,displayName:st.Owner.DisplayName}}})),Ue=Le.data.CommonPrefixes||null,Ue&&(Array.isArray(Ue)||(Ue=[Ue]),Ue=Ue.map(function(st){return st.Prefix})),Je.abrupt("return",{res:Le.res,objects:Ae,prefixes:Ue,nextMarker:Le.data.NextMarker||null,isTruncated:Le.data.IsTruncated==="true"});case 13:case"end":return Je.stop()}},Se,this)}));function De(Se,Ee){return Be.apply(this,arguments)}return De}(),ke.listV2=function(){var Be=(0,ie.default)(z.default.mark(function Se(Ee){var Ie,Me,Le,Ae,Pe,Ue,He,Je=arguments;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return Ie=Je.length>1&&Je[1]!==void 0?Je[1]:{},Me=Ee["continuation-token"]||Ee.continuationToken,Me&&(Ie.subres=Object.assign({"continuation-token":Me},Ie.subres)),Le=this._objectRequestParams("GET","",Ie),Le.query=Object.assign({"list-type":2},Ee),delete Le.query["continuation-token"],delete Le.query.continuationToken,Le.xmlResponse=!0,Le.successStatuses=[200],_e.next=11,this.request(Le);case 11:return Ae=_e.sent,Pe=Ae.data.Contents||[],Ue=this,Pe&&(Array.isArray(Pe)||(Pe=[Pe]),Pe=Pe.map(function(Ke){var nt=null;return Ke.Owner&&(nt={id:Ke.Owner.ID,displayName:Ke.Owner.DisplayName}),{name:Ke.Key,url:Ue._objectUrl(Ke.Key),lastModified:Ke.LastModified,etag:Ke.ETag,type:Ke.Type,size:Number(Ke.Size),storageClass:Ke.StorageClass,owner:nt}})),He=Ae.data.CommonPrefixes||null,He&&(Array.isArray(He)||(He=[He]),He=He.map(function(Ke){return Ke.Prefix})),_e.abrupt("return",{res:Ae.res,objects:Pe,prefixes:He,isTruncated:Ae.data.IsTruncated==="true",keyCount:+Ae.data.KeyCount,continuationToken:Ae.data.ContinuationToken||null,nextContinuationToken:Ae.data.NextContinuationToken||null});case 18:case"end":return _e.stop()}},Se,this)}));function De(Se){return Be.apply(this,arguments)}return De}(),ke.restore=function(){var Be=(0,ie.default)(z.default.mark(function Se(Ee){var Ie,Me,Le,Ae,Pe=arguments;return z.default.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return Ie=Pe.length>1&&Pe[1]!==void 0?Pe[1]:{type:"Archive"},Ie=Ie||{},Ie.subres=Object.assign({restore:""},Ie.subres),Ie.versionId&&(Ie.subres.versionId=Ie.versionId),Me=this._objectRequestParams("POST",Ee,Ie),Ie.type==="ColdArchive"&&(Le={RestoreRequest:{Days:Ie.Days?Ie.Days:2,JobParameters:{Tier:Ie.JobParameters?Ie.JobParameters:"Standard"}}},Me.content=je(Le,{headers:!0}),Me.mime="xml"),Me.successStatuses=[202],He.next=9,this.request(Me);case 9:return Ae=He.sent,He.abrupt("return",{res:Ae.res});case 11:case"end":return He.stop()}},Se,this)}));function De(Se){return Be.apply(this,arguments)}return De}(),ke._objectUrl=function(De){return this._getReqUrl({bucket:this.options.bucket,object:De})},ke._objectRequestParams=function(De,Se,Ee){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Ee=Ee||{},Se=this._objectName(Se);var Ie={object:Se,bucket:this.options.bucket,method:De,subres:Ee&&Ee.subres,timeout:Ee&&Ee.timeout,ctx:Ee&&Ee.ctx};return Ee.headers&&(Ie.headers={},ee(Ee.headers).to(Ie.headers)),Ie},ke._objectName=function(De){return De.replace(/^\/+/,"")},ke._convertMetaToHeaders=function(De,Se){De&&Object.keys(De).forEach(function(Ee){Se["x-oss-meta-".concat(Ee)]=De[Ee]})},ke._deleteFileSafe=function(De){var Se=this;return new Promise(function(Ee){oe.exists(De,function(Ie){Ie?oe.unlink(De,function(Me){Me&&Se.debug("unlink %j error: %s",De,Me,"error"),Ee()}):Ee()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signatureUrl":48,"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"../common/utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,fs:89,"merge-descriptors":372,mime:374,path:378}],6:[function(a,Te,ge){"use strict";ge.version="6.18.1"},{}],7:[function(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator")),ie=x(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.abortBucketWorm=void 0;var oe=a("../utils/checkBucketName");function ee(E,re){return ue.apply(this,arguments)}function ue(){return ue=(0,ie.default)(z.default.mark(function E(re,te){var se,ae;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return oe.checkBucketName(re),se=this._bucketRequestParams("DELETE",re,"worm",te),me.next=4,this.request(se);case 4:return ae=me.sent,me.abrupt("return",{res:ae.res,status:ae.status});case 6:case"end":return me.stop()}},E,this)})),ue.apply(this,arguments)}ge.abortBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator")),ie=x(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.completeBucketWorm=void 0;var oe=a("../utils/checkBucketName");function ee(E,re,te){return ue.apply(this,arguments)}function ue(){return ue=(0,ie.default)(z.default.mark(function E(re,te,se){var ae,he;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return oe.checkBucketName(re),ae=this._bucketRequestParams("POST",re,{wormId:te},se),ve.next=4,this.request(ae);case 4:return he=ve.sent,ve.abrupt("return",{res:he.res,status:he.status});case 6:case"end":return ve.stop()}},E,this)})),ue.apply(this,arguments)}ge.completeBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.deleteBucketInventory=void 0;var oe=a("../utils/checkBucketName");function ee(E,re){return ue.apply(this,arguments)}function ue(){return ue=(0,ie.default)(z.default.mark(function E(re,te){var se,ae,he,me,ve=arguments;return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return se=ve.length>2&&ve[2]!==void 0?ve[2]:{},ae=Object.assign({inventory:"",inventoryId:te},se.subres),oe.checkBucketName(re),he=this._bucketRequestParams("DELETE",re,ae,se),he.successStatuses=[204],be.next=7,this.request(he);case 7:return me=be.sent,be.abrupt("return",{status:me.status,res:me.res});case 9:case"end":return be.stop()}},E,this)})),ue.apply(this,arguments)}ge.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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator")),ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkBucketName"),ee=oe.checkBucketName,ue=ge;ue.deleteBucketLifecycle=function(){var E=(0,ie.default)(z.default.mark(function te(se,ae){var he,me;return z.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return ee(se),he=this._bucketRequestParams("DELETE",se,"lifecycle",ae),he.successStatuses=[204],pe.next=5,this.request(he);case 5:return me=pe.sent,pe.abrupt("return",{res:me.res});case 7:case"end":return pe.stop()}},te,this)}));function re(te,se){return E.apply(this,arguments)}return re}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator")),ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkBucketName"),ee=oe.checkBucketName,ue=ge;ue.deleteBucketWebsite=function(){var E=(0,ie.default)(z.default.mark(function te(se,ae){var he,me;return z.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return ee(se),he=this._bucketRequestParams("DELETE",se,"website",ae),he.successStatuses=[204],pe.next=5,this.request(he);case 5:return me=pe.sent,pe.abrupt("return",{res:me.res});case 7:case"end":return pe.stop()}},te,this)}));function re(te,se){return E.apply(this,arguments)}return re}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator")),ie=x(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.extendBucketWorm=void 0;var oe=a("../utils/checkBucketName"),ee=a("../utils/obj2xml");function ue(re,te,se,ae){return E.apply(this,arguments)}function E(){return E=(0,ie.default)(z.default.mark(function re(te,se,ae,he){var me,ve,pe;return z.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return oe.checkBucketName(te),me=this._bucketRequestParams("POST",te,{wormExtend:"",wormId:se},he),ve={ExtendWormConfiguration:{RetentionPeriodInDays:ae}},me.mime="xml",me.content=ee.obj2xml(ve,{headers:!0}),me.successStatuses=[200],je.next=8,this.request(me);case 8:return pe=je.sent,je.abrupt("return",{res:pe.res,status:pe.status});case 10:case"end":return je.stop()}},re,this)})),E.apply(this,arguments)}ge.extendBucketWorm=ue},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.getBucketInventory=void 0;var oe=a("../utils/checkBucketName"),ee=a("../utils/formatInventoryConfig");function ue(re,te){return E.apply(this,arguments)}function E(){return E=(0,ie.default)(z.default.mark(function re(te,se){var ae,he,me,ve,pe=arguments;return z.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ae=pe.length>2&&pe[2]!==void 0?pe[2]:{},he=Object.assign({inventory:"",inventoryId:se},ae.subres),oe.checkBucketName(te),me=this._bucketRequestParams("GET",te,he,ae),me.successStatuses=[200],me.xmlResponse=!0,je.next=8,this.request(me);case 8:return ve=je.sent,je.abrupt("return",{status:ve.status,res:ve.res,inventory:ee.formatInventoryConfig(ve.data)});case 10:case"end":return je.stop()}},re,this)})),E.apply(this,arguments)}ge.getBucketInventory=ue},{"../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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.map.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkBucketName"),ee=oe.checkBucketName,ue=a("../utils/isArray"),E=ue.isArray,re=a("../utils/formatObjKey"),te=re.formatObjKey,se=ge;se.getBucketLifecycle=function(){var ae=(0,ie.default)(z.default.mark(function me(ve,pe){var be,je,ke;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return ee(ve),be=this._bucketRequestParams("GET",ve,"lifecycle",pe),be.successStatuses=[200],be.xmlResponse=!0,De.next=6,this.request(be);case 6:return je=De.sent,ke=je.data.Rule||null,ke&&(E(ke)||(ke=[ke]),ke=ke.map(function(Se){return Se.ID&&(Se.id=Se.ID,delete Se.ID),Se.Tag&&!E(Se.Tag)&&(Se.Tag=[Se.Tag]),te(Se,"firstLowerCase")})),De.abrupt("return",{rules:ke,res:je.res});case 10:case"end":return De.stop()}},me,this)}));function he(me,ve){return ae.apply(this,arguments)}return he}()},{"../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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator")),ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkBucketName"),ee=oe.checkBucketName,ue=ge;ue.getBucketVersioning=function(){var E=(0,ie.default)(z.default.mark(function te(se,ae){var he,me,ve;return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ee(se),he=this._bucketRequestParams("GET",se,"versioning",ae),he.xmlResponse=!0,he.successStatuses=[200],be.next=6,this.request(he);case 6:return me=be.sent,ve=me.data.Status,be.abrupt("return",{status:me.status,versionStatus:ve,res:me.res});case 9:case"end":return be.stop()}},te,this)}));function re(te,se){return E.apply(this,arguments)}return re}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator")),ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkBucketName"),ee=oe.checkBucketName,ue=a("../utils/isObject"),E=ue.isObject,re=ge;re.getBucketWebsite=function(){var te=(0,ie.default)(z.default.mark(function ae(he,me){var ve,pe,be;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ee(he),ve=this._bucketRequestParams("GET",he,"website",me),ve.successStatuses=[200],ve.xmlResponse=!0,ke.next=6,this.request(ve);case 6:return pe=ke.sent,be=[],pe.data.RoutingRules&&pe.data.RoutingRules.RoutingRule&&(E(pe.data.RoutingRules.RoutingRule)?be=[pe.data.RoutingRules.RoutingRule]:be=pe.data.RoutingRules.RoutingRule),ke.abrupt("return",{index:pe.data.IndexDocument&&pe.data.IndexDocument.Suffix||"",supportSubDir:pe.data.IndexDocument&&pe.data.IndexDocument.SupportSubDir||"false",type:pe.data.IndexDocument&&pe.data.IndexDocument.Type,routingRules:be,error:pe.data.ErrorDocument&&pe.data.ErrorDocument.Key||null,res:pe.res});case 10:case"end":return ke.stop()}},ae,this)}));function se(ae,he){return te.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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.getBucketWorm=void 0;var oe=a("../utils/checkBucketName"),ee=a("../utils/dataFix");function ue(re,te){return E.apply(this,arguments)}function E(){return E=(0,ie.default)(z.default.mark(function re(te,se){var ae,he;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return oe.checkBucketName(te),ae=this._bucketRequestParams("GET",te,"worm",se),ae.successStatuses=[200],ae.xmlResponse=!0,ve.next=6,this.request(ae);case 6:return he=ve.sent,ee.dataFix(he.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),ve.abrupt("return",Object.assign(Object.assign({},he.data),{res:he.res,status:he.status}));case 9:case"end":return ve.stop()}},re,this)})),E.apply(this,arguments)}ge.getBucketWorm=ue},{"../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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator")),ie=x(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.initiateBucketWorm=void 0;var oe=a("../utils/obj2xml"),ee=a("../utils/checkBucketName");function ue(re,te,se){return E.apply(this,arguments)}function E(){return E=(0,ie.default)(z.default.mark(function re(te,se,ae){var he,me,ve;return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ee.checkBucketName(te),he=this._bucketRequestParams("POST",te,"worm",ae),me={InitiateWormConfiguration:{RetentionPeriodInDays:se}},he.mime="xml",he.content=oe.obj2xml(me,{headers:!0}),he.successStatuses=[200],be.next=8,this.request(he);case 8:return ve=be.sent,be.abrupt("return",{res:ve.res,wormId:ve.res.headers["x-oss-worm-id"],status:ve.status});case 10:case"end":return be.stop()}},re,this)})),E.apply(this,arguments)}ge.initiateBucketWorm=ue},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.listBucketInventory=void 0;var oe=a("../utils/checkBucketName"),ee=a("../utils/formatInventoryConfig");function ue(re){return E.apply(this,arguments)}function E(){return E=(0,ie.default)(z.default.mark(function re(te){var se,ae,he,me,ve,pe,be,je,ke=arguments;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return se=ke.length>1&&ke[1]!==void 0?ke[1]:{},ae=se.continuationToken,he=Object.assign({inventory:""},ae&&{"continuation-token":ae},se.subres),oe.checkBucketName(te),me=this._bucketRequestParams("GET",te,he,se),me.successStatuses=[200],me.xmlResponse=!0,De.next=9,this.request(me);case 9:return ve=De.sent,pe=ve.data,be=ve.res,je=ve.status,De.abrupt("return",{isTruncated:pe.IsTruncated==="true",nextContinuationToken:pe.NextContinuationToken,inventoryList:ee.formatInventoryConfig(pe.InventoryConfiguration,!0),status:je,res:be});case 12:case"end":return De.stop()}},re,this)})),E.apply(this,arguments)}ge.listBucketInventory=ue},{"../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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.concat.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.putBucketInventory=void 0;var oe=a("../utils/checkBucketName"),ee=a("../utils/obj2xml");function ue(re,te){return E.apply(this,arguments)}function E(){return E=(0,ie.default)(z.default.mark(function re(te,se){var ae,he,me,ve,pe,be,je,ke,Be,De,Se,Ee=arguments;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return ae=Ee.length>2&&Ee[2]!==void 0?Ee[2]:{},he=Object.assign({inventory:"",inventoryId:se.id},ae.subres),oe.checkBucketName(te),me=se.OSSBucketDestination,ve=se.optionalFields,pe=se.includedObjectVersions,be="acs:oss:::",je="acs:ram::".concat(me.accountId,":role/"),ke={InventoryConfiguration:{Id:se.id,IsEnabled:se.isEnabled,Filter:{Prefix:se.prefix||""},Destination:{OSSBucketDestination:{Format:me.format,AccountId:me.accountId,RoleArn:"".concat(je).concat(me.rolename),Bucket:"".concat(be).concat(me.bucket),Prefix:me.prefix||"",Encryption:me.encryption||""}},Schedule:{Frequency:se.frequency},IncludedObjectVersions:pe,OptionalFields:{Field:(ve==null?void 0:ve.field)||[]}}},Be=ee.obj2xml(ke,{headers:!0,firstUpperCase:!0}),De=this._bucketRequestParams("PUT",te,he,ae),De.successStatuses=[200],De.mime="xml",De.content=Be,Me.next=14,this.request(De);case 14:return Se=Me.sent,Me.abrupt("return",{status:Se.status,res:Se.res});case 16:case"end":return Me.stop()}},re,this)})),E.apply(this,arguments)}ge.putBucketInventory=ue},{"../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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.array.includes.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkBucketName"),ee=oe.checkBucketName,ue=a("../utils/isArray"),E=ue.isArray,re=a("../utils/deepCopy"),te=re.deepCopy,se=a("../utils/isObject"),ae=se.isObject,he=a("../utils/obj2xml"),me=he.obj2xml,ve=a("../utils/checkObjectTag"),pe=ve.checkObjectTag,be=a("../utils/getStrBytesCount"),je=be.getStrBytesCount,ke=ge;ke.putBucketLifecycle=function(){var Ie=(0,ie.default)(z.default.mark(function Le(Ae,Pe,Ue){var He,Je,st,_e,Ke;return z.default.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(ee(Ae),E(Pe)){rt.next=3;break}throw new Error("rules must be Array");case 3:return He=this._bucketRequestParams("PUT",Ae,"lifecycle",Ue),Je=[],st={LifecycleConfiguration:{Rule:Je}},Pe.forEach(function(et){Be(et),Ee(et),et.id&&(et.ID=et.id,delete et.id),Je.push(et)}),_e=me(st,{headers:!0,firstUpperCase:!0}),He.content=_e,He.mime="xml",He.successStatuses=[200],rt.next=13,this.request(He);case 13:return Ke=rt.sent,rt.abrupt("return",{res:Ke.res});case 15:case"end":return rt.stop()}},Le,this)}));function Me(Le,Ae,Pe){return Ie.apply(this,arguments)}return Me}();function Be(Ie){Ie.days&&(Ie.expiration={days:Ie.days}),Ie.date&&(Ie.expiration={createdBeforeDate:Ie.date})}function De(Ie,Me){var Le=Ie.days,Ae=Ie.createdBeforeDate;if(!Le&&!Ae)throw new Error("".concat(Me," must includes days or createdBeforeDate"));if(Le&&!/^[1-9][0-9]*$/.test(Le))throw new Error("days must be a positive integer");if(Ae&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(Ae))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function Se(Ie){if(!E(Ie)&&!ae(Ie))throw new Error("tag must be Object or Array");Ie=ae(Ie)?[Ie]:Ie;var Me={},Le=te(Ie);Le.forEach(function(Ae){Me[Ae.key]=Ae.value}),pe(Me)}function Ee(Ie){if(Ie.id&&je(Ie.id)>255)throw new Error("ID is composed of 255 bytes at most");if(Ie.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(Ie.status))throw new Error("Status must be Enabled or Disabled");if(Ie.transition){if(!["IA","Archive"].includes(Ie.transition.storageClass))throw new Error("StorageClass must be IA or Archive");De(Ie.transition,"Transition")}if(Ie.expiration){if(!Ie.expiration.expiredObjectDeleteMarker)De(Ie.expiration,"Expiration");else if(Ie.expiration.days||Ie.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(Ie.abortMultipartUpload&&De(Ie.abortMultipartUpload,"AbortMultipartUpload"),!Ie.expiration&&!Ie.abortMultipartUpload&&!Ie.transition&&!Ie.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(Ie.tag){if(Ie.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");Se(Ie.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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.includes.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkBucketName"),ee=oe.checkBucketName,ue=a("../utils/obj2xml"),E=ue.obj2xml,re=ge;re.putBucketVersioning=function(){var te=(0,ie.default)(z.default.mark(function ae(he,me){var ve,pe,be,je,ke=arguments;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(ve=ke.length>2&&ke[2]!==void 0?ke[2]:{},ee(he),["Enabled","Suspended"].includes(me)){De.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return pe=this._bucketRequestParams("PUT",he,"versioning",ve),be={VersioningConfiguration:{Status:me}},pe.mime="xml",pe.content=E(be,{headers:!0}),De.next=10,this.request(pe);case 10:return je=De.sent,De.abrupt("return",{res:je.res,status:je.status});case 12:case"end":return De.stop()}},ae,this)}));function se(ae,he){return te.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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator")),ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkBucketName"),ee=oe.checkBucketName,ue=a("../utils/obj2xml"),E=ue.obj2xml,re=a("../utils/isArray"),te=re.isArray,se=ge;se.putBucketWebsite=function(){var ae=(0,ie.default)(z.default.mark(function me(ve){var pe,be,je,ke,Be,De,Se,Ee=arguments;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(pe=Ee.length>1&&Ee[1]!==void 0?Ee[1]:{},be=Ee.length>2?Ee[2]:void 0,ee(ve),je=this._bucketRequestParams("PUT",ve,"website",be),ke={Suffix:pe.index||"index.html"},Be={IndexDocument:ke},De={WebsiteConfiguration:Be},pe.supportSubDir&&(ke.SupportSubDir=pe.supportSubDir),pe.type&&(ke.Type=pe.type),pe.error&&(Be.ErrorDocument={Key:pe.error}),pe.routingRules===void 0){Me.next=14;break}if(te(pe.routingRules)){Me.next=13;break}throw new Error("RoutingRules must be Array");case 13:Be.RoutingRules={RoutingRule:pe.routingRules};case 14:return De=E(De),je.content=De,je.mime="xml",je.successStatuses=[200],Me.next=20,this.request(je);case 20:return Se=Me.sent,Me.abrupt("return",{res:Se.res});case 22:case"end":return Me.stop()}},me,this)}));function he(me){return ae.apply(this,arguments)}return he}()},{"../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(a,Te,ge){(function(x){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),ge.encodeCallback=function(ie,oe){if(ie.headers=ie.headers||{},!Object.prototype.hasOwnProperty.call(ie.headers,"x-oss-callback")&&oe.callback){var ee={callbackUrl:encodeURI(oe.callback.url),callbackBody:oe.callback.body};oe.callback.host&&(ee.callbackHost=oe.callback.host),oe.callback.contentType&&(ee.callbackBodyType=oe.callback.contentType);var ue=x.from(JSON.stringify(ee)).toString("base64");if(ie.headers["x-oss-callback"]=ue,oe.callback.customValue){var E={};Object.keys(oe.callback.customValue).forEach(function(re){E["x:".concat(re)]=oe.callback.customValue[re].toString()}),ie.headers["x-oss-callback-var"]=x.from(JSON.stringify(E)).toString("base64")}}}}).call(this)}).call(this,a("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(a,Te,ge){"use strict";a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js");var x=function(te){return te&&te.__esModule?te:{default:te}};Object.defineProperty(ge,"__esModule",{value:!0}),ge.getReqUrl=void 0;var z=x(a("copy-to")),ie=x(a("url")),oe=x(a("merge-descriptors")),ee=x(a("is-type-of")),ue=a("../utils/isIP"),E=a("../utils/checkConfigValid");function re(te){var se={},ae=this.options.cname;E.checkConfigValid(this.options.endpoint,"endpoint"),z.default(this.options.endpoint,!1).to(se),te.bucket&&!ae&&!ue.isIP(se.hostname)&&!this.options.sldEnable&&(se.host="".concat(te.bucket,".").concat(se.host));var he="/";te.bucket&&this.options.sldEnable&&(he+="".concat(te.bucket,"/")),te.object&&(he+=this._escape(te.object).replace(/\+/g,"%2B")),se.pathname=he;var me={};if(te.query&&oe.default(me,te.query),te.subres){var ve={};ee.default.string(te.subres)?ve[te.subres]="":ee.default.array(te.subres)?te.subres.forEach(function(pe){ve[pe]=""}):ve=te.subres,oe.default(me,ve)}return se.query=me,ie.default.format(se)}ge.getReqUrl=re},{"../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(a,Te,ge){"use strict";a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.string.trim.js");var x=a("humanize-ms"),z=a("url"),ie=a("../utils/checkBucketName"),oe=ie.checkBucketName,ee=a("../utils/setRegion"),ue=ee.setRegion,E=a("../utils/checkConfigValid"),re=E.checkConfigValid;function te(se,ae){re(se,"endpoint");var he=z.parse(se);if(he.protocol||(he=z.parse("http".concat(ae?"s":"","://").concat(se))),he.protocol!=="http:"&&he.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return he}Te.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 ae=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(ae.accessKeyId=ae.accessKeyId.trim(),ae.accessKeySecret=ae.accessKeySecret.trim(),ae.timeout&&(ae.timeout=x(ae.timeout)),ae.endpoint)ae.endpoint=te(ae.endpoint,ae.secure);else if(ae.region)ae.endpoint=ue(ae.region,ae.internal,ae.secure);else throw new Error("require options.endpoint or options.region");return ae.inited=!0,ae}},{"../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(a,Te,ge){"use strict";var x=a("merge-descriptors"),z=ge;x(z,a("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.concat.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkBucketName"),ee=oe.checkBucketName,ue=a("querystring"),E=a("js-base64"),re=E.Base64.encode,te=ge;te.processObjectSave=function(){var ae=(0,ie.default)(z.default.mark(function me(ve,pe,be,je){var ke,Be,De,Se;return z.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return se(ve,"sourceObject"),se(pe,"targetObject"),se(be,"process"),pe=this._objectName(pe),je&&ee(je),ke=this._objectRequestParams("POST",ve,{subres:"x-oss-process"}),Be=je?",b_".concat(re(je)):"",pe=re(pe),De={"x-oss-process":"".concat(be,"|sys/saveas,o_").concat(pe).concat(Be)},ke.content=ue.stringify(De),Ie.next=12,this.request(ke);case 12:return Se=Ie.sent,Ie.abrupt("return",{res:Se.res,status:Se.res.status});case 14:case"end":return Ie.stop()}},me,this)}));function he(me,ve,pe,be){return ae.apply(this,arguments)}return he}();function se(ae,he){if(!ae)throw new Error("".concat(he," is required"));if(typeof ae!="string")throw new Error("".concat(he," 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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.function.name.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.array.from.js"),a("core-js/modules/es.string.iterator.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.array.filter.js"),a("core-js/modules/es.array.find.js"),a("core-js/modules/es.regexp.to-string.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("debug")("ali-oss:multipart-copy"),ee=a("copy-to"),ue=ge;ue.uploadPartCopy=function(){var E=(0,ie.default)(z.default.mark(function te(se,ae,he,me,ve){var pe,be,je,ke,Be,De=arguments;return z.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return pe=De.length>5&&De[5]!==void 0?De[5]:{},pe.headers=pe.headers||{},be=pe.versionId||pe.subres&&pe.subres.versionId||null,be?je="/".concat(ve.sourceBucketName,"/").concat(encodeURIComponent(ve.sourceKey),"?versionId=").concat(be):je="/".concat(ve.sourceBucketName,"/").concat(encodeURIComponent(ve.sourceKey)),pe.headers["x-oss-copy-source"]=je,me&&(pe.headers["x-oss-copy-source-range"]="bytes=".concat(me)),pe.subres={partNumber:he,uploadId:ae},ke=this._objectRequestParams("PUT",se,pe),ke.mime=pe.mime,ke.successStatuses=[200],Ee.next=12,this.request(ke);case 12:return Be=Ee.sent,Ee.abrupt("return",{name:se,etag:Be.res.headers.etag,res:Be.res});case 14:case"end":return Ee.stop()}},te,this)}));function re(te,se,ae,he,me){return E.apply(this,arguments)}return re}(),ue.multipartUploadCopy=function(){var E=(0,ie.default)(z.default.mark(function te(se,ae){var he,me,ve,pe,be,je,ke,Be,De,Se,Ee,Ie,Me=arguments;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return he=Me.length>2&&Me[2]!==void 0?Me[2]:{},this.resetCancelFlag(),me=he.versionId,ve=me===void 0?null:me,pe={versionId:ve},Ae.next=6,this._getObjectMeta(ae.sourceBucketName,ae.sourceKey,pe);case 6:if(be=Ae.sent,je=be.res.headers["content-length"],ae.startOffset=ae.startOffset||0,ae.endOffset=ae.endOffset||je,!(he.checkpoint&&he.checkpoint.uploadId)){Ae.next=14;break}return Ae.next=13,this._resumeMultipartCopy(he.checkpoint,ae,he);case 13:return Ae.abrupt("return",Ae.sent);case 14:if(ke=102400,Be=ae.endOffset-ae.startOffset,!(Be<ke)){Ae.next=18;break}throw new Error("copySize must not be smaller than ".concat(ke));case 18:if(!(he.partSize&&he.partSize<ke)){Ae.next=20;break}throw new Error("partSize must not be smaller than ".concat(ke));case 20:return Ae.next=22,this.initMultipartUpload(se,he);case 22:if(De=Ae.sent,Se=De.uploadId,Ee=this._getPartSize(Be,he.partSize),Ie={name:se,copySize:Be,partSize:Ee,uploadId:Se,doneParts:[]},!(he&&he.progress)){Ae.next=29;break}return Ae.next=29,he.progress(0,Ie,De.res);case 29:return Ae.next=31,this._resumeMultipartCopy(Ie,ae,he);case 31:return Ae.abrupt("return",Ae.sent);case 32:case"end":return Ae.stop()}},te,this)}));function re(te,se){return E.apply(this,arguments)}return re}(),ue._resumeMultipartCopy=function(){var E=(0,ie.default)(z.default.mark(function te(se,ae,he){var me,ve,pe,be,je,ke,Be,De,Se,Ee,Ie,Me,Le,Ae,Pe,Ue,He,Je,st,_e,Ke;return z.default.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(!this.isCancel()){rt.next=2;break}throw this._makeCancelEvent();case 2:if(me=he.versionId,ve=me===void 0?null:me,pe={versionId:ve},be=se.copySize,je=se.partSize,ke=se.uploadId,Be=se.doneParts,De=se.name,Se=this._divideMultipartCopyParts(be,je,ae.startOffset),Ee=Se.length,Ie={headers:{}},he.copyheaders&&ee(he.copyheaders).to(Ie.headers),ve&&ee(pe).to(Ie),Me=function(Ve,Ye,Ge){return new Promise(function(){var it=(0,ie.default)(z.default.mark(function qe(vt,ot){var Qe,Fe,Re;return z.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(fe.prev=0,Ve.isCancel()){fe.next=22;break}return Qe=Se[Ye-1],Fe="".concat(Qe.start,"-").concat(Qe.end-1),fe.prev=4,fe.next=7,Ve.uploadPartCopy(De,ke,Ye,Fe,Ge,Ie);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 Ve._makeAbortEvent();case 14:throw fe.t0;case 15:if(Ve.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,!(he&&he.progress)){fe.next=22;break}return fe.next=22,he.progress(Be.length/Ee,se,Re.res);case 22:vt(),fe.next=29;break;case 25:fe.prev=25,fe.t1=fe.catch(0),fe.t1.partNum=Ye,ot(fe.t1);case 29:case"end":return fe.stop()}},qe,null,[[0,25],[4,10]])}));return function(qe,vt){return it.apply(this,arguments)}}())},Le=Array.from(new Array(Ee),function(et,Ve){return Ve+1}),Ae=Be.map(function(et){return et.number}),Pe=Le.filter(function(et){return Ae.indexOf(et)<0}),Ue=5,He=he.parallel||Ue,!(this.checkBrowserAndVersion("Internet Explorer","10")||He===1)){rt.next=28;break}Je=0;case 18:if(!(Je<Pe.length)){rt.next=26;break}if(!this.isCancel()){rt.next=21;break}throw this._makeCancelEvent();case 21:return rt.next=23,Me(this,Pe[Je],ae);case 23:Je++,rt.next=18;break;case 26:rt.next=40;break;case 28:return rt.next=30,this._parallelNode(Pe,He,Me,ae);case 30:if(st=rt.sent,_e=st.find(function(et){return et.name==="abort"}),!_e){rt.next=34;break}throw _e;case 34:if(!this.isCancel()){rt.next=36;break}throw this._makeCancelEvent();case 36:if(!(st&&st.length>0)){rt.next=40;break}throw Ke=st[0],Ke.message="Failed to copy some parts with error: ".concat(Ke.toString()," part_num: ").concat(Ke.partNum),Ke;case 40:return rt.next=42,this.completeMultipartUpload(De,ke,Be,he);case 42:return rt.abrupt("return",rt.sent);case 43:case"end":return rt.stop()}},te,this)}));function re(te,se,ae){return E.apply(this,arguments)}return re}(),ue._divideMultipartCopyParts=function(re,te,se){for(var ae=Math.ceil(re/te),he=[],me=0;me<ae;me++){var ve=te*me+se,pe=Math.min(ve+te,re+se);he.push({start:ve,end:pe})}return he},ue._getObjectMeta=function(){var E=(0,ie.default)(z.default.mark(function te(se,ae,he){var me,ve;return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return me=this.getBucket(),this.setBucket(se),be.next=4,this.head(ae,he);case 4:return ve=be.sent,this.setBucket(me),be.abrupt("return",ve);case 7:case"end":return be.stop()}},te,this)}));function re(te,se,ae){return E.apply(this,arguments)}return re}()},{"@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(a,Te,ge){(function(x){(function(){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),ie=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.map.js"),a("core-js/modules/es.array.filter.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.array.sort.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.to-string.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("copy-to"),ue=a("./callback"),E=a("./utils/deepCopy"),re=E.deepCopyWith,te=a("./utils/isBuffer"),se=te.isBuffer,ae=a("./utils/omit"),he=ae.omit,me=ge;me.listUploads=function(){var ve=(0,oe.default)(ie.default.mark(function be(je,ke){var Be,De,Se,Ee;return ie.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return ke=ke||{},Be={},ee(ke).to(Be),Be.subres="uploads",De=this._objectRequestParams("GET","",Be),De.query=je,De.xmlResponse=!0,De.successStatuses=[200],Me.next=10,this.request(De);case 10:return Se=Me.sent,Ee=Se.data.Upload||[],Array.isArray(Ee)||(Ee=[Ee]),Ee=Ee.map(function(Le){return{name:Le.Key,uploadId:Le.UploadId,initiated:Le.Initiated}}),Me.abrupt("return",{res:Se.res,uploads:Ee,bucket:Se.data.Bucket,nextKeyMarker:Se.data.NextKeyMarker,nextUploadIdMarker:Se.data.NextUploadIdMarker,isTruncated:Se.data.IsTruncated==="true"});case 15:case"end":return Me.stop()}},be,this)}));function pe(be,je){return ve.apply(this,arguments)}return pe}(),me.listParts=function(){var ve=(0,oe.default)(ie.default.mark(function be(je,ke,Be,De){var Se,Ee,Ie;return ie.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return De=De||{},Se={},ee(De).to(Se),Se.subres={uploadId:ke},Ee=this._objectRequestParams("GET",je,Se),Ee.query=Be,Ee.xmlResponse=!0,Ee.successStatuses=[200],Le.next=10,this.request(Ee);case 10:return Ie=Le.sent,Le.abrupt("return",{res:Ie.res,uploadId:Ie.data.UploadId,bucket:Ie.data.Bucket,name:Ie.data.Key,partNumberMarker:Ie.data.PartNumberMarker,nextPartNumberMarker:Ie.data.NextPartNumberMarker,maxParts:Ie.data.MaxParts,isTruncated:Ie.data.IsTruncated,parts:Ie.data.Part||[]});case 12:case"end":return Le.stop()}},be,this)}));function pe(be,je,ke,Be){return ve.apply(this,arguments)}return pe}(),me.abortMultipartUpload=function(){var ve=(0,oe.default)(ie.default.mark(function be(je,ke,Be){var De,Se,Ee;return ie.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return this._stop(),Be=Be||{},De={},ee(Be).to(De),De.subres={uploadId:ke},Se=this._objectRequestParams("DELETE",je,De),Se.successStatuses=[204],Me.next=9,this.request(Se);case 9:return Ee=Me.sent,Me.abrupt("return",{res:Ee.res});case 11:case"end":return Me.stop()}},be,this)}));function pe(be,je,ke){return ve.apply(this,arguments)}return pe}(),me.initMultipartUpload=function(){var ve=(0,oe.default)(ie.default.mark(function be(je,ke){var Be,De,Se;return ie.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return ke=ke||{},Be={},ee(ke).to(Be),Be.headers=Be.headers||{},this._convertMetaToHeaders(ke.meta,Be.headers),Be.subres="uploads",De=this._objectRequestParams("POST",je,Be),De.mime=ke.mime,De.xmlResponse=!0,De.successStatuses=[200],Ie.next=12,this.request(De);case 12:return Se=Ie.sent,Ie.abrupt("return",{res:Se.res,bucket:Se.data.Bucket,name:Se.data.Key,uploadId:Se.data.UploadId});case 14:case"end":return Ie.stop()}},be,this)}));function pe(be,je){return ve.apply(this,arguments)}return pe}(),me.uploadPart=function(){var ve=(0,oe.default)(ie.default.mark(function be(je,ke,Be,De,Se,Ee,Ie){var Me,Le;return ie.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(Me={size:Ee-Se},Le=x&&x.browser,!Le){Pe.next=8;break}return Pe.next=5,this._createBuffer(De,Se,Ee);case 5:Me.content=Pe.sent,Pe.next=11;break;case 8:return Pe.next=10,this._createStream(De,Se,Ee);case 10:Me.stream=Pe.sent;case 11:return Pe.next=13,this._uploadPart(je,ke,Be,Me,Ie);case 13:return Pe.abrupt("return",Pe.sent);case 14:case"end":return Pe.stop()}},be,this)}));function pe(be,je,ke,Be,De,Se,Ee){return ve.apply(this,arguments)}return pe}(),me.completeMultipartUpload=function(){var ve=(0,oe.default)(ie.default.mark(function be(je,ke,Be,De){var Se,Ee,Ie,Me,Le,Ae,Pe,Ue;return ie.default.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:for(Se=Be.concat().sort(function(st,_e){return st.number-_e.number}).filter(function(st,_e,Ke){return!_e||st.number!==Ke[_e-1].number}),Ee=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,Ie=0;Ie<Se.length;Ie++)Me=Se[Ie],Ee+=`<Part>
`,Ee+="<PartNumber>".concat(Me.number,`</PartNumber>
`),Ee+="<ETag>".concat(Me.etag,`</ETag>
`),Ee+=`</Part>
`;return Ee+="</CompleteMultipartUpload>",De=De||{},Le={},Le=re(De,function(st){if(se(st))return null}),Le.subres={uploadId:ke},Le.headers=he(Le.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),Ae=this._objectRequestParams("POST",je,Le),ue.encodeCallback(Ae,Le),Ae.mime="xml",Ae.content=Ee,Ae.headers&&Ae.headers["x-oss-callback"]||(Ae.xmlResponse=!0),Ae.successStatuses=[200],Je.next=17,this.request(Ae);case 17:if(Pe=Je.sent,!De.progress){Je.next=21;break}return Je.next=21,De.progress(1,null,Pe.res);case 21:return Ue={res:Pe.res,bucket:Ae.bucket,name:je,etag:Pe.res.headers.etag},Ae.headers&&Ae.headers["x-oss-callback"]&&(Ue.data=JSON.parse(Pe.data.toString())),Je.abrupt("return",Ue);case 24:case"end":return Je.stop()}},be,this)}));function pe(be,je,ke,Be){return ve.apply(this,arguments)}return pe}(),me._uploadPart=function(){var ve=(0,oe.default)(ie.default.mark(function be(je,ke,Be,De,Se){var Ee,Ie,Me,Le;return ie.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Se=Se||{},Ee={},ee(Se).to(Ee),Ee.headers=Ee.headers||{},Ee.headers["Content-Length"]=De.size,Ee.headers=he(Ee.headers,["x-oss-server-side-encryption"]),Ee.subres={partNumber:Be,uploadId:ke},Ie=this._objectRequestParams("PUT",je,Ee),Ie.mime=Ee.mime,Me=x&&x.browser,Me?Ie.content=De.content:Ie.stream=De.stream,Ie.successStatuses=[200],Ie.disabledMD5=Se.disabledMD5,Pe.next=15,this.request(Ie);case 15:if(Le=Pe.sent,Le.res.headers.etag){Pe.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,Ie.stream=null),Pe.abrupt("return",{name:je,etag:Le.res.headers.etag,res:Le.res});case 20:case"end":return Pe.stop()}},be,this)}));function pe(be,je,ke,Be,De){return ve.apply(this,arguments)}return pe}()}).call(this)}).call(this,a("_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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator")),ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("url"),ee=a("utility"),ue=a("copy-to"),E=a("../../common/signUtils"),re=a("../utils/isIP"),te=re.isIP,se=a("../utils/setSTSToken"),ae=se.setSTSToken,he=a("../utils/isFunction"),me=he.isFunction,ve=ge;ve.asyncSignatureUrl=function(){var pe=(0,ie.default)(z.default.mark(function je(ke,Be){var De,Se,Ee,Ie,Me;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(!te(this.options.endpoint.hostname)){Ae.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(Be=Be||{},ke=this._objectName(ke),Be.method=Be.method||"GET",De=ee.timestamp()+(Be.expires||1800),Se={bucket:this.options.bucket,object:ke},Ee=this._getResource(Se),!(this.options.stsToken&&me(this.options.refreshSTSToken))){Ae.next=11;break}return Ae.next=11,ae.call(this);case 11:return this.options.stsToken&&(Be["security-token"]=this.options.stsToken),Ie=E._signatureForURL(this.options.accessKeySecret,Be,Ee,De),Me=oe.parse(this._getReqUrl(Se)),Me.query={OSSAccessKeyId:this.options.accessKeyId,Expires:De,Signature:Ie.Signature},ue(Ie.subResource).to(Me.query),Ae.abrupt("return",Me.format());case 17:case"end":return Ae.stop()}},je,this)}));function be(je,ke){return pe.apply(this,arguments)}return be}()},{"../../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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.find.js"),a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js");var ie=x(a("@babel/runtime/helpers/typeof")),oe=x(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("../utils/checkBucketName"),ue=ee.checkBucketName,E=ge,re=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];E.copy=function(){var te=(0,oe.default)(z.default.mark(function ae(he,me,ve,pe){var be,je,ke;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return(0,ie.default)(ve)==="object"&&(pe=ve),pe=pe||{},pe.headers=pe.headers||{},Object.keys(pe.headers).forEach(function(Se){pe.headers["x-oss-copy-source-".concat(Se.toLowerCase())]=pe.headers[Se]}),(pe.meta||Object.keys(pe.headers).find(function(Se){return re.includes(Se.toLowerCase())}))&&(pe.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(pe.meta,pe.headers),me=this._getSourceName(me,ve),pe.versionId&&(me="".concat(me,"?versionId=").concat(pe.versionId)),pe.headers["x-oss-copy-source"]=me,be=this._objectRequestParams("PUT",he,pe),be.xmlResponse=!0,be.successStatuses=[200,304],De.next=14,this.request(be);case 14:return je=De.sent,ke=je.data,ke&&(ke={etag:ke.ETag,lastModified:ke.LastModified}),De.abrupt("return",{data:ke,res:je.res});case 18:case"end":return De.stop()}},ae,this)}));function se(ae,he,me,ve){return te.apply(this,arguments)}return se}(),E._getSourceName=function(se,ae){return typeof ae=="string"?se=this._objectName(se):se[0]!=="/"?ae=this.options.bucket:(ae=se.replace(/\/(.+?)(\/.*)/,"$1"),se=se.replace(/(\/.+?\/)(.*)/,"$2")),ue(ae),se=encodeURIComponent(se),se="/".concat(ae,"/").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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=ge;oe.delete=function(){var ee=(0,ie.default)(z.default.mark(function E(re){var te,se,ae,he=arguments;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return te=he.length>1&&he[1]!==void 0?he[1]:{},te.subres=Object.assign({},te.subres),te.versionId&&(te.subres.versionId=te.versionId),se=this._objectRequestParams("DELETE",re,te),se.successStatuses=[204],ve.next=7,this.request(se);case 7:return ae=ve.sent,ve.abrupt("return",{res:ae.res});case 9:case"end":return ve.stop()}},E,this)}));function ue(E){return ee.apply(this,arguments)}return ue}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("utility"),ee=a("../utils/obj2xml"),ue=ee.obj2xml,E=ge;E.deleteMulti=function(){var re=(0,ie.default)(z.default.mark(function se(ae){var he,me,ve,pe,be,je,ke,Be,De,Se,Ee,Ie,Me,Le=arguments;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(he=Le.length>1&&Le[1]!==void 0?Le[1]:{},me=[],!(!ae||!ae.length)){Pe.next=4;break}throw new Error("names is required");case 4:for(ve=0;ve<ae.length;ve++)pe={},typeof ae[ve]=="string"?pe.Key=oe.escape(this._objectName(ae[ve])):(be=ae[ve],je=be.key,ke=be.versionId,pe.Key=oe.escape(this._objectName(je)),pe.VersionId=ke),me.push(pe);return Be={Delete:{Quiet:!!he.quiet,Object:me}},De=ue(Be,{headers:!0}),he.subres=Object.assign({delete:""},he.subres),he.versionId&&(he.subres.versionId=he.versionId),Se=this._objectRequestParams("POST","",he),Se.mime="xml",Se.content=De,Se.xmlResponse=!0,Se.successStatuses=[200],Pe.next=16,this.request(Se);case 16:return Ee=Pe.sent,Ie=Ee.data,Me=Ie&&Ie.Deleted||null,Me&&(Array.isArray(Me)||(Me=[Me])),Pe.abrupt("return",{res:Ee.res,deleted:Me||[]});case 21:case"end":return Pe.stop()}},se,this)}));function te(se){return re.apply(this,arguments)}return te}()},{"../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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=ge;oe.deleteObjectTagging=function(){var ee=(0,ie.default)(z.default.mark(function E(re){var te,se,ae,he=arguments;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return te=he.length>1&&he[1]!==void 0?he[1]:{},te.subres=Object.assign({tagging:""},te.subres),te.versionId&&(te.subres.versionId=te.versionId),re=this._objectName(re),se=this._objectRequestParams("DELETE",re,te),se.successStatuses=[204],ve.next=8,this.request(se);case 8:return ae=ve.sent,ve.abrupt("return",{status:ae.status,res:ae.res});case 10:case"end":return ve.stop()}},E,this)}));function ue(E){return ee.apply(this,arguments)}return ue}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(a,Te,ge){"use strict";a("core-js/modules/es.array.concat.js");var x=a("url"),z=a("../utils/isIP"),ie=z.isIP,oe=ge;oe.generateObjectUrl=function(ue,E){if(ie(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(E)E[E.length-1]!=="/"&&(E+="/");else{E=this.options.endpoint.format();var re=x.parse(E),te=this.options.bucket;re.hostname="".concat(te,".").concat(re.hostname),re.host="".concat(te,".").concat(re.host),E=re.format()}return E+this._escape(this._objectName(ue))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(a,Te,ge){(function(x){(function(){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),ie=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("fs"),ue=a("is-type-of"),E=ge;E.get=function(){var re=(0,oe.default)(ie.default.mark(function se(ae,he){var me,ve,pe,be,je,ke,Be,De,Se=arguments;return ie.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return me=Se.length>2&&Se[2]!==void 0?Se[2]:{},ve=null,pe=!1,ue.writableStream(he)?ve=he:ue.string(he)?(ve=ee.createWriteStream(he),pe=!0):me=he,me=me||{},be=x&&x.browser,je=me.responseCacheControl===null?"":"no-cache",ke=be&&je?{"response-cache-control":je}:{},me.subres=Object.assign(ke,me.subres),me.versionId&&(me.subres.versionId=me.versionId),me.process&&(me.subres["x-oss-process"]=me.process),Ie.prev=11,De=this._objectRequestParams("GET",ae,me),De.writeStream=ve,De.successStatuses=[200,206,304],Ie.next=17,this.request(De);case 17:Be=Ie.sent,pe&&ve.destroy(),Ie.next=28;break;case 21:if(Ie.prev=21,Ie.t0=Ie.catch(11),!pe){Ie.next=27;break}return ve.destroy(),Ie.next=27,this._deleteFileSafe(he);case 27:throw Ie.t0;case 28:return Ie.abrupt("return",{res:Be.res,content:Be.data});case 29:case"end":return Ie.stop()}},se,this,[[11,21]])}));function te(se,ae){return re.apply(this,arguments)}return te}()}).call(this)}).call(this,a("_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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=ge;oe.getACL=function(){var ee=(0,ie.default)(z.default.mark(function E(re){var te,se,ae,he=arguments;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return te=he.length>1&&he[1]!==void 0?he[1]:{},te.subres=Object.assign({acl:""},te.subres),te.versionId&&(te.subres.versionId=te.versionId),re=this._objectName(re),se=this._objectRequestParams("GET",re,te),se.successStatuses=[200],se.xmlResponse=!0,ve.next=9,this.request(se);case 9:return ae=ve.sent,ve.abrupt("return",{acl:ae.data.AccessControlList.Grant,owner:{id:ae.data.Owner.ID,displayName:ae.data.Owner.DisplayName},res:ae.res});case 11:case"end":return ve.stop()}},E,this)}));function ue(E){return ee.apply(this,arguments)}return ue}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.number.constructor.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=ge,ee=a("../utils/isObject"),ue=ee.isObject,E=a("../utils/isArray"),re=E.isArray;oe.getBucketVersions=te,oe.listObjectVersions=te;function te(){return se.apply(this,arguments)}function se(){return se=(0,ie.default)(z.default.mark(function me(){var ve,pe,be,je,ke,Be,De,Se,Ee=arguments;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(ve=Ee.length>0&&Ee[0]!==void 0?Ee[0]:{},pe=Ee.length>1&&Ee[1]!==void 0?Ee[1]:{},!(ve.versionIdMarker&&ve.keyMarker===void 0)){Me.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return pe.subres=Object.assign({versions:""},pe.subres),pe.versionId&&(pe.subres.versionId=pe.versionId),be=this._objectRequestParams("GET","",pe),be.xmlResponse=!0,be.successStatuses=[200],be.query=he(ve),Me.next=12,this.request(be);case 12:return je=Me.sent,ke=je.data.Version||[],Be=je.data.DeleteMarker||[],De=this,ke&&(Array.isArray(ke)||(ke=[ke]),ke=ke.map(function(Le){return{name:Le.Key,url:De._objectUrl(Le.Key),lastModified:Le.LastModified,isLatest:Le.IsLatest==="true",versionId:Le.VersionId,etag:Le.ETag,type:Le.Type,size:Number(Le.Size),storageClass:Le.StorageClass,owner:{id:Le.Owner.ID,displayName:Le.Owner.DisplayName}}})),Be&&(re(Be)||(Be=[Be]),Be=Be.map(function(Le){return{name:Le.Key,lastModified:Le.LastModified,versionId:Le.VersionId,owner:{id:Le.Owner.ID,displayName:Le.Owner.DisplayName}}})),Se=je.data.CommonPrefixes||null,Se&&(re(Se)||(Se=[Se]),Se=Se.map(function(Le){return Le.Prefix})),Me.abrupt("return",{res:je.res,objects:ke,deleteMarker:Be,prefixes:Se,nextMarker:je.data.NextKeyMarker||null,NextVersionIdMarker:je.data.NextVersionIdMarker||null,nextKeyMarker:je.data.NextKeyMarker||null,nextVersionIdMarker:je.data.NextVersionIdMarker||null,isTruncated:je.data.IsTruncated==="true"});case 21:case"end":return Me.stop()}},me,this)})),se.apply(this,arguments)}function ae(me){return me.replace(/([A-Z])/g,"-$1").toLowerCase()}function he(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve={};return ue(me)&&Object.keys(me).forEach(function(pe){ve[ae(pe)]=me[pe]}),ve}},{"../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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=ge;oe.getObjectMeta=function(){var ee=(0,ie.default)(z.default.mark(function E(re,te){var se,ae;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return te=te||{},re=this._objectName(re),te.subres=Object.assign({objectMeta:""},te.subres),te.versionId&&(te.subres.versionId=te.versionId),se=this._objectRequestParams("HEAD",re,te),se.successStatuses=[200],me.next=8,this.request(se);case 8:return ae=me.sent,me.abrupt("return",{status:ae.status,res:ae.res});case 10:case"end":return me.stop()}},E,this)}));function ue(E,re){return ee.apply(this,arguments)}return ue}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=ge,ee=a("../utils/isObject"),ue=ee.isObject;oe.getObjectTagging=function(){var E=(0,ie.default)(z.default.mark(function te(se){var ae,he,me,ve,pe,be,je=arguments;return z.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return ae=je.length>1&&je[1]!==void 0?je[1]:{},ae.subres=Object.assign({tagging:""},ae.subres),ae.versionId&&(ae.subres.versionId=ae.versionId),se=this._objectName(se),he=this._objectRequestParams("GET",se,ae),he.successStatuses=[200],Be.next=8,this.request(he);case 8:return me=Be.sent,Be.next=11,this.parseXML(me.data);case 11:return ve=Be.sent,pe=ve.TagSet.Tag,pe=pe&&ue(pe)?[pe]:pe||[],be={},pe.forEach(function(De){be[De.Key]=De.Value}),Be.abrupt("return",{status:me.status,res:me.res,tag:be});case 17:case"end":return Be.stop()}},te,this)}));function re(te){return E.apply(this,arguments)}return re}()},{"../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(a,Te,ge){"use strict";var x=a("../utils/isIP"),z=x.isIP,ie=ge;ie.getObjectUrl=function(ee,ue){if(z(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return ue?ue[ue.length-1]!=="/"&&(ue+="/"):ue=this.options.endpoint.format(),ue+this._escape(this._objectName(ee))}},{"../utils/isIP":69}],43:[function(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=ge;oe.getSymlink=function(){var ee=(0,ie.default)(z.default.mark(function E(re){var te,se,ae,he,me=arguments;return z.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return te=me.length>1&&me[1]!==void 0?me[1]:{},te.subres=Object.assign({symlink:""},te.subres),te.versionId&&(te.subres.versionId=te.versionId),re=this._objectName(re),se=this._objectRequestParams("GET",re,te),se.successStatuses=[200],pe.next=8,this.request(se);case 8:return ae=pe.sent,he=ae.res.headers["x-oss-symlink-target"],pe.abrupt("return",{targetName:decodeURIComponent(he),res:ae.res});case 11:case"end":return pe.stop()}},E,this)}));function ue(E){return ee.apply(this,arguments)}return ue}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkEnv"),ee=oe.checkEnv,ue=ge;ue.head=function(){var E=(0,ie.default)(z.default.mark(function te(se){var ae,he,me,ve,pe=arguments;return z.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ae=pe.length>1&&pe[1]!==void 0?pe[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"),ae.subres=Object.assign({},ae.subres),ae.versionId&&(ae.subres.versionId=ae.versionId),he=this._objectRequestParams("HEAD",se,ae),he.successStatuses=[200,304],je.next=8,this.request(he);case 8:return me=je.sent,ve={meta:null,res:me.res,status:me.status},me.status===200&&Object.keys(me.headers).forEach(function(ke){ke.indexOf("x-oss-meta-")===0&&(ve.meta||(ve.meta={}),ve.meta[ke.substring(11)]=me.headers[ke])}),je.abrupt("return",ve);case 12:case"end":return je.stop()}},te,this)}));function re(te){return E.apply(this,arguments)}return re}()},{"../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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=ge;oe.putACL=function(){var ee=(0,ie.default)(z.default.mark(function E(re,te,se){var ae,he;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.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"]=te,re=this._objectName(re),ae=this._objectRequestParams("PUT",re,se),ae.successStatuses=[200],ve.next=10,this.request(ae);case 10:return he=ve.sent,ve.abrupt("return",{res:he.res});case 12:case"end":return ve.stop()}},E,this)}));function ue(E,re,te){return ee.apply(this,arguments)}return ue}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.object.keys.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/obj2xml"),ee=oe.obj2xml,ue=a("../utils/checkObjectTag"),E=ue.checkObjectTag,re=ge;re.putObjectTagging=function(){var te=(0,ie.default)(z.default.mark(function ae(he,me){var ve,pe,be,je,ke=arguments;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return ve=ke.length>2&&ke[2]!==void 0?ke[2]:{},E(me),ve.subres=Object.assign({tagging:""},ve.subres),ve.versionId&&(ve.subres.versionId=ve.versionId),he=this._objectName(he),pe=this._objectRequestParams("PUT",he,ve),pe.successStatuses=[200],me=Object.keys(me).map(function(Se){return{Key:Se,Value:me[Se]}}),be={Tagging:{TagSet:{Tag:me}}},pe.mime="xml",pe.content=ee(be),De.next=13,this.request(pe);case 13:return je=De.sent,De.abrupt("return",{res:je.res,status:je.status});case 15:case"end":return De.stop()}},ae,this)}));function se(ae,he){return te.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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=ge;oe.putSymlink=function(){var ee=(0,ie.default)(z.default.mark(function E(re,te,se){var ae,he;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return se=se||{},se.headers=se.headers||{},te=this._escape(this._objectName(te)),this._convertMetaToHeaders(se.meta,se.headers),se.headers["x-oss-symlink-target"]=te,se.subres=Object.assign({symlink:""},se.subres),se.versionId&&(se.subres.versionId=se.versionId),se.storageClass&&(se.headers["x-oss-storage-class"]=se.storageClass),re=this._objectName(re),ae=this._objectRequestParams("PUT",re,se),ae.successStatuses=[200],ve.next=13,this.request(ae);case 13:return he=ve.sent,ve.abrupt("return",{res:he.res});case 15:case"end":return ve.stop()}},E,this)}));function ue(E,re,te){return ee.apply(this,arguments)}return ue}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(a,Te,ge){"use strict";var x=a("url"),z=a("utility"),ie=a("copy-to"),oe=a("../../common/signUtils"),ee=a("../utils/isIP"),ue=ee.isIP,E=ge;E.signatureUrl=function(te,se){if(ue(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");se=se||{},te=this._objectName(te),se.method=se.method||"GET";var ae=z.timestamp()+(se.expires||1800),he={bucket:this.options.bucket,object:te},me=this._getResource(he);this.options.stsToken&&(se["security-token"]=this.options.stsToken);var ve=oe._signatureForURL(this.options.accessKeySecret,se,me,ae),pe=x.parse(this._getReqUrl(he));return pe.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ae,Signature:ve.Signature},ie(ve.subResource).to(pe.query),pe.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.iterator.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.string.iterator.js"),a("core-js/modules/web.dom-collections.iterator.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.function.name.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("./utils/isArray"),ee=oe.isArray,ue=ge;ue._parallelNode=function(){var E=(0,ie.default)(z.default.mark(function te(se,ae,he,me){var ve,pe,be,je,ke,Be,De,Se;return z.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:ve=this,pe=[],be=[],je=se.length/ae,ke=se.length%ae,Be=ke===0?je:(se.length-ke)/ae+1,De=1,Se=0;case 8:if(!(Se<se.length)){Ie.next=26;break}if(!ve.isCancel()){Ie.next=11;break}return Ie.abrupt("break",26);case 11:if(me?be.push(he(ve,se[Se],me)):be.push(he(ve,se[Se])),!(be.length===ae||De===Be&&Se===se.length-1)){Ie.next=23;break}return Ie.prev=13,De+=1,Ie.next=17,Promise.all(be);case 17:Ie.next=22;break;case 19:Ie.prev=19,Ie.t0=Ie.catch(13),pe.push(Ie.t0);case 22:be=[];case 23:Se++,Ie.next=8;break;case 26:return Ie.abrupt("return",pe);case 27:case"end":return Ie.stop()}},te,this,[[13,19]])}));function re(te,se,ae,he){return E.apply(this,arguments)}return re}(),ue._parallel=function(re,te,se){var ae=this;return new Promise(function(he){var me=[];if(te<=0||!re){he(me);return}function ve(Ie){return function(){if(Ie===null)throw new Error("Callback was already called.");var Me=Ie;Ie=null;for(var Le=arguments.length,Ae=new Array(Le),Pe=0;Pe<Le;Pe++)Ae[Pe]=arguments[Pe];Me.apply(this,Ae)}}function pe(Ie){var Me=-1,Le=Ie.length;return function(){return++Me<Le&&!ae.isCancel()?{value:Ie[Me],key:Me}:null}}var be=pe(re),je=!1,ke=0,Be=!1;function De(Ie){ke-=1,Ie?(je=!0,me.push(Ie),he(me)):je&&ke<=0?(je=!0,he(me)):Be||(ae.isCancel()?he(me):Ee())}function Se(Ie,Me){se(Ie).then(function(Le){Me(null,Le)}).catch(function(Le){Me(Le)})}function Ee(){for(Be=!0;ke<te&&!je&&!ae.isCancel();){var Ie=be();if(Ie===null||me.length>0){je=!0,ke<=0&&he(me);return}ke+=1,Se(Ie.value,ve(De))}Be=!1}Ee()})},ue.cancel=function(re){this.options.cancelFlag=!0,ee(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(te){if(te.destroyed===!1){var se={name:"cancel",message:"cancel"};te.destroy(se)}}),this.multipartUploadStreams=[],re&&this.abortMultipartUpload(re.name,re.uploadId,re.options)},ue.isCancel=function(){return this.options.cancelFlag},ue.resetCancelFlag=function(){this.options.cancelFlag=!1},ue._stop=function(){this.options.cancelFlag=!0},ue._makeCancelEvent=function(){var re={status:0,name:"cancel"};return re},ue._makeAbortEvent=function(){var re={status:0,name:"abort",message:"upload task has been abort"};return re}},{"./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(a,Te,ge){(function(x){(function(){"use strict";a("core-js/modules/es.string.trim.js"),a("core-js/modules/es.array.sort.js"),a("core-js/modules/es.array.join.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.to-string.js");var z=a("./../../shims/crypto/crypto.js"),ie=a("is-type-of"),oe=a("./utils/lowercaseKeyHeader"),ee=oe.lowercaseKeyHeader;ge.buildCanonicalizedResource=function(E,re){var te="".concat(E),se="?";if(ie.string(re)&&re.trim()!=="")te+=se+re;else if(ie.array(re))re.sort(),te+=se+re.join("&");else if(re){var ae=function(ve,pe){return ve[0]>pe[0]?1:ve[0]<pe[0]?-1:0},he=function(ve){te+=se+ve,(re[ve]||re[ve]===0)&&(te+="=".concat(re[ve])),se="&"};Object.keys(re).sort(ae).forEach(he)}return te},ge.buildCanonicalString=function(E,re,te,se){te=te||{};var ae=ee(te.headers),he="x-oss-",me=[],ve={},pe=[E.toUpperCase(),ae["content-md5"]||"",ae["content-type"],se||ae["x-oss-date"]];return Object.keys(ae).forEach(function(be){var je=be.toLowerCase();je.indexOf(he)===0&&(ve[je]=String(ae[be]).trim())}),Object.keys(ve).sort().forEach(function(be){me.push("".concat(be,":").concat(ve[be]))}),pe=pe.concat(me),pe.push(this.buildCanonicalizedResource(re,te.parameters)),pe.join(`
`)},ge.computeSignature=function(E,re){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",se=z.createHmac("sha1",E);return se.update(x.from(re,te)).digest("base64")},ge.authorization=function(E,re,te,se){return"OSS ".concat(E,":").concat(this.computeSignature(re,te,se))},ge._signatureForURL=function(E){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=arguments.length>2?arguments[2]:void 0,se=arguments.length>3?arguments[3]:void 0,ae=arguments.length>4?arguments[4]:void 0,he={},me=re.subResource,ve=me===void 0?{}:me;if(re.process){var pe="x-oss-process";ve[pe]=re.process}if(re.trafficLimit){var be="x-oss-traffic-limit";ve[be]=re.trafficLimit}if(re.response&&Object.keys(re.response).forEach(function(De){var Se="response-".concat(De.toLowerCase());ve[Se]=re.response[De]}),Object.keys(re).forEach(function(De){var Se=De.toLowerCase(),Ee=re[De];Se.indexOf("x-oss-")===0?he[Se]=Ee:(Se.indexOf("content-md5")===0||Se.indexOf("content-type")===0)&&(he[De]=Ee)}),Object.prototype.hasOwnProperty.call(re,"security-token")&&(ve["security-token"]=re["security-token"]),Object.prototype.hasOwnProperty.call(re,"callback")){var je={callbackUrl:encodeURI(re.callback.url),callbackBody:re.callback.body};if(re.callback.host&&(je.callbackHost=re.callback.host),re.callback.contentType&&(je.callbackBodyType=re.callback.contentType),ve.callback=x.from(JSON.stringify(je)).toString("base64"),re.callback.customValue){var ke={};Object.keys(re.callback.customValue).forEach(function(De){ke["x:".concat(De)]=re.callback.customValue[De]}),ve["callback-var"]=x.from(JSON.stringify(ke)).toString("base64")}}var Be=this.buildCanonicalString(re.method,te,{headers:he,parameters:ve},se.toString());return{Signature:this.computeSignature(E,Be,ae),subResource:ve}}}).call(this)}).call(this,a("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(a,Te,ge){"use strict";a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.checkBucketName=void 0,ge.checkBucketName=function(x){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=z?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!ie.test(x))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(a,Te,ge){"use strict";a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.checkConfigValid=void 0;var x={endpoint:z,region:/^[a-zA-Z0-9\-_]+$/};function z(ie){return typeof ie=="string"?/^[a-zA-Z0-9._:/-]+$/.test(ie):ie.host?/^[a-zA-Z0-9._:/-]+$/.test(ie.host):!1}ge.checkConfigValid=function(ie,oe){if(x[oe]){var ee=!0;if(x[oe]instanceof Function?ee=x[oe](ie):ee=x[oe].test(ie),!ee)throw new Error("The ".concat(oe," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(a,Te,ge){(function(x){(function(){"use strict";Object.defineProperty(ge,"__esModule",{value:!0}),ge.checkEnv=void 0;function z(ie){x.browser&&console.warn(ie)}ge.checkEnv=z}).call(this)}).call(this,a("_process"))},{_process:467}],54:[function(a,Te,ge){"use strict";a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.object.entries.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.checkObjectTag=void 0;var x=a("./checkValid"),z=x.checkValid,ie=a("./isObject"),oe=ie.isObject,ee=[{validator:function(te){if(typeof te!="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 (/)"}],ue={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 E(re){if(!oe(re))throw new Error("tag must be Object");var te=Object.entries(re);if(te.length>10)throw new Error("maximum of 10 tags for a object");var se=["key","value"];te.forEach(function(ae){ae.forEach(function(he,me){z(he,ue[se[me]])})})}ge.checkObjectTag=E},{"./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(a,Te,ge){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.checkValid=void 0;function x(z,ie){ie.forEach(function(oe){if(oe.validator)oe.validator(z);else if(oe.pattern&&!oe.pattern.test(z))throw new Error(oe.msg)})}ge.checkValid=x},{"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(a,Te,ge){(function(x){(function(){"use strict";a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.string.includes.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.concat.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.createRequest=void 0;var z=a("./../../../shims/crypto/crypto.js"),ie=a("debug")("ali-oss"),oe=a("mime"),ee=a("dateformat"),ue=a("copy-to"),E=a("path"),re=a("./encoder"),te=re.encoder,se=a("./isIP"),ae=se.isIP,he=a("./setRegion"),me=he.setRegion,ve=a("../client/getReqUrl"),pe=ve.getReqUrl,be=a("./isDingTalk"),je=be.isDingTalk;function ke(Se,Ee){return Se[Ee]||Se[Ee.toLowerCase()]}function Be(Se,Ee){delete Se[Ee],delete Se[Ee.toLowerCase()]}function De(Se){var Ee=new Date;this.options.amendTimeSkewed&&(Ee=+new Date+this.options.amendTimeSkewed);var Ie={"x-oss-date":ee(Ee,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(Ie["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(Ie["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(Ie,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(Ie["x-oss-security-token"]=this.options.stsToken),ue(Se.headers).to(Ie),ke(Ie,"Content-Type")||(Se.mime&&Se.mime.indexOf("/")>0?Ie["Content-Type"]=Se.mime:je()?Ie["Content-Type"]="application/octet-stream":Ie["Content-Type"]=oe.getType(Se.mime||E.extname(Se.object||""))),ke(Ie,"Content-Type")||Be(Ie,"Content-Type"),Se.content&&(Se.disabledMD5||(!Se.headers||!Se.headers["Content-MD5"]?Ie["Content-MD5"]=z.createHash("md5").update(x.from(Se.content,"utf8")).digest("base64"):Ie["Content-MD5"]=Se.headers["Content-MD5"]),Ie["Content-Length"]||(Ie["Content-Length"]=Se.content.length));var Me=Object.prototype.hasOwnProperty;for(var Le in Ie)Ie[Le]&&Me.call(Ie,Le)&&(Ie[Le]=te(String(Ie[Le]),this.options.headerEncoding));var Ae=this._getResource(Se);if(Ie.authorization=this.authorization(Se.method,Ae,Se.subres,Ie,this.options.headerEncoding),ae(this.options.endpoint.hostname)){var Pe=this.options,Ue=Pe.region,He=Pe.internal,Je=Pe.secure,st=me(Ue,He,Je);Ie.host="".concat(Se.bucket,".").concat(st.host)}var _e=pe.bind(this)(Se);ie("request %s %s, with headers %j, !!stream: %s",Se.method,_e,Ie,!!Se.stream);var Ke=Se.timeout||this.options.timeout,nt={method:Se.method,content:Se.content,stream:Se.stream,headers:Ie,timeout:Ke,writeStream:Se.writeStream,customResponse:Se.customResponse,ctx:Se.ctx||this.ctx};return this.agent&&(nt.agent=this.agent),this.httpsAgent&&(nt.httpsAgent=this.httpsAgent),nt.enableProxy=!!this.options.enableProxy,nt.proxy=this.options.proxy?this.options.proxy:null,{url:_e,params:nt}}ge.createRequest=De}).call(this)}).call(this,a("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(a,Te,ge){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.entries.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.object.keys.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.dataFix=void 0;var x=a("./isObject"),z=["true","TRUE","1",1],ie=["false","FALSE","0",0];function oe(E,re,te){if(x.isObject(E)){var se=re.remove,ae=se===void 0?[]:se,he=re.rename,me=he===void 0?{}:he,ve=re.camel,pe=ve===void 0?[]:ve,be=re.bool,je=be===void 0?[]:be,ke=re.lowerFirst,Be=ke===void 0?!1:ke;return ae.forEach(function(De){return delete E[De]}),Object.entries(me).forEach(function(De){E[De[0]]&&(E[De[1]]||(E[De[1]]=E[De[0]],delete E[De[0]]))}),pe.forEach(function(De){if(E[De]){var Se=De.replace(/^(.)/,function(Ee){return Ee.toLowerCase()}).replace(/-(\w)/g,function(Ee,Ie){return Ie.toUpperCase()});E[Se]||(E[Se]=E[De])}}),je.forEach(function(De){E[De]=ee(E[De])}),typeof te=="function"&&te(E),ue(E,Be),oe}}ge.dataFix=oe;function ee(E){return E?z.includes(E)?!0:ie.includes(E)?!1:E:!1}function ue(E,re){re&&Object.keys(E).forEach(function(te){var se=te.replace(/^\w/,function(ae){return ae.toLowerCase()});typeof E[se]=="undefined"&&(E[se]=E[te],delete E[te])})}},{"./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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault");a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js");var z=x(a("@babel/runtime/helpers/typeof"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.deepCopyWith=ge.deepCopy=void 0;var ie=a("./isBuffer");ge.deepCopy=function(oe){if(oe===null||(0,z.default)(oe)!=="object")return oe;if(ie.isBuffer(oe))return oe.slice();var ee=Array.isArray(oe)?[]:{};return Object.keys(oe).forEach(function(ue){ee[ue]=ge.deepCopy(oe[ue])}),ee},ge.deepCopyWith=function(oe,ee){function ue(E,re,te){var se=ee(E,re,te);if(se!==void 0)return se;if(E===null||(0,z.default)(E)!=="object")return E;if(ie.isBuffer(E))return E.slice();var ae=Array.isArray(E)?[]:{};return Object.keys(E).forEach(function(he){ae[he]=ue(E[he],he,E)}),ae}return ee?ue(oe,"",null):ge.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(a,Te,ge){(function(x){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.encoder=void 0;function z(ie){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return oe==="utf-8"?ie:x.from(ie).toString("latin1")}ge.encoder=z}).call(this)}).call(this,a("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(a,Te,ge){"use strict";a("core-js/modules/es.array.map.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.formatInventoryConfig=void 0;var x=a("../utils/dataFix"),z=a("../utils/isObject"),ie=a("../utils/isArray"),oe=a("../utils/formatObjKey");function ee(E){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return re&&z.isObject(E)&&(E=[E]),ie.isArray(E)?E=E.map(ue):E=ue(E),E}ge.formatInventoryConfig=ee;function ue(E){return x.dataFix(E,{bool:["IsEnabled"]},function(re){var te,se;re.prefix=re.Filter.Prefix,delete re.Filter,re.OSSBucketDestination=re.Destination.OSSBucketDestination,re.OSSBucketDestination.rolename=re.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete re.OSSBucketDestination.RoleArn,re.OSSBucketDestination.bucket=re.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete re.OSSBucketDestination.Bucket,delete re.Destination,re.frequency=re.Schedule.Frequency,delete re.Schedule.Frequency,!((te=re==null?void 0:re.OptionalFields)===null||te===void 0)&&te.Field&&!ie.isArray((se=re.OptionalFields)===null||se===void 0?void 0:se.Field)&&(re.OptionalFields.Field=[re.OptionalFields.Field])}),E=oe.formatObjKey(E,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),E}},{"../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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault");a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.string.includes.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js");var z=x(a("@babel/runtime/helpers/typeof"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.formatObjKey=void 0;function ie(ee,ue,E){if(ee===null||(0,z.default)(ee)!=="object")return ee;var re;if(Array.isArray(ee)){re=[];for(var te=0;te<ee.length;te++)re.push(ie(ee[te],ue,E))}else re={},Object.keys(ee).forEach(function(se){re[oe(se,ue,E)]=ie(ee[se],ue,E)});return re}ge.formatObjKey=ie;function oe(ee,ue,E){return E&&E.exclude&&E.exclude.includes(ee)||(ue==="firstUpperCase"?ee=ee.replace(/^./,function(re){return re.toUpperCase()}):ue==="firstLowerCase"&&(ee=ee.replace(/^./,function(re){return re.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(a,Te,ge){"use strict";a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.getStrBytesCount=void 0;function x(z){for(var ie=0,oe=0;oe<z.length;oe++){var ee=z.charAt(oe);/^[\u00-\uff]$/.test(ee)?ie+=1:ie+=2}return ie}ge.getStrBytesCount=x},{"core-js/modules/es.regexp.exec.js":300}],63:[function(a,Te,ge){"use strict";a("core-js/modules/es.object.to-string.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.isArray=void 0,ge.isArray=function(x){return Object.prototype.toString.call(x)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(a,Te,ge){"use strict";Object.defineProperty(ge,"__esModule",{value:!0}),ge.isBlob=void 0;function x(z){return typeof Blob!="undefined"&&z instanceof Blob}ge.isBlob=x},{}],65:[function(a,Te,ge){(function(x){(function(){"use strict";Object.defineProperty(ge,"__esModule",{value:!0}),ge.isBuffer=void 0;function z(ie){return x.isBuffer(ie)}ge.isBuffer=z}).call(this)}).call(this,{isBuffer:a("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(a,Te,ge){(function(x){(function(){"use strict";a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.string.includes.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.isDingTalk=void 0;function z(){return!!(x.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}ge.isDingTalk=z}).call(this)}).call(this,a("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(a,Te,ge){"use strict";Object.defineProperty(ge,"__esModule",{value:!0}),ge.isFile=void 0,ge.isFile=function(x){return typeof File!="undefined"&&x instanceof File}},{}],68:[function(a,Te,ge){"use strict";Object.defineProperty(ge,"__esModule",{value:!0}),ge.isFunction=void 0,ge.isFunction=function(x){return typeof x=="function"}},{}],69:[function(a,Te,ge){"use strict";a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.isIP=void 0,ge.isIP=function(x){var z=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,ie=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return z.test(x)||ie.test(x)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(a,Te,ge){"use strict";a("core-js/modules/es.object.to-string.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.isObject=void 0,ge.isObject=function(x){return Object.prototype.toString.call(x)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(a,Te,ge){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.lowercaseKeyHeader=void 0;var x=a("./isObject");function z(ie){var oe={};return x.isObject(ie)&&Object.keys(ie).forEach(function(ee){oe[ee.toLowerCase()]=ie[ee]}),oe}ge.lowercaseKeyHeader=z},{"./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(a,Te,ge){"use strict";a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.array.join.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.obj2xml=void 0;var x=a("./formatObjKey");function z(oe){return Object.prototype.toString.call(oe).replace(/(.*? |])/g,"").toLowerCase()}function ie(oe,ee){var ue="";return ee&&ee.headers&&(ue=`<?xml version="1.0" encoding="UTF-8"?>
`),ee&&ee.firstUpperCase&&(oe=x.formatObjKey(oe,"firstUpperCase")),z(oe)==="object"?Object.keys(oe).forEach(function(E){z(oe[E])!=="undefined"&&z(oe[E])!=="null"&&(z(oe[E])==="string"||z(oe[E])==="number"?ue+="<".concat(E,">").concat(oe[E],"</").concat(E,">"):z(oe[E])==="object"?ue+="<".concat(E,">").concat(ie(oe[E]),"</").concat(E,">"):z(oe[E])==="array"?ue+=oe[E].map(function(re){return"<".concat(E,">").concat(ie(re),"</").concat(E,">")}).join(""):ue+="<".concat(E,">").concat(oe[E].toString(),"</").concat(E,">"))}):ue+=oe.toString(),ue}ge.obj2xml=ie},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(a,Te,ge){"use strict";a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.function.name.js"),a("core-js/modules/es.array.from.js"),a("core-js/modules/es.string.iterator.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.symbol.js"),a("core-js/modules/es.symbol.description.js"),a("core-js/modules/es.symbol.iterator.js"),a("core-js/modules/es.array.iterator.js"),a("core-js/modules/web.dom-collections.iterator.js"),a("core-js/modules/es.object.assign.js");function x(ee,ue){var E=typeof Symbol!="undefined"&&ee[Symbol.iterator]||ee["@@iterator"];if(!E){if(Array.isArray(ee)||(E=z(ee))||ue&&ee&&typeof ee.length=="number"){E&&(ee=E);var re=0,te=function(){};return{s:te,n:function(){return re>=ee.length?{done:!0}:{done:!1,value:ee[re++]}},e:function(ve){throw ve},f:te}}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,ae=!1,he;return{s:function(){E=E.call(ee)},n:function(){var ve=E.next();return se=ve.done,ve},e:function(ve){ae=!0,he=ve},f:function(){try{!se&&E.return!=null&&E.return()}finally{if(ae)throw he}}}}function z(ee,ue){if(ee){if(typeof ee=="string")return ie(ee,ue);var E=Object.prototype.toString.call(ee).slice(8,-1);if(E==="Object"&&ee.constructor&&(E=ee.constructor.name),E==="Map"||E==="Set")return Array.from(ee);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return ie(ee,ue)}}function ie(ee,ue){(ue==null||ue>ee.length)&&(ue=ee.length);for(var E=0,re=new Array(ue);E<ue;E++)re[E]=ee[E];return re}Object.defineProperty(ge,"__esModule",{value:!0}),ge.omit=void 0;function oe(ee,ue){var E=Object.assign({},ee),re=x(ue),te;try{for(re.s();!(te=re.n()).done;){var se=te.value;delete E[se]}}catch(ae){re.e(ae)}finally{re.f()}return E}ge.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(a,Te,ge){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.retry=void 0;function x(z,ie){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=0,ue=oe.retryDelay,E=ue===void 0?500:ue,re=oe.errorHandler,te=re===void 0?function(){return!0}:re,se=function ae(){for(var he=arguments.length,me=new Array(he),ve=0;ve<he;ve++)me[ve]=arguments[ve];return new Promise(function(pe,be){z.apply(void 0,me).then(function(je){ee=0,pe(je)}).catch(function(je){ee<ie&&te(je)?(ee++,setTimeout(function(){pe(ae.apply(void 0,me))},E)):(ee=0,be(je))})})};return se}ge.retry=x},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(a,Te,ge){"use strict";var x=function(ee){return ee&&ee.__esModule?ee:{default:ee}};Object.defineProperty(ge,"__esModule",{value:!0}),ge.setRegion=void 0;var z=x(a("url")),ie=a("./checkConfigValid");function oe(ee){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ie.checkConfigValid(ee,"region");var re=E?"https://":"http://",te=ue?"-internal.aliyuncs.com":".aliyuncs.com",se="vpc100-oss-cn-";return ee.substr(0,se.length)===se&&(te=".aliyuncs.com"),z.default.parse(re+ee+te)}ge.setRegion=oe},{"./checkConfigValid":52,url:472}],76:[function(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.array.find.js"),a("core-js/modules/es.object.assign.js");var ie=x(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.checkCredentials=ge.setSTSToken=void 0;var oe=a("./formatObjKey");function ee(){return ue.apply(this,arguments)}function ue(){return ue=(0,ie.default)(z.default.mark(function re(){var te,se;return z.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(this.options||(this.options={}),te=new Date,!this.stsTokenFreshTime){he.next=14;break}if(!(+te-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){he.next=12;break}return this.stsTokenFreshTime=te,he.next=7,this.options.refreshSTSToken();case 7:se=he.sent,se=oe.formatObjKey(se,"firstLowerCase"),se.securityToken&&(se.stsToken=se.securityToken),E(se),Object.assign(this.options,se);case 12:he.next=15;break;case 14:this.stsTokenFreshTime=te;case 15:return he.abrupt("return",null);case 16:case"end":return he.stop()}},re,this)})),ue.apply(this,arguments)}ge.setSTSToken=ee;function E(re){var te=["accessKeySecret","accessKeyId","stsToken"],se=Object.keys(re);te.forEach(function(ae){if(!se.find(function(he){return he===ae}))throw Error("refreshSTSToken must return contains ".concat(ae))})}ge.checkCredentials=E},{"./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(a,Te,ge){function x(ie,oe,ee,ue,E,re,te){try{var se=ie[re](te),ae=se.value}catch(he){ee(he);return}se.done?oe(ae):Promise.resolve(ae).then(ue,E)}function z(ie){return function(){var oe=this,ee=arguments;return new Promise(function(ue,E){var re=ie.apply(oe,ee);function te(ae){x(re,ue,E,te,se,"next",ae)}function se(ae){x(re,ue,E,te,se,"throw",ae)}te(void 0)})}}Te.exports=z,Te.exports.__esModule=!0,Te.exports.default=Te.exports},{}],78:[function(a,Te,ge){function x(z){return z&&z.__esModule?z:{default:z}}Te.exports=x,Te.exports.__esModule=!0,Te.exports.default=Te.exports},{}],79:[function(a,Te,ge){function x(z){"@babel/helpers - typeof";return Te.exports=x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},Te.exports.__esModule=!0,Te.exports.default=Te.exports,x(z)}Te.exports=x,Te.exports.__esModule=!0,Te.exports.default=Te.exports},{}],80:[function(a,Te,ge){Te.exports=a("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(a,Te,ge){Te.exports=x,Te.exports.HttpsAgent=x;function x(){}},{}],82:[function(a,Te,ge){(function(x){(function(){"use strict";var z=a("object-assign");function ie(Ue,He){if(Ue===He)return 0;for(var Je=Ue.length,st=He.length,_e=0,Ke=Math.min(Je,st);_e<Ke;++_e)if(Ue[_e]!==He[_e]){Je=Ue[_e],st=He[_e];break}return Je<st?-1:st<Je?1:0}function oe(Ue){return x.Buffer&&typeof x.Buffer.isBuffer=="function"?x.Buffer.isBuffer(Ue):!!(Ue!=null&&Ue._isBuffer)}var ee=a("util/"),ue=Object.prototype.hasOwnProperty,E=Array.prototype.slice,re=function(){return function(){}.name==="foo"}();function te(Ue){return Object.prototype.toString.call(Ue)}function se(Ue){return oe(Ue)||typeof x.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Ue):Ue?!!(Ue instanceof DataView||Ue.buffer&&Ue.buffer instanceof ArrayBuffer):!1}var ae=Te.exports=ke,he=/\s*function\s+([^\(\s]*)\s*/;function me(Ue){if(ee.isFunction(Ue)){if(re)return Ue.name;var He=Ue.toString(),Je=He.match(he);return Je&&Je[1]}}ae.AssertionError=function(He){this.name="AssertionError",this.actual=He.actual,this.expected=He.expected,this.operator=He.operator,He.message?(this.message=He.message,this.generatedMessage=!1):(this.message=be(this),this.generatedMessage=!0);var Je=He.stackStartFunction||je;if(Error.captureStackTrace)Error.captureStackTrace(this,Je);else{var st=new Error;if(st.stack){var _e=st.stack,Ke=me(Je),nt=_e.indexOf(`
`+Ke);if(nt>=0){var rt=_e.indexOf(`
`,nt+1);_e=_e.substring(rt+1)}this.stack=_e}}},ee.inherits(ae.AssertionError,Error);function ve(Ue,He){return typeof Ue=="string"?Ue.length<He?Ue:Ue.slice(0,He):Ue}function pe(Ue){if(re||!ee.isFunction(Ue))return ee.inspect(Ue);var He=me(Ue),Je=He?": "+He:"";return"[Function"+Je+"]"}function be(Ue){return ve(pe(Ue.actual),128)+" "+Ue.operator+" "+ve(pe(Ue.expected),128)}function je(Ue,He,Je,st,_e){throw new ae.AssertionError({message:Je,actual:Ue,expected:He,operator:st,stackStartFunction:_e})}ae.fail=je;function ke(Ue,He){Ue||je(Ue,!0,He,"==",ae.ok)}ae.ok=ke,ae.equal=function(He,Je,st){He!=Je&&je(He,Je,st,"==",ae.equal)},ae.notEqual=function(He,Je,st){He==Je&&je(He,Je,st,"!=",ae.notEqual)},ae.deepEqual=function(He,Je,st){Be(He,Je,!1)||je(He,Je,st,"deepEqual",ae.deepEqual)},ae.deepStrictEqual=function(He,Je,st){Be(He,Je,!0)||je(He,Je,st,"deepStrictEqual",ae.deepStrictEqual)};function Be(Ue,He,Je,st){if(Ue===He)return!0;if(oe(Ue)&&oe(He))return ie(Ue,He)===0;if(ee.isDate(Ue)&&ee.isDate(He))return Ue.getTime()===He.getTime();if(ee.isRegExp(Ue)&&ee.isRegExp(He))return Ue.source===He.source&&Ue.global===He.global&&Ue.multiline===He.multiline&&Ue.lastIndex===He.lastIndex&&Ue.ignoreCase===He.ignoreCase;if((Ue===null||typeof Ue!="object")&&(He===null||typeof He!="object"))return Je?Ue===He:Ue==He;if(se(Ue)&&se(He)&&te(Ue)===te(He)&&!(Ue instanceof Float32Array||Ue instanceof Float64Array))return ie(new Uint8Array(Ue.buffer),new Uint8Array(He.buffer))===0;if(oe(Ue)!==oe(He))return!1;st=st||{actual:[],expected:[]};var _e=st.actual.indexOf(Ue);return _e!==-1&&_e===st.expected.indexOf(He)?!0:(st.actual.push(Ue),st.expected.push(He),Se(Ue,He,Je,st))}function De(Ue){return Object.prototype.toString.call(Ue)=="[object Arguments]"}function Se(Ue,He,Je,st){if(Ue==null||He===null||He===void 0)return!1;if(ee.isPrimitive(Ue)||ee.isPrimitive(He))return Ue===He;if(Je&&Object.getPrototypeOf(Ue)!==Object.getPrototypeOf(He))return!1;var _e=De(Ue),Ke=De(He);if(_e&&!Ke||!_e&&Ke)return!1;if(_e)return Ue=E.call(Ue),He=E.call(He),Be(Ue,He,Je);var nt=Pe(Ue),rt=Pe(He),et,Ve;if(nt.length!==rt.length)return!1;for(nt.sort(),rt.sort(),Ve=nt.length-1;Ve>=0;Ve--)if(nt[Ve]!==rt[Ve])return!1;for(Ve=nt.length-1;Ve>=0;Ve--)if(et=nt[Ve],!Be(Ue[et],He[et],Je,st))return!1;return!0}ae.notDeepEqual=function(He,Je,st){Be(He,Je,!1)&&je(He,Je,st,"notDeepEqual",ae.notDeepEqual)},ae.notDeepStrictEqual=Ee;function Ee(Ue,He,Je){Be(Ue,He,!0)&&je(Ue,He,Je,"notDeepStrictEqual",Ee)}ae.strictEqual=function(He,Je,st){He!==Je&&je(He,Je,st,"===",ae.strictEqual)},ae.notStrictEqual=function(He,Je,st){He===Je&&je(He,Je,st,"!==",ae.notStrictEqual)};function Ie(Ue,He){if(!Ue||!He)return!1;if(Object.prototype.toString.call(He)=="[object RegExp]")return He.test(Ue);try{if(Ue instanceof He)return!0}catch(Je){}return Error.isPrototypeOf(He)?!1:He.call({},Ue)===!0}function Me(Ue){var He;try{Ue()}catch(Je){He=Je}return He}function Le(Ue,He,Je,st){var _e;if(typeof He!="function")throw new TypeError('"block" argument must be a function');typeof Je=="string"&&(st=Je,Je=null),_e=Me(He),st=(Je&&Je.name?" ("+Je.name+").":".")+(st?" "+st:"."),Ue&&!_e&&je(_e,Je,"Missing expected exception"+st);var Ke=typeof st=="string",nt=!Ue&&ee.isError(_e),rt=!Ue&&_e&&!Je;if((nt&&Ke&&Ie(_e,Je)||rt)&&je(_e,Je,"Got unwanted exception"+st),Ue&&_e&&Je&&!Ie(_e,Je)||!Ue&&_e)throw _e}ae.throws=function(Ue,He,Je){Le(!0,Ue,He,Je)},ae.doesNotThrow=function(Ue,He,Je){Le(!1,Ue,He,Je)},ae.ifError=function(Ue){if(Ue)throw Ue};function Ae(Ue,He){Ue||je(Ue,!0,He,"==",Ae)}ae.strict=z(Ae,ae,{equal:ae.strictEqual,deepEqual:ae.deepStrictEqual,notEqual:ae.notStrictEqual,notDeepEqual:ae.notDeepStrictEqual}),ae.strict.strict=ae.strict;var Pe=Object.keys||function(Ue){var He=[];for(var Je in Ue)ue.call(Ue,Je)&&He.push(Je);return He}}).call(this)}).call(this,typeof Lt!="undefined"?Lt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(a,Te,ge){typeof Object.create=="function"?Te.exports=function(z,ie){z.super_=ie,z.prototype=Object.create(ie.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}})}:Te.exports=function(z,ie){z.super_=ie;var oe=function(){};oe.prototype=ie.prototype,z.prototype=new oe,z.prototype.constructor=z}},{}],84:[function(a,Te,ge){Te.exports=function(z){return z&&typeof z=="object"&&typeof z.copy=="function"&&typeof z.fill=="function"&&typeof z.readUInt8=="function"}},{}],85:[function(a,Te,ge){(function(x,z){(function(){var ie=/%[sdj%]/g;ge.format=function(rt){if(!Se(rt)){for(var et=[],Ve=0;Ve<arguments.length;Ve++)et.push(ue(arguments[Ve]));return et.join(" ")}for(var Ve=1,Ye=arguments,Ge=Ye.length,it=String(rt).replace(ie,function(vt){if(vt==="%%")return"%";if(Ve>=Ge)return vt;switch(vt){case"%s":return String(Ye[Ve++]);case"%d":return Number(Ye[Ve++]);case"%j":try{return JSON.stringify(Ye[Ve++])}catch(ot){return"[Circular]"}default:return vt}}),qe=Ye[Ve];Ve<Ge;qe=Ye[++Ve])ke(qe)||!Le(qe)?it+=" "+qe:it+=" "+ue(qe);return it},ge.deprecate=function(rt,et){if(Ie(z.process))return function(){return ge.deprecate(rt,et).apply(this,arguments)};if(x.noDeprecation===!0)return rt;var Ve=!1;function Ye(){if(!Ve){if(x.throwDeprecation)throw new Error(et);x.traceDeprecation?console.trace(et):console.error(et),Ve=!0}return rt.apply(this,arguments)}return Ye};var oe={},ee;ge.debuglog=function(rt){if(Ie(ee)&&(ee=x.env.NODE_DEBUG||""),rt=rt.toUpperCase(),!oe[rt])if(new RegExp("\\b"+rt+"\\b","i").test(ee)){var et=x.pid;oe[rt]=function(){var Ve=ge.format.apply(ge,arguments);console.error("%s %d: %s",rt,et,Ve)}}else oe[rt]=function(){};return oe[rt]};function ue(rt,et){var Ve={seen:[],stylize:re};return arguments.length>=3&&(Ve.depth=arguments[2]),arguments.length>=4&&(Ve.colors=arguments[3]),je(et)?Ve.showHidden=et:et&&ge._extend(Ve,et),Ie(Ve.showHidden)&&(Ve.showHidden=!1),Ie(Ve.depth)&&(Ve.depth=2),Ie(Ve.colors)&&(Ve.colors=!1),Ie(Ve.customInspect)&&(Ve.customInspect=!0),Ve.colors&&(Ve.stylize=E),se(Ve,rt,Ve.depth)}ge.inspect=ue,ue.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]},ue.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function E(rt,et){var Ve=ue.styles[et];return Ve?"\x1B["+ue.colors[Ve][0]+"m"+rt+"\x1B["+ue.colors[Ve][1]+"m":rt}function re(rt,et){return rt}function te(rt){var et={};return rt.forEach(function(Ve,Ye){et[Ve]=!0}),et}function se(rt,et,Ve){if(rt.customInspect&&et&&Ue(et.inspect)&&et.inspect!==ge.inspect&&!(et.constructor&&et.constructor.prototype===et)){var Ye=et.inspect(Ve,rt);return Se(Ye)||(Ye=se(rt,Ye,Ve)),Ye}var Ge=ae(rt,et);if(Ge)return Ge;var it=Object.keys(et),qe=te(it);if(rt.showHidden&&(it=Object.getOwnPropertyNames(et)),Pe(et)&&(it.indexOf("message")>=0||it.indexOf("description")>=0))return he(et);if(it.length===0){if(Ue(et)){var vt=et.name?": "+et.name:"";return rt.stylize("[Function"+vt+"]","special")}if(Me(et))return rt.stylize(RegExp.prototype.toString.call(et),"regexp");if(Ae(et))return rt.stylize(Date.prototype.toString.call(et),"date");if(Pe(et))return he(et)}var ot="",Qe=!1,Fe=["{","}"];if(be(et)&&(Qe=!0,Fe=["[","]"]),Ue(et)){var Re=et.name?": "+et.name:"";ot=" [Function"+Re+"]"}if(Me(et)&&(ot=" "+RegExp.prototype.toString.call(et)),Ae(et)&&(ot=" "+Date.prototype.toUTCString.call(et)),Pe(et)&&(ot=" "+he(et)),it.length===0&&(!Qe||et.length==0))return Fe[0]+ot+Fe[1];if(Ve<0)return Me(et)?rt.stylize(RegExp.prototype.toString.call(et),"regexp"):rt.stylize("[Object]","special");rt.seen.push(et);var ne;return Qe?ne=me(rt,et,Ve,qe,it):ne=it.map(function(fe){return ve(rt,et,Ve,qe,fe,Qe)}),rt.seen.pop(),pe(ne,ot,Fe)}function ae(rt,et){if(Ie(et))return rt.stylize("undefined","undefined");if(Se(et)){var Ve="'"+JSON.stringify(et).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return rt.stylize(Ve,"string")}if(De(et))return rt.stylize(""+et,"number");if(je(et))return rt.stylize(""+et,"boolean");if(ke(et))return rt.stylize("null","null")}function he(rt){return"["+Error.prototype.toString.call(rt)+"]"}function me(rt,et,Ve,Ye,Ge){for(var it=[],qe=0,vt=et.length;qe<vt;++qe)nt(et,String(qe))?it.push(ve(rt,et,Ve,Ye,String(qe),!0)):it.push("");return Ge.forEach(function(ot){ot.match(/^\d+$/)||it.push(ve(rt,et,Ve,Ye,ot,!0))}),it}function ve(rt,et,Ve,Ye,Ge,it){var qe,vt,ot;if(ot=Object.getOwnPropertyDescriptor(et,Ge)||{value:et[Ge]},ot.get?ot.set?vt=rt.stylize("[Getter/Setter]","special"):vt=rt.stylize("[Getter]","special"):ot.set&&(vt=rt.stylize("[Setter]","special")),nt(Ye,Ge)||(qe="["+Ge+"]"),vt||(rt.seen.indexOf(ot.value)<0?(ke(Ve)?vt=se(rt,ot.value,null):vt=se(rt,ot.value,Ve-1),vt.indexOf(`
`)>-1&&(it?vt=vt.split(`
`).map(function(Qe){return" "+Qe}).join(`
`).substr(2):vt=`
`+vt.split(`
`).map(function(Qe){return" "+Qe}).join(`
`))):vt=rt.stylize("[Circular]","special")),Ie(qe)){if(it&&Ge.match(/^\d+$/))return vt;qe=JSON.stringify(""+Ge),qe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(qe=qe.substr(1,qe.length-2),qe=rt.stylize(qe,"name")):(qe=qe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),qe=rt.stylize(qe,"string"))}return qe+": "+vt}function pe(rt,et,Ve){var Ye=0,Ge=rt.reduce(function(it,qe){return Ye++,qe.indexOf(`
`)>=0&&Ye++,it+qe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Ge>60?Ve[0]+(et===""?"":et+`
`)+" "+rt.join(`,
`)+" "+Ve[1]:Ve[0]+et+" "+rt.join(", ")+" "+Ve[1]}function be(rt){return Array.isArray(rt)}ge.isArray=be;function je(rt){return typeof rt=="boolean"}ge.isBoolean=je;function ke(rt){return rt===null}ge.isNull=ke;function Be(rt){return rt==null}ge.isNullOrUndefined=Be;function De(rt){return typeof rt=="number"}ge.isNumber=De;function Se(rt){return typeof rt=="string"}ge.isString=Se;function Ee(rt){return typeof rt=="symbol"}ge.isSymbol=Ee;function Ie(rt){return rt===void 0}ge.isUndefined=Ie;function Me(rt){return Le(rt)&&Je(rt)==="[object RegExp]"}ge.isRegExp=Me;function Le(rt){return typeof rt=="object"&&rt!==null}ge.isObject=Le;function Ae(rt){return Le(rt)&&Je(rt)==="[object Date]"}ge.isDate=Ae;function Pe(rt){return Le(rt)&&(Je(rt)==="[object Error]"||rt instanceof Error)}ge.isError=Pe;function Ue(rt){return typeof rt=="function"}ge.isFunction=Ue;function He(rt){return rt===null||typeof rt=="boolean"||typeof rt=="number"||typeof rt=="string"||typeof rt=="symbol"||typeof rt=="undefined"}ge.isPrimitive=He,ge.isBuffer=a("./support/isBuffer");function Je(rt){return Object.prototype.toString.call(rt)}function st(rt){return rt<10?"0"+rt.toString(10):rt.toString(10)}var _e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ke(){var rt=new Date,et=[st(rt.getHours()),st(rt.getMinutes()),st(rt.getSeconds())].join(":");return[rt.getDate(),_e[rt.getMonth()],et].join(" ")}ge.log=function(){console.log("%s - %s",Ke(),ge.format.apply(ge,arguments))},ge.inherits=a("inherits"),ge._extend=function(rt,et){if(!et||!Le(et))return rt;for(var Ve=Object.keys(et),Ye=Ve.length;Ye--;)rt[Ve[Ye]]=et[Ve[Ye]];return rt};function nt(rt,et){return Object.prototype.hasOwnProperty.call(rt,et)}}).call(this)}).call(this,a("_process"),typeof Lt!="undefined"?Lt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(a,Te,ge){(function(x){(function(){"use strict";var z=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],ie=typeof globalThis=="undefined"?x:globalThis;Te.exports=function(){for(var ee=[],ue=0;ue<z.length;ue++)typeof ie[z[ue]]=="function"&&(ee[ee.length]=z[ue]);return ee}}).call(this)}).call(this,typeof Lt!="undefined"?Lt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(a,Te,ge){"use strict";ge.byteLength=re,ge.toByteArray=se,ge.fromByteArray=me;for(var x=[],z=[],ie=typeof Uint8Array!="undefined"?Uint8Array:Array,oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ee=0,ue=oe.length;ee<ue;++ee)x[ee]=oe[ee],z[oe.charCodeAt(ee)]=ee;z[45]=62,z[95]=63;function E(ve){var pe=ve.length;if(pe%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var be=ve.indexOf("=");be===-1&&(be=pe);var je=be===pe?0:4-be%4;return[be,je]}function re(ve){var pe=E(ve),be=pe[0],je=pe[1];return(be+je)*3/4-je}function te(ve,pe,be){return(pe+be)*3/4-be}function se(ve){var pe,be=E(ve),je=be[0],ke=be[1],Be=new ie(te(ve,je,ke)),De=0,Se=ke>0?je-4:je,Ee;for(Ee=0;Ee<Se;Ee+=4)pe=z[ve.charCodeAt(Ee)]<<18|z[ve.charCodeAt(Ee+1)]<<12|z[ve.charCodeAt(Ee+2)]<<6|z[ve.charCodeAt(Ee+3)],Be[De++]=pe>>16&255,Be[De++]=pe>>8&255,Be[De++]=pe&255;return ke===2&&(pe=z[ve.charCodeAt(Ee)]<<2|z[ve.charCodeAt(Ee+1)]>>4,Be[De++]=pe&255),ke===1&&(pe=z[ve.charCodeAt(Ee)]<<10|z[ve.charCodeAt(Ee+1)]<<4|z[ve.charCodeAt(Ee+2)]>>2,Be[De++]=pe>>8&255,Be[De++]=pe&255),Be}function ae(ve){return x[ve>>18&63]+x[ve>>12&63]+x[ve>>6&63]+x[ve&63]}function he(ve,pe,be){for(var je,ke=[],Be=pe;Be<be;Be+=3)je=(ve[Be]<<16&16711680)+(ve[Be+1]<<8&65280)+(ve[Be+2]&255),ke.push(ae(je));return ke.join("")}function me(ve){for(var pe,be=ve.length,je=be%3,ke=[],Be=16383,De=0,Se=be-je;De<Se;De+=Be)ke.push(he(ve,De,De+Be>Se?Se:De+Be));return je===1?(pe=ve[be-1],ke.push(x[pe>>2]+x[pe<<4&63]+"==")):je===2&&(pe=(ve[be-2]<<8)+ve[be-1],ke.push(x[pe>>10]+x[pe>>4&63]+x[pe<<2&63]+"=")),ke.join("")}},{}],88:[function(a,Te,ge){(function(x,z,ie){typeof Te!="undefined"&&Te.exports?Te.exports=ie():typeof Ce=="function"&&Ce.amd?Ce(z,ie):x[z]=ie()})(this,"bowser",function(){var x=!0;function z(te){function se(et){var Ve=te.match(et);return Ve&&Ve.length>1&&Ve[1]||""}function ae(et){var Ve=te.match(et);return Ve&&Ve.length>1&&Ve[2]||""}var he=se(/(ipod|iphone|ipad)/i).toLowerCase(),me=/like android/i.test(te),ve=!me&&/android/i.test(te),pe=/nexus\s*[0-6]\s*/i.test(te),be=!pe&&/nexus\s*[0-9]+/i.test(te),je=/CrOS/.test(te),ke=/silk/i.test(te),Be=/sailfish/i.test(te),De=/tizen/i.test(te),Se=/(web|hpw)(o|0)s/i.test(te),Ee=/windows phone/i.test(te),Ie=/SamsungBrowser/i.test(te),Me=!Ee&&/windows/i.test(te),Le=!he&&!ke&&/macintosh/i.test(te),Ae=!ve&&!Be&&!De&&!Se&&/linux/i.test(te),Pe=ae(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Ue=se(/version\/(\d+(\.\d+)?)/i),He=/tablet/i.test(te)&&!/tablet pc/i.test(te),Je=!He&&/[^-]mobi/i.test(te),st=/xbox/i.test(te),_e;/opera/i.test(te)?_e={name:"Opera",opera:x,version:Ue||se(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(te)?_e={name:"Opera",opera:x,version:se(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Ue}:/SamsungBrowser/i.test(te)?_e={name:"Samsung Internet for Android",samsungBrowser:x,version:Ue||se(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(te)?_e={name:"NAVER Whale browser",whale:x,version:se(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(te)?_e={name:"MZ Browser",mzbrowser:x,version:se(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(te)?_e={name:"Opera Coast",coast:x,version:Ue||se(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(te)?_e={name:"Focus",focus:x,version:se(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(te)?_e={name:"Yandex Browser",yandexbrowser:x,version:Ue||se(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(te)?_e={name:"UC Browser",ucbrowser:x,version:se(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(te)?_e={name:"Maxthon",maxthon:x,version:se(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(te)?_e={name:"Epiphany",epiphany:x,version:se(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(te)?_e={name:"Puffin",puffin:x,version:se(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(te)?_e={name:"Sleipnir",sleipnir:x,version:se(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(te)?_e={name:"K-Meleon",kMeleon:x,version:se(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Ee?(_e={name:"Windows Phone",osname:"Windows Phone",windowsphone:x},Pe?(_e.msedge=x,_e.version=Pe):(_e.msie=x,_e.version=se(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(te)?_e={name:"Internet Explorer",msie:x,version:se(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:je?_e={name:"Chrome",osname:"Chrome OS",chromeos:x,chromeBook:x,chrome:x,version:se(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(te)?_e={name:"Microsoft Edge",msedge:x,version:Pe}:/vivaldi/i.test(te)?_e={name:"Vivaldi",vivaldi:x,version:se(/vivaldi\/(\d+(\.\d+)?)/i)||Ue}:Be?_e={name:"Sailfish",osname:"Sailfish OS",sailfish:x,version:se(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(te)?_e={name:"SeaMonkey",seamonkey:x,version:se(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(te)?(_e={name:"Firefox",firefox:x,version:se(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(te)&&(_e.firefoxos=x,_e.osname="Firefox OS")):ke?_e={name:"Amazon Silk",silk:x,version:se(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(te)?_e={name:"PhantomJS",phantom:x,version:se(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(te)?_e={name:"SlimerJS",slimer:x,version:se(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(te)||/rim\stablet/i.test(te)?_e={name:"BlackBerry",osname:"BlackBerry OS",blackberry:x,version:Ue||se(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:Se?(_e={name:"WebOS",osname:"WebOS",webos:x,version:Ue||se(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(te)&&(_e.touchpad=x)):/bada/i.test(te)?_e={name:"Bada",osname:"Bada",bada:x,version:se(/dolfin\/(\d+(\.\d+)?)/i)}:De?_e={name:"Tizen",osname:"Tizen",tizen:x,version:se(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Ue}:/qupzilla/i.test(te)?_e={name:"QupZilla",qupzilla:x,version:se(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Ue}:/chromium/i.test(te)?_e={name:"Chromium",chromium:x,version:se(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Ue}:/chrome|crios|crmo/i.test(te)?_e={name:"Chrome",chrome:x,version:se(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:ve?_e={name:"Android",version:Ue}:/safari|applewebkit/i.test(te)?(_e={name:"Safari",safari:x},Ue&&(_e.version=Ue)):he?(_e={name:he=="iphone"?"iPhone":he=="ipad"?"iPad":"iPod"},Ue&&(_e.version=Ue)):/googlebot/i.test(te)?_e={name:"Googlebot",googlebot:x,version:se(/googlebot\/(\d+(\.\d+))/i)||Ue}:_e={name:se(/^(.*)\/(.*) /),version:ae(/^(.*)\/(.*) /)},!_e.msedge&&/(apple)?webkit/i.test(te)?(/(apple)?webkit\/537\.36/i.test(te)?(_e.name=_e.name||"Blink",_e.blink=x):(_e.name=_e.name||"Webkit",_e.webkit=x),!_e.version&&Ue&&(_e.version=Ue)):!_e.opera&&/gecko\//i.test(te)&&(_e.name=_e.name||"Gecko",_e.gecko=x,_e.version=_e.version||se(/gecko\/(\d+(\.\d+)?)/i)),!_e.windowsphone&&(ve||_e.silk)?(_e.android=x,_e.osname="Android"):!_e.windowsphone&&he?(_e[he]=x,_e.ios=x,_e.osname="iOS"):Le?(_e.mac=x,_e.osname="macOS"):st?(_e.xbox=x,_e.osname="Xbox"):Me?(_e.windows=x,_e.osname="Windows"):Ae&&(_e.linux=x,_e.osname="Linux");function Ke(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 nt="";_e.windows?nt=Ke(se(/Windows ((NT|XP)( \d\d?.\d)?)/i)):_e.windowsphone?nt=se(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):_e.mac?(nt=se(/Mac OS X (\d+([_\.\s]\d+)*)/i),nt=nt.replace(/[_\s]/g,".")):he?(nt=se(/os (\d+([_\s]\d+)*) like mac os x/i),nt=nt.replace(/[_\s]/g,".")):ve?nt=se(/android[ \/-](\d+(\.\d+)*)/i):_e.webos?nt=se(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):_e.blackberry?nt=se(/rim\stablet\sos\s(\d+(\.\d+)*)/i):_e.bada?nt=se(/bada\/(\d+(\.\d+)*)/i):_e.tizen&&(nt=se(/tizen[\/\s](\d+(\.\d+)*)/i)),nt&&(_e.osversion=nt);var rt=!_e.windows&&nt.split(".")[0];return He||be||he=="ipad"||ve&&(rt==3||rt>=4&&!Je)||_e.silk?_e.tablet=x:(Je||he=="iphone"||he=="ipod"||ve||pe||_e.blackberry||_e.webos||_e.bada)&&(_e.mobile=x),_e.msedge||_e.msie&&_e.version>=10||_e.yandexbrowser&&_e.version>=15||_e.vivaldi&&_e.version>=1||_e.chrome&&_e.version>=20||_e.samsungBrowser&&_e.version>=4||_e.whale&&ue([_e.version,"1.0"])===1||_e.mzbrowser&&ue([_e.version,"6.0"])===1||_e.focus&&ue([_e.version,"1.0"])===1||_e.firefox&&_e.version>=20||_e.safari&&_e.version>=6||_e.opera&&_e.version>=10||_e.ios&&_e.osversion&&_e.osversion.split(".")[0]>=6||_e.blackberry&&_e.version>=10.1||_e.chromium&&_e.version>=20?_e.a=x:_e.msie&&_e.version<10||_e.chrome&&_e.version<20||_e.firefox&&_e.version<20||_e.safari&&_e.version<6||_e.opera&&_e.version<10||_e.ios&&_e.osversion&&_e.osversion.split(".")[0]<6||_e.chromium&&_e.version<20?_e.c=x:_e.x=x,_e}var ie=z(typeof navigator!="undefined"&&navigator.userAgent||"");ie.test=function(te){for(var se=0;se<te.length;++se){var ae=te[se];if(typeof ae=="string"&&ae in ie)return!0}return!1};function oe(te){return te.split(".").length}function ee(te,se){var ae=[],he;if(Array.prototype.map)return Array.prototype.map.call(te,se);for(he=0;he<te.length;he++)ae.push(se(te[he]));return ae}function ue(te){for(var se=Math.max(oe(te[0]),oe(te[1])),ae=ee(te,function(he){var me=se-oe(he);return he=he+new Array(me+1).join(".0"),ee(he.split("."),function(ve){return new Array(20-ve.length).join("0")+ve}).reverse()});--se>=0;){if(ae[0][se]>ae[1][se])return 1;if(ae[0][se]===ae[1][se]){if(se===0)return 0}else return-1}}function E(te,se,ae){var he=ie;typeof se=="string"&&(ae=se,se=void 0),se===void 0&&(se=!1),ae&&(he=z(ae));var me=""+he.version;for(var ve in te)if(te.hasOwnProperty(ve)&&he[ve]){if(typeof te[ve]!="string")throw new Error("Browser version in the minVersion map should be a string: "+ve+": "+String(te));return ue([me,te[ve]])<0}return se}function re(te,se,ae){return!E(te,se,ae)}return ie.isUnsupportedBrowser=E,ie.compareVersions=ue,ie.check=re,ie._detect=z,ie.detect=z,ie})},{}],89:[function(a,Te,ge){},{}],90:[function(a,Te,ge){(function(x){(function(){"use strict";var z=a("base64-js"),ie=a("ieee754");ge.Buffer=E,ge.SlowBuffer=je,ge.INSPECT_MAX_BYTES=50;var oe=2147483647;ge.kMaxLength=oe,E.TYPED_ARRAY_SUPPORT=ee(),!E.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 ye=new Uint8Array(1);return ye.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ye.foo()===42}catch(Oe){return!1}}Object.defineProperty(E.prototype,"parent",{enumerable:!0,get:function(){if(E.isBuffer(this))return this.buffer}}),Object.defineProperty(E.prototype,"offset",{enumerable:!0,get:function(){if(E.isBuffer(this))return this.byteOffset}});function ue(ye){if(ye>oe)throw new RangeError('The value "'+ye+'" is invalid for option "size"');var Oe=new Uint8Array(ye);return Oe.__proto__=E.prototype,Oe}function E(ye,Oe,$e){if(typeof ye=="number"){if(typeof Oe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ae(ye)}return re(ye,Oe,$e)}typeof Symbol!="undefined"&&Symbol.species!=null&&E[Symbol.species]===E&&Object.defineProperty(E,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),E.poolSize=8192;function re(ye,Oe,$e){if(typeof ye=="string")return he(ye,Oe);if(ArrayBuffer.isView(ye))return me(ye);if(ye==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ye);if(We(ye,ArrayBuffer)||ye&&We(ye.buffer,ArrayBuffer))return ve(ye,Oe,$e);if(typeof ye=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Ze=ye.valueOf&&ye.valueOf();if(Ze!=null&&Ze!==ye)return E.from(Ze,Oe,$e);var Xe=pe(ye);if(Xe)return Xe;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ye[Symbol.toPrimitive]=="function")return E.from(ye[Symbol.toPrimitive]("string"),Oe,$e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ye)}E.from=function(ye,Oe,$e){return re(ye,Oe,$e)},E.prototype.__proto__=Uint8Array.prototype,E.__proto__=Uint8Array;function te(ye){if(typeof ye!="number")throw new TypeError('"size" argument must be of type number');if(ye<0)throw new RangeError('The value "'+ye+'" is invalid for option "size"')}function se(ye,Oe,$e){return te(ye),ye<=0?ue(ye):Oe!==void 0?typeof $e=="string"?ue(ye).fill(Oe,$e):ue(ye).fill(Oe):ue(ye)}E.alloc=function(ye,Oe,$e){return se(ye,Oe,$e)};function ae(ye){return te(ye),ue(ye<0?0:be(ye)|0)}E.allocUnsafe=function(ye){return ae(ye)},E.allocUnsafeSlow=function(ye){return ae(ye)};function he(ye,Oe){if((typeof Oe!="string"||Oe==="")&&(Oe="utf8"),!E.isEncoding(Oe))throw new TypeError("Unknown encoding: "+Oe);var $e=ke(ye,Oe)|0,Ze=ue($e),Xe=Ze.write(ye,Oe);return Xe!==$e&&(Ze=Ze.slice(0,Xe)),Ze}function me(ye){for(var Oe=ye.length<0?0:be(ye.length)|0,$e=ue(Oe),Ze=0;Ze<Oe;Ze+=1)$e[Ze]=ye[Ze]&255;return $e}function ve(ye,Oe,$e){if(Oe<0||ye.byteLength<Oe)throw new RangeError('"offset" is outside of buffer bounds');if(ye.byteLength<Oe+($e||0))throw new RangeError('"length" is outside of buffer bounds');var Ze;return Oe===void 0&&$e===void 0?Ze=new Uint8Array(ye):$e===void 0?Ze=new Uint8Array(ye,Oe):Ze=new Uint8Array(ye,Oe,$e),Ze.__proto__=E.prototype,Ze}function pe(ye){if(E.isBuffer(ye)){var Oe=be(ye.length)|0,$e=ue(Oe);return $e.length===0||ye.copy($e,0,0,Oe),$e}if(ye.length!==void 0)return typeof ye.length!="number"||we(ye.length)?ue(0):me(ye);if(ye.type==="Buffer"&&Array.isArray(ye.data))return me(ye.data)}function be(ye){if(ye>=oe)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+oe.toString(16)+" bytes");return ye|0}function je(ye){return+ye!=ye&&(ye=0),E.alloc(+ye)}E.isBuffer=function(Oe){return Oe!=null&&Oe._isBuffer===!0&&Oe!==E.prototype},E.compare=function(Oe,$e){if(We(Oe,Uint8Array)&&(Oe=E.from(Oe,Oe.offset,Oe.byteLength)),We($e,Uint8Array)&&($e=E.from($e,$e.offset,$e.byteLength)),!E.isBuffer(Oe)||!E.isBuffer($e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Oe===$e)return 0;for(var Ze=Oe.length,Xe=$e.length,at=0,lt=Math.min(Ze,Xe);at<lt;++at)if(Oe[at]!==$e[at]){Ze=Oe[at],Xe=$e[at];break}return Ze<Xe?-1:Xe<Ze?1:0},E.isEncoding=function(Oe){switch(String(Oe).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}},E.concat=function(Oe,$e){if(!Array.isArray(Oe))throw new TypeError('"list" argument must be an Array of Buffers');if(Oe.length===0)return E.alloc(0);var Ze;if($e===void 0)for($e=0,Ze=0;Ze<Oe.length;++Ze)$e+=Oe[Ze].length;var Xe=E.allocUnsafe($e),at=0;for(Ze=0;Ze<Oe.length;++Ze){var lt=Oe[Ze];if(We(lt,Uint8Array)&&(lt=E.from(lt)),!E.isBuffer(lt))throw new TypeError('"list" argument must be an Array of Buffers');lt.copy(Xe,at),at+=lt.length}return Xe};function ke(ye,Oe){if(E.isBuffer(ye))return ye.length;if(ArrayBuffer.isView(ye)||We(ye,ArrayBuffer))return ye.byteLength;if(typeof ye!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ye);var $e=ye.length,Ze=arguments.length>2&&arguments[2]===!0;if(!Ze&&$e===0)return 0;for(var Xe=!1;;)switch(Oe){case"ascii":case"latin1":case"binary":return $e;case"utf8":case"utf-8":return Fe(ye).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $e*2;case"hex":return $e>>>1;case"base64":return fe(ye).length;default:if(Xe)return Ze?-1:Fe(ye).length;Oe=(""+Oe).toLowerCase(),Xe=!0}}E.byteLength=ke;function Be(ye,Oe,$e){var Ze=!1;if((Oe===void 0||Oe<0)&&(Oe=0),Oe>this.length||(($e===void 0||$e>this.length)&&($e=this.length),$e<=0)||($e>>>=0,Oe>>>=0,$e<=Oe))return"";for(ye||(ye="utf8");;)switch(ye){case"hex":return rt(this,Oe,$e);case"utf8":case"utf-8":return Je(this,Oe,$e);case"ascii":return Ke(this,Oe,$e);case"latin1":case"binary":return nt(this,Oe,$e);case"base64":return He(this,Oe,$e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,Oe,$e);default:if(Ze)throw new TypeError("Unknown encoding: "+ye);ye=(ye+"").toLowerCase(),Ze=!0}}E.prototype._isBuffer=!0;function De(ye,Oe,$e){var Ze=ye[Oe];ye[Oe]=ye[$e],ye[$e]=Ze}E.prototype.swap16=function(){var Oe=this.length;if(Oe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $e=0;$e<Oe;$e+=2)De(this,$e,$e+1);return this},E.prototype.swap32=function(){var Oe=this.length;if(Oe%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var $e=0;$e<Oe;$e+=4)De(this,$e,$e+3),De(this,$e+1,$e+2);return this},E.prototype.swap64=function(){var Oe=this.length;if(Oe%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var $e=0;$e<Oe;$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},E.prototype.toString=function(){var Oe=this.length;return Oe===0?"":arguments.length===0?Je(this,0,Oe):Be.apply(this,arguments)},E.prototype.toLocaleString=E.prototype.toString,E.prototype.equals=function(Oe){if(!E.isBuffer(Oe))throw new TypeError("Argument must be a Buffer");return this===Oe?!0:E.compare(this,Oe)===0},E.prototype.inspect=function(){var Oe="",$e=ge.INSPECT_MAX_BYTES;return Oe=this.toString("hex",0,$e).replace(/(.{2})/g,"$1 ").trim(),this.length>$e&&(Oe+=" ... "),"<Buffer "+Oe+">"},E.prototype.compare=function(Oe,$e,Ze,Xe,at){if(We(Oe,Uint8Array)&&(Oe=E.from(Oe,Oe.offset,Oe.byteLength)),!E.isBuffer(Oe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Oe);if($e===void 0&&($e=0),Ze===void 0&&(Ze=Oe?Oe.length:0),Xe===void 0&&(Xe=0),at===void 0&&(at=this.length),$e<0||Ze>Oe.length||Xe<0||at>this.length)throw new RangeError("out of range index");if(Xe>=at&&$e>=Ze)return 0;if(Xe>=at)return-1;if($e>=Ze)return 1;if($e>>>=0,Ze>>>=0,Xe>>>=0,at>>>=0,this===Oe)return 0;for(var lt=at-Xe,mt=Ze-$e,ut=Math.min(lt,mt),ct=this.slice(Xe,at),Pt=Oe.slice($e,Ze),wt=0;wt<ut;++wt)if(ct[wt]!==Pt[wt]){lt=ct[wt],mt=Pt[wt];break}return lt<mt?-1:mt<lt?1:0};function Se(ye,Oe,$e,Ze,Xe){if(ye.length===0)return-1;if(typeof $e=="string"?(Ze=$e,$e=0):$e>2147483647?$e=2147483647:$e<-2147483648&&($e=-2147483648),$e=+$e,we($e)&&($e=Xe?0:ye.length-1),$e<0&&($e=ye.length+$e),$e>=ye.length){if(Xe)return-1;$e=ye.length-1}else if($e<0)if(Xe)$e=0;else return-1;if(typeof Oe=="string"&&(Oe=E.from(Oe,Ze)),E.isBuffer(Oe))return Oe.length===0?-1:Ee(ye,Oe,$e,Ze,Xe);if(typeof Oe=="number")return Oe=Oe&255,typeof Uint8Array.prototype.indexOf=="function"?Xe?Uint8Array.prototype.indexOf.call(ye,Oe,$e):Uint8Array.prototype.lastIndexOf.call(ye,Oe,$e):Ee(ye,[Oe],$e,Ze,Xe);throw new TypeError("val must be string, number or Buffer")}function Ee(ye,Oe,$e,Ze,Xe){var at=1,lt=ye.length,mt=Oe.length;if(Ze!==void 0&&(Ze=String(Ze).toLowerCase(),Ze==="ucs2"||Ze==="ucs-2"||Ze==="utf16le"||Ze==="utf-16le")){if(ye.length<2||Oe.length<2)return-1;at=2,lt/=2,mt/=2,$e/=2}function ut(At,pt){return at===1?At[pt]:At.readUInt16BE(pt*at)}var ct;if(Xe){var Pt=-1;for(ct=$e;ct<lt;ct++)if(ut(ye,ct)===ut(Oe,Pt===-1?0:ct-Pt)){if(Pt===-1&&(Pt=ct),ct-Pt+1===mt)return Pt*at}else Pt!==-1&&(ct-=ct-Pt),Pt=-1}else for($e+mt>lt&&($e=lt-mt),ct=$e;ct>=0;ct--){for(var wt=!0,Bt=0;Bt<mt;Bt++)if(ut(ye,ct+Bt)!==ut(Oe,Bt)){wt=!1;break}if(wt)return ct}return-1}E.prototype.includes=function(Oe,$e,Ze){return this.indexOf(Oe,$e,Ze)!==-1},E.prototype.indexOf=function(Oe,$e,Ze){return Se(this,Oe,$e,Ze,!0)},E.prototype.lastIndexOf=function(Oe,$e,Ze){return Se(this,Oe,$e,Ze,!1)};function Ie(ye,Oe,$e,Ze){$e=Number($e)||0;var Xe=ye.length-$e;Ze?(Ze=Number(Ze),Ze>Xe&&(Ze=Xe)):Ze=Xe;var at=Oe.length;Ze>at/2&&(Ze=at/2);for(var lt=0;lt<Ze;++lt){var mt=parseInt(Oe.substr(lt*2,2),16);if(we(mt))return lt;ye[$e+lt]=mt}return lt}function Me(ye,Oe,$e,Ze){return Ne(Fe(Oe,ye.length-$e),ye,$e,Ze)}function Le(ye,Oe,$e,Ze){return Ne(Re(Oe),ye,$e,Ze)}function Ae(ye,Oe,$e,Ze){return Le(ye,Oe,$e,Ze)}function Pe(ye,Oe,$e,Ze){return Ne(fe(Oe),ye,$e,Ze)}function Ue(ye,Oe,$e,Ze){return Ne(ne(Oe,ye.length-$e),ye,$e,Ze)}E.prototype.write=function(Oe,$e,Ze,Xe){if($e===void 0)Xe="utf8",Ze=this.length,$e=0;else if(Ze===void 0&&typeof $e=="string")Xe=$e,Ze=this.length,$e=0;else if(isFinite($e))$e=$e>>>0,isFinite(Ze)?(Ze=Ze>>>0,Xe===void 0&&(Xe="utf8")):(Xe=Ze,Ze=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var at=this.length-$e;if((Ze===void 0||Ze>at)&&(Ze=at),Oe.length>0&&(Ze<0||$e<0)||$e>this.length)throw new RangeError("Attempt to write outside buffer bounds");Xe||(Xe="utf8");for(var lt=!1;;)switch(Xe){case"hex":return Ie(this,Oe,$e,Ze);case"utf8":case"utf-8":return Me(this,Oe,$e,Ze);case"ascii":return Le(this,Oe,$e,Ze);case"latin1":case"binary":return Ae(this,Oe,$e,Ze);case"base64":return Pe(this,Oe,$e,Ze);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ue(this,Oe,$e,Ze);default:if(lt)throw new TypeError("Unknown encoding: "+Xe);Xe=(""+Xe).toLowerCase(),lt=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function He(ye,Oe,$e){return Oe===0&&$e===ye.length?z.fromByteArray(ye):z.fromByteArray(ye.slice(Oe,$e))}function Je(ye,Oe,$e){$e=Math.min(ye.length,$e);for(var Ze=[],Xe=Oe;Xe<$e;){var at=ye[Xe],lt=null,mt=at>239?4:at>223?3:at>191?2:1;if(Xe+mt<=$e){var ut,ct,Pt,wt;switch(mt){case 1:at<128&&(lt=at);break;case 2:ut=ye[Xe+1],(ut&192)===128&&(wt=(at&31)<<6|ut&63,wt>127&&(lt=wt));break;case 3:ut=ye[Xe+1],ct=ye[Xe+2],(ut&192)===128&&(ct&192)===128&&(wt=(at&15)<<12|(ut&63)<<6|ct&63,wt>2047&&(wt<55296||wt>57343)&&(lt=wt));break;case 4:ut=ye[Xe+1],ct=ye[Xe+2],Pt=ye[Xe+3],(ut&192)===128&&(ct&192)===128&&(Pt&192)===128&&(wt=(at&15)<<18|(ut&63)<<12|(ct&63)<<6|Pt&63,wt>65535&&wt<1114112&&(lt=wt))}}lt===null?(lt=65533,mt=1):lt>65535&&(lt-=65536,Ze.push(lt>>>10&1023|55296),lt=56320|lt&1023),Ze.push(lt),Xe+=mt}return _e(Ze)}var st=4096;function _e(ye){var Oe=ye.length;if(Oe<=st)return String.fromCharCode.apply(String,ye);for(var $e="",Ze=0;Ze<Oe;)$e+=String.fromCharCode.apply(String,ye.slice(Ze,Ze+=st));return $e}function Ke(ye,Oe,$e){var Ze="";$e=Math.min(ye.length,$e);for(var Xe=Oe;Xe<$e;++Xe)Ze+=String.fromCharCode(ye[Xe]&127);return Ze}function nt(ye,Oe,$e){var Ze="";$e=Math.min(ye.length,$e);for(var Xe=Oe;Xe<$e;++Xe)Ze+=String.fromCharCode(ye[Xe]);return Ze}function rt(ye,Oe,$e){var Ze=ye.length;(!Oe||Oe<0)&&(Oe=0),(!$e||$e<0||$e>Ze)&&($e=Ze);for(var Xe="",at=Oe;at<$e;++at)Xe+=Qe(ye[at]);return Xe}function et(ye,Oe,$e){for(var Ze=ye.slice(Oe,$e),Xe="",at=0;at<Ze.length;at+=2)Xe+=String.fromCharCode(Ze[at]+Ze[at+1]*256);return Xe}E.prototype.slice=function(Oe,$e){var Ze=this.length;Oe=~~Oe,$e=$e===void 0?Ze:~~$e,Oe<0?(Oe+=Ze,Oe<0&&(Oe=0)):Oe>Ze&&(Oe=Ze),$e<0?($e+=Ze,$e<0&&($e=0)):$e>Ze&&($e=Ze),$e<Oe&&($e=Oe);var Xe=this.subarray(Oe,$e);return Xe.__proto__=E.prototype,Xe};function Ve(ye,Oe,$e){if(ye%1!==0||ye<0)throw new RangeError("offset is not uint");if(ye+Oe>$e)throw new RangeError("Trying to access beyond buffer length")}E.prototype.readUIntLE=function(Oe,$e,Ze){Oe=Oe>>>0,$e=$e>>>0,Ze||Ve(Oe,$e,this.length);for(var Xe=this[Oe],at=1,lt=0;++lt<$e&&(at*=256);)Xe+=this[Oe+lt]*at;return Xe},E.prototype.readUIntBE=function(Oe,$e,Ze){Oe=Oe>>>0,$e=$e>>>0,Ze||Ve(Oe,$e,this.length);for(var Xe=this[Oe+--$e],at=1;$e>0&&(at*=256);)Xe+=this[Oe+--$e]*at;return Xe},E.prototype.readUInt8=function(Oe,$e){return Oe=Oe>>>0,$e||Ve(Oe,1,this.length),this[Oe]},E.prototype.readUInt16LE=function(Oe,$e){return Oe=Oe>>>0,$e||Ve(Oe,2,this.length),this[Oe]|this[Oe+1]<<8},E.prototype.readUInt16BE=function(Oe,$e){return Oe=Oe>>>0,$e||Ve(Oe,2,this.length),this[Oe]<<8|this[Oe+1]},E.prototype.readUInt32LE=function(Oe,$e){return Oe=Oe>>>0,$e||Ve(Oe,4,this.length),(this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16)+this[Oe+3]*16777216},E.prototype.readUInt32BE=function(Oe,$e){return Oe=Oe>>>0,$e||Ve(Oe,4,this.length),this[Oe]*16777216+(this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3])},E.prototype.readIntLE=function(Oe,$e,Ze){Oe=Oe>>>0,$e=$e>>>0,Ze||Ve(Oe,$e,this.length);for(var Xe=this[Oe],at=1,lt=0;++lt<$e&&(at*=256);)Xe+=this[Oe+lt]*at;return at*=128,Xe>=at&&(Xe-=Math.pow(2,8*$e)),Xe},E.prototype.readIntBE=function(Oe,$e,Ze){Oe=Oe>>>0,$e=$e>>>0,Ze||Ve(Oe,$e,this.length);for(var Xe=$e,at=1,lt=this[Oe+--Xe];Xe>0&&(at*=256);)lt+=this[Oe+--Xe]*at;return at*=128,lt>=at&&(lt-=Math.pow(2,8*$e)),lt},E.prototype.readInt8=function(Oe,$e){return Oe=Oe>>>0,$e||Ve(Oe,1,this.length),this[Oe]&128?(255-this[Oe]+1)*-1:this[Oe]},E.prototype.readInt16LE=function(Oe,$e){Oe=Oe>>>0,$e||Ve(Oe,2,this.length);var Ze=this[Oe]|this[Oe+1]<<8;return Ze&32768?Ze|4294901760:Ze},E.prototype.readInt16BE=function(Oe,$e){Oe=Oe>>>0,$e||Ve(Oe,2,this.length);var Ze=this[Oe+1]|this[Oe]<<8;return Ze&32768?Ze|4294901760:Ze},E.prototype.readInt32LE=function(Oe,$e){return Oe=Oe>>>0,$e||Ve(Oe,4,this.length),this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16|this[Oe+3]<<24},E.prototype.readInt32BE=function(Oe,$e){return Oe=Oe>>>0,$e||Ve(Oe,4,this.length),this[Oe]<<24|this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3]},E.prototype.readFloatLE=function(Oe,$e){return Oe=Oe>>>0,$e||Ve(Oe,4,this.length),ie.read(this,Oe,!0,23,4)},E.prototype.readFloatBE=function(Oe,$e){return Oe=Oe>>>0,$e||Ve(Oe,4,this.length),ie.read(this,Oe,!1,23,4)},E.prototype.readDoubleLE=function(Oe,$e){return Oe=Oe>>>0,$e||Ve(Oe,8,this.length),ie.read(this,Oe,!0,52,8)},E.prototype.readDoubleBE=function(Oe,$e){return Oe=Oe>>>0,$e||Ve(Oe,8,this.length),ie.read(this,Oe,!1,52,8)};function Ye(ye,Oe,$e,Ze,Xe,at){if(!E.isBuffer(ye))throw new TypeError('"buffer" argument must be a Buffer instance');if(Oe>Xe||Oe<at)throw new RangeError('"value" argument is out of bounds');if($e+Ze>ye.length)throw new RangeError("Index out of range")}E.prototype.writeUIntLE=function(Oe,$e,Ze,Xe){if(Oe=+Oe,$e=$e>>>0,Ze=Ze>>>0,!Xe){var at=Math.pow(2,8*Ze)-1;Ye(this,Oe,$e,Ze,at,0)}var lt=1,mt=0;for(this[$e]=Oe&255;++mt<Ze&&(lt*=256);)this[$e+mt]=Oe/lt&255;return $e+Ze},E.prototype.writeUIntBE=function(Oe,$e,Ze,Xe){if(Oe=+Oe,$e=$e>>>0,Ze=Ze>>>0,!Xe){var at=Math.pow(2,8*Ze)-1;Ye(this,Oe,$e,Ze,at,0)}var lt=Ze-1,mt=1;for(this[$e+lt]=Oe&255;--lt>=0&&(mt*=256);)this[$e+lt]=Oe/mt&255;return $e+Ze},E.prototype.writeUInt8=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Ye(this,Oe,$e,1,255,0),this[$e]=Oe&255,$e+1},E.prototype.writeUInt16LE=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Ye(this,Oe,$e,2,65535,0),this[$e]=Oe&255,this[$e+1]=Oe>>>8,$e+2},E.prototype.writeUInt16BE=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Ye(this,Oe,$e,2,65535,0),this[$e]=Oe>>>8,this[$e+1]=Oe&255,$e+2},E.prototype.writeUInt32LE=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Ye(this,Oe,$e,4,4294967295,0),this[$e+3]=Oe>>>24,this[$e+2]=Oe>>>16,this[$e+1]=Oe>>>8,this[$e]=Oe&255,$e+4},E.prototype.writeUInt32BE=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Ye(this,Oe,$e,4,4294967295,0),this[$e]=Oe>>>24,this[$e+1]=Oe>>>16,this[$e+2]=Oe>>>8,this[$e+3]=Oe&255,$e+4},E.prototype.writeIntLE=function(Oe,$e,Ze,Xe){if(Oe=+Oe,$e=$e>>>0,!Xe){var at=Math.pow(2,8*Ze-1);Ye(this,Oe,$e,Ze,at-1,-at)}var lt=0,mt=1,ut=0;for(this[$e]=Oe&255;++lt<Ze&&(mt*=256);)Oe<0&&ut===0&&this[$e+lt-1]!==0&&(ut=1),this[$e+lt]=(Oe/mt>>0)-ut&255;return $e+Ze},E.prototype.writeIntBE=function(Oe,$e,Ze,Xe){if(Oe=+Oe,$e=$e>>>0,!Xe){var at=Math.pow(2,8*Ze-1);Ye(this,Oe,$e,Ze,at-1,-at)}var lt=Ze-1,mt=1,ut=0;for(this[$e+lt]=Oe&255;--lt>=0&&(mt*=256);)Oe<0&&ut===0&&this[$e+lt+1]!==0&&(ut=1),this[$e+lt]=(Oe/mt>>0)-ut&255;return $e+Ze},E.prototype.writeInt8=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Ye(this,Oe,$e,1,127,-128),Oe<0&&(Oe=255+Oe+1),this[$e]=Oe&255,$e+1},E.prototype.writeInt16LE=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Ye(this,Oe,$e,2,32767,-32768),this[$e]=Oe&255,this[$e+1]=Oe>>>8,$e+2},E.prototype.writeInt16BE=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Ye(this,Oe,$e,2,32767,-32768),this[$e]=Oe>>>8,this[$e+1]=Oe&255,$e+2},E.prototype.writeInt32LE=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Ye(this,Oe,$e,4,2147483647,-2147483648),this[$e]=Oe&255,this[$e+1]=Oe>>>8,this[$e+2]=Oe>>>16,this[$e+3]=Oe>>>24,$e+4},E.prototype.writeInt32BE=function(Oe,$e,Ze){return Oe=+Oe,$e=$e>>>0,Ze||Ye(this,Oe,$e,4,2147483647,-2147483648),Oe<0&&(Oe=4294967295+Oe+1),this[$e]=Oe>>>24,this[$e+1]=Oe>>>16,this[$e+2]=Oe>>>8,this[$e+3]=Oe&255,$e+4};function Ge(ye,Oe,$e,Ze,Xe,at){if($e+Ze>ye.length)throw new RangeError("Index out of range");if($e<0)throw new RangeError("Index out of range")}function it(ye,Oe,$e,Ze,Xe){return Oe=+Oe,$e=$e>>>0,Xe||Ge(ye,Oe,$e,4,34028234663852886e22,-34028234663852886e22),ie.write(ye,Oe,$e,Ze,23,4),$e+4}E.prototype.writeFloatLE=function(Oe,$e,Ze){return it(this,Oe,$e,!0,Ze)},E.prototype.writeFloatBE=function(Oe,$e,Ze){return it(this,Oe,$e,!1,Ze)};function qe(ye,Oe,$e,Ze,Xe){return Oe=+Oe,$e=$e>>>0,Xe||Ge(ye,Oe,$e,8,17976931348623157e292,-17976931348623157e292),ie.write(ye,Oe,$e,Ze,52,8),$e+8}E.prototype.writeDoubleLE=function(Oe,$e,Ze){return qe(this,Oe,$e,!0,Ze)},E.prototype.writeDoubleBE=function(Oe,$e,Ze){return qe(this,Oe,$e,!1,Ze)},E.prototype.copy=function(Oe,$e,Ze,Xe){if(!E.isBuffer(Oe))throw new TypeError("argument should be a Buffer");if(Ze||(Ze=0),!Xe&&Xe!==0&&(Xe=this.length),$e>=Oe.length&&($e=Oe.length),$e||($e=0),Xe>0&&Xe<Ze&&(Xe=Ze),Xe===Ze||Oe.length===0||this.length===0)return 0;if($e<0)throw new RangeError("targetStart out of bounds");if(Ze<0||Ze>=this.length)throw new RangeError("Index out of range");if(Xe<0)throw new RangeError("sourceEnd out of bounds");Xe>this.length&&(Xe=this.length),Oe.length-$e<Xe-Ze&&(Xe=Oe.length-$e+Ze);var at=Xe-Ze;if(this===Oe&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin($e,Ze,Xe);else if(this===Oe&&Ze<$e&&$e<Xe)for(var lt=at-1;lt>=0;--lt)Oe[lt+$e]=this[lt+Ze];else Uint8Array.prototype.set.call(Oe,this.subarray(Ze,Xe),$e);return at},E.prototype.fill=function(Oe,$e,Ze,Xe){if(typeof Oe=="string"){if(typeof $e=="string"?(Xe=$e,$e=0,Ze=this.length):typeof Ze=="string"&&(Xe=Ze,Ze=this.length),Xe!==void 0&&typeof Xe!="string")throw new TypeError("encoding must be a string");if(typeof Xe=="string"&&!E.isEncoding(Xe))throw new TypeError("Unknown encoding: "+Xe);if(Oe.length===1){var at=Oe.charCodeAt(0);(Xe==="utf8"&&at<128||Xe==="latin1")&&(Oe=at)}}else typeof Oe=="number"&&(Oe=Oe&255);if($e<0||this.length<$e||this.length<Ze)throw new RangeError("Out of range index");if(Ze<=$e)return this;$e=$e>>>0,Ze=Ze===void 0?this.length:Ze>>>0,Oe||(Oe=0);var lt;if(typeof Oe=="number")for(lt=$e;lt<Ze;++lt)this[lt]=Oe;else{var mt=E.isBuffer(Oe)?Oe:E.from(Oe,Xe),ut=mt.length;if(ut===0)throw new TypeError('The value "'+Oe+'" is invalid for argument "value"');for(lt=0;lt<Ze-$e;++lt)this[lt+$e]=mt[lt%ut]}return this};var vt=/[^+/0-9A-Za-z-_]/g;function ot(ye){if(ye=ye.split("=")[0],ye=ye.trim().replace(vt,""),ye.length<2)return"";for(;ye.length%4!==0;)ye=ye+"=";return ye}function Qe(ye){return ye<16?"0"+ye.toString(16):ye.toString(16)}function Fe(ye,Oe){Oe=Oe||1/0;for(var $e,Ze=ye.length,Xe=null,at=[],lt=0;lt<Ze;++lt){if($e=ye.charCodeAt(lt),$e>55295&&$e<57344){if(!Xe){if($e>56319){(Oe-=3)>-1&&at.push(239,191,189);continue}else if(lt+1===Ze){(Oe-=3)>-1&&at.push(239,191,189);continue}Xe=$e;continue}if($e<56320){(Oe-=3)>-1&&at.push(239,191,189),Xe=$e;continue}$e=(Xe-55296<<10|$e-56320)+65536}else Xe&&(Oe-=3)>-1&&at.push(239,191,189);if(Xe=null,$e<128){if((Oe-=1)<0)break;at.push($e)}else if($e<2048){if((Oe-=2)<0)break;at.push($e>>6|192,$e&63|128)}else if($e<65536){if((Oe-=3)<0)break;at.push($e>>12|224,$e>>6&63|128,$e&63|128)}else if($e<1114112){if((Oe-=4)<0)break;at.push($e>>18|240,$e>>12&63|128,$e>>6&63|128,$e&63|128)}else throw new Error("Invalid code point")}return at}function Re(ye){for(var Oe=[],$e=0;$e<ye.length;++$e)Oe.push(ye.charCodeAt($e)&255);return Oe}function ne(ye,Oe){for(var $e,Ze,Xe,at=[],lt=0;lt<ye.length&&!((Oe-=2)<0);++lt)$e=ye.charCodeAt(lt),Ze=$e>>8,Xe=$e%256,at.push(Xe),at.push(Ze);return at}function fe(ye){return z.toByteArray(ot(ye))}function Ne(ye,Oe,$e,Ze){for(var Xe=0;Xe<Ze&&!(Xe+$e>=Oe.length||Xe>=ye.length);++Xe)Oe[Xe+$e]=ye[Xe];return Xe}function We(ye,Oe){return ye instanceof Oe||ye!=null&&ye.constructor!=null&&ye.constructor.name!=null&&ye.constructor.name===Oe.name}function we(ye){return ye!==ye}}).call(this)}).call(this,a("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(a,Te,ge){Te.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(a,Te,ge){"use strict";var x=a("get-intrinsic"),z=a("./"),ie=z(x("String.prototype.indexOf"));Te.exports=function(ee,ue){var E=x(ee,!!ue);return typeof E=="function"&&ie(ee,".prototype.")>-1?z(E):E}},{"./":93,"get-intrinsic":348}],93:[function(a,Te,ge){"use strict";var x=a("function-bind"),z=a("get-intrinsic"),ie=z("%Function.prototype.apply%"),oe=z("%Function.prototype.call%"),ee=z("%Reflect.apply%",!0)||x.call(oe,ie),ue=z("%Object.getOwnPropertyDescriptor%",!0),E=z("%Object.defineProperty%",!0),re=z("%Math.max%");if(E)try{E({},"a",{value:1})}catch(se){E=null}Te.exports=function(ae){var he=ee(x,oe,arguments);if(ue&&E){var me=ue(he,"length");me.configurable&&E(he,"length",{value:1+re(0,ae.length-(arguments.length-1))})}return he};var te=function(){return ee(x,ie,arguments)};E?E(Te.exports,"apply",{value:te}):Te.exports.apply=te},{"function-bind":347,"get-intrinsic":348}],94:[function(a,Te,ge){"use strict";var x=Array.prototype.slice;Te.exports=z;function z(oe,ee){if(!(this instanceof z))return new z(oe,ee);this.src=oe,this._withAccess=ee}z.prototype.withAccess=function(oe){return this._withAccess=oe!==!1,this},z.prototype.pick=function(oe){return Array.isArray(oe)||(oe=x.call(arguments)),oe.length&&(this.keys=oe),this},z.prototype.to=function(oe){if(oe=oe||{},!this.src)return oe;var ee=this.keys||Object.keys(this.src);if(!this._withAccess){for(var ue=0;ue<ee.length;ue++)E=ee[ue],oe[E]===void 0&&(oe[E]=this.src[E]);return oe}for(var ue=0;ue<ee.length;ue++){var E=ee[ue];if(ie(oe,E)){var re=this.src.__lookupGetter__(E),te=this.src.__lookupSetter__(E);re&&oe.__defineGetter__(E,re),te&&oe.__defineSetter__(E,te),!re&&!te&&(oe[E]=this.src[E])}}return oe},z.prototype.toCover=function(oe){for(var ee=this.keys||Object.keys(this.src),ue=0;ue<ee.length;ue++){var E=ee[ue];delete oe[E];var re=this.src.__lookupGetter__(E),te=this.src.__lookupSetter__(E);re&&oe.__defineGetter__(E,re),te&&oe.__defineSetter__(E,te),!re&&!te&&(oe[E]=this.src[E])}},z.prototype.override=z.prototype.toCover,z.prototype.and=function(oe){var ee={};return this.to(ee),this.src=oe,this.to(ee),this.src=ee,this};function ie(oe,ee){return oe[ee]===void 0&&oe.__lookupGetter__(ee)===void 0&&oe.__lookupSetter__(ee)===void 0}},{}],95:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/is-callable"),ie=a("../internals/try-to-string"),oe=x.TypeError;Te.exports=function(ee){if(z(ee))return ee;throw oe(ie(ee)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/is-constructor"),ie=a("../internals/try-to-string"),oe=x.TypeError;Te.exports=function(ee){if(z(ee))return ee;throw oe(ie(ee)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/is-callable"),ie=x.String,oe=x.TypeError;Te.exports=function(ee){if(typeof ee=="object"||z(ee))return ee;throw oe("Can't set "+ie(ee)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(a,Te,ge){var x=a("../internals/well-known-symbol"),z=a("../internals/object-create"),ie=a("../internals/object-define-property"),oe=x("unscopables"),ee=Array.prototype;ee[oe]==null&&ie.f(ee,oe,{configurable:!0,value:z(null)}),Te.exports=function(ue){ee[oe][ue]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(a,Te,ge){"use strict";var x=a("../internals/string-multibyte").charAt;Te.exports=function(z,ie,oe){return ie+(oe?x(z,ie).length:1)}},{"../internals/string-multibyte":239}],100:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/object-is-prototype-of"),ie=x.TypeError;Te.exports=function(oe,ee){if(z(ee,oe))return oe;throw ie("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/is-object"),ie=x.String,oe=x.TypeError;Te.exports=function(ee){if(z(ee))return ee;throw oe(ie(ee)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(a,Te,ge){Te.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(a,Te,ge){"use strict";var x=a("../internals/array-buffer-native"),z=a("../internals/descriptors"),ie=a("../internals/global"),oe=a("../internals/is-callable"),ee=a("../internals/is-object"),ue=a("../internals/has-own-property"),E=a("../internals/classof"),re=a("../internals/try-to-string"),te=a("../internals/create-non-enumerable-property"),se=a("../internals/redefine"),ae=a("../internals/object-define-property").f,he=a("../internals/object-is-prototype-of"),me=a("../internals/object-get-prototype-of"),ve=a("../internals/object-set-prototype-of"),pe=a("../internals/well-known-symbol"),be=a("../internals/uid"),je=ie.Int8Array,ke=je&&je.prototype,Be=ie.Uint8ClampedArray,De=Be&&Be.prototype,Se=je&&me(je),Ee=ke&&me(ke),Ie=Object.prototype,Me=ie.TypeError,Le=pe("toStringTag"),Ae=be("TYPED_ARRAY_TAG"),Pe=be("TYPED_ARRAY_CONSTRUCTOR"),Ue=x&&!!ve&&E(ie.opera)!=="Opera",He=!1,Je,st,_e,Ke={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},nt={BigInt64Array:8,BigUint64Array:8},rt=function(vt){if(!ee(vt))return!1;var ot=E(vt);return ot==="DataView"||ue(Ke,ot)||ue(nt,ot)},et=function(qe){if(!ee(qe))return!1;var vt=E(qe);return ue(Ke,vt)||ue(nt,vt)},Ve=function(qe){if(et(qe))return qe;throw Me("Target is not a typed array")},Ye=function(qe){if(oe(qe)&&(!ve||he(Se,qe)))return qe;throw Me(re(qe)+" is not a typed array constructor")},Ge=function(qe,vt,ot,Qe){if(z){if(ot)for(var Fe in Ke){var Re=ie[Fe];if(Re&&ue(Re.prototype,qe))try{delete Re.prototype[qe]}catch(ne){try{Re.prototype[qe]=vt}catch(fe){}}}(!Ee[qe]||ot)&&se(Ee,qe,ot?vt:Ue&&ke[qe]||vt,Qe)}},it=function(qe,vt,ot){var Qe,Fe;if(z){if(ve){if(ot){for(Qe in Ke)if(Fe=ie[Qe],Fe&&ue(Fe,qe))try{delete Fe[qe]}catch(Re){}}if(!Se[qe]||ot)try{return se(Se,qe,ot?vt:Ue&&Se[qe]||vt)}catch(Re){}else return}for(Qe in Ke)Fe=ie[Qe],Fe&&(!Fe[qe]||ot)&&se(Fe,qe,vt)}};for(Je in Ke)st=ie[Je],_e=st&&st.prototype,_e?te(_e,Pe,st):Ue=!1;for(Je in nt)st=ie[Je],_e=st&&st.prototype,_e&&te(_e,Pe,st);if((!Ue||!oe(Se)||Se===Function.prototype)&&(Se=function(){throw Me("Incorrect invocation")},Ue))for(Je in Ke)ie[Je]&&ve(ie[Je],Se);if((!Ue||!Ee||Ee===Ie)&&(Ee=Se.prototype,Ue))for(Je in Ke)ie[Je]&&ve(ie[Je].prototype,Ee);if(Ue&&me(De)!==Ee&&ve(De,Ee),z&&!ue(Ee,Le)){He=!0,ae(Ee,Le,{get:function(){return ee(this)?this[Ae]:void 0}});for(Je in Ke)ie[Je]&&te(ie[Je],Ae,Je)}Te.exports={NATIVE_ARRAY_BUFFER_VIEWS:Ue,TYPED_ARRAY_CONSTRUCTOR:Pe,TYPED_ARRAY_TAG:He&&Ae,aTypedArray:Ve,aTypedArrayConstructor:Ye,exportTypedArrayMethod:Ge,exportTypedArrayStaticMethod:it,isView:rt,isTypedArray:et,TypedArray:Se,TypedArrayPrototype:Ee}},{"../internals/array-buffer-native":102,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-define-property":198,"../internals/object-get-prototype-of":203,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/try-to-string":257,"../internals/uid":263,"../internals/well-known-symbol":268}],104:[function(a,Te,ge){"use strict";var x=a("../internals/global"),z=a("../internals/function-uncurry-this"),ie=a("../internals/descriptors"),oe=a("../internals/array-buffer-native"),ee=a("../internals/function-name"),ue=a("../internals/create-non-enumerable-property"),E=a("../internals/redefine-all"),re=a("../internals/fails"),te=a("../internals/an-instance"),se=a("../internals/to-integer-or-infinity"),ae=a("../internals/to-length"),he=a("../internals/to-index"),me=a("../internals/ieee754"),ve=a("../internals/object-get-prototype-of"),pe=a("../internals/object-set-prototype-of"),be=a("../internals/object-get-own-property-names").f,je=a("../internals/object-define-property").f,ke=a("../internals/array-fill"),Be=a("../internals/array-slice-simple"),De=a("../internals/set-to-string-tag"),Se=a("../internals/internal-state"),Ee=ee.PROPER,Ie=ee.CONFIGURABLE,Me=Se.get,Le=Se.set,Ae="ArrayBuffer",Pe="DataView",Ue="prototype",He="Wrong length",Je="Wrong index",st=x[Ae],_e=st,Ke=_e&&_e[Ue],nt=x[Pe],rt=nt&&nt[Ue],et=Object.prototype,Ve=x.Array,Ye=x.RangeError,Ge=z(ke),it=z([].reverse),qe=me.pack,vt=me.unpack,ot=function(lt){return[lt&255]},Qe=function(lt){return[lt&255,lt>>8&255]},Fe=function(lt){return[lt&255,lt>>8&255,lt>>16&255,lt>>24&255]},Re=function(lt){return lt[3]<<24|lt[2]<<16|lt[1]<<8|lt[0]},ne=function(lt){return qe(lt,23,4)},fe=function(lt){return qe(lt,52,8)},Ne=function(lt,mt){je(lt[Ue],mt,{get:function(){return Me(this)[mt]}})},We=function(lt,mt,ut,ct){var Pt=he(ut),wt=Me(lt);if(Pt+mt>wt.byteLength)throw Ye(Je);var Bt=Me(wt.buffer).bytes,At=Pt+wt.byteOffset,pt=Be(Bt,At,At+mt);return ct?pt:it(pt)},we=function(lt,mt,ut,ct,Pt,wt){var Bt=he(ut),At=Me(lt);if(Bt+mt>At.byteLength)throw Ye(Je);for(var pt=Me(At.buffer).bytes,Mt=Bt+At.byteOffset,kt=ct(+Pt),xt=0;xt<mt;xt++)pt[Mt+xt]=kt[wt?xt:mt-xt-1]};if(!oe)_e=function(mt){te(this,Ke);var ut=he(mt);Le(this,{bytes:Ge(Ve(ut),0),byteLength:ut}),ie||(this.byteLength=ut)},Ke=_e[Ue],nt=function(mt,ut,ct){te(this,rt),te(mt,Ke);var Pt=Me(mt).byteLength,wt=se(ut);if(wt<0||wt>Pt)throw Ye("Wrong offset");if(ct=ct===void 0?Pt-wt:ae(ct),wt+ct>Pt)throw Ye(He);Le(this,{buffer:mt,byteLength:ct,byteOffset:wt}),ie||(this.buffer=mt,this.byteLength=ct,this.byteOffset=wt)},rt=nt[Ue],ie&&(Ne(_e,"byteLength"),Ne(nt,"buffer"),Ne(nt,"byteLength"),Ne(nt,"byteOffset")),E(rt,{getInt8:function(mt){return We(this,1,mt)[0]<<24>>24},getUint8:function(mt){return We(this,1,mt)[0]},getInt16:function(mt){var ut=We(this,2,mt,arguments.length>1?arguments[1]:void 0);return(ut[1]<<8|ut[0])<<16>>16},getUint16:function(mt){var ut=We(this,2,mt,arguments.length>1?arguments[1]:void 0);return ut[1]<<8|ut[0]},getInt32:function(mt){return Re(We(this,4,mt,arguments.length>1?arguments[1]:void 0))},getUint32:function(mt){return Re(We(this,4,mt,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(mt){return vt(We(this,4,mt,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(mt){return vt(We(this,8,mt,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(mt,ut){we(this,1,mt,ot,ut)},setUint8:function(mt,ut){we(this,1,mt,ot,ut)},setInt16:function(mt,ut){we(this,2,mt,Qe,ut,arguments.length>2?arguments[2]:void 0)},setUint16:function(mt,ut){we(this,2,mt,Qe,ut,arguments.length>2?arguments[2]:void 0)},setInt32:function(mt,ut){we(this,4,mt,Fe,ut,arguments.length>2?arguments[2]:void 0)},setUint32:function(mt,ut){we(this,4,mt,Fe,ut,arguments.length>2?arguments[2]:void 0)},setFloat32:function(mt,ut){we(this,4,mt,ne,ut,arguments.length>2?arguments[2]:void 0)},setFloat64:function(mt,ut){we(this,8,mt,fe,ut,arguments.length>2?arguments[2]:void 0)}});else{var ye=Ee&&st.name!==Ae;if(!re(function(){st(1)})||!re(function(){new st(-1)})||re(function(){return new st,new st(1.5),new st(NaN),ye&&!Ie})){_e=function(mt){return te(this,Ke),new st(he(mt))},_e[Ue]=Ke;for(var Oe=be(st),$e=0,Ze;Oe.length>$e;)(Ze=Oe[$e++])in _e||ue(_e,Ze,st[Ze]);Ke.constructor=_e}else ye&&Ie&&ue(st,"name",Ae);pe&&ve(rt)!==et&&pe(rt,et);var Xe=new nt(new _e(2)),at=z(rt.setInt8);Xe.setInt8(0,2147483648),Xe.setInt8(1,2147483649),(Xe.getInt8(0)||!Xe.getInt8(1))&&E(rt,{setInt8:function(mt,ut){at(this,mt,ut<<24>>24)},setUint8:function(mt,ut){at(this,mt,ut<<24>>24)}},{unsafe:!0})}De(_e,Ae),De(nt,Pe),Te.exports={ArrayBuffer:_e,DataView:nt}},{"../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(a,Te,ge){"use strict";var x=a("../internals/to-object"),z=a("../internals/to-absolute-index"),ie=a("../internals/length-of-array-like"),oe=Math.min;Te.exports=[].copyWithin||function(ue,E){var re=x(this),te=ie(re),se=z(ue,te),ae=z(E,te),he=arguments.length>2?arguments[2]:void 0,me=oe((he===void 0?te:z(he,te))-ae,te-se),ve=1;for(ae<se&&se<ae+me&&(ve=-1,ae+=me-1,se+=me-1);me-- >0;)ae in re?re[se]=re[ae]:delete re[se],se+=ve,ae+=ve;return re}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(a,Te,ge){"use strict";var x=a("../internals/to-object"),z=a("../internals/to-absolute-index"),ie=a("../internals/length-of-array-like");Te.exports=function(ee){for(var ue=x(this),E=ie(ue),re=arguments.length,te=z(re>1?arguments[1]:void 0,E),se=re>2?arguments[2]:void 0,ae=se===void 0?E:z(se,E);ae>te;)ue[te++]=ee;return ue}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(a,Te,ge){"use strict";var x=a("../internals/array-iteration").forEach,z=a("../internals/array-method-is-strict"),ie=z("forEach");Te.exports=ie?[].forEach:function(ee){return x(this,ee,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(a,Te,ge){var x=a("../internals/length-of-array-like");Te.exports=function(z,ie){for(var oe=0,ee=x(ie),ue=new z(ee);ee>oe;)ue[oe]=ie[oe++];return ue}},{"../internals/length-of-array-like":188}],109:[function(a,Te,ge){"use strict";var x=a("../internals/global"),z=a("../internals/function-bind-context"),ie=a("../internals/function-call"),oe=a("../internals/to-object"),ee=a("../internals/call-with-safe-iteration-closing"),ue=a("../internals/is-array-iterator-method"),E=a("../internals/is-constructor"),re=a("../internals/length-of-array-like"),te=a("../internals/create-property"),se=a("../internals/get-iterator"),ae=a("../internals/get-iterator-method"),he=x.Array;Te.exports=function(ve){var pe=oe(ve),be=E(this),je=arguments.length,ke=je>1?arguments[1]:void 0,Be=ke!==void 0;Be&&(ke=z(ke,je>2?arguments[2]:void 0));var De=ae(pe),Se=0,Ee,Ie,Me,Le,Ae,Pe;if(De&&!(this==he&&ue(De)))for(Le=se(pe,De),Ae=Le.next,Ie=be?new this:[];!(Me=ie(Ae,Le)).done;Se++)Pe=Be?ee(Le,ke,[Me.value,Se],!0):Me.value,te(Ie,Se,Pe);else for(Ee=re(pe),Ie=be?new this(Ee):he(Ee);Ee>Se;Se++)Pe=Be?ke(pe[Se],Se):pe[Se],te(Ie,Se,Pe);return Ie.length=Se,Ie}},{"../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(a,Te,ge){var x=a("../internals/to-indexed-object"),z=a("../internals/to-absolute-index"),ie=a("../internals/length-of-array-like"),oe=function(ee){return function(ue,E,re){var te=x(ue),se=ie(te),ae=z(re,se),he;if(ee&&E!=E){for(;se>ae;)if(he=te[ae++],he!=he)return!0}else for(;se>ae;ae++)if((ee||ae in te)&&te[ae]===E)return ee||ae||0;return!ee&&-1}};Te.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(a,Te,ge){var x=a("../internals/function-bind-context"),z=a("../internals/function-uncurry-this"),ie=a("../internals/indexed-object"),oe=a("../internals/to-object"),ee=a("../internals/length-of-array-like"),ue=a("../internals/array-species-create"),E=z([].push),re=function(te){var se=te==1,ae=te==2,he=te==3,me=te==4,ve=te==6,pe=te==7,be=te==5||ve;return function(je,ke,Be,De){for(var Se=oe(je),Ee=ie(Se),Ie=x(ke,Be),Me=ee(Ee),Le=0,Ae=De||ue,Pe=se?Ae(je,Me):ae||pe?Ae(je,0):void 0,Ue,He;Me>Le;Le++)if((be||Le in Ee)&&(Ue=Ee[Le],He=Ie(Ue,Le,Se),te))if(se)Pe[Le]=He;else if(He)switch(te){case 3:return!0;case 5:return Ue;case 6:return Le;case 2:E(Pe,Ue)}else switch(te){case 4:return!1;case 7:E(Pe,Ue)}return ve?-1:he||me?me:Pe}};Te.exports={forEach:re(0),map:re(1),filter:re(2),some:re(3),every:re(4),find:re(5),findIndex:re(6),filterReject:re(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(a,Te,ge){"use strict";var x=a("../internals/function-apply"),z=a("../internals/to-indexed-object"),ie=a("../internals/to-integer-or-infinity"),oe=a("../internals/length-of-array-like"),ee=a("../internals/array-method-is-strict"),ue=Math.min,E=[].lastIndexOf,re=!!E&&1/[1].lastIndexOf(1,-0)<0,te=ee("lastIndexOf"),se=re||!te;Te.exports=se?function(he){if(re)return x(E,this,arguments)||0;var me=z(this),ve=oe(me),pe=ve-1;for(arguments.length>1&&(pe=ue(pe,ie(arguments[1]))),pe<0&&(pe=ve+pe);pe>=0;pe--)if(pe in me&&me[pe]===he)return pe||0;return-1}:E},{"../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(a,Te,ge){var x=a("../internals/fails"),z=a("../internals/well-known-symbol"),ie=a("../internals/engine-v8-version"),oe=z("species");Te.exports=function(ee){return ie>=51||!x(function(){var ue=[],E=ue.constructor={};return E[oe]=function(){return{foo:1}},ue[ee](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(a,Te,ge){"use strict";var x=a("../internals/fails");Te.exports=function(z,ie){var oe=[][z];return!!oe&&x(function(){oe.call(null,ie||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/a-callable"),ie=a("../internals/to-object"),oe=a("../internals/indexed-object"),ee=a("../internals/length-of-array-like"),ue=x.TypeError,E=function(re){return function(te,se,ae,he){z(se);var me=ie(te),ve=oe(me),pe=ee(me),be=re?pe-1:0,je=re?-1:1;if(ae<2)for(;;){if(be in ve){he=ve[be],be+=je;break}if(be+=je,re?be<0:pe<=be)throw ue("Reduce of empty array with no initial value")}for(;re?be>=0:pe>be;be+=je)be in ve&&(he=se(he,ve[be],be,me));return he}};Te.exports={left:E(!1),right:E(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/to-absolute-index"),ie=a("../internals/length-of-array-like"),oe=a("../internals/create-property"),ee=x.Array,ue=Math.max;Te.exports=function(E,re,te){for(var se=ie(E),ae=z(re,se),he=z(te===void 0?se:te,se),me=ee(ue(he-ae,0)),ve=0;ae<he;ae++,ve++)oe(me,ve,E[ae]);return me.length=ve,me}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(a,Te,ge){var x=a("../internals/function-uncurry-this");Te.exports=x([].slice)},{"../internals/function-uncurry-this":157}],118:[function(a,Te,ge){var x=a("../internals/array-slice-simple"),z=Math.floor,ie=function(ue,E){var re=ue.length,te=z(re/2);return re<8?oe(ue,E):ee(ue,ie(x(ue,0,te),E),ie(x(ue,te),E),E)},oe=function(ue,E){for(var re=ue.length,te=1,se,ae;te<re;){for(ae=te,se=ue[te];ae&&E(ue[ae-1],se)>0;)ue[ae]=ue[--ae];ae!==te++&&(ue[ae]=se)}return ue},ee=function(ue,E,re,te){for(var se=E.length,ae=re.length,he=0,me=0;he<se||me<ae;)ue[he+me]=he<se&&me<ae?te(E[he],re[me])<=0?E[he++]:re[me++]:he<se?E[he++]:re[me++];return ue};Te.exports=ie},{"../internals/array-slice-simple":116}],119:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/is-array"),ie=a("../internals/is-constructor"),oe=a("../internals/is-object"),ee=a("../internals/well-known-symbol"),ue=ee("species"),E=x.Array;Te.exports=function(re){var te;return z(re)&&(te=re.constructor,ie(te)&&(te===E||z(te.prototype))?te=void 0:oe(te)&&(te=te[ue],te===null&&(te=void 0))),te===void 0?E:te}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(a,Te,ge){var x=a("../internals/array-species-constructor");Te.exports=function(z,ie){return new(x(z))(ie===0?0:ie)}},{"../internals/array-species-constructor":119}],121:[function(a,Te,ge){var x=a("../internals/an-object"),z=a("../internals/iterator-close");Te.exports=function(ie,oe,ee,ue){try{return ue?oe(x(ee)[0],ee[1]):oe(ee)}catch(E){z(ie,"throw",E)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(a,Te,ge){var x=a("../internals/well-known-symbol"),z=x("iterator"),ie=!1;try{var oe=0,ee={next:function(){return{done:!!oe++}},return:function(){ie=!0}};ee[z]=function(){return this},Array.from(ee,function(){throw 2})}catch(ue){}Te.exports=function(ue,E){if(!E&&!ie)return!1;var re=!1;try{var te={};te[z]=function(){return{next:function(){return{done:re=!0}}}},ue(te)}catch(se){}return re}},{"../internals/well-known-symbol":268}],123:[function(a,Te,ge){var x=a("../internals/function-uncurry-this"),z=x({}.toString),ie=x("".slice);Te.exports=function(oe){return ie(z(oe),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/to-string-tag-support"),ie=a("../internals/is-callable"),oe=a("../internals/classof-raw"),ee=a("../internals/well-known-symbol"),ue=ee("toStringTag"),E=x.Object,re=oe(function(){return arguments}())=="Arguments",te=function(se,ae){try{return se[ae]}catch(he){}};Te.exports=z?oe:function(se){var ae,he,me;return se===void 0?"Undefined":se===null?"Null":typeof(he=te(ae=E(se),ue))=="string"?he:re?oe(ae):(me=oe(ae))=="Object"&&ie(ae.callee)?"Arguments":me}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(a,Te,ge){var x=a("../internals/has-own-property"),z=a("../internals/own-keys"),ie=a("../internals/object-get-own-property-descriptor"),oe=a("../internals/object-define-property");Te.exports=function(ee,ue,E){for(var re=z(ue),te=oe.f,se=ie.f,ae=0;ae<re.length;ae++){var he=re[ae];!x(ee,he)&&!(E&&x(E,he))&&te(ee,he,se(ue,he))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(a,Te,ge){var x=a("../internals/well-known-symbol"),z=x("match");Te.exports=function(ie){var oe=/./;try{"/./"[ie](oe)}catch(ee){try{return oe[z]=!1,"/./"[ie](oe)}catch(ue){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(a,Te,ge){var x=a("../internals/fails");Te.exports=!x(function(){function z(){}return z.prototype.constructor=null,Object.getPrototypeOf(new z)!==z.prototype})},{"../internals/fails":150}],128:[function(a,Te,ge){"use strict";var x=a("../internals/iterators-core").IteratorPrototype,z=a("../internals/object-create"),ie=a("../internals/create-property-descriptor"),oe=a("../internals/set-to-string-tag"),ee=a("../internals/iterators"),ue=function(){return this};Te.exports=function(E,re,te,se){var ae=re+" Iterator";return E.prototype=z(x,{next:ie(+!se,te)}),oe(E,ae,!1,!0),ee[ae]=ue,E}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(a,Te,ge){var x=a("../internals/descriptors"),z=a("../internals/object-define-property"),ie=a("../internals/create-property-descriptor");Te.exports=x?function(oe,ee,ue){return z.f(oe,ee,ie(1,ue))}:function(oe,ee,ue){return oe[ee]=ue,oe}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(a,Te,ge){Te.exports=function(x,z){return{enumerable:!(x&1),configurable:!(x&2),writable:!(x&4),value:z}}},{}],131:[function(a,Te,ge){"use strict";var x=a("../internals/to-property-key"),z=a("../internals/object-define-property"),ie=a("../internals/create-property-descriptor");Te.exports=function(oe,ee,ue){var E=x(ee);E in oe?z.f(oe,E,ie(0,ue)):oe[E]=ue}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/function-call"),ie=a("../internals/is-pure"),oe=a("../internals/function-name"),ee=a("../internals/is-callable"),ue=a("../internals/create-iterator-constructor"),E=a("../internals/object-get-prototype-of"),re=a("../internals/object-set-prototype-of"),te=a("../internals/set-to-string-tag"),se=a("../internals/create-non-enumerable-property"),ae=a("../internals/redefine"),he=a("../internals/well-known-symbol"),me=a("../internals/iterators"),ve=a("../internals/iterators-core"),pe=oe.PROPER,be=oe.CONFIGURABLE,je=ve.IteratorPrototype,ke=ve.BUGGY_SAFARI_ITERATORS,Be=he("iterator"),De="keys",Se="values",Ee="entries",Ie=function(){return this};Te.exports=function(Me,Le,Ae,Pe,Ue,He,Je){ue(Ae,Le,Pe);var st=function(qe){if(qe===Ue&&et)return et;if(!ke&&qe in nt)return nt[qe];switch(qe){case De:return function(){return new Ae(this,qe)};case Se:return function(){return new Ae(this,qe)};case Ee:return function(){return new Ae(this,qe)}}return function(){return new Ae(this)}},_e=Le+" Iterator",Ke=!1,nt=Me.prototype,rt=nt[Be]||nt["@@iterator"]||Ue&&nt[Ue],et=!ke&&rt||st(Ue),Ve=Le=="Array"&&nt.entries||rt,Ye,Ge,it;if(Ve&&(Ye=E(Ve.call(new Me)),Ye!==Object.prototype&&Ye.next&&(!ie&&E(Ye)!==je&&(re?re(Ye,je):ee(Ye[Be])||ae(Ye,Be,Ie)),te(Ye,_e,!0,!0),ie&&(me[_e]=Ie))),pe&&Ue==Se&&rt&&rt.name!==Se&&(!ie&&be?se(nt,"name",Se):(Ke=!0,et=function(){return z(rt,this)})),Ue)if(Ge={values:st(Se),keys:He?et:st(De),entries:st(Ee)},Je)for(it in Ge)(ke||Ke||!(it in nt))&&ae(nt,it,Ge[it]);else x({target:Le,proto:!0,forced:ke||Ke},Ge);return(!ie||Je)&&nt[Be]!==et&&ae(nt,Be,et,{name:Ue}),me[Le]=et,Ge}},{"../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(a,Te,ge){var x=a("../internals/path"),z=a("../internals/has-own-property"),ie=a("../internals/well-known-symbol-wrapped"),oe=a("../internals/object-define-property").f;Te.exports=function(ee){var ue=x.Symbol||(x.Symbol={});z(ue,ee)||oe(ue,ee,{value:ie.f(ee)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(a,Te,ge){var x=a("../internals/fails");Te.exports=!x(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/is-object"),ie=x.document,oe=z(ie)&&z(ie.createElement);Te.exports=function(ee){return oe?ie.createElement(ee):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(a,Te,ge){Te.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(a,Te,ge){var x=a("../internals/document-create-element"),z=x("span").classList,ie=z&&z.constructor&&z.constructor.prototype;Te.exports=ie===Object.prototype?void 0:ie},{"../internals/document-create-element":135}],138:[function(a,Te,ge){var x=a("../internals/engine-user-agent"),z=x.match(/firefox\/(\d+)/i);Te.exports=!!z&&+z[1]},{"../internals/engine-user-agent":145}],139:[function(a,Te,ge){Te.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(a,Te,ge){var x=a("../internals/engine-user-agent");Te.exports=/MSIE|Trident/.test(x)},{"../internals/engine-user-agent":145}],141:[function(a,Te,ge){var x=a("../internals/engine-user-agent"),z=a("../internals/global");Te.exports=/ipad|iphone|ipod/i.test(x)&&z.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(a,Te,ge){var x=a("../internals/engine-user-agent");Te.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(x)},{"../internals/engine-user-agent":145}],143:[function(a,Te,ge){var x=a("../internals/classof-raw"),z=a("../internals/global");Te.exports=x(z.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(a,Te,ge){var x=a("../internals/engine-user-agent");Te.exports=/web0s(?!.*chrome)/i.test(x)},{"../internals/engine-user-agent":145}],145:[function(a,Te,ge){var x=a("../internals/get-built-in");Te.exports=x("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/engine-user-agent"),ie=x.process,oe=x.Deno,ee=ie&&ie.versions||oe&&oe.version,ue=ee&&ee.v8,E,re;ue&&(E=ue.split("."),re=E[0]>0&&E[0]<4?1:+(E[0]+E[1])),!re&&z&&(E=z.match(/Edge\/(\d+)/),(!E||E[1]>=74)&&(E=z.match(/Chrome\/(\d+)/),E&&(re=+E[1]))),Te.exports=re},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(a,Te,ge){var x=a("../internals/engine-user-agent"),z=x.match(/AppleWebKit\/(\d+)\./);Te.exports=!!z&&+z[1]},{"../internals/engine-user-agent":145}],148:[function(a,Te,ge){Te.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/object-get-own-property-descriptor").f,ie=a("../internals/create-non-enumerable-property"),oe=a("../internals/redefine"),ee=a("../internals/set-global"),ue=a("../internals/copy-constructor-properties"),E=a("../internals/is-forced");Te.exports=function(re,te){var se=re.target,ae=re.global,he=re.stat,me,ve,pe,be,je,ke;if(ae?ve=x:he?ve=x[se]||ee(se,{}):ve=(x[se]||{}).prototype,ve)for(pe in te){if(je=te[pe],re.noTargetGet?(ke=z(ve,pe),be=ke&&ke.value):be=ve[pe],me=E(ae?pe:se+(he?".":"#")+pe,re.forced),!me&&be!==void 0){if(typeof je==typeof be)continue;ue(je,be)}(re.sham||be&&be.sham)&&ie(je,"sham",!0),oe(ve,pe,je,re)}}},{"../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(a,Te,ge){Te.exports=function(x){try{return!!x()}catch(z){return!0}}},{}],151:[function(a,Te,ge){"use strict";a("../modules/es.regexp.exec");var x=a("../internals/function-uncurry-this"),z=a("../internals/redefine"),ie=a("../internals/regexp-exec"),oe=a("../internals/fails"),ee=a("../internals/well-known-symbol"),ue=a("../internals/create-non-enumerable-property"),E=ee("species"),re=RegExp.prototype;Te.exports=function(te,se,ae,he){var me=ee(te),ve=!oe(function(){var ke={};return ke[me]=function(){return 7},""[te](ke)!=7}),pe=ve&&!oe(function(){var ke=!1,Be=/a/;return te==="split"&&(Be={},Be.constructor={},Be.constructor[E]=function(){return Be},Be.flags="",Be[me]=/./[me]),Be.exec=function(){return ke=!0,null},Be[me](""),!ke});if(!ve||!pe||ae){var be=x(/./[me]),je=se(me,""[te],function(ke,Be,De,Se,Ee){var Ie=x(ke),Me=Be.exec;return Me===ie||Me===re.exec?ve&&!Ee?{done:!0,value:be(Be,De,Se)}:{done:!0,value:Ie(De,Be,Se)}:{done:!1}});z(String.prototype,te,je[0]),z(re,me,je[1])}he&&ue(re[me],"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(a,Te,ge){var x=a("../internals/function-bind-native"),z=Function.prototype,ie=z.apply,oe=z.call;Te.exports=typeof Reflect=="object"&&Reflect.apply||(x?oe.bind(ie):function(){return oe.apply(ie,arguments)})},{"../internals/function-bind-native":154}],153:[function(a,Te,ge){var x=a("../internals/function-uncurry-this"),z=a("../internals/a-callable"),ie=a("../internals/function-bind-native"),oe=x(x.bind);Te.exports=function(ee,ue){return z(ee),ue===void 0?ee:ie?oe(ee,ue):function(){return ee.apply(ue,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(a,Te,ge){var x=a("../internals/fails");Te.exports=!x(function(){var z=function(){}.bind();return typeof z!="function"||z.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(a,Te,ge){var x=a("../internals/function-bind-native"),z=Function.prototype.call;Te.exports=x?z.bind(z):function(){return z.apply(z,arguments)}},{"../internals/function-bind-native":154}],156:[function(a,Te,ge){var x=a("../internals/descriptors"),z=a("../internals/has-own-property"),ie=Function.prototype,oe=x&&Object.getOwnPropertyDescriptor,ee=z(ie,"name"),ue=ee&&function(){}.name==="something",E=ee&&(!x||x&&oe(ie,"name").configurable);Te.exports={EXISTS:ee,PROPER:ue,CONFIGURABLE:E}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(a,Te,ge){var x=a("../internals/function-bind-native"),z=Function.prototype,ie=z.bind,oe=z.call,ee=x&&ie.bind(oe,oe);Te.exports=x?function(ue){return ue&&ee(ue)}:function(ue){return ue&&function(){return oe.apply(ue,arguments)}}},{"../internals/function-bind-native":154}],158:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/is-callable"),ie=function(oe){return z(oe)?oe:void 0};Te.exports=function(oe,ee){return arguments.length<2?ie(x[oe]):x[oe]&&x[oe][ee]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(a,Te,ge){var x=a("../internals/classof"),z=a("../internals/get-method"),ie=a("../internals/iterators"),oe=a("../internals/well-known-symbol"),ee=oe("iterator");Te.exports=function(ue){if(ue!=null)return z(ue,ee)||z(ue,"@@iterator")||ie[x(ue)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/function-call"),ie=a("../internals/a-callable"),oe=a("../internals/an-object"),ee=a("../internals/try-to-string"),ue=a("../internals/get-iterator-method"),E=x.TypeError;Te.exports=function(re,te){var se=arguments.length<2?ue(re):te;if(ie(se))return oe(z(se,re));throw E(ee(re)+" 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(a,Te,ge){var x=a("../internals/a-callable");Te.exports=function(z,ie){var oe=z[ie];return oe==null?void 0:x(oe)}},{"../internals/a-callable":95}],162:[function(a,Te,ge){var x=a("../internals/function-uncurry-this"),z=a("../internals/to-object"),ie=Math.floor,oe=x("".charAt),ee=x("".replace),ue=x("".slice),E=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,re=/\$([$&'`]|\d{1,2})/g;Te.exports=function(te,se,ae,he,me,ve){var pe=ae+te.length,be=he.length,je=re;return me!==void 0&&(me=z(me),je=E),ee(ve,je,function(ke,Be){var De;switch(oe(Be,0)){case"$":return"$";case"&":return te;case"`":return ue(se,0,ae);case"'":return ue(se,pe);case"<":De=me[ue(Be,1,-1)];break;default:var Se=+Be;if(Se===0)return ke;if(Se>be){var Ee=ie(Se/10);return Ee===0?ke:Ee<=be?he[Ee-1]===void 0?oe(Be,1):he[Ee-1]+oe(Be,1):ke}De=he[Se-1]}return De===void 0?"":De})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(a,Te,ge){(function(x){(function(){var z=function(ie){return ie&&ie.Math==Math&&ie};Te.exports=z(typeof globalThis=="object"&&globalThis)||z(typeof window=="object"&&window)||z(typeof self=="object"&&self)||z(typeof x=="object"&&x)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof Lt!="undefined"?Lt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(a,Te,ge){var x=a("../internals/function-uncurry-this"),z=a("../internals/to-object"),ie=x({}.hasOwnProperty);Te.exports=Object.hasOwn||function(ee,ue){return ie(z(ee),ue)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(a,Te,ge){Te.exports={}},{}],166:[function(a,Te,ge){var x=a("../internals/global");Te.exports=function(z,ie){var oe=x.console;oe&&oe.error&&(arguments.length==1?oe.error(z):oe.error(z,ie))}},{"../internals/global":163}],167:[function(a,Te,ge){var x=a("../internals/get-built-in");Te.exports=x("document","documentElement")},{"../internals/get-built-in":158}],168:[function(a,Te,ge){var x=a("../internals/descriptors"),z=a("../internals/fails"),ie=a("../internals/document-create-element");Te.exports=!x&&!z(function(){return Object.defineProperty(ie("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(a,Te,ge){var x=a("../internals/global"),z=x.Array,ie=Math.abs,oe=Math.pow,ee=Math.floor,ue=Math.log,E=Math.LN2,re=function(se,ae,he){var me=z(he),ve=he*8-ae-1,pe=(1<<ve)-1,be=pe>>1,je=ae===23?oe(2,-24)-oe(2,-77):0,ke=se<0||se===0&&1/se<0?1:0,Be=0,De,Se,Ee;for(se=ie(se),se!=se||se===1/0?(Se=se!=se?1:0,De=pe):(De=ee(ue(se)/E),Ee=oe(2,-De),se*Ee<1&&(De--,Ee*=2),De+be>=1?se+=je/Ee:se+=je*oe(2,1-be),se*Ee>=2&&(De++,Ee/=2),De+be>=pe?(Se=0,De=pe):De+be>=1?(Se=(se*Ee-1)*oe(2,ae),De=De+be):(Se=se*oe(2,be-1)*oe(2,ae),De=0));ae>=8;)me[Be++]=Se&255,Se/=256,ae-=8;for(De=De<<ae|Se,ve+=ae;ve>0;)me[Be++]=De&255,De/=256,ve-=8;return me[--Be]|=ke*128,me},te=function(se,ae){var he=se.length,me=he*8-ae-1,ve=(1<<me)-1,pe=ve>>1,be=me-7,je=he-1,ke=se[je--],Be=ke&127,De;for(ke>>=7;be>0;)Be=Be*256+se[je--],be-=8;for(De=Be&(1<<-be)-1,Be>>=-be,be+=ae;be>0;)De=De*256+se[je--],be-=8;if(Be===0)Be=1-pe;else{if(Be===ve)return De?NaN:ke?-1/0:1/0;De=De+oe(2,ae),Be=Be-pe}return(ke?-1:1)*De*oe(2,Be-ae)};Te.exports={pack:re,unpack:te}},{"../internals/global":163}],170:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/function-uncurry-this"),ie=a("../internals/fails"),oe=a("../internals/classof-raw"),ee=x.Object,ue=z("".split);Te.exports=ie(function(){return!ee("z").propertyIsEnumerable(0)})?function(E){return oe(E)=="String"?ue(E,""):ee(E)}:ee},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(a,Te,ge){var x=a("../internals/is-callable"),z=a("../internals/is-object"),ie=a("../internals/object-set-prototype-of");Te.exports=function(oe,ee,ue){var E,re;return ie&&x(E=ee.constructor)&&E!==ue&&z(re=E.prototype)&&re!==ue.prototype&&ie(oe,re),oe}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(a,Te,ge){var x=a("../internals/function-uncurry-this"),z=a("../internals/is-callable"),ie=a("../internals/shared-store"),oe=x(Function.toString);z(ie.inspectSource)||(ie.inspectSource=function(ee){return oe(ee)}),Te.exports=ie.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(a,Te,ge){var x=a("../internals/native-weak-map"),z=a("../internals/global"),ie=a("../internals/function-uncurry-this"),oe=a("../internals/is-object"),ee=a("../internals/create-non-enumerable-property"),ue=a("../internals/has-own-property"),E=a("../internals/shared-store"),re=a("../internals/shared-key"),te=a("../internals/hidden-keys"),se="Object already initialized",ae=z.TypeError,he=z.WeakMap,me,ve,pe,be=function(Ie){return pe(Ie)?ve(Ie):me(Ie,{})},je=function(Ie){return function(Me){var Le;if(!oe(Me)||(Le=ve(Me)).type!==Ie)throw ae("Incompatible receiver, "+Ie+" required");return Le}};if(x||E.state){var ke=E.state||(E.state=new he),Be=ie(ke.get),De=ie(ke.has),Se=ie(ke.set);me=function(Ie,Me){if(De(ke,Ie))throw new ae(se);return Me.facade=Ie,Se(ke,Ie,Me),Me},ve=function(Ie){return Be(ke,Ie)||{}},pe=function(Ie){return De(ke,Ie)}}else{var Ee=re("state");te[Ee]=!0,me=function(Ie,Me){if(ue(Ie,Ee))throw new ae(se);return Me.facade=Ie,ee(Ie,Ee,Me),Me},ve=function(Ie){return ue(Ie,Ee)?Ie[Ee]:{}},pe=function(Ie){return ue(Ie,Ee)}}Te.exports={set:me,get:ve,has:pe,enforce:be,getterFor:je}},{"../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(a,Te,ge){var x=a("../internals/well-known-symbol"),z=a("../internals/iterators"),ie=x("iterator"),oe=Array.prototype;Te.exports=function(ee){return ee!==void 0&&(z.Array===ee||oe[ie]===ee)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(a,Te,ge){var x=a("../internals/classof-raw");Te.exports=Array.isArray||function(ie){return x(ie)=="Array"}},{"../internals/classof-raw":123}],176:[function(a,Te,ge){Te.exports=function(x){return typeof x=="function"}},{}],177:[function(a,Te,ge){var x=a("../internals/function-uncurry-this"),z=a("../internals/fails"),ie=a("../internals/is-callable"),oe=a("../internals/classof"),ee=a("../internals/get-built-in"),ue=a("../internals/inspect-source"),E=function(){},re=[],te=ee("Reflect","construct"),se=/^\s*(?:class|function)\b/,ae=x(se.exec),he=!se.exec(E),me=function(be){if(!ie(be))return!1;try{return te(E,re,be),!0}catch(je){return!1}},ve=function(be){if(!ie(be))return!1;switch(oe(be)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return he||!!ae(se,ue(be))}catch(je){return!0}};ve.sham=!0,Te.exports=!te||z(function(){var pe;return me(me.call)||!me(Object)||!me(function(){pe=!0})||pe})?ve:me},{"../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(a,Te,ge){var x=a("../internals/fails"),z=a("../internals/is-callable"),ie=/#|\.prototype\./,oe=function(te,se){var ae=ue[ee(te)];return ae==re?!0:ae==E?!1:z(se)?x(se):!!se},ee=oe.normalize=function(te){return String(te).replace(ie,".").toLowerCase()},ue=oe.data={},E=oe.NATIVE="N",re=oe.POLYFILL="P";Te.exports=oe},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(a,Te,ge){var x=a("../internals/is-object"),z=Math.floor;Te.exports=Number.isInteger||function(oe){return!x(oe)&&isFinite(oe)&&z(oe)===oe}},{"../internals/is-object":180}],180:[function(a,Te,ge){var x=a("../internals/is-callable");Te.exports=function(z){return typeof z=="object"?z!==null:x(z)}},{"../internals/is-callable":176}],181:[function(a,Te,ge){Te.exports=!1},{}],182:[function(a,Te,ge){var x=a("../internals/is-object"),z=a("../internals/classof-raw"),ie=a("../internals/well-known-symbol"),oe=ie("match");Te.exports=function(ee){var ue;return x(ee)&&((ue=ee[oe])!==void 0?!!ue:z(ee)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/get-built-in"),ie=a("../internals/is-callable"),oe=a("../internals/object-is-prototype-of"),ee=a("../internals/use-symbol-as-uid"),ue=x.Object;Te.exports=ee?function(E){return typeof E=="symbol"}:function(E){var re=z("Symbol");return ie(re)&&oe(re.prototype,ue(E))}},{"../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(a,Te,ge){var x=a("../internals/global"),z=a("../internals/function-bind-context"),ie=a("../internals/function-call"),oe=a("../internals/an-object"),ee=a("../internals/try-to-string"),ue=a("../internals/is-array-iterator-method"),E=a("../internals/length-of-array-like"),re=a("../internals/object-is-prototype-of"),te=a("../internals/get-iterator"),se=a("../internals/get-iterator-method"),ae=a("../internals/iterator-close"),he=x.TypeError,me=function(pe,be){this.stopped=pe,this.result=be},ve=me.prototype;Te.exports=function(pe,be,je){var ke=je&&je.that,Be=!!(je&&je.AS_ENTRIES),De=!!(je&&je.IS_ITERATOR),Se=!!(je&&je.INTERRUPTED),Ee=z(be,ke),Ie,Me,Le,Ae,Pe,Ue,He,Je=function(_e){return Ie&&ae(Ie,"normal",_e),new me(!0,_e)},st=function(_e){return Be?(oe(_e),Se?Ee(_e[0],_e[1],Je):Ee(_e[0],_e[1])):Se?Ee(_e,Je):Ee(_e)};if(De)Ie=pe;else{if(Me=se(pe),!Me)throw he(ee(pe)+" is not iterable");if(ue(Me)){for(Le=0,Ae=E(pe);Ae>Le;Le++)if(Pe=st(pe[Le]),Pe&&re(ve,Pe))return Pe;return new me(!1)}Ie=te(pe,Me)}for(Ue=Ie.next;!(He=ie(Ue,Ie)).done;){try{Pe=st(He.value)}catch(_e){ae(Ie,"throw",_e)}if(typeof Pe=="object"&&Pe&&re(ve,Pe))return Pe}return new me(!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(a,Te,ge){var x=a("../internals/function-call"),z=a("../internals/an-object"),ie=a("../internals/get-method");Te.exports=function(oe,ee,ue){var E,re;z(oe);try{if(E=ie(oe,"return"),!E){if(ee==="throw")throw ue;return ue}E=x(E,oe)}catch(te){re=!0,E=te}if(ee==="throw")throw ue;if(re)throw E;return z(E),ue}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(a,Te,ge){"use strict";var x=a("../internals/fails"),z=a("../internals/is-callable"),ie=a("../internals/object-create"),oe=a("../internals/object-get-prototype-of"),ee=a("../internals/redefine"),ue=a("../internals/well-known-symbol"),E=a("../internals/is-pure"),re=ue("iterator"),te=!1,se,ae,he;[].keys&&(he=[].keys(),"next"in he?(ae=oe(oe(he)),ae!==Object.prototype&&(se=ae)):te=!0);var me=se==null||x(function(){var ve={};return se[re].call(ve)!==ve});me?se={}:E&&(se=ie(se)),z(se[re])||ee(se,re,function(){return this}),Te.exports={IteratorPrototype:se,BUGGY_SAFARI_ITERATORS:te}},{"../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(a,Te,ge){arguments[4][165][0].apply(ge,arguments)},{dup:165}],188:[function(a,Te,ge){var x=a("../internals/to-length");Te.exports=function(z){return x(z.length)}},{"../internals/to-length":249}],189:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/function-bind-context"),ie=a("../internals/object-get-own-property-descriptor").f,oe=a("../internals/task").set,ee=a("../internals/engine-is-ios"),ue=a("../internals/engine-is-ios-pebble"),E=a("../internals/engine-is-webos-webkit"),re=a("../internals/engine-is-node"),te=x.MutationObserver||x.WebKitMutationObserver,se=x.document,ae=x.process,he=x.Promise,me=ie(x,"queueMicrotask"),ve=me&&me.value,pe,be,je,ke,Be,De,Se,Ee;ve||(pe=function(){var Ie,Me;for(re&&(Ie=ae.domain)&&Ie.exit();be;){Me=be.fn,be=be.next;try{Me()}catch(Le){throw be?ke():je=void 0,Le}}je=void 0,Ie&&Ie.enter()},!ee&&!re&&!E&&te&&se?(Be=!0,De=se.createTextNode(""),new te(pe).observe(De,{characterData:!0}),ke=function(){De.data=Be=!Be}):!ue&&he&&he.resolve?(Se=he.resolve(void 0),Se.constructor=he,Ee=z(Se.then,Se),ke=function(){Ee(pe)}):re?ke=function(){ae.nextTick(pe)}:(oe=z(oe,x),ke=function(){oe(pe)})),Te.exports=ve||function(Ie){var Me={fn:Ie,next:void 0};je&&(je.next=Me),be||(be=Me,ke()),je=Me}},{"../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(a,Te,ge){var x=a("../internals/native-symbol");Te.exports=x&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(a,Te,ge){var x=a("../internals/engine-v8-version"),z=a("../internals/fails");Te.exports=!!Object.getOwnPropertySymbols&&!z(function(){var ie=Symbol();return!String(ie)||!(Object(ie)instanceof Symbol)||!Symbol.sham&&x&&x<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/is-callable"),ie=a("../internals/inspect-source"),oe=x.WeakMap;Te.exports=z(oe)&&/native code/.test(ie(oe))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(a,Te,ge){"use strict";var x=a("../internals/a-callable"),z=function(ie){var oe,ee;this.promise=new ie(function(ue,E){if(oe!==void 0||ee!==void 0)throw TypeError("Bad Promise constructor");oe=ue,ee=E}),this.resolve=x(oe),this.reject=x(ee)};Te.exports.f=function(ie){return new z(ie)}},{"../internals/a-callable":95}],194:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/is-regexp"),ie=x.TypeError;Te.exports=function(oe){if(z(oe))throw ie("The method doesn't accept regular expressions");return oe}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(a,Te,ge){"use strict";var x=a("../internals/descriptors"),z=a("../internals/function-uncurry-this"),ie=a("../internals/function-call"),oe=a("../internals/fails"),ee=a("../internals/object-keys"),ue=a("../internals/object-get-own-property-symbols"),E=a("../internals/object-property-is-enumerable"),re=a("../internals/to-object"),te=a("../internals/indexed-object"),se=Object.assign,ae=Object.defineProperty,he=z([].concat);Te.exports=!se||oe(function(){if(x&&se({b:1},se(ae({},"a",{enumerable:!0,get:function(){ae(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var me={},ve={},pe=Symbol(),be="abcdefghijklmnopqrst";return me[pe]=7,be.split("").forEach(function(je){ve[je]=je}),se({},me)[pe]!=7||ee(se({},ve)).join("")!=be})?function(ve,pe){for(var be=re(ve),je=arguments.length,ke=1,Be=ue.f,De=E.f;je>ke;)for(var Se=te(arguments[ke++]),Ee=Be?he(ee(Se),Be(Se)):ee(Se),Ie=Ee.length,Me=0,Le;Ie>Me;)Le=Ee[Me++],(!x||ie(De,Se,Le))&&(be[Le]=Se[Le]);return be}: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(a,Te,ge){var x=a("../internals/an-object"),z=a("../internals/object-define-properties"),ie=a("../internals/enum-bug-keys"),oe=a("../internals/hidden-keys"),ee=a("../internals/html"),ue=a("../internals/document-create-element"),E=a("../internals/shared-key"),re=">",te="<",se="prototype",ae="script",he=E("IE_PROTO"),me=function(){},ve=function(Be){return te+ae+re+Be+te+"/"+ae+re},pe=function(Be){Be.write(ve("")),Be.close();var De=Be.parentWindow.Object;return Be=null,De},be=function(){var Be=ue("iframe"),De="java"+ae+":",Se;return Be.style.display="none",ee.appendChild(Be),Be.src=String(De),Se=Be.contentWindow.document,Se.open(),Se.write(ve("document.F=Object")),Se.close(),Se.F},je,ke=function(){try{je=new ActiveXObject("htmlfile")}catch(De){}ke=typeof document!="undefined"?document.domain&&je?pe(je):be():pe(je);for(var Be=ie.length;Be--;)delete ke[se][ie[Be]];return ke()};oe[he]=!0,Te.exports=Object.create||function(De,Se){var Ee;return De!==null?(me[se]=x(De),Ee=new me,me[se]=null,Ee[he]=De):Ee=ke(),Se===void 0?Ee:z.f(Ee,Se)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(a,Te,ge){var x=a("../internals/descriptors"),z=a("../internals/v8-prototype-define-bug"),ie=a("../internals/object-define-property"),oe=a("../internals/an-object"),ee=a("../internals/to-indexed-object"),ue=a("../internals/object-keys");ge.f=x&&!z?Object.defineProperties:function(re,te){oe(re);for(var se=ee(te),ae=ue(te),he=ae.length,me=0,ve;he>me;)ie.f(re,ve=ae[me++],se[ve]);return re}},{"../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(a,Te,ge){var x=a("../internals/global"),z=a("../internals/descriptors"),ie=a("../internals/ie8-dom-define"),oe=a("../internals/v8-prototype-define-bug"),ee=a("../internals/an-object"),ue=a("../internals/to-property-key"),E=x.TypeError,re=Object.defineProperty,te=Object.getOwnPropertyDescriptor,se="enumerable",ae="configurable",he="writable";ge.f=z?oe?function(ve,pe,be){if(ee(ve),pe=ue(pe),ee(be),typeof ve=="function"&&pe==="prototype"&&"value"in be&&he in be&&!be[he]){var je=te(ve,pe);je&&je[he]&&(ve[pe]=be.value,be={configurable:ae in be?be[ae]:je[ae],enumerable:se in be?be[se]:je[se],writable:!1})}return re(ve,pe,be)}:re:function(ve,pe,be){if(ee(ve),pe=ue(pe),ee(be),ie)try{return re(ve,pe,be)}catch(je){}if("get"in be||"set"in be)throw E("Accessors not supported");return"value"in be&&(ve[pe]=be.value),ve}},{"../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(a,Te,ge){var x=a("../internals/descriptors"),z=a("../internals/function-call"),ie=a("../internals/object-property-is-enumerable"),oe=a("../internals/create-property-descriptor"),ee=a("../internals/to-indexed-object"),ue=a("../internals/to-property-key"),E=a("../internals/has-own-property"),re=a("../internals/ie8-dom-define"),te=Object.getOwnPropertyDescriptor;ge.f=x?te:function(ae,he){if(ae=ee(ae),he=ue(he),re)try{return te(ae,he)}catch(me){}if(E(ae,he))return oe(!z(ie.f,ae,he),ae[he])}},{"../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(a,Te,ge){var x=a("../internals/classof-raw"),z=a("../internals/to-indexed-object"),ie=a("../internals/object-get-own-property-names").f,oe=a("../internals/array-slice-simple"),ee=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ue=function(E){try{return ie(E)}catch(re){return oe(ee)}};Te.exports.f=function(re){return ee&&x(re)=="Window"?ue(re):ie(z(re))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(a,Te,ge){var x=a("../internals/object-keys-internal"),z=a("../internals/enum-bug-keys"),ie=z.concat("length","prototype");ge.f=Object.getOwnPropertyNames||function(ee){return x(ee,ie)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(a,Te,ge){ge.f=Object.getOwnPropertySymbols},{}],203:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/has-own-property"),ie=a("../internals/is-callable"),oe=a("../internals/to-object"),ee=a("../internals/shared-key"),ue=a("../internals/correct-prototype-getter"),E=ee("IE_PROTO"),re=x.Object,te=re.prototype;Te.exports=ue?re.getPrototypeOf:function(se){var ae=oe(se);if(z(ae,E))return ae[E];var he=ae.constructor;return ie(he)&&ae instanceof he?he.prototype:ae instanceof re?te: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(a,Te,ge){var x=a("../internals/function-uncurry-this");Te.exports=x({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(a,Te,ge){var x=a("../internals/function-uncurry-this"),z=a("../internals/has-own-property"),ie=a("../internals/to-indexed-object"),oe=a("../internals/array-includes").indexOf,ee=a("../internals/hidden-keys"),ue=x([].push);Te.exports=function(E,re){var te=ie(E),se=0,ae=[],he;for(he in te)!z(ee,he)&&z(te,he)&&ue(ae,he);for(;re.length>se;)z(te,he=re[se++])&&(~oe(ae,he)||ue(ae,he));return ae}},{"../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(a,Te,ge){var x=a("../internals/object-keys-internal"),z=a("../internals/enum-bug-keys");Te.exports=Object.keys||function(oe){return x(oe,z)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(a,Te,ge){"use strict";var x={}.propertyIsEnumerable,z=Object.getOwnPropertyDescriptor,ie=z&&!x.call({1:2},1);ge.f=ie?function(ee){var ue=z(this,ee);return!!ue&&ue.enumerable}:x},{}],208:[function(a,Te,ge){var x=a("../internals/function-uncurry-this"),z=a("../internals/an-object"),ie=a("../internals/a-possible-prototype");Te.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var oe=!1,ee={},ue;try{ue=x(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),ue(ee,[]),oe=ee instanceof Array}catch(E){}return function(re,te){return z(re),ie(te),oe?ue(re,te):re.__proto__=te,re}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(a,Te,ge){var x=a("../internals/descriptors"),z=a("../internals/function-uncurry-this"),ie=a("../internals/object-keys"),oe=a("../internals/to-indexed-object"),ee=a("../internals/object-property-is-enumerable").f,ue=z(ee),E=z([].push),re=function(te){return function(se){for(var ae=oe(se),he=ie(ae),me=he.length,ve=0,pe=[],be;me>ve;)be=he[ve++],(!x||ue(ae,be))&&E(pe,te?[be,ae[be]]:ae[be]);return pe}};Te.exports={entries:re(!0),values:re(!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(a,Te,ge){"use strict";var x=a("../internals/to-string-tag-support"),z=a("../internals/classof");Te.exports=x?{}.toString:function(){return"[object "+z(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/function-call"),ie=a("../internals/is-callable"),oe=a("../internals/is-object"),ee=x.TypeError;Te.exports=function(ue,E){var re,te;if(E==="string"&&ie(re=ue.toString)&&!oe(te=z(re,ue))||ie(re=ue.valueOf)&&!oe(te=z(re,ue))||E!=="string"&&ie(re=ue.toString)&&!oe(te=z(re,ue)))return te;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(a,Te,ge){var x=a("../internals/get-built-in"),z=a("../internals/function-uncurry-this"),ie=a("../internals/object-get-own-property-names"),oe=a("../internals/object-get-own-property-symbols"),ee=a("../internals/an-object"),ue=z([].concat);Te.exports=x("Reflect","ownKeys")||function(re){var te=ie.f(ee(re)),se=oe.f;return se?ue(te,se(re)):te}},{"../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(a,Te,ge){var x=a("../internals/global");Te.exports=x},{"../internals/global":163}],214:[function(a,Te,ge){Te.exports=function(x){try{return{error:!1,value:x()}}catch(z){return{error:!0,value:z}}}},{}],215:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/promise-native-constructor"),ie=a("../internals/is-callable"),oe=a("../internals/is-forced"),ee=a("../internals/inspect-source"),ue=a("../internals/well-known-symbol"),E=a("../internals/engine-is-browser"),re=a("../internals/is-pure"),te=a("../internals/engine-v8-version"),se=z&&z.prototype,ae=ue("species"),he=!1,me=ie(x.PromiseRejectionEvent),ve=oe("Promise",function(){var pe=ee(z),be=pe!==String(z);if(!be&&te===66||re&&!(se.catch&&se.finally))return!0;if(te>=51&&/native code/.test(pe))return!1;var je=new z(function(De){De(1)}),ke=function(De){De(function(){},function(){})},Be=je.constructor={};return Be[ae]=ke,he=je.then(function(){})instanceof ke,he?!be&&E&&!me:!0});Te.exports={CONSTRUCTOR:ve,REJECTION_EVENT:me,SUBCLASSING:he}},{"../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(a,Te,ge){var x=a("../internals/global");Te.exports=x.Promise},{"../internals/global":163}],217:[function(a,Te,ge){var x=a("../internals/an-object"),z=a("../internals/is-object"),ie=a("../internals/new-promise-capability");Te.exports=function(oe,ee){if(x(oe),z(ee)&&ee.constructor===oe)return ee;var ue=ie.f(oe),E=ue.resolve;return E(ee),ue.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(a,Te,ge){var x=a("../internals/promise-native-constructor"),z=a("../internals/check-correctness-of-iteration"),ie=a("../internals/promise-constructor-detection").CONSTRUCTOR;Te.exports=ie||!z(function(oe){x.all(oe).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(a,Te,ge){var x=a("../internals/object-define-property").f;Te.exports=function(z,ie,oe){oe in z||x(z,oe,{configurable:!0,get:function(){return ie[oe]},set:function(ee){ie[oe]=ee}})}},{"../internals/object-define-property":198}],220:[function(a,Te,ge){var x=function(){this.head=null,this.tail=null};x.prototype={add:function(z){var ie={item:z,next:null};this.head?this.tail.next=ie:this.head=ie,this.tail=ie},get:function(){var z=this.head;if(z)return this.head=z.next,this.tail===z&&(this.tail=null),z.item}},Te.exports=x},{}],221:[function(a,Te,ge){var x=a("../internals/redefine");Te.exports=function(z,ie,oe){for(var ee in ie)x(z,ee,ie[ee],oe);return z}},{"../internals/redefine":222}],222:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/is-callable"),ie=a("../internals/has-own-property"),oe=a("../internals/create-non-enumerable-property"),ee=a("../internals/set-global"),ue=a("../internals/inspect-source"),E=a("../internals/internal-state"),re=a("../internals/function-name").CONFIGURABLE,te=E.get,se=E.enforce,ae=String(String).split("String");(Te.exports=function(he,me,ve,pe){var be=pe?!!pe.unsafe:!1,je=pe?!!pe.enumerable:!1,ke=pe?!!pe.noTargetGet:!1,Be=pe&&pe.name!==void 0?pe.name:me,De;if(z(ve)&&(String(Be).slice(0,7)==="Symbol("&&(Be="["+String(Be).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ie(ve,"name")||re&&ve.name!==Be)&&oe(ve,"name",Be),De=se(ve),De.source||(De.source=ae.join(typeof Be=="string"?Be:""))),he===x){je?he[me]=ve:ee(me,ve);return}else be?!ke&&he[me]&&(je=!0):delete he[me];je?he[me]=ve:oe(he,me,ve)})(Function.prototype,"toString",function(){return z(this)&&te(this).source||ue(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(a,Te,ge){var x=a("../internals/global"),z=a("../internals/function-call"),ie=a("../internals/an-object"),oe=a("../internals/is-callable"),ee=a("../internals/classof-raw"),ue=a("../internals/regexp-exec"),E=x.TypeError;Te.exports=function(re,te){var se=re.exec;if(oe(se)){var ae=z(se,re,te);return ae!==null&&ie(ae),ae}if(ee(re)==="RegExp")return z(ue,re,te);throw E("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(a,Te,ge){"use strict";var x=a("../internals/function-call"),z=a("../internals/function-uncurry-this"),ie=a("../internals/to-string"),oe=a("../internals/regexp-flags"),ee=a("../internals/regexp-sticky-helpers"),ue=a("../internals/shared"),E=a("../internals/object-create"),re=a("../internals/internal-state").get,te=a("../internals/regexp-unsupported-dot-all"),se=a("../internals/regexp-unsupported-ncg"),ae=ue("native-string-replace",String.prototype.replace),he=RegExp.prototype.exec,me=he,ve=z("".charAt),pe=z("".indexOf),be=z("".replace),je=z("".slice),ke=function(){var Ee=/a/,Ie=/b*/g;return x(he,Ee,"a"),x(he,Ie,"a"),Ee.lastIndex!==0||Ie.lastIndex!==0}(),Be=ee.BROKEN_CARET,De=/()??/.exec("")[1]!==void 0,Se=ke||De||Be||te||se;Se&&(me=function(Ie){var Me=this,Le=re(Me),Ae=ie(Ie),Pe=Le.raw,Ue,He,Je,st,_e,Ke,nt;if(Pe)return Pe.lastIndex=Me.lastIndex,Ue=x(me,Pe,Ae),Me.lastIndex=Pe.lastIndex,Ue;var rt=Le.groups,et=Be&&Me.sticky,Ve=x(oe,Me),Ye=Me.source,Ge=0,it=Ae;if(et&&(Ve=be(Ve,"y",""),pe(Ve,"g")===-1&&(Ve+="g"),it=je(Ae,Me.lastIndex),Me.lastIndex>0&&(!Me.multiline||Me.multiline&&ve(Ae,Me.lastIndex-1)!==`
`)&&(Ye="(?: "+Ye+")",it=" "+it,Ge++),He=new RegExp("^(?:"+Ye+")",Ve)),De&&(He=new RegExp("^"+Ye+"$(?!\\s)",Ve)),ke&&(Je=Me.lastIndex),st=x(he,et?He:Me,it),et?st?(st.input=je(st.input,Ge),st[0]=je(st[0],Ge),st.index=Me.lastIndex,Me.lastIndex+=st[0].length):Me.lastIndex=0:ke&&st&&(Me.lastIndex=Me.global?st.index+st[0].length:Je),De&&st&&st.length>1&&x(ae,st[0],He,function(){for(_e=1;_e<arguments.length-2;_e++)arguments[_e]===void 0&&(st[_e]=void 0)}),st&&rt)for(st.groups=Ke=E(null),_e=0;_e<rt.length;_e++)nt=rt[_e],Ke[nt[0]]=st[nt[1]];return st}),Te.exports=me},{"../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(a,Te,ge){"use strict";var x=a("../internals/an-object");Te.exports=function(){var z=x(this),ie="";return z.hasIndices&&(ie+="d"),z.global&&(ie+="g"),z.ignoreCase&&(ie+="i"),z.multiline&&(ie+="m"),z.dotAll&&(ie+="s"),z.unicode&&(ie+="u"),z.sticky&&(ie+="y"),ie}},{"../internals/an-object":101}],226:[function(a,Te,ge){var x=a("../internals/function-call"),z=a("../internals/has-own-property"),ie=a("../internals/object-is-prototype-of"),oe=a("../internals/regexp-flags"),ee=RegExp.prototype;Te.exports=function(ue){var E=ue.flags;return E===void 0&&!("flags"in ee)&&!z(ue,"flags")&&ie(ee,ue)?x(oe,ue):E}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(a,Te,ge){var x=a("../internals/fails"),z=a("../internals/global"),ie=z.RegExp,oe=x(function(){var E=ie("a","y");return E.lastIndex=2,E.exec("abcd")!=null}),ee=oe||x(function(){return!ie("a","y").sticky}),ue=oe||x(function(){var E=ie("^r","gy");return E.lastIndex=2,E.exec("str")!=null});Te.exports={BROKEN_CARET:ue,MISSED_STICKY:ee,UNSUPPORTED_Y:oe}},{"../internals/fails":150,"../internals/global":163}],228:[function(a,Te,ge){var x=a("../internals/fails"),z=a("../internals/global"),ie=z.RegExp;Te.exports=x(function(){var oe=ie(".","s");return!(oe.dotAll&&oe.exec(`
`)&&oe.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(a,Te,ge){var x=a("../internals/fails"),z=a("../internals/global"),ie=z.RegExp;Te.exports=x(function(){var oe=ie("(?<a>b)","g");return oe.exec("b").groups.a!=="b"||"b".replace(oe,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(a,Te,ge){var x=a("../internals/global"),z=x.TypeError;Te.exports=function(ie){if(ie==null)throw z("Can't call method on "+ie);return ie}},{"../internals/global":163}],231:[function(a,Te,ge){Te.exports=Object.is||function(z,ie){return z===ie?z!==0||1/z===1/ie:z!=z&&ie!=ie}},{}],232:[function(a,Te,ge){var x=a("../internals/global"),z=Object.defineProperty;Te.exports=function(ie,oe){try{z(x,ie,{value:oe,configurable:!0,writable:!0})}catch(ee){x[ie]=oe}return oe}},{"../internals/global":163}],233:[function(a,Te,ge){"use strict";var x=a("../internals/get-built-in"),z=a("../internals/object-define-property"),ie=a("../internals/well-known-symbol"),oe=a("../internals/descriptors"),ee=ie("species");Te.exports=function(ue){var E=x(ue),re=z.f;oe&&E&&!E[ee]&&re(E,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(a,Te,ge){var x=a("../internals/object-define-property").f,z=a("../internals/has-own-property"),ie=a("../internals/well-known-symbol"),oe=ie("toStringTag");Te.exports=function(ee,ue,E){ee&&!E&&(ee=ee.prototype),ee&&!z(ee,oe)&&x(ee,oe,{configurable:!0,value:ue})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(a,Te,ge){var x=a("../internals/shared"),z=a("../internals/uid"),ie=x("keys");Te.exports=function(oe){return ie[oe]||(ie[oe]=z(oe))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/set-global"),ie="__core-js_shared__",oe=x[ie]||z(ie,{});Te.exports=oe},{"../internals/global":163,"../internals/set-global":232}],237:[function(a,Te,ge){var x=a("../internals/is-pure"),z=a("../internals/shared-store");(Te.exports=function(ie,oe){return z[ie]||(z[ie]=oe!==void 0?oe:{})})("versions",[]).push({version:"3.22.1",mode:x?"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(a,Te,ge){var x=a("../internals/an-object"),z=a("../internals/a-constructor"),ie=a("../internals/well-known-symbol"),oe=ie("species");Te.exports=function(ee,ue){var E=x(ee).constructor,re;return E===void 0||(re=x(E)[oe])==null?ue:z(re)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(a,Te,ge){var x=a("../internals/function-uncurry-this"),z=a("../internals/to-integer-or-infinity"),ie=a("../internals/to-string"),oe=a("../internals/require-object-coercible"),ee=x("".charAt),ue=x("".charCodeAt),E=x("".slice),re=function(te){return function(se,ae){var he=ie(oe(se)),me=z(ae),ve=he.length,pe,be;return me<0||me>=ve?te?"":void 0:(pe=ue(he,me),pe<55296||pe>56319||me+1===ve||(be=ue(he,me+1))<56320||be>57343?te?ee(he,me):pe:te?E(he,me,me+2):(pe-55296<<10)+(be-56320)+65536)}};Te.exports={codeAt:re(!1),charAt:re(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(a,Te,ge){var x=a("../internals/function-name").PROPER,z=a("../internals/fails"),ie=a("../internals/whitespaces"),oe="\u200B\x85\u180E";Te.exports=function(ee){return z(function(){return!!ie[ee]()||oe[ee]()!==oe||x&&ie[ee].name!==ee})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(a,Te,ge){var x=a("../internals/function-uncurry-this"),z=a("../internals/require-object-coercible"),ie=a("../internals/to-string"),oe=a("../internals/whitespaces"),ee=x("".replace),ue="["+oe+"]",E=RegExp("^"+ue+ue+"*"),re=RegExp(ue+ue+"*$"),te=function(se){return function(ae){var he=ie(z(ae));return se&1&&(he=ee(he,E,"")),se&2&&(he=ee(he,re,"")),he}};Te.exports={start:te(1),end:te(2),trim:te(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(a,Te,ge){var x=a("../internals/function-call"),z=a("../internals/get-built-in"),ie=a("../internals/well-known-symbol"),oe=a("../internals/redefine");Te.exports=function(){var ee=z("Symbol"),ue=ee&&ee.prototype,E=ue&&ue.valueOf,re=ie("toPrimitive");ue&&!ue[re]&&oe(ue,re,function(te){return x(E,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/function-apply"),ie=a("../internals/function-bind-context"),oe=a("../internals/is-callable"),ee=a("../internals/has-own-property"),ue=a("../internals/fails"),E=a("../internals/html"),re=a("../internals/array-slice"),te=a("../internals/document-create-element"),se=a("../internals/validate-arguments-length"),ae=a("../internals/engine-is-ios"),he=a("../internals/engine-is-node"),me=x.setImmediate,ve=x.clearImmediate,pe=x.process,be=x.Dispatch,je=x.Function,ke=x.MessageChannel,Be=x.String,De=0,Se={},Ee="onreadystatechange",Ie,Me,Le,Ae;try{Ie=x.location}catch(st){}var Pe=function(st){if(ee(Se,st)){var _e=Se[st];delete Se[st],_e()}},Ue=function(st){return function(){Pe(st)}},He=function(st){Pe(st.data)},Je=function(st){x.postMessage(Be(st),Ie.protocol+"//"+Ie.host)};(!me||!ve)&&(me=function(_e){se(arguments.length,1);var Ke=oe(_e)?_e:je(_e),nt=re(arguments,1);return Se[++De]=function(){z(Ke,void 0,nt)},Me(De),De},ve=function(_e){delete Se[_e]},he?Me=function(st){pe.nextTick(Ue(st))}:be&&be.now?Me=function(st){be.now(Ue(st))}:ke&&!ae?(Le=new ke,Ae=Le.port2,Le.port1.onmessage=He,Me=ie(Ae.postMessage,Ae)):x.addEventListener&&oe(x.postMessage)&&!x.importScripts&&Ie&&Ie.protocol!=="file:"&&!ue(Je)?(Me=Je,x.addEventListener("message",He,!1)):Ee in te("script")?Me=function(st){E.appendChild(te("script"))[Ee]=function(){E.removeChild(this),Pe(st)}}:Me=function(st){setTimeout(Ue(st),0)}),Te.exports={set:me,clear:ve}},{"../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(a,Te,ge){var x=a("../internals/function-uncurry-this");Te.exports=x(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(a,Te,ge){var x=a("../internals/to-integer-or-infinity"),z=Math.max,ie=Math.min;Te.exports=function(oe,ee){var ue=x(oe);return ue<0?z(ue+ee,0):ie(ue,ee)}},{"../internals/to-integer-or-infinity":248}],246:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/to-integer-or-infinity"),ie=a("../internals/to-length"),oe=x.RangeError;Te.exports=function(ee){if(ee===void 0)return 0;var ue=z(ee),E=ie(ue);if(ue!==E)throw oe("Wrong length or index");return E}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(a,Te,ge){var x=a("../internals/indexed-object"),z=a("../internals/require-object-coercible");Te.exports=function(ie){return x(z(ie))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(a,Te,ge){var x=Math.ceil,z=Math.floor;Te.exports=function(ie){var oe=+ie;return oe!==oe||oe===0?0:(oe>0?z:x)(oe)}},{}],249:[function(a,Te,ge){var x=a("../internals/to-integer-or-infinity"),z=Math.min;Te.exports=function(ie){return ie>0?z(x(ie),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/require-object-coercible"),ie=x.Object;Te.exports=function(oe){return ie(z(oe))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/to-positive-integer"),ie=x.RangeError;Te.exports=function(oe,ee){var ue=z(oe);if(ue%ee)throw ie("Wrong offset");return ue}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/to-integer-or-infinity"),ie=x.RangeError;Te.exports=function(oe){var ee=z(oe);if(ee<0)throw ie("The argument can't be less than 0");return ee}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/function-call"),ie=a("../internals/is-object"),oe=a("../internals/is-symbol"),ee=a("../internals/get-method"),ue=a("../internals/ordinary-to-primitive"),E=a("../internals/well-known-symbol"),re=x.TypeError,te=E("toPrimitive");Te.exports=function(se,ae){if(!ie(se)||oe(se))return se;var he=ee(se,te),me;if(he){if(ae===void 0&&(ae="default"),me=z(he,se,ae),!ie(me)||oe(me))return me;throw re("Can't convert object to primitive value")}return ae===void 0&&(ae="number"),ue(se,ae)}},{"../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(a,Te,ge){var x=a("../internals/to-primitive"),z=a("../internals/is-symbol");Te.exports=function(ie){var oe=x(ie,"string");return z(oe)?oe:oe+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(a,Te,ge){var x=a("../internals/well-known-symbol"),z=x("toStringTag"),ie={};ie[z]="z",Te.exports=String(ie)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/classof"),ie=x.String;Te.exports=function(oe){if(z(oe)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ie(oe)}},{"../internals/classof":124,"../internals/global":163}],257:[function(a,Te,ge){var x=a("../internals/global"),z=x.String;Te.exports=function(ie){try{return z(ie)}catch(oe){return"Object"}}},{"../internals/global":163}],258:[function(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/global"),ie=a("../internals/function-call"),oe=a("../internals/descriptors"),ee=a("../internals/typed-array-constructors-require-wrappers"),ue=a("../internals/array-buffer-view-core"),E=a("../internals/array-buffer"),re=a("../internals/an-instance"),te=a("../internals/create-property-descriptor"),se=a("../internals/create-non-enumerable-property"),ae=a("../internals/is-integral-number"),he=a("../internals/to-length"),me=a("../internals/to-index"),ve=a("../internals/to-offset"),pe=a("../internals/to-property-key"),be=a("../internals/has-own-property"),je=a("../internals/classof"),ke=a("../internals/is-object"),Be=a("../internals/is-symbol"),De=a("../internals/object-create"),Se=a("../internals/object-is-prototype-of"),Ee=a("../internals/object-set-prototype-of"),Ie=a("../internals/object-get-own-property-names").f,Me=a("../internals/typed-array-from"),Le=a("../internals/array-iteration").forEach,Ae=a("../internals/set-species"),Pe=a("../internals/object-define-property"),Ue=a("../internals/object-get-own-property-descriptor"),He=a("../internals/internal-state"),Je=a("../internals/inherit-if-required"),st=He.get,_e=He.set,Ke=Pe.f,nt=Ue.f,rt=Math.round,et=z.RangeError,Ve=E.ArrayBuffer,Ye=Ve.prototype,Ge=E.DataView,it=ue.NATIVE_ARRAY_BUFFER_VIEWS,qe=ue.TYPED_ARRAY_CONSTRUCTOR,vt=ue.TYPED_ARRAY_TAG,ot=ue.TypedArray,Qe=ue.TypedArrayPrototype,Fe=ue.aTypedArrayConstructor,Re=ue.isTypedArray,ne="BYTES_PER_ELEMENT",fe="Wrong length",Ne=function(Ze,Xe){Fe(Ze);for(var at=0,lt=Xe.length,mt=new Ze(lt);lt>at;)mt[at]=Xe[at++];return mt},We=function(Ze,Xe){Ke(Ze,Xe,{get:function(){return st(this)[Xe]}})},we=function(Ze){var Xe;return Se(Ye,Ze)||(Xe=je(Ze))=="ArrayBuffer"||Xe=="SharedArrayBuffer"},ye=function(Ze,Xe){return Re(Ze)&&!Be(Xe)&&Xe in Ze&&ae(+Xe)&&Xe>=0},Oe=function(Xe,at){return at=pe(at),ye(Xe,at)?te(2,Xe[at]):nt(Xe,at)},$e=function(Xe,at,lt){return at=pe(at),ye(Xe,at)&&ke(lt)&&be(lt,"value")&&!be(lt,"get")&&!be(lt,"set")&&!lt.configurable&&(!be(lt,"writable")||lt.writable)&&(!be(lt,"enumerable")||lt.enumerable)?(Xe[at]=lt.value,Xe):Ke(Xe,at,lt)};oe?(it||(Ue.f=Oe,Pe.f=$e,We(Qe,"buffer"),We(Qe,"byteOffset"),We(Qe,"byteLength"),We(Qe,"length")),x({target:"Object",stat:!0,forced:!it},{getOwnPropertyDescriptor:Oe,defineProperty:$e}),Te.exports=function(Ze,Xe,at){var lt=Ze.match(/\d+$/)[0]/8,mt=Ze+(at?"Clamped":"")+"Array",ut="get"+Ze,ct="set"+Ze,Pt=z[mt],wt=Pt,Bt=wt&&wt.prototype,At={},pt=function(xt,It){var Ut=st(xt);return Ut.view[ut](It*lt+Ut.byteOffset,!0)},Mt=function(xt,It,Ut){var en=st(xt);at&&(Ut=(Ut=rt(Ut))<0?0:Ut>255?255:Ut&255),en.view[ct](It*lt+en.byteOffset,Ut,!0)},kt=function(xt,It){Ke(xt,It,{get:function(){return pt(this,It)},set:function(Ut){return Mt(this,It,Ut)},enumerable:!0})};it?ee&&(wt=Xe(function(xt,It,Ut,en){return re(xt,Bt),Je(function(){return ke(It)?we(It)?en!==void 0?new Pt(It,ve(Ut,lt),en):Ut!==void 0?new Pt(It,ve(Ut,lt)):new Pt(It):Re(It)?Ne(wt,It):ie(Me,wt,It):new Pt(me(It))}(),xt,wt)}),Ee&&Ee(wt,ot),Le(Ie(Pt),function(xt){xt in wt||se(wt,xt,Pt[xt])}),wt.prototype=Bt):(wt=Xe(function(xt,It,Ut,en){re(xt,Bt);var St=0,jt=0,Ht,Qt,sn;if(!ke(It))sn=me(It),Qt=sn*lt,Ht=new Ve(Qt);else if(we(It)){Ht=It,jt=ve(Ut,lt);var wn=It.byteLength;if(en===void 0){if(wn%lt||(Qt=wn-jt,Qt<0))throw et(fe)}else if(Qt=he(en)*lt,Qt+jt>wn)throw et(fe);sn=Qt/lt}else return Re(It)?Ne(wt,It):ie(Me,wt,It);for(_e(xt,{buffer:Ht,byteOffset:jt,byteLength:Qt,length:sn,view:new Ge(Ht)});St<sn;)kt(xt,St++)}),Ee&&Ee(wt,ot),Bt=wt.prototype=De(Qe)),Bt.constructor!==wt&&se(Bt,"constructor",wt),se(Bt,qe,wt),vt&&se(Bt,vt,mt),At[mt]=wt,x({global:!0,forced:wt!=Pt,sham:!it},At),ne in wt||se(wt,ne,lt),ne in Bt||se(Bt,ne,lt),Ae(mt)}):Te.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(a,Te,ge){var x=a("../internals/global"),z=a("../internals/fails"),ie=a("../internals/check-correctness-of-iteration"),oe=a("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,ee=x.ArrayBuffer,ue=x.Int8Array;Te.exports=!oe||!z(function(){ue(1)})||!z(function(){new ue(-1)})||!ie(function(E){new ue,new ue(null),new ue(1.5),new ue(E)},!0)||z(function(){return new ue(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(a,Te,ge){var x=a("../internals/array-from-constructor-and-list"),z=a("../internals/typed-array-species-constructor");Te.exports=function(ie,oe){return x(z(ie),oe)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(a,Te,ge){var x=a("../internals/function-bind-context"),z=a("../internals/function-call"),ie=a("../internals/a-constructor"),oe=a("../internals/to-object"),ee=a("../internals/length-of-array-like"),ue=a("../internals/get-iterator"),E=a("../internals/get-iterator-method"),re=a("../internals/is-array-iterator-method"),te=a("../internals/array-buffer-view-core").aTypedArrayConstructor;Te.exports=function(ae){var he=ie(this),me=oe(ae),ve=arguments.length,pe=ve>1?arguments[1]:void 0,be=pe!==void 0,je=E(me),ke,Be,De,Se,Ee,Ie;if(je&&!re(je))for(Ee=ue(me,je),Ie=Ee.next,me=[];!(Se=z(Ie,Ee)).done;)me.push(Se.value);for(be&&ve>2&&(pe=x(pe,arguments[2])),Be=ee(me),De=new(te(he))(Be),ke=0;Be>ke;ke++)De[ke]=be?pe(me[ke],ke):me[ke];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(a,Te,ge){var x=a("../internals/array-buffer-view-core"),z=a("../internals/species-constructor"),ie=x.TYPED_ARRAY_CONSTRUCTOR,oe=x.aTypedArrayConstructor;Te.exports=function(ee){return oe(z(ee,ee[ie]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(a,Te,ge){var x=a("../internals/function-uncurry-this"),z=0,ie=Math.random(),oe=x(1 .toString);Te.exports=function(ee){return"Symbol("+(ee===void 0?"":ee)+")_"+oe(++z+ie,36)}},{"../internals/function-uncurry-this":157}],264:[function(a,Te,ge){var x=a("../internals/native-symbol");Te.exports=x&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(a,Te,ge){var x=a("../internals/descriptors"),z=a("../internals/fails");Te.exports=x&&z(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(a,Te,ge){var x=a("../internals/global"),z=x.TypeError;Te.exports=function(ie,oe){if(ie<oe)throw z("Not enough arguments");return ie}},{"../internals/global":163}],267:[function(a,Te,ge){var x=a("../internals/well-known-symbol");ge.f=x},{"../internals/well-known-symbol":268}],268:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/shared"),ie=a("../internals/has-own-property"),oe=a("../internals/uid"),ee=a("../internals/native-symbol"),ue=a("../internals/use-symbol-as-uid"),E=z("wks"),re=x.Symbol,te=re&&re.for,se=ue?re:re&&re.withoutSetter||oe;Te.exports=function(ae){if(!ie(E,ae)||!(ee||typeof E[ae]=="string")){var he="Symbol."+ae;ee&&ie(re,ae)?E[ae]=re[ae]:ue&&te?E[ae]=te(he):E[ae]=se(he)}return E[ae]}},{"../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(a,Te,ge){Te.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(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/global"),ie=a("../internals/array-buffer"),oe=a("../internals/set-species"),ee="ArrayBuffer",ue=ie[ee],E=z[ee];x({global:!0,forced:E!==ue},{ArrayBuffer:ue}),oe(ee)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/function-uncurry-this"),ie=a("../internals/fails"),oe=a("../internals/array-buffer"),ee=a("../internals/an-object"),ue=a("../internals/to-absolute-index"),E=a("../internals/to-length"),re=a("../internals/species-constructor"),te=oe.ArrayBuffer,se=oe.DataView,ae=se.prototype,he=z(te.prototype.slice),me=z(ae.getUint8),ve=z(ae.setUint8),pe=ie(function(){return!new te(2).slice(1,void 0).byteLength});x({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:pe},{slice:function(je,ke){if(he&&ke===void 0)return he(ee(this),je);for(var Be=ee(this).byteLength,De=ue(je,Be),Se=ue(ke===void 0?Be:ke,Be),Ee=new(re(this,te))(E(Se-De)),Ie=new se(this),Me=new se(Ee),Le=0;De<Se;)ve(Me,Le++,me(Ie,De++));return Ee}})},{"../internals/an-object":101,"../internals/array-buffer":104,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/species-constructor":238,"../internals/to-absolute-index":245,"../internals/to-length":249}],272:[function(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/global"),ie=a("../internals/fails"),oe=a("../internals/is-array"),ee=a("../internals/is-object"),ue=a("../internals/to-object"),E=a("../internals/length-of-array-like"),re=a("../internals/create-property"),te=a("../internals/array-species-create"),se=a("../internals/array-method-has-species-support"),ae=a("../internals/well-known-symbol"),he=a("../internals/engine-v8-version"),me=ae("isConcatSpreadable"),ve=9007199254740991,pe="Maximum allowed index exceeded",be=z.TypeError,je=he>=51||!ie(function(){var Se=[];return Se[me]=!1,Se.concat()[0]!==Se}),ke=se("concat"),Be=function(Se){if(!ee(Se))return!1;var Ee=Se[me];return Ee!==void 0?!!Ee:oe(Se)},De=!je||!ke;x({target:"Array",proto:!0,forced:De},{concat:function(Ee){var Ie=ue(this),Me=te(Ie,0),Le=0,Ae,Pe,Ue,He,Je;for(Ae=-1,Ue=arguments.length;Ae<Ue;Ae++)if(Je=Ae===-1?Ie:arguments[Ae],Be(Je)){if(He=E(Je),Le+He>ve)throw be(pe);for(Pe=0;Pe<He;Pe++,Le++)Pe in Je&&re(Me,Le,Je[Pe])}else{if(Le>=ve)throw be(pe);re(Me,Le++,Je)}return Me.length=Le,Me}})},{"../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(a,Te,ge){var x=a("../internals/export"),z=a("../internals/array-fill"),ie=a("../internals/add-to-unscopables");x({target:"Array",proto:!0},{fill:z}),ie("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/array-iteration").filter,ie=a("../internals/array-method-has-species-support"),oe=ie("filter");x({target:"Array",proto:!0,forced:!oe},{filter:function(ue){return z(this,ue,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/array-iteration").find,ie=a("../internals/add-to-unscopables"),oe="find",ee=!0;oe in[]&&Array(1)[oe](function(){ee=!1}),x({target:"Array",proto:!0,forced:ee},{find:function(E){return z(this,E,arguments.length>1?arguments[1]:void 0)}}),ie(oe)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(a,Te,ge){var x=a("../internals/export"),z=a("../internals/array-from"),ie=a("../internals/check-correctness-of-iteration"),oe=!ie(function(ee){Array.from(ee)});x({target:"Array",stat:!0,forced:oe},{from:z})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/array-includes").includes,ie=a("../internals/add-to-unscopables");x({target:"Array",proto:!0},{includes:function(ee){return z(this,ee,arguments.length>1?arguments[1]:void 0)}}),ie("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(a,Te,ge){"use strict";var x=a("../internals/to-indexed-object"),z=a("../internals/add-to-unscopables"),ie=a("../internals/iterators"),oe=a("../internals/internal-state"),ee=a("../internals/object-define-property").f,ue=a("../internals/define-iterator"),E=a("../internals/is-pure"),re=a("../internals/descriptors"),te="Array Iterator",se=oe.set,ae=oe.getterFor(te);Te.exports=ue(Array,"Array",function(me,ve){se(this,{type:te,target:x(me),index:0,kind:ve})},function(){var me=ae(this),ve=me.target,pe=me.kind,be=me.index++;return!ve||be>=ve.length?(me.target=void 0,{value:void 0,done:!0}):pe=="keys"?{value:be,done:!1}:pe=="values"?{value:ve[be],done:!1}:{value:[be,ve[be]],done:!1}},"values");var he=ie.Arguments=ie.Array;if(z("keys"),z("values"),z("entries"),!E&&re&&he.name!=="values")try{ee(he,"name",{value:"values"})}catch(me){}},{"../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(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/function-uncurry-this"),ie=a("../internals/indexed-object"),oe=a("../internals/to-indexed-object"),ee=a("../internals/array-method-is-strict"),ue=z([].join),E=ie!=Object,re=ee("join",",");x({target:"Array",proto:!0,forced:E||!re},{join:function(se){return ue(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(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/array-iteration").map,ie=a("../internals/array-method-has-species-support"),oe=ie("map");x({target:"Array",proto:!0,forced:!oe},{map:function(ue){return z(this,ue,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/global"),ie=a("../internals/is-array"),oe=a("../internals/is-constructor"),ee=a("../internals/is-object"),ue=a("../internals/to-absolute-index"),E=a("../internals/length-of-array-like"),re=a("../internals/to-indexed-object"),te=a("../internals/create-property"),se=a("../internals/well-known-symbol"),ae=a("../internals/array-method-has-species-support"),he=a("../internals/array-slice"),me=ae("slice"),ve=se("species"),pe=z.Array,be=Math.max;x({target:"Array",proto:!0,forced:!me},{slice:function(ke,Be){var De=re(this),Se=E(De),Ee=ue(ke,Se),Ie=ue(Be===void 0?Se:Be,Se),Me,Le,Ae;if(ie(De)&&(Me=De.constructor,oe(Me)&&(Me===pe||ie(Me.prototype))?Me=void 0:ee(Me)&&(Me=Me[ve],Me===null&&(Me=void 0)),Me===pe||Me===void 0))return he(De,Ee,Ie);for(Le=new(Me===void 0?pe:Me)(be(Ie-Ee,0)),Ae=0;Ee<Ie;Ee++,Ae++)Ee in De&&te(Le,Ae,De[Ee]);return Le.length=Ae,Le}})},{"../internals/array-method-has-species-support":113,"../internals/array-slice":117,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247,"../internals/well-known-symbol":268}],282:[function(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/function-uncurry-this"),ie=a("../internals/a-callable"),oe=a("../internals/to-object"),ee=a("../internals/length-of-array-like"),ue=a("../internals/to-string"),E=a("../internals/fails"),re=a("../internals/array-sort"),te=a("../internals/array-method-is-strict"),se=a("../internals/engine-ff-version"),ae=a("../internals/engine-is-ie-or-edge"),he=a("../internals/engine-v8-version"),me=a("../internals/engine-webkit-version"),ve=[],pe=z(ve.sort),be=z(ve.push),je=E(function(){ve.sort(void 0)}),ke=E(function(){ve.sort(null)}),Be=te("sort"),De=!E(function(){if(he)return he<70;if(!(se&&se>3)){if(ae)return!0;if(me)return me<603;var Ie="",Me,Le,Ae,Pe;for(Me=65;Me<76;Me++){switch(Le=String.fromCharCode(Me),Me){case 66:case 69:case 70:case 72:Ae=3;break;case 68:case 71:Ae=4;break;default:Ae=2}for(Pe=0;Pe<47;Pe++)ve.push({k:Le+Pe,v:Ae})}for(ve.sort(function(Ue,He){return He.v-Ue.v}),Pe=0;Pe<ve.length;Pe++)Le=ve[Pe].k.charAt(0),Ie.charAt(Ie.length-1)!==Le&&(Ie+=Le);return Ie!=="DGBEFHACIJK"}}),Se=je||!ke||!Be||!De,Ee=function(Ie){return function(Me,Le){return Le===void 0?-1:Me===void 0?1:Ie!==void 0?+Ie(Me,Le)||0:ue(Me)>ue(Le)?1:-1}};x({target:"Array",proto:!0,forced:Se},{sort:function(Me){Me!==void 0&&ie(Me);var Le=oe(this);if(De)return Me===void 0?pe(Le):pe(Le,Me);var Ae=[],Pe=ee(Le),Ue,He;for(He=0;He<Pe;He++)He in Le&&be(Ae,Le[He]);for(re(Ae,Ee(Me)),Ue=Ae.length,He=0;He<Ue;)Le[He]=Ae[He++];for(;He<Pe;)delete Le[He++];return Le}})},{"../internals/a-callable":95,"../internals/array-method-is-strict":114,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-string":256}],283:[function(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/global"),ie=a("../internals/to-absolute-index"),oe=a("../internals/to-integer-or-infinity"),ee=a("../internals/length-of-array-like"),ue=a("../internals/to-object"),E=a("../internals/array-species-create"),re=a("../internals/create-property"),te=a("../internals/array-method-has-species-support"),se=te("splice"),ae=z.TypeError,he=Math.max,me=Math.min,ve=9007199254740991,pe="Maximum allowed length exceeded";x({target:"Array",proto:!0,forced:!se},{splice:function(je,ke){var Be=ue(this),De=ee(Be),Se=ie(je,De),Ee=arguments.length,Ie,Me,Le,Ae,Pe,Ue;if(Ee===0?Ie=Me=0:Ee===1?(Ie=0,Me=De-Se):(Ie=Ee-2,Me=me(he(oe(ke),0),De-Se)),De+Ie-Me>ve)throw ae(pe);for(Le=E(Be,Me),Ae=0;Ae<Me;Ae++)Pe=Se+Ae,Pe in Be&&re(Le,Ae,Be[Pe]);if(Le.length=Me,Ie<Me){for(Ae=Se;Ae<De-Me;Ae++)Pe=Ae+Me,Ue=Ae+Ie,Pe in Be?Be[Ue]=Be[Pe]:delete Be[Ue];for(Ae=De;Ae>De-Me+Ie;Ae--)delete Be[Ae-1]}else if(Ie>Me)for(Ae=De-Me;Ae>Se;Ae--)Pe=Ae+Me-1,Ue=Ae+Ie-1,Pe in Be?Be[Ue]=Be[Pe]:delete Be[Ue];for(Ae=0;Ae<Ie;Ae++)Be[Ae+Se]=arguments[Ae+2];return Be.length=De-Me+Ie,Le}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-integer-or-infinity":248,"../internals/to-object":250}],284:[function(a,Te,ge){var x=a("../internals/descriptors"),z=a("../internals/function-name").EXISTS,ie=a("../internals/function-uncurry-this"),oe=a("../internals/object-define-property").f,ee=Function.prototype,ue=ie(ee.toString),E=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,re=ie(E.exec),te="name";x&&!z&&oe(ee,te,{configurable:!0,get:function(){try{return re(E,ue(this))[1]}catch(se){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(a,Te,ge){var x=a("../internals/export"),z=a("../internals/get-built-in"),ie=a("../internals/function-apply"),oe=a("../internals/function-call"),ee=a("../internals/function-uncurry-this"),ue=a("../internals/fails"),E=a("../internals/is-array"),re=a("../internals/is-callable"),te=a("../internals/is-object"),se=a("../internals/is-symbol"),ae=a("../internals/array-slice"),he=a("../internals/native-symbol"),me=z("JSON","stringify"),ve=ee(/./.exec),pe=ee("".charAt),be=ee("".charCodeAt),je=ee("".replace),ke=ee(1 .toString),Be=/[\uD800-\uDFFF]/g,De=/^[\uD800-\uDBFF]$/,Se=/^[\uDC00-\uDFFF]$/,Ee=!he||ue(function(){var Ae=z("Symbol")();return me([Ae])!="[null]"||me({a:Ae})!="{}"||me(Object(Ae))!="{}"}),Ie=ue(function(){return me("\uDF06\uD834")!=='"\\udf06\\ud834"'||me("\uDEAD")!=='"\\udead"'}),Me=function(Ae,Pe){var Ue=ae(arguments),He=Pe;if(!(!te(Pe)&&Ae===void 0||se(Ae)))return E(Pe)||(Pe=function(Je,st){if(re(He)&&(st=oe(He,this,Je,st)),!se(st))return st}),Ue[1]=Pe,ie(me,null,Ue)},Le=function(Ae,Pe,Ue){var He=pe(Ue,Pe-1),Je=pe(Ue,Pe+1);return ve(De,Ae)&&!ve(Se,Je)||ve(Se,Ae)&&!ve(De,He)?"\\u"+ke(be(Ae,0),16):Ae};me&&x({target:"JSON",stat:!0,forced:Ee||Ie},{stringify:function(Pe,Ue,He){var Je=ae(arguments),st=ie(Ee?Me:me,null,Je);return Ie&&typeof st=="string"?je(st,Be,Le):st}})},{"../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(a,Te,ge){"use strict";var x=a("../internals/descriptors"),z=a("../internals/global"),ie=a("../internals/function-uncurry-this"),oe=a("../internals/is-forced"),ee=a("../internals/redefine"),ue=a("../internals/has-own-property"),E=a("../internals/inherit-if-required"),re=a("../internals/object-is-prototype-of"),te=a("../internals/is-symbol"),se=a("../internals/to-primitive"),ae=a("../internals/fails"),he=a("../internals/object-get-own-property-names").f,me=a("../internals/object-get-own-property-descriptor").f,ve=a("../internals/object-define-property").f,pe=a("../internals/this-number-value"),be=a("../internals/string-trim").trim,je="Number",ke=z[je],Be=ke.prototype,De=z.TypeError,Se=ie("".slice),Ee=ie("".charCodeAt),Ie=function(He){var Je=se(He,"number");return typeof Je=="bigint"?Je:Me(Je)},Me=function(He){var Je=se(He,"number"),st,_e,Ke,nt,rt,et,Ve,Ye;if(te(Je))throw De("Cannot convert a Symbol value to a number");if(typeof Je=="string"&&Je.length>2){if(Je=be(Je),st=Ee(Je,0),st===43||st===45){if(_e=Ee(Je,2),_e===88||_e===120)return NaN}else if(st===48){switch(Ee(Je,1)){case 66:case 98:Ke=2,nt=49;break;case 79:case 111:Ke=8,nt=55;break;default:return+Je}for(rt=Se(Je,2),et=rt.length,Ve=0;Ve<et;Ve++)if(Ye=Ee(rt,Ve),Ye<48||Ye>nt)return NaN;return parseInt(rt,Ke)}}return+Je};if(oe(je,!ke(" 0o1")||!ke("0b1")||ke("+0x1"))){for(var Le=function(Je){var st=arguments.length<1?0:ke(Ie(Je)),_e=this;return re(Be,_e)&&ae(function(){pe(_e)})?E(Object(st),_e,Le):st},Ae=x?he(ke):"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(","),Pe=0,Ue;Ae.length>Pe;Pe++)ue(ke,Ue=Ae[Pe])&&!ue(Le,Ue)&&ve(Le,Ue,me(ke,Ue));Le.prototype=Be,Be.constructor=Le,ee(z,je,Le)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(a,Te,ge){var x=a("../internals/export"),z=a("../internals/object-assign");x({target:"Object",stat:!0,forced:Object.assign!==z},{assign:z})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(a,Te,ge){var x=a("../internals/export"),z=a("../internals/object-to-array").entries;x({target:"Object",stat:!0},{entries:function(oe){return z(oe)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(a,Te,ge){var x=a("../internals/export"),z=a("../internals/native-symbol"),ie=a("../internals/fails"),oe=a("../internals/object-get-own-property-symbols"),ee=a("../internals/to-object"),ue=!z||ie(function(){oe.f(1)});x({target:"Object",stat:!0,forced:ue},{getOwnPropertySymbols:function(re){var te=oe.f;return te?te(ee(re)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(a,Te,ge){var x=a("../internals/export"),z=a("../internals/to-object"),ie=a("../internals/object-keys"),oe=a("../internals/fails"),ee=oe(function(){ie(1)});x({target:"Object",stat:!0,forced:ee},{keys:function(E){return ie(z(E))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(a,Te,ge){var x=a("../internals/to-string-tag-support"),z=a("../internals/redefine"),ie=a("../internals/object-to-string");x||z(Object.prototype,"toString",ie,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/function-call"),ie=a("../internals/a-callable"),oe=a("../internals/new-promise-capability"),ee=a("../internals/perform"),ue=a("../internals/iterate"),E=a("../internals/promise-statics-incorrect-iteration");x({target:"Promise",stat:!0,forced:E},{all:function(te){var se=this,ae=oe.f(se),he=ae.resolve,me=ae.reject,ve=ee(function(){var pe=ie(se.resolve),be=[],je=0,ke=1;ue(te,function(Be){var De=je++,Se=!1;ke++,z(pe,se,Be).then(function(Ee){Se||(Se=!0,be[De]=Ee,--ke||he(be))},me)}),--ke||he(be)});return ve.error&&me(ve.value),ae.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(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/is-pure"),ie=a("../internals/promise-constructor-detection").CONSTRUCTOR,oe=a("../internals/promise-native-constructor"),ee=a("../internals/get-built-in"),ue=a("../internals/is-callable"),E=a("../internals/redefine"),re=oe&&oe.prototype;if(x({target:"Promise",proto:!0,forced:ie,real:!0},{catch:function(se){return this.then(void 0,se)}}),!z&&ue(oe)){var te=ee("Promise").prototype.catch;re.catch!==te&&E(re,"catch",te,{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(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/is-pure"),ie=a("../internals/engine-is-node"),oe=a("../internals/global"),ee=a("../internals/function-call"),ue=a("../internals/redefine"),E=a("../internals/redefine-all"),re=a("../internals/object-set-prototype-of"),te=a("../internals/set-to-string-tag"),se=a("../internals/set-species"),ae=a("../internals/a-callable"),he=a("../internals/is-callable"),me=a("../internals/is-object"),ve=a("../internals/an-instance"),pe=a("../internals/species-constructor"),be=a("../internals/task").set,je=a("../internals/microtask"),ke=a("../internals/host-report-errors"),Be=a("../internals/perform"),De=a("../internals/queue"),Se=a("../internals/internal-state"),Ee=a("../internals/promise-native-constructor"),Ie=a("../internals/promise-constructor-detection"),Me=a("../internals/new-promise-capability"),Le="Promise",Ae=Ie.CONSTRUCTOR,Pe=Ie.REJECTION_EVENT,Ue=Ie.SUBCLASSING,He=Se.getterFor(Le),Je=Se.set,st=Ee&&Ee.prototype,_e=Ee,Ke=st,nt=oe.TypeError,rt=oe.document,et=oe.process,Ve=Me.f,Ye=Ve,Ge=!!(rt&&rt.createEvent&&oe.dispatchEvent),it="unhandledrejection",qe="rejectionhandled",vt=0,ot=1,Qe=2,Fe=1,Re=2,ne,fe,Ne,We,we=function(ct){var Pt;return me(ct)&&he(Pt=ct.then)?Pt:!1},ye=function(ct,Pt){var wt=Pt.value,Bt=Pt.state==ot,At=Bt?ct.ok:ct.fail,pt=ct.resolve,Mt=ct.reject,kt=ct.domain,xt,It,Ut;try{At?(Bt||(Pt.rejection===Re&&at(Pt),Pt.rejection=Fe),At===!0?xt=wt:(kt&&kt.enter(),xt=At(wt),kt&&(kt.exit(),Ut=!0)),xt===ct.promise?Mt(nt("Promise-chain cycle")):(It=we(xt))?ee(It,xt,pt,Mt):pt(xt)):Mt(wt)}catch(en){kt&&!Ut&&kt.exit(),Mt(en)}},Oe=function(ct,Pt){ct.notified||(ct.notified=!0,je(function(){for(var wt=ct.reactions,Bt;Bt=wt.get();)ye(Bt,ct);ct.notified=!1,Pt&&!ct.rejection&&Ze(ct)}))},$e=function(ct,Pt,wt){var Bt,At;Ge?(Bt=rt.createEvent("Event"),Bt.promise=Pt,Bt.reason=wt,Bt.initEvent(ct,!1,!0),oe.dispatchEvent(Bt)):Bt={promise:Pt,reason:wt},!Pe&&(At=oe["on"+ct])?At(Bt):ct===it&&ke("Unhandled promise rejection",wt)},Ze=function(ct){ee(be,oe,function(){var Pt=ct.facade,wt=ct.value,Bt=Xe(ct),At;if(Bt&&(At=Be(function(){ie?et.emit("unhandledRejection",wt,Pt):$e(it,Pt,wt)}),ct.rejection=ie||Xe(ct)?Re:Fe,At.error))throw At.value})},Xe=function(ct){return ct.rejection!==Fe&&!ct.parent},at=function(ct){ee(be,oe,function(){var Pt=ct.facade;ie?et.emit("rejectionHandled",Pt):$e(qe,Pt,ct.value)})},lt=function(ct,Pt,wt){return function(Bt){ct(Pt,Bt,wt)}},mt=function(ct,Pt,wt){ct.done||(ct.done=!0,wt&&(ct=wt),ct.value=Pt,ct.state=Qe,Oe(ct,!0))},ut=function(ct,Pt,wt){if(!ct.done){ct.done=!0,wt&&(ct=wt);try{if(ct.facade===Pt)throw nt("Promise can't be resolved itself");var Bt=we(Pt);Bt?je(function(){var At={done:!1};try{ee(Bt,Pt,lt(ut,At,ct),lt(mt,At,ct))}catch(pt){mt(At,pt,ct)}}):(ct.value=Pt,ct.state=ot,Oe(ct,!1))}catch(At){mt({done:!1},At,ct)}}};if(Ae&&(_e=function(Pt){ve(this,Ke),ae(Pt),ee(ne,this);var wt=He(this);try{Pt(lt(ut,wt),lt(mt,wt))}catch(Bt){mt(wt,Bt)}},Ke=_e.prototype,ne=function(Pt){Je(this,{type:Le,done:!1,notified:!1,parent:!1,reactions:new De,rejection:!1,state:vt,value:void 0})},ne.prototype=E(Ke,{then:function(Pt,wt){var Bt=He(this),At=Ve(pe(this,_e));return Bt.parent=!0,At.ok=he(Pt)?Pt:!0,At.fail=he(wt)&&wt,At.domain=ie?et.domain:void 0,Bt.state==vt?Bt.reactions.add(At):je(function(){ye(At,Bt)}),At.promise}}),fe=function(){var ct=new ne,Pt=He(ct);this.promise=ct,this.resolve=lt(ut,Pt),this.reject=lt(mt,Pt)},Me.f=Ve=function(ct){return ct===_e||ct===Ne?new fe(ct):Ye(ct)},!z&&he(Ee)&&st!==Object.prototype)){We=st.then,Ue||ue(st,"then",function(Pt,wt){var Bt=this;return new _e(function(At,pt){ee(We,Bt,At,pt)}).then(Pt,wt)},{unsafe:!0});try{delete st.constructor}catch(ct){}re&&re(st,Ke)}x({global:!0,wrap:!0,forced:Ae},{Promise:_e}),te(_e,Le,!1,!0),se(Le)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(a,Te,ge){a("../modules/es.promise.constructor"),a("../modules/es.promise.all"),a("../modules/es.promise.catch"),a("../modules/es.promise.race"),a("../modules/es.promise.reject"),a("../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(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/function-call"),ie=a("../internals/a-callable"),oe=a("../internals/new-promise-capability"),ee=a("../internals/perform"),ue=a("../internals/iterate"),E=a("../internals/promise-statics-incorrect-iteration");x({target:"Promise",stat:!0,forced:E},{race:function(te){var se=this,ae=oe.f(se),he=ae.reject,me=ee(function(){var ve=ie(se.resolve);ue(te,function(pe){z(ve,se,pe).then(ae.resolve,he)})});return me.error&&he(me.value),ae.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(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/function-call"),ie=a("../internals/new-promise-capability"),oe=a("../internals/promise-constructor-detection").CONSTRUCTOR;x({target:"Promise",stat:!0,forced:oe},{reject:function(ue){var E=ie.f(this);return z(E.reject,void 0,ue),E.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/get-built-in"),ie=a("../internals/is-pure"),oe=a("../internals/promise-native-constructor"),ee=a("../internals/promise-constructor-detection").CONSTRUCTOR,ue=a("../internals/promise-resolve"),E=z("Promise"),re=ie&&!ee;x({target:"Promise",stat:!0,forced:ie||ee},{resolve:function(se){return ue(re&&this===E?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(a,Te,ge){var x=a("../internals/descriptors"),z=a("../internals/global"),ie=a("../internals/function-uncurry-this"),oe=a("../internals/is-forced"),ee=a("../internals/inherit-if-required"),ue=a("../internals/create-non-enumerable-property"),E=a("../internals/object-get-own-property-names").f,re=a("../internals/object-is-prototype-of"),te=a("../internals/is-regexp"),se=a("../internals/to-string"),ae=a("../internals/regexp-get-flags"),he=a("../internals/regexp-sticky-helpers"),me=a("../internals/proxy-accessor"),ve=a("../internals/redefine"),pe=a("../internals/fails"),be=a("../internals/has-own-property"),je=a("../internals/internal-state").enforce,ke=a("../internals/set-species"),Be=a("../internals/well-known-symbol"),De=a("../internals/regexp-unsupported-dot-all"),Se=a("../internals/regexp-unsupported-ncg"),Ee=Be("match"),Ie=z.RegExp,Me=Ie.prototype,Le=z.SyntaxError,Ae=ie(Me.exec),Pe=ie("".charAt),Ue=ie("".replace),He=ie("".indexOf),Je=ie("".slice),st=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,_e=/a/g,Ke=/a/g,nt=new Ie(_e)!==_e,rt=he.MISSED_STICKY,et=he.UNSUPPORTED_Y,Ve=x&&(!nt||rt||De||Se||pe(function(){return Ke[Ee]=!1,Ie(_e)!=_e||Ie(Ke)==Ke||Ie(_e,"i")!="/a/i"})),Ye=function(ot){for(var Qe=ot.length,Fe=0,Re="",ne=!1,fe;Fe<=Qe;Fe++){if(fe=Pe(ot,Fe),fe==="\\"){Re+=fe+Pe(ot,++Fe);continue}!ne&&fe==="."?Re+="[\\s\\S]":(fe==="["?ne=!0:fe==="]"&&(ne=!1),Re+=fe)}return Re},Ge=function(ot){for(var Qe=ot.length,Fe=0,Re="",ne=[],fe={},Ne=!1,We=!1,we=0,ye="",Oe;Fe<=Qe;Fe++){if(Oe=Pe(ot,Fe),Oe==="\\")Oe=Oe+Pe(ot,++Fe);else if(Oe==="]")Ne=!1;else if(!Ne)switch(!0){case Oe==="[":Ne=!0;break;case Oe==="(":Ae(st,Je(ot,Fe+1))&&(Fe+=2,We=!0),Re+=Oe,we++;continue;case(Oe===">"&&We):if(ye===""||be(fe,ye))throw new Le("Invalid capture group name");fe[ye]=!0,ne[ne.length]=[ye,we],We=!1,ye="";continue}We?ye+=Oe:Re+=Oe}return[Re,ne]};if(oe("RegExp",Ve)){for(var it=function(Qe,Fe){var Re=re(Me,this),ne=te(Qe),fe=Fe===void 0,Ne=[],We=Qe,we,ye,Oe,$e,Ze,Xe;if(!Re&&ne&&fe&&Qe.constructor===it)return Qe;if((ne||re(Me,Qe))&&(Qe=Qe.source,fe&&(Fe=ae(We))),Qe=Qe===void 0?"":se(Qe),Fe=Fe===void 0?"":se(Fe),We=Qe,De&&"dotAll"in _e&&(ye=!!Fe&&He(Fe,"s")>-1,ye&&(Fe=Ue(Fe,/s/g,""))),we=Fe,rt&&"sticky"in _e&&(Oe=!!Fe&&He(Fe,"y")>-1,Oe&&et&&(Fe=Ue(Fe,/y/g,""))),Se&&($e=Ge(Qe),Qe=$e[0],Ne=$e[1]),Ze=ee(Ie(Qe,Fe),Re?this:Me,it),(ye||Oe||Ne.length)&&(Xe=je(Ze),ye&&(Xe.dotAll=!0,Xe.raw=it(Ye(Qe),we)),Oe&&(Xe.sticky=!0),Ne.length&&(Xe.groups=Ne)),Qe!==We)try{ue(Ze,"source",We===""?"(?:)":We)}catch(at){}return Ze},qe=E(Ie),vt=0;qe.length>vt;)me(it,Ie,qe[vt++]);Me.constructor=it,it.prototype=Me,ve(z,"RegExp",it)}ke("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(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/regexp-exec");x({target:"RegExp",proto:!0,forced:/./.exec!==z},{exec:z})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(a,Te,ge){"use strict";var x=a("../internals/function-name").PROPER,z=a("../internals/redefine"),ie=a("../internals/an-object"),oe=a("../internals/to-string"),ee=a("../internals/fails"),ue=a("../internals/regexp-get-flags"),E="toString",re=RegExp.prototype,te=re[E],se=ee(function(){return te.call({source:"a",flags:"b"})!="/a/b"}),ae=x&&te.name!=E;(se||ae)&&z(RegExp.prototype,E,function(){var me=ie(this),ve=oe(me.source),pe=oe(ue(me));return"/"+ve+"/"+pe},{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(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/function-uncurry-this"),ie=a("../internals/not-a-regexp"),oe=a("../internals/require-object-coercible"),ee=a("../internals/to-string"),ue=a("../internals/correct-is-regexp-logic"),E=z("".indexOf);x({target:"String",proto:!0,forced:!ue("includes")},{includes:function(te){return!!~E(ee(oe(this)),ee(ie(te)),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(a,Te,ge){"use strict";var x=a("../internals/string-multibyte").charAt,z=a("../internals/to-string"),ie=a("../internals/internal-state"),oe=a("../internals/define-iterator"),ee="String Iterator",ue=ie.set,E=ie.getterFor(ee);oe(String,"String",function(re){ue(this,{type:ee,string:z(re),index:0})},function(){var te=E(this),se=te.string,ae=te.index,he;return ae>=se.length?{value:void 0,done:!0}:(he=x(se,ae),te.index+=he.length,{value:he,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(a,Te,ge){"use strict";var x=a("../internals/function-call"),z=a("../internals/fix-regexp-well-known-symbol-logic"),ie=a("../internals/an-object"),oe=a("../internals/to-length"),ee=a("../internals/to-string"),ue=a("../internals/require-object-coercible"),E=a("../internals/get-method"),re=a("../internals/advance-string-index"),te=a("../internals/regexp-exec-abstract");z("match",function(se,ae,he){return[function(ve){var pe=ue(this),be=ve==null?void 0:E(ve,se);return be?x(be,ve,pe):new RegExp(ve)[se](ee(pe))},function(me){var ve=ie(this),pe=ee(me),be=he(ae,ve,pe);if(be.done)return be.value;if(!ve.global)return te(ve,pe);var je=ve.unicode;ve.lastIndex=0;for(var ke=[],Be=0,De;(De=te(ve,pe))!==null;){var Se=ee(De[0]);ke[Be]=Se,Se===""&&(ve.lastIndex=re(pe,oe(ve.lastIndex),je)),Be++}return Be===0?null:ke}]})},{"../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(a,Te,ge){"use strict";var x=a("../internals/function-apply"),z=a("../internals/function-call"),ie=a("../internals/function-uncurry-this"),oe=a("../internals/fix-regexp-well-known-symbol-logic"),ee=a("../internals/fails"),ue=a("../internals/an-object"),E=a("../internals/is-callable"),re=a("../internals/to-integer-or-infinity"),te=a("../internals/to-length"),se=a("../internals/to-string"),ae=a("../internals/require-object-coercible"),he=a("../internals/advance-string-index"),me=a("../internals/get-method"),ve=a("../internals/get-substitution"),pe=a("../internals/regexp-exec-abstract"),be=a("../internals/well-known-symbol"),je=be("replace"),ke=Math.max,Be=Math.min,De=ie([].concat),Se=ie([].push),Ee=ie("".indexOf),Ie=ie("".slice),Me=function(Ue){return Ue===void 0?Ue:String(Ue)},Le=function(){return"a".replace(/./,"$0")==="$0"}(),Ae=function(){return/./[je]?/./[je]("a","$0")==="":!1}(),Pe=!ee(function(){var Ue=/./;return Ue.exec=function(){var He=[];return He.groups={a:"7"},He},"".replace(Ue,"$<a>")!=="7"});oe("replace",function(Ue,He,Je){var st=Ae?"$":"$0";return[function(Ke,nt){var rt=ae(this),et=Ke==null?void 0:me(Ke,je);return et?z(et,Ke,rt,nt):z(He,se(rt),Ke,nt)},function(_e,Ke){var nt=ue(this),rt=se(_e);if(typeof Ke=="string"&&Ee(Ke,st)===-1&&Ee(Ke,"$<")===-1){var et=Je(He,nt,rt,Ke);if(et.done)return et.value}var Ve=E(Ke);Ve||(Ke=se(Ke));var Ye=nt.global;if(Ye){var Ge=nt.unicode;nt.lastIndex=0}for(var it=[];;){var qe=pe(nt,rt);if(qe===null||(Se(it,qe),!Ye))break;var vt=se(qe[0]);vt===""&&(nt.lastIndex=he(rt,te(nt.lastIndex),Ge))}for(var ot="",Qe=0,Fe=0;Fe<it.length;Fe++){qe=it[Fe];for(var Re=se(qe[0]),ne=ke(Be(re(qe.index),rt.length),0),fe=[],Ne=1;Ne<qe.length;Ne++)Se(fe,Me(qe[Ne]));var We=qe.groups;if(Ve){var we=De([Re],fe,ne,rt);We!==void 0&&Se(we,We);var ye=se(x(Ke,void 0,we))}else ye=ve(Re,rt,ne,fe,We,Ke);ne>=Qe&&(ot+=Ie(rt,Qe,ne)+ye,Qe=ne+Re.length)}return ot+Ie(rt,Qe)}]},!Pe||!Le||Ae)},{"../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(a,Te,ge){"use strict";var x=a("../internals/function-call"),z=a("../internals/fix-regexp-well-known-symbol-logic"),ie=a("../internals/an-object"),oe=a("../internals/require-object-coercible"),ee=a("../internals/same-value"),ue=a("../internals/to-string"),E=a("../internals/get-method"),re=a("../internals/regexp-exec-abstract");z("search",function(te,se,ae){return[function(me){var ve=oe(this),pe=me==null?void 0:E(me,te);return pe?x(pe,me,ve):new RegExp(me)[te](ue(ve))},function(he){var me=ie(this),ve=ue(he),pe=ae(se,me,ve);if(pe.done)return pe.value;var be=me.lastIndex;ee(be,0)||(me.lastIndex=0);var je=re(me,ve);return ee(me.lastIndex,be)||(me.lastIndex=be),je===null?-1:je.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(a,Te,ge){"use strict";var x=a("../internals/function-apply"),z=a("../internals/function-call"),ie=a("../internals/function-uncurry-this"),oe=a("../internals/fix-regexp-well-known-symbol-logic"),ee=a("../internals/is-regexp"),ue=a("../internals/an-object"),E=a("../internals/require-object-coercible"),re=a("../internals/species-constructor"),te=a("../internals/advance-string-index"),se=a("../internals/to-length"),ae=a("../internals/to-string"),he=a("../internals/get-method"),me=a("../internals/array-slice-simple"),ve=a("../internals/regexp-exec-abstract"),pe=a("../internals/regexp-exec"),be=a("../internals/regexp-sticky-helpers"),je=a("../internals/fails"),ke=be.UNSUPPORTED_Y,Be=4294967295,De=Math.min,Se=[].push,Ee=ie(/./.exec),Ie=ie(Se),Me=ie("".slice),Le=!je(function(){var Ae=/(?:)/,Pe=Ae.exec;Ae.exec=function(){return Pe.apply(this,arguments)};var Ue="ab".split(Ae);return Ue.length!==2||Ue[0]!=="a"||Ue[1]!=="b"});oe("split",function(Ae,Pe,Ue){var He;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?He=function(Je,st){var _e=ae(E(this)),Ke=st===void 0?Be:st>>>0;if(Ke===0)return[];if(Je===void 0)return[_e];if(!ee(Je))return z(Pe,_e,Je,Ke);for(var nt=[],rt=(Je.ignoreCase?"i":"")+(Je.multiline?"m":"")+(Je.unicode?"u":"")+(Je.sticky?"y":""),et=0,Ve=new RegExp(Je.source,rt+"g"),Ye,Ge,it;(Ye=z(pe,Ve,_e))&&(Ge=Ve.lastIndex,!(Ge>et&&(Ie(nt,Me(_e,et,Ye.index)),Ye.length>1&&Ye.index<_e.length&&x(Se,nt,me(Ye,1)),it=Ye[0].length,et=Ge,nt.length>=Ke)));)Ve.lastIndex===Ye.index&&Ve.lastIndex++;return et===_e.length?(it||!Ee(Ve,""))&&Ie(nt,""):Ie(nt,Me(_e,et)),nt.length>Ke?me(nt,0,Ke):nt}:"0".split(void 0,0).length?He=function(Je,st){return Je===void 0&&st===0?[]:z(Pe,this,Je,st)}:He=Pe,[function(st,_e){var Ke=E(this),nt=st==null?void 0:he(st,Ae);return nt?z(nt,st,Ke,_e):z(He,ae(Ke),st,_e)},function(Je,st){var _e=ue(this),Ke=ae(Je),nt=Ue(He,_e,Ke,st,He!==Pe);if(nt.done)return nt.value;var rt=re(_e,RegExp),et=_e.unicode,Ve=(_e.ignoreCase?"i":"")+(_e.multiline?"m":"")+(_e.unicode?"u":"")+(ke?"g":"y"),Ye=new rt(ke?"^(?:"+_e.source+")":_e,Ve),Ge=st===void 0?Be:st>>>0;if(Ge===0)return[];if(Ke.length===0)return ve(Ye,Ke)===null?[Ke]:[];for(var it=0,qe=0,vt=[];qe<Ke.length;){Ye.lastIndex=ke?0:qe;var ot=ve(Ye,ke?Me(Ke,qe):Ke),Qe;if(ot===null||(Qe=De(se(Ye.lastIndex+(ke?qe:0)),Ke.length))===it)qe=te(Ke,qe,et);else{if(Ie(vt,Me(Ke,it,qe)),vt.length===Ge)return vt;for(var Fe=1;Fe<=ot.length-1;Fe++)if(Ie(vt,ot[Fe]),vt.length===Ge)return vt;qe=it=Qe}}return Ie(vt,Me(Ke,it)),vt}]},!Le,ke)},{"../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(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/string-trim").trim,ie=a("../internals/string-trim-forced");x({target:"String",proto:!0,forced:ie("trim")},{trim:function(){return z(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/global"),ie=a("../internals/function-call"),oe=a("../internals/function-uncurry-this"),ee=a("../internals/is-pure"),ue=a("../internals/descriptors"),E=a("../internals/native-symbol"),re=a("../internals/fails"),te=a("../internals/has-own-property"),se=a("../internals/object-is-prototype-of"),ae=a("../internals/an-object"),he=a("../internals/to-indexed-object"),me=a("../internals/to-property-key"),ve=a("../internals/to-string"),pe=a("../internals/create-property-descriptor"),be=a("../internals/object-create"),je=a("../internals/object-keys"),ke=a("../internals/object-get-own-property-names"),Be=a("../internals/object-get-own-property-names-external"),De=a("../internals/object-get-own-property-symbols"),Se=a("../internals/object-get-own-property-descriptor"),Ee=a("../internals/object-define-property"),Ie=a("../internals/object-define-properties"),Me=a("../internals/object-property-is-enumerable"),Le=a("../internals/redefine"),Ae=a("../internals/shared"),Pe=a("../internals/shared-key"),Ue=a("../internals/hidden-keys"),He=a("../internals/uid"),Je=a("../internals/well-known-symbol"),st=a("../internals/well-known-symbol-wrapped"),_e=a("../internals/define-well-known-symbol"),Ke=a("../internals/symbol-define-to-primitive"),nt=a("../internals/set-to-string-tag"),rt=a("../internals/internal-state"),et=a("../internals/array-iteration").forEach,Ve=Pe("hidden"),Ye="Symbol",Ge="prototype",it=rt.set,qe=rt.getterFor(Ye),vt=Object[Ge],ot=z.Symbol,Qe=ot&&ot[Ge],Fe=z.TypeError,Re=z.QObject,ne=Se.f,fe=Ee.f,Ne=Be.f,We=Me.f,we=oe([].push),ye=Ae("symbols"),Oe=Ae("op-symbols"),$e=Ae("wks"),Ze=!Re||!Re[Ge]||!Re[Ge].findChild,Xe=ue&&re(function(){return be(fe({},"a",{get:function(){return fe(this,"a",{value:7}).a}})).a!=7})?function(At,pt,Mt){var kt=ne(vt,pt);kt&&delete vt[pt],fe(At,pt,Mt),kt&&At!==vt&&fe(vt,pt,kt)}:fe,at=function(At,pt){var Mt=ye[At]=be(Qe);return it(Mt,{type:Ye,tag:At,description:pt}),ue||(Mt.description=pt),Mt},lt=function(pt,Mt,kt){pt===vt&&lt(Oe,Mt,kt),ae(pt);var xt=me(Mt);return ae(kt),te(ye,xt)?(kt.enumerable?(te(pt,Ve)&&pt[Ve][xt]&&(pt[Ve][xt]=!1),kt=be(kt,{enumerable:pe(0,!1)})):(te(pt,Ve)||fe(pt,Ve,pe(1,{})),pt[Ve][xt]=!0),Xe(pt,xt,kt)):fe(pt,xt,kt)},mt=function(pt,Mt){ae(pt);var kt=he(Mt),xt=je(kt).concat(Bt(kt));return et(xt,function(It){(!ue||ie(ct,kt,It))&&lt(pt,It,kt[It])}),pt},ut=function(pt,Mt){return Mt===void 0?be(pt):mt(be(pt),Mt)},ct=function(pt){var Mt=me(pt),kt=ie(We,this,Mt);return this===vt&&te(ye,Mt)&&!te(Oe,Mt)?!1:kt||!te(this,Mt)||!te(ye,Mt)||te(this,Ve)&&this[Ve][Mt]?kt:!0},Pt=function(pt,Mt){var kt=he(pt),xt=me(Mt);if(!(kt===vt&&te(ye,xt)&&!te(Oe,xt))){var It=ne(kt,xt);return It&&te(ye,xt)&&!(te(kt,Ve)&&kt[Ve][xt])&&(It.enumerable=!0),It}},wt=function(pt){var Mt=Ne(he(pt)),kt=[];return et(Mt,function(xt){!te(ye,xt)&&!te(Ue,xt)&&we(kt,xt)}),kt},Bt=function(At){var pt=At===vt,Mt=Ne(pt?Oe:he(At)),kt=[];return et(Mt,function(xt){te(ye,xt)&&(!pt||te(vt,xt))&&we(kt,ye[xt])}),kt};E||(ot=function(){if(se(Qe,this))throw Fe("Symbol is not a constructor");var pt=!arguments.length||arguments[0]===void 0?void 0:ve(arguments[0]),Mt=He(pt),kt=function(xt){this===vt&&ie(kt,Oe,xt),te(this,Ve)&&te(this[Ve],Mt)&&(this[Ve][Mt]=!1),Xe(this,Mt,pe(1,xt))};return ue&&Ze&&Xe(vt,Mt,{configurable:!0,set:kt}),at(Mt,pt)},Qe=ot[Ge],Le(Qe,"toString",function(){return qe(this).tag}),Le(ot,"withoutSetter",function(At){return at(He(At),At)}),Me.f=ct,Ee.f=lt,Ie.f=mt,Se.f=Pt,ke.f=Be.f=wt,De.f=Bt,st.f=function(At){return at(Je(At),At)},ue&&(fe(Qe,"description",{configurable:!0,get:function(){return qe(this).description}}),ee||Le(vt,"propertyIsEnumerable",ct,{unsafe:!0}))),x({global:!0,wrap:!0,forced:!E,sham:!E},{Symbol:ot}),et(je($e),function(At){_e(At)}),x({target:Ye,stat:!0,forced:!E},{useSetter:function(){Ze=!0},useSimple:function(){Ze=!1}}),x({target:"Object",stat:!0,forced:!E,sham:!ue},{create:ut,defineProperty:lt,defineProperties:mt,getOwnPropertyDescriptor:Pt}),x({target:"Object",stat:!0,forced:!E},{getOwnPropertyNames:wt}),Ke(),nt(ot,Ye),Ue[Ve]=!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(a,Te,ge){"use strict";var x=a("../internals/export"),z=a("../internals/descriptors"),ie=a("../internals/global"),oe=a("../internals/function-uncurry-this"),ee=a("../internals/has-own-property"),ue=a("../internals/is-callable"),E=a("../internals/object-is-prototype-of"),re=a("../internals/to-string"),te=a("../internals/object-define-property").f,se=a("../internals/copy-constructor-properties"),ae=ie.Symbol,he=ae&&ae.prototype;if(z&&ue(ae)&&(!("description"in he)||ae().description!==void 0)){var me={},ve=function(){var Ee=arguments.length<1||arguments[0]===void 0?void 0:re(arguments[0]),Ie=E(he,this)?new ae(Ee):Ee===void 0?ae():ae(Ee);return Ee===""&&(me[Ie]=!0),Ie};se(ve,ae),ve.prototype=he,he.constructor=ve;var pe=String(ae("test"))=="Symbol(test)",be=oe(he.toString),je=oe(he.valueOf),ke=/^Symbol\((.*)\)[^)]+$/,Be=oe("".replace),De=oe("".slice);te(he,"description",{configurable:!0,get:function(){var Ee=je(this),Ie=be(Ee);if(ee(me,Ee))return"";var Me=pe?De(Ie,7,-1):Be(Ie,ke,"$1");return Me===""?void 0:Me}}),x({global:!0,forced:!0},{Symbol:ve})}},{"../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(a,Te,ge){var x=a("../internals/export"),z=a("../internals/get-built-in"),ie=a("../internals/has-own-property"),oe=a("../internals/to-string"),ee=a("../internals/shared"),ue=a("../internals/native-symbol-registry"),E=ee("string-to-symbol-registry"),re=ee("symbol-to-string-registry");x({target:"Symbol",stat:!0,forced:!ue},{for:function(te){var se=oe(te);if(ie(E,se))return E[se];var ae=z("Symbol")(se);return E[se]=ae,re[ae]=se,ae}})},{"../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(a,Te,ge){var x=a("../internals/define-well-known-symbol");x("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(a,Te,ge){a("../modules/es.symbol.constructor"),a("../modules/es.symbol.for"),a("../modules/es.symbol.key-for"),a("../modules/es.json.stringify"),a("../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(a,Te,ge){var x=a("../internals/export"),z=a("../internals/has-own-property"),ie=a("../internals/is-symbol"),oe=a("../internals/try-to-string"),ee=a("../internals/shared"),ue=a("../internals/native-symbol-registry"),E=ee("symbol-to-string-registry");x({target:"Symbol",stat:!0,forced:!ue},{keyFor:function(te){if(!ie(te))throw TypeError(oe(te)+" is not a symbol");if(z(E,te))return E[te]}})},{"../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(a,Te,ge){"use strict";var x=a("../internals/function-uncurry-this"),z=a("../internals/array-buffer-view-core"),ie=a("../internals/array-copy-within"),oe=x(ie),ee=z.aTypedArray,ue=z.exportTypedArrayMethod;ue("copyWithin",function(re,te){return oe(ee(this),re,te,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(a,Te,ge){"use strict";var x=a("../internals/array-buffer-view-core"),z=a("../internals/array-iteration").every,ie=x.aTypedArray,oe=x.exportTypedArrayMethod;oe("every",function(ue){return z(ie(this),ue,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(a,Te,ge){"use strict";var x=a("../internals/array-buffer-view-core"),z=a("../internals/function-call"),ie=a("../internals/array-fill"),oe=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("fill",function(E){var re=arguments.length;return z(ie,oe(this),E,re>1?arguments[1]:void 0,re>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(a,Te,ge){"use strict";var x=a("../internals/array-buffer-view-core"),z=a("../internals/array-iteration").filter,ie=a("../internals/typed-array-from-species-and-list"),oe=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("filter",function(E){var re=z(oe(this),E,arguments.length>1?arguments[1]:void 0);return ie(this,re)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(a,Te,ge){"use strict";var x=a("../internals/array-buffer-view-core"),z=a("../internals/array-iteration").findIndex,ie=x.aTypedArray,oe=x.exportTypedArrayMethod;oe("findIndex",function(ue){return z(ie(this),ue,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(a,Te,ge){"use strict";var x=a("../internals/array-buffer-view-core"),z=a("../internals/array-iteration").find,ie=x.aTypedArray,oe=x.exportTypedArrayMethod;oe("find",function(ue){return z(ie(this),ue,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(a,Te,ge){"use strict";var x=a("../internals/array-buffer-view-core"),z=a("../internals/array-iteration").forEach,ie=x.aTypedArray,oe=x.exportTypedArrayMethod;oe("forEach",function(ue){z(ie(this),ue,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(a,Te,ge){"use strict";var x=a("../internals/array-buffer-view-core"),z=a("../internals/array-includes").includes,ie=x.aTypedArray,oe=x.exportTypedArrayMethod;oe("includes",function(ue){return z(ie(this),ue,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(a,Te,ge){"use strict";var x=a("../internals/array-buffer-view-core"),z=a("../internals/array-includes").indexOf,ie=x.aTypedArray,oe=x.exportTypedArrayMethod;oe("indexOf",function(ue){return z(ie(this),ue,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(a,Te,ge){"use strict";var x=a("../internals/global"),z=a("../internals/fails"),ie=a("../internals/function-uncurry-this"),oe=a("../internals/array-buffer-view-core"),ee=a("../modules/es.array.iterator"),ue=a("../internals/well-known-symbol"),E=ue("iterator"),re=x.Uint8Array,te=ie(ee.values),se=ie(ee.keys),ae=ie(ee.entries),he=oe.aTypedArray,me=oe.exportTypedArrayMethod,ve=re&&re.prototype,pe=!z(function(){ve[E].call([1])}),be=!!ve&&ve.values&&ve[E]===ve.values&&ve.values.name==="values",je=function(){return te(he(this))};me("entries",function(){return ae(he(this))},pe),me("keys",function(){return se(he(this))},pe),me("values",je,pe||!be,{name:"values"}),me(E,je,pe||!be,{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(a,Te,ge){"use strict";var x=a("../internals/array-buffer-view-core"),z=a("../internals/function-uncurry-this"),ie=x.aTypedArray,oe=x.exportTypedArrayMethod,ee=z([].join);oe("join",function(E){return ee(ie(this),E)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(a,Te,ge){"use strict";var x=a("../internals/array-buffer-view-core"),z=a("../internals/function-apply"),ie=a("../internals/array-last-index-of"),oe=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("lastIndexOf",function(E){var re=arguments.length;return z(ie,oe(this),re>1?[E,arguments[1]]:[E])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(a,Te,ge){"use strict";var x=a("../internals/array-buffer-view-core"),z=a("../internals/array-iteration").map,ie=a("../internals/typed-array-species-constructor"),oe=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("map",function(E){return z(oe(this),E,arguments.length>1?arguments[1]:void 0,function(re,te){return new(ie(re))(te)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(a,Te,ge){"use strict";var x=a("../internals/array-buffer-view-core"),z=a("../internals/array-reduce").right,ie=x.aTypedArray,oe=x.exportTypedArrayMethod;oe("reduceRight",function(ue){var E=arguments.length;return z(ie(this),ue,E,E>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(a,Te,ge){"use strict";var x=a("../internals/array-buffer-view-core"),z=a("../internals/array-reduce").left,ie=x.aTypedArray,oe=x.exportTypedArrayMethod;oe("reduce",function(ue){var E=arguments.length;return z(ie(this),ue,E,E>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(a,Te,ge){"use strict";var x=a("../internals/array-buffer-view-core"),z=x.aTypedArray,ie=x.exportTypedArrayMethod,oe=Math.floor;ie("reverse",function(){for(var ue=this,E=z(ue).length,re=oe(E/2),te=0,se;te<re;)se=ue[te],ue[te++]=ue[--E],ue[E]=se;return ue})},{"../internals/array-buffer-view-core":103}],331:[function(a,Te,ge){"use strict";var x=a("../internals/global"),z=a("../internals/function-call"),ie=a("../internals/array-buffer-view-core"),oe=a("../internals/length-of-array-like"),ee=a("../internals/to-offset"),ue=a("../internals/to-object"),E=a("../internals/fails"),re=x.RangeError,te=x.Int8Array,se=te&&te.prototype,ae=se&&se.set,he=ie.aTypedArray,me=ie.exportTypedArrayMethod,ve=!E(function(){var be=new Uint8ClampedArray(2);return z(ae,be,{length:1,0:3},1),be[1]!==3}),pe=ve&&ie.NATIVE_ARRAY_BUFFER_VIEWS&&E(function(){var be=new te(2);return be.set(1),be.set("2",1),be[0]!==0||be[1]!==2});me("set",function(je){he(this);var ke=ee(arguments.length>1?arguments[1]:void 0,1),Be=ue(je);if(ve)return z(ae,this,Be,ke);var De=this.length,Se=oe(Be),Ee=0;if(Se+ke>De)throw re("Wrong length");for(;Ee<Se;)this[ke+Ee]=Be[Ee++]},!ve||pe)},{"../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(a,Te,ge){"use strict";var x=a("../internals/array-buffer-view-core"),z=a("../internals/typed-array-species-constructor"),ie=a("../internals/fails"),oe=a("../internals/array-slice"),ee=x.aTypedArray,ue=x.exportTypedArrayMethod,E=ie(function(){new Int8Array(1).slice()});ue("slice",function(te,se){for(var ae=oe(ee(this),te,se),he=z(this),me=0,ve=ae.length,pe=new he(ve);ve>me;)pe[me]=ae[me++];return pe},E)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(a,Te,ge){"use strict";var x=a("../internals/array-buffer-view-core"),z=a("../internals/array-iteration").some,ie=x.aTypedArray,oe=x.exportTypedArrayMethod;oe("some",function(ue){return z(ie(this),ue,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(a,Te,ge){"use strict";var x=a("../internals/global"),z=a("../internals/function-uncurry-this"),ie=a("../internals/fails"),oe=a("../internals/a-callable"),ee=a("../internals/array-sort"),ue=a("../internals/array-buffer-view-core"),E=a("../internals/engine-ff-version"),re=a("../internals/engine-is-ie-or-edge"),te=a("../internals/engine-v8-version"),se=a("../internals/engine-webkit-version"),ae=ue.aTypedArray,he=ue.exportTypedArrayMethod,me=x.Uint16Array,ve=me&&z(me.prototype.sort),pe=!!ve&&!(ie(function(){ve(new me(2),null)})&&ie(function(){ve(new me(2),{})})),be=!!ve&&!ie(function(){if(te)return te<74;if(E)return E<67;if(re)return!0;if(se)return se<602;var ke=new me(516),Be=Array(516),De,Se;for(De=0;De<516;De++)Se=De%4,ke[De]=515-De,Be[De]=De-2*Se+3;for(ve(ke,function(Ee,Ie){return(Ee/4|0)-(Ie/4|0)}),De=0;De<516;De++)if(ke[De]!==Be[De])return!0}),je=function(ke){return function(Be,De){return ke!==void 0?+ke(Be,De)||0:De!==De?-1:Be!==Be?1:Be===0&&De===0?1/Be>0&&1/De<0?1:-1:Be>De}};he("sort",function(Be){return Be!==void 0&&oe(Be),be?ve(this,Be):ee(ae(this),je(Be))},!be||pe)},{"../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(a,Te,ge){"use strict";var x=a("../internals/array-buffer-view-core"),z=a("../internals/to-length"),ie=a("../internals/to-absolute-index"),oe=a("../internals/typed-array-species-constructor"),ee=x.aTypedArray,ue=x.exportTypedArrayMethod;ue("subarray",function(re,te){var se=ee(this),ae=se.length,he=ie(re,ae),me=oe(se);return new me(se.buffer,se.byteOffset+he*se.BYTES_PER_ELEMENT,z((te===void 0?ae:ie(te,ae))-he))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(a,Te,ge){"use strict";var x=a("../internals/global"),z=a("../internals/function-apply"),ie=a("../internals/array-buffer-view-core"),oe=a("../internals/fails"),ee=a("../internals/array-slice"),ue=x.Int8Array,E=ie.aTypedArray,re=ie.exportTypedArrayMethod,te=[].toLocaleString,se=!!ue&&oe(function(){te.call(new ue(1))}),ae=oe(function(){return[1,2].toLocaleString()!=new ue([1,2]).toLocaleString()})||!oe(function(){ue.prototype.toLocaleString.call([1,2])});re("toLocaleString",function(){return z(te,se?ee(E(this)):E(this),ee(arguments))},ae)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(a,Te,ge){"use strict";var x=a("../internals/array-buffer-view-core").exportTypedArrayMethod,z=a("../internals/fails"),ie=a("../internals/global"),oe=a("../internals/function-uncurry-this"),ee=ie.Uint8Array,ue=ee&&ee.prototype||{},E=[].toString,re=oe([].join);z(function(){E.call({})})&&(E=function(){return re(this)});var te=ue.toString!=E;x("toString",E,te)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(a,Te,ge){var x=a("../internals/typed-array-constructor");x("Uint8",function(z){return function(oe,ee,ue){return z(this,oe,ee,ue)}})},{"../internals/typed-array-constructor":258}],339:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/dom-iterables"),ie=a("../internals/dom-token-list-prototype"),oe=a("../internals/array-for-each"),ee=a("../internals/create-non-enumerable-property"),ue=function(re){if(re&&re.forEach!==oe)try{ee(re,"forEach",oe)}catch(te){re.forEach=oe}};for(var E in z)z[E]&&ue(x[E]&&x[E].prototype);ue(ie)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(a,Te,ge){var x=a("../internals/global"),z=a("../internals/dom-iterables"),ie=a("../internals/dom-token-list-prototype"),oe=a("../modules/es.array.iterator"),ee=a("../internals/create-non-enumerable-property"),ue=a("../internals/well-known-symbol"),E=ue("iterator"),re=ue("toStringTag"),te=oe.values,se=function(he,me){if(he){if(he[E]!==te)try{ee(he,E,te)}catch(pe){he[E]=te}if(he[re]||ee(he,re,me),z[me]){for(var ve in oe)if(he[ve]!==oe[ve])try{ee(he,ve,oe[ve])}catch(pe){he[ve]=oe[ve]}}}};for(var ae in z)se(x[ae]&&x[ae].prototype,ae);se(ie,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(a,Te,ge){function x(be){return Array.isArray?Array.isArray(be):pe(be)==="[object Array]"}ge.isArray=x;function z(be){return typeof be=="boolean"}ge.isBoolean=z;function ie(be){return be===null}ge.isNull=ie;function oe(be){return be==null}ge.isNullOrUndefined=oe;function ee(be){return typeof be=="number"}ge.isNumber=ee;function ue(be){return typeof be=="string"}ge.isString=ue;function E(be){return typeof be=="symbol"}ge.isSymbol=E;function re(be){return be===void 0}ge.isUndefined=re;function te(be){return pe(be)==="[object RegExp]"}ge.isRegExp=te;function se(be){return typeof be=="object"&&be!==null}ge.isObject=se;function ae(be){return pe(be)==="[object Date]"}ge.isDate=ae;function he(be){return pe(be)==="[object Error]"||be instanceof Error}ge.isError=he;function me(be){return typeof be=="function"}ge.isFunction=me;function ve(be){return be===null||typeof be=="boolean"||typeof be=="number"||typeof be=="string"||typeof be=="symbol"||typeof be=="undefined"}ge.isPrimitive=ve,ge.isBuffer=a("buffer").Buffer.isBuffer;function pe(be){return Object.prototype.toString.call(be)}},{buffer:90}],342:[function(a,Te,ge){(function(x){"use strict";var z=function(){var E=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,re=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,te=/[^-+\dA-Z]/g;return function(se,ae,he,me){if(arguments.length===1&&ue(se)==="string"&&!/\d/.test(se)&&(ae=se,se=void 0),se=se||new Date,se instanceof Date||(se=new Date(se)),isNaN(se))throw TypeError("Invalid date");ae=String(z.masks[ae]||ae||z.masks.default);var ve=ae.slice(0,4);(ve==="UTC:"||ve==="GMT:")&&(ae=ae.slice(4),he=!0,ve==="GMT:"&&(me=!0));var pe=he?"getUTC":"get",be=se[pe+"Date"](),je=se[pe+"Day"](),ke=se[pe+"Month"](),Be=se[pe+"FullYear"](),De=se[pe+"Hours"](),Se=se[pe+"Minutes"](),Ee=se[pe+"Seconds"](),Ie=se[pe+"Milliseconds"](),Me=he?0:se.getTimezoneOffset(),Le=oe(se),Ae=ee(se),Pe={d:be,dd:ie(be),ddd:z.i18n.dayNames[je],dddd:z.i18n.dayNames[je+7],m:ke+1,mm:ie(ke+1),mmm:z.i18n.monthNames[ke],mmmm:z.i18n.monthNames[ke+12],yy:String(Be).slice(2),yyyy:Be,h:De%12||12,hh:ie(De%12||12),H:De,HH:ie(De),M:Se,MM:ie(Se),s:Ee,ss:ie(Ee),l:ie(Ie,3),L:ie(Math.round(Ie/10)),t:De<12?"a":"p",tt:De<12?"am":"pm",T:De<12?"A":"P",TT:De<12?"AM":"PM",Z:me?"GMT":he?"UTC":(String(se).match(re)||[""]).pop().replace(te,""),o:(Me>0?"-":"+")+ie(Math.floor(Math.abs(Me)/60)*100+Math.abs(Me)%60,4),S:["th","st","nd","rd"][be%10>3?0:(be%100-be%10!=10)*be%10],W:Le,N:Ae};return ae.replace(E,function(Ue){return Ue in Pe?Pe[Ue]:Ue.slice(1,Ue.length-1)})}}();z.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"},z.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function ie(E,re){for(E=String(E),re=re||2;E.length<re;)E="0"+E;return E}function oe(E){var re=new Date(E.getFullYear(),E.getMonth(),E.getDate());re.setDate(re.getDate()-(re.getDay()+6)%7+3);var te=new Date(re.getFullYear(),0,4);te.setDate(te.getDate()-(te.getDay()+6)%7+3);var se=re.getTimezoneOffset()-te.getTimezoneOffset();re.setHours(re.getHours()-se);var ae=(re-te)/(864e5*7);return 1+Math.floor(ae)}function ee(E){var re=E.getDay();return re===0&&(re=7),re}function ue(E){return E===null?"null":E===void 0?"undefined":typeof E!="object"?typeof E:Array.isArray(E)?"array":{}.toString.call(E).slice(8,-1).toLowerCase()}typeof Ce=="function"&&Ce.amd?Ce(function(){return z}):typeof ge=="object"?Te.exports=z:x.dateFormat=z})(this)},{}],343:[function(a,Te,ge){"use strict";var x=/["'&<>]/;Te.exports=z;function z(ie){var oe=""+ie,ee=x.exec(oe);if(!ee)return oe;var ue,E="",re=0,te=0;for(re=ee.index;re<oe.length;re++){switch(oe.charCodeAt(re)){case 34:ue="&quot;";break;case 38:ue="&amp;";break;case 39:ue="&#39;";break;case 60:ue="&lt;";break;case 62:ue="&gt;";break;default:continue}te!==re&&(E+=oe.substring(te,re)),te=re+1,E+=ue}return te!==re?E+oe.substring(te,re):E}},{}],344:[function(a,Te,ge){"use strict";var x=typeof Reflect=="object"?Reflect:null,z=x&&typeof x.apply=="function"?x.apply:function(Ee,Ie,Me){return Function.prototype.apply.call(Ee,Ie,Me)},ie;x&&typeof x.ownKeys=="function"?ie=x.ownKeys:Object.getOwnPropertySymbols?ie=function(Ee){return Object.getOwnPropertyNames(Ee).concat(Object.getOwnPropertySymbols(Ee))}:ie=function(Ee){return Object.getOwnPropertyNames(Ee)};function oe(Se){console&&console.warn&&console.warn(Se)}var ee=Number.isNaN||function(Ee){return Ee!==Ee};function ue(){ue.init.call(this)}Te.exports=ue,Te.exports.once=ke,ue.EventEmitter=ue,ue.prototype._events=void 0,ue.prototype._eventsCount=0,ue.prototype._maxListeners=void 0;var E=10;function re(Se){if(typeof Se!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Se)}Object.defineProperty(ue,"defaultMaxListeners",{enumerable:!0,get:function(){return E},set:function(Se){if(typeof Se!="number"||Se<0||ee(Se))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Se+".");E=Se}}),ue.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},ue.prototype.setMaxListeners=function(Ee){if(typeof Ee!="number"||Ee<0||ee(Ee))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Ee+".");return this._maxListeners=Ee,this};function te(Se){return Se._maxListeners===void 0?ue.defaultMaxListeners:Se._maxListeners}ue.prototype.getMaxListeners=function(){return te(this)},ue.prototype.emit=function(Ee){for(var Ie=[],Me=1;Me<arguments.length;Me++)Ie.push(arguments[Me]);var Le=Ee==="error",Ae=this._events;if(Ae!==void 0)Le=Le&&Ae.error===void 0;else if(!Le)return!1;if(Le){var Pe;if(Ie.length>0&&(Pe=Ie[0]),Pe instanceof Error)throw Pe;var Ue=new Error("Unhandled error."+(Pe?" ("+Pe.message+")":""));throw Ue.context=Pe,Ue}var He=Ae[Ee];if(He===void 0)return!1;if(typeof He=="function")z(He,this,Ie);else for(var Je=He.length,st=pe(He,Je),Me=0;Me<Je;++Me)z(st[Me],this,Ie);return!0};function se(Se,Ee,Ie,Me){var Le,Ae,Pe;if(re(Ie),Ae=Se._events,Ae===void 0?(Ae=Se._events=Object.create(null),Se._eventsCount=0):(Ae.newListener!==void 0&&(Se.emit("newListener",Ee,Ie.listener?Ie.listener:Ie),Ae=Se._events),Pe=Ae[Ee]),Pe===void 0)Pe=Ae[Ee]=Ie,++Se._eventsCount;else if(typeof Pe=="function"?Pe=Ae[Ee]=Me?[Ie,Pe]:[Pe,Ie]:Me?Pe.unshift(Ie):Pe.push(Ie),Le=te(Se),Le>0&&Pe.length>Le&&!Pe.warned){Pe.warned=!0;var Ue=new Error("Possible EventEmitter memory leak detected. "+Pe.length+" "+String(Ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ue.name="MaxListenersExceededWarning",Ue.emitter=Se,Ue.type=Ee,Ue.count=Pe.length,oe(Ue)}return Se}ue.prototype.addListener=function(Ee,Ie){return se(this,Ee,Ie,!1)},ue.prototype.on=ue.prototype.addListener,ue.prototype.prependListener=function(Ee,Ie){return se(this,Ee,Ie,!0)};function ae(){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 he(Se,Ee,Ie){var Me={fired:!1,wrapFn:void 0,target:Se,type:Ee,listener:Ie},Le=ae.bind(Me);return Le.listener=Ie,Me.wrapFn=Le,Le}ue.prototype.once=function(Ee,Ie){return re(Ie),this.on(Ee,he(this,Ee,Ie)),this},ue.prototype.prependOnceListener=function(Ee,Ie){return re(Ie),this.prependListener(Ee,he(this,Ee,Ie)),this},ue.prototype.removeListener=function(Ee,Ie){var Me,Le,Ae,Pe,Ue;if(re(Ie),Le=this._events,Le===void 0)return this;if(Me=Le[Ee],Me===void 0)return this;if(Me===Ie||Me.listener===Ie)--this._eventsCount===0?this._events=Object.create(null):(delete Le[Ee],Le.removeListener&&this.emit("removeListener",Ee,Me.listener||Ie));else if(typeof Me!="function"){for(Ae=-1,Pe=Me.length-1;Pe>=0;Pe--)if(Me[Pe]===Ie||Me[Pe].listener===Ie){Ue=Me[Pe].listener,Ae=Pe;break}if(Ae<0)return this;Ae===0?Me.shift():be(Me,Ae),Me.length===1&&(Le[Ee]=Me[0]),Le.removeListener!==void 0&&this.emit("removeListener",Ee,Ue||Ie)}return this},ue.prototype.off=ue.prototype.removeListener,ue.prototype.removeAllListeners=function(Ee){var Ie,Me,Le;if(Me=this._events,Me===void 0)return this;if(Me.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Me[Ee]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Me[Ee]),this;if(arguments.length===0){var Ae=Object.keys(Me),Pe;for(Le=0;Le<Ae.length;++Le)Pe=Ae[Le],Pe!=="removeListener"&&this.removeAllListeners(Pe);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Ie=Me[Ee],typeof Ie=="function")this.removeListener(Ee,Ie);else if(Ie!==void 0)for(Le=Ie.length-1;Le>=0;Le--)this.removeListener(Ee,Ie[Le]);return this};function me(Se,Ee,Ie){var Me=Se._events;if(Me===void 0)return[];var Le=Me[Ee];return Le===void 0?[]:typeof Le=="function"?Ie?[Le.listener||Le]:[Le]:Ie?je(Le):pe(Le,Le.length)}ue.prototype.listeners=function(Ee){return me(this,Ee,!0)},ue.prototype.rawListeners=function(Ee){return me(this,Ee,!1)},ue.listenerCount=function(Se,Ee){return typeof Se.listenerCount=="function"?Se.listenerCount(Ee):ve.call(Se,Ee)},ue.prototype.listenerCount=ve;function ve(Se){var Ee=this._events;if(Ee!==void 0){var Ie=Ee[Se];if(typeof Ie=="function")return 1;if(Ie!==void 0)return Ie.length}return 0}ue.prototype.eventNames=function(){return this._eventsCount>0?ie(this._events):[]};function pe(Se,Ee){for(var Ie=new Array(Ee),Me=0;Me<Ee;++Me)Ie[Me]=Se[Me];return Ie}function be(Se,Ee){for(;Ee+1<Se.length;Ee++)Se[Ee]=Se[Ee+1];Se.pop()}function je(Se){for(var Ee=new Array(Se.length),Ie=0;Ie<Ee.length;++Ie)Ee[Ie]=Se[Ie].listener||Se[Ie];return Ee}function ke(Se,Ee){return new Promise(function(Ie,Me){function Le(Pe){Se.removeListener(Ee,Ae),Me(Pe)}function Ae(){typeof Se.removeListener=="function"&&Se.removeListener("error",Le),Ie([].slice.call(arguments))}De(Se,Ee,Ae,{once:!0}),Ee!=="error"&&Be(Se,Le,{once:!0})})}function Be(Se,Ee,Ie){typeof Se.on=="function"&&De(Se,"error",Ee,Ie)}function De(Se,Ee,Ie,Me){if(typeof Se.on=="function")Me.once?Se.once(Ee,Ie):Se.on(Ee,Ie);else if(typeof Se.addEventListener=="function")Se.addEventListener(Ee,function Le(Ae){Me.once&&Se.removeEventListener(Ee,Le),Ie(Ae)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Se)}},{}],345:[function(a,Te,ge){"use strict";var x=a("is-callable"),z=Object.prototype.toString,ie=Object.prototype.hasOwnProperty,oe=function(te,se,ae){for(var he=0,me=te.length;he<me;he++)ie.call(te,he)&&(ae==null?se(te[he],he,te):se.call(ae,te[he],he,te))},ee=function(te,se,ae){for(var he=0,me=te.length;he<me;he++)ae==null?se(te.charAt(he),he,te):se.call(ae,te.charAt(he),he,te)},ue=function(te,se,ae){for(var he in te)ie.call(te,he)&&(ae==null?se(te[he],he,te):se.call(ae,te[he],he,te))},E=function(te,se,ae){if(!x(se))throw new TypeError("iterator must be a function");var he;arguments.length>=3&&(he=ae),z.call(te)==="[object Array]"?oe(te,se,he):typeof te=="string"?ee(te,se,he):ue(te,se,he)};Te.exports=E},{"is-callable":367}],346:[function(a,Te,ge){"use strict";var x="Function.prototype.bind called on incompatible ",z=Array.prototype.slice,ie=Object.prototype.toString,oe="[object Function]";Te.exports=function(ue){var E=this;if(typeof E!="function"||ie.call(E)!==oe)throw new TypeError(x+E);for(var re=z.call(arguments,1),te,se=function(){if(this instanceof te){var pe=E.apply(this,re.concat(z.call(arguments)));return Object(pe)===pe?pe:this}else return E.apply(ue,re.concat(z.call(arguments)))},ae=Math.max(0,E.length-re.length),he=[],me=0;me<ae;me++)he.push("$"+me);if(te=Function("binder","return function ("+he.join(",")+"){ return binder.apply(this,arguments); }")(se),E.prototype){var ve=function(){};ve.prototype=E.prototype,te.prototype=new ve,ve.prototype=null}return te}},{}],347:[function(a,Te,ge){"use strict";var x=a("./implementation");Te.exports=Function.prototype.bind||x},{"./implementation":346}],348:[function(a,Te,ge){"use strict";var x,z=SyntaxError,ie=Function,oe=TypeError,ee=function(He){try{return ie('"use strict"; return ('+He+").constructor;")()}catch(Je){}},ue=Object.getOwnPropertyDescriptor;if(ue)try{ue({},"")}catch(He){ue=null}var E=function(){throw new oe},re=ue?function(){try{return arguments.callee,E}catch(He){try{return ue(arguments,"callee").get}catch(Je){return E}}}():E,te=a("has-symbols")(),se=a("has-proto")(),ae=Object.getPrototypeOf||(se?function(He){return He.__proto__}:null),he={},me=typeof Uint8Array=="undefined"||!ae?x:ae(Uint8Array),ve={"%AggregateError%":typeof AggregateError=="undefined"?x:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?x:ArrayBuffer,"%ArrayIteratorPrototype%":te&&ae?ae([][Symbol.iterator]()):x,"%AsyncFromSyncIteratorPrototype%":x,"%AsyncFunction%":he,"%AsyncGenerator%":he,"%AsyncGeneratorFunction%":he,"%AsyncIteratorPrototype%":he,"%Atomics%":typeof Atomics=="undefined"?x:Atomics,"%BigInt%":typeof BigInt=="undefined"?x:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?x:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?x:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?x:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?x:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?x:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?x:FinalizationRegistry,"%Function%":ie,"%GeneratorFunction%":he,"%Int8Array%":typeof Int8Array=="undefined"?x:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?x:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?x:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":te&&ae?ae(ae([][Symbol.iterator]())):x,"%JSON%":typeof JSON=="object"?JSON:x,"%Map%":typeof Map=="undefined"?x:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!te||!ae?x:ae(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?x:Promise,"%Proxy%":typeof Proxy=="undefined"?x:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?x:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?x:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!te||!ae?x:ae(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?x:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":te&&ae?ae(""[Symbol.iterator]()):x,"%Symbol%":te?Symbol:x,"%SyntaxError%":z,"%ThrowTypeError%":re,"%TypedArray%":me,"%TypeError%":oe,"%Uint8Array%":typeof Uint8Array=="undefined"?x:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?x:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?x:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?x:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?x:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?x:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?x:WeakSet};if(ae)try{null.error}catch(He){var pe=ae(ae(He));ve["%Error.prototype%"]=pe}var be=function He(Je){var st;if(Je==="%AsyncFunction%")st=ee("async function () {}");else if(Je==="%GeneratorFunction%")st=ee("function* () {}");else if(Je==="%AsyncGeneratorFunction%")st=ee("async function* () {}");else if(Je==="%AsyncGenerator%"){var _e=He("%AsyncGeneratorFunction%");_e&&(st=_e.prototype)}else if(Je==="%AsyncIteratorPrototype%"){var Ke=He("%AsyncGenerator%");Ke&&ae&&(st=ae(Ke.prototype))}return ve[Je]=st,st},je={"%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"]},ke=a("function-bind"),Be=a("has"),De=ke.call(Function.call,Array.prototype.concat),Se=ke.call(Function.apply,Array.prototype.splice),Ee=ke.call(Function.call,String.prototype.replace),Ie=ke.call(Function.call,String.prototype.slice),Me=ke.call(Function.call,RegExp.prototype.exec),Le=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ae=/\\(\\)?/g,Pe=function(Je){var st=Ie(Je,0,1),_e=Ie(Je,-1);if(st==="%"&&_e!=="%")throw new z("invalid intrinsic syntax, expected closing `%`");if(_e==="%"&&st!=="%")throw new z("invalid intrinsic syntax, expected opening `%`");var Ke=[];return Ee(Je,Le,function(nt,rt,et,Ve){Ke[Ke.length]=et?Ee(Ve,Ae,"$1"):rt||nt}),Ke},Ue=function(Je,st){var _e=Je,Ke;if(Be(je,_e)&&(Ke=je[_e],_e="%"+Ke[0]+"%"),Be(ve,_e)){var nt=ve[_e];if(nt===he&&(nt=be(_e)),typeof nt=="undefined"&&!st)throw new oe("intrinsic "+Je+" exists, but is not available. Please file an issue!");return{alias:Ke,name:_e,value:nt}}throw new z("intrinsic "+Je+" does not exist!")};Te.exports=function(Je,st){if(typeof Je!="string"||Je.length===0)throw new oe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof st!="boolean")throw new oe('"allowMissing" argument must be a boolean');if(Me(/^%?[^%]*%?$/,Je)===null)throw new z("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var _e=Pe(Je),Ke=_e.length>0?_e[0]:"",nt=Ue("%"+Ke+"%",st),rt=nt.name,et=nt.value,Ve=!1,Ye=nt.alias;Ye&&(Ke=Ye[0],Se(_e,De([0,1],Ye)));for(var Ge=1,it=!0;Ge<_e.length;Ge+=1){var qe=_e[Ge],vt=Ie(qe,0,1),ot=Ie(qe,-1);if((vt==='"'||vt==="'"||vt==="`"||ot==='"'||ot==="'"||ot==="`")&&vt!==ot)throw new z("property names with quotes must have matching quotes");if((qe==="constructor"||!it)&&(Ve=!0),Ke+="."+qe,rt="%"+Ke+"%",Be(ve,rt))et=ve[rt];else if(et!=null){if(!(qe in et)){if(!st)throw new oe("base intrinsic for "+Je+" exists, but the property is not available.");return}if(ue&&Ge+1>=_e.length){var Qe=ue(et,qe);it=!!Qe,it&&"get"in Qe&&!("originalValue"in Qe.get)?et=Qe.get:et=et[qe]}else it=Be(et,qe),et=et[qe];it&&!Ve&&(ve[rt]=et)}}return et}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(a,Te,ge){"use strict";var x=a("get-intrinsic"),z=x("%Object.getOwnPropertyDescriptor%",!0);if(z)try{z([],"length")}catch(ie){z=null}Te.exports=z},{"get-intrinsic":348}],350:[function(a,Te,ge){"use strict";var x={foo:{}},z=Object;Te.exports=function(){return{__proto__:x}.foo===x.foo&&!({__proto__:null}instanceof z)}},{}],351:[function(a,Te,ge){"use strict";var x=typeof Symbol!="undefined"&&Symbol,z=a("./shams");Te.exports=function(){return typeof x!="function"||typeof Symbol!="function"||typeof x("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:z()}},{"./shams":352}],352:[function(a,Te,ge){"use strict";Te.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var z={},ie=Symbol("test"),oe=Object(ie);if(typeof ie=="string"||Object.prototype.toString.call(ie)!=="[object Symbol]"||Object.prototype.toString.call(oe)!=="[object Symbol]")return!1;var ee=42;z[ie]=ee;for(ie in z)return!1;if(typeof Object.keys=="function"&&Object.keys(z).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(z).length!==0)return!1;var ue=Object.getOwnPropertySymbols(z);if(ue.length!==1||ue[0]!==ie||!Object.prototype.propertyIsEnumerable.call(z,ie))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var E=Object.getOwnPropertyDescriptor(z,ie);if(E.value!==ee||E.enumerable!==!0)return!1}return!0}},{}],353:[function(a,Te,ge){"use strict";var x=a("has-symbols/shams");Te.exports=function(){return x()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(a,Te,ge){"use strict";var x=a("function-bind");Te.exports=x.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(a,Te,ge){var x=a("http"),z=a("url"),ie=Te.exports;for(var oe in x)x.hasOwnProperty(oe)&&(ie[oe]=x[oe]);ie.request=function(ue,E){return ue=ee(ue),x.request.call(this,ue,E)},ie.get=function(ue,E){return ue=ee(ue),x.get.call(this,ue,E)};function ee(ue){if(typeof ue=="string"&&(ue=z.parse(ue)),ue.protocol||(ue.protocol="https:"),ue.protocol!=="https:")throw new Error('Protocol "'+ue.protocol+'" not supported. Expected "https:"');return ue}},{http:468,url:472}],356:[function(a,Te,ge){"use strict";var x=a("util"),z=a("ms");Te.exports=function(ie){if(typeof ie=="number")return ie;var oe=z(ie);if(oe===void 0){var ee=new Error(x.format("humanize-ms(%j) result undefined",ie));console.warn(ee.stack)}return oe}},{ms:376,util:419}],357:[function(a,Te,ge){ge.read=function(x,z,ie,oe,ee){var ue,E,re=ee*8-oe-1,te=(1<<re)-1,se=te>>1,ae=-7,he=ie?ee-1:0,me=ie?-1:1,ve=x[z+he];for(he+=me,ue=ve&(1<<-ae)-1,ve>>=-ae,ae+=re;ae>0;ue=ue*256+x[z+he],he+=me,ae-=8);for(E=ue&(1<<-ae)-1,ue>>=-ae,ae+=oe;ae>0;E=E*256+x[z+he],he+=me,ae-=8);if(ue===0)ue=1-se;else{if(ue===te)return E?NaN:(ve?-1:1)*(1/0);E=E+Math.pow(2,oe),ue=ue-se}return(ve?-1:1)*E*Math.pow(2,ue-oe)},ge.write=function(x,z,ie,oe,ee,ue){var E,re,te,se=ue*8-ee-1,ae=(1<<se)-1,he=ae>>1,me=ee===23?Math.pow(2,-24)-Math.pow(2,-77):0,ve=oe?0:ue-1,pe=oe?1:-1,be=z<0||z===0&&1/z<0?1:0;for(z=Math.abs(z),isNaN(z)||z===1/0?(re=isNaN(z)?1:0,E=ae):(E=Math.floor(Math.log(z)/Math.LN2),z*(te=Math.pow(2,-E))<1&&(E--,te*=2),E+he>=1?z+=me/te:z+=me*Math.pow(2,1-he),z*te>=2&&(E++,te/=2),E+he>=ae?(re=0,E=ae):E+he>=1?(re=(z*te-1)*Math.pow(2,ee),E=E+he):(re=z*Math.pow(2,he-1)*Math.pow(2,ee),E=0));ee>=8;x[ie+ve]=re&255,ve+=pe,re/=256,ee-=8);for(E=E<<ee|re,se+=ee;se>0;x[ie+ve]=E&255,ve+=pe,E/=256,se-=8);x[ie+ve-pe]|=be*128}},{}],358:[function(a,Te,ge){"use strict";var x=[a("./nextTick"),a("./queueMicrotask"),a("./mutation.js"),a("./messageChannel"),a("./stateChange"),a("./timeout")],z,ie,oe=-1,ee=[],ue=!1;function E(){!z||!ie||(z=!1,ie.length?ee=ie.concat(ee):oe=-1,ee.length&&re())}function re(){if(!z){ue=!1,z=!0;for(var ve=ee.length,pe=setTimeout(E);ve;){for(ie=ee,ee=[];ie&&++oe<ve;)ie[oe].run();oe=-1,ve=ee.length}ie=null,oe=-1,z=!1,clearTimeout(pe)}}for(var te,se=-1,ae=x.length;++se<ae;)if(x[se]&&x[se].test&&x[se].test()){te=x[se].install(re);break}function he(ve,pe){this.fun=ve,this.array=pe}he.prototype.run=function(){var ve=this.fun,pe=this.array;switch(pe.length){case 0:return ve();case 1:return ve(pe[0]);case 2:return ve(pe[0],pe[1]);case 3:return ve(pe[0],pe[1],pe[2]);default:return ve.apply(null,pe)}},Te.exports=me;function me(ve){var pe=new Array(arguments.length-1);if(arguments.length>1)for(var be=1;be<arguments.length;be++)pe[be-1]=arguments[be];ee.push(new he(ve,pe)),!ue&&!z&&(ue=!0,te())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(a,Te,ge){(function(x){(function(){"use strict";ge.test=function(){return x.setImmediate?!1:typeof x.MessageChannel!="undefined"},ge.install=function(z){var ie=new x.MessageChannel;return ie.port1.onmessage=z,function(){ie.port2.postMessage(0)}}}).call(this)}).call(this,typeof Lt!="undefined"?Lt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(a,Te,ge){(function(x){(function(){"use strict";var z=x.MutationObserver||x.WebKitMutationObserver;ge.test=function(){return z},ge.install=function(ie){var oe=0,ee=new z(ie),ue=x.document.createTextNode("");return ee.observe(ue,{characterData:!0}),function(){ue.data=oe=++oe%2}}}).call(this)}).call(this,typeof Lt!="undefined"?Lt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(a,Te,ge){(function(x){(function(){"use strict";ge.test=function(){return typeof x.queueMicrotask=="function"},ge.install=function(z){return function(){x.queueMicrotask(z)}}}).call(this)}).call(this,typeof Lt!="undefined"?Lt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(a,Te,ge){(function(x){(function(){"use strict";ge.test=function(){return"document"in x&&"onreadystatechange"in x.document.createElement("script")},ge.install=function(z){return function(){var ie=x.document.createElement("script");return ie.onreadystatechange=function(){z(),ie.onreadystatechange=null,ie.parentNode.removeChild(ie),ie=null},x.document.documentElement.appendChild(ie),z}}}).call(this)}).call(this,typeof Lt!="undefined"?Lt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(a,Te,ge){"use strict";ge.test=function(){return!0},ge.install=function(x){return function(){setTimeout(x,0)}}},{}],364:[function(a,Te,ge){typeof Object.create=="function"?Te.exports=function(z,ie){ie&&(z.super_=ie,z.prototype=Object.create(ie.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}))}:Te.exports=function(z,ie){if(ie){z.super_=ie;var oe=function(){};oe.prototype=ie.prototype,z.prototype=new oe,z.prototype.constructor=z}}},{}],365:[function(a,Te,ge){"use strict";var x=a("has-tostringtag/shams")(),z=a("call-bind/callBound"),ie=z("Object.prototype.toString"),oe=function(re){return x&&re&&typeof re=="object"&&Symbol.toStringTag in re?!1:ie(re)==="[object Arguments]"},ee=function(re){return oe(re)?!0:re!==null&&typeof re=="object"&&typeof re.length=="number"&&re.length>=0&&ie(re)!=="[object Array]"&&ie(re.callee)==="[object Function]"},ue=function(){return oe(arguments)}();oe.isLegacyArguments=ee,Te.exports=ue?oe:ee},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(a,Te,ge){Te.exports=function(ie){return ie!=null&&(x(ie)||z(ie)||!!ie._isBuffer)};function x(ie){return!!ie.constructor&&typeof ie.constructor.isBuffer=="function"&&ie.constructor.isBuffer(ie)}function z(ie){return typeof ie.readFloatLE=="function"&&typeof ie.slice=="function"&&x(ie.slice(0,0))}},{}],367:[function(a,Te,ge){"use strict";var x=Function.prototype.toString,z=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ie,oe;if(typeof z=="function"&&typeof Object.defineProperty=="function")try{ie=Object.defineProperty({},"length",{get:function(){throw oe}}),oe={},z(function(){throw 42},null,ie)}catch(Be){Be!==oe&&(z=null)}else z=null;var ee=/^\s*class\b/,ue=function(De){try{var Se=x.call(De);return ee.test(Se)}catch(Ee){return!1}},E=function(De){try{return ue(De)?!1:(x.call(De),!0)}catch(Se){return!1}},re=Object.prototype.toString,te="[object Object]",se="[object Function]",ae="[object GeneratorFunction]",he="[object HTMLAllCollection]",me="[object HTML document.all class]",ve="[object HTMLCollection]",pe=typeof Symbol=="function"&&!!Symbol.toStringTag,be=!(0 in[,]),je=function(){return!1};if(typeof document=="object"){var ke=document.all;re.call(ke)===re.call(document.all)&&(je=function(De){if((be||!De)&&(typeof De=="undefined"||typeof De=="object"))try{var Se=re.call(De);return(Se===he||Se===me||Se===ve||Se===te)&&De("")==null}catch(Ee){}return!1})}Te.exports=z?function(De){if(je(De))return!0;if(!De||typeof De!="function"&&typeof De!="object")return!1;try{z(De,null,ie)}catch(Se){if(Se!==oe)return!1}return!ue(De)&&E(De)}:function(De){if(je(De))return!0;if(!De||typeof De!="function"&&typeof De!="object")return!1;if(pe)return E(De);if(ue(De))return!1;var Se=re.call(De);return Se!==se&&Se!==ae&&!/^\[object HTML/.test(Se)?!1:E(De)}},{}],368:[function(a,Te,ge){"use strict";var x=Object.prototype.toString,z=Function.prototype.toString,ie=/^\s*(?:function)?\*/,oe=a("has-tostringtag/shams")(),ee=Object.getPrototypeOf,ue=function(){if(!oe)return!1;try{return Function("return function*() {}")()}catch(re){}},E;Te.exports=function(te){if(typeof te!="function")return!1;if(ie.test(z.call(te)))return!0;if(!oe){var se=x.call(te);return se==="[object GeneratorFunction]"}if(!ee)return!1;if(typeof E=="undefined"){var ae=ue();E=ae?ee(ae):!1}return ee(te)===E}},{"has-tostringtag/shams":353}],369:[function(a,Te,ge){"use strict";var x=a("which-typed-array");Te.exports=function(ie){return!!x(ie)}},{"which-typed-array":420}],370:[function(a,Te,ge){var x={}.toString;Te.exports=Array.isArray||function(z){return x.call(z)=="[object Array]"}},{}],371:[function(a,Te,ge){(function(x){(function(){(function(z,ie){typeof ge=="object"&&typeof Te!="undefined"?Te.exports=ie(z):typeof Ce=="function"&&Ce.amd?Ce(ie):ie(z)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof x!="undefined"?x:this,function(z){"use strict";z=z||{};var ie=z.Base64,oe="2.6.4",ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ue=function(Je){for(var st={},_e=0,Ke=Je.length;_e<Ke;_e++)st[Je.charAt(_e)]=_e;return st}(ee),E=String.fromCharCode,re=function(Je){if(Je.length<2){var st=Je.charCodeAt(0);return st<128?Je:st<2048?E(192|st>>>6)+E(128|st&63):E(224|st>>>12&15)+E(128|st>>>6&63)+E(128|st&63)}else{var st=65536+(Je.charCodeAt(0)-55296)*1024+(Je.charCodeAt(1)-56320);return E(240|st>>>18&7)+E(128|st>>>12&63)+E(128|st>>>6&63)+E(128|st&63)}},te=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,se=function(Je){return Je.replace(te,re)},ae=function(Je){var st=[0,2,1][Je.length%3],_e=Je.charCodeAt(0)<<16|(Je.length>1?Je.charCodeAt(1):0)<<8|(Je.length>2?Je.charCodeAt(2):0),Ke=[ee.charAt(_e>>>18),ee.charAt(_e>>>12&63),st>=2?"=":ee.charAt(_e>>>6&63),st>=1?"=":ee.charAt(_e&63)];return Ke.join("")},he=z.btoa&&typeof z.btoa=="function"?function(Je){return z.btoa(Je)}:function(Je){if(Je.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Je.replace(/[\s\S]{1,3}/g,ae)},me=function(Je){return he(se(String(Je)))},ve=function(Je){return Je.replace(/[+\/]/g,function(st){return st=="+"?"-":"_"}).replace(/=/g,"")},pe=function(Je,st){return st?ve(me(Je)):me(Je)},be=function(Je){return pe(Je,!0)},je;z.Uint8Array&&(je=function(Je,st){for(var _e="",Ke=0,nt=Je.length;Ke<nt;Ke+=3){var rt=Je[Ke],et=Je[Ke+1],Ve=Je[Ke+2],Ye=rt<<16|et<<8|Ve;_e+=ee.charAt(Ye>>>18)+ee.charAt(Ye>>>12&63)+(typeof et!="undefined"?ee.charAt(Ye>>>6&63):"=")+(typeof Ve!="undefined"?ee.charAt(Ye&63):"=")}return st?ve(_e):_e});var ke=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Be=function(Je){switch(Je.length){case 4:var st=(7&Je.charCodeAt(0))<<18|(63&Je.charCodeAt(1))<<12|(63&Je.charCodeAt(2))<<6|63&Je.charCodeAt(3),_e=st-65536;return E((_e>>>10)+55296)+E((_e&1023)+56320);case 3:return E((15&Je.charCodeAt(0))<<12|(63&Je.charCodeAt(1))<<6|63&Je.charCodeAt(2));default:return E((31&Je.charCodeAt(0))<<6|63&Je.charCodeAt(1))}},De=function(Je){return Je.replace(ke,Be)},Se=function(Je){var st=Je.length,_e=st%4,Ke=(st>0?ue[Je.charAt(0)]<<18:0)|(st>1?ue[Je.charAt(1)]<<12:0)|(st>2?ue[Je.charAt(2)]<<6:0)|(st>3?ue[Je.charAt(3)]:0),nt=[E(Ke>>>16),E(Ke>>>8&255),E(Ke&255)];return nt.length-=[0,0,2,1][_e],nt.join("")},Ee=z.atob&&typeof z.atob=="function"?function(Je){return z.atob(Je)}:function(Je){return Je.replace(/\S{1,4}/g,Se)},Ie=function(Je){return Ee(String(Je).replace(/[^A-Za-z0-9\+\/]/g,""))},Me=function(Je){return De(Ee(Je))},Le=function(Je){return String(Je).replace(/[-_]/g,function(st){return st=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ae=function(Je){return Me(Le(Je))},Pe;z.Uint8Array&&(Pe=function(Je){return Uint8Array.from(Ie(Le(Je)),function(st){return st.charCodeAt(0)})});var Ue=function(){var Je=z.Base64;return z.Base64=ie,Je};if(z.Base64={VERSION:oe,atob:Ie,btoa:he,fromBase64:Ae,toBase64:pe,utob:se,encode:pe,encodeURI:be,btou:De,decode:Ae,noConflict:Ue,fromUint8Array:je,toUint8Array:Pe},typeof Object.defineProperty=="function"){var He=function(Je){return{value:Je,enumerable:!1,writable:!0,configurable:!0}};z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",He(function(){return Ae(this)})),Object.defineProperty(String.prototype,"toBase64",He(function(Je){return pe(this,Je)})),Object.defineProperty(String.prototype,"toBase64URI",He(function(){return pe(this,!0)}))}}return z.Meteor&&(Base64=z.Base64),typeof Te!="undefined"&&Te.exports?Te.exports.Base64=z.Base64:typeof Ce=="function"&&Ce.amd&&Ce([],function(){return z.Base64}),{Base64:z.Base64}})}).call(this)}).call(this,typeof Lt!="undefined"?Lt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(a,Te,ge){"use strict";Te.exports=z;var x=Object.prototype.hasOwnProperty;function z(ie,oe,ee){if(!ie)throw new TypeError("argument dest is required");if(!oe)throw new TypeError("argument src is required");return ee===void 0&&(ee=!0),Object.getOwnPropertyNames(oe).forEach(function(E){if(!(!ee&&x.call(ie,E))){var re=Object.getOwnPropertyDescriptor(oe,E);Object.defineProperty(ie,E,re)}}),ie}},{}],373:[function(a,Te,ge){"use strict";a("core-js/modules/es.array.map.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.regexp.constructor.js"),a("core-js/modules/es.regexp.to-string.js");function x(){this._types=Object.create(null),this._extensions=Object.create(null);for(var z=0;z<arguments.length;z++)this.define(arguments[z]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}x.prototype.define=function(z,ie){for(var oe in z){var ee=z[oe].map(function(te){return te.toLowerCase()});oe=oe.toLowerCase();for(var ue=0;ue<ee.length;ue++){var E=ee[ue];if(E[0]!=="*"){if(!ie&&E in this._types)throw new Error('Attempt to change mapping for "'+E+'" extension from "'+this._types[E]+'" to "'+oe+'". Pass `force=true` to allow this, otherwise remove "'+E+'" from the list of extensions for "'+oe+'".');this._types[E]=oe}}if(ie||!this._extensions[oe]){var re=ee[0];this._extensions[oe]=re[0]!=="*"?re:re.substr(1)}}},x.prototype.getType=function(z){z=String(z);var ie=z.replace(/^.*[/\\]/,"").toLowerCase(),oe=ie.replace(/^.*\./,"").toLowerCase(),ee=ie.length<z.length,ue=oe.length<ie.length-1;return(ue||!ee)&&this._types[oe]||null},x.prototype.getExtension=function(z){return z=/^\s*([^;\s]*)/.test(z)&&RegExp.$1,z&&this._extensions[z.toLowerCase()]||null},Te.exports=x},{"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(a,Te,ge){"use strict";var x=a("./Mime");Te.exports=new x(a("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(a,Te,ge){"use strict";Te.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(a,Te,ge){var x=1e3,z=x*60,ie=z*60,oe=ie*24,ee=oe*7,ue=oe*365.25;Te.exports=function(ae,he){he=he||{};var me=typeof ae;if(me==="string"&&ae.length>0)return E(ae);if(me==="number"&&isFinite(ae))return he.long?te(ae):re(ae);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(ae))};function E(ae){if(ae=String(ae),!(ae.length>100)){var he=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(ae);if(he){var me=parseFloat(he[1]),ve=(he[2]||"ms").toLowerCase();switch(ve){case"years":case"year":case"yrs":case"yr":case"y":return me*ue;case"weeks":case"week":case"w":return me*ee;case"days":case"day":case"d":return me*oe;case"hours":case"hour":case"hrs":case"hr":case"h":return me*ie;case"minutes":case"minute":case"mins":case"min":case"m":return me*z;case"seconds":case"second":case"secs":case"sec":case"s":return me*x;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return me;default:return}}}}function re(ae){var he=Math.abs(ae);return he>=oe?Math.round(ae/oe)+"d":he>=ie?Math.round(ae/ie)+"h":he>=z?Math.round(ae/z)+"m":he>=x?Math.round(ae/x)+"s":ae+"ms"}function te(ae){var he=Math.abs(ae);return he>=oe?se(ae,he,oe,"day"):he>=ie?se(ae,he,ie,"hour"):he>=z?se(ae,he,z,"minute"):he>=x?se(ae,he,x,"second"):ae+" ms"}function se(ae,he,me,ve){var pe=he>=me*1.5;return Math.round(ae/me)+" "+ve+(pe?"s":"")}},{}],377:[function(a,Te,ge){"use strict";var x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;function oe(ue){if(ue==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(ue)}function ee(){try{if(!Object.assign)return!1;var ue=new String("abc");if(ue[5]="de",Object.getOwnPropertyNames(ue)[0]==="5")return!1;for(var E={},re=0;re<10;re++)E["_"+String.fromCharCode(re)]=re;var te=Object.getOwnPropertyNames(E).map(function(ae){return E[ae]});if(te.join("")!=="0123456789")return!1;var se={};return"abcdefghijklmnopqrst".split("").forEach(function(ae){se[ae]=ae}),Object.keys(Object.assign({},se)).join("")==="abcdefghijklmnopqrst"}catch(ae){return!1}}Te.exports=ee()?Object.assign:function(ue,E){for(var re,te=oe(ue),se,ae=1;ae<arguments.length;ae++){re=Object(arguments[ae]);for(var he in re)z.call(re,he)&&(te[he]=re[he]);if(x){se=x(re);for(var me=0;me<se.length;me++)ie.call(re,se[me])&&(te[se[me]]=re[se[me]])}}return te}},{}],378:[function(a,Te,ge){(function(x){(function(){"use strict";function z(ue){if(typeof ue!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(ue))}function ie(ue,E){for(var re="",te=0,se=-1,ae=0,he,me=0;me<=ue.length;++me){if(me<ue.length)he=ue.charCodeAt(me);else{if(he===47)break;he=47}if(he===47){if(!(se===me-1||ae===1))if(se!==me-1&&ae===2){if(re.length<2||te!==2||re.charCodeAt(re.length-1)!==46||re.charCodeAt(re.length-2)!==46){if(re.length>2){var ve=re.lastIndexOf("/");if(ve!==re.length-1){ve===-1?(re="",te=0):(re=re.slice(0,ve),te=re.length-1-re.lastIndexOf("/")),se=me,ae=0;continue}}else if(re.length===2||re.length===1){re="",te=0,se=me,ae=0;continue}}E&&(re.length>0?re+="/..":re="..",te=2)}else re.length>0?re+="/"+ue.slice(se+1,me):re=ue.slice(se+1,me),te=me-se-1;se=me,ae=0}else he===46&&ae!==-1?++ae:ae=-1}return re}function oe(ue,E){var re=E.dir||E.root,te=E.base||(E.name||"")+(E.ext||"");return re?re===E.root?re+te:re+ue+te:te}var ee={resolve:function(){for(var E="",re=!1,te,se=arguments.length-1;se>=-1&&!re;se--){var ae;se>=0?ae=arguments[se]:(te===void 0&&(te=x.cwd()),ae=te),z(ae),ae.length!==0&&(E=ae+"/"+E,re=ae.charCodeAt(0)===47)}return E=ie(E,!re),re?E.length>0?"/"+E:"/":E.length>0?E:"."},normalize:function(E){if(z(E),E.length===0)return".";var re=E.charCodeAt(0)===47,te=E.charCodeAt(E.length-1)===47;return E=ie(E,!re),E.length===0&&!re&&(E="."),E.length>0&&te&&(E+="/"),re?"/"+E:E},isAbsolute:function(E){return z(E),E.length>0&&E.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var E,re=0;re<arguments.length;++re){var te=arguments[re];z(te),te.length>0&&(E===void 0?E=te:E+="/"+te)}return E===void 0?".":ee.normalize(E)},relative:function(E,re){if(z(E),z(re),E===re||(E=ee.resolve(E),re=ee.resolve(re),E===re))return"";for(var te=1;te<E.length&&E.charCodeAt(te)===47;++te);for(var se=E.length,ae=se-te,he=1;he<re.length&&re.charCodeAt(he)===47;++he);for(var me=re.length,ve=me-he,pe=ae<ve?ae:ve,be=-1,je=0;je<=pe;++je){if(je===pe){if(ve>pe){if(re.charCodeAt(he+je)===47)return re.slice(he+je+1);if(je===0)return re.slice(he+je)}else ae>pe&&(E.charCodeAt(te+je)===47?be=je:je===0&&(be=0));break}var ke=E.charCodeAt(te+je),Be=re.charCodeAt(he+je);if(ke!==Be)break;ke===47&&(be=je)}var De="";for(je=te+be+1;je<=se;++je)(je===se||E.charCodeAt(je)===47)&&(De.length===0?De+="..":De+="/..");return De.length>0?De+re.slice(he+be):(he+=be,re.charCodeAt(he)===47&&++he,re.slice(he))},_makeLong:function(E){return E},dirname:function(E){if(z(E),E.length===0)return".";for(var re=E.charCodeAt(0),te=re===47,se=-1,ae=!0,he=E.length-1;he>=1;--he)if(re=E.charCodeAt(he),re===47){if(!ae){se=he;break}}else ae=!1;return se===-1?te?"/":".":te&&se===1?"//":E.slice(0,se)},basename:function(E,re){if(re!==void 0&&typeof re!="string")throw new TypeError('"ext" argument must be a string');z(E);var te=0,se=-1,ae=!0,he;if(re!==void 0&&re.length>0&&re.length<=E.length){if(re.length===E.length&&re===E)return"";var me=re.length-1,ve=-1;for(he=E.length-1;he>=0;--he){var pe=E.charCodeAt(he);if(pe===47){if(!ae){te=he+1;break}}else ve===-1&&(ae=!1,ve=he+1),me>=0&&(pe===re.charCodeAt(me)?--me===-1&&(se=he):(me=-1,se=ve))}return te===se?se=ve:se===-1&&(se=E.length),E.slice(te,se)}else{for(he=E.length-1;he>=0;--he)if(E.charCodeAt(he)===47){if(!ae){te=he+1;break}}else se===-1&&(ae=!1,se=he+1);return se===-1?"":E.slice(te,se)}},extname:function(E){z(E);for(var re=-1,te=0,se=-1,ae=!0,he=0,me=E.length-1;me>=0;--me){var ve=E.charCodeAt(me);if(ve===47){if(!ae){te=me+1;break}continue}se===-1&&(ae=!1,se=me+1),ve===46?re===-1?re=me:he!==1&&(he=1):re!==-1&&(he=-1)}return re===-1||se===-1||he===0||he===1&&re===se-1&&re===te+1?"":E.slice(re,se)},format:function(E){if(E===null||typeof E!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof E);return oe("/",E)},parse:function(E){z(E);var re={root:"",dir:"",base:"",ext:"",name:""};if(E.length===0)return re;var te=E.charCodeAt(0),se=te===47,ae;se?(re.root="/",ae=1):ae=0;for(var he=-1,me=0,ve=-1,pe=!0,be=E.length-1,je=0;be>=ae;--be){if(te=E.charCodeAt(be),te===47){if(!pe){me=be+1;break}continue}ve===-1&&(pe=!1,ve=be+1),te===46?he===-1?he=be:je!==1&&(je=1):he!==-1&&(je=-1)}return he===-1||ve===-1||je===0||je===1&&he===ve-1&&he===me+1?ve!==-1&&(me===0&&se?re.base=re.name=E.slice(1,ve):re.base=re.name=E.slice(me,ve)):(me===0&&se?(re.name=E.slice(1,he),re.base=E.slice(1,ve)):(re.name=E.slice(me,he),re.base=E.slice(me,ve)),re.ext=E.slice(he,ve)),me>0?re.dir=E.slice(0,me-1):se&&(re.dir="/"),re},sep:"/",delimiter:":",win32:null,posix:null};ee.posix=ee,Te.exports=ee}).call(this)}).call(this,a("_process"))},{_process:467}],379:[function(a,Te,ge){(function(x){(function(){(function(){"use strict";var z={function:!0,object:!0},ie=z[typeof window]&&window||this,oe=ie,ee=z[typeof ge]&&ge,ue=z[typeof Te]&&Te&&!Te.nodeType&&Te,E=ee&&ue&&typeof x=="object"&&x;E&&(E.global===E||E.window===E||E.self===E)&&(ie=E);var re=Math.pow(2,53)-1,te=/\bOpera/,se=this,ae=Object.prototype,he=ae.hasOwnProperty,me=ae.toString;function ve(Ae){return Ae=String(Ae),Ae.charAt(0).toUpperCase()+Ae.slice(1)}function pe(Ae,Pe,Ue){var He={"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 Pe&&Ue&&/^Win/i.test(Ae)&&!/^Windows Phone /i.test(Ae)&&(He=He[/[\d.]+$/.exec(Ae)])&&(Ae="Windows "+He),Ae=String(Ae),Pe&&Ue&&(Ae=Ae.replace(RegExp(Pe,"i"),Ue)),Ae=je(Ae.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]),Ae}function be(Ae,Pe){var Ue=-1,He=Ae?Ae.length:0;if(typeof He=="number"&&He>-1&&He<=re)for(;++Ue<He;)Pe(Ae[Ue],Ue,Ae);else ke(Ae,Pe)}function je(Ae){return Ae=Ie(Ae),/^(?:webOS|i(?:OS|P))/.test(Ae)?Ae:ve(Ae)}function ke(Ae,Pe){for(var Ue in Ae)he.call(Ae,Ue)&&Pe(Ae[Ue],Ue,Ae)}function Be(Ae){return Ae==null?ve(Ae):me.call(Ae).slice(8,-1)}function De(Ae,Pe){var Ue=Ae!=null?typeof Ae[Pe]:"number";return!/^(?:boolean|number|string|undefined)$/.test(Ue)&&(Ue=="object"?!!Ae[Pe]:!0)}function Se(Ae){return String(Ae).replace(/([ -])(?!$)/g,"$1?")}function Ee(Ae,Pe){var Ue=null;return be(Ae,function(He,Je){Ue=Pe(Ue,He,Je,Ae)}),Ue}function Ie(Ae){return String(Ae).replace(/^ +| +$/g,"")}function Me(Ae){var Pe=ie,Ue=Ae&&typeof Ae=="object"&&Be(Ae)!="String";Ue&&(Pe=Ae,Ae=null);var He=Pe.navigator||{},Je=He.userAgent||"";Ae||(Ae=Je);var st=Ue||se==oe,_e=Ue?!!He.likeChrome:/\bChrome\b/.test(Ae)&&!/internal|\n/i.test(me.toString()),Ke="Object",nt=Ue?Ke:"ScriptBridgingProxyObject",rt=Ue?Ke:"Environment",et=Ue&&Pe.java?"JavaPackage":Be(Pe.java),Ve=Ue?Ke:"RuntimeObject",Ye=/\bJava/.test(et)&&Pe.java,Ge=Ye&&Be(Pe.environment)==rt,it=Ye?"a":"\u03B1",qe=Ye?"b":"\u03B2",vt=Pe.document||{},ot=Pe.operamini||Pe.opera,Qe=te.test(Qe=Ue&&ot?ot["[[Class]]"]:Be(ot))?Qe:ot=null,Fe,Re=Ae,ne=[],fe=null,Ne=Ae==Je,We=Ne&&ot&&typeof ot.version=="function"&&ot.version(),we,ye=at([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Oe=mt(["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=ct([{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"]),Ze=lt({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),Xe=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 at(At){return Ee(At,function(pt,Mt){return pt||RegExp("\\b"+(Mt.pattern||Se(Mt))+"\\b","i").exec(Ae)&&(Mt.label||Mt)})}function lt(At){return Ee(At,function(pt,Mt,kt){return pt||(Mt[$e]||Mt[/^[a-z]+(?: +[a-z]+\b)*/i.exec($e)]||RegExp("\\b"+Se(kt)+"(?:\\b|\\w*\\d)","i").exec(Ae))&&kt})}function mt(At){return Ee(At,function(pt,Mt){return pt||RegExp("\\b"+(Mt.pattern||Se(Mt))+"\\b","i").exec(Ae)&&(Mt.label||Mt)})}function ut(At){return Ee(At,function(pt,Mt){var kt=Mt.pattern||Se(Mt);return!pt&&(pt=RegExp("\\b"+kt+"(?:/[\\d.]+|[ \\w.]*)","i").exec(Ae))&&(pt=pe(pt,kt,Mt.label||Mt)),pt})}function ct(At){return Ee(At,function(pt,Mt){var kt=Mt.pattern||Se(Mt);return!pt&&(pt=RegExp("\\b"+kt+" *\\d+[.\\w_]*","i").exec(Ae)||RegExp("\\b"+kt+" *\\w+-[\\w]*","i").exec(Ae)||RegExp("\\b"+kt+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(Ae))&&((pt=String(Mt.label&&!RegExp(kt,"i").test(Mt.label)?Mt.label:pt).split("/"))[1]&&!/[\d.]+/.test(pt[0])&&(pt[0]+=" "+pt[1]),Mt=Mt.label||Mt,pt=je(pt[0].replace(RegExp(kt,"i"),Mt).replace(RegExp("; *(?:"+Mt+"[_-])?","i")," ").replace(RegExp("("+Mt+")[-_.]?(\\w)","i"),"$1 $2"))),pt})}function Pt(At){return Ee(At,function(pt,Mt){return pt||(RegExp(Mt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(Ae)||0)[1]||null})}function wt(){return this.description||""}if(ye&&(ye=[ye]),/\bAndroid\b/.test(Xe)&&!$e&&(Fe=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(Ae))&&($e=Ie(Fe[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),Ze&&!$e?$e=ct([Ze]):Ze&&$e&&($e=$e.replace(RegExp("^("+Se(Ze)+")[-_.\\s]","i"),Ze+" ").replace(RegExp("^("+Se(Ze)+")[-_.]?(\\w)","i"),Ze+" $2")),(Fe=/\bGoogle TV\b/.exec($e))&&($e=Fe[0]),/\bSimulator\b/i.test(Ae)&&($e=($e?$e+" ":"")+"Simulator"),Oe=="Opera Mini"&&/\bOPiOS\b/.test(Ae)&&ne.push("running in Turbo/Uncompressed mode"),Oe=="IE"&&/\blike iPhone OS\b/.test(Ae)?(Fe=Me(Ae.replace(/like iPhone OS/,"")),Ze=Fe.manufacturer,$e=Fe.product):/^iP/.test($e)?(Oe||(Oe="Safari"),Xe="iOS"+((Fe=/ OS ([\d_]+)/i.exec(Ae))?" "+Fe[1].replace(/_/g,"."):"")):Oe=="Konqueror"&&/^Linux\b/i.test(Xe)?Xe="Kubuntu":Ze&&Ze!="Google"&&(/Chrome/.test(Oe)&&!/\bMobile Safari\b/i.test(Ae)||/\bVita\b/.test($e))||/\bAndroid\b/.test(Xe)&&/^Chrome/.test(Oe)&&/\bVersion\//i.test(Ae)?(Oe="Android Browser",Xe=/\bAndroid\b/.test(Xe)?Xe:"Android"):Oe=="Silk"?(/\bMobi/i.test(Ae)||(Xe="Android",ne.unshift("desktop mode")),/Accelerated *= *true/i.test(Ae)&&ne.unshift("accelerated")):Oe=="UC Browser"&&/\bUCWEB\b/.test(Ae)?ne.push("speed mode"):Oe=="PaleMoon"&&(Fe=/\bFirefox\/([\d.]+)\b/.exec(Ae))?ne.push("identifying as Firefox "+Fe[1]):Oe=="Firefox"&&(Fe=/\b(Mobile|Tablet|TV)\b/i.exec(Ae))?(Xe||(Xe="Firefox OS"),$e||($e=Fe[1])):!Oe||(Fe=!/\bMinefield\b/i.test(Ae)&&/\b(?:Firefox|Safari)\b/.exec(Oe))?(Oe&&!$e&&/[\/,]|^[^(]+?\)/.test(Ae.slice(Ae.indexOf(Fe+"/")+8))&&(Oe=null),(Fe=$e||Ze||Xe)&&($e||Ze||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Xe))&&(Oe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Xe)?Xe:Fe)+" Browser")):Oe=="Electron"&&(Fe=(/\bChrome\/([\d.]+)\b/.exec(Ae)||0)[1])&&ne.push("Chromium "+Fe),We||(We=Pt(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",Se(Oe),"(?:Firefox|Minefield|NetFront)"])),(Fe=ye=="iCab"&&parseFloat(We)>3&&"WebKit"||/\bOpera\b/.test(Oe)&&(/\bOPR\b/.test(Ae)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(Ae)&&!/^(?:Trident|EdgeHTML)$/.test(ye)&&"WebKit"||!ye&&/\bMSIE\b/i.test(Ae)&&(Xe=="Mac OS"?"Tasman":"Trident")||ye=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Oe)&&"NetFront")&&(ye=[Fe]),Oe=="IE"&&(Fe=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(Ae)||0)[1])?(Oe+=" Mobile",Xe="Windows Phone "+(/\+$/.test(Fe)?Fe:Fe+".x"),ne.unshift("desktop mode")):/\bWPDesktop\b/i.test(Ae)?(Oe="IE Mobile",Xe="Windows Phone 8.x",ne.unshift("desktop mode"),We||(We=(/\brv:([\d.]+)/.exec(Ae)||0)[1])):Oe!="IE"&&ye=="Trident"&&(Fe=/\brv:([\d.]+)/.exec(Ae))&&(Oe&&ne.push("identifying as "+Oe+(We?" "+We:"")),Oe="IE",We=Fe[1]),Ne){if(De(Pe,"global"))if(Ye&&(Fe=Ye.lang.System,Re=Fe.getProperty("os.arch"),Xe=Xe||Fe.getProperty("os.name")+" "+Fe.getProperty("os.version")),Ge){try{We=Pe.require("ringo/engine").version.join("."),Oe="RingoJS"}catch(At){(Fe=Pe.system)&&Fe.global.system==Pe.system&&(Oe="Narwhal",Xe||(Xe=Fe[0].os||null))}Oe||(Oe="Rhino")}else typeof Pe.process=="object"&&!Pe.process.browser&&(Fe=Pe.process)&&(typeof Fe.versions=="object"&&(typeof Fe.versions.electron=="string"?(ne.push("Node "+Fe.versions.node),Oe="Electron",We=Fe.versions.electron):typeof Fe.versions.nw=="string"&&(ne.push("Chromium "+We,"Node "+Fe.versions.node),Oe="NW.js",We=Fe.versions.nw)),Oe||(Oe="Node.js",Re=Fe.arch,Xe=Fe.platform,We=/[\d.]+/.exec(Fe.version),We=We?We[0]:null));else Be(Fe=Pe.runtime)==nt?(Oe="Adobe AIR",Xe=Fe.flash.system.Capabilities.os):Be(Fe=Pe.phantom)==Ve?(Oe="PhantomJS",We=(Fe=Fe.version||null)&&Fe.major+"."+Fe.minor+"."+Fe.patch):typeof vt.documentMode=="number"&&(Fe=/\bTrident\/(\d+)/i.exec(Ae))?(We=[We,vt.documentMode],(Fe=+Fe[1]+4)!=We[1]&&(ne.push("IE "+We[1]+" mode"),ye&&(ye[1]=""),We[1]=Fe),We=Oe=="IE"?String(We[1].toFixed(1)):We[0]):typeof vt.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Oe)&&(ne.push("masking as "+Oe+" "+We),Oe="IE",We="11.0",ye=["Trident"],Xe="Windows");Xe=Xe&&je(Xe)}if(We&&(Fe=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(We)||/(?:alpha|beta)(?: ?\d)?/i.exec(Ae+";"+(Ne&&He.appMinorVersion))||/\bMinefield\b/i.test(Ae)&&"a")&&(fe=/b/i.test(Fe)?"beta":"alpha",We=We.replace(RegExp(Fe+"\\+?$"),"")+(fe=="beta"?qe:it)+(/\d+\+?/.exec(Fe)||"")),Oe=="Fennec"||Oe=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Xe))Oe="Firefox Mobile";else if(Oe=="Maxthon"&&We)We=We.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test($e))$e=="Xbox 360"&&(Xe=null),$e=="Xbox 360"&&/\bIEMobile\b/.test(Ae)&&ne.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Oe)||Oe&&!$e&&!/Browser|Mobi/.test(Oe))&&(Xe=="Windows CE"||/Mobi/i.test(Ae)))Oe+=" Mobile";else if(Oe=="IE"&&Ne)try{Pe.external===null&&ne.unshift("platform preview")}catch(At){ne.unshift("embedded")}else(/\bBlackBerry\b/.test($e)||/\bBB10\b/.test(Ae))&&(Fe=(RegExp($e.replace(/ +/g," *")+"/([.\\d]+)","i").exec(Ae)||0)[1]||We)?(Fe=[Fe,/BB10/.test(Ae)],Xe=(Fe[1]?($e=null,Ze="BlackBerry"):"Device Software")+" "+Fe[0],We=null):this!=ke&&$e!="Wii"&&(Ne&&ot||/Opera/.test(Oe)&&/\b(?:MSIE|Firefox)\b/i.test(Ae)||Oe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Xe)||Oe=="IE"&&(Xe&&!/^Win/.test(Xe)&&We>5.5||/\bWindows XP\b/.test(Xe)&&We>8||We==8&&!/\bTrident\b/.test(Ae)))&&!te.test(Fe=Me.call(ke,Ae.replace(te,"")+";"))&&Fe.name&&(Fe="ing as "+Fe.name+((Fe=Fe.version)?" "+Fe:""),te.test(Oe)?(/\bIE\b/.test(Fe)&&Xe=="Mac OS"&&(Xe=null),Fe="identify"+Fe):(Fe="mask"+Fe,Qe?Oe=je(Qe.replace(/([a-z])([A-Z])/g,"$1 $2")):Oe="Opera",/\bIE\b/.test(Fe)&&(Xe=null),Ne||(We=null)),ye=["Presto"],ne.push(Fe));(Fe=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(Ae)||0)[1])&&(Fe=[parseFloat(Fe.replace(/\.(\d)$/,".0$1")),Fe],Oe=="Safari"&&Fe[1].slice(-1)=="+"?(Oe="WebKit Nightly",fe="alpha",We=Fe[1].slice(0,-1)):(We==Fe[1]||We==(Fe[2]=(/\bSafari\/([\d.]+\+?)/i.exec(Ae)||0)[1]))&&(We=null),Fe[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(Ae)||0)[1],Fe[0]==537.36&&Fe[2]==537.36&&parseFloat(Fe[1])>=28&&ye=="WebKit"&&(ye=["Blink"]),!Ne||!_e&&!Fe[1]?(ye&&(ye[1]="like Safari"),Fe=(Fe=Fe[0],Fe<400?1:Fe<500?2:Fe<526?3:Fe<533?4:Fe<534?"4+":Fe<535?5:Fe<537?6:Fe<538?7:Fe<601?8:Fe<602?9:Fe<604?10:Fe<606?11:Fe<608?12:"12")):(ye&&(ye[1]="like Chrome"),Fe=Fe[1]||(Fe=Fe[0],Fe<530?1:Fe<532?2:Fe<532.05?3:Fe<533?4:Fe<534.03?5:Fe<534.07?6:Fe<534.1?7:Fe<534.13?8:Fe<534.16?9:Fe<534.24?10:Fe<534.3?11:Fe<535.01?12:Fe<535.02?"13+":Fe<535.07?15:Fe<535.11?16:Fe<535.19?17:Fe<536.05?18:Fe<536.1?19:Fe<537.01?20:Fe<537.11?"21+":Fe<537.13?23:Fe<537.18?24:Fe<537.24?25:Fe<537.36?26:ye!="Blink"?"27":"28")),ye&&(ye[1]+=" "+(Fe+=typeof Fe=="number"?".x":/[.+]/.test(Fe)?"":"+")),Oe=="Safari"&&(!We||parseInt(We)>45)?We=Fe:Oe=="Chrome"&&/\bHeadlessChrome/i.test(Ae)&&ne.unshift("headless")),Oe=="Opera"&&(Fe=/\bzbov|zvav$/.exec(Xe))?(Oe+=" ",ne.unshift("desktop mode"),Fe=="zvav"?(Oe+="Mini",We=null):Oe+="Mobile",Xe=Xe.replace(RegExp(" *"+Fe+"$"),"")):Oe=="Safari"&&/\bChrome\b/.exec(ye&&ye[1])?(ne.unshift("desktop mode"),Oe="Chrome Mobile",We=null,/\bOS X\b/.test(Xe)?(Ze="Apple",Xe="iOS 4.3+"):Xe=null):/\bSRWare Iron\b/.test(Oe)&&!We&&(We=Pt("Chrome")),We&&We.indexOf(Fe=/[\d.]+$/.exec(Xe))==0&&Ae.indexOf("/"+Fe+"-")>-1&&(Xe=Ie(Xe.replace(Fe,""))),Xe&&Xe.indexOf(Oe)!=-1&&!RegExp(Oe+" OS").test(Xe)&&(Xe=Xe.replace(RegExp(" *"+Se(Oe)+" *"),"")),ye&&!/\b(?:Avant|Nook)\b/.test(Oe)&&(/Browser|Lunascape|Maxthon/.test(Oe)||Oe!="Safari"&&/^iOS/.test(Xe)&&/\bSafari\b/.test(ye[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Oe)&&ye[1])&&(Fe=ye[ye.length-1])&&ne.push(Fe),ne.length&&(ne=["("+ne.join("; ")+")"]),Ze&&$e&&$e.indexOf(Ze)<0&&ne.push("on "+Ze),$e&&ne.push((/^on /.test(ne[ne.length-1])?"":"on ")+$e),Xe&&(Fe=/ ([\d.+]+)$/.exec(Xe),we=Fe&&Xe.charAt(Xe.length-Fe[0].length-1)=="/",Xe={architecture:32,family:Fe&&!we?Xe.replace(Fe[0],""):Xe,version:Fe?Fe[1]:null,toString:function(){var At=this.version;return this.family+(At&&!we?" "+At:"")+(this.architecture==64?" 64-bit":"")}}),(Fe=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Re))&&!/\bi686\b/i.test(Re)?(Xe&&(Xe.architecture=64,Xe.family=Xe.family.replace(RegExp(" *"+Fe),"")),Oe&&(/\bWOW64\b/i.test(Ae)||Ne&&/\w(?:86|32)$/.test(He.cpuClass||He.platform)&&!/\bWin64; x64\b/i.test(Ae))&&ne.unshift("32-bit")):Xe&&/^OS X/.test(Xe.family)&&Oe=="Chrome"&&parseFloat(We)>=39&&(Xe.architecture=64),Ae||(Ae=null);var Bt={};return Bt.description=Ae,Bt.layout=ye&&ye[0],Bt.manufacturer=Ze,Bt.name=Oe,Bt.prerelease=fe,Bt.product=$e,Bt.ua=Ae,Bt.version=Oe&&We,Bt.os=Xe||{architecture:null,family:null,version:null,toString:function(){return"null"}},Bt.parse=Me,Bt.toString=wt,Bt.version&&ne.unshift(We),Bt.name&&ne.unshift(Oe),Xe&&Oe&&!(Xe==String(Xe).split(" ")[0]&&(Xe==Oe.split(" ")[0]||$e))&&ne.push($e?"("+Xe+")":"on "+Xe),ne.length&&(Bt.description=ne.join(" ")),Bt}var Le=Me();typeof Ce=="function"&&typeof Ce.amd=="object"&&Ce.amd?(ie.platform=Le,Ce(function(){return Le})):ee&&ue?ke(Le,function(Ae,Pe){ee[Pe]=Ae}):ie.platform=Le}).call(this)}).call(this)}).call(this,typeof Lt!="undefined"?Lt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(a,Te,ge){(function(x){(function(){"use strict";typeof x=="undefined"||!x.version||x.version.indexOf("v0.")===0||x.version.indexOf("v1.")===0&&x.version.indexOf("v1.8.")!==0?Te.exports={nextTick:z}:Te.exports=x;function z(ie,oe,ee,ue){if(typeof ie!="function")throw new TypeError('"callback" argument must be a function');var E=arguments.length,re,te;switch(E){case 0:case 1:return x.nextTick(ie);case 2:return x.nextTick(function(){ie.call(null,oe)});case 3:return x.nextTick(function(){ie.call(null,oe,ee)});case 4:return x.nextTick(function(){ie.call(null,oe,ee,ue)});default:for(re=new Array(E-1),te=0;te<re.length;)re[te++]=arguments[te];return x.nextTick(function(){ie.apply(null,re)})}}}).call(this)}).call(this,a("_process"))},{_process:467}],381:[function(a,Te,ge){var x=Te.exports={},z,ie;function oe(){throw new Error("setTimeout has not been defined")}function ee(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?z=setTimeout:z=oe}catch(be){z=oe}try{typeof clearTimeout=="function"?ie=clearTimeout:ie=ee}catch(be){ie=ee}})();function ue(be){if(z===setTimeout)return setTimeout(be,0);if((z===oe||!z)&&setTimeout)return z=setTimeout,setTimeout(be,0);try{return z(be,0)}catch(je){try{return z.call(null,be,0)}catch(ke){return z.call(this,be,0)}}}function E(be){if(ie===clearTimeout)return clearTimeout(be);if((ie===ee||!ie)&&clearTimeout)return ie=clearTimeout,clearTimeout(be);try{return ie(be)}catch(je){try{return ie.call(null,be)}catch(ke){return ie.call(this,be)}}}var re=[],te=!1,se,ae=-1;function he(){!te||!se||(te=!1,se.length?re=se.concat(re):ae=-1,re.length&&me())}function me(){if(!te){var be=ue(he);te=!0;for(var je=re.length;je;){for(se=re,re=[];++ae<je;)se&&se[ae].run();ae=-1,je=re.length}se=null,te=!1,E(be)}}x.nextTick=function(be){var je=new Array(arguments.length-1);if(arguments.length>1)for(var ke=1;ke<arguments.length;ke++)je[ke-1]=arguments[ke];re.push(new ve(be,je)),re.length===1&&!te&&ue(me)};function ve(be,je){this.fun=be,this.array=je}ve.prototype.run=function(){this.fun.apply(null,this.array)},x.title="browser",x.browser=!0,x.env={},x.argv=[],x.version="",x.versions={};function pe(){}x.on=pe,x.addListener=pe,x.once=pe,x.off=pe,x.removeListener=pe,x.removeAllListeners=pe,x.emit=pe,x.prependListener=pe,x.prependOnceListener=pe,x.listeners=function(be){return[]},x.binding=function(be){throw new Error("process.binding is not supported")},x.cwd=function(){return"/"},x.chdir=function(be){throw new Error("process.chdir is not supported")},x.umask=function(){return 0}},{}],382:[function(a,Te,ge){(function(x){(function(){(function(z){var ie=typeof ge=="object"&&ge&&!ge.nodeType&&ge,oe=typeof Te=="object"&&Te&&!Te.nodeType&&Te,ee=typeof x=="object"&&x;(ee.global===ee||ee.window===ee||ee.self===ee)&&(z=ee);var ue,E=2147483647,re=36,te=1,se=26,ae=38,he=700,me=72,ve=128,pe="-",be=/^xn--/,je=/[^\x20-\x7E]/,ke=/[\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=re-te,Se=Math.floor,Ee=String.fromCharCode,Ie;function Me(et){throw new RangeError(Be[et])}function Le(et,Ve){for(var Ye=et.length,Ge=[];Ye--;)Ge[Ye]=Ve(et[Ye]);return Ge}function Ae(et,Ve){var Ye=et.split("@"),Ge="";Ye.length>1&&(Ge=Ye[0]+"@",et=Ye[1]),et=et.replace(ke,".");var it=et.split("."),qe=Le(it,Ve).join(".");return Ge+qe}function Pe(et){for(var Ve=[],Ye=0,Ge=et.length,it,qe;Ye<Ge;)it=et.charCodeAt(Ye++),it>=55296&&it<=56319&&Ye<Ge?(qe=et.charCodeAt(Ye++),(qe&64512)==56320?Ve.push(((it&1023)<<10)+(qe&1023)+65536):(Ve.push(it),Ye--)):Ve.push(it);return Ve}function Ue(et){return Le(et,function(Ve){var Ye="";return Ve>65535&&(Ve-=65536,Ye+=Ee(Ve>>>10&1023|55296),Ve=56320|Ve&1023),Ye+=Ee(Ve),Ye}).join("")}function He(et){return et-48<10?et-22:et-65<26?et-65:et-97<26?et-97:re}function Je(et,Ve){return et+22+75*(et<26)-((Ve!=0)<<5)}function st(et,Ve,Ye){var Ge=0;for(et=Ye?Se(et/he):et>>1,et+=Se(et/Ve);et>De*se>>1;Ge+=re)et=Se(et/De);return Se(Ge+(De+1)*et/(et+ae))}function _e(et){var Ve=[],Ye=et.length,Ge,it=0,qe=ve,vt=me,ot,Qe,Fe,Re,ne,fe,Ne,We,we;for(ot=et.lastIndexOf(pe),ot<0&&(ot=0),Qe=0;Qe<ot;++Qe)et.charCodeAt(Qe)>=128&&Me("not-basic"),Ve.push(et.charCodeAt(Qe));for(Fe=ot>0?ot+1:0;Fe<Ye;){for(Re=it,ne=1,fe=re;Fe>=Ye&&Me("invalid-input"),Ne=He(et.charCodeAt(Fe++)),(Ne>=re||Ne>Se((E-it)/ne))&&Me("overflow"),it+=Ne*ne,We=fe<=vt?te:fe>=vt+se?se:fe-vt,!(Ne<We);fe+=re)we=re-We,ne>Se(E/we)&&Me("overflow"),ne*=we;Ge=Ve.length+1,vt=st(it-Re,Ge,Re==0),Se(it/Ge)>E-qe&&Me("overflow"),qe+=Se(it/Ge),it%=Ge,Ve.splice(it++,0,qe)}return Ue(Ve)}function Ke(et){var Ve,Ye,Ge,it,qe,vt,ot,Qe,Fe,Re,ne,fe=[],Ne,We,we,ye;for(et=Pe(et),Ne=et.length,Ve=ve,Ye=0,qe=me,vt=0;vt<Ne;++vt)ne=et[vt],ne<128&&fe.push(Ee(ne));for(Ge=it=fe.length,it&&fe.push(pe);Ge<Ne;){for(ot=E,vt=0;vt<Ne;++vt)ne=et[vt],ne>=Ve&&ne<ot&&(ot=ne);for(We=Ge+1,ot-Ve>Se((E-Ye)/We)&&Me("overflow"),Ye+=(ot-Ve)*We,Ve=ot,vt=0;vt<Ne;++vt)if(ne=et[vt],ne<Ve&&++Ye>E&&Me("overflow"),ne==Ve){for(Qe=Ye,Fe=re;Re=Fe<=qe?te:Fe>=qe+se?se:Fe-qe,!(Qe<Re);Fe+=re)ye=Qe-Re,we=re-Re,fe.push(Ee(Je(Re+ye%we,0))),Qe=Se(ye/we);fe.push(Ee(Je(Qe,0))),qe=st(Ye,We,Ge==it),Ye=0,++Ge}++Ye,++Ve}return fe.join("")}function nt(et){return Ae(et,function(Ve){return be.test(Ve)?_e(Ve.slice(4).toLowerCase()):Ve})}function rt(et){return Ae(et,function(Ve){return je.test(Ve)?"xn--"+Ke(Ve):Ve})}if(ue={version:"1.4.1",ucs2:{decode:Pe,encode:Ue},decode:_e,encode:Ke,toASCII:rt,toUnicode:nt},typeof Ce=="function"&&typeof Ce.amd=="object"&&Ce.amd)Ce("punycode",function(){return ue});else if(ie&&oe)if(Te.exports==ie)oe.exports=ue;else for(Ie in ue)ue.hasOwnProperty(Ie)&&(ie[Ie]=ue[Ie]);else z.punycode=ue})(this)}).call(this)}).call(this,typeof Lt!="undefined"?Lt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(a,Te,ge){"use strict";function x(ie,oe){return Object.prototype.hasOwnProperty.call(ie,oe)}Te.exports=function(ie,oe,ee,ue){oe=oe||"&",ee=ee||"=";var E={};if(typeof ie!="string"||ie.length===0)return E;var re=/\+/g;ie=ie.split(oe);var te=1e3;ue&&typeof ue.maxKeys=="number"&&(te=ue.maxKeys);var se=ie.length;te>0&&se>te&&(se=te);for(var ae=0;ae<se;++ae){var he=ie[ae].replace(re,"%20"),me=he.indexOf(ee),ve,pe,be,je;me>=0?(ve=he.substr(0,me),pe=he.substr(me+1)):(ve=he,pe=""),be=decodeURIComponent(ve),je=decodeURIComponent(pe),x(E,be)?z(E[be])?E[be].push(je):E[be]=[E[be],je]:E[be]=je}return E};var z=Array.isArray||function(ie){return Object.prototype.toString.call(ie)==="[object Array]"}},{}],384:[function(a,Te,ge){"use strict";var x=function(ee){switch(typeof ee){case"string":return ee;case"boolean":return ee?"true":"false";case"number":return isFinite(ee)?ee:"";default:return""}};Te.exports=function(ee,ue,E,re){return ue=ue||"&",E=E||"=",ee===null&&(ee=void 0),typeof ee=="object"?ie(oe(ee),function(te){var se=encodeURIComponent(x(te))+E;return z(ee[te])?ie(ee[te],function(ae){return se+encodeURIComponent(x(ae))}).join(ue):se+encodeURIComponent(x(ee[te]))}).join(ue):re?encodeURIComponent(x(re))+E+encodeURIComponent(x(ee)):""};var z=Array.isArray||function(ee){return Object.prototype.toString.call(ee)==="[object Array]"};function ie(ee,ue){if(ee.map)return ee.map(ue);for(var E=[],re=0;re<ee.length;re++)E.push(ue(ee[re],re));return E}var oe=Object.keys||function(ee){var ue=[];for(var E in ee)Object.prototype.hasOwnProperty.call(ee,E)&&ue.push(E);return ue}},{}],385:[function(a,Te,ge){"use strict";ge.decode=ge.parse=a("./decode"),ge.encode=ge.stringify=a("./encode")},{"./decode":383,"./encode":384}],386:[function(a,Te,ge){"use strict";var x=a("process-nextick-args"),z=Object.keys||function(he){var me=[];for(var ve in he)me.push(ve);return me};Te.exports=te;var ie=Object.create(a("core-util-is"));ie.inherits=a("inherits");var oe=a("./_stream_readable"),ee=a("./_stream_writable");ie.inherits(te,oe);for(var ue=z(ee.prototype),E=0;E<ue.length;E++){var re=ue[E];te.prototype[re]||(te.prototype[re]=ee.prototype[re])}function te(he){if(!(this instanceof te))return new te(he);oe.call(this,he),ee.call(this,he),he&&he.readable===!1&&(this.readable=!1),he&&he.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,he&&he.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",se)}Object.defineProperty(te.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function se(){this.allowHalfOpen||this._writableState.ended||x.nextTick(ae,this)}function ae(he){he.end()}Object.defineProperty(te.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(he){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=he,this._writableState.destroyed=he)}}),te.prototype._destroy=function(he,me){this.push(null),this.end(),x.nextTick(me,he)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(a,Te,ge){"use strict";Te.exports=ie;var x=a("./_stream_transform"),z=Object.create(a("core-util-is"));z.inherits=a("inherits"),z.inherits(ie,x);function ie(oe){if(!(this instanceof ie))return new ie(oe);x.call(this,oe)}ie.prototype._transform=function(oe,ee,ue){ue(null,oe)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(a,Te,ge){(function(x,z){(function(){"use strict";var ie=a("process-nextick-args");Te.exports=Ee;var oe=a("isarray"),ee;Ee.ReadableState=Se;var ue=a("events").EventEmitter,E=function(ne,fe){return ne.listeners(fe).length},re=a("./internal/streams/stream"),te=a("safe-buffer").Buffer,se=z.Uint8Array||function(){};function ae(ne){return te.from(ne)}function he(ne){return te.isBuffer(ne)||ne instanceof se}var me=Object.create(a("core-util-is"));me.inherits=a("inherits");var ve=a("util"),pe=void 0;ve&&ve.debuglog?pe=ve.debuglog("stream"):pe=function(){};var be=a("./internal/streams/BufferList"),je=a("./internal/streams/destroy"),ke;me.inherits(Ee,re);var Be=["error","close","destroy","pause","resume"];function De(ne,fe,Ne){if(typeof ne.prependListener=="function")return ne.prependListener(fe,Ne);!ne._events||!ne._events[fe]?ne.on(fe,Ne):oe(ne._events[fe])?ne._events[fe].unshift(Ne):ne._events[fe]=[Ne,ne._events[fe]]}function Se(ne,fe){ee=ee||a("./_stream_duplex"),ne=ne||{};var Ne=fe instanceof ee;this.objectMode=!!ne.objectMode,Ne&&(this.objectMode=this.objectMode||!!ne.readableObjectMode);var We=ne.highWaterMark,we=ne.readableHighWaterMark,ye=this.objectMode?16:16*1024;We||We===0?this.highWaterMark=We:Ne&&(we||we===0)?this.highWaterMark=we:this.highWaterMark=ye,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new be,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&&(ke||(ke=a("string_decoder/").StringDecoder),this.decoder=new ke(ne.encoding),this.encoding=ne.encoding)}function Ee(ne){if(ee=ee||a("./_stream_duplex"),!(this instanceof Ee))return new Ee(ne);this._readableState=new Se(ne,this),this.readable=!0,ne&&(typeof ne.read=="function"&&(this._read=ne.read),typeof ne.destroy=="function"&&(this._destroy=ne.destroy)),re.call(this)}Object.defineProperty(Ee.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ne){this._readableState&&(this._readableState.destroyed=ne)}}),Ee.prototype.destroy=je.destroy,Ee.prototype._undestroy=je.undestroy,Ee.prototype._destroy=function(ne,fe){this.push(null),fe(ne)},Ee.prototype.push=function(ne,fe){var Ne=this._readableState,We;return Ne.objectMode?We=!0:typeof ne=="string"&&(fe=fe||Ne.defaultEncoding,fe!==Ne.encoding&&(ne=te.from(ne,fe),fe=""),We=!0),Ie(this,ne,fe,!1,We)},Ee.prototype.unshift=function(ne){return Ie(this,ne,null,!0,!1)};function Ie(ne,fe,Ne,We,we){var ye=ne._readableState;if(fe===null)ye.reading=!1,Je(ne,ye);else{var Oe;we||(Oe=Le(ye,fe)),Oe?ne.emit("error",Oe):ye.objectMode||fe&&fe.length>0?(typeof fe!="string"&&!ye.objectMode&&Object.getPrototypeOf(fe)!==te.prototype&&(fe=ae(fe)),We?ye.endEmitted?ne.emit("error",new Error("stream.unshift() after end event")):Me(ne,ye,fe,!0):ye.ended?ne.emit("error",new Error("stream.push() after EOF")):(ye.reading=!1,ye.decoder&&!Ne?(fe=ye.decoder.write(fe),ye.objectMode||fe.length!==0?Me(ne,ye,fe,!1):Ke(ne,ye)):Me(ne,ye,fe,!1))):We||(ye.reading=!1)}return Ae(ye)}function Me(ne,fe,Ne,We){fe.flowing&&fe.length===0&&!fe.sync?(ne.emit("data",Ne),ne.read(0)):(fe.length+=fe.objectMode?1:Ne.length,We?fe.buffer.unshift(Ne):fe.buffer.push(Ne),fe.needReadable&&st(ne)),Ke(ne,fe)}function Le(ne,fe){var Ne;return!he(fe)&&typeof fe!="string"&&fe!==void 0&&!ne.objectMode&&(Ne=new TypeError("Invalid non-string/buffer chunk")),Ne}function Ae(ne){return!ne.ended&&(ne.needReadable||ne.length<ne.highWaterMark||ne.length===0)}Ee.prototype.isPaused=function(){return this._readableState.flowing===!1},Ee.prototype.setEncoding=function(ne){return ke||(ke=a("string_decoder/").StringDecoder),this._readableState.decoder=new ke(ne),this._readableState.encoding=ne,this};var Pe=8388608;function Ue(ne){return ne>=Pe?ne=Pe:(ne--,ne|=ne>>>1,ne|=ne>>>2,ne|=ne>>>4,ne|=ne>>>8,ne|=ne>>>16,ne++),ne}function He(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=Ue(ne)),ne<=fe.length?ne:fe.ended?fe.length:(fe.needReadable=!0,0))}Ee.prototype.read=function(ne){pe("read",ne),ne=parseInt(ne,10);var fe=this._readableState,Ne=ne;if(ne!==0&&(fe.emittedReadable=!1),ne===0&&fe.needReadable&&(fe.length>=fe.highWaterMark||fe.ended))return pe("read: emitReadable",fe.length,fe.ended),fe.length===0&&fe.ended?Qe(this):st(this),null;if(ne=He(ne,fe),ne===0&&fe.ended)return fe.length===0&&Qe(this),null;var We=fe.needReadable;pe("need readable",We),(fe.length===0||fe.length-ne<fe.highWaterMark)&&(We=!0,pe("length less than watermark",We)),fe.ended||fe.reading?(We=!1,pe("reading or ended",We)):We&&(pe("do read"),fe.reading=!0,fe.sync=!0,fe.length===0&&(fe.needReadable=!0),this._read(fe.highWaterMark),fe.sync=!1,fe.reading||(ne=He(Ne,fe)));var we;return ne>0?we=it(ne,fe):we=null,we===null?(fe.needReadable=!0,ne=0):fe.length-=ne,fe.length===0&&(fe.ended||(fe.needReadable=!0),Ne!==ne&&fe.ended&&Qe(this)),we!==null&&this.emit("data",we),we};function Je(ne,fe){if(!fe.ended){if(fe.decoder){var Ne=fe.decoder.end();Ne&&Ne.length&&(fe.buffer.push(Ne),fe.length+=fe.objectMode?1:Ne.length)}fe.ended=!0,st(ne)}}function st(ne){var fe=ne._readableState;fe.needReadable=!1,fe.emittedReadable||(pe("emitReadable",fe.flowing),fe.emittedReadable=!0,fe.sync?ie.nextTick(_e,ne):_e(ne))}function _e(ne){pe("emit readable"),ne.emit("readable"),Ge(ne)}function Ke(ne,fe){fe.readingMore||(fe.readingMore=!0,ie.nextTick(nt,ne,fe))}function nt(ne,fe){for(var Ne=fe.length;!fe.reading&&!fe.flowing&&!fe.ended&&fe.length<fe.highWaterMark&&(pe("maybeReadMore read 0"),ne.read(0),Ne!==fe.length);)Ne=fe.length;fe.readingMore=!1}Ee.prototype._read=function(ne){this.emit("error",new Error("_read() is not implemented"))},Ee.prototype.pipe=function(ne,fe){var Ne=this,We=this._readableState;switch(We.pipesCount){case 0:We.pipes=ne;break;case 1:We.pipes=[We.pipes,ne];break;default:We.pipes.push(ne);break}We.pipesCount+=1,pe("pipe count=%d opts=%j",We.pipesCount,fe);var we=(!fe||fe.end!==!1)&&ne!==x.stdout&&ne!==x.stderr,ye=we?$e:wt;We.endEmitted?ie.nextTick(ye):Ne.once("end",ye),ne.on("unpipe",Oe);function Oe(Bt,At){pe("onunpipe"),Bt===Ne&&At&&At.hasUnpiped===!1&&(At.hasUnpiped=!0,at())}function $e(){pe("onend"),ne.end()}var Ze=rt(Ne);ne.on("drain",Ze);var Xe=!1;function at(){pe("cleanup"),ne.removeListener("close",ct),ne.removeListener("finish",Pt),ne.removeListener("drain",Ze),ne.removeListener("error",ut),ne.removeListener("unpipe",Oe),Ne.removeListener("end",$e),Ne.removeListener("end",wt),Ne.removeListener("data",mt),Xe=!0,We.awaitDrain&&(!ne._writableState||ne._writableState.needDrain)&&Ze()}var lt=!1;Ne.on("data",mt);function mt(Bt){pe("ondata"),lt=!1;var At=ne.write(Bt);At===!1&&!lt&&((We.pipesCount===1&&We.pipes===ne||We.pipesCount>1&&Re(We.pipes,ne)!==-1)&&!Xe&&(pe("false write response, pause",Ne._readableState.awaitDrain),Ne._readableState.awaitDrain++,lt=!0),Ne.pause())}function ut(Bt){pe("onerror",Bt),wt(),ne.removeListener("error",ut),E(ne,"error")===0&&ne.emit("error",Bt)}De(ne,"error",ut);function ct(){ne.removeListener("finish",Pt),wt()}ne.once("close",ct);function Pt(){pe("onfinish"),ne.removeListener("close",ct),wt()}ne.once("finish",Pt);function wt(){pe("unpipe"),Ne.unpipe(ne)}return ne.emit("pipe",Ne),We.flowing||(pe("pipe resume"),Ne.resume()),ne};function rt(ne){return function(){var fe=ne._readableState;pe("pipeOnDrain",fe.awaitDrain),fe.awaitDrain&&fe.awaitDrain--,fe.awaitDrain===0&&E(ne,"data")&&(fe.flowing=!0,Ge(ne))}}Ee.prototype.unpipe=function(ne){var fe=this._readableState,Ne={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,Ne),this);if(!ne){var We=fe.pipes,we=fe.pipesCount;fe.pipes=null,fe.pipesCount=0,fe.flowing=!1;for(var ye=0;ye<we;ye++)We[ye].emit("unpipe",this,Ne);return this}var Oe=Re(fe.pipes,ne);return Oe===-1?this:(fe.pipes.splice(Oe,1),fe.pipesCount-=1,fe.pipesCount===1&&(fe.pipes=fe.pipes[0]),ne.emit("unpipe",this,Ne),this)},Ee.prototype.on=function(ne,fe){var Ne=re.prototype.on.call(this,ne,fe);if(ne==="data")this._readableState.flowing!==!1&&this.resume();else if(ne==="readable"){var We=this._readableState;!We.endEmitted&&!We.readableListening&&(We.readableListening=We.needReadable=!0,We.emittedReadable=!1,We.reading?We.length&&st(this):ie.nextTick(et,this))}return Ne},Ee.prototype.addListener=Ee.prototype.on;function et(ne){pe("readable nexttick read 0"),ne.read(0)}Ee.prototype.resume=function(){var ne=this._readableState;return ne.flowing||(pe("resume"),ne.flowing=!0,Ve(this,ne)),this};function Ve(ne,fe){fe.resumeScheduled||(fe.resumeScheduled=!0,ie.nextTick(Ye,ne,fe))}function Ye(ne,fe){fe.reading||(pe("resume read 0"),ne.read(0)),fe.resumeScheduled=!1,fe.awaitDrain=0,ne.emit("resume"),Ge(ne),fe.flowing&&!fe.reading&&ne.read(0)}Ee.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};function Ge(ne){var fe=ne._readableState;for(pe("flow",fe.flowing);fe.flowing&&ne.read()!==null;);}Ee.prototype.wrap=function(ne){var fe=this,Ne=this._readableState,We=!1;ne.on("end",function(){if(pe("wrapped end"),Ne.decoder&&!Ne.ended){var Oe=Ne.decoder.end();Oe&&Oe.length&&fe.push(Oe)}fe.push(null)}),ne.on("data",function(Oe){if(pe("wrapped data"),Ne.decoder&&(Oe=Ne.decoder.write(Oe)),!(Ne.objectMode&&Oe==null)&&!(!Ne.objectMode&&(!Oe||!Oe.length))){var $e=fe.push(Oe);$e||(We=!0,ne.pause())}});for(var we in ne)this[we]===void 0&&typeof ne[we]=="function"&&(this[we]=function(Oe){return function(){return ne[Oe].apply(ne,arguments)}}(we));for(var ye=0;ye<Be.length;ye++)ne.on(Be[ye],this.emit.bind(this,Be[ye]));return this._read=function(Oe){pe("wrapped _read",Oe),We&&(We=!1,ne.resume())},this},Object.defineProperty(Ee.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Ee._fromList=it;function it(ne,fe){if(fe.length===0)return null;var Ne;return fe.objectMode?Ne=fe.buffer.shift():!ne||ne>=fe.length?(fe.decoder?Ne=fe.buffer.join(""):fe.buffer.length===1?Ne=fe.buffer.head.data:Ne=fe.buffer.concat(fe.length),fe.buffer.clear()):Ne=qe(ne,fe.buffer,fe.decoder),Ne}function qe(ne,fe,Ne){var We;return ne<fe.head.data.length?(We=fe.head.data.slice(0,ne),fe.head.data=fe.head.data.slice(ne)):ne===fe.head.data.length?We=fe.shift():We=Ne?vt(ne,fe):ot(ne,fe),We}function vt(ne,fe){var Ne=fe.head,We=1,we=Ne.data;for(ne-=we.length;Ne=Ne.next;){var ye=Ne.data,Oe=ne>ye.length?ye.length:ne;if(Oe===ye.length?we+=ye:we+=ye.slice(0,ne),ne-=Oe,ne===0){Oe===ye.length?(++We,Ne.next?fe.head=Ne.next:fe.head=fe.tail=null):(fe.head=Ne,Ne.data=ye.slice(Oe));break}++We}return fe.length-=We,we}function ot(ne,fe){var Ne=te.allocUnsafe(ne),We=fe.head,we=1;for(We.data.copy(Ne),ne-=We.data.length;We=We.next;){var ye=We.data,Oe=ne>ye.length?ye.length:ne;if(ye.copy(Ne,Ne.length-ne,0,Oe),ne-=Oe,ne===0){Oe===ye.length?(++we,We.next?fe.head=We.next:fe.head=fe.tail=null):(fe.head=We,We.data=ye.slice(Oe));break}++we}return fe.length-=we,Ne}function Qe(ne){var fe=ne._readableState;if(fe.length>0)throw new Error('"endReadable()" called on non-empty stream');fe.endEmitted||(fe.ended=!0,ie.nextTick(Fe,fe,ne))}function Fe(ne,fe){!ne.endEmitted&&ne.length===0&&(ne.endEmitted=!0,fe.readable=!1,fe.emit("end"))}function Re(ne,fe){for(var Ne=0,We=ne.length;Ne<We;Ne++)if(ne[Ne]===fe)return Ne;return-1}}).call(this)}).call(this,a("_process"),typeof Lt!="undefined"?Lt: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(a,Te,ge){"use strict";Te.exports=oe;var x=a("./_stream_duplex"),z=Object.create(a("core-util-is"));z.inherits=a("inherits"),z.inherits(oe,x);function ie(E,re){var te=this._transformState;te.transforming=!1;var se=te.writecb;if(!se)return this.emit("error",new Error("write callback called multiple times"));te.writechunk=null,te.writecb=null,re!=null&&this.push(re),se(E);var ae=this._readableState;ae.reading=!1,(ae.needReadable||ae.length<ae.highWaterMark)&&this._read(ae.highWaterMark)}function oe(E){if(!(this instanceof oe))return new oe(E);x.call(this,E),this._transformState={afterTransform:ie.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,E&&(typeof E.transform=="function"&&(this._transform=E.transform),typeof E.flush=="function"&&(this._flush=E.flush)),this.on("prefinish",ee)}function ee(){var E=this;typeof this._flush=="function"?this._flush(function(re,te){ue(E,re,te)}):ue(this,null,null)}oe.prototype.push=function(E,re){return this._transformState.needTransform=!1,x.prototype.push.call(this,E,re)},oe.prototype._transform=function(E,re,te){throw new Error("_transform() is not implemented")},oe.prototype._write=function(E,re,te){var se=this._transformState;if(se.writecb=te,se.writechunk=E,se.writeencoding=re,!se.transforming){var ae=this._readableState;(se.needTransform||ae.needReadable||ae.length<ae.highWaterMark)&&this._read(ae.highWaterMark)}},oe.prototype._read=function(E){var re=this._transformState;re.writechunk!==null&&re.writecb&&!re.transforming?(re.transforming=!0,this._transform(re.writechunk,re.writeencoding,re.afterTransform)):re.needTransform=!0},oe.prototype._destroy=function(E,re){var te=this;x.prototype._destroy.call(this,E,function(se){re(se),te.emit("close")})};function ue(E,re,te){if(re)return E.emit("error",re);if(te!=null&&E.push(te),E._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(E._transformState.transforming)throw new Error("Calling transform done when still transforming");return E.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(a,Te,ge){(function(x,z,ie){(function(){"use strict";var oe=a("process-nextick-args");Te.exports=De;function ee(Ye,Ge,it){this.chunk=Ye,this.encoding=Ge,this.callback=it,this.next=null}function ue(Ye){var Ge=this;this.next=null,this.entry=null,this.finish=function(){Ve(Ge,Ye)}}var E=!x.browser&&["v0.10","v0.9."].indexOf(x.version.slice(0,5))>-1?ie:oe.nextTick,re;De.WritableState=ke;var te=Object.create(a("core-util-is"));te.inherits=a("inherits");var se={deprecate:a("util-deprecate")},ae=a("./internal/streams/stream"),he=a("safe-buffer").Buffer,me=z.Uint8Array||function(){};function ve(Ye){return he.from(Ye)}function pe(Ye){return he.isBuffer(Ye)||Ye instanceof me}var be=a("./internal/streams/destroy");te.inherits(De,ae);function je(){}function ke(Ye,Ge){re=re||a("./_stream_duplex"),Ye=Ye||{};var it=Ge instanceof re;this.objectMode=!!Ye.objectMode,it&&(this.objectMode=this.objectMode||!!Ye.writableObjectMode);var qe=Ye.highWaterMark,vt=Ye.writableHighWaterMark,ot=this.objectMode?16:16*1024;qe||qe===0?this.highWaterMark=qe:it&&(vt||vt===0)?this.highWaterMark=vt:this.highWaterMark=ot,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Qe=Ye.decodeStrings===!1;this.decodeStrings=!Qe,this.defaultEncoding=Ye.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Fe){Ue(Ge,Fe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new ue(this)}ke.prototype.getBuffer=function(){for(var Ge=this.bufferedRequest,it=[];Ge;)it.push(Ge),Ge=Ge.next;return it},function(){try{Object.defineProperty(ke.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 ke}})):Be=function(Ye){return Ye instanceof this};function De(Ye){if(re=re||a("./_stream_duplex"),!Be.call(De,this)&&!(this instanceof re))return new De(Ye);this._writableState=new ke(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)),ae.call(this)}De.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Se(Ye,Ge){var it=new Error("write after end");Ye.emit("error",it),oe.nextTick(Ge,it)}function Ee(Ye,Ge,it,qe){var vt=!0,ot=!1;return it===null?ot=new TypeError("May not write null values to stream"):typeof it!="string"&&it!==void 0&&!Ge.objectMode&&(ot=new TypeError("Invalid non-string/buffer chunk")),ot&&(Ye.emit("error",ot),oe.nextTick(qe,ot),vt=!1),vt}De.prototype.write=function(Ye,Ge,it){var qe=this._writableState,vt=!1,ot=!qe.objectMode&&pe(Ye);return ot&&!he.isBuffer(Ye)&&(Ye=ve(Ye)),typeof Ge=="function"&&(it=Ge,Ge=null),ot?Ge="buffer":Ge||(Ge=qe.defaultEncoding),typeof it!="function"&&(it=je),qe.ended?Se(this,it):(ot||Ee(this,qe,Ye,it))&&(qe.pendingcb++,vt=Me(this,qe,ot,Ye,Ge,it)),vt},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&&st(this,Ye))},De.prototype.setDefaultEncoding=function(Ge){if(typeof Ge=="string"&&(Ge=Ge.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ge+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Ge);return this._writableState.defaultEncoding=Ge,this};function Ie(Ye,Ge,it){return!Ye.objectMode&&Ye.decodeStrings!==!1&&typeof Ge=="string"&&(Ge=he.from(Ge,it)),Ge}Object.defineProperty(De.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Me(Ye,Ge,it,qe,vt,ot){if(!it){var Qe=Ie(Ge,qe,vt);qe!==Qe&&(it=!0,vt="buffer",qe=Qe)}var Fe=Ge.objectMode?1:qe.length;Ge.length+=Fe;var Re=Ge.length<Ge.highWaterMark;if(Re||(Ge.needDrain=!0),Ge.writing||Ge.corked){var ne=Ge.lastBufferedRequest;Ge.lastBufferedRequest={chunk:qe,encoding:vt,isBuf:it,callback:ot,next:null},ne?ne.next=Ge.lastBufferedRequest:Ge.bufferedRequest=Ge.lastBufferedRequest,Ge.bufferedRequestCount+=1}else Le(Ye,Ge,!1,Fe,qe,vt,ot);return Re}function Le(Ye,Ge,it,qe,vt,ot,Qe){Ge.writelen=qe,Ge.writecb=Qe,Ge.writing=!0,Ge.sync=!0,it?Ye._writev(vt,Ge.onwrite):Ye._write(vt,ot,Ge.onwrite),Ge.sync=!1}function Ae(Ye,Ge,it,qe,vt){--Ge.pendingcb,it?(oe.nextTick(vt,qe),oe.nextTick(rt,Ye,Ge),Ye._writableState.errorEmitted=!0,Ye.emit("error",qe)):(vt(qe),Ye._writableState.errorEmitted=!0,Ye.emit("error",qe),rt(Ye,Ge))}function Pe(Ye){Ye.writing=!1,Ye.writecb=null,Ye.length-=Ye.writelen,Ye.writelen=0}function Ue(Ye,Ge){var it=Ye._writableState,qe=it.sync,vt=it.writecb;if(Pe(it),Ge)Ae(Ye,it,qe,Ge,vt);else{var ot=_e(it);!ot&&!it.corked&&!it.bufferProcessing&&it.bufferedRequest&&st(Ye,it),qe?E(He,Ye,it,ot,vt):He(Ye,it,ot,vt)}}function He(Ye,Ge,it,qe){it||Je(Ye,Ge),Ge.pendingcb--,qe(),rt(Ye,Ge)}function Je(Ye,Ge){Ge.length===0&&Ge.needDrain&&(Ge.needDrain=!1,Ye.emit("drain"))}function st(Ye,Ge){Ge.bufferProcessing=!0;var it=Ge.bufferedRequest;if(Ye._writev&&it&&it.next){var qe=Ge.bufferedRequestCount,vt=new Array(qe),ot=Ge.corkedRequestsFree;ot.entry=it;for(var Qe=0,Fe=!0;it;)vt[Qe]=it,it.isBuf||(Fe=!1),it=it.next,Qe+=1;vt.allBuffers=Fe,Le(Ye,Ge,!0,Ge.length,vt,"",ot.finish),Ge.pendingcb++,Ge.lastBufferedRequest=null,ot.next?(Ge.corkedRequestsFree=ot.next,ot.next=null):Ge.corkedRequestsFree=new ue(Ge),Ge.bufferedRequestCount=0}else{for(;it;){var Re=it.chunk,ne=it.encoding,fe=it.callback,Ne=Ge.objectMode?1:Re.length;if(Le(Ye,Ge,!1,Ne,Re,ne,fe),it=it.next,Ge.bufferedRequestCount--,Ge.writing)break}it===null&&(Ge.lastBufferedRequest=null)}Ge.bufferedRequest=it,Ge.bufferProcessing=!1}De.prototype._write=function(Ye,Ge,it){it(new Error("_write() is not implemented"))},De.prototype._writev=null,De.prototype.end=function(Ye,Ge,it){var qe=this._writableState;typeof Ye=="function"?(it=Ye,Ye=null,Ge=null):typeof Ge=="function"&&(it=Ge,Ge=null),Ye!=null&&this.write(Ye,Ge),qe.corked&&(qe.corked=1,this.uncork()),!qe.ending&&!qe.finished&&et(this,qe,it)};function _e(Ye){return Ye.ending&&Ye.length===0&&Ye.bufferedRequest===null&&!Ye.finished&&!Ye.writing}function Ke(Ye,Ge){Ye._final(function(it){Ge.pendingcb--,it&&Ye.emit("error",it),Ge.prefinished=!0,Ye.emit("prefinish"),rt(Ye,Ge)})}function nt(Ye,Ge){!Ge.prefinished&&!Ge.finalCalled&&(typeof Ye._final=="function"?(Ge.pendingcb++,Ge.finalCalled=!0,oe.nextTick(Ke,Ye,Ge)):(Ge.prefinished=!0,Ye.emit("prefinish")))}function rt(Ye,Ge){var it=_e(Ge);return it&&(nt(Ye,Ge),Ge.pendingcb===0&&(Ge.finished=!0,Ye.emit("finish"))),it}function et(Ye,Ge,it){Ge.ending=!0,rt(Ye,Ge),it&&(Ge.finished?oe.nextTick(it):Ye.once("finish",it)),Ge.ended=!0,Ye.writable=!1}function Ve(Ye,Ge,it){var qe=Ye.entry;for(Ye.entry=null;qe;){var vt=qe.callback;Ge.pendingcb--,vt(it),qe=qe.next}Ge.corkedRequestsFree?Ge.corkedRequestsFree.next=Ye:Ge.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=be.destroy,De.prototype._undestroy=be.undestroy,De.prototype._destroy=function(Ye,Ge){this.end(),Ge(Ye)}}).call(this)}).call(this,a("_process"),typeof Lt!="undefined"?Lt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},a("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(a,Te,ge){"use strict";function x(ee,ue){if(!(ee instanceof ue))throw new TypeError("Cannot call a class as a function")}var z=a("safe-buffer").Buffer,ie=a("util");function oe(ee,ue,E){ee.copy(ue,E)}Te.exports=function(){function ee(){x(this,ee),this.head=null,this.tail=null,this.length=0}return ee.prototype.push=function(E){var re={data:E,next:null};this.length>0?this.tail.next=re:this.head=re,this.tail=re,++this.length},ee.prototype.unshift=function(E){var re={data:E,next:this.head};this.length===0&&(this.tail=re),this.head=re,++this.length},ee.prototype.shift=function(){if(this.length!==0){var E=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,E}},ee.prototype.clear=function(){this.head=this.tail=null,this.length=0},ee.prototype.join=function(E){if(this.length===0)return"";for(var re=this.head,te=""+re.data;re=re.next;)te+=E+re.data;return te},ee.prototype.concat=function(E){if(this.length===0)return z.alloc(0);if(this.length===1)return this.head.data;for(var re=z.allocUnsafe(E>>>0),te=this.head,se=0;te;)oe(te.data,re,se),se+=te.data.length,te=te.next;return re},ee}(),ie&&ie.inspect&&ie.inspect.custom&&(Te.exports.prototype[ie.inspect.custom]=function(){var ee=ie.inspect({length:this.length});return this.constructor.name+" "+ee})},{"safe-buffer":396,util:89}],392:[function(a,Te,ge){"use strict";var x=a("process-nextick-args");function z(ee,ue){var E=this,re=this._readableState&&this._readableState.destroyed,te=this._writableState&&this._writableState.destroyed;return re||te?(ue?ue(ee):ee&&(!this._writableState||!this._writableState.errorEmitted)&&x.nextTick(oe,this,ee),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ee||null,function(se){!ue&&se?(x.nextTick(oe,E,se),E._writableState&&(E._writableState.errorEmitted=!0)):ue&&ue(se)}),this)}function ie(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function oe(ee,ue){ee.emit("error",ue)}Te.exports={destroy:z,undestroy:ie}},{"process-nextick-args":380}],393:[function(a,Te,ge){Te.exports=a("events").EventEmitter},{events:344}],394:[function(a,Te,ge){ge=Te.exports=a("./lib/_stream_readable.js"),ge.Stream=ge,ge.Readable=ge,ge.Writable=a("./lib/_stream_writable.js"),ge.Duplex=a("./lib/_stream_duplex.js"),ge.Transform=a("./lib/_stream_transform.js"),ge.PassThrough=a("./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(a,Te,ge){var x=function(z){"use strict";var ie=Object.prototype,oe=ie.hasOwnProperty,ee,ue=typeof Symbol=="function"?Symbol:{},E=ue.iterator||"@@iterator",re=ue.asyncIterator||"@@asyncIterator",te=ue.toStringTag||"@@toStringTag";function se(nt,rt,et){return Object.defineProperty(nt,rt,{value:et,enumerable:!0,configurable:!0,writable:!0}),nt[rt]}try{se({},"")}catch(nt){se=function(rt,et,Ve){return rt[et]=Ve}}function ae(nt,rt,et,Ve){var Ye=rt&&rt.prototype instanceof ke?rt:ke,Ge=Object.create(Ye.prototype),it=new st(Ve||[]);return Ge._invoke=Pe(nt,et,it),Ge}z.wrap=ae;function he(nt,rt,et){try{return{type:"normal",arg:nt.call(rt,et)}}catch(Ve){return{type:"throw",arg:Ve}}}var me="suspendedStart",ve="suspendedYield",pe="executing",be="completed",je={};function ke(){}function Be(){}function De(){}var Se={};se(Se,E,function(){return this});var Ee=Object.getPrototypeOf,Ie=Ee&&Ee(Ee(_e([])));Ie&&Ie!==ie&&oe.call(Ie,E)&&(Se=Ie);var Me=De.prototype=ke.prototype=Object.create(Se);Be.prototype=De,se(Me,"constructor",De),se(De,"constructor",Be),Be.displayName=se(De,te,"GeneratorFunction");function Le(nt){["next","throw","return"].forEach(function(rt){se(nt,rt,function(et){return this._invoke(rt,et)})})}z.isGeneratorFunction=function(nt){var rt=typeof nt=="function"&&nt.constructor;return rt?rt===Be||(rt.displayName||rt.name)==="GeneratorFunction":!1},z.mark=function(nt){return Object.setPrototypeOf?Object.setPrototypeOf(nt,De):(nt.__proto__=De,se(nt,te,"GeneratorFunction")),nt.prototype=Object.create(Me),nt},z.awrap=function(nt){return{__await:nt}};function Ae(nt,rt){function et(Ge,it,qe,vt){var ot=he(nt[Ge],nt,it);if(ot.type==="throw")vt(ot.arg);else{var Qe=ot.arg,Fe=Qe.value;return Fe&&typeof Fe=="object"&&oe.call(Fe,"__await")?rt.resolve(Fe.__await).then(function(Re){et("next",Re,qe,vt)},function(Re){et("throw",Re,qe,vt)}):rt.resolve(Fe).then(function(Re){Qe.value=Re,qe(Qe)},function(Re){return et("throw",Re,qe,vt)})}}var Ve;function Ye(Ge,it){function qe(){return new rt(function(vt,ot){et(Ge,it,vt,ot)})}return Ve=Ve?Ve.then(qe,qe):qe()}this._invoke=Ye}Le(Ae.prototype),se(Ae.prototype,re,function(){return this}),z.AsyncIterator=Ae,z.async=function(nt,rt,et,Ve,Ye){Ye===void 0&&(Ye=Promise);var Ge=new Ae(ae(nt,rt,et,Ve),Ye);return z.isGeneratorFunction(rt)?Ge:Ge.next().then(function(it){return it.done?it.value:Ge.next()})};function Pe(nt,rt,et){var Ve=me;return function(Ge,it){if(Ve===pe)throw new Error("Generator is already running");if(Ve===be){if(Ge==="throw")throw it;return Ke()}for(et.method=Ge,et.arg=it;;){var qe=et.delegate;if(qe){var vt=Ue(qe,et);if(vt){if(vt===je)continue;return vt}}if(et.method==="next")et.sent=et._sent=et.arg;else if(et.method==="throw"){if(Ve===me)throw Ve=be,et.arg;et.dispatchException(et.arg)}else et.method==="return"&&et.abrupt("return",et.arg);Ve=pe;var ot=he(nt,rt,et);if(ot.type==="normal"){if(Ve=et.done?be:ve,ot.arg===je)continue;return{value:ot.arg,done:et.done}}else ot.type==="throw"&&(Ve=be,et.method="throw",et.arg=ot.arg)}}}function Ue(nt,rt){var et=nt.iterator[rt.method];if(et===ee){if(rt.delegate=null,rt.method==="throw"){if(nt.iterator.return&&(rt.method="return",rt.arg=ee,Ue(nt,rt),rt.method==="throw"))return je;rt.method="throw",rt.arg=new TypeError("The iterator does not provide a 'throw' method")}return je}var Ve=he(et,nt.iterator,rt.arg);if(Ve.type==="throw")return rt.method="throw",rt.arg=Ve.arg,rt.delegate=null,je;var Ye=Ve.arg;if(!Ye)return rt.method="throw",rt.arg=new TypeError("iterator result is not an object"),rt.delegate=null,je;if(Ye.done)rt[nt.resultName]=Ye.value,rt.next=nt.nextLoc,rt.method!=="return"&&(rt.method="next",rt.arg=ee);else return Ye;return rt.delegate=null,je}Le(Me),se(Me,te,"Generator"),se(Me,E,function(){return this}),se(Me,"toString",function(){return"[object Generator]"});function He(nt){var rt={tryLoc:nt[0]};1 in nt&&(rt.catchLoc=nt[1]),2 in nt&&(rt.finallyLoc=nt[2],rt.afterLoc=nt[3]),this.tryEntries.push(rt)}function Je(nt){var rt=nt.completion||{};rt.type="normal",delete rt.arg,nt.completion=rt}function st(nt){this.tryEntries=[{tryLoc:"root"}],nt.forEach(He,this),this.reset(!0)}z.keys=function(nt){var rt=[];for(var et in nt)rt.push(et);return rt.reverse(),function Ve(){for(;rt.length;){var Ye=rt.pop();if(Ye in nt)return Ve.value=Ye,Ve.done=!1,Ve}return Ve.done=!0,Ve}};function _e(nt){if(nt){var rt=nt[E];if(rt)return rt.call(nt);if(typeof nt.next=="function")return nt;if(!isNaN(nt.length)){var et=-1,Ve=function Ye(){for(;++et<nt.length;)if(oe.call(nt,et))return Ye.value=nt[et],Ye.done=!1,Ye;return Ye.value=ee,Ye.done=!0,Ye};return Ve.next=Ve}}return{next:Ke}}z.values=_e;function Ke(){return{value:ee,done:!0}}return st.prototype={constructor:st,reset:function(nt){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(Je),!nt)for(var rt in this)rt.charAt(0)==="t"&&oe.call(this,rt)&&!isNaN(+rt.slice(1))&&(this[rt]=ee)},stop:function(){this.done=!0;var nt=this.tryEntries[0],rt=nt.completion;if(rt.type==="throw")throw rt.arg;return this.rval},dispatchException:function(nt){if(this.done)throw nt;var rt=this;function et(vt,ot){return Ge.type="throw",Ge.arg=nt,rt.next=vt,ot&&(rt.method="next",rt.arg=ee),!!ot}for(var Ve=this.tryEntries.length-1;Ve>=0;--Ve){var Ye=this.tryEntries[Ve],Ge=Ye.completion;if(Ye.tryLoc==="root")return et("end");if(Ye.tryLoc<=this.prev){var it=oe.call(Ye,"catchLoc"),qe=oe.call(Ye,"finallyLoc");if(it&&qe){if(this.prev<Ye.catchLoc)return et(Ye.catchLoc,!0);if(this.prev<Ye.finallyLoc)return et(Ye.finallyLoc)}else if(it){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(nt,rt){for(var et=this.tryEntries.length-1;et>=0;--et){var Ve=this.tryEntries[et];if(Ve.tryLoc<=this.prev&&oe.call(Ve,"finallyLoc")&&this.prev<Ve.finallyLoc){var Ye=Ve;break}}Ye&&(nt==="break"||nt==="continue")&&Ye.tryLoc<=rt&&rt<=Ye.finallyLoc&&(Ye=null);var Ge=Ye?Ye.completion:{};return Ge.type=nt,Ge.arg=rt,Ye?(this.method="next",this.next=Ye.finallyLoc,je):this.complete(Ge)},complete:function(nt,rt){if(nt.type==="throw")throw nt.arg;return nt.type==="break"||nt.type==="continue"?this.next=nt.arg:nt.type==="return"?(this.rval=this.arg=nt.arg,this.method="return",this.next="end"):nt.type==="normal"&&rt&&(this.next=rt),je},finish:function(nt){for(var rt=this.tryEntries.length-1;rt>=0;--rt){var et=this.tryEntries[rt];if(et.finallyLoc===nt)return this.complete(et.completion,et.afterLoc),Je(et),je}},catch:function(nt){for(var rt=this.tryEntries.length-1;rt>=0;--rt){var et=this.tryEntries[rt];if(et.tryLoc===nt){var Ve=et.completion;if(Ve.type==="throw"){var Ye=Ve.arg;Je(et)}return Ye}}throw new Error("illegal catch attempt")},delegateYield:function(nt,rt,et){return this.delegate={iterator:_e(nt),resultName:rt,nextLoc:et},this.method==="next"&&(this.arg=ee),je}},z}(typeof Te=="object"?Te.exports:{});try{regeneratorRuntime=x}catch(z){typeof globalThis=="object"?globalThis.regeneratorRuntime=x:Function("r","regeneratorRuntime = r")(x)}},{}],396:[function(a,Te,ge){var x=a("buffer"),z=x.Buffer;function ie(ee,ue){for(var E in ee)ue[E]=ee[E]}z.from&&z.alloc&&z.allocUnsafe&&z.allocUnsafeSlow?Te.exports=x:(ie(x,ge),ge.Buffer=oe);function oe(ee,ue,E){return z(ee,ue,E)}ie(z,oe),oe.from=function(ee,ue,E){if(typeof ee=="number")throw new TypeError("Argument must not be a number");return z(ee,ue,E)},oe.alloc=function(ee,ue,E){if(typeof ee!="number")throw new TypeError("Argument must be a number");var re=z(ee);return ue!==void 0?typeof E=="string"?re.fill(ue,E):re.fill(ue):re.fill(0),re},oe.allocUnsafe=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return z(ee)},oe.allocUnsafeSlow=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return x.SlowBuffer(ee)}},{buffer:90}],397:[function(a,Te,ge){(function(x){(function(){(function(z){z.parser=function(Qe,Fe){return new oe(Qe,Fe)},z.SAXParser=oe,z.SAXStream=ae,z.createStream=se,z.MAX_BUFFER_LENGTH=64*1024;var ie=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];z.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function oe(Qe,Fe){if(!(this instanceof oe))return new oe(Qe,Fe);var Re=this;ue(Re),Re.q=Re.c="",Re.bufferCheckPosition=z.MAX_BUFFER_LENGTH,Re.opt=Fe||{},Re.opt.lowercase=Re.opt.lowercase||Re.opt.lowercasetags,Re.looseCase=Re.opt.lowercase?"toLowerCase":"toUpperCase",Re.tags=[],Re.closed=Re.closedRoot=Re.sawRoot=!1,Re.tag=Re.error=null,Re.strict=!!Qe,Re.noscript=!!(Qe||Re.opt.noscript),Re.state=Ae.BEGIN,Re.strictEntities=Re.opt.strictEntities,Re.ENTITIES=Re.strictEntities?Object.create(z.XML_ENTITIES):Object.create(z.ENTITIES),Re.attribList=[],Re.opt.xmlns&&(Re.ns=Object.create(be)),Re.trackPosition=Re.opt.position!==!1,Re.trackPosition&&(Re.position=Re.line=Re.column=0),Ue(Re,"onready")}Object.create||(Object.create=function(Qe){function Fe(){}Fe.prototype=Qe;var Re=new Fe;return Re}),Object.keys||(Object.keys=function(Qe){var Fe=[];for(var Re in Qe)Qe.hasOwnProperty(Re)&&Fe.push(Re);return Fe});function ee(Qe){for(var Fe=Math.max(z.MAX_BUFFER_LENGTH,10),Re=0,ne=0,fe=ie.length;ne<fe;ne++){var Ne=Qe[ie[ne]].length;if(Ne>Fe)switch(ie[ne]){case"textNode":Je(Qe);break;case"cdata":He(Qe,"oncdata",Qe.cdata),Qe.cdata="";break;case"script":He(Qe,"onscript",Qe.script),Qe.script="";break;default:_e(Qe,"Max buffer length exceeded: "+ie[ne])}Re=Math.max(Re,Ne)}var We=z.MAX_BUFFER_LENGTH-Re;Qe.bufferCheckPosition=We+Qe.position}function ue(Qe){for(var Fe=0,Re=ie.length;Fe<Re;Fe++)Qe[ie[Fe]]=""}function E(Qe){Je(Qe),Qe.cdata!==""&&(He(Qe,"oncdata",Qe.cdata),Qe.cdata=""),Qe.script!==""&&(He(Qe,"onscript",Qe.script),Qe.script="")}oe.prototype={end:function(){Ke(this)},write:ot,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){E(this)}};var re;try{re=a("stream").Stream}catch(Qe){re=function(){}}var te=z.EVENTS.filter(function(Qe){return Qe!=="error"&&Qe!=="end"});function se(Qe,Fe){return new ae(Qe,Fe)}function ae(Qe,Fe){if(!(this instanceof ae))return new ae(Qe,Fe);re.apply(this),this._parser=new oe(Qe,Fe),this.writable=!0,this.readable=!0;var Re=this;this._parser.onend=function(){Re.emit("end")},this._parser.onerror=function(ne){Re.emit("error",ne),Re._parser.error=null},this._decoder=null,te.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})})}ae.prototype=Object.create(re.prototype,{constructor:{value:ae}}),ae.prototype.write=function(Qe){if(typeof x=="function"&&typeof x.isBuffer=="function"&&x.isBuffer(Qe)){if(!this._decoder){var Fe=a("string_decoder").StringDecoder;this._decoder=new Fe("utf8")}Qe=this._decoder.write(Qe)}return this._parser.write(Qe.toString()),this.emit("data",Qe),!0},ae.prototype.end=function(Qe){return Qe&&Qe.length&&this.write(Qe),this._parser.end(),!0},ae.prototype.on=function(Qe,Fe){var Re=this;return!Re._parser["on"+Qe]&&te.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)}),re.prototype.on.call(Re,Qe,Fe)};var he="[CDATA[",me="DOCTYPE",ve="http://www.w3.org/XML/1998/namespace",pe="http://www.w3.org/2000/xmlns/",be={xml:ve,xmlns:pe},je=/[:_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]/,ke=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\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 Se(Qe){return Qe===" "||Qe===`
`||Qe==="\r"||Qe===" "}function Ee(Qe){return Qe==='"'||Qe==="'"}function Ie(Qe){return Qe===">"||Se(Qe)}function Me(Qe,Fe){return Qe.test(Fe)}function Le(Qe,Fe){return!Me(Qe,Fe)}var Ae=0;z.STATE={BEGIN:Ae++,BEGIN_WHITESPACE:Ae++,TEXT:Ae++,TEXT_ENTITY:Ae++,OPEN_WAKA:Ae++,SGML_DECL:Ae++,SGML_DECL_QUOTED:Ae++,DOCTYPE:Ae++,DOCTYPE_QUOTED:Ae++,DOCTYPE_DTD:Ae++,DOCTYPE_DTD_QUOTED:Ae++,COMMENT_STARTING:Ae++,COMMENT:Ae++,COMMENT_ENDING:Ae++,COMMENT_ENDED:Ae++,CDATA:Ae++,CDATA_ENDING:Ae++,CDATA_ENDING_2:Ae++,PROC_INST:Ae++,PROC_INST_BODY:Ae++,PROC_INST_ENDING:Ae++,OPEN_TAG:Ae++,OPEN_TAG_SLASH:Ae++,ATTRIB:Ae++,ATTRIB_NAME:Ae++,ATTRIB_NAME_SAW_WHITE:Ae++,ATTRIB_VALUE:Ae++,ATTRIB_VALUE_QUOTED:Ae++,ATTRIB_VALUE_CLOSED:Ae++,ATTRIB_VALUE_UNQUOTED:Ae++,ATTRIB_VALUE_ENTITY_Q:Ae++,ATTRIB_VALUE_ENTITY_U:Ae++,CLOSE_TAG:Ae++,CLOSE_TAG_SAW_WHITE:Ae++,SCRIPT:Ae++,SCRIPT_ENDING:Ae++},z.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},z.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(z.ENTITIES).forEach(function(Qe){var Fe=z.ENTITIES[Qe],Re=typeof Fe=="number"?String.fromCharCode(Fe):Fe;z.ENTITIES[Qe]=Re});for(var Pe in z.STATE)z.STATE[z.STATE[Pe]]=Pe;Ae=z.STATE;function Ue(Qe,Fe,Re){Qe[Fe]&&Qe[Fe](Re)}function He(Qe,Fe,Re){Qe.textNode&&Je(Qe),Ue(Qe,Fe,Re)}function Je(Qe){Qe.textNode=st(Qe.opt,Qe.textNode),Qe.textNode&&Ue(Qe,"ontext",Qe.textNode),Qe.textNode=""}function st(Qe,Fe){return Qe.trim&&(Fe=Fe.trim()),Qe.normalize&&(Fe=Fe.replace(/\s+/g," ")),Fe}function _e(Qe,Fe){return Je(Qe),Qe.trackPosition&&(Fe+=`
Line: `+Qe.line+`
Column: `+Qe.column+`
Char: `+Qe.c),Fe=new Error(Fe),Qe.error=Fe,Ue(Qe,"onerror",Fe),Qe}function Ke(Qe){return Qe.sawRoot&&!Qe.closedRoot&&nt(Qe,"Unclosed root tag"),Qe.state!==Ae.BEGIN&&Qe.state!==Ae.BEGIN_WHITESPACE&&Qe.state!==Ae.TEXT&&_e(Qe,"Unexpected end"),Je(Qe),Qe.c="",Qe.closed=!0,Ue(Qe,"onend"),oe.call(Qe,Qe.strict,Qe.opt),Qe}function nt(Qe,Fe){if(typeof Qe!="object"||!(Qe instanceof oe))throw new Error("bad call to strictFail");Qe.strict&&_e(Qe,Fe)}function rt(Qe){Qe.strict||(Qe.tagName=Qe.tagName[Qe.looseCase]());var Fe=Qe.tags[Qe.tags.length-1]||Qe,Re=Qe.tag={name:Qe.tagName,attributes:{}};Qe.opt.xmlns&&(Re.ns=Fe.ns),Qe.attribList.length=0,He(Qe,"onopentagstart",Re)}function et(Qe,Fe){var Re=Qe.indexOf(":"),ne=Re<0?["",Qe]:Qe.split(":"),fe=ne[0],Ne=ne[1];return Fe&&Qe==="xmlns"&&(fe="xmlns",Ne=""),{prefix:fe,local:Ne}}function Ve(Qe){if(Qe.strict||(Qe.attribName=Qe.attribName[Qe.looseCase]()),Qe.attribList.indexOf(Qe.attribName)!==-1||Qe.tag.attributes.hasOwnProperty(Qe.attribName)){Qe.attribName=Qe.attribValue="";return}if(Qe.opt.xmlns){var Fe=et(Qe.attribName,!0),Re=Fe.prefix,ne=Fe.local;if(Re==="xmlns")if(ne==="xml"&&Qe.attribValue!==ve)nt(Qe,"xml: prefix must be bound to "+ve+`
Actual: `+Qe.attribValue);else if(ne==="xmlns"&&Qe.attribValue!==pe)nt(Qe,"xmlns: prefix must be bound to "+pe+`
Actual: `+Qe.attribValue);else{var fe=Qe.tag,Ne=Qe.tags[Qe.tags.length-1]||Qe;fe.ns===Ne.ns&&(fe.ns=Object.create(Ne.ns)),fe.ns[ne]=Qe.attribValue}Qe.attribList.push([Qe.attribName,Qe.attribValue])}else Qe.tag.attributes[Qe.attribName]=Qe.attribValue,He(Qe,"onattribute",{name:Qe.attribName,value:Qe.attribValue});Qe.attribName=Qe.attribValue=""}function Ye(Qe,Fe){if(Qe.opt.xmlns){var Re=Qe.tag,ne=et(Qe.tagName);Re.prefix=ne.prefix,Re.local=ne.local,Re.uri=Re.ns[ne.prefix]||"",Re.prefix&&!Re.uri&&(nt(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(mt){He(Qe,"onopennamespace",{prefix:mt,uri:Re.ns[mt]})});for(var Ne=0,We=Qe.attribList.length;Ne<We;Ne++){var we=Qe.attribList[Ne],ye=we[0],Oe=we[1],$e=et(ye,!0),Ze=$e.prefix,Xe=$e.local,at=Ze===""?"":Re.ns[Ze]||"",lt={name:ye,value:Oe,prefix:Ze,local:Xe,uri:at};Ze&&Ze!=="xmlns"&&!at&&(nt(Qe,"Unbound namespace prefix: "+JSON.stringify(Ze)),lt.uri=Ze),Qe.tag.attributes[ye]=lt,He(Qe,"onattribute",lt)}Qe.attribList.length=0}Qe.tag.isSelfClosing=!!Fe,Qe.sawRoot=!0,Qe.tags.push(Qe.tag),He(Qe,"onopentag",Qe.tag),Fe||(!Qe.noscript&&Qe.tagName.toLowerCase()==="script"?Qe.state=Ae.SCRIPT:Qe.state=Ae.TEXT,Qe.tag=null,Qe.tagName=""),Qe.attribName=Qe.attribValue="",Qe.attribList.length=0}function Ge(Qe){if(!Qe.tagName){nt(Qe,"Weird empty close tag."),Qe.textNode+="</>",Qe.state=Ae.TEXT;return}if(Qe.script){if(Qe.tagName!=="script"){Qe.script+="</"+Qe.tagName+">",Qe.tagName="",Qe.state=Ae.SCRIPT;return}He(Qe,"onscript",Qe.script),Qe.script=""}var Fe=Qe.tags.length,Re=Qe.tagName;Qe.strict||(Re=Re[Qe.looseCase]());for(var ne=Re;Fe--;){var fe=Qe.tags[Fe];if(fe.name!==ne)nt(Qe,"Unexpected close tag");else break}if(Fe<0){nt(Qe,"Unmatched closing tag: "+Qe.tagName),Qe.textNode+="</"+Qe.tagName+">",Qe.state=Ae.TEXT;return}Qe.tagName=Re;for(var Ne=Qe.tags.length;Ne-- >Fe;){var We=Qe.tag=Qe.tags.pop();Qe.tagName=Qe.tag.name,He(Qe,"onclosetag",Qe.tagName);var we={};for(var ye in We.ns)we[ye]=We.ns[ye];var Oe=Qe.tags[Qe.tags.length-1]||Qe;Qe.opt.xmlns&&We.ns!==Oe.ns&&Object.keys(We.ns).forEach(function($e){var Ze=We.ns[$e];He(Qe,"onclosenamespace",{prefix:$e,uri:Ze})})}Fe===0&&(Qe.closedRoot=!0),Qe.tagName=Qe.attribValue=Qe.attribName="",Qe.attribList.length=0,Qe.state=Ae.TEXT}function it(Qe){var Fe=Qe.entity,Re=Fe.toLowerCase(),ne,fe="";return Qe.ENTITIES[Fe]?Qe.ENTITIES[Fe]:Qe.ENTITIES[Re]?Qe.ENTITIES[Re]:(Fe=Re,Fe.charAt(0)==="#"&&(Fe.charAt(1)==="x"?(Fe=Fe.slice(2),ne=parseInt(Fe,16),fe=ne.toString(16)):(Fe=Fe.slice(1),ne=parseInt(Fe,10),fe=ne.toString(10))),Fe=Fe.replace(/^0+/,""),isNaN(ne)||fe.toLowerCase()!==Fe?(nt(Qe,"Invalid character entity"),"&"+Qe.entity+";"):String.fromCodePoint(ne))}function qe(Qe,Fe){Fe==="<"?(Qe.state=Ae.OPEN_WAKA,Qe.startTagPosition=Qe.position):Se(Fe)||(nt(Qe,"Non-whitespace before first tag."),Qe.textNode=Fe,Qe.state=Ae.TEXT)}function vt(Qe,Fe){var Re="";return Fe<Qe.length&&(Re=Qe.charAt(Fe)),Re}function ot(Qe){var Fe=this;if(this.error)throw this.error;if(Fe.closed)return _e(Fe,"Cannot write after close. Assign an onready handler.");if(Qe===null)return Ke(Fe);typeof Qe=="object"&&(Qe=Qe.toString());for(var Re=0,ne="";ne=vt(Qe,Re++),Fe.c=ne,!!ne;)switch(Fe.trackPosition&&(Fe.position++,ne===`
`?(Fe.line++,Fe.column=0):Fe.column++),Fe.state){case Ae.BEGIN:if(Fe.state=Ae.BEGIN_WHITESPACE,ne==="\uFEFF")continue;qe(Fe,ne);continue;case Ae.BEGIN_WHITESPACE:qe(Fe,ne);continue;case Ae.TEXT:if(Fe.sawRoot&&!Fe.closedRoot){for(var fe=Re-1;ne&&ne!=="<"&&ne!=="&";)ne=vt(Qe,Re++),ne&&Fe.trackPosition&&(Fe.position++,ne===`
`?(Fe.line++,Fe.column=0):Fe.column++);Fe.textNode+=Qe.substring(fe,Re-1)}ne==="<"&&!(Fe.sawRoot&&Fe.closedRoot&&!Fe.strict)?(Fe.state=Ae.OPEN_WAKA,Fe.startTagPosition=Fe.position):(!Se(ne)&&(!Fe.sawRoot||Fe.closedRoot)&&nt(Fe,"Text data outside of root node."),ne==="&"?Fe.state=Ae.TEXT_ENTITY:Fe.textNode+=ne);continue;case Ae.SCRIPT:ne==="<"?Fe.state=Ae.SCRIPT_ENDING:Fe.script+=ne;continue;case Ae.SCRIPT_ENDING:ne==="/"?Fe.state=Ae.CLOSE_TAG:(Fe.script+="<"+ne,Fe.state=Ae.SCRIPT);continue;case Ae.OPEN_WAKA:if(ne==="!")Fe.state=Ae.SGML_DECL,Fe.sgmlDecl="";else if(!Se(ne))if(Me(je,ne))Fe.state=Ae.OPEN_TAG,Fe.tagName=ne;else if(ne==="/")Fe.state=Ae.CLOSE_TAG,Fe.tagName="";else if(ne==="?")Fe.state=Ae.PROC_INST,Fe.procInstName=Fe.procInstBody="";else{if(nt(Fe,"Unencoded <"),Fe.startTagPosition+1<Fe.position){var Ne=Fe.position-Fe.startTagPosition;ne=new Array(Ne).join(" ")+ne}Fe.textNode+="<"+ne,Fe.state=Ae.TEXT}continue;case Ae.SGML_DECL:(Fe.sgmlDecl+ne).toUpperCase()===he?(He(Fe,"onopencdata"),Fe.state=Ae.CDATA,Fe.sgmlDecl="",Fe.cdata=""):Fe.sgmlDecl+ne==="--"?(Fe.state=Ae.COMMENT,Fe.comment="",Fe.sgmlDecl=""):(Fe.sgmlDecl+ne).toUpperCase()===me?(Fe.state=Ae.DOCTYPE,(Fe.doctype||Fe.sawRoot)&&nt(Fe,"Inappropriately located doctype declaration"),Fe.doctype="",Fe.sgmlDecl=""):ne===">"?(He(Fe,"onsgmldeclaration",Fe.sgmlDecl),Fe.sgmlDecl="",Fe.state=Ae.TEXT):(Ee(ne)&&(Fe.state=Ae.SGML_DECL_QUOTED),Fe.sgmlDecl+=ne);continue;case Ae.SGML_DECL_QUOTED:ne===Fe.q&&(Fe.state=Ae.SGML_DECL,Fe.q=""),Fe.sgmlDecl+=ne;continue;case Ae.DOCTYPE:ne===">"?(Fe.state=Ae.TEXT,He(Fe,"ondoctype",Fe.doctype),Fe.doctype=!0):(Fe.doctype+=ne,ne==="["?Fe.state=Ae.DOCTYPE_DTD:Ee(ne)&&(Fe.state=Ae.DOCTYPE_QUOTED,Fe.q=ne));continue;case Ae.DOCTYPE_QUOTED:Fe.doctype+=ne,ne===Fe.q&&(Fe.q="",Fe.state=Ae.DOCTYPE);continue;case Ae.DOCTYPE_DTD:Fe.doctype+=ne,ne==="]"?Fe.state=Ae.DOCTYPE:Ee(ne)&&(Fe.state=Ae.DOCTYPE_DTD_QUOTED,Fe.q=ne);continue;case Ae.DOCTYPE_DTD_QUOTED:Fe.doctype+=ne,ne===Fe.q&&(Fe.state=Ae.DOCTYPE_DTD,Fe.q="");continue;case Ae.COMMENT:ne==="-"?Fe.state=Ae.COMMENT_ENDING:Fe.comment+=ne;continue;case Ae.COMMENT_ENDING:ne==="-"?(Fe.state=Ae.COMMENT_ENDED,Fe.comment=st(Fe.opt,Fe.comment),Fe.comment&&He(Fe,"oncomment",Fe.comment),Fe.comment=""):(Fe.comment+="-"+ne,Fe.state=Ae.COMMENT);continue;case Ae.COMMENT_ENDED:ne!==">"?(nt(Fe,"Malformed comment"),Fe.comment+="--"+ne,Fe.state=Ae.COMMENT):Fe.state=Ae.TEXT;continue;case Ae.CDATA:ne==="]"?Fe.state=Ae.CDATA_ENDING:Fe.cdata+=ne;continue;case Ae.CDATA_ENDING:ne==="]"?Fe.state=Ae.CDATA_ENDING_2:(Fe.cdata+="]"+ne,Fe.state=Ae.CDATA);continue;case Ae.CDATA_ENDING_2:ne===">"?(Fe.cdata&&He(Fe,"oncdata",Fe.cdata),He(Fe,"onclosecdata"),Fe.cdata="",Fe.state=Ae.TEXT):ne==="]"?Fe.cdata+="]":(Fe.cdata+="]]"+ne,Fe.state=Ae.CDATA);continue;case Ae.PROC_INST:ne==="?"?Fe.state=Ae.PROC_INST_ENDING:Se(ne)?Fe.state=Ae.PROC_INST_BODY:Fe.procInstName+=ne;continue;case Ae.PROC_INST_BODY:if(!Fe.procInstBody&&Se(ne))continue;ne==="?"?Fe.state=Ae.PROC_INST_ENDING:Fe.procInstBody+=ne;continue;case Ae.PROC_INST_ENDING:ne===">"?(He(Fe,"onprocessinginstruction",{name:Fe.procInstName,body:Fe.procInstBody}),Fe.procInstName=Fe.procInstBody="",Fe.state=Ae.TEXT):(Fe.procInstBody+="?"+ne,Fe.state=Ae.PROC_INST_BODY);continue;case Ae.OPEN_TAG:Me(ke,ne)?Fe.tagName+=ne:(rt(Fe),ne===">"?Ye(Fe):ne==="/"?Fe.state=Ae.OPEN_TAG_SLASH:(Se(ne)||nt(Fe,"Invalid character in tag name"),Fe.state=Ae.ATTRIB));continue;case Ae.OPEN_TAG_SLASH:ne===">"?(Ye(Fe,!0),Ge(Fe)):(nt(Fe,"Forward-slash in opening tag not followed by >"),Fe.state=Ae.ATTRIB);continue;case Ae.ATTRIB:if(Se(ne))continue;ne===">"?Ye(Fe):ne==="/"?Fe.state=Ae.OPEN_TAG_SLASH:Me(je,ne)?(Fe.attribName=ne,Fe.attribValue="",Fe.state=Ae.ATTRIB_NAME):nt(Fe,"Invalid attribute name");continue;case Ae.ATTRIB_NAME:ne==="="?Fe.state=Ae.ATTRIB_VALUE:ne===">"?(nt(Fe,"Attribute without value"),Fe.attribValue=Fe.attribName,Ve(Fe),Ye(Fe)):Se(ne)?Fe.state=Ae.ATTRIB_NAME_SAW_WHITE:Me(ke,ne)?Fe.attribName+=ne:nt(Fe,"Invalid attribute name");continue;case Ae.ATTRIB_NAME_SAW_WHITE:if(ne==="=")Fe.state=Ae.ATTRIB_VALUE;else{if(Se(ne))continue;nt(Fe,"Attribute without value"),Fe.tag.attributes[Fe.attribName]="",Fe.attribValue="",He(Fe,"onattribute",{name:Fe.attribName,value:""}),Fe.attribName="",ne===">"?Ye(Fe):Me(je,ne)?(Fe.attribName=ne,Fe.state=Ae.ATTRIB_NAME):(nt(Fe,"Invalid attribute name"),Fe.state=Ae.ATTRIB)}continue;case Ae.ATTRIB_VALUE:if(Se(ne))continue;Ee(ne)?(Fe.q=ne,Fe.state=Ae.ATTRIB_VALUE_QUOTED):(nt(Fe,"Unquoted attribute value"),Fe.state=Ae.ATTRIB_VALUE_UNQUOTED,Fe.attribValue=ne);continue;case Ae.ATTRIB_VALUE_QUOTED:if(ne!==Fe.q){ne==="&"?Fe.state=Ae.ATTRIB_VALUE_ENTITY_Q:Fe.attribValue+=ne;continue}Ve(Fe),Fe.q="",Fe.state=Ae.ATTRIB_VALUE_CLOSED;continue;case Ae.ATTRIB_VALUE_CLOSED:Se(ne)?Fe.state=Ae.ATTRIB:ne===">"?Ye(Fe):ne==="/"?Fe.state=Ae.OPEN_TAG_SLASH:Me(je,ne)?(nt(Fe,"No whitespace between attributes"),Fe.attribName=ne,Fe.attribValue="",Fe.state=Ae.ATTRIB_NAME):nt(Fe,"Invalid attribute name");continue;case Ae.ATTRIB_VALUE_UNQUOTED:if(!Ie(ne)){ne==="&"?Fe.state=Ae.ATTRIB_VALUE_ENTITY_U:Fe.attribValue+=ne;continue}Ve(Fe),ne===">"?Ye(Fe):Fe.state=Ae.ATTRIB;continue;case Ae.CLOSE_TAG:if(Fe.tagName)ne===">"?Ge(Fe):Me(ke,ne)?Fe.tagName+=ne:Fe.script?(Fe.script+="</"+Fe.tagName,Fe.tagName="",Fe.state=Ae.SCRIPT):(Se(ne)||nt(Fe,"Invalid tagname in closing tag"),Fe.state=Ae.CLOSE_TAG_SAW_WHITE);else{if(Se(ne))continue;Le(je,ne)?Fe.script?(Fe.script+="</"+ne,Fe.state=Ae.SCRIPT):nt(Fe,"Invalid tagname in closing tag."):Fe.tagName=ne}continue;case Ae.CLOSE_TAG_SAW_WHITE:if(Se(ne))continue;ne===">"?Ge(Fe):nt(Fe,"Invalid characters in closing tag");continue;case Ae.TEXT_ENTITY:case Ae.ATTRIB_VALUE_ENTITY_Q:case Ae.ATTRIB_VALUE_ENTITY_U:var We,we;switch(Fe.state){case Ae.TEXT_ENTITY:We=Ae.TEXT,we="textNode";break;case Ae.ATTRIB_VALUE_ENTITY_Q:We=Ae.ATTRIB_VALUE_QUOTED,we="attribValue";break;case Ae.ATTRIB_VALUE_ENTITY_U:We=Ae.ATTRIB_VALUE_UNQUOTED,we="attribValue";break}ne===";"?(Fe[we]+=it(Fe),Fe.entity="",Fe.state=We):Me(Fe.entity.length?De:Be,ne)?Fe.entity+=ne:(nt(Fe,"Invalid character in entity name"),Fe[we]+="&"+Fe.entity+ne,Fe.entity="",Fe.state=We);continue;default:throw new Error(Fe,"Unknown state: "+Fe.state)}return Fe.position>=Fe.bufferCheckPosition&&ee(Fe),Fe}String.fromCodePoint||function(){var Qe=String.fromCharCode,Fe=Math.floor,Re=function(){var ne=16384,fe=[],Ne,We,we=-1,ye=arguments.length;if(!ye)return"";for(var Oe="";++we<ye;){var $e=Number(arguments[we]);if(!isFinite($e)||$e<0||$e>1114111||Fe($e)!==$e)throw RangeError("Invalid code point: "+$e);$e<=65535?fe.push($e):($e-=65536,Ne=($e>>10)+55296,We=$e%1024+56320,fe.push(Ne,We)),(we+1===ye||fe.length>ne)&&(Oe+=Qe.apply(null,fe),fe.length=0)}return Oe};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Re,configurable:!0,writable:!0}):String.fromCodePoint=Re}()})(typeof ge=="undefined"?this.sax={}:ge)}).call(this)}).call(this,a("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(a,Te,ge){Te.exports=ie;var x=a("events").EventEmitter,z=a("inherits");z(ie,x),ie.Readable=a("readable-stream/lib/_stream_readable.js"),ie.Writable=a("readable-stream/lib/_stream_writable.js"),ie.Duplex=a("readable-stream/lib/_stream_duplex.js"),ie.Transform=a("readable-stream/lib/_stream_transform.js"),ie.PassThrough=a("readable-stream/lib/_stream_passthrough.js"),ie.finished=a("readable-stream/lib/internal/streams/end-of-stream.js"),ie.pipeline=a("readable-stream/lib/internal/streams/pipeline.js"),ie.Stream=ie;function ie(){x.call(this)}ie.prototype.pipe=function(oe,ee){var ue=this;function E(ve){oe.writable&&oe.write(ve)===!1&&ue.pause&&ue.pause()}ue.on("data",E);function re(){ue.readable&&ue.resume&&ue.resume()}oe.on("drain",re),!oe._isStdio&&(!ee||ee.end!==!1)&&(ue.on("end",se),ue.on("close",ae));var te=!1;function se(){te||(te=!0,oe.end())}function ae(){te||(te=!0,typeof oe.destroy=="function"&&oe.destroy())}function he(ve){if(me(),x.listenerCount(this,"error")===0)throw ve}ue.on("error",he),oe.on("error",he);function me(){ue.removeListener("data",E),oe.removeListener("drain",re),ue.removeListener("end",se),ue.removeListener("close",ae),ue.removeListener("error",he),oe.removeListener("error",he),ue.removeListener("end",me),ue.removeListener("close",me),oe.removeListener("close",me)}return ue.on("end",me),ue.on("close",me),oe.on("close",me),oe.emit("pipe",ue),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(a,Te,ge){"use strict";function x(re,te){re.prototype=Object.create(te.prototype),re.prototype.constructor=re,re.__proto__=te}var z={};function ie(re,te,se){se||(se=Error);function ae(me,ve,pe){return typeof te=="string"?te:te(me,ve,pe)}var he=function(me){x(ve,me);function ve(pe,be,je){return me.call(this,ae(pe,be,je))||this}return ve}(se);he.prototype.name=se.name,he.prototype.code=re,z[re]=he}function oe(re,te){if(Array.isArray(re)){var se=re.length;return re=re.map(function(ae){return String(ae)}),se>2?"one of ".concat(te," ").concat(re.slice(0,se-1).join(", "),", or ")+re[se-1]:se===2?"one of ".concat(te," ").concat(re[0]," or ").concat(re[1]):"of ".concat(te," ").concat(re[0])}else return"of ".concat(te," ").concat(String(re))}function ee(re,te,se){return re.substr(!se||se<0?0:+se,te.length)===te}function ue(re,te,se){return(se===void 0||se>re.length)&&(se=re.length),re.substring(se-te.length,se)===te}function E(re,te,se){return typeof se!="number"&&(se=0),se+te.length>re.length?!1:re.indexOf(te,se)!==-1}ie("ERR_INVALID_OPT_VALUE",function(re,te){return'The value "'+te+'" is invalid for option "'+re+'"'},TypeError),ie("ERR_INVALID_ARG_TYPE",function(re,te,se){var ae;typeof te=="string"&&ee(te,"not ")?(ae="must not be",te=te.replace(/^not /,"")):ae="must be";var he;if(ue(re," argument"))he="The ".concat(re," ").concat(ae," ").concat(oe(te,"type"));else{var me=E(re,".")?"property":"argument";he='The "'.concat(re,'" ').concat(me," ").concat(ae," ").concat(oe(te,"type"))}return he+=". Received type ".concat(typeof se),he},TypeError),ie("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ie("ERR_METHOD_NOT_IMPLEMENTED",function(re){return"The "+re+" method is not implemented"}),ie("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ie("ERR_STREAM_DESTROYED",function(re){return"Cannot call "+re+" after a stream was destroyed"}),ie("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ie("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ie("ERR_STREAM_WRITE_AFTER_END","write after end"),ie("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ie("ERR_UNKNOWN_ENCODING",function(re){return"Unknown encoding: "+re},TypeError),ie("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Te.exports.codes=z},{}],400:[function(a,Te,ge){(function(x){(function(){"use strict";var z=Object.keys||function(ae){var he=[];for(var me in ae)he.push(me);return he};Te.exports=re;var ie=a("./_stream_readable"),oe=a("./_stream_writable");a("inherits")(re,ie);for(var ee=z(oe.prototype),ue=0;ue<ee.length;ue++){var E=ee[ue];re.prototype[E]||(re.prototype[E]=oe.prototype[E])}function re(ae){if(!(this instanceof re))return new re(ae);ie.call(this,ae),oe.call(this,ae),this.allowHalfOpen=!0,ae&&(ae.readable===!1&&(this.readable=!1),ae.writable===!1&&(this.writable=!1),ae.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",te)))}Object.defineProperty(re.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(re.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(re.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function te(){this._writableState.ended||x.nextTick(se,this)}function se(ae){ae.end()}Object.defineProperty(re.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(he){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=he,this._writableState.destroyed=he)}})}).call(this)}).call(this,a("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(a,Te,ge){"use strict";Te.exports=z;var x=a("./_stream_transform");a("inherits")(z,x);function z(ie){if(!(this instanceof z))return new z(ie);x.call(this,ie)}z.prototype._transform=function(ie,oe,ee){ee(null,ie)}},{"./_stream_transform":403,inherits:364}],402:[function(a,Te,ge){(function(x,z){(function(){"use strict";Te.exports=He;var ie;He.ReadableState=Ue;var oe=a("events").EventEmitter,ee=function(ye,Oe){return ye.listeners(Oe).length},ue=a("./internal/streams/stream"),E=a("buffer").Buffer,re=(typeof z!="undefined"?z:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function te(we){return E.from(we)}function se(we){return E.isBuffer(we)||we instanceof re}var ae=a("util"),he;ae&&ae.debuglog?he=ae.debuglog("stream"):he=function(){};var me=a("./internal/streams/buffer_list"),ve=a("./internal/streams/destroy"),pe=a("./internal/streams/state"),be=pe.getHighWaterMark,je=a("../errors").codes,ke=je.ERR_INVALID_ARG_TYPE,Be=je.ERR_STREAM_PUSH_AFTER_EOF,De=je.ERR_METHOD_NOT_IMPLEMENTED,Se=je.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ee,Ie,Me;a("inherits")(He,ue);var Le=ve.errorOrDestroy,Ae=["error","close","destroy","pause","resume"];function Pe(we,ye,Oe){if(typeof we.prependListener=="function")return we.prependListener(ye,Oe);!we._events||!we._events[ye]?we.on(ye,Oe):Array.isArray(we._events[ye])?we._events[ye].unshift(Oe):we._events[ye]=[Oe,we._events[ye]]}function Ue(we,ye,Oe){ie=ie||a("./_stream_duplex"),we=we||{},typeof Oe!="boolean"&&(Oe=ye instanceof ie),this.objectMode=!!we.objectMode,Oe&&(this.objectMode=this.objectMode||!!we.readableObjectMode),this.highWaterMark=be(this,we,"readableHighWaterMark",Oe),this.buffer=new me,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=we.emitClose!==!1,this.autoDestroy=!!we.autoDestroy,this.destroyed=!1,this.defaultEncoding=we.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,we.encoding&&(Ee||(Ee=a("string_decoder/").StringDecoder),this.decoder=new Ee(we.encoding),this.encoding=we.encoding)}function He(we){if(ie=ie||a("./_stream_duplex"),!(this instanceof He))return new He(we);var ye=this instanceof ie;this._readableState=new Ue(we,this,ye),this.readable=!0,we&&(typeof we.read=="function"&&(this._read=we.read),typeof we.destroy=="function"&&(this._destroy=we.destroy)),ue.call(this)}Object.defineProperty(He.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ye){this._readableState&&(this._readableState.destroyed=ye)}}),He.prototype.destroy=ve.destroy,He.prototype._undestroy=ve.undestroy,He.prototype._destroy=function(we,ye){ye(we)},He.prototype.push=function(we,ye){var Oe=this._readableState,$e;return Oe.objectMode?$e=!0:typeof we=="string"&&(ye=ye||Oe.defaultEncoding,ye!==Oe.encoding&&(we=E.from(we,ye),ye=""),$e=!0),Je(this,we,ye,!1,$e)},He.prototype.unshift=function(we){return Je(this,we,null,!0,!1)};function Je(we,ye,Oe,$e,Ze){he("readableAddChunk",ye);var Xe=we._readableState;if(ye===null)Xe.reading=!1,et(we,Xe);else{var at;if(Ze||(at=_e(Xe,ye)),at)Le(we,at);else if(Xe.objectMode||ye&&ye.length>0)if(typeof ye!="string"&&!Xe.objectMode&&Object.getPrototypeOf(ye)!==E.prototype&&(ye=te(ye)),$e)Xe.endEmitted?Le(we,new Se):st(we,Xe,ye,!0);else if(Xe.ended)Le(we,new Be);else{if(Xe.destroyed)return!1;Xe.reading=!1,Xe.decoder&&!Oe?(ye=Xe.decoder.write(ye),Xe.objectMode||ye.length!==0?st(we,Xe,ye,!1):Ge(we,Xe)):st(we,Xe,ye,!1)}else $e||(Xe.reading=!1,Ge(we,Xe))}return!Xe.ended&&(Xe.length<Xe.highWaterMark||Xe.length===0)}function st(we,ye,Oe,$e){ye.flowing&&ye.length===0&&!ye.sync?(ye.awaitDrain=0,we.emit("data",Oe)):(ye.length+=ye.objectMode?1:Oe.length,$e?ye.buffer.unshift(Oe):ye.buffer.push(Oe),ye.needReadable&&Ve(we)),Ge(we,ye)}function _e(we,ye){var Oe;return!se(ye)&&typeof ye!="string"&&ye!==void 0&&!we.objectMode&&(Oe=new ke("chunk",["string","Buffer","Uint8Array"],ye)),Oe}He.prototype.isPaused=function(){return this._readableState.flowing===!1},He.prototype.setEncoding=function(we){Ee||(Ee=a("string_decoder/").StringDecoder);var ye=new Ee(we);this._readableState.decoder=ye,this._readableState.encoding=this._readableState.decoder.encoding;for(var Oe=this._readableState.buffer.head,$e="";Oe!==null;)$e+=ye.write(Oe.data),Oe=Oe.next;return this._readableState.buffer.clear(),$e!==""&&this._readableState.buffer.push($e),this._readableState.length=$e.length,this};var Ke=1073741824;function nt(we){return we>=Ke?we=Ke:(we--,we|=we>>>1,we|=we>>>2,we|=we>>>4,we|=we>>>8,we|=we>>>16,we++),we}function rt(we,ye){return we<=0||ye.length===0&&ye.ended?0:ye.objectMode?1:we!==we?ye.flowing&&ye.length?ye.buffer.head.data.length:ye.length:(we>ye.highWaterMark&&(ye.highWaterMark=nt(we)),we<=ye.length?we:ye.ended?ye.length:(ye.needReadable=!0,0))}He.prototype.read=function(we){he("read",we),we=parseInt(we,10);var ye=this._readableState,Oe=we;if(we!==0&&(ye.emittedReadable=!1),we===0&&ye.needReadable&&((ye.highWaterMark!==0?ye.length>=ye.highWaterMark:ye.length>0)||ye.ended))return he("read: emitReadable",ye.length,ye.ended),ye.length===0&&ye.ended?fe(this):Ve(this),null;if(we=rt(we,ye),we===0&&ye.ended)return ye.length===0&&fe(this),null;var $e=ye.needReadable;he("need readable",$e),(ye.length===0||ye.length-we<ye.highWaterMark)&&($e=!0,he("length less than watermark",$e)),ye.ended||ye.reading?($e=!1,he("reading or ended",$e)):$e&&(he("do read"),ye.reading=!0,ye.sync=!0,ye.length===0&&(ye.needReadable=!0),this._read(ye.highWaterMark),ye.sync=!1,ye.reading||(we=rt(Oe,ye)));var Ze;return we>0?Ze=ne(we,ye):Ze=null,Ze===null?(ye.needReadable=ye.length<=ye.highWaterMark,we=0):(ye.length-=we,ye.awaitDrain=0),ye.length===0&&(ye.ended||(ye.needReadable=!0),Oe!==we&&ye.ended&&fe(this)),Ze!==null&&this.emit("data",Ze),Ze};function et(we,ye){if(he("onEofChunk"),!ye.ended){if(ye.decoder){var Oe=ye.decoder.end();Oe&&Oe.length&&(ye.buffer.push(Oe),ye.length+=ye.objectMode?1:Oe.length)}ye.ended=!0,ye.sync?Ve(we):(ye.needReadable=!1,ye.emittedReadable||(ye.emittedReadable=!0,Ye(we)))}}function Ve(we){var ye=we._readableState;he("emitReadable",ye.needReadable,ye.emittedReadable),ye.needReadable=!1,ye.emittedReadable||(he("emitReadable",ye.flowing),ye.emittedReadable=!0,x.nextTick(Ye,we))}function Ye(we){var ye=we._readableState;he("emitReadable_",ye.destroyed,ye.length,ye.ended),!ye.destroyed&&(ye.length||ye.ended)&&(we.emit("readable"),ye.emittedReadable=!1),ye.needReadable=!ye.flowing&&!ye.ended&&ye.length<=ye.highWaterMark,Re(we)}function Ge(we,ye){ye.readingMore||(ye.readingMore=!0,x.nextTick(it,we,ye))}function it(we,ye){for(;!ye.reading&&!ye.ended&&(ye.length<ye.highWaterMark||ye.flowing&&ye.length===0);){var Oe=ye.length;if(he("maybeReadMore read 0"),we.read(0),Oe===ye.length)break}ye.readingMore=!1}He.prototype._read=function(we){Le(this,new De("_read()"))},He.prototype.pipe=function(we,ye){var Oe=this,$e=this._readableState;switch($e.pipesCount){case 0:$e.pipes=we;break;case 1:$e.pipes=[$e.pipes,we];break;default:$e.pipes.push(we);break}$e.pipesCount+=1,he("pipe count=%d opts=%j",$e.pipesCount,ye);var Ze=(!ye||ye.end!==!1)&&we!==x.stdout&&we!==x.stderr,Xe=Ze?lt:pt;$e.endEmitted?x.nextTick(Xe):Oe.once("end",Xe),we.on("unpipe",at);function at(Mt,kt){he("onunpipe"),Mt===Oe&&kt&&kt.hasUnpiped===!1&&(kt.hasUnpiped=!0,ct())}function lt(){he("onend"),we.end()}var mt=qe(Oe);we.on("drain",mt);var ut=!1;function ct(){he("cleanup"),we.removeListener("close",Bt),we.removeListener("finish",At),we.removeListener("drain",mt),we.removeListener("error",wt),we.removeListener("unpipe",at),Oe.removeListener("end",lt),Oe.removeListener("end",pt),Oe.removeListener("data",Pt),ut=!0,$e.awaitDrain&&(!we._writableState||we._writableState.needDrain)&&mt()}Oe.on("data",Pt);function Pt(Mt){he("ondata");var kt=we.write(Mt);he("dest.write",kt),kt===!1&&(($e.pipesCount===1&&$e.pipes===we||$e.pipesCount>1&&We($e.pipes,we)!==-1)&&!ut&&(he("false write response, pause",$e.awaitDrain),$e.awaitDrain++),Oe.pause())}function wt(Mt){he("onerror",Mt),pt(),we.removeListener("error",wt),ee(we,"error")===0&&Le(we,Mt)}Pe(we,"error",wt);function Bt(){we.removeListener("finish",At),pt()}we.once("close",Bt);function At(){he("onfinish"),we.removeListener("close",Bt),pt()}we.once("finish",At);function pt(){he("unpipe"),Oe.unpipe(we)}return we.emit("pipe",Oe),$e.flowing||(he("pipe resume"),Oe.resume()),we};function qe(we){return function(){var Oe=we._readableState;he("pipeOnDrain",Oe.awaitDrain),Oe.awaitDrain&&Oe.awaitDrain--,Oe.awaitDrain===0&&ee(we,"data")&&(Oe.flowing=!0,Re(we))}}He.prototype.unpipe=function(we){var ye=this._readableState,Oe={hasUnpiped:!1};if(ye.pipesCount===0)return this;if(ye.pipesCount===1)return we&&we!==ye.pipes?this:(we||(we=ye.pipes),ye.pipes=null,ye.pipesCount=0,ye.flowing=!1,we&&we.emit("unpipe",this,Oe),this);if(!we){var $e=ye.pipes,Ze=ye.pipesCount;ye.pipes=null,ye.pipesCount=0,ye.flowing=!1;for(var Xe=0;Xe<Ze;Xe++)$e[Xe].emit("unpipe",this,{hasUnpiped:!1});return this}var at=We(ye.pipes,we);return at===-1?this:(ye.pipes.splice(at,1),ye.pipesCount-=1,ye.pipesCount===1&&(ye.pipes=ye.pipes[0]),we.emit("unpipe",this,Oe),this)},He.prototype.on=function(we,ye){var Oe=ue.prototype.on.call(this,we,ye),$e=this._readableState;return we==="data"?($e.readableListening=this.listenerCount("readable")>0,$e.flowing!==!1&&this.resume()):we==="readable"&&!$e.endEmitted&&!$e.readableListening&&($e.readableListening=$e.needReadable=!0,$e.flowing=!1,$e.emittedReadable=!1,he("on readable",$e.length,$e.reading),$e.length?Ve(this):$e.reading||x.nextTick(ot,this)),Oe},He.prototype.addListener=He.prototype.on,He.prototype.removeListener=function(we,ye){var Oe=ue.prototype.removeListener.call(this,we,ye);return we==="readable"&&x.nextTick(vt,this),Oe},He.prototype.removeAllListeners=function(we){var ye=ue.prototype.removeAllListeners.apply(this,arguments);return(we==="readable"||we===void 0)&&x.nextTick(vt,this),ye};function vt(we){var ye=we._readableState;ye.readableListening=we.listenerCount("readable")>0,ye.resumeScheduled&&!ye.paused?ye.flowing=!0:we.listenerCount("data")>0&&we.resume()}function ot(we){he("readable nexttick read 0"),we.read(0)}He.prototype.resume=function(){var we=this._readableState;return we.flowing||(he("resume"),we.flowing=!we.readableListening,Qe(this,we)),we.paused=!1,this};function Qe(we,ye){ye.resumeScheduled||(ye.resumeScheduled=!0,x.nextTick(Fe,we,ye))}function Fe(we,ye){he("resume",ye.reading),ye.reading||we.read(0),ye.resumeScheduled=!1,we.emit("resume"),Re(we),ye.flowing&&!ye.reading&&we.read(0)}He.prototype.pause=function(){return he("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(he("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Re(we){var ye=we._readableState;for(he("flow",ye.flowing);ye.flowing&&we.read()!==null;);}He.prototype.wrap=function(we){var ye=this,Oe=this._readableState,$e=!1;we.on("end",function(){if(he("wrapped end"),Oe.decoder&&!Oe.ended){var at=Oe.decoder.end();at&&at.length&&ye.push(at)}ye.push(null)}),we.on("data",function(at){if(he("wrapped data"),Oe.decoder&&(at=Oe.decoder.write(at)),!(Oe.objectMode&&at==null)&&!(!Oe.objectMode&&(!at||!at.length))){var lt=ye.push(at);lt||($e=!0,we.pause())}});for(var Ze in we)this[Ze]===void 0&&typeof we[Ze]=="function"&&(this[Ze]=function(lt){return function(){return we[lt].apply(we,arguments)}}(Ze));for(var Xe=0;Xe<Ae.length;Xe++)we.on(Ae[Xe],this.emit.bind(this,Ae[Xe]));return this._read=function(at){he("wrapped _read",at),$e&&($e=!1,we.resume())},this},typeof Symbol=="function"&&(He.prototype[Symbol.asyncIterator]=function(){return Ie===void 0&&(Ie=a("./internal/streams/async_iterator")),Ie(this)}),Object.defineProperty(He.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(He.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(He.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(ye){this._readableState&&(this._readableState.flowing=ye)}}),He._fromList=ne,Object.defineProperty(He.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ne(we,ye){if(ye.length===0)return null;var Oe;return ye.objectMode?Oe=ye.buffer.shift():!we||we>=ye.length?(ye.decoder?Oe=ye.buffer.join(""):ye.buffer.length===1?Oe=ye.buffer.first():Oe=ye.buffer.concat(ye.length),ye.buffer.clear()):Oe=ye.buffer.consume(we,ye.decoder),Oe}function fe(we){var ye=we._readableState;he("endReadable",ye.endEmitted),ye.endEmitted||(ye.ended=!0,x.nextTick(Ne,ye,we))}function Ne(we,ye){if(he("endReadableNT",we.endEmitted,we.length),!we.endEmitted&&we.length===0&&(we.endEmitted=!0,ye.readable=!1,ye.emit("end"),we.autoDestroy)){var Oe=ye._writableState;(!Oe||Oe.autoDestroy&&Oe.finished)&&ye.destroy()}}typeof Symbol=="function"&&(He.from=function(we,ye){return Me===void 0&&(Me=a("./internal/streams/from")),Me(He,we,ye)});function We(we,ye){for(var Oe=0,$e=we.length;Oe<$e;Oe++)if(we[Oe]===ye)return Oe;return-1}}).call(this)}).call(this,a("_process"),typeof Lt!="undefined"?Lt: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(a,Te,ge){"use strict";Te.exports=re;var x=a("../errors").codes,z=x.ERR_METHOD_NOT_IMPLEMENTED,ie=x.ERR_MULTIPLE_CALLBACK,oe=x.ERR_TRANSFORM_ALREADY_TRANSFORMING,ee=x.ERR_TRANSFORM_WITH_LENGTH_0,ue=a("./_stream_duplex");a("inherits")(re,ue);function E(ae,he){var me=this._transformState;me.transforming=!1;var ve=me.writecb;if(ve===null)return this.emit("error",new ie);me.writechunk=null,me.writecb=null,he!=null&&this.push(he),ve(ae);var pe=this._readableState;pe.reading=!1,(pe.needReadable||pe.length<pe.highWaterMark)&&this._read(pe.highWaterMark)}function re(ae){if(!(this instanceof re))return new re(ae);ue.call(this,ae),this._transformState={afterTransform:E.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,ae&&(typeof ae.transform=="function"&&(this._transform=ae.transform),typeof ae.flush=="function"&&(this._flush=ae.flush)),this.on("prefinish",te)}function te(){var ae=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(he,me){se(ae,he,me)}):se(this,null,null)}re.prototype.push=function(ae,he){return this._transformState.needTransform=!1,ue.prototype.push.call(this,ae,he)},re.prototype._transform=function(ae,he,me){me(new z("_transform()"))},re.prototype._write=function(ae,he,me){var ve=this._transformState;if(ve.writecb=me,ve.writechunk=ae,ve.writeencoding=he,!ve.transforming){var pe=this._readableState;(ve.needTransform||pe.needReadable||pe.length<pe.highWaterMark)&&this._read(pe.highWaterMark)}},re.prototype._read=function(ae){var he=this._transformState;he.writechunk!==null&&!he.transforming?(he.transforming=!0,this._transform(he.writechunk,he.writeencoding,he.afterTransform)):he.needTransform=!0},re.prototype._destroy=function(ae,he){ue.prototype._destroy.call(this,ae,function(me){he(me)})};function se(ae,he,me){if(he)return ae.emit("error",he);if(me!=null&&ae.push(me),ae._writableState.length)throw new ee;if(ae._transformState.transforming)throw new oe;return ae.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(a,Te,ge){(function(x,z){(function(){"use strict";Te.exports=Ue;function ie(Re,ne,fe){this.chunk=Re,this.encoding=ne,this.callback=fe,this.next=null}function oe(Re){var ne=this;this.next=null,this.entry=null,this.finish=function(){Fe(ne,Re)}}var ee;Ue.WritableState=Ae;var ue={deprecate:a("util-deprecate")},E=a("./internal/streams/stream"),re=a("buffer").Buffer,te=(typeof z!="undefined"?z:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function se(Re){return re.from(Re)}function ae(Re){return re.isBuffer(Re)||Re instanceof te}var he=a("./internal/streams/destroy"),me=a("./internal/streams/state"),ve=me.getHighWaterMark,pe=a("../errors").codes,be=pe.ERR_INVALID_ARG_TYPE,je=pe.ERR_METHOD_NOT_IMPLEMENTED,ke=pe.ERR_MULTIPLE_CALLBACK,Be=pe.ERR_STREAM_CANNOT_PIPE,De=pe.ERR_STREAM_DESTROYED,Se=pe.ERR_STREAM_NULL_VALUES,Ee=pe.ERR_STREAM_WRITE_AFTER_END,Ie=pe.ERR_UNKNOWN_ENCODING,Me=he.errorOrDestroy;a("inherits")(Ue,E);function Le(){}function Ae(Re,ne,fe){ee=ee||a("./_stream_duplex"),Re=Re||{},typeof fe!="boolean"&&(fe=ne instanceof ee),this.objectMode=!!Re.objectMode,fe&&(this.objectMode=this.objectMode||!!Re.writableObjectMode),this.highWaterMark=ve(this,Re,"writableHighWaterMark",fe),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Ne=Re.decodeStrings===!1;this.decodeStrings=!Ne,this.defaultEncoding=Re.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(We){et(ne,We)},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)}Ae.prototype.getBuffer=function(){for(var ne=this.bufferedRequest,fe=[];ne;)fe.push(ne),ne=ne.next;return fe},function(){try{Object.defineProperty(Ae.prototype,"buffer",{get:ue.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Re){}}();var Pe;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Pe=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ue,Symbol.hasInstance,{value:function(ne){return Pe.call(this,ne)?!0:this!==Ue?!1:ne&&ne._writableState instanceof Ae}})):Pe=function(ne){return ne instanceof this};function Ue(Re){ee=ee||a("./_stream_duplex");var ne=this instanceof ee;if(!ne&&!Pe.call(Ue,this))return new Ue(Re);this._writableState=new Ae(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)),E.call(this)}Ue.prototype.pipe=function(){Me(this,new Be)};function He(Re,ne){var fe=new Ee;Me(Re,fe),x.nextTick(ne,fe)}function Je(Re,ne,fe,Ne){var We;return fe===null?We=new Se:typeof fe!="string"&&!ne.objectMode&&(We=new be("chunk",["string","Buffer"],fe)),We?(Me(Re,We),x.nextTick(Ne,We),!1):!0}Ue.prototype.write=function(Re,ne,fe){var Ne=this._writableState,We=!1,we=!Ne.objectMode&&ae(Re);return we&&!re.isBuffer(Re)&&(Re=se(Re)),typeof ne=="function"&&(fe=ne,ne=null),we?ne="buffer":ne||(ne=Ne.defaultEncoding),typeof fe!="function"&&(fe=Le),Ne.ending?He(this,fe):(we||Je(this,Ne,Re,fe))&&(Ne.pendingcb++,We=_e(this,Ne,we,Re,ne,fe)),We},Ue.prototype.cork=function(){this._writableState.corked++},Ue.prototype.uncork=function(){var Re=this._writableState;Re.corked&&(Re.corked--,!Re.writing&&!Re.corked&&!Re.bufferProcessing&&Re.bufferedRequest&&Ge(this,Re))},Ue.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 Ie(ne);return this._writableState.defaultEncoding=ne,this},Object.defineProperty(Ue.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function st(Re,ne,fe){return!Re.objectMode&&Re.decodeStrings!==!1&&typeof ne=="string"&&(ne=re.from(ne,fe)),ne}Object.defineProperty(Ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function _e(Re,ne,fe,Ne,We,we){if(!fe){var ye=st(ne,Ne,We);Ne!==ye&&(fe=!0,We="buffer",Ne=ye)}var Oe=ne.objectMode?1:Ne.length;ne.length+=Oe;var $e=ne.length<ne.highWaterMark;if($e||(ne.needDrain=!0),ne.writing||ne.corked){var Ze=ne.lastBufferedRequest;ne.lastBufferedRequest={chunk:Ne,encoding:We,isBuf:fe,callback:we,next:null},Ze?Ze.next=ne.lastBufferedRequest:ne.bufferedRequest=ne.lastBufferedRequest,ne.bufferedRequestCount+=1}else Ke(Re,ne,!1,Oe,Ne,We,we);return $e}function Ke(Re,ne,fe,Ne,We,we,ye){ne.writelen=Ne,ne.writecb=ye,ne.writing=!0,ne.sync=!0,ne.destroyed?ne.onwrite(new De("write")):fe?Re._writev(We,ne.onwrite):Re._write(We,we,ne.onwrite),ne.sync=!1}function nt(Re,ne,fe,Ne,We){--ne.pendingcb,fe?(x.nextTick(We,Ne),x.nextTick(ot,Re,ne),Re._writableState.errorEmitted=!0,Me(Re,Ne)):(We(Ne),Re._writableState.errorEmitted=!0,Me(Re,Ne),ot(Re,ne))}function rt(Re){Re.writing=!1,Re.writecb=null,Re.length-=Re.writelen,Re.writelen=0}function et(Re,ne){var fe=Re._writableState,Ne=fe.sync,We=fe.writecb;if(typeof We!="function")throw new ke;if(rt(fe),ne)nt(Re,fe,Ne,ne,We);else{var we=it(fe)||Re.destroyed;!we&&!fe.corked&&!fe.bufferProcessing&&fe.bufferedRequest&&Ge(Re,fe),Ne?x.nextTick(Ve,Re,fe,we,We):Ve(Re,fe,we,We)}}function Ve(Re,ne,fe,Ne){fe||Ye(Re,ne),ne.pendingcb--,Ne(),ot(Re,ne)}function Ye(Re,ne){ne.length===0&&ne.needDrain&&(ne.needDrain=!1,Re.emit("drain"))}function Ge(Re,ne){ne.bufferProcessing=!0;var fe=ne.bufferedRequest;if(Re._writev&&fe&&fe.next){var Ne=ne.bufferedRequestCount,We=new Array(Ne),we=ne.corkedRequestsFree;we.entry=fe;for(var ye=0,Oe=!0;fe;)We[ye]=fe,fe.isBuf||(Oe=!1),fe=fe.next,ye+=1;We.allBuffers=Oe,Ke(Re,ne,!0,ne.length,We,"",we.finish),ne.pendingcb++,ne.lastBufferedRequest=null,we.next?(ne.corkedRequestsFree=we.next,we.next=null):ne.corkedRequestsFree=new oe(ne),ne.bufferedRequestCount=0}else{for(;fe;){var $e=fe.chunk,Ze=fe.encoding,Xe=fe.callback,at=ne.objectMode?1:$e.length;if(Ke(Re,ne,!1,at,$e,Ze,Xe),fe=fe.next,ne.bufferedRequestCount--,ne.writing)break}fe===null&&(ne.lastBufferedRequest=null)}ne.bufferedRequest=fe,ne.bufferProcessing=!1}Ue.prototype._write=function(Re,ne,fe){fe(new je("_write()"))},Ue.prototype._writev=null,Ue.prototype.end=function(Re,ne,fe){var Ne=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),Ne.corked&&(Ne.corked=1,this.uncork()),Ne.ending||Qe(this,Ne,fe),this},Object.defineProperty(Ue.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function it(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&&Me(Re,fe),ne.prefinished=!0,Re.emit("prefinish"),ot(Re,ne)})}function vt(Re,ne){!ne.prefinished&&!ne.finalCalled&&(typeof Re._final=="function"&&!ne.destroyed?(ne.pendingcb++,ne.finalCalled=!0,x.nextTick(qe,Re,ne)):(ne.prefinished=!0,Re.emit("prefinish")))}function ot(Re,ne){var fe=it(ne);if(fe&&(vt(Re,ne),ne.pendingcb===0&&(ne.finished=!0,Re.emit("finish"),ne.autoDestroy))){var Ne=Re._readableState;(!Ne||Ne.autoDestroy&&Ne.endEmitted)&&Re.destroy()}return fe}function Qe(Re,ne,fe){ne.ending=!0,ot(Re,ne),fe&&(ne.finished?x.nextTick(fe):Re.once("finish",fe)),ne.ended=!0,Re.writable=!1}function Fe(Re,ne,fe){var Ne=Re.entry;for(Re.entry=null;Ne;){var We=Ne.callback;ne.pendingcb--,We(fe),Ne=Ne.next}ne.corkedRequestsFree.next=Re}Object.defineProperty(Ue.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(ne){this._writableState&&(this._writableState.destroyed=ne)}}),Ue.prototype.destroy=he.destroy,Ue.prototype._undestroy=he.undestroy,Ue.prototype._destroy=function(Re,ne){ne(Re)}}).call(this)}).call(this,a("_process"),typeof Lt!="undefined"?Lt: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(a,Te,ge){(function(x){(function(){"use strict";var z;function ie(Se,Ee,Ie){return Ee=oe(Ee),Ee in Se?Object.defineProperty(Se,Ee,{value:Ie,enumerable:!0,configurable:!0,writable:!0}):Se[Ee]=Ie,Se}function oe(Se){var Ee=ee(Se,"string");return typeof Ee=="symbol"?Ee:String(Ee)}function ee(Se,Ee){if(typeof Se!="object"||Se===null)return Se;var Ie=Se[Symbol.toPrimitive];if(Ie!==void 0){var Me=Ie.call(Se,Ee||"default");if(typeof Me!="object")return Me;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ee==="string"?String:Number)(Se)}var ue=a("./end-of-stream"),E=Symbol("lastResolve"),re=Symbol("lastReject"),te=Symbol("error"),se=Symbol("ended"),ae=Symbol("lastPromise"),he=Symbol("handlePromise"),me=Symbol("stream");function ve(Se,Ee){return{value:Se,done:Ee}}function pe(Se){var Ee=Se[E];if(Ee!==null){var Ie=Se[me].read();Ie!==null&&(Se[ae]=null,Se[E]=null,Se[re]=null,Ee(ve(Ie,!1)))}}function be(Se){x.nextTick(pe,Se)}function je(Se,Ee){return function(Ie,Me){Se.then(function(){if(Ee[se]){Ie(ve(void 0,!0));return}Ee[he](Ie,Me)},Me)}}var ke=Object.getPrototypeOf(function(){}),Be=Object.setPrototypeOf((z={get stream(){return this[me]},next:function(){var Ee=this,Ie=this[te];if(Ie!==null)return Promise.reject(Ie);if(this[se])return Promise.resolve(ve(void 0,!0));if(this[me].destroyed)return new Promise(function(Pe,Ue){x.nextTick(function(){Ee[te]?Ue(Ee[te]):Pe(ve(void 0,!0))})});var Me=this[ae],Le;if(Me)Le=new Promise(je(Me,this));else{var Ae=this[me].read();if(Ae!==null)return Promise.resolve(ve(Ae,!1));Le=new Promise(this[he])}return this[ae]=Le,Le}},ie(z,Symbol.asyncIterator,function(){return this}),ie(z,"return",function(){var Ee=this;return new Promise(function(Ie,Me){Ee[me].destroy(null,function(Le){if(Le){Me(Le);return}Ie(ve(void 0,!0))})})}),z),ke),De=function(Ee){var Ie,Me=Object.create(Be,(Ie={},ie(Ie,me,{value:Ee,writable:!0}),ie(Ie,E,{value:null,writable:!0}),ie(Ie,re,{value:null,writable:!0}),ie(Ie,te,{value:null,writable:!0}),ie(Ie,se,{value:Ee._readableState.endEmitted,writable:!0}),ie(Ie,he,{value:function(Ae,Pe){var Ue=Me[me].read();Ue?(Me[ae]=null,Me[E]=null,Me[re]=null,Ae(ve(Ue,!1))):(Me[E]=Ae,Me[re]=Pe)},writable:!0}),Ie));return Me[ae]=null,ue(Ee,function(Le){if(Le&&Le.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Ae=Me[re];Ae!==null&&(Me[ae]=null,Me[E]=null,Me[re]=null,Ae(Le)),Me[te]=Le;return}var Pe=Me[E];Pe!==null&&(Me[ae]=null,Me[E]=null,Me[re]=null,Pe(ve(void 0,!0))),Me[se]=!0}),Ee.on("readable",be.bind(null,Me)),Me};Te.exports=De}).call(this)}).call(this,a("_process"))},{"./end-of-stream":408,_process:467}],406:[function(a,Te,ge){"use strict";function x(pe,be){var je=Object.keys(pe);if(Object.getOwnPropertySymbols){var ke=Object.getOwnPropertySymbols(pe);be&&(ke=ke.filter(function(Be){return Object.getOwnPropertyDescriptor(pe,Be).enumerable})),je.push.apply(je,ke)}return je}function z(pe){for(var be=1;be<arguments.length;be++){var je=arguments[be]!=null?arguments[be]:{};be%2?x(Object(je),!0).forEach(function(ke){ie(pe,ke,je[ke])}):Object.getOwnPropertyDescriptors?Object.defineProperties(pe,Object.getOwnPropertyDescriptors(je)):x(Object(je)).forEach(function(ke){Object.defineProperty(pe,ke,Object.getOwnPropertyDescriptor(je,ke))})}return pe}function ie(pe,be,je){return be=E(be),be in pe?Object.defineProperty(pe,be,{value:je,enumerable:!0,configurable:!0,writable:!0}):pe[be]=je,pe}function oe(pe,be){if(!(pe instanceof be))throw new TypeError("Cannot call a class as a function")}function ee(pe,be){for(var je=0;je<be.length;je++){var ke=be[je];ke.enumerable=ke.enumerable||!1,ke.configurable=!0,"value"in ke&&(ke.writable=!0),Object.defineProperty(pe,E(ke.key),ke)}}function ue(pe,be,je){return be&&ee(pe.prototype,be),je&&ee(pe,je),Object.defineProperty(pe,"prototype",{writable:!1}),pe}function E(pe){var be=re(pe,"string");return typeof be=="symbol"?be:String(be)}function re(pe,be){if(typeof pe!="object"||pe===null)return pe;var je=pe[Symbol.toPrimitive];if(je!==void 0){var ke=je.call(pe,be||"default");if(typeof ke!="object")return ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return(be==="string"?String:Number)(pe)}var te=a("buffer"),se=te.Buffer,ae=a("util"),he=ae.inspect,me=he&&he.custom||"inspect";function ve(pe,be,je){se.prototype.copy.call(pe,be,je)}Te.exports=function(){function pe(){oe(this,pe),this.head=null,this.tail=null,this.length=0}return ue(pe,[{key:"push",value:function(je){var ke={data:je,next:null};this.length>0?this.tail.next=ke:this.head=ke,this.tail=ke,++this.length}},{key:"unshift",value:function(je){var ke={data:je,next:this.head};this.length===0&&(this.tail=ke),this.head=ke,++this.length}},{key:"shift",value:function(){if(this.length!==0){var je=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,je}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(je){if(this.length===0)return"";for(var ke=this.head,Be=""+ke.data;ke=ke.next;)Be+=je+ke.data;return Be}},{key:"concat",value:function(je){if(this.length===0)return se.alloc(0);for(var ke=se.allocUnsafe(je>>>0),Be=this.head,De=0;Be;)ve(Be.data,ke,De),De+=Be.data.length,Be=Be.next;return ke}},{key:"consume",value:function(je,ke){var Be;return je<this.head.data.length?(Be=this.head.data.slice(0,je),this.head.data=this.head.data.slice(je)):je===this.head.data.length?Be=this.shift():Be=ke?this._getString(je):this._getBuffer(je),Be}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(je){var ke=this.head,Be=1,De=ke.data;for(je-=De.length;ke=ke.next;){var Se=ke.data,Ee=je>Se.length?Se.length:je;if(Ee===Se.length?De+=Se:De+=Se.slice(0,je),je-=Ee,je===0){Ee===Se.length?(++Be,ke.next?this.head=ke.next:this.head=this.tail=null):(this.head=ke,ke.data=Se.slice(Ee));break}++Be}return this.length-=Be,De}},{key:"_getBuffer",value:function(je){var ke=se.allocUnsafe(je),Be=this.head,De=1;for(Be.data.copy(ke),je-=Be.data.length;Be=Be.next;){var Se=Be.data,Ee=je>Se.length?Se.length:je;if(Se.copy(ke,ke.length-je,0,Ee),je-=Ee,je===0){Ee===Se.length?(++De,Be.next?this.head=Be.next:this.head=this.tail=null):(this.head=Be,Be.data=Se.slice(Ee));break}++De}return this.length-=De,ke}},{key:me,value:function(je,ke){return he(this,z(z({},ke),{},{depth:0,customInspect:!1}))}}]),pe}()},{buffer:90,util:89}],407:[function(a,Te,ge){(function(x){(function(){"use strict";function z(re,te){var se=this,ae=this._readableState&&this._readableState.destroyed,he=this._writableState&&this._writableState.destroyed;return ae||he?(te?te(re):re&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,x.nextTick(ue,this,re)):x.nextTick(ue,this,re)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(re||null,function(me){!te&&me?se._writableState?se._writableState.errorEmitted?x.nextTick(oe,se):(se._writableState.errorEmitted=!0,x.nextTick(ie,se,me)):x.nextTick(ie,se,me):te?(x.nextTick(oe,se),te(me)):x.nextTick(oe,se)}),this)}function ie(re,te){ue(re,te),oe(re)}function oe(re){re._writableState&&!re._writableState.emitClose||re._readableState&&!re._readableState.emitClose||re.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 ue(re,te){re.emit("error",te)}function E(re,te){var se=re._readableState,ae=re._writableState;se&&se.autoDestroy||ae&&ae.autoDestroy?re.destroy(te):re.emit("error",te)}Te.exports={destroy:z,undestroy:ee,errorOrDestroy:E}}).call(this)}).call(this,a("_process"))},{_process:467}],408:[function(a,Te,ge){"use strict";var x=a("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function z(ue){var E=!1;return function(){if(!E){E=!0;for(var re=arguments.length,te=new Array(re),se=0;se<re;se++)te[se]=arguments[se];ue.apply(this,te)}}}function ie(){}function oe(ue){return ue.setHeader&&typeof ue.abort=="function"}function ee(ue,E,re){if(typeof E=="function")return ee(ue,null,E);E||(E={}),re=z(re||ie);var te=E.readable||E.readable!==!1&&ue.readable,se=E.writable||E.writable!==!1&&ue.writable,ae=function(){ue.writable||me()},he=ue._writableState&&ue._writableState.finished,me=function(){se=!1,he=!0,te||re.call(ue)},ve=ue._readableState&&ue._readableState.endEmitted,pe=function(){te=!1,ve=!0,se||re.call(ue)},be=function(De){re.call(ue,De)},je=function(){var De;if(te&&!ve)return(!ue._readableState||!ue._readableState.ended)&&(De=new x),re.call(ue,De);if(se&&!he)return(!ue._writableState||!ue._writableState.ended)&&(De=new x),re.call(ue,De)},ke=function(){ue.req.on("finish",me)};return oe(ue)?(ue.on("complete",me),ue.on("abort",je),ue.req?ke():ue.on("request",ke)):se&&!ue._writableState&&(ue.on("end",ae),ue.on("close",ae)),ue.on("end",pe),ue.on("finish",me),E.error!==!1&&ue.on("error",be),ue.on("close",je),function(){ue.removeListener("complete",me),ue.removeListener("abort",je),ue.removeListener("request",ke),ue.req&&ue.req.removeListener("finish",me),ue.removeListener("end",ae),ue.removeListener("close",ae),ue.removeListener("finish",me),ue.removeListener("end",pe),ue.removeListener("error",be),ue.removeListener("close",je)}}Te.exports=ee},{"../../../errors":399}],409:[function(a,Te,ge){Te.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(a,Te,ge){"use strict";var x;function z(me){var ve=!1;return function(){ve||(ve=!0,me.apply(void 0,arguments))}}var ie=a("../../../errors").codes,oe=ie.ERR_MISSING_ARGS,ee=ie.ERR_STREAM_DESTROYED;function ue(me){if(me)throw me}function E(me){return me.setHeader&&typeof me.abort=="function"}function re(me,ve,pe,be){be=z(be);var je=!1;me.on("close",function(){je=!0}),x===void 0&&(x=a("./end-of-stream")),x(me,{readable:ve,writable:pe},function(Be){if(Be)return be(Be);je=!0,be()});var ke=!1;return function(Be){if(!je&&!ke){if(ke=!0,E(me))return me.abort();if(typeof me.destroy=="function")return me.destroy();be(Be||new ee("pipe"))}}}function te(me){me()}function se(me,ve){return me.pipe(ve)}function ae(me){return!me.length||typeof me[me.length-1]!="function"?ue:me.pop()}function he(){for(var me=arguments.length,ve=new Array(me),pe=0;pe<me;pe++)ve[pe]=arguments[pe];var be=ae(ve);if(Array.isArray(ve[0])&&(ve=ve[0]),ve.length<2)throw new oe("streams");var je,ke=ve.map(function(Be,De){var Se=De<ve.length-1,Ee=De>0;return re(Be,Se,Ee,function(Ie){je||(je=Ie),Ie&&ke.forEach(te),!Se&&(ke.forEach(te),be(je))})});return ve.reduce(se)}Te.exports=he},{"../../../errors":399,"./end-of-stream":408}],411:[function(a,Te,ge){"use strict";var x=a("../../../errors").codes.ERR_INVALID_OPT_VALUE;function z(oe,ee,ue){return oe.highWaterMark!=null?oe.highWaterMark:ee?oe[ue]:null}function ie(oe,ee,ue,E){var re=z(ee,E,ue);if(re!=null){if(!(isFinite(re)&&Math.floor(re)===re)||re<0){var te=E?ue:"highWaterMark";throw new x(te,re)}return Math.floor(re)}return oe.objectMode?16:16*1024}Te.exports={getHighWaterMark:ie}},{"../../../errors":399}],412:[function(a,Te,ge){arguments[4][393][0].apply(ge,arguments)},{dup:393,events:344}],413:[function(a,Te,ge){"use strict";var x=a("safe-buffer").Buffer,z=x.isEncoding||function(ke){switch(ke=""+ke,ke&&ke.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ie(ke){if(!ke)return"utf8";for(var Be;;)switch(ke){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 ke;default:if(Be)return;ke=(""+ke).toLowerCase(),Be=!0}}function oe(ke){var Be=ie(ke);if(typeof Be!="string"&&(x.isEncoding===z||!z(ke)))throw new Error("Unknown encoding: "+ke);return Be||ke}ge.StringDecoder=ee;function ee(ke){this.encoding=oe(ke);var Be;switch(this.encoding){case"utf16le":this.text=he,this.end=me,Be=4;break;case"utf8":this.fillLast=te,Be=4;break;case"base64":this.text=ve,this.end=pe,Be=3;break;default:this.write=be,this.end=je;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=x.allocUnsafe(Be)}ee.prototype.write=function(ke){if(ke.length===0)return"";var Be,De;if(this.lastNeed){if(Be=this.fillLast(ke),Be===void 0)return"";De=this.lastNeed,this.lastNeed=0}else De=0;return De<ke.length?Be?Be+this.text(ke,De):this.text(ke,De):Be||""},ee.prototype.end=ae,ee.prototype.text=se,ee.prototype.fillLast=function(ke){if(this.lastNeed<=ke.length)return ke.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);ke.copy(this.lastChar,this.lastTotal-this.lastNeed,0,ke.length),this.lastNeed-=ke.length};function ue(ke){return ke<=127?0:ke>>5===6?2:ke>>4===14?3:ke>>3===30?4:ke>>6===2?-1:-2}function E(ke,Be,De){var Se=Be.length-1;if(Se<De)return 0;var Ee=ue(Be[Se]);return Ee>=0?(Ee>0&&(ke.lastNeed=Ee-1),Ee):--Se<De||Ee===-2?0:(Ee=ue(Be[Se]),Ee>=0?(Ee>0&&(ke.lastNeed=Ee-2),Ee):--Se<De||Ee===-2?0:(Ee=ue(Be[Se]),Ee>=0?(Ee>0&&(Ee===2?Ee=0:ke.lastNeed=Ee-3),Ee):0))}function re(ke,Be,De){if((Be[0]&192)!==128)return ke.lastNeed=0,"\uFFFD";if(ke.lastNeed>1&&Be.length>1){if((Be[1]&192)!==128)return ke.lastNeed=1,"\uFFFD";if(ke.lastNeed>2&&Be.length>2&&(Be[2]&192)!==128)return ke.lastNeed=2,"\uFFFD"}}function te(ke){var Be=this.lastTotal-this.lastNeed,De=re(this,ke,Be);if(De!==void 0)return De;if(this.lastNeed<=ke.length)return ke.copy(this.lastChar,Be,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);ke.copy(this.lastChar,Be,0,ke.length),this.lastNeed-=ke.length}function se(ke,Be){var De=E(this,ke,Be);if(!this.lastNeed)return ke.toString("utf8",Be);this.lastTotal=De;var Se=ke.length-(De-this.lastNeed);return ke.copy(this.lastChar,0,Se),ke.toString("utf8",Be,Se)}function ae(ke){var Be=ke&&ke.length?this.write(ke):"";return this.lastNeed?Be+"\uFFFD":Be}function he(ke,Be){if((ke.length-Be)%2===0){var De=ke.toString("utf16le",Be);if(De){var Se=De.charCodeAt(De.length-1);if(Se>=55296&&Se<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=ke[ke.length-2],this.lastChar[1]=ke[ke.length-1],De.slice(0,-1)}return De}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=ke[ke.length-1],ke.toString("utf16le",Be,ke.length-1)}function me(ke){var Be=ke&&ke.length?this.write(ke):"";if(this.lastNeed){var De=this.lastTotal-this.lastNeed;return Be+this.lastChar.toString("utf16le",0,De)}return Be}function ve(ke,Be){var De=(ke.length-Be)%3;return De===0?ke.toString("base64",Be):(this.lastNeed=3-De,this.lastTotal=3,De===1?this.lastChar[0]=ke[ke.length-1]:(this.lastChar[0]=ke[ke.length-2],this.lastChar[1]=ke[ke.length-1]),ke.toString("base64",Be,ke.length-De))}function pe(ke){var Be=ke&&ke.length?this.write(ke):"";return this.lastNeed?Be+this.lastChar.toString("base64",0,3-this.lastNeed):Be}function be(ke){return ke.toString(this.encoding)}function je(ke){return ke&&ke.length?this.write(ke):""}},{"safe-buffer":396}],414:[function(a,Te,ge){(function(x,z){(function(){var ie=a("process/browser.js").nextTick,oe=Function.prototype.apply,ee=Array.prototype.slice,ue={},E=0;ge.setTimeout=function(){return new re(oe.call(setTimeout,window,arguments),clearTimeout)},ge.setInterval=function(){return new re(oe.call(setInterval,window,arguments),clearInterval)},ge.clearTimeout=ge.clearInterval=function(te){te.close()};function re(te,se){this._id=te,this._clearFn=se}re.prototype.unref=re.prototype.ref=function(){},re.prototype.close=function(){this._clearFn.call(window,this._id)},ge.enroll=function(te,se){clearTimeout(te._idleTimeoutId),te._idleTimeout=se},ge.unenroll=function(te){clearTimeout(te._idleTimeoutId),te._idleTimeout=-1},ge._unrefActive=ge.active=function(te){clearTimeout(te._idleTimeoutId);var se=te._idleTimeout;se>=0&&(te._idleTimeoutId=setTimeout(function(){te._onTimeout&&te._onTimeout()},se))},ge.setImmediate=typeof x=="function"?x:function(te){var se=E++,ae=arguments.length<2?!1:ee.call(arguments,1);return ue[se]=!0,ie(function(){ue[se]&&(ae?te.apply(null,ae):te.call(null),ge.clearImmediate(se))}),se},ge.clearImmediate=typeof z=="function"?z:function(te){delete ue[te]}}).call(this)}).call(this,a("timers").setImmediate,a("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(a,Te,ge){var x=a("buffer").Buffer;Te.exports=function(z){if(z instanceof Uint8Array){if(z.byteOffset===0&&z.byteLength===z.buffer.byteLength)return z.buffer;if(typeof z.buffer.slice=="function")return z.buffer.slice(z.byteOffset,z.byteOffset+z.byteLength)}if(x.isBuffer(z)){for(var ie=new Uint8Array(z.length),oe=z.length,ee=0;ee<oe;ee++)ie[ee]=z[ee];return ie.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(a,Te,ge){(function(x){(function(){Te.exports=z;function z(oe,ee){if(ie("noDeprecation"))return oe;var ue=!1;function E(){if(!ue){if(ie("throwDeprecation"))throw new Error(ee);ie("traceDeprecation")?console.trace(ee):console.warn(ee),ue=!0}return oe.apply(this,arguments)}return E}function ie(oe){try{if(!x.localStorage)return!1}catch(ue){return!1}var ee=x.localStorage[oe];return ee==null?!1:String(ee).toLowerCase()==="true"}}).call(this)}).call(this,typeof Lt!="undefined"?Lt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(a,Te,ge){arguments[4][84][0].apply(ge,arguments)},{dup:84}],418:[function(a,Te,ge){"use strict";var x=a("is-arguments"),z=a("is-generator-function"),ie=a("which-typed-array"),oe=a("is-typed-array");function ee(Ze){return Ze.call.bind(Ze)}var ue=typeof BigInt!="undefined",E=typeof Symbol!="undefined",re=ee(Object.prototype.toString),te=ee(Number.prototype.valueOf),se=ee(String.prototype.valueOf),ae=ee(Boolean.prototype.valueOf);if(ue)var he=ee(BigInt.prototype.valueOf);if(E)var me=ee(Symbol.prototype.valueOf);function ve(Ze,Xe){if(typeof Ze!="object")return!1;try{return Xe(Ze),!0}catch(at){return!1}}ge.isArgumentsObject=x,ge.isGeneratorFunction=z,ge.isTypedArray=oe;function pe(Ze){return typeof Promise!="undefined"&&Ze instanceof Promise||Ze!==null&&typeof Ze=="object"&&typeof Ze.then=="function"&&typeof Ze.catch=="function"}ge.isPromise=pe;function be(Ze){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(Ze):oe(Ze)||Ge(Ze)}ge.isArrayBufferView=be;function je(Ze){return ie(Ze)==="Uint8Array"}ge.isUint8Array=je;function ke(Ze){return ie(Ze)==="Uint8ClampedArray"}ge.isUint8ClampedArray=ke;function Be(Ze){return ie(Ze)==="Uint16Array"}ge.isUint16Array=Be;function De(Ze){return ie(Ze)==="Uint32Array"}ge.isUint32Array=De;function Se(Ze){return ie(Ze)==="Int8Array"}ge.isInt8Array=Se;function Ee(Ze){return ie(Ze)==="Int16Array"}ge.isInt16Array=Ee;function Ie(Ze){return ie(Ze)==="Int32Array"}ge.isInt32Array=Ie;function Me(Ze){return ie(Ze)==="Float32Array"}ge.isFloat32Array=Me;function Le(Ze){return ie(Ze)==="Float64Array"}ge.isFloat64Array=Le;function Ae(Ze){return ie(Ze)==="BigInt64Array"}ge.isBigInt64Array=Ae;function Pe(Ze){return ie(Ze)==="BigUint64Array"}ge.isBigUint64Array=Pe;function Ue(Ze){return re(Ze)==="[object Map]"}Ue.working=typeof Map!="undefined"&&Ue(new Map);function He(Ze){return typeof Map=="undefined"?!1:Ue.working?Ue(Ze):Ze instanceof Map}ge.isMap=He;function Je(Ze){return re(Ze)==="[object Set]"}Je.working=typeof Set!="undefined"&&Je(new Set);function st(Ze){return typeof Set=="undefined"?!1:Je.working?Je(Ze):Ze instanceof Set}ge.isSet=st;function _e(Ze){return re(Ze)==="[object WeakMap]"}_e.working=typeof WeakMap!="undefined"&&_e(new WeakMap);function Ke(Ze){return typeof WeakMap=="undefined"?!1:_e.working?_e(Ze):Ze instanceof WeakMap}ge.isWeakMap=Ke;function nt(Ze){return re(Ze)==="[object WeakSet]"}nt.working=typeof WeakSet!="undefined"&&nt(new WeakSet);function rt(Ze){return nt(Ze)}ge.isWeakSet=rt;function et(Ze){return re(Ze)==="[object ArrayBuffer]"}et.working=typeof ArrayBuffer!="undefined"&&et(new ArrayBuffer);function Ve(Ze){return typeof ArrayBuffer=="undefined"?!1:et.working?et(Ze):Ze instanceof ArrayBuffer}ge.isArrayBuffer=Ve;function Ye(Ze){return re(Ze)==="[object DataView]"}Ye.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&Ye(new DataView(new ArrayBuffer(1),0,1));function Ge(Ze){return typeof DataView=="undefined"?!1:Ye.working?Ye(Ze):Ze instanceof DataView}ge.isDataView=Ge;var it=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function qe(Ze){return re(Ze)==="[object SharedArrayBuffer]"}function vt(Ze){return typeof it=="undefined"?!1:(typeof qe.working=="undefined"&&(qe.working=qe(new it)),qe.working?qe(Ze):Ze instanceof it)}ge.isSharedArrayBuffer=vt;function ot(Ze){return re(Ze)==="[object AsyncFunction]"}ge.isAsyncFunction=ot;function Qe(Ze){return re(Ze)==="[object Map Iterator]"}ge.isMapIterator=Qe;function Fe(Ze){return re(Ze)==="[object Set Iterator]"}ge.isSetIterator=Fe;function Re(Ze){return re(Ze)==="[object Generator]"}ge.isGeneratorObject=Re;function ne(Ze){return re(Ze)==="[object WebAssembly.Module]"}ge.isWebAssemblyCompiledModule=ne;function fe(Ze){return ve(Ze,te)}ge.isNumberObject=fe;function Ne(Ze){return ve(Ze,se)}ge.isStringObject=Ne;function We(Ze){return ve(Ze,ae)}ge.isBooleanObject=We;function we(Ze){return ue&&ve(Ze,he)}ge.isBigIntObject=we;function ye(Ze){return E&&ve(Ze,me)}ge.isSymbolObject=ye;function Oe(Ze){return fe(Ze)||Ne(Ze)||We(Ze)||we(Ze)||ye(Ze)}ge.isBoxedPrimitive=Oe;function $e(Ze){return typeof Uint8Array!="undefined"&&(Ve(Ze)||vt(Ze))}ge.isAnyArrayBuffer=$e,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Ze){Object.defineProperty(ge,Ze,{enumerable:!1,value:function(){throw new Error(Ze+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(a,Te,ge){(function(x){(function(){var z=Object.getOwnPropertyDescriptors||function(it){for(var qe=Object.keys(it),vt={},ot=0;ot<qe.length;ot++)vt[qe[ot]]=Object.getOwnPropertyDescriptor(it,qe[ot]);return vt},ie=/%[sdj%]/g;ge.format=function(Ge){if(!Ee(Ge)){for(var it=[],qe=0;qe<arguments.length;qe++)it.push(E(arguments[qe]));return it.join(" ")}for(var qe=1,vt=arguments,ot=vt.length,Qe=String(Ge).replace(ie,function(Re){if(Re==="%%")return"%";if(qe>=ot)return Re;switch(Re){case"%s":return String(vt[qe++]);case"%d":return Number(vt[qe++]);case"%j":try{return JSON.stringify(vt[qe++])}catch(ne){return"[Circular]"}default:return Re}}),Fe=vt[qe];qe<ot;Fe=vt[++qe])Be(Fe)||!Ae(Fe)?Qe+=" "+Fe:Qe+=" "+E(Fe);return Qe},ge.deprecate=function(Ge,it){if(typeof x!="undefined"&&x.noDeprecation===!0)return Ge;if(typeof x=="undefined")return function(){return ge.deprecate(Ge,it).apply(this,arguments)};var qe=!1;function vt(){if(!qe){if(x.throwDeprecation)throw new Error(it);x.traceDeprecation?console.trace(it):console.error(it),qe=!0}return Ge.apply(this,arguments)}return vt};var oe={},ee=/^$/;if(x.env.NODE_DEBUG){var ue=x.env.NODE_DEBUG;ue=ue.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ee=new RegExp("^"+ue+"$","i")}ge.debuglog=function(Ge){if(Ge=Ge.toUpperCase(),!oe[Ge])if(ee.test(Ge)){var it=x.pid;oe[Ge]=function(){var qe=ge.format.apply(ge,arguments);console.error("%s %d: %s",Ge,it,qe)}}else oe[Ge]=function(){};return oe[Ge]};function E(Ge,it){var qe={seen:[],stylize:te};return arguments.length>=3&&(qe.depth=arguments[2]),arguments.length>=4&&(qe.colors=arguments[3]),ke(it)?qe.showHidden=it:it&&ge._extend(qe,it),Me(qe.showHidden)&&(qe.showHidden=!1),Me(qe.depth)&&(qe.depth=2),Me(qe.colors)&&(qe.colors=!1),Me(qe.customInspect)&&(qe.customInspect=!0),qe.colors&&(qe.stylize=re),ae(qe,Ge,qe.depth)}ge.inspect=E,E.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]},E.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function re(Ge,it){var qe=E.styles[it];return qe?"\x1B["+E.colors[qe][0]+"m"+Ge+"\x1B["+E.colors[qe][1]+"m":Ge}function te(Ge,it){return Ge}function se(Ge){var it={};return Ge.forEach(function(qe,vt){it[qe]=!0}),it}function ae(Ge,it,qe){if(Ge.customInspect&&it&&He(it.inspect)&&it.inspect!==ge.inspect&&!(it.constructor&&it.constructor.prototype===it)){var vt=it.inspect(qe,Ge);return Ee(vt)||(vt=ae(Ge,vt,qe)),vt}var ot=he(Ge,it);if(ot)return ot;var Qe=Object.keys(it),Fe=se(Qe);if(Ge.showHidden&&(Qe=Object.getOwnPropertyNames(it)),Ue(it)&&(Qe.indexOf("message")>=0||Qe.indexOf("description")>=0))return me(it);if(Qe.length===0){if(He(it)){var Re=it.name?": "+it.name:"";return Ge.stylize("[Function"+Re+"]","special")}if(Le(it))return Ge.stylize(RegExp.prototype.toString.call(it),"regexp");if(Pe(it))return Ge.stylize(Date.prototype.toString.call(it),"date");if(Ue(it))return me(it)}var ne="",fe=!1,Ne=["{","}"];if(je(it)&&(fe=!0,Ne=["[","]"]),He(it)){var We=it.name?": "+it.name:"";ne=" [Function"+We+"]"}if(Le(it)&&(ne=" "+RegExp.prototype.toString.call(it)),Pe(it)&&(ne=" "+Date.prototype.toUTCString.call(it)),Ue(it)&&(ne=" "+me(it)),Qe.length===0&&(!fe||it.length==0))return Ne[0]+ne+Ne[1];if(qe<0)return Le(it)?Ge.stylize(RegExp.prototype.toString.call(it),"regexp"):Ge.stylize("[Object]","special");Ge.seen.push(it);var we;return fe?we=ve(Ge,it,qe,Fe,Qe):we=Qe.map(function(ye){return pe(Ge,it,qe,Fe,ye,fe)}),Ge.seen.pop(),be(we,ne,Ne)}function he(Ge,it){if(Me(it))return Ge.stylize("undefined","undefined");if(Ee(it)){var qe="'"+JSON.stringify(it).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Ge.stylize(qe,"string")}if(Se(it))return Ge.stylize(""+it,"number");if(ke(it))return Ge.stylize(""+it,"boolean");if(Be(it))return Ge.stylize("null","null")}function me(Ge){return"["+Error.prototype.toString.call(Ge)+"]"}function ve(Ge,it,qe,vt,ot){for(var Qe=[],Fe=0,Re=it.length;Fe<Re;++Fe)rt(it,String(Fe))?Qe.push(pe(Ge,it,qe,vt,String(Fe),!0)):Qe.push("");return ot.forEach(function(ne){ne.match(/^\d+$/)||Qe.push(pe(Ge,it,qe,vt,ne,!0))}),Qe}function pe(Ge,it,qe,vt,ot,Qe){var Fe,Re,ne;if(ne=Object.getOwnPropertyDescriptor(it,ot)||{value:it[ot]},ne.get?ne.set?Re=Ge.stylize("[Getter/Setter]","special"):Re=Ge.stylize("[Getter]","special"):ne.set&&(Re=Ge.stylize("[Setter]","special")),rt(vt,ot)||(Fe="["+ot+"]"),Re||(Ge.seen.indexOf(ne.value)<0?(Be(qe)?Re=ae(Ge,ne.value,null):Re=ae(Ge,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=Ge.stylize("[Circular]","special")),Me(Fe)){if(Qe&&ot.match(/^\d+$/))return Re;Fe=JSON.stringify(""+ot),Fe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Fe=Fe.slice(1,-1),Fe=Ge.stylize(Fe,"name")):(Fe=Fe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Fe=Ge.stylize(Fe,"string"))}return Fe+": "+Re}function be(Ge,it,qe){var vt=0,ot=Ge.reduce(function(Qe,Fe){return vt++,Fe.indexOf(`
`)>=0&&vt++,Qe+Fe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ot>60?qe[0]+(it===""?"":it+`
`)+" "+Ge.join(`,
`)+" "+qe[1]:qe[0]+it+" "+Ge.join(", ")+" "+qe[1]}ge.types=a("./support/types");function je(Ge){return Array.isArray(Ge)}ge.isArray=je;function ke(Ge){return typeof Ge=="boolean"}ge.isBoolean=ke;function Be(Ge){return Ge===null}ge.isNull=Be;function De(Ge){return Ge==null}ge.isNullOrUndefined=De;function Se(Ge){return typeof Ge=="number"}ge.isNumber=Se;function Ee(Ge){return typeof Ge=="string"}ge.isString=Ee;function Ie(Ge){return typeof Ge=="symbol"}ge.isSymbol=Ie;function Me(Ge){return Ge===void 0}ge.isUndefined=Me;function Le(Ge){return Ae(Ge)&&st(Ge)==="[object RegExp]"}ge.isRegExp=Le,ge.types.isRegExp=Le;function Ae(Ge){return typeof Ge=="object"&&Ge!==null}ge.isObject=Ae;function Pe(Ge){return Ae(Ge)&&st(Ge)==="[object Date]"}ge.isDate=Pe,ge.types.isDate=Pe;function Ue(Ge){return Ae(Ge)&&(st(Ge)==="[object Error]"||Ge instanceof Error)}ge.isError=Ue,ge.types.isNativeError=Ue;function He(Ge){return typeof Ge=="function"}ge.isFunction=He;function Je(Ge){return Ge===null||typeof Ge=="boolean"||typeof Ge=="number"||typeof Ge=="string"||typeof Ge=="symbol"||typeof Ge=="undefined"}ge.isPrimitive=Je,ge.isBuffer=a("./support/isBuffer");function st(Ge){return Object.prototype.toString.call(Ge)}function _e(Ge){return Ge<10?"0"+Ge.toString(10):Ge.toString(10)}var Ke=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function nt(){var Ge=new Date,it=[_e(Ge.getHours()),_e(Ge.getMinutes()),_e(Ge.getSeconds())].join(":");return[Ge.getDate(),Ke[Ge.getMonth()],it].join(" ")}ge.log=function(){console.log("%s - %s",nt(),ge.format.apply(ge,arguments))},ge.inherits=a("inherits"),ge._extend=function(Ge,it){if(!it||!Ae(it))return Ge;for(var qe=Object.keys(it),vt=qe.length;vt--;)Ge[qe[vt]]=it[qe[vt]];return Ge};function rt(Ge,it){return Object.prototype.hasOwnProperty.call(Ge,it)}var et=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ge.promisify=function(it){if(typeof it!="function")throw new TypeError('The "original" argument must be of type Function');if(et&&it[et]){var qe=it[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 vt,ot,Qe=new Promise(function(ne,fe){vt=ne,ot=fe}),Fe=[],Re=0;Re<arguments.length;Re++)Fe.push(arguments[Re]);Fe.push(function(ne,fe){ne?ot(ne):vt(fe)});try{it.apply(this,Fe)}catch(ne){ot(ne)}return Qe}return Object.setPrototypeOf(qe,Object.getPrototypeOf(it)),et&&Object.defineProperty(qe,et,{value:qe,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(qe,z(it))},ge.promisify.custom=et;function Ve(Ge,it){if(!Ge){var qe=new Error("Promise was rejected with a falsy value");qe.reason=Ge,Ge=qe}return it(Ge)}function Ye(Ge){if(typeof Ge!="function")throw new TypeError('The "original" argument must be of type Function');function it(){for(var qe=[],vt=0;vt<arguments.length;vt++)qe.push(arguments[vt]);var ot=qe.pop();if(typeof ot!="function")throw new TypeError("The last argument must be of type Function");var Qe=this,Fe=function(){return ot.apply(Qe,arguments)};Ge.apply(this,qe).then(function(Re){x.nextTick(Fe.bind(null,null,Re))},function(Re){x.nextTick(Ve.bind(null,Re,Fe))})}return Object.setPrototypeOf(it,Object.getPrototypeOf(Ge)),Object.defineProperties(it,z(Ge)),it}ge.callbackify=Ye}).call(this)}).call(this,a("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(a,Te,ge){(function(x){(function(){"use strict";var z=a("for-each"),ie=a("available-typed-arrays"),oe=a("call-bind"),ee=a("call-bind/callBound"),ue=a("gopd"),E=ee("Object.prototype.toString"),re=a("has-tostringtag/shams")(),te=typeof globalThis=="undefined"?x:globalThis,se=ie(),ae=ee("String.prototype.slice"),he=Object.getPrototypeOf,me=ee("Array.prototype.indexOf",!0)||function(ke,Be){for(var De=0;De<ke.length;De+=1)if(ke[De]===Be)return De;return-1},ve={__proto__:null};re&&ue&&he?z(se,function(je){var ke=new te[je];if(Symbol.toStringTag in ke){var Be=he(ke),De=ue(Be,Symbol.toStringTag);if(!De){var Se=he(Be);De=ue(Se,Symbol.toStringTag)}ve["$"+je]=oe(De.get)}}):z(se,function(je){var ke=new te[je];ve["$"+je]=oe(ke.slice)});var pe=function(ke){var Be=!1;return z(ve,function(De,Se){if(!Be)try{"$"+De(ke)===Se&&(Be=ae(Se,1))}catch(Ee){}}),Be},be=function(ke){var Be=!1;return z(ve,function(De,Se){if(!Be)try{De(ke),Be=ae(Se,1)}catch(Ee){}}),Be};Te.exports=function(ke){if(!ke||typeof ke!="object")return!1;if(!re){var Be=ae(E(ke),8,-1);return me(se,Be)>-1?Be:Be!=="Object"?!1:be(ke)}return ue?pe(ke):null}}).call(this)}).call(this,typeof Lt!="undefined"?Lt: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(a,Te,ge){(function(){"use strict";ge.stripBOM=function(x){return x[0]==="\uFEFF"?x.substring(1):x}}).call(this)},{}],422:[function(a,Te,ge){(function(){"use strict";var x,z,ie,oe,ee,ue={}.hasOwnProperty;x=a("xmlbuilder"),z=a("./defaults").defaults,oe=function(E){return typeof E=="string"&&(E.indexOf("&")>=0||E.indexOf(">")>=0||E.indexOf("<")>=0)},ee=function(E){return"<![CDATA["+ie(E)+"]]>"},ie=function(E){return E.replace("]]>","]]]]><![CDATA[>")},ge.Builder=function(){function E(re){var te,se,ae;this.options={},se=z["0.2"];for(te in se)ue.call(se,te)&&(ae=se[te],this.options[te]=ae);for(te in re)ue.call(re,te)&&(ae=re[te],this.options[te]=ae)}return E.prototype.buildObject=function(re){var te,se,ae,he,me;return te=this.options.attrkey,se=this.options.charkey,Object.keys(re).length===1&&this.options.rootName===z["0.2"].rootName?(me=Object.keys(re)[0],re=re[me]):me=this.options.rootName,ae=function(ve){return function(pe,be){var je,ke,Be,De,Se,Ee;if(typeof be!="object")ve.options.cdata&&oe(be)?pe.raw(ee(be)):pe.txt(be);else if(Array.isArray(be)){for(De in be)if(ue.call(be,De)){ke=be[De];for(Se in ke)Be=ke[Se],pe=ae(pe.ele(Se),Be).up()}}else for(Se in be)if(ue.call(be,Se))if(ke=be[Se],Se===te){if(typeof ke=="object")for(je in ke)Ee=ke[je],pe=pe.att(je,Ee)}else if(Se===se)ve.options.cdata&&oe(ke)?pe=pe.raw(ee(ke)):pe=pe.txt(ke);else if(Array.isArray(ke))for(De in ke)ue.call(ke,De)&&(Be=ke[De],typeof Be=="string"?ve.options.cdata&&oe(Be)?pe=pe.ele(Se).raw(ee(Be)).up():pe=pe.ele(Se,Be).up():pe=ae(pe.ele(Se),Be).up());else typeof ke=="object"?pe=ae(pe.ele(Se),ke).up():typeof ke=="string"&&ve.options.cdata&&oe(ke)?pe=pe.ele(Se).raw(ee(ke)).up():(ke==null&&(ke=""),pe=pe.ele(Se,ke.toString()).up());return pe}}(this),he=x.create(me,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ae(he,re).end(this.options.renderOpts)},E}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(a,Te,ge){(function(){ge.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(a,Te,ge){(function(){"use strict";var x,z,ie,oe,ee,ue,E,re,te,se=function(me,ve){return function(){return me.apply(ve,arguments)}},ae=function(me,ve){for(var pe in ve)he.call(ve,pe)&&(me[pe]=ve[pe]);function be(){this.constructor=me}return be.prototype=ve.prototype,me.prototype=new be,me.__super__=ve.prototype,me},he={}.hasOwnProperty;re=a("sax"),oe=a("events"),x=a("./bom"),E=a("./processors"),te=a("timers").setImmediate,z=a("./defaults").defaults,ee=function(me){return typeof me=="object"&&me!=null&&Object.keys(me).length===0},ue=function(me,ve,pe){var be,je,ke;for(be=0,je=me.length;be<je;be++)ke=me[be],ve=ke(ve,pe);return ve},ie=function(me,ve,pe){var be;return be=Object.create(null),be.value=pe,be.writable=!0,be.enumerable=!0,be.configurable=!0,Object.defineProperty(me,ve,be)},ge.Parser=function(me){ae(ve,me);function ve(pe){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 be,je,ke;if(!(this instanceof ge.Parser))return new ge.Parser(pe);this.options={},je=z["0.2"];for(be in je)he.call(je,be)&&(ke=je[be],this.options[be]=ke);for(be in pe)he.call(pe,be)&&(ke=pe[be],this.options[be]=ke);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(E.normalize)),this.reset()}return ve.prototype.processAsync=function(){var pe,be;try{return this.remaining.length<=this.options.chunkSize?(pe=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(pe),this.saxParser.close()):(pe=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(pe),te(this.processAsync))}catch(je){if(be=je,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(be)}},ve.prototype.assignOrPush=function(pe,be,je){return be in pe?(pe[be]instanceof Array||ie(pe,be,[pe[be]]),pe[be].push(je)):this.options.explicitArray?ie(pe,be,[je]):ie(pe,be,je)},ve.prototype.reset=function(){var pe,be,je,ke;return this.removeAllListeners(),this.saxParser=re.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,ke=[],pe=this.options.attrkey,be=this.options.charkey,this.saxParser.onopentag=function(Be){return function(De){var Se,Ee,Ie,Me,Le;if(Ie={},Ie[be]="",!Be.options.ignoreAttrs){Le=De.attributes;for(Se in Le)he.call(Le,Se)&&(!(pe in Ie)&&!Be.options.mergeAttrs&&(Ie[pe]={}),Ee=Be.options.attrValueProcessors?ue(Be.options.attrValueProcessors,De.attributes[Se],Se):De.attributes[Se],Me=Be.options.attrNameProcessors?ue(Be.options.attrNameProcessors,Se):Se,Be.options.mergeAttrs?Be.assignOrPush(Ie,Me,Ee):ie(Ie[pe],Me,Ee))}return Ie["#name"]=Be.options.tagNameProcessors?ue(Be.options.tagNameProcessors,De.name):De.name,Be.options.xmlns&&(Ie[Be.options.xmlnskey]={uri:De.uri,local:De.local}),ke.push(Ie)}}(this),this.saxParser.onclosetag=function(Be){return function(){var De,Se,Ee,Ie,Me,Le,Ae,Pe,Ue,He;if(Le=ke.pop(),Me=Le["#name"],(!Be.options.explicitChildren||!Be.options.preserveChildrenOrder)&&delete Le["#name"],Le.cdata===!0&&(De=Le.cdata,delete Le.cdata),Ue=ke[ke.length-1],Le[be].match(/^\s*$/)&&!De?(Se=Le[be],delete Le[be]):(Be.options.trim&&(Le[be]=Le[be].trim()),Be.options.normalize&&(Le[be]=Le[be].replace(/\s{2,}/g," ").trim()),Le[be]=Be.options.valueProcessors?ue(Be.options.valueProcessors,Le[be],Me):Le[be],Object.keys(Le).length===1&&be in Le&&!Be.EXPLICIT_CHARKEY&&(Le=Le[be])),ee(Le)&&(typeof Be.options.emptyTag=="function"?Le=Be.options.emptyTag():Le=Be.options.emptyTag!==""?Be.options.emptyTag:Se),Be.options.validator!=null&&(He="/"+function(){var Je,st,_e;for(_e=[],Je=0,st=ke.length;Je<st;Je++)Ie=ke[Je],_e.push(Ie["#name"]);return _e}().concat(Me).join("/"),function(){var Je;try{return Le=Be.options.validator(He,Ue&&Ue[Me],Le)}catch(st){return Je=st,Be.emit("error",Je)}}()),Be.options.explicitChildren&&!Be.options.mergeAttrs&&typeof Le=="object"){if(!Be.options.preserveChildrenOrder)Ie={},Be.options.attrkey in Le&&(Ie[Be.options.attrkey]=Le[Be.options.attrkey],delete Le[Be.options.attrkey]),!Be.options.charsAsChildren&&Be.options.charkey in Le&&(Ie[Be.options.charkey]=Le[Be.options.charkey],delete Le[Be.options.charkey]),Object.getOwnPropertyNames(Le).length>0&&(Ie[Be.options.childkey]=Le),Le=Ie;else if(Ue){Ue[Be.options.childkey]=Ue[Be.options.childkey]||[],Ae={};for(Ee in Le)he.call(Le,Ee)&&ie(Ae,Ee,Le[Ee]);Ue[Be.options.childkey].push(Ae),delete Le["#name"],Object.keys(Le).length===1&&be in Le&&!Be.EXPLICIT_CHARKEY&&(Le=Le[be])}}return ke.length>0?Be.assignOrPush(Ue,Me,Le):(Be.options.explicitRoot&&(Pe=Le,Le={},ie(Le,Me,Pe)),Be.resultObject=Le,Be.saxParser.ended=!0,Be.emit("end",Be.resultObject))}}(this),je=function(Be){return function(De){var Se,Ee;if(Ee=ke[ke.length-1],Ee)return Ee[be]+=De,Be.options.explicitChildren&&Be.options.preserveChildrenOrder&&Be.options.charsAsChildren&&(Be.options.includeWhiteChars||De.replace(/\\n/g,"").trim()!=="")&&(Ee[Be.options.childkey]=Ee[Be.options.childkey]||[],Se={"#name":"__text__"},Se[be]=De,Be.options.normalize&&(Se[be]=Se[be].replace(/\s{2,}/g," ").trim()),Ee[Be.options.childkey].push(Se)),Ee}}(this),this.saxParser.ontext=je,this.saxParser.oncdata=function(Be){return function(De){var Se;if(Se=je(De),Se)return Se.cdata=!0}}(this)},ve.prototype.parseString=function(pe,be){var je;be!=null&&typeof be=="function"&&(this.on("end",function(ke){return this.reset(),be(null,ke)}),this.on("error",function(ke){return this.reset(),be(ke)}));try{return pe=pe.toString(),pe.trim()===""?(this.emit("end",null),!0):(pe=x.stripBOM(pe),this.options.async?(this.remaining=pe,te(this.processAsync),this.saxParser):this.saxParser.write(pe).close())}catch(ke){if(je=ke,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw je}else return this.emit("error",je),this.saxParser.errThrown=!0}},ve.prototype.parseStringPromise=function(pe){return new Promise(function(be){return function(je,ke){return be.parseString(pe,function(Be,De){return Be?ke(Be):je(De)})}}(this))},ve}(oe),ge.parseString=function(me,ve,pe){var be,je,ke;return pe!=null?(typeof pe=="function"&&(be=pe),typeof ve=="object"&&(je=ve)):(typeof ve=="function"&&(be=ve),je={}),ke=new ge.Parser(je),ke.parseString(me,be)},ge.parseStringPromise=function(me,ve){var pe,be;return typeof ve=="object"&&(pe=ve),be=new ge.Parser(pe),be.parseStringPromise(me)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(a,Te,ge){(function(){"use strict";var x;x=new RegExp(/(?!xmlns)^.*:/),ge.normalize=function(z){return z.toLowerCase()},ge.firstCharLowerCase=function(z){return z.charAt(0).toLowerCase()+z.slice(1)},ge.stripPrefix=function(z){return z.replace(x,"")},ge.parseNumbers=function(z){return isNaN(z)||(z=z%1===0?parseInt(z,10):parseFloat(z)),z},ge.parseBooleans=function(z){return/^(?:true|false)$/i.test(z)&&(z=z.toLowerCase()==="true"),z}}).call(this)},{}],426:[function(a,Te,ge){(function(){"use strict";var x,z,ie,oe,ee=function(E,re){for(var te in re)ue.call(re,te)&&(E[te]=re[te]);function se(){this.constructor=E}return se.prototype=re.prototype,E.prototype=new se,E.__super__=re.prototype,E},ue={}.hasOwnProperty;z=a("./defaults"),x=a("./builder"),ie=a("./parser"),oe=a("./processors"),ge.defaults=z.defaults,ge.processors=oe,ge.ValidationError=function(E){ee(re,E);function re(te){this.message=te}return re}(Error),ge.Builder=x.Builder,ge.Parser=ie.Parser,ge.parseString=ie.parseString,ge.parseStringPromise=ie.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(a,Te,ge){(function(){Te.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(a,Te,ge){(function(){Te.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(a,Te,ge){(function(){var x,z,ie,oe,ee,ue,E,re=[].slice,te={}.hasOwnProperty;x=function(){var se,ae,he,me,ve,pe;if(pe=arguments[0],ve=2<=arguments.length?re.call(arguments,1):[],ee(Object.assign))Object.assign.apply(null,arguments);else for(se=0,he=ve.length;se<he;se++)if(me=ve[se],me!=null)for(ae in me)te.call(me,ae)&&(pe[ae]=me[ae]);return pe},ee=function(se){return!!se&&Object.prototype.toString.call(se)==="[object Function]"},ue=function(se){var ae;return!!se&&((ae=typeof se)=="function"||ae==="object")},ie=function(se){return ee(Array.isArray)?Array.isArray(se):Object.prototype.toString.call(se)==="[object Array]"},oe=function(se){var ae;if(ie(se))return!se.length;for(ae in se)if(te.call(se,ae))return!1;return!0},E=function(se){var ae,he;return ue(se)&&(he=Object.getPrototypeOf(se))&&(ae=he.constructor)&&typeof ae=="function"&&ae instanceof ae&&Function.prototype.toString.call(ae)===Function.prototype.toString.call(Object)},z=function(se){return ee(se.valueOf)?se.valueOf():se},Te.exports.assign=x,Te.exports.isFunction=ee,Te.exports.isObject=ue,Te.exports.isArray=ie,Te.exports.isEmpty=oe,Te.exports.isPlainObject=E,Te.exports.getValue=z}).call(this)},{}],430:[function(a,Te,ge){(function(){Te.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(a,Te,ge){(function(){var x,z,ie;x=a("./NodeType"),ie=a("./XMLNode"),Te.exports=z=function(){function oe(ee,ue,E){if(this.parent=ee,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),ue==null)throw new Error("Missing attribute name. "+this.debugInfo(ue));this.name=this.stringify.name(ue),this.value=this.stringify.attValue(E),this.type=x.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(a,Te,ge){(function(){var x,z,ie,oe=function(ue,E){for(var re in E)ee.call(E,re)&&(ue[re]=E[re]);function te(){this.constructor=ue}return te.prototype=E.prototype,ue.prototype=new te,ue.__super__=E.prototype,ue},ee={}.hasOwnProperty;x=a("./NodeType"),ie=a("./XMLCharacterData"),Te.exports=z=function(ue){oe(E,ue);function E(re,te){if(E.__super__.constructor.call(this,re),te==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=x.CData,this.value=this.stringify.cdata(te)}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(re){return this.options.writer.cdata(this,this.options.writer.filterOptions(re))},E}(ie)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(a,Te,ge){(function(){var x,z,ie=function(ee,ue){for(var E in ue)oe.call(ue,E)&&(ee[E]=ue[E]);function re(){this.constructor=ee}return re.prototype=ue.prototype,ee.prototype=new re,ee.__super__=ue.prototype,ee},oe={}.hasOwnProperty;z=a("./XMLNode"),Te.exports=x=function(ee){ie(ue,ee);function ue(E){ue.__super__.constructor.call(this,E),this.value=""}return Object.defineProperty(ue.prototype,"data",{get:function(){return this.value},set:function(E){return this.value=E||""}}),Object.defineProperty(ue.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(ue.prototype,"textContent",{get:function(){return this.value},set:function(E){return this.value=E||""}}),ue.prototype.clone=function(){return Object.create(this)},ue.prototype.substringData=function(E,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ue.prototype.appendData=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},ue.prototype.insertData=function(E,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ue.prototype.deleteData=function(E,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ue.prototype.replaceData=function(E,re,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},ue.prototype.isEqualNode=function(E){return!(!ue.__super__.isEqualNode.apply(this,arguments).isEqualNode(E)||E.data!==this.data)},ue}(z)}).call(this)},{"./XMLNode":450}],434:[function(a,Te,ge){(function(){var x,z,ie,oe=function(ue,E){for(var re in E)ee.call(E,re)&&(ue[re]=E[re]);function te(){this.constructor=ue}return te.prototype=E.prototype,ue.prototype=new te,ue.__super__=E.prototype,ue},ee={}.hasOwnProperty;x=a("./NodeType"),z=a("./XMLCharacterData"),Te.exports=ie=function(ue){oe(E,ue);function E(re,te){if(E.__super__.constructor.call(this,re),te==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=x.Comment,this.value=this.stringify.comment(te)}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(re){return this.options.writer.comment(this,this.options.writer.filterOptions(re))},E}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(a,Te,ge){(function(){var x,z,ie;z=a("./XMLDOMErrorHandler"),ie=a("./XMLDOMStringList"),Te.exports=x=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 z,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=ee=Object.create(this.defaultParams)}return Object.defineProperty(oe.prototype,"parameterNames",{get:function(){return new ie(Object.keys(this.defaultParams))}}),oe.prototype.getParameter=function(ee){return this.params.hasOwnProperty(ee)?this.params[ee]:null},oe.prototype.canSetParameter=function(ee,ue){return!0},oe.prototype.setParameter=function(ee,ue){return ue!=null?this.params[ee]=ue:delete this.params[ee]},oe}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(a,Te,ge){(function(){var x;Te.exports=x=function(){function z(){}return z.prototype.handleError=function(ie){throw new Error(ie)},z}()}).call(this)},{}],437:[function(a,Te,ge){(function(){var x;Te.exports=x=function(){function z(){}return z.prototype.hasFeature=function(ie,oe){return!0},z.prototype.createDocumentType=function(ie,oe,ee){throw new Error("This DOM method is not implemented.")},z.prototype.createDocument=function(ie,oe,ee){throw new Error("This DOM method is not implemented.")},z.prototype.createHTMLDocument=function(ie){throw new Error("This DOM method is not implemented.")},z.prototype.getFeature=function(ie,oe){throw new Error("This DOM method is not implemented.")},z}()}).call(this)},{}],438:[function(a,Te,ge){(function(){var x;Te.exports=x=function(){function z(ie){this.arr=ie||[]}return Object.defineProperty(z.prototype,"length",{get:function(){return this.arr.length}}),z.prototype.item=function(ie){return this.arr[ie]||null},z.prototype.contains=function(ie){return this.arr.indexOf(ie)!==-1},z}()}).call(this)},{}],439:[function(a,Te,ge){(function(){var x,z,ie,oe=function(ue,E){for(var re in E)ee.call(E,re)&&(ue[re]=E[re]);function te(){this.constructor=ue}return te.prototype=E.prototype,ue.prototype=new te,ue.__super__=E.prototype,ue},ee={}.hasOwnProperty;ie=a("./XMLNode"),x=a("./NodeType"),Te.exports=z=function(ue){oe(E,ue);function E(re,te,se,ae,he,me){if(E.__super__.constructor.call(this,re),te==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(se==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(te));if(!ae)throw new Error("Missing DTD attribute type. "+this.debugInfo(te));if(!he)throw new Error("Missing DTD attribute default. "+this.debugInfo(te));if(he.indexOf("#")!==0&&(he="#"+he),!he.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(te));if(me&&!he.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(te));this.elementName=this.stringify.name(te),this.type=x.AttributeDeclaration,this.attributeName=this.stringify.name(se),this.attributeType=this.stringify.dtdAttType(ae),me&&(this.defaultValue=this.stringify.dtdAttDefault(me)),this.defaultValueType=he}return E.prototype.toString=function(re){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(re))},E}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(a,Te,ge){(function(){var x,z,ie,oe=function(ue,E){for(var re in E)ee.call(E,re)&&(ue[re]=E[re]);function te(){this.constructor=ue}return te.prototype=E.prototype,ue.prototype=new te,ue.__super__=E.prototype,ue},ee={}.hasOwnProperty;ie=a("./XMLNode"),x=a("./NodeType"),Te.exports=z=function(ue){oe(E,ue);function E(re,te,se){if(E.__super__.constructor.call(this,re),te==null)throw new Error("Missing DTD element name. "+this.debugInfo());se||(se="(#PCDATA)"),Array.isArray(se)&&(se="("+se.join(",")+")"),this.name=this.stringify.name(te),this.type=x.ElementDeclaration,this.value=this.stringify.dtdElementValue(se)}return E.prototype.toString=function(re){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(re))},E}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(a,Te,ge){(function(){var x,z,ie,oe,ee=function(E,re){for(var te in re)ue.call(re,te)&&(E[te]=re[te]);function se(){this.constructor=E}return se.prototype=re.prototype,E.prototype=new se,E.__super__=re.prototype,E},ue={}.hasOwnProperty;oe=a("./Utility").isObject,ie=a("./XMLNode"),x=a("./NodeType"),Te.exports=z=function(E){ee(re,E);function re(te,se,ae,he){if(re.__super__.constructor.call(this,te),ae==null)throw new Error("Missing DTD entity name. "+this.debugInfo(ae));if(he==null)throw new Error("Missing DTD entity value. "+this.debugInfo(ae));if(this.pe=!!se,this.name=this.stringify.name(ae),this.type=x.EntityDeclaration,!oe(he))this.value=this.stringify.dtdEntityValue(he),this.internal=!0;else{if(!he.pubID&&!he.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ae));if(he.pubID&&!he.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ae));if(this.internal=!1,he.pubID!=null&&(this.pubID=this.stringify.dtdPubID(he.pubID)),he.sysID!=null&&(this.sysID=this.stringify.dtdSysID(he.sysID)),he.nData!=null&&(this.nData=this.stringify.dtdNData(he.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ae))}}return Object.defineProperty(re.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(re.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(re.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(re.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(re.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(re.prototype,"xmlVersion",{get:function(){return null}}),re.prototype.toString=function(te){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(te))},re}(ie)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(a,Te,ge){(function(){var x,z,ie,oe=function(ue,E){for(var re in E)ee.call(E,re)&&(ue[re]=E[re]);function te(){this.constructor=ue}return te.prototype=E.prototype,ue.prototype=new te,ue.__super__=E.prototype,ue},ee={}.hasOwnProperty;ie=a("./XMLNode"),x=a("./NodeType"),Te.exports=z=function(ue){oe(E,ue);function E(re,te,se){if(E.__super__.constructor.call(this,re),te==null)throw new Error("Missing DTD notation name. "+this.debugInfo(te));if(!se.pubID&&!se.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(te));this.name=this.stringify.name(te),this.type=x.NotationDeclaration,se.pubID!=null&&(this.pubID=this.stringify.dtdPubID(se.pubID)),se.sysID!=null&&(this.sysID=this.stringify.dtdSysID(se.sysID))}return Object.defineProperty(E.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(E.prototype,"systemId",{get:function(){return this.sysID}}),E.prototype.toString=function(re){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(re))},E}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(a,Te,ge){(function(){var x,z,ie,oe,ee=function(E,re){for(var te in re)ue.call(re,te)&&(E[te]=re[te]);function se(){this.constructor=E}return se.prototype=re.prototype,E.prototype=new se,E.__super__=re.prototype,E},ue={}.hasOwnProperty;oe=a("./Utility").isObject,ie=a("./XMLNode"),x=a("./NodeType"),Te.exports=z=function(E){ee(re,E);function re(te,se,ae,he){var me;re.__super__.constructor.call(this,te),oe(se)&&(me=se,se=me.version,ae=me.encoding,he=me.standalone),se||(se="1.0"),this.type=x.Declaration,this.version=this.stringify.xmlVersion(se),ae!=null&&(this.encoding=this.stringify.xmlEncoding(ae)),he!=null&&(this.standalone=this.stringify.xmlStandalone(he))}return re.prototype.toString=function(te){return this.options.writer.declaration(this,this.options.writer.filterOptions(te))},re}(ie)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(a,Te,ge){(function(){var x,z,ie,oe,ee,ue,E,re,te,se=function(he,me){for(var ve in me)ae.call(me,ve)&&(he[ve]=me[ve]);function pe(){this.constructor=he}return pe.prototype=me.prototype,he.prototype=new pe,he.__super__=me.prototype,he},ae={}.hasOwnProperty;te=a("./Utility").isObject,re=a("./XMLNode"),x=a("./NodeType"),z=a("./XMLDTDAttList"),oe=a("./XMLDTDEntity"),ie=a("./XMLDTDElement"),ee=a("./XMLDTDNotation"),E=a("./XMLNamedNodeMap"),Te.exports=ue=function(he){se(me,he);function me(ve,pe,be){var je,ke,Be,De,Se,Ee;if(me.__super__.constructor.call(this,ve),this.type=x.DocType,ve.children){for(De=ve.children,ke=0,Be=De.length;ke<Be;ke++)if(je=De[ke],je.type===x.Element){this.name=je.name;break}}this.documentObject=ve,te(pe)&&(Se=pe,pe=Se.pubID,be=Se.sysID),be==null&&(Ee=[pe,be],be=Ee[0],pe=Ee[1]),pe!=null&&(this.pubID=this.stringify.dtdPubID(pe)),be!=null&&(this.sysID=this.stringify.dtdSysID(be))}return Object.defineProperty(me.prototype,"entities",{get:function(){var ve,pe,be,je,ke;for(je={},ke=this.children,pe=0,be=ke.length;pe<be;pe++)ve=ke[pe],ve.type===x.EntityDeclaration&&!ve.pe&&(je[ve.name]=ve);return new E(je)}}),Object.defineProperty(me.prototype,"notations",{get:function(){var ve,pe,be,je,ke;for(je={},ke=this.children,pe=0,be=ke.length;pe<be;pe++)ve=ke[pe],ve.type===x.NotationDeclaration&&(je[ve.name]=ve);return new E(je)}}),Object.defineProperty(me.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(me.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(me.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),me.prototype.element=function(ve,pe){var be;return be=new ie(this,ve,pe),this.children.push(be),this},me.prototype.attList=function(ve,pe,be,je,ke){var Be;return Be=new z(this,ve,pe,be,je,ke),this.children.push(Be),this},me.prototype.entity=function(ve,pe){var be;return be=new oe(this,!1,ve,pe),this.children.push(be),this},me.prototype.pEntity=function(ve,pe){var be;return be=new oe(this,!0,ve,pe),this.children.push(be),this},me.prototype.notation=function(ve,pe){var be;return be=new ee(this,ve,pe),this.children.push(be),this},me.prototype.toString=function(ve){return this.options.writer.docType(this,this.options.writer.filterOptions(ve))},me.prototype.ele=function(ve,pe){return this.element(ve,pe)},me.prototype.att=function(ve,pe,be,je,ke){return this.attList(ve,pe,be,je,ke)},me.prototype.ent=function(ve,pe){return this.entity(ve,pe)},me.prototype.pent=function(ve,pe){return this.pEntity(ve,pe)},me.prototype.not=function(ve,pe){return this.notation(ve,pe)},me.prototype.up=function(){return this.root()||this.documentObject},me.prototype.isEqualNode=function(ve){return!(!me.__super__.isEqualNode.apply(this,arguments).isEqualNode(ve)||ve.name!==this.name||ve.publicId!==this.publicId||ve.systemId!==this.systemId)},me}(re)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(a,Te,ge){(function(){var x,z,ie,oe,ee,ue,E,re,te=function(ae,he){for(var me in he)se.call(he,me)&&(ae[me]=he[me]);function ve(){this.constructor=ae}return ve.prototype=he.prototype,ae.prototype=new ve,ae.__super__=he.prototype,ae},se={}.hasOwnProperty;re=a("./Utility").isPlainObject,ie=a("./XMLDOMImplementation"),z=a("./XMLDOMConfiguration"),ee=a("./XMLNode"),x=a("./NodeType"),E=a("./XMLStringifier"),ue=a("./XMLStringWriter"),Te.exports=oe=function(ae){te(he,ae);function he(me){he.__super__.constructor.call(this,null),this.name="#document",this.type=x.Document,this.documentURI=null,this.domConfig=new z,me||(me={}),me.writer||(me.writer=new ue),this.options=me,this.stringify=new E(me)}return Object.defineProperty(he.prototype,"implementation",{value:new ie}),Object.defineProperty(he.prototype,"doctype",{get:function(){var me,ve,pe,be;for(be=this.children,ve=0,pe=be.length;ve<pe;ve++)if(me=be[ve],me.type===x.DocType)return me;return null}}),Object.defineProperty(he.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(he.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(he.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(he.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===x.Declaration?this.children[0].encoding:null}}),Object.defineProperty(he.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===x.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(he.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===x.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(he.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(he.prototype,"origin",{get:function(){return null}}),Object.defineProperty(he.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(he.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(he.prototype,"contentType",{get:function(){return null}}),he.prototype.end=function(me){var ve;return ve={},me?re(me)&&(ve=me,me=this.options.writer):me=this.options.writer,me.document(this,me.filterOptions(ve))},he.prototype.toString=function(me){return this.options.writer.document(this,this.options.writer.filterOptions(me))},he.prototype.createElement=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createTextNode=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createComment=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createCDATASection=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createProcessingInstruction=function(me,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createAttribute=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createEntityReference=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagName=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.importNode=function(me,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createElementNS=function(me,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createAttributeNS=function(me,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagNameNS=function(me,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementById=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.adoptNode=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.renameNode=function(me,ve,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByClassName=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createEvent=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createNodeIterator=function(me,ve,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createTreeWalker=function(me,ve,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(a,Te,ge){(function(){var x,z,ie,oe,ee,ue,E,re,te,se,ae,he,me,ve,pe,be,je,ke,Be,De,Se,Ee,Ie,Me,Le={}.hasOwnProperty;Me=a("./Utility"),Ee=Me.isObject,Se=Me.isFunction,Ie=Me.isPlainObject,De=Me.getValue,x=a("./NodeType"),he=a("./XMLDocument"),ve=a("./XMLElement"),oe=a("./XMLCData"),ee=a("./XMLComment"),be=a("./XMLRaw"),Be=a("./XMLText"),pe=a("./XMLProcessingInstruction"),se=a("./XMLDeclaration"),ae=a("./XMLDocType"),ue=a("./XMLDTDAttList"),re=a("./XMLDTDEntity"),E=a("./XMLDTDElement"),te=a("./XMLDTDNotation"),ie=a("./XMLAttribute"),ke=a("./XMLStringifier"),je=a("./XMLStringWriter"),z=a("./WriterState"),Te.exports=me=function(){function Ae(Pe,Ue,He){var Je;this.name="?xml",this.type=x.Document,Pe||(Pe={}),Je={},Pe.writer?Ie(Pe.writer)&&(Je=Pe.writer,Pe.writer=new je):Pe.writer=new je,this.options=Pe,this.writer=Pe.writer,this.writerOptions=this.writer.filterOptions(Je),this.stringify=new ke(Pe),this.onDataCallback=Ue||function(){},this.onEndCallback=He||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Ae.prototype.createChildNode=function(Pe){var Ue,He,Je,st,_e,Ke,nt,rt;switch(Pe.type){case x.CData:this.cdata(Pe.value);break;case x.Comment:this.comment(Pe.value);break;case x.Element:Je={},nt=Pe.attribs;for(He in nt)Le.call(nt,He)&&(Ue=nt[He],Je[He]=Ue.value);this.node(Pe.name,Je);break;case x.Dummy:this.dummy();break;case x.Raw:this.raw(Pe.value);break;case x.Text:this.text(Pe.value);break;case x.ProcessingInstruction:this.instruction(Pe.target,Pe.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+Pe.constructor.name)}for(rt=Pe.children,_e=0,Ke=rt.length;_e<Ke;_e++)st=rt[_e],this.createChildNode(st),st.type===x.Element&&this.up();return this},Ae.prototype.dummy=function(){return this},Ae.prototype.node=function(Pe,Ue,He){var Je;if(Pe==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(Pe));return this.openCurrent(),Pe=De(Pe),Ue==null&&(Ue={}),Ue=De(Ue),Ee(Ue)||(Je=[Ue,He],He=Je[0],Ue=Je[1]),this.currentNode=new ve(this,Pe,Ue),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,He!=null&&this.text(He),this},Ae.prototype.element=function(Pe,Ue,He){var Je,st,_e,Ke,nt,rt;if(this.currentNode&&this.currentNode.type===x.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(Pe)||Ee(Pe)||Se(Pe))for(Ke=this.options.noValidation,this.options.noValidation=!0,rt=new he(this.options).element("TEMP_ROOT"),rt.element(Pe),this.options.noValidation=Ke,nt=rt.children,st=0,_e=nt.length;st<_e;st++)Je=nt[st],this.createChildNode(Je),Je.type===x.Element&&this.up();else this.node(Pe,Ue,He);return this},Ae.prototype.attribute=function(Pe,Ue){var He,Je;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(Pe));if(Pe!=null&&(Pe=De(Pe)),Ee(Pe))for(He in Pe)Le.call(Pe,He)&&(Je=Pe[He],this.attribute(He,Je));else Se(Ue)&&(Ue=Ue.apply()),this.options.keepNullAttributes&&Ue==null?this.currentNode.attribs[Pe]=new ie(this,Pe,""):Ue!=null&&(this.currentNode.attribs[Pe]=new ie(this,Pe,Ue));return this},Ae.prototype.text=function(Pe){var Ue;return this.openCurrent(),Ue=new Be(this,Pe),this.onData(this.writer.text(Ue,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.cdata=function(Pe){var Ue;return this.openCurrent(),Ue=new oe(this,Pe),this.onData(this.writer.cdata(Ue,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.comment=function(Pe){var Ue;return this.openCurrent(),Ue=new ee(this,Pe),this.onData(this.writer.comment(Ue,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.raw=function(Pe){var Ue;return this.openCurrent(),Ue=new be(this,Pe),this.onData(this.writer.raw(Ue,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.instruction=function(Pe,Ue){var He,Je,st,_e,Ke;if(this.openCurrent(),Pe!=null&&(Pe=De(Pe)),Ue!=null&&(Ue=De(Ue)),Array.isArray(Pe))for(He=0,_e=Pe.length;He<_e;He++)Je=Pe[He],this.instruction(Je);else if(Ee(Pe))for(Je in Pe)Le.call(Pe,Je)&&(st=Pe[Je],this.instruction(Je,st));else Se(Ue)&&(Ue=Ue.apply()),Ke=new pe(this,Pe,Ue),this.onData(this.writer.processingInstruction(Ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},Ae.prototype.declaration=function(Pe,Ue,He){var Je;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return Je=new se(this,Pe,Ue,He),this.onData(this.writer.declaration(Je,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.doctype=function(Pe,Ue,He){if(this.openCurrent(),Pe==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 ae(this,Ue,He),this.currentNode.rootNodeName=Pe,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Ae.prototype.dtdElement=function(Pe,Ue){var He;return this.openCurrent(),He=new E(this,Pe,Ue),this.onData(this.writer.dtdElement(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.attList=function(Pe,Ue,He,Je,st){var _e;return this.openCurrent(),_e=new ue(this,Pe,Ue,He,Je,st),this.onData(this.writer.dtdAttList(_e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.entity=function(Pe,Ue){var He;return this.openCurrent(),He=new re(this,!1,Pe,Ue),this.onData(this.writer.dtdEntity(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.pEntity=function(Pe,Ue){var He;return this.openCurrent(),He=new re(this,!0,Pe,Ue),this.onData(this.writer.dtdEntity(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.notation=function(Pe,Ue){var He;return this.openCurrent(),He=new te(this,Pe,Ue),this.onData(this.writer.dtdNotation(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.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},Ae.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Ae.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Ae.prototype.openNode=function(Pe){var Ue,He,Je,st;if(!Pe.isOpen){if(!this.root&&this.currentLevel===0&&Pe.type===x.Element&&(this.root=Pe),He="",Pe.type===x.Element){this.writerOptions.state=z.OpenTag,He=this.writer.indent(Pe,this.writerOptions,this.currentLevel)+"<"+Pe.name,st=Pe.attribs;for(Je in st)Le.call(st,Je)&&(Ue=st[Je],He+=this.writer.attribute(Ue,this.writerOptions,this.currentLevel));He+=(Pe.children?">":"/>")+this.writer.endline(Pe,this.writerOptions,this.currentLevel),this.writerOptions.state=z.InsideTag}else this.writerOptions.state=z.OpenTag,He=this.writer.indent(Pe,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+Pe.rootNodeName,Pe.pubID&&Pe.sysID?He+=' PUBLIC "'+Pe.pubID+'" "'+Pe.sysID+'"':Pe.sysID&&(He+=' SYSTEM "'+Pe.sysID+'"'),Pe.children?(He+=" [",this.writerOptions.state=z.InsideTag):(this.writerOptions.state=z.CloseTag,He+=">"),He+=this.writer.endline(Pe,this.writerOptions,this.currentLevel);return this.onData(He,this.currentLevel),Pe.isOpen=!0}},Ae.prototype.closeNode=function(Pe){var Ue;if(!Pe.isClosed)return Ue="",this.writerOptions.state=z.CloseTag,Pe.type===x.Element?Ue=this.writer.indent(Pe,this.writerOptions,this.currentLevel)+"</"+Pe.name+">"+this.writer.endline(Pe,this.writerOptions,this.currentLevel):Ue=this.writer.indent(Pe,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Pe,this.writerOptions,this.currentLevel),this.writerOptions.state=z.None,this.onData(Ue,this.currentLevel),Pe.isClosed=!0},Ae.prototype.onData=function(Pe,Ue){return this.documentStarted=!0,this.onDataCallback(Pe,Ue+1)},Ae.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Ae.prototype.debugInfo=function(Pe){return Pe==null?"":"node: <"+Pe+">"},Ae.prototype.ele=function(){return this.element.apply(this,arguments)},Ae.prototype.nod=function(Pe,Ue,He){return this.node(Pe,Ue,He)},Ae.prototype.txt=function(Pe){return this.text(Pe)},Ae.prototype.dat=function(Pe){return this.cdata(Pe)},Ae.prototype.com=function(Pe){return this.comment(Pe)},Ae.prototype.ins=function(Pe,Ue){return this.instruction(Pe,Ue)},Ae.prototype.dec=function(Pe,Ue,He){return this.declaration(Pe,Ue,He)},Ae.prototype.dtd=function(Pe,Ue,He){return this.doctype(Pe,Ue,He)},Ae.prototype.e=function(Pe,Ue,He){return this.element(Pe,Ue,He)},Ae.prototype.n=function(Pe,Ue,He){return this.node(Pe,Ue,He)},Ae.prototype.t=function(Pe){return this.text(Pe)},Ae.prototype.d=function(Pe){return this.cdata(Pe)},Ae.prototype.c=function(Pe){return this.comment(Pe)},Ae.prototype.r=function(Pe){return this.raw(Pe)},Ae.prototype.i=function(Pe,Ue){return this.instruction(Pe,Ue)},Ae.prototype.att=function(){return this.currentNode&&this.currentNode.type===x.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ae.prototype.a=function(){return this.currentNode&&this.currentNode.type===x.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ae.prototype.ent=function(Pe,Ue){return this.entity(Pe,Ue)},Ae.prototype.pent=function(Pe,Ue){return this.pEntity(Pe,Ue)},Ae.prototype.not=function(Pe,Ue){return this.notation(Pe,Ue)},Ae}()}).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(a,Te,ge){(function(){var x,z,ie,oe=function(ue,E){for(var re in E)ee.call(E,re)&&(ue[re]=E[re]);function te(){this.constructor=ue}return te.prototype=E.prototype,ue.prototype=new te,ue.__super__=E.prototype,ue},ee={}.hasOwnProperty;ie=a("./XMLNode"),x=a("./NodeType"),Te.exports=z=function(ue){oe(E,ue);function E(re){E.__super__.constructor.call(this,re),this.type=x.Dummy}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(re){return""},E}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(a,Te,ge){(function(){var x,z,ie,oe,ee,ue,E,re,te,se=function(he,me){for(var ve in me)ae.call(me,ve)&&(he[ve]=me[ve]);function pe(){this.constructor=he}return pe.prototype=me.prototype,he.prototype=new pe,he.__super__=me.prototype,he},ae={}.hasOwnProperty;te=a("./Utility"),re=te.isObject,E=te.isFunction,ue=te.getValue,ee=a("./XMLNode"),x=a("./NodeType"),z=a("./XMLAttribute"),oe=a("./XMLNamedNodeMap"),Te.exports=ie=function(he){se(me,he);function me(ve,pe,be){var je,ke,Be,De;if(me.__super__.constructor.call(this,ve),pe==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(pe),this.type=x.Element,this.attribs={},this.schemaTypeInfo=null,be!=null&&this.attribute(be),ve.type===x.Document&&(this.isRoot=!0,this.documentObject=ve,ve.rootObject=this,ve.children)){for(De=ve.children,ke=0,Be=De.length;ke<Be;ke++)if(je=De[ke],je.type===x.DocType){je.name=this.name;break}}}return Object.defineProperty(me.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(me.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(me.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(me.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(me.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(me.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(me.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(me.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new oe(this.attribs)),this.attributeMap}}),me.prototype.clone=function(){var ve,pe,be,je;be=Object.create(this),be.isRoot&&(be.documentObject=null),be.attribs={},je=this.attribs;for(pe in je)ae.call(je,pe)&&(ve=je[pe],be.attribs[pe]=ve.clone());return be.children=[],this.children.forEach(function(ke){var Be;return Be=ke.clone(),Be.parent=be,be.children.push(Be)}),be},me.prototype.attribute=function(ve,pe){var be,je;if(ve!=null&&(ve=ue(ve)),re(ve))for(be in ve)ae.call(ve,be)&&(je=ve[be],this.attribute(be,je));else E(pe)&&(pe=pe.apply()),this.options.keepNullAttributes&&pe==null?this.attribs[ve]=new z(this,ve,""):pe!=null&&(this.attribs[ve]=new z(this,ve,pe));return this},me.prototype.removeAttribute=function(ve){var pe,be,je;if(ve==null)throw new Error("Missing attribute name. "+this.debugInfo());if(ve=ue(ve),Array.isArray(ve))for(be=0,je=ve.length;be<je;be++)pe=ve[be],delete this.attribs[pe];else delete this.attribs[ve];return this},me.prototype.toString=function(ve){return this.options.writer.element(this,this.options.writer.filterOptions(ve))},me.prototype.att=function(ve,pe){return this.attribute(ve,pe)},me.prototype.a=function(ve,pe){return this.attribute(ve,pe)},me.prototype.getAttribute=function(ve){return this.attribs.hasOwnProperty(ve)?this.attribs[ve].value:null},me.prototype.setAttribute=function(ve,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.getAttributeNode=function(ve){return this.attribs.hasOwnProperty(ve)?this.attribs[ve]:null},me.prototype.setAttributeNode=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.removeAttributeNode=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.getElementsByTagName=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.getAttributeNS=function(ve,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.setAttributeNS=function(ve,pe,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.removeAttributeNS=function(ve,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.getAttributeNodeNS=function(ve,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.setAttributeNodeNS=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.getElementsByTagNameNS=function(ve,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.hasAttribute=function(ve){return this.attribs.hasOwnProperty(ve)},me.prototype.hasAttributeNS=function(ve,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.setIdAttribute=function(ve,pe){return this.attribs.hasOwnProperty(ve)?this.attribs[ve].isId:pe},me.prototype.setIdAttributeNS=function(ve,pe,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.setIdAttributeNode=function(ve,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.getElementsByTagName=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.getElementsByTagNameNS=function(ve,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.getElementsByClassName=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.isEqualNode=function(ve){var pe,be,je;if(!me.__super__.isEqualNode.apply(this,arguments).isEqualNode(ve)||ve.namespaceURI!==this.namespaceURI||ve.prefix!==this.prefix||ve.localName!==this.localName||ve.attribs.length!==this.attribs.length)return!1;for(pe=be=0,je=this.attribs.length-1;0<=je?be<=je:be>=je;pe=0<=je?++be:--be)if(!this.attribs[pe].isEqualNode(ve.attribs[pe]))return!1;return!0},me}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(a,Te,ge){(function(){var x;Te.exports=x=function(){function z(ie){this.nodes=ie}return Object.defineProperty(z.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),z.prototype.clone=function(){return this.nodes=null},z.prototype.getNamedItem=function(ie){return this.nodes[ie]},z.prototype.setNamedItem=function(ie){var oe;return oe=this.nodes[ie.nodeName],this.nodes[ie.nodeName]=ie,oe||null},z.prototype.removeNamedItem=function(ie){var oe;return oe=this.nodes[ie],delete this.nodes[ie],oe||null},z.prototype.item=function(ie){return this.nodes[Object.keys(this.nodes)[ie]]||null},z.prototype.getNamedItemNS=function(ie,oe){throw new Error("This DOM method is not implemented.")},z.prototype.setNamedItemNS=function(ie){throw new Error("This DOM method is not implemented.")},z.prototype.removeNamedItemNS=function(ie,oe){throw new Error("This DOM method is not implemented.")},z}()}).call(this)},{}],450:[function(a,Te,ge){(function(){var x,z,ie,oe,ee,ue,E,re,te,se,ae,he,me,ve,pe,be,je,ke,Be,De={}.hasOwnProperty;Be=a("./Utility"),ke=Be.isObject,je=Be.isFunction,be=Be.isEmpty,pe=Be.getValue,re=null,ie=null,oe=null,ee=null,ue=null,me=null,ve=null,he=null,E=null,z=null,ae=null,te=null,x=null,Te.exports=se=function(){function Se(Ee){this.parent=Ee,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,re||(re=a("./XMLElement"),ie=a("./XMLCData"),oe=a("./XMLComment"),ee=a("./XMLDeclaration"),ue=a("./XMLDocType"),me=a("./XMLRaw"),ve=a("./XMLText"),he=a("./XMLProcessingInstruction"),E=a("./XMLDummy"),z=a("./NodeType"),ae=a("./XMLNodeList"),te=a("./XMLNamedNodeMap"),x=a("./DocumentPosition"))}return Object.defineProperty(Se.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(Se.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(Se.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(Se.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(Se.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new ae(this.children)),this.childNodeList}}),Object.defineProperty(Se.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(Se.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(Se.prototype,"previousSibling",{get:function(){var Ee;return Ee=this.parent.children.indexOf(this),this.parent.children[Ee-1]||null}}),Object.defineProperty(Se.prototype,"nextSibling",{get:function(){var Ee;return Ee=this.parent.children.indexOf(this),this.parent.children[Ee+1]||null}}),Object.defineProperty(Se.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(Se.prototype,"textContent",{get:function(){var Ee,Ie,Me,Le,Ae;if(this.nodeType===z.Element||this.nodeType===z.DocumentFragment){for(Ae="",Le=this.children,Ie=0,Me=Le.length;Ie<Me;Ie++)Ee=Le[Ie],Ee.textContent&&(Ae+=Ee.textContent);return Ae}else return null},set:function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Se.prototype.setParent=function(Ee){var Ie,Me,Le,Ae,Pe;for(this.parent=Ee,Ee&&(this.options=Ee.options,this.stringify=Ee.stringify),Ae=this.children,Pe=[],Me=0,Le=Ae.length;Me<Le;Me++)Ie=Ae[Me],Pe.push(Ie.setParent(this));return Pe},Se.prototype.element=function(Ee,Ie,Me){var Le,Ae,Pe,Ue,He,Je,st,_e,Ke,nt,rt;if(Je=null,Ie===null&&Me==null&&(Ke=[{},null],Ie=Ke[0],Me=Ke[1]),Ie==null&&(Ie={}),Ie=pe(Ie),ke(Ie)||(nt=[Ie,Me],Me=nt[0],Ie=nt[1]),Ee!=null&&(Ee=pe(Ee)),Array.isArray(Ee))for(Pe=0,st=Ee.length;Pe<st;Pe++)Ae=Ee[Pe],Je=this.element(Ae);else if(je(Ee))Je=this.element(Ee.apply());else if(ke(Ee)){for(He in Ee)if(De.call(Ee,He))if(rt=Ee[He],je(rt)&&(rt=rt.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&He.indexOf(this.stringify.convertAttKey)===0)Je=this.attribute(He.substr(this.stringify.convertAttKey.length),rt);else if(!this.options.separateArrayItems&&Array.isArray(rt)&&be(rt))Je=this.dummy();else if(ke(rt)&&be(rt))Je=this.element(He);else if(!this.options.keepNullNodes&&rt==null)Je=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(rt))for(Ue=0,_e=rt.length;Ue<_e;Ue++)Ae=rt[Ue],Le={},Le[He]=Ae,Je=this.element(Le);else ke(rt)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&He.indexOf(this.stringify.convertTextKey)===0?Je=this.element(rt):(Je=this.element(He),Je.element(rt)):Je=this.element(He,rt)}else!this.options.keepNullNodes&&Me===null?Je=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Ee.indexOf(this.stringify.convertTextKey)===0?Je=this.text(Me):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&Ee.indexOf(this.stringify.convertCDataKey)===0?Je=this.cdata(Me):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&Ee.indexOf(this.stringify.convertCommentKey)===0?Je=this.comment(Me):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&Ee.indexOf(this.stringify.convertRawKey)===0?Je=this.raw(Me):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&Ee.indexOf(this.stringify.convertPIKey)===0?Je=this.instruction(Ee.substr(this.stringify.convertPIKey.length),Me):Je=this.node(Ee,Ie,Me);if(Je==null)throw new Error("Could not create any elements with: "+Ee+". "+this.debugInfo());return Je},Se.prototype.insertBefore=function(Ee,Ie,Me){var Le,Ae,Pe,Ue,He;if(Ee!=null&&Ee.type)return Pe=Ee,Ue=Ie,Pe.setParent(this),Ue?(Ae=children.indexOf(Ue),He=children.splice(Ae),children.push(Pe),Array.prototype.push.apply(children,He)):children.push(Pe),Pe;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ee));return Ae=this.parent.children.indexOf(this),He=this.parent.children.splice(Ae),Le=this.parent.element(Ee,Ie,Me),Array.prototype.push.apply(this.parent.children,He),Le},Se.prototype.insertAfter=function(Ee,Ie,Me){var Le,Ae,Pe;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ee));return Ae=this.parent.children.indexOf(this),Pe=this.parent.children.splice(Ae+1),Le=this.parent.element(Ee,Ie,Me),Array.prototype.push.apply(this.parent.children,Pe),Le},Se.prototype.remove=function(){var Ee,Ie;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return Ee=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[Ee,Ee-Ee+1].concat(Ie=[])),this.parent},Se.prototype.node=function(Ee,Ie,Me){var Le,Ae;return Ee!=null&&(Ee=pe(Ee)),Ie||(Ie={}),Ie=pe(Ie),ke(Ie)||(Ae=[Ie,Me],Me=Ae[0],Ie=Ae[1]),Le=new re(this,Ee,Ie),Me!=null&&Le.text(Me),this.children.push(Le),Le},Se.prototype.text=function(Ee){var Ie;return ke(Ee)&&this.element(Ee),Ie=new ve(this,Ee),this.children.push(Ie),this},Se.prototype.cdata=function(Ee){var Ie;return Ie=new ie(this,Ee),this.children.push(Ie),this},Se.prototype.comment=function(Ee){var Ie;return Ie=new oe(this,Ee),this.children.push(Ie),this},Se.prototype.commentBefore=function(Ee){var Ie,Me,Le;return Me=this.parent.children.indexOf(this),Le=this.parent.children.splice(Me),Ie=this.parent.comment(Ee),Array.prototype.push.apply(this.parent.children,Le),this},Se.prototype.commentAfter=function(Ee){var Ie,Me,Le;return Me=this.parent.children.indexOf(this),Le=this.parent.children.splice(Me+1),Ie=this.parent.comment(Ee),Array.prototype.push.apply(this.parent.children,Le),this},Se.prototype.raw=function(Ee){var Ie;return Ie=new me(this,Ee),this.children.push(Ie),this},Se.prototype.dummy=function(){var Ee;return Ee=new E(this),Ee},Se.prototype.instruction=function(Ee,Ie){var Me,Le,Ae,Pe,Ue;if(Ee!=null&&(Ee=pe(Ee)),Ie!=null&&(Ie=pe(Ie)),Array.isArray(Ee))for(Pe=0,Ue=Ee.length;Pe<Ue;Pe++)Me=Ee[Pe],this.instruction(Me);else if(ke(Ee))for(Me in Ee)De.call(Ee,Me)&&(Le=Ee[Me],this.instruction(Me,Le));else je(Ie)&&(Ie=Ie.apply()),Ae=new he(this,Ee,Ie),this.children.push(Ae);return this},Se.prototype.instructionBefore=function(Ee,Ie){var Me,Le,Ae;return Le=this.parent.children.indexOf(this),Ae=this.parent.children.splice(Le),Me=this.parent.instruction(Ee,Ie),Array.prototype.push.apply(this.parent.children,Ae),this},Se.prototype.instructionAfter=function(Ee,Ie){var Me,Le,Ae;return Le=this.parent.children.indexOf(this),Ae=this.parent.children.splice(Le+1),Me=this.parent.instruction(Ee,Ie),Array.prototype.push.apply(this.parent.children,Ae),this},Se.prototype.declaration=function(Ee,Ie,Me){var Le,Ae;return Le=this.document(),Ae=new ee(Le,Ee,Ie,Me),Le.children.length===0?Le.children.unshift(Ae):Le.children[0].type===z.Declaration?Le.children[0]=Ae:Le.children.unshift(Ae),Le.root()||Le},Se.prototype.dtd=function(Ee,Ie){var Me,Le,Ae,Pe,Ue,He,Je,st,_e,Ke;for(Le=this.document(),Ae=new ue(Le,Ee,Ie),_e=Le.children,Pe=Ue=0,Je=_e.length;Ue<Je;Pe=++Ue)if(Me=_e[Pe],Me.type===z.DocType)return Le.children[Pe]=Ae,Ae;for(Ke=Le.children,Pe=He=0,st=Ke.length;He<st;Pe=++He)if(Me=Ke[Pe],Me.isRoot)return Le.children.splice(Pe,0,Ae),Ae;return Le.children.push(Ae),Ae},Se.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},Se.prototype.root=function(){var Ee;for(Ee=this;Ee;){if(Ee.type===z.Document)return Ee.rootObject;if(Ee.isRoot)return Ee;Ee=Ee.parent}},Se.prototype.document=function(){var Ee;for(Ee=this;Ee;){if(Ee.type===z.Document)return Ee;Ee=Ee.parent}},Se.prototype.end=function(Ee){return this.document().end(Ee)},Se.prototype.prev=function(){var Ee;if(Ee=this.parent.children.indexOf(this),Ee<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[Ee-1]},Se.prototype.next=function(){var Ee;if(Ee=this.parent.children.indexOf(this),Ee===-1||Ee===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[Ee+1]},Se.prototype.importDocument=function(Ee){var Ie;return Ie=Ee.root().clone(),Ie.parent=this,Ie.isRoot=!1,this.children.push(Ie),this},Se.prototype.debugInfo=function(Ee){var Ie,Me;return Ee=Ee||this.name,Ee==null&&!((Ie=this.parent)!=null&&Ie.name)?"":Ee==null?"parent: <"+this.parent.name+">":(Me=this.parent)!=null&&Me.name?"node: <"+Ee+">, parent: <"+this.parent.name+">":"node: <"+Ee+">"},Se.prototype.ele=function(Ee,Ie,Me){return this.element(Ee,Ie,Me)},Se.prototype.nod=function(Ee,Ie,Me){return this.node(Ee,Ie,Me)},Se.prototype.txt=function(Ee){return this.text(Ee)},Se.prototype.dat=function(Ee){return this.cdata(Ee)},Se.prototype.com=function(Ee){return this.comment(Ee)},Se.prototype.ins=function(Ee,Ie){return this.instruction(Ee,Ie)},Se.prototype.doc=function(){return this.document()},Se.prototype.dec=function(Ee,Ie,Me){return this.declaration(Ee,Ie,Me)},Se.prototype.e=function(Ee,Ie,Me){return this.element(Ee,Ie,Me)},Se.prototype.n=function(Ee,Ie,Me){return this.node(Ee,Ie,Me)},Se.prototype.t=function(Ee){return this.text(Ee)},Se.prototype.d=function(Ee){return this.cdata(Ee)},Se.prototype.c=function(Ee){return this.comment(Ee)},Se.prototype.r=function(Ee){return this.raw(Ee)},Se.prototype.i=function(Ee,Ie){return this.instruction(Ee,Ie)},Se.prototype.u=function(){return this.up()},Se.prototype.importXMLBuilder=function(Ee){return this.importDocument(Ee)},Se.prototype.replaceChild=function(Ee,Ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.removeChild=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.appendChild=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.hasChildNodes=function(){return this.children.length!==0},Se.prototype.cloneNode=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.isSupported=function(Ee,Ie){return!0},Se.prototype.hasAttributes=function(){return this.attribs.length!==0},Se.prototype.compareDocumentPosition=function(Ee){var Ie,Me;return Ie=this,Ie===Ee?0:this.document()!==Ee.document()?(Me=x.Disconnected|x.ImplementationSpecific,Math.random()<.5?Me|=x.Preceding:Me|=x.Following,Me):Ie.isAncestor(Ee)?x.Contains|x.Preceding:Ie.isDescendant(Ee)?x.Contains|x.Following:Ie.isPreceding(Ee)?x.Preceding:x.Following},Se.prototype.isSameNode=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.lookupPrefix=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.isDefaultNamespace=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.lookupNamespaceURI=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.isEqualNode=function(Ee){var Ie,Me,Le;if(Ee.nodeType!==this.nodeType||Ee.children.length!==this.children.length)return!1;for(Ie=Me=0,Le=this.children.length-1;0<=Le?Me<=Le:Me>=Le;Ie=0<=Le?++Me:--Me)if(!this.children[Ie].isEqualNode(Ee.children[Ie]))return!1;return!0},Se.prototype.getFeature=function(Ee,Ie){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setUserData=function(Ee,Ie,Me){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getUserData=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.contains=function(Ee){return Ee?Ee===this||this.isDescendant(Ee):!1},Se.prototype.isDescendant=function(Ee){var Ie,Me,Le,Ae,Pe;for(Pe=this.children,Le=0,Ae=Pe.length;Le<Ae;Le++)if(Ie=Pe[Le],Ee===Ie||(Me=Ie.isDescendant(Ee),Me))return!0;return!1},Se.prototype.isAncestor=function(Ee){return Ee.isDescendant(this)},Se.prototype.isPreceding=function(Ee){var Ie,Me;return Ie=this.treePosition(Ee),Me=this.treePosition(this),Ie===-1||Me===-1?!1:Ie<Me},Se.prototype.isFollowing=function(Ee){var Ie,Me;return Ie=this.treePosition(Ee),Me=this.treePosition(this),Ie===-1||Me===-1?!1:Ie>Me},Se.prototype.treePosition=function(Ee){var Ie,Me;return Me=0,Ie=!1,this.foreachTreeNode(this.document(),function(Le){if(Me++,!Ie&&Le===Ee)return Ie=!0}),Ie?Me:-1},Se.prototype.foreachTreeNode=function(Ee,Ie){var Me,Le,Ae,Pe,Ue;for(Ee||(Ee=this.document()),Pe=Ee.children,Le=0,Ae=Pe.length;Le<Ae;Le++){if(Me=Pe[Le],Ue=Ie(Me))return Ue;if(Ue=this.foreachTreeNode(Me,Ie),Ue)return Ue}},Se}()}).call(this)},{"./DocumentPosition":427,"./NodeType":428,"./Utility":429,"./XMLCData":432,"./XMLComment":434,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLNamedNodeMap":449,"./XMLNodeList":451,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],451:[function(a,Te,ge){(function(){var x;Te.exports=x=function(){function z(ie){this.nodes=ie}return Object.defineProperty(z.prototype,"length",{get:function(){return this.nodes.length||0}}),z.prototype.clone=function(){return this.nodes=null},z.prototype.item=function(ie){return this.nodes[ie]||null},z}()}).call(this)},{}],452:[function(a,Te,ge){(function(){var x,z,ie,oe=function(ue,E){for(var re in E)ee.call(E,re)&&(ue[re]=E[re]);function te(){this.constructor=ue}return te.prototype=E.prototype,ue.prototype=new te,ue.__super__=E.prototype,ue},ee={}.hasOwnProperty;x=a("./NodeType"),z=a("./XMLCharacterData"),Te.exports=ie=function(ue){oe(E,ue);function E(re,te,se){if(E.__super__.constructor.call(this,re),te==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=x.ProcessingInstruction,this.target=this.stringify.insTarget(te),this.name=this.target,se&&(this.value=this.stringify.insValue(se))}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(re){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(re))},E.prototype.isEqualNode=function(re){return!(!E.__super__.isEqualNode.apply(this,arguments).isEqualNode(re)||re.target!==this.target)},E}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(a,Te,ge){(function(){var x,z,ie,oe=function(ue,E){for(var re in E)ee.call(E,re)&&(ue[re]=E[re]);function te(){this.constructor=ue}return te.prototype=E.prototype,ue.prototype=new te,ue.__super__=E.prototype,ue},ee={}.hasOwnProperty;x=a("./NodeType"),z=a("./XMLNode"),Te.exports=ie=function(ue){oe(E,ue);function E(re,te){if(E.__super__.constructor.call(this,re),te==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=x.Raw,this.value=this.stringify.raw(te)}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(re){return this.options.writer.raw(this,this.options.writer.filterOptions(re))},E}(z)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(a,Te,ge){(function(){var x,z,ie,oe,ee=function(E,re){for(var te in re)ue.call(re,te)&&(E[te]=re[te]);function se(){this.constructor=E}return se.prototype=re.prototype,E.prototype=new se,E.__super__=re.prototype,E},ue={}.hasOwnProperty;x=a("./NodeType"),oe=a("./XMLWriterBase"),z=a("./WriterState"),Te.exports=ie=function(E){ee(re,E);function re(te,se){this.stream=te,re.__super__.constructor.call(this,se)}return re.prototype.endline=function(te,se,ae){return te.isLastRootNode&&se.state===z.CloseTag?"":re.__super__.endline.call(this,te,se,ae)},re.prototype.document=function(te,se){var ae,he,me,ve,pe,be,je,ke,Be;for(je=te.children,he=me=0,pe=je.length;me<pe;he=++me)ae=je[he],ae.isLastRootNode=he===te.children.length-1;for(se=this.filterOptions(se),ke=te.children,Be=[],ve=0,be=ke.length;ve<be;ve++)ae=ke[ve],Be.push(this.writeChildNode(ae,se,0));return Be},re.prototype.attribute=function(te,se,ae){return this.stream.write(re.__super__.attribute.call(this,te,se,ae))},re.prototype.cdata=function(te,se,ae){return this.stream.write(re.__super__.cdata.call(this,te,se,ae))},re.prototype.comment=function(te,se,ae){return this.stream.write(re.__super__.comment.call(this,te,se,ae))},re.prototype.declaration=function(te,se,ae){return this.stream.write(re.__super__.declaration.call(this,te,se,ae))},re.prototype.docType=function(te,se,ae){var he,me,ve,pe;if(ae||(ae=0),this.openNode(te,se,ae),se.state=z.OpenTag,this.stream.write(this.indent(te,se,ae)),this.stream.write("<!DOCTYPE "+te.root().name),te.pubID&&te.sysID?this.stream.write(' PUBLIC "'+te.pubID+'" "'+te.sysID+'"'):te.sysID&&this.stream.write(' SYSTEM "'+te.sysID+'"'),te.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(te,se,ae)),se.state=z.InsideTag,pe=te.children,me=0,ve=pe.length;me<ve;me++)he=pe[me],this.writeChildNode(he,se,ae+1);se.state=z.CloseTag,this.stream.write("]")}return se.state=z.CloseTag,this.stream.write(se.spaceBeforeSlash+">"),this.stream.write(this.endline(te,se,ae)),se.state=z.None,this.closeNode(te,se,ae)},re.prototype.element=function(te,se,ae){var he,me,ve,pe,be,je,ke,Be,De,Se;ae||(ae=0),this.openNode(te,se,ae),se.state=z.OpenTag,this.stream.write(this.indent(te,se,ae)+"<"+te.name),De=te.attribs;for(ke in De)ue.call(De,ke)&&(he=De[ke],this.attribute(he,se,ae));if(ve=te.children.length,pe=ve===0?null:te.children[0],ve===0||te.children.every(function(Ee){return(Ee.type===x.Text||Ee.type===x.Raw)&&Ee.value===""}))se.allowEmpty?(this.stream.write(">"),se.state=z.CloseTag,this.stream.write("</"+te.name+">")):(se.state=z.CloseTag,this.stream.write(se.spaceBeforeSlash+"/>"));else if(se.pretty&&ve===1&&(pe.type===x.Text||pe.type===x.Raw)&&pe.value!=null)this.stream.write(">"),se.state=z.InsideTag,se.suppressPrettyCount++,Be=!0,this.writeChildNode(pe,se,ae+1),se.suppressPrettyCount--,Be=!1,se.state=z.CloseTag,this.stream.write("</"+te.name+">");else{for(this.stream.write(">"+this.endline(te,se,ae)),se.state=z.InsideTag,Se=te.children,be=0,je=Se.length;be<je;be++)me=Se[be],this.writeChildNode(me,se,ae+1);se.state=z.CloseTag,this.stream.write(this.indent(te,se,ae)+"</"+te.name+">")}return this.stream.write(this.endline(te,se,ae)),se.state=z.None,this.closeNode(te,se,ae)},re.prototype.processingInstruction=function(te,se,ae){return this.stream.write(re.__super__.processingInstruction.call(this,te,se,ae))},re.prototype.raw=function(te,se,ae){return this.stream.write(re.__super__.raw.call(this,te,se,ae))},re.prototype.text=function(te,se,ae){return this.stream.write(re.__super__.text.call(this,te,se,ae))},re.prototype.dtdAttList=function(te,se,ae){return this.stream.write(re.__super__.dtdAttList.call(this,te,se,ae))},re.prototype.dtdElement=function(te,se,ae){return this.stream.write(re.__super__.dtdElement.call(this,te,se,ae))},re.prototype.dtdEntity=function(te,se,ae){return this.stream.write(re.__super__.dtdEntity.call(this,te,se,ae))},re.prototype.dtdNotation=function(te,se,ae){return this.stream.write(re.__super__.dtdNotation.call(this,te,se,ae))},re}(oe)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(a,Te,ge){(function(){var x,z,ie=function(ee,ue){for(var E in ue)oe.call(ue,E)&&(ee[E]=ue[E]);function re(){this.constructor=ee}return re.prototype=ue.prototype,ee.prototype=new re,ee.__super__=ue.prototype,ee},oe={}.hasOwnProperty;z=a("./XMLWriterBase"),Te.exports=x=function(ee){ie(ue,ee);function ue(E){ue.__super__.constructor.call(this,E)}return ue.prototype.document=function(E,re){var te,se,ae,he,me;for(re=this.filterOptions(re),he="",me=E.children,se=0,ae=me.length;se<ae;se++)te=me[se],he+=this.writeChildNode(te,re,0);return re.pretty&&he.slice(-re.newline.length)===re.newline&&(he=he.slice(0,-re.newline.length)),he},ue}(z)}).call(this)},{"./XMLWriterBase":458}],456:[function(a,Te,ge){(function(){var x,z=function(oe,ee){return function(){return oe.apply(ee,arguments)}},ie={}.hasOwnProperty;Te.exports=x=function(){function oe(ee){this.assertLegalName=z(this.assertLegalName,this),this.assertLegalChar=z(this.assertLegalChar,this);var ue,E,re;ee||(ee={}),this.options=ee,this.options.version||(this.options.version="1.0"),E=ee.stringify||{};for(ue in E)ie.call(E,ue)&&(re=E[ue],this[ue]=re)}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 ue,E;if(this.options.noValidation)return ee;if(ue="",this.options.version==="1.0"){if(ue=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,E=ee.match(ue))throw new Error("Invalid character in string: "+ee+" at index "+E.index)}else if(this.options.version==="1.1"&&(ue=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,E=ee.match(ue)))throw new Error("Invalid character in string: "+ee+" at index "+E.index);return ee},oe.prototype.assertLegalName=function(ee){var ue;if(this.options.noValidation)return ee;if(this.assertLegalChar(ee),ue=/^([: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(ue))throw new Error("Invalid character in name");return ee},oe.prototype.textEscape=function(ee){var ue;return this.options.noValidation?ee:(ue=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(ue,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},oe.prototype.attEscape=function(ee){var ue;return this.options.noValidation?ee:(ue=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(ue,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},oe}()}).call(this)},{}],457:[function(a,Te,ge){(function(){var x,z,ie,oe=function(ue,E){for(var re in E)ee.call(E,re)&&(ue[re]=E[re]);function te(){this.constructor=ue}return te.prototype=E.prototype,ue.prototype=new te,ue.__super__=E.prototype,ue},ee={}.hasOwnProperty;x=a("./NodeType"),z=a("./XMLCharacterData"),Te.exports=ie=function(ue){oe(E,ue);function E(re,te){if(E.__super__.constructor.call(this,re),te==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=x.Text,this.value=this.stringify.text(te)}return Object.defineProperty(E.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(E.prototype,"wholeText",{get:function(){var re,te,se;for(se="",te=this.previousSibling;te;)se=te.data+se,te=te.previousSibling;for(se+=this.data,re=this.nextSibling;re;)se=se+re.data,re=re.nextSibling;return se}}),E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(re){return this.options.writer.text(this,this.options.writer.filterOptions(re))},E.prototype.splitText=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.replaceWholeText=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},E}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(a,Te,ge){(function(){var x,z,ie,oe,ee,ue,E,re,te,se,ae,he,me,ve,pe,be,je,ke={}.hasOwnProperty;je=a("./Utility").assign,x=a("./NodeType"),te=a("./XMLDeclaration"),se=a("./XMLDocType"),ie=a("./XMLCData"),oe=a("./XMLComment"),he=a("./XMLElement"),ve=a("./XMLRaw"),pe=a("./XMLText"),me=a("./XMLProcessingInstruction"),ae=a("./XMLDummy"),ee=a("./XMLDTDAttList"),ue=a("./XMLDTDElement"),E=a("./XMLDTDEntity"),re=a("./XMLDTDNotation"),z=a("./WriterState"),Te.exports=be=function(){function Be(De){var Se,Ee,Ie;De||(De={}),this.options=De,Ee=De.writer||{};for(Se in Ee)ke.call(Ee,Se)&&(Ie=Ee[Se],this["_"+Se]=this[Se],this[Se]=Ie)}return Be.prototype.filterOptions=function(De){var Se,Ee,Ie,Me,Le,Ae,Pe,Ue;return De||(De={}),De=je({},this.options,De),Se={writer:this},Se.pretty=De.pretty||!1,Se.allowEmpty=De.allowEmpty||!1,Se.indent=(Ee=De.indent)!=null?Ee:" ",Se.newline=(Ie=De.newline)!=null?Ie:`
`,Se.offset=(Me=De.offset)!=null?Me:0,Se.dontPrettyTextNodes=(Le=(Ae=De.dontPrettyTextNodes)!=null?Ae:De.dontprettytextnodes)!=null?Le:0,Se.spaceBeforeSlash=(Pe=(Ue=De.spaceBeforeSlash)!=null?Ue:De.spacebeforeslash)!=null?Pe:"",Se.spaceBeforeSlash===!0&&(Se.spaceBeforeSlash=" "),Se.suppressPrettyCount=0,Se.user={},Se.state=z.None,Se},Be.prototype.indent=function(De,Se,Ee){var Ie;return!Se.pretty||Se.suppressPrettyCount?"":Se.pretty&&(Ie=(Ee||0)+Se.offset+1,Ie>0)?new Array(Ie).join(Se.indent):""},Be.prototype.endline=function(De,Se,Ee){return!Se.pretty||Se.suppressPrettyCount?"":Se.newline},Be.prototype.attribute=function(De,Se,Ee){var Ie;return this.openAttribute(De,Se,Ee),Ie=" "+De.name+'="'+De.value+'"',this.closeAttribute(De,Se,Ee),Ie},Be.prototype.cdata=function(De,Se,Ee){var Ie;return this.openNode(De,Se,Ee),Se.state=z.OpenTag,Ie=this.indent(De,Se,Ee)+"<![CDATA[",Se.state=z.InsideTag,Ie+=De.value,Se.state=z.CloseTag,Ie+="]]>"+this.endline(De,Se,Ee),Se.state=z.None,this.closeNode(De,Se,Ee),Ie},Be.prototype.comment=function(De,Se,Ee){var Ie;return this.openNode(De,Se,Ee),Se.state=z.OpenTag,Ie=this.indent(De,Se,Ee)+"<!-- ",Se.state=z.InsideTag,Ie+=De.value,Se.state=z.CloseTag,Ie+=" -->"+this.endline(De,Se,Ee),Se.state=z.None,this.closeNode(De,Se,Ee),Ie},Be.prototype.declaration=function(De,Se,Ee){var Ie;return this.openNode(De,Se,Ee),Se.state=z.OpenTag,Ie=this.indent(De,Se,Ee)+"<?xml",Se.state=z.InsideTag,Ie+=' version="'+De.version+'"',De.encoding!=null&&(Ie+=' encoding="'+De.encoding+'"'),De.standalone!=null&&(Ie+=' standalone="'+De.standalone+'"'),Se.state=z.CloseTag,Ie+=Se.spaceBeforeSlash+"?>",Ie+=this.endline(De,Se,Ee),Se.state=z.None,this.closeNode(De,Se,Ee),Ie},Be.prototype.docType=function(De,Se,Ee){var Ie,Me,Le,Ae,Pe;if(Ee||(Ee=0),this.openNode(De,Se,Ee),Se.state=z.OpenTag,Ae=this.indent(De,Se,Ee),Ae+="<!DOCTYPE "+De.root().name,De.pubID&&De.sysID?Ae+=' PUBLIC "'+De.pubID+'" "'+De.sysID+'"':De.sysID&&(Ae+=' SYSTEM "'+De.sysID+'"'),De.children.length>0){for(Ae+=" [",Ae+=this.endline(De,Se,Ee),Se.state=z.InsideTag,Pe=De.children,Me=0,Le=Pe.length;Me<Le;Me++)Ie=Pe[Me],Ae+=this.writeChildNode(Ie,Se,Ee+1);Se.state=z.CloseTag,Ae+="]"}return Se.state=z.CloseTag,Ae+=Se.spaceBeforeSlash+">",Ae+=this.endline(De,Se,Ee),Se.state=z.None,this.closeNode(De,Se,Ee),Ae},Be.prototype.element=function(De,Se,Ee){var Ie,Me,Le,Ae,Pe,Ue,He,Je,st,_e,Ke,nt,rt,et;Ee||(Ee=0),_e=!1,Ke="",this.openNode(De,Se,Ee),Se.state=z.OpenTag,Ke+=this.indent(De,Se,Ee)+"<"+De.name,nt=De.attribs;for(st in nt)ke.call(nt,st)&&(Ie=nt[st],Ke+=this.attribute(Ie,Se,Ee));if(Le=De.children.length,Ae=Le===0?null:De.children[0],Le===0||De.children.every(function(Ve){return(Ve.type===x.Text||Ve.type===x.Raw)&&Ve.value===""}))Se.allowEmpty?(Ke+=">",Se.state=z.CloseTag,Ke+="</"+De.name+">"+this.endline(De,Se,Ee)):(Se.state=z.CloseTag,Ke+=Se.spaceBeforeSlash+"/>"+this.endline(De,Se,Ee));else if(Se.pretty&&Le===1&&(Ae.type===x.Text||Ae.type===x.Raw)&&Ae.value!=null)Ke+=">",Se.state=z.InsideTag,Se.suppressPrettyCount++,_e=!0,Ke+=this.writeChildNode(Ae,Se,Ee+1),Se.suppressPrettyCount--,_e=!1,Se.state=z.CloseTag,Ke+="</"+De.name+">"+this.endline(De,Se,Ee);else{if(Se.dontPrettyTextNodes){for(rt=De.children,Pe=0,He=rt.length;Pe<He;Pe++)if(Me=rt[Pe],(Me.type===x.Text||Me.type===x.Raw)&&Me.value!=null){Se.suppressPrettyCount++,_e=!0;break}}for(Ke+=">"+this.endline(De,Se,Ee),Se.state=z.InsideTag,et=De.children,Ue=0,Je=et.length;Ue<Je;Ue++)Me=et[Ue],Ke+=this.writeChildNode(Me,Se,Ee+1);Se.state=z.CloseTag,Ke+=this.indent(De,Se,Ee)+"</"+De.name+">",_e&&Se.suppressPrettyCount--,Ke+=this.endline(De,Se,Ee),Se.state=z.None}return this.closeNode(De,Se,Ee),Ke},Be.prototype.writeChildNode=function(De,Se,Ee){switch(De.type){case x.CData:return this.cdata(De,Se,Ee);case x.Comment:return this.comment(De,Se,Ee);case x.Element:return this.element(De,Se,Ee);case x.Raw:return this.raw(De,Se,Ee);case x.Text:return this.text(De,Se,Ee);case x.ProcessingInstruction:return this.processingInstruction(De,Se,Ee);case x.Dummy:return"";case x.Declaration:return this.declaration(De,Se,Ee);case x.DocType:return this.docType(De,Se,Ee);case x.AttributeDeclaration:return this.dtdAttList(De,Se,Ee);case x.ElementDeclaration:return this.dtdElement(De,Se,Ee);case x.EntityDeclaration:return this.dtdEntity(De,Se,Ee);case x.NotationDeclaration:return this.dtdNotation(De,Se,Ee);default:throw new Error("Unknown XML node type: "+De.constructor.name)}},Be.prototype.processingInstruction=function(De,Se,Ee){var Ie;return this.openNode(De,Se,Ee),Se.state=z.OpenTag,Ie=this.indent(De,Se,Ee)+"<?",Se.state=z.InsideTag,Ie+=De.target,De.value&&(Ie+=" "+De.value),Se.state=z.CloseTag,Ie+=Se.spaceBeforeSlash+"?>",Ie+=this.endline(De,Se,Ee),Se.state=z.None,this.closeNode(De,Se,Ee),Ie},Be.prototype.raw=function(De,Se,Ee){var Ie;return this.openNode(De,Se,Ee),Se.state=z.OpenTag,Ie=this.indent(De,Se,Ee),Se.state=z.InsideTag,Ie+=De.value,Se.state=z.CloseTag,Ie+=this.endline(De,Se,Ee),Se.state=z.None,this.closeNode(De,Se,Ee),Ie},Be.prototype.text=function(De,Se,Ee){var Ie;return this.openNode(De,Se,Ee),Se.state=z.OpenTag,Ie=this.indent(De,Se,Ee),Se.state=z.InsideTag,Ie+=De.value,Se.state=z.CloseTag,Ie+=this.endline(De,Se,Ee),Se.state=z.None,this.closeNode(De,Se,Ee),Ie},Be.prototype.dtdAttList=function(De,Se,Ee){var Ie;return this.openNode(De,Se,Ee),Se.state=z.OpenTag,Ie=this.indent(De,Se,Ee)+"<!ATTLIST",Se.state=z.InsideTag,Ie+=" "+De.elementName+" "+De.attributeName+" "+De.attributeType,De.defaultValueType!=="#DEFAULT"&&(Ie+=" "+De.defaultValueType),De.defaultValue&&(Ie+=' "'+De.defaultValue+'"'),Se.state=z.CloseTag,Ie+=Se.spaceBeforeSlash+">"+this.endline(De,Se,Ee),Se.state=z.None,this.closeNode(De,Se,Ee),Ie},Be.prototype.dtdElement=function(De,Se,Ee){var Ie;return this.openNode(De,Se,Ee),Se.state=z.OpenTag,Ie=this.indent(De,Se,Ee)+"<!ELEMENT",Se.state=z.InsideTag,Ie+=" "+De.name+" "+De.value,Se.state=z.CloseTag,Ie+=Se.spaceBeforeSlash+">"+this.endline(De,Se,Ee),Se.state=z.None,this.closeNode(De,Se,Ee),Ie},Be.prototype.dtdEntity=function(De,Se,Ee){var Ie;return this.openNode(De,Se,Ee),Se.state=z.OpenTag,Ie=this.indent(De,Se,Ee)+"<!ENTITY",Se.state=z.InsideTag,De.pe&&(Ie+=" %"),Ie+=" "+De.name,De.value?Ie+=' "'+De.value+'"':(De.pubID&&De.sysID?Ie+=' PUBLIC "'+De.pubID+'" "'+De.sysID+'"':De.sysID&&(Ie+=' SYSTEM "'+De.sysID+'"'),De.nData&&(Ie+=" NDATA "+De.nData)),Se.state=z.CloseTag,Ie+=Se.spaceBeforeSlash+">"+this.endline(De,Se,Ee),Se.state=z.None,this.closeNode(De,Se,Ee),Ie},Be.prototype.dtdNotation=function(De,Se,Ee){var Ie;return this.openNode(De,Se,Ee),Se.state=z.OpenTag,Ie=this.indent(De,Se,Ee)+"<!NOTATION",Se.state=z.InsideTag,Ie+=" "+De.name,De.pubID&&De.sysID?Ie+=' PUBLIC "'+De.pubID+'" "'+De.sysID+'"':De.pubID?Ie+=' PUBLIC "'+De.pubID+'"':De.sysID&&(Ie+=' SYSTEM "'+De.sysID+'"'),Se.state=z.CloseTag,Ie+=Se.spaceBeforeSlash+">"+this.endline(De,Se,Ee),Se.state=z.None,this.closeNode(De,Se,Ee),Ie},Be.prototype.openNode=function(De,Se,Ee){},Be.prototype.closeNode=function(De,Se,Ee){},Be.prototype.openAttribute=function(De,Se,Ee){},Be.prototype.closeAttribute=function(De,Se,Ee){},Be}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(a,Te,ge){(function(){var x,z,ie,oe,ee,ue,E,re,te,se;se=a("./Utility"),re=se.assign,te=se.isFunction,ie=a("./XMLDOMImplementation"),oe=a("./XMLDocument"),ee=a("./XMLDocumentCB"),E=a("./XMLStringWriter"),ue=a("./XMLStreamWriter"),x=a("./NodeType"),z=a("./WriterState"),Te.exports.create=function(ae,he,me,ve){var pe,be;if(ae==null)throw new Error("Root element needs a name.");return ve=re({},he,me,ve),pe=new oe(ve),be=pe.element(ae),ve.headless||(pe.declaration(ve),(ve.pubID!=null||ve.sysID!=null)&&pe.dtd(ve)),be},Te.exports.begin=function(ae,he,me){var ve;return te(ae)&&(ve=[ae,he],he=ve[0],me=ve[1],ae={}),he?new ee(ae,he,me):new oe(ae)},Te.exports.stringWriter=function(ae){return new E(ae)},Te.exports.streamWriter=function(ae,he){return new ue(ae,he)},Te.exports.implementation=new ie,Te.exports.nodeType=x,Te.exports.writerState=z}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(a,Te,ge){Te.exports=z;var x=Object.prototype.hasOwnProperty;function z(){for(var ie={},oe=0;oe<arguments.length;oe++){var ee=arguments[oe];for(var ue in ee)x.call(ee,ue)&&(ie[ue]=ee[ue])}return ie}},{}],461:[function(a,Te,ge){"use strict";a("core-js/modules/es.array.fill.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/es.array.join.js"),a("core-js/modules/es.array.slice.js");var x=a("buffer").Buffer,z=a("./sha"),ie=a("./md5"),oe={sha1:z,md5:ie},ee=64,ue=x.alloc(ee);ue.fill(0);function E(se,ae,he){x.isBuffer(ae)||(ae=x.from(ae)),x.isBuffer(he)||(he=x.from(he)),ae.length>ee?ae=se(ae):ae.length<ee&&(ae=x.concat([ae,ue],ee));for(var me=x.alloc(ee),ve=x.alloc(ee),pe=0;pe<ee;pe++)me[pe]=ae[pe]^54,ve[pe]=ae[pe]^92;var be=se(x.concat([me,he]));return se(x.concat([ve,be]))}function re(se,ae){se=se||"sha1";var he=oe[se],me=[],ve=0;return he||te("algorithm:",se,"is not yet supported"),{update:function(be){return x.isBuffer(be)||(be=x.from(be)),me.push(be),ve+=be.length,this},digest:function(be){var je=x.concat(me),ke=ae?E(he,ae,je):he(je);return me=null,be?ke.toString(be):ke}}}function te(){var se=[].slice.call(arguments).join(" ");throw new Error([se,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}ge.createHash=function(se){return re(se)},ge.createHmac=function(se,ae){return re(se,ae)},ge.createCredentials=function(){te("sorry,createCredentials is not implemented yet")},ge.createCipher=function(){te("sorry,createCipher is not implemented yet")},ge.createCipheriv=function(){te("sorry,createCipheriv is not implemented yet")},ge.createDecipher=function(){te("sorry,createDecipher is not implemented yet")},ge.createDecipheriv=function(){te("sorry,createDecipheriv is not implemented yet")},ge.createSign=function(){te("sorry,createSign is not implemented yet")},ge.createVerify=function(){te("sorry,createVerify is not implemented yet")},ge.createDiffieHellman=function(){te("sorry,createDiffieHellman is not implemented yet")},ge.pbkdf2=function(){te("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(a,Te,ge){"use strict";a("core-js/modules/es.array.fill.js"),a("core-js/modules/es.array.concat.js");var x=a("buffer").Buffer,z=4,ie=x.alloc(z);ie.fill(0);var oe=8;function ee(re,te){if(re.length%z!==0){var se=re.length+(z-re.length%z);re=x.concat([re,ie],se)}for(var ae=[],he=te?re.readInt32BE:re.readInt32LE,me=0;me<re.length;me+=z)ae.push(he.call(re,me));return ae}function ue(re,te,se){for(var ae=x.alloc(te),he=se?ae.writeInt32BE:ae.writeInt32LE,me=0;me<re.length;me++)he.call(ae,re[me],me*4,!0);return ae}function E(re,te,se,ae){x.isBuffer(re)||(re=x.from(re));var he=te(ee(re,ae),re.length*oe);return ue(he,se,ae)}Te.exports={hash:E}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(a,Te,ge){"use strict";var x=a("./helpers");function z(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function ie(ae,he){ae[he>>5]|=128<<he%32,ae[(he+64>>>9<<4)+14]=he;for(var me=1732584193,ve=-271733879,pe=-1732584194,be=271733878,je=0;je<ae.length;je+=16){var ke=me,Be=ve,De=pe,Se=be;me=ee(me,ve,pe,be,ae[je+0],7,-680876936),be=ee(be,me,ve,pe,ae[je+1],12,-389564586),pe=ee(pe,be,me,ve,ae[je+2],17,606105819),ve=ee(ve,pe,be,me,ae[je+3],22,-1044525330),me=ee(me,ve,pe,be,ae[je+4],7,-176418897),be=ee(be,me,ve,pe,ae[je+5],12,1200080426),pe=ee(pe,be,me,ve,ae[je+6],17,-1473231341),ve=ee(ve,pe,be,me,ae[je+7],22,-45705983),me=ee(me,ve,pe,be,ae[je+8],7,1770035416),be=ee(be,me,ve,pe,ae[je+9],12,-1958414417),pe=ee(pe,be,me,ve,ae[je+10],17,-42063),ve=ee(ve,pe,be,me,ae[je+11],22,-1990404162),me=ee(me,ve,pe,be,ae[je+12],7,1804603682),be=ee(be,me,ve,pe,ae[je+13],12,-40341101),pe=ee(pe,be,me,ve,ae[je+14],17,-1502002290),ve=ee(ve,pe,be,me,ae[je+15],22,1236535329),me=ue(me,ve,pe,be,ae[je+1],5,-165796510),be=ue(be,me,ve,pe,ae[je+6],9,-1069501632),pe=ue(pe,be,me,ve,ae[je+11],14,643717713),ve=ue(ve,pe,be,me,ae[je+0],20,-373897302),me=ue(me,ve,pe,be,ae[je+5],5,-701558691),be=ue(be,me,ve,pe,ae[je+10],9,38016083),pe=ue(pe,be,me,ve,ae[je+15],14,-660478335),ve=ue(ve,pe,be,me,ae[je+4],20,-405537848),me=ue(me,ve,pe,be,ae[je+9],5,568446438),be=ue(be,me,ve,pe,ae[je+14],9,-1019803690),pe=ue(pe,be,me,ve,ae[je+3],14,-187363961),ve=ue(ve,pe,be,me,ae[je+8],20,1163531501),me=ue(me,ve,pe,be,ae[je+13],5,-1444681467),be=ue(be,me,ve,pe,ae[je+2],9,-51403784),pe=ue(pe,be,me,ve,ae[je+7],14,1735328473),ve=ue(ve,pe,be,me,ae[je+12],20,-1926607734),me=E(me,ve,pe,be,ae[je+5],4,-378558),be=E(be,me,ve,pe,ae[je+8],11,-2022574463),pe=E(pe,be,me,ve,ae[je+11],16,1839030562),ve=E(ve,pe,be,me,ae[je+14],23,-35309556),me=E(me,ve,pe,be,ae[je+1],4,-1530992060),be=E(be,me,ve,pe,ae[je+4],11,1272893353),pe=E(pe,be,me,ve,ae[je+7],16,-155497632),ve=E(ve,pe,be,me,ae[je+10],23,-1094730640),me=E(me,ve,pe,be,ae[je+13],4,681279174),be=E(be,me,ve,pe,ae[je+0],11,-358537222),pe=E(pe,be,me,ve,ae[je+3],16,-722521979),ve=E(ve,pe,be,me,ae[je+6],23,76029189),me=E(me,ve,pe,be,ae[je+9],4,-640364487),be=E(be,me,ve,pe,ae[je+12],11,-421815835),pe=E(pe,be,me,ve,ae[je+15],16,530742520),ve=E(ve,pe,be,me,ae[je+2],23,-995338651),me=re(me,ve,pe,be,ae[je+0],6,-198630844),be=re(be,me,ve,pe,ae[je+7],10,1126891415),pe=re(pe,be,me,ve,ae[je+14],15,-1416354905),ve=re(ve,pe,be,me,ae[je+5],21,-57434055),me=re(me,ve,pe,be,ae[je+12],6,1700485571),be=re(be,me,ve,pe,ae[je+3],10,-1894986606),pe=re(pe,be,me,ve,ae[je+10],15,-1051523),ve=re(ve,pe,be,me,ae[je+1],21,-2054922799),me=re(me,ve,pe,be,ae[je+8],6,1873313359),be=re(be,me,ve,pe,ae[je+15],10,-30611744),pe=re(pe,be,me,ve,ae[je+6],15,-1560198380),ve=re(ve,pe,be,me,ae[je+13],21,1309151649),me=re(me,ve,pe,be,ae[je+4],6,-145523070),be=re(be,me,ve,pe,ae[je+11],10,-1120210379),pe=re(pe,be,me,ve,ae[je+2],15,718787259),ve=re(ve,pe,be,me,ae[je+9],21,-343485551),me=te(me,ke),ve=te(ve,Be),pe=te(pe,De),be=te(be,Se)}return Array(me,ve,pe,be)}function oe(ae,he,me,ve,pe,be){return te(se(te(te(he,ae),te(ve,be)),pe),me)}function ee(ae,he,me,ve,pe,be,je){return oe(he&me|~he&ve,ae,he,pe,be,je)}function ue(ae,he,me,ve,pe,be,je){return oe(he&ve|me&~ve,ae,he,pe,be,je)}function E(ae,he,me,ve,pe,be,je){return oe(he^me^ve,ae,he,pe,be,je)}function re(ae,he,me,ve,pe,be,je){return oe(me^(he|~ve),ae,he,pe,be,je)}function te(ae,he){var me=(ae&65535)+(he&65535),ve=(ae>>16)+(he>>16)+(me>>16);return ve<<16|me&65535}function se(ae,he){return ae<<he|ae>>>32-he}Te.exports=function(he){return x.hash(he,ie,16)}},{"./helpers":462}],464:[function(a,Te,ge){"use strict";var x=a("./helpers");function z(E,re){E[re>>5]|=128<<24-re%32,E[(re+64>>9<<4)+15]=re;for(var te=Array(80),se=1732584193,ae=-271733879,he=-1732584194,me=271733878,ve=-1009589776,pe=0;pe<E.length;pe+=16){for(var be=se,je=ae,ke=he,Be=me,De=ve,Se=0;Se<80;Se++){Se<16?te[Se]=E[pe+Se]:te[Se]=ue(te[Se-3]^te[Se-8]^te[Se-14]^te[Se-16],1);var Ee=ee(ee(ue(se,5),ie(Se,ae,he,me)),ee(ee(ve,te[Se]),oe(Se)));ve=me,me=he,he=ue(ae,30),ae=se,se=Ee}se=ee(se,be),ae=ee(ae,je),he=ee(he,ke),me=ee(me,Be),ve=ee(ve,De)}return Array(se,ae,he,me,ve)}function ie(E,re,te,se){return E<20?re&te|~re&se:E<40?re^te^se:E<60?re&te|re&se|te&se:re^te^se}function oe(E){return E<20?1518500249:E<40?1859775393:E<60?-1894007588:-899497514}function ee(E,re){var te=(E&65535)+(re&65535),se=(E>>16)+(re>>16)+(te>>16);return se<<16|te&65535}function ue(E,re){return E<<re|E>>>32-re}Te.exports=function(re){return x.hash(re,z,20,!0)}},{"./helpers":462}],465:[function(a,Te,ge){"use strict";Te.exports=function(){return function(){}}},{}],466:[function(a,Te,ge){(function(x){(function(){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),ie=z(a("@babel/runtime/helpers/typeof")),oe=a("stream"),ee=oe.Stream,ue=a("../lib/common/utils/isArray"),E=ue.isArray;Te.exports.string=function(se){return typeof se=="string"},Te.exports.array=E,Te.exports.buffer=x.isBuffer;function re(te){return te instanceof ee}Te.exports.writableStream=function(se){return re(se)&&typeof se._write=="function"&&(0,ie.default)(se._writableState)==="object"}}).call(this)}).call(this,{isBuffer:a("../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(a,Te,ge){"use strict";var x=a("immediate"),z=Te.exports={};z.nextTick=x,z.title="browser",z.browser=!0,z.env={},z.argv=[],z.version="",z.versions={};function ie(){}z.on=ie,z.addListener=ie,z.once=ie,z.off=ie,z.removeListener=ie,z.removeAllListeners=ie,z.emit=ie,z.prependListener=ie,z.prependOnceListener=ie,z.listeners=function(oe){return[]},z.binding=function(oe){throw new Error("process.binding is not supported")},z.cwd=function(){return"/"},z.chdir=function(oe){throw new Error("process.chdir is not supported")},z.umask=function(){return 0}},{immediate:358}],468:[function(a,Te,ge){(function(x){(function(){"use strict";a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.search.js");var z=a("./lib/request"),ie=a("./lib/response"),oe=a("xtend"),ee=a("builtin-status-codes"),ue=a("url"),E=ge;E.request=function(re,te){typeof re=="string"?re=ue.parse(re):re=oe(re);var se=x.location.protocol.search(/^https?:$/)===-1?"http:":"",ae=re.protocol||se,he=re.hostname||re.host,me=re.port,ve=re.path||"/";he&&he.indexOf(":")!==-1&&(he="["+he+"]"),re.url=(he?ae+"//"+he:"")+(me?":"+me:"")+ve,re.method=(re.method||"GET").toUpperCase(),re.headers=re.headers||{};var pe=new z(re);return te&&pe.on("response",te),pe},E.get=function(te,se){var ae=E.request(te,se);return ae.end(),ae},E.ClientRequest=z,E.IncomingMessage=ie.IncomingMessage,E.Agent=function(){},E.Agent.defaultMaxSockets=4,E.globalAgent=new E.Agent,E.STATUS_CODES=ee,E.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 Lt!="undefined"?Lt: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(a,Te,ge){(function(x){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.array-buffer.constructor.js"),a("core-js/modules/es.array-buffer.slice.js"),a("core-js/modules/es.array.slice.js"),ge.fetch=E(x.fetch)&&E(x.ReadableStream),ge.writableStream=E(x.WritableStream),ge.abortController=E(x.AbortController),ge.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),ge.blobConstructor=!0}catch(re){}var z;function ie(){if(z!==void 0)return z;if(x.XMLHttpRequest){z=new x.XMLHttpRequest;try{z.open("GET",x.XDomainRequest?"/":"https://example.com")}catch(re){z=null}}else z=null;return z}function oe(re){var te=ie();if(!te)return!1;try{return te.responseType=re,te.responseType===re}catch(se){}return!1}var ee=typeof x.ArrayBuffer!="undefined",ue=ee&&E(x.ArrayBuffer.prototype.slice);ge.arraybuffer=ge.fetch||ee&&oe("arraybuffer"),ge.msstream=!ge.fetch&&ue&&oe("ms-stream"),ge.mozchunkedarraybuffer=!ge.fetch&&ee&&oe("moz-chunked-arraybuffer"),ge.overrideMimeType=ge.fetch||(ie()?E(ie().overrideMimeType):!1),ge.vbArray=E(x.VBArray);function E(re){return typeof re=="function"}z=null}).call(this)}).call(this,typeof Lt!="undefined"?Lt: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(a,Te,ge){(function(x,z,ie){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.function.name.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.split.js");var oe=a("./capability"),ee=a("inherits"),ue=a("./response"),E=a("readable-stream"),re=a("to-arraybuffer"),te=ue.IncomingMessage,se=ue.readyStates;function ae(pe,be){return oe.fetch&&be?"fetch":oe.mozchunkedarraybuffer?"moz-chunked-arraybuffer":oe.msstream?"ms-stream":oe.arraybuffer&&pe?"arraybuffer":oe.vbArray&&pe?"text:vbarray":"text"}var he=Te.exports=function(pe){var be=this;E.Writable.call(be),be._opts=pe,be._body=[],be._headers={},pe.auth&&be.setHeader("Authorization","Basic "+new ie(pe.auth).toString("base64")),Object.keys(pe.headers).forEach(function(Be){be.setHeader(Be,pe.headers[Be])});var je,ke=!0;if(pe.mode==="disable-fetch"||"requestTimeout"in pe&&!oe.abortController)ke=!1,je=!0;else if(pe.mode==="prefer-streaming")je=!1;else if(pe.mode==="allow-wrong-content-type")je=!oe.overrideMimeType;else if(!pe.mode||pe.mode==="default"||pe.mode==="prefer-fast")je=!0;else throw new Error("Invalid value for opts.mode");be._mode=ae(je,ke),be._fetchTimer=null,be.on("finish",function(){be._onFinish()})};ee(he,E.Writable),he.prototype.setHeader=function(pe,be){var je=this,ke=pe.toLowerCase();ve.indexOf(ke)===-1&&(je._headers[ke]={name:pe,value:be})},he.prototype.getHeader=function(pe){var be=this._headers[pe.toLowerCase()];return be?be.value:null},he.prototype.removeHeader=function(pe){var be=this;delete be._headers[pe.toLowerCase()]},he.prototype._onFinish=function(){var pe=this;if(!pe._destroyed){var be=pe._opts,je=pe._headers,ke=null;be.method!=="GET"&&be.method!=="HEAD"&&(oe.arraybuffer?ke=re(ie.concat(pe._body)):oe.blobConstructor?ke=new z.Blob(pe._body.map(function(Me){return re(Me)}),{type:(je["content-type"]||{}).value||""}):ke=ie.concat(pe._body).toString());var Be=[];if(Object.keys(je).forEach(function(Me){var Le=je[Me].name,Ae=je[Me].value;Array.isArray(Ae)?Ae.forEach(function(Pe){Be.push([Le,Pe])}):Be.push([Le,Ae])}),pe._mode==="fetch"){var De=null,Se=null;if(oe.abortController){var Ee=new AbortController;De=Ee.signal,pe._fetchAbortController=Ee,"requestTimeout"in be&&be.requestTimeout!==0&&(pe._fetchTimer=z.setTimeout(function(){pe.emit("requestTimeout"),pe._fetchAbortController&&pe._fetchAbortController.abort()},be.requestTimeout))}z.fetch(pe._opts.url,{method:pe._opts.method,headers:Be,body:ke||void 0,mode:"cors",credentials:be.withCredentials?"include":"same-origin",signal:De}).then(function(Me){pe._fetchResponse=Me,pe._connect()},function(Me){z.clearTimeout(pe._fetchTimer),pe._destroyed||pe.emit("error",Me)})}else{var Ie=pe._xhr=new z.XMLHttpRequest;try{Ie.open(pe._opts.method,pe._opts.url,!0)}catch(Me){x.nextTick(function(){pe.emit("error",Me)});return}"responseType"in Ie&&(Ie.responseType=pe._mode.split(":")[0]),"withCredentials"in Ie&&(Ie.withCredentials=!!be.withCredentials),pe._mode==="text"&&"overrideMimeType"in Ie&&Ie.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in be&&(Ie.timeout=be.requestTimeout,Ie.ontimeout=function(){pe.emit("requestTimeout")}),Be.forEach(function(Me){Ie.setRequestHeader(Me[0],Me[1])}),pe._response=null,Ie.onreadystatechange=function(){switch(Ie.readyState){case se.LOADING:case se.DONE:pe._onXHRProgress();break}},pe._mode==="moz-chunked-arraybuffer"&&(Ie.onprogress=function(){pe._onXHRProgress()}),Ie.onerror=function(){pe._destroyed||pe.emit("error",new Error("XHR error"))};try{Ie.send(ke)}catch(Me){x.nextTick(function(){pe.emit("error",Me)});return}}}};function me(pe){try{var be=pe.status;return be!==null&&be!==0}catch(je){return!1}}he.prototype._onXHRProgress=function(){var pe=this;!me(pe._xhr)||pe._destroyed||(pe._response||pe._connect(),pe._response._onXHRProgress())},he.prototype._connect=function(){var pe=this;pe._destroyed||(pe._response=new te(pe._xhr,pe._fetchResponse,pe._mode,pe._fetchTimer),pe._response.on("error",function(be){pe.emit("error",be)}),pe.emit("response",pe._response))},he.prototype._write=function(pe,be,je){var ke=this;ke._body.push(pe),je()},he.prototype.abort=he.prototype.destroy=function(){var pe=this;pe._destroyed=!0,z.clearTimeout(pe._fetchTimer),pe._response&&(pe._response._destroyed=!0),pe._xhr?pe._xhr.abort():pe._fetchAbortController&&pe._fetchAbortController.abort()},he.prototype.end=function(pe,be,je){var ke=this;typeof pe=="function"&&(je=pe,pe=void 0),E.Writable.prototype.end.call(ke,pe,be,je)},he.prototype.flushHeaders=function(){},he.prototype.setTimeout=function(){},he.prototype.setNoDelay=function(){},he.prototype.setSocketKeepAlive=function(){};var ve=["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,a("_process"),typeof Lt!="undefined"?Lt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},a("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(a,Te,ge){(function(x,z,ie){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.split.js"),a("core-js/modules/es.string.match.js"),a("core-js/modules/es.array.iterator.js"),a("core-js/modules/es.array-buffer.slice.js"),a("core-js/modules/es.typed-array.uint8-array.js"),a("core-js/modules/es.typed-array.copy-within.js"),a("core-js/modules/es.typed-array.every.js"),a("core-js/modules/es.typed-array.fill.js"),a("core-js/modules/es.typed-array.filter.js"),a("core-js/modules/es.typed-array.find.js"),a("core-js/modules/es.typed-array.find-index.js"),a("core-js/modules/es.typed-array.for-each.js"),a("core-js/modules/es.typed-array.includes.js"),a("core-js/modules/es.typed-array.index-of.js"),a("core-js/modules/es.typed-array.iterator.js"),a("core-js/modules/es.typed-array.join.js"),a("core-js/modules/es.typed-array.last-index-of.js"),a("core-js/modules/es.typed-array.map.js"),a("core-js/modules/es.typed-array.reduce.js"),a("core-js/modules/es.typed-array.reduce-right.js"),a("core-js/modules/es.typed-array.reverse.js"),a("core-js/modules/es.typed-array.set.js"),a("core-js/modules/es.typed-array.slice.js"),a("core-js/modules/es.typed-array.some.js"),a("core-js/modules/es.typed-array.sort.js"),a("core-js/modules/es.typed-array.subarray.js"),a("core-js/modules/es.typed-array.to-locale-string.js"),a("core-js/modules/es.typed-array.to-string.js"),a("core-js/modules/es.array.slice.js");var oe=a("./capability"),ee=a("inherits"),ue=a("readable-stream"),E=ge.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},re=ge.IncomingMessage=function(te,se,ae,he){var me=this;if(ue.Readable.call(me),me._mode=ae,me.headers={},me.rawHeaders=[],me.trailers={},me.rawTrailers=[],me.on("end",function(){x.nextTick(function(){me.emit("close")})}),ae==="fetch"){var ve=function De(){be.read().then(function(Se){if(!me._destroyed){if(Se.done){z.clearTimeout(he),me.push(null);return}me.push(new ie(Se.value)),De()}}).catch(function(Se){z.clearTimeout(he),me._destroyed||me.emit("error",Se)})};if(me._fetchResponse=se,me.url=se.url,me.statusCode=se.status,me.statusMessage=se.statusText,se.headers.forEach(function(De,Se){me.headers[Se.toLowerCase()]=De,me.rawHeaders.push(Se,De)}),oe.writableStream){var pe=new WritableStream({write:function(Se){return new Promise(function(Ee,Ie){me._destroyed?Ie():me.push(new ie(Se))?Ee():me._resumeFetch=Ee})},close:function(){z.clearTimeout(he),me._destroyed||me.push(null)},abort:function(Se){me._destroyed||me.emit("error",Se)}});try{se.body.pipeTo(pe).catch(function(De){z.clearTimeout(he),me._destroyed||me.emit("error",De)});return}catch(De){}}var be=se.body.getReader();ve()}else{me._xhr=te,me._pos=0,me.url=te.responseURL,me.statusCode=te.status,me.statusMessage=te.statusText;var je=te.getAllResponseHeaders().split(/\r?\n/);if(je.forEach(function(De){var Se=De.match(/^([^:]+):\s*(.*)/);if(Se){var Ee=Se[1].toLowerCase();Ee==="set-cookie"?(me.headers[Ee]===void 0&&(me.headers[Ee]=[]),me.headers[Ee].push(Se[2])):me.headers[Ee]!==void 0?me.headers[Ee]+=", "+Se[2]:me.headers[Ee]=Se[2],me.rawHeaders.push(Se[1],Se[2])}}),me._charset="x-user-defined",!oe.overrideMimeType){var ke=me.rawHeaders["mime-type"];if(ke){var Be=ke.match(/;\s*charset=([^;])(;|$)/);Be&&(me._charset=Be[1].toLowerCase())}me._charset||(me._charset="utf-8")}}};ee(re,ue.Readable),re.prototype._read=function(){var te=this,se=te._resumeFetch;se&&(te._resumeFetch=null,se())},re.prototype._onXHRProgress=function(){var te=this,se=te._xhr,ae=null;switch(te._mode){case"text:vbarray":if(se.readyState!==E.DONE)break;try{ae=new z.VBArray(se.responseBody).toArray()}catch(be){}if(ae!==null){te.push(new ie(ae));break}case"text":try{ae=se.responseText}catch(be){te._mode="text:vbarray";break}if(ae.length>te._pos){var he=ae.substr(te._pos);if(te._charset==="x-user-defined"){for(var me=new ie(he.length),ve=0;ve<he.length;ve++)me[ve]=he.charCodeAt(ve)&255;te.push(me)}else te.push(he,te._charset);te._pos=ae.length}break;case"arraybuffer":if(se.readyState!==E.DONE||!se.response)break;ae=se.response,te.push(new ie(new Uint8Array(ae)));break;case"moz-chunked-arraybuffer":if(ae=se.response,se.readyState!==E.LOADING||!ae)break;te.push(new ie(new Uint8Array(ae)));break;case"ms-stream":if(ae=se.response,se.readyState!==E.LOADING)break;var pe=new z.MSStreamReader;pe.onprogress=function(){pe.result.byteLength>te._pos&&(te.push(new ie(new Uint8Array(pe.result.slice(te._pos)))),te._pos=pe.result.byteLength)},pe.onload=function(){te.push(null)},pe.readAsArrayBuffer(ae);break}te._xhr.readyState===E.DONE&&te._mode!=="ms-stream"&&te.push(null)}}).call(this)}).call(this,a("_process"),typeof Lt!="undefined"?Lt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},a("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(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/helpers/typeof"));a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.search.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.string.split.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.array.join.js"),a("core-js/modules/es.string.trim.js"),a("core-js/modules/es.string.match.js"),a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.splice.js");var ie=a("punycode"),oe=a("./util");ge.parse=Se,ge.resolve=Ie,ge.resolveObject=Me,ge.format=Ee,ge.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 ue=/^([a-z0-9.+-]+:)/i,E=/:[0-9]*$/,re=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,te=["<",">",'"',"`"," ","\r",`
`," "],se=["{","}","|","\\","^","`"].concat(te),ae=["'"].concat(se),he=["%","/","?",";","#"].concat(ae),me=["/","?","#"],ve=255,pe=/^[+a-z0-9A-Z_-]{0,63}$/,be=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,je={javascript:!0,"javascript:":!0},ke={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=a("querystring");function Se(Le,Ae,Pe){if(Le&&oe.isObject(Le)&&Le instanceof ee)return Le;var Ue=new ee;return Ue.parse(Le,Ae,Pe),Ue}ee.prototype.parse=function(Le,Ae,Pe){if(!oe.isString(Le))throw new TypeError("Parameter 'url' must be a string, not "+(0,z.default)(Le));var Ue=Le.indexOf("?"),He=Ue!==-1&&Ue<Le.indexOf("#")?"?":"#",Je=Le.split(He),st=/\\/g;Je[0]=Je[0].replace(st,"/"),Le=Je.join(He);var _e=Le;if(_e=_e.trim(),!Pe&&Le.split("#").length===1){var Ke=re.exec(_e);if(Ke)return this.path=_e,this.href=_e,this.pathname=Ke[1],Ke[2]?(this.search=Ke[2],Ae?this.query=De.parse(this.search.substr(1)):this.query=this.search.substr(1)):Ae&&(this.search="",this.query={}),this}var nt=ue.exec(_e);if(nt){nt=nt[0];var rt=nt.toLowerCase();this.protocol=rt,_e=_e.substr(nt.length)}if(Pe||nt||_e.match(/^\/\/[^@\/]+@[^@\/]+/)){var et=_e.substr(0,2)==="//";et&&!(nt&&ke[nt])&&(_e=_e.substr(2),this.slashes=!0)}if(!ke[nt]&&(et||nt&&!Be[nt])){for(var Ve=-1,Ye=0;Ye<me.length;Ye++){var Ge=_e.indexOf(me[Ye]);Ge!==-1&&(Ve===-1||Ge<Ve)&&(Ve=Ge)}var it,qe;Ve===-1?qe=_e.lastIndexOf("@"):qe=_e.lastIndexOf("@",Ve),qe!==-1&&(it=_e.slice(0,qe),_e=_e.slice(qe+1),this.auth=decodeURIComponent(it)),Ve=-1;for(var Ye=0;Ye<he.length;Ye++){var Ge=_e.indexOf(he[Ye]);Ge!==-1&&(Ve===-1||Ge<Ve)&&(Ve=Ge)}Ve===-1&&(Ve=_e.length),this.host=_e.slice(0,Ve),_e=_e.slice(Ve),this.parseHost(),this.hostname=this.hostname||"";var vt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!vt)for(var ot=this.hostname.split("."),Ye=0,Qe=ot.length;Ye<Qe;Ye++){var Fe=ot[Ye];if(Fe&&!Fe.match(pe)){for(var Re="",ne=0,fe=Fe.length;ne<fe;ne++)Fe.charCodeAt(ne)>127?Re+="x":Re+=Fe[ne];if(!Re.match(pe)){var Ne=ot.slice(0,Ye),We=ot.slice(Ye+1),we=Fe.match(be);we&&(Ne.push(we[1]),We.unshift(we[2])),We.length&&(_e="/"+We.join(".")+_e),this.hostname=Ne.join(".");break}}}this.hostname.length>ve?this.hostname="":this.hostname=this.hostname.toLowerCase(),vt||(this.hostname=ie.toASCII(this.hostname));var ye=this.port?":"+this.port:"",Oe=this.hostname||"";this.host=Oe+ye,this.href+=this.host,vt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),_e[0]!=="/"&&(_e="/"+_e))}if(!je[rt])for(var Ye=0,Qe=ae.length;Ye<Qe;Ye++){var $e=ae[Ye];if(_e.indexOf($e)!==-1){var Ze=encodeURIComponent($e);Ze===$e&&(Ze=escape($e)),_e=_e.split($e).join(Ze)}}var Xe=_e.indexOf("#");Xe!==-1&&(this.hash=_e.substr(Xe),_e=_e.slice(0,Xe));var at=_e.indexOf("?");if(at!==-1?(this.search=_e.substr(at),this.query=_e.substr(at+1),Ae&&(this.query=De.parse(this.query)),_e=_e.slice(0,at)):Ae&&(this.search="",this.query={}),_e&&(this.pathname=_e),Be[rt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ye=this.pathname||"",lt=this.search||"";this.path=ye+lt}return this.href=this.format(),this};function Ee(Le){return oe.isString(Le)&&(Le=Se(Le)),Le instanceof ee?Le.format():ee.prototype.format.call(Le)}ee.prototype.format=function(){var Le=this.auth||"";Le&&(Le=encodeURIComponent(Le),Le=Le.replace(/%3A/i,":"),Le+="@");var Ae=this.protocol||"",Pe=this.pathname||"",Ue=this.hash||"",He=!1,Je="";this.host?He=Le+this.host:this.hostname&&(He=Le+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(He+=":"+this.port)),this.query&&oe.isObject(this.query)&&Object.keys(this.query).length&&(Je=De.stringify(this.query));var st=this.search||Je&&"?"+Je||"";return Ae&&Ae.substr(-1)!==":"&&(Ae+=":"),this.slashes||(!Ae||Be[Ae])&&He!==!1?(He="//"+(He||""),Pe&&Pe.charAt(0)!=="/"&&(Pe="/"+Pe)):He||(He=""),Ue&&Ue.charAt(0)!=="#"&&(Ue="#"+Ue),st&&st.charAt(0)!=="?"&&(st="?"+st),Pe=Pe.replace(/[?#]/g,function(_e){return encodeURIComponent(_e)}),st=st.replace("#","%23"),Ae+He+Pe+st+Ue};function Ie(Le,Ae){return Se(Le,!1,!0).resolve(Ae)}ee.prototype.resolve=function(Le){return this.resolveObject(Se(Le,!1,!0)).format()};function Me(Le,Ae){return Le?Se(Le,!1,!0).resolveObject(Ae):Ae}ee.prototype.resolveObject=function(Le){if(oe.isString(Le)){var Ae=new ee;Ae.parse(Le,!1,!0),Le=Ae}for(var Pe=new ee,Ue=Object.keys(this),He=0;He<Ue.length;He++){var Je=Ue[He];Pe[Je]=this[Je]}if(Pe.hash=Le.hash,Le.href==="")return Pe.href=Pe.format(),Pe;if(Le.slashes&&!Le.protocol){for(var st=Object.keys(Le),_e=0;_e<st.length;_e++){var Ke=st[_e];Ke!=="protocol"&&(Pe[Ke]=Le[Ke])}return Be[Pe.protocol]&&Pe.hostname&&!Pe.pathname&&(Pe.path=Pe.pathname="/"),Pe.href=Pe.format(),Pe}if(Le.protocol&&Le.protocol!==Pe.protocol){if(!Be[Le.protocol]){for(var nt=Object.keys(Le),rt=0;rt<nt.length;rt++){var et=nt[rt];Pe[et]=Le[et]}return Pe.href=Pe.format(),Pe}if(Pe.protocol=Le.protocol,!Le.host&&!ke[Le.protocol]){for(var Qe=(Le.pathname||"").split("/");Qe.length&&!(Le.host=Qe.shift()););Le.host||(Le.host=""),Le.hostname||(Le.hostname=""),Qe[0]!==""&&Qe.unshift(""),Qe.length<2&&Qe.unshift(""),Pe.pathname=Qe.join("/")}else Pe.pathname=Le.pathname;if(Pe.search=Le.search,Pe.query=Le.query,Pe.host=Le.host||"",Pe.auth=Le.auth,Pe.hostname=Le.hostname||Le.host,Pe.port=Le.port,Pe.pathname||Pe.search){var Ve=Pe.pathname||"",Ye=Pe.search||"";Pe.path=Ve+Ye}return Pe.slashes=Pe.slashes||Le.slashes,Pe.href=Pe.format(),Pe}var Ge=Pe.pathname&&Pe.pathname.charAt(0)==="/",it=Le.host||Le.pathname&&Le.pathname.charAt(0)==="/",qe=it||Ge||Pe.host&&Le.pathname,vt=qe,ot=Pe.pathname&&Pe.pathname.split("/")||[],Qe=Le.pathname&&Le.pathname.split("/")||[],Fe=Pe.protocol&&!Be[Pe.protocol];if(Fe&&(Pe.hostname="",Pe.port=null,Pe.host&&(ot[0]===""?ot[0]=Pe.host:ot.unshift(Pe.host)),Pe.host="",Le.protocol&&(Le.hostname=null,Le.port=null,Le.host&&(Qe[0]===""?Qe[0]=Le.host:Qe.unshift(Le.host)),Le.host=null),qe=qe&&(Qe[0]===""||ot[0]==="")),it)Pe.host=Le.host||Le.host===""?Le.host:Pe.host,Pe.hostname=Le.hostname||Le.hostname===""?Le.hostname:Pe.hostname,Pe.search=Le.search,Pe.query=Le.query,ot=Qe;else if(Qe.length)ot||(ot=[]),ot.pop(),ot=ot.concat(Qe),Pe.search=Le.search,Pe.query=Le.query;else if(!oe.isNullOrUndefined(Le.search)){if(Fe){Pe.hostname=Pe.host=ot.shift();var Re=Pe.host&&Pe.host.indexOf("@")>0?Pe.host.split("@"):!1;Re&&(Pe.auth=Re.shift(),Pe.host=Pe.hostname=Re.shift())}return Pe.search=Le.search,Pe.query=Le.query,(!oe.isNull(Pe.pathname)||!oe.isNull(Pe.search))&&(Pe.path=(Pe.pathname?Pe.pathname:"")+(Pe.search?Pe.search:"")),Pe.href=Pe.format(),Pe}if(!ot.length)return Pe.pathname=null,Pe.search?Pe.path="/"+Pe.search:Pe.path=null,Pe.href=Pe.format(),Pe;for(var ne=ot.slice(-1)[0],fe=(Pe.host||Le.host||ot.length>1)&&(ne==="."||ne==="..")||ne==="",Ne=0,We=ot.length;We>=0;We--)ne=ot[We],ne==="."?ot.splice(We,1):ne===".."?(ot.splice(We,1),Ne++):Ne&&(ot.splice(We,1),Ne--);if(!qe&&!vt)for(;Ne--;Ne)ot.unshift("..");qe&&ot[0]!==""&&(!ot[0]||ot[0].charAt(0)!=="/")&&ot.unshift(""),fe&&ot.join("/").substr(-1)!=="/"&&ot.push("");var we=ot[0]===""||ot[0]&&ot[0].charAt(0)==="/";if(Fe){Pe.hostname=Pe.host=we?"":ot.length?ot.shift():"";var Re=Pe.host&&Pe.host.indexOf("@")>0?Pe.host.split("@"):!1;Re&&(Pe.auth=Re.shift(),Pe.host=Pe.hostname=Re.shift())}return qe=qe||Pe.host&&ot.length,qe&&!we&&ot.unshift(""),ot.length?Pe.pathname=ot.join("/"):(Pe.pathname=null,Pe.path=null),(!oe.isNull(Pe.pathname)||!oe.isNull(Pe.search))&&(Pe.path=(Pe.pathname?Pe.pathname:"")+(Pe.search?Pe.search:"")),Pe.auth=Le.auth||Pe.auth,Pe.slashes=Pe.slashes||Le.slashes,Pe.href=Pe.format(),Pe},ee.prototype.parseHost=function(){var Le=this.host,Ae=E.exec(Le);Ae&&(Ae=Ae[0],Ae!==":"&&(this.port=Ae.substr(1)),Le=Le.substr(0,Le.length-Ae.length)),Le&&(this.hostname=Le)}},{"./util":473,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.array.splice.js":283,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.search.js":306,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,punycode:382,querystring:385}],473:[function(a,Te,ge){"use strict";var x=a("@babel/runtime/helpers/interopRequireDefault"),z=x(a("@babel/runtime/helpers/typeof"));Te.exports={isString:function(oe){return typeof oe=="string"},isObject:function(oe){return(0,z.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(a,Te,ge){"use strict";a("core-js/modules/es.number.constructor.js"),ge.encodeURIComponent=function(x){try{return encodeURIComponent(x)}catch(z){return x}},ge.escape=a("escape-html"),ge.timestamp=function(z){if(z){var ie=z;return typeof ie=="string"&&(ie=Number(ie)),String(z).length===10&&(ie*=1e3),new Date(ie)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(a,Te,ge){(function(x,z){(function(){"use strict";var ie=a("@babel/runtime/helpers/interopRequireDefault"),oe=ie(a("@babel/runtime/helpers/typeof"));a("core-js/modules/es.string.trim.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.split.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.function.name.js"),a("core-js/modules/es.array.concat.js");var ee=a("util"),ue=a("url"),E=a("http"),re=a("https"),te=a("debug")("urllib"),se=a("humanize-ms"),ae=0,he=Math.pow(2,31)-10,me=/^https?:\/\//i;function ve(ke,Be){return ke===void 0?Be:ke}function pe(ke){return ke?ke.split(";")[0].trim().toLowerCase():""}function be(ke,Be){return function(De,Se,Ee){if(De)return Be(De);ke({data:Se,status:Ee.statusCode,headers:Ee.headers,res:Ee})}}ge.TIMEOUTS=[se("300s"),se("300s")];var je=["json","text"];ge.request=function(Be,De,Se){return arguments.length===2&&typeof De=="function"&&(Se=De,De=null),typeof Se=="function"?ge.requestWithCallback(Be,De,Se):new Promise(function(Ee,Ie){ge.requestWithCallback(Be,De,be(Ee,Ie))})},ge.requestWithCallback=function(Be,De,Se){if(!Be||typeof Be!="string"&&(0,oe.default)(Be)!=="object"){var Ee=ee.format("expect request url to be a string or a http request options, but got %j",Be);throw new Error(Ee)}arguments.length===2&&typeof De=="function"&&(Se=De,De=null),De=De||{},ae>=he&&(ae=0);var Ie=++ae;De.requestUrls=De.requestUrls||[];var Me={requestId:Ie,url:Be,args:De,ctx:De.ctx};De.emitter&&De.emitter.emit("request",Me),De.timeout=De.timeout||ge.TIMEOUTS,De.maxRedirects=De.maxRedirects||10,De.streaming=De.streaming||De.customResponse;var Le=Date.now(),Ae;typeof Be=="string"?(me.test(Be)||(Be="https://"+Be),Ae=ue.parse(Be)):Ae=Be;var Pe=(De.type||De.method||Ae.method||"GET").toUpperCase(),Ue=Ae.port||80,He=E,Je=ve(De.agent,ge.agent),st=De.fixJSONCtlChars;Ae.protocol==="https:"&&(He=re,Je=ve(De.httpsAgent,ge.httpsAgent),Ae.port||(Ue=443));var _e={host:Ae.hostname||Ae.host||"localhost",path:Ae.path||"/",method:Pe,port:Ue,agent:Je,headers:De.headers||{},lookup:De.lookup};Array.isArray(De.timeout)?_e.requestTimeout=De.timeout[De.timeout.length-1]:typeof De.timeout!="undefined"&&(_e.requestTimeout=De.timeout);var Ke=De.auth||Ae.auth;Ke&&(_e.auth=Ke);var nt=De.content||De.data,rt=Pe==="GET"||Pe==="HEAD"||De.dataAsQueryString;if(!De.content&&nt&&!(typeof nt=="string"||z.isBuffer(nt)))if(rt)nt=De.nestedQuerystring?qs.stringify(nt):querystring.stringify(nt);else{var et=_e.headers["Content-Type"]||_e.headers["content-type"];et||(De.contentType==="json"?et="application/json":et="application/x-www-form-urlencoded",_e.headers["Content-Type"]=et),pe(et)==="application/json"?nt=JSON.stringify(nt):nt=De.nestedQuerystring?qs.stringify(nt):querystring.stringify(nt)}rt&&nt&&(_e.path+=(Ae.query?"&":"?")+nt,nt=null);var Ve=0;if(nt){var Ye=nt.length;z.isBuffer(nt)||(Ye=z.byteLength(nt)),Ve=_e.headers["Content-Length"]=Ye}De.dataType==="json"&&(_e.headers.Accept="application/json"),typeof De.beforeRequest=="function"&&De.beforeRequest(_e);var Ge=null,it=null,qe=null,vt=!1,ot=!1,Qe=0,Fe=-1,Re=!1,ne="",fe="",Ne=null;De.timing&&(Ne={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function We(){Ge&&(clearTimeout(Ge),Ge=null)}function we(){it&&(clearTimeout(it),it=null)}function ye(wt,Bt,At){if(we(),!Se){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Ie,x.pid,_e.method,Be),wt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),Ie,x.pid,wt.name,wt.message,wt.stack);return}var pt=Se;Se=null;var Mt={};At&&(Fe=At.statusCode,Mt=At.headers);var kt=Date.now()-Le;Ne&&(Ne.contentDownload=kt),te("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",kt,Qe,Fe,_e.method,_e.host,_e.path,ot,Ne);var xt={status:Fe,statusCode:Fe,headers:Mt,size:Qe,aborted:Re,rt:kt,keepAliveSocket:ot,data:Bt,requestUrls:De.requestUrls,timing:Ne,remoteAddress:ne,remotePort:fe};if(wt){var It="";Je&&typeof Je.getCurrentStatus=="function"&&(It=", agent status: "+JSON.stringify(Je.getCurrentStatus())),wt.message+=", "+_e.method+" "+Be+" "+Fe+" (connected: "+vt+", keepalive socket: "+ot+It+`)
headers: `+JSON.stringify(Mt),wt.data=Bt,wt.path=_e.path,wt.status=Fe,wt.headers=Mt,wt.res=xt}pt(wt,Bt,De.streaming?At:xt),De.emitter&&(Me.url=Be,Me.socket=ct&&ct.connection,Me.options=_e,Me.size=Ve,De.emitter.emit("response",{requestId:Ie,error:wt,ctx:De.ctx,req:Me,res:xt}))}function Oe(wt){var Bt=null;if(De.followRedirect&&statuses.redirect[wt.statusCode]){De._followRedirectCount=(De._followRedirectCount||0)+1;var At=wt.headers.location;if(!At)Bt=new Error("Got statusCode "+wt.statusCode+" but cannot resolve next location from headers"),Bt.name="FollowRedirectError";else if(De._followRedirectCount>De.maxRedirects)Bt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Be),Bt.name="MaxRedirectError";else{var pt=De.formatRedirectUrl?De.formatRedirectUrl(Be,At):ue.resolve(Be,At);te("Request#%d %s: `redirected` from %s to %s",Ie,_e.path,Be,pt),we(),De.headers&&De.headers.Host&&me.test(At)&&(De.headers.Host=null);var Mt=Se;return Se=null,ge.requestWithCallback(pt,De,Mt),{redirect:!0,error:null}}}return{redirect:!1,error:Bt}}De.gzip&&!_e.headers["Accept-Encoding"]&&!_e.headers["accept-encoding"]&&(_e.headers["Accept-Encoding"]="gzip");function $e(wt,Bt,At){var pt=wt.headers["content-encoding"];return At(null,Bt,pt)}var Ze=De.writeStream;te("Request#%d %s %s with headers %j, options.path: %s",Ie,Pe,Be,_e.headers,_e.path),De.requestUrls.push(Be);function Xe(wt){if(Ne&&(Ne.waiting=Date.now()-Le),te("Request#%d %s `req response` event emit: status %d, headers: %j",Ie,Be,wt.statusCode,wt.headers),De.streaming){var Bt=Oe(wt);if(Bt.redirect){wt.resume();return}return Bt.error?(wt.resume(),ye(Bt.error,null,wt)):ye(null,null,wt)}if(wt.on("close",function(){te("Request#%d %s: `res close` event emit, total size %d",Ie,Be,Qe)}),wt.on("error",function(){te("Request#%d %s: `res error` event emit, total size %d",Ie,Be,Qe)}),wt.on("aborted",function(){Re=!0,te("Request#%d %s: `res aborted` event emit, total size %d",Ie,Be,Qe)}),Ze){var At=Oe(wt);if(At.redirect){wt.resume();return}return At.error?(wt.resume(),Ze.end(),ye(At.error,null,wt)):(De.consumeWriteStream===!1?wt.on("end",ye.bind(null,null,null,wt)):Ze.on("close",function(){te("Request#%d %s: writeStream close event emitted",Ie,Be),ye(qe||null,null,wt)}),wt.pipe(Ze))}var pt=[];wt.on("data",function(Mt){te("Request#%d %s: `res data` event emit, size %d",Ie,Be,Mt.length),Qe+=Mt.length,pt.push(Mt)}),wt.on("end",function(){var Mt=z.concat(pt,Qe);if(te("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Ie,Be,Qe,wt._dumped),qe)return ye(qe,Mt,wt);var kt=Oe(wt);if(kt.error)return ye(kt.error,Mt,wt);kt.redirect||$e(wt,Mt,function(xt,It,Ut){if(xt)return ye(xt,Mt,wt);if(!Ut&&je.indexOf(De.dataType)>=0){try{It=decodeBodyByCharset(It,wt)}catch(St){return te("decodeBodyByCharset error: %s",St),ye(null,It,wt)}if(De.dataType==="json")if(Qe===0)It=null;else{var en=parseJSON(It,st);en.error?xt=en.error:It=en.data}}Re&&te("Request#%d %s: Remote socket was terminated before `response.end()` was called",Ie,Be),ye(xt,It,wt)})})}var at,lt;Array.isArray(De.timeout)?(at=se(De.timeout[0]),lt=se(De.timeout[1])):at=lt=se(De.timeout),te("ConnectTimeout: %d, ResponseTimeout: %d",at,lt);function mt(){te("Connect timer ticking, timeout: %d",at),Ge=setTimeout(function(){Ge=null,Fe===-1&&(Fe=-2);var wt="Connect timeout for "+at+"ms",Bt="ConnectionTimeoutError";ct.socket||(Bt="SocketAssignTimeoutError",wt+=", working sockets is full"),qe=new Error(wt),qe.name=Bt,qe.requestId=Ie,te("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Ie,Be,qe.name,wt,vt),Pt()},at)}function ut(){te("Response timer ticking, timeout: %d",lt),it=setTimeout(function(){it=null;var wt="Response timeout for "+lt+"ms",Bt="ResponseTimeoutError";qe=new Error(wt),qe.name=Bt,qe.requestId=Ie,te("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Ie,Be,qe.name,wt,vt),Pt()},lt)}var ct;_e.mode=De.mode?De.mode:"";try{ct=He.request(_e,Xe)}catch(wt){return ye(wt)}typeof window=="undefined"?mt():ct.on("requestTimeout",function(){Fe===-1&&(Fe=-2);var wt="Connect timeout for "+at+"ms",Bt="ConnectionTimeoutError";qe=new Error(wt),qe.name=Bt,qe.requestId=Ie,Pt()});function Pt(){te("Request#%d %s abort, connected: %s",Ie,Be,vt),ct.socket||(qe.noSocket=!0,ye(qe)),ct.abort()}return Ne&&ct.on("finish",function(){Ne.requestSent=Date.now()-Le}),ct.once("socket",function(wt){Ne&&(Ne.queuing=Date.now()-Le);var Bt=wt.readyState;if(Bt==="opening"){wt.once("lookup",function(At,pt,Mt){te("Request#%d %s lookup: %s, %s, %s",Ie,Be,At,pt,Mt),Ne&&(Ne.dnslookup=Date.now()-Le),pt&&(ne=pt)}),wt.once("connect",function(){Ne&&(Ne.connected=Date.now()-Le),We(),ut(),te("Request#%d %s new socket connected",Ie,Be),vt=!0,ne||(ne=wt.remoteAddress),fe=wt.remotePort});return}te("Request#%d %s reuse socket connected, readyState: %s",Ie,Be,Bt),vt=!0,ot=!0,ne||(ne=wt.remoteAddress),fe=wt.remotePort,We(),ut()}),ct.on("error",function(wt){(wt.name==="Error"||wt.name==="TypeError")&&(wt.name=vt?"ResponseError":"RequestError"),wt.message+=' (req "error")',te("Request#%d %s `req error` event emit, %s: %s",Ie,Be,wt.name,wt.message),ye(qe||wt)}),Ze&&Ze.once("error",function(wt){wt.message+=' (writeStream "error")',qe=wt,te("Request#%d %s `writeStream error` event emit, %s: %s",Ie,Be,wt.name,wt.message),Pt()}),De.stream?(De.stream.pipe(ct),De.stream.once("error",function(wt){wt.message+=' (stream "error")',qe=wt,te("Request#%d %s `readStream error` event emit, %s: %s",Ie,Be,wt.name,wt.message),Pt()})):ct.end(nt),ct.requestId=Ie,ct}}).call(this)}).call(this,a("_process"),a("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(on,Lt){"use strict";const Ce=function(){const le=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let yt=1;yt<arguments.length;yt++){const a=yt<0||arguments.length<=yt?void 0:arguments[yt];a&&Object.keys(a).forEach(Te=>{const ge=a[Te];ge!==void 0&&(le[Te]=ge)})}return le};Lt.Z=Ce},86013:function(on,Lt,Ce){"use strict";var le=Ce(59301),yt=Ce(19248);const a=Te=>{let ge;return typeof Te=="object"&&(Te!=null&&Te.clearIcon)?ge=Te:Te&&(ge={clearIcon:le.createElement(yt.Z,null)}),ge};Lt.Z=a},54500:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return le}});const le=yt=>yt?typeof yt=="function"?yt():yt:null},97224:function(on,Lt,Ce){"use strict";Ce.d(Lt,{F:function(){return le}});function le(a){return a!=null&&a===a.window}const yt=a=>{var Te,ge;if(typeof window=="undefined")return 0;let x=0;return le(a)?x=a.pageYOffset:a instanceof Document?x=a.documentElement.scrollTop:(a instanceof HTMLElement||a)&&(x=a.scrollTop),a&&!le(a)&&typeof x!="number"&&(x=(ge=((Te=a.ownerDocument)!==null&&Te!==void 0?Te:a).documentElement)===null||ge===void 0?void 0:ge.scrollTop),x};Lt.Z=yt},83010:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return Te}});var le=Ce(16089);function yt(ge,x,z,ie){const oe=z-x;return ge/=ie/2,ge<1?oe/2*ge*ge*ge+x:oe/2*((ge-=2)*ge*ge+2)+x}var a=Ce(97224);function Te(ge){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:z=()=>window,callback:ie,duration:oe=450}=x,ee=z(),ue=(0,a.Z)(ee),E=Date.now(),re=()=>{const se=Date.now()-E,ae=yt(se>oe?oe:se,ue,ge,oe);(0,a.F)(ee)?ee.scrollTo(window.pageXOffset,ae):ee instanceof Document||ee.constructor.name==="HTMLDocument"?ee.documentElement.scrollTop=ae:ee.scrollTop=ae,se<oe?(0,le.Z)(re):typeof ie=="function"&&ie()};(0,le.Z)(re)}},62673:function(on,Lt,Ce){"use strict";Ce.d(Lt,{default:function(){return Se}});var le=Ce(59301),yt=Ce(92310),a=Ce.n(yt),Te=Ce(16632),ge=Ce(8654),x=Ce(12919),z=Ce(63872),ie=Ce(48755),oe=Ce(2171),ee=Ce(83397),ue=Ce(56553),re=le.createContext(null),te=Ce(36170),se=Ce(74632),ae=function(Ee,Ie){var Me={};for(var Le in Ee)Object.prototype.hasOwnProperty.call(Ee,Le)&&Ie.indexOf(Le)<0&&(Me[Le]=Ee[Le]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Le=Object.getOwnPropertySymbols(Ee);Ae<Le.length;Ae++)Ie.indexOf(Le[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Le[Ae])&&(Me[Le[Ae]]=Ee[Le[Ae]]);return Me};const he=(Ee,Ie)=>{var Me;const{prefixCls:Le,className:Ae,rootClassName:Pe,children:Ue,indeterminate:He=!1,style:Je,onMouseEnter:st,onMouseLeave:_e,skipGroup:Ke=!1,disabled:nt}=Ee,rt=ae(Ee,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:et,direction:Ve,checkbox:Ye}=le.useContext(ie.E_),Ge=le.useContext(re),{isFormItemInput:it}=le.useContext(ue.aM),qe=le.useContext(oe.Z),vt=(Me=(Ge==null?void 0:Ge.disabled)||nt)!==null&&Me!==void 0?Me:qe,ot=le.useRef(rt.value),Qe=le.useRef(null),Fe=(0,ge.sQ)(Ie,Qe);le.useEffect(()=>{Ge==null||Ge.registerValue(rt.value)},[]),le.useEffect(()=>{if(!Ke)return rt.value!==ot.current&&(Ge==null||Ge.cancelValue(ot.current),Ge==null||Ge.registerValue(rt.value),ot.current=rt.value),()=>Ge==null?void 0:Ge.cancelValue(rt.value)},[rt.value]),le.useEffect(()=>{var Xe;!((Xe=Qe.current)===null||Xe===void 0)&&Xe.input&&(Qe.current.input.indeterminate=He)},[He]);const Re=et("checkbox",Le),ne=(0,ee.Z)(Re),[fe,Ne,We]=(0,te.ZP)(Re,ne),we=Object.assign({},rt);Ge&&!Ke&&(we.onChange=function(){rt.onChange&&rt.onChange.apply(rt,arguments),Ge.toggleOption&&Ge.toggleOption({label:Ue,value:rt.value})},we.name=Ge.name,we.checked=Ge.value.includes(rt.value));const ye=a()(`${Re}-wrapper`,{[`${Re}-rtl`]:Ve==="rtl",[`${Re}-wrapper-checked`]:we.checked,[`${Re}-wrapper-disabled`]:vt,[`${Re}-wrapper-in-form-item`]:it},Ye==null?void 0:Ye.className,Ae,Pe,We,ne,Ne),Oe=a()({[`${Re}-indeterminate`]:He},z.A,Ne),[$e,Ze]=(0,se.Z)(we.onClick);return fe(le.createElement(x.Z,{component:"Checkbox",disabled:vt},le.createElement("label",{className:ye,style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),Je),onMouseEnter:st,onMouseLeave:_e,onClick:$e},le.createElement(Te.Z,Object.assign({},we,{onClick:Ze,prefixCls:Re,className:Oe,disabled:vt,ref:Fe})),Ue!==void 0&&le.createElement("span",{className:`${Re}-label`},Ue))))};var ve=le.forwardRef(he),pe=Ce(77654),be=Ce(2738),je=function(Ee,Ie){var Me={};for(var Le in Ee)Object.prototype.hasOwnProperty.call(Ee,Le)&&Ie.indexOf(Le)<0&&(Me[Le]=Ee[Le]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Le=Object.getOwnPropertySymbols(Ee);Ae<Le.length;Ae++)Ie.indexOf(Le[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Le[Ae])&&(Me[Le[Ae]]=Ee[Le[Ae]]);return Me},Be=le.forwardRef((Ee,Ie)=>{const{defaultValue:Me,children:Le,options:Ae=[],prefixCls:Pe,className:Ue,rootClassName:He,style:Je,onChange:st}=Ee,_e=je(Ee,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ke,direction:nt}=le.useContext(ie.E_),[rt,et]=le.useState(_e.value||Me||[]),[Ve,Ye]=le.useState([]);le.useEffect(()=>{"value"in _e&&et(_e.value||[])},[_e.value]);const Ge=le.useMemo(()=>Ae.map(Oe=>typeof Oe=="string"||typeof Oe=="number"?{label:Oe,value:Oe}:Oe),[Ae]),it=Oe=>{Ye($e=>$e.filter(Ze=>Ze!==Oe))},qe=Oe=>{Ye($e=>[].concat((0,pe.Z)($e),[Oe]))},vt=Oe=>{const $e=rt.indexOf(Oe.value),Ze=(0,pe.Z)(rt);$e===-1?Ze.push(Oe.value):Ze.splice($e,1),"value"in _e||et(Ze),st==null||st(Ze.filter(Xe=>Ve.includes(Xe)).sort((Xe,at)=>{const lt=Ge.findIndex(ut=>ut.value===Xe),mt=Ge.findIndex(ut=>ut.value===at);return lt-mt}))},ot=Ke("checkbox",Pe),Qe=`${ot}-group`,Fe=(0,ee.Z)(ot),[Re,ne,fe]=(0,te.ZP)(ot,Fe),Ne=(0,be.Z)(_e,["value","disabled"]),We=Ae.length?Ge.map(Oe=>le.createElement(ve,{prefixCls:ot,key:Oe.value.toString(),disabled:"disabled"in Oe?Oe.disabled:_e.disabled,value:Oe.value,checked:rt.includes(Oe.value),onChange:Oe.onChange,className:`${Qe}-item`,style:Oe.style,title:Oe.title,id:Oe.id,required:Oe.required},Oe.label)):Le,we={toggleOption:vt,value:rt,disabled:_e.disabled,name:_e.name,registerValue:qe,cancelValue:it},ye=a()(Qe,{[`${Qe}-rtl`]:nt==="rtl"},Ue,He,fe,Fe,ne);return Re(le.createElement("div",Object.assign({className:ye,style:Je},Ne,{ref:Ie}),le.createElement(re.Provider,{value:we},We)))});const De=ve;De.Group=Be,De.__ANT_CHECKBOX=!0;var Se=De},36170:function(on,Lt,Ce){"use strict";Ce.d(Lt,{C2:function(){return x}});var le=Ce(36237),yt=Ce(63356),a=Ce(51636),Te=Ce(16931);const ge=z=>{const{checkboxCls:ie}=z,oe=`${ie}-wrapper`;return[{[`${ie}-group`]:Object.assign(Object.assign({},(0,yt.Wf)(z)),{display:"inline-flex",flexWrap:"wrap",columnGap:z.marginXS,[`> ${z.antCls}-row`]:{flex:1}}),[oe]:Object.assign(Object.assign({},(0,yt.Wf)(z)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${oe}`]:{marginInlineStart:0},[`&${oe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ie]:Object.assign(Object.assign({},(0,yt.Wf)(z)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:z.borderRadiusSM,alignSelf:"center",[`${ie}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ie}-inner`]:Object.assign({},(0,yt.oN)(z))},[`${ie}-inner`]:{boxSizing:"border-box",display:"block",width:z.checkboxSize,height:z.checkboxSize,direction:"ltr",backgroundColor:z.colorBgContainer,border:`${(0,le.unit)(z.lineWidth)} ${z.lineType} ${z.colorBorder}`,borderRadius:z.borderRadiusSM,borderCollapse:"separate",transition:`all ${z.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:z.calc(z.checkboxSize).div(14).mul(5).equal(),height:z.calc(z.checkboxSize).div(14).mul(8).equal(),border:`${(0,le.unit)(z.lineWidthBold)} solid ${z.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${z.motionDurationFast} ${z.motionEaseInBack}, opacity ${z.motionDurationFast}`}},"& + span":{paddingInlineStart:z.paddingXS,paddingInlineEnd:z.paddingXS}})},{[`
${oe}:not(${oe}-disabled),
${ie}:not(${ie}-disabled)
`]:{[`&:hover ${ie}-inner`]:{borderColor:z.colorPrimary}},[`${oe}:not(${oe}-disabled)`]:{[`&:hover ${ie}-checked:not(${ie}-disabled) ${ie}-inner`]:{backgroundColor:z.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ie}-checked:not(${ie}-disabled):after`]:{borderColor:z.colorPrimaryHover}}},{[`${ie}-checked`]:{[`${ie}-inner`]:{backgroundColor:z.colorPrimary,borderColor:z.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${z.motionDurationMid} ${z.motionEaseOutBack} ${z.motionDurationFast}`}}},[`
${oe}-checked:not(${oe}-disabled),
${ie}-checked:not(${ie}-disabled)
`]:{[`&:hover ${ie}-inner`]:{backgroundColor:z.colorPrimaryHover,borderColor:"transparent"}}},{[ie]:{"&-indeterminate":{[`${ie}-inner`]:{backgroundColor:`${z.colorBgContainer} !important`,borderColor:`${z.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:z.calc(z.fontSizeLG).div(2).equal(),height:z.calc(z.fontSizeLG).div(2).equal(),backgroundColor:z.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${ie}-inner`]:{backgroundColor:`${z.colorBgContainer} !important`,borderColor:`${z.colorPrimary} !important`}}}},{[`${oe}-disabled`]:{cursor:"not-allowed"},[`${ie}-disabled`]:{[`&, ${ie}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ie}-inner`]:{background:z.colorBgContainerDisabled,borderColor:z.colorBorder,"&:after":{borderColor:z.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:z.colorTextDisabled},[`&${ie}-indeterminate ${ie}-inner::after`]:{background:z.colorTextDisabled}}}]};function x(z,ie){const oe=(0,a.mergeToken)(ie,{checkboxCls:`.${z}`,checkboxSize:ie.controlInteractiveSize});return[ge(oe)]}Lt.ZP=(0,Te.I$)("Checkbox",(z,ie)=>{let{prefixCls:oe}=ie;return[x(oe,z)]})},38406:function(on,Lt,Ce){"use strict";var le=Ce(59301),yt=Ce(48755),a=Ce(584);const Te=ge=>{const{componentName:x}=ge,{getPrefixCls:z}=(0,le.useContext)(yt.E_),ie=z("empty");switch(x){case"Table":case"List":return le.createElement(a.Z,{image:a.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return le.createElement(a.Z,{image:a.Z.PRESENTED_IMAGE_SIMPLE,className:`${ie}-small`});case"Table.filter":return null;default:return le.createElement(a.Z,null)}};Lt.Z=Te},36207:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return $e}});var le=Ce(59301),yt=Ce(92310),a=Ce.n(yt),Te=Ce(85899),ge=Ce(72190),x=Ce(43403),z=Ce(34280),ie=le.createContext(null),oe=le.createContext({}),ee=ie,ue=Ce(18642),E=Ce(60499),re=Ce(77900),te=Ce(10228),se=Ce(26112),ae=Ce(42244),he=Ce(8654),me=["prefixCls","className","containerRef"],ve=function(Xe){var at=Xe.prefixCls,lt=Xe.className,mt=Xe.containerRef,ut=(0,ae.Z)(Xe,me),ct=le.useContext(oe),Pt=ct.panel,wt=(0,he.x1)(Pt,mt);return le.createElement("div",(0,E.Z)({className:a()("".concat(at,"-content"),lt),role:"dialog",ref:wt},(0,se.Z)(Xe,{aria:!0}),{"aria-modal":"true"},ut))},pe=ve,be=Ce(48736);function je(Ze){return typeof Ze=="string"&&String(Number(Ze))===Ze?((0,be.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ze)):Ze}function ke(Ze){warning(!("wrapperClassName"in Ze),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ze.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(Ze,Xe){var at,lt,mt,ut=Ze.prefixCls,ct=Ze.open,Pt=Ze.placement,wt=Ze.inline,Bt=Ze.push,At=Ze.forceRender,pt=Ze.autoFocus,Mt=Ze.keyboard,kt=Ze.classNames,xt=Ze.rootClassName,It=Ze.rootStyle,Ut=Ze.zIndex,en=Ze.className,St=Ze.id,jt=Ze.style,Ht=Ze.motion,Qt=Ze.width,sn=Ze.height,wn=Ze.children,Bn=Ze.mask,Fn=Ze.maskClosable,gn=Ze.maskMotion,Dn=Ze.maskClassName,un=Ze.maskStyle,Tn=Ze.afterOpenChange,Mn=Ze.onClose,nn=Ze.onMouseEnter,tn=Ze.onMouseOver,dn=Ze.onMouseLeave,Cn=Ze.onClick,Pn=Ze.onKeyDown,Hn=Ze.onKeyUp,Gn=Ze.styles,_n=Ze.drawerRender,Yn=le.useRef(),Wn=le.useRef(),yr=le.useRef();le.useImperativeHandle(Xe,function(){return Yn.current});var cr=function($t){var zt=$t.keyCode,Wt=$t.shiftKey;switch(zt){case te.Z.TAB:{if(zt===te.Z.TAB){if(!Wt&&document.activeElement===yr.current){var hn;(hn=Wn.current)===null||hn===void 0||hn.focus({preventScroll:!0})}else if(Wt&&document.activeElement===Wn.current){var mn;(mn=yr.current)===null||mn===void 0||mn.focus({preventScroll:!0})}}break}case te.Z.ESC:{Mn&&Mt&&($t.stopPropagation(),Mn($t));break}}};le.useEffect(function(){if(ct&&pt){var Ft;(Ft=Yn.current)===null||Ft===void 0||Ft.focus({preventScroll:!0})}},[ct]);var cn=le.useState(!1),An=(0,ge.Z)(cn,2),qn=An[0],wr=An[1],Rt=le.useContext(ee),Xt;typeof Bt=="boolean"?Xt=Bt?{}:{distance:0}:Xt=Bt||{};var Et=(at=(lt=(mt=Xt)===null||mt===void 0?void 0:mt.distance)!==null&&lt!==void 0?lt:Rt==null?void 0:Rt.pushDistance)!==null&&at!==void 0?at:180,Dt=le.useMemo(function(){return{pushDistance:Et,push:function(){wr(!0)},pull:function(){wr(!1)}}},[Et]);le.useEffect(function(){if(ct){var Ft;Rt==null||(Ft=Rt.push)===null||Ft===void 0||Ft.call(Rt)}else{var $t;Rt==null||($t=Rt.pull)===null||$t===void 0||$t.call(Rt)}},[ct]),le.useEffect(function(){return function(){var Ft;Rt==null||(Ft=Rt.pull)===null||Ft===void 0||Ft.call(Rt)}},[]);var Tt=Bn&&le.createElement(re.default,(0,E.Z)({key:"mask"},gn,{visible:ct}),function(Ft,$t){var zt=Ft.className,Wt=Ft.style;return le.createElement("div",{className:a()("".concat(ut,"-mask"),zt,kt==null?void 0:kt.mask,Dn),style:(0,Te.Z)((0,Te.Z)((0,Te.Z)({},Wt),un),Gn==null?void 0:Gn.mask),onClick:Fn&&ct?Mn:void 0,ref:$t})}),_t=typeof Ht=="function"?Ht(Pt):Ht,bt={};if(qn&&Et)switch(Pt){case"top":bt.transform="translateY(".concat(Et,"px)");break;case"bottom":bt.transform="translateY(".concat(-Et,"px)");break;case"left":bt.transform="translateX(".concat(Et,"px)");break;default:bt.transform="translateX(".concat(-Et,"px)");break}Pt==="left"||Pt==="right"?bt.width=je(Qt):bt.height=je(sn);var Zt={onMouseEnter:nn,onMouseOver:tn,onMouseLeave:dn,onClick:Cn,onKeyDown:Pn,onKeyUp:Hn},Kt=le.createElement(re.default,(0,E.Z)({key:"panel"},_t,{visible:ct,forceRender:At,onVisibleChanged:function($t){Tn==null||Tn($t)},removeOnLeave:!1,leavedClassName:"".concat(ut,"-content-wrapper-hidden")}),function(Ft,$t){var zt=Ft.className,Wt=Ft.style,hn=le.createElement(pe,(0,E.Z)({id:St,containerRef:$t,prefixCls:ut,className:a()(en,kt==null?void 0:kt.content),style:(0,Te.Z)((0,Te.Z)({},jt),Gn==null?void 0:Gn.content)},(0,se.Z)(Ze,{aria:!0}),Zt),wn);return le.createElement("div",(0,E.Z)({className:a()("".concat(ut,"-content-wrapper"),kt==null?void 0:kt.wrapper,zt),style:(0,Te.Z)((0,Te.Z)((0,Te.Z)({},bt),Wt),Gn==null?void 0:Gn.wrapper)},(0,se.Z)(Ze,{data:!0})),_n?_n(hn):hn)}),Yt=(0,Te.Z)({},It);return Ut&&(Yt.zIndex=Ut),le.createElement(ee.Provider,{value:Dt},le.createElement("div",{className:a()(ut,"".concat(ut,"-").concat(Pt),xt,(0,ue.Z)((0,ue.Z)({},"".concat(ut,"-open"),ct),"".concat(ut,"-inline"),wt)),style:Yt,tabIndex:-1,ref:Yn,onKeyDown:cr},Tt,le.createElement("div",{tabIndex:0,ref:Wn,style:Be,"aria-hidden":"true","data-sentinel":"start"}),Kt,le.createElement("div",{tabIndex:0,ref:yr,style:Be,"aria-hidden":"true","data-sentinel":"end"})))}var Se=le.forwardRef(De),Ee=Se,Ie=function(Xe){var at=Xe.open,lt=at===void 0?!1:at,mt=Xe.prefixCls,ut=mt===void 0?"rc-drawer":mt,ct=Xe.placement,Pt=ct===void 0?"right":ct,wt=Xe.autoFocus,Bt=wt===void 0?!0:wt,At=Xe.keyboard,pt=At===void 0?!0:At,Mt=Xe.width,kt=Mt===void 0?378:Mt,xt=Xe.mask,It=xt===void 0?!0:xt,Ut=Xe.maskClosable,en=Ut===void 0?!0:Ut,St=Xe.getContainer,jt=Xe.forceRender,Ht=Xe.afterOpenChange,Qt=Xe.destroyOnClose,sn=Xe.onMouseEnter,wn=Xe.onMouseOver,Bn=Xe.onMouseLeave,Fn=Xe.onClick,gn=Xe.onKeyDown,Dn=Xe.onKeyUp,un=Xe.panelRef,Tn=le.useState(!1),Mn=(0,ge.Z)(Tn,2),nn=Mn[0],tn=Mn[1],dn=le.useState(!1),Cn=(0,ge.Z)(dn,2),Pn=Cn[0],Hn=Cn[1];(0,z.Z)(function(){Hn(!0)},[]);var Gn=Pn?lt:!1,_n=le.useRef(),Yn=le.useRef();(0,z.Z)(function(){Gn&&(Yn.current=document.activeElement)},[Gn]);var Wn=function(qn){var wr;if(tn(qn),Ht==null||Ht(qn),!qn&&Yn.current&&!((wr=_n.current)!==null&&wr!==void 0&&wr.contains(Yn.current))){var Rt;(Rt=Yn.current)===null||Rt===void 0||Rt.focus({preventScroll:!0})}},yr=le.useMemo(function(){return{panel:un}},[un]);if(!jt&&!nn&&!Gn&&Qt)return null;var cr={onMouseEnter:sn,onMouseOver:wn,onMouseLeave:Bn,onClick:Fn,onKeyDown:gn,onKeyUp:Dn},cn=(0,Te.Z)((0,Te.Z)({},Xe),{},{open:Gn,prefixCls:ut,placement:Pt,autoFocus:Bt,keyboard:pt,width:kt,mask:It,maskClosable:en,inline:St===!1,afterOpenChange:Wn,ref:_n},cr);return le.createElement(oe.Provider,{value:yr},le.createElement(x.Z,{open:Gn||jt||nn,autoDestroy:!1,getContainer:St,autoLock:It&&(Gn||nn)},le.createElement(Ee,cn)))},Me=Ie,Le=Me,Ae=Ce(62487),Pe=Ce(75030),Ue=Ce(86641),He=Ce(55743),Je=Ce(48755),st=Ce(91190),_e=Ce(78776),Ke=Ce(458),rt=Ze=>{var Xe,at;const{prefixCls:lt,title:mt,footer:ut,extra:ct,loading:Pt,onClose:wt,headerStyle:Bt,bodyStyle:At,footerStyle:pt,children:Mt,classNames:kt,styles:xt}=Ze,It=(0,Je.dj)("drawer"),Ut=le.useCallback(Qt=>le.createElement("button",{type:"button",onClick:wt,"aria-label":"Close",className:`${lt}-close`},Qt),[wt]),[en,St]=(0,_e.Z)((0,_e.w)(Ze),(0,_e.w)(It),{closable:!0,closeIconRender:Ut}),jt=le.useMemo(()=>{var Qt,sn;return!mt&&!en?null:le.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Qt=It.styles)===null||Qt===void 0?void 0:Qt.header),Bt),xt==null?void 0:xt.header),className:a()(`${lt}-header`,{[`${lt}-header-close-only`]:en&&!mt&&!ct},(sn=It.classNames)===null||sn===void 0?void 0:sn.header,kt==null?void 0:kt.header)},le.createElement("div",{className:`${lt}-header-title`},St,mt&&le.createElement("div",{className:`${lt}-title`},mt)),ct&&le.createElement("div",{className:`${lt}-extra`},ct))},[en,St,ct,Bt,lt,mt]),Ht=le.useMemo(()=>{var Qt,sn;if(!ut)return null;const wn=`${lt}-footer`;return le.createElement("div",{className:a()(wn,(Qt=It.classNames)===null||Qt===void 0?void 0:Qt.footer,kt==null?void 0:kt.footer),style:Object.assign(Object.assign(Object.assign({},(sn=It.styles)===null||sn===void 0?void 0:sn.footer),pt),xt==null?void 0:xt.footer)},ut)},[ut,pt,lt]);return le.createElement(le.Fragment,null,jt,le.createElement("div",{className:a()(`${lt}-body`,kt==null?void 0:kt.body,(Xe=It.classNames)===null||Xe===void 0?void 0:Xe.body),style:Object.assign(Object.assign(Object.assign({},(at=It.styles)===null||at===void 0?void 0:at.body),At),xt==null?void 0:xt.body)},Pt?le.createElement(Ke.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${lt}-body-skeleton`}):Mt),Ht)},et=Ce(36237),Ve=Ce(63356),Ye=Ce(16931),Ge=Ce(51636);const it=Ze=>{const Xe="100%";return{left:`translateX(-${Xe})`,right:`translateX(${Xe})`,top:`translateY(-${Xe})`,bottom:`translateY(${Xe})`}[Ze]},qe=(Ze,Xe)=>({"&-enter, &-appear":Object.assign(Object.assign({},Ze),{"&-active":Xe}),"&-leave":Object.assign(Object.assign({},Xe),{"&-active":Ze})}),vt=(Ze,Xe)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Xe}`}}},qe({opacity:Ze},{opacity:1})),ot=(Ze,Xe)=>[vt(.7,Xe),qe({transform:it(Ze)},{transform:"none"})];var Fe=Ze=>{const{componentCls:Xe,motionDurationSlow:at}=Ze;return{[Xe]:{[`${Xe}-mask-motion`]:vt(0,at),[`${Xe}-panel-motion`]:["left","right","top","bottom"].reduce((lt,mt)=>Object.assign(Object.assign({},lt),{[`&-${mt}`]:ot(mt,at)}),{})}}};const Re=Ze=>{const{borderRadiusSM:Xe,componentCls:at,zIndexPopup:lt,colorBgMask:mt,colorBgElevated:ut,motionDurationSlow:ct,motionDurationMid:Pt,paddingXS:wt,padding:Bt,paddingLG:At,fontSizeLG:pt,lineHeightLG:Mt,lineWidth:kt,lineType:xt,colorSplit:It,marginXS:Ut,colorIcon:en,colorIconHover:St,colorBgTextHover:jt,colorBgTextActive:Ht,colorText:Qt,fontWeightStrong:sn,footerPaddingBlock:wn,footerPaddingInline:Bn,calc:Fn}=Ze,gn=`${at}-content-wrapper`;return{[at]:{position:"fixed",inset:0,zIndex:lt,pointerEvents:"none",color:Qt,"&-pure":{position:"relative",background:ut,display:"flex",flexDirection:"column",[`&${at}-left`]:{boxShadow:Ze.boxShadowDrawerLeft},[`&${at}-right`]:{boxShadow:Ze.boxShadowDrawerRight},[`&${at}-top`]:{boxShadow:Ze.boxShadowDrawerUp},[`&${at}-bottom`]:{boxShadow:Ze.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${at}-mask`]:{position:"absolute",inset:0,zIndex:lt,background:mt,pointerEvents:"auto"},[gn]:{position:"absolute",zIndex:lt,maxWidth:"100vw",transition:`all ${ct}`,"&-hidden":{display:"none"}},[`&-left > ${gn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Ze.boxShadowDrawerLeft},[`&-right > ${gn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Ze.boxShadowDrawerRight},[`&-top > ${gn}`]:{top:0,insetInline:0,boxShadow:Ze.boxShadowDrawerUp},[`&-bottom > ${gn}`]:{bottom:0,insetInline:0,boxShadow:Ze.boxShadowDrawerDown},[`${at}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:ut,pointerEvents:"auto"},[`${at}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,et.unit)(Bt)} ${(0,et.unit)(At)}`,fontSize:pt,lineHeight:Mt,borderBottom:`${(0,et.unit)(kt)} ${xt} ${It}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${at}-extra`]:{flex:"none"},[`${at}-close`]:Object.assign({display:"inline-flex",width:Fn(pt).add(wt).equal(),height:Fn(pt).add(wt).equal(),borderRadius:Xe,justifyContent:"center",alignItems:"center",marginInlineEnd:Ut,color:en,fontWeight:sn,fontSize:pt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Pt}`,textRendering:"auto","&:hover":{color:St,backgroundColor:jt,textDecoration:"none"},"&:active":{backgroundColor:Ht}},(0,Ve.Qy)(Ze)),[`${at}-title`]:{flex:1,margin:0,fontWeight:Ze.fontWeightStrong,fontSize:pt,lineHeight:Mt},[`${at}-body`]:{flex:1,minWidth:0,minHeight:0,padding:At,overflow:"auto",[`${at}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${at}-footer`]:{flexShrink:0,padding:`${(0,et.unit)(wn)} ${(0,et.unit)(Bn)}`,borderTop:`${(0,et.unit)(kt)} ${xt} ${It}`},"&-rtl":{direction:"rtl"}}}},ne=Ze=>({zIndexPopup:Ze.zIndexPopupBase,footerPaddingBlock:Ze.paddingXS,footerPaddingInline:Ze.padding});var fe=(0,Ye.I$)("Drawer",Ze=>{const Xe=(0,Ge.mergeToken)(Ze,{});return[Re(Xe),Fe(Xe)]},ne),Ne=function(Ze,Xe){var at={};for(var lt in Ze)Object.prototype.hasOwnProperty.call(Ze,lt)&&Xe.indexOf(lt)<0&&(at[lt]=Ze[lt]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,lt=Object.getOwnPropertySymbols(Ze);mt<lt.length;mt++)Xe.indexOf(lt[mt])<0&&Object.prototype.propertyIsEnumerable.call(Ze,lt[mt])&&(at[lt[mt]]=Ze[lt[mt]]);return at};const We=null,we={distance:180},ye=Ze=>{var Xe;const{rootClassName:at,width:lt,height:mt,size:ut="default",mask:ct=!0,push:Pt=we,open:wt,afterOpenChange:Bt,onClose:At,prefixCls:pt,getContainer:Mt,style:kt,className:xt,visible:It,afterVisibleChange:Ut,maskStyle:en,drawerStyle:St,contentWrapperStyle:jt}=Ze,Ht=Ne(Ze,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Qt,getPrefixCls:sn,direction:wn,className:Bn,style:Fn,classNames:gn,styles:Dn}=(0,Je.dj)("drawer"),un=sn("drawer",pt),[Tn,Mn,nn]=fe(un),tn=Mt===void 0&&Qt?()=>Qt(document.body):Mt,dn=a()({"no-mask":!ct,[`${un}-rtl`]:wn==="rtl"},at,Mn,nn),Cn=le.useMemo(()=>lt!=null?lt:ut==="large"?736:378,[lt,ut]),Pn=le.useMemo(()=>mt!=null?mt:ut==="large"?736:378,[mt,ut]),Hn={motionName:(0,Ue.m)(un,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Gn=cn=>({motionName:(0,Ue.m)(un,`panel-motion-${cn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),_n=(0,st.H)(),[Yn,Wn]=(0,Pe.Cn)("Drawer",Ht.zIndex),{classNames:yr={},styles:cr={}}=Ht;return Tn(le.createElement(Ae.Z,{form:!0,space:!0},le.createElement(He.Z.Provider,{value:Wn},le.createElement(Le,Object.assign({prefixCls:un,onClose:At,maskMotion:Hn,motion:Gn},Ht,{classNames:{mask:a()(yr.mask,gn.mask),content:a()(yr.content,gn.content),wrapper:a()(yr.wrapper,gn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},cr.mask),en),Dn.mask),content:Object.assign(Object.assign(Object.assign({},cr.content),St),Dn.content),wrapper:Object.assign(Object.assign(Object.assign({},cr.wrapper),jt),Dn.wrapper)},open:wt!=null?wt:It,mask:ct,push:Pt,width:Cn,height:Pn,style:Object.assign(Object.assign({},Fn),kt),className:a()(Bn,xt),rootClassName:dn,getContainer:tn,afterOpenChange:Bt!=null?Bt:Ut,panelRef:_n,zIndex:Yn}),le.createElement(rt,Object.assign({prefixCls:un},Ht,{onClose:At}))))))},Oe=Ze=>{const{prefixCls:Xe,style:at,className:lt,placement:mt="right"}=Ze,ut=Ne(Ze,["prefixCls","style","className","placement"]),{getPrefixCls:ct}=le.useContext(Je.E_),Pt=ct("drawer",Xe),[wt,Bt,At]=fe(Pt),pt=a()(Pt,`${Pt}-pure`,`${Pt}-${mt}`,Bt,At,lt);return wt(le.createElement("div",{className:pt,style:at},le.createElement(rt,Object.assign({prefixCls:Pt},ut))))};ye._InternalPanelDoNotUseOrYouWillBeFired=Oe;var $e=ye},19563:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return et}});var le=Ce(59301),yt=Ce(33853),a=Ce(38819),Te=Ce(92310),ge=Ce.n(Te),x=Ce(96478),z=Ce(6089),ie=Ce(18929),oe=Ce(2738),ee=Ce(75030),E=Ve=>typeof Ve!="object"&&typeof Ve!="function"||Ve===null,re=Ce(52838),te=Ce(45915),se=Ce(22703),ae=Ce(32383),he=Ce(55743),me=Ce(48755),ve=Ce(83397),pe=Ce(93041),be=Ce(78857),je=Ce(57700),ke=Ce(36237),Be=Ce(63356),De=Ce(46e3),Se=Ce(93873),Ee=Ce(34925),Ie=Ce(37645),Me=Ce(36305),Le=Ce(16931),Ae=Ce(51636),Ue=Ve=>{const{componentCls:Ye,menuCls:Ge,colorError:it,colorTextLightSolid:qe}=Ve,vt=`${Ge}-item`;return{[`${Ye}, ${Ye}-menu-submenu`]:{[`${Ge} ${vt}`]:{[`&${vt}-danger:not(${vt}-disabled)`]:{color:it,"&:hover":{color:qe,backgroundColor:it}}}}}};const He=Ve=>{const{componentCls:Ye,menuCls:Ge,zIndexPopup:it,dropdownArrowDistance:qe,sizePopupArrow:vt,antCls:ot,iconCls:Qe,motionDurationMid:Fe,paddingBlock:Re,fontSize:ne,dropdownEdgeChildPadding:fe,colorTextDisabled:Ne,fontSizeIcon:We,controlPaddingHorizontal:we,colorBgElevated:ye}=Ve;return[{[Ye]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:it,display:"block","&::before":{position:"absolute",insetBlock:Ve.calc(vt).div(2).sub(qe).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${ot}-btn`]:{[`& > ${Qe}-down, & > ${ot}-btn-icon > ${Qe}-down`]:{fontSize:We}},[`${Ye}-wrap`]:{position:"relative",[`${ot}-btn > ${Qe}-down`]:{fontSize:We},[`${Qe}-down::before`]:{transition:`transform ${Fe}`}},[`${Ye}-wrap-open`]:{[`${Qe}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${ot}-slide-down-enter${ot}-slide-down-enter-active${Ye}-placement-bottomLeft,
&${ot}-slide-down-appear${ot}-slide-down-appear-active${Ye}-placement-bottomLeft,
&${ot}-slide-down-enter${ot}-slide-down-enter-active${Ye}-placement-bottom,
&${ot}-slide-down-appear${ot}-slide-down-appear-active${Ye}-placement-bottom,
&${ot}-slide-down-enter${ot}-slide-down-enter-active${Ye}-placement-bottomRight,
&${ot}-slide-down-appear${ot}-slide-down-appear-active${Ye}-placement-bottomRight`]:{animationName:De.fJ},[`&${ot}-slide-up-enter${ot}-slide-up-enter-active${Ye}-placement-topLeft,
&${ot}-slide-up-appear${ot}-slide-up-appear-active${Ye}-placement-topLeft,
&${ot}-slide-up-enter${ot}-slide-up-enter-active${Ye}-placement-top,
&${ot}-slide-up-appear${ot}-slide-up-appear-active${Ye}-placement-top,
&${ot}-slide-up-enter${ot}-slide-up-enter-active${Ye}-placement-topRight,
&${ot}-slide-up-appear${ot}-slide-up-appear-active${Ye}-placement-topRight`]:{animationName:De.Qt},[`&${ot}-slide-down-leave${ot}-slide-down-leave-active${Ye}-placement-bottomLeft,
&${ot}-slide-down-leave${ot}-slide-down-leave-active${Ye}-placement-bottom,
&${ot}-slide-down-leave${ot}-slide-down-leave-active${Ye}-placement-bottomRight`]:{animationName:De.Uw},[`&${ot}-slide-up-leave${ot}-slide-up-leave-active${Ye}-placement-topLeft,
&${ot}-slide-up-leave${ot}-slide-up-leave-active${Ye}-placement-top,
&${ot}-slide-up-leave${ot}-slide-up-leave-active${Ye}-placement-topRight`]:{animationName:De.ly}}},(0,Ie.ZP)(Ve,ye,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Ye} ${Ge}`]:{position:"relative",margin:0},[`${Ge}-submenu-popup`]:{position:"absolute",zIndex:it,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ye}, ${Ye}-menu-submenu`]:Object.assign(Object.assign({},(0,Be.Wf)(Ve)),{[Ge]:Object.assign(Object.assign({padding:fe,listStyleType:"none",backgroundColor:ye,backgroundClip:"padding-box",borderRadius:Ve.borderRadiusLG,outline:"none",boxShadow:Ve.boxShadowSecondary},(0,Be.Qy)(Ve)),{"&:empty":{padding:0,boxShadow:"none"},[`${Ge}-item-group-title`]:{padding:`${(0,ke.unit)(Re)} ${(0,ke.unit)(we)}`,color:Ve.colorTextDescription,transition:`all ${Fe}`},[`${Ge}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ge}-item-icon`]:{minWidth:ne,marginInlineEnd:Ve.marginXS,fontSize:Ve.fontSizeSM},[`${Ge}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${Fe}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Ge}-item-extra`]:{paddingInlineStart:Ve.padding,marginInlineStart:"auto",fontSize:Ve.fontSizeSM,color:Ve.colorTextDescription}},[`${Ge}-item, ${Ge}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,ke.unit)(Re)} ${(0,ke.unit)(we)}`,color:Ve.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Ve.lineHeight,cursor:"pointer",transition:`all ${Fe}`,borderRadius:Ve.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ve.controlItemBgHover}},(0,Be.Qy)(Ve)),{"&-selected":{color:Ve.colorPrimary,backgroundColor:Ve.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ve.controlItemBgActiveHover}},"&-disabled":{color:Ne,cursor:"not-allowed","&:hover":{color:Ne,backgroundColor:ye,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,ke.unit)(Ve.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ve.colorSplit},[`${Ye}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ve.paddingXS,[`${Ye}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ve.colorTextDescription,fontSize:We,fontStyle:"normal"}}}),[`${Ge}-item-group-list`]:{margin:`0 ${(0,ke.unit)(Ve.marginXS)}`,padding:0,listStyle:"none"},[`${Ge}-submenu-title`]:{paddingInlineEnd:Ve.calc(we).add(Ve.fontSizeSM).equal()},[`${Ge}-submenu-vertical`]:{position:"relative"},[`${Ge}-submenu${Ge}-submenu-disabled ${Ye}-menu-submenu-title`]:{[`&, ${Ye}-menu-submenu-arrow-icon`]:{color:Ne,backgroundColor:ye,cursor:"not-allowed"}},[`${Ge}-submenu-selected ${Ye}-menu-submenu-title`]:{color:Ve.colorPrimary}})})},[(0,De.oN)(Ve,"slide-up"),(0,De.oN)(Ve,"slide-down"),(0,Se.Fm)(Ve,"move-up"),(0,Se.Fm)(Ve,"move-down"),(0,Ee._y)(Ve,"zoom-big")]]},Je=Ve=>Object.assign(Object.assign({zIndexPopup:Ve.zIndexPopupBase+50,paddingBlock:(Ve.controlHeight-Ve.fontSize*Ve.lineHeight)/2},(0,Ie.wZ)({contentRadius:Ve.borderRadiusLG,limitVerticalRadius:!0})),(0,Me.w)(Ve));var st=(0,Le.I$)("Dropdown",Ve=>{const{marginXXS:Ye,sizePopupArrow:Ge,paddingXXS:it,componentCls:qe}=Ve,vt=(0,Ae.mergeToken)(Ve,{menuCls:`${qe}-menu`,dropdownArrowDistance:Ve.calc(Ge).div(2).add(Ye).equal(),dropdownEdgeChildPadding:it});return[He(vt),Ue(vt)]},Je,{resetStyle:!1});const _e=null,Ke=Ve=>{var Ye;const{menu:Ge,arrow:it,prefixCls:qe,children:vt,trigger:ot,disabled:Qe,dropdownRender:Fe,getPopupContainer:Re,overlayClassName:ne,rootClassName:fe,overlayStyle:Ne,open:We,onOpenChange:we,visible:ye,onVisibleChange:Oe,mouseEnterDelay:$e=.15,mouseLeaveDelay:Ze=.1,autoAdjustOverflow:Xe=!0,placement:at="",overlay:lt,transitionName:mt}=Ve,{getPopupContainer:ut,getPrefixCls:ct,direction:Pt,dropdown:wt}=le.useContext(me.E_),Bt=(0,ae.ln)("Dropdown"),At=le.useMemo(()=>{const tn=ct();return mt!==void 0?mt:at.includes("top")?`${tn}-slide-down`:`${tn}-slide-up`},[ct,at,mt]),pt=le.useMemo(()=>at?at.includes("Center")?at.slice(0,at.indexOf("Center")):at:Pt==="rtl"?"bottomRight":"bottomLeft",[at,Pt]),Mt=ct("dropdown",qe),kt=(0,ve.Z)(Mt),[xt,It,Ut]=st(Mt,kt),[,en]=(0,je.ZP)(),St=le.Children.only(E(vt)?le.createElement("span",null,vt):vt),jt=(0,se.Tm)(St,{className:ge()(`${Mt}-trigger`,{[`${Mt}-rtl`]:Pt==="rtl"},St.props.className),disabled:(Ye=St.props.disabled)!==null&&Ye!==void 0?Ye:Qe}),Ht=Qe?[]:ot,Qt=!!(Ht!=null&&Ht.includes("contextMenu")),[sn,wn]=(0,ie.Z)(!1,{value:We!=null?We:ye}),Bn=(0,z.Z)(tn=>{we==null||we(tn,{source:"trigger"}),Oe==null||Oe(tn),wn(tn)}),Fn=ge()(ne,fe,It,Ut,kt,wt==null?void 0:wt.className,{[`${Mt}-rtl`]:Pt==="rtl"}),gn=(0,re.Z)({arrowPointAtCenter:typeof it=="object"&&it.pointAtCenter,autoAdjustOverflow:Xe,offset:en.marginXXS,arrowWidth:it?en.sizePopupArrow:0,borderRadius:en.borderRadius}),Dn=le.useCallback(()=>{Ge!=null&&Ge.selectable&&(Ge!=null&&Ge.multiple)||(we==null||we(!1,{source:"menu"}),wn(!1))},[Ge==null?void 0:Ge.selectable,Ge==null?void 0:Ge.multiple]),un=()=>{let tn;return Ge!=null&&Ge.items?tn=le.createElement(pe.default,Object.assign({},Ge)):typeof lt=="function"?tn=lt():tn=lt,Fe&&(tn=Fe(tn)),tn=le.Children.only(typeof tn=="string"?le.createElement("span",null,tn):tn),le.createElement(be.J,{prefixCls:`${Mt}-menu`,rootClassName:ge()(Ut,kt),expandIcon:le.createElement("span",{className:`${Mt}-menu-submenu-arrow`},Pt==="rtl"?le.createElement(yt.Z,{className:`${Mt}-menu-submenu-arrow-icon`}):le.createElement(a.Z,{className:`${Mt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Dn,validator:dn=>{let{mode:Cn}=dn}},tn)},[Tn,Mn]=(0,ee.Cn)("Dropdown",Ne==null?void 0:Ne.zIndex);let nn=le.createElement(x.Z,Object.assign({alignPoint:Qt},(0,oe.Z)(Ve,["rootClassName"]),{mouseEnterDelay:$e,mouseLeaveDelay:Ze,visible:sn,builtinPlacements:gn,arrow:!!it,overlayClassName:Fn,prefixCls:Mt,getPopupContainer:Re||ut,transitionName:At,trigger:Ht,overlay:un,placement:pt,onVisibleChange:Bn,overlayStyle:Object.assign(Object.assign(Object.assign({},wt==null?void 0:wt.style),Ne),{zIndex:Tn})}),jt);return Tn&&(nn=le.createElement(he.Z.Provider,{value:Mn},nn)),xt(nn)},nt=(0,te.Z)(Ke,"align",void 0,"dropdown",Ve=>Ve),rt=Ve=>le.createElement(nt,Object.assign({},Ve),le.createElement("span",null));Ke._InternalPanelDoNotUseOrYouWillBeFired=rt;var et=Ke},75727:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return te}});var le=Ce(19563),yt=Ce(59301),a=Ce(18785),Te=Ce(92310),ge=Ce.n(Te),x=Ce(7939),z=Ce(48755),ie=Ce(44104),oe=Ce(70045),ee=function(se,ae){var he={};for(var me in se)Object.prototype.hasOwnProperty.call(se,me)&&ae.indexOf(me)<0&&(he[me]=se[me]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,me=Object.getOwnPropertySymbols(se);ve<me.length;ve++)ae.indexOf(me[ve])<0&&Object.prototype.propertyIsEnumerable.call(se,me[ve])&&(he[me[ve]]=se[me[ve]]);return he};const ue=se=>{const{getPopupContainer:ae,getPrefixCls:he,direction:me}=yt.useContext(z.E_),{prefixCls:ve,type:pe="default",danger:be,disabled:je,loading:ke,onClick:Be,htmlType:De,children:Se,className:Ee,menu:Ie,arrow:Me,autoFocus:Le,overlay:Ae,trigger:Pe,align:Ue,open:He,onOpenChange:Je,placement:st,getPopupContainer:_e,href:Ke,icon:nt=yt.createElement(a.Z,null),title:rt,buttonsRender:et=$e=>$e,mouseEnterDelay:Ve,mouseLeaveDelay:Ye,overlayClassName:Ge,overlayStyle:it,destroyPopupOnHide:qe,dropdownRender:vt}=se,ot=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=he("dropdown",ve),Fe=`${Qe}-button`,Re={menu:Ie,arrow:Me,autoFocus:Le,align:Ue,disabled:je,trigger:je?[]:Pe,onOpenChange:Je,getPopupContainer:_e||ae,mouseEnterDelay:Ve,mouseLeaveDelay:Ye,overlayClassName:Ge,overlayStyle:it,destroyPopupOnHide:qe,dropdownRender:vt},{compactSize:ne,compactItemClassnames:fe}=(0,oe.ri)(Qe,me),Ne=ge()(Fe,fe,Ee);"overlay"in se&&(Re.overlay=Ae),"open"in se&&(Re.open=He),"placement"in se?Re.placement=st:Re.placement=me==="rtl"?"bottomLeft":"bottomRight";const We=yt.createElement(x.ZP,{type:pe,danger:be,disabled:je,loading:ke,onClick:Be,htmlType:De,href:Ke,title:rt},Se),we=yt.createElement(x.ZP,{type:pe,danger:be,icon:nt}),[ye,Oe]=et([We,we]);return yt.createElement(ie.Z.Compact,Object.assign({className:Ne,size:ne,block:!0},ot),ye,yt.createElement(le.Z,Object.assign({},Re),Oe))};ue.__ANT_BUTTON=!0;var E=ue;const re=le.Z;re.Button=E;var te=re},584:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return pe}});var le=Ce(59301),yt=Ce(92310),a=Ce.n(yt),Te=Ce(9017),ge=Ce(17835),x=Ce(57700),ie=()=>{const[,be]=(0,x.ZP)(),[je]=(0,Te.Z)("Empty"),Be=new ge.FastColor(be.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return le.createElement("svg",{style:Be,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},le.createElement("title",null,(je==null?void 0:je.description)||"Empty"),le.createElement("g",{fill:"none",fillRule:"evenodd"},le.createElement("g",{transform:"translate(24 31.67)"},le.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),le.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"}),le.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)"}),le.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"}),le.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"})),le.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"}),le.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},le.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),le.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ee=()=>{const[,be]=(0,x.ZP)(),[je]=(0,Te.Z)("Empty"),{colorFill:ke,colorFillTertiary:Be,colorFillQuaternary:De,colorBgContainer:Se}=be,{borderColor:Ee,shadowColor:Ie,contentColor:Me}=(0,le.useMemo)(()=>({borderColor:new ge.FastColor(ke).onBackground(Se).toHexString(),shadowColor:new ge.FastColor(Be).onBackground(Se).toHexString(),contentColor:new ge.FastColor(De).onBackground(Se).toHexString()}),[ke,Be,De,Se]);return le.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},le.createElement("title",null,(je==null?void 0:je.description)||"Empty"),le.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},le.createElement("ellipse",{fill:Ie,cx:"32",cy:"33",rx:"32",ry:"7"}),le.createElement("g",{fillRule:"nonzero",stroke:Ee},le.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"}),le.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Me}))))},ue=Ce(16931),E=Ce(51636);const re=be=>{const{componentCls:je,margin:ke,marginXS:Be,marginXL:De,fontSize:Se,lineHeight:Ee}=be;return{[je]:{marginInline:Be,fontSize:Se,lineHeight:Ee,textAlign:"center",[`${je}-image`]:{height:be.emptyImgHeight,marginBottom:Be,opacity:be.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${je}-description`]:{color:be.colorTextDescription},[`${je}-footer`]:{marginTop:ke},"&-normal":{marginBlock:De,color:be.colorTextDescription,[`${je}-description`]:{color:be.colorTextDescription},[`${je}-image`]:{height:be.emptyImgHeightMD}},"&-small":{marginBlock:Be,color:be.colorTextDescription,[`${je}-image`]:{height:be.emptyImgHeightSM}}}}};var te=(0,ue.I$)("Empty",be=>{const{componentCls:je,controlHeightLG:ke,calc:Be}=be,De=(0,E.mergeToken)(be,{emptyImgCls:`${je}-img`,emptyImgHeight:Be(ke).mul(2.5).equal(),emptyImgHeightMD:ke,emptyImgHeightSM:Be(ke).mul(.875).equal()});return[re(De)]}),se=Ce(48755),ae=function(be,je){var ke={};for(var Be in be)Object.prototype.hasOwnProperty.call(be,Be)&&je.indexOf(Be)<0&&(ke[Be]=be[Be]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Be=Object.getOwnPropertySymbols(be);De<Be.length;De++)je.indexOf(Be[De])<0&&Object.prototype.propertyIsEnumerable.call(be,Be[De])&&(ke[Be[De]]=be[Be[De]]);return ke};const he=le.createElement(ie,null),me=le.createElement(ee,null),ve=be=>{const{className:je,rootClassName:ke,prefixCls:Be,image:De=he,description:Se,children:Ee,imageStyle:Ie,style:Me,classNames:Le,styles:Ae}=be,Pe=ae(be,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Ue,direction:He,className:Je,style:st,classNames:_e,styles:Ke}=(0,se.dj)("empty"),nt=Ue("empty",Be),[rt,et,Ve]=te(nt),[Ye]=(0,Te.Z)("Empty"),Ge=typeof Se!="undefined"?Se:Ye==null?void 0:Ye.description,it=typeof Ge=="string"?Ge:"empty";let qe=null;return typeof De=="string"?qe=le.createElement("img",{alt:it,src:De}):qe=De,rt(le.createElement("div",Object.assign({className:a()(et,Ve,nt,Je,{[`${nt}-normal`]:De===me,[`${nt}-rtl`]:He==="rtl"},je,ke,_e.root,Le==null?void 0:Le.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},Ke.root),st),Ae==null?void 0:Ae.root),Me)},Pe),le.createElement("div",{className:a()(`${nt}-image`,_e.image,Le==null?void 0:Le.image),style:Object.assign(Object.assign(Object.assign({},Ie),Ke.image),Ae==null?void 0:Ae.image)},qe),Ge&&le.createElement("div",{className:a()(`${nt}-description`,_e.description,Le==null?void 0:Le.description),style:Object.assign(Object.assign({},Ke.description),Ae==null?void 0:Ae.description)},Ge),Ee&&le.createElement("div",{className:a()(`${nt}-footer`,_e.footer,Le==null?void 0:Le.footer),style:Object.assign(Object.assign({},Ke.footer),Ae==null?void 0:Ae.footer)},Ee)))};ve.PRESENTED_IMAGE_DEFAULT=he,ve.PRESENTED_IMAGE_SIMPLE=me;var pe=ve},28284:function(on,Lt,Ce){"use strict";Ce.d(Lt,{default:function(){return Xt}});var le=Ce(56553),yt=Ce(77654),a=Ce(59301),Te=Ce(92310),ge=Ce.n(Te),x=Ce(77900),z=Ce(86641),ie=Ce(83397);function oe(Et){const[Dt,Tt]=a.useState(Et);return a.useEffect(()=>{const _t=setTimeout(()=>{Tt(Et)},Et.length?0:10);return()=>{clearTimeout(_t)}},[Et]),Dt}var ee=Ce(36237),ue=Ce(63356),E=Ce(34925),re=Ce(34961),te=Ce(51636),se=Ce(16931),he=Et=>{const{componentCls:Dt}=Et,Tt=`${Dt}-show-help`,_t=`${Dt}-show-help-item`;return{[Tt]:{transition:`opacity ${Et.motionDurationFast} ${Et.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[_t]:{overflow:"hidden",transition:`height ${Et.motionDurationFast} ${Et.motionEaseInOut},
opacity ${Et.motionDurationFast} ${Et.motionEaseInOut},
transform ${Et.motionDurationFast} ${Et.motionEaseInOut} !important`,[`&${_t}-appear, &${_t}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${_t}-leave-active`]:{transform:"translateY(-5px)"}}}}};const me=Et=>({legend:{display:"block",width:"100%",marginBottom:Et.marginLG,padding:0,color:Et.colorTextDescription,fontSize:Et.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,ee.unit)(Et.lineWidth)} ${Et.lineType} ${Et.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)(Et.controlOutlineWidth)} ${Et.controlOutline}`},output:{display:"block",paddingTop:15,color:Et.colorText,fontSize:Et.fontSize,lineHeight:Et.lineHeight}}),ve=(Et,Dt)=>{const{formItemCls:Tt}=Et;return{[Tt]:{[`${Tt}-label > label`]:{height:Dt},[`${Tt}-control-input`]:{minHeight:Dt}}}},pe=Et=>{const{componentCls:Dt}=Et;return{[Et.componentCls]:Object.assign(Object.assign(Object.assign({},(0,ue.Wf)(Et)),me(Et)),{[`${Dt}-text`]:{display:"inline-block",paddingInlineEnd:Et.paddingSM},"&-small":Object.assign({},ve(Et,Et.controlHeightSM)),"&-large":Object.assign({},ve(Et,Et.controlHeightLG))})}},be=Et=>{const{formItemCls:Dt,iconCls:Tt,rootPrefixCls:_t,antCls:bt,labelRequiredMarkColor:Zt,labelColor:Kt,labelFontSize:Yt,labelHeight:Ft,labelColonMarginInlineStart:$t,labelColonMarginInlineEnd:zt,itemMarginBottom:Wt}=Et;return{[Dt]:Object.assign(Object.assign({},(0,ue.Wf)(Et)),{marginBottom:Wt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${bt}-row`]:{display:"none"},"&-has-warning":{[`${Dt}-split`]:{color:Et.colorError}},"&-has-error":{[`${Dt}-split`]:{color:Et.colorWarning}},[`${Dt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Et.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Ft,color:Kt,fontSize:Yt,[`> ${Tt}`]:{fontSize:Et.fontSize,verticalAlign:"top"},[`&${Dt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Et.marginXXS,color:Zt,fontSize:Et.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Dt}-required-mark-hidden, &${Dt}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Dt}-optional`]:{display:"inline-block",marginInlineStart:Et.marginXXS,color:Et.colorTextDescription,[`&${Dt}-required-mark-hidden`]:{display:"none"}},[`${Dt}-tooltip`]:{color:Et.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Et.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:$t,marginInlineEnd:zt},[`&${Dt}-no-colon::after`]:{content:'"\\a0"'}}},[`${Dt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${_t}-col-'"]):not([class*="' ${_t}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Et.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Dt]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Et.colorTextDescription,fontSize:Et.fontSize,lineHeight:Et.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Et.controlHeightSM,transition:`color ${Et.motionDurationMid} ${Et.motionEaseOut}`},"&-explain":{"&-error":{color:Et.colorError},"&-warning":{color:Et.colorWarning}}},[`&-with-help ${Dt}-explain`]:{height:"auto",opacity:1},[`${Dt}-feedback-icon`]:{fontSize:Et.fontSize,textAlign:"center",visibility:"visible",animationName:E.kr,animationDuration:Et.motionDurationMid,animationTimingFunction:Et.motionEaseOutBack,pointerEvents:"none","&-success":{color:Et.colorSuccess},"&-error":{color:Et.colorError},"&-warning":{color:Et.colorWarning},"&-validating":{color:Et.colorPrimary}}})}},je=(Et,Dt)=>{const{formItemCls:Tt}=Et;return{[`${Dt}-horizontal`]:{[`${Tt}-label`]:{flexGrow:0},[`${Tt}-control`]:{flex:"1 1 0",minWidth:0},[`${Tt}-label[class$='-24'], ${Tt}-label[class*='-24 ']`]:{[`& + ${Tt}-control`]:{minWidth:"unset"}}}}},ke=Et=>{const{componentCls:Dt,formItemCls:Tt,inlineItemMarginBottom:_t}=Et;return{[`${Dt}-inline`]:{display:"flex",flexWrap:"wrap",[Tt]:{flex:"none",marginInlineEnd:Et.margin,marginBottom:_t,"&-row":{flexWrap:"nowrap"},[`> ${Tt}-label,
> ${Tt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Tt}-label`]:{flex:"none"},[`${Dt}-text`]:{display:"inline-block"},[`${Tt}-has-feedback`]:{display:"inline-block"}}}}},Be=Et=>({padding:Et.verticalLabelPadding,margin:Et.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),De=Et=>{const{componentCls:Dt,formItemCls:Tt,rootPrefixCls:_t}=Et;return{[`${Tt} ${Tt}-label`]:Be(Et),[`${Dt}:not(${Dt}-inline)`]:{[Tt]:{flexWrap:"wrap",[`${Tt}-label, ${Tt}-control`]:{[`&:not([class*=" ${_t}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Se=Et=>{const{componentCls:Dt,formItemCls:Tt,antCls:_t}=Et;return{[`${Dt}-vertical`]:{[`${Tt}:not(${Tt}-horizontal)`]:{[`${Tt}-row`]:{flexDirection:"column"},[`${Tt}-label > label`]:{height:"auto"},[`${Tt}-control`]:{width:"100%"},[`${Tt}-label,
${_t}-col-24${Tt}-label,
${_t}-col-xl-24${Tt}-label`]:Be(Et)}},[`@media (max-width: ${(0,ee.unit)(Et.screenXSMax)})`]:[De(Et),{[Dt]:{[`${Tt}:not(${Tt}-horizontal)`]:{[`${_t}-col-xs-24${Tt}-label`]:Be(Et)}}}],[`@media (max-width: ${(0,ee.unit)(Et.screenSMMax)})`]:{[Dt]:{[`${Tt}:not(${Tt}-horizontal)`]:{[`${_t}-col-sm-24${Tt}-label`]:Be(Et)}}},[`@media (max-width: ${(0,ee.unit)(Et.screenMDMax)})`]:{[Dt]:{[`${Tt}:not(${Tt}-horizontal)`]:{[`${_t}-col-md-24${Tt}-label`]:Be(Et)}}},[`@media (max-width: ${(0,ee.unit)(Et.screenLGMax)})`]:{[Dt]:{[`${Tt}:not(${Tt}-horizontal)`]:{[`${_t}-col-lg-24${Tt}-label`]:Be(Et)}}}}},Ee=Et=>{const{formItemCls:Dt,antCls:Tt}=Et;return{[`${Dt}-vertical`]:{[`${Dt}-row`]:{flexDirection:"column"},[`${Dt}-label > label`]:{height:"auto"},[`${Dt}-control`]:{width:"100%"}},[`${Dt}-vertical ${Dt}-label,
${Tt}-col-24${Dt}-label,
${Tt}-col-xl-24${Dt}-label`]:Be(Et),[`@media (max-width: ${(0,ee.unit)(Et.screenXSMax)})`]:[De(Et),{[Dt]:{[`${Tt}-col-xs-24${Dt}-label`]:Be(Et)}}],[`@media (max-width: ${(0,ee.unit)(Et.screenSMMax)})`]:{[Dt]:{[`${Tt}-col-sm-24${Dt}-label`]:Be(Et)}},[`@media (max-width: ${(0,ee.unit)(Et.screenMDMax)})`]:{[Dt]:{[`${Tt}-col-md-24${Dt}-label`]:Be(Et)}},[`@media (max-width: ${(0,ee.unit)(Et.screenLGMax)})`]:{[Dt]:{[`${Tt}-col-lg-24${Dt}-label`]:Be(Et)}}}},Ie=Et=>({labelRequiredMarkColor:Et.colorError,labelColor:Et.colorTextHeading,labelFontSize:Et.fontSize,labelHeight:Et.controlHeight,labelColonMarginInlineStart:Et.marginXXS/2,labelColonMarginInlineEnd:Et.marginXS,itemMarginBottom:Et.marginLG,verticalLabelPadding:`0 0 ${Et.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Me=(Et,Dt)=>(0,te.mergeToken)(Et,{formItemCls:`${Et.componentCls}-item`,rootPrefixCls:Dt});var Le=(0,se.I$)("Form",(Et,Dt)=>{let{rootPrefixCls:Tt}=Dt;const _t=Me(Et,Tt);return[pe(_t),be(_t),he(_t),je(_t,_t.componentCls),je(_t,_t.formItemCls),ke(_t),Se(_t),Ee(_t),(0,re.Z)(_t),E.kr]},Ie,{order:-1e3});const Ae=[];function Pe(Et,Dt,Tt){let _t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Et=="string"?Et:`${Dt}-${_t}`,error:Et,errorStatus:Tt}}var He=Et=>{let{help:Dt,helpStatus:Tt,errors:_t=Ae,warnings:bt=Ae,className:Zt,fieldId:Kt,onVisibleChanged:Yt}=Et;const{prefixCls:Ft}=a.useContext(le.Rk),$t=`${Ft}-item-explain`,zt=(0,ie.Z)(Ft),[Wt,hn,mn]=Le(Ft,zt),In=a.useMemo(()=>(0,z.Z)(Ft),[Ft]),er=oe(_t),ar=oe(bt),fr=a.useMemo(()=>Dt!=null?[Pe(Dt,"help",Tt)]:[].concat((0,yt.Z)(er.map(($n,dr)=>Pe($n,"error","error",dr))),(0,yt.Z)(ar.map(($n,dr)=>Pe($n,"warning","warning",dr)))),[Dt,Tt,er,ar]),Jn=a.useMemo(()=>{const $n={};return fr.forEach(dr=>{let{key:Tr}=dr;$n[Tr]=($n[Tr]||0)+1}),fr.map((dr,Tr)=>Object.assign(Object.assign({},dr),{key:$n[dr.key]>1?`${dr.key}-fallback-${Tr}`:dr.key}))},[fr]),Kn={};return Kt&&(Kn.id=`${Kt}_help`),Wt(a.createElement(x.default,{motionDeadline:In.motionDeadline,motionName:`${Ft}-show-help`,visible:!!Jn.length,onVisibleChanged:Yt},$n=>{const{className:dr,style:Tr}=$n;return a.createElement("div",Object.assign({},Kn,{className:ge()($t,dr,mn,zt,Zt,hn),style:Tr}),a.createElement(x.CSSMotionList,Object.assign({keys:Jn},(0,z.Z)(Ft),{motionName:`${Ft}-show-help-item`,component:!1}),Cr=>{const{key:Or,error:Vn,errorStatus:xr,className:hr,style:Hr}=Cr;return a.createElement("div",{key:Or,className:ge()(hr,{[`${$t}-${xr}`]:xr}),style:Hr},Vn)}))}))},Je=Ce(69180),st=Ce(48755),_e=Ce(2171),Ke=Ce(31756),nt=Ce(23069),rt=Ce(76846),et=Ce(16722);const Ve=["parentNode"],Ye="form_item";function Ge(Et){return Et===void 0||Et===!1?[]:Array.isArray(Et)?Et:[Et]}function it(Et,Dt){if(!Et.length)return;const Tt=Et.join("_");return Dt?`${Dt}_${Tt}`:Ve.includes(Tt)?`${Ye}_${Tt}`:Tt}function qe(Et,Dt,Tt,_t,bt,Zt){let Kt=_t;return Zt!==void 0?Kt=Zt:Tt.validating?Kt="validating":Et.length?Kt="error":Dt.length?Kt="warning":(Tt.touched||bt&&Tt.validated)&&(Kt="success"),Kt}var vt=function(Et,Dt){var Tt={};for(var _t in Et)Object.prototype.hasOwnProperty.call(Et,_t)&&Dt.indexOf(_t)<0&&(Tt[_t]=Et[_t]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,_t=Object.getOwnPropertySymbols(Et);bt<_t.length;bt++)Dt.indexOf(_t[bt])<0&&Object.prototype.propertyIsEnumerable.call(Et,_t[bt])&&(Tt[_t[bt]]=Et[_t[bt]]);return Tt};function ot(Et){return Ge(Et).join("_")}function Qe(Et,Dt){const Tt=Dt.getFieldInstance(Et),_t=(0,rt.bn)(Tt);if(_t)return _t;const bt=it(Ge(Et),Dt.__INTERNAL__.name);if(bt)return document.getElementById(bt)}function Fe(Et){const[Dt]=(0,Je.useForm)(),Tt=a.useRef({}),_t=a.useMemo(()=>Et!=null?Et:Object.assign(Object.assign({},Dt),{__INTERNAL__:{itemRef:bt=>Zt=>{const Kt=ot(bt);Zt?Tt.current[Kt]=Zt:delete Tt.current[Kt]}},scrollToField:function(bt){let Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:Kt}=Zt,Yt=vt(Zt,["focus"]),Ft=Qe(bt,_t);Ft&&((0,et.Z)(Ft,Object.assign({scrollMode:"if-needed",block:"nearest"},Yt)),Kt&&_t.focusField(bt))},focusField:bt=>{var Zt,Kt;const Yt=_t.getFieldInstance(bt);typeof(Yt==null?void 0:Yt.focus)=="function"?Yt.focus():(Kt=(Zt=Qe(bt,_t))===null||Zt===void 0?void 0:Zt.focus)===null||Kt===void 0||Kt.call(Zt)},getFieldInstance:bt=>{const Zt=ot(bt);return Tt.current[Zt]}}),[Et,Dt]);return[_t]}var Re=Ce(98350),ne=function(Et,Dt){var Tt={};for(var _t in Et)Object.prototype.hasOwnProperty.call(Et,_t)&&Dt.indexOf(_t)<0&&(Tt[_t]=Et[_t]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,_t=Object.getOwnPropertySymbols(Et);bt<_t.length;bt++)Dt.indexOf(_t[bt])<0&&Object.prototype.propertyIsEnumerable.call(Et,_t[bt])&&(Tt[_t[bt]]=Et[_t[bt]]);return Tt};const fe=(Et,Dt)=>{const Tt=a.useContext(_e.Z),{getPrefixCls:_t,direction:bt,requiredMark:Zt,colon:Kt,scrollToFirstError:Yt,className:Ft,style:$t}=(0,st.dj)("form"),{prefixCls:zt,className:Wt,rootClassName:hn,size:mn,disabled:In=Tt,form:er,colon:ar,labelAlign:fr,labelWrap:Jn,labelCol:Kn,wrapperCol:$n,hideRequiredMark:dr,layout:Tr="horizontal",scrollToFirstError:Cr,requiredMark:Or,onFinishFailed:Vn,name:xr,style:hr,feedbackIcons:Hr,variant:Xr}=Et,Ur=ne(Et,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Kr=(0,Ke.Z)(mn),ri=a.useContext(Re.Z),Fr=a.useMemo(()=>Or!==void 0?Or:dr?!1:Zt!==void 0?Zt:!0,[dr,Or,Zt]),qr=ar!=null?ar:Kt,Pr=_t("form",zt),ei=(0,ie.Z)(Pr),[ui,ki,mi]=Le(Pr,ei),xi=ge()(Pr,`${Pr}-${Tr}`,{[`${Pr}-hide-required-mark`]:Fr===!1,[`${Pr}-rtl`]:bt==="rtl",[`${Pr}-${Kr}`]:Kr},mi,ei,ki,Ft,Wt,hn),[hi]=Fe(er),{__INTERNAL__:ir}=hi;ir.name=xr;const Qn=a.useMemo(()=>({name:xr,labelAlign:fr,labelCol:Kn,labelWrap:Jn,wrapperCol:$n,vertical:Tr==="vertical",colon:qr,requiredMark:Fr,itemRef:ir.itemRef,form:hi,feedbackIcons:Hr}),[xr,fr,Kn,$n,Tr,qr,Fr,hi,Hr]),gr=a.useRef(null);a.useImperativeHandle(Dt,()=>{var kn;return Object.assign(Object.assign({},hi),{nativeElement:(kn=gr.current)===null||kn===void 0?void 0:kn.nativeElement})});const Xn=(kn,Ln)=>{if(kn){let jn={block:"nearest"};typeof kn=="object"&&(jn=Object.assign(Object.assign({},jn),kn)),hi.scrollToField(Ln,jn)}},bn=kn=>{if(Vn==null||Vn(kn),kn.errorFields.length){const Ln=kn.errorFields[0].name;if(Cr!==void 0){Xn(Cr,Ln);return}Yt!==void 0&&Xn(Yt,Ln)}};return ui(a.createElement(le.pg.Provider,{value:Xr},a.createElement(_e.n,{disabled:In},a.createElement(nt.Z.Provider,{value:Kr},a.createElement(le.RV,{validateMessages:ri},a.createElement(le.q3.Provider,{value:Qn},a.createElement(Je.default,Object.assign({id:xr},Ur,{name:xr,onFinishFailed:bn,form:hi,ref:gr,style:Object.assign(Object.assign({},$t),hr),className:xi}))))))))};var We=a.forwardRef(fe),we=Ce(41799),ye=Ce(8654),Oe=Ce(22703),$e=Ce(32383),Ze=Ce(11592);function Xe(Et){if(typeof Et=="function")return Et;const Dt=(0,Ze.Z)(Et);return Dt.length<=1?Dt[0]:Dt}const at=()=>{const{status:Et,errors:Dt=[],warnings:Tt=[]}=a.useContext(le.aM);return{status:Et,errors:Dt,warnings:Tt}};at.Context=le.aM;var lt=at,mt=Ce(16089);function ut(Et){const[Dt,Tt]=a.useState(Et),_t=a.useRef(null),bt=a.useRef([]),Zt=a.useRef(!1);a.useEffect(()=>(Zt.current=!1,()=>{Zt.current=!0,mt.Z.cancel(_t.current),_t.current=null}),[]);function Kt(Yt){Zt.current||(_t.current===null&&(bt.current=[],_t.current=(0,mt.Z)(()=>{_t.current=null,Tt(Ft=>{let $t=Ft;return bt.current.forEach(zt=>{$t=zt($t)}),$t})})),bt.current.push(Yt))}return[Dt,Kt]}function ct(){const{itemRef:Et}=a.useContext(le.q3),Dt=a.useRef({});function Tt(_t,bt){const Zt=bt&&typeof bt=="object"&&(0,ye.C4)(bt),Kt=_t.join("_");return(Dt.current.name!==Kt||Dt.current.originRef!==Zt)&&(Dt.current.name=Kt,Dt.current.originRef=Zt,Dt.current.ref=(0,ye.sQ)(Et(_t),Zt)),Dt.current.ref}return Tt}var Pt=Ce(29194),wt=Ce(34280),Bt=Ce(2738),At=Ce(65970),pt=Ce(70425),Mt=Ce(5472);const kt=Et=>{const{formItemCls:Dt}=Et;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Dt}-control`]:{display:"flex"}}}};var xt=(0,se.bk)(["Form","item-item"],(Et,Dt)=>{let{rootPrefixCls:Tt}=Dt;const _t=Me(Et,Tt);return[kt(_t)]}),It=function(Et,Dt){var Tt={};for(var _t in Et)Object.prototype.hasOwnProperty.call(Et,_t)&&Dt.indexOf(_t)<0&&(Tt[_t]=Et[_t]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,_t=Object.getOwnPropertySymbols(Et);bt<_t.length;bt++)Dt.indexOf(_t[bt])<0&&Object.prototype.propertyIsEnumerable.call(Et,_t[bt])&&(Tt[_t[bt]]=Et[_t[bt]]);return Tt};const Ut=24;var St=Et=>{const{prefixCls:Dt,status:Tt,labelCol:_t,wrapperCol:bt,children:Zt,errors:Kt,warnings:Yt,_internalItemRender:Ft,extra:$t,help:zt,fieldId:Wt,marginBottom:hn,onErrorVisibleChanged:mn,label:In}=Et,er=`${Dt}-item`,ar=a.useContext(le.q3),fr=a.useMemo(()=>{let Ur=Object.assign({},bt||ar.wrapperCol||{});return In===null&&!_t&&!bt&&ar.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(ri=>{const Fr=ri?[ri]:[],qr=(0,pt.U2)(ar.labelCol,Fr),Pr=typeof qr=="object"?qr:{},ei=(0,pt.U2)(Ur,Fr),ui=typeof ei=="object"?ei:{};"span"in Pr&&!("offset"in ui)&&Pr.span<Ut&&(Ur=(0,pt.t8)(Ur,[].concat(Fr,["offset"]),Pr.span))}),Ur},[bt,ar]),Jn=ge()(`${er}-control`,fr.className),Kn=a.useMemo(()=>{const{labelCol:Ur,wrapperCol:Kr}=ar;return It(ar,["labelCol","wrapperCol"])},[ar]),$n=a.useRef(null),[dr,Tr]=a.useState(0);(0,wt.Z)(()=>{$t&&$n.current?Tr($n.current.clientHeight):Tr(0)},[$t]);const Cr=a.createElement("div",{className:`${er}-control-input`},a.createElement("div",{className:`${er}-control-input-content`},Zt)),Or=a.useMemo(()=>({prefixCls:Dt,status:Tt}),[Dt,Tt]),Vn=hn!==null||Kt.length||Yt.length?a.createElement(le.Rk.Provider,{value:Or},a.createElement(He,{fieldId:Wt,errors:Kt,warnings:Yt,help:zt,helpStatus:Tt,className:`${er}-explain-connected`,onVisibleChanged:mn})):null,xr={};Wt&&(xr.id=`${Wt}_extra`);const hr=$t?a.createElement("div",Object.assign({},xr,{className:`${er}-extra`,ref:$n}),$t):null,Hr=Vn||hr?a.createElement("div",{className:`${er}-additional`,style:hn?{minHeight:hn+dr}:{}},Vn,hr):null,Xr=Ft&&Ft.mark==="pro_table_render"&&Ft.render?Ft.render(Et,{input:Cr,errorList:Vn,extra:hr}):a.createElement(a.Fragment,null,Cr,Hr);return a.createElement(le.q3.Provider,{value:Kn},a.createElement(Mt.Z,Object.assign({},fr,{className:Jn}),Xr),a.createElement(xt,{prefixCls:Dt}))},jt=Ce(61485),Ht=Ce(9017),Qt=Ce(85981),sn=Ce(25399),wn=function(Et,Dt){var Tt={};for(var _t in Et)Object.prototype.hasOwnProperty.call(Et,_t)&&Dt.indexOf(_t)<0&&(Tt[_t]=Et[_t]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,_t=Object.getOwnPropertySymbols(Et);bt<_t.length;bt++)Dt.indexOf(_t[bt])<0&&Object.prototype.propertyIsEnumerable.call(Et,_t[bt])&&(Tt[_t[bt]]=Et[_t[bt]]);return Tt};function Bn(Et){return Et?typeof Et=="object"&&!a.isValidElement(Et)?Et:{title:Et}:null}var gn=Et=>{let{prefixCls:Dt,label:Tt,htmlFor:_t,labelCol:bt,labelAlign:Zt,colon:Kt,required:Yt,requiredMark:Ft,tooltip:$t,vertical:zt}=Et;var Wt;const[hn]=(0,Ht.Z)("Form"),{labelAlign:mn,labelCol:In,labelWrap:er,colon:ar}=a.useContext(le.q3);if(!Tt)return null;const fr=bt||In||{},Jn=Zt||mn,Kn=`${Dt}-item-label`,$n=ge()(Kn,Jn==="left"&&`${Kn}-left`,fr.className,{[`${Kn}-wrap`]:!!er});let dr=Tt;const Tr=Kt===!0||ar!==!1&&Kt!==!1;Tr&&!zt&&typeof Tt=="string"&&Tt.trim()&&(dr=Tt.replace(/[:|]\s*$/,""));const Or=Bn($t);if(Or){const{icon:Ur=a.createElement(jt.Z,null)}=Or,Kr=wn(Or,["icon"]),ri=a.createElement(sn.Z,Object.assign({},Kr),a.cloneElement(Ur,{className:`${Dt}-item-tooltip`,title:"",onClick:Fr=>{Fr.preventDefault()},tabIndex:null}));dr=a.createElement(a.Fragment,null,dr,ri)}const Vn=Ft==="optional",xr=typeof Ft=="function",hr=Ft===!1;xr?dr=Ft(dr,{required:!!Yt}):Vn&&!Yt&&(dr=a.createElement(a.Fragment,null,dr,a.createElement("span",{className:`${Dt}-item-optional`,title:""},(hn==null?void 0:hn.optional)||((Wt=Qt.Z.Form)===null||Wt===void 0?void 0:Wt.optional))));let Hr;hr?Hr="hidden":(Vn||xr)&&(Hr="optional");const Xr=ge()({[`${Dt}-item-required`]:Yt,[`${Dt}-item-required-mark-${Hr}`]:Hr,[`${Dt}-item-no-colon`]:!Tr});return a.createElement(Mt.Z,Object.assign({},fr,{className:$n}),a.createElement("label",{htmlFor:_t,className:Xr,title:typeof Tt=="string"?Tt:""},dr))},Dn=Ce(29679),un=Ce(19248),Tn=Ce(96512),Mn=Ce(58617);const nn={success:Dn.Z,warning:Tn.Z,error:un.Z,validating:Mn.Z};function tn(Et){let{children:Dt,errors:Tt,warnings:_t,hasFeedback:bt,validateStatus:Zt,prefixCls:Kt,meta:Yt,noStyle:Ft}=Et;const $t=`${Kt}-item`,{feedbackIcons:zt}=a.useContext(le.q3),Wt=qe(Tt,_t,Yt,null,!!bt,Zt),{isFormItemInput:hn,status:mn,hasFeedback:In,feedbackIcon:er}=a.useContext(le.aM),ar=a.useMemo(()=>{var fr;let Jn;if(bt){const $n=bt!==!0&&bt.icons||zt,dr=Wt&&((fr=$n==null?void 0:$n({status:Wt,errors:Tt,warnings:_t}))===null||fr===void 0?void 0:fr[Wt]),Tr=Wt&&nn[Wt];Jn=dr!==!1&&Tr?a.createElement("span",{className:ge()(`${$t}-feedback-icon`,`${$t}-feedback-icon-${Wt}`)},dr||a.createElement(Tr,null)):null}const Kn={status:Wt||"",errors:Tt,warnings:_t,hasFeedback:!!bt,feedbackIcon:Jn,isFormItemInput:!0};return Ft&&(Kn.status=(Wt!=null?Wt:mn)||"",Kn.isFormItemInput=hn,Kn.hasFeedback=!!(bt!=null?bt:In),Kn.feedbackIcon=bt!==void 0?Kn.feedbackIcon:er),Kn},[Wt,bt,Ft,hn,mn]);return a.createElement(le.aM.Provider,{value:ar},Dt)}var dn=function(Et,Dt){var Tt={};for(var _t in Et)Object.prototype.hasOwnProperty.call(Et,_t)&&Dt.indexOf(_t)<0&&(Tt[_t]=Et[_t]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,_t=Object.getOwnPropertySymbols(Et);bt<_t.length;bt++)Dt.indexOf(_t[bt])<0&&Object.prototype.propertyIsEnumerable.call(Et,_t[bt])&&(Tt[_t[bt]]=Et[_t[bt]]);return Tt};function Cn(Et){const{prefixCls:Dt,className:Tt,rootClassName:_t,style:bt,help:Zt,errors:Kt,warnings:Yt,validateStatus:Ft,meta:$t,hasFeedback:zt,hidden:Wt,children:hn,fieldId:mn,required:In,isRequired:er,onSubItemMetaChange:ar,layout:fr}=Et,Jn=dn(Et,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Kn=`${Dt}-item`,{requiredMark:$n,vertical:dr}=a.useContext(le.q3),Tr=dr||fr==="vertical",Cr=a.useRef(null),Or=oe(Kt),Vn=oe(Yt),xr=Zt!=null,hr=!!(xr||Kt.length||Yt.length),Hr=!!Cr.current&&(0,Pt.Z)(Cr.current),[Xr,Ur]=a.useState(null);(0,wt.Z)(()=>{if(hr&&Cr.current){const Pr=getComputedStyle(Cr.current);Ur(parseInt(Pr.marginBottom,10))}},[hr,Hr]);const Kr=Pr=>{Pr||Ur(null)},Fr=function(){let Pr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ei=Pr?Or:$t.errors,ui=Pr?Vn:$t.warnings;return qe(ei,ui,$t,"",!!zt,Ft)}(),qr=ge()(Kn,Tt,_t,{[`${Kn}-with-help`]:xr||Or.length||Vn.length,[`${Kn}-has-feedback`]:Fr&&zt,[`${Kn}-has-success`]:Fr==="success",[`${Kn}-has-warning`]:Fr==="warning",[`${Kn}-has-error`]:Fr==="error",[`${Kn}-is-validating`]:Fr==="validating",[`${Kn}-hidden`]:Wt,[`${Kn}-${fr}`]:fr});return a.createElement("div",{className:qr,style:bt,ref:Cr},a.createElement(At.Z,Object.assign({className:`${Kn}-row`},(0,Bt.Z)(Jn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),a.createElement(gn,Object.assign({htmlFor:mn},Et,{requiredMark:$n,required:In!=null?In:er,prefixCls:Dt,vertical:Tr})),a.createElement(St,Object.assign({},Et,$t,{errors:Or,warnings:Vn,prefixCls:Dt,status:Fr,help:Zt,marginBottom:Xr,onErrorVisibleChanged:Kr}),a.createElement(le.qI.Provider,{value:ar},a.createElement(tn,{prefixCls:Dt,meta:$t,errors:$t.errors,warnings:$t.warnings,hasFeedback:zt,validateStatus:Fr},hn)))),!!Xr&&a.createElement("div",{className:`${Kn}-margin-offset`,style:{marginBottom:-Xr}}))}const Pn="__SPLIT__",Hn=null;function Gn(Et,Dt){const Tt=Object.keys(Et),_t=Object.keys(Dt);return Tt.length===_t.length&&Tt.every(bt=>{const Zt=Et[bt],Kt=Dt[bt];return Zt===Kt||typeof Zt=="function"||typeof Kt=="function"})}const _n=a.memo(Et=>{let{children:Dt}=Et;return Dt},(Et,Dt)=>Gn(Et.control,Dt.control)&&Et.update===Dt.update&&Et.childProps.length===Dt.childProps.length&&Et.childProps.every((Tt,_t)=>Tt===Dt.childProps[_t]));function Yn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Wn(Et){const{name:Dt,noStyle:Tt,className:_t,dependencies:bt,prefixCls:Zt,shouldUpdate:Kt,rules:Yt,children:Ft,required:$t,label:zt,messageVariables:Wt,trigger:hn="onChange",validateTrigger:mn,hidden:In,help:er,layout:ar}=Et,{getPrefixCls:fr}=a.useContext(st.E_),{name:Jn}=a.useContext(le.q3),Kn=Xe(Ft),$n=typeof Kn=="function",dr=a.useContext(le.qI),{validateTrigger:Tr}=a.useContext(Je.FieldContext),Cr=mn!==void 0?mn:Tr,Or=Dt!=null,Vn=fr("form",Zt),xr=(0,ie.Z)(Vn),[hr,Hr,Xr]=Le(Vn,xr),Ur=(0,$e.ln)("Form.Item"),Kr=a.useContext(Je.ListContext),ri=a.useRef(null),[Fr,qr]=ut({}),[Pr,ei]=(0,we.Z)(()=>Yn()),ui=gr=>{const Xn=Kr==null?void 0:Kr.getKey(gr.name);if(ei(gr.destroy?Yn():gr,!0),Tt&&er!==!1&&dr){let bn=gr.name;if(gr.destroy)bn=ri.current||bn;else if(Xn!==void 0){const[kn,Ln]=Xn;bn=[kn].concat((0,yt.Z)(Ln)),ri.current=bn}dr(gr,bn)}},ki=(gr,Xn)=>{qr(bn=>{const kn=Object.assign({},bn),jn=[].concat((0,yt.Z)(gr.name.slice(0,-1)),(0,yt.Z)(Xn)).join(Pn);return gr.destroy?delete kn[jn]:kn[jn]=gr,kn})},[mi,xi]=a.useMemo(()=>{const gr=(0,yt.Z)(Pr.errors),Xn=(0,yt.Z)(Pr.warnings);return Object.values(Fr).forEach(bn=>{gr.push.apply(gr,(0,yt.Z)(bn.errors||[])),Xn.push.apply(Xn,(0,yt.Z)(bn.warnings||[]))}),[gr,Xn]},[Fr,Pr.errors,Pr.warnings]),hi=ct();function ir(gr,Xn,bn){return Tt&&!In?a.createElement(tn,{prefixCls:Vn,hasFeedback:Et.hasFeedback,validateStatus:Et.validateStatus,meta:Pr,errors:mi,warnings:xi,noStyle:!0},gr):a.createElement(Cn,Object.assign({key:"row"},Et,{className:ge()(_t,Xr,xr,Hr),prefixCls:Vn,fieldId:Xn,isRequired:bn,errors:mi,warnings:xi,meta:Pr,onSubItemMetaChange:ki,layout:ar}),gr)}if(!Or&&!$n&&!bt)return hr(ir(Kn));let Qn={};return typeof zt=="string"?Qn.label=zt:Dt&&(Qn.label=String(Dt)),Wt&&(Qn=Object.assign(Object.assign({},Qn),Wt)),hr(a.createElement(Je.Field,Object.assign({},Et,{messageVariables:Qn,trigger:hn,validateTrigger:Cr,onMetaChange:ui}),(gr,Xn,bn)=>{const kn=Ge(Dt).length&&Xn?Xn.name:[],Ln=it(kn,Jn),jn=$t!==void 0?$t:!!(Yt!=null&&Yt.some(Nn=>{if(Nn&&typeof Nn=="object"&&Nn.required&&!Nn.warningOnly)return!0;if(typeof Nn=="function"){const Sn=Nn(bn);return(Sn==null?void 0:Sn.required)&&!(Sn!=null&&Sn.warningOnly)}return!1})),tr=Object.assign({},gr);let ur=null;if(Array.isArray(Kn)&&Or)ur=Kn;else if(!($n&&(!(Kt||bt)||Or))){if(!(bt&&!$n&&!Or))if(a.isValidElement(Kn)){const Nn=Object.assign(Object.assign({},Kn.props),tr);if(Nn.id||(Nn.id=Ln),er||mi.length>0||xi.length>0||Et.extra){const rr=[];(er||mi.length>0)&&rr.push(`${Ln}_help`),Et.extra&&rr.push(`${Ln}_extra`),Nn["aria-describedby"]=rr.join(" ")}mi.length>0&&(Nn["aria-invalid"]="true"),jn&&(Nn["aria-required"]="true"),(0,ye.Yr)(Kn)&&(Nn.ref=hi(kn,Kn)),new Set([].concat((0,yt.Z)(Ge(hn)),(0,yt.Z)(Ge(Cr)))).forEach(rr=>{Nn[rr]=function(){for(var Gr,wi,ci,ji,Ci,Si=arguments.length,Ni=new Array(Si),Mi=0;Mi<Si;Mi++)Ni[Mi]=arguments[Mi];(ci=tr[rr])===null||ci===void 0||(Gr=ci).call.apply(Gr,[tr].concat(Ni)),(Ci=(ji=Kn.props)[rr])===null||Ci===void 0||(wi=Ci).call.apply(wi,[ji].concat(Ni))}});const Un=[Nn["aria-required"],Nn["aria-invalid"],Nn["aria-describedby"]];ur=a.createElement(_n,{control:tr,update:Kn,childProps:Un},(0,Oe.Tm)(Kn,Nn))}else $n&&(Kt||bt)&&!Or?ur=Kn(bn):ur=Kn}return ir(ur,Ln,jn)}))}const yr=Wn;yr.useStatus=lt;var cr=yr,cn=function(Et,Dt){var Tt={};for(var _t in Et)Object.prototype.hasOwnProperty.call(Et,_t)&&Dt.indexOf(_t)<0&&(Tt[_t]=Et[_t]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,_t=Object.getOwnPropertySymbols(Et);bt<_t.length;bt++)Dt.indexOf(_t[bt])<0&&Object.prototype.propertyIsEnumerable.call(Et,_t[bt])&&(Tt[_t[bt]]=Et[_t[bt]]);return Tt},qn=Et=>{var{prefixCls:Dt,children:Tt}=Et,_t=cn(Et,["prefixCls","children"]);const{getPrefixCls:bt}=a.useContext(st.E_),Zt=bt("form",Dt),Kt=a.useMemo(()=>({prefixCls:Zt,status:"error"}),[Zt]);return a.createElement(Je.List,Object.assign({},_t),(Yt,Ft,$t)=>a.createElement(le.Rk.Provider,{value:Kt},Tt(Yt.map(zt=>Object.assign(Object.assign({},zt),{fieldKey:zt.key})),Ft,{errors:$t.errors,warnings:$t.warnings})))};function wr(){const{form:Et}=a.useContext(le.q3);return Et}const Rt=We;Rt.Item=cr,Rt.List=qn,Rt.ErrorList=He,Rt.useForm=Fe,Rt.useFormInstance=wr,Rt.useWatch=Je.useWatch,Rt.Provider=le.RV,Rt.create=()=>{};var Xt=Rt},4875:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return en}});var le=Ce(59301),yt=Ce(84105),a=Ce(87395),Te=Ce(92310),ge=Ce.n(Te),x=Ce(60499),z=Ce(18642),ie=Ce(43749),oe=Ce(72190),ee=Ce(42244),ue=Ce(38705),E=Ce(17212);function re(){return typeof BigInt=="function"}function te(St){return!St&&St!==0&&!Number.isNaN(St)||!String(St).trim()}function se(St){var jt=St.trim(),Ht=jt.startsWith("-");Ht&&(jt=jt.slice(1)),jt=jt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),jt.startsWith(".")&&(jt="0".concat(jt));var Qt=jt||"0",sn=Qt.split("."),wn=sn[0]||"0",Bn=sn[1]||"0";wn==="0"&&Bn==="0"&&(Ht=!1);var Fn=Ht?"-":"";return{negative:Ht,negativeStr:Fn,trimStr:Qt,integerStr:wn,decimalStr:Bn,fullStr:"".concat(Fn).concat(Qt)}}function ae(St){var jt=String(St);return!Number.isNaN(Number(jt))&&jt.includes("e")}function he(St){var jt=String(St);if(ae(St)){var Ht=Number(jt.slice(jt.indexOf("e-")+2)),Qt=jt.match(/\.(\d+)/);return Qt!=null&&Qt[1]&&(Ht+=Qt[1].length),Ht}return jt.includes(".")&&ve(jt)?jt.length-jt.indexOf(".")-1:0}function me(St){var jt=String(St);if(ae(St)){if(St>Number.MAX_SAFE_INTEGER)return String(re()?BigInt(St).toString():Number.MAX_SAFE_INTEGER);if(St<Number.MIN_SAFE_INTEGER)return String(re()?BigInt(St).toString():Number.MIN_SAFE_INTEGER);jt=St.toFixed(he(jt))}return se(jt).fullStr}function ve(St){return typeof St=="number"?!Number.isNaN(St):St?/^\s*-?\d+(\.\d+)?\s*$/.test(St)||/^\s*-?\d+\.\s*$/.test(St)||/^\s*-?\.\d+\s*$/.test(St):!1}var pe=function(){function St(jt){if((0,ue.Z)(this,St),(0,z.Z)(this,"origin",""),(0,z.Z)(this,"negative",void 0),(0,z.Z)(this,"integer",void 0),(0,z.Z)(this,"decimal",void 0),(0,z.Z)(this,"decimalLen",void 0),(0,z.Z)(this,"empty",void 0),(0,z.Z)(this,"nan",void 0),te(jt)){this.empty=!0;return}if(this.origin=String(jt),jt==="-"||Number.isNaN(jt)){this.nan=!0;return}var Ht=jt;if(ae(Ht)&&(Ht=Number(Ht)),Ht=typeof Ht=="string"?Ht:me(Ht),ve(Ht)){var Qt=se(Ht);this.negative=Qt.negative;var sn=Qt.trimStr.split(".");this.integer=BigInt(sn[0]);var wn=sn[1]||"0";this.decimal=BigInt(wn),this.decimalLen=wn.length}else this.nan=!0}return(0,E.Z)(St,[{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(Ht){var Qt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Ht,"0"));return BigInt(Qt)}},{key:"negate",value:function(){var Ht=new St(this.toString());return Ht.negative=!Ht.negative,Ht}},{key:"cal",value:function(Ht,Qt,sn){var wn=Math.max(this.getDecimalStr().length,Ht.getDecimalStr().length),Bn=this.alignDecimal(wn),Fn=Ht.alignDecimal(wn),gn=Qt(Bn,Fn).toString(),Dn=sn(wn),un=se(gn),Tn=un.negativeStr,Mn=un.trimStr,nn="".concat(Tn).concat(Mn.padStart(Dn+1,"0"));return new St("".concat(nn.slice(0,-Dn),".").concat(nn.slice(-Dn)))}},{key:"add",value:function(Ht){if(this.isInvalidate())return new St(Ht);var Qt=new St(Ht);return Qt.isInvalidate()?this:this.cal(Qt,function(sn,wn){return sn+wn},function(sn){return sn})}},{key:"multi",value:function(Ht){var Qt=new St(Ht);return this.isInvalidate()||Qt.isInvalidate()?new St(NaN):this.cal(Qt,function(sn,wn){return sn*wn},function(sn){return sn*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Ht){return this.toString()===(Ht==null?void 0:Ht.toString())}},{key:"lessEquals",value:function(Ht){return this.add(Ht.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Ht?this.isInvalidate()?"":se("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),St}(),be=function(){function St(jt){if((0,ue.Z)(this,St),(0,z.Z)(this,"origin",""),(0,z.Z)(this,"number",void 0),(0,z.Z)(this,"empty",void 0),te(jt)){this.empty=!0;return}this.origin=String(jt),this.number=Number(jt)}return(0,E.Z)(St,[{key:"negate",value:function(){return new St(-this.toNumber())}},{key:"add",value:function(Ht){if(this.isInvalidate())return new St(Ht);var Qt=Number(Ht);if(Number.isNaN(Qt))return this;var sn=this.number+Qt;if(sn>Number.MAX_SAFE_INTEGER)return new St(Number.MAX_SAFE_INTEGER);if(sn<Number.MIN_SAFE_INTEGER)return new St(Number.MIN_SAFE_INTEGER);var wn=Math.max(he(this.number),he(Qt));return new St(sn.toFixed(wn))}},{key:"multi",value:function(Ht){var Qt=Number(Ht);if(this.isInvalidate()||Number.isNaN(Qt))return new St(NaN);var sn=this.number*Qt;if(sn>Number.MAX_SAFE_INTEGER)return new St(Number.MAX_SAFE_INTEGER);if(sn<Number.MIN_SAFE_INTEGER)return new St(Number.MIN_SAFE_INTEGER);var wn=Math.max(he(this.number),he(Qt));return new St(sn.toFixed(wn))}},{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(Ht){return this.toNumber()===(Ht==null?void 0:Ht.toNumber())}},{key:"lessEquals",value:function(Ht){return this.add(Ht.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Ht?this.isInvalidate()?"":me(this.number):this.origin}}]),St}();function je(St){return re()?new pe(St):new be(St)}function ke(St,jt,Ht){var Qt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(St==="")return"";var sn=se(St),wn=sn.negativeStr,Bn=sn.integerStr,Fn=sn.decimalStr,gn="".concat(jt).concat(Fn),Dn="".concat(wn).concat(Bn);if(Ht>=0){var un=Number(Fn[Ht]);if(un>=5&&!Qt){var Tn=je(St).add("".concat(wn,"0.").concat("0".repeat(Ht)).concat(10-un));return ke(Tn.toString(),jt,Ht,Qt)}return Ht===0?Dn:"".concat(Dn).concat(jt).concat(Fn.padEnd(Ht,"0").slice(0,Ht))}return gn===".0"?Dn:"".concat(Dn).concat(gn)}var Be=je,De=Ce(36901),Se=Ce(34280);function Ee(St,jt){return typeof Proxy!="undefined"&&St?new Proxy(St,{get:function(Qt,sn){if(jt[sn])return jt[sn];var wn=Qt[sn];return typeof wn=="function"?wn.bind(Qt):wn}}):St}var Ie=Ce(8654),Me=Ce(48736);function Le(St,jt){var Ht=(0,le.useRef)(null);function Qt(){try{var wn=St.selectionStart,Bn=St.selectionEnd,Fn=St.value,gn=Fn.substring(0,wn),Dn=Fn.substring(Bn);Ht.current={start:wn,end:Bn,value:Fn,beforeTxt:gn,afterTxt:Dn}}catch(un){}}function sn(){if(St&&Ht.current&&jt)try{var wn=St.value,Bn=Ht.current,Fn=Bn.beforeTxt,gn=Bn.afterTxt,Dn=Bn.start,un=wn.length;if(wn.startsWith(Fn))un=Fn.length;else if(wn.endsWith(gn))un=wn.length-Ht.current.afterTxt.length;else{var Tn=Fn[Dn-1],Mn=wn.indexOf(Tn,Dn-1);Mn!==-1&&(un=Mn+1)}St.setSelectionRange(un,un)}catch(nn){(0,Me.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(nn.message))}}return[Qt,sn]}var Ae=Ce(49658),Pe=function(){var jt=(0,le.useState)(!1),Ht=(0,oe.Z)(jt,2),Qt=Ht[0],sn=Ht[1];return(0,Se.Z)(function(){sn((0,Ae.Z)())},[]),Qt},Ue=Pe,He=Ce(16089),Je=200,st=600;function _e(St){var jt=St.prefixCls,Ht=St.upNode,Qt=St.downNode,sn=St.upDisabled,wn=St.downDisabled,Bn=St.onStep,Fn=le.useRef(),gn=le.useRef([]),Dn=le.useRef();Dn.current=Bn;var un=function(){clearTimeout(Fn.current)},Tn=function(Gn,_n){Gn.preventDefault(),un(),Dn.current(_n);function Yn(){Dn.current(_n),Fn.current=setTimeout(Yn,Je)}Fn.current=setTimeout(Yn,st)};le.useEffect(function(){return function(){un(),gn.current.forEach(function(Hn){return He.Z.cancel(Hn)})}},[]);var Mn=Ue();if(Mn)return null;var nn="".concat(jt,"-handler"),tn=ge()(nn,"".concat(nn,"-up"),(0,z.Z)({},"".concat(nn,"-up-disabled"),sn)),dn=ge()(nn,"".concat(nn,"-down"),(0,z.Z)({},"".concat(nn,"-down-disabled"),wn)),Cn=function(){return gn.current.push((0,He.Z)(un))},Pn={unselectable:"on",role:"button",onMouseUp:Cn,onMouseLeave:Cn};return le.createElement("div",{className:"".concat(nn,"-wrap")},le.createElement("span",(0,x.Z)({},Pn,{onMouseDown:function(Gn){Tn(Gn,!0)},"aria-label":"Increase Value","aria-disabled":sn,className:tn}),Ht||le.createElement("span",{unselectable:"on",className:"".concat(jt,"-handler-up-inner")})),le.createElement("span",(0,x.Z)({},Pn,{onMouseDown:function(Gn){Tn(Gn,!1)},"aria-label":"Decrease Value","aria-disabled":wn,className:dn}),Qt||le.createElement("span",{unselectable:"on",className:"".concat(jt,"-handler-down-inner")})))}function Ke(St){var jt=typeof St=="number"?me(St):se(St).fullStr,Ht=jt.includes(".");return Ht?se(jt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:St+"0"}var nt=Ce(30292),rt=function(){var St=(0,le.useRef)(0),jt=function(){He.Z.cancel(St.current)};return(0,le.useEffect)(function(){return jt},[]),function(Ht){jt(),St.current=(0,He.Z)(function(){Ht()})}},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"],Ve=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Ye=function(jt,Ht){return jt||Ht.isEmpty()?Ht.toString():Ht.toNumber()},Ge=function(jt){var Ht=Be(jt);return Ht.isInvalidate()?null:Ht},it=le.forwardRef(function(St,jt){var Ht=St.prefixCls,Qt=St.className,sn=St.style,wn=St.min,Bn=St.max,Fn=St.step,gn=Fn===void 0?1:Fn,Dn=St.defaultValue,un=St.value,Tn=St.disabled,Mn=St.readOnly,nn=St.upHandler,tn=St.downHandler,dn=St.keyboard,Cn=St.changeOnWheel,Pn=Cn===void 0?!1:Cn,Hn=St.controls,Gn=Hn===void 0?!0:Hn,_n=St.classNames,Yn=St.stringMode,Wn=St.parser,yr=St.formatter,cr=St.precision,cn=St.decimalSeparator,An=St.onChange,qn=St.onInput,wr=St.onPressEnter,Rt=St.onStep,Xt=St.changeOnBlur,Et=Xt===void 0?!0:Xt,Dt=St.domRef,Tt=(0,ee.Z)(St,et),_t="".concat(Ht,"-input"),bt=le.useRef(null),Zt=le.useState(!1),Kt=(0,oe.Z)(Zt,2),Yt=Kt[0],Ft=Kt[1],$t=le.useRef(!1),zt=le.useRef(!1),Wt=le.useRef(!1),hn=le.useState(function(){return Be(un!=null?un:Dn)}),mn=(0,oe.Z)(hn,2),In=mn[0],er=mn[1];function ar(Ln){un===void 0&&er(Ln)}var fr=le.useCallback(function(Ln,jn){if(!jn)return cr>=0?cr:Math.max(he(Ln),he(gn))},[cr,gn]),Jn=le.useCallback(function(Ln){var jn=String(Ln);if(Wn)return Wn(jn);var tr=jn;return cn&&(tr=tr.replace(cn,".")),tr.replace(/[^\w.-]+/g,"")},[Wn,cn]),Kn=le.useRef(""),$n=le.useCallback(function(Ln,jn){if(yr)return yr(Ln,{userTyping:jn,input:String(Kn.current)});var tr=typeof Ln=="number"?me(Ln):Ln;if(!jn){var ur=fr(tr,jn);if(ve(tr)&&(cn||ur>=0)){var Nn=cn||".";tr=ke(tr,Nn,ur)}}return tr},[yr,fr,cn]),dr=le.useState(function(){var Ln=Dn!=null?Dn:un;return In.isInvalidate()&&["string","number"].includes((0,ie.Z)(Ln))?Number.isNaN(Ln)?"":Ln:$n(In.toString(),!1)}),Tr=(0,oe.Z)(dr,2),Cr=Tr[0],Or=Tr[1];Kn.current=Cr;function Vn(Ln,jn){Or($n(Ln.isInvalidate()?Ln.toString(!1):Ln.toString(!jn),jn))}var xr=le.useMemo(function(){return Ge(Bn)},[Bn,cr]),hr=le.useMemo(function(){return Ge(wn)},[wn,cr]),Hr=le.useMemo(function(){return!xr||!In||In.isInvalidate()?!1:xr.lessEquals(In)},[xr,In]),Xr=le.useMemo(function(){return!hr||!In||In.isInvalidate()?!1:In.lessEquals(hr)},[hr,In]),Ur=Le(bt.current,Yt),Kr=(0,oe.Z)(Ur,2),ri=Kr[0],Fr=Kr[1],qr=function(jn){return xr&&!jn.lessEquals(xr)?xr:hr&&!hr.lessEquals(jn)?hr:null},Pr=function(jn){return!qr(jn)},ei=function(jn,tr){var ur=jn,Nn=Pr(ur)||ur.isEmpty();if(!ur.isEmpty()&&!tr&&(ur=qr(ur)||ur,Nn=!0),!Mn&&!Tn&&Nn){var Sn=ur.toString(),Un=fr(Sn,tr);return Un>=0&&(ur=Be(ke(Sn,".",Un)),Pr(ur)||(ur=Be(ke(Sn,".",Un,!0)))),ur.equals(In)||(ar(ur),An==null||An(ur.isEmpty()?null:Ye(Yn,ur)),un===void 0&&Vn(ur,tr)),ur}return In},ui=rt(),ki=function Ln(jn){if(ri(),Kn.current=jn,Or(jn),!zt.current){var tr=Jn(jn),ur=Be(tr);ur.isNaN()||ei(ur,!0)}qn==null||qn(jn),ui(function(){var Nn=jn;Wn||(Nn=jn.replace(/。/g,".")),Nn!==jn&&Ln(Nn)})},mi=function(){zt.current=!0},xi=function(){zt.current=!1,ki(bt.current.value)},hi=function(jn){ki(jn.target.value)},ir=function(jn){var tr;if(!(jn&&Hr||!jn&&Xr)){$t.current=!1;var ur=Be(Wt.current?Ke(gn):gn);jn||(ur=ur.negate());var Nn=(In||Be(0)).add(ur.toString()),Sn=ei(Nn,!1);Rt==null||Rt(Ye(Yn,Sn),{offset:Wt.current?Ke(gn):gn,type:jn?"up":"down"}),(tr=bt.current)===null||tr===void 0||tr.focus()}},Qn=function(jn){var tr=Be(Jn(Cr)),ur;tr.isNaN()?ur=ei(In,jn):ur=ei(tr,jn),un!==void 0?Vn(In,!1):ur.isNaN()||Vn(ur,!1)},gr=function(){$t.current=!0},Xn=function(jn){var tr=jn.key,ur=jn.shiftKey;$t.current=!0,Wt.current=ur,tr==="Enter"&&(zt.current||($t.current=!1),Qn(!1),wr==null||wr(jn)),dn!==!1&&!zt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(tr)&&(ir(tr==="Up"||tr==="ArrowUp"),jn.preventDefault())},bn=function(){$t.current=!1,Wt.current=!1};le.useEffect(function(){if(Pn&&Yt){var Ln=function(ur){ir(ur.deltaY<0),ur.preventDefault()},jn=bt.current;if(jn)return jn.addEventListener("wheel",Ln,{passive:!1}),function(){return jn.removeEventListener("wheel",Ln)}}});var kn=function(){Et&&Qn(!1),Ft(!1),$t.current=!1};return(0,Se.o)(function(){In.isInvalidate()||Vn(In,!1)},[cr,yr]),(0,Se.o)(function(){var Ln=Be(un);er(Ln);var jn=Be(Jn(Cr));(!Ln.equals(jn)||!$t.current||yr)&&Vn(Ln,$t.current)},[un]),(0,Se.o)(function(){yr&&Fr()},[Cr]),le.createElement("div",{ref:Dt,className:ge()(Ht,Qt,(0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)({},"".concat(Ht,"-focused"),Yt),"".concat(Ht,"-disabled"),Tn),"".concat(Ht,"-readonly"),Mn),"".concat(Ht,"-not-a-number"),In.isNaN()),"".concat(Ht,"-out-of-range"),!In.isInvalidate()&&!Pr(In))),style:sn,onFocus:function(){Ft(!0)},onBlur:kn,onKeyDown:Xn,onKeyUp:bn,onCompositionStart:mi,onCompositionEnd:xi,onBeforeInput:gr},Gn&&le.createElement(_e,{prefixCls:Ht,upNode:nn,downNode:tn,upDisabled:Hr,downDisabled:Xr,onStep:ir}),le.createElement("div",{className:"".concat(_t,"-wrap")},le.createElement("input",(0,x.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":wn,"aria-valuemax":Bn,"aria-valuenow":In.isInvalidate()?null:In.toString(),step:gn},Tt,{ref:(0,Ie.sQ)(bt,jt),className:_t,value:Cr,onChange:hi,disabled:Tn,readOnly:Mn}))))}),qe=le.forwardRef(function(St,jt){var Ht=St.disabled,Qt=St.style,sn=St.prefixCls,wn=sn===void 0?"rc-input-number":sn,Bn=St.value,Fn=St.prefix,gn=St.suffix,Dn=St.addonBefore,un=St.addonAfter,Tn=St.className,Mn=St.classNames,nn=(0,ee.Z)(St,Ve),tn=le.useRef(null),dn=le.useRef(null),Cn=le.useRef(null),Pn=function(Gn){Cn.current&&(0,nt.nH)(Cn.current,Gn)};return le.useImperativeHandle(jt,function(){return Ee(Cn.current,{focus:Pn,nativeElement:tn.current.nativeElement||dn.current})}),le.createElement(De.BaseInput,{className:Tn,triggerFocus:Pn,prefixCls:wn,value:Bn,disabled:Ht,style:Qt,prefix:Fn,suffix:gn,addonAfter:un,addonBefore:Dn,classNames:Mn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:tn},le.createElement(it,(0,x.Z)({prefixCls:wn,disabled:Ht,ref:Cn,domRef:dn,className:Mn==null?void 0:Mn.input},nn)))}),vt=qe,ot=vt,Qe=Ce(62487),Fe=Ce(82855),Re=Ce(48755),ne=Ce(60840),fe=Ce(2171),Ne=Ce(83397),We=Ce(31756),we=Ce(56553),ye=Ce(24971),Oe=Ce(70045),$e=Ce(36237),Ze=Ce(53075),Xe=Ce(64910),at=Ce(39082),lt=Ce(63356),mt=Ce(56119),ut=Ce(16931),ct=Ce(51636),Pt=Ce(17835);const wt=St=>{var jt;const Ht=(jt=St.handleVisible)!==null&&jt!==void 0?jt:"auto",Qt=St.controlHeightSM-St.lineWidth*2;return Object.assign(Object.assign({},(0,Xe.T)(St)),{controlWidth:90,handleWidth:Qt,handleFontSize:St.fontSize/2,handleVisible:Ht,handleActiveBg:St.colorFillAlter,handleBg:St.colorBgContainer,filledHandleBg:new Pt.FastColor(St.colorFillSecondary).onBackground(St.colorBgContainer).toHexString(),handleHoverColor:St.colorPrimary,handleBorderColor:St.colorBorder,handleOpacity:Ht===!0?1:0,handleVisibleWidth:Ht===!0?Qt:0})},Bt=(St,jt)=>{let{componentCls:Ht,borderRadiusSM:Qt,borderRadiusLG:sn}=St;const wn=jt==="lg"?sn:Qt;return{[`&-${jt}`]:{[`${Ht}-handler-wrap`]:{borderStartEndRadius:wn,borderEndEndRadius:wn},[`${Ht}-handler-up`]:{borderStartEndRadius:wn},[`${Ht}-handler-down`]:{borderEndEndRadius:wn}}}},At=St=>{const{componentCls:jt,lineWidth:Ht,lineType:Qt,borderRadius:sn,inputFontSizeSM:wn,inputFontSizeLG:Bn,controlHeightLG:Fn,controlHeightSM:gn,colorError:Dn,paddingInlineSM:un,paddingBlockSM:Tn,paddingBlockLG:Mn,paddingInlineLG:nn,colorTextDescription:tn,motionDurationMid:dn,handleHoverColor:Cn,handleOpacity:Pn,paddingInline:Hn,paddingBlock:Gn,handleBg:_n,handleActiveBg:Yn,colorTextDisabled:Wn,borderRadiusSM:yr,borderRadiusLG:cr,controlWidth:cn,handleBorderColor:An,filledHandleBg:qn,lineHeightLG:wr,calc:Rt}=St;return[{[jt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,lt.Wf)(St)),(0,Ze.ik)(St)),{display:"inline-block",width:cn,margin:0,padding:0,borderRadius:sn}),(0,at.qG)(St,{[`${jt}-handler-wrap`]:{background:_n,[`${jt}-handler-down`]:{borderBlockStart:`${(0,$e.unit)(Ht)} ${Qt} ${An}`}}})),(0,at.H8)(St,{[`${jt}-handler-wrap`]:{background:qn,[`${jt}-handler-down`]:{borderBlockStart:`${(0,$e.unit)(Ht)} ${Qt} ${An}`}},"&:focus-within":{[`${jt}-handler-wrap`]:{background:_n}}})),(0,at.vc)(St,{[`${jt}-handler-wrap`]:{background:_n,[`${jt}-handler-down`]:{borderBlockStart:`${(0,$e.unit)(Ht)} ${Qt} ${An}`}}})),(0,at.Mu)(St)),{"&-rtl":{direction:"rtl",[`${jt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Bn,lineHeight:wr,borderRadius:cr,[`input${jt}-input`]:{height:Rt(Fn).sub(Rt(Ht).mul(2)).equal(),padding:`${(0,$e.unit)(Mn)} ${(0,$e.unit)(nn)}`}},"&-sm":{padding:0,fontSize:wn,borderRadius:yr,[`input${jt}-input`]:{height:Rt(gn).sub(Rt(Ht).mul(2)).equal(),padding:`${(0,$e.unit)(Tn)} ${(0,$e.unit)(un)}`}},"&-out-of-range":{[`${jt}-input-wrap`]:{input:{color:Dn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,lt.Wf)(St)),(0,Ze.s7)(St)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${jt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${jt}-group-addon`]:{borderRadius:cr,fontSize:St.fontSizeLG}},"&-sm":{[`${jt}-group-addon`]:{borderRadius:yr}}},(0,at.ir)(St)),(0,at.S5)(St)),{[`&:not(${jt}-compact-first-item):not(${jt}-compact-last-item)${jt}-compact-item`]:{[`${jt}, ${jt}-group-addon`]:{borderRadius:0}},[`&:not(${jt}-compact-last-item)${jt}-compact-first-item`]:{[`${jt}, ${jt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${jt}-compact-first-item)${jt}-compact-last-item`]:{[`${jt}, ${jt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${jt}-input`]:{cursor:"not-allowed"},[jt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,lt.Wf)(St)),{width:"100%",padding:`${(0,$e.unit)(Gn)} ${(0,$e.unit)(Hn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:sn,outline:0,transition:`all ${dn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Ze.nz)(St.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${jt}-handler-wrap, &-focused ${jt}-handler-wrap`]:{width:St.handleWidth,opacity:1}})},{[jt]:Object.assign(Object.assign(Object.assign({[`${jt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:St.handleVisibleWidth,opacity:Pn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:sn,borderEndEndRadius:sn,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${dn}`,overflow:"hidden",[`${jt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${jt}-handler-up-inner,
${jt}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:St.handleFontSize}}},[`${jt}-handler`]:{height:"50%",overflow:"hidden",color:tn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,$e.unit)(Ht)} ${Qt} ${An}`,transition:`all ${dn} linear`,"&:active":{background:Yn},"&:hover":{height:"60%",[`
${jt}-handler-up-inner,
${jt}-handler-down-inner
`]:{color:Cn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,lt.Ro)()),{color:tn,transition:`all ${dn} linear`,userSelect:"none"})},[`${jt}-handler-up`]:{borderStartEndRadius:sn},[`${jt}-handler-down`]:{borderEndEndRadius:sn}},Bt(St,"lg")),Bt(St,"sm")),{"&-disabled, &-readonly":{[`${jt}-handler-wrap`]:{display:"none"},[`${jt}-input`]:{color:"inherit"}},[`
${jt}-handler-up-disabled,
${jt}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${jt}-handler-up-disabled:hover &-handler-up-inner,
${jt}-handler-down-disabled:hover &-handler-down-inner
`]:{color:Wn}})}]},pt=St=>{const{componentCls:jt,paddingBlock:Ht,paddingInline:Qt,inputAffixPadding:sn,controlWidth:wn,borderRadiusLG:Bn,borderRadiusSM:Fn,paddingInlineLG:gn,paddingInlineSM:Dn,paddingBlockLG:un,paddingBlockSM:Tn,motionDurationMid:Mn}=St;return{[`${jt}-affix-wrapper`]:Object.assign(Object.assign({[`input${jt}-input`]:{padding:`${(0,$e.unit)(Ht)} 0`}},(0,Ze.ik)(St)),{position:"relative",display:"inline-flex",alignItems:"center",width:wn,padding:0,paddingInlineStart:Qt,"&-lg":{borderRadius:Bn,paddingInlineStart:gn,[`input${jt}-input`]:{padding:`${(0,$e.unit)(un)} 0`}},"&-sm":{borderRadius:Fn,paddingInlineStart:Dn,[`input${jt}-input`]:{padding:`${(0,$e.unit)(Tn)} 0`}},[`&:not(${jt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${jt}-disabled`]:{background:"transparent"},[`> div${jt}`]:{width:"100%",border:"none",outline:"none",[`&${jt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${jt}-handler-wrap`]:{zIndex:2},[jt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:sn},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Qt,marginInlineStart:sn,transition:`margin ${Mn}`}},[`&:hover ${jt}-handler-wrap, &-focused ${jt}-handler-wrap`]:{width:St.handleWidth,opacity:1},[`&:not(${jt}-affix-wrapper-without-controls):hover ${jt}-suffix`]:{marginInlineEnd:St.calc(St.handleWidth).add(Qt).equal()}})}};var Mt=(0,ut.I$)("InputNumber",St=>{const jt=(0,ct.mergeToken)(St,(0,Xe.e)(St));return[At(jt),pt(jt),(0,mt.c)(jt)]},wt,{unitless:{handleOpacity:!0}}),kt=function(St,jt){var Ht={};for(var Qt in St)Object.prototype.hasOwnProperty.call(St,Qt)&&jt.indexOf(Qt)<0&&(Ht[Qt]=St[Qt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sn=0,Qt=Object.getOwnPropertySymbols(St);sn<Qt.length;sn++)jt.indexOf(Qt[sn])<0&&Object.prototype.propertyIsEnumerable.call(St,Qt[sn])&&(Ht[Qt[sn]]=St[Qt[sn]]);return Ht};const xt=le.forwardRef((St,jt)=>{const{getPrefixCls:Ht,direction:Qt}=le.useContext(Re.E_),sn=le.useRef(null);le.useImperativeHandle(jt,()=>sn.current);const{className:wn,rootClassName:Bn,size:Fn,disabled:gn,prefixCls:Dn,addonBefore:un,addonAfter:Tn,prefix:Mn,suffix:nn,bordered:tn,readOnly:dn,status:Cn,controls:Pn,variant:Hn}=St,Gn=kt(St,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),_n=Ht("input-number",Dn),Yn=(0,Ne.Z)(_n),[Wn,yr,cr]=Mt(_n,Yn),{compactSize:cn,compactItemClassnames:An}=(0,Oe.ri)(_n,Qt);let qn=le.createElement(a.Z,{className:`${_n}-handler-up-inner`}),wr=le.createElement(yt.Z,{className:`${_n}-handler-down-inner`});const Rt=typeof Pn=="boolean"?Pn:void 0;typeof Pn=="object"&&(qn=typeof Pn.upIcon=="undefined"?qn:le.createElement("span",{className:`${_n}-handler-up-inner`},Pn.upIcon),wr=typeof Pn.downIcon=="undefined"?wr:le.createElement("span",{className:`${_n}-handler-down-inner`},Pn.downIcon));const{hasFeedback:Xt,status:Et,isFormItemInput:Dt,feedbackIcon:Tt}=le.useContext(we.aM),_t=(0,Fe.F)(Et,Cn),bt=(0,We.Z)(mn=>{var In;return(In=Fn!=null?Fn:cn)!==null&&In!==void 0?In:mn}),Zt=le.useContext(fe.Z),Kt=gn!=null?gn:Zt,[Yt,Ft]=(0,ye.Z)("inputNumber",Hn,tn),$t=Xt&&le.createElement(le.Fragment,null,Tt),zt=ge()({[`${_n}-lg`]:bt==="large",[`${_n}-sm`]:bt==="small",[`${_n}-rtl`]:Qt==="rtl",[`${_n}-in-form-item`]:Dt},yr),Wt=`${_n}-group`,hn=le.createElement(ot,Object.assign({ref:sn,disabled:Kt,className:ge()(cr,Yn,wn,Bn,An),upHandler:qn,downHandler:wr,prefixCls:_n,readOnly:dn,controls:Rt,prefix:Mn,suffix:$t||nn,addonBefore:un&&le.createElement(Qe.Z,{form:!0,space:!0},un),addonAfter:Tn&&le.createElement(Qe.Z,{form:!0,space:!0},Tn),classNames:{input:zt,variant:ge()({[`${_n}-${Yt}`]:Ft},(0,Fe.Z)(_n,_t,Xt)),affixWrapper:ge()({[`${_n}-affix-wrapper-sm`]:bt==="small",[`${_n}-affix-wrapper-lg`]:bt==="large",[`${_n}-affix-wrapper-rtl`]:Qt==="rtl",[`${_n}-affix-wrapper-without-controls`]:Pn===!1||Kt},yr),wrapper:ge()({[`${Wt}-rtl`]:Qt==="rtl"},yr),groupWrapper:ge()({[`${_n}-group-wrapper-sm`]:bt==="small",[`${_n}-group-wrapper-lg`]:bt==="large",[`${_n}-group-wrapper-rtl`]:Qt==="rtl",[`${_n}-group-wrapper-${Yt}`]:Ft},(0,Fe.Z)(`${_n}-group-wrapper`,_t,Xt),yr)}},Gn));return Wn(hn)}),It=xt,Ut=St=>le.createElement(ne.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},le.createElement(xt,Object.assign({},St)));It._InternalPanelDoNotUseOrYouWillBeFired=Ut;var en=It},49397:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return be}});var le=Ce(59301),yt=Ce(92310),a=Ce.n(yt),Te=Ce(36901),ge=Ce(8654),x=Ce(62487),z=Ce(86013),ie=Ce(82855),oe=Ce(48755),ee=Ce(2171),ue=Ce(83397),E=Ce(31756),re=Ce(56553),te=Ce(24971),se=Ce(70045),ae=Ce(23826),he=Ce(53075);function me(je){return!!(je.prefix||je.suffix||je.allowClear||je.showCount)}var ve=function(je,ke){var Be={};for(var De in je)Object.prototype.hasOwnProperty.call(je,De)&&ke.indexOf(De)<0&&(Be[De]=je[De]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,De=Object.getOwnPropertySymbols(je);Se<De.length;Se++)ke.indexOf(De[Se])<0&&Object.prototype.propertyIsEnumerable.call(je,De[Se])&&(Be[De[Se]]=je[De[Se]]);return Be},be=(0,le.forwardRef)((je,ke)=>{const{prefixCls:Be,bordered:De=!0,status:Se,size:Ee,disabled:Ie,onBlur:Me,onFocus:Le,suffix:Ae,allowClear:Pe,addonAfter:Ue,addonBefore:He,className:Je,style:st,styles:_e,rootClassName:Ke,onChange:nt,classNames:rt,variant:et}=je,Ve=ve(je,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Ye,direction:Ge,allowClear:it,autoComplete:qe,className:vt,style:ot,classNames:Qe,styles:Fe}=(0,oe.dj)("input"),Re=Ye("input",Be),ne=(0,le.useRef)(null),fe=(0,ue.Z)(Re),[Ne,We,we]=(0,he.TI)(Re,Ke),[ye]=(0,he.ZP)(Re,fe),{compactSize:Oe,compactItemClassnames:$e}=(0,se.ri)(Re,Ge),Ze=(0,E.Z)(en=>{var St;return(St=Ee!=null?Ee:Oe)!==null&&St!==void 0?St:en}),Xe=le.useContext(ee.Z),at=Ie!=null?Ie:Xe,{status:lt,hasFeedback:mt,feedbackIcon:ut}=(0,le.useContext)(re.aM),ct=(0,ie.F)(lt,Se),Pt=me(je)||!!mt,wt=(0,le.useRef)(Pt),Bt=(0,ae.Z)(ne,!0),At=en=>{Bt(),Me==null||Me(en)},pt=en=>{Bt(),Le==null||Le(en)},Mt=en=>{Bt(),nt==null||nt(en)},kt=(mt||Ae)&&le.createElement(le.Fragment,null,Ae,mt&&ut),xt=(0,z.Z)(Pe!=null?Pe:it),[It,Ut]=(0,te.Z)("input",et,De);return Ne(ye(le.createElement(Te.default,Object.assign({ref:(0,ge.sQ)(ke,ne),prefixCls:Re,autoComplete:qe},Ve,{disabled:at,onBlur:At,onFocus:pt,style:Object.assign(Object.assign({},ot),st),styles:Object.assign(Object.assign({},Fe),_e),suffix:kt,allowClear:xt,className:a()(Je,Ke,we,fe,$e,vt),onChange:Mt,addonBefore:He&&le.createElement(x.Z,{form:!0,space:!0},He),addonAfter:Ue&&le.createElement(x.Z,{form:!0,space:!0},Ue),classNames:Object.assign(Object.assign(Object.assign({},rt),Qe),{input:a()({[`${Re}-sm`]:Ze==="small",[`${Re}-lg`]:Ze==="large",[`${Re}-rtl`]:Ge==="rtl"},rt==null?void 0:rt.input,Qe.input,We),variant:a()({[`${Re}-${It}`]:Ut},(0,ie.Z)(Re,ct)),affixWrapper:a()({[`${Re}-affix-wrapper-sm`]:Ze==="small",[`${Re}-affix-wrapper-lg`]:Ze==="large",[`${Re}-affix-wrapper-rtl`]:Ge==="rtl"},We),wrapper:a()({[`${Re}-group-rtl`]:Ge==="rtl"},We),groupWrapper:a()({[`${Re}-group-wrapper-sm`]:Ze==="small",[`${Re}-group-wrapper-lg`]:Ze==="large",[`${Re}-group-wrapper-rtl`]:Ge==="rtl",[`${Re}-group-wrapper-${It}`]:Ut},(0,ie.Z)(`${Re}-group-wrapper`,ct,mt),We)})}))))})},79809:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ke}});var le=Ce(59301),yt=Ce(92310),a=Ce.n(yt),Te=Ce(22711),ge=Ce(86013),x=Ce(82855),z=Ce(48755),ie=Ce(2171),oe=Ce(83397),ee=Ce(31756),ue=Ce(56553),E=Ce(24971),re=Ce(70045),te=Ce(30292),se=Ce(53075),ae=Ce(16931),he=Ce(51636),me=Ce(64910);const ve=Be=>{const{componentCls:De,paddingLG:Se}=Be,Ee=`${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"},[Ee]:{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${Ee}-has-feedback ${De}
`]:{paddingInlineEnd:Se},[`&-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},[`${Ee}-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 pe=(0,ae.I$)(["Input","TextArea"],Be=>{const De=(0,he.mergeToken)(Be,(0,me.e)(Be));return[ve(De)]},me.T,{resetFont:!1}),be=function(Be,De){var Se={};for(var Ee in Be)Object.prototype.hasOwnProperty.call(Be,Ee)&&De.indexOf(Ee)<0&&(Se[Ee]=Be[Ee]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Ee=Object.getOwnPropertySymbols(Be);Ie<Ee.length;Ie++)De.indexOf(Ee[Ie])<0&&Object.prototype.propertyIsEnumerable.call(Be,Ee[Ie])&&(Se[Ee[Ie]]=Be[Ee[Ie]]);return Se},ke=(0,le.forwardRef)((Be,De)=>{var Se;const{prefixCls:Ee,bordered:Ie=!0,size:Me,disabled:Le,status:Ae,allowClear:Pe,classNames:Ue,rootClassName:He,className:Je,style:st,styles:_e,variant:Ke,showCount:nt,onMouseDown:rt,onResize:et}=Be,Ve=be(Be,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Ye,direction:Ge,allowClear:it,autoComplete:qe,className:vt,style:ot,classNames:Qe,styles:Fe}=(0,z.dj)("textArea"),Re=le.useContext(ie.Z),ne=Le!=null?Le:Re,{status:fe,hasFeedback:Ne,feedbackIcon:We}=le.useContext(ue.aM),we=(0,x.F)(fe,Ae),ye=le.useRef(null);le.useImperativeHandle(De,()=>{var Ut;return{resizableTextArea:(Ut=ye.current)===null||Ut===void 0?void 0:Ut.resizableTextArea,focus:en=>{var St,jt;(0,te.nH)((jt=(St=ye.current)===null||St===void 0?void 0:St.resizableTextArea)===null||jt===void 0?void 0:jt.textArea,en)},blur:()=>{var en;return(en=ye.current)===null||en===void 0?void 0:en.blur()}}});const Oe=Ye("input",Ee),$e=(0,oe.Z)(Oe),[Ze,Xe,at]=(0,se.TI)(Oe,He),[lt]=pe(Oe,$e),{compactSize:mt,compactItemClassnames:ut}=(0,re.ri)(Oe,Ge),ct=(0,ee.Z)(Ut=>{var en;return(en=Me!=null?Me:mt)!==null&&en!==void 0?en:Ut}),[Pt,wt]=(0,E.Z)("textArea",Ke,Ie),Bt=(0,ge.Z)(Pe!=null?Pe:it),[At,pt]=le.useState(!1),[Mt,kt]=le.useState(!1),xt=Ut=>{pt(!0),rt==null||rt(Ut);const en=()=>{pt(!1),document.removeEventListener("mouseup",en)};document.addEventListener("mouseup",en)},It=Ut=>{var en,St;if(et==null||et(Ut),At&&typeof getComputedStyle=="function"){const jt=(St=(en=ye.current)===null||en===void 0?void 0:en.nativeElement)===null||St===void 0?void 0:St.querySelector("textarea");jt&&getComputedStyle(jt).resize==="both"&&kt(!0)}};return Ze(lt(le.createElement(Te.default,Object.assign({autoComplete:qe},Ve,{style:Object.assign(Object.assign({},ot),st),styles:Object.assign(Object.assign({},Fe),_e),disabled:ne,allowClear:Bt,className:a()(at,$e,Je,He,ut,vt,Mt&&`${Oe}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Ue),Qe),{textarea:a()({[`${Oe}-sm`]:ct==="small",[`${Oe}-lg`]:ct==="large"},Xe,Ue==null?void 0:Ue.textarea,Qe.textarea,At&&`${Oe}-mouse-active`),variant:a()({[`${Oe}-${Pt}`]:wt},(0,x.Z)(Oe,we)),affixWrapper:a()(`${Oe}-textarea-affix-wrapper`,{[`${Oe}-affix-wrapper-rtl`]:Ge==="rtl",[`${Oe}-affix-wrapper-sm`]:ct==="small",[`${Oe}-affix-wrapper-lg`]:ct==="large",[`${Oe}-textarea-show-count`]:nt||((Se=Be.count)===null||Se===void 0?void 0:Se.show)},Xe)}),prefixCls:Oe,suffix:Ne&&le.createElement("span",{className:`${Oe}-textarea-suffix`},We),showCount:nt,ref:ye,onResize:It,onMouseDown:xt}))))})},23826:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return yt}});var le=Ce(59301);function yt(a,Te){const ge=(0,le.useRef)([]),x=()=>{ge.current.push(setTimeout(()=>{var z,ie,oe,ee;!((z=a.current)===null||z===void 0)&&z.input&&((ie=a.current)===null||ie===void 0?void 0:ie.input.getAttribute("type"))==="password"&&(!((oe=a.current)===null||oe===void 0)&&oe.input.hasAttribute("value"))&&((ee=a.current)===null||ee===void 0||ee.input.removeAttribute("value"))}))};return(0,le.useEffect)(()=>(Te&&x(),()=>ge.current.forEach(z=>{z&&clearTimeout(z)})),[]),x}},37568:function(on,Lt,Ce){"use strict";Ce.d(Lt,{default:function(){return Qe}});var le=Ce(59301),yt=Ce(92310),a=Ce.n(yt),Te=Ce(48755),ge=Ce(56553),x=Ce(53075),ie=Fe=>{const{getPrefixCls:Re,direction:ne}=(0,le.useContext)(Te.E_),{prefixCls:fe,className:Ne}=Fe,We=Re("input-group",fe),we=Re("input"),[ye,Oe,$e]=(0,x.ZP)(we),Ze=a()(We,$e,{[`${We}-lg`]:Fe.size==="large",[`${We}-sm`]:Fe.size==="small",[`${We}-compact`]:Fe.compact,[`${We}-rtl`]:ne==="rtl"},Oe,Ne),Xe=(0,le.useContext)(ge.aM),at=(0,le.useMemo)(()=>Object.assign(Object.assign({},Xe),{isFormItemInput:!1}),[Xe]);return ye(le.createElement("span",{className:Ze,style:Fe.style,onMouseEnter:Fe.onMouseEnter,onMouseLeave:Fe.onMouseLeave,onFocus:Fe.onFocus,onBlur:Fe.onBlur},le.createElement(ge.aM.Provider,{value:at},Fe.children)))},oe=Ce(49397),ee=Ce(77654),ue=Ce(6089),E=Ce(26112),re=Ce(82855),te=Ce(31756),se=Ce(16931),ae=Ce(51636),he=Ce(64910);const me=Fe=>{const{componentCls:Re,paddingXS:ne}=Fe;return{[Re]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ne,"&-rtl":{direction:"rtl"},[`${Re}-input`]:{textAlign:"center",paddingInline:Fe.paddingXXS},[`&${Re}-sm ${Re}-input`]:{paddingInline:Fe.calc(Fe.paddingXXS).div(2).equal()},[`&${Re}-lg ${Re}-input`]:{paddingInline:Fe.paddingXS}}}};var ve=(0,se.I$)(["Input","OTP"],Fe=>{const Re=(0,ae.mergeToken)(Fe,(0,he.e)(Fe));return[me(Re)]},he.T),pe=Ce(16089),be=function(Fe,Re){var ne={};for(var fe in Fe)Object.prototype.hasOwnProperty.call(Fe,fe)&&Re.indexOf(fe)<0&&(ne[fe]=Fe[fe]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,fe=Object.getOwnPropertySymbols(Fe);Ne<fe.length;Ne++)Re.indexOf(fe[Ne])<0&&Object.prototype.propertyIsEnumerable.call(Fe,fe[Ne])&&(ne[fe[Ne]]=Fe[fe[Ne]]);return ne},ke=le.forwardRef((Fe,Re)=>{const{value:ne,onChange:fe,onActiveChange:Ne,index:We,mask:we}=Fe,ye=be(Fe,["value","onChange","onActiveChange","index","mask"]),Oe=ne&&typeof we=="string"?we:ne,$e=mt=>{fe(We,mt.target.value)},Ze=le.useRef(null);le.useImperativeHandle(Re,()=>Ze.current);const Xe=()=>{(0,pe.Z)(()=>{var mt;const ut=(mt=Ze.current)===null||mt===void 0?void 0:mt.input;document.activeElement===ut&&ut&&ut.select()})},at=mt=>{const{key:ut,ctrlKey:ct,metaKey:Pt}=mt;ut==="ArrowLeft"?Ne(We-1):ut==="ArrowRight"?Ne(We+1):ut==="z"&&(ct||Pt)&&mt.preventDefault(),Xe()},lt=mt=>{mt.key==="Backspace"&&!ne&&Ne(We-1),Xe()};return le.createElement(oe.Z,Object.assign({type:we===!0?"password":"text"},ye,{ref:Ze,value:Oe,onInput:$e,onFocus:Xe,onKeyDown:at,onKeyUp:lt,onMouseDown:Xe,onMouseUp:Xe}))}),Be=function(Fe,Re){var ne={};for(var fe in Fe)Object.prototype.hasOwnProperty.call(Fe,fe)&&Re.indexOf(fe)<0&&(ne[fe]=Fe[fe]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,fe=Object.getOwnPropertySymbols(Fe);Ne<fe.length;Ne++)Re.indexOf(fe[Ne])<0&&Object.prototype.propertyIsEnumerable.call(Fe,fe[Ne])&&(ne[fe[Ne]]=Fe[fe[Ne]]);return ne};function De(Fe){return(Fe||"").split("")}const Se=Fe=>{const{index:Re,prefixCls:ne,separator:fe}=Fe,Ne=typeof fe=="function"?fe(Re):fe;return Ne?le.createElement("span",{className:`${ne}-separator`},Ne):null};var Ie=le.forwardRef((Fe,Re)=>{const{prefixCls:ne,length:fe=6,size:Ne,defaultValue:We,value:we,onChange:ye,formatter:Oe,separator:$e,variant:Ze,disabled:Xe,status:at,autoFocus:lt,mask:mt,type:ut,onInput:ct,inputMode:Pt}=Fe,wt=Be(Fe,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Bt,direction:At}=le.useContext(Te.E_),pt=Bt("otp",ne),Mt=(0,E.Z)(wt,{aria:!0,data:!0,attr:!0}),[kt,xt,It]=ve(pt),Ut=(0,te.Z)(Mn=>Ne!=null?Ne:Mn),en=le.useContext(ge.aM),St=(0,re.F)(en.status,at),jt=le.useMemo(()=>Object.assign(Object.assign({},en),{status:St,hasFeedback:!1,feedbackIcon:null}),[en,St]),Ht=le.useRef(null),Qt=le.useRef({});le.useImperativeHandle(Re,()=>({focus:()=>{var Mn;(Mn=Qt.current[0])===null||Mn===void 0||Mn.focus()},blur:()=>{var Mn;for(let nn=0;nn<fe;nn+=1)(Mn=Qt.current[nn])===null||Mn===void 0||Mn.blur()},nativeElement:Ht.current}));const sn=Mn=>Oe?Oe(Mn):Mn,[wn,Bn]=le.useState(()=>De(sn(We||"")));le.useEffect(()=>{we!==void 0&&Bn(De(we))},[we]);const Fn=(0,ue.Z)(Mn=>{Bn(Mn),ct&&ct(Mn),ye&&Mn.length===fe&&Mn.every(nn=>nn)&&Mn.some((nn,tn)=>wn[tn]!==nn)&&ye(Mn.join(""))}),gn=(0,ue.Z)((Mn,nn)=>{let tn=(0,ee.Z)(wn);for(let Cn=0;Cn<Mn;Cn+=1)tn[Cn]||(tn[Cn]="");nn.length<=1?tn[Mn]=nn:tn=tn.slice(0,Mn).concat(De(nn)),tn=tn.slice(0,fe);for(let Cn=tn.length-1;Cn>=0&&!tn[Cn];Cn-=1)tn.pop();const dn=sn(tn.map(Cn=>Cn||" ").join(""));return tn=De(dn).map((Cn,Pn)=>Cn===" "&&!tn[Pn]?tn[Pn]:Cn),tn}),Dn=(Mn,nn)=>{var tn;const dn=gn(Mn,nn),Cn=Math.min(Mn+nn.length,fe-1);Cn!==Mn&&dn[Mn]!==void 0&&((tn=Qt.current[Cn])===null||tn===void 0||tn.focus()),Fn(dn)},un=Mn=>{var nn;(nn=Qt.current[Mn])===null||nn===void 0||nn.focus()},Tn={variant:Ze,disabled:Xe,status:St,mask:mt,type:ut,inputMode:Pt};return kt(le.createElement("div",Object.assign({},Mt,{ref:Ht,className:a()(pt,{[`${pt}-sm`]:Ut==="small",[`${pt}-lg`]:Ut==="large",[`${pt}-rtl`]:At==="rtl"},It,xt)}),le.createElement(ge.aM.Provider,{value:jt},Array.from({length:fe}).map((Mn,nn)=>{const tn=`otp-${nn}`,dn=wn[nn]||"";return le.createElement(le.Fragment,{key:tn},le.createElement(ke,Object.assign({ref:Cn=>{Qt.current[nn]=Cn},index:nn,size:Ut,htmlSize:1,className:`${pt}-input`,onChange:Dn,value:dn,onActiveChange:un,autoFocus:nn===0&&lt},Tn)),nn<fe-1&&le.createElement(Se,{separator:$e,index:nn,prefixCls:pt}))}))))}),Me=Ce(73331),Le=Ce(15277),Ae=Ce(2738),Pe=Ce(8654),Ue=Ce(2171),He=Ce(23826),Je=function(Fe,Re){var ne={};for(var fe in Fe)Object.prototype.hasOwnProperty.call(Fe,fe)&&Re.indexOf(fe)<0&&(ne[fe]=Fe[fe]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,fe=Object.getOwnPropertySymbols(Fe);Ne<fe.length;Ne++)Re.indexOf(fe[Ne])<0&&Object.prototype.propertyIsEnumerable.call(Fe,fe[Ne])&&(ne[fe[Ne]]=Fe[fe[Ne]]);return ne};const st=Fe=>Fe?le.createElement(Le.Z,null):le.createElement(Me.Z,null),_e={click:"onClick",hover:"onMouseOver"};var nt=le.forwardRef((Fe,Re)=>{const{disabled:ne,action:fe="click",visibilityToggle:Ne=!0,iconRender:We=st}=Fe,we=le.useContext(Ue.Z),ye=ne!=null?ne:we,Oe=typeof Ne=="object"&&Ne.visible!==void 0,[$e,Ze]=(0,le.useState)(()=>Oe?Ne.visible:!1),Xe=(0,le.useRef)(null);le.useEffect(()=>{Oe&&Ze(Ne.visible)},[Oe,Ne]);const at=(0,He.Z)(Xe),lt=()=>{var Ut;if(ye)return;$e&&at();const en=!$e;Ze(en),typeof Ne=="object"&&((Ut=Ne.onVisibleChange)===null||Ut===void 0||Ut.call(Ne,en))},mt=Ut=>{const en=_e[fe]||"",St=We($e),jt={[en]:lt,className:`${Ut}-icon`,key:"passwordIcon",onMouseDown:Ht=>{Ht.preventDefault()},onMouseUp:Ht=>{Ht.preventDefault()}};return le.cloneElement(le.isValidElement(St)?St:le.createElement("span",null,St),jt)},{className:ut,prefixCls:ct,inputPrefixCls:Pt,size:wt}=Fe,Bt=Je(Fe,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:At}=le.useContext(Te.E_),pt=At("input",Pt),Mt=At("input-password",ct),kt=Ne&&mt(Mt),xt=a()(Mt,ut,{[`${Mt}-${wt}`]:!!wt}),It=Object.assign(Object.assign({},(0,Ae.Z)(Bt,["suffix","iconRender","visibilityToggle"])),{type:$e?"text":"password",className:xt,prefixCls:pt,suffix:kt});return wt&&(It.size=wt),le.createElement(oe.Z,Object.assign({ref:(0,Pe.sQ)(Re,Xe)},It))}),rt=Ce(47472),et=Ce(22703),Ve=Ce(7939),Ye=Ce(70045),Ge=function(Fe,Re){var ne={};for(var fe in Fe)Object.prototype.hasOwnProperty.call(Fe,fe)&&Re.indexOf(fe)<0&&(ne[fe]=Fe[fe]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,fe=Object.getOwnPropertySymbols(Fe);Ne<fe.length;Ne++)Re.indexOf(fe[Ne])<0&&Object.prototype.propertyIsEnumerable.call(Fe,fe[Ne])&&(ne[fe[Ne]]=Fe[fe[Ne]]);return ne},qe=le.forwardRef((Fe,Re)=>{const{prefixCls:ne,inputPrefixCls:fe,className:Ne,size:We,suffix:we,enterButton:ye=!1,addonAfter:Oe,loading:$e,disabled:Ze,onSearch:Xe,onChange:at,onCompositionStart:lt,onCompositionEnd:mt}=Fe,ut=Ge(Fe,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:ct,direction:Pt}=le.useContext(Te.E_),wt=le.useRef(!1),Bt=ct("input-search",ne),At=ct("input",fe),{compactSize:pt}=(0,Ye.ri)(Bt,Pt),Mt=(0,te.Z)(Dn=>{var un;return(un=We!=null?We:pt)!==null&&un!==void 0?un:Dn}),kt=le.useRef(null),xt=Dn=>{Dn!=null&&Dn.target&&Dn.type==="click"&&Xe&&Xe(Dn.target.value,Dn,{source:"clear"}),at==null||at(Dn)},It=Dn=>{var un;document.activeElement===((un=kt.current)===null||un===void 0?void 0:un.input)&&Dn.preventDefault()},Ut=Dn=>{var un,Tn;Xe&&Xe((Tn=(un=kt.current)===null||un===void 0?void 0:un.input)===null||Tn===void 0?void 0:Tn.value,Dn,{source:"input"})},en=Dn=>{wt.current||$e||Ut(Dn)},St=typeof ye=="boolean"?le.createElement(rt.Z,null):null,jt=`${Bt}-button`;let Ht;const Qt=ye||{},sn=Qt.type&&Qt.type.__ANT_BUTTON===!0;sn||Qt.type==="button"?Ht=(0,et.Tm)(Qt,Object.assign({onMouseDown:It,onClick:Dn=>{var un,Tn;(Tn=(un=Qt==null?void 0:Qt.props)===null||un===void 0?void 0:un.onClick)===null||Tn===void 0||Tn.call(un,Dn),Ut(Dn)},key:"enterButton"},sn?{className:jt,size:Mt}:{})):Ht=le.createElement(Ve.ZP,{className:jt,type:ye?"primary":void 0,size:Mt,disabled:Ze,key:"enterButton",onMouseDown:It,onClick:Ut,loading:$e,icon:St},ye),Oe&&(Ht=[Ht,(0,et.Tm)(Oe,{key:"addonAfter"})]);const wn=a()(Bt,{[`${Bt}-rtl`]:Pt==="rtl",[`${Bt}-${Mt}`]:!!Mt,[`${Bt}-with-button`]:!!ye},Ne),Bn=Object.assign(Object.assign({},ut),{className:wn,prefixCls:At,type:"search"}),Fn=Dn=>{wt.current=!0,lt==null||lt(Dn)},gn=Dn=>{wt.current=!1,mt==null||mt(Dn)};return le.createElement(oe.Z,Object.assign({ref:(0,Pe.sQ)(kt,Re),onPressEnter:en},Bn,{size:Mt,onCompositionStart:Fn,onCompositionEnd:gn,addonAfter:Ht,suffix:we,onChange:xt,disabled:Ze}))}),vt=Ce(79809);const ot=oe.Z;ot.Group=ie,ot.Search=qe,ot.TextArea=vt.Z,ot.Password=nt,ot.OTP=Ie;var Qe=ot},24303:function(on,Lt,Ce){"use strict";Ce.d(Lt,{D:function(){return Be},Z:function(){return Ee}});var le=Ce(59301),yt=Ce(60499),a={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"},Te=a,ge=Ce(7657),x=function(Me,Le){return le.createElement(ge.Z,(0,yt.Z)({},Me,{ref:Le,icon:Te}))},z=le.forwardRef(x),ie=z,oe=Ce(33853),ee=Ce(38819),ue=Ce(92310),E=Ce.n(ue),re=Ce(2738),te=Ce(48755),se=Ce(6989),ae=Ce(36237),he=Ce(48923),me=Ce(16931);const ve=Ie=>{const{componentCls:Me,siderBg:Le,motionDurationMid:Ae,motionDurationSlow:Pe,antCls:Ue,triggerHeight:He,triggerColor:Je,triggerBg:st,headerHeight:_e,zeroTriggerWidth:Ke,zeroTriggerHeight:nt,borderRadiusLG:rt,lightSiderBg:et,lightTriggerColor:Ve,lightTriggerBg:Ye,bodyBg:Ge}=Ie;return{[Me]:{position:"relative",minWidth:0,background:Le,transition:`all ${Ae}, background 0s`,"&-has-trigger":{paddingBottom:He},"&-right":{order:1},[`${Me}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ue}-menu${Ue}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Me}-children`]:{overflow:"hidden"},[`${Me}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:He,color:Je,lineHeight:(0,ae.unit)(He),textAlign:"center",background:st,cursor:"pointer",transition:`all ${Ae}`},[`${Me}-zero-width-trigger`]:{position:"absolute",top:_e,insetInlineEnd:Ie.calc(Ke).mul(-1).equal(),zIndex:1,width:Ke,height:nt,color:Je,fontSize:Ie.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Le,borderRadius:`0 ${(0,ae.unit)(rt)} ${(0,ae.unit)(rt)} 0`,cursor:"pointer",transition:`background ${Pe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Pe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Ie.calc(Ke).mul(-1).equal(),borderRadius:`${(0,ae.unit)(rt)} 0 0 ${(0,ae.unit)(rt)}`}},"&-light":{background:et,[`${Me}-trigger`]:{color:Ve,background:Ye},[`${Me}-zero-width-trigger`]:{color:Ve,background:Ye,border:`1px solid ${Ge}`,borderInlineStart:0}}}}};var pe=(0,me.I$)(["Layout","Sider"],Ie=>[ve(Ie)],he.eh,{deprecatedTokens:he.jn}),be=function(Ie,Me){var Le={};for(var Ae in Ie)Object.prototype.hasOwnProperty.call(Ie,Ae)&&Me.indexOf(Ae)<0&&(Le[Ae]=Ie[Ae]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ae=Object.getOwnPropertySymbols(Ie);Pe<Ae.length;Pe++)Me.indexOf(Ae[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Ae[Pe])&&(Le[Ae[Pe]]=Ie[Ae[Pe]]);return Le};const je={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ke=Ie=>!Number.isNaN(Number.parseFloat(Ie))&&isFinite(Ie),Be=le.createContext({}),De=(()=>{let Ie=0;return function(){let Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ie+=1,`${Me}${Ie}`}})();var Ee=le.forwardRef((Ie,Me)=>{const{prefixCls:Le,className:Ae,trigger:Pe,children:Ue,defaultCollapsed:He=!1,theme:Je="dark",style:st={},collapsible:_e=!1,reverseArrow:Ke=!1,width:nt=200,collapsedWidth:rt=80,zeroWidthTriggerStyle:et,breakpoint:Ve,onCollapse:Ye,onBreakpoint:Ge}=Ie,it=be(Ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:qe}=(0,le.useContext)(se.V),[vt,ot]=(0,le.useState)("collapsed"in Ie?Ie.collapsed:He),[Qe,Fe]=(0,le.useState)(!1);(0,le.useEffect)(()=>{"collapsed"in Ie&&ot(Ie.collapsed)},[Ie.collapsed]);const Re=(Mt,kt)=>{"collapsed"in Ie||ot(Mt),Ye==null||Ye(Mt,kt)},{getPrefixCls:ne,direction:fe}=(0,le.useContext)(te.E_),Ne=ne("layout-sider",Le),[We,we,ye]=pe(Ne),Oe=(0,le.useRef)(null);Oe.current=Mt=>{Fe(Mt.matches),Ge==null||Ge(Mt.matches),vt!==Mt.matches&&Re(Mt.matches,"responsive")},(0,le.useEffect)(()=>{function Mt(xt){return Oe.current(xt)}let kt;if(typeof window!="undefined"){const{matchMedia:xt}=window;if(xt&&Ve&&Ve in je){kt=xt(`screen and (max-width: ${je[Ve]})`);try{kt.addEventListener("change",Mt)}catch(It){kt.addListener(Mt)}Mt(kt)}}return()=>{try{kt==null||kt.removeEventListener("change",Mt)}catch(xt){kt==null||kt.removeListener(Mt)}}},[Ve]),(0,le.useEffect)(()=>{const Mt=De("ant-sider-");return qe.addSider(Mt),()=>qe.removeSider(Mt)},[]);const $e=()=>{Re(!vt,"clickTrigger")},Ze=(0,re.Z)(it,["collapsed"]),Xe=vt?rt:nt,at=ke(Xe)?`${Xe}px`:String(Xe),lt=parseFloat(String(rt||0))===0?le.createElement("span",{onClick:$e,className:E()(`${Ne}-zero-width-trigger`,`${Ne}-zero-width-trigger-${Ke?"right":"left"}`),style:et},Pe||le.createElement(ie,null)):null,mt=fe==="rtl"==!Ke,Pt={expanded:mt?le.createElement(ee.Z,null):le.createElement(oe.Z,null),collapsed:mt?le.createElement(oe.Z,null):le.createElement(ee.Z,null)}[vt?"collapsed":"expanded"],wt=Pe!==null?lt||le.createElement("div",{className:`${Ne}-trigger`,onClick:$e,style:{width:at}},Pe||Pt):null,Bt=Object.assign(Object.assign({},st),{flex:`0 0 ${at}`,maxWidth:at,minWidth:at,width:at}),At=E()(Ne,`${Ne}-${Je}`,{[`${Ne}-collapsed`]:!!vt,[`${Ne}-has-trigger`]:_e&&Pe!==null&&!lt,[`${Ne}-below`]:!!Qe,[`${Ne}-zero-width`]:parseFloat(at)===0},Ae,we,ye),pt=le.useMemo(()=>({siderCollapsed:vt}),[vt]);return We(le.createElement(Be.Provider,{value:pt},le.createElement("aside",Object.assign({className:At},Ze,{style:Bt,ref:Me}),le.createElement("div",{className:`${Ne}-children`},Ue),_e||Qe&&lt?wt:null)))})},6989:function(on,Lt,Ce){"use strict";Ce.d(Lt,{V:function(){return yt}});var le=Ce(59301);const yt=le.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(on,Lt,Ce){"use strict";Ce.d(Lt,{eh:function(){return Te},jn:function(){return ge}});var le=Ce(36237),yt=Ce(16931);const a=x=>{const{antCls:z,componentCls:ie,colorText:oe,footerBg:ee,headerHeight:ue,headerPadding:E,headerColor:re,footerPadding:te,fontSize:se,bodyBg:ae,headerBg:he}=x;return{[ie]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ae,"&, *":{boxSizing:"border-box"},[`&${ie}-has-sider`]:{flexDirection:"row",[`> ${ie}, > ${ie}-content`]:{width:0}},[`${ie}-header, &${ie}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${ie}-header`]:{height:ue,padding:E,color:re,lineHeight:(0,le.unit)(ue),background:he,[`${z}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:te,color:oe,fontSize:se,background:ee},[`${ie}-content`]:{flex:"auto",color:oe,minHeight:0}}},Te=x=>{const{colorBgLayout:z,controlHeight:ie,controlHeightLG:oe,colorText:ee,controlHeightSM:ue,marginXXS:E,colorTextLightSolid:re,colorBgContainer:te}=x,se=oe*1.25;return{colorBgHeader:"#001529",colorBgBody:z,colorBgTrigger:"#002140",bodyBg:z,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${se}px`,headerColor:ee,footerPadding:`${ue}px ${se}px`,footerBg:z,siderBg:"#001529",triggerHeight:oe+E*2,triggerBg:"#002140",triggerColor:re,zeroTriggerWidth:oe,zeroTriggerHeight:oe,lightSiderBg:te,lightTriggerBg:te,lightTriggerColor:ee}},ge=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Lt.ZP=(0,yt.I$)("Layout",x=>[a(x)],Te,{deprecatedTokens:ge})},78857:function(on,Lt,Ce){"use strict";Ce.d(Lt,{J:function(){return x}});var le=Ce(59301),yt=Ce(8654),a=Ce(62487),Te=function(z,ie){var oe={};for(var ee in z)Object.prototype.hasOwnProperty.call(z,ee)&&ie.indexOf(ee)<0&&(oe[ee]=z[ee]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,ee=Object.getOwnPropertySymbols(z);ue<ee.length;ue++)ie.indexOf(ee[ue])<0&&Object.prototype.propertyIsEnumerable.call(z,ee[ue])&&(oe[ee[ue]]=z[ee[ue]]);return oe};const ge=le.createContext(null),x=le.forwardRef((z,ie)=>{const{children:oe}=z,ee=Te(z,["children"]),ue=le.useContext(ge),E=le.useMemo(()=>Object.assign(Object.assign({},ue),ee),[ue,ee.prefixCls,ee.mode,ee.selectable,ee.rootClassName]),re=(0,yt.t4)(oe),te=(0,yt.x1)(ie,re?(0,yt.C4)(oe):null);return le.createElement(ge.Provider,{value:E},le.createElement(a.Z,{space:!0},re?le.cloneElement(oe,{ref:te}):oe))});Lt.Z=ge},93041:function(on,Lt,Ce){"use strict";Ce.d(Lt,{default:function(){return We}});var le=Ce(59301),yt=Ce(28321),a=Ce(24303),Te=Ce(18785),ge=Ce(92310),x=Ce.n(ge),z=Ce(6089),ie=Ce(2738),oe=Ce(86641),ee=Ce(22703),ue=Ce(48755),E=Ce(83397),te=(0,le.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),se=function(we,ye){var Oe={};for(var $e in we)Object.prototype.hasOwnProperty.call(we,$e)&&ye.indexOf($e)<0&&(Oe[$e]=we[$e]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,$e=Object.getOwnPropertySymbols(we);Ze<$e.length;Ze++)ye.indexOf($e[Ze])<0&&Object.prototype.propertyIsEnumerable.call(we,$e[Ze])&&(Oe[$e[Ze]]=we[$e[Ze]]);return Oe},he=we=>{const{prefixCls:ye,className:Oe,dashed:$e}=we,Ze=se(we,["prefixCls","className","dashed"]),{getPrefixCls:Xe}=le.useContext(ue.E_),at=Xe("menu",ye),lt=x()({[`${at}-item-divider-dashed`]:!!$e},Oe);return le.createElement(yt.iz,Object.assign({className:lt},Ze))},me=Ce(11592),ve=Ce(25399),be=we=>{var ye;const{className:Oe,children:$e,icon:Ze,title:Xe,danger:at,extra:lt}=we,{prefixCls:mt,firstLevel:ut,direction:ct,disableMenuItemTitleTooltip:Pt,inlineCollapsed:wt}=le.useContext(te),Bt=It=>{const Ut=$e==null?void 0:$e[0],en=le.createElement("span",{className:x()(`${mt}-title-content`,{[`${mt}-title-content-with-extra`]:!!lt||lt===0})},$e);return(!Ze||le.isValidElement($e)&&$e.type==="span")&&$e&&It&&ut&&typeof Ut=="string"?le.createElement("div",{className:`${mt}-inline-collapsed-noicon`},Ut.charAt(0)):en},{siderCollapsed:At}=le.useContext(a.D);let pt=Xe;typeof Xe=="undefined"?pt=ut?$e:"":Xe===!1&&(pt="");const Mt={title:pt};!At&&!wt&&(Mt.title=null,Mt.open=!1);const kt=(0,me.Z)($e).length;let xt=le.createElement(yt.ck,Object.assign({},(0,ie.Z)(we,["title","icon","danger"]),{className:x()({[`${mt}-item-danger`]:at,[`${mt}-item-only-child`]:(Ze?kt+1:kt)===1},Oe),title:typeof Xe=="string"?Xe:void 0}),(0,ee.Tm)(Ze,{className:x()(le.isValidElement(Ze)?(ye=Ze.props)===null||ye===void 0?void 0:ye.className:"",`${mt}-item-icon`)}),Bt(wt));return Pt||(xt=le.createElement(ve.Z,Object.assign({},Mt,{placement:ct==="rtl"?"left":"right",classNames:{root:`${mt}-inline-collapsed-tooltip`}}),xt)),xt},je=Ce(78857),ke=Ce(36237),Be=Ce(17835),De=Ce(63356),Se=Ce(34961),Ee=Ce(46e3),Ie=Ce(34925),Me=Ce(16931),Le=Ce(51636),Pe=we=>{const{componentCls:ye,motionDurationSlow:Oe,horizontalLineHeight:$e,colorSplit:Ze,lineWidth:Xe,lineType:at,itemPaddingInline:lt}=we;return{[`${ye}-horizontal`]:{lineHeight:$e,border:0,borderBottom:`${(0,ke.unit)(Xe)} ${at} ${Ze}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ye}-item, ${ye}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:lt},[`> ${ye}-item:hover,
> ${ye}-item-active,
> ${ye}-submenu ${ye}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ye}-item, ${ye}-submenu-title`]:{transition:[`border-color ${Oe}`,`background ${Oe}`].join(",")},[`${ye}-submenu-arrow`]:{display:"none"}}}},He=we=>{let{componentCls:ye,menuArrowOffset:Oe,calc:$e}=we;return{[`${ye}-rtl`]:{direction:"rtl"},[`${ye}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ye}-rtl${ye}-vertical,
${ye}-submenu-rtl ${ye}-vertical`]:{[`${ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,ke.unit)($e(Oe).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,ke.unit)(Oe)})`}}}}};const Je=we=>Object.assign({},(0,De.oN)(we));var _e=(we,ye)=>{const{componentCls:Oe,itemColor:$e,itemSelectedColor:Ze,subMenuItemSelectedColor:Xe,groupTitleColor:at,itemBg:lt,subMenuItemBg:mt,itemSelectedBg:ut,activeBarHeight:ct,activeBarWidth:Pt,activeBarBorderWidth:wt,motionDurationSlow:Bt,motionEaseInOut:At,motionEaseOut:pt,itemPaddingInline:Mt,motionDurationMid:kt,itemHoverColor:xt,lineType:It,colorSplit:Ut,itemDisabledColor:en,dangerItemColor:St,dangerItemHoverColor:jt,dangerItemSelectedColor:Ht,dangerItemActiveBg:Qt,dangerItemSelectedBg:sn,popupBg:wn,itemHoverBg:Bn,itemActiveBg:Fn,menuSubMenuBg:gn,horizontalItemSelectedColor:Dn,horizontalItemSelectedBg:un,horizontalItemBorderRadius:Tn,horizontalItemHoverBg:Mn}=we;return{[`${Oe}-${ye}, ${Oe}-${ye} > ${Oe}`]:{color:$e,background:lt,[`&${Oe}-root:focus-visible`]:Object.assign({},Je(we)),[`${Oe}-item`]:{"&-group-title, &-extra":{color:at}},[`${Oe}-submenu-selected > ${Oe}-submenu-title`]:{color:Xe},[`${Oe}-item, ${Oe}-submenu-title`]:{color:$e,[`&:not(${Oe}-item-disabled):focus-visible`]:Object.assign({},Je(we))},[`${Oe}-item-disabled, ${Oe}-submenu-disabled`]:{color:`${en} !important`},[`${Oe}-item:not(${Oe}-item-selected):not(${Oe}-submenu-selected)`]:{[`&:hover, > ${Oe}-submenu-title:hover`]:{color:xt}},[`&:not(${Oe}-horizontal)`]:{[`${Oe}-item:not(${Oe}-item-selected)`]:{"&:hover":{backgroundColor:Bn},"&:active":{backgroundColor:Fn}},[`${Oe}-submenu-title`]:{"&:hover":{backgroundColor:Bn},"&:active":{backgroundColor:Fn}}},[`${Oe}-item-danger`]:{color:St,[`&${Oe}-item:hover`]:{[`&:not(${Oe}-item-selected):not(${Oe}-submenu-selected)`]:{color:jt}},[`&${Oe}-item:active`]:{background:Qt}},[`${Oe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Oe}-item-selected`]:{color:Ze,[`&${Oe}-item-danger`]:{color:Ht},"a, a:hover":{color:"inherit"}},[`& ${Oe}-item-selected`]:{backgroundColor:ut,[`&${Oe}-item-danger`]:{backgroundColor:sn}},[`&${Oe}-submenu > ${Oe}`]:{backgroundColor:gn},[`&${Oe}-popup > ${Oe}`]:{backgroundColor:wn},[`&${Oe}-submenu-popup > ${Oe}`]:{backgroundColor:wn},[`&${Oe}-horizontal`]:Object.assign(Object.assign({},ye==="dark"?{borderBottom:0}:{}),{[`> ${Oe}-item, > ${Oe}-submenu`]:{top:wt,marginTop:we.calc(wt).mul(-1).equal(),marginBottom:0,borderRadius:Tn,"&::after":{position:"absolute",insetInline:Mt,bottom:0,borderBottom:`${(0,ke.unit)(ct)} solid transparent`,transition:`border-color ${Bt} ${At}`,content:'""'},"&:hover, &-active, &-open":{background:Mn,"&::after":{borderBottomWidth:ct,borderBottomColor:Dn}},"&-selected":{color:Dn,backgroundColor:un,"&:hover":{backgroundColor:un},"&::after":{borderBottomWidth:ct,borderBottomColor:Dn}}}}),[`&${Oe}-root`]:{[`&${Oe}-inline, &${Oe}-vertical`]:{borderInlineEnd:`${(0,ke.unit)(wt)} ${It} ${Ut}`}},[`&${Oe}-inline`]:{[`${Oe}-sub${Oe}-inline`]:{background:mt},[`${Oe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,ke.unit)(Pt)} solid ${Ze}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${kt} ${pt}`,`opacity ${kt} ${pt}`].join(","),content:'""'},[`&${Oe}-item-danger`]:{"&::after":{borderInlineEndColor:Ht}}},[`${Oe}-selected, ${Oe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${kt} ${At}`,`opacity ${kt} ${At}`].join(",")}}}}}};const Ke=we=>{const{componentCls:ye,itemHeight:Oe,itemMarginInline:$e,padding:Ze,menuArrowSize:Xe,marginXS:at,itemMarginBlock:lt,itemWidth:mt,itemPaddingInline:ut}=we,ct=we.calc(Xe).add(Ze).add(at).equal();return{[`${ye}-item`]:{position:"relative",overflow:"hidden"},[`${ye}-item, ${ye}-submenu-title`]:{height:Oe,lineHeight:(0,ke.unit)(Oe),paddingInline:ut,overflow:"hidden",textOverflow:"ellipsis",marginInline:$e,marginBlock:lt,width:mt},[`> ${ye}-item,
> ${ye}-submenu > ${ye}-submenu-title`]:{height:Oe,lineHeight:(0,ke.unit)(Oe)},[`${ye}-item-group-list ${ye}-submenu-title,
${ye}-submenu-title`]:{paddingInlineEnd:ct}}};var rt=we=>{const{componentCls:ye,iconCls:Oe,itemHeight:$e,colorTextLightSolid:Ze,dropdownWidth:Xe,controlHeightLG:at,motionEaseOut:lt,paddingXL:mt,itemMarginInline:ut,fontSizeLG:ct,motionDurationFast:Pt,motionDurationSlow:wt,paddingXS:Bt,boxShadowSecondary:At,collapsedWidth:pt,collapsedIconSize:Mt}=we,kt={height:$e,lineHeight:(0,ke.unit)($e),listStylePosition:"inside",listStyleType:"disc"};return[{[ye]:{"&-inline, &-vertical":Object.assign({[`&${ye}-root`]:{boxShadow:"none"}},Ke(we))},[`${ye}-submenu-popup`]:{[`${ye}-vertical`]:Object.assign(Object.assign({},Ke(we)),{boxShadow:At})}},{[`${ye}-submenu-popup ${ye}-vertical${ye}-sub`]:{minWidth:Xe,maxHeight:`calc(100vh - ${(0,ke.unit)(we.calc(at).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ye}-inline`]:{width:"100%",[`&${ye}-root`]:{[`${ye}-item, ${ye}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${wt}`,`background ${wt}`,`padding ${Pt} ${lt}`].join(","),[`> ${ye}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ye}-sub${ye}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ye}-submenu > ${ye}-submenu-title`]:kt,[`& ${ye}-item-group-title`]:{paddingInlineStart:mt}},[`${ye}-item`]:kt}},{[`${ye}-inline-collapsed`]:{width:pt,[`&${ye}-root`]:{[`${ye}-item, ${ye}-submenu ${ye}-submenu-title`]:{[`> ${ye}-inline-collapsed-noicon`]:{fontSize:ct,textAlign:"center"}}},[`> ${ye}-item,
> ${ye}-item-group > ${ye}-item-group-list > ${ye}-item,
> ${ye}-item-group > ${ye}-item-group-list > ${ye}-submenu > ${ye}-submenu-title,
> ${ye}-submenu > ${ye}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,ke.unit)(we.calc(Mt).div(2).equal())} - ${(0,ke.unit)(ut)})`,textOverflow:"clip",[`
${ye}-submenu-arrow,
${ye}-submenu-expand-icon
`]:{opacity:0},[`${ye}-item-icon, ${Oe}`]:{margin:0,fontSize:Mt,lineHeight:(0,ke.unit)($e),"+ span":{display:"inline-block",opacity:0}}},[`${ye}-item-icon, ${Oe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ye}-item-icon, ${Oe}`]:{display:"none"},"a, a:hover":{color:Ze}},[`${ye}-item-group-title`]:Object.assign(Object.assign({},De.vS),{paddingInline:Bt})}}]};const et=we=>{const{componentCls:ye,motionDurationSlow:Oe,motionDurationMid:$e,motionEaseInOut:Ze,motionEaseOut:Xe,iconCls:at,iconSize:lt,iconMarginInlineEnd:mt}=we;return{[`${ye}-item, ${ye}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Oe}`,`background ${Oe}`,`padding calc(${Oe} + 0.1s) ${Ze}`].join(","),[`${ye}-item-icon, ${at}`]:{minWidth:lt,fontSize:lt,transition:[`font-size ${$e} ${Xe}`,`margin ${Oe} ${Ze}`,`color ${Oe}`].join(","),"+ span":{marginInlineStart:mt,opacity:1,transition:[`opacity ${Oe} ${Ze}`,`margin ${Oe}`,`color ${Oe}`].join(",")}},[`${ye}-item-icon`]:Object.assign({},(0,De.Ro)()),[`&${ye}-item-only-child`]:{[`> ${at}, > ${ye}-item-icon`]:{marginInlineEnd:0}}},[`${ye}-item-disabled, ${ye}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${ye}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ve=we=>{const{componentCls:ye,motionDurationSlow:Oe,motionEaseInOut:$e,borderRadius:Ze,menuArrowSize:Xe,menuArrowOffset:at}=we;return{[`${ye}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:we.margin,width:Xe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Oe} ${$e}, opacity ${Oe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:we.calc(Xe).mul(.6).equal(),height:we.calc(Xe).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ze,transition:[`background ${Oe} ${$e}`,`transform ${Oe} ${$e}`,`top ${Oe} ${$e}`,`color ${Oe} ${$e}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,ke.unit)(we.calc(at).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,ke.unit)(at)})`}}}}},Ye=we=>{const{antCls:ye,componentCls:Oe,fontSize:$e,motionDurationSlow:Ze,motionDurationMid:Xe,motionEaseInOut:at,paddingXS:lt,padding:mt,colorSplit:ut,lineWidth:ct,zIndexPopup:Pt,borderRadiusLG:wt,subMenuItemBorderRadius:Bt,menuArrowSize:At,menuArrowOffset:pt,lineType:Mt,groupTitleLineHeight:kt,groupTitleFontSize:xt}=we;return[{"":{[Oe]:Object.assign(Object.assign({},(0,De.dF)()),{"&-hidden":{display:"none"}})},[`${Oe}-submenu-hidden`]:{display:"none"}},{[Oe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,De.Wf)(we)),(0,De.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:$e,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ze} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Oe}-item`]:{flex:"none"}},[`${Oe}-item, ${Oe}-submenu, ${Oe}-submenu-title`]:{borderRadius:we.itemBorderRadius},[`${Oe}-item-group-title`]:{padding:`${(0,ke.unit)(lt)} ${(0,ke.unit)(mt)}`,fontSize:xt,lineHeight:kt,transition:`all ${Ze}`},[`&-horizontal ${Oe}-submenu`]:{transition:[`border-color ${Ze} ${at}`,`background ${Ze} ${at}`].join(",")},[`${Oe}-submenu, ${Oe}-submenu-inline`]:{transition:[`border-color ${Ze} ${at}`,`background ${Ze} ${at}`,`padding ${Xe} ${at}`].join(",")},[`${Oe}-submenu ${Oe}-sub`]:{cursor:"initial",transition:[`background ${Ze} ${at}`,`padding ${Ze} ${at}`].join(",")},[`${Oe}-title-content`]:{transition:`color ${Ze}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${ye}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Oe}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:we.padding}},[`${Oe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Oe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ut,borderStyle:Mt,borderWidth:0,borderTopWidth:ct,marginBlock:ct,padding:0,"&-dashed":{borderStyle:"dashed"}}}),et(we)),{[`${Oe}-item-group`]:{[`${Oe}-item-group-list`]:{margin:0,padding:0,[`${Oe}-item, ${Oe}-submenu-title`]:{paddingInline:`${(0,ke.unit)(we.calc($e).mul(2).equal())} ${(0,ke.unit)(mt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Pt,borderRadius:wt,boxShadow:"none",transformOrigin:"0 0",[`&${Oe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Oe}`]:Object.assign(Object.assign(Object.assign({borderRadius:wt},et(we)),Ve(we)),{[`${Oe}-item, ${Oe}-submenu > ${Oe}-submenu-title`]:{borderRadius:Bt},[`${Oe}-submenu-title::after`]:{transition:`transform ${Ze} ${at}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:we.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:we.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:we.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:we.paddingXS}}}),Ve(we)),{[`&-inline-collapsed ${Oe}-submenu-arrow,
&-inline ${Oe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,ke.unit)(pt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,ke.unit)(we.calc(pt).mul(-1).equal())})`}},[`${Oe}-submenu-open${Oe}-submenu-inline > ${Oe}-submenu-title > ${Oe}-submenu-arrow`]:{transform:`translateY(${(0,ke.unit)(we.calc(At).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,ke.unit)(we.calc(pt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,ke.unit)(pt)})`}}})},{[`${ye}-layout-header`]:{[Oe]:{lineHeight:"inherit"}}}]},Ge=we=>{var ye,Oe,$e;const{colorPrimary:Ze,colorError:Xe,colorTextDisabled:at,colorErrorBg:lt,colorText:mt,colorTextDescription:ut,colorBgContainer:ct,colorFillAlter:Pt,colorFillContent:wt,lineWidth:Bt,lineWidthBold:At,controlItemBgActive:pt,colorBgTextHover:Mt,controlHeightLG:kt,lineHeight:xt,colorBgElevated:It,marginXXS:Ut,padding:en,fontSize:St,controlHeightSM:jt,fontSizeLG:Ht,colorTextLightSolid:Qt,colorErrorHover:sn}=we,wn=(ye=we.activeBarWidth)!==null&&ye!==void 0?ye:0,Bn=(Oe=we.activeBarBorderWidth)!==null&&Oe!==void 0?Oe:Bt,Fn=($e=we.itemMarginInline)!==null&&$e!==void 0?$e:we.marginXXS,gn=new Be.FastColor(Qt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:we.zIndexPopupBase+50,radiusItem:we.borderRadiusLG,itemBorderRadius:we.borderRadiusLG,radiusSubMenuItem:we.borderRadiusSM,subMenuItemBorderRadius:we.borderRadiusSM,colorItemText:mt,itemColor:mt,colorItemTextHover:mt,itemHoverColor:mt,colorItemTextHoverHorizontal:Ze,horizontalItemHoverColor:Ze,colorGroupTitle:ut,groupTitleColor:ut,colorItemTextSelected:Ze,itemSelectedColor:Ze,subMenuItemSelectedColor:Ze,colorItemTextSelectedHorizontal:Ze,horizontalItemSelectedColor:Ze,colorItemBg:ct,itemBg:ct,colorItemBgHover:Mt,itemHoverBg:Mt,colorItemBgActive:wt,itemActiveBg:pt,colorSubItemBg:Pt,subMenuItemBg:Pt,colorItemBgSelected:pt,itemSelectedBg:pt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:wn,colorActiveBarHeight:At,activeBarHeight:At,colorActiveBarBorderSize:Bt,activeBarBorderWidth:Bn,colorItemTextDisabled:at,itemDisabledColor:at,colorDangerItemText:Xe,dangerItemColor:Xe,colorDangerItemTextHover:Xe,dangerItemHoverColor:Xe,colorDangerItemTextSelected:Xe,dangerItemSelectedColor:Xe,colorDangerItemBgActive:lt,dangerItemActiveBg:lt,colorDangerItemBgSelected:lt,dangerItemSelectedBg:lt,itemMarginInline:Fn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:kt,groupTitleLineHeight:xt,collapsedWidth:kt*2,popupBg:It,itemMarginBlock:Ut,itemPaddingInline:en,horizontalLineHeight:`${kt*1.15}px`,iconSize:St,iconMarginInlineEnd:jt-St,collapsedIconSize:Ht,groupTitleFontSize:St,darkItemDisabledColor:new Be.FastColor(Qt).setA(.25).toRgbString(),darkItemColor:gn,darkDangerItemColor:Xe,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Qt,darkItemSelectedBg:Ze,darkDangerItemSelectedBg:Xe,darkItemHoverBg:"transparent",darkGroupTitleColor:gn,darkItemHoverColor:Qt,darkDangerItemHoverColor:sn,darkDangerItemSelectedColor:Qt,darkDangerItemActiveBg:Xe,itemWidth:wn?`calc(100% + ${Bn}px)`:`calc(100% - ${Fn*2}px)`}};var it=function(we){let ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:we,Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Me.I$)("Menu",Ze=>{const{colorBgElevated:Xe,controlHeightLG:at,fontSize:lt,darkItemColor:mt,darkDangerItemColor:ut,darkItemBg:ct,darkSubMenuItemBg:Pt,darkItemSelectedColor:wt,darkItemSelectedBg:Bt,darkDangerItemSelectedBg:At,darkItemHoverBg:pt,darkGroupTitleColor:Mt,darkItemHoverColor:kt,darkItemDisabledColor:xt,darkDangerItemHoverColor:It,darkDangerItemSelectedColor:Ut,darkDangerItemActiveBg:en,popupBg:St,darkPopupBg:jt}=Ze,Ht=Ze.calc(lt).div(7).mul(5).equal(),Qt=(0,Le.mergeToken)(Ze,{menuArrowSize:Ht,menuHorizontalHeight:Ze.calc(at).mul(1.15).equal(),menuArrowOffset:Ze.calc(Ht).mul(.25).equal(),menuSubMenuBg:Xe,calc:Ze.calc,popupBg:St}),sn=(0,Le.mergeToken)(Qt,{itemColor:mt,itemHoverColor:kt,groupTitleColor:Mt,itemSelectedColor:wt,subMenuItemSelectedColor:wt,itemBg:ct,popupBg:jt,subMenuItemBg:Pt,itemActiveBg:"transparent",itemSelectedBg:Bt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:pt,itemDisabledColor:xt,dangerItemColor:ut,dangerItemHoverColor:It,dangerItemSelectedColor:Ut,dangerItemActiveBg:en,dangerItemSelectedBg:At,menuSubMenuBg:Pt,horizontalItemSelectedColor:wt,horizontalItemSelectedBg:Bt});return[Ye(Qt),Pe(Qt),rt(Qt),_e(Qt,"light"),_e(sn,"dark"),He(Qt),(0,Se.Z)(Qt),(0,Ee.oN)(Qt,"slide-up"),(0,Ee.oN)(Qt,"slide-down"),(0,Ie._y)(Qt,"zoom-big")]},Ge,{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:Oe,unitless:{groupTitleLineHeight:!0}})(we,ye)},qe=Ce(75030),ot=we=>{var ye;const{popupClassName:Oe,icon:$e,title:Ze,theme:Xe}=we,at=le.useContext(te),{prefixCls:lt,inlineCollapsed:mt,theme:ut}=at,ct=(0,yt.Xl)();let Pt;if(!$e)Pt=mt&&!ct.length&&Ze&&typeof Ze=="string"?le.createElement("div",{className:`${lt}-inline-collapsed-noicon`},Ze.charAt(0)):le.createElement("span",{className:`${lt}-title-content`},Ze);else{const At=le.isValidElement(Ze)&&Ze.type==="span";Pt=le.createElement(le.Fragment,null,(0,ee.Tm)($e,{className:x()(le.isValidElement($e)?(ye=$e.props)===null||ye===void 0?void 0:ye.className:"",`${lt}-item-icon`)}),At?Ze:le.createElement("span",{className:`${lt}-title-content`},Ze))}const wt=le.useMemo(()=>Object.assign(Object.assign({},at),{firstLevel:!1}),[at]),[Bt]=(0,qe.Cn)("Menu");return le.createElement(te.Provider,{value:wt},le.createElement(yt.Wd,Object.assign({},(0,ie.Z)(we,["icon"]),{title:Pt,popupClassName:x()(lt,Oe,`${lt}-${Xe||ut}`),popupStyle:Object.assign({zIndex:Bt},we.popupStyle)})))},Qe=function(we,ye){var Oe={};for(var $e in we)Object.prototype.hasOwnProperty.call(we,$e)&&ye.indexOf($e)<0&&(Oe[$e]=we[$e]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,$e=Object.getOwnPropertySymbols(we);Ze<$e.length;Ze++)ye.indexOf($e[Ze])<0&&Object.prototype.propertyIsEnumerable.call(we,$e[Ze])&&(Oe[$e[Ze]]=we[$e[Ze]]);return Oe};function Fe(we){return we===null||we===!1}const Re={item:be,submenu:ot,divider:he};var fe=(0,le.forwardRef)((we,ye)=>{var Oe;const $e=le.useContext(je.Z),Ze=$e||{},{getPrefixCls:Xe,getPopupContainer:at,direction:lt,menu:mt}=le.useContext(ue.E_),ut=Xe(),{prefixCls:ct,className:Pt,style:wt,theme:Bt="light",expandIcon:At,_internalDisableMenuItemTitleTooltip:pt,inlineCollapsed:Mt,siderCollapsed:kt,rootClassName:xt,mode:It,selectable:Ut,onClick:en,overflowedIndicatorPopupClassName:St}=we,jt=Qe(we,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ht=(0,ie.Z)(jt,["collapsedWidth"]);(Oe=Ze.validator)===null||Oe===void 0||Oe.call(Ze,{mode:It});const Qt=(0,z.Z)(function(){var Cn;en==null||en.apply(void 0,arguments),(Cn=Ze.onClick)===null||Cn===void 0||Cn.call(Ze)}),sn=Ze.mode||It,wn=Ut!=null?Ut:Ze.selectable,Bn=Mt!=null?Mt:kt,Fn={horizontal:{motionName:`${ut}-slide-up`},inline:(0,oe.Z)(ut),other:{motionName:`${ut}-zoom-big`}},gn=Xe("menu",ct||Ze.prefixCls),Dn=(0,E.Z)(gn),[un,Tn,Mn]=it(gn,Dn,!$e),nn=x()(`${gn}-${Bt}`,mt==null?void 0:mt.className,Pt),tn=le.useMemo(()=>{var Cn,Pn;if(typeof At=="function"||Fe(At))return At||null;if(typeof Ze.expandIcon=="function"||Fe(Ze.expandIcon))return Ze.expandIcon||null;if(typeof(mt==null?void 0:mt.expandIcon)=="function"||Fe(mt==null?void 0:mt.expandIcon))return(mt==null?void 0:mt.expandIcon)||null;const Hn=(Cn=At!=null?At:Ze==null?void 0:Ze.expandIcon)!==null&&Cn!==void 0?Cn:mt==null?void 0:mt.expandIcon;return(0,ee.Tm)(Hn,{className:x()(`${gn}-submenu-expand-icon`,le.isValidElement(Hn)?(Pn=Hn.props)===null||Pn===void 0?void 0:Pn.className:void 0)})},[At,Ze==null?void 0:Ze.expandIcon,mt==null?void 0:mt.expandIcon,gn]),dn=le.useMemo(()=>({prefixCls:gn,inlineCollapsed:Bn||!1,direction:lt,firstLevel:!0,theme:Bt,mode:sn,disableMenuItemTitleTooltip:pt}),[gn,Bn,lt,pt,Bt]);return un(le.createElement(je.Z.Provider,{value:null},le.createElement(te.Provider,{value:dn},le.createElement(yt.ZP,Object.assign({getPopupContainer:at,overflowedIndicator:le.createElement(Te.Z,null),overflowedIndicatorPopupClassName:x()(gn,`${gn}-${Bt}`,St),mode:sn,selectable:wn,onClick:Qt},Ht,{inlineCollapsed:Bn,style:Object.assign(Object.assign({},mt==null?void 0:mt.style),wt),className:nn,prefixCls:gn,direction:lt,defaultMotions:Fn,expandIcon:tn,ref:ye,rootClassName:x()(xt,Tn,Ze.rootClassName,Mn,Dn),_internalComponents:Re})))))});const Ne=(0,le.forwardRef)((we,ye)=>{const Oe=(0,le.useRef)(null),$e=le.useContext(a.D);return(0,le.useImperativeHandle)(ye,()=>({menu:Oe.current,focus:Ze=>{var Xe;(Xe=Oe.current)===null||Xe===void 0||Xe.focus(Ze)}})),le.createElement(fe,Object.assign({ref:Oe},we,$e))});Ne.Item=be,Ne.SubMenu=ot,Ne.Divider=he,Ne.ItemGroup=yt.BW;var We=Ne},31709:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return mt}});var le=Ce(59301),yt=Ce(60499),a={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"},Te=a,ge=Ce(7657),x=function(ct,Pt){return le.createElement(ge.Z,(0,yt.Z)({},ct,{ref:Pt,icon:Te}))},z=le.forwardRef(x),ie=z,oe=Ce(49198),ee=Ce(33853),ue=Ce(38819),E=Ce(92310),re=Ce.n(E),te=Ce(18642),se=Ce(43749),ae=Ce(85899),he=Ce(72190),me=Ce(18929),ve=Ce(10228),pe=Ce(26112),be=Ce(48736),je=Ce(17119),ke=[10,20,50,100],Be=function(ct){var Pt=ct.pageSizeOptions,wt=Pt===void 0?ke:Pt,Bt=ct.locale,At=ct.changeSize,pt=ct.pageSize,Mt=ct.goButton,kt=ct.quickGo,xt=ct.rootPrefixCls,It=ct.disabled,Ut=ct.buildOptionText,en=ct.showSizeChanger,St=ct.sizeChangerRender,jt=le.useState(""),Ht=(0,he.Z)(jt,2),Qt=Ht[0],sn=Ht[1],wn=function(){return!Qt||Number.isNaN(Qt)?void 0:Number(Qt)},Bn=typeof Ut=="function"?Ut:function(dn){return"".concat(dn," ").concat(Bt.items_per_page)},Fn=function(Cn){sn(Cn.target.value)},gn=function(Cn){Mt||Qt===""||(sn(""),!(Cn.relatedTarget&&(Cn.relatedTarget.className.indexOf("".concat(xt,"-item-link"))>=0||Cn.relatedTarget.className.indexOf("".concat(xt,"-item"))>=0))&&(kt==null||kt(wn())))},Dn=function(Cn){Qt!==""&&(Cn.keyCode===ve.Z.ENTER||Cn.type==="click")&&(sn(""),kt==null||kt(wn()))},un=function(){return wt.some(function(Cn){return Cn.toString()===pt.toString()})?wt:wt.concat([pt]).sort(function(Cn,Pn){var Hn=Number.isNaN(Number(Cn))?0:Number(Cn),Gn=Number.isNaN(Number(Pn))?0:Number(Pn);return Hn-Gn})},Tn="".concat(xt,"-options");if(!en&&!kt)return null;var Mn=null,nn=null,tn=null;return en&&St&&(Mn=St({disabled:It,size:pt,onSizeChange:function(Cn){At==null||At(Number(Cn))},"aria-label":Bt.page_size,className:"".concat(Tn,"-size-changer"),options:un().map(function(dn){return{label:Bn(dn),value:dn}})})),kt&&(Mt&&(tn=typeof Mt=="boolean"?le.createElement("button",{type:"button",onClick:Dn,onKeyUp:Dn,disabled:It,className:"".concat(Tn,"-quick-jumper-button")},Bt.jump_to_confirm):le.createElement("span",{onClick:Dn,onKeyUp:Dn},Mt)),nn=le.createElement("div",{className:"".concat(Tn,"-quick-jumper")},Bt.jump_to,le.createElement("input",{disabled:It,type:"text",value:Qt,onChange:Fn,onKeyUp:Dn,onBlur:gn,"aria-label":Bt.page}),Bt.page,tn)),le.createElement("li",{className:Tn},Mn,nn)},De=Be,Se=function(ct){var Pt=ct.rootPrefixCls,wt=ct.page,Bt=ct.active,At=ct.className,pt=ct.showTitle,Mt=ct.onClick,kt=ct.onKeyPress,xt=ct.itemRender,It="".concat(Pt,"-item"),Ut=re()(It,"".concat(It,"-").concat(wt),(0,te.Z)((0,te.Z)({},"".concat(It,"-active"),Bt),"".concat(It,"-disabled"),!wt),At),en=function(){Mt(wt)},St=function(Qt){kt(Qt,Mt,wt)},jt=xt(wt,"page",le.createElement("a",{rel:"nofollow"},wt));return jt?le.createElement("li",{title:pt?String(wt):null,className:Ut,onClick:en,onKeyDown:St,tabIndex:0},jt):null},Ee=Se,Ie=function(ct,Pt,wt){return wt};function Me(){}function Le(ut){var ct=Number(ut);return typeof ct=="number"&&!Number.isNaN(ct)&&isFinite(ct)&&Math.floor(ct)===ct}function Ae(ut,ct,Pt){var wt=typeof ut=="undefined"?ct:ut;return Math.floor((Pt-1)/wt)+1}var Pe=function(ct){var Pt=ct.prefixCls,wt=Pt===void 0?"rc-pagination":Pt,Bt=ct.selectPrefixCls,At=Bt===void 0?"rc-select":Bt,pt=ct.className,Mt=ct.current,kt=ct.defaultCurrent,xt=kt===void 0?1:kt,It=ct.total,Ut=It===void 0?0:It,en=ct.pageSize,St=ct.defaultPageSize,jt=St===void 0?10:St,Ht=ct.onChange,Qt=Ht===void 0?Me:Ht,sn=ct.hideOnSinglePage,wn=ct.align,Bn=ct.showPrevNextJumpers,Fn=Bn===void 0?!0:Bn,gn=ct.showQuickJumper,Dn=ct.showLessItems,un=ct.showTitle,Tn=un===void 0?!0:un,Mn=ct.onShowSizeChange,nn=Mn===void 0?Me:Mn,tn=ct.locale,dn=tn===void 0?je.Z:tn,Cn=ct.style,Pn=ct.totalBoundaryShowSizeChanger,Hn=Pn===void 0?50:Pn,Gn=ct.disabled,_n=ct.simple,Yn=ct.showTotal,Wn=ct.showSizeChanger,yr=Wn===void 0?Ut>Hn:Wn,cr=ct.sizeChangerRender,cn=ct.pageSizeOptions,An=ct.itemRender,qn=An===void 0?Ie:An,wr=ct.jumpPrevIcon,Rt=ct.jumpNextIcon,Xt=ct.prevIcon,Et=ct.nextIcon,Dt=le.useRef(null),Tt=(0,me.Z)(10,{value:en,defaultValue:jt}),_t=(0,he.Z)(Tt,2),bt=_t[0],Zt=_t[1],Kt=(0,me.Z)(1,{value:Mt,defaultValue:xt,postState:function(Wr){return Math.max(1,Math.min(Wr,Ae(void 0,bt,Ut)))}}),Yt=(0,he.Z)(Kt,2),Ft=Yt[0],$t=Yt[1],zt=le.useState(Ft),Wt=(0,he.Z)(zt,2),hn=Wt[0],mn=Wt[1];(0,le.useEffect)(function(){mn(Ft)},[Ft]);var In=Qt!==Me,er="current"in ct,ar=Math.max(1,Ft-(Dn?3:5)),fr=Math.min(Ae(void 0,bt,Ut),Ft+(Dn?3:5));function Jn(ti,Wr){var Qi=ti||le.createElement("button",{type:"button","aria-label":Wr,className:"".concat(wt,"-item-link")});return typeof ti=="function"&&(Qi=le.createElement(ti,(0,ae.Z)({},ct))),Qi}function Kn(ti){var Wr=ti.target.value,Qi=Ae(void 0,bt,Ut),qi;return Wr===""?qi=Wr:Number.isNaN(Number(Wr))?qi=hn:Wr>=Qi?qi=Qi:qi=Number(Wr),qi}function $n(ti){return Le(ti)&&ti!==Ft&&Le(Ut)&&Ut>0}var dr=Ut>bt?gn:!1;function Tr(ti){(ti.keyCode===ve.Z.UP||ti.keyCode===ve.Z.DOWN)&&ti.preventDefault()}function Cr(ti){var Wr=Kn(ti);switch(Wr!==hn&&mn(Wr),ti.keyCode){case ve.Z.ENTER:xr(Wr);break;case ve.Z.UP:xr(Wr-1);break;case ve.Z.DOWN:xr(Wr+1);break;default:break}}function Or(ti){xr(Kn(ti))}function Vn(ti){var Wr=Ae(ti,bt,Ut),Qi=Ft>Wr&&Wr!==0?Wr:Ft;Zt(ti),mn(Qi),nn==null||nn(Ft,ti),$t(Qi),Qt==null||Qt(Qi,ti)}function xr(ti){if($n(ti)&&!Gn){var Wr=Ae(void 0,bt,Ut),Qi=ti;return ti>Wr?Qi=Wr:ti<1&&(Qi=1),Qi!==hn&&mn(Qi),$t(Qi),Qt==null||Qt(Qi,bt),Qi}return Ft}var hr=Ft>1,Hr=Ft<Ae(void 0,bt,Ut);function Xr(){hr&&xr(Ft-1)}function Ur(){Hr&&xr(Ft+1)}function Kr(){xr(ar)}function ri(){xr(fr)}function Fr(ti,Wr){if(ti.key==="Enter"||ti.charCode===ve.Z.ENTER||ti.keyCode===ve.Z.ENTER){for(var Qi=arguments.length,qi=new Array(Qi>2?Qi-2:0),si=2;si<Qi;si++)qi[si-2]=arguments[si];Wr.apply(void 0,qi)}}function qr(ti){Fr(ti,Xr)}function Pr(ti){Fr(ti,Ur)}function ei(ti){Fr(ti,Kr)}function ui(ti){Fr(ti,ri)}function ki(ti){var Wr=qn(ti,"prev",Jn(Xt,"prev page"));return le.isValidElement(Wr)?le.cloneElement(Wr,{disabled:!hr}):Wr}function mi(ti){var Wr=qn(ti,"next",Jn(Et,"next page"));return le.isValidElement(Wr)?le.cloneElement(Wr,{disabled:!Hr}):Wr}function xi(ti){(ti.type==="click"||ti.keyCode===ve.Z.ENTER)&&xr(hn)}var hi=null,ir=(0,pe.Z)(ct,{aria:!0,data:!0}),Qn=Yn&&le.createElement("li",{className:"".concat(wt,"-total-text")},Yn(Ut,[Ut===0?0:(Ft-1)*bt+1,Ft*bt>Ut?Ut:Ft*bt])),gr=null,Xn=Ae(void 0,bt,Ut);if(sn&&Ut<=bt)return null;var bn=[],kn={rootPrefixCls:wt,onClick:xr,onKeyPress:Fr,showTitle:Tn,itemRender:qn,page:-1},Ln=Ft-1>0?Ft-1:0,jn=Ft+1<Xn?Ft+1:Xn,tr=gn&&gn.goButton,ur=(0,se.Z)(_n)==="object"?_n.readOnly:!_n,Nn=tr,Sn=null;_n&&(tr&&(typeof tr=="boolean"?Nn=le.createElement("button",{type:"button",onClick:xi,onKeyUp:xi},dn.jump_to_confirm):Nn=le.createElement("span",{onClick:xi,onKeyUp:xi},tr),Nn=le.createElement("li",{title:Tn?"".concat(dn.jump_to).concat(Ft,"/").concat(Xn):null,className:"".concat(wt,"-simple-pager")},Nn)),Sn=le.createElement("li",{title:Tn?"".concat(Ft,"/").concat(Xn):null,className:"".concat(wt,"-simple-pager")},ur?hn:le.createElement("input",{type:"text","aria-label":dn.jump_to,value:hn,disabled:Gn,onKeyDown:Tr,onKeyUp:Cr,onChange:Cr,onBlur:Or,size:3}),le.createElement("span",{className:"".concat(wt,"-slash")},"/"),Xn));var Un=Dn?1:2;if(Xn<=3+Un*2){Xn||bn.push(le.createElement(Ee,(0,yt.Z)({},kn,{key:"noPager",page:1,className:"".concat(wt,"-item-disabled")})));for(var rr=1;rr<=Xn;rr+=1)bn.push(le.createElement(Ee,(0,yt.Z)({},kn,{key:rr,page:rr,active:Ft===rr})))}else{var Gr=Dn?dn.prev_3:dn.prev_5,wi=Dn?dn.next_3:dn.next_5,ci=qn(ar,"jump-prev",Jn(wr,"prev page")),ji=qn(fr,"jump-next",Jn(Rt,"next page"));Fn&&(hi=ci?le.createElement("li",{title:Tn?Gr:null,key:"prev",onClick:Kr,tabIndex:0,onKeyDown:ei,className:re()("".concat(wt,"-jump-prev"),(0,te.Z)({},"".concat(wt,"-jump-prev-custom-icon"),!!wr))},ci):null,gr=ji?le.createElement("li",{title:Tn?wi:null,key:"next",onClick:ri,tabIndex:0,onKeyDown:ui,className:re()("".concat(wt,"-jump-next"),(0,te.Z)({},"".concat(wt,"-jump-next-custom-icon"),!!Rt))},ji):null);var Ci=Math.max(1,Ft-Un),Si=Math.min(Ft+Un,Xn);Ft-1<=Un&&(Si=1+Un*2),Xn-Ft<=Un&&(Ci=Xn-Un*2);for(var Ni=Ci;Ni<=Si;Ni+=1)bn.push(le.createElement(Ee,(0,yt.Z)({},kn,{key:Ni,page:Ni,active:Ft===Ni})));if(Ft-1>=Un*2&&Ft!==3&&(bn[0]=le.cloneElement(bn[0],{className:re()("".concat(wt,"-item-after-jump-prev"),bn[0].props.className)}),bn.unshift(hi)),Xn-Ft>=Un*2&&Ft!==Xn-2){var Mi=bn[bn.length-1];bn[bn.length-1]=le.cloneElement(Mi,{className:re()("".concat(wt,"-item-before-jump-next"),Mi.props.className)}),bn.push(gr)}Ci!==1&&bn.unshift(le.createElement(Ee,(0,yt.Z)({},kn,{key:1,page:1}))),Si!==Xn&&bn.push(le.createElement(Ee,(0,yt.Z)({},kn,{key:Xn,page:Xn})))}var Pi=ki(Ln);if(Pi){var ro=!hr||!Xn;Pi=le.createElement("li",{title:Tn?dn.prev_page:null,onClick:Xr,tabIndex:ro?null:0,onKeyDown:qr,className:re()("".concat(wt,"-prev"),(0,te.Z)({},"".concat(wt,"-disabled"),ro)),"aria-disabled":ro},Pi)}var vo=mi(jn);if(vo){var go,Ao;_n?(go=!Hr,Ao=hr?0:null):(go=!Hr||!Xn,Ao=go?null:0),vo=le.createElement("li",{title:Tn?dn.next_page:null,onClick:Ur,tabIndex:Ao,onKeyDown:Pr,className:re()("".concat(wt,"-next"),(0,te.Z)({},"".concat(wt,"-disabled"),go)),"aria-disabled":go},vo)}var Co=re()(wt,pt,(0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)((0,te.Z)({},"".concat(wt,"-start"),wn==="start"),"".concat(wt,"-center"),wn==="center"),"".concat(wt,"-end"),wn==="end"),"".concat(wt,"-simple"),_n),"".concat(wt,"-disabled"),Gn));return le.createElement("ul",(0,yt.Z)({className:Co,style:Cn,ref:Dt},ir),Qn,Pi,_n?Sn:bn,vo,le.createElement(De,{locale:dn,rootPrefixCls:wt,disabled:Gn,selectPrefixCls:At,changeSize:Vn,pageSize:bt,pageSizeOptions:cn,quickGo:dr?xr:null,goButton:Nn,showSizeChanger:yr,sizeChangerRender:cr}))},Ue=Pe,He=Ce(61852),Je=Ce(48755),st=Ce(31756),_e=Ce(13783),Ke=Ce(9017),nt=Ce(82326),rt=Ce(57700),et=Ce(36237),Ve=Ce(53075),Ye=Ce(64910),Ge=Ce(39082),it=Ce(63356),qe=Ce(51636),vt=Ce(16931);const ot=ut=>{const{componentCls:ct}=ut;return{[`${ct}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ct}-item-link`]:{color:ut.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ct}-item-link`]:{color:ut.colorTextDisabled,cursor:"not-allowed"}}},[`&${ct}-disabled`]:{cursor:"not-allowed",[`${ct}-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}}},[`${ct}-item-link`]:{color:ut.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ct}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ct}-simple-pager`]:{color:ut.colorTextDisabled},[`${ct}-jump-prev, ${ct}-jump-next`]:{[`${ct}-item-link-icon`]:{opacity:0},[`${ct}-item-ellipsis`]:{opacity:1}}},[`&${ct}-simple`]:{[`${ct}-prev, ${ct}-next`]:{[`&${ct}-disabled ${ct}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Qe=ut=>{const{componentCls:ct}=ut;return{[`&${ct}-mini ${ct}-total-text, &${ct}-mini ${ct}-simple-pager`]:{height:ut.itemSizeSM,lineHeight:(0,et.unit)(ut.itemSizeSM)},[`&${ct}-mini ${ct}-item`]:{minWidth:ut.itemSizeSM,height:ut.itemSizeSM,margin:0,lineHeight:(0,et.unit)(ut.calc(ut.itemSizeSM).sub(2).equal())},[`&${ct}-mini ${ct}-prev, &${ct}-mini ${ct}-next`]:{minWidth:ut.itemSizeSM,height:ut.itemSizeSM,margin:0,lineHeight:(0,et.unit)(ut.itemSizeSM)},[`&${ct}-mini:not(${ct}-disabled)`]:{[`${ct}-prev, ${ct}-next`]:{[`&:hover ${ct}-item-link`]:{backgroundColor:ut.colorBgTextHover},[`&:active ${ct}-item-link`]:{backgroundColor:ut.colorBgTextActive},[`&${ct}-disabled:hover ${ct}-item-link`]:{backgroundColor:"transparent"}}},[`
&${ct}-mini ${ct}-prev ${ct}-item-link,
&${ct}-mini ${ct}-next ${ct}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:ut.itemSizeSM,lineHeight:(0,et.unit)(ut.itemSizeSM)}},[`&${ct}-mini ${ct}-jump-prev, &${ct}-mini ${ct}-jump-next`]:{height:ut.itemSizeSM,marginInlineEnd:0,lineHeight:(0,et.unit)(ut.itemSizeSM)},[`&${ct}-mini ${ct}-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,Ve.x0)(ut)),{width:ut.paginationMiniQuickJumperInputWidth,height:ut.controlHeightSM})}}}},Fe=ut=>{const{componentCls:ct}=ut;return{[`
&${ct}-simple ${ct}-prev,
&${ct}-simple ${ct}-next
`]:{height:ut.itemSizeSM,lineHeight:(0,et.unit)(ut.itemSizeSM),verticalAlign:"top",[`${ct}-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)}}},[`&${ct}-simple ${ct}-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:ct}=ut;return{[`${ct}-jump-prev, ${ct}-jump-next`]:{outline:0,[`${ct}-item-container`]:{position:"relative",[`${ct}-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"}},[`${ct}-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":{[`${ct}-item-link-icon`]:{opacity:1},[`${ct}-item-ellipsis`]:{opacity:0}}},[`
${ct}-prev,
${ct}-jump-prev,
${ct}-jump-next
`]:{marginInlineEnd:ut.marginXS},[`
${ct}-prev,
${ct}-next,
${ct}-jump-prev,
${ct}-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}`},[`${ct}-prev, ${ct}-next`]:{outline:0,button:{color:ut.colorText,cursor:"pointer",userSelect:"none"},[`${ct}-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 ${ct}-item-link`]:{backgroundColor:ut.colorBgTextHover},[`&:active ${ct}-item-link`]:{backgroundColor:ut.colorBgTextActive},[`&${ct}-disabled:hover`]:{[`${ct}-item-link`]:{backgroundColor:"transparent"}}},[`${ct}-slash`]:{marginInlineEnd:ut.paginationSlashMarginInlineEnd,marginInlineStart:ut.paginationSlashMarginInlineStart},[`${ct}-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,Ve.ik)(ut)),(0,Ge.$U)(ut,{borderColor:ut.colorBorder,hoverBorderColor:ut.colorPrimaryHover,activeBorderColor:ut.colorPrimary,activeShadow:ut.activeShadow})),{"&[disabled]":Object.assign({},(0,Ge.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:ct}=ut;return{[`${ct}-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(${ct}-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:ct}=ut;return{[ct]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,it.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:'""'},[`${ct}-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)),Fe(ut)),Qe(ut)),ot(ut)),{[`@media only screen and (max-width: ${ut.screenLG}px)`]:{[`${ct}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${ut.screenSM}px)`]:{[`${ct}-options`]:{display:"none"}}}),[`&${ut.componentCls}-rtl`]:{direction:"rtl"}}},Ne=ut=>{const{componentCls:ct}=ut;return{[`${ct}:not(${ct}-disabled)`]:{[`${ct}-item`]:Object.assign({},(0,it.Qy)(ut)),[`${ct}-jump-prev, ${ct}-jump-next`]:{"&:focus-visible":Object.assign({[`${ct}-item-link-icon`]:{opacity:1},[`${ct}-item-ellipsis`]:{opacity:0}},(0,it.oN)(ut))},[`${ct}-prev, ${ct}-next`]:{[`&:focus-visible ${ct}-item-link`]:Object.assign({},(0,it.oN)(ut))}}}},We=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)),we=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 ye=(0,vt.I$)("Pagination",ut=>{const ct=we(ut);return[fe(ct),Ne(ct)]},We);const Oe=ut=>{const{componentCls:ct}=ut;return{[`${ct}${ct}-bordered${ct}-disabled:not(${ct}-mini)`]:{"&, &:hover":{[`${ct}-item-link`]:{borderColor:ut.colorBorder}},"&:focus-visible":{[`${ct}-item-link`]:{borderColor:ut.colorBorder}},[`${ct}-item, ${ct}-item-link`]:{backgroundColor:ut.colorBgContainerDisabled,borderColor:ut.colorBorder,[`&:hover:not(${ct}-item-active)`]:{backgroundColor:ut.colorBgContainerDisabled,borderColor:ut.colorBorder,a:{color:ut.colorTextDisabled}},[`&${ct}-item-active`]:{backgroundColor:ut.itemActiveBgDisabled}},[`${ct}-prev, ${ct}-next`]:{"&:hover button":{backgroundColor:ut.colorBgContainerDisabled,borderColor:ut.colorBorder,color:ut.colorTextDisabled},[`${ct}-item-link`]:{backgroundColor:ut.colorBgContainerDisabled,borderColor:ut.colorBorder}}},[`${ct}${ct}-bordered:not(${ct}-mini)`]:{[`${ct}-prev, ${ct}-next`]:{"&:hover button":{borderColor:ut.colorPrimaryHover,backgroundColor:ut.itemBg},[`${ct}-item-link`]:{backgroundColor:ut.itemLinkBg,borderColor:ut.colorBorder},[`&:hover ${ct}-item-link`]:{borderColor:ut.colorPrimary,backgroundColor:ut.itemBg,color:ut.colorPrimary},[`&${ct}-disabled`]:{[`${ct}-item-link`]:{borderColor:ut.colorBorder,color:ut.colorTextDisabled}}},[`${ct}-item`]:{backgroundColor:ut.itemBg,border:`${(0,et.unit)(ut.lineWidth)} ${ut.lineType} ${ut.colorBorder}`,[`&:hover:not(${ct}-item-active)`]:{borderColor:ut.colorPrimary,backgroundColor:ut.itemBg,a:{color:ut.colorPrimary}},"&-active":{borderColor:ut.colorPrimary}}}}};var $e=(0,vt.bk)(["Pagination","bordered"],ut=>{const ct=we(ut);return[Oe(ct)]},We);function Ze(ut){return(0,le.useMemo)(()=>typeof ut=="boolean"?[ut,{}]:ut&&typeof ut=="object"?[!0,ut]:[void 0,void 0],[ut])}var Xe=function(ut,ct){var Pt={};for(var wt in ut)Object.prototype.hasOwnProperty.call(ut,wt)&&ct.indexOf(wt)<0&&(Pt[wt]=ut[wt]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,wt=Object.getOwnPropertySymbols(ut);Bt<wt.length;Bt++)ct.indexOf(wt[Bt])<0&&Object.prototype.propertyIsEnumerable.call(ut,wt[Bt])&&(Pt[wt[Bt]]=ut[wt[Bt]]);return Pt},lt=ut=>{const{align:ct,prefixCls:Pt,selectPrefixCls:wt,className:Bt,rootClassName:At,style:pt,size:Mt,locale:kt,responsive:xt,showSizeChanger:It,selectComponentClass:Ut,pageSizeOptions:en}=ut,St=Xe(ut,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:jt}=(0,_e.Z)(xt),[,Ht]=(0,rt.ZP)(),{getPrefixCls:Qt,direction:sn,showSizeChanger:wn,className:Bn,style:Fn}=(0,Je.dj)("pagination"),gn=Qt("pagination",Pt),[Dn,un,Tn]=ye(gn),Mn=(0,st.Z)(Mt),nn=Mn==="small"||!!(jt&&!Mn&&xt),[tn]=(0,Ke.Z)("Pagination",He.Z),dn=Object.assign(Object.assign({},tn),kt),[Cn,Pn]=Ze(It),[Hn,Gn]=Ze(wn),_n=Cn!=null?Cn:Hn,Yn=Pn!=null?Pn:Gn,Wn=Ut||nt.default,yr=le.useMemo(()=>en?en.map(Rt=>Number(Rt)):void 0,[en]),cr=Rt=>{var Xt;const{disabled:Et,size:Dt,onSizeChange:Tt,"aria-label":_t,className:bt,options:Zt}=Rt,{className:Kt,onChange:Yt}=Yn||{},Ft=(Xt=Zt.find($t=>String($t.value)===String(Dt)))===null||Xt===void 0?void 0:Xt.value;return le.createElement(Wn,Object.assign({disabled:Et,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:$t=>$t.parentNode,"aria-label":_t,options:Zt},Yn,{value:Ft,onChange:($t,zt)=>{Tt==null||Tt($t),Yt==null||Yt($t,zt)},size:nn?"small":"middle",className:re()(bt,Kt)}))},cn=le.useMemo(()=>{const Rt=le.createElement("span",{className:`${gn}-item-ellipsis`},"\u2022\u2022\u2022"),Xt=le.createElement("button",{className:`${gn}-item-link`,type:"button",tabIndex:-1},sn==="rtl"?le.createElement(ue.Z,null):le.createElement(ee.Z,null)),Et=le.createElement("button",{className:`${gn}-item-link`,type:"button",tabIndex:-1},sn==="rtl"?le.createElement(ee.Z,null):le.createElement(ue.Z,null)),Dt=le.createElement("a",{className:`${gn}-item-link`},le.createElement("div",{className:`${gn}-item-container`},sn==="rtl"?le.createElement(oe.Z,{className:`${gn}-item-link-icon`}):le.createElement(ie,{className:`${gn}-item-link-icon`}),Rt)),Tt=le.createElement("a",{className:`${gn}-item-link`},le.createElement("div",{className:`${gn}-item-container`},sn==="rtl"?le.createElement(ie,{className:`${gn}-item-link-icon`}):le.createElement(oe.Z,{className:`${gn}-item-link-icon`}),Rt));return{prevIcon:Xt,nextIcon:Et,jumpPrevIcon:Dt,jumpNextIcon:Tt}},[sn,gn]),An=Qt("select",wt),qn=re()({[`${gn}-${ct}`]:!!ct,[`${gn}-mini`]:nn,[`${gn}-rtl`]:sn==="rtl",[`${gn}-bordered`]:Ht.wireframe},Bn,Bt,At,un,Tn),wr=Object.assign(Object.assign({},Fn),pt);return Dn(le.createElement(le.Fragment,null,Ht.wireframe&&le.createElement($e,{prefixCls:gn}),le.createElement(Ue,Object.assign({},cn,St,{style:wr,prefixCls:gn,selectPrefixCls:An,className:qn,locale:dn,pageSizeOptions:yr,showSizeChanger:_n,sizeChangerRender:cr}))))},mt=lt},93725:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return Ee}});var le=Ce(59301),yt=Ce(96512),a=Ce(92310),Te=Ce.n(a),ge=Ce(18929),x=Ce(2738),z=Ce(48755),ie=Ce(37639),oe=Ce(15565),ee=Ce(54500),ue=Ce(7939),E=Ce(61670),re=Ce(9017),te=Ce(85981),se=Ce(69106),ae=Ce(16931);const he=Ie=>{const{componentCls:Me,iconCls:Le,antCls:Ae,zIndexPopup:Pe,colorText:Ue,colorWarning:He,marginXXS:Je,marginXS:st,fontSize:_e,fontWeightStrong:Ke,colorTextHeading:nt}=Ie;return{[Me]:{zIndex:Pe,[`&${Ae}-popover`]:{fontSize:_e},[`${Me}-message`]:{marginBottom:st,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Me}-message-icon ${Le}`]:{color:He,fontSize:_e,lineHeight:1,marginInlineEnd:st},[`${Me}-title`]:{fontWeight:Ke,color:nt,"&:only-child":{fontWeight:"normal"}},[`${Me}-description`]:{marginTop:Je,color:Ue}},[`${Me}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:st}}}}},me=Ie=>{const{zIndexPopupBase:Me}=Ie;return{zIndexPopup:Me+60}};var ve=(0,ae.I$)("Popconfirm",Ie=>he(Ie),me,{resetStyle:!1}),pe=function(Ie,Me){var Le={};for(var Ae in Ie)Object.prototype.hasOwnProperty.call(Ie,Ae)&&Me.indexOf(Ae)<0&&(Le[Ae]=Ie[Ae]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ae=Object.getOwnPropertySymbols(Ie);Pe<Ae.length;Pe++)Me.indexOf(Ae[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Ae[Pe])&&(Le[Ae[Pe]]=Ie[Ae[Pe]]);return Le};const be=Ie=>{const{prefixCls:Me,okButtonProps:Le,cancelButtonProps:Ae,title:Pe,description:Ue,cancelText:He,okText:Je,okType:st="primary",icon:_e=le.createElement(yt.Z,null),showCancel:Ke=!0,close:nt,onConfirm:rt,onCancel:et,onPopupClick:Ve}=Ie,{getPrefixCls:Ye}=le.useContext(z.E_),[Ge]=(0,re.Z)("Popconfirm",te.Z.Popconfirm),it=(0,ee.Z)(Pe),qe=(0,ee.Z)(Ue);return le.createElement("div",{className:`${Me}-inner-content`,onClick:Ve},le.createElement("div",{className:`${Me}-message`},_e&&le.createElement("span",{className:`${Me}-message-icon`},_e),le.createElement("div",{className:`${Me}-message-text`},it&&le.createElement("div",{className:`${Me}-title`},it),qe&&le.createElement("div",{className:`${Me}-description`},qe))),le.createElement("div",{className:`${Me}-buttons`},Ke&&le.createElement(ue.ZP,Object.assign({onClick:et,size:"small"},Ae),He||(Ge==null?void 0:Ge.cancelText)),le.createElement(oe.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,E.nx)(st)),Le),actionFn:rt,close:nt,prefixCls:Ye("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Je||(Ge==null?void 0:Ge.okText))))};var ke=Ie=>{const{prefixCls:Me,placement:Le,className:Ae,style:Pe}=Ie,Ue=pe(Ie,["prefixCls","placement","className","style"]),{getPrefixCls:He}=le.useContext(z.E_),Je=He("popconfirm",Me),[st]=ve(Je);return st(le.createElement(se.ZP,{placement:Le,className:Te()(Je,Ae),style:Pe,content:le.createElement(be,Object.assign({prefixCls:Je},Ue))}))},Be=function(Ie,Me){var Le={};for(var Ae in Ie)Object.prototype.hasOwnProperty.call(Ie,Ae)&&Me.indexOf(Ae)<0&&(Le[Ae]=Ie[Ae]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ae=Object.getOwnPropertySymbols(Ie);Pe<Ae.length;Pe++)Me.indexOf(Ae[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Ae[Pe])&&(Le[Ae[Pe]]=Ie[Ae[Pe]]);return Le};const Se=le.forwardRef((Ie,Me)=>{var Le,Ae;const{prefixCls:Pe,placement:Ue="top",trigger:He="click",okType:Je="primary",icon:st=le.createElement(yt.Z,null),children:_e,overlayClassName:Ke,onOpenChange:nt,onVisibleChange:rt,overlayStyle:et,styles:Ve,classNames:Ye}=Ie,Ge=Be(Ie,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:it,className:qe,style:vt,classNames:ot,styles:Qe}=(0,z.dj)("popconfirm"),[Fe,Re]=(0,ge.Z)(!1,{value:(Le=Ie.open)!==null&&Le!==void 0?Le:Ie.visible,defaultValue:(Ae=Ie.defaultOpen)!==null&&Ae!==void 0?Ae:Ie.defaultVisible}),ne=(Xe,at)=>{Re(Xe,!0),rt==null||rt(Xe),nt==null||nt(Xe,at)},fe=Xe=>{ne(!1,Xe)},Ne=Xe=>{var at;return(at=Ie.onConfirm)===null||at===void 0?void 0:at.call(void 0,Xe)},We=Xe=>{var at;ne(!1,Xe),(at=Ie.onCancel)===null||at===void 0||at.call(void 0,Xe)},we=(Xe,at)=>{const{disabled:lt=!1}=Ie;lt||ne(Xe,at)},ye=it("popconfirm",Pe),Oe=Te()(ye,qe,Ke,ot.root,Ye==null?void 0:Ye.root),$e=Te()(ot.body,Ye==null?void 0:Ye.body),[Ze]=ve(ye);return Ze(le.createElement(ie.Z,Object.assign({},(0,x.Z)(Ge,["title"]),{trigger:He,placement:Ue,onOpenChange:we,open:Fe,ref:Me,classNames:{root:Oe,body:$e},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},Qe.root),vt),et),Ve==null?void 0:Ve.root),body:Object.assign(Object.assign({},Qe.body),Ve==null?void 0:Ve.body)},content:le.createElement(be,Object.assign({okType:Je,icon:st},Ie,{prefixCls:ye,close:fe,onConfirm:Ne,onCancel:We})),"data-popover-inject":!0}),_e))});Se._InternalPanelDoNotUseOrYouWillBeFired=ke;var Ee=Se},69106:function(on,Lt,Ce){"use strict";Ce.d(Lt,{aV:function(){return oe},t5:function(){return ee}});var le=Ce(59301),yt=Ce(92310),a=Ce.n(yt),Te=Ce(29125),ge=Ce(54500),x=Ce(48755),z=Ce(85074),ie=function(E,re){var te={};for(var se in E)Object.prototype.hasOwnProperty.call(E,se)&&re.indexOf(se)<0&&(te[se]=E[se]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,se=Object.getOwnPropertySymbols(E);ae<se.length;ae++)re.indexOf(se[ae])<0&&Object.prototype.propertyIsEnumerable.call(E,se[ae])&&(te[se[ae]]=E[se[ae]]);return te};const oe=E=>{let{title:re,content:te,prefixCls:se}=E;return!re&&!te?null:le.createElement(le.Fragment,null,re&&le.createElement("div",{className:`${se}-title`},re),te&&le.createElement("div",{className:`${se}-inner-content`},te))},ee=E=>{const{hashId:re,prefixCls:te,className:se,style:ae,placement:he="top",title:me,content:ve,children:pe}=E,be=(0,ge.Z)(me),je=(0,ge.Z)(ve),ke=a()(re,te,`${te}-pure`,`${te}-placement-${he}`,se);return le.createElement("div",{className:ke,style:ae},le.createElement("div",{className:`${te}-arrow`}),le.createElement(Te.G,Object.assign({},E,{className:re,prefixCls:te}),pe||le.createElement(oe,{prefixCls:te,title:be,content:je})))},ue=E=>{const{prefixCls:re,className:te}=E,se=ie(E,["prefixCls","className"]),{getPrefixCls:ae}=le.useContext(x.E_),he=ae("popover",re),[me,ve,pe]=(0,z.Z)(he);return me(le.createElement(ee,Object.assign({},se,{prefixCls:he,hashId:ve,className:a()(te,pe)})))};Lt.ZP=ue},37639:function(on,Lt,Ce){"use strict";var le=Ce(59301),yt=Ce(92310),a=Ce.n(yt),Te=Ce(18929),ge=Ce(10228),x=Ce(54500),z=Ce(86641),ie=Ce(22703),oe=Ce(25399),ee=Ce(69106),ue=Ce(48755),E=Ce(85074),re=function(ae,he){var me={};for(var ve in ae)Object.prototype.hasOwnProperty.call(ae,ve)&&he.indexOf(ve)<0&&(me[ve]=ae[ve]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,ve=Object.getOwnPropertySymbols(ae);pe<ve.length;pe++)he.indexOf(ve[pe])<0&&Object.prototype.propertyIsEnumerable.call(ae,ve[pe])&&(me[ve[pe]]=ae[ve[pe]]);return me};const se=le.forwardRef((ae,he)=>{var me,ve;const{prefixCls:pe,title:be,content:je,overlayClassName:ke,placement:Be="top",trigger:De="hover",children:Se,mouseEnterDelay:Ee=.1,mouseLeaveDelay:Ie=.1,onOpenChange:Me,overlayStyle:Le={},styles:Ae,classNames:Pe}=ae,Ue=re(ae,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:He,className:Je,style:st,classNames:_e,styles:Ke}=(0,ue.dj)("popover"),nt=He("popover",pe),[rt,et,Ve]=(0,E.Z)(nt),Ye=He(),Ge=a()(ke,et,Ve,Je,_e.root,Pe==null?void 0:Pe.root),it=a()(_e.body,Pe==null?void 0:Pe.body),[qe,vt]=(0,Te.Z)(!1,{value:(me=ae.open)!==null&&me!==void 0?me:ae.visible,defaultValue:(ve=ae.defaultOpen)!==null&&ve!==void 0?ve:ae.defaultVisible}),ot=(fe,Ne)=>{vt(fe,!0),Me==null||Me(fe,Ne)},Qe=fe=>{fe.keyCode===ge.Z.ESC&&ot(!1,fe)},Fe=fe=>{ot(fe)},Re=(0,x.Z)(be),ne=(0,x.Z)(je);return rt(le.createElement(oe.Z,Object.assign({placement:Be,trigger:De,mouseEnterDelay:Ee,mouseLeaveDelay:Ie},Ue,{prefixCls:nt,classNames:{root:Ge,body:it},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},Ke.root),st),Le),Ae==null?void 0:Ae.root),body:Object.assign(Object.assign({},Ke.body),Ae==null?void 0:Ae.body)},ref:he,open:qe,onOpenChange:Fe,overlay:Re||ne?le.createElement(ee.aV,{prefixCls:nt,title:Re,content:ne}):null,transitionName:(0,z.m)(Ye,"zoom-big",Ue.transitionName),"data-popover-inject":!0}),(0,ie.Tm)(Se,{onKeyDown:fe=>{var Ne,We;le.isValidElement(Se)&&((We=Se==null?void 0:(Ne=Se.props).onKeyDown)===null||We===void 0||We.call(Ne,fe)),Qe(fe)}})))});se._InternalPanelDoNotUseOrYouWillBeFired=ee.ZP,Lt.Z=se},85074:function(on,Lt,Ce){"use strict";var le=Ce(63356),yt=Ce(34925),a=Ce(37645),Te=Ce(36305),ge=Ce(34998),x=Ce(16931),z=Ce(51636);const ie=ue=>{const{componentCls:E,popoverColor:re,titleMinWidth:te,fontWeightStrong:se,innerPadding:ae,boxShadowSecondary:he,colorTextHeading:me,borderRadiusLG:ve,zIndexPopup:pe,titleMarginBottom:be,colorBgElevated:je,popoverBg:ke,titleBorderBottom:Be,innerContentPadding:De,titlePadding:Se}=ue;return[{[E]:Object.assign(Object.assign({},(0,le.Wf)(ue)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:pe,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":je,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${E}-content`]:{position:"relative"},[`${E}-inner`]:{backgroundColor:ke,backgroundClip:"padding-box",borderRadius:ve,boxShadow:he,padding:ae},[`${E}-title`]:{minWidth:te,marginBottom:be,color:me,fontWeight:se,borderBottom:Be,padding:Se},[`${E}-inner-content`]:{color:re,padding:De}})},(0,a.ZP)(ue,"var(--antd-arrow-background-color)"),{[`${E}-pure`]:{position:"relative",maxWidth:"none",margin:ue.sizePopupArrow,display:"inline-block",[`${E}-content`]:{display:"inline-block"}}}]},oe=ue=>{const{componentCls:E}=ue;return{[E]:ge.i.map(re=>{const te=ue[`${re}6`];return{[`&${E}-${re}`]:{"--antd-arrow-background-color":te,[`${E}-inner`]:{backgroundColor:te},[`${E}-arrow`]:{background:"transparent"}}}})}},ee=ue=>{const{lineWidth:E,controlHeight:re,fontHeight:te,padding:se,wireframe:ae,zIndexPopupBase:he,borderRadiusLG:me,marginXS:ve,lineType:pe,colorSplit:be,paddingSM:je}=ue,ke=re-te,Be=ke/2,De=ke/2-E,Se=se;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:he+30},(0,Te.w)(ue)),(0,a.wZ)({contentRadius:me,limitVerticalRadius:!0})),{innerPadding:ae?0:12,titleMarginBottom:ae?0:ve,titlePadding:ae?`${Be}px ${Se}px ${De}px`:0,titleBorderBottom:ae?`${E}px ${pe} ${be}`:"none",innerContentPadding:ae?`${je}px ${Se}px`:0})};Lt.Z=(0,x.I$)("Popover",ue=>{const{colorBgElevated:E,colorText:re}=ue,te=(0,z.mergeToken)(ue,{popoverBg:E,popoverColor:re});return[ie(te),oe(te),(0,yt._y)(te,"zoom-big")]},ee,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},89787:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return kt}});var le=Ce(59301),yt=Ce(17835),a=Ce(29679),Te=Ce(40001),ge=Ce(19248),x=Ce(99267),z=Ce(92310),ie=Ce.n(z),oe=Ce(2738),ee=Ce(48755),ue=Ce(60499),E=Ce(85899),re=Ce(42244),te={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},se=function(){var It=(0,le.useRef)([]),Ut=(0,le.useRef)(null);return(0,le.useEffect)(function(){var en=Date.now(),St=!1;It.current.forEach(function(jt){if(jt){St=!0;var Ht=jt.style;Ht.transitionDuration=".3s, .3s, .3s, .06s",Ut.current&&en-Ut.current<100&&(Ht.transitionDuration="0s, 0s")}}),St&&(Ut.current=Date.now())}),It.current},ae=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],he=function(It){var Ut=(0,E.Z)((0,E.Z)({},te),It),en=Ut.className,St=Ut.percent,jt=Ut.prefixCls,Ht=Ut.strokeColor,Qt=Ut.strokeLinecap,sn=Ut.strokeWidth,wn=Ut.style,Bn=Ut.trailColor,Fn=Ut.trailWidth,gn=Ut.transition,Dn=(0,re.Z)(Ut,ae);delete Dn.gapPosition;var un=Array.isArray(St)?St:[St],Tn=Array.isArray(Ht)?Ht:[Ht],Mn=se(),nn=sn/2,tn=100-sn/2,dn="M ".concat(Qt==="round"?nn:0,",").concat(nn,`
L `).concat(Qt==="round"?tn:100,",").concat(nn),Cn="0 0 100 ".concat(sn),Pn=0;return le.createElement("svg",(0,ue.Z)({className:ie()("".concat(jt,"-line"),en),viewBox:Cn,preserveAspectRatio:"none",style:wn},Dn),le.createElement("path",{className:"".concat(jt,"-line-trail"),d:dn,strokeLinecap:Qt,stroke:Bn,strokeWidth:Fn||sn,fillOpacity:"0"}),un.map(function(Hn,Gn){var _n=1;switch(Qt){case"round":_n=1-sn/100;break;case"square":_n=1-sn/2/100;break;default:_n=1;break}var Yn={strokeDasharray:"".concat(Hn*_n,"px, 100px"),strokeDashoffset:"-".concat(Pn,"px"),transition:gn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Wn=Tn[Gn]||Tn[Tn.length-1];return Pn+=Hn,le.createElement("path",{key:Gn,className:"".concat(jt,"-line-path"),d:dn,strokeLinecap:Qt,stroke:Wn,strokeWidth:sn,fillOpacity:"0",ref:function(cr){Mn[Gn]=cr},style:Yn})}))},me=he,ve=Ce(43749),pe=Ce(72190),be=Ce(47273),je=0,ke=(0,be.Z)();function Be(){var xt;return ke?(xt=je,je+=1):xt="TEST_OR_SSR",xt}var De=function(xt){var It=le.useState(),Ut=(0,pe.Z)(It,2),en=Ut[0],St=Ut[1];return le.useEffect(function(){St("rc_progress_".concat(Be()))},[]),xt||en},Se=function(It){var Ut=It.bg,en=It.children;return le.createElement("div",{style:{width:"100%",height:"100%",background:Ut}},en)};function Ee(xt,It){return Object.keys(xt).map(function(Ut){var en=parseFloat(Ut),St="".concat(Math.floor(en*It),"%");return"".concat(xt[Ut]," ").concat(St)})}var Ie=le.forwardRef(function(xt,It){var Ut=xt.prefixCls,en=xt.color,St=xt.gradientId,jt=xt.radius,Ht=xt.style,Qt=xt.ptg,sn=xt.strokeLinecap,wn=xt.strokeWidth,Bn=xt.size,Fn=xt.gapDegree,gn=en&&(0,ve.Z)(en)==="object",Dn=gn?"#FFF":void 0,un=Bn/2,Tn=le.createElement("circle",{className:"".concat(Ut,"-circle-path"),r:jt,cx:un,cy:un,stroke:Dn,strokeLinecap:sn,strokeWidth:wn,opacity:Qt===0?0:1,style:Ht,ref:It});if(!gn)return Tn;var Mn="".concat(St,"-conic"),nn=Fn?"".concat(180+Fn/2,"deg"):"0deg",tn=Ee(en,(360-Fn)/360),dn=Ee(en,1),Cn="conic-gradient(from ".concat(nn,", ").concat(tn.join(", "),")"),Pn="linear-gradient(to ".concat(Fn?"bottom":"top",", ").concat(dn.join(", "),")");return le.createElement(le.Fragment,null,le.createElement("mask",{id:Mn},Tn),le.createElement("foreignObject",{x:0,y:0,width:Bn,height:Bn,mask:"url(#".concat(Mn,")")},le.createElement(Se,{bg:Pn},le.createElement(Se,{bg:Cn}))))}),Me=Ie,Le=100,Ae=function(It,Ut,en,St,jt,Ht,Qt,sn,wn,Bn){var Fn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,gn=en/100*360*((360-Ht)/360),Dn=Ht===0?0:{bottom:0,top:180,left:90,right:-90}[Qt],un=(100-St)/100*Ut;wn==="round"&&St!==100&&(un+=Bn/2,un>=Ut&&(un=Ut-.01));var Tn=Le/2;return{stroke:typeof sn=="string"?sn:void 0,strokeDasharray:"".concat(Ut,"px ").concat(It),strokeDashoffset:un+Fn,transform:"rotate(".concat(jt+gn+Dn,"deg)"),transformOrigin:"".concat(Tn,"px ").concat(Tn,"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}},Pe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ue(xt){var It=xt!=null?xt:[];return Array.isArray(It)?It:[It]}var He=function(It){var Ut=(0,E.Z)((0,E.Z)({},te),It),en=Ut.id,St=Ut.prefixCls,jt=Ut.steps,Ht=Ut.strokeWidth,Qt=Ut.trailWidth,sn=Ut.gapDegree,wn=sn===void 0?0:sn,Bn=Ut.gapPosition,Fn=Ut.trailColor,gn=Ut.strokeLinecap,Dn=Ut.style,un=Ut.className,Tn=Ut.strokeColor,Mn=Ut.percent,nn=(0,re.Z)(Ut,Pe),tn=Le/2,dn=De(en),Cn="".concat(dn,"-gradient"),Pn=tn-Ht/2,Hn=Math.PI*2*Pn,Gn=wn>0?90+wn/2:-90,_n=Hn*((360-wn)/360),Yn=(0,ve.Z)(jt)==="object"?jt:{count:jt,gap:2},Wn=Yn.count,yr=Yn.gap,cr=Ue(Mn),cn=Ue(Tn),An=cn.find(function(Tt){return Tt&&(0,ve.Z)(Tt)==="object"}),qn=An&&(0,ve.Z)(An)==="object",wr=qn?"butt":gn,Rt=Ae(Hn,_n,0,100,Gn,wn,Bn,Fn,wr,Ht),Xt=se(),Et=function(){var _t=0;return cr.map(function(bt,Zt){var Kt=cn[Zt]||cn[cn.length-1],Yt=Ae(Hn,_n,_t,bt,Gn,wn,Bn,Kt,wr,Ht);return _t+=bt,le.createElement(Me,{key:Zt,color:Kt,ptg:bt,radius:Pn,prefixCls:St,gradientId:Cn,style:Yt,strokeLinecap:wr,strokeWidth:Ht,gapDegree:wn,ref:function($t){Xt[Zt]=$t},size:Le})}).reverse()},Dt=function(){var _t=Math.round(Wn*(cr[0]/100)),bt=100/Wn,Zt=0;return new Array(Wn).fill(null).map(function(Kt,Yt){var Ft=Yt<=_t-1?cn[0]:Fn,$t=Ft&&(0,ve.Z)(Ft)==="object"?"url(#".concat(Cn,")"):void 0,zt=Ae(Hn,_n,Zt,bt,Gn,wn,Bn,Ft,"butt",Ht,yr);return Zt+=(_n-zt.strokeDashoffset+yr)*100/_n,le.createElement("circle",{key:Yt,className:"".concat(St,"-circle-path"),r:Pn,cx:tn,cy:tn,stroke:$t,strokeWidth:Ht,opacity:1,style:zt,ref:function(hn){Xt[Yt]=hn}})})};return le.createElement("svg",(0,ue.Z)({className:ie()("".concat(St,"-circle"),un),viewBox:"0 0 ".concat(Le," ").concat(Le),style:Dn,id:en,role:"presentation"},nn),!Wn&&le.createElement("circle",{className:"".concat(St,"-circle-trail"),r:Pn,cx:tn,cy:tn,stroke:Fn,strokeLinecap:wr,strokeWidth:Qt||Ht,style:Rt}),Wn?Dt():Et())},Je=He,st={Line:me,Circle:Je},_e=Ce(25399),Ke=Ce(68361);function nt(xt){return!xt||xt<0?0:xt>100?100:xt}function rt(xt){let{success:It,successPercent:Ut}=xt,en=Ut;return It&&"progress"in It&&(en=It.progress),It&&"percent"in It&&(en=It.percent),en}const et=xt=>{let{percent:It,success:Ut,successPercent:en}=xt;const St=nt(rt({success:Ut,successPercent:en}));return[St,nt(nt(It)-St)]},Ve=xt=>{let{success:It={},strokeColor:Ut}=xt;const{strokeColor:en}=It;return[en||Ke.presetPrimaryColors.green,Ut||null]},Ye=(xt,It,Ut)=>{var en,St,jt,Ht;let Qt=-1,sn=-1;if(It==="step"){const wn=Ut.steps,Bn=Ut.strokeWidth;typeof xt=="string"||typeof xt=="undefined"?(Qt=xt==="small"?2:14,sn=Bn!=null?Bn:8):typeof xt=="number"?[Qt,sn]=[xt,xt]:[Qt=14,sn=8]=Array.isArray(xt)?xt:[xt.width,xt.height],Qt*=wn}else if(It==="line"){const wn=Ut==null?void 0:Ut.strokeWidth;typeof xt=="string"||typeof xt=="undefined"?sn=wn||(xt==="small"?6:8):typeof xt=="number"?[Qt,sn]=[xt,xt]:[Qt=-1,sn=8]=Array.isArray(xt)?xt:[xt.width,xt.height]}else(It==="circle"||It==="dashboard")&&(typeof xt=="string"||typeof xt=="undefined"?[Qt,sn]=xt==="small"?[60,60]:[120,120]:typeof xt=="number"?[Qt,sn]=[xt,xt]:Array.isArray(xt)&&(Qt=(St=(en=xt[0])!==null&&en!==void 0?en:xt[1])!==null&&St!==void 0?St:120,sn=(Ht=(jt=xt[0])!==null&&jt!==void 0?jt:xt[1])!==null&&Ht!==void 0?Ht:120));return[Qt,sn]},Ge=3,it=xt=>Ge/xt*100;var vt=xt=>{const{prefixCls:It,trailColor:Ut=null,strokeLinecap:en="round",gapPosition:St,gapDegree:jt,width:Ht=120,type:Qt,children:sn,success:wn,size:Bn=Ht,steps:Fn}=xt,[gn,Dn]=Ye(Bn,"circle");let{strokeWidth:un}=xt;un===void 0&&(un=Math.max(it(gn),6));const Tn={width:gn,height:Dn,fontSize:gn*.15+6},Mn=le.useMemo(()=>{if(jt||jt===0)return jt;if(Qt==="dashboard")return 75},[jt,Qt]),nn=et(xt),tn=St||Qt==="dashboard"&&"bottom"||void 0,dn=Object.prototype.toString.call(xt.strokeColor)==="[object Object]",Cn=Ve({success:wn,strokeColor:xt.strokeColor}),Pn=ie()(`${It}-inner`,{[`${It}-circle-gradient`]:dn}),Hn=le.createElement(Je,{steps:Fn,percent:Fn?nn[1]:nn,strokeWidth:un,trailWidth:un,strokeColor:Fn?Cn[1]:Cn,strokeLinecap:en,trailColor:Ut,prefixCls:It,gapDegree:Mn,gapPosition:tn}),Gn=gn<=20,_n=le.createElement("div",{className:Pn,style:Tn},Hn,!Gn&&sn);return Gn?le.createElement(_e.Z,{title:sn},_n):_n},ot=Ce(36237),Qe=Ce(63356),Fe=Ce(16931),Re=Ce(51636);const ne="--progress-line-stroke-color",fe="--progress-percent",Ne=xt=>{const It=xt?"100%":"-100%";return new ot.Keyframes(`antProgress${xt?"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}})},We=xt=>{const{componentCls:It,iconCls:Ut}=xt;return{[It]:Object.assign(Object.assign({},(0,Qe.Wf)(xt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:xt.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:xt.remainingColor,borderRadius:xt.lineBorderRadius},[`${It}-inner:not(${It}-circle-gradient)`]:{[`${It}-circle-path`]:{stroke:xt.defaultColor}},[`${It}-success-bg, ${It}-bg`]:{position:"relative",background:xt.defaultColor,borderRadius:xt.lineBorderRadius,transition:`all ${xt.motionDurationSlow} ${xt.motionEaseInOutCirc}`},[`${It}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${It}-text`]:{width:"max-content",marginInlineStart:0,marginTop:xt.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:xt.colorWhite,[`&${It}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${It}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:xt.colorSuccess},[`${It}-text`]:{display:"inline-block",marginInlineStart:xt.marginXS,color:xt.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ut]:{fontSize:xt.fontSize},[`&${It}-text-outer`]:{width:"max-content"},[`&${It}-text-outer${It}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:xt.marginXS}},[`${It}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,ot.unit)(xt.paddingXXS)}`,[`&${It}-text-start`]:{justifyContent:"start"},[`&${It}-text-end`]:{justifyContent:"end"}},[`&${It}-status-active`]:{[`${It}-bg::before`]:{position:"absolute",inset:0,backgroundColor:xt.colorBgContainer,borderRadius:xt.lineBorderRadius,opacity:0,animationName:Ne(),animationDuration:xt.progressActiveMotionDuration,animationTimingFunction:xt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${It}-rtl${It}-status-active`]:{[`${It}-bg::before`]:{animationName:Ne(!0)}},[`&${It}-status-exception`]:{[`${It}-bg`]:{backgroundColor:xt.colorError},[`${It}-text`]:{color:xt.colorError}},[`&${It}-status-exception ${It}-inner:not(${It}-circle-gradient)`]:{[`${It}-circle-path`]:{stroke:xt.colorError}},[`&${It}-status-success`]:{[`${It}-bg`]:{backgroundColor:xt.colorSuccess},[`${It}-text`]:{color:xt.colorSuccess}},[`&${It}-status-success ${It}-inner:not(${It}-circle-gradient)`]:{[`${It}-circle-path`]:{stroke:xt.colorSuccess}}})}},we=xt=>{const{componentCls:It,iconCls:Ut}=xt;return{[It]:{[`${It}-circle-trail`]:{stroke:xt.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:xt.circleTextColor,fontSize:xt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ut]:{fontSize:xt.circleIconFontSize}},[`${It}-circle&-status-exception`]:{[`${It}-text`]:{color:xt.colorError}},[`${It}-circle&-status-success`]:{[`${It}-text`]:{color:xt.colorSuccess}}},[`${It}-inline-circle`]:{lineHeight:1,[`${It}-inner`]:{verticalAlign:"bottom"}}}},ye=xt=>{const{componentCls:It}=xt;return{[It]:{[`${It}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:xt.progressStepMinWidth,marginInlineEnd:xt.progressStepMarginInlineEnd,backgroundColor:xt.remainingColor,transition:`all ${xt.motionDurationSlow}`,"&-active":{backgroundColor:xt.defaultColor}}}}}},Oe=xt=>{const{componentCls:It,iconCls:Ut}=xt;return{[It]:{[`${It}-small&-line, ${It}-small&-line ${It}-text ${Ut}`]:{fontSize:xt.fontSizeSM}}}},$e=xt=>({circleTextColor:xt.colorText,defaultColor:xt.colorInfo,remainingColor:xt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${xt.fontSize/xt.fontSizeSM}em`});var Ze=(0,Fe.I$)("Progress",xt=>{const It=xt.calc(xt.marginXXS).div(2).equal(),Ut=(0,Re.mergeToken)(xt,{progressStepMarginInlineEnd:It,progressStepMinWidth:It,progressActiveMotionDuration:"2.4s"});return[We(Ut),we(Ut),ye(Ut),Oe(Ut)]},$e),Xe=function(xt,It){var Ut={};for(var en in xt)Object.prototype.hasOwnProperty.call(xt,en)&&It.indexOf(en)<0&&(Ut[en]=xt[en]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,en=Object.getOwnPropertySymbols(xt);St<en.length;St++)It.indexOf(en[St])<0&&Object.prototype.propertyIsEnumerable.call(xt,en[St])&&(Ut[en[St]]=xt[en[St]]);return Ut};const at=xt=>{let It=[];return Object.keys(xt).forEach(Ut=>{const en=parseFloat(Ut.replace(/%/g,""));Number.isNaN(en)||It.push({key:en,value:xt[Ut]})}),It=It.sort((Ut,en)=>Ut.key-en.key),It.map(Ut=>{let{key:en,value:St}=Ut;return`${St} ${en}%`}).join(", ")},lt=(xt,It)=>{const{from:Ut=Ke.presetPrimaryColors.blue,to:en=Ke.presetPrimaryColors.blue,direction:St=It==="rtl"?"to left":"to right"}=xt,jt=Xe(xt,["from","to","direction"]);if(Object.keys(jt).length!==0){const Qt=at(jt),sn=`linear-gradient(${St}, ${Qt})`;return{background:sn,[ne]:sn}}const Ht=`linear-gradient(${St}, ${Ut}, ${en})`;return{background:Ht,[ne]:Ht}};var ut=xt=>{const{prefixCls:It,direction:Ut,percent:en,size:St,strokeWidth:jt,strokeColor:Ht,strokeLinecap:Qt="round",children:sn,trailColor:wn=null,percentPosition:Bn,success:Fn}=xt,{align:gn,type:Dn}=Bn,un=Ht&&typeof Ht!="string"?lt(Ht,Ut):{[ne]:Ht,background:Ht},Tn=Qt==="square"||Qt==="butt"?0:void 0,Mn=St!=null?St:[-1,jt||(St==="small"?6:8)],[nn,tn]=Ye(Mn,"line",{strokeWidth:jt}),dn={backgroundColor:wn||void 0,borderRadius:Tn},Cn=Object.assign(Object.assign({width:`${nt(en)}%`,height:tn,borderRadius:Tn},un),{[fe]:nt(en)/100}),Pn=rt(xt),Hn={width:`${nt(Pn)}%`,height:tn,borderRadius:Tn,backgroundColor:Fn==null?void 0:Fn.strokeColor},Gn={width:nn<0?"100%":nn},_n=le.createElement("div",{className:`${It}-inner`,style:dn},le.createElement("div",{className:ie()(`${It}-bg`,`${It}-bg-${Dn}`),style:Cn},Dn==="inner"&&sn),Pn!==void 0&&le.createElement("div",{className:`${It}-success-bg`,style:Hn})),Yn=Dn==="outer"&&gn==="start",Wn=Dn==="outer"&&gn==="end";return Dn==="outer"&&gn==="center"?le.createElement("div",{className:`${It}-layout-bottom`},_n,sn):le.createElement("div",{className:`${It}-outer`,style:Gn},Yn&&sn,_n,Wn&&sn)},Pt=xt=>{const{size:It,steps:Ut,rounding:en=Math.round,percent:St=0,strokeWidth:jt=8,strokeColor:Ht,trailColor:Qt=null,prefixCls:sn,children:wn}=xt,Bn=en(Ut*(St/100)),Fn=It==="small"?2:14,gn=It!=null?It:[Fn,jt],[Dn,un]=Ye(gn,"step",{steps:Ut,strokeWidth:jt}),Tn=Dn/Ut,Mn=Array.from({length:Ut});for(let nn=0;nn<Ut;nn++){const tn=Array.isArray(Ht)?Ht[nn]:Ht;Mn[nn]=le.createElement("div",{key:nn,className:ie()(`${sn}-steps-item`,{[`${sn}-steps-item-active`]:nn<=Bn-1}),style:{backgroundColor:nn<=Bn-1?tn:Qt,width:Tn,height:un}})}return le.createElement("div",{className:`${sn}-steps-outer`},Mn,wn)},wt=function(xt,It){var Ut={};for(var en in xt)Object.prototype.hasOwnProperty.call(xt,en)&&It.indexOf(en)<0&&(Ut[en]=xt[en]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,en=Object.getOwnPropertySymbols(xt);St<en.length;St++)It.indexOf(en[St])<0&&Object.prototype.propertyIsEnumerable.call(xt,en[St])&&(Ut[en[St]]=xt[en[St]]);return Ut};const Bt=null,At=["normal","exception","active","success"];var Mt=le.forwardRef((xt,It)=>{const{prefixCls:Ut,className:en,rootClassName:St,steps:jt,strokeColor:Ht,percent:Qt=0,size:sn="default",showInfo:wn=!0,type:Bn="line",status:Fn,format:gn,style:Dn,percentPosition:un={}}=xt,Tn=wt(xt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Mn="end",type:nn="outer"}=un,tn=Array.isArray(Ht)?Ht[0]:Ht,dn=typeof Ht=="string"||Array.isArray(Ht)?Ht:void 0,Cn=le.useMemo(()=>{if(tn){const Et=typeof tn=="string"?tn:Object.values(tn)[0];return new yt.FastColor(Et).isLight()}return!1},[Ht]),Pn=le.useMemo(()=>{var Et,Dt;const Tt=rt(xt);return parseInt(Tt!==void 0?(Et=Tt!=null?Tt:0)===null||Et===void 0?void 0:Et.toString():(Dt=Qt!=null?Qt:0)===null||Dt===void 0?void 0:Dt.toString(),10)},[Qt,xt.success,xt.successPercent]),Hn=le.useMemo(()=>!At.includes(Fn)&&Pn>=100?"success":Fn||"normal",[Fn,Pn]),{getPrefixCls:Gn,direction:_n,progress:Yn}=le.useContext(ee.E_),Wn=Gn("progress",Ut),[yr,cr,cn]=Ze(Wn),An=Bn==="line",qn=An&&!jt,wr=le.useMemo(()=>{if(!wn)return null;const Et=rt(xt);let Dt;const Tt=gn||(bt=>`${bt}%`),_t=An&&Cn&&nn==="inner";return nn==="inner"||gn||Hn!=="exception"&&Hn!=="success"?Dt=Tt(nt(Qt),nt(Et)):Hn==="exception"?Dt=An?le.createElement(ge.Z,null):le.createElement(x.Z,null):Hn==="success"&&(Dt=An?le.createElement(a.Z,null):le.createElement(Te.Z,null)),le.createElement("span",{className:ie()(`${Wn}-text`,{[`${Wn}-text-bright`]:_t,[`${Wn}-text-${Mn}`]:qn,[`${Wn}-text-${nn}`]:qn}),title:typeof Dt=="string"?Dt:void 0},Dt)},[wn,Qt,Pn,Hn,Bn,Wn,gn]);let Rt;Bn==="line"?Rt=jt?le.createElement(Pt,Object.assign({},xt,{strokeColor:dn,prefixCls:Wn,steps:typeof jt=="object"?jt.count:jt}),wr):le.createElement(ut,Object.assign({},xt,{strokeColor:tn,prefixCls:Wn,direction:_n,percentPosition:{align:Mn,type:nn}}),wr):(Bn==="circle"||Bn==="dashboard")&&(Rt=le.createElement(vt,Object.assign({},xt,{strokeColor:tn,prefixCls:Wn,progressStatus:Hn}),wr));const Xt=ie()(Wn,`${Wn}-status-${Hn}`,{[`${Wn}-${Bn==="dashboard"&&"circle"||Bn}`]:Bn!=="line",[`${Wn}-inline-circle`]:Bn==="circle"&&Ye(sn,"circle")[0]<=20,[`${Wn}-line`]:qn,[`${Wn}-line-align-${Mn}`]:qn,[`${Wn}-line-position-${nn}`]:qn,[`${Wn}-steps`]:jt,[`${Wn}-show-info`]:wn,[`${Wn}-${sn}`]:typeof sn=="string",[`${Wn}-rtl`]:_n==="rtl"},Yn==null?void 0:Yn.className,en,St,cr,cn);return yr(le.createElement("div",Object.assign({ref:It,style:Object.assign(Object.assign({},Yn==null?void 0:Yn.style),Dn),className:Xt,role:"progressbar","aria-valuenow":Pn,"aria-valuemin":0,"aria-valuemax":100},(0,oe.Z)(Tn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Rt))}),kt=Mt},82326:function(on,Lt,Ce){"use strict";var le=Ce(59301),yt=Ce(92310),a=Ce.n(yt),Te=Ce(37463),ge=Ce(2738),x=Ce(75030),z=Ce(86641),ie=Ce(45915),oe=Ce(82855),ee=Ce(48755),ue=Ce(38406),E=Ce(2171),re=Ce(83397),te=Ce(31756),se=Ce(56553),ae=Ce(24971),he=Ce(70045),me=Ce(57700),ve=Ce(1722),pe=Ce(90376),be=Ce(68525),je=Ce(90005),ke=function(Ie,Me){var Le={};for(var Ae in Ie)Object.prototype.hasOwnProperty.call(Ie,Ae)&&Me.indexOf(Ae)<0&&(Le[Ae]=Ie[Ae]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ae=Object.getOwnPropertySymbols(Ie);Pe<Ae.length;Pe++)Me.indexOf(Ae[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Ae[Pe])&&(Le[Ae[Pe]]=Ie[Ae[Pe]]);return Le};const Be="SECRET_COMBOBOX_MODE_DO_NOT_USE",De=(Ie,Me)=>{var Le;const{prefixCls:Ae,bordered:Pe,className:Ue,rootClassName:He,getPopupContainer:Je,popupClassName:st,dropdownClassName:_e,listHeight:Ke=256,placement:nt,listItemHeight:rt,size:et,disabled:Ve,notFoundContent:Ye,status:Ge,builtinPlacements:it,dropdownMatchSelectWidth:qe,popupMatchSelectWidth:vt,direction:ot,style:Qe,allowClear:Fe,variant:Re,dropdownStyle:ne,transitionName:fe,tagRender:Ne,maxCount:We,prefix:we}=Ie,ye=ke(Ie,["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:Oe,getPrefixCls:$e,renderEmpty:Ze,direction:Xe,virtual:at,popupMatchSelectWidth:lt,popupOverflow:mt}=le.useContext(ee.E_),ut=(0,ee.dj)("select"),[,ct]=(0,me.ZP)(),Pt=rt!=null?rt:ct==null?void 0:ct.controlHeight,wt=$e("select",Ae),Bt=$e(),At=ot!=null?ot:Xe,{compactSize:pt,compactItemClassnames:Mt}=(0,he.ri)(wt,At),[kt,xt]=(0,ae.Z)("select",Re,Pe),It=(0,re.Z)(wt),[Ut,en,St]=(0,pe.Z)(wt,It),jt=le.useMemo(()=>{const{mode:cr}=Ie;if(cr!=="combobox")return cr===Be?"combobox":cr},[Ie.mode]),Ht=jt==="multiple"||jt==="tags",Qt=(0,je.Z)(Ie.suffixIcon,Ie.showArrow),sn=(Le=vt!=null?vt:qe)!==null&&Le!==void 0?Le:lt,{status:wn,hasFeedback:Bn,isFormItemInput:Fn,feedbackIcon:gn}=le.useContext(se.aM),Dn=(0,oe.F)(wn,Ge);let un;Ye!==void 0?un=Ye:jt==="combobox"?un=null:un=(Ze==null?void 0:Ze("Select"))||le.createElement(ue.Z,{componentName:"Select"});const{suffixIcon:Tn,itemIcon:Mn,removeIcon:nn,clearIcon:tn}=(0,be.Z)(Object.assign(Object.assign({},ye),{multiple:Ht,hasFeedback:Bn,feedbackIcon:gn,showSuffixIcon:Qt,prefixCls:wt,componentName:"Select"})),dn=Fe===!0?{clearIcon:tn}:Fe,Cn=(0,ge.Z)(ye,["suffixIcon","itemIcon"]),Pn=a()(st||_e,{[`${wt}-dropdown-${At}`]:At==="rtl"},He,St,It,en),Hn=(0,te.Z)(cr=>{var cn;return(cn=et!=null?et:pt)!==null&&cn!==void 0?cn:cr}),Gn=le.useContext(E.Z),_n=Ve!=null?Ve:Gn,Yn=a()({[`${wt}-lg`]:Hn==="large",[`${wt}-sm`]:Hn==="small",[`${wt}-rtl`]:At==="rtl",[`${wt}-${kt}`]:xt,[`${wt}-in-form-item`]:Fn},(0,oe.Z)(wt,Dn,Bn),Mt,ut.className,Ue,He,St,It,en),Wn=le.useMemo(()=>nt!==void 0?nt:At==="rtl"?"bottomRight":"bottomLeft",[nt,At]),[yr]=(0,x.Cn)("SelectLike",ne==null?void 0:ne.zIndex);return Ut(le.createElement(Te.ZP,Object.assign({ref:Me,virtual:at,showSearch:ut.showSearch},Cn,{style:Object.assign(Object.assign({},ut.style),Qe),dropdownMatchSelectWidth:sn,transitionName:(0,z.m)(Bt,"slide-up",fe),builtinPlacements:(0,ve.Z)(it,mt),listHeight:Ke,listItemHeight:Pt,mode:jt,prefixCls:wt,placement:Wn,direction:At,prefix:we,suffixIcon:Tn,menuItemSelectedIcon:Mn,removeIcon:nn,allowClear:dn,notFoundContent:un,className:Yn,getPopupContainer:Je||Oe,dropdownClassName:Pn,disabled:_n,dropdownStyle:Object.assign(Object.assign({},ne),{zIndex:yr}),maxCount:Ht?We:void 0,tagRender:Ht?Ne:void 0})))},Se=le.forwardRef(De),Ee=(0,ie.Z)(Se,"dropdownAlign");Se.SECRET_COMBOBOX_MODE_DO_NOT_USE=Be,Se.Option=Te.Wx,Se.OptGroup=Te.Xo,Se._InternalPanelDoNotUseOrYouWillBeFired=Ee,Lt.default=Se},1722:function(on,Lt){"use strict";const Ce=yt=>{const Te={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:yt==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Te),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Te),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Te),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Te),{points:["br","tr"],offset:[0,-4]})}};function le(yt,a){return yt||Ce(a)}Lt.Z=le},90376:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return Ae}});var le=Ce(63356),yt=Ce(56119),a=Ce(16931),Te=Ce(51636),ge=Ce(46e3),x=Ce(93873);const z=Pe=>{const{optionHeight:Ue,optionFontSize:He,optionLineHeight:Je,optionPadding:st}=Pe;return{position:"relative",display:"block",minHeight:Ue,padding:st,color:Pe.colorText,fontWeight:"normal",fontSize:He,lineHeight:Je,boxSizing:"border-box"}};var oe=Pe=>{const{antCls:Ue,componentCls:He}=Pe,Je=`${He}-item`,st=`&${Ue}-slide-up-enter${Ue}-slide-up-enter-active`,_e=`&${Ue}-slide-up-appear${Ue}-slide-up-appear-active`,Ke=`&${Ue}-slide-up-leave${Ue}-slide-up-leave-active`,nt=`${He}-dropdown-placement-`,rt=`${Je}-option-selected`;return[{[`${He}-dropdown`]:Object.assign(Object.assign({},(0,le.Wf)(Pe)),{position:"absolute",top:-9999,zIndex:Pe.zIndexPopup,boxSizing:"border-box",padding:Pe.paddingXXS,overflow:"hidden",fontSize:Pe.fontSize,fontVariant:"initial",backgroundColor:Pe.colorBgElevated,borderRadius:Pe.borderRadiusLG,outline:"none",boxShadow:Pe.boxShadowSecondary,[`
${st}${nt}bottomLeft,
${_e}${nt}bottomLeft
`]:{animationName:ge.fJ},[`
${st}${nt}topLeft,
${_e}${nt}topLeft,
${st}${nt}topRight,
${_e}${nt}topRight
`]:{animationName:ge.Qt},[`${Ke}${nt}bottomLeft`]:{animationName:ge.Uw},[`
${Ke}${nt}topLeft,
${Ke}${nt}topRight
`]:{animationName:ge.ly},"&-hidden":{display:"none"},[Je]:Object.assign(Object.assign({},z(Pe)),{cursor:"pointer",transition:`background ${Pe.motionDurationSlow} ease`,borderRadius:Pe.borderRadiusSM,"&-group":{color:Pe.colorTextDescription,fontSize:Pe.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},le.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Je}-option-disabled)`]:{backgroundColor:Pe.optionActiveBg},[`&-selected:not(${Je}-option-disabled)`]:{color:Pe.optionSelectedColor,fontWeight:Pe.optionSelectedFontWeight,backgroundColor:Pe.optionSelectedBg,[`${Je}-option-state`]:{color:Pe.colorPrimary}},"&-disabled":{[`&${Je}-option-selected`]:{backgroundColor:Pe.colorBgContainerDisabled},color:Pe.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Pe.calc(Pe.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},z(Pe)),{color:Pe.colorTextDisabled})}),[`${rt}:has(+ ${rt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${rt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,ge.oN)(Pe,"slide-up"),(0,ge.oN)(Pe,"slide-down"),(0,x.Fm)(Pe,"move-up"),(0,x.Fm)(Pe,"move-down")]},ee=Ce(26743),ue=Ce(36237);function E(Pe,Ue){const{componentCls:He,inputPaddingHorizontalBase:Je,borderRadius:st}=Pe,_e=Pe.calc(Pe.controlHeight).sub(Pe.calc(Pe.lineWidth).mul(2)).equal(),Ke=Ue?`${He}-${Ue}`:"";return{[`${He}-single${Ke}`]:{fontSize:Pe.fontSize,height:Pe.controlHeight,[`${He}-selector`]:Object.assign(Object.assign({},(0,le.Wf)(Pe,!0)),{display:"flex",borderRadius:st,flex:"1 1 auto",[`${He}-selection-wrap:after`]:{lineHeight:(0,ue.unit)(_e)},[`${He}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${He}-selection-item,
${He}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,ue.unit)(_e),transition:`all ${Pe.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${He}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${He}-selection-item:empty:after`,`${He}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${He}-show-arrow ${He}-selection-item,
&${He}-show-arrow ${He}-selection-search,
&${He}-show-arrow ${He}-selection-placeholder
`]:{paddingInlineEnd:Pe.showArrowPaddingInlineEnd},[`&${He}-open ${He}-selection-item`]:{color:Pe.colorTextPlaceholder},[`&:not(${He}-customize-input)`]:{[`${He}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,ue.unit)(Je)}`,[`${He}-selection-search-input`]:{height:_e,fontSize:Pe.fontSize},"&:after":{lineHeight:(0,ue.unit)(_e)}}},[`&${He}-customize-input`]:{[`${He}-selector`]:{"&:after":{display:"none"},[`${He}-selection-search`]:{position:"static",width:"100%"},[`${He}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,ue.unit)(Je)}`,"&:after":{display:"none"}}}}}}}function re(Pe){const{componentCls:Ue}=Pe,He=Pe.calc(Pe.controlPaddingHorizontalSM).sub(Pe.lineWidth).equal();return[E(Pe),E((0,Te.mergeToken)(Pe,{controlHeight:Pe.controlHeightSM,borderRadius:Pe.borderRadiusSM}),"sm"),{[`${Ue}-single${Ue}-sm`]:{[`&:not(${Ue}-customize-input)`]:{[`${Ue}-selector`]:{padding:`0 ${(0,ue.unit)(He)}`},[`&${Ue}-show-arrow ${Ue}-selection-search`]:{insetInlineEnd:Pe.calc(He).add(Pe.calc(Pe.fontSize).mul(1.5)).equal()},[`
&${Ue}-show-arrow ${Ue}-selection-item,
&${Ue}-show-arrow ${Ue}-selection-placeholder
`]:{paddingInlineEnd:Pe.calc(Pe.fontSize).mul(1.5).equal()}}}},E((0,Te.mergeToken)(Pe,{controlHeight:Pe.singleItemHeightLG,fontSize:Pe.fontSizeLG,borderRadius:Pe.borderRadiusLG}),"lg")]}const te=Pe=>{const{fontSize:Ue,lineHeight:He,lineWidth:Je,controlHeight:st,controlHeightSM:_e,controlHeightLG:Ke,paddingXXS:nt,controlPaddingHorizontal:rt,zIndexPopupBase:et,colorText:Ve,fontWeightStrong:Ye,controlItemBgActive:Ge,controlItemBgHover:it,colorBgContainer:qe,colorFillSecondary:vt,colorBgContainerDisabled:ot,colorTextDisabled:Qe,colorPrimaryHover:Fe,colorPrimary:Re,controlOutline:ne}=Pe,fe=nt*2,Ne=Je*2,We=Math.min(st-fe,st-Ne),we=Math.min(_e-fe,_e-Ne),ye=Math.min(Ke-fe,Ke-Ne);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(nt/2),zIndexPopup:et+50,optionSelectedColor:Ve,optionSelectedFontWeight:Ye,optionSelectedBg:Ge,optionActiveBg:it,optionPadding:`${(st-Ue*He)/2}px ${rt}px`,optionFontSize:Ue,optionLineHeight:He,optionHeight:st,selectorBg:qe,clearBg:qe,singleItemHeightLG:Ke,multipleItemBg:vt,multipleItemBorderColor:"transparent",multipleItemHeight:We,multipleItemHeightSM:we,multipleItemHeightLG:ye,multipleSelectorBgDisabled:ot,multipleItemColorDisabled:Qe,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(Pe.fontSize*1.25),hoverBorderColor:Fe,activeBorderColor:Re,activeOutlineColor:ne,selectAffixPadding:nt}},se=(Pe,Ue)=>{const{componentCls:He,antCls:Je,controlOutlineWidth:st}=Pe;return{[`&:not(${He}-customize-input) ${He}-selector`]:{border:`${(0,ue.unit)(Pe.lineWidth)} ${Pe.lineType} ${Ue.borderColor}`,background:Pe.selectorBg},[`&:not(${He}-disabled):not(${He}-customize-input):not(${Je}-pagination-size-changer)`]:{[`&:hover ${He}-selector`]:{borderColor:Ue.hoverBorderHover},[`${He}-focused& ${He}-selector`]:{borderColor:Ue.activeBorderColor,boxShadow:`0 0 0 ${(0,ue.unit)(st)} ${Ue.activeOutlineColor}`,outline:0},[`${He}-prefix`]:{color:Ue.color}}}},ae=(Pe,Ue)=>({[`&${Pe.componentCls}-status-${Ue.status}`]:Object.assign({},se(Pe,Ue))}),he=Pe=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},se(Pe,{borderColor:Pe.colorBorder,hoverBorderHover:Pe.hoverBorderColor,activeBorderColor:Pe.activeBorderColor,activeOutlineColor:Pe.activeOutlineColor,color:Pe.colorText})),ae(Pe,{status:"error",borderColor:Pe.colorError,hoverBorderHover:Pe.colorErrorHover,activeBorderColor:Pe.colorError,activeOutlineColor:Pe.colorErrorOutline,color:Pe.colorError})),ae(Pe,{status:"warning",borderColor:Pe.colorWarning,hoverBorderHover:Pe.colorWarningHover,activeBorderColor:Pe.colorWarning,activeOutlineColor:Pe.colorWarningOutline,color:Pe.colorWarning})),{[`&${Pe.componentCls}-disabled`]:{[`&:not(${Pe.componentCls}-customize-input) ${Pe.componentCls}-selector`]:{background:Pe.colorBgContainerDisabled,color:Pe.colorTextDisabled}},[`&${Pe.componentCls}-multiple ${Pe.componentCls}-selection-item`]:{background:Pe.multipleItemBg,border:`${(0,ue.unit)(Pe.lineWidth)} ${Pe.lineType} ${Pe.multipleItemBorderColor}`}})}),me=(Pe,Ue)=>{const{componentCls:He,antCls:Je}=Pe;return{[`&:not(${He}-customize-input) ${He}-selector`]:{background:Ue.bg,border:`${(0,ue.unit)(Pe.lineWidth)} ${Pe.lineType} transparent`,color:Ue.color},[`&:not(${He}-disabled):not(${He}-customize-input):not(${Je}-pagination-size-changer)`]:{[`&:hover ${He}-selector`]:{background:Ue.hoverBg},[`${He}-focused& ${He}-selector`]:{background:Pe.selectorBg,borderColor:Ue.activeBorderColor,outline:0}}}},ve=(Pe,Ue)=>({[`&${Pe.componentCls}-status-${Ue.status}`]:Object.assign({},me(Pe,Ue))}),pe=Pe=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},me(Pe,{bg:Pe.colorFillTertiary,hoverBg:Pe.colorFillSecondary,activeBorderColor:Pe.activeBorderColor,color:Pe.colorText})),ve(Pe,{status:"error",bg:Pe.colorErrorBg,hoverBg:Pe.colorErrorBgHover,activeBorderColor:Pe.colorError,color:Pe.colorError})),ve(Pe,{status:"warning",bg:Pe.colorWarningBg,hoverBg:Pe.colorWarningBgHover,activeBorderColor:Pe.colorWarning,color:Pe.colorWarning})),{[`&${Pe.componentCls}-disabled`]:{[`&:not(${Pe.componentCls}-customize-input) ${Pe.componentCls}-selector`]:{borderColor:Pe.colorBorder,background:Pe.colorBgContainerDisabled,color:Pe.colorTextDisabled}},[`&${Pe.componentCls}-multiple ${Pe.componentCls}-selection-item`]:{background:Pe.colorBgContainer,border:`${(0,ue.unit)(Pe.lineWidth)} ${Pe.lineType} ${Pe.colorSplit}`}})}),be=Pe=>({"&-borderless":{[`${Pe.componentCls}-selector`]:{background:"transparent",border:`${(0,ue.unit)(Pe.lineWidth)} ${Pe.lineType} transparent`},[`&${Pe.componentCls}-disabled`]:{[`&:not(${Pe.componentCls}-customize-input) ${Pe.componentCls}-selector`]:{color:Pe.colorTextDisabled}},[`&${Pe.componentCls}-multiple ${Pe.componentCls}-selection-item`]:{background:Pe.multipleItemBg,border:`${(0,ue.unit)(Pe.lineWidth)} ${Pe.lineType} ${Pe.multipleItemBorderColor}`},[`&${Pe.componentCls}-status-error`]:{[`${Pe.componentCls}-prefix, ${Pe.componentCls}-selection-item`]:{color:Pe.colorError}},[`&${Pe.componentCls}-status-warning`]:{[`${Pe.componentCls}-prefix, ${Pe.componentCls}-selection-item`]:{color:Pe.colorWarning}}}}),je=(Pe,Ue)=>{const{componentCls:He,antCls:Je}=Pe;return{[`&:not(${He}-customize-input) ${He}-selector`]:{borderWidth:`0 0 ${(0,ue.unit)(Pe.lineWidth)} 0`,borderStyle:`none none ${Pe.lineType} none`,borderColor:Ue.borderColor,background:Pe.selectorBg,borderRadius:0},[`&:not(${He}-disabled):not(${He}-customize-input):not(${Je}-pagination-size-changer)`]:{[`&:hover ${He}-selector`]:{borderColor:Ue.hoverBorderHover},[`${He}-focused& ${He}-selector`]:{borderColor:Ue.activeBorderColor,outline:0},[`${He}-prefix`]:{color:Ue.color}}}},ke=(Pe,Ue)=>({[`&${Pe.componentCls}-status-${Ue.status}`]:Object.assign({},je(Pe,Ue))}),Be=Pe=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},je(Pe,{borderColor:Pe.colorBorder,hoverBorderHover:Pe.hoverBorderColor,activeBorderColor:Pe.activeBorderColor,activeOutlineColor:Pe.activeOutlineColor,color:Pe.colorText})),ke(Pe,{status:"error",borderColor:Pe.colorError,hoverBorderHover:Pe.colorErrorHover,activeBorderColor:Pe.colorError,activeOutlineColor:Pe.colorErrorOutline,color:Pe.colorError})),ke(Pe,{status:"warning",borderColor:Pe.colorWarning,hoverBorderHover:Pe.colorWarningHover,activeBorderColor:Pe.colorWarning,activeOutlineColor:Pe.colorWarningOutline,color:Pe.colorWarning})),{[`&${Pe.componentCls}-disabled`]:{[`&:not(${Pe.componentCls}-customize-input) ${Pe.componentCls}-selector`]:{color:Pe.colorTextDisabled}},[`&${Pe.componentCls}-multiple ${Pe.componentCls}-selection-item`]:{background:Pe.multipleItemBg,border:`${(0,ue.unit)(Pe.lineWidth)} ${Pe.lineType} ${Pe.multipleItemBorderColor}`}})});var Se=Pe=>({[Pe.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},he(Pe)),pe(Pe)),be(Pe)),Be(Pe))});const Ee=Pe=>{const{componentCls:Ue}=Pe;return{position:"relative",transition:`all ${Pe.motionDurationMid} ${Pe.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ue}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Ue}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Ie=Pe=>{const{componentCls:Ue}=Pe;return{[`${Ue}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Me=Pe=>{const{antCls:Ue,componentCls:He,inputPaddingHorizontalBase:Je,iconCls:st}=Pe;return{[He]:Object.assign(Object.assign({},(0,le.Wf)(Pe)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${He}-customize-input) ${He}-selector`]:Object.assign(Object.assign({},Ee(Pe)),Ie(Pe)),[`${He}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},le.vS),{[`> ${Ue}-typography`]:{display:"inline"}}),[`${He}-selection-placeholder`]:Object.assign(Object.assign({},le.vS),{flex:1,color:Pe.colorTextPlaceholder,pointerEvents:"none"}),[`${He}-arrow`]:Object.assign(Object.assign({},(0,le.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Je,height:Pe.fontSizeIcon,marginTop:Pe.calc(Pe.fontSizeIcon).mul(-1).div(2).equal(),color:Pe.colorTextQuaternary,fontSize:Pe.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${Pe.motionDurationSlow} ease`,[st]:{verticalAlign:"top",transition:`transform ${Pe.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${He}-suffix)`]:{pointerEvents:"auto"}},[`${He}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${He}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${He}-prefix`]:{flex:"none",marginInlineEnd:Pe.selectAffixPadding},[`${He}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Je,zIndex:1,display:"inline-block",width:Pe.fontSizeIcon,height:Pe.fontSizeIcon,marginTop:Pe.calc(Pe.fontSizeIcon).mul(-1).div(2).equal(),color:Pe.colorTextQuaternary,fontSize:Pe.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${Pe.motionDurationMid} ease, opacity ${Pe.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Pe.colorTextTertiary}},[`&:hover ${He}-clear`]:{opacity:1,background:Pe.colorBgBase,borderRadius:"50%"}}),[`${He}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${He}-has-feedback`]:{[`${He}-clear`]:{insetInlineEnd:Pe.calc(Je).add(Pe.fontSize).add(Pe.paddingXS).equal()}}}}}},Le=Pe=>{const{componentCls:Ue}=Pe;return[{[Ue]:{[`&${Ue}-in-form-item`]:{width:"100%"}}},Me(Pe),re(Pe),(0,ee.ZP)(Pe),oe(Pe),{[`${Ue}-rtl`]:{direction:"rtl"}},(0,yt.c)(Pe,{borderElCls:`${Ue}-selector`,focusElCls:`${Ue}-focused`})]};var Ae=(0,a.I$)("Select",(Pe,Ue)=>{let{rootPrefixCls:He}=Ue;const Je=(0,Te.mergeToken)(Pe,{rootPrefixCls:He,inputPaddingHorizontalBase:Pe.calc(Pe.paddingSM).sub(1).equal(),multipleSelectItemHeight:Pe.multipleItemHeight,selectHeight:Pe.controlHeight});return[Le(Je),Se(Je)]},te,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(on,Lt,Ce){"use strict";Ce.d(Lt,{_z:function(){return x},gp:function(){return Te}});var le=Ce(36237),yt=Ce(63356),a=Ce(51636);const Te=ee=>{const{multipleSelectItemHeight:ue,paddingXXS:E,lineWidth:re,INTERNAL_FIXED_ITEM_MARGIN:te}=ee,se=ee.max(ee.calc(E).sub(re).equal(),0),ae=ee.max(ee.calc(se).sub(te).equal(),0);return{basePadding:se,containerPadding:ae,itemHeight:(0,le.unit)(ue),itemLineHeight:(0,le.unit)(ee.calc(ue).sub(ee.calc(ee.lineWidth).mul(2)).equal())}},ge=ee=>{const{multipleSelectItemHeight:ue,selectHeight:E,lineWidth:re}=ee;return ee.calc(E).sub(ue).div(2).sub(re).equal()},x=ee=>{const{componentCls:ue,iconCls:E,borderRadiusSM:re,motionDurationSlow:te,paddingXS:se,multipleItemColorDisabled:ae,multipleItemBorderColorDisabled:he,colorIcon:me,colorIconHover:ve,INTERNAL_FIXED_ITEM_MARGIN:pe}=ee;return{[`${ue}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${ue}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:pe,borderRadius:re,cursor:"default",transition:`font-size ${te}, line-height ${te}, height ${te}`,marginInlineEnd:ee.calc(pe).mul(2).equal(),paddingInlineStart:se,paddingInlineEnd:ee.calc(se).div(2).equal(),[`${ue}-disabled&`]:{color:ae,borderColor:he,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,yt.Ro)()),{display:"inline-flex",alignItems:"center",color:me,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${E}`]:{verticalAlign:"-0.2em"},"&:hover":{color:ve}})}}}},z=(ee,ue)=>{const{componentCls:E,INTERNAL_FIXED_ITEM_MARGIN:re}=ee,te=`${E}-selection-overflow`,se=ee.multipleSelectItemHeight,ae=ge(ee),he=ue?`${E}-${ue}`:"",me=Te(ee);return{[`${E}-multiple${he}`]:Object.assign(Object.assign({},x(ee)),{[`${E}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:me.basePadding,paddingBlock:me.containerPadding,borderRadius:ee.borderRadius,[`${E}-disabled&`]:{background:ee.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,le.unit)(re)} 0`,lineHeight:(0,le.unit)(se),visibility:"hidden",content:'"\\a0"'}},[`${E}-selection-item`]:{height:me.itemHeight,lineHeight:(0,le.unit)(me.itemLineHeight)},[`${E}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,le.unit)(se),marginBlock:re}},[`${E}-prefix`]:{marginInlineStart:ee.calc(ee.inputPaddingHorizontalBase).sub(me.basePadding).equal()},[`${te}-item + ${te}-item,
${E}-prefix + ${E}-selection-wrap
`]:{[`${E}-selection-search`]:{marginInlineStart:0},[`${E}-selection-placeholder`]:{insetInlineStart:0}},[`${te}-item-suffix`]:{minHeight:me.itemHeight,marginBlock:re},[`${E}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:ee.calc(ee.inputPaddingHorizontalBase).sub(ae).equal(),"\n &-input,\n &-mirror\n ":{height:se,fontFamily:ee.fontFamily,lineHeight:(0,le.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"}},[`${E}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:ee.calc(ee.inputPaddingHorizontalBase).sub(me.basePadding).equal(),insetInlineEnd:ee.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${ee.motionDurationSlow}`}})}};function ie(ee,ue){const{componentCls:E}=ee,re=ue?`${E}-${ue}`:"",te={[`${E}-multiple${re}`]:{fontSize:ee.fontSize,[`${E}-selector`]:{[`${E}-show-search&`]:{cursor:"text"}},[`
&${E}-show-arrow ${E}-selector,
&${E}-allow-clear ${E}-selector
`]:{paddingInlineEnd:ee.calc(ee.fontSizeIcon).add(ee.controlPaddingHorizontal).equal()}}};return[z(ee,ue),te]}const oe=ee=>{const{componentCls:ue}=ee,E=(0,a.mergeToken)(ee,{selectHeight:ee.controlHeightSM,multipleSelectItemHeight:ee.multipleItemHeightSM,borderRadius:ee.borderRadiusSM,borderRadiusSM:ee.borderRadiusXS}),re=(0,a.mergeToken)(ee,{fontSize:ee.fontSizeLG,selectHeight:ee.controlHeightLG,multipleSelectItemHeight:ee.multipleItemHeightLG,borderRadius:ee.borderRadiusLG,borderRadiusSM:ee.borderRadius});return[ie(ee),ie(E,"sm"),{[`${ue}-multiple${ue}-sm`]:{[`${ue}-selection-placeholder`]:{insetInline:ee.calc(ee.controlPaddingHorizontalSM).sub(ee.lineWidth).equal()},[`${ue}-selection-search`]:{marginInlineStart:2}}},ie(re,"lg")]};Lt.ZP=oe},68525:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});var le=Ce(59301),yt=Ce(40001),a=Ce(19248),Te=Ce(99267),ge=Ce(84105),x=Ce(58617),z=Ce(47472);function ie(oe){let{suffixIcon:ee,clearIcon:ue,menuItemSelectedIcon:E,removeIcon:re,loading:te,multiple:se,hasFeedback:ae,prefixCls:he,showSuffixIcon:me,feedbackIcon:ve,showArrow:pe,componentName:be}=oe;const je=ue!=null?ue:le.createElement(a.Z,null),ke=Ee=>ee===null&&!ae&&!pe?null:le.createElement(le.Fragment,null,me!==!1&&Ee,ae&&ve);let Be=null;if(ee!==void 0)Be=ke(ee);else if(te)Be=ke(le.createElement(x.Z,{spin:!0}));else{const Ee=`${he}-suffix`;Be=Ie=>{let{open:Me,showSearch:Le}=Ie;return ke(Me&&Le?le.createElement(z.Z,{className:Ee}):le.createElement(ge.Z,{className:Ee}))}}let De=null;E!==void 0?De=E:se?De=le.createElement(yt.Z,null):De=null;let Se=null;return re!==void 0?Se=re:Se=le.createElement(Te.Z,null),{clearIcon:je,suffixIcon:Be,itemIcon:De,removeIcon:Se}}},90005:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return le}});function le(yt,a){return a!==void 0?a:yt!==null}},58755:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return Ue}});var le=Ce(59301),yt=Ce(58617),a=Ce(92310),Te=Ce.n(a),ge=Ce(60499),x=Ce(18642),z=Ce(72190),ie=Ce(42244),oe=Ce(18929),ee=Ce(10228),ue=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],E=le.forwardRef(function(He,Je){var st,_e=He.prefixCls,Ke=_e===void 0?"rc-switch":_e,nt=He.className,rt=He.checked,et=He.defaultChecked,Ve=He.disabled,Ye=He.loadingIcon,Ge=He.checkedChildren,it=He.unCheckedChildren,qe=He.onClick,vt=He.onChange,ot=He.onKeyDown,Qe=(0,ie.Z)(He,ue),Fe=(0,oe.Z)(!1,{value:rt,defaultValue:et}),Re=(0,z.Z)(Fe,2),ne=Re[0],fe=Re[1];function Ne(Oe,$e){var Ze=ne;return Ve||(Ze=Oe,fe(Ze),vt==null||vt(Ze,$e)),Ze}function We(Oe){Oe.which===ee.Z.LEFT?Ne(!1,Oe):Oe.which===ee.Z.RIGHT&&Ne(!0,Oe),ot==null||ot(Oe)}function we(Oe){var $e=Ne(!ne,Oe);qe==null||qe($e,Oe)}var ye=Te()(Ke,nt,(st={},(0,x.Z)(st,"".concat(Ke,"-checked"),ne),(0,x.Z)(st,"".concat(Ke,"-disabled"),Ve),st));return le.createElement("button",(0,ge.Z)({},Qe,{type:"button",role:"switch","aria-checked":ne,disabled:Ve,className:ye,ref:Je,onKeyDown:We,onClick:we}),Ye,le.createElement("span",{className:"".concat(Ke,"-inner")},le.createElement("span",{className:"".concat(Ke,"-inner-checked")},Ge),le.createElement("span",{className:"".concat(Ke,"-inner-unchecked")},it)))});E.displayName="Switch";var re=E,te=Ce(12919),se=Ce(48755),ae=Ce(2171),he=Ce(31756),me=Ce(36237),ve=Ce(17835),pe=Ce(63356),be=Ce(16931),je=Ce(51636);const ke=He=>{const{componentCls:Je,trackHeightSM:st,trackPadding:_e,trackMinWidthSM:Ke,innerMinMarginSM:nt,innerMaxMarginSM:rt,handleSizeSM:et,calc:Ve}=He,Ye=`${Je}-inner`,Ge=(0,me.unit)(Ve(et).add(Ve(_e).mul(2)).equal()),it=(0,me.unit)(Ve(rt).mul(2).equal());return{[Je]:{[`&${Je}-small`]:{minWidth:Ke,height:st,lineHeight:(0,me.unit)(st),[`${Je}-inner`]:{paddingInlineStart:rt,paddingInlineEnd:nt,[`${Ye}-checked, ${Ye}-unchecked`]:{minHeight:st},[`${Ye}-checked`]:{marginInlineStart:`calc(-100% + ${Ge} - ${it})`,marginInlineEnd:`calc(100% - ${Ge} + ${it})`},[`${Ye}-unchecked`]:{marginTop:Ve(st).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Je}-handle`]:{width:et,height:et},[`${Je}-loading-icon`]:{top:Ve(Ve(et).sub(He.switchLoadingIconSize)).div(2).equal(),fontSize:He.switchLoadingIconSize},[`&${Je}-checked`]:{[`${Je}-inner`]:{paddingInlineStart:nt,paddingInlineEnd:rt,[`${Ye}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ye}-unchecked`]:{marginInlineStart:`calc(100% - ${Ge} + ${it})`,marginInlineEnd:`calc(-100% + ${Ge} - ${it})`}},[`${Je}-handle`]:{insetInlineStart:`calc(100% - ${(0,me.unit)(Ve(et).add(_e).equal())})`}},[`&:not(${Je}-disabled):active`]:{[`&:not(${Je}-checked) ${Ye}`]:{[`${Ye}-unchecked`]:{marginInlineStart:Ve(He.marginXXS).div(2).equal(),marginInlineEnd:Ve(He.marginXXS).mul(-1).div(2).equal()}},[`&${Je}-checked ${Ye}`]:{[`${Ye}-checked`]:{marginInlineStart:Ve(He.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Ve(He.marginXXS).div(2).equal()}}}}}}},Be=He=>{const{componentCls:Je,handleSize:st,calc:_e}=He;return{[Je]:{[`${Je}-loading-icon${He.iconCls}`]:{position:"relative",top:_e(_e(st).sub(He.fontSize)).div(2).equal(),color:He.switchLoadingIconColor,verticalAlign:"top"},[`&${Je}-checked ${Je}-loading-icon`]:{color:He.switchColor}}}},De=He=>{const{componentCls:Je,trackPadding:st,handleBg:_e,handleShadow:Ke,handleSize:nt,calc:rt}=He,et=`${Je}-handle`;return{[Je]:{[et]:{position:"absolute",top:st,insetInlineStart:st,width:nt,height:nt,transition:`all ${He.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:_e,borderRadius:rt(nt).div(2).equal(),boxShadow:Ke,transition:`all ${He.switchDuration} ease-in-out`,content:'""'}},[`&${Je}-checked ${et}`]:{insetInlineStart:`calc(100% - ${(0,me.unit)(rt(nt).add(st).equal())})`},[`&:not(${Je}-disabled):active`]:{[`${et}::before`]:{insetInlineEnd:He.switchHandleActiveInset,insetInlineStart:0},[`&${Je}-checked ${et}::before`]:{insetInlineEnd:0,insetInlineStart:He.switchHandleActiveInset}}}}},Se=He=>{const{componentCls:Je,trackHeight:st,trackPadding:_e,innerMinMargin:Ke,innerMaxMargin:nt,handleSize:rt,calc:et}=He,Ve=`${Je}-inner`,Ye=(0,me.unit)(et(rt).add(et(_e).mul(2)).equal()),Ge=(0,me.unit)(et(nt).mul(2).equal());return{[Je]:{[Ve]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:nt,paddingInlineEnd:Ke,transition:`padding-inline-start ${He.switchDuration} ease-in-out, padding-inline-end ${He.switchDuration} ease-in-out`,[`${Ve}-checked, ${Ve}-unchecked`]:{display:"block",color:He.colorTextLightSolid,fontSize:He.fontSizeSM,transition:`margin-inline-start ${He.switchDuration} ease-in-out, margin-inline-end ${He.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:st},[`${Ve}-checked`]:{marginInlineStart:`calc(-100% + ${Ye} - ${Ge})`,marginInlineEnd:`calc(100% - ${Ye} + ${Ge})`},[`${Ve}-unchecked`]:{marginTop:et(st).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Je}-checked ${Ve}`]:{paddingInlineStart:Ke,paddingInlineEnd:nt,[`${Ve}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ve}-unchecked`]:{marginInlineStart:`calc(100% - ${Ye} + ${Ge})`,marginInlineEnd:`calc(-100% + ${Ye} - ${Ge})`}},[`&:not(${Je}-disabled):active`]:{[`&:not(${Je}-checked) ${Ve}`]:{[`${Ve}-unchecked`]:{marginInlineStart:et(_e).mul(2).equal(),marginInlineEnd:et(_e).mul(-1).mul(2).equal()}},[`&${Je}-checked ${Ve}`]:{[`${Ve}-checked`]:{marginInlineStart:et(_e).mul(-1).mul(2).equal(),marginInlineEnd:et(_e).mul(2).equal()}}}}}},Ee=He=>{const{componentCls:Je,trackHeight:st,trackMinWidth:_e}=He;return{[Je]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(He)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:_e,height:st,lineHeight:(0,me.unit)(st),verticalAlign:"middle",background:He.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${He.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Je}-disabled)`]:{background:He.colorTextTertiary}}),(0,pe.Qy)(He)),{[`&${Je}-checked`]:{background:He.switchColor,[`&:hover:not(${Je}-disabled)`]:{background:He.colorPrimaryHover}},[`&${Je}-loading, &${Je}-disabled`]:{cursor:"not-allowed",opacity:He.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Je}-rtl`]:{direction:"rtl"}})}},Ie=He=>{const{fontSize:Je,lineHeight:st,controlHeight:_e,colorWhite:Ke}=He,nt=Je*st,rt=_e/2,et=2,Ve=nt-et*2,Ye=rt-et*2;return{trackHeight:nt,trackHeightSM:rt,trackMinWidth:Ve*2+et*4,trackMinWidthSM:Ye*2+et*2,trackPadding:et,handleBg:Ke,handleSize:Ve,handleSizeSM:Ye,handleShadow:`0 2px 4px 0 ${new ve.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Ve/2,innerMaxMargin:Ve+et+et*2,innerMinMarginSM:Ye/2,innerMaxMarginSM:Ye+et+et*2}};var Me=(0,be.I$)("Switch",He=>{const Je=(0,je.mergeToken)(He,{switchDuration:He.motionDurationMid,switchColor:He.colorPrimary,switchDisabledOpacity:He.opacityLoading,switchLoadingIconSize:He.calc(He.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${He.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ee(Je),Se(Je),De(Je),Be(Je),ke(Je)]},Ie),Le=function(He,Je){var st={};for(var _e in He)Object.prototype.hasOwnProperty.call(He,_e)&&Je.indexOf(_e)<0&&(st[_e]=He[_e]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,_e=Object.getOwnPropertySymbols(He);Ke<_e.length;Ke++)Je.indexOf(_e[Ke])<0&&Object.prototype.propertyIsEnumerable.call(He,_e[Ke])&&(st[_e[Ke]]=He[_e[Ke]]);return st};const Pe=le.forwardRef((He,Je)=>{const{prefixCls:st,size:_e,disabled:Ke,loading:nt,className:rt,rootClassName:et,style:Ve,checked:Ye,value:Ge,defaultChecked:it,defaultValue:qe,onChange:vt}=He,ot=Le(He,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Qe,Fe]=(0,oe.Z)(!1,{value:Ye!=null?Ye:Ge,defaultValue:it!=null?it:qe}),{getPrefixCls:Re,direction:ne,switch:fe}=le.useContext(se.E_),Ne=le.useContext(ae.Z),We=(Ke!=null?Ke:Ne)||nt,we=Re("switch",st),ye=le.createElement("div",{className:`${we}-handle`},nt&&le.createElement(yt.Z,{className:`${we}-loading-icon`})),[Oe,$e,Ze]=Me(we),Xe=(0,he.Z)(_e),at=Te()(fe==null?void 0:fe.className,{[`${we}-small`]:Xe==="small",[`${we}-loading`]:nt,[`${we}-rtl`]:ne==="rtl"},rt,et,$e,Ze),lt=Object.assign(Object.assign({},fe==null?void 0:fe.style),Ve),mt=function(){Fe(arguments.length<=0?void 0:arguments[0]),vt==null||vt.apply(void 0,arguments)};return Oe(le.createElement(te.Z,{component:"Switch"},le.createElement(re,Object.assign({},ot,{checked:Qe,onChange:mt,prefixCls:we,className:at,style:lt,disabled:We,ref:Je,loadingIcon:ye}))))});Pe.__ANT_SWITCH=!0;var Ue=Pe},70858:function(on,Lt,Ce){"use strict";Ce.d(Lt,{default:function(){return vu}});var le=Ce(59301),yt={},a="rc-table-internal-hook",Te=Ce(72190),ge=Ce(6089),x=Ce(34280),z=Ce(13697),ie=Ce(4676);function oe(ht){var ft=le.createContext(void 0),Ot=function(Gt){var Jt=Gt.value,an=Gt.children,rn=le.useRef(Jt);rn.current=Jt;var fn=le.useState(function(){return{getValue:function(){return rn.current},listeners:new Set}}),ln=(0,Te.Z)(fn,1),Rn=ln[0];return(0,x.Z)(function(){(0,ie.unstable_batchedUpdates)(function(){Rn.listeners.forEach(function(On){On(Jt)})})},[Jt]),le.createElement(ft.Provider,{value:Rn},an)};return{Context:ft,Provider:Ot,defaultValue:ht}}function ee(ht,ft){var Ot=(0,ge.Z)(typeof ft=="function"?ft:function(On){if(ft===void 0)return On;if(!Array.isArray(ft))return On[ft];var En={};return ft.forEach(function(yn){En[yn]=On[yn]}),En}),Nt=le.useContext(ht==null?void 0:ht.Context),Gt=Nt||{},Jt=Gt.listeners,an=Gt.getValue,rn=le.useRef();rn.current=Ot(Nt?an():ht==null?void 0:ht.defaultValue);var fn=le.useState({}),ln=(0,Te.Z)(fn,2),Rn=ln[1];return(0,x.Z)(function(){if(!Nt)return;function On(En){var yn=Ot(En);(0,z.Z)(rn.current,yn,!0)||Rn({})}return Jt.add(On),function(){Jt.delete(On)}},[Nt]),rn.current}var ue=Ce(60499),E=Ce(8654);function re(){var ht=le.createContext(null);function ft(){return le.useContext(ht)}function Ot(Gt,Jt){var an=(0,E.Yr)(Gt),rn=function(ln,Rn){var On=an?{ref:Rn}:{},En=le.useRef(0),yn=le.useRef(ln),vn=ft();return vn!==null?le.createElement(Gt,(0,ue.Z)({},ln,On)):((!Jt||Jt(yn.current,ln))&&(En.current+=1),yn.current=ln,le.createElement(ht.Provider,{value:En.current},le.createElement(Gt,(0,ue.Z)({},ln,On))))};return an?le.forwardRef(rn):rn}function Nt(Gt,Jt){var an=(0,E.Yr)(Gt),rn=function(ln,Rn){var On=an?{ref:Rn}:{};return ft(),le.createElement(Gt,(0,ue.Z)({},ln,On))};return an?le.memo(le.forwardRef(rn),Jt):le.memo(rn,Jt)}return{makeImmutable:Ot,responseImmutable:Nt,useImmutableMark:ft}}var te=re(),se=te.makeImmutable,ae=te.responseImmutable,he=te.useImmutableMark,me=re(),ve=me.makeImmutable,pe=me.responseImmutable,be=me.useImmutableMark,je=oe(),ke=je;function Be(ht,ft){var Ot=React.useRef(0);Ot.current+=1;var Nt=React.useRef(ht),Gt=[];Object.keys(ht||{}).map(function(an){var rn;(ht==null?void 0:ht[an])!==((rn=Nt.current)===null||rn===void 0?void 0:rn[an])&&Gt.push(an)}),Nt.current=ht;var Jt=React.useRef([]);return Gt.length&&(Jt.current=Gt),React.useDebugValue(Ot.current),React.useDebugValue(Jt.current.join(", ")),ft&&console.log("".concat(ft,":"),Ot.current,Jt.current),Ot.current}var De=null,Se=null,Ee=Ce(43749),Ie=Ce(85899),Me=Ce(18642),Le=Ce(92310),Ae=Ce.n(Le),Pe=Ce(80547),Ue=Ce(97938),He=Ce(48736),Je=le.createContext({renderWithProps:!1}),st=Je,_e="RC_TABLE_KEY";function Ke(ht){return ht==null?[]:Array.isArray(ht)?ht:[ht]}function nt(ht){var ft=[],Ot={};return ht.forEach(function(Nt){for(var Gt=Nt||{},Jt=Gt.key,an=Gt.dataIndex,rn=Jt||Ke(an).join("-")||_e;Ot[rn];)rn="".concat(rn,"_next");Ot[rn]=!0,ft.push(rn)}),ft}function rt(ht){return ht!=null}function et(ht){return typeof ht=="number"&&!Number.isNaN(ht)}function Ve(ht){return ht&&(0,Ee.Z)(ht)==="object"&&!Array.isArray(ht)&&!le.isValidElement(ht)}function Ye(ht,ft,Ot,Nt,Gt,Jt){var an=le.useContext(st),rn=be(),fn=(0,Pe.Z)(function(){if(rt(Nt))return[Nt];var ln=ft==null||ft===""?[]:Array.isArray(ft)?ft:[ft],Rn=(0,Ue.Z)(ht,ln),On=Rn,En=void 0;if(Gt){var yn=Gt(Rn,ht,Ot);Ve(yn)?(On=yn.children,En=yn.props,an.renderWithProps=!0):On=yn}return[On,En]},[rn,ht,Nt,ft,Gt,Ot],function(ln,Rn){if(Jt){var On=(0,Te.Z)(ln,2),En=On[1],yn=(0,Te.Z)(Rn,2),vn=yn[1];return Jt(vn,En)}return an.renderWithProps?!0:!(0,z.Z)(ln,Rn,!0)});return fn}function Ge(ht,ft,Ot,Nt){var Gt=ht+ft-1;return ht<=Nt&&Gt>=Ot}function it(ht,ft){return ee(ke,function(Ot){var Nt=Ge(ht,ft||1,Ot.hoverStartRow,Ot.hoverEndRow);return[Nt,Ot.onHover]})}var qe=Ce(70425),vt=function(ft){var Ot=ft.ellipsis,Nt=ft.rowType,Gt=ft.children,Jt,an=Ot===!0?{showTitle:!0}:Ot;return an&&(an.showTitle||Nt==="header")&&(typeof Gt=="string"||typeof Gt=="number"?Jt=Gt.toString():le.isValidElement(Gt)&&typeof Gt.props.children=="string"&&(Jt=Gt.props.children)),Jt};function ot(ht){var ft,Ot,Nt,Gt,Jt,an,rn,fn,ln=ht.component,Rn=ht.children,On=ht.ellipsis,En=ht.scope,yn=ht.prefixCls,vn=ht.className,or=ht.align,zn=ht.record,sr=ht.render,pr=ht.dataIndex,lr=ht.renderIndex,br=ht.shouldCellUpdate,Ir=ht.index,Rr=ht.rowType,Dr=ht.colSpan,gi=ht.rowSpan,Jr=ht.fixLeft,zr=ht.fixRight,ai=ht.firstFixLeft,Nr=ht.lastFixLeft,Br=ht.firstFixRight,Sr=ht.lastFixRight,mr=ht.appendNode,Mr=ht.additionalProps,Lr=Mr===void 0?{}:Mr,Qr=ht.isSticky,Er="".concat(yn,"-cell"),Oi=ee(ke,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Ii=Oi.supportSticky,xo=Oi.allColumnsFixedLeft,fo=Oi.rowHoverable,io=Ye(zn,pr,lr,Rn,sr,br),ho=(0,Te.Z)(io,2),So=ho[0],Ai=ho[1],Di={},Eo=typeof Jr=="number"&&Ii,Mo=typeof zr=="number"&&Ii;Eo&&(Di.position="sticky",Di.left=Jr),Mo&&(Di.position="sticky",Di.right=zr);var Zr=(ft=(Ot=(Nt=Ai==null?void 0:Ai.colSpan)!==null&&Nt!==void 0?Nt:Lr.colSpan)!==null&&Ot!==void 0?Ot:Dr)!==null&&ft!==void 0?ft:1,pi=(Gt=(Jt=(an=Ai==null?void 0:Ai.rowSpan)!==null&&an!==void 0?an:Lr.rowSpan)!==null&&Jt!==void 0?Jt:gi)!==null&&Gt!==void 0?Gt:1,$r=it(Ir,pi),kr=(0,Te.Z)($r,2),Li=kr[0],Ki=kr[1],uo=(0,qe.zX)(function(eo){var Ji;zn&&Ki(Ir,Ir+pi-1),Lr==null||(Ji=Lr.onMouseEnter)===null||Ji===void 0||Ji.call(Lr,eo)}),to=(0,qe.zX)(function(eo){var Ji;zn&&Ki(-1,-1),Lr==null||(Ji=Lr.onMouseLeave)===null||Ji===void 0||Ji.call(Lr,eo)});if(Zr===0||pi===0)return null;var To=(rn=Lr.title)!==null&&rn!==void 0?rn:vt({rowType:Rr,ellipsis:On,children:So}),Bo=Ae()(Er,vn,(fn={},(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)(fn,"".concat(Er,"-fix-left"),Eo&&Ii),"".concat(Er,"-fix-left-first"),ai&&Ii),"".concat(Er,"-fix-left-last"),Nr&&Ii),"".concat(Er,"-fix-left-all"),Nr&&xo&&Ii),"".concat(Er,"-fix-right"),Mo&&Ii),"".concat(Er,"-fix-right-first"),Br&&Ii),"".concat(Er,"-fix-right-last"),Sr&&Ii),"".concat(Er,"-ellipsis"),On),"".concat(Er,"-with-append"),mr),"".concat(Er,"-fix-sticky"),(Eo||Mo)&&Qr&&Ii),(0,Me.Z)(fn,"".concat(Er,"-row-hover"),!Ai&&Li)),Lr.className,Ai==null?void 0:Ai.className),Yr={};or&&(Yr.textAlign=or);var ni=(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},Ai==null?void 0:Ai.style),Di),Yr),Lr.style),Vi=So;return(0,Ee.Z)(Vi)==="object"&&!Array.isArray(Vi)&&!le.isValidElement(Vi)&&(Vi=null),On&&(Nr||Br)&&(Vi=le.createElement("span",{className:"".concat(Er,"-content")},Vi)),le.createElement(ln,(0,ue.Z)({},Ai,Lr,{className:Bo,style:ni,title:To,scope:En,onMouseEnter:fo?uo:void 0,onMouseLeave:fo?to:void 0,colSpan:Zr!==1?Zr:null,rowSpan:pi!==1?pi:null}),mr,Vi)}var Qe=le.memo(ot);function Fe(ht,ft,Ot,Nt,Gt){var Jt=Ot[ht]||{},an=Ot[ft]||{},rn,fn;Jt.fixed==="left"?rn=Nt.left[Gt==="rtl"?ft:ht]:an.fixed==="right"&&(fn=Nt.right[Gt==="rtl"?ht:ft]);var ln=!1,Rn=!1,On=!1,En=!1,yn=Ot[ft+1],vn=Ot[ht-1],or=yn&&!yn.fixed||vn&&!vn.fixed||Ot.every(function(br){return br.fixed==="left"});if(Gt==="rtl"){if(rn!==void 0){var zn=vn&&vn.fixed==="left";En=!zn&&or}else if(fn!==void 0){var sr=yn&&yn.fixed==="right";On=!sr&&or}}else if(rn!==void 0){var pr=yn&&yn.fixed==="left";ln=!pr&&or}else if(fn!==void 0){var lr=vn&&vn.fixed==="right";Rn=!lr&&or}return{fixLeft:rn,fixRight:fn,lastFixLeft:ln,firstFixRight:Rn,lastFixRight:On,firstFixLeft:En,isSticky:Nt.isSticky}}var Re=le.createContext({}),ne=Re;function fe(ht){var ft=ht.className,Ot=ht.index,Nt=ht.children,Gt=ht.colSpan,Jt=Gt===void 0?1:Gt,an=ht.rowSpan,rn=ht.align,fn=ee(ke,["prefixCls","direction"]),ln=fn.prefixCls,Rn=fn.direction,On=le.useContext(ne),En=On.scrollColumnIndex,yn=On.stickyOffsets,vn=On.flattenColumns,or=Ot+Jt-1,zn=or+1===En?Jt+1:Jt,sr=Fe(Ot,Ot+zn-1,vn,yn,Rn);return le.createElement(Qe,(0,ue.Z)({className:ft,index:Ot,component:"td",prefixCls:ln,record:null,dataIndex:null,align:rn,colSpan:zn,rowSpan:an,render:function(){return Nt}},sr))}var Ne=Ce(42244),We=["children"];function we(ht){var ft=ht.children,Ot=(0,Ne.Z)(ht,We);return le.createElement("tr",Ot,ft)}function ye(ht){var ft=ht.children;return ft}ye.Row=we,ye.Cell=fe;var Oe=ye;function $e(ht){var ft=ht.children,Ot=ht.stickyOffsets,Nt=ht.flattenColumns,Gt=ee(ke,"prefixCls"),Jt=Nt.length-1,an=Nt[Jt],rn=le.useMemo(function(){return{stickyOffsets:Ot,flattenColumns:Nt,scrollColumnIndex:an!=null&&an.scrollbar?Jt:null}},[an,Nt,Jt,Ot]);return le.createElement(ne.Provider,{value:rn},le.createElement("tfoot",{className:"".concat(Gt,"-summary")},ft))}var Ze=pe($e),Xe=Oe,at=Ce(29301),lt=Ce(24514),mt=Ce(75152),ut=Ce(26112);function ct(ht,ft,Ot,Nt,Gt,Jt,an){ht.push({record:ft,indent:Ot,index:an});var rn=Jt(ft),fn=Gt==null?void 0:Gt.has(rn);if(ft&&Array.isArray(ft[Nt])&&fn)for(var ln=0;ln<ft[Nt].length;ln+=1)ct(ht,ft[Nt][ln],Ot+1,Nt,Gt,Jt,ln)}function Pt(ht,ft,Ot,Nt){var Gt=le.useMemo(function(){if(Ot!=null&&Ot.size){for(var Jt=[],an=0;an<(ht==null?void 0:ht.length);an+=1){var rn=ht[an];ct(Jt,rn,0,ft,Ot,Nt,an)}return Jt}return ht==null?void 0:ht.map(function(fn,ln){return{record:fn,indent:0,index:ln}})},[ht,ft,Ot,Nt]);return Gt}function wt(ht,ft,Ot,Nt){var Gt=ee(ke,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Jt=Gt.flattenColumns,an=Gt.expandableType,rn=Gt.expandedKeys,fn=Gt.childrenColumnName,ln=Gt.onTriggerExpand,Rn=Gt.rowExpandable,On=Gt.onRow,En=Gt.expandRowByClick,yn=Gt.rowClassName,vn=an==="nest",or=an==="row"&&(!Rn||Rn(ht)),zn=or||vn,sr=rn&&rn.has(ft),pr=fn&&ht&&ht[fn],lr=(0,qe.zX)(ln),br=On==null?void 0:On(ht,Ot),Ir=br==null?void 0:br.onClick,Rr=function(zr){En&&zn&&ln(ht,zr);for(var ai=arguments.length,Nr=new Array(ai>1?ai-1:0),Br=1;Br<ai;Br++)Nr[Br-1]=arguments[Br];Ir==null||Ir.apply(void 0,[zr].concat(Nr))},Dr;typeof yn=="string"?Dr=yn:typeof yn=="function"&&(Dr=yn(ht,Ot,Nt));var gi=nt(Jt);return(0,Ie.Z)((0,Ie.Z)({},Gt),{},{columnsKey:gi,nestExpandable:vn,expanded:sr,hasNestChildren:pr,record:ht,onTriggerExpand:lr,rowSupportExpand:or,expandable:zn,rowProps:(0,Ie.Z)((0,Ie.Z)({},br),{},{className:Ae()(Dr,br==null?void 0:br.className),onClick:Rr})})}function Bt(ht){var ft=ht.prefixCls,Ot=ht.children,Nt=ht.component,Gt=ht.cellComponent,Jt=ht.className,an=ht.expanded,rn=ht.colSpan,fn=ht.isEmpty,ln=ee(ke,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Rn=ln.scrollbarSize,On=ln.fixHeader,En=ln.fixColumn,yn=ln.componentWidth,vn=ln.horizonScroll,or=Ot;return(fn?vn&&yn:En)&&(or=le.createElement("div",{style:{width:yn-(On&&!fn?Rn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ft,"-expanded-row-fixed")},or)),le.createElement(Nt,{className:Jt,style:{display:an?null:"none"}},le.createElement(Qe,{component:Gt,prefixCls:ft,colSpan:rn},or))}var At=Bt;function pt(ht){var ft=ht.prefixCls,Ot=ht.record,Nt=ht.onExpand,Gt=ht.expanded,Jt=ht.expandable,an="".concat(ft,"-row-expand-icon");if(!Jt)return le.createElement("span",{className:Ae()(an,"".concat(ft,"-row-spaced"))});var rn=function(ln){Nt(Ot,ln),ln.stopPropagation()};return le.createElement("span",{className:Ae()(an,(0,Me.Z)((0,Me.Z)({},"".concat(ft,"-row-expanded"),Gt),"".concat(ft,"-row-collapsed"),!Gt)),onClick:rn})}function Mt(ht,ft,Ot){var Nt=[];function Gt(Jt){(Jt||[]).forEach(function(an,rn){Nt.push(ft(an,rn)),Gt(an[Ot])})}return Gt(ht),Nt}function kt(ht,ft,Ot,Nt){return typeof ht=="string"?ht:typeof ht=="function"?ht(ft,Ot,Nt):""}function xt(ht,ft,Ot,Nt,Gt){var Jt=ht.record,an=ht.prefixCls,rn=ht.columnsKey,fn=ht.fixedInfoList,ln=ht.expandIconColumnIndex,Rn=ht.nestExpandable,On=ht.indentSize,En=ht.expandIcon,yn=ht.expanded,vn=ht.hasNestChildren,or=ht.onTriggerExpand,zn=rn[Ot],sr=fn[Ot],pr;Ot===(ln||0)&&Rn&&(pr=le.createElement(le.Fragment,null,le.createElement("span",{style:{paddingLeft:"".concat(On*Nt,"px")},className:"".concat(an,"-row-indent indent-level-").concat(Nt)}),En({prefixCls:an,expanded:yn,expandable:vn,record:Jt,onExpand:or})));var lr;return ft.onCell&&(lr=ft.onCell(Jt,Gt)),{key:zn,fixedInfo:sr,appendCellNode:pr,additionalCellProps:lr||{}}}function It(ht){var ft=ht.className,Ot=ht.style,Nt=ht.record,Gt=ht.index,Jt=ht.renderIndex,an=ht.rowKey,rn=ht.indent,fn=rn===void 0?0:rn,ln=ht.rowComponent,Rn=ht.cellComponent,On=ht.scopeCellComponent,En=wt(Nt,an,Gt,fn),yn=En.prefixCls,vn=En.flattenColumns,or=En.expandedRowClassName,zn=En.expandedRowRender,sr=En.rowProps,pr=En.expanded,lr=En.rowSupportExpand,br=le.useRef(!1);br.current||(br.current=pr);var Ir=kt(or,Nt,Gt,fn),Rr=le.createElement(ln,(0,ue.Z)({},sr,{"data-row-key":an,className:Ae()(ft,"".concat(yn,"-row"),"".concat(yn,"-row-level-").concat(fn),sr==null?void 0:sr.className,(0,Me.Z)({},Ir,fn>=1)),style:(0,Ie.Z)((0,Ie.Z)({},Ot),sr==null?void 0:sr.style)}),vn.map(function(Jr,zr){var ai=Jr.render,Nr=Jr.dataIndex,Br=Jr.className,Sr=xt(En,Jr,zr,fn,Gt),mr=Sr.key,Mr=Sr.fixedInfo,Lr=Sr.appendCellNode,Qr=Sr.additionalCellProps;return le.createElement(Qe,(0,ue.Z)({className:Br,ellipsis:Jr.ellipsis,align:Jr.align,scope:Jr.rowScope,component:Jr.rowScope?On:Rn,prefixCls:yn,key:mr,record:Nt,index:Gt,renderIndex:Jt,dataIndex:Nr,render:ai,shouldCellUpdate:Jr.shouldCellUpdate},Mr,{appendNode:Lr,additionalProps:Qr}))})),Dr;if(lr&&(br.current||pr)){var gi=zn(Nt,Gt,fn+1,pr);Dr=le.createElement(At,{expanded:pr,className:Ae()("".concat(yn,"-expanded-row"),"".concat(yn,"-expanded-row-level-").concat(fn+1),Ir),prefixCls:yn,component:ln,cellComponent:Rn,colSpan:vn.length,isEmpty:!1},gi)}return le.createElement(le.Fragment,null,Rr,Dr)}var Ut=pe(It);function en(ht){var ft=ht.columnKey,Ot=ht.onColumnResize,Nt=le.useRef();return(0,x.Z)(function(){Nt.current&&Ot(ft,Nt.current.offsetWidth)},[]),le.createElement(at.Z,{data:ft},le.createElement("td",{ref:Nt,style:{padding:0,border:0,height:0}},le.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var St=Ce(29194);function jt(ht){var ft=ht.prefixCls,Ot=ht.columnsKey,Nt=ht.onColumnResize,Gt=le.useRef(null);return le.createElement("tr",{"aria-hidden":"true",className:"".concat(ft,"-measure-row"),style:{height:0,fontSize:0},ref:Gt},le.createElement(at.Z.Collection,{onBatchResize:function(an){(0,St.Z)(Gt.current)&&an.forEach(function(rn){var fn=rn.data,ln=rn.size;Nt(fn,ln.offsetWidth)})}},Ot.map(function(Jt){return le.createElement(en,{key:Jt,columnKey:Jt,onColumnResize:Nt})})))}function Ht(ht){var ft=ht.data,Ot=ht.measureColumnWidth,Nt=ee(ke,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Gt=Nt.prefixCls,Jt=Nt.getComponent,an=Nt.onColumnResize,rn=Nt.flattenColumns,fn=Nt.getRowKey,ln=Nt.expandedKeys,Rn=Nt.childrenColumnName,On=Nt.emptyNode,En=Pt(ft,Rn,ln,fn),yn=le.useRef({renderWithProps:!1}),vn=Jt(["body","wrapper"],"tbody"),or=Jt(["body","row"],"tr"),zn=Jt(["body","cell"],"td"),sr=Jt(["body","cell"],"th"),pr;ft.length?pr=En.map(function(br,Ir){var Rr=br.record,Dr=br.indent,gi=br.index,Jr=fn(Rr,Ir);return le.createElement(Ut,{key:Jr,rowKey:Jr,record:Rr,index:Ir,renderIndex:gi,rowComponent:or,cellComponent:zn,scopeCellComponent:sr,indent:Dr})}):pr=le.createElement(At,{expanded:!0,className:"".concat(Gt,"-placeholder"),prefixCls:Gt,component:or,cellComponent:zn,colSpan:rn.length,isEmpty:!0},On);var lr=nt(rn);return le.createElement(st.Provider,{value:yn.current},le.createElement(vn,{className:"".concat(Gt,"-tbody")},Ot&&le.createElement(jt,{prefixCls:Gt,columnsKey:lr,onColumnResize:an}),pr))}var Qt=pe(Ht),sn=["expandable"],wn="RC_TABLE_INTERNAL_COL_DEFINE";function Bn(ht){var ft=ht.expandable,Ot=(0,Ne.Z)(ht,sn),Nt;return"expandable"in ht?Nt=(0,Ie.Z)((0,Ie.Z)({},Ot),ft):Nt=Ot,Nt.showExpandColumn===!1&&(Nt.expandIconColumnIndex=-1),Nt}var Fn=["columnType"];function gn(ht){for(var ft=ht.colWidths,Ot=ht.columns,Nt=ht.columCount,Gt=ee(ke,["tableLayout"]),Jt=Gt.tableLayout,an=[],rn=Nt||Ot.length,fn=!1,ln=rn-1;ln>=0;ln-=1){var Rn=ft[ln],On=Ot&&Ot[ln],En=void 0,yn=void 0;if(On&&(En=On[wn],Jt==="auto"&&(yn=On.minWidth)),Rn||yn||En||fn){var vn=En||{},or=vn.columnType,zn=(0,Ne.Z)(vn,Fn);an.unshift(le.createElement("col",(0,ue.Z)({key:ln,style:{width:Rn,minWidth:yn}},zn))),fn=!0}}return le.createElement("colgroup",null,an)}var Dn=gn,un=Ce(77654),Tn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Mn(ht,ft){return(0,le.useMemo)(function(){for(var Ot=[],Nt=0;Nt<ft;Nt+=1){var Gt=ht[Nt];if(Gt!==void 0)Ot[Nt]=Gt;else return null}return Ot},[ht.join("_"),ft])}var nn=le.forwardRef(function(ht,ft){var Ot=ht.className,Nt=ht.noData,Gt=ht.columns,Jt=ht.flattenColumns,an=ht.colWidths,rn=ht.columCount,fn=ht.stickyOffsets,ln=ht.direction,Rn=ht.fixHeader,On=ht.stickyTopOffset,En=ht.stickyBottomOffset,yn=ht.stickyClassName,vn=ht.onScroll,or=ht.maxContentScroll,zn=ht.children,sr=(0,Ne.Z)(ht,Tn),pr=ee(ke,["prefixCls","scrollbarSize","isSticky","getComponent"]),lr=pr.prefixCls,br=pr.scrollbarSize,Ir=pr.isSticky,Rr=pr.getComponent,Dr=Rr(["header","table"],"table"),gi=Ir&&!Rn?0:br,Jr=le.useRef(null),zr=le.useCallback(function(Qr){(0,E.mH)(ft,Qr),(0,E.mH)(Jr,Qr)},[]);le.useEffect(function(){var Qr;function Er(Oi){var Ii=Oi,xo=Ii.currentTarget,fo=Ii.deltaX;fo&&(vn({currentTarget:xo,scrollLeft:xo.scrollLeft+fo}),Oi.preventDefault())}return(Qr=Jr.current)===null||Qr===void 0||Qr.addEventListener("wheel",Er,{passive:!1}),function(){var Oi;(Oi=Jr.current)===null||Oi===void 0||Oi.removeEventListener("wheel",Er)}},[]);var ai=le.useMemo(function(){return Jt.every(function(Qr){return Qr.width})},[Jt]),Nr=Jt[Jt.length-1],Br={fixed:Nr?Nr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(lr,"-cell-scrollbar")}}},Sr=(0,le.useMemo)(function(){return gi?[].concat((0,un.Z)(Gt),[Br]):Gt},[gi,Gt]),mr=(0,le.useMemo)(function(){return gi?[].concat((0,un.Z)(Jt),[Br]):Jt},[gi,Jt]),Mr=(0,le.useMemo)(function(){var Qr=fn.right,Er=fn.left;return(0,Ie.Z)((0,Ie.Z)({},fn),{},{left:ln==="rtl"?[].concat((0,un.Z)(Er.map(function(Oi){return Oi+gi})),[0]):Er,right:ln==="rtl"?Qr:[].concat((0,un.Z)(Qr.map(function(Oi){return Oi+gi})),[0]),isSticky:Ir})},[gi,fn,Ir]),Lr=Mn(an,rn);return le.createElement("div",{style:(0,Ie.Z)({overflow:"hidden"},Ir?{top:On,bottom:En}:{}),ref:zr,className:Ae()(Ot,(0,Me.Z)({},yn,!!yn))},le.createElement(Dr,{style:{tableLayout:"fixed",visibility:Nt||Lr?null:"hidden"}},(!Nt||!or||ai)&&le.createElement(Dn,{colWidths:Lr?[].concat((0,un.Z)(Lr),[gi]):[],columCount:rn+1,columns:mr}),zn((0,Ie.Z)((0,Ie.Z)({},sr),{},{stickyOffsets:Mr,columns:Sr,flattenColumns:mr}))))}),tn=le.memo(nn),dn=function(ft){var Ot=ft.cells,Nt=ft.stickyOffsets,Gt=ft.flattenColumns,Jt=ft.rowComponent,an=ft.cellComponent,rn=ft.onHeaderRow,fn=ft.index,ln=ee(ke,["prefixCls","direction"]),Rn=ln.prefixCls,On=ln.direction,En;rn&&(En=rn(Ot.map(function(vn){return vn.column}),fn));var yn=nt(Ot.map(function(vn){return vn.column}));return le.createElement(Jt,En,Ot.map(function(vn,or){var zn=vn.column,sr=Fe(vn.colStart,vn.colEnd,Gt,Nt,On),pr;return zn&&zn.onHeaderCell&&(pr=vn.column.onHeaderCell(zn)),le.createElement(Qe,(0,ue.Z)({},vn,{scope:zn.title?vn.colSpan>1?"colgroup":"col":null,ellipsis:zn.ellipsis,align:zn.align,component:an,prefixCls:Rn,key:yn[or]},sr,{additionalProps:pr,rowType:"header"}))}))},Cn=dn;function Pn(ht){var ft=[];function Ot(an,rn){var fn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ft[fn]=ft[fn]||[];var ln=rn,Rn=an.filter(Boolean).map(function(On){var En={key:On.key,className:On.className||"",children:On.title,column:On,colStart:ln},yn=1,vn=On.children;return vn&&vn.length>0&&(yn=Ot(vn,ln,fn+1).reduce(function(or,zn){return or+zn},0),En.hasSubColumns=!0),"colSpan"in On&&(yn=On.colSpan),"rowSpan"in On&&(En.rowSpan=On.rowSpan),En.colSpan=yn,En.colEnd=En.colStart+yn-1,ft[fn].push(En),ln+=yn,yn});return Rn}Ot(ht,0);for(var Nt=ft.length,Gt=function(rn){ft[rn].forEach(function(fn){!("rowSpan"in fn)&&!fn.hasSubColumns&&(fn.rowSpan=Nt-rn)})},Jt=0;Jt<Nt;Jt+=1)Gt(Jt);return ft}var Hn=function(ft){var Ot=ft.stickyOffsets,Nt=ft.columns,Gt=ft.flattenColumns,Jt=ft.onHeaderRow,an=ee(ke,["prefixCls","getComponent"]),rn=an.prefixCls,fn=an.getComponent,ln=le.useMemo(function(){return Pn(Nt)},[Nt]),Rn=fn(["header","wrapper"],"thead"),On=fn(["header","row"],"tr"),En=fn(["header","cell"],"th");return le.createElement(Rn,{className:"".concat(rn,"-thead")},ln.map(function(yn,vn){var or=le.createElement(Cn,{key:vn,flattenColumns:Gt,cells:yn,stickyOffsets:Ot,rowComponent:On,cellComponent:En,onHeaderRow:Jt,index:vn});return or}))},Gn=pe(Hn),_n=Ce(11592);function Yn(ht){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof ft=="number"?ft:ft.endsWith("%")?ht*parseFloat(ft)/100:null}function Wn(ht,ft,Ot){return le.useMemo(function(){if(ft&&ft>0){var Nt=0,Gt=0;ht.forEach(function(En){var yn=Yn(ft,En.width);yn?Nt+=yn:Gt+=1});var Jt=Math.max(ft,Ot),an=Math.max(Jt-Nt,Gt),rn=Gt,fn=an/Gt,ln=0,Rn=ht.map(function(En){var yn=(0,Ie.Z)({},En),vn=Yn(ft,yn.width);if(vn)yn.width=vn;else{var or=Math.floor(fn);yn.width=rn===1?an:or,an-=or,rn-=1}return ln+=yn.width,yn});if(ln<Jt){var On=Jt/ln;an=Jt,Rn.forEach(function(En,yn){var vn=Math.floor(En.width*On);En.width=yn===Rn.length-1?an:vn,an-=vn})}return[Rn,Math.max(ln,Jt)]}return[ht,ft]},[ht,ft,Ot])}var yr=["children"],cr=["fixed"];function cn(ht){return(0,_n.Z)(ht).filter(function(ft){return le.isValidElement(ft)}).map(function(ft){var Ot=ft.key,Nt=ft.props,Gt=Nt.children,Jt=(0,Ne.Z)(Nt,yr),an=(0,Ie.Z)({key:Ot},Jt);return Gt&&(an.children=cn(Gt)),an})}function An(ht){return ht.filter(function(ft){return ft&&(0,Ee.Z)(ft)==="object"&&!ft.hidden}).map(function(ft){var Ot=ft.children;return Ot&&Ot.length>0?(0,Ie.Z)((0,Ie.Z)({},ft),{},{children:An(Ot)}):ft})}function qn(ht){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ht.filter(function(Ot){return Ot&&(0,Ee.Z)(Ot)==="object"}).reduce(function(Ot,Nt,Gt){var Jt=Nt.fixed,an=Jt===!0?"left":Jt,rn="".concat(ft,"-").concat(Gt),fn=Nt.children;return fn&&fn.length>0?[].concat((0,un.Z)(Ot),(0,un.Z)(qn(fn,rn).map(function(ln){return(0,Ie.Z)({fixed:an},ln)}))):[].concat((0,un.Z)(Ot),[(0,Ie.Z)((0,Ie.Z)({key:rn},Nt),{},{fixed:an})])},[])}function wr(ht){return ht.map(function(ft){var Ot=ft.fixed,Nt=(0,Ne.Z)(ft,cr),Gt=Ot;return Ot==="left"?Gt="right":Ot==="right"&&(Gt="left"),(0,Ie.Z)({fixed:Gt},Nt)})}function Rt(ht,ft){var Ot=ht.prefixCls,Nt=ht.columns,Gt=ht.children,Jt=ht.expandable,an=ht.expandedKeys,rn=ht.columnTitle,fn=ht.getRowKey,ln=ht.onTriggerExpand,Rn=ht.expandIcon,On=ht.rowExpandable,En=ht.expandIconColumnIndex,yn=ht.direction,vn=ht.expandRowByClick,or=ht.columnWidth,zn=ht.fixed,sr=ht.scrollWidth,pr=ht.clientWidth,lr=le.useMemo(function(){var Nr=Nt||cn(Gt)||[];return An(Nr.slice())},[Nt,Gt]),br=le.useMemo(function(){if(Jt){var Nr=lr.slice();if(!Nr.includes(yt)){var Br=En||0;Br>=0&&(Br||zn==="left"||!zn)&&Nr.splice(Br,0,yt),zn==="right"&&Nr.splice(lr.length,0,yt)}var Sr=Nr.indexOf(yt);Nr=Nr.filter(function(Qr,Er){return Qr!==yt||Er===Sr});var mr=lr[Sr],Mr;zn?Mr=zn:Mr=mr?mr.fixed:null;var Lr=(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)({},wn,{className:"".concat(Ot,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",rn),"fixed",Mr),"className","".concat(Ot,"-row-expand-icon-cell")),"width",or),"render",function(Er,Oi,Ii){var xo=fn(Oi,Ii),fo=an.has(xo),io=On?On(Oi):!0,ho=Rn({prefixCls:Ot,expanded:fo,expandable:io,record:Oi,onExpand:ln});return vn?le.createElement("span",{onClick:function(Ai){return Ai.stopPropagation()}},ho):ho});return Nr.map(function(Qr){return Qr===yt?Lr:Qr})}return lr.filter(function(Qr){return Qr!==yt})},[Jt,lr,fn,an,Rn,yn]),Ir=le.useMemo(function(){var Nr=br;return ft&&(Nr=ft(Nr)),Nr.length||(Nr=[{render:function(){return null}}]),Nr},[ft,br,yn]),Rr=le.useMemo(function(){return yn==="rtl"?wr(qn(Ir)):qn(Ir)},[Ir,yn,sr]),Dr=le.useMemo(function(){for(var Nr=-1,Br=Rr.length-1;Br>=0;Br-=1){var Sr=Rr[Br].fixed;if(Sr==="left"||Sr===!0){Nr=Br;break}}if(Nr>=0)for(var mr=0;mr<=Nr;mr+=1){var Mr=Rr[mr].fixed;if(Mr!=="left"&&Mr!==!0)return!0}var Lr=Rr.findIndex(function(Oi){var Ii=Oi.fixed;return Ii==="right"});if(Lr>=0)for(var Qr=Lr;Qr<Rr.length;Qr+=1){var Er=Rr[Qr].fixed;if(Er!=="right")return!0}return!1},[Rr]),gi=Wn(Rr,sr,pr),Jr=(0,Te.Z)(gi,2),zr=Jr[0],ai=Jr[1];return[Ir,zr,ai,Dr]}var Xt=Rt;function Et(ht,ft,Ot){var Nt=Bn(ht),Gt=Nt.expandIcon,Jt=Nt.expandedRowKeys,an=Nt.defaultExpandedRowKeys,rn=Nt.defaultExpandAllRows,fn=Nt.expandedRowRender,ln=Nt.onExpand,Rn=Nt.onExpandedRowsChange,On=Nt.childrenColumnName,En=Gt||pt,yn=On||"children",vn=le.useMemo(function(){return fn?"row":ht.expandable&&ht.internalHooks===a&&ht.expandable.__PARENT_RENDER_ICON__||ft.some(function(Ir){return Ir&&(0,Ee.Z)(Ir)==="object"&&Ir[yn]})?"nest":!1},[!!fn,ft]),or=le.useState(function(){return an||(rn?Mt(ft,Ot,yn):[])}),zn=(0,Te.Z)(or,2),sr=zn[0],pr=zn[1],lr=le.useMemo(function(){return new Set(Jt||sr||[])},[Jt,sr]),br=le.useCallback(function(Ir){var Rr=Ot(Ir,ft.indexOf(Ir)),Dr,gi=lr.has(Rr);gi?(lr.delete(Rr),Dr=(0,un.Z)(lr)):Dr=[].concat((0,un.Z)(lr),[Rr]),pr(Dr),ln&&ln(!gi,Ir),Rn&&Rn(Dr)},[Ot,lr,ft,ln,Rn]);return[Nt,vn,lr,En,yn,br]}function Dt(ht,ft,Ot){var Nt=ht.map(function(Gt,Jt){return Fe(Jt,Jt,ht,ft,Ot)});return(0,Pe.Z)(function(){return Nt},[Nt],function(Gt,Jt){return!(0,z.Z)(Gt,Jt)})}function Tt(ht){var ft=(0,le.useRef)(ht),Ot=(0,le.useState)({}),Nt=(0,Te.Z)(Ot,2),Gt=Nt[1],Jt=(0,le.useRef)(null),an=(0,le.useRef)([]);function rn(fn){an.current.push(fn);var ln=Promise.resolve();Jt.current=ln,ln.then(function(){if(Jt.current===ln){var Rn=an.current,On=ft.current;an.current=[],Rn.forEach(function(En){ft.current=En(ft.current)}),Jt.current=null,On!==ft.current&&Gt({})}})}return(0,le.useEffect)(function(){return function(){Jt.current=null}},[]),[ft.current,rn]}function _t(ht){var ft=(0,le.useRef)(ht||null),Ot=(0,le.useRef)();function Nt(){window.clearTimeout(Ot.current)}function Gt(an){ft.current=an,Nt(),Ot.current=window.setTimeout(function(){ft.current=null,Ot.current=void 0},100)}function Jt(){return ft.current}return(0,le.useEffect)(function(){return Nt},[]),[Gt,Jt]}function bt(){var ht=le.useState(-1),ft=(0,Te.Z)(ht,2),Ot=ft[0],Nt=ft[1],Gt=le.useState(-1),Jt=(0,Te.Z)(Gt,2),an=Jt[0],rn=Jt[1],fn=le.useCallback(function(ln,Rn){Nt(ln),rn(Rn)},[]);return[Ot,an,fn]}var Zt=Ce(47273),Kt=(0,Zt.Z)()?window:null;function Yt(ht,ft){var Ot=(0,Ee.Z)(ht)==="object"?ht:{},Nt=Ot.offsetHeader,Gt=Nt===void 0?0:Nt,Jt=Ot.offsetSummary,an=Jt===void 0?0:Jt,rn=Ot.offsetScroll,fn=rn===void 0?0:rn,ln=Ot.getContainer,Rn=ln===void 0?function(){return Kt}:ln,On=Rn()||Kt,En=!!ht;return le.useMemo(function(){return{isSticky:En,stickyClassName:En?"".concat(ft,"-sticky-holder"):"",offsetHeader:Gt,offsetSummary:an,offsetScroll:fn,container:On}},[En,fn,Gt,an,ft,On])}function Ft(ht,ft,Ot){var Nt=(0,le.useMemo)(function(){var Gt=ft.length,Jt=function(ln,Rn,On){for(var En=[],yn=0,vn=ln;vn!==Rn;vn+=On)En.push(yn),ft[vn].fixed&&(yn+=ht[vn]||0);return En},an=Jt(0,Gt,1),rn=Jt(Gt-1,-1,-1).reverse();return Ot==="rtl"?{left:rn,right:an}:{left:an,right:rn}},[ht,ft,Ot]);return Nt}var $t=Ft;function zt(ht){var ft=ht.className,Ot=ht.children;return le.createElement("div",{className:ft},Ot)}var Wt=zt,hn=Ce(8224),mn=Ce(16089),In=Ce(76846);function er(ht){var ft=(0,In.bn)(ht),Ot=ft.getBoundingClientRect(),Nt=document.documentElement;return{left:Ot.left+(window.pageXOffset||Nt.scrollLeft)-(Nt.clientLeft||document.body.clientLeft||0),top:Ot.top+(window.pageYOffset||Nt.scrollTop)-(Nt.clientTop||document.body.clientTop||0)}}var ar=function(ft,Ot){var Nt,Gt,Jt=ft.scrollBodyRef,an=ft.onScroll,rn=ft.offsetScroll,fn=ft.container,ln=ft.direction,Rn=ee(ke,"prefixCls"),On=((Nt=Jt.current)===null||Nt===void 0?void 0:Nt.scrollWidth)||0,En=((Gt=Jt.current)===null||Gt===void 0?void 0:Gt.clientWidth)||0,yn=On&&En*(En/On),vn=le.useRef(),or=Tt({scrollLeft:0,isHiddenScrollBar:!0}),zn=(0,Te.Z)(or,2),sr=zn[0],pr=zn[1],lr=le.useRef({delta:0,x:0}),br=le.useState(!1),Ir=(0,Te.Z)(br,2),Rr=Ir[0],Dr=Ir[1],gi=le.useRef(null);le.useEffect(function(){return function(){mn.Z.cancel(gi.current)}},[]);var Jr=function(){Dr(!1)},zr=function(mr){mr.persist(),lr.current.delta=mr.pageX-sr.scrollLeft,lr.current.x=0,Dr(!0),mr.preventDefault()},ai=function(mr){var Mr,Lr=mr||((Mr=window)===null||Mr===void 0?void 0:Mr.event),Qr=Lr.buttons;if(!Rr||Qr===0){Rr&&Dr(!1);return}var Er=lr.current.x+mr.pageX-lr.current.x-lr.current.delta,Oi=ln==="rtl";Er=Math.max(Oi?yn-En:0,Math.min(Oi?0:En-yn,Er));var Ii=!Oi||Math.abs(Er)+Math.abs(yn)<En;Ii&&(an({scrollLeft:Er/En*(On+2)}),lr.current.x=mr.pageX)},Nr=function(){mn.Z.cancel(gi.current),gi.current=(0,mn.Z)(function(){if(Jt.current){var mr=er(Jt.current).top,Mr=mr+Jt.current.offsetHeight,Lr=fn===window?document.documentElement.scrollTop+window.innerHeight:er(fn).top+fn.clientHeight;Mr-(0,mt.Z)()<=Lr||mr>=Lr-rn?pr(function(Qr){return(0,Ie.Z)((0,Ie.Z)({},Qr),{},{isHiddenScrollBar:!0})}):pr(function(Qr){return(0,Ie.Z)((0,Ie.Z)({},Qr),{},{isHiddenScrollBar:!1})})}})},Br=function(mr){pr(function(Mr){return(0,Ie.Z)((0,Ie.Z)({},Mr),{},{scrollLeft:mr/On*En||0})})};return le.useImperativeHandle(Ot,function(){return{setScrollLeft:Br,checkScrollBarVisible:Nr}}),le.useEffect(function(){var Sr=(0,hn.Z)(document.body,"mouseup",Jr,!1),mr=(0,hn.Z)(document.body,"mousemove",ai,!1);return Nr(),function(){Sr.remove(),mr.remove()}},[yn,Rr]),le.useEffect(function(){if(Jt.current){for(var Sr=[],mr=(0,In.bn)(Jt.current);mr;)Sr.push(mr),mr=mr.parentElement;return Sr.forEach(function(Mr){return Mr.addEventListener("scroll",Nr,!1)}),window.addEventListener("resize",Nr,!1),window.addEventListener("scroll",Nr,!1),fn.addEventListener("scroll",Nr,!1),function(){Sr.forEach(function(Mr){return Mr.removeEventListener("scroll",Nr)}),window.removeEventListener("resize",Nr),window.removeEventListener("scroll",Nr),fn.removeEventListener("scroll",Nr)}}},[fn]),le.useEffect(function(){sr.isHiddenScrollBar||pr(function(Sr){var mr=Jt.current;return mr?(0,Ie.Z)((0,Ie.Z)({},Sr),{},{scrollLeft:mr.scrollLeft/mr.scrollWidth*mr.clientWidth}):Sr})},[sr.isHiddenScrollBar]),On<=En||!yn||sr.isHiddenScrollBar?null:le.createElement("div",{style:{height:(0,mt.Z)(),width:En,bottom:rn},className:"".concat(Rn,"-sticky-scroll")},le.createElement("div",{onMouseDown:zr,ref:vn,className:Ae()("".concat(Rn,"-sticky-scroll-bar"),(0,Me.Z)({},"".concat(Rn,"-sticky-scroll-bar-active"),Rr)),style:{width:"".concat(yn,"px"),transform:"translate3d(".concat(sr.scrollLeft,"px, 0, 0)")}}))},fr=le.forwardRef(ar);function Jn(ht){return null}var Kn=Jn;function $n(ht){return null}var dr=$n,Tr="rc-table",Cr=[],Or={};function Vn(){return"No Data"}function xr(ht,ft){var Ot=(0,Ie.Z)({rowKey:"key",prefixCls:Tr,emptyText:Vn},ht),Nt=Ot.prefixCls,Gt=Ot.className,Jt=Ot.rowClassName,an=Ot.style,rn=Ot.data,fn=Ot.rowKey,ln=Ot.scroll,Rn=Ot.tableLayout,On=Ot.direction,En=Ot.title,yn=Ot.footer,vn=Ot.summary,or=Ot.caption,zn=Ot.id,sr=Ot.showHeader,pr=Ot.components,lr=Ot.emptyText,br=Ot.onRow,Ir=Ot.onHeaderRow,Rr=Ot.onScroll,Dr=Ot.internalHooks,gi=Ot.transformColumns,Jr=Ot.internalRefs,zr=Ot.tailor,ai=Ot.getContainerWidth,Nr=Ot.sticky,Br=Ot.rowHoverable,Sr=Br===void 0?!0:Br,mr=rn||Cr,Mr=!!mr.length,Lr=Dr===a,Qr=le.useCallback(function(Wi,Gi){return(0,Ue.Z)(pr,Wi)||Gi},[pr]),Er=le.useMemo(function(){return typeof fn=="function"?fn:function(Wi){var Gi=Wi&&Wi[fn];return Gi}},[fn]),Oi=Qr(["body"]),Ii=bt(),xo=(0,Te.Z)(Ii,3),fo=xo[0],io=xo[1],ho=xo[2],So=Et(Ot,mr,Er),Ai=(0,Te.Z)(So,6),Di=Ai[0],Eo=Ai[1],Mo=Ai[2],Zr=Ai[3],pi=Ai[4],$r=Ai[5],kr=ln==null?void 0:ln.x,Li=le.useState(0),Ki=(0,Te.Z)(Li,2),uo=Ki[0],to=Ki[1],To=Xt((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},Ot),Di),{},{expandable:!!Di.expandedRowRender,columnTitle:Di.columnTitle,expandedKeys:Mo,getRowKey:Er,onTriggerExpand:$r,expandIcon:Zr,expandIconColumnIndex:Di.expandIconColumnIndex,direction:On,scrollWidth:Lr&&zr&&typeof kr=="number"?kr:null,clientWidth:uo}),Lr?gi:null),Bo=(0,Te.Z)(To,4),Yr=Bo[0],ni=Bo[1],Vi=Bo[2],eo=Bo[3],Ji=Vi!=null?Vi:kr,$o=le.useMemo(function(){return{columns:Yr,flattenColumns:ni}},[Yr,ni]),Oo=le.useRef(),va=le.useRef(),po=le.useRef(),$i=le.useRef();le.useImperativeHandle(ft,function(){return{nativeElement:Oo.current,scrollTo:function(Gi){var ta;if(po.current instanceof HTMLElement){var Ta=Gi.index,na=Gi.top,js=Gi.key;if(et(na)){var ls;(ls=po.current)===null||ls===void 0||ls.scrollTo({top:na})}else{var Qa,Ds=js!=null?js:Er(mr[Ta]);(Qa=po.current.querySelector('[data-row-key="'.concat(Ds,'"]')))===null||Qa===void 0||Qa.scrollIntoView()}}else(ta=po.current)!==null&&ta!==void 0&&ta.scrollTo&&po.current.scrollTo(Gi)}}});var no=le.useRef(),oo=le.useState(!1),Lo=(0,Te.Z)(oo,2),wo=Lo[0],zi=Lo[1],mo=le.useState(!1),Xi=(0,Te.Z)(mo,2),Qo=Xi[0],Ro=Xi[1],ca=le.useState(new Map),ga=(0,Te.Z)(ca,2),Ga=ga[0],ao=ga[1],Zs=nt(ni),da=Zs.map(function(Wi){return Ga.get(Wi)}),Ma=le.useMemo(function(){return da},[da.join("_")]),Sa=$t(Ma,ni,On),ya=ln&&rt(ln.y),so=ln&&rt(Ji)||!!Di.fixed,Ea=so&&ni.some(function(Wi){var Gi=Wi.fixed;return Gi}),as=le.useRef(),Va=Yt(Nr,Nt),Xa=Va.isSticky,ol=Va.offsetHeader,al=Va.offsetSummary,sl=Va.offsetScroll,ll=Va.stickyClassName,Ol=Va.container,bi=le.useMemo(function(){return vn==null?void 0:vn(mr)},[vn,mr]),Bi=(ya||Xa)&&le.isValidElement(bi)&&bi.type===Oe&&bi.props.fixed,yo,Io,Go;ya&&(Io={overflowY:Mr?"scroll":"auto",maxHeight:ln.y}),so&&(yo={overflowX:"auto"},ya||(Io={overflowY:"hidden"}),Go={width:Ji===!0?"auto":Ji,minWidth:"100%"});var zo=le.useCallback(function(Wi,Gi){ao(function(ta){if(ta.get(Wi)!==Gi){var Ta=new Map(ta);return Ta.set(Wi,Gi),Ta}return ta})},[]),Fa=_t(null),ea=(0,Te.Z)(Fa,2),Ps=ea[0],Il=ea[1];function Hs(Wi,Gi){Gi&&(typeof Gi=="function"?Gi(Wi):Gi.scrollLeft!==Wi&&(Gi.scrollLeft=Wi,Gi.scrollLeft!==Wi&&setTimeout(function(){Gi.scrollLeft=Wi},0)))}var vs=(0,ge.Z)(function(Wi){var Gi=Wi.currentTarget,ta=Wi.scrollLeft,Ta=On==="rtl",na=typeof ta=="number"?ta:Gi.scrollLeft,js=Gi||Or;if(!Il()||Il()===js){var ls;Ps(js),Hs(na,va.current),Hs(na,po.current),Hs(na,no.current),Hs(na,(ls=as.current)===null||ls===void 0?void 0:ls.setScrollLeft)}var Qa=Gi||va.current;if(Qa){var Ds=Lr&&zr&&typeof Ji=="number"?Ji:Qa.scrollWidth,_l=Qa.clientWidth;if(Ds===_l){zi(!1),Ro(!1);return}Ta?(zi(-na<Ds-_l),Ro(-na>0)):(zi(na>0),Ro(na<Ds-_l))}}),ul=(0,ge.Z)(function(Wi){vs(Wi),Rr==null||Rr(Wi)}),gs=function(){if(so&&po.current){var Gi;vs({currentTarget:(0,In.bn)(po.current),scrollLeft:(Gi=po.current)===null||Gi===void 0?void 0:Gi.scrollLeft})}else zi(!1),Ro(!1)},Pl=function(Gi){var ta,Ta=Gi.width;(ta=as.current)===null||ta===void 0||ta.checkScrollBarVisible();var na=Oo.current?Oo.current.offsetWidth:Ta;Lr&&ai&&Oo.current&&(na=ai(Oo.current,na)||na),na!==uo&&(gs(),to(na))},cl=le.useRef(!1);le.useEffect(function(){cl.current&&gs()},[so,rn,Yr.length]),le.useEffect(function(){cl.current=!0},[]);var Al=le.useState(0),Ql=(0,Te.Z)(Al,2),ss=Ql[0],jl=Ql[1],gu=le.useState(!0),Dl=(0,Te.Z)(gu,2),Us=Dl[0],yu=Dl[1];(0,x.Z)(function(){(!zr||!Lr)&&(po.current instanceof Element?jl((0,mt.o)(po.current).width):jl((0,mt.o)($i.current).width)),yu((0,lt.G)("position","sticky"))},[]),le.useEffect(function(){Lr&&Jr&&(Jr.body.current=po.current)});var bu=le.useCallback(function(Wi){return le.createElement(le.Fragment,null,le.createElement(Gn,Wi),Bi==="top"&&le.createElement(Ze,Wi,bi))},[Bi,bi]),Ks=le.useCallback(function(Wi){return le.createElement(Ze,Wi,bi)},[bi]),kl=Qr(["table"],"table"),Gs=le.useMemo(function(){return Rn||(Ea?Ji==="max-content"?"auto":"fixed":ya||Xa||ni.some(function(Wi){var Gi=Wi.ellipsis;return Gi})?"fixed":"auto")},[ya,Ea,ni,Rn,Xa]),Ml,Vs={colWidths:Ma,columCount:ni.length,stickyOffsets:Sa,onHeaderRow:Ir,fixHeader:ya,scroll:ln},Rl=le.useMemo(function(){return Mr?null:typeof lr=="function"?lr():lr},[Mr,lr]),ql=le.createElement(Qt,{data:mr,measureColumnWidth:ya||so||Xa}),Nl=le.createElement(Dn,{colWidths:ni.map(function(Wi){var Gi=Wi.width;return Gi}),columns:ni}),Bl=or!=null?le.createElement("caption",{className:"".concat(Nt,"-caption")},or):void 0,xu=(0,ut.Z)(Ot,{data:!0}),dl=(0,ut.Z)(Ot,{aria:!0});if(ya||Xa){var ys;typeof Oi=="function"?(ys=Oi(mr,{scrollbarSize:ss,ref:po,onScroll:vs}),Vs.colWidths=ni.map(function(Wi,Gi){var ta=Wi.width,Ta=Gi===ni.length-1?ta-ss:ta;return typeof Ta=="number"&&!Number.isNaN(Ta)?Ta:0})):ys=le.createElement("div",{style:(0,Ie.Z)((0,Ie.Z)({},yo),Io),onScroll:ul,ref:po,className:Ae()("".concat(Nt,"-body"))},le.createElement(kl,(0,ue.Z)({style:(0,Ie.Z)((0,Ie.Z)({},Go),{},{tableLayout:Gs})},dl),Bl,Nl,ql,!Bi&&bi&&le.createElement(Ze,{stickyOffsets:Sa,flattenColumns:ni},bi)));var As=(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({noData:!mr.length,maxContentScroll:so&&Ji==="max-content"},Vs),$o),{},{direction:On,stickyClassName:ll,onScroll:vs});Ml=le.createElement(le.Fragment,null,sr!==!1&&le.createElement(tn,(0,ue.Z)({},As,{stickyTopOffset:ol,className:"".concat(Nt,"-header"),ref:va}),bu),ys,Bi&&Bi!=="top"&&le.createElement(tn,(0,ue.Z)({},As,{stickyBottomOffset:al,className:"".concat(Nt,"-summary"),ref:no}),Ks),Xa&&po.current&&po.current instanceof Element&&le.createElement(fr,{ref:as,offsetScroll:sl,scrollBodyRef:po,onScroll:vs,container:Ol,direction:On}))}else Ml=le.createElement("div",{style:(0,Ie.Z)((0,Ie.Z)({},yo),Io),className:Ae()("".concat(Nt,"-content")),onScroll:vs,ref:po},le.createElement(kl,(0,ue.Z)({style:(0,Ie.Z)((0,Ie.Z)({},Go),{},{tableLayout:Gs})},dl),Bl,Nl,sr!==!1&&le.createElement(Gn,(0,ue.Z)({},Vs,$o)),ql,bi&&le.createElement(Ze,{stickyOffsets:Sa,flattenColumns:ni},bi)));var Ll=le.createElement("div",(0,ue.Z)({className:Ae()(Nt,Gt,(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)({},"".concat(Nt,"-rtl"),On==="rtl"),"".concat(Nt,"-ping-left"),wo),"".concat(Nt,"-ping-right"),Qo),"".concat(Nt,"-layout-fixed"),Rn==="fixed"),"".concat(Nt,"-fixed-header"),ya),"".concat(Nt,"-fixed-column"),Ea),"".concat(Nt,"-fixed-column-gapped"),Ea&&eo),"".concat(Nt,"-scroll-horizontal"),so),"".concat(Nt,"-has-fix-left"),ni[0]&&ni[0].fixed),"".concat(Nt,"-has-fix-right"),ni[ni.length-1]&&ni[ni.length-1].fixed==="right")),style:an,id:zn,ref:Oo},xu),En&&le.createElement(Wt,{className:"".concat(Nt,"-title")},En(mr)),le.createElement("div",{ref:$i,className:"".concat(Nt,"-container")},Ml),yn&&le.createElement(Wt,{className:"".concat(Nt,"-footer")},yn(mr)));so&&(Ll=le.createElement(at.Z,{onResize:Pl},Ll));var Fl=Dt(ni,Sa,On),wu=le.useMemo(function(){return{scrollX:Ji,prefixCls:Nt,getComponent:Qr,scrollbarSize:ss,direction:On,fixedInfoList:Fl,isSticky:Xa,supportSticky:Us,componentWidth:uo,fixHeader:ya,fixColumn:Ea,horizonScroll:so,tableLayout:Gs,rowClassName:Jt,expandedRowClassName:Di.expandedRowClassName,expandIcon:Zr,expandableType:Eo,expandRowByClick:Di.expandRowByClick,expandedRowRender:Di.expandedRowRender,onTriggerExpand:$r,expandIconColumnIndex:Di.expandIconColumnIndex,indentSize:Di.indentSize,allColumnsFixedLeft:ni.every(function(Wi){return Wi.fixed==="left"}),emptyNode:Rl,columns:Yr,flattenColumns:ni,onColumnResize:zo,hoverStartRow:fo,hoverEndRow:io,onHover:ho,rowExpandable:Di.rowExpandable,onRow:br,getRowKey:Er,expandedKeys:Mo,childrenColumnName:pi,rowHoverable:Sr}},[Ji,Nt,Qr,ss,On,Fl,Xa,Us,uo,ya,Ea,so,Gs,Jt,Di.expandedRowClassName,Zr,Eo,Di.expandRowByClick,Di.expandedRowRender,$r,Di.expandIconColumnIndex,Di.indentSize,Rl,Yr,ni,zo,fo,io,ho,Di.rowExpandable,br,Er,Mo,pi,Sr]);return le.createElement(ke.Provider,{value:wu},Ll)}var hr=le.forwardRef(xr);function Hr(ht){return ve(hr,ht)}var Xr=Hr();Xr.EXPAND_COLUMN=yt,Xr.INTERNAL_HOOKS=a,Xr.Column=Kn,Xr.ColumnGroup=dr,Xr.Summary=Xe;var Ur=Xr,Kr=Ce(48911),ri=oe(null),Fr=oe(null);function qr(ht,ft,Ot){var Nt=ft||1;return Ot[ht+Nt]-(Ot[ht]||0)}function Pr(ht){var ft=ht.rowInfo,Ot=ht.column,Nt=ht.colIndex,Gt=ht.indent,Jt=ht.index,an=ht.component,rn=ht.renderIndex,fn=ht.record,ln=ht.style,Rn=ht.className,On=ht.inverse,En=ht.getHeight,yn=Ot.render,vn=Ot.dataIndex,or=Ot.className,zn=Ot.width,sr=ee(Fr,["columnsOffset"]),pr=sr.columnsOffset,lr=xt(ft,Ot,Nt,Gt,Jt),br=lr.key,Ir=lr.fixedInfo,Rr=lr.appendCellNode,Dr=lr.additionalCellProps,gi=Dr.style,Jr=Dr.colSpan,zr=Jr===void 0?1:Jr,ai=Dr.rowSpan,Nr=ai===void 0?1:ai,Br=Nt-1,Sr=qr(Br,zr,pr),mr=zr>1?zn-Sr:0,Mr=(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},gi),ln),{},{flex:"0 0 ".concat(Sr,"px"),width:"".concat(Sr,"px"),marginRight:mr,pointerEvents:"auto"}),Lr=le.useMemo(function(){return On?Nr<=1:zr===0||Nr===0||Nr>1},[Nr,zr,On]);Lr?Mr.visibility="hidden":On&&(Mr.height=En==null?void 0:En(Nr));var Qr=Lr?function(){return null}:yn,Er={};return(Nr===0||zr===0)&&(Er.rowSpan=1,Er.colSpan=1),le.createElement(Qe,(0,ue.Z)({className:Ae()(or,Rn),ellipsis:Ot.ellipsis,align:Ot.align,scope:Ot.rowScope,component:an,prefixCls:ft.prefixCls,key:br,record:fn,index:Jt,renderIndex:rn,dataIndex:vn,render:Qr,shouldCellUpdate:Ot.shouldCellUpdate},Ir,{appendNode:Rr,additionalProps:(0,Ie.Z)((0,Ie.Z)({},Dr),{},{style:Mr},Er)}))}var ei=Pr,ui=["data","index","className","rowKey","style","extra","getHeight"],ki=le.forwardRef(function(ht,ft){var Ot=ht.data,Nt=ht.index,Gt=ht.className,Jt=ht.rowKey,an=ht.style,rn=ht.extra,fn=ht.getHeight,ln=(0,Ne.Z)(ht,ui),Rn=Ot.record,On=Ot.indent,En=Ot.index,yn=ee(ke,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),vn=yn.scrollX,or=yn.flattenColumns,zn=yn.prefixCls,sr=yn.fixColumn,pr=yn.componentWidth,lr=ee(ri,["getComponent"]),br=lr.getComponent,Ir=wt(Rn,Jt,Nt,On),Rr=br(["body","row"],"div"),Dr=br(["body","cell"],"div"),gi=Ir.rowSupportExpand,Jr=Ir.expanded,zr=Ir.rowProps,ai=Ir.expandedRowRender,Nr=Ir.expandedRowClassName,Br;if(gi&&Jr){var Sr=ai(Rn,Nt,On+1,Jr),mr=kt(Nr,Rn,Nt,On),Mr={};sr&&(Mr={style:(0,Me.Z)({},"--virtual-width","".concat(pr,"px"))});var Lr="".concat(zn,"-expanded-row-cell");Br=le.createElement(Rr,{className:Ae()("".concat(zn,"-expanded-row"),"".concat(zn,"-expanded-row-level-").concat(On+1),mr)},le.createElement(Qe,{component:Dr,prefixCls:zn,className:Ae()(Lr,(0,Me.Z)({},"".concat(Lr,"-fixed"),sr)),additionalProps:Mr},Sr))}var Qr=(0,Ie.Z)((0,Ie.Z)({},an),{},{width:vn});rn&&(Qr.position="absolute",Qr.pointerEvents="none");var Er=le.createElement(Rr,(0,ue.Z)({},zr,ln,{"data-row-key":Jt,ref:gi?null:ft,className:Ae()(Gt,"".concat(zn,"-row"),zr==null?void 0:zr.className,(0,Me.Z)({},"".concat(zn,"-row-extra"),rn)),style:(0,Ie.Z)((0,Ie.Z)({},Qr),zr==null?void 0:zr.style)}),or.map(function(Oi,Ii){return le.createElement(ei,{key:Ii,component:Dr,rowInfo:Ir,column:Oi,colIndex:Ii,indent:On,index:Nt,renderIndex:En,record:Rn,inverse:rn,getHeight:fn})}));return gi?le.createElement("div",{ref:ft},Er,Br):Er}),mi=pe(ki),xi=mi,hi=le.forwardRef(function(ht,ft){var Ot=ht.data,Nt=ht.onScroll,Gt=ee(ke,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Jt=Gt.flattenColumns,an=Gt.onColumnResize,rn=Gt.getRowKey,fn=Gt.expandedKeys,ln=Gt.prefixCls,Rn=Gt.childrenColumnName,On=Gt.scrollX,En=Gt.direction,yn=ee(ri),vn=yn.sticky,or=yn.scrollY,zn=yn.listItemHeight,sr=yn.getComponent,pr=yn.onScroll,lr=le.useRef(),br=Pt(Ot,Rn,fn,rn),Ir=le.useMemo(function(){var Br=0;return Jt.map(function(Sr){var mr=Sr.width,Mr=Sr.key;return Br+=mr,[Mr,mr,Br]})},[Jt]),Rr=le.useMemo(function(){return Ir.map(function(Br){return Br[2]})},[Ir]);le.useEffect(function(){Ir.forEach(function(Br){var Sr=(0,Te.Z)(Br,2),mr=Sr[0],Mr=Sr[1];an(mr,Mr)})},[Ir]),le.useImperativeHandle(ft,function(){var Br,Sr={scrollTo:function(Mr){var Lr;(Lr=lr.current)===null||Lr===void 0||Lr.scrollTo(Mr)},nativeElement:(Br=lr.current)===null||Br===void 0?void 0:Br.nativeElement};return Object.defineProperty(Sr,"scrollLeft",{get:function(){var Mr;return((Mr=lr.current)===null||Mr===void 0?void 0:Mr.getScrollInfo().x)||0},set:function(Mr){var Lr;(Lr=lr.current)===null||Lr===void 0||Lr.scrollTo({left:Mr})}}),Sr});var Dr=function(Sr,mr){var Mr,Lr=(Mr=br[mr])===null||Mr===void 0?void 0:Mr.record,Qr=Sr.onCell;if(Qr){var Er,Oi=Qr(Lr,mr);return(Er=Oi==null?void 0:Oi.rowSpan)!==null&&Er!==void 0?Er:1}return 1},gi=function(Sr){var mr=Sr.start,Mr=Sr.end,Lr=Sr.getSize,Qr=Sr.offsetY;if(Mr<0)return null;for(var Er=Jt.filter(function(Zr){return Dr(Zr,mr)===0}),Oi=mr,Ii=function(pi){if(Er=Er.filter(function($r){return Dr($r,pi)===0}),!Er.length)return Oi=pi,1},xo=mr;xo>=0&&!Ii(xo);xo-=1);for(var fo=Jt.filter(function(Zr){return Dr(Zr,Mr)!==1}),io=Mr,ho=function(pi){if(fo=fo.filter(function($r){return Dr($r,pi)!==1}),!fo.length)return io=Math.max(pi-1,Mr),1},So=Mr;So<br.length&&!ho(So);So+=1);for(var Ai=[],Di=function(pi){var $r=br[pi];if(!$r)return 1;Jt.some(function(kr){return Dr(kr,pi)>1})&&Ai.push(pi)},Eo=Oi;Eo<=io;Eo+=1)Di(Eo);var Mo=Ai.map(function(Zr){var pi=br[Zr],$r=rn(pi.record,Zr),kr=function(uo){var to=Zr+uo-1,To=rn(br[to].record,to),Bo=Lr($r,To);return Bo.bottom-Bo.top},Li=Lr($r);return le.createElement(xi,{key:Zr,data:pi,rowKey:$r,index:Zr,style:{top:-Qr+Li.top},extra:!0,getHeight:kr})});return Mo},Jr=le.useMemo(function(){return{columnsOffset:Rr}},[Rr]),zr="".concat(ln,"-tbody"),ai=sr(["body","wrapper"]),Nr={};return vn&&(Nr.position="sticky",Nr.bottom=0,(0,Ee.Z)(vn)==="object"&&vn.offsetScroll&&(Nr.bottom=vn.offsetScroll)),le.createElement(Fr.Provider,{value:Jr},le.createElement(Kr.Z,{fullHeight:!1,ref:lr,prefixCls:"".concat(zr,"-virtual"),styles:{horizontalScrollBar:Nr},className:zr,height:or,itemHeight:zn||24,data:br,itemKey:function(Sr){return rn(Sr.record)},component:ai,scrollWidth:On,direction:En,onVirtualScroll:function(Sr){var mr,Mr=Sr.x;Nt({currentTarget:(mr=lr.current)===null||mr===void 0?void 0:mr.nativeElement,scrollLeft:Mr})},onScroll:pr,extraRender:gi},function(Br,Sr,mr){var Mr=rn(Br.record,Sr);return le.createElement(xi,{data:Br,rowKey:Mr,index:Sr,style:mr.style})}))}),ir=pe(hi),Qn=ir,gr=function(ft,Ot){var Nt=Ot.ref,Gt=Ot.onScroll;return le.createElement(Qn,{ref:Nt,data:ft,onScroll:Gt})};function Xn(ht,ft){var Ot=ht.data,Nt=ht.columns,Gt=ht.scroll,Jt=ht.sticky,an=ht.prefixCls,rn=an===void 0?Tr:an,fn=ht.className,ln=ht.listItemHeight,Rn=ht.components,On=ht.onScroll,En=Gt||{},yn=En.x,vn=En.y;typeof yn!="number"&&(yn=1),typeof vn!="number"&&(vn=500);var or=(0,qe.zX)(function(pr,lr){return(0,Ue.Z)(Rn,pr)||lr}),zn=(0,qe.zX)(On),sr=le.useMemo(function(){return{sticky:Jt,scrollY:vn,listItemHeight:ln,getComponent:or,onScroll:zn}},[Jt,vn,ln,or,zn]);return le.createElement(ri.Provider,{value:sr},le.createElement(Ur,(0,ue.Z)({},ht,{className:Ae()(fn,"".concat(rn,"-virtual")),scroll:(0,Ie.Z)((0,Ie.Z)({},Gt),{},{x:yn}),components:(0,Ie.Z)((0,Ie.Z)({},Rn),{},{body:Ot!=null&&Ot.length?gr:void 0}),columns:Nt,internalHooks:a,tailor:!0,ref:ft})))}var bn=le.forwardRef(Xn);function kn(ht){return ve(bn,ht)}var Ln=kn(),jn=null,ur=ht=>null,Sn=ht=>null,Un=Ce(84105),rr=Ce(82661),Gr=Ce(34643),wi=Ce(34061),ci=Ce(18929);function ji(ht){const[ft,Ot]=(0,le.useState)(null);return[(0,le.useCallback)((Jt,an,rn)=>{const fn=ft!=null?ft:Jt,ln=Math.min(fn||0,Jt),Rn=Math.max(fn||0,Jt),On=an.slice(ln,Rn+1).map(vn=>ht(vn)),En=On.some(vn=>!rn.has(vn)),yn=[];return On.forEach(vn=>{En?(rn.has(vn)||yn.push(vn),rn.add(vn)):(rn.delete(vn),yn.push(vn))}),Ot(En?Rn:null),yn},[ft]),Jt=>{Ot(Jt)}]}var Ci=Ce(32383),Si=Ce(62673),Ni=Ce(75727),Mi=Ce(47889);const Pi={},ro="SELECT_ALL",vo="SELECT_INVERT",go="SELECT_NONE",Ao=[],Co=(ht,ft)=>{let Ot=[];return(ft||[]).forEach(Nt=>{Ot.push(Nt),Nt&&typeof Nt=="object"&&ht in Nt&&(Ot=[].concat((0,un.Z)(Ot),(0,un.Z)(Co(ht,Nt[ht]))))}),Ot};var Wr=(ht,ft)=>{const{preserveSelectedRowKeys:Ot,selectedRowKeys:Nt,defaultSelectedRowKeys:Gt,getCheckboxProps:Jt,onChange:an,onSelect:rn,onSelectAll:fn,onSelectInvert:ln,onSelectNone:Rn,onSelectMultiple:On,columnWidth:En,type:yn,selections:vn,fixed:or,renderCell:zn,hideSelectAll:sr,checkStrictly:pr=!0}=ft||{},{prefixCls:lr,data:br,pageData:Ir,getRecordByKey:Rr,getRowKey:Dr,expandType:gi,childrenColumnName:Jr,locale:zr,getPopupContainer:ai}=ht,Nr=(0,Ci.ln)("Table"),[Br,Sr]=ji(Zr=>Zr),[mr,Mr]=(0,ci.Z)(Nt||Gt||Ao,{value:Nt}),Lr=le.useRef(new Map),Qr=(0,le.useCallback)(Zr=>{if(Ot){const pi=new Map;Zr.forEach($r=>{let kr=Rr($r);!kr&&Lr.current.has($r)&&(kr=Lr.current.get($r)),pi.set($r,kr)}),Lr.current=pi}},[Rr,Ot]);le.useEffect(()=>{Qr(mr)},[mr]);const Er=(0,le.useMemo)(()=>Co(Jr,Ir),[Jr,Ir]),{keyEntities:Oi}=(0,le.useMemo)(()=>{if(pr)return{keyEntities:null};let Zr=br;if(Ot){const pi=new Set(Er.map((kr,Li)=>Dr(kr,Li))),$r=Array.from(Lr.current).reduce((kr,Li)=>{let[Ki,uo]=Li;return pi.has(Ki)?kr:kr.concat(uo)},[]);Zr=[].concat((0,un.Z)(Zr),(0,un.Z)($r))}return(0,wi.I8)(Zr,{externalGetKey:Dr,childrenPropName:Jr})},[br,Dr,pr,Jr,Ot,Er]),Ii=(0,le.useMemo)(()=>{const Zr=new Map;return Er.forEach((pi,$r)=>{const kr=Dr(pi,$r),Li=(Jt?Jt(pi):null)||{};Zr.set(kr,Li)}),Zr},[Er,Dr,Jt]),xo=(0,le.useCallback)(Zr=>{const pi=Dr(Zr);let $r;return Ii.has(pi)?$r=Ii.get(Dr(Zr)):$r=Jt?Jt(Zr):void 0,!!($r!=null&&$r.disabled)},[Ii,Dr]),[fo,io]=(0,le.useMemo)(()=>{if(pr)return[mr||[],[]];const{checkedKeys:Zr,halfCheckedKeys:pi}=(0,Gr.S)(mr,!0,Oi,xo);return[Zr||[],pi]},[mr,pr,Oi,xo]),ho=(0,le.useMemo)(()=>{const Zr=yn==="radio"?fo.slice(0,1):fo;return new Set(Zr)},[fo,yn]),So=(0,le.useMemo)(()=>yn==="radio"?new Set:new Set(io),[io,yn]);le.useEffect(()=>{ft||Mr(Ao)},[!!ft]);const Ai=(0,le.useCallback)((Zr,pi)=>{let $r,kr;Qr(Zr),Ot?($r=Zr,kr=Zr.map(Li=>Lr.current.get(Li))):($r=[],kr=[],Zr.forEach(Li=>{const Ki=Rr(Li);Ki!==void 0&&($r.push(Li),kr.push(Ki))})),Mr($r),an==null||an($r,kr,{type:pi})},[Mr,Rr,an,Ot]),Di=(0,le.useCallback)((Zr,pi,$r,kr)=>{if(rn){const Li=$r.map(Ki=>Rr(Ki));rn(Rr(Zr),pi,Li,kr)}Ai($r,"single")},[rn,Rr,Ai]),Eo=(0,le.useMemo)(()=>!vn||sr?null:(vn===!0?[ro,vo,go]:vn).map(pi=>pi===ro?{key:"all",text:zr.selectionAll,onSelect(){Ai(br.map(($r,kr)=>Dr($r,kr)).filter($r=>{const kr=Ii.get($r);return!(kr!=null&&kr.disabled)||ho.has($r)}),"all")}}:pi===vo?{key:"invert",text:zr.selectInvert,onSelect(){const $r=new Set(ho);Ir.forEach((Li,Ki)=>{const uo=Dr(Li,Ki),to=Ii.get(uo);to!=null&&to.disabled||($r.has(uo)?$r.delete(uo):$r.add(uo))});const kr=Array.from($r);ln&&(Nr.deprecated(!1,"onSelectInvert","onChange"),ln(kr)),Ai(kr,"invert")}}:pi===go?{key:"none",text:zr.selectNone,onSelect(){Rn==null||Rn(),Ai(Array.from(ho).filter($r=>{const kr=Ii.get($r);return kr==null?void 0:kr.disabled}),"none")}}:pi).map(pi=>Object.assign(Object.assign({},pi),{onSelect:function(){for(var $r,kr,Li=arguments.length,Ki=new Array(Li),uo=0;uo<Li;uo++)Ki[uo]=arguments[uo];(kr=pi.onSelect)===null||kr===void 0||($r=kr).call.apply($r,[pi].concat(Ki)),Sr(null)}})),[vn,ho,Ir,Dr,ln,Ai]);return[(0,le.useCallback)(Zr=>{var pi;if(!ft)return Zr.filter($i=>$i!==Pi);let $r=(0,un.Z)(Zr);const kr=new Set(ho),Li=Er.map(Dr).filter($i=>!Ii.get($i).disabled),Ki=Li.every($i=>kr.has($i)),uo=Li.some($i=>kr.has($i)),to=()=>{const $i=[];Ki?Li.forEach(oo=>{kr.delete(oo),$i.push(oo)}):Li.forEach(oo=>{kr.has(oo)||(kr.add(oo),$i.push(oo))});const no=Array.from(kr);fn==null||fn(!Ki,no.map(oo=>Rr(oo)),$i.map(oo=>Rr(oo))),Ai(no,"all"),Sr(null)};let To,Bo;if(yn!=="radio"){let $i;if(Eo){const zi={getPopupContainer:ai,items:Eo.map((mo,Xi)=>{const{key:Qo,text:Ro,onSelect:ca}=mo;return{key:Qo!=null?Qo:Xi,onClick:()=>{ca==null||ca(Li)},label:Ro}})};$i=le.createElement("div",{className:`${lr}-selection-extra`},le.createElement(Ni.Z,{menu:zi,getPopupContainer:ai},le.createElement("span",null,le.createElement(Un.Z,null))))}const no=Er.map((zi,mo)=>{const Xi=Dr(zi,mo),Qo=Ii.get(Xi)||{};return Object.assign({checked:kr.has(Xi)},Qo)}).filter(zi=>{let{disabled:mo}=zi;return mo}),oo=!!no.length&&no.length===Er.length,Lo=oo&&no.every(zi=>{let{checked:mo}=zi;return mo}),wo=oo&&no.some(zi=>{let{checked:mo}=zi;return mo});Bo=le.createElement(Si.default,{checked:oo?Lo:!!Er.length&&Ki,indeterminate:oo?!Lo&&wo:!Ki&&uo,onChange:to,disabled:Er.length===0||oo,"aria-label":$i?"Custom selection":"Select all",skipGroup:!0}),To=!sr&&le.createElement("div",{className:`${lr}-selection`},Bo,$i)}let Yr;yn==="radio"?Yr=($i,no,oo)=>{const Lo=Dr(no,oo),wo=kr.has(Lo),zi=Ii.get(Lo);return{node:le.createElement(Mi.ZP,Object.assign({},zi,{checked:wo,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;kr.has(Lo)||Di(Lo,!0,[Lo],mo.nativeEvent),(Xi=zi==null?void 0:zi.onChange)===null||Xi===void 0||Xi.call(zi,mo)}})),checked:wo}}:Yr=($i,no,oo)=>{var Lo;const wo=Dr(no,oo),zi=kr.has(wo),mo=So.has(wo),Xi=Ii.get(wo);let Qo;return gi==="nest"?Qo=mo:Qo=(Lo=Xi==null?void 0:Xi.indeterminate)!==null&&Lo!==void 0?Lo:mo,{node:le.createElement(Si.default,Object.assign({},Xi,{indeterminate:Qo,checked:zi,skipGroup:!0,onClick:Ro=>{var ca;Ro.stopPropagation(),(ca=Xi==null?void 0:Xi.onClick)===null||ca===void 0||ca.call(Xi,Ro)},onChange:Ro=>{var ca;const{nativeEvent:ga}=Ro,{shiftKey:Ga}=ga,ao=Li.findIndex(da=>da===wo),Zs=fo.some(da=>Li.includes(da));if(Ga&&pr&&Zs){const da=Br(ao,Li,kr),Ma=Array.from(kr);On==null||On(!zi,Ma.map(Sa=>Rr(Sa)),da.map(Sa=>Rr(Sa))),Ai(Ma,"multiple")}else{const da=fo;if(pr){const Ma=zi?(0,rr._5)(da,wo):(0,rr.L0)(da,wo);Di(wo,!zi,Ma,ga)}else{const Ma=(0,Gr.S)([].concat((0,un.Z)(da),[wo]),!0,Oi,xo),{checkedKeys:Sa,halfCheckedKeys:ya}=Ma;let so=Sa;if(zi){const Ea=new Set(Sa);Ea.delete(wo),so=(0,Gr.S)(Array.from(Ea),{checked:!1,halfCheckedKeys:ya},Oi,xo).checkedKeys}Di(wo,!zi,so,ga)}}Sr(zi?null:ao),(ca=Xi==null?void 0:Xi.onChange)===null||ca===void 0||ca.call(Xi,Ro)}})),checked:zi}};const ni=($i,no,oo)=>{const{node:Lo,checked:wo}=Yr($i,no,oo);return zn?zn(wo,no,oo,Lo):Lo};if(!$r.includes(Pi))if($r.findIndex($i=>{var no;return((no=$i[wn])===null||no===void 0?void 0:no.columnType)==="EXPAND_COLUMN"})===0){const[$i,...no]=$r;$r=[$i,Pi].concat((0,un.Z)(no))}else $r=[Pi].concat((0,un.Z)($r));const Vi=$r.indexOf(Pi);$r=$r.filter(($i,no)=>$i!==Pi||no===Vi);const eo=$r[Vi-1],Ji=$r[Vi+1];let $o=or;$o===void 0&&((Ji==null?void 0:Ji.fixed)!==void 0?$o=Ji.fixed:(eo==null?void 0:eo.fixed)!==void 0&&($o=eo.fixed)),$o&&eo&&((pi=eo[wn])===null||pi===void 0?void 0:pi.columnType)==="EXPAND_COLUMN"&&eo.fixed===void 0&&(eo.fixed=$o);const Oo=Ae()(`${lr}-selection-col`,{[`${lr}-selection-col-with-dropdown`]:vn&&yn==="checkbox"}),va=()=>ft!=null&&ft.columnTitle?typeof ft.columnTitle=="function"?ft.columnTitle(Bo):ft.columnTitle:To,po={fixed:$o,width:En,className:`${lr}-selection-column`,title:va(),render:ni,onCell:ft.onCell,[wn]:{className:Oo}};return $r.map($i=>$i===Pi?po:$i)},[Dr,Er,ft,fo,ho,So,En,Eo,gi,Ii,On,Di,xo]),ho]},Qi=Ce(2738);function qi(ht,ft){return ht._antProxy=ht._antProxy||{},Object.keys(ft).forEach(Ot=>{if(!(Ot in ht._antProxy)){const Nt=ht[Ot];ht._antProxy[Ot]=Nt,ht[Ot]=ft[Ot]}}),ht}function si(ht,ft){return(0,le.useImperativeHandle)(ht,()=>{const Ot=ft(),{nativeElement:Nt}=Ot;return typeof Proxy!="undefined"?new Proxy(Nt,{get(Gt,Jt){return Ot[Jt]?Ot[Jt]:Reflect.get(Gt,Jt)}}):qi(Nt,Ot)})}var Zi=Ce(83010),Yi=Ce(48755),yi=Ce(38406),_i=Ce(83397),Ri=Ce(31756),_o=Ce(13783),ha=Ce(85981),Zo=Ce(31709),jo=Ce(29787),cs=Ce(57700);function es(ht){return ft=>{const{prefixCls:Ot,onExpand:Nt,record:Gt,expanded:Jt,expandable:an}=ft,rn=`${Ot}-row-expand-icon`;return le.createElement("button",{type:"button",onClick:fn=>{Nt(Gt,fn),fn.stopPropagation()},className:Ae()(rn,{[`${rn}-spaced`]:!an,[`${rn}-expanded`]:an&&Jt,[`${rn}-collapsed`]:an&&!Jt}),"aria-label":Jt?ht.collapse:ht.expand,"aria-expanded":Jt})}}var di=es;function Ei(ht){return(Ot,Nt)=>{const Gt=Ot.querySelector(`.${ht}-container`);let Jt=Nt;if(Gt){const an=getComputedStyle(Gt),rn=parseInt(an.borderLeftWidth,10),fn=parseInt(an.borderRightWidth,10);Jt=Nt-rn-fn}return Jt}}const ii=(ht,ft)=>"key"in ht&&ht.key!==void 0&&ht.key!==null?ht.key:ht.dataIndex?Array.isArray(ht.dataIndex)?ht.dataIndex.join("."):ht.dataIndex:ft;function fi(ht,ft){return ft?`${ft}-${ht}`:`${ht}`}const Ui=(ht,ft)=>typeof ht=="function"?ht(ft):ht,lo=(ht,ft)=>{const Ot=Ui(ht,ft);return Object.prototype.toString.call(Ot)==="[object Object]"?"":Ot};var Na={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=Na,Yo=Ce(7657),Do=function(ft,Ot){return le.createElement(Yo.Z,(0,ue.Z)({},ft,{ref:Ot,icon:oa}))},Aa=le.forwardRef(Do),_a=Aa,pa=Ce(9981),$a=Ce(40192);function Ya(ht){const ft=le.useRef(ht),Ot=(0,$a.Z)();return[()=>ft.current,Nt=>{ft.current=Nt,Ot()}]}var ja=Ce(7939),ds=Ce(584),vl=Ce(93041),Js=Ce(78857),za=Ce(18287),ts=Ce(47472),Da=Ce(49397),Ms=ht=>{const{value:ft,filterSearch:Ot,tablePrefixCls:Nt,locale:Gt,onChange:Jt}=ht;return Ot?le.createElement("div",{className:`${Nt}-filter-dropdown-search`},le.createElement(Da.Z,{prefix:le.createElement(ts.Z,null),placeholder:Gt.filterSearchPlaceholder,onChange:Jt,value:ft,htmlSize:1,className:`${Nt}-filter-dropdown-search-input`})):null},Qs=Ce(10228);const el=ht=>{const{keyCode:ft}=ht;ft===Qs.Z.ENTER&&ht.stopPropagation()};var Rs=le.forwardRef((ht,ft)=>le.createElement("div",{className:ht.className,onClick:Ot=>Ot.stopPropagation(),onKeyDown:el,ref:ft},ht.children));function Wa(ht){let ft=[];return(ht||[]).forEach(Ot=>{let{value:Nt,children:Gt}=Ot;ft.push(Nt),Gt&&(ft=[].concat((0,un.Z)(ft),(0,un.Z)(Wa(Gt))))}),ft}function fs(ht){return ht.some(ft=>{let{children:Ot}=ft;return Ot})}function xs(ht,ft){return typeof ft=="string"||typeof ft=="number"?ft==null?void 0:ft.toString().toLowerCase().includes(ht.trim().toLowerCase()):!1}function Ns(ht){let{filters:ft,prefixCls:Ot,filteredKeys:Nt,filterMultiple:Gt,searchValue:Jt,filterSearch:an}=ht;return ft.map((rn,fn)=>{const ln=String(rn.value);if(rn.children)return{key:ln||fn,label:rn.text,popupClassName:`${Ot}-dropdown-submenu`,children:Ns({filters:rn.children,prefixCls:Ot,filteredKeys:Nt,filterMultiple:Gt,searchValue:Jt,filterSearch:an})};const Rn=Gt?Si.default:Mi.ZP,On={key:rn.value!==void 0?ln:fn,label:le.createElement(le.Fragment,null,le.createElement(Rn,{checked:Nt.includes(ln)}),le.createElement("span",null,rn.text))};return Jt.trim()?typeof an=="function"?an(Jt,rn)?On:null:xs(Jt,rn.text)?On:null:On})}function hs(ht){return ht||[]}var tl=ht=>{var ft,Ot,Nt,Gt;const{tablePrefixCls:Jt,prefixCls:an,column:rn,dropdownPrefixCls:fn,columnKey:ln,filterOnClose:Rn,filterMultiple:On,filterMode:En="menu",filterSearch:yn=!1,filterState:vn,triggerFilter:or,locale:zn,children:sr,getPopupContainer:pr,rootClassName:lr}=ht,{filterResetToDefaultFilteredValue:br,defaultFilteredValue:Ir,filterDropdownProps:Rr={},filterDropdownOpen:Dr,filterDropdownVisible:gi,onFilterDropdownVisibleChange:Jr,onFilterDropdownOpenChange:zr}=rn,[ai,Nr]=le.useState(!1),Br=!!(vn&&(!((ft=vn.filteredKeys)===null||ft===void 0)&&ft.length||vn.forceFiltered)),Sr=Yr=>{var ni;Nr(Yr),(ni=Rr.onOpenChange)===null||ni===void 0||ni.call(Rr,Yr),zr==null||zr(Yr),Jr==null||Jr(Yr)},mr=(Gt=(Nt=(Ot=Rr.open)!==null&&Ot!==void 0?Ot:Dr)!==null&&Nt!==void 0?Nt:gi)!==null&&Gt!==void 0?Gt:ai,Mr=vn==null?void 0:vn.filteredKeys,[Lr,Qr]=Ya(hs(Mr)),Er=Yr=>{let{selectedKeys:ni}=Yr;Qr(ni)},Oi=(Yr,ni)=>{let{node:Vi,checked:eo}=ni;Er(On?{selectedKeys:Yr}:{selectedKeys:eo&&Vi.key?[Vi.key]:[]})};le.useEffect(()=>{ai&&Er({selectedKeys:hs(Mr)})},[Mr]);const[Ii,xo]=le.useState([]),fo=Yr=>{xo(Yr)},[io,ho]=le.useState(""),So=Yr=>{const{value:ni}=Yr.target;ho(ni)};le.useEffect(()=>{ai||ho("")},[ai]);const Ai=Yr=>{const ni=Yr!=null&&Yr.length?Yr:null;if(ni===null&&(!vn||!vn.filteredKeys)||(0,z.Z)(ni,vn==null?void 0:vn.filteredKeys,!0))return null;or({column:rn,key:ln,filteredKeys:ni})},Di=()=>{Sr(!1),Ai(Lr())},Eo=function(){let{confirm:Yr,closeDropdown:ni}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Yr&&Ai([]),ni&&Sr(!1),ho(""),Qr(br?(Ir||[]).map(Vi=>String(Vi)):[])},Mo=function(){let{closeDropdown:Yr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Yr&&Sr(!1),Ai(Lr())},Zr=(Yr,ni)=>{ni.source==="trigger"&&(Yr&&Mr!==void 0&&Qr(hs(Mr)),Sr(Yr),!Yr&&!rn.filterDropdown&&Rn&&Di())},pi=Ae()({[`${fn}-menu-without-submenu`]:!fs(rn.filters||[])}),$r=Yr=>{if(Yr.target.checked){const ni=Wa(rn==null?void 0:rn.filters).map(Vi=>String(Vi));Qr(ni)}else Qr([])},kr=Yr=>{let{filters:ni}=Yr;return(ni||[]).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=kr({filters:Vi.children})),$o})},Li=Yr=>{var ni;return Object.assign(Object.assign({},Yr),{text:Yr.title,value:Yr.key,children:((ni=Yr.children)===null||ni===void 0?void 0:ni.map(Vi=>Li(Vi)))||[]})};let Ki;const{direction:uo,renderEmpty:to}=le.useContext(Yi.E_);if(typeof rn.filterDropdown=="function")Ki=rn.filterDropdown({prefixCls:`${fn}-custom`,setSelectedKeys:Yr=>Er({selectedKeys:Yr}),selectedKeys:Lr(),confirm:Mo,clearFilters:Eo,filters:rn.filters,visible:mr,close:()=>{Sr(!1)}});else if(rn.filterDropdown)Ki=rn.filterDropdown;else{const Yr=Lr()||[],ni=()=>{var eo,Ji;const $o=(eo=to==null?void 0:to("Table.filter"))!==null&&eo!==void 0?eo:le.createElement(ds.Z,{image:ds.Z.PRESENTED_IMAGE_SIMPLE,description:zn.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((rn.filters||[]).length===0)return $o;if(En==="tree")return le.createElement(le.Fragment,null,le.createElement(Ms,{filterSearch:yn,value:io,onChange:So,tablePrefixCls:Jt,locale:zn}),le.createElement("div",{className:`${Jt}-filter-dropdown-tree`},On?le.createElement(Si.default,{checked:Yr.length===Wa(rn.filters).length,indeterminate:Yr.length>0&&Yr.length<Wa(rn.filters).length,className:`${Jt}-filter-dropdown-checkall`,onChange:$r},(Ji=zn==null?void 0:zn.filterCheckall)!==null&&Ji!==void 0?Ji:zn==null?void 0:zn.filterCheckAll):null,le.createElement(za.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:On,checkStrictly:!On,className:`${fn}-menu`,onCheck:Oi,checkedKeys:Yr,selectedKeys:Yr,showIcon:!1,treeData:kr({filters:rn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:io.trim()?po=>typeof yn=="function"?yn(io,Li(po)):xs(io,po.title):void 0})));const Oo=Ns({filters:rn.filters||[],filterSearch:yn,prefixCls:an,filteredKeys:Lr(),filterMultiple:On,searchValue:io}),va=Oo.every(po=>po===null);return le.createElement(le.Fragment,null,le.createElement(Ms,{filterSearch:yn,value:io,onChange:So,tablePrefixCls:Jt,locale:zn}),va?$o:le.createElement(vl.default,{selectable:!0,multiple:On,prefixCls:`${fn}-menu`,className:pi,onSelect:Er,onDeselect:Er,selectedKeys:Yr,getPopupContainer:pr,openKeys:Ii,onOpenChange:fo,items:Oo}))},Vi=()=>br?(0,z.Z)((Ir||[]).map(eo=>String(eo)),Yr,!0):Yr.length===0;Ki=le.createElement(le.Fragment,null,ni(),le.createElement("div",{className:`${an}-dropdown-btns`},le.createElement(ja.ZP,{type:"link",size:"small",disabled:Vi(),onClick:()=>Eo()},zn.filterReset),le.createElement(ja.ZP,{type:"primary",size:"small",onClick:Di},zn.filterConfirm)))}rn.filterDropdown&&(Ki=le.createElement(Js.J,{selectable:void 0},Ki)),Ki=le.createElement(Rs,{className:`${an}-dropdown`},Ki);const To=()=>{let Yr;return typeof rn.filterIcon=="function"?Yr=rn.filterIcon(Br):rn.filterIcon?Yr=rn.filterIcon:Yr=le.createElement(_a,null),le.createElement("span",{role:"button",tabIndex:-1,className:Ae()(`${an}-trigger`,{active:Br}),onClick:ni=>{ni.stopPropagation()}},Yr)},Bo=(0,pa.Z)({trigger:["click"],placement:uo==="rtl"?"bottomLeft":"bottomRight",children:To(),getPopupContainer:pr},Object.assign(Object.assign({},Rr),{rootClassName:Ae()(lr,Rr.rootClassName),open:mr,onOpenChange:Zr,dropdownRender:()=>typeof(Rr==null?void 0:Rr.dropdownRender)=="function"?Rr.dropdownRender(Ki):Ki}));return le.createElement("div",{className:`${an}-column`},le.createElement("span",{className:`${Jt}-column-title`},sr),le.createElement(Ni.Z,Object.assign({},Bo)))};const ns=(ht,ft,Ot)=>{let Nt=[];return(ht||[]).forEach((Gt,Jt)=>{var an;const rn=fi(Jt,Ot);if(Gt.filters||"filterDropdown"in Gt||"onFilter"in Gt)if("filteredValue"in Gt){let fn=Gt.filteredValue;"filterDropdown"in Gt||(fn=(an=fn==null?void 0:fn.map(String))!==null&&an!==void 0?an:fn),Nt.push({column:Gt,key:ii(Gt,rn),filteredKeys:fn,forceFiltered:Gt.filtered})}else Nt.push({column:Gt,key:ii(Gt,rn),filteredKeys:ft&&Gt.defaultFilteredValue?Gt.defaultFilteredValue:void 0,forceFiltered:Gt.filtered});"children"in Gt&&(Nt=[].concat((0,un.Z)(Nt),(0,un.Z)(ns(Gt.children,ft,rn))))}),Nt};function aa(ht,ft,Ot,Nt,Gt,Jt,an,rn,fn){return Ot.map((ln,Rn)=>{const On=fi(Rn,rn),{filterOnClose:En=!0,filterMultiple:yn=!0,filterMode:vn,filterSearch:or}=ln;let zn=ln;if(zn.filters||zn.filterDropdown){const sr=ii(zn,On),pr=Nt.find(lr=>{let{key:br}=lr;return sr===br});zn=Object.assign(Object.assign({},zn),{title:lr=>le.createElement(tl,{tablePrefixCls:ht,prefixCls:`${ht}-filter`,dropdownPrefixCls:ft,column:zn,columnKey:sr,filterState:pr,filterOnClose:En,filterMultiple:yn,filterMode:vn,filterSearch:or,triggerFilter:Jt,locale:Gt,getPopupContainer:an,rootClassName:fn},Ui(ln.title,lr))})}return"children"in zn&&(zn=Object.assign(Object.assign({},zn),{children:aa(ht,ft,zn.children,Nt,Gt,Jt,an,On,fn)})),zn})}const Hi=ht=>{const ft={};return ht.forEach(Ot=>{let{key:Nt,filteredKeys:Gt,column:Jt}=Ot;const an=Nt,{filters:rn,filterDropdown:fn}=Jt;if(fn)ft[an]=Gt||null;else if(Array.isArray(Gt)){const ln=Wa(rn);ft[an]=ln.filter(Rn=>Gt.includes(String(Rn)))}else ft[an]=null}),ft},Ti=(ht,ft,Ot)=>ft.reduce((Gt,Jt)=>{const{column:{onFilter:an,filters:rn},filteredKeys:fn}=Jt;return an&&fn&&fn.length?Gt.map(ln=>Object.assign({},ln)).filter(ln=>fn.some(Rn=>{const On=Wa(rn),En=On.findIndex(vn=>String(vn)===String(Rn)),yn=En!==-1?On[En]:Rn;return ln[Ot]&&(ln[Ot]=Ti(ln[Ot],ft,Ot)),an(yn,ln)})):Gt},ht),Ho=ht=>ht.flatMap(ft=>"children"in ft?[ft].concat((0,un.Z)(Ho(ft.children||[]))):[ft]);var ko=ht=>{const{prefixCls:ft,dropdownPrefixCls:Ot,mergedColumns:Nt,onFilterChange:Gt,getPopupContainer:Jt,locale:an,rootClassName:rn}=ht,fn=(0,Ci.ln)("Table"),ln=le.useMemo(()=>Ho(Nt||[]),[Nt]),[Rn,On]=le.useState(()=>ns(ln,!0)),En=le.useMemo(()=>{const zn=ns(ln,!1);if(zn.length===0)return zn;let sr=!0,pr=!0;if(zn.forEach(lr=>{let{filteredKeys:br}=lr;br!==void 0?sr=!1:pr=!1}),sr){const lr=(ln||[]).map((br,Ir)=>ii(br,fi(Ir)));return Rn.filter(br=>{let{key:Ir}=br;return lr.includes(Ir)}).map(br=>{const Ir=ln[lr.findIndex(Rr=>Rr===br.key)];return Object.assign(Object.assign({},br),{column:Object.assign(Object.assign({},br.column),Ir),forceFiltered:Ir.filtered})})}return zn},[ln,Rn]),yn=le.useMemo(()=>Hi(En),[En]),vn=zn=>{const sr=En.filter(pr=>{let{key:lr}=pr;return lr!==zn.key});sr.push(zn),On(sr),Gt(Hi(sr),sr)};return[zn=>aa(ft,Ot,zn,En,an,vn,Jt,void 0,rn),En,yn]},Ba=(ht,ft,Ot)=>{const Nt=le.useRef({});function Gt(Jt){var an;if(!Nt.current||Nt.current.data!==ht||Nt.current.childrenColumnName!==ft||Nt.current.getRowKey!==Ot){let fn=function(ln){ln.forEach((Rn,On)=>{const En=Ot(Rn,On);rn.set(En,Rn),Rn&&typeof Rn=="object"&&ft in Rn&&fn(Rn[ft]||[])})};const rn=new Map;fn(ht),Nt.current={data:ht,childrenColumnName:ft,kvMap:rn,getRowKey:Ot}}return(an=Nt.current.kvMap)===null||an===void 0?void 0:an.get(Jt)}return[Gt]},ka=function(ht,ft){var Ot={};for(var Nt in ht)Object.prototype.hasOwnProperty.call(ht,Nt)&&ft.indexOf(Nt)<0&&(Ot[Nt]=ht[Nt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,Nt=Object.getOwnPropertySymbols(ht);Gt<Nt.length;Gt++)ft.indexOf(Nt[Gt])<0&&Object.prototype.propertyIsEnumerable.call(ht,Nt[Gt])&&(Ot[Nt[Gt]]=ht[Nt[Gt]]);return Ot};const Za=10;function xa(ht,ft){const Ot={current:ht.current,pageSize:ht.pageSize};return Object.keys(ft&&typeof ft=="object"?ft:{}).forEach(Gt=>{const Jt=ht[Gt];typeof Jt!="function"&&(Ot[Gt]=Jt)}),Ot}function wa(ht,ft,Ot){const Nt=Ot&&typeof Ot=="object"?Ot:{},{total:Gt=0}=Nt,Jt=ka(Nt,["total"]),[an,rn]=(0,le.useState)(()=>({current:"defaultCurrent"in Jt?Jt.defaultCurrent:1,pageSize:"defaultPageSize"in Jt?Jt.defaultPageSize:Za})),fn=(0,pa.Z)(an,Jt,{total:Gt>0?Gt:ht}),ln=Math.ceil((Gt||ht)/fn.pageSize);fn.current>ln&&(fn.current=ln||1);const Rn=(En,yn)=>{rn({current:En!=null?En:1,pageSize:yn||fn.pageSize})},On=(En,yn)=>{var vn;Ot&&((vn=Ot.onChange)===null||vn===void 0||vn.call(Ot,En,yn)),Rn(En,yn),ft(En,yn||(fn==null?void 0:fn.pageSize))};return Ot===!1?[{},()=>{}]:[Object.assign(Object.assign({},fn),{onChange:On}),Rn]}var La=wa,rs=Ce(89489),yl=Ce(59477),bl=Ce(25399);const ws="ascend",Ja="descend",Ha=ht=>typeof ht.sorter=="object"&&typeof ht.sorter.multiple=="number"?ht.sorter.multiple:!1,la=ht=>typeof ht=="function"?ht:ht&&typeof ht=="object"&&ht.compare?ht.compare:!1,is=(ht,ft)=>ft?ht[ht.indexOf(ft)+1]:ht[0],Ua=(ht,ft,Ot)=>{let Nt=[];const Gt=(Jt,an)=>{Nt.push({column:Jt,key:ii(Jt,an),multiplePriority:Ha(Jt),sortOrder:Jt.sortOrder})};return(ht||[]).forEach((Jt,an)=>{const rn=fi(an,Ot);Jt.children?("sortOrder"in Jt&&Gt(Jt,rn),Nt=[].concat((0,un.Z)(Nt),(0,un.Z)(Ua(Jt.children,ft,rn)))):Jt.sorter&&("sortOrder"in Jt?Gt(Jt,rn):ft&&Jt.defaultSortOrder&&Nt.push({column:Jt,key:ii(Jt,rn),multiplePriority:Ha(Jt),sortOrder:Jt.defaultSortOrder}))}),Nt},Ls=(ht,ft,Ot,Nt,Gt,Jt,an,rn)=>(ft||[]).map((ln,Rn)=>{const On=fi(Rn,rn);let En=ln;if(En.sorter){const yn=En.sortDirections||Gt,vn=En.showSorterTooltip===void 0?an:En.showSorterTooltip,or=ii(En,On),zn=Ot.find(Jr=>{let{key:zr}=Jr;return zr===or}),sr=zn?zn.sortOrder:null,pr=is(yn,sr);let lr;if(ln.sortIcon)lr=ln.sortIcon({sortOrder:sr});else{const Jr=yn.includes(ws)&&le.createElement(yl.Z,{className:Ae()(`${ht}-column-sorter-up`,{active:sr===ws})}),zr=yn.includes(Ja)&&le.createElement(rs.Z,{className:Ae()(`${ht}-column-sorter-down`,{active:sr===Ja})});lr=le.createElement("span",{className:Ae()(`${ht}-column-sorter`,{[`${ht}-column-sorter-full`]:!!(Jr&&zr)})},le.createElement("span",{className:`${ht}-column-sorter-inner`,"aria-hidden":"true"},Jr,zr))}const{cancelSort:br,triggerAsc:Ir,triggerDesc:Rr}=Jt||{};let Dr=br;pr===Ja?Dr=Rr:pr===ws&&(Dr=Ir);const gi=typeof vn=="object"?Object.assign({title:Dr},vn):{title:Dr};En=Object.assign(Object.assign({},En),{className:Ae()(En.className,{[`${ht}-column-sort`]:sr}),title:Jr=>{const zr=`${ht}-column-sorters`,ai=le.createElement("span",{className:`${ht}-column-title`},Ui(ln.title,Jr)),Nr=le.createElement("div",{className:zr},ai,lr);return vn?typeof vn!="boolean"&&(vn==null?void 0:vn.target)==="sorter-icon"?le.createElement("div",{className:`${zr} ${ht}-column-sorters-tooltip-target-sorter`},ai,le.createElement(bl.Z,Object.assign({},gi),lr)):le.createElement(bl.Z,Object.assign({},gi),Nr):Nr},onHeaderCell:Jr=>{var zr;const ai=((zr=ln.onHeaderCell)===null||zr===void 0?void 0:zr.call(ln,Jr))||{},Nr=ai.onClick,Br=ai.onKeyDown;ai.onClick=Mr=>{Nt({column:ln,key:or,sortOrder:pr,multiplePriority:Ha(ln)}),Nr==null||Nr(Mr)},ai.onKeyDown=Mr=>{Mr.keyCode===Qs.Z.ENTER&&(Nt({column:ln,key:or,sortOrder:pr,multiplePriority:Ha(ln)}),Br==null||Br(Mr))};const Sr=lo(ln.title,{}),mr=Sr==null?void 0:Sr.toString();return sr&&(ai["aria-sort"]=sr==="ascend"?"ascending":"descending"),ai["aria-label"]=mr||"",ai.className=Ae()(ai.className,`${ht}-column-has-sorters`),ai.tabIndex=0,ln.ellipsis&&(ai.title=(Sr!=null?Sr:"").toString()),ai}})}return"children"in En&&(En=Object.assign(Object.assign({},En),{children:Ls(ht,En.children,Ot,Nt,Gt,Jt,an,On)})),En}),Wl=ht=>{const{column:ft,sortOrder:Ot}=ht;return{column:ft,order:Ot,field:ft.dataIndex,columnKey:ft.key}},xl=ht=>{const ft=ht.filter(Ot=>{let{sortOrder:Nt}=Ot;return Nt}).map(Wl);if(ft.length===0&&ht.length){const Ot=ht.length-1;return Object.assign(Object.assign({},Wl(ht[Ot])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return ft.length<=1?ft[0]||{}:ft},ps=(ht,ft,Ot)=>{const Nt=ft.slice().sort((an,rn)=>rn.multiplePriority-an.multiplePriority),Gt=ht.slice(),Jt=Nt.filter(an=>{let{column:{sorter:rn},sortOrder:fn}=an;return la(rn)&&fn});return Jt.length?Gt.sort((an,rn)=>{for(let fn=0;fn<Jt.length;fn+=1){const ln=Jt[fn],{column:{sorter:Rn},sortOrder:On}=ln,En=la(Rn);if(En&&On){const yn=En(an,rn,On);if(yn!==0)return On===ws?yn:-yn}}return 0}).map(an=>{const rn=an[Ot];return rn?Object.assign(Object.assign({},an),{[Ot]:ps(rn,ft,Ot)}):an}):Gt};var Zl=ht=>{const{prefixCls:ft,mergedColumns:Ot,sortDirections:Nt,tableLocale:Gt,showSorterTooltip:Jt,onSorterChange:an}=ht,[rn,fn]=le.useState(Ua(Ot,!0)),ln=(or,zn)=>{const sr=[];return or.forEach((pr,lr)=>{const br=fi(lr,zn);if(sr.push(ii(pr,br)),Array.isArray(pr.children)){const Ir=ln(pr.children,br);sr.push.apply(sr,(0,un.Z)(Ir))}}),sr},Rn=le.useMemo(()=>{let or=!0;const zn=Ua(Ot,!1);if(!zn.length){const br=ln(Ot);return rn.filter(Ir=>{let{key:Rr}=Ir;return br.includes(Rr)})}const sr=[];function pr(br){or?sr.push(br):sr.push(Object.assign(Object.assign({},br),{sortOrder:null}))}let lr=null;return zn.forEach(br=>{lr===null?(pr(br),br.sortOrder&&(br.multiplePriority===!1?or=!1:lr=!0)):(lr&&br.multiplePriority!==!1||(or=!1),pr(br))}),sr},[Ot,rn]),On=le.useMemo(()=>{var or,zn;const sr=Rn.map(pr=>{let{column:lr,sortOrder:br}=pr;return{column:lr,order:br}});return{sortColumns:sr,sortColumn:(or=sr[0])===null||or===void 0?void 0:or.column,sortOrder:(zn=sr[0])===null||zn===void 0?void 0:zn.order}},[Rn]),En=or=>{let zn;or.multiplePriority===!1||!Rn.length||Rn[0].multiplePriority===!1?zn=[or]:zn=[].concat((0,un.Z)(Rn.filter(sr=>{let{key:pr}=sr;return pr!==or.key})),[or]),fn(zn),an(xl(zn),zn)};return[or=>Ls(ft,or,Rn,En,Nt,Gt,Jt),Rn,On,()=>xl(Rn)]};const Fs=(ht,ft)=>ht.map(Nt=>{const Gt=Object.assign({},Nt);return Gt.title=Ui(Nt.title,ft),"children"in Gt&&(Gt.children=Fs(Gt.children,ft)),Gt});var wl=ht=>[le.useCallback(Ot=>Fs(Ot,ht),[ht])],Hl=Hr((ht,ft)=>{const{_renderTimes:Ot}=ht,{_renderTimes:Nt}=ft;return Ot!==Nt}),Cs=kn((ht,ft)=>{const{_renderTimes:Ot}=ht,{_renderTimes:Nt}=ft;return Ot!==Nt}),oi=Ce(36237),Ss=Ce(17835),os=Ce(63356),au=Ce(16931),su=Ce(51636),Cl=ht=>{const{componentCls:ft,lineWidth:Ot,lineType:Nt,tableBorderColor:Gt,tableHeaderBg:Jt,tablePaddingVertical:an,tablePaddingHorizontal:rn,calc:fn}=ht,ln=`${(0,oi.unit)(Ot)} ${Nt} ${Gt}`,Rn=(On,En,yn)=>({[`&${ft}-${On}`]:{[`> ${ft}-container`]:{[`> ${ft}-content, > ${ft}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ft}-expanded-row-fixed`]:{margin:`${(0,oi.unit)(fn(En).mul(-1).equal())}
${(0,oi.unit)(fn(fn(yn).add(Ot)).mul(-1).equal())}`}}}}}});return{[`${ft}-wrapper`]:{[`${ft}${ft}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ft}-title`]:{border:ln,borderBottom:0},[`> ${ft}-container`]:{borderInlineStart:ln,borderTop:ln,[`
> ${ft}-content,
> ${ft}-header,
> ${ft}-body,
> ${ft}-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:ln},"> thead":{"> tr:not(:last-child) > th":{borderBottom:ln},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ft}-cell-fix-right-first::after`]:{borderInlineEnd:ln}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ft}-expanded-row-fixed`]:{margin:`${(0,oi.unit)(fn(an).mul(-1).equal())} ${(0,oi.unit)(fn(fn(rn).add(Ot)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ot,bottom:0,borderInlineEnd:ln,content:'""'}}}}}},[`&${ft}-scroll-horizontal`]:{[`> ${ft}-container > ${ft}-body`]:{"> table > tbody":{[`
> tr${ft}-expanded-row,
> tr${ft}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Rn("middle",ht.tablePaddingVerticalMiddle,ht.tablePaddingHorizontalMiddle)),Rn("small",ht.tablePaddingVerticalSmall,ht.tablePaddingHorizontalSmall)),{[`> ${ft}-footer`]:{border:ln,borderTop:0}}),[`${ft}-cell`]:{[`${ft}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,oi.unit)(Ot)} 0 ${(0,oi.unit)(Ot)} ${Jt}`}},[`${ft}-bordered ${ft}-cell-scrollbar`]:{borderInlineEnd:ln}}}},Es=ht=>{const{componentCls:ft}=ht;return{[`${ft}-wrapper`]:{[`${ft}-cell-ellipsis`]:Object.assign(Object.assign({},os.vS),{wordBreak:"keep-all",[`
&${ft}-cell-fix-left-last,
&${ft}-cell-fix-right-first
`]:{overflow:"visible",[`${ft}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ft}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},lu=ht=>{const{componentCls:ft}=ht;return{[`${ft}-wrapper`]:{[`${ft}-tbody > tr${ft}-placeholder`]:{textAlign:"center",color:ht.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ht.colorBgContainer}}}}},Gl=ht=>{const{componentCls:ft,antCls:Ot,motionDurationSlow:Nt,lineWidth:Gt,paddingXS:Jt,lineType:an,tableBorderColor:rn,tableExpandIconBg:fn,tableExpandColumnWidth:ln,borderRadius:Rn,tablePaddingVertical:On,tablePaddingHorizontal:En,tableExpandedRowBg:yn,paddingXXS:vn,expandIconMarginTop:or,expandIconSize:zn,expandIconHalfInner:sr,expandIconScale:pr,calc:lr}=ht,br=`${(0,oi.unit)(Gt)} ${an} ${rn}`,Ir=lr(vn).sub(Gt).equal();return{[`${ft}-wrapper`]:{[`${ft}-expand-icon-col`]:{width:ln},[`${ft}-row-expand-icon-cell`]:{textAlign:"center",[`${ft}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ft}-row-indent`]:{height:1,float:"left"},[`${ft}-row-expand-icon`]:Object.assign(Object.assign({},(0,os.Nd)(ht)),{position:"relative",float:"left",width:zn,height:zn,color:"inherit",lineHeight:(0,oi.unit)(zn),background:fn,border:br,borderRadius:Rn,transform:`scale(${pr})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Nt} ease-out`,content:'""'},"&::before":{top:sr,insetInlineEnd:Ir,insetInlineStart:Ir,height:Gt},"&::after":{top:Ir,bottom:Ir,insetInlineStart:sr,width:Gt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${ft}-row-indent + ${ft}-row-expand-icon`]:{marginTop:or,marginInlineEnd:Jt},[`tr${ft}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:yn}},[`${Ot}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${ft}-expanded-row-fixed`]:{position:"relative",margin:`${(0,oi.unit)(lr(On).mul(-1).equal())} ${(0,oi.unit)(lr(En).mul(-1).equal())}`,padding:`${(0,oi.unit)(On)} ${(0,oi.unit)(En)}`}}}},Vl=ht=>{const{componentCls:ft,antCls:Ot,iconCls:Nt,tableFilterDropdownWidth:Gt,tableFilterDropdownSearchWidth:Jt,paddingXXS:an,paddingXS:rn,colorText:fn,lineWidth:ln,lineType:Rn,tableBorderColor:On,headerIconColor:En,fontSizeSM:yn,tablePaddingHorizontal:vn,borderRadius:or,motionDurationSlow:zn,colorTextDescription:sr,colorPrimary:pr,tableHeaderFilterActiveBg:lr,colorTextDisabled:br,tableFilterDropdownBg:Ir,tableFilterDropdownHeight:Rr,controlItemBgHover:Dr,controlItemBgActive:gi,boxShadowSecondary:Jr,filterDropdownMenuBg:zr,calc:ai}=ht,Nr=`${Ot}-dropdown`,Br=`${ft}-filter-dropdown`,Sr=`${Ot}-tree`,mr=`${(0,oi.unit)(ln)} ${Rn} ${On}`;return[{[`${ft}-wrapper`]:{[`${ft}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ft}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:ai(an).mul(-1).equal(),marginInline:`${(0,oi.unit)(an)} ${(0,oi.unit)(ai(vn).div(2).mul(-1).equal())}`,padding:`0 ${(0,oi.unit)(an)}`,color:En,fontSize:yn,borderRadius:or,cursor:"pointer",transition:`all ${zn}`,"&:hover":{color:sr,background:lr},"&.active":{color:pr}}}},{[`${Ot}-dropdown`]:{[Br]:Object.assign(Object.assign({},(0,os.Wf)(ht)),{minWidth:Gt,backgroundColor:Ir,borderRadius:or,boxShadow:Jr,overflow:"hidden",[`${Nr}-menu`]:{maxHeight:Rr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:zr,"&:empty::after":{display:"block",padding:`${(0,oi.unit)(rn)} 0`,color:br,fontSize:yn,textAlign:"center",content:'"Not Found"'}},[`${Br}-tree`]:{paddingBlock:`${(0,oi.unit)(rn)} 0`,paddingInline:rn,[Sr]:{padding:0},[`${Sr}-treenode ${Sr}-node-content-wrapper:hover`]:{backgroundColor:Dr},[`${Sr}-treenode-checkbox-checked ${Sr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:gi}}},[`${Br}-search`]:{padding:rn,borderBottom:mr,"&-input":{input:{minWidth:Jt},[Nt]:{color:br}}},[`${Br}-checkall`]:{width:"100%",marginBottom:an,marginInlineStart:an},[`${Br}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,oi.unit)(ai(rn).sub(ln).equal())} ${(0,oi.unit)(rn)}`,overflow:"hidden",borderTop:mr}})}},{[`${Ot}-dropdown ${Br}, ${Br}-submenu`]:{[`${Ot}-checkbox-wrapper + span`]:{paddingInlineStart:rn,color:fn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},_s=ht=>{const{componentCls:ft,lineWidth:Ot,colorSplit:Nt,motionDurationSlow:Gt,zIndexTableFixed:Jt,tableBg:an,zIndexTableSticky:rn,calc:fn}=ht,ln=Nt;return{[`${ft}-wrapper`]:{[`
${ft}-cell-fix-left,
${ft}-cell-fix-right
`]:{position:"sticky !important",zIndex:Jt,background:an},[`
${ft}-cell-fix-left-first::after,
${ft}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:fn(Ot).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${Gt}`,content:'""',pointerEvents:"none"},[`${ft}-cell-fix-left-all::after`]:{display:"none"},[`
${ft}-cell-fix-right-first::after,
${ft}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:fn(Ot).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Gt}`,content:'""',pointerEvents:"none"},[`${ft}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:fn(rn).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${Gt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ft}-ping-left`]:{[`&:not(${ft}-has-fix-left) ${ft}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${ln}`},[`
${ft}-cell-fix-left-first::after,
${ft}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${ln}`},[`${ft}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ft}-ping-right`]:{[`&:not(${ft}-has-fix-right) ${ft}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${ln}`},[`
${ft}-cell-fix-right-first::after,
${ft}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${ln}`}},[`${ft}-fixed-column-gapped`]:{[`
${ft}-cell-fix-left-first::after,
${ft}-cell-fix-left-last::after,
${ft}-cell-fix-right-first::after,
${ft}-cell-fix-right-last::after
`]:{boxShadow:"none"}}}}},$s=ht=>{const{componentCls:ft,antCls:Ot,margin:Nt}=ht;return{[`${ft}-wrapper`]:{[`${ft}-pagination${Ot}-pagination`]:{margin:`${(0,oi.unit)(Nt)} 0`},[`${ft}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ht.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Xl=ht=>{const{componentCls:ft,tableRadius:Ot}=ht;return{[`${ft}-wrapper`]:{[ft]:{[`${ft}-title, ${ft}-header`]:{borderRadius:`${(0,oi.unit)(Ot)} ${(0,oi.unit)(Ot)} 0 0`},[`${ft}-title + ${ft}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ft}-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:Ot,borderStartEndRadius:Ot,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ot},"> *:last-child":{borderStartEndRadius:Ot}}},"&-footer":{borderRadius:`0 0 ${(0,oi.unit)(Ot)} ${(0,oi.unit)(Ot)}`}}}}},Yl=ht=>{const{componentCls:ft}=ht;return{[`${ft}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ft}-pagination-left`]:{justifyContent:"flex-end"},[`${ft}-pagination-right`]:{justifyContent:"flex-start"},[`${ft}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ft}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ft}-row-indent`]:{float:"right"}}}}},ms=ht=>{const{componentCls:ft,antCls:Ot,iconCls:Nt,fontSizeIcon:Gt,padding:Jt,paddingXS:an,headerIconColor:rn,headerIconHoverColor:fn,tableSelectionColumnWidth:ln,tableSelectedRowBg:Rn,tableSelectedRowHoverBg:On,tableRowHoverBg:En,tablePaddingHorizontal:yn,calc:vn}=ht;return{[`${ft}-wrapper`]:{[`${ft}-selection-col`]:{width:ln,[`&${ft}-selection-col-with-dropdown`]:{width:vn(ln).add(Gt).add(vn(Jt).div(4)).equal()}},[`${ft}-bordered ${ft}-selection-col`]:{width:vn(ln).add(vn(an).mul(2)).equal(),[`&${ft}-selection-col-with-dropdown`]:{width:vn(ln).add(Gt).add(vn(Jt).div(4)).add(vn(an).mul(2)).equal()}},[`
table tr th${ft}-selection-column,
table tr td${ft}-selection-column,
${ft}-selection-column
`]:{paddingInlineEnd:ht.paddingXS,paddingInlineStart:ht.paddingXS,textAlign:"center",[`${Ot}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ft}-selection-column${ft}-cell-fix-left`]:{zIndex:vn(ht.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${ft}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ft}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ft}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ht.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,oi.unit)(vn(yn).div(4).equal()),[Nt]:{color:rn,fontSize:Gt,verticalAlign:"baseline","&:hover":{color:fn}}},[`${ft}-tbody`]:{[`${ft}-row`]:{[`&${ft}-row-selected`]:{[`> ${ft}-cell`]:{background:Rn,"&-row-hover":{background:On}}},[`> ${ft}-cell-row-hover`]:{background:En}}}}}},cu=ht=>{const{componentCls:ft,tableExpandColumnWidth:Ot,calc:Nt}=ht,Gt=(Jt,an,rn,fn)=>({[`${ft}${ft}-${Jt}`]:{fontSize:fn,[`
${ft}-title,
${ft}-footer,
${ft}-cell,
${ft}-thead > tr > th,
${ft}-tbody > tr > th,
${ft}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${(0,oi.unit)(an)} ${(0,oi.unit)(rn)}`},[`${ft}-filter-trigger`]:{marginInlineEnd:(0,oi.unit)(Nt(rn).div(2).mul(-1).equal())},[`${ft}-expanded-row-fixed`]:{margin:`${(0,oi.unit)(Nt(an).mul(-1).equal())} ${(0,oi.unit)(Nt(rn).mul(-1).equal())}`},[`${ft}-tbody`]:{[`${ft}-wrapper:only-child ${ft}`]:{marginBlock:(0,oi.unit)(Nt(an).mul(-1).equal()),marginInline:`${(0,oi.unit)(Nt(Ot).sub(rn).equal())} ${(0,oi.unit)(Nt(rn).mul(-1).equal())}`}},[`${ft}-selection-extra`]:{paddingInlineStart:(0,oi.unit)(Nt(rn).div(4).equal())}}});return{[`${ft}-wrapper`]:Object.assign(Object.assign({},Gt("middle",ht.tablePaddingVerticalMiddle,ht.tablePaddingHorizontalMiddle,ht.tableFontSizeMiddle)),Gt("small",ht.tablePaddingVerticalSmall,ht.tablePaddingHorizontalSmall,ht.tableFontSizeSmall))}},du=ht=>{const{componentCls:ft,marginXXS:Ot,fontSizeIcon:Nt,headerIconColor:Gt,headerIconHoverColor:Jt}=ht;return{[`${ft}-wrapper`]:{[`${ft}-thead th${ft}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ht.motionDurationSlow}, left 0s`,"&:hover":{background:ht.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ht.colorPrimary},[`
&${ft}-cell-fix-left:hover,
&${ft}-cell-fix-right:hover
`]:{background:ht.tableFixedHeaderSortActiveBg}},[`${ft}-thead th${ft}-column-sort`]:{background:ht.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ft}-column-sort`]:{background:ht.tableBodySortBg},[`${ft}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${ft}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ft}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${ft}-column-sorter`]:{marginInlineStart:Ot,color:Gt,fontSize:0,transition:`color ${ht.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Nt,"&.active":{color:ht.colorPrimary}},[`${ft}-column-sorter-up + ${ft}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ft}-column-sorters:hover ${ft}-column-sorter`]:{color:Jt}}}},fu=ht=>{const{componentCls:ft,opacityLoading:Ot,tableScrollThumbBg:Nt,tableScrollThumbBgHover:Gt,tableScrollThumbSize:Jt,tableScrollBg:an,zIndexTableSticky:rn,stickyScrollBarBorderRadius:fn,lineWidth:ln,lineType:Rn,tableBorderColor:On}=ht,En=`${(0,oi.unit)(ln)} ${Rn} ${On}`;return{[`${ft}-wrapper`]:{[`${ft}-sticky`]:{"&-holder":{position:"sticky",zIndex:rn,background:ht.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,oi.unit)(Jt)} !important`,zIndex:rn,display:"flex",alignItems:"center",background:an,borderTop:En,opacity:Ot,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Jt,backgroundColor:Nt,borderRadius:fn,transition:`all ${ht.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Gt}}}}}}},ma=ht=>{const{componentCls:ft,lineWidth:Ot,tableBorderColor:Nt,calc:Gt}=ht,Jt=`${(0,oi.unit)(Ot)} ${ht.lineType} ${Nt}`;return{[`${ft}-wrapper`]:{[`${ft}-summary`]:{position:"relative",zIndex:ht.zIndexTableFixed,background:ht.tableBg,"> tr":{"> th, > td":{borderBottom:Jt}}},[`div${ft}-summary`]:{boxShadow:`0 ${(0,oi.unit)(Gt(Ot).mul(-1).equal())} 0 ${Nt}`}}}},ua=ht=>{const{componentCls:ft,motionDurationMid:Ot,lineWidth:Nt,lineType:Gt,tableBorderColor:Jt,calc:an}=ht,rn=`${(0,oi.unit)(Nt)} ${Gt} ${Jt}`,fn=`${ft}-expanded-row-cell`;return{[`${ft}-wrapper`]:{[`${ft}-tbody-virtual`]:{[`${ft}-tbody-virtual-holder-inner`]:{[`
& > ${ft}-row,
& > div:not(${ft}-row) > ${ft}-row
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${ft}-cell`]:{borderBottom:rn,transition:`background ${Ot}`},[`${ft}-expanded-row`]:{[`${fn}${fn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,oi.unit)(Nt)})`,borderInlineEnd:"none"}}},[`${ft}-bordered`]:{[`${ft}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:rn,position:"absolute"},[`${ft}-cell`]:{borderInlineEnd:rn,[`&${ft}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:an(Nt).mul(-1).equal(),borderInlineStart:rn}}},[`&${ft}-virtual`]:{[`${ft}-placeholder ${ft}-cell`]:{borderInlineEnd:rn,borderBottom:rn}}}}}};const Ko=ht=>{const{componentCls:ft,fontWeightStrong:Ot,tablePaddingVertical:Nt,tablePaddingHorizontal:Gt,tableExpandColumnWidth:Jt,lineWidth:an,lineType:rn,tableBorderColor:fn,tableFontSize:ln,tableBg:Rn,tableRadius:On,tableHeaderTextColor:En,motionDurationMid:yn,tableHeaderBg:vn,tableHeaderCellSplitColor:or,tableFooterTextColor:zn,tableFooterBg:sr,calc:pr}=ht,lr=`${(0,oi.unit)(an)} ${rn} ${fn}`;return{[`${ft}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,os.dF)()),{[ft]:Object.assign(Object.assign({},(0,os.Wf)(ht)),{fontSize:ln,background:Rn,borderRadius:`${(0,oi.unit)(On)} ${(0,oi.unit)(On)} 0 0`,scrollbarColor:`${ht.tableScrollThumbBg} ${ht.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,oi.unit)(On)} ${(0,oi.unit)(On)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${ft}-cell,
${ft}-thead > tr > th,
${ft}-tbody > tr > th,
${ft}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${(0,oi.unit)(Nt)} ${(0,oi.unit)(Gt)}`,overflowWrap:"break-word"},[`${ft}-title`]:{padding:`${(0,oi.unit)(Nt)} ${(0,oi.unit)(Gt)}`},[`${ft}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:En,fontWeight:Ot,textAlign:"start",background:vn,borderBottom:lr,transition:`background ${yn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ft}-selection-column):not(${ft}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:or,transform:"translateY(-50%)",transition:`background-color ${yn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ft}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${yn}, border-color ${yn}`,borderBottom:lr,[`
> ${ft}-wrapper:only-child,
> ${ft}-expanded-row-fixed > ${ft}-wrapper:only-child
`]:{[ft]:{marginBlock:(0,oi.unit)(pr(Nt).mul(-1).equal()),marginInline:`${(0,oi.unit)(pr(Jt).sub(Gt).equal())}
${(0,oi.unit)(pr(Gt).mul(-1).equal())}`,[`${ft}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:En,fontWeight:Ot,textAlign:"start",background:vn,borderBottom:lr,transition:`background ${yn} ease`}}},[`${ft}-footer`]:{padding:`${(0,oi.unit)(Nt)} ${(0,oi.unit)(Gt)}`,color:zn,background:sr}})}},Ws=ht=>{const{colorFillAlter:ft,colorBgContainer:Ot,colorTextHeading:Nt,colorFillSecondary:Gt,colorFillContent:Jt,controlItemBgActive:an,controlItemBgActiveHover:rn,padding:fn,paddingSM:ln,paddingXS:Rn,colorBorderSecondary:On,borderRadiusLG:En,controlHeight:yn,colorTextPlaceholder:vn,fontSize:or,fontSizeSM:zn,lineHeight:sr,lineWidth:pr,colorIcon:lr,colorIconHover:br,opacityLoading:Ir,controlInteractiveSize:Rr}=ht,Dr=new Ss.FastColor(Gt).onBackground(Ot).toHexString(),gi=new Ss.FastColor(Jt).onBackground(Ot).toHexString(),Jr=new Ss.FastColor(ft).onBackground(Ot).toHexString(),zr=new Ss.FastColor(lr),ai=new Ss.FastColor(br),Nr=Rr/2-pr,Br=Nr*2+pr*3;return{headerBg:Jr,headerColor:Nt,headerSortActiveBg:Dr,headerSortHoverBg:gi,bodySortBg:Jr,rowHoverBg:Jr,rowSelectedBg:an,rowSelectedHoverBg:rn,rowExpandedBg:ft,cellPaddingBlock:fn,cellPaddingInline:fn,cellPaddingBlockMD:ln,cellPaddingInlineMD:Rn,cellPaddingBlockSM:Rn,cellPaddingInlineSM:Rn,borderColor:On,headerBorderRadius:En,footerBg:Jr,footerColor:Nt,cellFontSize:or,cellFontSizeMD:or,cellFontSizeSM:or,headerSplitColor:On,fixedHeaderSortActiveBg:Dr,headerFilterHoverBg:Jt,filterDropdownMenuBg:Ot,filterDropdownBg:Ot,expandIconBg:Ot,selectionColumnWidth:yn,stickyScrollBarBg:vn,stickyScrollBarBorderRadius:100,expandIconMarginTop:(or*sr-pr*3)/2-Math.ceil((zn*1.4-pr*3)/2),headerIconColor:zr.clone().setA(zr.a*Ir).toRgbString(),headerIconHoverColor:ai.clone().setA(ai.a*Ir).toRgbString(),expandIconHalfInner:Nr,expandIconSize:Br,expandIconScale:Rr/Br}},Jl=2;var il=(0,au.I$)("Table",ht=>{const{colorTextHeading:ft,colorSplit:Ot,colorBgContainer:Nt,controlInteractiveSize:Gt,headerBg:Jt,headerColor:an,headerSortActiveBg:rn,headerSortHoverBg:fn,bodySortBg:ln,rowHoverBg:Rn,rowSelectedBg:On,rowSelectedHoverBg:En,rowExpandedBg:yn,cellPaddingBlock:vn,cellPaddingInline:or,cellPaddingBlockMD:zn,cellPaddingInlineMD:sr,cellPaddingBlockSM:pr,cellPaddingInlineSM:lr,borderColor:br,footerBg:Ir,footerColor:Rr,headerBorderRadius:Dr,cellFontSize:gi,cellFontSizeMD:Jr,cellFontSizeSM:zr,headerSplitColor:ai,fixedHeaderSortActiveBg:Nr,headerFilterHoverBg:Br,filterDropdownBg:Sr,expandIconBg:mr,selectionColumnWidth:Mr,stickyScrollBarBg:Lr,calc:Qr}=ht,Er=(0,su.mergeToken)(ht,{tableFontSize:gi,tableBg:Nt,tableRadius:Dr,tablePaddingVertical:vn,tablePaddingHorizontal:or,tablePaddingVerticalMiddle:zn,tablePaddingHorizontalMiddle:sr,tablePaddingVerticalSmall:pr,tablePaddingHorizontalSmall:lr,tableBorderColor:br,tableHeaderTextColor:an,tableHeaderBg:Jt,tableFooterTextColor:Rr,tableFooterBg:Ir,tableHeaderCellSplitColor:ai,tableHeaderSortBg:rn,tableHeaderSortHoverBg:fn,tableBodySortBg:ln,tableFixedHeaderSortActiveBg:Nr,tableHeaderFilterActiveBg:Br,tableFilterDropdownBg:Sr,tableRowHoverBg:Rn,tableSelectedRowBg:On,tableSelectedRowHoverBg:En,zIndexTableFixed:Jl,zIndexTableSticky:Qr(Jl).add(1).equal({unit:!1}),tableFontSizeMiddle:Jr,tableFontSizeSmall:zr,tableSelectionColumnWidth:Mr,tableExpandIconBg:mr,tableExpandColumnWidth:Qr(Gt).add(Qr(ht.padding).mul(2)).equal(),tableExpandedRowBg:yn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Lr,tableScrollThumbBgHover:ft,tableScrollBg:Ot});return[Ko(Er),$s(Er),ma(Er),du(Er),Vl(Er),Cl(Er),Xl(Er),Gl(Er),ma(Er),lu(Er),ms(Er),_s(Er),fu(Er),Es(Er),cu(Er),Yl(Er),ua(Er)]},Ws,{unitless:{expandIconScale:!0}});const hu=[],pu=(ht,ft)=>{var Ot,Nt;const{prefixCls:Gt,className:Jt,rootClassName:an,style:rn,size:fn,bordered:ln,dropdownPrefixCls:Rn,dataSource:On,pagination:En,rowSelection:yn,rowKey:vn="key",rowClassName:or,columns:zn,children:sr,childrenColumnName:pr,onChange:lr,getPopupContainer:br,loading:Ir,expandIcon:Rr,expandable:Dr,expandedRowRender:gi,expandIconColumnIndex:Jr,indentSize:zr,scroll:ai,sortDirections:Nr,locale:Br,showSorterTooltip:Sr={target:"full-header"},virtual:mr}=ht,Mr=(0,Ci.ln)("Table"),Lr=le.useMemo(()=>zn||cn(sr),[zn,sr]),Qr=le.useMemo(()=>Lr.some(bi=>bi.responsive),[Lr]),Er=(0,_o.Z)(Qr),Oi=le.useMemo(()=>{const bi=new Set(Object.keys(Er).filter(Bi=>Er[Bi]));return Lr.filter(Bi=>!Bi.responsive||Bi.responsive.some(yo=>bi.has(yo)))},[Lr,Er]),Ii=(0,Qi.Z)(ht,["className","style","columns"]),{locale:xo=ha.Z,direction:fo,table:io,renderEmpty:ho,getPrefixCls:So,getPopupContainer:Ai}=le.useContext(Yi.E_),Di=(0,Ri.Z)(fn),Eo=Object.assign(Object.assign({},xo.Table),Br),Mo=On||hu,Zr=So("table",Gt),pi=So("dropdown",Rn),[,$r]=(0,cs.ZP)(),kr=(0,_i.Z)(Zr),[Li,Ki,uo]=il(Zr,kr),to=Object.assign(Object.assign({childrenColumnName:pr,expandIconColumnIndex:Jr},Dr),{expandIcon:(Ot=Dr==null?void 0:Dr.expandIcon)!==null&&Ot!==void 0?Ot:(Nt=io==null?void 0:io.expandable)===null||Nt===void 0?void 0:Nt.expandIcon}),{childrenColumnName:To="children"}=to,Bo=le.useMemo(()=>Mo.some(bi=>bi==null?void 0:bi[To])?"nest":gi||Dr!=null&&Dr.expandedRowRender?"row":null,[Mo]),Yr={body:le.useRef(null)},ni=Ei(Zr),Vi=le.useRef(null),eo=le.useRef(null);si(ft,()=>Object.assign(Object.assign({},eo.current),{nativeElement:Vi.current}));const Ji=le.useMemo(()=>typeof vn=="function"?vn:bi=>bi==null?void 0:bi[vn],[vn]),[$o]=Ba(Mo,To,Ji),Oo={},va=function(bi,Bi){let yo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Io,Go,zo,Fa;const ea=Object.assign(Object.assign({},Oo),bi);yo&&((Io=Oo.resetPagination)===null||Io===void 0||Io.call(Oo),!((Go=ea.pagination)===null||Go===void 0)&&Go.current&&(ea.pagination.current=1),En&&((zo=En.onChange)===null||zo===void 0||zo.call(En,1,(Fa=ea.pagination)===null||Fa===void 0?void 0:Fa.pageSize))),ai&&ai.scrollToFirstRowOnChange!==!1&&Yr.body.current&&(0,Zi.Z)(0,{getContainer:()=>Yr.body.current}),lr==null||lr(ea.pagination,ea.filters,ea.sorter,{currentDataSource:Ti(ps(Mo,ea.sorterStates,To),ea.filterStates,To),action:Bi})},po=(bi,Bi)=>{va({sorter:bi,sorterStates:Bi},"sort",!1)},[$i,no,oo,Lo]=Zl({prefixCls:Zr,mergedColumns:Oi,onSorterChange:po,sortDirections:Nr||["ascend","descend"],tableLocale:Eo,showSorterTooltip:Sr}),wo=le.useMemo(()=>ps(Mo,no,To),[Mo,no]);Oo.sorter=Lo(),Oo.sorterStates=no;const zi=(bi,Bi)=>{va({filters:bi,filterStates:Bi},"filter",!0)},[mo,Xi,Qo]=ko({prefixCls:Zr,locale:Eo,dropdownPrefixCls:pi,mergedColumns:Oi,onFilterChange:zi,getPopupContainer:br||Ai,rootClassName:Ae()(an,kr)}),Ro=Ti(wo,Xi,To);Oo.filters=Qo,Oo.filterStates=Xi;const ca=le.useMemo(()=>{const bi={};return Object.keys(Qo).forEach(Bi=>{Qo[Bi]!==null&&(bi[Bi]=Qo[Bi])}),Object.assign(Object.assign({},oo),{filters:bi})},[oo,Qo]),[ga]=wl(ca),Ga=(bi,Bi)=>{va({pagination:Object.assign(Object.assign({},Oo.pagination),{current:bi,pageSize:Bi})},"paginate")},[ao,Zs]=La(Ro.length,Ga,En);Oo.pagination=En===!1?{}:xa(ao,En),Oo.resetPagination=Zs;const da=le.useMemo(()=>{if(En===!1||!ao.pageSize)return Ro;const{current:bi=1,total:Bi,pageSize:yo=Za}=ao;return Ro.length<Bi?Ro.length>yo?Ro.slice((bi-1)*yo,bi*yo):Ro:Ro.slice((bi-1)*yo,bi*yo)},[!!En,Ro,ao==null?void 0:ao.current,ao==null?void 0:ao.pageSize,ao==null?void 0:ao.total]),[Ma,Sa]=Wr({prefixCls:Zr,data:Ro,pageData:da,getRowKey:Ji,getRecordByKey:$o,expandType:Bo,childrenColumnName:To,locale:Eo,getPopupContainer:br||Ai},yn),ya=(bi,Bi,yo)=>{let Io;return typeof or=="function"?Io=Ae()(or(bi,Bi,yo)):Io=Ae()(or),Ae()({[`${Zr}-row-selected`]:Sa.has(Ji(bi,Bi))},Io)};to.__PARENT_RENDER_ICON__=to.expandIcon,to.expandIcon=to.expandIcon||Rr||di(Eo),Bo==="nest"&&to.expandIconColumnIndex===void 0?to.expandIconColumnIndex=yn?1:0:to.expandIconColumnIndex>0&&yn&&(to.expandIconColumnIndex-=1),typeof to.indentSize!="number"&&(to.indentSize=typeof zr=="number"?zr:15);const so=le.useCallback(bi=>ga(Ma(mo($i(bi)))),[$i,mo,Ma]);let Ea,as;if(En!==!1&&(ao!=null&&ao.total)){let bi;ao.size?bi=ao.size:bi=Di==="small"||Di==="middle"?"small":void 0;const Bi=Go=>le.createElement(Zo.Z,Object.assign({},ao,{className:Ae()(`${Zr}-pagination ${Zr}-pagination-${Go}`,ao.className),size:bi})),yo=fo==="rtl"?"left":"right",{position:Io}=ao;if(Io!==null&&Array.isArray(Io)){const Go=Io.find(ea=>ea.includes("top")),zo=Io.find(ea=>ea.includes("bottom")),Fa=Io.every(ea=>`${ea}`=="none");!Go&&!zo&&!Fa&&(as=Bi(yo)),Go&&(Ea=Bi(Go.toLowerCase().replace("top",""))),zo&&(as=Bi(zo.toLowerCase().replace("bottom","")))}else as=Bi(yo)}let Va;typeof Ir=="boolean"?Va={spinning:Ir}:typeof Ir=="object"&&(Va=Object.assign({spinning:!0},Ir));const Xa=Ae()(uo,kr,`${Zr}-wrapper`,io==null?void 0:io.className,{[`${Zr}-wrapper-rtl`]:fo==="rtl"},Jt,an,Ki),ol=Object.assign(Object.assign({},io==null?void 0:io.style),rn),al=typeof(Br==null?void 0:Br.emptyText)!="undefined"?Br.emptyText:(ho==null?void 0:ho("Table"))||le.createElement(yi.Z,{componentName:"Table"}),sl=mr?Cs:Hl,ll={},Ol=le.useMemo(()=>{const{fontSize:bi,lineHeight:Bi,lineWidth:yo,padding:Io,paddingXS:Go,paddingSM:zo}=$r,Fa=Math.floor(bi*Bi);switch(Di){case"middle":return zo*2+Fa+yo;case"small":return Go*2+Fa+yo;default:return Io*2+Fa+yo}},[$r,Di]);return mr&&(ll.listItemHeight=Ol),Li(le.createElement("div",{ref:Vi,className:Xa,style:ol},le.createElement(jo.Z,Object.assign({spinning:!1},Va),Ea,le.createElement(sl,Object.assign({},ll,Ii,{ref:eo,columns:Oi,direction:fo,expandable:to,prefixCls:Zr,className:Ae()({[`${Zr}-middle`]:Di==="middle",[`${Zr}-small`]:Di==="small",[`${Zr}-bordered`]:ln,[`${Zr}-empty`]:Mo.length===0},uo,kr,Ki),data:da,rowKey:Ji,rowClassName:ya,emptyText:al,internalHooks:a,internalRefs:Yr,transformColumns:so,getContainerWidth:ni})),as)))};var mu=le.forwardRef(pu);const El=(ht,ft)=>{const Ot=le.useRef(0);return Ot.current+=1,le.createElement(mu,Object.assign({},ht,{ref:ft,_renderTimes:Ot.current}))},Ka=le.forwardRef(El);Ka.SELECTION_COLUMN=Pi,Ka.EXPAND_COLUMN=yt,Ka.SELECTION_ALL=ro,Ka.SELECTION_INVERT=vo,Ka.SELECTION_NONE=go,Ka.Column=ur,Ka.ColumnGroup=Sn,Ka.Summary=Xe;var Tl=Ka,vu=Tl},18287:function(on,Lt,Ce){"use strict";Ce.d(Lt,{default:function(){return et}});var le=Ce(87632),yt=Ce(77654),a=Ce(59301),Te=Ce(52671),ge=Ce(8657),x=Ce(60499),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},ie=z,oe=Ce(7657),ee=function(Ye,Ge){return a.createElement(oe.Z,(0,x.Z)({},Ye,{ref:Ge,icon:ie}))},ue=a.forwardRef(ee),E=ue,re=Ce(92310),te=Ce.n(re),se=Ce(82661),ae=Ce(34061),he=Ce(48755),me=Ce(56082),ve=Ce(86641),pe=Ce(57700),be=Ce(12425);const je=4;function ke(Ve){const{dropPosition:Ye,dropLevelOffset:Ge,prefixCls:it,indent:qe,direction:vt="ltr"}=Ve,ot=vt==="ltr"?"left":"right",Qe=vt==="ltr"?"right":"left",Fe={[ot]:-Ge*qe+je,[Qe]:0};switch(Ye){case-1:Fe.top=-3;break;case 1:Fe.bottom=-3;break;default:Fe.bottom=-3,Fe[ot]=qe+je;break}return a.createElement("div",{style:Fe,className:`${it}-drop-indicator`})}var Be=ke,De=Ce(85278),Ee=a.forwardRef((Ve,Ye)=>{var Ge;const{getPrefixCls:it,direction:qe,virtual:vt,tree:ot}=a.useContext(he.E_),{prefixCls:Qe,className:Fe,showIcon:Re=!1,showLine:ne,switcherIcon:fe,switcherLoadingIcon:Ne,blockNode:We=!1,children:we,checkable:ye=!1,selectable:Oe=!0,draggable:$e,motion:Ze,style:Xe}=Ve,at=it("tree",Qe),lt=it(),mt=Ze!=null?Ze:Object.assign(Object.assign({},(0,ve.Z)(lt)),{motionAppear:!1}),ut=Object.assign(Object.assign({},Ve),{checkable:ye,selectable:Oe,showIcon:Re,motion:mt,blockNode:We,showLine:!!ne,dropIndicatorRender:Be}),[ct,Pt,wt]=(0,be.ZP)(at),[,Bt]=(0,pe.ZP)(),At=Bt.paddingXS/2+(((Ge=Bt.Tree)===null||Ge===void 0?void 0:Ge.titleHeight)||Bt.controlHeightSM),pt=a.useMemo(()=>{if(!$e)return!1;let kt={};switch(typeof $e){case"function":kt.nodeDraggable=$e;break;case"object":kt=Object.assign({},$e);break;default:break}return kt.icon!==!1&&(kt.icon=kt.icon||a.createElement(me.Z,null)),kt},[$e]),Mt=kt=>a.createElement(De.Z,{prefixCls:at,switcherIcon:fe,switcherLoadingIcon:Ne,treeNodeProps:kt,showLine:ne});return ct(a.createElement(le.ZP,Object.assign({itemHeight:At,ref:Ye,virtual:vt},ut,{style:Object.assign(Object.assign({},ot==null?void 0:ot.style),Xe),prefixCls:at,className:te()({[`${at}-icon-hide`]:!Re,[`${at}-block-node`]:We,[`${at}-unselectable`]:!Oe,[`${at}-rtl`]:qe==="rtl"},ot==null?void 0:ot.className,Fe,Pt,wt),direction:qe,checkable:ye&&a.createElement("span",{className:`${at}-checkbox-inner`}),selectable:Oe,switcherIcon:Mt,draggable:pt}),we))});const Ie=0,Me=1,Le=2;function Ae(Ve,Ye,Ge){const{key:it,children:qe}=Ge;function vt(ot){const Qe=ot[it],Fe=ot[qe];Ye(Qe,ot)!==!1&&Ae(Fe||[],Ye,Ge)}Ve.forEach(vt)}function Pe(Ve){let{treeData:Ye,expandedKeys:Ge,startKey:it,endKey:qe,fieldNames:vt}=Ve;const ot=[];let Qe=Ie;if(it&&it===qe)return[it];if(!it||!qe)return[];function Fe(Re){return Re===it||Re===qe}return Ae(Ye,Re=>{if(Qe===Le)return!1;if(Fe(Re)){if(ot.push(Re),Qe===Ie)Qe=Me;else if(Qe===Me)return Qe=Le,!1}else Qe===Me&&ot.push(Re);return Ge.includes(Re)},(0,ae.w$)(vt)),ot}function Ue(Ve,Ye,Ge){const it=(0,yt.Z)(Ye),qe=[];return Ae(Ve,(vt,ot)=>{const Qe=it.indexOf(vt);return Qe!==-1&&(qe.push(ot),it.splice(Qe,1)),!!it.length},(0,ae.w$)(Ge)),qe}var He=function(Ve,Ye){var Ge={};for(var it in Ve)Object.prototype.hasOwnProperty.call(Ve,it)&&Ye.indexOf(it)<0&&(Ge[it]=Ve[it]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,it=Object.getOwnPropertySymbols(Ve);qe<it.length;qe++)Ye.indexOf(it[qe])<0&&Object.prototype.propertyIsEnumerable.call(Ve,it[qe])&&(Ge[it[qe]]=Ve[it[qe]]);return Ge};function Je(Ve){const{isLeaf:Ye,expanded:Ge}=Ve;return Ye?a.createElement(Te.Z,null):Ge?a.createElement(ge.Z,null):a.createElement(E,null)}function st(Ve){let{treeData:Ye,children:Ge}=Ve;return Ye||(0,ae.zn)(Ge)}const _e=(Ve,Ye)=>{var{defaultExpandAll:Ge,defaultExpandParent:it,defaultExpandedKeys:qe}=Ve,vt=He(Ve,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const ot=a.useRef(null),Qe=a.useRef(null),Fe=()=>{const{keyEntities:ct}=(0,ae.I8)(st(vt));let Pt;return Ge?Pt=Object.keys(ct):it?Pt=(0,se.r7)(vt.expandedKeys||qe||[],ct):Pt=vt.expandedKeys||qe||[],Pt},[Re,ne]=a.useState(vt.selectedKeys||vt.defaultSelectedKeys||[]),[fe,Ne]=a.useState(()=>Fe());a.useEffect(()=>{"selectedKeys"in vt&&ne(vt.selectedKeys)},[vt.selectedKeys]),a.useEffect(()=>{"expandedKeys"in vt&&Ne(vt.expandedKeys)},[vt.expandedKeys]);const We=(ct,Pt)=>{var wt;return"expandedKeys"in vt||Ne(ct),(wt=vt.onExpand)===null||wt===void 0?void 0:wt.call(vt,ct,Pt)},we=(ct,Pt)=>{var wt;const{multiple:Bt,fieldNames:At}=vt,{node:pt,nativeEvent:Mt}=Pt,{key:kt=""}=pt,xt=st(vt),It=Object.assign(Object.assign({},Pt),{selected:!0}),Ut=(Mt==null?void 0:Mt.ctrlKey)||(Mt==null?void 0:Mt.metaKey),en=Mt==null?void 0:Mt.shiftKey;let St;Bt&&Ut?(St=ct,ot.current=kt,Qe.current=St,It.selectedNodes=Ue(xt,St,At)):Bt&&en?(St=Array.from(new Set([].concat((0,yt.Z)(Qe.current||[]),(0,yt.Z)(Pe({treeData:xt,expandedKeys:fe,startKey:kt,endKey:ot.current,fieldNames:At}))))),It.selectedNodes=Ue(xt,St,At)):(St=[kt],ot.current=kt,Qe.current=St,It.selectedNodes=Ue(xt,St,At)),(wt=vt.onSelect)===null||wt===void 0||wt.call(vt,St,It),"selectedKeys"in vt||ne(St)},{getPrefixCls:ye,direction:Oe}=a.useContext(he.E_),{prefixCls:$e,className:Ze,showIcon:Xe=!0,expandAction:at="click"}=vt,lt=He(vt,["prefixCls","className","showIcon","expandAction"]),mt=ye("tree",$e),ut=te()(`${mt}-directory`,{[`${mt}-directory-rtl`]:Oe==="rtl"},Ze);return a.createElement(Ee,Object.assign({icon:Je,ref:Ye,blockNode:!0},lt,{showIcon:Xe,expandAction:at,prefixCls:mt,className:ut,expandedKeys:fe,selectedKeys:Re,onSelect:we,onExpand:We}))};var nt=a.forwardRef(_e);const rt=Ee;rt.DirectoryTree=nt,rt.TreeNode=le.OF;var et=rt},12425:function(on,Lt,Ce){"use strict";Ce.d(Lt,{ZP:function(){return se},Yk:function(){return E},TM:function(){return re}});var le=Ce(36237),yt=Ce(36170),a=Ce(63356),Te=Ce(34961),ge=Ce(51636),x=Ce(16931);const z=ae=>{let{treeCls:he,treeNodeCls:me,directoryNodeSelectedBg:ve,directoryNodeSelectedColor:pe,motionDurationMid:be,borderRadius:je,controlItemBgHover:ke}=ae;return{[`${he}${he}-directory ${me}`]:{[`${he}-node-content-wrapper`]:{position:"static",[`> *:not(${he}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${be}`,content:'""',borderRadius:je},"&:hover:before":{background:ke}},[`${he}-switcher, ${he}-checkbox, ${he}-draggable-icon`]:{zIndex:1},"&-selected":{[`${he}-switcher, ${he}-draggable-icon`]:{color:pe},[`${he}-node-content-wrapper`]:{color:pe,background:"transparent","&:before, &:hover:before":{background:ve}}}}}},ie=new le.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),oe=(ae,he)=>({[`.${ae}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${he.motionDurationSlow}`}}}),ee=(ae,he)=>({[`.${ae}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:he.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,le.unit)(he.lineWidthBold)} solid ${he.colorPrimary}`,borderRadius:"50%",content:'""'}}}),ue=(ae,he)=>{const{treeCls:me,treeNodeCls:ve,treeNodePadding:pe,titleHeight:be,indentSize:je,nodeSelectedBg:ke,nodeHoverBg:Be,colorTextQuaternary:De,controlItemBgActiveDisabled:Se}=he;return{[me]:Object.assign(Object.assign({},(0,a.Wf)(he)),{background:he.colorBgContainer,borderRadius:he.borderRadius,transition:`background-color ${he.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${me}-rtl ${me}-switcher_close ${me}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${me}-active-focused)`]:Object.assign({},(0,a.oN)(he)),[`${me}-list-holder-inner`]:{alignItems:"flex-start"},[`&${me}-block-node`]:{[`${me}-list-holder-inner`]:{alignItems:"stretch",[`${me}-node-content-wrapper`]:{flex:"auto"},[`${ve}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${he.colorPrimary}`,opacity:0,animationName:ie,animationDuration:he.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:he.borderRadius}}},[ve]:{display:"flex",alignItems:"flex-start",marginBottom:pe,lineHeight:(0,le.unit)(be),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:pe},[`&-disabled ${me}-node-content-wrapper`]:{color:he.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${me}-checkbox-disabled + ${me}-node-selected,&${ve}-disabled${ve}-selected ${me}-node-content-wrapper`]:{backgroundColor:Se},[`${me}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${ve}-disabled)`]:{[`${me}-node-content-wrapper`]:{"&:hover":{color:he.nodeHoverColor}}},[`&-active ${me}-node-content-wrapper`]:{background:he.controlItemBgHover},[`&:not(${ve}-disabled).filter-node ${me}-title`]:{color:he.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${me}-draggable-icon`]:{flexShrink:0,width:be,textAlign:"center",visibility:"visible",color:De},[`&${ve}-disabled ${me}-draggable-icon`]:{visibility:"hidden"}}},[`${me}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:je}},[`${me}-draggable-icon`]:{visibility:"hidden"},[`${me}-switcher, ${me}-checkbox`]:{marginInlineEnd:he.calc(he.calc(be).sub(he.controlInteractiveSize)).div(2).equal()},[`${me}-switcher`]:Object.assign(Object.assign({},oe(ae,he)),{position:"relative",flex:"none",alignSelf:"stretch",width:be,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${he.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:be,height:be,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:he.borderRadius,transition:`all ${he.motionDurationSlow}`},[`&:not(${me}-switcher-noop):hover:before`]:{backgroundColor:he.colorBgTextHover},[`&_close ${me}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:he.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:he.calc(be).div(2).equal(),bottom:he.calc(pe).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${he.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:he.calc(he.calc(be).div(2).equal()).mul(.8).equal(),height:he.calc(be).div(2).equal(),borderBottom:`1px solid ${he.colorBorder}`,content:'""'}}}),[`${me}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:be,paddingBlock:0,paddingInline:he.paddingXS,background:"transparent",borderRadius:he.borderRadius,cursor:"pointer",transition:`all ${he.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},ee(ae,he)),{"&:hover":{backgroundColor:Be},[`&${me}-node-selected`]:{color:he.nodeSelectedColor,backgroundColor:ke},[`${me}-iconEle`]:{display:"inline-block",width:be,height:be,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${me}-unselectable ${me}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ve}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${he.colorPrimary}`},"&-show-line":{[`${me}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:he.calc(be).div(2).equal(),bottom:he.calc(pe).mul(-1).equal(),borderInlineEnd:`1px solid ${he.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${me}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ve}-leaf-last ${me}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,le.unit)(he.calc(be).div(2).equal())} !important`}})}},E=function(ae,he){let me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const ve=`.${ae}`,pe=`${ve}-treenode`,be=he.calc(he.paddingXS).div(2).equal(),je=(0,ge.mergeToken)(he,{treeCls:ve,treeNodeCls:pe,treeNodePadding:be});return[ue(ae,je),me&&z(je)].filter(Boolean)},re=ae=>{const{controlHeightSM:he,controlItemBgHover:me,controlItemBgActive:ve}=ae,pe=he;return{titleHeight:pe,indentSize:pe,nodeHoverBg:me,nodeHoverColor:ae.colorText,nodeSelectedBg:ve,nodeSelectedColor:ae.colorText}},te=ae=>{const{colorTextLightSolid:he,colorPrimary:me}=ae;return Object.assign(Object.assign({},re(ae)),{directoryNodeSelectedColor:he,directoryNodeSelectedBg:me})};var se=(0,x.I$)("Tree",(ae,he)=>{let{prefixCls:me}=he;return[{[ae.componentCls]:(0,yt.C2)(`${me}-checkbox`,ae)},E(me,ae),(0,Te.Z)(ae)]},te)},85278:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return he}});var le=Ce(59301),yt=Ce(60499),a={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"},Te=a,ge=Ce(7657),x=function(ve,pe){return le.createElement(ge.Z,(0,yt.Z)({},ve,{ref:pe,icon:Te}))},z=le.forwardRef(x),ie=z,oe=Ce(52671),ee=Ce(58617),ue=Ce(15075),E=Ce(43531),re=Ce(92310),te=Ce.n(re),se=Ce(22703),he=me=>{const{prefixCls:ve,switcherIcon:pe,treeNodeProps:be,showLine:je,switcherLoadingIcon:ke}=me,{isLeaf:Be,expanded:De,loading:Se}=be;if(Se)return le.isValidElement(ke)?ke:le.createElement(ee.Z,{className:`${ve}-switcher-loading-icon`});let Ee;if(je&&typeof je=="object"&&(Ee=je.showLeafIcon),Be){if(!je)return null;if(typeof Ee!="boolean"&&Ee){const Le=typeof Ee=="function"?Ee(be):Ee,Ae=`${ve}-switcher-line-custom-icon`;return le.isValidElement(Le)?(0,se.Tm)(Le,{className:te()(Le.props.className||"",Ae)}):Le}return Ee?le.createElement(oe.Z,{className:`${ve}-switcher-line-icon`}):le.createElement("span",{className:`${ve}-switcher-leaf-line`})}const Ie=`${ve}-switcher-icon`,Me=typeof pe=="function"?pe(be):pe;return le.isValidElement(Me)?(0,se.Tm)(Me,{className:te()(Me.props.className||"",Ie)}):Me!==void 0?Me:je?De?le.createElement(ue.Z,{className:`${ve}-switcher-line-icon`}):le.createElement(E.Z,{className:`${ve}-switcher-line-icon`}):le.createElement(ie,{className:Ie})}},94968:function(on,Lt,Ce){"use strict";Ce.d(Lt,{default:function(){return _t}});var le=Ce(59301),yt=Ce(77654),a=Ce(4676),Te=Ce(92310),ge=Ce.n(Te),x=Ce(60499),z=Ce(38705),ie=Ce(17212),oe=Ce(15793),ee=Ce(39153),ue=Ce(55401),E=Ce(18642),re=Ce(85899),te=Ce(42244),se=Ce(43749),ae=Ce(73001),he=Ce(11576),me=Ce(26112),ve=Ce(48736),pe=function(bt,Zt){if(bt&&Zt){var Kt=Array.isArray(Zt)?Zt:Zt.split(","),Yt=bt.name||"",Ft=bt.type||"",$t=Ft.replace(/\/.*$/,"");return Kt.some(function(zt){var Wt=zt.trim();if(/^\*(\/\*)?$/.test(zt))return!0;if(Wt.charAt(0)==="."){var hn=Yt.toLowerCase(),mn=Wt.toLowerCase(),In=[mn];return(mn===".jpg"||mn===".jpeg")&&(In=[".jpg",".jpeg"]),In.some(function(er){return hn.endsWith(er)})}return/\/\*$/.test(Wt)?$t===Wt.replace(/\/.*$/,""):Ft===Wt?!0:/^\w+$/.test(Wt)?((0,ve.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Wt,"'.Skip for check.")),!0):!1})}return!0};function be(bt,Zt){var Kt="cannot ".concat(bt.method," ").concat(bt.action," ").concat(Zt.status,"'"),Yt=new Error(Kt);return Yt.status=Zt.status,Yt.method=bt.method,Yt.url=bt.action,Yt}function je(bt){var Zt=bt.responseText||bt.response;if(!Zt)return Zt;try{return JSON.parse(Zt)}catch(Kt){return Zt}}function ke(bt){var Zt=new XMLHttpRequest;bt.onProgress&&Zt.upload&&(Zt.upload.onprogress=function($t){$t.total>0&&($t.percent=$t.loaded/$t.total*100),bt.onProgress($t)});var Kt=new FormData;bt.data&&Object.keys(bt.data).forEach(function(Ft){var $t=bt.data[Ft];if(Array.isArray($t)){$t.forEach(function(zt){Kt.append("".concat(Ft,"[]"),zt)});return}Kt.append(Ft,$t)}),bt.file instanceof Blob?Kt.append(bt.filename,bt.file,bt.file.name):Kt.append(bt.filename,bt.file),Zt.onerror=function($t){bt.onError($t)},Zt.onload=function(){return Zt.status<200||Zt.status>=300?bt.onError(be(bt,Zt),je(Zt)):bt.onSuccess(je(Zt),Zt)},Zt.open(bt.method,bt.action,!0),bt.withCredentials&&"withCredentials"in Zt&&(Zt.withCredentials=!0);var Yt=bt.headers||{};return Yt["X-Requested-With"]!==null&&Zt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Yt).forEach(function(Ft){Yt[Ft]!==null&&Zt.setRequestHeader(Ft,Yt[Ft])}),Zt.send(Kt),{abort:function(){Zt.abort()}}}var Be=function(){var bt=(0,he.Z)((0,ae.Z)().mark(function Zt(Kt,Yt){var Ft,$t,zt,Wt,hn,mn,In,er;return(0,ae.Z)().wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:mn=function(){return mn=(0,he.Z)((0,ae.Z)().mark(function Kn($n){return(0,ae.Z)().wrap(function(Tr){for(;;)switch(Tr.prev=Tr.next){case 0:return Tr.abrupt("return",new Promise(function(Cr){$n.file(function(Or){Yt(Or)?($n.fullPath&&!Or.webkitRelativePath&&(Object.defineProperties(Or,{webkitRelativePath:{writable:!0}}),Or.webkitRelativePath=$n.fullPath.replace(/^\//,""),Object.defineProperties(Or,{webkitRelativePath:{writable:!1}})),Cr(Or)):Cr(null)})}));case 1:case"end":return Tr.stop()}},Kn)})),mn.apply(this,arguments)},hn=function(Kn){return mn.apply(this,arguments)},Wt=function(){return Wt=(0,he.Z)((0,ae.Z)().mark(function Kn($n){var dr,Tr,Cr,Or,Vn;return(0,ae.Z)().wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:dr=$n.createReader(),Tr=[];case 2:return hr.next=5,new Promise(function(Hr){dr.readEntries(Hr,function(){return Hr([])})});case 5:if(Cr=hr.sent,Or=Cr.length,Or){hr.next=9;break}return hr.abrupt("break",12);case 9:for(Vn=0;Vn<Or;Vn++)Tr.push(Cr[Vn]);hr.next=2;break;case 12:return hr.abrupt("return",Tr);case 13:case"end":return hr.stop()}},Kn)})),Wt.apply(this,arguments)},zt=function(Kn){return Wt.apply(this,arguments)},Ft=[],$t=[],Kt.forEach(function(Jn){return $t.push(Jn.webkitGetAsEntry())}),In=function(){var Jn=(0,he.Z)((0,ae.Z)().mark(function Kn($n,dr){var Tr,Cr;return(0,ae.Z)().wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:if($n){Vn.next=2;break}return Vn.abrupt("return");case 2:if($n.path=dr||"",!$n.isFile){Vn.next=10;break}return Vn.next=6,hn($n);case 6:Tr=Vn.sent,Tr&&Ft.push(Tr),Vn.next=15;break;case 10:if(!$n.isDirectory){Vn.next=15;break}return Vn.next=13,zt($n);case 13:Cr=Vn.sent,$t.push.apply($t,(0,yt.Z)(Cr));case 15:case"end":return Vn.stop()}},Kn)}));return function($n,dr){return Jn.apply(this,arguments)}}(),er=0;case 9:if(!(er<$t.length)){fr.next=15;break}return fr.next=12,In($t[er]);case 12:er++,fr.next=9;break;case 15:return fr.abrupt("return",Ft);case 16:case"end":return fr.stop()}},Zt)}));return function(Kt,Yt){return bt.apply(this,arguments)}}(),De=Be,Se=+new Date,Ee=0;function Ie(){return"rc-upload-".concat(Se,"-").concat(++Ee)}var Me=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Le=function(bt){(0,ee.Z)(Kt,bt);var Zt=(0,ue.Z)(Kt);function Kt(){var Yt;(0,z.Z)(this,Kt);for(var Ft=arguments.length,$t=new Array(Ft),zt=0;zt<Ft;zt++)$t[zt]=arguments[zt];return Yt=Zt.call.apply(Zt,[this].concat($t)),(0,E.Z)((0,oe.Z)(Yt),"state",{uid:Ie()}),(0,E.Z)((0,oe.Z)(Yt),"reqs",{}),(0,E.Z)((0,oe.Z)(Yt),"fileInput",void 0),(0,E.Z)((0,oe.Z)(Yt),"_isMounted",void 0),(0,E.Z)((0,oe.Z)(Yt),"onChange",function(Wt){var hn=Yt.props,mn=hn.accept,In=hn.directory,er=Wt.target.files,ar=(0,yt.Z)(er).filter(function(fr){return!In||pe(fr,mn)});Yt.uploadFiles(ar),Yt.reset()}),(0,E.Z)((0,oe.Z)(Yt),"onClick",function(Wt){var hn=Yt.fileInput;if(hn){var mn=Wt.target,In=Yt.props.onClick;if(mn&&mn.tagName==="BUTTON"){var er=hn.parentNode;er.focus(),mn.blur()}hn.click(),In&&In(Wt)}}),(0,E.Z)((0,oe.Z)(Yt),"onKeyDown",function(Wt){Wt.key==="Enter"&&Yt.onClick(Wt)}),(0,E.Z)((0,oe.Z)(Yt),"onFileDrop",function(){var Wt=(0,he.Z)((0,ae.Z)().mark(function hn(mn){var In,er,ar;return(0,ae.Z)().wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:if(In=Yt.props.multiple,mn.preventDefault(),mn.type!=="dragover"){Jn.next=4;break}return Jn.abrupt("return");case 4:if(!Yt.props.directory){Jn.next=11;break}return Jn.next=7,De(Array.prototype.slice.call(mn.dataTransfer.items),function(Kn){return pe(Kn,Yt.props.accept)});case 7:er=Jn.sent,Yt.uploadFiles(er),Jn.next=14;break;case 11:ar=(0,yt.Z)(mn.dataTransfer.files).filter(function(Kn){return pe(Kn,Yt.props.accept)}),In===!1&&(ar=ar.slice(0,1)),Yt.uploadFiles(ar);case 14:case"end":return Jn.stop()}},hn)}));return function(hn){return Wt.apply(this,arguments)}}()),(0,E.Z)((0,oe.Z)(Yt),"uploadFiles",function(Wt){var hn=(0,yt.Z)(Wt),mn=hn.map(function(In){return In.uid=Ie(),Yt.processFile(In,hn)});Promise.all(mn).then(function(In){var er=Yt.props.onBatchStart;er==null||er(In.map(function(ar){var fr=ar.origin,Jn=ar.parsedFile;return{file:fr,parsedFile:Jn}})),In.filter(function(ar){return ar.parsedFile!==null}).forEach(function(ar){Yt.post(ar)})})}),(0,E.Z)((0,oe.Z)(Yt),"processFile",function(){var Wt=(0,he.Z)((0,ae.Z)().mark(function hn(mn,In){var er,ar,fr,Jn,Kn,$n,dr,Tr,Cr;return(0,ae.Z)().wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:if(er=Yt.props.beforeUpload,ar=mn,!er){Vn.next=14;break}return Vn.prev=3,Vn.next=6,er(mn,In);case 6:ar=Vn.sent,Vn.next=12;break;case 9:Vn.prev=9,Vn.t0=Vn.catch(3),ar=!1;case 12:if(ar!==!1){Vn.next=14;break}return Vn.abrupt("return",{origin:mn,parsedFile:null,action:null,data:null});case 14:if(fr=Yt.props.action,typeof fr!="function"){Vn.next=21;break}return Vn.next=18,fr(mn);case 18:Jn=Vn.sent,Vn.next=22;break;case 21:Jn=fr;case 22:if(Kn=Yt.props.data,typeof Kn!="function"){Vn.next=29;break}return Vn.next=26,Kn(mn);case 26:$n=Vn.sent,Vn.next=30;break;case 29:$n=Kn;case 30:return dr=((0,se.Z)(ar)==="object"||typeof ar=="string")&&ar?ar:mn,dr instanceof File?Tr=dr:Tr=new File([dr],mn.name,{type:mn.type}),Cr=Tr,Cr.uid=mn.uid,Vn.abrupt("return",{origin:mn,data:$n,parsedFile:Cr,action:Jn});case 35:case"end":return Vn.stop()}},hn,null,[[3,9]])}));return function(hn,mn){return Wt.apply(this,arguments)}}()),(0,E.Z)((0,oe.Z)(Yt),"saveFileInput",function(Wt){Yt.fileInput=Wt}),Yt}return(0,ie.Z)(Kt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ft){var $t=this,zt=Ft.data,Wt=Ft.origin,hn=Ft.action,mn=Ft.parsedFile;if(this._isMounted){var In=this.props,er=In.onStart,ar=In.customRequest,fr=In.name,Jn=In.headers,Kn=In.withCredentials,$n=In.method,dr=Wt.uid,Tr=ar||ke,Cr={action:hn,filename:fr,data:zt,file:mn,headers:Jn,withCredentials:Kn,method:$n||"post",onProgress:function(Vn){var xr=$t.props.onProgress;xr==null||xr(Vn,mn)},onSuccess:function(Vn,xr){var hr=$t.props.onSuccess;hr==null||hr(Vn,mn,xr),delete $t.reqs[dr]},onError:function(Vn,xr){var hr=$t.props.onError;hr==null||hr(Vn,xr,mn),delete $t.reqs[dr]}};er(Wt),this.reqs[dr]=Tr(Cr)}}},{key:"reset",value:function(){this.setState({uid:Ie()})}},{key:"abort",value:function(Ft){var $t=this.reqs;if(Ft){var zt=Ft.uid?Ft.uid:Ft;$t[zt]&&$t[zt].abort&&$t[zt].abort(),delete $t[zt]}else Object.keys($t).forEach(function(Wt){$t[Wt]&&$t[Wt].abort&&$t[Wt].abort(),delete $t[Wt]})}},{key:"render",value:function(){var Ft=this.props,$t=Ft.component,zt=Ft.prefixCls,Wt=Ft.className,hn=Ft.classNames,mn=hn===void 0?{}:hn,In=Ft.disabled,er=Ft.id,ar=Ft.name,fr=Ft.style,Jn=Ft.styles,Kn=Jn===void 0?{}:Jn,$n=Ft.multiple,dr=Ft.accept,Tr=Ft.capture,Cr=Ft.children,Or=Ft.directory,Vn=Ft.openFileDialogOnClick,xr=Ft.onMouseEnter,hr=Ft.onMouseLeave,Hr=Ft.hasControlInside,Xr=(0,te.Z)(Ft,Me),Ur=ge()((0,E.Z)((0,E.Z)((0,E.Z)({},zt,!0),"".concat(zt,"-disabled"),In),Wt,Wt)),Kr=Or?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},ri=In?{}:{onClick:Vn?this.onClick:function(){},onKeyDown:Vn?this.onKeyDown:function(){},onMouseEnter:xr,onMouseLeave:hr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Hr?void 0:"0"};return le.createElement($t,(0,x.Z)({},ri,{className:Ur,role:Hr?void 0:"button",style:fr}),le.createElement("input",(0,x.Z)({},(0,me.Z)(Xr,{aria:!0,data:!0}),{id:er,name:ar,disabled:In,type:"file",ref:this.saveFileInput,onClick:function(qr){return qr.stopPropagation()},key:this.state.uid,style:(0,re.Z)({display:"none"},Kn.input),className:mn.input,accept:dr},Kr,{multiple:$n,onChange:this.onChange},Tr!=null?{capture:Tr}:{})),Cr)}}]),Kt}(le.Component),Ae=Le;function Pe(){}var Ue=function(bt){(0,ee.Z)(Kt,bt);var Zt=(0,ue.Z)(Kt);function Kt(){var Yt;(0,z.Z)(this,Kt);for(var Ft=arguments.length,$t=new Array(Ft),zt=0;zt<Ft;zt++)$t[zt]=arguments[zt];return Yt=Zt.call.apply(Zt,[this].concat($t)),(0,E.Z)((0,oe.Z)(Yt),"uploader",void 0),(0,E.Z)((0,oe.Z)(Yt),"saveUploader",function(Wt){Yt.uploader=Wt}),Yt}return(0,ie.Z)(Kt,[{key:"abort",value:function(Ft){this.uploader.abort(Ft)}},{key:"render",value:function(){return le.createElement(Ae,(0,x.Z)({},this.props,{ref:this.saveUploader}))}}]),Kt}(le.Component);(0,E.Z)(Ue,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Pe,onError:Pe,onSuccess:Pe,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var He=Ue,Je=He,st=Ce(18929),_e=Ce(48755),Ke=Ce(2171),nt=Ce(9017),rt=Ce(85981),et=Ce(63356),Ve=Ce(34961),Ye=Ce(16931),Ge=Ce(51636),it=Ce(36237),vt=bt=>{const{componentCls:Zt,iconCls:Kt}=bt;return{[`${Zt}-wrapper`]:{[`${Zt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:bt.colorFillAlter,border:`${(0,it.unit)(bt.lineWidth)} dashed ${bt.colorBorder}`,borderRadius:bt.borderRadiusLG,cursor:"pointer",transition:`border-color ${bt.motionDurationSlow}`,[Zt]:{padding:bt.padding},[`${Zt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:bt.borderRadiusLG,"&:focus-visible":{outline:`${(0,it.unit)(bt.lineWidthFocus)} solid ${bt.colorPrimaryBorder}`}},[`${Zt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
&:not(${Zt}-disabled):hover,
&-hover:not(${Zt}-disabled)
`]:{borderColor:bt.colorPrimaryHover},[`p${Zt}-drag-icon`]:{marginBottom:bt.margin,[Kt]:{color:bt.colorPrimary,fontSize:bt.uploadThumbnailSize}},[`p${Zt}-text`]:{margin:`0 0 ${(0,it.unit)(bt.marginXXS)}`,color:bt.colorTextHeading,fontSize:bt.fontSizeLG},[`p${Zt}-hint`]:{color:bt.colorTextDescription,fontSize:bt.fontSize},[`&${Zt}-disabled`]:{[`p${Zt}-drag-icon ${Kt},
p${Zt}-text,
p${Zt}-hint
`]:{color:bt.colorTextDisabled}}}}}},Qe=bt=>{const{componentCls:Zt,iconCls:Kt,fontSize:Yt,lineHeight:Ft,calc:$t}=bt,zt=`${Zt}-list-item`,Wt=`${zt}-actions`,hn=`${zt}-action`;return{[`${Zt}-wrapper`]:{[`${Zt}-list`]:Object.assign(Object.assign({},(0,et.dF)()),{lineHeight:bt.lineHeight,[zt]:{position:"relative",height:$t(bt.lineHeight).mul(Yt).equal(),marginTop:bt.marginXS,fontSize:Yt,display:"flex",alignItems:"center",transition:`background-color ${bt.motionDurationSlow}`,borderRadius:bt.borderRadiusSM,"&:hover":{backgroundColor:bt.controlItemBgHover},[`${zt}-name`]:Object.assign(Object.assign({},et.vS),{padding:`0 ${(0,it.unit)(bt.paddingXS)}`,lineHeight:Ft,flex:"auto",transition:`all ${bt.motionDurationSlow}`}),[Wt]:{whiteSpace:"nowrap",[hn]:{opacity:0},[Kt]:{color:bt.actionsColor,transition:`all ${bt.motionDurationSlow}`},[`
${hn}:focus-visible,
&.picture ${hn}
`]:{opacity:1}},[`${Zt}-icon ${Kt}`]:{color:bt.colorTextDescription,fontSize:Yt},[`${zt}-progress`]:{position:"absolute",bottom:bt.calc(bt.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:$t(Yt).add(bt.paddingXS).equal(),fontSize:Yt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${zt}:hover ${hn}`]:{opacity:1},[`${zt}-error`]:{color:bt.colorError,[`${zt}-name, ${Zt}-icon ${Kt}`]:{color:bt.colorError},[Wt]:{[`${Kt}, ${Kt}:hover`]:{color:bt.colorError},[hn]:{opacity:1}}},[`${Zt}-list-item-container`]:{transition:`opacity ${bt.motionDurationSlow}, height ${bt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Fe=Ce(99495),ne=bt=>{const{componentCls:Zt}=bt,Kt=new it.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:bt.calc(bt.marginXS).div(-2).equal()}}),Yt=new it.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:bt.calc(bt.marginXS).div(-2).equal()}}),Ft=`${Zt}-animate-inline`;return[{[`${Zt}-wrapper`]:{[`${Ft}-appear, ${Ft}-enter, ${Ft}-leave`]:{animationDuration:bt.motionDurationSlow,animationTimingFunction:bt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ft}-appear, ${Ft}-enter`]:{animationName:Kt},[`${Ft}-leave`]:{animationName:Yt}}},{[`${Zt}-wrapper`]:(0,Fe.J$)(bt)},Kt,Yt]},fe=Ce(68361);const Ne=bt=>{const{componentCls:Zt,iconCls:Kt,uploadThumbnailSize:Yt,uploadProgressOffset:Ft,calc:$t}=bt,zt=`${Zt}-list`,Wt=`${zt}-item`;return{[`${Zt}-wrapper`]:{[`
${zt}${zt}-picture,
${zt}${zt}-picture-card,
${zt}${zt}-picture-circle
`]:{[Wt]:{position:"relative",height:$t(Yt).add($t(bt.lineWidth).mul(2)).add($t(bt.paddingXS).mul(2)).equal(),padding:bt.paddingXS,border:`${(0,it.unit)(bt.lineWidth)} ${bt.lineType} ${bt.colorBorder}`,borderRadius:bt.borderRadiusLG,"&:hover":{background:"transparent"},[`${Wt}-thumbnail`]:Object.assign(Object.assign({},et.vS),{width:Yt,height:Yt,lineHeight:(0,it.unit)($t(Yt).add(bt.paddingSM).equal()),textAlign:"center",flex:"none",[Kt]:{fontSize:bt.fontSizeHeading2,color:bt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Wt}-progress`]:{bottom:Ft,width:`calc(100% - ${(0,it.unit)($t(bt.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:$t(Yt).add(bt.paddingXS).equal()}},[`${Wt}-error`]:{borderColor:bt.colorError,[`${Wt}-thumbnail ${Kt}`]:{[`svg path[fill='${fe.blue[0]}']`]:{fill:bt.colorErrorBg},[`svg path[fill='${fe.blue.primary}']`]:{fill:bt.colorError}}},[`${Wt}-uploading`]:{borderStyle:"dashed",[`${Wt}-name`]:{marginBottom:Ft}}},[`${zt}${zt}-picture-circle ${Wt}`]:{[`&, &::before, ${Wt}-thumbnail`]:{borderRadius:"50%"}}}}},We=bt=>{const{componentCls:Zt,iconCls:Kt,fontSizeLG:Yt,colorTextLightSolid:Ft,calc:$t}=bt,zt=`${Zt}-list`,Wt=`${zt}-item`,hn=bt.uploadPicCardSize;return{[`
${Zt}-wrapper${Zt}-picture-card-wrapper,
${Zt}-wrapper${Zt}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,et.dF)()),{display:"block",[`${Zt}${Zt}-select`]:{width:hn,height:hn,textAlign:"center",verticalAlign:"top",backgroundColor:bt.colorFillAlter,border:`${(0,it.unit)(bt.lineWidth)} dashed ${bt.colorBorder}`,borderRadius:bt.borderRadiusLG,cursor:"pointer",transition:`border-color ${bt.motionDurationSlow}`,[`> ${Zt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Zt}-disabled):hover`]:{borderColor:bt.colorPrimary}},[`${zt}${zt}-picture-card, ${zt}${zt}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:bt.marginXS,marginInlineEnd:bt.marginXS}},"@supports (gap: 1px)":{gap:bt.marginXS},[`${zt}-item-container`]:{display:"inline-block",width:hn,height:hn,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[Wt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,it.unit)($t(bt.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,it.unit)($t(bt.paddingXS).mul(2).equal())})`,backgroundColor:bt.colorBgMask,opacity:0,transition:`all ${bt.motionDurationSlow}`,content:'" "'}},[`${Wt}:hover`]:{[`&::before, ${Wt}-actions`]:{opacity:1}},[`${Wt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${bt.motionDurationSlow}`,[`
${Kt}-eye,
${Kt}-download,
${Kt}-delete
`]:{zIndex:10,width:Yt,margin:`0 ${(0,it.unit)(bt.marginXXS)}`,fontSize:Yt,cursor:"pointer",transition:`all ${bt.motionDurationSlow}`,color:Ft,"&:hover":{color:Ft},svg:{verticalAlign:"baseline"}}},[`${Wt}-thumbnail, ${Wt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Wt}-name`]:{display:"none",textAlign:"center"},[`${Wt}-file + ${Wt}-name`]:{position:"absolute",bottom:bt.margin,display:"block",width:`calc(100% - ${(0,it.unit)($t(bt.paddingXS).mul(2).equal())})`},[`${Wt}-uploading`]:{[`&${Wt}`]:{backgroundColor:bt.colorFillAlter},[`&::before, ${Kt}-eye, ${Kt}-download, ${Kt}-delete`]:{display:"none"}},[`${Wt}-progress`]:{bottom:bt.marginXL,width:`calc(100% - ${(0,it.unit)($t(bt.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${Zt}-wrapper${Zt}-picture-circle-wrapper`]:{[`${Zt}${Zt}-select`]:{borderRadius:"50%"}}}};var ye=bt=>{const{componentCls:Zt}=bt;return{[`${Zt}-rtl`]:{direction:"rtl"}}};const Oe=bt=>{const{componentCls:Zt,colorTextDisabled:Kt}=bt;return{[`${Zt}-wrapper`]:Object.assign(Object.assign({},(0,et.Wf)(bt)),{[Zt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Zt}-select`]:{display:"inline-block"},[`${Zt}-hidden`]:{display:"none"},[`${Zt}-disabled`]:{color:Kt,cursor:"not-allowed"}})}},$e=bt=>({actionsColor:bt.colorTextDescription});var Ze=(0,Ye.I$)("Upload",bt=>{const{fontSizeHeading3:Zt,fontHeight:Kt,lineWidth:Yt,controlHeightLG:Ft,calc:$t}=bt,zt=(0,Ge.mergeToken)(bt,{uploadThumbnailSize:$t(Zt).mul(2).equal(),uploadProgressOffset:$t($t(Kt).div(2)).add(Yt).equal(),uploadPicCardSize:$t(Ft).mul(2.55).equal()});return[Oe(zt),vt(zt),Ne(zt),We(zt),Qe(zt),ne(zt),ye(zt),(0,Ve.Z)(zt)]},$e),Xe={icon:function(Zt,Kt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Kt}},{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:Zt}}]}},name:"file",theme:"twotone"},at=Xe,lt=Ce(7657),mt=function(Zt,Kt){return le.createElement(lt.Z,(0,x.Z)({},Zt,{ref:Kt,icon:at}))},ut=le.forwardRef(mt),ct=ut,Pt=Ce(58617),wt={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"},Bt=wt,At=function(Zt,Kt){return le.createElement(lt.Z,(0,x.Z)({},Zt,{ref:Kt,icon:Bt}))},pt=le.forwardRef(At),Mt=pt,kt={icon:function(Zt,Kt){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:Zt}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Kt}},{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:Kt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Kt}},{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:Zt}}]}},name:"picture",theme:"twotone"},xt=kt,It=function(Zt,Kt){return le.createElement(lt.Z,(0,x.Z)({},Zt,{ref:Kt,icon:xt}))},Ut=le.forwardRef(It),en=Ut,St=Ce(77900),jt=Ce(2738),Ht=Ce(40192),Qt=Ce(86641),sn=Ce(22703),wn=Ce(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 Fn(bt,Zt){const Kt=(0,yt.Z)(Zt),Yt=Kt.findIndex(Ft=>{let{uid:$t}=Ft;return $t===bt.uid});return Yt===-1?Kt.push(bt):Kt[Yt]=bt,Kt}function gn(bt,Zt){const Kt=bt.uid!==void 0?"uid":"name";return Zt.filter(Yt=>Yt[Kt]===bt[Kt])[0]}function Dn(bt,Zt){const Kt=bt.uid!==void 0?"uid":"name",Yt=Zt.filter(Ft=>Ft[Kt]!==bt[Kt]);return Yt.length===Zt.length?null:Yt}const un=function(){const Zt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Yt=Zt[Zt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Yt)||[""])[0]},Tn=bt=>bt.indexOf("image/")===0,Mn=bt=>{if(bt.type&&!bt.thumbUrl)return Tn(bt.type);const Zt=bt.thumbUrl||bt.url||"",Kt=un(Zt);return/^data:image\//.test(Zt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Kt)?!0:!(/^data:/.test(Zt)||Kt)},nn=200;function tn(bt){return new Promise(Zt=>{if(!bt.type||!Tn(bt.type)){Zt("");return}const Kt=document.createElement("canvas");Kt.width=nn,Kt.height=nn,Kt.style.cssText=`position: fixed; left: 0; top: 0; width: ${nn}px; height: ${nn}px; z-index: 9999; display: none;`,document.body.appendChild(Kt);const Yt=Kt.getContext("2d"),Ft=new Image;if(Ft.onload=()=>{const{width:$t,height:zt}=Ft;let Wt=nn,hn=nn,mn=0,In=0;$t>zt?(hn=zt*(nn/$t),In=-(hn-Wt)/2):(Wt=$t*(nn/zt),mn=-(Wt-hn)/2),Yt.drawImage(Ft,mn,In,Wt,hn);const er=Kt.toDataURL();document.body.removeChild(Kt),window.URL.revokeObjectURL(Ft.src),Zt(er)},Ft.crossOrigin="anonymous",bt.type.startsWith("image/svg+xml")){const $t=new FileReader;$t.onload=()=>{$t.result&&typeof $t.result=="string"&&(Ft.src=$t.result)},$t.readAsDataURL(bt)}else if(bt.type.startsWith("image/gif")){const $t=new FileReader;$t.onload=()=>{$t.result&&Zt($t.result)},$t.readAsDataURL(bt)}else Ft.src=window.URL.createObjectURL(bt)})}var dn=Ce(26227),Cn=Ce(41464),Pn=Ce(15277),Hn=Ce(89787),Gn=Ce(25399),Yn=le.forwardRef((bt,Zt)=>{let{prefixCls:Kt,className:Yt,style:Ft,locale:$t,listType:zt,file:Wt,items:hn,progress:mn,iconRender:In,actionIconRender:er,itemRender:ar,isImgUrl:fr,showPreviewIcon:Jn,showRemoveIcon:Kn,showDownloadIcon:$n,previewIcon:dr,removeIcon:Tr,downloadIcon:Cr,extra:Or,onPreview:Vn,onDownload:xr,onClose:hr}=bt;var Hr,Xr;const{status:Ur}=Wt,[Kr,ri]=le.useState(Ur);le.useEffect(()=>{Ur!=="removed"&&ri(Ur)},[Ur]);const[Fr,qr]=le.useState(!1);le.useEffect(()=>{const Sn=setTimeout(()=>{qr(!0)},300);return()=>{clearTimeout(Sn)}},[]);const Pr=In(Wt);let ei=le.createElement("div",{className:`${Kt}-icon`},Pr);if(zt==="picture"||zt==="picture-card"||zt==="picture-circle")if(Kr==="uploading"||!Wt.thumbUrl&&!Wt.url){const Sn=ge()(`${Kt}-list-item-thumbnail`,{[`${Kt}-list-item-file`]:Kr!=="uploading"});ei=le.createElement("div",{className:Sn},Pr)}else{const Sn=fr!=null&&fr(Wt)?le.createElement("img",{src:Wt.thumbUrl||Wt.url,alt:Wt.name,className:`${Kt}-list-item-image`,crossOrigin:Wt.crossOrigin}):Pr,Un=ge()(`${Kt}-list-item-thumbnail`,{[`${Kt}-list-item-file`]:fr&&!fr(Wt)});ei=le.createElement("a",{className:Un,onClick:rr=>Vn(Wt,rr),href:Wt.url||Wt.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Sn)}const ui=ge()(`${Kt}-list-item`,`${Kt}-list-item-${Kr}`),ki=typeof Wt.linkProps=="string"?JSON.parse(Wt.linkProps):Wt.linkProps,mi=(typeof Kn=="function"?Kn(Wt):Kn)?er((typeof Tr=="function"?Tr(Wt):Tr)||le.createElement(dn.Z,null),()=>hr(Wt),Kt,$t.removeFile,!0):null,xi=(typeof $n=="function"?$n(Wt):$n)&&Kr==="done"?er((typeof Cr=="function"?Cr(Wt):Cr)||le.createElement(Cn.Z,null),()=>xr(Wt),Kt,$t.downloadFile):null,hi=zt!=="picture-card"&&zt!=="picture-circle"&&le.createElement("span",{key:"download-delete",className:ge()(`${Kt}-list-item-actions`,{picture:zt==="picture"})},xi,mi),ir=typeof Or=="function"?Or(Wt):Or,Qn=ir&&le.createElement("span",{className:`${Kt}-list-item-extra`},ir),gr=ge()(`${Kt}-list-item-name`),Xn=Wt.url?le.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:gr,title:Wt.name},ki,{href:Wt.url,onClick:Sn=>Vn(Wt,Sn)}),Wt.name,Qn):le.createElement("span",{key:"view",className:gr,onClick:Sn=>Vn(Wt,Sn),title:Wt.name},Wt.name,Qn),bn=(typeof Jn=="function"?Jn(Wt):Jn)&&(Wt.url||Wt.thumbUrl)?le.createElement("a",{href:Wt.url||Wt.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Sn=>Vn(Wt,Sn),title:$t.previewFile},typeof dr=="function"?dr(Wt):dr||le.createElement(Pn.Z,null)):null,kn=(zt==="picture-card"||zt==="picture-circle")&&Kr!=="uploading"&&le.createElement("span",{className:`${Kt}-list-item-actions`},bn,Kr==="done"&&xi,mi),{getPrefixCls:Ln}=le.useContext(_e.E_),jn=Ln(),tr=le.createElement("div",{className:ui},ei,Xn,hi,kn,Fr&&le.createElement(St.default,{motionName:`${jn}-fade`,visible:Kr==="uploading",motionDeadline:2e3},Sn=>{let{className:Un}=Sn;const rr="percent"in Wt?le.createElement(Hn.Z,Object.assign({},mn,{type:"line",percent:Wt.percent,"aria-label":Wt["aria-label"],"aria-labelledby":Wt["aria-labelledby"]})):null;return le.createElement("div",{className:ge()(`${Kt}-list-item-progress`,Un)},rr)})),ur=Wt.response&&typeof Wt.response=="string"?Wt.response:((Hr=Wt.error)===null||Hr===void 0?void 0:Hr.statusText)||((Xr=Wt.error)===null||Xr===void 0?void 0:Xr.message)||$t.uploadError,Nn=Kr==="error"?le.createElement(Gn.Z,{title:ur,getPopupContainer:Sn=>Sn.parentNode},tr):tr;return le.createElement("div",{className:ge()(`${Kt}-list-item-container`,Yt),style:Ft,ref:Zt},ar?ar(Nn,Wt,hn,{download:xr.bind(null,Wt),preview:Vn.bind(null,Wt),remove:hr.bind(null,Wt)}):Nn)});const Wn=(bt,Zt)=>{const{listType:Kt="text",previewFile:Yt=tn,onPreview:Ft,onDownload:$t,onRemove:zt,locale:Wt,iconRender:hn,isImageUrl:mn=Mn,prefixCls:In,items:er=[],showPreviewIcon:ar=!0,showRemoveIcon:fr=!0,showDownloadIcon:Jn=!1,removeIcon:Kn,previewIcon:$n,downloadIcon:dr,extra:Tr,progress:Cr={size:[-1,2],showInfo:!1},appendAction:Or,appendActionVisible:Vn=!0,itemRender:xr,disabled:hr}=bt,Hr=(0,Ht.Z)(),[Xr,Ur]=le.useState(!1),Kr=["picture-card","picture-circle"].includes(Kt);le.useEffect(()=>{Kt.startsWith("picture")&&(er||[]).forEach(Qn=>{!(Qn.originFileObj instanceof File||Qn.originFileObj instanceof Blob)||Qn.thumbUrl!==void 0||(Qn.thumbUrl="",Yt==null||Yt(Qn.originFileObj).then(gr=>{Qn.thumbUrl=gr||"",Hr()}))})},[Kt,er,Yt]),le.useEffect(()=>{Ur(!0)},[]);const ri=(Qn,gr)=>{if(Ft)return gr==null||gr.preventDefault(),Ft(Qn)},Fr=Qn=>{typeof $t=="function"?$t(Qn):Qn.url&&window.open(Qn.url)},qr=Qn=>{zt==null||zt(Qn)},Pr=Qn=>{if(hn)return hn(Qn,Kt);const gr=Qn.status==="uploading";if(Kt.startsWith("picture")){const Xn=Kt==="picture"?le.createElement(Pt.Z,null):Wt.uploading,bn=mn!=null&&mn(Qn)?le.createElement(en,null):le.createElement(ct,null);return gr?Xn:bn}return gr?le.createElement(Pt.Z,null):le.createElement(Mt,null)},ei=(Qn,gr,Xn,bn,kn)=>{const Ln={type:"text",size:"small",title:bn,onClick:jn=>{var tr,ur;gr(),le.isValidElement(Qn)&&((ur=(tr=Qn.props).onClick)===null||ur===void 0||ur.call(tr,jn))},className:`${Xn}-list-item-action`};return kn&&(Ln.disabled=hr),le.isValidElement(Qn)?le.createElement(wn.ZP,Object.assign({},Ln,{icon:(0,sn.Tm)(Qn,Object.assign(Object.assign({},Qn.props),{onClick:()=>{}}))})):le.createElement(wn.ZP,Object.assign({},Ln),le.createElement("span",null,Qn))};le.useImperativeHandle(Zt,()=>({handlePreview:ri,handleDownload:Fr}));const{getPrefixCls:ui}=le.useContext(_e.E_),ki=ui("upload",In),mi=ui(),xi=ge()(`${ki}-list`,`${ki}-list-${Kt}`),hi=le.useMemo(()=>(0,jt.Z)((0,Qt.Z)(mi),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[mi]),ir=Object.assign(Object.assign({},Kr?{}:hi),{motionDeadline:2e3,motionName:`${ki}-${Kr?"animate-inline":"animate"}`,keys:(0,yt.Z)(er.map(Qn=>({key:Qn.uid,file:Qn}))),motionAppear:Xr});return le.createElement("div",{className:xi},le.createElement(St.CSSMotionList,Object.assign({},ir,{component:!1}),Qn=>{let{key:gr,file:Xn,className:bn,style:kn}=Qn;return le.createElement(Yn,{key:gr,locale:Wt,prefixCls:ki,className:bn,style:kn,file:Xn,items:er,progress:Cr,listType:Kt,isImgUrl:mn,showPreviewIcon:ar,showRemoveIcon:fr,showDownloadIcon:Jn,removeIcon:Kn,previewIcon:$n,downloadIcon:dr,extra:Tr,iconRender:Pr,actionIconRender:ei,itemRender:xr,onPreview:ri,onDownload:Fr,onClose:qr})}),Or&&le.createElement(St.default,Object.assign({},ir,{visible:Vn,forceRender:!0}),Qn=>{let{className:gr,style:Xn}=Qn;return(0,sn.Tm)(Or,bn=>({className:ge()(bn.className,gr),style:Object.assign(Object.assign(Object.assign({},Xn),{pointerEvents:gr?"none":void 0}),bn.style)}))}))};var cr=le.forwardRef(Wn),cn=function(bt,Zt,Kt,Yt){function Ft($t){return $t instanceof Kt?$t:new Kt(function(zt){zt($t)})}return new(Kt||(Kt=Promise))(function($t,zt){function Wt(In){try{mn(Yt.next(In))}catch(er){zt(er)}}function hn(In){try{mn(Yt.throw(In))}catch(er){zt(er)}}function mn(In){In.done?$t(In.value):Ft(In.value).then(Wt,hn)}mn((Yt=Yt.apply(bt,Zt||[])).next())})};const An=`__LIST_IGNORE_${Date.now()}__`,qn=(bt,Zt)=>{const{fileList:Kt,defaultFileList:Yt,onRemove:Ft,showUploadList:$t=!0,listType:zt="text",onPreview:Wt,onDownload:hn,onChange:mn,onDrop:In,previewFile:er,disabled:ar,locale:fr,iconRender:Jn,isImageUrl:Kn,progress:$n,prefixCls:dr,className:Tr,type:Cr="select",children:Or,style:Vn,itemRender:xr,maxCount:hr,data:Hr={},multiple:Xr=!1,hasControlInside:Ur=!0,action:Kr="",accept:ri="",supportServerRender:Fr=!0,rootClassName:qr}=bt,Pr=le.useContext(Ke.Z),ei=ar!=null?ar:Pr,[ui,ki]=(0,st.Z)(Yt||[],{value:Kt,postState:si=>si!=null?si:[]}),[mi,xi]=le.useState("drop"),hi=le.useRef(null),ir=le.useRef(null);le.useMemo(()=>{const si=Date.now();(Kt||[]).forEach((Zi,Yi)=>{!Zi.uid&&!Object.isFrozen(Zi)&&(Zi.uid=`__AUTO__${si}_${Yi}__`)})},[Kt]);const Qn=(si,Zi,Yi)=>{let yi=(0,yt.Z)(Zi),_i=!1;hr===1?yi=yi.slice(-1):hr&&(_i=yi.length>hr,yi=yi.slice(0,hr)),(0,a.flushSync)(()=>{ki(yi)});const Ri={file:si,fileList:yi};Yi&&(Ri.event=Yi),(!_i||si.status==="removed"||yi.some(_o=>_o.uid===si.uid))&&(0,a.flushSync)(()=>{mn==null||mn(Ri)})},gr=(si,Zi)=>cn(void 0,void 0,void 0,function*(){const{beforeUpload:Yi,transformFile:yi}=bt;let _i=si;if(Yi){const Ri=yield Yi(si,Zi);if(Ri===!1)return!1;if(delete si[An],Ri===An)return Object.defineProperty(si,An,{value:!0,configurable:!0}),!1;typeof Ri=="object"&&Ri&&(_i=Ri)}return yi&&(_i=yield yi(_i)),_i}),Xn=si=>{const Zi=si.filter(_i=>!_i.file[An]);if(!Zi.length)return;const Yi=Zi.map(_i=>Bn(_i.file));let yi=(0,yt.Z)(ui);Yi.forEach(_i=>{yi=Fn(_i,yi)}),Yi.forEach((_i,Ri)=>{let _o=_i;if(Zi[Ri].parsedFile)_i.status="uploading";else{const{originFileObj:ha}=_i;let Zo;try{Zo=new File([ha],ha.name,{type:ha.type})}catch(jo){Zo=new Blob([ha],{type:ha.type}),Zo.name=ha.name,Zo.lastModifiedDate=new Date,Zo.lastModified=new Date().getTime()}Zo.uid=_i.uid,_o=Zo}Qn(_o,yi)})},bn=(si,Zi,Yi)=>{try{typeof si=="string"&&(si=JSON.parse(si))}catch(Ri){}if(!gn(Zi,ui))return;const yi=Bn(Zi);yi.status="done",yi.percent=100,yi.response=si,yi.xhr=Yi;const _i=Fn(yi,ui);Qn(yi,_i)},kn=(si,Zi)=>{if(!gn(Zi,ui))return;const Yi=Bn(Zi);Yi.status="uploading",Yi.percent=si.percent;const yi=Fn(Yi,ui);Qn(Yi,yi,si)},Ln=(si,Zi,Yi)=>{if(!gn(Yi,ui))return;const yi=Bn(Yi);yi.error=si,yi.response=Zi,yi.status="error";const _i=Fn(yi,ui);Qn(yi,_i)},jn=si=>{let Zi;Promise.resolve(typeof Ft=="function"?Ft(si):Ft).then(Yi=>{var yi;if(Yi===!1)return;const _i=Dn(si,ui);_i&&(Zi=Object.assign(Object.assign({},si),{status:"removed"}),ui==null||ui.forEach(Ri=>{const _o=Zi.uid!==void 0?"uid":"name";Ri[_o]===Zi[_o]&&!Object.isFrozen(Ri)&&(Ri.status="removed")}),(yi=hi.current)===null||yi===void 0||yi.abort(Zi),Qn(Zi,_i))})},tr=si=>{xi(si.type),si.type==="drop"&&(In==null||In(si))};le.useImperativeHandle(Zt,()=>({onBatchStart:Xn,onSuccess:bn,onProgress:kn,onError:Ln,fileList:ui,upload:hi.current,nativeElement:ir.current}));const{getPrefixCls:ur,direction:Nn,upload:Sn}=le.useContext(_e.E_),Un=ur("upload",dr),rr=Object.assign(Object.assign({onBatchStart:Xn,onError:Ln,onProgress:kn,onSuccess:bn},bt),{data:Hr,multiple:Xr,action:Kr,accept:ri,supportServerRender:Fr,prefixCls:Un,disabled:ei,beforeUpload:gr,onChange:void 0,hasControlInside:Ur});delete rr.className,delete rr.style,(!Or||ei)&&delete rr.id;const Gr=`${Un}-wrapper`,[wi,ci,ji]=Ze(Un,Gr),[Ci]=(0,nt.Z)("Upload",rt.Z.Upload),{showRemoveIcon:Si,showPreviewIcon:Ni,showDownloadIcon:Mi,removeIcon:Pi,previewIcon:ro,downloadIcon:vo,extra:go}=typeof $t=="boolean"?{}:$t,Ao=typeof Si=="undefined"?!ei:Si,Co=(si,Zi)=>$t?le.createElement(cr,{prefixCls:Un,listType:zt,items:ui,previewFile:er,onPreview:Wt,onDownload:hn,onRemove:jn,showRemoveIcon:Ao,showPreviewIcon:Ni,showDownloadIcon:Mi,removeIcon:Pi,previewIcon:ro,downloadIcon:vo,iconRender:Jn,extra:go,locale:Object.assign(Object.assign({},Ci),fr),isImageUrl:Kn,progress:$n,appendAction:si,appendActionVisible:Zi,itemRender:xr,disabled:ei}):si,ti=ge()(Gr,Tr,qr,ci,ji,Sn==null?void 0:Sn.className,{[`${Un}-rtl`]:Nn==="rtl",[`${Un}-picture-card-wrapper`]:zt==="picture-card",[`${Un}-picture-circle-wrapper`]:zt==="picture-circle"}),Wr=Object.assign(Object.assign({},Sn==null?void 0:Sn.style),Vn);if(Cr==="drag"){const si=ge()(ci,Un,`${Un}-drag`,{[`${Un}-drag-uploading`]:ui.some(Zi=>Zi.status==="uploading"),[`${Un}-drag-hover`]:mi==="dragover",[`${Un}-disabled`]:ei,[`${Un}-rtl`]:Nn==="rtl"});return wi(le.createElement("span",{className:ti,ref:ir},le.createElement("div",{className:si,style:Wr,onDrop:tr,onDragOver:tr,onDragLeave:tr},le.createElement(Je,Object.assign({},rr,{ref:hi,className:`${Un}-btn`}),le.createElement("div",{className:`${Un}-drag-container`},Or))),Co()))}const Qi=ge()(Un,`${Un}-select`,{[`${Un}-disabled`]:ei,[`${Un}-hidden`]:!Or}),qi=le.createElement("div",{className:Qi},le.createElement(Je,Object.assign({},rr,{ref:hi})));return wi(zt==="picture-card"||zt==="picture-circle"?le.createElement("span",{className:ti,ref:ir},Co(qi,!!Or)):le.createElement("span",{className:ti,ref:ir},qi,Co()))};var Rt=le.forwardRef(qn),Xt=function(bt,Zt){var Kt={};for(var Yt in bt)Object.prototype.hasOwnProperty.call(bt,Yt)&&Zt.indexOf(Yt)<0&&(Kt[Yt]=bt[Yt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Yt=Object.getOwnPropertySymbols(bt);Ft<Yt.length;Ft++)Zt.indexOf(Yt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(bt,Yt[Ft])&&(Kt[Yt[Ft]]=bt[Yt[Ft]]);return Kt},Dt=le.forwardRef((bt,Zt)=>{var{style:Kt,height:Yt,hasControlInside:Ft=!1}=bt,$t=Xt(bt,["style","height","hasControlInside"]);return le.createElement(Rt,Object.assign({ref:Zt,hasControlInside:Ft},$t,{type:"drag",style:Object.assign(Object.assign({},Kt),{height:Yt})}))});const Tt=Rt;Tt.Dragger=Dt,Tt.LIST_IGNORE=An;var _t=Tt},99498:function(on,Lt,Ce){(function(le){le(Ce(89780))})(function(le){le.defineOption("placeholder","",function(ie,oe,ee){var ue=ee&&ee!=le.Init;if(oe&&!ue)ie.on("blur",ge),ie.on("change",x),ie.on("swapDoc",x),le.on(ie.getInputField(),"compositionupdate",ie.state.placeholderCompose=function(){Te(ie)}),x(ie);else if(!oe&&ue){ie.off("blur",ge),ie.off("change",x),ie.off("swapDoc",x),le.off(ie.getInputField(),"compositionupdate",ie.state.placeholderCompose),yt(ie);var E=ie.getWrapperElement();E.className=E.className.replace(" CodeMirror-empty","")}oe&&!ie.hasFocus()&&ge(ie)});function yt(ie){ie.state.placeholder&&(ie.state.placeholder.parentNode.removeChild(ie.state.placeholder),ie.state.placeholder=null)}function a(ie){yt(ie);var oe=ie.state.placeholder=document.createElement("pre");oe.style.cssText="height: 0; overflow: visible",oe.style.direction=ie.getOption("direction"),oe.className="CodeMirror-placeholder CodeMirror-line-like";var ee=ie.getOption("placeholder");typeof ee=="string"&&(ee=document.createTextNode(ee)),oe.appendChild(ee),ie.display.lineSpace.insertBefore(oe,ie.display.lineSpace.firstChild)}function Te(ie){setTimeout(function(){var oe=!1,ee=ie.getInputField();ee.nodeName=="TEXTAREA"?oe=!ee.value:ie.lineCount()==1&&(oe=!/[^\u200b]/.test(ee.querySelector(".CodeMirror-line").textContent)),oe?a(ie):yt(ie)},20)}function ge(ie){z(ie)&&a(ie)}function x(ie){var oe=ie.getWrapperElement(),ee=z(ie);oe.className=oe.className.replace(" CodeMirror-empty","")+(ee?" CodeMirror-empty":""),ee?a(ie):yt(ie)}function z(ie){return ie.lineCount()===1&&ie.getLine(0)===""}})},25717:function(on,Lt,Ce){(function(le){le(Ce(89780))})(function(le){var yt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},a=le.Pos;le.defineOption("autoCloseBrackets",!1,function(se,ae,he){he&&he!=le.Init&&(se.removeKeyMap(ge),se.state.closeBrackets=null),ae&&(x(Te(ae,"pairs")),se.state.closeBrackets=ae,se.addKeyMap(ge))});function Te(se,ae){return ae=="pairs"&&typeof se=="string"?se:typeof se=="object"&&se[ae]!=null?se[ae]:yt[ae]}var ge={Backspace:oe,Enter:ee};function x(se){for(var ae=0;ae<se.length;ae++){var he=se.charAt(ae),me="'"+he+"'";ge[me]||(ge[me]=z(he))}}x(yt.pairs+"`");function z(se){return function(ae){return E(ae,se)}}function ie(se){var ae=se.state.closeBrackets;if(!ae||ae.override)return ae;var he=se.getModeAt(se.getCursor());return he.closeBrackets||ae}function oe(se){var ae=ie(se);if(!ae||se.getOption("disableInput"))return le.Pass;for(var he=Te(ae,"pairs"),me=se.listSelections(),ve=0;ve<me.length;ve++){if(!me[ve].empty())return le.Pass;var pe=re(se,me[ve].head);if(!pe||he.indexOf(pe)%2!=0)return le.Pass}for(var ve=me.length-1;ve>=0;ve--){var be=me[ve].head;se.replaceRange("",a(be.line,be.ch-1),a(be.line,be.ch+1),"+delete")}}function ee(se){var ae=ie(se),he=ae&&Te(ae,"explode");if(!he||se.getOption("disableInput"))return le.Pass;for(var me=se.listSelections(),ve=0;ve<me.length;ve++){if(!me[ve].empty())return le.Pass;var pe=re(se,me[ve].head);if(!pe||he.indexOf(pe)%2!=0)return le.Pass}se.operation(function(){var be=se.lineSeparator()||`
`;se.replaceSelection(be+be,null),se.execCommand("goCharLeft"),me=se.listSelections();for(var je=0;je<me.length;je++){var ke=me[je].head.line;se.indentLine(ke,null,!0),se.indentLine(ke+1,null,!0)}})}function ue(se){var ae=le.cmpPos(se.anchor,se.head)>0;return{anchor:new a(se.anchor.line,se.anchor.ch+(ae?-1:1)),head:new a(se.head.line,se.head.ch+(ae?1:-1))}}function E(se,ae){var he=ie(se);if(!he||se.getOption("disableInput"))return le.Pass;var me=Te(he,"pairs"),ve=me.indexOf(ae);if(ve==-1)return le.Pass;for(var pe=Te(he,"closeBefore"),be=Te(he,"triples"),je=me.charAt(ve+1)==ae,ke=se.listSelections(),Be=ve%2==0,De,Se=0;Se<ke.length;Se++){var Ee=ke[Se],Ie=Ee.head,Me,Le=se.getRange(Ie,a(Ie.line,Ie.ch+1));if(Be&&!Ee.empty())Me="surround";else if((je||!Be)&&Le==ae)je&&te(se,Ie)?Me="both":be.indexOf(ae)>=0&&se.getRange(Ie,a(Ie.line,Ie.ch+3))==ae+ae+ae?Me="skipThree":Me="skip";else if(je&&Ie.ch>1&&be.indexOf(ae)>=0&&se.getRange(a(Ie.line,Ie.ch-2),Ie)==ae+ae){if(Ie.ch>2&&/\bstring/.test(se.getTokenTypeAt(a(Ie.line,Ie.ch-2))))return le.Pass;Me="addFour"}else if(je){var Ae=Ie.ch==0?" ":se.getRange(a(Ie.line,Ie.ch-1),Ie);if(!le.isWordChar(Le)&&Ae!=ae&&!le.isWordChar(Ae))Me="both";else return le.Pass}else if(Be&&(Le.length===0||/\s/.test(Le)||pe.indexOf(Le)>-1))Me="both";else return le.Pass;if(!De)De=Me;else if(De!=Me)return le.Pass}var Pe=ve%2?me.charAt(ve-1):ae,Ue=ve%2?ae:me.charAt(ve+1);se.operation(function(){if(De=="skip")se.execCommand("goCharRight");else if(De=="skipThree")for(var He=0;He<3;He++)se.execCommand("goCharRight");else if(De=="surround"){for(var Je=se.getSelections(),He=0;He<Je.length;He++)Je[He]=Pe+Je[He]+Ue;se.replaceSelections(Je,"around"),Je=se.listSelections().slice();for(var He=0;He<Je.length;He++)Je[He]=ue(Je[He]);se.setSelections(Je)}else De=="both"?(se.replaceSelection(Pe+Ue,null),se.triggerElectric(Pe+Ue),se.execCommand("goCharLeft")):De=="addFour"&&(se.replaceSelection(Pe+Pe+Pe+Pe,"before"),se.execCommand("goCharRight"))})}function re(se,ae){var he=se.getRange(a(ae.line,ae.ch-1),a(ae.line,ae.ch+1));return he.length==2?he:null}function te(se,ae){var he=se.getTokenAt(a(ae.line,ae.ch+1));return/\bstring/.test(he.type)&&he.start==ae.ch&&(ae.ch==0||!/\bstring/.test(se.getTokenTypeAt(ae)))}})},6313:function(on,Lt,Ce){(function(le){le(Ce(89780),Ce(32855))})(function(le){le.defineOption("autoCloseTags",!1,function(oe,ee,ue){if(ue!=le.Init&&ue&&oe.removeKeyMap("autoCloseTags"),!!ee){var E={name:"autoCloseTags"};(typeof ee!="object"||ee.whenClosing!==!1)&&(E["'/'"]=function(re){return x(re)}),(typeof ee!="object"||ee.whenOpening!==!1)&&(E["'>'"]=function(re){return Te(re)}),oe.addKeyMap(E)}});var yt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],a=["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 Te(oe){if(oe.getOption("disableInput"))return le.Pass;for(var ee=oe.listSelections(),ue=[],E=oe.getOption("autoCloseTags"),re=0;re<ee.length;re++){if(!ee[re].empty())return le.Pass;var te=ee[re].head,se=oe.getTokenAt(te),ae=le.innerMode(oe.getMode(),se.state),he=ae.state,me=ae.mode.xmlCurrentTag&&ae.mode.xmlCurrentTag(he),ve=me&&me.name;if(!ve)return le.Pass;var pe=ae.mode.configuration=="html",be=typeof E=="object"&&E.dontCloseTags||pe&&yt,je=typeof E=="object"&&E.indentTags||pe&&a;se.end>te.ch&&(ve=ve.slice(0,ve.length-se.end+te.ch));var ke=ve.toLowerCase();if(!ve||se.type=="string"&&(se.end!=te.ch||!/[\"\']/.test(se.string.charAt(se.string.length-1))||se.string.length==1)||se.type=="tag"&&me.close||se.string.indexOf("/")==te.ch-se.start-1||be&&z(be,ke)>-1||ie(oe,ae.mode.xmlCurrentContext&&ae.mode.xmlCurrentContext(he)||[],ve,te,!0))return le.Pass;var Be=typeof E=="object"&&E.emptyTags;if(Be&&z(Be,ve)>-1){ue[re]={text:"/>",newPos:le.Pos(te.line,te.ch+2)};continue}var De=je&&z(je,ke)>-1;ue[re]={indent:De,text:">"+(De?`
`:"")+"</"+ve+">",newPos:De?le.Pos(te.line+1,0):le.Pos(te.line,te.ch+1)}}for(var Se=typeof E=="object"&&E.dontIndentOnAutoClose,re=ee.length-1;re>=0;re--){var Ee=ue[re];oe.replaceRange(Ee.text,ee[re].head,ee[re].anchor,"+insert");var Ie=oe.listSelections().slice(0);Ie[re]={head:Ee.newPos,anchor:Ee.newPos},oe.setSelections(Ie),!Se&&Ee.indent&&(oe.indentLine(Ee.newPos.line,null,!0),oe.indentLine(Ee.newPos.line+1,null,!0))}}function ge(oe,ee){for(var ue=oe.listSelections(),E=[],re=ee?"/":"</",te=oe.getOption("autoCloseTags"),se=typeof te=="object"&&te.dontIndentOnSlash,ae=0;ae<ue.length;ae++){if(!ue[ae].empty())return le.Pass;var he=ue[ae].head,me=oe.getTokenAt(he),ve=le.innerMode(oe.getMode(),me.state),pe=ve.state;if(ee&&(me.type=="string"||me.string.charAt(0)!="<"||me.start!=he.ch-1))return le.Pass;var be,je=ve.mode.name!="xml"&&oe.getMode().name=="htmlmixed";if(je&&ve.mode.name=="javascript")be=re+"script";else if(je&&ve.mode.name=="css")be=re+"style";else{var ke=ve.mode.xmlCurrentContext&&ve.mode.xmlCurrentContext(pe);if(!ke||ke.length&&ie(oe,ke,ke[ke.length-1],he))return le.Pass;be=re+ke[ke.length-1]}oe.getLine(he.line).charAt(me.end)!=">"&&(be+=">"),E[ae]=be}if(oe.replaceSelections(E),ue=oe.listSelections(),!se)for(var ae=0;ae<ue.length;ae++)(ae==ue.length-1||ue[ae].head.line<ue[ae+1].head.line)&&oe.indentLine(ue[ae].head.line)}function x(oe){return oe.getOption("disableInput")?le.Pass:ge(oe,!0)}le.commands.closeTag=function(oe){return ge(oe)};function z(oe,ee){if(oe.indexOf)return oe.indexOf(ee);for(var ue=0,E=oe.length;ue<E;++ue)if(oe[ue]==ee)return ue;return-1}function ie(oe,ee,ue,E,re){if(!le.scanForClosingTag)return!1;var te=Math.min(oe.lastLine()+1,E.line+500),se=le.scanForClosingTag(oe,E,null,te);if(!se||se.tag!=ue)return!1;for(var ae=re?1:0,he=ee.length-1;he>=0&&ee[he]==ue;he--)++ae;E=se.to;for(var he=1;he<ae;he++){var me=le.scanForClosingTag(oe,E,null,te);if(!me||me.tag!=ue)return!1;E=me.to}return!0}})},32855:function(on,Lt,Ce){(function(le){le(Ce(89780))})(function(le){"use strict";var yt=le.Pos;function a(he,me){return he.line-me.line||he.ch-me.ch}var Te="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",ge=Te+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",x=new RegExp("<(/?)(["+Te+"]["+ge+"]*)","g");function z(he,me,ve,pe){this.line=me,this.ch=ve,this.cm=he,this.text=he.getLine(me),this.min=pe?Math.max(pe.from,he.firstLine()):he.firstLine(),this.max=pe?Math.min(pe.to-1,he.lastLine()):he.lastLine()}function ie(he,me){var ve=he.cm.getTokenTypeAt(yt(he.line,me));return ve&&/\btag\b/.test(ve)}function oe(he){if(!(he.line>=he.max))return he.ch=0,he.text=he.cm.getLine(++he.line),!0}function ee(he){if(!(he.line<=he.min))return he.text=he.cm.getLine(--he.line),he.ch=he.text.length,!0}function ue(he){for(;;){var me=he.text.indexOf(">",he.ch);if(me==-1){if(oe(he))continue;return}if(!ie(he,me+1)){he.ch=me+1;continue}var ve=he.text.lastIndexOf("/",me),pe=ve>-1&&!/\S/.test(he.text.slice(ve+1,me));return he.ch=me+1,pe?"selfClose":"regular"}}function E(he){for(;;){var me=he.ch?he.text.lastIndexOf("<",he.ch-1):-1;if(me==-1){if(ee(he))continue;return}if(!ie(he,me+1)){he.ch=me;continue}x.lastIndex=me,he.ch=me;var ve=x.exec(he.text);if(ve&&ve.index==me)return ve}}function re(he){for(;;){x.lastIndex=he.ch;var me=x.exec(he.text);if(!me){if(oe(he))continue;return}if(!ie(he,me.index+1)){he.ch=me.index+1;continue}return he.ch=me.index+me[0].length,me}}function te(he){for(;;){var me=he.ch?he.text.lastIndexOf(">",he.ch-1):-1;if(me==-1){if(ee(he))continue;return}if(!ie(he,me+1)){he.ch=me;continue}var ve=he.text.lastIndexOf("/",me),pe=ve>-1&&!/\S/.test(he.text.slice(ve+1,me));return he.ch=me+1,pe?"selfClose":"regular"}}function se(he,me){for(var ve=[];;){var pe=re(he),be,je=he.line,ke=he.ch-(pe?pe[0].length:0);if(!pe||!(be=ue(he)))return;if(be!="selfClose")if(pe[1]){for(var Be=ve.length-1;Be>=0;--Be)if(ve[Be]==pe[2]){ve.length=Be;break}if(Be<0&&(!me||me==pe[2]))return{tag:pe[2],from:yt(je,ke),to:yt(he.line,he.ch)}}else ve.push(pe[2])}}function ae(he,me){for(var ve=[];;){var pe=te(he);if(!pe)return;if(pe=="selfClose"){E(he);continue}var be=he.line,je=he.ch,ke=E(he);if(!ke)return;if(ke[1])ve.push(ke[2]);else{for(var Be=ve.length-1;Be>=0;--Be)if(ve[Be]==ke[2]){ve.length=Be;break}if(Be<0&&(!me||me==ke[2]))return{tag:ke[2],from:yt(he.line,he.ch),to:yt(be,je)}}}}le.registerHelper("fold","xml",function(he,me){for(var ve=new z(he,me.line,0);;){var pe=re(ve);if(!pe||ve.line!=me.line)return;var be=ue(ve);if(!be)return;if(!pe[1]&&be!="selfClose"){var je=yt(ve.line,ve.ch),ke=se(ve,pe[2]);return ke&&a(ke.from,je)>0?{from:je,to:ke.from}:null}}}),le.findMatchingTag=function(he,me,ve){var pe=new z(he,me.line,me.ch,ve);if(!(pe.text.indexOf(">")==-1&&pe.text.indexOf("<")==-1)){var be=ue(pe),je=be&&yt(pe.line,pe.ch),ke=be&&E(pe);if(!(!be||!ke||a(pe,me)>0)){var Be={from:yt(pe.line,pe.ch),to:je,tag:ke[2]};return be=="selfClose"?{open:Be,close:null,at:"open"}:ke[1]?{open:ae(pe,ke[2]),close:Be,at:"close"}:(pe=new z(he,je.line,je.ch,ve),{open:Be,close:se(pe,ke[2]),at:"open"})}}},le.findEnclosingTag=function(he,me,ve,pe){for(var be=new z(he,me.line,me.ch,ve);;){var je=ae(be,pe);if(!je)break;var ke=new z(he,me.line,me.ch,ve),Be=se(ke,je.tag);if(Be)return{open:je,close:Be}}},le.scanForClosingTag=function(he,me,ve,pe){var be=new z(he,me.line,me.ch,pe?{from:0,to:pe}:null);return se(be,ve)}})},89780:function(on){(function(Lt,Ce){on.exports=Ce()})(this,function(){"use strict";var Lt=navigator.userAgent,Ce=navigator.platform,le=/gecko\/\d/i.test(Lt),yt=/MSIE \d/.test(Lt),a=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Lt),Te=/Edge\/(\d+)/.exec(Lt),ge=yt||a||Te,x=ge&&(yt?document.documentMode||6:+(Te||a)[1]),z=!Te&&/WebKit\//.test(Lt),ie=z&&/Qt\/\d+\.\d+/.test(Lt),oe=!Te&&/Chrome\//.test(Lt),ee=/Opera\//.test(Lt),ue=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Lt),re=/PhantomJS/.test(Lt),te=!Te&&/AppleWebKit/.test(Lt)&&/Mobile\/\w+/.test(Lt),se=/Android/.test(Lt),ae=te||se||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Lt),he=te||/Mac/.test(Ce),me=/\bCrOS\b/.test(Lt),ve=/win/i.test(Ce),pe=ee&&Lt.match(/Version\/(\d*\.\d*)/);pe&&(pe=Number(pe[1])),pe&&pe>=15&&(ee=!1,z=!0);var be=he&&(ie||ee&&(pe==null||pe<12.11)),je=le||ge&&x>=9;function ke(y){return new RegExp("(^|\\s)"+y+"(?:$|\\s)\\s*")}var Be=function(y,b){var de=y.className,ce=ke(b).exec(de);if(ce){var xe=de.slice(ce.index+ce[0].length);y.className=de.slice(0,ce.index)+(xe?ce[1]+xe:"")}};function De(y){for(var b=y.childNodes.length;b>0;--b)y.removeChild(y.firstChild);return y}function Se(y,b){return De(y).appendChild(b)}function Ee(y,b,de,ce){var xe=document.createElement(y);if(de&&(xe.className=de),ce&&(xe.style.cssText=ce),typeof b=="string")xe.appendChild(document.createTextNode(b));else if(b)for(var ze=0;ze<b.length;++ze)xe.appendChild(b[ze]);return xe}function Ie(y,b,de,ce){var xe=Ee(y,b,de,ce);return xe.setAttribute("role","presentation"),xe}var Me;document.createRange?Me=function(y,b,de,ce){var xe=document.createRange();return xe.setEnd(ce||y,de),xe.setStart(y,b),xe}:Me=function(y,b,de){var ce=document.body.createTextRange();try{ce.moveToElementText(y.parentNode)}catch(xe){return ce}return ce.collapse(!0),ce.moveEnd("character",de),ce.moveStart("character",b),ce};function Le(y,b){if(b.nodeType==3&&(b=b.parentNode),y.contains)return y.contains(b);do if(b.nodeType==11&&(b=b.host),b==y)return!0;while(b=b.parentNode)}function Ae(){var y;try{y=document.activeElement}catch(b){y=document.body||null}for(;y&&y.shadowRoot&&y.shadowRoot.activeElement;)y=y.shadowRoot.activeElement;return y}function Pe(y,b){var de=y.className;ke(b).test(de)||(y.className+=(de?" ":"")+b)}function Ue(y,b){for(var de=y.split(" "),ce=0;ce<de.length;ce++)de[ce]&&!ke(de[ce]).test(b)&&(b+=" "+de[ce]);return b}var He=function(y){y.select()};te?He=function(y){y.selectionStart=0,y.selectionEnd=y.value.length}:ge&&(He=function(y){try{y.select()}catch(b){}});function Je(y){var b=Array.prototype.slice.call(arguments,1);return function(){return y.apply(null,b)}}function st(y,b,de){b||(b={});for(var ce in y)y.hasOwnProperty(ce)&&(de!==!1||!b.hasOwnProperty(ce))&&(b[ce]=y[ce]);return b}function _e(y,b,de,ce,xe){b==null&&(b=y.search(/[^\s\u00a0]/),b==-1&&(b=y.length));for(var ze=ce||0,tt=xe||0;;){var dt=y.indexOf(" ",ze);if(dt<0||dt>=b)return tt+(b-ze);tt+=dt-ze,tt+=de-tt%de,ze=dt+1}}var Ke=function(){this.id=null,this.f=null,this.time=0,this.handler=Je(this.onTimeout,this)};Ke.prototype.onTimeout=function(y){y.id=0,y.time<=+new Date?y.f():setTimeout(y.handler,y.time-+new Date)},Ke.prototype.set=function(y,b){this.f=b;var de=+new Date+y;(!this.id||de<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,y),this.time=de)};function nt(y,b){for(var de=0;de<y.length;++de)if(y[de]==b)return de;return-1}var rt=50,et={toString:function(){return"CodeMirror.Pass"}},Ve={scroll:!1},Ye={origin:"*mouse"},Ge={origin:"+move"};function it(y,b,de){for(var ce=0,xe=0;;){var ze=y.indexOf(" ",ce);ze==-1&&(ze=y.length);var tt=ze-ce;if(ze==y.length||xe+tt>=b)return ce+Math.min(tt,b-xe);if(xe+=ze-ce,xe+=de-xe%de,ce=ze+1,xe>=b)return ce}}var qe=[""];function vt(y){for(;qe.length<=y;)qe.push(ot(qe)+" ");return qe[y]}function ot(y){return y[y.length-1]}function Qe(y,b){for(var de=[],ce=0;ce<y.length;ce++)de[ce]=b(y[ce],ce);return de}function Fe(y,b,de){for(var ce=0,xe=de(b);ce<y.length&&de(y[ce])<=xe;)ce++;y.splice(ce,0,b)}function Re(){}function ne(y,b){var de;return Object.create?de=Object.create(y):(Re.prototype=y,de=new Re),b&&st(b,de),de}var fe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ne(y){return/\w/.test(y)||y>"\x80"&&(y.toUpperCase()!=y.toLowerCase()||fe.test(y))}function We(y,b){return b?b.source.indexOf("\\w")>-1&&Ne(y)?!0:b.test(y):Ne(y)}function we(y){for(var b in y)if(y.hasOwnProperty(b)&&y[b])return!1;return!0}var ye=/[\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 Oe(y){return y.charCodeAt(0)>=768&&ye.test(y)}function $e(y,b,de){for(;(de<0?b>0:b<y.length)&&Oe(y.charAt(b));)b+=de;return b}function Ze(y,b,de){for(var ce=b>de?-1:1;;){if(b==de)return b;var xe=(b+de)/2,ze=ce<0?Math.ceil(xe):Math.floor(xe);if(ze==b)return y(ze)?b:de;y(ze)?de=ze:b=ze+ce}}function Xe(y,b,de,ce){if(!y)return ce(b,de,"ltr",0);for(var xe=!1,ze=0;ze<y.length;++ze){var tt=y[ze];(tt.from<de&&tt.to>b||b==de&&tt.to==b)&&(ce(Math.max(tt.from,b),Math.min(tt.to,de),tt.level==1?"rtl":"ltr",ze),xe=!0)}xe||ce(b,de,"ltr")}var at=null;function lt(y,b,de){var ce;at=null;for(var xe=0;xe<y.length;++xe){var ze=y[xe];if(ze.from<b&&ze.to>b)return xe;ze.to==b&&(ze.from!=ze.to&&de=="before"?ce=xe:at=xe),ze.from==b&&(ze.from!=ze.to&&de!="before"?ce=xe:at=xe)}return ce!=null?ce:at}var mt=function(){var y="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function de(Ct){return Ct<=247?y.charAt(Ct):1424<=Ct&&Ct<=1524?"R":1536<=Ct&&Ct<=1785?b.charAt(Ct-1536):1774<=Ct&&Ct<=2220?"r":8192<=Ct&&Ct<=8203?"w":Ct==8204?"b":"L"}var ce=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,xe=/[stwN]/,ze=/[LRr]/,tt=/[Lb1n]/,dt=/[1n]/;function gt(Ct,Vt,qt){this.level=Ct,this.from=Vt,this.to=qt}return function(Ct,Vt){var qt=Vt=="ltr"?"L":"R";if(Ct.length==0||Vt=="ltr"&&!ce.test(Ct))return!1;for(var xn=Ct.length,pn=[],Zn=0;Zn<xn;++Zn)pn.push(de(Ct.charCodeAt(Zn)));for(var nr=0,vr=qt;nr<xn;++nr){var Ar=pn[nr];Ar=="m"?pn[nr]=vr:vr=Ar}for(var _r=0,jr=qt;_r<xn;++_r){var Vr=pn[_r];Vr=="1"&&jr=="r"?pn[_r]="n":ze.test(Vr)&&(jr=Vr,Vr=="r"&&(pn[_r]="R"))}for(var vi=1,li=pn[0];vi<xn-1;++vi){var Fi=pn[vi];Fi=="+"&&li=="1"&&pn[vi+1]=="1"?pn[vi]="1":Fi==","&&li==pn[vi+1]&&(li=="1"||li=="n")&&(pn[vi]=li),li=Fi}for(var bo=0;bo<xn;++bo){var ra=pn[bo];if(ra==",")pn[bo]="N";else if(ra=="%"){var No=void 0;for(No=bo+1;No<xn&&pn[No]=="%";++No);for(var Ra=bo&&pn[bo-1]=="!"||No<xn&&pn[No]=="1"?"1":"N",Oa=bo;Oa<No;++Oa)pn[Oa]=Ra;bo=No-1}}for(var Vo=0,Ia=qt;Vo<xn;++Vo){var fa=pn[Vo];Ia=="L"&&fa=="1"?pn[Vo]="L":ze.test(fa)&&(Ia=fa)}for(var qo=0;qo<xn;++qo)if(xe.test(pn[qo])){var Xo=void 0;for(Xo=qo+1;Xo<xn&&xe.test(pn[Xo]);++Xo);for(var Fo=(qo?pn[qo-1]:qt)=="L",Pa=(Xo<xn?pn[Xo]:qt)=="L",pl=Fo==Pa?Fo?"L":"R":qt,ks=qo;ks<Xo;++ks)pn[ks]=pl;qo=Xo-1}for(var ba=[],us,ia=0;ia<xn;)if(tt.test(pn[ia])){var Tu=ia;for(++ia;ia<xn&&tt.test(pn[ia]);++ia);ba.push(new gt(0,Tu,ia))}else{var bs=ia,Xs=ba.length,Ys=Vt=="rtl"?1:0;for(++ia;ia<xn&&pn[ia]!="L";++ia);for(var Ca=bs;Ca<ia;)if(dt.test(pn[Ca])){bs<Ca&&(ba.splice(Xs,0,new gt(1,bs,Ca)),Xs+=Ys);var ml=Ca;for(++Ca;Ca<ia&&dt.test(pn[Ca]);++Ca);ba.splice(Xs,0,new gt(2,ml,Ca)),Xs+=Ys,bs=Ca}else++Ca;bs<ia&&ba.splice(Xs,0,new gt(1,bs,ia))}return Vt=="ltr"&&(ba[0].level==1&&(us=Ct.match(/^\s+/))&&(ba[0].from=us[0].length,ba.unshift(new gt(0,0,us[0].length))),ot(ba).level==1&&(us=Ct.match(/\s+$/))&&(ot(ba).to-=us[0].length,ba.push(new gt(0,xn-us[0].length,xn)))),Vt=="rtl"?ba.reverse():ba}}();function ut(y,b){var de=y.order;return de==null&&(de=y.order=mt(y.text,b)),de}var ct=[],Pt=function(y,b,de){if(y.addEventListener)y.addEventListener(b,de,!1);else if(y.attachEvent)y.attachEvent("on"+b,de);else{var ce=y._handlers||(y._handlers={});ce[b]=(ce[b]||ct).concat(de)}};function wt(y,b){return y._handlers&&y._handlers[b]||ct}function Bt(y,b,de){if(y.removeEventListener)y.removeEventListener(b,de,!1);else if(y.detachEvent)y.detachEvent("on"+b,de);else{var ce=y._handlers,xe=ce&&ce[b];if(xe){var ze=nt(xe,de);ze>-1&&(ce[b]=xe.slice(0,ze).concat(xe.slice(ze+1)))}}}function At(y,b){var de=wt(y,b);if(de.length)for(var ce=Array.prototype.slice.call(arguments,2),xe=0;xe<de.length;++xe)de[xe].apply(null,ce)}function pt(y,b,de){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),At(y,de||b.type,y,b),en(b)||b.codemirrorIgnore}function Mt(y){var b=y._handlers&&y._handlers.cursorActivity;if(b)for(var de=y.curOp.cursorActivityHandlers||(y.curOp.cursorActivityHandlers=[]),ce=0;ce<b.length;++ce)nt(de,b[ce])==-1&&de.push(b[ce])}function kt(y,b){return wt(y,b).length>0}function xt(y){y.prototype.on=function(b,de){Pt(this,b,de)},y.prototype.off=function(b,de){Bt(this,b,de)}}function It(y){y.preventDefault?y.preventDefault():y.returnValue=!1}function Ut(y){y.stopPropagation?y.stopPropagation():y.cancelBubble=!0}function en(y){return y.defaultPrevented!=null?y.defaultPrevented:y.returnValue==!1}function St(y){It(y),Ut(y)}function jt(y){return y.target||y.srcElement}function Ht(y){var b=y.which;return b==null&&(y.button&1?b=1:y.button&2?b=3:y.button&4&&(b=2)),he&&y.ctrlKey&&b==1&&(b=3),b}var Qt=function(){if(ge&&x<9)return!1;var y=Ee("div");return"draggable"in y||"dragDrop"in y}(),sn;function wn(y){if(sn==null){var b=Ee("span","\u200B");Se(y,Ee("span",[b,document.createTextNode("x")])),y.firstChild.offsetHeight!=0&&(sn=b.offsetWidth<=1&&b.offsetHeight>2&&!(ge&&x<8))}var de=sn?Ee("span","\u200B"):Ee("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return de.setAttribute("cm-text",""),de}var Bn;function Fn(y){if(Bn!=null)return Bn;var b=Se(y,document.createTextNode("A\u062EA")),de=Me(b,0,1).getBoundingClientRect(),ce=Me(b,1,2).getBoundingClientRect();return De(y),!de||de.left==de.right?!1:Bn=ce.right-de.right<3}var gn=`
b`.split(/\n/).length!=3?function(y){for(var b=0,de=[],ce=y.length;b<=ce;){var xe=y.indexOf(`
`,b);xe==-1&&(xe=y.length);var ze=y.slice(b,y.charAt(xe-1)=="\r"?xe-1:xe),tt=ze.indexOf("\r");tt!=-1?(de.push(ze.slice(0,tt)),b+=tt+1):(de.push(ze),b=xe+1)}return de}:function(y){return y.split(/\r\n?|\n/)},Dn=window.getSelection?function(y){try{return y.selectionStart!=y.selectionEnd}catch(b){return!1}}:function(y){var b;try{b=y.ownerDocument.selection.createRange()}catch(de){}return!b||b.parentElement()!=y?!1:b.compareEndPoints("StartToEnd",b)!=0},un=function(){var y=Ee("div");return"oncopy"in y?!0:(y.setAttribute("oncopy","return;"),typeof y.oncopy=="function")}(),Tn=null;function Mn(y){if(Tn!=null)return Tn;var b=Se(y,Ee("span","x")),de=b.getBoundingClientRect(),ce=Me(b,0,1).getBoundingClientRect();return Tn=Math.abs(de.left-ce.left)>1}var nn={},tn={};function dn(y,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),nn[y]=b}function Cn(y,b){tn[y]=b}function Pn(y){if(typeof y=="string"&&tn.hasOwnProperty(y))y=tn[y];else if(y&&typeof y.name=="string"&&tn.hasOwnProperty(y.name)){var b=tn[y.name];typeof b=="string"&&(b={name:b}),y=ne(b,y),y.name=b.name}else{if(typeof y=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(y))return Pn("application/xml");if(typeof y=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(y))return Pn("application/json")}return typeof y=="string"?{name:y}:y||{name:"null"}}function Hn(y,b){b=Pn(b);var de=nn[b.name];if(!de)return Hn(y,"text/plain");var ce=de(y,b);if(Gn.hasOwnProperty(b.name)){var xe=Gn[b.name];for(var ze in xe)xe.hasOwnProperty(ze)&&(ce.hasOwnProperty(ze)&&(ce["_"+ze]=ce[ze]),ce[ze]=xe[ze])}if(ce.name=b.name,b.helperType&&(ce.helperType=b.helperType),b.modeProps)for(var tt in b.modeProps)ce[tt]=b.modeProps[tt];return ce}var Gn={};function _n(y,b){var de=Gn.hasOwnProperty(y)?Gn[y]:Gn[y]={};st(b,de)}function Yn(y,b){if(b===!0)return b;if(y.copyState)return y.copyState(b);var de={};for(var ce in b){var xe=b[ce];xe instanceof Array&&(xe=xe.concat([])),de[ce]=xe}return de}function Wn(y,b){for(var de;y.innerMode&&(de=y.innerMode(b),!(!de||de.mode==y));)b=de.state,y=de.mode;return de||{mode:y,state:b}}function yr(y,b,de){return y.startState?y.startState(b,de):!0}var cr=function(y,b,de){this.pos=this.start=0,this.string=y,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=de};cr.prototype.eol=function(){return this.pos>=this.string.length},cr.prototype.sol=function(){return this.pos==this.lineStart},cr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},cr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},cr.prototype.eat=function(y){var b=this.string.charAt(this.pos),de;if(typeof y=="string"?de=b==y:de=b&&(y.test?y.test(b):y(b)),de)return++this.pos,b},cr.prototype.eatWhile=function(y){for(var b=this.pos;this.eat(y););return this.pos>b},cr.prototype.eatSpace=function(){for(var y=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>y},cr.prototype.skipToEnd=function(){this.pos=this.string.length},cr.prototype.skipTo=function(y){var b=this.string.indexOf(y,this.pos);if(b>-1)return this.pos=b,!0},cr.prototype.backUp=function(y){this.pos-=y},cr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=_e(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?_e(this.string,this.lineStart,this.tabSize):0)},cr.prototype.indentation=function(){return _e(this.string,null,this.tabSize)-(this.lineStart?_e(this.string,this.lineStart,this.tabSize):0)},cr.prototype.match=function(y,b,de){if(typeof y=="string"){var ce=function(tt){return de?tt.toLowerCase():tt},xe=this.string.substr(this.pos,y.length);if(ce(xe)==ce(y))return b!==!1&&(this.pos+=y.length),!0}else{var ze=this.string.slice(this.pos).match(y);return ze&&ze.index>0?null:(ze&&b!==!1&&(this.pos+=ze[0].length),ze)}},cr.prototype.current=function(){return this.string.slice(this.start,this.pos)},cr.prototype.hideFirstChars=function(y,b){this.lineStart+=y;try{return b()}finally{this.lineStart-=y}},cr.prototype.lookAhead=function(y){var b=this.lineOracle;return b&&b.lookAhead(y)},cr.prototype.baseToken=function(){var y=this.lineOracle;return y&&y.baseToken(this.pos)};function cn(y,b){if(b-=y.first,b<0||b>=y.size)throw new Error("There is no line "+(b+y.first)+" in the document.");for(var de=y;!de.lines;)for(var ce=0;;++ce){var xe=de.children[ce],ze=xe.chunkSize();if(b<ze){de=xe;break}b-=ze}return de.lines[b]}function An(y,b,de){var ce=[],xe=b.line;return y.iter(b.line,de.line+1,function(ze){var tt=ze.text;xe==de.line&&(tt=tt.slice(0,de.ch)),xe==b.line&&(tt=tt.slice(b.ch)),ce.push(tt),++xe}),ce}function qn(y,b,de){var ce=[];return y.iter(b,de,function(xe){ce.push(xe.text)}),ce}function wr(y,b){var de=b-y.height;if(de)for(var ce=y;ce;ce=ce.parent)ce.height+=de}function Rt(y){if(y.parent==null)return null;for(var b=y.parent,de=nt(b.lines,y),ce=b.parent;ce;b=ce,ce=ce.parent)for(var xe=0;ce.children[xe]!=b;++xe)de+=ce.children[xe].chunkSize();return de+b.first}function Xt(y,b){var de=y.first;e:do{for(var ce=0;ce<y.children.length;++ce){var xe=y.children[ce],ze=xe.height;if(b<ze){y=xe;continue e}b-=ze,de+=xe.chunkSize()}return de}while(!y.lines);for(var tt=0;tt<y.lines.length;++tt){var dt=y.lines[tt],gt=dt.height;if(b<gt)break;b-=gt}return de+tt}function Et(y,b){return b>=y.first&&b<y.first+y.size}function Dt(y,b){return String(y.lineNumberFormatter(b+y.firstLineNumber))}function Tt(y,b,de){if(de===void 0&&(de=null),!(this instanceof Tt))return new Tt(y,b,de);this.line=y,this.ch=b,this.sticky=de}function _t(y,b){return y.line-b.line||y.ch-b.ch}function bt(y,b){return y.sticky==b.sticky&&_t(y,b)==0}function Zt(y){return Tt(y.line,y.ch)}function Kt(y,b){return _t(y,b)<0?b:y}function Yt(y,b){return _t(y,b)<0?y:b}function Ft(y,b){return Math.max(y.first,Math.min(b,y.first+y.size-1))}function $t(y,b){if(b.line<y.first)return Tt(y.first,0);var de=y.first+y.size-1;return b.line>de?Tt(de,cn(y,de).text.length):zt(b,cn(y,b.line).text.length)}function zt(y,b){var de=y.ch;return de==null||de>b?Tt(y.line,b):de<0?Tt(y.line,0):y}function Wt(y,b){for(var de=[],ce=0;ce<b.length;ce++)de[ce]=$t(y,b[ce]);return de}var hn=function(y,b){this.state=y,this.lookAhead=b},mn=function(y,b,de,ce){this.state=b,this.doc=y,this.line=de,this.maxLookAhead=ce||0,this.baseTokens=null,this.baseTokenPos=1};mn.prototype.lookAhead=function(y){var b=this.doc.getLine(this.line+y);return b!=null&&y>this.maxLookAhead&&(this.maxLookAhead=y),b},mn.prototype.baseToken=function(y){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=y;)this.baseTokenPos+=2;var b=this.baseTokens[this.baseTokenPos+1];return{type:b&&b.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-y}},mn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mn.fromSaved=function(y,b,de){return b instanceof hn?new mn(y,Yn(y.mode,b.state),de,b.lookAhead):new mn(y,Yn(y.mode,b),de)},mn.prototype.save=function(y){var b=y!==!1?Yn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new hn(b,this.maxLookAhead):b};function In(y,b,de,ce){var xe=[y.state.modeGen],ze={};Cr(y,b.text,y.doc.mode,de,function(Ct,Vt){return xe.push(Ct,Vt)},ze,ce);for(var tt=de.state,dt=function(Ct){de.baseTokens=xe;var Vt=y.state.overlays[Ct],qt=1,xn=0;de.state=!0,Cr(y,b.text,Vt.mode,de,function(pn,Zn){for(var nr=qt;xn<pn;){var vr=xe[qt];vr>pn&&xe.splice(qt,1,pn,xe[qt+1],vr),qt+=2,xn=Math.min(pn,vr)}if(Zn)if(Vt.opaque)xe.splice(nr,qt-nr,pn,"overlay "+Zn),qt=nr+2;else for(;nr<qt;nr+=2){var Ar=xe[nr+1];xe[nr+1]=(Ar?Ar+" ":"")+"overlay "+Zn}},ze),de.state=tt,de.baseTokens=null,de.baseTokenPos=1},gt=0;gt<y.state.overlays.length;++gt)dt(gt);return{styles:xe,classes:ze.bgClass||ze.textClass?ze:null}}function er(y,b,de){if(!b.styles||b.styles[0]!=y.state.modeGen){var ce=ar(y,Rt(b)),xe=b.text.length>y.options.maxHighlightLength&&Yn(y.doc.mode,ce.state),ze=In(y,b,ce);xe&&(ce.state=xe),b.stateAfter=ce.save(!xe),b.styles=ze.styles,ze.classes?b.styleClasses=ze.classes:b.styleClasses&&(b.styleClasses=null),de===y.doc.highlightFrontier&&(y.doc.modeFrontier=Math.max(y.doc.modeFrontier,++y.doc.highlightFrontier))}return b.styles}function ar(y,b,de){var ce=y.doc,xe=y.display;if(!ce.mode.startState)return new mn(ce,!0,b);var ze=Or(y,b,de),tt=ze>ce.first&&cn(ce,ze-1).stateAfter,dt=tt?mn.fromSaved(ce,tt,ze):new mn(ce,yr(ce.mode),ze);return ce.iter(ze,b,function(gt){fr(y,gt.text,dt);var Ct=dt.line;gt.stateAfter=Ct==b-1||Ct%5==0||Ct>=xe.viewFrom&&Ct<xe.viewTo?dt.save():null,dt.nextLine()}),de&&(ce.modeFrontier=dt.line),dt}function fr(y,b,de,ce){var xe=y.doc.mode,ze=new cr(b,y.options.tabSize,de);for(ze.start=ze.pos=ce||0,b==""&&Jn(xe,de.state);!ze.eol();)Kn(xe,ze,de.state),ze.start=ze.pos}function Jn(y,b){if(y.blankLine)return y.blankLine(b);if(y.innerMode){var de=Wn(y,b);if(de.mode.blankLine)return de.mode.blankLine(de.state)}}function Kn(y,b,de,ce){for(var xe=0;xe<10;xe++){ce&&(ce[0]=Wn(y,de).mode);var ze=y.token(b,de);if(b.pos>b.start)return ze}throw new Error("Mode "+y.name+" failed to advance stream.")}var $n=function(y,b,de){this.start=y.start,this.end=y.pos,this.string=y.current(),this.type=b||null,this.state=de};function dr(y,b,de,ce){var xe=y.doc,ze=xe.mode,tt;b=$t(xe,b);var dt=cn(xe,b.line),gt=ar(y,b.line,de),Ct=new cr(dt.text,y.options.tabSize,gt),Vt;for(ce&&(Vt=[]);(ce||Ct.pos<b.ch)&&!Ct.eol();)Ct.start=Ct.pos,tt=Kn(ze,Ct,gt.state),ce&&Vt.push(new $n(Ct,tt,Yn(xe.mode,gt.state)));return ce?Vt:new $n(Ct,tt,gt.state)}function Tr(y,b){if(y)for(;;){var de=y.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!de)break;y=y.slice(0,de.index)+y.slice(de.index+de[0].length);var ce=de[1]?"bgClass":"textClass";b[ce]==null?b[ce]=de[2]:new RegExp("(?:^|\\s)"+de[2]+"(?:$|\\s)").test(b[ce])||(b[ce]+=" "+de[2])}return y}function Cr(y,b,de,ce,xe,ze,tt){var dt=de.flattenSpans;dt==null&&(dt=y.options.flattenSpans);var gt=0,Ct=null,Vt=new cr(b,y.options.tabSize,ce),qt,xn=y.options.addModeClass&&[null];for(b==""&&Tr(Jn(de,ce.state),ze);!Vt.eol();){if(Vt.pos>y.options.maxHighlightLength?(dt=!1,tt&&fr(y,b,ce,Vt.pos),Vt.pos=b.length,qt=null):qt=Tr(Kn(de,Vt,ce.state,xn),ze),xn){var pn=xn[0].name;pn&&(qt="m-"+(qt?pn+" "+qt:pn))}if(!dt||Ct!=qt){for(;gt<Vt.start;)gt=Math.min(Vt.start,gt+5e3),xe(gt,Ct);Ct=qt}Vt.start=Vt.pos}for(;gt<Vt.pos;){var Zn=Math.min(Vt.pos,gt+5e3);xe(Zn,Ct),gt=Zn}}function Or(y,b,de){for(var ce,xe,ze=y.doc,tt=de?-1:b-(y.doc.mode.innerMode?1e3:100),dt=b;dt>tt;--dt){if(dt<=ze.first)return ze.first;var gt=cn(ze,dt-1),Ct=gt.stateAfter;if(Ct&&(!de||dt+(Ct instanceof hn?Ct.lookAhead:0)<=ze.modeFrontier))return dt;var Vt=_e(gt.text,null,y.options.tabSize);(xe==null||ce>Vt)&&(xe=dt-1,ce=Vt)}return xe}function Vn(y,b){if(y.modeFrontier=Math.min(y.modeFrontier,b),!(y.highlightFrontier<b-10)){for(var de=y.first,ce=b-1;ce>de;ce--){var xe=cn(y,ce).stateAfter;if(xe&&(!(xe instanceof hn)||ce+xe.lookAhead<b)){de=ce+1;break}}y.highlightFrontier=Math.min(y.highlightFrontier,de)}}var xr=!1,hr=!1;function Hr(){xr=!0}function Xr(){hr=!0}function Ur(y,b,de){this.marker=y,this.from=b,this.to=de}function Kr(y,b){if(y)for(var de=0;de<y.length;++de){var ce=y[de];if(ce.marker==b)return ce}}function ri(y,b){for(var de,ce=0;ce<y.length;++ce)y[ce]!=b&&(de||(de=[])).push(y[ce]);return de}function Fr(y,b){y.markedSpans=y.markedSpans?y.markedSpans.concat([b]):[b],b.marker.attachLine(y)}function qr(y,b,de){var ce;if(y)for(var xe=0;xe<y.length;++xe){var ze=y[xe],tt=ze.marker,dt=ze.from==null||(tt.inclusiveLeft?ze.from<=b:ze.from<b);if(dt||ze.from==b&&tt.type=="bookmark"&&(!de||!ze.marker.insertLeft)){var gt=ze.to==null||(tt.inclusiveRight?ze.to>=b:ze.to>b);(ce||(ce=[])).push(new Ur(tt,ze.from,gt?null:ze.to))}}return ce}function Pr(y,b,de){var ce;if(y)for(var xe=0;xe<y.length;++xe){var ze=y[xe],tt=ze.marker,dt=ze.to==null||(tt.inclusiveRight?ze.to>=b:ze.to>b);if(dt||ze.from==b&&tt.type=="bookmark"&&(!de||ze.marker.insertLeft)){var gt=ze.from==null||(tt.inclusiveLeft?ze.from<=b:ze.from<b);(ce||(ce=[])).push(new Ur(tt,gt?null:ze.from-b,ze.to==null?null:ze.to-b))}}return ce}function ei(y,b){if(b.full)return null;var de=Et(y,b.from.line)&&cn(y,b.from.line).markedSpans,ce=Et(y,b.to.line)&&cn(y,b.to.line).markedSpans;if(!de&&!ce)return null;var xe=b.from.ch,ze=b.to.ch,tt=_t(b.from,b.to)==0,dt=qr(de,xe,tt),gt=Pr(ce,ze,tt),Ct=b.text.length==1,Vt=ot(b.text).length+(Ct?xe:0);if(dt)for(var qt=0;qt<dt.length;++qt){var xn=dt[qt];if(xn.to==null){var pn=Kr(gt,xn.marker);pn?Ct&&(xn.to=pn.to==null?null:pn.to+Vt):xn.to=xe}}if(gt)for(var Zn=0;Zn<gt.length;++Zn){var nr=gt[Zn];if(nr.to!=null&&(nr.to+=Vt),nr.from==null){var vr=Kr(dt,nr.marker);vr||(nr.from=Vt,Ct&&(dt||(dt=[])).push(nr))}else nr.from+=Vt,Ct&&(dt||(dt=[])).push(nr)}dt&&(dt=ui(dt)),gt&&gt!=dt&&(gt=ui(gt));var Ar=[dt];if(!Ct){var _r=b.text.length-2,jr;if(_r>0&&dt)for(var Vr=0;Vr<dt.length;++Vr)dt[Vr].to==null&&(jr||(jr=[])).push(new Ur(dt[Vr].marker,null,null));for(var vi=0;vi<_r;++vi)Ar.push(jr);Ar.push(gt)}return Ar}function ui(y){for(var b=0;b<y.length;++b){var de=y[b];de.from!=null&&de.from==de.to&&de.marker.clearWhenEmpty!==!1&&y.splice(b--,1)}return y.length?y:null}function ki(y,b,de){var ce=null;if(y.iter(b.line,de.line+1,function(pn){if(pn.markedSpans)for(var Zn=0;Zn<pn.markedSpans.length;++Zn){var nr=pn.markedSpans[Zn].marker;nr.readOnly&&(!ce||nt(ce,nr)==-1)&&(ce||(ce=[])).push(nr)}}),!ce)return null;for(var xe=[{from:b,to:de}],ze=0;ze<ce.length;++ze)for(var tt=ce[ze],dt=tt.find(0),gt=0;gt<xe.length;++gt){var Ct=xe[gt];if(!(_t(Ct.to,dt.from)<0||_t(Ct.from,dt.to)>0)){var Vt=[gt,1],qt=_t(Ct.from,dt.from),xn=_t(Ct.to,dt.to);(qt<0||!tt.inclusiveLeft&&!qt)&&Vt.push({from:Ct.from,to:dt.from}),(xn>0||!tt.inclusiveRight&&!xn)&&Vt.push({from:dt.to,to:Ct.to}),xe.splice.apply(xe,Vt),gt+=Vt.length-3}}return xe}function mi(y){var b=y.markedSpans;if(b){for(var de=0;de<b.length;++de)b[de].marker.detachLine(y);y.markedSpans=null}}function xi(y,b){if(b){for(var de=0;de<b.length;++de)b[de].marker.attachLine(y);y.markedSpans=b}}function hi(y){return y.inclusiveLeft?-1:0}function ir(y){return y.inclusiveRight?1:0}function Qn(y,b){var de=y.lines.length-b.lines.length;if(de!=0)return de;var ce=y.find(),xe=b.find(),ze=_t(ce.from,xe.from)||hi(y)-hi(b);if(ze)return-ze;var tt=_t(ce.to,xe.to)||ir(y)-ir(b);return tt||b.id-y.id}function gr(y,b){var de=hr&&y.markedSpans,ce;if(de)for(var xe=void 0,ze=0;ze<de.length;++ze)xe=de[ze],xe.marker.collapsed&&(b?xe.from:xe.to)==null&&(!ce||Qn(ce,xe.marker)<0)&&(ce=xe.marker);return ce}function Xn(y){return gr(y,!0)}function bn(y){return gr(y,!1)}function kn(y,b){var de=hr&&y.markedSpans,ce;if(de)for(var xe=0;xe<de.length;++xe){var ze=de[xe];ze.marker.collapsed&&(ze.from==null||ze.from<b)&&(ze.to==null||ze.to>b)&&(!ce||Qn(ce,ze.marker)<0)&&(ce=ze.marker)}return ce}function Ln(y,b,de,ce,xe){var ze=cn(y,b),tt=hr&&ze.markedSpans;if(tt)for(var dt=0;dt<tt.length;++dt){var gt=tt[dt];if(gt.marker.collapsed){var Ct=gt.marker.find(0),Vt=_t(Ct.from,de)||hi(gt.marker)-hi(xe),qt=_t(Ct.to,ce)||ir(gt.marker)-ir(xe);if(!(Vt>=0&&qt<=0||Vt<=0&&qt>=0)&&(Vt<=0&&(gt.marker.inclusiveRight&&xe.inclusiveLeft?_t(Ct.to,de)>=0:_t(Ct.to,de)>0)||Vt>=0&&(gt.marker.inclusiveRight&&xe.inclusiveLeft?_t(Ct.from,ce)<=0:_t(Ct.from,ce)<0)))return!0}}}function jn(y){for(var b;b=Xn(y);)y=b.find(-1,!0).line;return y}function tr(y){for(var b;b=bn(y);)y=b.find(1,!0).line;return y}function ur(y){for(var b,de;b=bn(y);)y=b.find(1,!0).line,(de||(de=[])).push(y);return de}function Nn(y,b){var de=cn(y,b),ce=jn(de);return de==ce?b:Rt(ce)}function Sn(y,b){if(b>y.lastLine())return b;var de=cn(y,b),ce;if(!Un(y,de))return b;for(;ce=bn(de);)de=ce.find(1,!0).line;return Rt(de)+1}function Un(y,b){var de=hr&&b.markedSpans;if(de){for(var ce=void 0,xe=0;xe<de.length;++xe)if(ce=de[xe],!!ce.marker.collapsed){if(ce.from==null)return!0;if(!ce.marker.widgetNode&&ce.from==0&&ce.marker.inclusiveLeft&&rr(y,b,ce))return!0}}}function rr(y,b,de){if(de.to==null){var ce=de.marker.find(1,!0);return rr(y,ce.line,Kr(ce.line.markedSpans,de.marker))}if(de.marker.inclusiveRight&&de.to==b.text.length)return!0;for(var xe=void 0,ze=0;ze<b.markedSpans.length;++ze)if(xe=b.markedSpans[ze],xe.marker.collapsed&&!xe.marker.widgetNode&&xe.from==de.to&&(xe.to==null||xe.to!=de.from)&&(xe.marker.inclusiveLeft||de.marker.inclusiveRight)&&rr(y,b,xe))return!0}function Gr(y){y=jn(y);for(var b=0,de=y.parent,ce=0;ce<de.lines.length;++ce){var xe=de.lines[ce];if(xe==y)break;b+=xe.height}for(var ze=de.parent;ze;de=ze,ze=de.parent)for(var tt=0;tt<ze.children.length;++tt){var dt=ze.children[tt];if(dt==de)break;b+=dt.height}return b}function wi(y){if(y.height==0)return 0;for(var b=y.text.length,de,ce=y;de=Xn(ce);){var xe=de.find(0,!0);ce=xe.from.line,b+=xe.from.ch-xe.to.ch}for(ce=y;de=bn(ce);){var ze=de.find(0,!0);b-=ce.text.length-ze.from.ch,ce=ze.to.line,b+=ce.text.length-ze.to.ch}return b}function ci(y){var b=y.display,de=y.doc;b.maxLine=cn(de,de.first),b.maxLineLength=wi(b.maxLine),b.maxLineChanged=!0,de.iter(function(ce){var xe=wi(ce);xe>b.maxLineLength&&(b.maxLineLength=xe,b.maxLine=ce)})}var ji=function(y,b,de){this.text=y,xi(this,b),this.height=de?de(this):1};ji.prototype.lineNo=function(){return Rt(this)},xt(ji);function Ci(y,b,de,ce){y.text=b,y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null),y.order!=null&&(y.order=null),mi(y),xi(y,de);var xe=ce?ce(y):1;xe!=y.height&&wr(y,xe)}function Si(y){y.parent=null,mi(y)}var Ni={},Mi={};function Pi(y,b){if(!y||/^\s*$/.test(y))return null;var de=b.addModeClass?Mi:Ni;return de[y]||(de[y]=y.replace(/\S+/g,"cm-$&"))}function ro(y,b){var de=Ie("span",null,null,z?"padding-right: .1px":null),ce={pre:Ie("pre",[de],"CodeMirror-line"),content:de,col:0,pos:0,cm:y,trailingSpace:!1,splitSpaces:y.getOption("lineWrapping")};b.measure={};for(var xe=0;xe<=(b.rest?b.rest.length:0);xe++){var ze=xe?b.rest[xe-1]:b.line,tt=void 0;ce.pos=0,ce.addToken=go,Fn(y.display.measure)&&(tt=ut(ze,y.doc.direction))&&(ce.addToken=Co(ce.addToken,tt)),ce.map=[];var dt=b!=y.display.externalMeasured&&Rt(ze);Wr(ze,ce,er(y,ze,dt)),ze.styleClasses&&(ze.styleClasses.bgClass&&(ce.bgClass=Ue(ze.styleClasses.bgClass,ce.bgClass||"")),ze.styleClasses.textClass&&(ce.textClass=Ue(ze.styleClasses.textClass,ce.textClass||""))),ce.map.length==0&&ce.map.push(0,0,ce.content.appendChild(wn(y.display.measure))),xe==0?(b.measure.map=ce.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(ce.map),(b.measure.caches||(b.measure.caches=[])).push({}))}if(z){var gt=ce.content.lastChild;(/\bcm-tab\b/.test(gt.className)||gt.querySelector&&gt.querySelector(".cm-tab"))&&(ce.content.className="cm-tab-wrap-hack")}return At(y,"renderLine",y,b.line,ce.pre),ce.pre.className&&(ce.textClass=Ue(ce.pre.className,ce.textClass||"")),ce}function vo(y){var b=Ee("span","\u2022","cm-invalidchar");return b.title="\\u"+y.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function go(y,b,de,ce,xe,ze,tt){if(b){var dt=y.splitSpaces?Ao(b,y.trailingSpace):b,gt=y.cm.state.specialChars,Ct=!1,Vt;if(!gt.test(b))y.col+=b.length,Vt=document.createTextNode(dt),y.map.push(y.pos,y.pos+b.length,Vt),ge&&x<9&&(Ct=!0),y.pos+=b.length;else{Vt=document.createDocumentFragment();for(var qt=0;;){gt.lastIndex=qt;var xn=gt.exec(b),pn=xn?xn.index-qt:b.length-qt;if(pn){var Zn=document.createTextNode(dt.slice(qt,qt+pn));ge&&x<9?Vt.appendChild(Ee("span",[Zn])):Vt.appendChild(Zn),y.map.push(y.pos,y.pos+pn,Zn),y.col+=pn,y.pos+=pn}if(!xn)break;qt+=pn+1;var nr=void 0;if(xn[0]==" "){var vr=y.cm.options.tabSize,Ar=vr-y.col%vr;nr=Vt.appendChild(Ee("span",vt(Ar),"cm-tab")),nr.setAttribute("role","presentation"),nr.setAttribute("cm-text"," "),y.col+=Ar}else xn[0]=="\r"||xn[0]==`
`?(nr=Vt.appendChild(Ee("span",xn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),nr.setAttribute("cm-text",xn[0]),y.col+=1):(nr=y.cm.options.specialCharPlaceholder(xn[0]),nr.setAttribute("cm-text",xn[0]),ge&&x<9?Vt.appendChild(Ee("span",[nr])):Vt.appendChild(nr),y.col+=1);y.map.push(y.pos,y.pos+1,nr),y.pos++}}if(y.trailingSpace=dt.charCodeAt(b.length-1)==32,de||ce||xe||Ct||ze||tt){var _r=de||"";ce&&(_r+=ce),xe&&(_r+=xe);var jr=Ee("span",[Vt],_r,ze);if(tt)for(var Vr in tt)tt.hasOwnProperty(Vr)&&Vr!="style"&&Vr!="class"&&jr.setAttribute(Vr,tt[Vr]);return y.content.appendChild(jr)}y.content.appendChild(Vt)}}function Ao(y,b){if(y.length>1&&!/ /.test(y))return y;for(var de=b,ce="",xe=0;xe<y.length;xe++){var ze=y.charAt(xe);ze==" "&&de&&(xe==y.length-1||y.charCodeAt(xe+1)==32)&&(ze="\xA0"),ce+=ze,de=ze==" "}return ce}function Co(y,b){return function(de,ce,xe,ze,tt,dt,gt){xe=xe?xe+" cm-force-border":"cm-force-border";for(var Ct=de.pos,Vt=Ct+ce.length;;){for(var qt=void 0,xn=0;xn<b.length&&(qt=b[xn],!(qt.to>Ct&&qt.from<=Ct));xn++);if(qt.to>=Vt)return y(de,ce,xe,ze,tt,dt,gt);y(de,ce.slice(0,qt.to-Ct),xe,ze,null,dt,gt),ze=null,ce=ce.slice(qt.to-Ct),Ct=qt.to}}}function ti(y,b,de,ce){var xe=!ce&&de.widgetNode;xe&&y.map.push(y.pos,y.pos+b,xe),!ce&&y.cm.display.input.needsContentAttribute&&(xe||(xe=y.content.appendChild(document.createElement("span"))),xe.setAttribute("cm-marker",de.id)),xe&&(y.cm.display.input.setUneditable(xe),y.content.appendChild(xe)),y.pos+=b,y.trailingSpace=!1}function Wr(y,b,de){var ce=y.markedSpans,xe=y.text,ze=0;if(!ce){for(var tt=1;tt<de.length;tt+=2)b.addToken(b,xe.slice(ze,ze=de[tt]),Pi(de[tt+1],b.cm.options));return}for(var dt=xe.length,gt=0,Ct=1,Vt="",qt,xn,pn=0,Zn,nr,vr,Ar,_r;;){if(pn==gt){Zn=nr=vr=xn="",_r=null,Ar=null,pn=1/0;for(var jr=[],Vr=void 0,vi=0;vi<ce.length;++vi){var li=ce[vi],Fi=li.marker;if(Fi.type=="bookmark"&&li.from==gt&&Fi.widgetNode)jr.push(Fi);else if(li.from<=gt&&(li.to==null||li.to>gt||Fi.collapsed&&li.to==gt&&li.from==gt)){if(li.to!=null&&li.to!=gt&&pn>li.to&&(pn=li.to,nr=""),Fi.className&&(Zn+=" "+Fi.className),Fi.css&&(xn=(xn?xn+";":"")+Fi.css),Fi.startStyle&&li.from==gt&&(vr+=" "+Fi.startStyle),Fi.endStyle&&li.to==pn&&(Vr||(Vr=[])).push(Fi.endStyle,li.to),Fi.title&&((_r||(_r={})).title=Fi.title),Fi.attributes)for(var bo in Fi.attributes)(_r||(_r={}))[bo]=Fi.attributes[bo];Fi.collapsed&&(!Ar||Qn(Ar.marker,Fi)<0)&&(Ar=li)}else li.from>gt&&pn>li.from&&(pn=li.from)}if(Vr)for(var ra=0;ra<Vr.length;ra+=2)Vr[ra+1]==pn&&(nr+=" "+Vr[ra]);if(!Ar||Ar.from==gt)for(var No=0;No<jr.length;++No)ti(b,0,jr[No]);if(Ar&&(Ar.from||0)==gt){if(ti(b,(Ar.to==null?dt+1:Ar.to)-gt,Ar.marker,Ar.from==null),Ar.to==null)return;Ar.to==gt&&(Ar=!1)}}if(gt>=dt)break;for(var Ra=Math.min(dt,pn);;){if(Vt){var Oa=gt+Vt.length;if(!Ar){var Vo=Oa>Ra?Vt.slice(0,Ra-gt):Vt;b.addToken(b,Vo,qt?qt+Zn:Zn,vr,gt+Vo.length==pn?nr:"",xn,_r)}if(Oa>=Ra){Vt=Vt.slice(Ra-gt),gt=Ra;break}gt=Oa,vr=""}Vt=xe.slice(ze,ze=de[Ct++]),qt=Pi(de[Ct++],b.cm.options)}}}function Qi(y,b,de){this.line=b,this.rest=ur(b),this.size=this.rest?Rt(ot(this.rest))-de+1:1,this.node=this.text=null,this.hidden=Un(y,b)}function qi(y,b,de){for(var ce=[],xe,ze=b;ze<de;ze=xe){var tt=new Qi(y.doc,cn(y.doc,ze),ze);xe=ze+tt.size,ce.push(tt)}return ce}var si=null;function Zi(y){si?si.ops.push(y):y.ownsGroup=si={ops:[y],delayedCallbacks:[]}}function Yi(y){var b=y.delayedCallbacks,de=0;do{for(;de<b.length;de++)b[de].call(null);for(var ce=0;ce<y.ops.length;ce++){var xe=y.ops[ce];if(xe.cursorActivityHandlers)for(;xe.cursorActivityCalled<xe.cursorActivityHandlers.length;)xe.cursorActivityHandlers[xe.cursorActivityCalled++].call(null,xe.cm)}}while(de<b.length)}function yi(y,b){var de=y.ownsGroup;if(de)try{Yi(de)}finally{si=null,b(de)}}var _i=null;function Ri(y,b){var de=wt(y,b);if(de.length){var ce=Array.prototype.slice.call(arguments,2),xe;si?xe=si.delayedCallbacks:_i?xe=_i:(xe=_i=[],setTimeout(_o,0));for(var ze=function(dt){xe.push(function(){return de[dt].apply(null,ce)})},tt=0;tt<de.length;++tt)ze(tt)}}function _o(){var y=_i;_i=null;for(var b=0;b<y.length;++b)y[b]()}function ha(y,b,de,ce){for(var xe=0;xe<b.changes.length;xe++){var ze=b.changes[xe];ze=="text"?es(y,b):ze=="gutter"?Ei(y,b,de,ce):ze=="class"?di(y,b):ze=="widget"&&ii(y,b,ce)}b.changes=null}function Zo(y){return y.node==y.text&&(y.node=Ee("div",null,null,"position: relative"),y.text.parentNode&&y.text.parentNode.replaceChild(y.node,y.text),y.node.appendChild(y.text),ge&&x<8&&(y.node.style.zIndex=2)),y.node}function jo(y,b){var de=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;if(de&&(de+=" CodeMirror-linebackground"),b.background)de?b.background.className=de:(b.background.parentNode.removeChild(b.background),b.background=null);else if(de){var ce=Zo(b);b.background=ce.insertBefore(Ee("div",null,de),ce.firstChild),y.display.input.setUneditable(b.background)}}function cs(y,b){var de=y.display.externalMeasured;return de&&de.line==b.line?(y.display.externalMeasured=null,b.measure=de.measure,de.built):ro(y,b)}function es(y,b){var de=b.text.className,ce=cs(y,b);b.text==b.node&&(b.node=ce.pre),b.text.parentNode.replaceChild(ce.pre,b.text),b.text=ce.pre,ce.bgClass!=b.bgClass||ce.textClass!=b.textClass?(b.bgClass=ce.bgClass,b.textClass=ce.textClass,di(y,b)):de&&(b.text.className=de)}function di(y,b){jo(y,b),b.line.wrapClass?Zo(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");var de=b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass;b.text.className=de||""}function Ei(y,b,de,ce){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 xe=Zo(b);b.gutterBackground=Ee("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,"left: "+(y.options.fixedGutter?ce.fixedPos:-ce.gutterTotalWidth)+"px; width: "+ce.gutterTotalWidth+"px"),y.display.input.setUneditable(b.gutterBackground),xe.insertBefore(b.gutterBackground,b.text)}var ze=b.line.gutterMarkers;if(y.options.lineNumbers||ze){var tt=Zo(b),dt=b.gutter=Ee("div",null,"CodeMirror-gutter-wrapper","left: "+(y.options.fixedGutter?ce.fixedPos:-ce.gutterTotalWidth)+"px");if(y.display.input.setUneditable(dt),tt.insertBefore(dt,b.text),b.line.gutterClass&&(dt.className+=" "+b.line.gutterClass),y.options.lineNumbers&&(!ze||!ze["CodeMirror-linenumbers"])&&(b.lineNumber=dt.appendChild(Ee("div",Dt(y.options,de),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ce.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+y.display.lineNumInnerWidth+"px"))),ze)for(var gt=0;gt<y.display.gutterSpecs.length;++gt){var Ct=y.display.gutterSpecs[gt].className,Vt=ze.hasOwnProperty(Ct)&&ze[Ct];Vt&&dt.appendChild(Ee("div",[Vt],"CodeMirror-gutter-elt","left: "+ce.gutterLeft[Ct]+"px; width: "+ce.gutterWidth[Ct]+"px"))}}}function ii(y,b,de){b.alignable&&(b.alignable=null);for(var ce=ke("CodeMirror-linewidget"),xe=b.node.firstChild,ze=void 0;xe;xe=ze)ze=xe.nextSibling,ce.test(xe.className)&&b.node.removeChild(xe);Ui(y,b,de)}function fi(y,b,de,ce){var xe=cs(y,b);return b.text=b.node=xe.pre,xe.bgClass&&(b.bgClass=xe.bgClass),xe.textClass&&(b.textClass=xe.textClass),di(y,b),Ei(y,b,de,ce),Ui(y,b,ce),b.node}function Ui(y,b,de){if(lo(y,b.line,b,de,!0),b.rest)for(var ce=0;ce<b.rest.length;ce++)lo(y,b.rest[ce],b,de,!1)}function lo(y,b,de,ce,xe){if(b.widgets)for(var ze=Zo(de),tt=0,dt=b.widgets;tt<dt.length;++tt){var gt=dt[tt],Ct=Ee("div",[gt.node],"CodeMirror-linewidget"+(gt.className?" "+gt.className:""));gt.handleMouseEvents||Ct.setAttribute("cm-ignore-events","true"),Na(gt,Ct,de,ce),y.display.input.setUneditable(Ct),xe&&gt.above?ze.insertBefore(Ct,de.gutter||de.text):ze.appendChild(Ct),Ri(gt,"redraw")}}function Na(y,b,de,ce){if(y.noHScroll){(de.alignable||(de.alignable=[])).push(b);var xe=ce.wrapperWidth;b.style.left=ce.fixedPos+"px",y.coverGutter||(xe-=ce.gutterTotalWidth,b.style.paddingLeft=ce.gutterTotalWidth+"px"),b.style.width=xe+"px"}y.coverGutter&&(b.style.zIndex=5,b.style.position="relative",y.noHScroll||(b.style.marginLeft=-ce.gutterTotalWidth+"px"))}function oa(y){if(y.height!=null)return y.height;var b=y.doc.cm;if(!b)return 0;if(!Le(document.body,y.node)){var de="position: relative;";y.coverGutter&&(de+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),y.noHScroll&&(de+="width: "+b.display.wrapper.clientWidth+"px;"),Se(b.display.measure,Ee("div",[y.node],null,de))}return y.height=y.node.parentNode.offsetHeight}function Yo(y,b){for(var de=jt(b);de!=y.wrapper;de=de.parentNode)if(!de||de.nodeType==1&&de.getAttribute("cm-ignore-events")=="true"||de.parentNode==y.sizer&&de!=y.mover)return!0}function Do(y){return y.lineSpace.offsetTop}function Aa(y){return y.mover.offsetHeight-y.lineSpace.offsetHeight}function _a(y){if(y.cachedPaddingH)return y.cachedPaddingH;var b=Se(y.measure,Ee("pre","x","CodeMirror-line-like")),de=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,ce={left:parseInt(de.paddingLeft),right:parseInt(de.paddingRight)};return!isNaN(ce.left)&&!isNaN(ce.right)&&(y.cachedPaddingH=ce),ce}function pa(y){return rt-y.display.nativeBarWidth}function $a(y){return y.display.scroller.clientWidth-pa(y)-y.display.barWidth}function Ya(y){return y.display.scroller.clientHeight-pa(y)-y.display.barHeight}function ja(y,b,de){var ce=y.options.lineWrapping,xe=ce&&$a(y);if(!b.measure.heights||ce&&b.measure.width!=xe){var ze=b.measure.heights=[];if(ce){b.measure.width=xe;for(var tt=b.text.firstChild.getClientRects(),dt=0;dt<tt.length-1;dt++){var gt=tt[dt],Ct=tt[dt+1];Math.abs(gt.bottom-Ct.bottom)>2&&ze.push((gt.bottom+Ct.top)/2-de.top)}}ze.push(de.bottom-de.top)}}function ds(y,b,de){if(y.line==b)return{map:y.measure.map,cache:y.measure.cache};for(var ce=0;ce<y.rest.length;ce++)if(y.rest[ce]==b)return{map:y.measure.maps[ce],cache:y.measure.caches[ce]};for(var xe=0;xe<y.rest.length;xe++)if(Rt(y.rest[xe])>de)return{map:y.measure.maps[xe],cache:y.measure.caches[xe],before:!0}}function vl(y,b){b=jn(b);var de=Rt(b),ce=y.display.externalMeasured=new Qi(y.doc,b,de);ce.lineN=de;var xe=ce.built=ro(y,ce);return ce.text=xe.pre,Se(y.display.lineMeasure,xe.pre),ce}function Js(y,b,de,ce){return Da(y,ts(y,b),de,ce)}function za(y,b){if(b>=y.display.viewFrom&&b<y.display.viewTo)return y.display.view[Ha(y,b)];var de=y.display.externalMeasured;if(de&&b>=de.lineN&&b<de.lineN+de.size)return de}function ts(y,b){var de=Rt(b),ce=za(y,de);ce&&!ce.text?ce=null:ce&&ce.changes&&(ha(y,ce,de,rs(y)),y.curOp.forceUpdate=!0),ce||(ce=vl(y,b));var xe=ds(ce,b,de);return{line:b,view:ce,rect:null,map:xe.map,cache:xe.cache,before:xe.before,hasHeights:!1}}function Da(y,b,de,ce,xe){b.before&&(de=-1);var ze=de+(ce||""),tt;return b.cache.hasOwnProperty(ze)?tt=b.cache[ze]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(ja(y,b.view,b.rect),b.hasHeights=!0),tt=el(y,b,de,ce),tt.bogus||(b.cache[ze]=tt)),{left:tt.left,right:tt.right,top:xe?tt.rtop:tt.top,bottom:xe?tt.rbottom:tt.bottom}}var gl={left:0,right:0,top:0,bottom:0};function Ms(y,b,de){for(var ce,xe,ze,tt,dt,gt,Ct=0;Ct<y.length;Ct+=3)if(dt=y[Ct],gt=y[Ct+1],b<dt?(xe=0,ze=1,tt="left"):b<gt?(xe=b-dt,ze=xe+1):(Ct==y.length-3||b==gt&&y[Ct+3]>b)&&(ze=gt-dt,xe=ze-1,b>=gt&&(tt="right")),xe!=null){if(ce=y[Ct+2],dt==gt&&de==(ce.insertLeft?"left":"right")&&(tt=de),de=="left"&&xe==0)for(;Ct&&y[Ct-2]==y[Ct-3]&&y[Ct-1].insertLeft;)ce=y[(Ct-=3)+2],tt="left";if(de=="right"&&xe==gt-dt)for(;Ct<y.length-3&&y[Ct+3]==y[Ct+4]&&!y[Ct+5].insertLeft;)ce=y[(Ct+=3)+2],tt="right";break}return{node:ce,start:xe,end:ze,collapse:tt,coverStart:dt,coverEnd:gt}}function Qs(y,b){var de=gl;if(b=="left")for(var ce=0;ce<y.length&&(de=y[ce]).left==de.right;ce++);else for(var xe=y.length-1;xe>=0&&(de=y[xe]).left==de.right;xe--);return de}function el(y,b,de,ce){var xe=Ms(b.map,de,ce),ze=xe.node,tt=xe.start,dt=xe.end,gt=xe.collapse,Ct;if(ze.nodeType==3){for(var Vt=0;Vt<4;Vt++){for(;tt&&Oe(b.line.text.charAt(xe.coverStart+tt));)--tt;for(;xe.coverStart+dt<xe.coverEnd&&Oe(b.line.text.charAt(xe.coverStart+dt));)++dt;if(ge&&x<9&&tt==0&&dt==xe.coverEnd-xe.coverStart?Ct=ze.parentNode.getBoundingClientRect():Ct=Qs(Me(ze,tt,dt).getClientRects(),ce),Ct.left||Ct.right||tt==0)break;dt=tt,tt=tt-1,gt="right"}ge&&x<11&&(Ct=zl(y.display.measure,Ct))}else{tt>0&&(gt=ce="right");var qt;y.options.lineWrapping&&(qt=ze.getClientRects()).length>1?Ct=qt[ce=="right"?qt.length-1:0]:Ct=ze.getBoundingClientRect()}if(ge&&x<9&&!tt&&(!Ct||!Ct.left&&!Ct.right)){var xn=ze.parentNode.getClientRects()[0];xn?Ct={left:xn.left,right:xn.left+La(y.display),top:xn.top,bottom:xn.bottom}:Ct=gl}for(var pn=Ct.top-b.rect.top,Zn=Ct.bottom-b.rect.top,nr=(pn+Zn)/2,vr=b.view.measure.heights,Ar=0;Ar<vr.length-1&&!(nr<vr[Ar]);Ar++);var _r=Ar?vr[Ar-1]:0,jr=vr[Ar],Vr={left:(gt=="right"?Ct.right:Ct.left)-b.rect.left,right:(gt=="left"?Ct.left:Ct.right)-b.rect.left,top:_r,bottom:jr};return!Ct.left&&!Ct.right&&(Vr.bogus=!0),y.options.singleCursorHeightPerLine||(Vr.rtop=pn,Vr.rbottom=Zn),Vr}function zl(y,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Mn(y))return b;var de=screen.logicalXDPI/screen.deviceXDPI,ce=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*de,right:b.right*de,top:b.top*ce,bottom:b.bottom*ce}}function Rs(y){if(y.measure&&(y.measure.cache={},y.measure.heights=null,y.rest))for(var b=0;b<y.rest.length;b++)y.measure.caches[b]={}}function Wa(y){y.display.externalMeasure=null,De(y.display.lineMeasure);for(var b=0;b<y.display.view.length;b++)Rs(y.display.view[b])}function fs(y){Wa(y),y.display.cachedCharWidth=y.display.cachedTextHeight=y.display.cachedPaddingH=null,y.options.lineWrapping||(y.display.maxLineChanged=!0),y.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 Ns(){return oe&&se?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function hs(y){var b=0;if(y.widgets)for(var de=0;de<y.widgets.length;++de)y.widgets[de].above&&(b+=oa(y.widgets[de]));return b}function Bs(y,b,de,ce,xe){if(!xe){var ze=hs(b);de.top+=ze,de.bottom+=ze}if(ce=="line")return de;ce||(ce="local");var tt=Gr(b);if(ce=="local"?tt+=Do(y.display):tt-=y.display.viewOffset,ce=="page"||ce=="window"){var dt=y.display.lineSpace.getBoundingClientRect();tt+=dt.top+(ce=="window"?0:Ns());var gt=dt.left+(ce=="window"?0:xs());de.left+=gt,de.right+=gt}return de.top+=tt,de.bottom+=tt,de}function tl(y,b,de){if(de=="div")return b;var ce=b.left,xe=b.top;if(de=="page")ce-=xs(),xe-=Ns();else if(de=="local"||!de){var ze=y.display.sizer.getBoundingClientRect();ce+=ze.left,xe+=ze.top}var tt=y.display.lineSpace.getBoundingClientRect();return{left:ce-tt.left,top:xe-tt.top}}function ns(y,b,de,ce,xe){return ce||(ce=cn(y.doc,b.line)),Bs(y,ce,Js(y,ce,b.ch,xe),de)}function aa(y,b,de,ce,xe,ze){ce=ce||cn(y.doc,b.line),xe||(xe=ts(y,ce));function tt(Zn,nr){var vr=Da(y,xe,Zn,nr?"right":"left",ze);return nr?vr.left=vr.right:vr.right=vr.left,Bs(y,ce,vr,de)}var dt=ut(ce,y.doc.direction),gt=b.ch,Ct=b.sticky;if(gt>=ce.text.length?(gt=ce.text.length,Ct="before"):gt<=0&&(gt=0,Ct="after"),!dt)return tt(Ct=="before"?gt-1:gt,Ct=="before");function Vt(Zn,nr,vr){var Ar=dt[nr],_r=Ar.level==1;return tt(vr?Zn-1:Zn,_r!=vr)}var qt=lt(dt,gt,Ct),xn=at,pn=Vt(gt,qt,Ct=="before");return xn!=null&&(pn.other=Vt(gt,xn,Ct!="before")),pn}function Hi(y,b){var de=0;b=$t(y.doc,b),y.options.lineWrapping||(de=La(y.display)*b.ch);var ce=cn(y.doc,b.line),xe=Gr(ce)+Do(y.display);return{left:de,right:de,top:xe,bottom:xe+ce.height}}function Ti(y,b,de,ce,xe){var ze=Tt(y,b,de);return ze.xRel=xe,ce&&(ze.outside=ce),ze}function Ho(y,b,de){var ce=y.doc;if(de+=y.display.viewOffset,de<0)return Ti(ce.first,0,null,-1,-1);var xe=Xt(ce,de),ze=ce.first+ce.size-1;if(xe>ze)return Ti(ce.first+ce.size-1,cn(ce,ze).text.length,null,1,1);b<0&&(b=0);for(var tt=cn(ce,xe);;){var dt=Ba(y,tt,xe,b,de),gt=kn(tt,dt.ch+(dt.xRel>0||dt.outside>0?1:0));if(!gt)return dt;var Ct=gt.find(1);if(Ct.line==xe)return Ct;tt=cn(ce,xe=Ct.line)}}function sa(y,b,de,ce){ce-=hs(b);var xe=b.text.length,ze=Ze(function(tt){return Da(y,de,tt-1).bottom<=ce},xe,0);return xe=Ze(function(tt){return Da(y,de,tt).top>ce},ze,xe),{begin:ze,end:xe}}function ko(y,b,de,ce){de||(de=ts(y,b));var xe=Bs(y,b,Da(y,de,ce),"line").top;return sa(y,b,de,xe)}function Uo(y,b,de,ce){return y.bottom<=de?!1:y.top>de?!0:(ce?y.left:y.right)>b}function Ba(y,b,de,ce,xe){xe-=Gr(b);var ze=ts(y,b),tt=hs(b),dt=0,gt=b.text.length,Ct=!0,Vt=ut(b,y.doc.direction);if(Vt){var qt=(y.options.lineWrapping?Za:ka)(y,b,de,ze,Vt,ce,xe);Ct=qt.level!=1,dt=Ct?qt.from:qt.to-1,gt=Ct?qt.to:qt.from-1}var xn=null,pn=null,Zn=Ze(function(vi){var li=Da(y,ze,vi);return li.top+=tt,li.bottom+=tt,Uo(li,ce,xe,!1)?(li.top<=xe&&li.left<=ce&&(xn=vi,pn=li),!0):!1},dt,gt),nr,vr,Ar=!1;if(pn){var _r=ce-pn.left<pn.right-ce,jr=_r==Ct;Zn=xn+(jr?0:1),vr=jr?"after":"before",nr=_r?pn.left:pn.right}else{!Ct&&(Zn==gt||Zn==dt)&&Zn++,vr=Zn==0?"after":Zn==b.text.length?"before":Da(y,ze,Zn-(Ct?1:0)).bottom+tt<=xe==Ct?"after":"before";var Vr=aa(y,Tt(de,Zn,vr),"line",b,ze);nr=Vr.left,Ar=xe<Vr.top?-1:xe>=Vr.bottom?1:0}return Zn=$e(b.text,Zn,1),Ti(de,Zn,vr,Ar,ce-nr)}function ka(y,b,de,ce,xe,ze,tt){var dt=Ze(function(qt){var xn=xe[qt],pn=xn.level!=1;return Uo(aa(y,Tt(de,pn?xn.to:xn.from,pn?"before":"after"),"line",b,ce),ze,tt,!0)},0,xe.length-1),gt=xe[dt];if(dt>0){var Ct=gt.level!=1,Vt=aa(y,Tt(de,Ct?gt.from:gt.to,Ct?"after":"before"),"line",b,ce);Uo(Vt,ze,tt,!0)&&Vt.top>tt&&(gt=xe[dt-1])}return gt}function Za(y,b,de,ce,xe,ze,tt){var dt=sa(y,b,ce,tt),gt=dt.begin,Ct=dt.end;/\s/.test(b.text.charAt(Ct-1))&&Ct--;for(var Vt=null,qt=null,xn=0;xn<xe.length;xn++){var pn=xe[xn];if(!(pn.from>=Ct||pn.to<=gt)){var Zn=pn.level!=1,nr=Da(y,ce,Zn?Math.min(Ct,pn.to)-1:Math.max(gt,pn.from)).right,vr=nr<ze?ze-nr+1e9:nr-ze;(!Vt||qt>vr)&&(Vt=pn,qt=vr)}}return Vt||(Vt=xe[xe.length-1]),Vt.from<gt&&(Vt={from:gt,to:Vt.to,level:Vt.level}),Vt.to>Ct&&(Vt={from:Vt.from,to:Ct,level:Vt.level}),Vt}var xa;function wa(y){if(y.cachedTextHeight!=null)return y.cachedTextHeight;if(xa==null){xa=Ee("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)xa.appendChild(document.createTextNode("x")),xa.appendChild(Ee("br"));xa.appendChild(document.createTextNode("x"))}Se(y.measure,xa);var de=xa.offsetHeight/50;return de>3&&(y.cachedTextHeight=de),De(y.measure),de||1}function La(y){if(y.cachedCharWidth!=null)return y.cachedCharWidth;var b=Ee("span","xxxxxxxxxx"),de=Ee("pre",[b],"CodeMirror-line-like");Se(y.measure,de);var ce=b.getBoundingClientRect(),xe=(ce.right-ce.left)/10;return xe>2&&(y.cachedCharWidth=xe),xe||10}function rs(y){for(var b=y.display,de={},ce={},xe=b.gutters.clientLeft,ze=b.gutters.firstChild,tt=0;ze;ze=ze.nextSibling,++tt){var dt=y.display.gutterSpecs[tt].className;de[dt]=ze.offsetLeft+ze.clientLeft+xe,ce[dt]=ze.clientWidth}return{fixedPos:yl(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:de,gutterWidth:ce,wrapperWidth:b.wrapper.clientWidth}}function yl(y){return y.scroller.getBoundingClientRect().left-y.sizer.getBoundingClientRect().left}function bl(y){var b=wa(y.display),de=y.options.lineWrapping,ce=de&&Math.max(5,y.display.scroller.clientWidth/La(y.display)-3);return function(xe){if(Un(y.doc,xe))return 0;var ze=0;if(xe.widgets)for(var tt=0;tt<xe.widgets.length;tt++)xe.widgets[tt].height&&(ze+=xe.widgets[tt].height);return de?ze+(Math.ceil(xe.text.length/ce)||1)*b:ze+b}}function ws(y){var b=y.doc,de=bl(y);b.iter(function(ce){var xe=de(ce);xe!=ce.height&&wr(ce,xe)})}function Ja(y,b,de,ce){var xe=y.display;if(!de&&jt(b).getAttribute("cm-not-content")=="true")return null;var ze,tt,dt=xe.lineSpace.getBoundingClientRect();try{ze=b.clientX-dt.left,tt=b.clientY-dt.top}catch(qt){return null}var gt=Ho(y,ze,tt),Ct;if(ce&&gt.xRel>0&&(Ct=cn(y.doc,gt.line).text).length==gt.ch){var Vt=_e(Ct,Ct.length,y.options.tabSize)-Ct.length;gt=Tt(gt.line,Math.max(0,Math.round((ze-_a(y.display).left)/La(y.display))-Vt))}return gt}function Ha(y,b){if(b>=y.display.viewTo||(b-=y.display.viewFrom,b<0))return null;for(var de=y.display.view,ce=0;ce<de.length;ce++)if(b-=de[ce].size,b<0)return ce}function la(y,b,de,ce){b==null&&(b=y.doc.first),de==null&&(de=y.doc.first+y.doc.size),ce||(ce=0);var xe=y.display;if(ce&&de<xe.viewTo&&(xe.updateLineNumbers==null||xe.updateLineNumbers>b)&&(xe.updateLineNumbers=b),y.curOp.viewChanged=!0,b>=xe.viewTo)hr&&Nn(y.doc,b)<xe.viewTo&&Ua(y);else if(de<=xe.viewFrom)hr&&Sn(y.doc,de+ce)>xe.viewFrom?Ua(y):(xe.viewFrom+=ce,xe.viewTo+=ce);else if(b<=xe.viewFrom&&de>=xe.viewTo)Ua(y);else if(b<=xe.viewFrom){var ze=Ls(y,de,de+ce,1);ze?(xe.view=xe.view.slice(ze.index),xe.viewFrom=ze.lineN,xe.viewTo+=ce):Ua(y)}else if(de>=xe.viewTo){var tt=Ls(y,b,b,-1);tt?(xe.view=xe.view.slice(0,tt.index),xe.viewTo=tt.lineN):Ua(y)}else{var dt=Ls(y,b,b,-1),gt=Ls(y,de,de+ce,1);dt&&gt?(xe.view=xe.view.slice(0,dt.index).concat(qi(y,dt.lineN,gt.lineN)).concat(xe.view.slice(gt.index)),xe.viewTo+=ce):Ua(y)}var Ct=xe.externalMeasured;Ct&&(de<Ct.lineN?Ct.lineN+=ce:b<Ct.lineN+Ct.size&&(xe.externalMeasured=null))}function is(y,b,de){y.curOp.viewChanged=!0;var ce=y.display,xe=y.display.externalMeasured;if(xe&&b>=xe.lineN&&b<xe.lineN+xe.size&&(ce.externalMeasured=null),!(b<ce.viewFrom||b>=ce.viewTo)){var ze=ce.view[Ha(y,b)];if(ze.node!=null){var tt=ze.changes||(ze.changes=[]);nt(tt,de)==-1&&tt.push(de)}}}function Ua(y){y.display.viewFrom=y.display.viewTo=y.doc.first,y.display.view=[],y.display.viewOffset=0}function Ls(y,b,de,ce){var xe=Ha(y,b),ze,tt=y.display.view;if(!hr||de==y.doc.first+y.doc.size)return{index:xe,lineN:de};for(var dt=y.display.viewFrom,gt=0;gt<xe;gt++)dt+=tt[gt].size;if(dt!=b){if(ce>0){if(xe==tt.length-1)return null;ze=dt+tt[xe].size-b,xe++}else ze=dt-b;b+=ze,de+=ze}for(;Nn(y.doc,de)!=de;){if(xe==(ce<0?0:tt.length-1))return null;de+=ce*tt[xe-(ce<0?1:0)].size,xe+=ce}return{index:xe,lineN:de}}function Wl(y,b,de){var ce=y.display,xe=ce.view;xe.length==0||b>=ce.viewTo||de<=ce.viewFrom?(ce.view=qi(y,b,de),ce.viewFrom=b):(ce.viewFrom>b?ce.view=qi(y,b,ce.viewFrom).concat(ce.view):ce.viewFrom<b&&(ce.view=ce.view.slice(Ha(y,b))),ce.viewFrom=b,ce.viewTo<de?ce.view=ce.view.concat(qi(y,ce.viewTo,de)):ce.viewTo>de&&(ce.view=ce.view.slice(0,Ha(y,de)))),ce.viewTo=de}function xl(y){for(var b=y.display.view,de=0,ce=0;ce<b.length;ce++){var xe=b[ce];!xe.hidden&&(!xe.node||xe.changes)&&++de}return de}function ps(y){y.display.input.showSelection(y.display.input.prepareSelection())}function iu(y,b){b===void 0&&(b=!0);for(var de=y.doc,ce={},xe=ce.cursors=document.createDocumentFragment(),ze=ce.selection=document.createDocumentFragment(),tt=0;tt<de.sel.ranges.length;tt++)if(!(!b&&tt==de.sel.primIndex)){var dt=de.sel.ranges[tt];if(!(dt.from().line>=y.display.viewTo||dt.to().line<y.display.viewFrom)){var gt=dt.empty();(gt||y.options.showCursorWhenSelecting)&&Zl(y,dt.head,xe),gt||Iu(y,dt,ze)}}return ce}function Zl(y,b,de){var ce=aa(y,b,"div",null,null,!y.options.singleCursorHeightPerLine),xe=de.appendChild(Ee("div","\xA0","CodeMirror-cursor"));if(xe.style.left=ce.left+"px",xe.style.top=ce.top+"px",xe.style.height=Math.max(0,ce.bottom-ce.top)*y.options.cursorHeight+"px",ce.other){var ze=de.appendChild(Ee("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ze.style.display="",ze.style.left=ce.other.left+"px",ze.style.top=ce.other.top+"px",ze.style.height=(ce.other.bottom-ce.other.top)*.85+"px"}}function Fs(y,b){return y.top-b.top||y.left-b.left}function Iu(y,b,de){var ce=y.display,xe=y.doc,ze=document.createDocumentFragment(),tt=_a(y.display),dt=tt.left,gt=Math.max(ce.sizerWidth,$a(y)-ce.sizer.offsetLeft)-tt.right,Ct=xe.direction=="ltr";function Vt(jr,Vr,vi,li){Vr<0&&(Vr=0),Vr=Math.round(Vr),li=Math.round(li),ze.appendChild(Ee("div",null,"CodeMirror-selected","position: absolute; left: "+jr+`px;
top: `+Vr+"px; width: "+(vi==null?gt-jr:vi)+`px;
height: `+(li-Vr)+"px"))}function qt(jr,Vr,vi){var li=cn(xe,jr),Fi=li.text.length,bo,ra;function No(Vo,Ia){return ns(y,Tt(jr,Vo),"div",li,Ia)}function Ra(Vo,Ia,fa){var qo=ko(y,li,null,Vo),Xo=Ia=="ltr"==(fa=="after")?"left":"right",Fo=fa=="after"?qo.begin:qo.end-(/\s/.test(li.text.charAt(qo.end-1))?2:1);return No(Fo,Xo)[Xo]}var Oa=ut(li,xe.direction);return Xe(Oa,Vr||0,vi==null?Fi:vi,function(Vo,Ia,fa,qo){var Xo=fa=="ltr",Fo=No(Vo,Xo?"left":"right"),Pa=No(Ia-1,Xo?"right":"left"),pl=Vr==null&&Vo==0,ks=vi==null&&Ia==Fi,ba=qo==0,us=!Oa||qo==Oa.length-1;if(Pa.top-Fo.top<=3){var ia=(Ct?pl:ks)&&ba,Tu=(Ct?ks:pl)&&us,bs=ia?dt:(Xo?Fo:Pa).left,Xs=Tu?gt:(Xo?Pa:Fo).right;Vt(bs,Fo.top,Xs-bs,Fo.bottom)}else{var Ys,Ca,ml,Ou;Xo?(Ys=Ct&&pl&&ba?dt:Fo.left,Ca=Ct?gt:Ra(Vo,fa,"before"),ml=Ct?dt:Ra(Ia,fa,"after"),Ou=Ct&&ks&&us?gt:Pa.right):(Ys=Ct?Ra(Vo,fa,"before"):dt,Ca=!Ct&&pl&&ba?gt:Fo.right,ml=!Ct&&ks&&us?dt:Pa.left,Ou=Ct?Ra(Ia,fa,"after"):gt),Vt(Ys,Fo.top,Ca-Ys,Fo.bottom),Fo.bottom<Pa.top&&Vt(dt,Fo.bottom,null,Pa.top),Vt(ml,Pa.top,Ou-ml,Pa.bottom)}(!bo||Fs(Fo,bo)<0)&&(bo=Fo),Fs(Pa,bo)<0&&(bo=Pa),(!ra||Fs(Fo,ra)<0)&&(ra=Fo),Fs(Pa,ra)<0&&(ra=Pa)}),{start:bo,end:ra}}var xn=b.from(),pn=b.to();if(xn.line==pn.line)qt(xn.line,xn.ch,pn.ch);else{var Zn=cn(xe,xn.line),nr=cn(xe,pn.line),vr=jn(Zn)==jn(nr),Ar=qt(xn.line,xn.ch,vr?Zn.text.length+1:null).end,_r=qt(pn.line,vr?0:null,pn.ch).start;vr&&(Ar.top<_r.top-2?(Vt(Ar.right,Ar.top,null,Ar.bottom),Vt(dt,_r.top,_r.left,_r.bottom)):Vt(Ar.right,Ar.top,_r.left-Ar.right,Ar.bottom)),Ar.bottom<_r.top&&Vt(dt,Ar.bottom,null,_r.top)}de.appendChild(ze)}function wl(y){if(y.state.focused){var b=y.display;clearInterval(b.blinker);var de=!0;b.cursorDiv.style.visibility="",y.options.cursorBlinkRate>0?b.blinker=setInterval(function(){y.hasFocus()||Cs(y),b.cursorDiv.style.visibility=(de=!de)?"":"hidden"},y.options.cursorBlinkRate):y.options.cursorBlinkRate<0&&(b.cursorDiv.style.visibility="hidden")}}function ou(y){y.state.focused||(y.display.input.focus(),Ul(y))}function Hl(y){y.state.delayingBlurEvent=!0,setTimeout(function(){y.state.delayingBlurEvent&&(y.state.delayingBlurEvent=!1,Cs(y))},100)}function Ul(y,b){y.state.delayingBlurEvent&&(y.state.delayingBlurEvent=!1),y.options.readOnly!="nocursor"&&(y.state.focused||(At(y,"focus",y,b),y.state.focused=!0,Pe(y.display.wrapper,"CodeMirror-focused"),!y.curOp&&y.display.selForContextMenu!=y.doc.sel&&(y.display.input.reset(),z&&setTimeout(function(){return y.display.input.reset(!0)},20)),y.display.input.receivedFocus()),wl(y))}function Cs(y,b){y.state.delayingBlurEvent||(y.state.focused&&(At(y,"blur",y,b),y.state.focused=!1,Be(y.display.wrapper,"CodeMirror-focused")),clearInterval(y.display.blinker),setTimeout(function(){y.state.focused||(y.display.shift=!1)},150))}function oi(y){for(var b=y.display,de=b.lineDiv.offsetTop,ce=0;ce<b.view.length;ce++){var xe=b.view[ce],ze=y.options.lineWrapping,tt=void 0,dt=0;if(!xe.hidden){if(ge&&x<8){var gt=xe.node.offsetTop+xe.node.offsetHeight;tt=gt-de,de=gt}else{var Ct=xe.node.getBoundingClientRect();tt=Ct.bottom-Ct.top,!ze&&xe.text.firstChild&&(dt=xe.text.firstChild.getBoundingClientRect().right-Ct.left-1)}var Vt=xe.line.height-tt;if((Vt>.005||Vt<-.005)&&(wr(xe.line,tt),Ss(xe.line),xe.rest))for(var qt=0;qt<xe.rest.length;qt++)Ss(xe.rest[qt]);if(dt>y.display.sizerWidth){var xn=Math.ceil(dt/La(y.display));xn>y.display.maxLineLength&&(y.display.maxLineLength=xn,y.display.maxLine=xe.line,y.display.maxLineChanged=!0)}}}}function Ss(y){if(y.widgets)for(var b=0;b<y.widgets.length;++b){var de=y.widgets[b],ce=de.node.parentNode;ce&&(de.height=ce.offsetHeight)}}function os(y,b,de){var ce=de&&de.top!=null?Math.max(0,de.top):y.scroller.scrollTop;ce=Math.floor(ce-Do(y));var xe=de&&de.bottom!=null?de.bottom:ce+y.wrapper.clientHeight,ze=Xt(b,ce),tt=Xt(b,xe);if(de&&de.ensure){var dt=de.ensure.from.line,gt=de.ensure.to.line;dt<ze?(ze=dt,tt=Xt(b,Gr(cn(b,dt))+y.wrapper.clientHeight)):Math.min(gt,b.lastLine())>=tt&&(ze=Xt(b,Gr(cn(b,gt))-y.wrapper.clientHeight),tt=gt)}return{from:ze,to:Math.max(tt,ze+1)}}function au(y,b){if(!pt(y,"scrollCursorIntoView")){var de=y.display,ce=de.sizer.getBoundingClientRect(),xe=null;if(b.top+ce.top<0?xe=!0:b.bottom+ce.top>(window.innerHeight||document.documentElement.clientHeight)&&(xe=!1),xe!=null&&!re){var ze=Ee("div","\u200B",null,`position: absolute;
top: `+(b.top-de.viewOffset-Do(y.display))+`px;
height: `+(b.bottom-b.top+pa(y)+de.barHeight)+`px;
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");y.display.lineSpace.appendChild(ze),ze.scrollIntoView(xe),y.display.lineSpace.removeChild(ze)}}}function su(y,b,de,ce){ce==null&&(ce=0);var xe;!y.options.lineWrapping&&b==de&&(b=b.ch?Tt(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,de=b.sticky=="before"?Tt(b.line,b.ch+1,"before"):b);for(var ze=0;ze<5;ze++){var tt=!1,dt=aa(y,b),gt=!de||de==b?dt:aa(y,de);xe={left:Math.min(dt.left,gt.left),top:Math.min(dt.top,gt.top)-ce,right:Math.max(dt.left,gt.left),bottom:Math.max(dt.bottom,gt.bottom)+ce};var Ct=Cl(y,xe),Vt=y.doc.scrollTop,qt=y.doc.scrollLeft;if(Ct.scrollTop!=null&&(rl(y,Ct.scrollTop),Math.abs(y.doc.scrollTop-Vt)>1&&(tt=!0)),Ct.scrollLeft!=null&&(Ts(y,Ct.scrollLeft),Math.abs(y.doc.scrollLeft-qt)>1&&(tt=!0)),!tt)break}return xe}function Pu(y,b){var de=Cl(y,b);de.scrollTop!=null&&rl(y,de.scrollTop),de.scrollLeft!=null&&Ts(y,de.scrollLeft)}function Cl(y,b){var de=y.display,ce=wa(y.display);b.top<0&&(b.top=0);var xe=y.curOp&&y.curOp.scrollTop!=null?y.curOp.scrollTop:de.scroller.scrollTop,ze=Ya(y),tt={};b.bottom-b.top>ze&&(b.bottom=b.top+ze);var dt=y.doc.height+Aa(de),gt=b.top<ce,Ct=b.bottom>dt-ce;if(b.top<xe)tt.scrollTop=gt?0:b.top;else if(b.bottom>xe+ze){var Vt=Math.min(b.top,(Ct?dt:b.bottom)-ze);Vt!=xe&&(tt.scrollTop=Vt)}var qt=y.options.fixedGutter?0:de.gutters.offsetWidth,xn=y.curOp&&y.curOp.scrollLeft!=null?y.curOp.scrollLeft:de.scroller.scrollLeft-qt,pn=$a(y)-de.gutters.offsetWidth,Zn=b.right-b.left>pn;return Zn&&(b.right=b.left+pn),b.left<10?tt.scrollLeft=0:b.left<xn?tt.scrollLeft=Math.max(0,b.left+qt-(Zn?0:10)):b.right>pn+xn-3&&(tt.scrollLeft=b.right+(Zn?0:10)-pn),tt}function Kl(y,b){b!=null&&(Sl(y),y.curOp.scrollTop=(y.curOp.scrollTop==null?y.doc.scrollTop:y.curOp.scrollTop)+b)}function Es(y){Sl(y);var b=y.getCursor();y.curOp.scrollToPos={from:b,to:b,margin:y.options.cursorScrollMargin}}function nl(y,b,de){(b!=null||de!=null)&&Sl(y),b!=null&&(y.curOp.scrollLeft=b),de!=null&&(y.curOp.scrollTop=de)}function lu(y,b){Sl(y),y.curOp.scrollToPos=b}function Sl(y){var b=y.curOp.scrollToPos;if(b){y.curOp.scrollToPos=null;var de=Hi(y,b.from),ce=Hi(y,b.to);Gl(y,de,ce,b.margin)}}function Gl(y,b,de,ce){var xe=Cl(y,{left:Math.min(b.left,de.left),top:Math.min(b.top,de.top)-ce,right:Math.max(b.right,de.right),bottom:Math.max(b.bottom,de.bottom)+ce});nl(y,xe.scrollLeft,xe.scrollTop)}function rl(y,b){Math.abs(y.doc.scrollTop-b)<2||(le||Tl(y,{top:b}),Vl(y,b,!0),le&&Tl(y),Ws(y,100))}function Vl(y,b,de){b=Math.max(0,Math.min(y.display.scroller.scrollHeight-y.display.scroller.clientHeight,b)),!(y.display.scroller.scrollTop==b&&!de)&&(y.doc.scrollTop=b,y.display.scrollbars.setScrollTop(b),y.display.scroller.scrollTop!=b&&(y.display.scroller.scrollTop=b))}function Ts(y,b,de,ce){b=Math.max(0,Math.min(b,y.display.scroller.scrollWidth-y.display.scroller.clientWidth)),!((de?b==y.doc.scrollLeft:Math.abs(y.doc.scrollLeft-b)<2)&&!ce)&&(y.doc.scrollLeft=b,Ot(y),y.display.scroller.scrollLeft!=b&&(y.display.scroller.scrollLeft=b),y.display.scrollbars.setScrollLeft(b))}function _s(y){var b=y.display,de=b.gutters.offsetWidth,ce=Math.round(y.doc.height+Aa(y.display));return{clientHeight:b.scroller.clientHeight,viewHeight:b.wrapper.clientHeight,scrollWidth:b.scroller.scrollWidth,clientWidth:b.scroller.clientWidth,viewWidth:b.wrapper.clientWidth,barLeft:y.options.fixedGutter?de:0,docHeight:ce,scrollHeight:ce+pa(y)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:de}}var Os=function(y,b,de){this.cm=de;var ce=this.vert=Ee("div",[Ee("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),xe=this.horiz=Ee("div",[Ee("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ce.tabIndex=xe.tabIndex=-1,y(ce),y(xe),Pt(ce,"scroll",function(){ce.clientHeight&&b(ce.scrollTop,"vertical")}),Pt(xe,"scroll",function(){xe.clientWidth&&b(xe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ge&&x<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Os.prototype.update=function(y){var b=y.scrollWidth>y.clientWidth+1,de=y.scrollHeight>y.clientHeight+1,ce=y.nativeBarWidth;if(de){this.vert.style.display="block",this.vert.style.bottom=b?ce+"px":"0";var xe=y.viewHeight-(b?ce:0);this.vert.firstChild.style.height=Math.max(0,y.scrollHeight-y.clientHeight+xe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=de?ce+"px":"0",this.horiz.style.left=y.barLeft+"px";var ze=y.viewWidth-y.barLeft-(de?ce:0);this.horiz.firstChild.style.width=Math.max(0,y.scrollWidth-y.clientWidth+ze)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&y.clientHeight>0&&(ce==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:de?ce:0,bottom:b?ce:0}},Os.prototype.setScrollLeft=function(y){this.horiz.scrollLeft!=y&&(this.horiz.scrollLeft=y),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Os.prototype.setScrollTop=function(y){this.vert.scrollTop!=y&&(this.vert.scrollTop=y),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Os.prototype.zeroWidthHack=function(){var y=he&&!E?"12px":"18px";this.horiz.style.height=this.vert.style.width=y,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ke,this.disableVert=new Ke},Os.prototype.enableZeroWidthBar=function(y,b,de){y.style.pointerEvents="auto";function ce(){var xe=y.getBoundingClientRect(),ze=de=="vert"?document.elementFromPoint(xe.right-1,(xe.top+xe.bottom)/2):document.elementFromPoint((xe.right+xe.left)/2,xe.bottom-1);ze!=y?y.style.pointerEvents="none":b.set(1e3,ce)}b.set(1e3,ce)},Os.prototype.clear=function(){var y=this.horiz.parentNode;y.removeChild(this.horiz),y.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(y,b){b||(b=_s(y));var de=y.display.barWidth,ce=y.display.barHeight;Xl(y,b);for(var xe=0;xe<4&&de!=y.display.barWidth||ce!=y.display.barHeight;xe++)de!=y.display.barWidth&&y.options.lineWrapping&&oi(y),Xl(y,_s(y)),de=y.display.barWidth,ce=y.display.barHeight}function Xl(y,b){var de=y.display,ce=de.scrollbars.update(b);de.sizer.style.paddingRight=(de.barWidth=ce.right)+"px",de.sizer.style.paddingBottom=(de.barHeight=ce.bottom)+"px",de.heightForcer.style.borderBottom=ce.bottom+"px solid transparent",ce.right&&ce.bottom?(de.scrollbarFiller.style.display="block",de.scrollbarFiller.style.height=ce.bottom+"px",de.scrollbarFiller.style.width=ce.right+"px"):de.scrollbarFiller.style.display="",ce.bottom&&y.options.coverGutterNextToScrollbar&&y.options.fixedGutter?(de.gutterFiller.style.display="block",de.gutterFiller.style.height=ce.bottom+"px",de.gutterFiller.style.width=b.gutterWidth+"px"):de.gutterFiller.style.display=""}var uu={native:Os,null:$s};function Yl(y){y.display.scrollbars&&(y.display.scrollbars.clear(),y.display.scrollbars.addClass&&Be(y.display.wrapper,y.display.scrollbars.addClass)),y.display.scrollbars=new uu[y.options.scrollbarStyle](function(b){y.display.wrapper.insertBefore(b,y.display.scrollbarFiller),Pt(b,"mousedown",function(){y.state.focused&&setTimeout(function(){return y.display.input.focus()},0)}),b.setAttribute("cm-not-content","true")},function(b,de){de=="horizontal"?Ts(y,b):rl(y,b)},y),y.display.scrollbars.addClass&&Pe(y.display.wrapper,y.display.scrollbars.addClass)}var Au=0;function ms(y){y.curOp={cm:y,viewChanged:!1,startHeight:y.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:++Au},Zi(y.curOp)}function Is(y){var b=y.curOp;b&&yi(b,function(de){for(var ce=0;ce<de.ops.length;ce++)de.ops[ce].cm.curOp=null;cu(de)})}function cu(y){for(var b=y.ops,de=0;de<b.length;de++)ju(b[de]);for(var ce=0;ce<b.length;ce++)du(b[ce]);for(var xe=0;xe<b.length;xe++)Du(b[xe]);for(var ze=0;ze<b.length;ze++)fu(b[ze]);for(var tt=0;tt<b.length;tt++)ku(b[tt])}function ju(y){var b=y.cm,de=b.display;hu(b),y.updateMaxLine&&ci(b),y.mustUpdate=y.viewChanged||y.forceUpdate||y.scrollTop!=null||y.scrollToPos&&(y.scrollToPos.from.line<de.viewFrom||y.scrollToPos.to.line>=de.viewTo)||de.maxLineChanged&&b.options.lineWrapping,y.update=y.mustUpdate&&new il(b,y.mustUpdate&&{top:y.scrollTop,ensure:y.scrollToPos},y.forceUpdate)}function du(y){y.updatedDisplay=y.mustUpdate&&El(y.cm,y.update)}function Du(y){var b=y.cm,de=b.display;y.updatedDisplay&&oi(b),y.barMeasure=_s(b),de.maxLineChanged&&!b.options.lineWrapping&&(y.adjustWidthTo=Js(b,de.maxLine,de.maxLine.text.length).left+3,b.display.sizerWidth=y.adjustWidthTo,y.barMeasure.scrollWidth=Math.max(de.scroller.clientWidth,de.sizer.offsetLeft+y.adjustWidthTo+pa(b)+b.display.barWidth),y.maxScrollLeft=Math.max(0,de.sizer.offsetLeft+y.adjustWidthTo-$a(b))),(y.updatedDisplay||y.selectionChanged)&&(y.preparedSelection=de.input.prepareSelection())}function fu(y){var b=y.cm;y.adjustWidthTo!=null&&(b.display.sizer.style.minWidth=y.adjustWidthTo+"px",y.maxScrollLeft<b.doc.scrollLeft&&Ts(b,Math.min(b.display.scroller.scrollLeft,y.maxScrollLeft),!0),b.display.maxLineChanged=!1);var de=y.focus&&y.focus==Ae();y.preparedSelection&&b.display.input.showSelection(y.preparedSelection,de),(y.updatedDisplay||y.startHeight!=b.doc.height)&&zs(b,y.barMeasure),y.updatedDisplay&&ft(b,y.barMeasure),y.selectionChanged&&wl(b),b.state.focused&&y.updateInput&&b.display.input.reset(y.typing),de&&ou(y.cm)}function ku(y){var b=y.cm,de=b.display,ce=b.doc;if(y.updatedDisplay&&Ka(b,y.update),de.wheelStartX!=null&&(y.scrollTop!=null||y.scrollLeft!=null||y.scrollToPos)&&(de.wheelStartX=de.wheelStartY=null),y.scrollTop!=null&&Vl(b,y.scrollTop,y.forceScroll),y.scrollLeft!=null&&Ts(b,y.scrollLeft,!0,!0),y.scrollToPos){var xe=su(b,$t(ce,y.scrollToPos.from),$t(ce,y.scrollToPos.to),y.scrollToPos.margin);au(b,xe)}var ze=y.maybeHiddenMarkers,tt=y.maybeUnhiddenMarkers;if(ze)for(var dt=0;dt<ze.length;++dt)ze[dt].lines.length||At(ze[dt],"hide");if(tt)for(var gt=0;gt<tt.length;++gt)tt[gt].lines.length&&At(tt[gt],"unhide");de.wrapper.offsetHeight&&(ce.scrollTop=b.display.scroller.scrollTop),y.changeObjs&&At(b,"changes",b,y.changeObjs),y.update&&y.update.finish()}function ma(y,b){if(y.curOp)return b();ms(y);try{return b()}finally{Is(y)}}function Jo(y,b){return function(){if(y.curOp)return b.apply(y,arguments);ms(y);try{return b.apply(y,arguments)}finally{Is(y)}}}function ua(y){return function(){if(this.curOp)return y.apply(this,arguments);ms(this);try{return y.apply(this,arguments)}finally{Is(this)}}}function Ko(y){return function(){var b=this.cm;if(!b||b.curOp)return y.apply(this,arguments);ms(b);try{return y.apply(this,arguments)}finally{Is(b)}}}function Ws(y,b){y.doc.highlightFrontier<y.display.viewTo&&y.state.highlight.set(b,Je(Jl,y))}function Jl(y){var b=y.doc;if(!(b.highlightFrontier>=y.display.viewTo)){var de=+new Date+y.options.workTime,ce=ar(y,b.highlightFrontier),xe=[];b.iter(ce.line,Math.min(b.first+b.size,y.display.viewTo+500),function(ze){if(ce.line>=y.display.viewFrom){var tt=ze.styles,dt=ze.text.length>y.options.maxHighlightLength?Yn(b.mode,ce.state):null,gt=In(y,ze,ce,!0);dt&&(ce.state=dt),ze.styles=gt.styles;var Ct=ze.styleClasses,Vt=gt.classes;Vt?ze.styleClasses=Vt:Ct&&(ze.styleClasses=null);for(var qt=!tt||tt.length!=ze.styles.length||Ct!=Vt&&(!Ct||!Vt||Ct.bgClass!=Vt.bgClass||Ct.textClass!=Vt.textClass),xn=0;!qt&&xn<tt.length;++xn)qt=tt[xn]!=ze.styles[xn];qt&&xe.push(ce.line),ze.stateAfter=ce.save(),ce.nextLine()}else ze.text.length<=y.options.maxHighlightLength&&fr(y,ze.text,ce),ze.stateAfter=ce.line%5==0?ce.save():null,ce.nextLine();if(+new Date>de)return Ws(y,y.options.workDelay),!0}),b.highlightFrontier=ce.line,b.modeFrontier=Math.max(b.modeFrontier,ce.line),xe.length&&ma(y,function(){for(var ze=0;ze<xe.length;ze++)is(y,xe[ze],"text")})}}var il=function(y,b,de){var ce=y.display;this.viewport=b,this.visible=os(ce,y.doc,b),this.editorIsHidden=!ce.wrapper.offsetWidth,this.wrapperHeight=ce.wrapper.clientHeight,this.wrapperWidth=ce.wrapper.clientWidth,this.oldDisplayWidth=$a(y),this.force=de,this.dims=rs(y),this.events=[]};il.prototype.signal=function(y,b){kt(y,b)&&this.events.push(arguments)},il.prototype.finish=function(){for(var y=0;y<this.events.length;y++)At.apply(null,this.events[y])};function hu(y){var b=y.display;!b.scrollbarsClipped&&b.scroller.offsetWidth&&(b.nativeBarWidth=b.scroller.offsetWidth-b.scroller.clientWidth,b.heightForcer.style.height=pa(y)+"px",b.sizer.style.marginBottom=-b.nativeBarWidth+"px",b.sizer.style.borderRightWidth=pa(y)+"px",b.scrollbarsClipped=!0)}function pu(y){if(y.hasFocus())return null;var b=Ae();if(!b||!Le(y.display.lineDiv,b))return null;var de={activeElt:b};if(window.getSelection){var ce=window.getSelection();ce.anchorNode&&ce.extend&&Le(y.display.lineDiv,ce.anchorNode)&&(de.anchorNode=ce.anchorNode,de.anchorOffset=ce.anchorOffset,de.focusNode=ce.focusNode,de.focusOffset=ce.focusOffset)}return de}function mu(y){if(!(!y||!y.activeElt||y.activeElt==Ae())&&(y.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(y.activeElt.nodeName)&&y.anchorNode&&Le(document.body,y.anchorNode)&&Le(document.body,y.focusNode))){var b=window.getSelection(),de=document.createRange();de.setEnd(y.anchorNode,y.anchorOffset),de.collapse(!1),b.removeAllRanges(),b.addRange(de),b.extend(y.focusNode,y.focusOffset)}}function El(y,b){var de=y.display,ce=y.doc;if(b.editorIsHidden)return Ua(y),!1;if(!b.force&&b.visible.from>=de.viewFrom&&b.visible.to<=de.viewTo&&(de.updateLineNumbers==null||de.updateLineNumbers>=de.viewTo)&&de.renderedView==de.view&&xl(y)==0)return!1;Nt(y)&&(Ua(y),b.dims=rs(y));var xe=ce.first+ce.size,ze=Math.max(b.visible.from-y.options.viewportMargin,ce.first),tt=Math.min(xe,b.visible.to+y.options.viewportMargin);de.viewFrom<ze&&ze-de.viewFrom<20&&(ze=Math.max(ce.first,de.viewFrom)),de.viewTo>tt&&de.viewTo-tt<20&&(tt=Math.min(xe,de.viewTo)),hr&&(ze=Nn(y.doc,ze),tt=Sn(y.doc,tt));var dt=ze!=de.viewFrom||tt!=de.viewTo||de.lastWrapHeight!=b.wrapperHeight||de.lastWrapWidth!=b.wrapperWidth;Wl(y,ze,tt),de.viewOffset=Gr(cn(y.doc,de.viewFrom)),y.display.mover.style.top=de.viewOffset+"px";var gt=xl(y);if(!dt&&gt==0&&!b.force&&de.renderedView==de.view&&(de.updateLineNumbers==null||de.updateLineNumbers>=de.viewTo))return!1;var Ct=pu(y);return gt>4&&(de.lineDiv.style.display="none"),vu(y,de.updateLineNumbers,b.dims),gt>4&&(de.lineDiv.style.display=""),de.renderedView=de.view,mu(Ct),De(de.cursorDiv),De(de.selectionDiv),de.gutters.style.height=de.sizer.style.minHeight=0,dt&&(de.lastWrapHeight=b.wrapperHeight,de.lastWrapWidth=b.wrapperWidth,Ws(y,400)),de.updateLineNumbers=null,!0}function Ka(y,b){for(var de=b.viewport,ce=!0;;ce=!1){if(!ce||!y.options.lineWrapping||b.oldDisplayWidth==$a(y)){if(de&&de.top!=null&&(de={top:Math.min(y.doc.height+Aa(y.display)-Ya(y),de.top)}),b.visible=os(y.display,y.doc,de),b.visible.from>=y.display.viewFrom&&b.visible.to<=y.display.viewTo)break}else ce&&(b.visible=os(y.display,y.doc,de));if(!El(y,b))break;oi(y);var xe=_s(y);ps(y),zs(y,xe),ft(y,xe),b.force=!1}b.signal(y,"update",y),(y.display.viewFrom!=y.display.reportedViewFrom||y.display.viewTo!=y.display.reportedViewTo)&&(b.signal(y,"viewportChange",y,y.display.viewFrom,y.display.viewTo),y.display.reportedViewFrom=y.display.viewFrom,y.display.reportedViewTo=y.display.viewTo)}function Tl(y,b){var de=new il(y,b);if(El(y,de)){oi(y),Ka(y,de);var ce=_s(y);ps(y),zs(y,ce),ft(y,ce),de.finish()}}function vu(y,b,de){var ce=y.display,xe=y.options.lineNumbers,ze=ce.lineDiv,tt=ze.firstChild;function dt(Zn){var nr=Zn.nextSibling;return z&&he&&y.display.currentWheelTarget==Zn?Zn.style.display="none":Zn.parentNode.removeChild(Zn),nr}for(var gt=ce.view,Ct=ce.viewFrom,Vt=0;Vt<gt.length;Vt++){var qt=gt[Vt];if(!qt.hidden)if(!qt.node||qt.node.parentNode!=ze){var xn=fi(y,qt,Ct,de);ze.insertBefore(xn,tt)}else{for(;tt!=qt.node;)tt=dt(tt);var pn=xe&&b!=null&&b<=Ct&&qt.lineNumber;qt.changes&&(nt(qt.changes,"gutter")>-1&&(pn=!1),ha(y,qt,Ct,de)),pn&&(De(qt.lineNumber),qt.lineNumber.appendChild(document.createTextNode(Dt(y.options,Ct)))),tt=qt.node.nextSibling}Ct+=qt.size}for(;tt;)tt=dt(tt)}function ht(y){var b=y.gutters.offsetWidth;y.sizer.style.marginLeft=b+"px"}function ft(y,b){y.display.sizer.style.minHeight=b.docHeight+"px",y.display.heightForcer.style.top=b.docHeight+"px",y.display.gutters.style.height=b.docHeight+y.display.barHeight+pa(y)+"px"}function Ot(y){var b=y.display,de=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!y.options.fixedGutter))){for(var ce=yl(b)-b.scroller.scrollLeft+y.doc.scrollLeft,xe=b.gutters.offsetWidth,ze=ce+"px",tt=0;tt<de.length;tt++)if(!de[tt].hidden){y.options.fixedGutter&&(de[tt].gutter&&(de[tt].gutter.style.left=ze),de[tt].gutterBackground&&(de[tt].gutterBackground.style.left=ze));var dt=de[tt].alignable;if(dt)for(var gt=0;gt<dt.length;gt++)dt[gt].style.left=ze}y.options.fixedGutter&&(b.gutters.style.left=ce+xe+"px")}}function Nt(y){if(!y.options.lineNumbers)return!1;var b=y.doc,de=Dt(y.options,b.first+b.size-1),ce=y.display;if(de.length!=ce.lineNumChars){var xe=ce.measure.appendChild(Ee("div",[Ee("div",de)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ze=xe.firstChild.offsetWidth,tt=xe.offsetWidth-ze;return ce.lineGutter.style.width="",ce.lineNumInnerWidth=Math.max(ze,ce.lineGutter.offsetWidth-tt)+1,ce.lineNumWidth=ce.lineNumInnerWidth+tt,ce.lineNumChars=ce.lineNumInnerWidth?de.length:-1,ce.lineGutter.style.width=ce.lineNumWidth+"px",ht(y.display),!0}return!1}function Gt(y,b){for(var de=[],ce=!1,xe=0;xe<y.length;xe++){var ze=y[xe],tt=null;if(typeof ze!="string"&&(tt=ze.style,ze=ze.className),ze=="CodeMirror-linenumbers")if(b)ce=!0;else continue;de.push({className:ze,style:tt})}return b&&!ce&&de.push({className:"CodeMirror-linenumbers",style:null}),de}function Jt(y){var b=y.gutters,de=y.gutterSpecs;De(b),y.lineGutter=null;for(var ce=0;ce<de.length;++ce){var xe=de[ce],ze=xe.className,tt=xe.style,dt=b.appendChild(Ee("div",null,"CodeMirror-gutter "+ze));tt&&(dt.style.cssText=tt),ze=="CodeMirror-linenumbers"&&(y.lineGutter=dt,dt.style.width=(y.lineNumWidth||1)+"px")}b.style.display=de.length?"":"none",ht(y)}function an(y){Jt(y.display),la(y),Ot(y)}function rn(y,b,de,ce){var xe=this;this.input=de,xe.scrollbarFiller=Ee("div",null,"CodeMirror-scrollbar-filler"),xe.scrollbarFiller.setAttribute("cm-not-content","true"),xe.gutterFiller=Ee("div",null,"CodeMirror-gutter-filler"),xe.gutterFiller.setAttribute("cm-not-content","true"),xe.lineDiv=Ie("div",null,"CodeMirror-code"),xe.selectionDiv=Ee("div",null,null,"position: relative; z-index: 1"),xe.cursorDiv=Ee("div",null,"CodeMirror-cursors"),xe.measure=Ee("div",null,"CodeMirror-measure"),xe.lineMeasure=Ee("div",null,"CodeMirror-measure"),xe.lineSpace=Ie("div",[xe.measure,xe.lineMeasure,xe.selectionDiv,xe.cursorDiv,xe.lineDiv],null,"position: relative; outline: none");var ze=Ie("div",[xe.lineSpace],"CodeMirror-lines");xe.mover=Ee("div",[ze],null,"position: relative"),xe.sizer=Ee("div",[xe.mover],"CodeMirror-sizer"),xe.sizerWidth=null,xe.heightForcer=Ee("div",null,null,"position: absolute; height: "+rt+"px; width: 1px;"),xe.gutters=Ee("div",null,"CodeMirror-gutters"),xe.lineGutter=null,xe.scroller=Ee("div",[xe.sizer,xe.heightForcer,xe.gutters],"CodeMirror-scroll"),xe.scroller.setAttribute("tabIndex","-1"),xe.wrapper=Ee("div",[xe.scrollbarFiller,xe.gutterFiller,xe.scroller],"CodeMirror"),ge&&x<8&&(xe.gutters.style.zIndex=-1,xe.scroller.style.paddingRight=0),!z&&!(le&&ae)&&(xe.scroller.draggable=!0),y&&(y.appendChild?y.appendChild(xe.wrapper):y(xe.wrapper)),xe.viewFrom=xe.viewTo=b.first,xe.reportedViewFrom=xe.reportedViewTo=b.first,xe.view=[],xe.renderedView=null,xe.externalMeasured=null,xe.viewOffset=0,xe.lastWrapHeight=xe.lastWrapWidth=0,xe.updateLineNumbers=null,xe.nativeBarWidth=xe.barHeight=xe.barWidth=0,xe.scrollbarsClipped=!1,xe.lineNumWidth=xe.lineNumInnerWidth=xe.lineNumChars=null,xe.alignWidgets=!1,xe.cachedCharWidth=xe.cachedTextHeight=xe.cachedPaddingH=null,xe.maxLine=null,xe.maxLineLength=0,xe.maxLineChanged=!1,xe.wheelDX=xe.wheelDY=xe.wheelStartX=xe.wheelStartY=null,xe.shift=!1,xe.selForContextMenu=null,xe.activeTouch=null,xe.gutterSpecs=Gt(ce.gutters,ce.lineNumbers),Jt(xe),de.init(xe)}var fn=0,ln=null;ge?ln=-.53:le?ln=15:oe?ln=-.7:ue&&(ln=-1/3);function Rn(y){var b=y.wheelDeltaX,de=y.wheelDeltaY;return b==null&&y.detail&&y.axis==y.HORIZONTAL_AXIS&&(b=y.detail),de==null&&y.detail&&y.axis==y.VERTICAL_AXIS?de=y.detail:de==null&&(de=y.wheelDelta),{x:b,y:de}}function On(y){var b=Rn(y);return b.x*=ln,b.y*=ln,b}function En(y,b){var de=Rn(b),ce=de.x,xe=de.y,ze=y.display,tt=ze.scroller,dt=tt.scrollWidth>tt.clientWidth,gt=tt.scrollHeight>tt.clientHeight;if(ce&&dt||xe&&gt){if(xe&&he&&z){e:for(var Ct=b.target,Vt=ze.view;Ct!=tt;Ct=Ct.parentNode)for(var qt=0;qt<Vt.length;qt++)if(Vt[qt].node==Ct){y.display.currentWheelTarget=Ct;break e}}if(ce&&!le&&!ee&&ln!=null){xe&&gt&&rl(y,Math.max(0,tt.scrollTop+xe*ln)),Ts(y,Math.max(0,tt.scrollLeft+ce*ln)),(!xe||xe&&gt)&&It(b),ze.wheelStartX=null;return}if(xe&&ln!=null){var xn=xe*ln,pn=y.doc.scrollTop,Zn=pn+ze.wrapper.clientHeight;xn<0?pn=Math.max(0,pn+xn-50):Zn=Math.min(y.doc.height,Zn+xn+50),Tl(y,{top:pn,bottom:Zn})}fn<20&&(ze.wheelStartX==null?(ze.wheelStartX=tt.scrollLeft,ze.wheelStartY=tt.scrollTop,ze.wheelDX=ce,ze.wheelDY=xe,setTimeout(function(){if(ze.wheelStartX!=null){var nr=tt.scrollLeft-ze.wheelStartX,vr=tt.scrollTop-ze.wheelStartY,Ar=vr&&ze.wheelDY&&vr/ze.wheelDY||nr&&ze.wheelDX&&nr/ze.wheelDX;ze.wheelStartX=ze.wheelStartY=null,Ar&&(ln=(ln*fn+Ar)/(fn+1),++fn)}},200)):(ze.wheelDX+=ce,ze.wheelDY+=xe))}}var yn=function(y,b){this.ranges=y,this.primIndex=b};yn.prototype.primary=function(){return this.ranges[this.primIndex]},yn.prototype.equals=function(y){if(y==this)return!0;if(y.primIndex!=this.primIndex||y.ranges.length!=this.ranges.length)return!1;for(var b=0;b<this.ranges.length;b++){var de=this.ranges[b],ce=y.ranges[b];if(!bt(de.anchor,ce.anchor)||!bt(de.head,ce.head))return!1}return!0},yn.prototype.deepCopy=function(){for(var y=[],b=0;b<this.ranges.length;b++)y[b]=new vn(Zt(this.ranges[b].anchor),Zt(this.ranges[b].head));return new yn(y,this.primIndex)},yn.prototype.somethingSelected=function(){for(var y=0;y<this.ranges.length;y++)if(!this.ranges[y].empty())return!0;return!1},yn.prototype.contains=function(y,b){b||(b=y);for(var de=0;de<this.ranges.length;de++){var ce=this.ranges[de];if(_t(b,ce.from())>=0&&_t(y,ce.to())<=0)return de}return-1};var vn=function(y,b){this.anchor=y,this.head=b};vn.prototype.from=function(){return Yt(this.anchor,this.head)},vn.prototype.to=function(){return Kt(this.anchor,this.head)},vn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function or(y,b,de){var ce=y&&y.options.selectionsMayTouch,xe=b[de];b.sort(function(xn,pn){return _t(xn.from(),pn.from())}),de=nt(b,xe);for(var ze=1;ze<b.length;ze++){var tt=b[ze],dt=b[ze-1],gt=_t(dt.to(),tt.from());if(ce&&!tt.empty()?gt>0:gt>=0){var Ct=Yt(dt.from(),tt.from()),Vt=Kt(dt.to(),tt.to()),qt=dt.empty()?tt.from()==tt.head:dt.from()==dt.head;ze<=de&&--de,b.splice(--ze,2,new vn(qt?Vt:Ct,qt?Ct:Vt))}}return new yn(b,de)}function zn(y,b){return new yn([new vn(y,b||y)],0)}function sr(y){return y.text?Tt(y.from.line+y.text.length-1,ot(y.text).length+(y.text.length==1?y.from.ch:0)):y.to}function pr(y,b){if(_t(y,b.from)<0)return y;if(_t(y,b.to)<=0)return sr(b);var de=y.line+b.text.length-(b.to.line-b.from.line)-1,ce=y.ch;return y.line==b.to.line&&(ce+=sr(b).ch-b.to.ch),Tt(de,ce)}function lr(y,b){for(var de=[],ce=0;ce<y.sel.ranges.length;ce++){var xe=y.sel.ranges[ce];de.push(new vn(pr(xe.anchor,b),pr(xe.head,b)))}return or(y.cm,de,y.sel.primIndex)}function br(y,b,de){return y.line==b.line?Tt(de.line,y.ch-b.ch+de.ch):Tt(de.line+(y.line-b.line),y.ch)}function Ir(y,b,de){for(var ce=[],xe=Tt(y.first,0),ze=xe,tt=0;tt<b.length;tt++){var dt=b[tt],gt=br(dt.from,xe,ze),Ct=br(sr(dt),xe,ze);if(xe=dt.to,ze=Ct,de=="around"){var Vt=y.sel.ranges[tt],qt=_t(Vt.head,Vt.anchor)<0;ce[tt]=new vn(qt?Ct:gt,qt?gt:Ct)}else ce[tt]=new vn(gt,gt)}return new yn(ce,y.sel.primIndex)}function Rr(y){y.doc.mode=Hn(y.options,y.doc.modeOption),Dr(y)}function Dr(y){y.doc.iter(function(b){b.stateAfter&&(b.stateAfter=null),b.styles&&(b.styles=null)}),y.doc.modeFrontier=y.doc.highlightFrontier=y.doc.first,Ws(y,100),y.state.modeGen++,y.curOp&&la(y)}function gi(y,b){return b.from.ch==0&&b.to.ch==0&&ot(b.text)==""&&(!y.cm||y.cm.options.wholeLineUpdateBefore)}function Jr(y,b,de,ce){function xe(_r){return de?de[_r]:null}function ze(_r,jr,Vr){Ci(_r,jr,Vr,ce),Ri(_r,"change",_r,b)}function tt(_r,jr){for(var Vr=[],vi=_r;vi<jr;++vi)Vr.push(new ji(Ct[vi],xe(vi),ce));return Vr}var dt=b.from,gt=b.to,Ct=b.text,Vt=cn(y,dt.line),qt=cn(y,gt.line),xn=ot(Ct),pn=xe(Ct.length-1),Zn=gt.line-dt.line;if(b.full)y.insert(0,tt(0,Ct.length)),y.remove(Ct.length,y.size-Ct.length);else if(gi(y,b)){var nr=tt(0,Ct.length-1);ze(qt,qt.text,pn),Zn&&y.remove(dt.line,Zn),nr.length&&y.insert(dt.line,nr)}else if(Vt==qt)if(Ct.length==1)ze(Vt,Vt.text.slice(0,dt.ch)+xn+Vt.text.slice(gt.ch),pn);else{var vr=tt(1,Ct.length-1);vr.push(new ji(xn+Vt.text.slice(gt.ch),pn,ce)),ze(Vt,Vt.text.slice(0,dt.ch)+Ct[0],xe(0)),y.insert(dt.line+1,vr)}else if(Ct.length==1)ze(Vt,Vt.text.slice(0,dt.ch)+Ct[0]+qt.text.slice(gt.ch),xe(0)),y.remove(dt.line+1,Zn);else{ze(Vt,Vt.text.slice(0,dt.ch)+Ct[0],xe(0)),ze(qt,xn+qt.text.slice(gt.ch),pn);var Ar=tt(1,Ct.length-1);Zn>1&&y.remove(dt.line+1,Zn-1),y.insert(dt.line+1,Ar)}Ri(y,"change",y,b)}function zr(y,b,de){function ce(xe,ze,tt){if(xe.linked)for(var dt=0;dt<xe.linked.length;++dt){var gt=xe.linked[dt];if(gt.doc!=ze){var Ct=tt&&gt.sharedHist;de&&!Ct||(b(gt.doc,Ct),ce(gt.doc,xe,Ct))}}}ce(y,null,!0)}function ai(y,b){if(b.cm)throw new Error("This document is already in use.");y.doc=b,b.cm=y,ws(y),Rr(y),Nr(y),y.options.lineWrapping||ci(y),y.options.mode=b.modeOption,la(y)}function Nr(y){(y.doc.direction=="rtl"?Pe:Be)(y.display.lineDiv,"CodeMirror-rtl")}function Br(y){ma(y,function(){Nr(y),la(y)})}function Sr(y){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=y||1}function mr(y,b){var de={from:Zt(b.from),to:sr(b),text:An(y,b.from,b.to)};return xo(y,de,b.from.line,b.to.line+1),zr(y,function(ce){return xo(ce,de,b.from.line,b.to.line+1)},!0),de}function Mr(y){for(;y.length;){var b=ot(y);if(b.ranges)y.pop();else break}}function Lr(y,b){if(b)return Mr(y.done),ot(y.done);if(y.done.length&&!ot(y.done).ranges)return ot(y.done);if(y.done.length>1&&!y.done[y.done.length-2].ranges)return y.done.pop(),ot(y.done)}function Qr(y,b,de,ce){var xe=y.history;xe.undone.length=0;var ze=+new Date,tt,dt;if((xe.lastOp==ce||xe.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&xe.lastModTime>ze-(y.cm?y.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(tt=Lr(xe,xe.lastOp==ce)))dt=ot(tt.changes),_t(b.from,b.to)==0&&_t(b.from,dt.to)==0?dt.to=sr(b):tt.changes.push(mr(y,b));else{var gt=ot(xe.done);for((!gt||!gt.ranges)&&Ii(y.sel,xe.done),tt={changes:[mr(y,b)],generation:xe.generation},xe.done.push(tt);xe.done.length>xe.undoDepth;)xe.done.shift(),xe.done[0].ranges||xe.done.shift()}xe.done.push(de),xe.generation=++xe.maxGeneration,xe.lastModTime=xe.lastSelTime=ze,xe.lastOp=xe.lastSelOp=ce,xe.lastOrigin=xe.lastSelOrigin=b.origin,dt||At(y,"historyAdded")}function Er(y,b,de,ce){var xe=b.charAt(0);return xe=="*"||xe=="+"&&de.ranges.length==ce.ranges.length&&de.somethingSelected()==ce.somethingSelected()&&new Date-y.history.lastSelTime<=(y.cm?y.cm.options.historyEventDelay:500)}function Oi(y,b,de,ce){var xe=y.history,ze=ce&&ce.origin;de==xe.lastSelOp||ze&&xe.lastSelOrigin==ze&&(xe.lastModTime==xe.lastSelTime&&xe.lastOrigin==ze||Er(y,ze,ot(xe.done),b))?xe.done[xe.done.length-1]=b:Ii(b,xe.done),xe.lastSelTime=+new Date,xe.lastSelOrigin=ze,xe.lastSelOp=de,ce&&ce.clearRedo!==!1&&Mr(xe.undone)}function Ii(y,b){var de=ot(b);de&&de.ranges&&de.equals(y)||b.push(y)}function xo(y,b,de,ce){var xe=b["spans_"+y.id],ze=0;y.iter(Math.max(y.first,de),Math.min(y.first+y.size,ce),function(tt){tt.markedSpans&&((xe||(xe=b["spans_"+y.id]={}))[ze]=tt.markedSpans),++ze})}function fo(y){if(!y)return null;for(var b,de=0;de<y.length;++de)y[de].marker.explicitlyCleared?b||(b=y.slice(0,de)):b&&b.push(y[de]);return b?b.length?b:null:y}function io(y,b){var de=b["spans_"+y.id];if(!de)return null;for(var ce=[],xe=0;xe<b.text.length;++xe)ce.push(fo(de[xe]));return ce}function ho(y,b){var de=io(y,b),ce=ei(y,b);if(!de)return ce;if(!ce)return de;for(var xe=0;xe<de.length;++xe){var ze=de[xe],tt=ce[xe];if(ze&&tt)e:for(var dt=0;dt<tt.length;++dt){for(var gt=tt[dt],Ct=0;Ct<ze.length;++Ct)if(ze[Ct].marker==gt.marker)continue e;ze.push(gt)}else tt&&(de[xe]=tt)}return de}function So(y,b,de){for(var ce=[],xe=0;xe<y.length;++xe){var ze=y[xe];if(ze.ranges){ce.push(de?yn.prototype.deepCopy.call(ze):ze);continue}var tt=ze.changes,dt=[];ce.push({changes:dt});for(var gt=0;gt<tt.length;++gt){var Ct=tt[gt],Vt=void 0;if(dt.push({from:Ct.from,to:Ct.to,text:Ct.text}),b)for(var qt in Ct)(Vt=qt.match(/^spans_(\d+)$/))&&nt(b,Number(Vt[1]))>-1&&(ot(dt)[qt]=Ct[qt],delete Ct[qt])}}return ce}function Ai(y,b,de,ce){if(ce){var xe=y.anchor;if(de){var ze=_t(b,xe)<0;ze!=_t(de,xe)<0?(xe=b,b=de):ze!=_t(b,de)<0&&(b=de)}return new vn(xe,b)}else return new vn(de||b,b)}function Di(y,b,de,ce,xe){xe==null&&(xe=y.cm&&(y.cm.display.shift||y.extend)),kr(y,new yn([Ai(y.sel.primary(),b,de,xe)],0),ce)}function Eo(y,b,de){for(var ce=[],xe=y.cm&&(y.cm.display.shift||y.extend),ze=0;ze<y.sel.ranges.length;ze++)ce[ze]=Ai(y.sel.ranges[ze],b[ze],null,xe);var tt=or(y.cm,ce,y.sel.primIndex);kr(y,tt,de)}function Mo(y,b,de,ce){var xe=y.sel.ranges.slice(0);xe[b]=de,kr(y,or(y.cm,xe,y.sel.primIndex),ce)}function Zr(y,b,de,ce){kr(y,zn(b,de),ce)}function pi(y,b,de){var ce={ranges:b.ranges,update:function(xe){this.ranges=[];for(var ze=0;ze<xe.length;ze++)this.ranges[ze]=new vn($t(y,xe[ze].anchor),$t(y,xe[ze].head))},origin:de&&de.origin};return At(y,"beforeSelectionChange",y,ce),y.cm&&At(y.cm,"beforeSelectionChange",y.cm,ce),ce.ranges!=b.ranges?or(y.cm,ce.ranges,ce.ranges.length-1):b}function $r(y,b,de){var ce=y.history.done,xe=ot(ce);xe&&xe.ranges?(ce[ce.length-1]=b,Li(y,b,de)):kr(y,b,de)}function kr(y,b,de){Li(y,b,de),Oi(y,y.sel,y.cm?y.cm.curOp.id:NaN,de)}function Li(y,b,de){(kt(y,"beforeSelectionChange")||y.cm&&kt(y.cm,"beforeSelectionChange"))&&(b=pi(y,b,de));var ce=de&&de.bias||(_t(b.primary().head,y.sel.primary().head)<0?-1:1);Ki(y,to(y,b,ce,!0)),!(de&&de.scroll===!1)&&y.cm&&Es(y.cm)}function Ki(y,b){b.equals(y.sel)||(y.sel=b,y.cm&&(y.cm.curOp.updateInput=1,y.cm.curOp.selectionChanged=!0,Mt(y.cm)),Ri(y,"cursorActivity",y))}function uo(y){Ki(y,to(y,y.sel,null,!1))}function to(y,b,de,ce){for(var xe,ze=0;ze<b.ranges.length;ze++){var tt=b.ranges[ze],dt=b.ranges.length==y.sel.ranges.length&&y.sel.ranges[ze],gt=Bo(y,tt.anchor,dt&&dt.anchor,de,ce),Ct=Bo(y,tt.head,dt&&dt.head,de,ce);(xe||gt!=tt.anchor||Ct!=tt.head)&&(xe||(xe=b.ranges.slice(0,ze)),xe[ze]=new vn(gt,Ct))}return xe?or(y.cm,xe,b.primIndex):b}function To(y,b,de,ce,xe){var ze=cn(y,b.line);if(ze.markedSpans)for(var tt=0;tt<ze.markedSpans.length;++tt){var dt=ze.markedSpans[tt],gt=dt.marker,Ct="selectLeft"in gt?!gt.selectLeft:gt.inclusiveLeft,Vt="selectRight"in gt?!gt.selectRight:gt.inclusiveRight;if((dt.from==null||(Ct?dt.from<=b.ch:dt.from<b.ch))&&(dt.to==null||(Vt?dt.to>=b.ch:dt.to>b.ch))){if(xe&&(At(gt,"beforeCursorEnter"),gt.explicitlyCleared))if(ze.markedSpans){--tt;continue}else break;if(!gt.atomic)continue;if(de){var qt=gt.find(ce<0?1:-1),xn=void 0;if((ce<0?Vt:Ct)&&(qt=Yr(y,qt,-ce,qt&&qt.line==b.line?ze:null)),qt&&qt.line==b.line&&(xn=_t(qt,de))&&(ce<0?xn<0:xn>0))return To(y,qt,b,ce,xe)}var pn=gt.find(ce<0?-1:1);return(ce<0?Ct:Vt)&&(pn=Yr(y,pn,ce,pn.line==b.line?ze:null)),pn?To(y,pn,b,ce,xe):null}}return b}function Bo(y,b,de,ce,xe){var ze=ce||1,tt=To(y,b,de,ze,xe)||!xe&&To(y,b,de,ze,!0)||To(y,b,de,-ze,xe)||!xe&&To(y,b,de,-ze,!0);return tt||(y.cantEdit=!0,Tt(y.first,0))}function Yr(y,b,de,ce){return de<0&&b.ch==0?b.line>y.first?$t(y,Tt(b.line-1)):null:de>0&&b.ch==(ce||cn(y,b.line)).text.length?b.line<y.first+y.size-1?Tt(b.line+1,0):null:new Tt(b.line,b.ch+de)}function ni(y){y.setSelection(Tt(y.firstLine(),0),Tt(y.lastLine()),Ve)}function Vi(y,b,de){var ce={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return ce.canceled=!0}};return de&&(ce.update=function(xe,ze,tt,dt){xe&&(ce.from=$t(y,xe)),ze&&(ce.to=$t(y,ze)),tt&&(ce.text=tt),dt!==void 0&&(ce.origin=dt)}),At(y,"beforeChange",y,ce),y.cm&&At(y.cm,"beforeChange",y.cm,ce),ce.canceled?(y.cm&&(y.cm.curOp.updateInput=2),null):{from:ce.from,to:ce.to,text:ce.text,origin:ce.origin}}function eo(y,b,de){if(y.cm){if(!y.cm.curOp)return Jo(y.cm,eo)(y,b,de);if(y.cm.state.suppressEdits)return}if(!((kt(y,"beforeChange")||y.cm&&kt(y.cm,"beforeChange"))&&(b=Vi(y,b,!0),!b))){var ce=xr&&!de&&ki(y,b.from,b.to);if(ce)for(var xe=ce.length-1;xe>=0;--xe)Ji(y,{from:ce[xe].from,to:ce[xe].to,text:xe?[""]:b.text,origin:b.origin});else Ji(y,b)}}function Ji(y,b){if(!(b.text.length==1&&b.text[0]==""&&_t(b.from,b.to)==0)){var de=lr(y,b);Qr(y,b,de,y.cm?y.cm.curOp.id:NaN),va(y,b,de,ei(y,b));var ce=[];zr(y,function(xe,ze){!ze&&nt(ce,xe.history)==-1&&(Lo(xe.history,b),ce.push(xe.history)),va(xe,b,null,ei(xe,b))})}}function $o(y,b,de){var ce=y.cm&&y.cm.state.suppressEdits;if(!(ce&&!de)){for(var xe=y.history,ze,tt=y.sel,dt=b=="undo"?xe.done:xe.undone,gt=b=="undo"?xe.undone:xe.done,Ct=0;Ct<dt.length&&(ze=dt[Ct],!(de?ze.ranges&&!ze.equals(y.sel):!ze.ranges));Ct++);if(Ct!=dt.length){for(xe.lastOrigin=xe.lastSelOrigin=null;;)if(ze=dt.pop(),ze.ranges){if(Ii(ze,gt),de&&!ze.equals(y.sel)){kr(y,ze,{clearRedo:!1});return}tt=ze}else if(ce){dt.push(ze);return}else break;var Vt=[];Ii(tt,gt),gt.push({changes:Vt,generation:xe.generation}),xe.generation=ze.generation||++xe.maxGeneration;for(var qt=kt(y,"beforeChange")||y.cm&&kt(y.cm,"beforeChange"),xn=function(nr){var vr=ze.changes[nr];if(vr.origin=b,qt&&!Vi(y,vr,!1))return dt.length=0,{};Vt.push(mr(y,vr));var Ar=nr?lr(y,vr):ot(dt);va(y,vr,Ar,ho(y,vr)),!nr&&y.cm&&y.cm.scrollIntoView({from:vr.from,to:sr(vr)});var _r=[];zr(y,function(jr,Vr){!Vr&&nt(_r,jr.history)==-1&&(Lo(jr.history,vr),_r.push(jr.history)),va(jr,vr,null,ho(jr,vr))})},pn=ze.changes.length-1;pn>=0;--pn){var Zn=xn(pn);if(Zn)return Zn.v}}}}function Oo(y,b){if(b!=0&&(y.first+=b,y.sel=new yn(Qe(y.sel.ranges,function(xe){return new vn(Tt(xe.anchor.line+b,xe.anchor.ch),Tt(xe.head.line+b,xe.head.ch))}),y.sel.primIndex),y.cm)){la(y.cm,y.first,y.first-b,b);for(var de=y.cm.display,ce=de.viewFrom;ce<de.viewTo;ce++)is(y.cm,ce,"gutter")}}function va(y,b,de,ce){if(y.cm&&!y.cm.curOp)return Jo(y.cm,va)(y,b,de,ce);if(b.to.line<y.first){Oo(y,b.text.length-1-(b.to.line-b.from.line));return}if(!(b.from.line>y.lastLine())){if(b.from.line<y.first){var xe=b.text.length-1-(y.first-b.from.line);Oo(y,xe),b={from:Tt(y.first,0),to:Tt(b.to.line+xe,b.to.ch),text:[ot(b.text)],origin:b.origin}}var ze=y.lastLine();b.to.line>ze&&(b={from:b.from,to:Tt(ze,cn(y,ze).text.length),text:[b.text[0]],origin:b.origin}),b.removed=An(y,b.from,b.to),de||(de=lr(y,b)),y.cm?po(y.cm,b,ce):Jr(y,b,ce),Li(y,de,Ve),y.cantEdit&&Bo(y,Tt(y.firstLine(),0))&&(y.cantEdit=!1)}}function po(y,b,de){var ce=y.doc,xe=y.display,ze=b.from,tt=b.to,dt=!1,gt=ze.line;y.options.lineWrapping||(gt=Rt(jn(cn(ce,ze.line))),ce.iter(gt,tt.line+1,function(pn){if(pn==xe.maxLine)return dt=!0,!0})),ce.sel.contains(b.from,b.to)>-1&&Mt(y),Jr(ce,b,de,bl(y)),y.options.lineWrapping||(ce.iter(gt,ze.line+b.text.length,function(pn){var Zn=wi(pn);Zn>xe.maxLineLength&&(xe.maxLine=pn,xe.maxLineLength=Zn,xe.maxLineChanged=!0,dt=!1)}),dt&&(y.curOp.updateMaxLine=!0)),Vn(ce,ze.line),Ws(y,400);var Ct=b.text.length-(tt.line-ze.line)-1;b.full?la(y):ze.line==tt.line&&b.text.length==1&&!gi(y.doc,b)?is(y,ze.line,"text"):la(y,ze.line,tt.line+1,Ct);var Vt=kt(y,"changes"),qt=kt(y,"change");if(qt||Vt){var xn={from:ze,to:tt,text:b.text,removed:b.removed,origin:b.origin};qt&&Ri(y,"change",y,xn),Vt&&(y.curOp.changeObjs||(y.curOp.changeObjs=[])).push(xn)}y.display.selForContextMenu=null}function $i(y,b,de,ce,xe){var ze;ce||(ce=de),_t(ce,de)<0&&(ze=[ce,de],de=ze[0],ce=ze[1]),typeof b=="string"&&(b=y.splitLines(b)),eo(y,{from:de,to:ce,text:b,origin:xe})}function no(y,b,de,ce){de<y.line?y.line+=ce:b<y.line&&(y.line=b,y.ch=0)}function oo(y,b,de,ce){for(var xe=0;xe<y.length;++xe){var ze=y[xe],tt=!0;if(ze.ranges){ze.copied||(ze=y[xe]=ze.deepCopy(),ze.copied=!0);for(var dt=0;dt<ze.ranges.length;dt++)no(ze.ranges[dt].anchor,b,de,ce),no(ze.ranges[dt].head,b,de,ce);continue}for(var gt=0;gt<ze.changes.length;++gt){var Ct=ze.changes[gt];if(de<Ct.from.line)Ct.from=Tt(Ct.from.line+ce,Ct.from.ch),Ct.to=Tt(Ct.to.line+ce,Ct.to.ch);else if(b<=Ct.to.line){tt=!1;break}}tt||(y.splice(0,xe+1),xe=0)}}function Lo(y,b){var de=b.from.line,ce=b.to.line,xe=b.text.length-(ce-de)-1;oo(y.done,de,ce,xe),oo(y.undone,de,ce,xe)}function wo(y,b,de,ce){var xe=b,ze=b;return typeof b=="number"?ze=cn(y,Ft(y,b)):xe=Rt(b),xe==null?null:(ce(ze,xe)&&y.cm&&is(y.cm,xe,de),ze)}function zi(y){this.lines=y,this.parent=null;for(var b=0,de=0;de<y.length;++de)y[de].parent=this,b+=y[de].height;this.height=b}zi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(y,b){for(var de=y,ce=y+b;de<ce;++de){var xe=this.lines[de];this.height-=xe.height,Si(xe),Ri(xe,"delete")}this.lines.splice(y,b)},collapse:function(y){y.push.apply(y,this.lines)},insertInner:function(y,b,de){this.height+=de,this.lines=this.lines.slice(0,y).concat(b).concat(this.lines.slice(y));for(var ce=0;ce<b.length;++ce)b[ce].parent=this},iterN:function(y,b,de){for(var ce=y+b;y<ce;++y)if(de(this.lines[y]))return!0}};function mo(y){this.children=y;for(var b=0,de=0,ce=0;ce<y.length;++ce){var xe=y[ce];b+=xe.chunkSize(),de+=xe.height,xe.parent=this}this.size=b,this.height=de,this.parent=null}mo.prototype={chunkSize:function(){return this.size},removeInner:function(y,b){this.size-=b;for(var de=0;de<this.children.length;++de){var ce=this.children[de],xe=ce.chunkSize();if(y<xe){var ze=Math.min(b,xe-y),tt=ce.height;if(ce.removeInner(y,ze),this.height-=tt-ce.height,xe==ze&&(this.children.splice(de--,1),ce.parent=null),(b-=ze)==0)break;y=0}else y-=xe}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(y){for(var b=0;b<this.children.length;++b)this.children[b].collapse(y)},insertInner:function(y,b,de){this.size+=b.length,this.height+=de;for(var ce=0;ce<this.children.length;++ce){var xe=this.children[ce],ze=xe.chunkSize();if(y<=ze){if(xe.insertInner(y,b,de),xe.lines&&xe.lines.length>50){for(var tt=xe.lines.length%25+25,dt=tt;dt<xe.lines.length;){var gt=new zi(xe.lines.slice(dt,dt+=25));xe.height-=gt.height,this.children.splice(++ce,0,gt),gt.parent=this}xe.lines=xe.lines.slice(0,tt),this.maybeSpill()}break}y-=ze}},maybeSpill:function(){if(!(this.children.length<=10)){var y=this;do{var b=y.children.splice(y.children.length-5,5),de=new mo(b);if(y.parent){y.size-=de.size,y.height-=de.height;var xe=nt(y.parent.children,y);y.parent.children.splice(xe+1,0,de)}else{var ce=new mo(y.children);ce.parent=y,y.children=[ce,de],y=ce}de.parent=y.parent}while(y.children.length>10);y.parent.maybeSpill()}},iterN:function(y,b,de){for(var ce=0;ce<this.children.length;++ce){var xe=this.children[ce],ze=xe.chunkSize();if(y<ze){var tt=Math.min(b,ze-y);if(xe.iterN(y,tt,de))return!0;if((b-=tt)==0)break;y=0}else y-=ze}}};var Xi=function(y,b,de){if(de)for(var ce in de)de.hasOwnProperty(ce)&&(this[ce]=de[ce]);this.doc=y,this.node=b};Xi.prototype.clear=function(){var y=this.doc.cm,b=this.line.widgets,de=this.line,ce=Rt(de);if(!(ce==null||!b)){for(var xe=0;xe<b.length;++xe)b[xe]==this&&b.splice(xe--,1);b.length||(de.widgets=null);var ze=oa(this);wr(de,Math.max(0,de.height-ze)),y&&(ma(y,function(){Qo(y,de,-ze),is(y,ce,"widget")}),Ri(y,"lineWidgetCleared",y,this,ce))}},Xi.prototype.changed=function(){var y=this,b=this.height,de=this.doc.cm,ce=this.line;this.height=null;var xe=oa(this)-b;xe&&(Un(this.doc,ce)||wr(ce,ce.height+xe),de&&ma(de,function(){de.curOp.forceUpdate=!0,Qo(de,ce,xe),Ri(de,"lineWidgetChanged",de,y,Rt(ce))}))},xt(Xi);function Qo(y,b,de){Gr(b)<(y.curOp&&y.curOp.scrollTop||y.doc.scrollTop)&&Kl(y,de)}function Ro(y,b,de,ce){var xe=new Xi(y,de,ce),ze=y.cm;return ze&&xe.noHScroll&&(ze.display.alignWidgets=!0),wo(y,b,"widget",function(tt){var dt=tt.widgets||(tt.widgets=[]);if(xe.insertAt==null?dt.push(xe):dt.splice(Math.min(dt.length-1,Math.max(0,xe.insertAt)),0,xe),xe.line=tt,ze&&!Un(y,tt)){var gt=Gr(tt)<y.scrollTop;wr(tt,tt.height+oa(xe)),gt&&Kl(ze,xe.height),ze.curOp.forceUpdate=!0}return!0}),ze&&Ri(ze,"lineWidgetAdded",ze,xe,typeof b=="number"?b:Rt(b)),xe}var ca=0,ga=function(y,b){this.lines=[],this.type=b,this.doc=y,this.id=++ca};ga.prototype.clear=function(){if(!this.explicitlyCleared){var y=this.doc.cm,b=y&&!y.curOp;if(b&&ms(y),kt(this,"clear")){var de=this.find();de&&Ri(this,"clear",de.from,de.to)}for(var ce=null,xe=null,ze=0;ze<this.lines.length;++ze){var tt=this.lines[ze],dt=Kr(tt.markedSpans,this);y&&!this.collapsed?is(y,Rt(tt),"text"):y&&(dt.to!=null&&(xe=Rt(tt)),dt.from!=null&&(ce=Rt(tt))),tt.markedSpans=ri(tt.markedSpans,dt),dt.from==null&&this.collapsed&&!Un(this.doc,tt)&&y&&wr(tt,wa(y.display))}if(y&&this.collapsed&&!y.options.lineWrapping)for(var gt=0;gt<this.lines.length;++gt){var Ct=jn(this.lines[gt]),Vt=wi(Ct);Vt>y.display.maxLineLength&&(y.display.maxLine=Ct,y.display.maxLineLength=Vt,y.display.maxLineChanged=!0)}ce!=null&&y&&this.collapsed&&la(y,ce,xe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,y&&uo(y.doc)),y&&Ri(y,"markerCleared",y,this,ce,xe),b&&Is(y),this.parent&&this.parent.clear()}},ga.prototype.find=function(y,b){y==null&&this.type=="bookmark"&&(y=1);for(var de,ce,xe=0;xe<this.lines.length;++xe){var ze=this.lines[xe],tt=Kr(ze.markedSpans,this);if(tt.from!=null&&(de=Tt(b?ze:Rt(ze),tt.from),y==-1))return de;if(tt.to!=null&&(ce=Tt(b?ze:Rt(ze),tt.to),y==1))return ce}return de&&{from:de,to:ce}},ga.prototype.changed=function(){var y=this,b=this.find(-1,!0),de=this,ce=this.doc.cm;!b||!ce||ma(ce,function(){var xe=b.line,ze=Rt(b.line),tt=za(ce,ze);if(tt&&(Rs(tt),ce.curOp.selectionChanged=ce.curOp.forceUpdate=!0),ce.curOp.updateMaxLine=!0,!Un(de.doc,xe)&&de.height!=null){var dt=de.height;de.height=null;var gt=oa(de)-dt;gt&&wr(xe,xe.height+gt)}Ri(ce,"markerChanged",ce,y)})},ga.prototype.attachLine=function(y){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(!b.maybeHiddenMarkers||nt(b.maybeHiddenMarkers,this)==-1)&&(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(y)},ga.prototype.detachLine=function(y){if(this.lines.splice(nt(this.lines,y),1),!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(b.maybeHiddenMarkers||(b.maybeHiddenMarkers=[])).push(this)}},xt(ga);function Ga(y,b,de,ce,xe){if(ce&&ce.shared)return Zs(y,b,de,ce,xe);if(y.cm&&!y.cm.curOp)return Jo(y.cm,Ga)(y,b,de,ce,xe);var ze=new ga(y,xe),tt=_t(b,de);if(ce&&st(ce,ze,!1),tt>0||tt==0&&ze.clearWhenEmpty!==!1)return ze;if(ze.replacedWith&&(ze.collapsed=!0,ze.widgetNode=Ie("span",[ze.replacedWith],"CodeMirror-widget"),ce.handleMouseEvents||ze.widgetNode.setAttribute("cm-ignore-events","true"),ce.insertLeft&&(ze.widgetNode.insertLeft=!0)),ze.collapsed){if(Ln(y,b.line,b,de,ze)||b.line!=de.line&&Ln(y,de.line,b,de,ze))throw new Error("Inserting collapsed marker partially overlapping an existing one");Xr()}ze.addToHistory&&Qr(y,{from:b,to:de,origin:"markText"},y.sel,NaN);var dt=b.line,gt=y.cm,Ct;if(y.iter(dt,de.line+1,function(qt){gt&&ze.collapsed&&!gt.options.lineWrapping&&jn(qt)==gt.display.maxLine&&(Ct=!0),ze.collapsed&&dt!=b.line&&wr(qt,0),Fr(qt,new Ur(ze,dt==b.line?b.ch:null,dt==de.line?de.ch:null)),++dt}),ze.collapsed&&y.iter(b.line,de.line+1,function(qt){Un(y,qt)&&wr(qt,0)}),ze.clearOnEnter&&Pt(ze,"beforeCursorEnter",function(){return ze.clear()}),ze.readOnly&&(Hr(),(y.history.done.length||y.history.undone.length)&&y.clearHistory()),ze.collapsed&&(ze.id=++ca,ze.atomic=!0),gt){if(Ct&&(gt.curOp.updateMaxLine=!0),ze.collapsed)la(gt,b.line,de.line+1);else if(ze.className||ze.startStyle||ze.endStyle||ze.css||ze.attributes||ze.title)for(var Vt=b.line;Vt<=de.line;Vt++)is(gt,Vt,"text");ze.atomic&&uo(gt.doc),Ri(gt,"markerAdded",gt,ze)}return ze}var ao=function(y,b){this.markers=y,this.primary=b;for(var de=0;de<y.length;++de)y[de].parent=this};ao.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var y=0;y<this.markers.length;++y)this.markers[y].clear();Ri(this,"clear")}},ao.prototype.find=function(y,b){return this.primary.find(y,b)},xt(ao);function Zs(y,b,de,ce,xe){ce=st(ce),ce.shared=!1;var ze=[Ga(y,b,de,ce,xe)],tt=ze[0],dt=ce.widgetNode;return zr(y,function(gt){dt&&(ce.widgetNode=dt.cloneNode(!0)),ze.push(Ga(gt,$t(gt,b),$t(gt,de),ce,xe));for(var Ct=0;Ct<gt.linked.length;++Ct)if(gt.linked[Ct].isParent)return;tt=ot(ze)}),new ao(ze,tt)}function da(y){return y.findMarks(Tt(y.first,0),y.clipPos(Tt(y.lastLine())),function(b){return b.parent})}function Ma(y,b){for(var de=0;de<b.length;de++){var ce=b[de],xe=ce.find(),ze=y.clipPos(xe.from),tt=y.clipPos(xe.to);if(_t(ze,tt)){var dt=Ga(y,ze,tt,ce.primary,ce.primary.type);ce.markers.push(dt),dt.parent=ce}}}function Sa(y){for(var b=function(ce){var xe=y[ce],ze=[xe.primary.doc];zr(xe.primary.doc,function(gt){return ze.push(gt)});for(var tt=0;tt<xe.markers.length;tt++){var dt=xe.markers[tt];nt(ze,dt.doc)==-1&&(dt.parent=null,xe.markers.splice(tt--,1))}},de=0;de<y.length;de++)b(de)}var ya=0,so=function(y,b,de,ce,xe){if(!(this instanceof so))return new so(y,b,de,ce,xe);de==null&&(de=0),mo.call(this,[new zi([new ji("",null)])]),this.first=de,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=de;var ze=Tt(de,0);this.sel=zn(ze),this.history=new Sr(null),this.id=++ya,this.modeOption=b,this.lineSep=ce,this.direction=xe=="rtl"?"rtl":"ltr",this.extend=!1,typeof y=="string"&&(y=this.splitLines(y)),Jr(this,{from:ze,to:ze,text:y}),kr(this,zn(ze),Ve)};so.prototype=ne(mo.prototype,{constructor:so,iter:function(y,b,de){de?this.iterN(y-this.first,b-y,de):this.iterN(this.first,this.first+this.size,y)},insert:function(y,b){for(var de=0,ce=0;ce<b.length;++ce)de+=b[ce].height;this.insertInner(y-this.first,b,de)},remove:function(y,b){this.removeInner(y-this.first,b)},getValue:function(y){var b=qn(this,this.first,this.first+this.size);return y===!1?b:b.join(y||this.lineSeparator())},setValue:Ko(function(y){var b=Tt(this.first,0),de=this.first+this.size-1;eo(this,{from:b,to:Tt(de,cn(this,de).text.length),text:this.splitLines(y),origin:"setValue",full:!0},!0),this.cm&&nl(this.cm,0,0),kr(this,zn(b),Ve)}),replaceRange:function(y,b,de,ce){b=$t(this,b),de=de?$t(this,de):b,$i(this,y,b,de,ce)},getRange:function(y,b,de){var ce=An(this,$t(this,y),$t(this,b));return de===!1?ce:ce.join(de||this.lineSeparator())},getLine:function(y){var b=this.getLineHandle(y);return b&&b.text},getLineHandle:function(y){if(Et(this,y))return cn(this,y)},getLineNumber:function(y){return Rt(y)},getLineHandleVisualStart:function(y){return typeof y=="number"&&(y=cn(this,y)),jn(y)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(y){return $t(this,y)},getCursor:function(y){var b=this.sel.primary(),de;return y==null||y=="head"?de=b.head:y=="anchor"?de=b.anchor:y=="end"||y=="to"||y===!1?de=b.to():de=b.from(),de},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ko(function(y,b,de){Zr(this,$t(this,typeof y=="number"?Tt(y,b||0):y),null,de)}),setSelection:Ko(function(y,b,de){Zr(this,$t(this,y),$t(this,b||y),de)}),extendSelection:Ko(function(y,b,de){Di(this,$t(this,y),b&&$t(this,b),de)}),extendSelections:Ko(function(y,b){Eo(this,Wt(this,y),b)}),extendSelectionsBy:Ko(function(y,b){var de=Qe(this.sel.ranges,y);Eo(this,Wt(this,de),b)}),setSelections:Ko(function(y,b,de){if(y.length){for(var ce=[],xe=0;xe<y.length;xe++)ce[xe]=new vn($t(this,y[xe].anchor),$t(this,y[xe].head));b==null&&(b=Math.min(y.length-1,this.sel.primIndex)),kr(this,or(this.cm,ce,b),de)}}),addSelection:Ko(function(y,b,de){var ce=this.sel.ranges.slice(0);ce.push(new vn($t(this,y),$t(this,b||y))),kr(this,or(this.cm,ce,ce.length-1),de)}),getSelection:function(y){for(var b=this.sel.ranges,de,ce=0;ce<b.length;ce++){var xe=An(this,b[ce].from(),b[ce].to());de=de?de.concat(xe):xe}return y===!1?de:de.join(y||this.lineSeparator())},getSelections:function(y){for(var b=[],de=this.sel.ranges,ce=0;ce<de.length;ce++){var xe=An(this,de[ce].from(),de[ce].to());y!==!1&&(xe=xe.join(y||this.lineSeparator())),b[ce]=xe}return b},replaceSelection:function(y,b,de){for(var ce=[],xe=0;xe<this.sel.ranges.length;xe++)ce[xe]=y;this.replaceSelections(ce,b,de||"+input")},replaceSelections:Ko(function(y,b,de){for(var ce=[],xe=this.sel,ze=0;ze<xe.ranges.length;ze++){var tt=xe.ranges[ze];ce[ze]={from:tt.from(),to:tt.to(),text:this.splitLines(y[ze]),origin:de}}for(var dt=b&&b!="end"&&Ir(this,ce,b),gt=ce.length-1;gt>=0;gt--)eo(this,ce[gt]);dt?$r(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(y){this.extend=y},getExtending:function(){return this.extend},historySize:function(){for(var y=this.history,b=0,de=0,ce=0;ce<y.done.length;ce++)y.done[ce].ranges||++b;for(var xe=0;xe<y.undone.length;xe++)y.undone[xe].ranges||++de;return{undo:b,redo:de}},clearHistory:function(){var y=this;this.history=new Sr(this.history.maxGeneration),zr(this,function(b){return b.history=y.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(y){return y&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(y){return this.history.generation==(y||this.cleanGeneration)},getHistory:function(){return{done:So(this.history.done),undone:So(this.history.undone)}},setHistory:function(y){var b=this.history=new Sr(this.history.maxGeneration);b.done=So(y.done.slice(0),null,!0),b.undone=So(y.undone.slice(0),null,!0)},setGutterMarker:Ko(function(y,b,de){return wo(this,y,"gutter",function(ce){var xe=ce.gutterMarkers||(ce.gutterMarkers={});return xe[b]=de,!de&&we(xe)&&(ce.gutterMarkers=null),!0})}),clearGutter:Ko(function(y){var b=this;this.iter(function(de){de.gutterMarkers&&de.gutterMarkers[y]&&wo(b,de,"gutter",function(){return de.gutterMarkers[y]=null,we(de.gutterMarkers)&&(de.gutterMarkers=null),!0})})}),lineInfo:function(y){var b;if(typeof y=="number"){if(!Et(this,y)||(b=y,y=cn(this,y),!y))return null}else if(b=Rt(y),b==null)return null;return{line:b,handle:y,text:y.text,gutterMarkers:y.gutterMarkers,textClass:y.textClass,bgClass:y.bgClass,wrapClass:y.wrapClass,widgets:y.widgets}},addLineClass:Ko(function(y,b,de){return wo(this,y,b=="gutter"?"gutter":"class",function(ce){var xe=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!ce[xe])ce[xe]=de;else{if(ke(de).test(ce[xe]))return!1;ce[xe]+=" "+de}return!0})}),removeLineClass:Ko(function(y,b,de){return wo(this,y,b=="gutter"?"gutter":"class",function(ce){var xe=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",ze=ce[xe];if(ze)if(de==null)ce[xe]=null;else{var tt=ze.match(ke(de));if(!tt)return!1;var dt=tt.index+tt[0].length;ce[xe]=ze.slice(0,tt.index)+(!tt.index||dt==ze.length?"":" ")+ze.slice(dt)||null}else return!1;return!0})}),addLineWidget:Ko(function(y,b,de){return Ro(this,y,b,de)}),removeLineWidget:function(y){y.clear()},markText:function(y,b,de){return Ga(this,$t(this,y),$t(this,b),de,de&&de.type||"range")},setBookmark:function(y,b){var de={replacedWith:b&&(b.nodeType==null?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};return y=$t(this,y),Ga(this,y,y,de,"bookmark")},findMarksAt:function(y){y=$t(this,y);var b=[],de=cn(this,y.line).markedSpans;if(de)for(var ce=0;ce<de.length;++ce){var xe=de[ce];(xe.from==null||xe.from<=y.ch)&&(xe.to==null||xe.to>=y.ch)&&b.push(xe.marker.parent||xe.marker)}return b},findMarks:function(y,b,de){y=$t(this,y),b=$t(this,b);var ce=[],xe=y.line;return this.iter(y.line,b.line+1,function(ze){var tt=ze.markedSpans;if(tt)for(var dt=0;dt<tt.length;dt++){var gt=tt[dt];!(gt.to!=null&&xe==y.line&&y.ch>=gt.to||gt.from==null&&xe!=y.line||gt.from!=null&&xe==b.line&&gt.from>=b.ch)&&(!de||de(gt.marker))&&ce.push(gt.marker.parent||gt.marker)}++xe}),ce},getAllMarks:function(){var y=[];return this.iter(function(b){var de=b.markedSpans;if(de)for(var ce=0;ce<de.length;++ce)de[ce].from!=null&&y.push(de[ce].marker)}),y},posFromIndex:function(y){var b,de=this.first,ce=this.lineSeparator().length;return this.iter(function(xe){var ze=xe.text.length+ce;if(ze>y)return b=y,!0;y-=ze,++de}),$t(this,Tt(de,b))},indexFromPos:function(y){y=$t(this,y);var b=y.ch;if(y.line<this.first||y.ch<0)return 0;var de=this.lineSeparator().length;return this.iter(this.first,y.line,function(ce){b+=ce.text.length+de}),b},copy:function(y){var b=new so(qn(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,y&&(b.history.undoDepth=this.history.undoDepth,b.setHistory(this.getHistory())),b},linkedDoc:function(y){y||(y={});var b=this.first,de=this.first+this.size;y.from!=null&&y.from>b&&(b=y.from),y.to!=null&&y.to<de&&(de=y.to);var ce=new so(qn(this,b,de),y.mode||this.modeOption,b,this.lineSep,this.direction);return y.sharedHist&&(ce.history=this.history),(this.linked||(this.linked=[])).push({doc:ce,sharedHist:y.sharedHist}),ce.linked=[{doc:this,isParent:!0,sharedHist:y.sharedHist}],Ma(ce,da(this)),ce},unlinkDoc:function(y){if(y instanceof Po&&(y=y.doc),this.linked)for(var b=0;b<this.linked.length;++b){var de=this.linked[b];if(de.doc==y){this.linked.splice(b,1),y.unlinkDoc(this),Sa(da(this));break}}if(y.history==this.history){var ce=[y.id];zr(y,function(xe){return ce.push(xe.id)},!0),y.history=new Sr(null),y.history.done=So(this.history.done,ce),y.history.undone=So(this.history.undone,ce)}},iterLinkedDocs:function(y){zr(this,y)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(y){return this.lineSep?y.split(this.lineSep):gn(y)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Ko(function(y){y!="rtl"&&(y="ltr"),y!=this.direction&&(this.direction=y,this.iter(function(b){return b.order=null}),this.cm&&Br(this.cm))})}),so.prototype.eachLine=so.prototype.iter;var Ea=0;function as(y){var b=this;if(ol(b),!(pt(b,y)||Yo(b.display,y))){It(y),ge&&(Ea=+new Date);var de=Ja(b,y,!0),ce=y.dataTransfer.files;if(!(!de||b.isReadOnly()))if(ce&&ce.length&&window.FileReader&&window.File)for(var xe=ce.length,ze=Array(xe),tt=0,dt=function(){++tt==xe&&Jo(b,function(){de=$t(b.doc,de);var pn={from:de,to:de,text:b.doc.splitLines(ze.filter(function(Zn){return Zn!=null}).join(b.doc.lineSeparator())),origin:"paste"};eo(b.doc,pn),$r(b.doc,zn($t(b.doc,de),$t(b.doc,sr(pn))))})()},gt=function(pn,Zn){if(b.options.allowDropFileTypes&&nt(b.options.allowDropFileTypes,pn.type)==-1){dt();return}var nr=new FileReader;nr.onerror=function(){return dt()},nr.onload=function(){var vr=nr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(vr)){dt();return}ze[Zn]=vr,dt()},nr.readAsText(pn)},Ct=0;Ct<ce.length;Ct++)gt(ce[Ct],Ct);else{if(b.state.draggingText&&b.doc.sel.contains(de)>-1){b.state.draggingText(y),setTimeout(function(){return b.display.input.focus()},20);return}try{var Vt=y.dataTransfer.getData("Text");if(Vt){var qt;if(b.state.draggingText&&!b.state.draggingText.copy&&(qt=b.listSelections()),Li(b.doc,zn(de,de)),qt)for(var xn=0;xn<qt.length;++xn)$i(b.doc,"",qt[xn].anchor,qt[xn].head,"drag");b.replaceSelection(Vt,"around","paste"),b.display.input.focus()}}catch(pn){}}}}function Va(y,b){if(ge&&(!y.state.draggingText||+new Date-Ea<100)){St(b);return}if(!(pt(y,b)||Yo(y.display,b))&&(b.dataTransfer.setData("Text",y.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!ue)){var de=Ee("img",null,null,"position: fixed; left: 0; top: 0;");de.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ee&&(de.width=de.height=1,y.display.wrapper.appendChild(de),de._top=de.offsetTop),b.dataTransfer.setDragImage(de,0,0),ee&&de.parentNode.removeChild(de)}}function Xa(y,b){var de=Ja(y,b);if(de){var ce=document.createDocumentFragment();Zl(y,de,ce),y.display.dragCursor||(y.display.dragCursor=Ee("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),y.display.lineSpace.insertBefore(y.display.dragCursor,y.display.cursorDiv)),Se(y.display.dragCursor,ce)}}function ol(y){y.display.dragCursor&&(y.display.lineSpace.removeChild(y.display.dragCursor),y.display.dragCursor=null)}function al(y){if(document.getElementsByClassName){for(var b=document.getElementsByClassName("CodeMirror"),de=[],ce=0;ce<b.length;ce++){var xe=b[ce].CodeMirror;xe&&de.push(xe)}de.length&&de[0].operation(function(){for(var ze=0;ze<de.length;ze++)y(de[ze])})}}var sl=!1;function ll(){sl||(Ol(),sl=!0)}function Ol(){var y;Pt(window,"resize",function(){y==null&&(y=setTimeout(function(){y=null,al(bi)},100))}),Pt(window,"blur",function(){return al(Cs)})}function bi(y){var b=y.display;b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,y.setSize()}for(var Bi={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"},yo=0;yo<10;yo++)Bi[yo+48]=Bi[yo+96]=String(yo);for(var Io=65;Io<=90;Io++)Bi[Io]=String.fromCharCode(Io);for(var Go=1;Go<=12;Go++)Bi[Go+111]=Bi[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=he?zo.macDefault:zo.pcDefault;function Fa(y){var b=y.split(/-(?!$)/);y=b[b.length-1];for(var de,ce,xe,ze,tt=0;tt<b.length-1;tt++){var dt=b[tt];if(/^(cmd|meta|m)$/i.test(dt))ze=!0;else if(/^a(lt)?$/i.test(dt))de=!0;else if(/^(c|ctrl|control)$/i.test(dt))ce=!0;else if(/^s(hift)?$/i.test(dt))xe=!0;else throw new Error("Unrecognized modifier name: "+dt)}return de&&(y="Alt-"+y),ce&&(y="Ctrl-"+y),ze&&(y="Cmd-"+y),xe&&(y="Shift-"+y),y}function ea(y){var b={};for(var de in y)if(y.hasOwnProperty(de)){var ce=y[de];if(/^(name|fallthrough|(de|at)tach)$/.test(de))continue;if(ce=="..."){delete y[de];continue}for(var xe=Qe(de.split(" "),Fa),ze=0;ze<xe.length;ze++){var tt=void 0,dt=void 0;ze==xe.length-1?(dt=xe.join(" "),tt=ce):(dt=xe.slice(0,ze+1).join(" "),tt="...");var gt=b[dt];if(!gt)b[dt]=tt;else if(gt!=tt)throw new Error("Inconsistent bindings for "+dt)}delete y[de]}for(var Ct in b)y[Ct]=b[Ct];return y}function Ps(y,b,de,ce){b=ul(b);var xe=b.call?b.call(y,ce):b[y];if(xe===!1)return"nothing";if(xe==="...")return"multi";if(xe!=null&&de(xe))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return Ps(y,b.fallthrough,de,ce);for(var ze=0;ze<b.fallthrough.length;ze++){var tt=Ps(y,b.fallthrough[ze],de,ce);if(tt)return tt}}}function Il(y){var b=typeof y=="string"?y:Bi[y.keyCode];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function Hs(y,b,de){var ce=y;return b.altKey&&ce!="Alt"&&(y="Alt-"+y),(be?b.metaKey:b.ctrlKey)&&ce!="Ctrl"&&(y="Ctrl-"+y),(be?b.ctrlKey:b.metaKey)&&ce!="Mod"&&(y="Cmd-"+y),!de&&b.shiftKey&&ce!="Shift"&&(y="Shift-"+y),y}function vs(y,b){if(ee&&y.keyCode==34&&y.char)return!1;var de=Bi[y.keyCode];return de==null||y.altGraphKey?!1:(y.keyCode==3&&y.code&&(de=y.code),Hs(de,y,b))}function ul(y){return typeof y=="string"?zo[y]:y}function gs(y,b){for(var de=y.doc.sel.ranges,ce=[],xe=0;xe<de.length;xe++){for(var ze=b(de[xe]);ce.length&&_t(ze.from,ot(ce).to)<=0;){var tt=ce.pop();if(_t(tt.from,ze.from)<0){ze.from=tt.from;break}}ce.push(ze)}ma(y,function(){for(var dt=ce.length-1;dt>=0;dt--)$i(y.doc,"",ce[dt].from,ce[dt].to,"+delete");Es(y)})}function Pl(y,b,de){var ce=$e(y.text,b+de,de);return ce<0||ce>y.text.length?null:ce}function cl(y,b,de){var ce=Pl(y,b.ch,de);return ce==null?null:new Tt(b.line,ce,de<0?"after":"before")}function Al(y,b,de,ce,xe){if(y){b.doc.direction=="rtl"&&(xe=-xe);var ze=ut(de,b.doc.direction);if(ze){var tt=xe<0?ot(ze):ze[0],dt=xe<0==(tt.level==1),gt=dt?"after":"before",Ct;if(tt.level>0||b.doc.direction=="rtl"){var Vt=ts(b,de);Ct=xe<0?de.text.length-1:0;var qt=Da(b,Vt,Ct).top;Ct=Ze(function(xn){return Da(b,Vt,xn).top==qt},xe<0==(tt.level==1)?tt.from:tt.to-1,Ct),gt=="before"&&(Ct=Pl(de,Ct,1))}else Ct=xe<0?tt.to:tt.from;return new Tt(ce,Ct,gt)}}return new Tt(ce,xe<0?de.text.length:0,xe<0?"before":"after")}function Ql(y,b,de,ce){var xe=ut(b,y.doc.direction);if(!xe)return cl(b,de,ce);de.ch>=b.text.length?(de.ch=b.text.length,de.sticky="before"):de.ch<=0&&(de.ch=0,de.sticky="after");var ze=lt(xe,de.ch,de.sticky),tt=xe[ze];if(y.doc.direction=="ltr"&&tt.level%2==0&&(ce>0?tt.to>de.ch:tt.from<de.ch))return cl(b,de,ce);var dt=function(Ar,_r){return Pl(b,Ar instanceof Tt?Ar.ch:Ar,_r)},gt,Ct=function(Ar){return y.options.lineWrapping?(gt=gt||ts(y,b),ko(y,b,gt,Ar)):{begin:0,end:b.text.length}},Vt=Ct(de.sticky=="before"?dt(de,-1):de.ch);if(y.doc.direction=="rtl"||tt.level==1){var qt=tt.level==1==ce<0,xn=dt(de,qt?1:-1);if(xn!=null&&(qt?xn<=tt.to&&xn<=Vt.end:xn>=tt.from&&xn>=Vt.begin)){var pn=qt?"before":"after";return new Tt(de.line,xn,pn)}}var Zn=function(Ar,_r,jr){for(var Vr=function(bo,ra){return ra?new Tt(de.line,dt(bo,1),"before"):new Tt(de.line,bo,"after")};Ar>=0&&Ar<xe.length;Ar+=_r){var vi=xe[Ar],li=_r>0==(vi.level!=1),Fi=li?jr.begin:dt(jr.end,-1);if(vi.from<=Fi&&Fi<vi.to||(Fi=li?vi.from:dt(vi.to,-1),jr.begin<=Fi&&Fi<jr.end))return Vr(Fi,li)}},nr=Zn(ze+ce,ce,Vt);if(nr)return nr;var vr=ce>0?Vt.end:dt(Vt.begin,-1);return vr!=null&&!(ce>0&&vr==b.text.length)&&(nr=Zn(ce>0?0:xe.length-1,ce,Ct(vr)),nr)?nr:null}var ss={selectAll:ni,singleSelection:function(y){return y.setSelection(y.getCursor("anchor"),y.getCursor("head"),Ve)},killLine:function(y){return gs(y,function(b){if(b.empty()){var de=cn(y.doc,b.head.line).text.length;return b.head.ch==de&&b.head.line<y.lastLine()?{from:b.head,to:Tt(b.head.line+1,0)}:{from:b.head,to:Tt(b.head.line,de)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(y){return gs(y,function(b){return{from:Tt(b.from().line,0),to:$t(y.doc,Tt(b.to().line+1,0))}})},delLineLeft:function(y){return gs(y,function(b){return{from:Tt(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(y){return gs(y,function(b){var de=y.charCoords(b.head,"div").top+5,ce=y.coordsChar({left:0,top:de},"div");return{from:ce,to:b.from()}})},delWrappedLineRight:function(y){return gs(y,function(b){var de=y.charCoords(b.head,"div").top+5,ce=y.coordsChar({left:y.display.lineDiv.offsetWidth+100,top:de},"div");return{from:b.from(),to:ce}})},undo:function(y){return y.undo()},redo:function(y){return y.redo()},undoSelection:function(y){return y.undoSelection()},redoSelection:function(y){return y.redoSelection()},goDocStart:function(y){return y.extendSelection(Tt(y.firstLine(),0))},goDocEnd:function(y){return y.extendSelection(Tt(y.lastLine()))},goLineStart:function(y){return y.extendSelectionsBy(function(b){return jl(y,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(y){return y.extendSelectionsBy(function(b){return Dl(y,b.head)},{origin:"+move",bias:1})},goLineEnd:function(y){return y.extendSelectionsBy(function(b){return gu(y,b.head.line)},{origin:"+move",bias:-1})},goLineRight:function(y){return y.extendSelectionsBy(function(b){var de=y.cursorCoords(b.head,"div").top+5;return y.coordsChar({left:y.display.lineDiv.offsetWidth+100,top:de},"div")},Ge)},goLineLeft:function(y){return y.extendSelectionsBy(function(b){var de=y.cursorCoords(b.head,"div").top+5;return y.coordsChar({left:0,top:de},"div")},Ge)},goLineLeftSmart:function(y){return y.extendSelectionsBy(function(b){var de=y.cursorCoords(b.head,"div").top+5,ce=y.coordsChar({left:0,top:de},"div");return ce.ch<y.getLine(ce.line).search(/\S/)?Dl(y,b.head):ce},Ge)},goLineUp:function(y){return y.moveV(-1,"line")},goLineDown:function(y){return y.moveV(1,"line")},goPageUp:function(y){return y.moveV(-1,"page")},goPageDown:function(y){return y.moveV(1,"page")},goCharLeft:function(y){return y.moveH(-1,"char")},goCharRight:function(y){return y.moveH(1,"char")},goColumnLeft:function(y){return y.moveH(-1,"column")},goColumnRight:function(y){return y.moveH(1,"column")},goWordLeft:function(y){return y.moveH(-1,"word")},goGroupRight:function(y){return y.moveH(1,"group")},goGroupLeft:function(y){return y.moveH(-1,"group")},goWordRight:function(y){return y.moveH(1,"word")},delCharBefore:function(y){return y.deleteH(-1,"codepoint")},delCharAfter:function(y){return y.deleteH(1,"char")},delWordBefore:function(y){return y.deleteH(-1,"word")},delWordAfter:function(y){return y.deleteH(1,"word")},delGroupBefore:function(y){return y.deleteH(-1,"group")},delGroupAfter:function(y){return y.deleteH(1,"group")},indentAuto:function(y){return y.indentSelection("smart")},indentMore:function(y){return y.indentSelection("add")},indentLess:function(y){return y.indentSelection("subtract")},insertTab:function(y){return y.replaceSelection(" ")},insertSoftTab:function(y){for(var b=[],de=y.listSelections(),ce=y.options.tabSize,xe=0;xe<de.length;xe++){var ze=de[xe].from(),tt=_e(y.getLine(ze.line),ze.ch,ce);b.push(vt(ce-tt%ce))}y.replaceSelections(b)},defaultTab:function(y){y.somethingSelected()?y.indentSelection("add"):y.execCommand("insertTab")},transposeChars:function(y){return ma(y,function(){for(var b=y.listSelections(),de=[],ce=0;ce<b.length;ce++)if(b[ce].empty()){var xe=b[ce].head,ze=cn(y.doc,xe.line).text;if(ze){if(xe.ch==ze.length&&(xe=new Tt(xe.line,xe.ch-1)),xe.ch>0)xe=new Tt(xe.line,xe.ch+1),y.replaceRange(ze.charAt(xe.ch-1)+ze.charAt(xe.ch-2),Tt(xe.line,xe.ch-2),xe,"+transpose");else if(xe.line>y.doc.first){var tt=cn(y.doc,xe.line-1).text;tt&&(xe=new Tt(xe.line,1),y.replaceRange(ze.charAt(0)+y.doc.lineSeparator()+tt.charAt(tt.length-1),Tt(xe.line-1,tt.length-1),xe,"+transpose"))}}de.push(new vn(xe,xe))}y.setSelections(de)})},newlineAndIndent:function(y){return ma(y,function(){for(var b=y.listSelections(),de=b.length-1;de>=0;de--)y.replaceRange(y.doc.lineSeparator(),b[de].anchor,b[de].head,"+input");b=y.listSelections();for(var ce=0;ce<b.length;ce++)y.indentLine(b[ce].from().line,null,!0);Es(y)})},openLine:function(y){return y.replaceSelection(`
`,"start")},toggleOverwrite:function(y){return y.toggleOverwrite()}};function jl(y,b){var de=cn(y.doc,b),ce=jn(de);return ce!=de&&(b=Rt(ce)),Al(!0,y,ce,b,1)}function gu(y,b){var de=cn(y.doc,b),ce=tr(de);return ce!=de&&(b=Rt(ce)),Al(!0,y,de,b,-1)}function Dl(y,b){var de=jl(y,b.line),ce=cn(y.doc,de.line),xe=ut(ce,y.doc.direction);if(!xe||xe[0].level==0){var ze=Math.max(de.ch,ce.text.search(/\S/)),tt=b.line==de.line&&b.ch<=ze&&b.ch;return Tt(de.line,tt?0:ze,de.sticky)}return de}function Us(y,b,de){if(typeof b=="string"&&(b=ss[b],!b))return!1;y.display.input.ensurePolled();var ce=y.display.shift,xe=!1;try{y.isReadOnly()&&(y.state.suppressEdits=!0),de&&(y.display.shift=!1),xe=b(y)!=et}finally{y.display.shift=ce,y.state.suppressEdits=!1}return xe}function yu(y,b,de){for(var ce=0;ce<y.state.keyMaps.length;ce++){var xe=Ps(b,y.state.keyMaps[ce],de,y);if(xe)return xe}return y.options.extraKeys&&Ps(b,y.options.extraKeys,de,y)||Ps(b,y.options.keyMap,de,y)}var bu=new Ke;function Ks(y,b,de,ce){var xe=y.state.keySeq;if(xe){if(Il(b))return"handled";if(/\'$/.test(b)?y.state.keySeq=null:bu.set(50,function(){y.state.keySeq==xe&&(y.state.keySeq=null,y.display.input.reset())}),kl(y,xe+" "+b,de,ce))return!0}return kl(y,b,de,ce)}function kl(y,b,de,ce){var xe=yu(y,b,ce);return xe=="multi"&&(y.state.keySeq=b),xe=="handled"&&Ri(y,"keyHandled",y,b,de),(xe=="handled"||xe=="multi")&&(It(de),wl(y)),!!xe}function Gs(y,b){var de=vs(b,!0);return de?b.shiftKey&&!y.state.keySeq?Ks(y,"Shift-"+de,b,function(ce){return Us(y,ce,!0)})||Ks(y,de,b,function(ce){if(typeof ce=="string"?/^go[A-Z]/.test(ce):ce.motion)return Us(y,ce)}):Ks(y,de,b,function(ce){return Us(y,ce)}):!1}function Ml(y,b,de){return Ks(y,"'"+de+"'",b,function(ce){return Us(y,ce,!0)})}var Vs=null;function Rl(y){var b=this;if(!(y.target&&y.target!=b.display.input.getField())&&(b.curOp.focus=Ae(),!pt(b,y))){ge&&x<11&&y.keyCode==27&&(y.returnValue=!1);var de=y.keyCode;b.display.shift=de==16||y.shiftKey;var ce=Gs(b,y);ee&&(Vs=ce?de:null,!ce&&de==88&&!un&&(he?y.metaKey:y.ctrlKey)&&b.replaceSelection("",null,"cut")),le&&!he&&!ce&&de==46&&y.shiftKey&&!y.ctrlKey&&document.execCommand&&document.execCommand("cut"),de==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&ql(b)}}function ql(y){var b=y.display.lineDiv;Pe(b,"CodeMirror-crosshair");function de(ce){(ce.keyCode==18||!ce.altKey)&&(Be(b,"CodeMirror-crosshair"),Bt(document,"keyup",de),Bt(document,"mouseover",de))}Pt(document,"keyup",de),Pt(document,"mouseover",de)}function Nl(y){y.keyCode==16&&(this.doc.sel.shift=!1),pt(this,y)}function Bl(y){var b=this;if(!(y.target&&y.target!=b.display.input.getField())&&!(Yo(b.display,y)||pt(b,y)||y.ctrlKey&&!y.altKey||he&&y.metaKey)){var de=y.keyCode,ce=y.charCode;if(ee&&de==Vs){Vs=null,It(y);return}if(!(ee&&(!y.which||y.which<10)&&Gs(b,y))){var xe=String.fromCharCode(ce==null?de:ce);xe!="\b"&&(Ml(b,y,xe)||b.display.input.onKeyPress(y))}}}var xu=400,dl=function(y,b,de){this.time=y,this.pos=b,this.button=de};dl.prototype.compare=function(y,b,de){return this.time+xu>y&&_t(b,this.pos)==0&&de==this.button};var ys,As;function Ll(y,b){var de=+new Date;return As&&As.compare(de,y,b)?(ys=As=null,"triple"):ys&&ys.compare(de,y,b)?(As=new dl(de,y,b),ys=null,"double"):(ys=new dl(de,y,b),As=null,"single")}function Fl(y){var b=this,de=b.display;if(!(pt(b,y)||de.activeTouch&&de.input.supportsTouch())){if(de.input.ensurePolled(),de.shift=y.shiftKey,Yo(de,y)){z||(de.scroller.draggable=!1,setTimeout(function(){return de.scroller.draggable=!0},100));return}if(!Qa(b,y)){var ce=Ja(b,y),xe=Ht(y),ze=ce?Ll(ce,xe):"single";window.focus(),xe==1&&b.state.selectingText&&b.state.selectingText(y),!(ce&&wu(b,xe,ce,ze,y))&&(xe==1?ce?Gi(b,ce,ze,y):jt(y)==de.scroller&&It(y):xe==2?(ce&&Di(b.doc,ce),setTimeout(function(){return de.input.focus()},20)):xe==3&&(je?b.display.input.onContextMenu(y):Hl(b)))}}}function wu(y,b,de,ce,xe){var ze="Click";return ce=="double"?ze="Double"+ze:ce=="triple"&&(ze="Triple"+ze),ze=(b==1?"Left":b==2?"Middle":"Right")+ze,Ks(y,Hs(ze,xe),xe,function(tt){if(typeof tt=="string"&&(tt=ss[tt]),!tt)return!1;var dt=!1;try{y.isReadOnly()&&(y.state.suppressEdits=!0),dt=tt(y,de)!=et}finally{y.state.suppressEdits=!1}return dt})}function Wi(y,b,de){var ce=y.getOption("configureMouse"),xe=ce?ce(y,b,de):{};if(xe.unit==null){var ze=me?de.shiftKey&&de.metaKey:de.altKey;xe.unit=ze?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(xe.extend==null||y.doc.extend)&&(xe.extend=y.doc.extend||de.shiftKey),xe.addNew==null&&(xe.addNew=he?de.metaKey:de.ctrlKey),xe.moveOnDrag==null&&(xe.moveOnDrag=!(he?de.altKey:de.ctrlKey)),xe}function Gi(y,b,de,ce){ge?setTimeout(Je(ou,y),0):y.curOp.focus=Ae();var xe=Wi(y,de,ce),ze=y.doc.sel,tt;y.options.dragDrop&&Qt&&!y.isReadOnly()&&de=="single"&&(tt=ze.contains(b))>-1&&(_t((tt=ze.ranges[tt]).from(),b)<0||b.xRel>0)&&(_t(tt.to(),b)>0||b.xRel<0)?ta(y,ce,b,xe):na(y,ce,b,xe)}function ta(y,b,de,ce){var xe=y.display,ze=!1,tt=Jo(y,function(Ct){z&&(xe.scroller.draggable=!1),y.state.draggingText=!1,Bt(xe.wrapper.ownerDocument,"mouseup",tt),Bt(xe.wrapper.ownerDocument,"mousemove",dt),Bt(xe.scroller,"dragstart",gt),Bt(xe.scroller,"drop",tt),ze||(It(Ct),ce.addNew||Di(y.doc,de,null,null,ce.extend),z&&!ue||ge&&x==9?setTimeout(function(){xe.wrapper.ownerDocument.body.focus({preventScroll:!0}),xe.input.focus()},20):xe.input.focus())}),dt=function(Ct){ze=ze||Math.abs(b.clientX-Ct.clientX)+Math.abs(b.clientY-Ct.clientY)>=10},gt=function(){return ze=!0};z&&(xe.scroller.draggable=!0),y.state.draggingText=tt,tt.copy=!ce.moveOnDrag,xe.scroller.dragDrop&&xe.scroller.dragDrop(),Pt(xe.wrapper.ownerDocument,"mouseup",tt),Pt(xe.wrapper.ownerDocument,"mousemove",dt),Pt(xe.scroller,"dragstart",gt),Pt(xe.scroller,"drop",tt),Hl(y),setTimeout(function(){return xe.input.focus()},20)}function Ta(y,b,de){if(de=="char")return new vn(b,b);if(de=="word")return y.findWordAt(b);if(de=="line")return new vn(Tt(b.line,0),$t(y.doc,Tt(b.line+1,0)));var ce=de(y,b);return new vn(ce.from,ce.to)}function na(y,b,de,ce){var xe=y.display,ze=y.doc;It(b);var tt,dt,gt=ze.sel,Ct=gt.ranges;if(ce.addNew&&!ce.extend?(dt=ze.sel.contains(de),dt>-1?tt=Ct[dt]:tt=new vn(de,de)):(tt=ze.sel.primary(),dt=ze.sel.primIndex),ce.unit=="rectangle")ce.addNew||(tt=new vn(de,de)),de=Ja(y,b,!0,!0),dt=-1;else{var Vt=Ta(y,de,ce.unit);ce.extend?tt=Ai(tt,Vt.anchor,Vt.head,ce.extend):tt=Vt}ce.addNew?dt==-1?(dt=Ct.length,kr(ze,or(y,Ct.concat([tt]),dt),{scroll:!1,origin:"*mouse"})):Ct.length>1&&Ct[dt].empty()&&ce.unit=="char"&&!ce.extend?(kr(ze,or(y,Ct.slice(0,dt).concat(Ct.slice(dt+1)),0),{scroll:!1,origin:"*mouse"}),gt=ze.sel):Mo(ze,dt,tt,Ye):(dt=0,kr(ze,new yn([tt],0),Ye),gt=ze.sel);var qt=de;function xn(jr){if(_t(qt,jr)!=0)if(qt=jr,ce.unit=="rectangle"){for(var Vr=[],vi=y.options.tabSize,li=_e(cn(ze,de.line).text,de.ch,vi),Fi=_e(cn(ze,jr.line).text,jr.ch,vi),bo=Math.min(li,Fi),ra=Math.max(li,Fi),No=Math.min(de.line,jr.line),Ra=Math.min(y.lastLine(),Math.max(de.line,jr.line));No<=Ra;No++){var Oa=cn(ze,No).text,Vo=it(Oa,bo,vi);bo==ra?Vr.push(new vn(Tt(No,Vo),Tt(No,Vo))):Oa.length>Vo&&Vr.push(new vn(Tt(No,Vo),Tt(No,it(Oa,ra,vi))))}Vr.length||Vr.push(new vn(de,de)),kr(ze,or(y,gt.ranges.slice(0,dt).concat(Vr),dt),{origin:"*mouse",scroll:!1}),y.scrollIntoView(jr)}else{var Ia=tt,fa=Ta(y,jr,ce.unit),qo=Ia.anchor,Xo;_t(fa.anchor,qo)>0?(Xo=fa.head,qo=Yt(Ia.from(),fa.anchor)):(Xo=fa.anchor,qo=Kt(Ia.to(),fa.head));var Fo=gt.ranges.slice(0);Fo[dt]=js(y,new vn($t(ze,qo),Xo)),kr(ze,or(y,Fo,dt),Ye)}}var pn=xe.wrapper.getBoundingClientRect(),Zn=0;function nr(jr){var Vr=++Zn,vi=Ja(y,jr,!0,ce.unit=="rectangle");if(vi)if(_t(vi,qt)!=0){y.curOp.focus=Ae(),xn(vi);var li=os(xe,ze);(vi.line>=li.to||vi.line<li.from)&&setTimeout(Jo(y,function(){Zn==Vr&&nr(jr)}),150)}else{var Fi=jr.clientY<pn.top?-20:jr.clientY>pn.bottom?20:0;Fi&&setTimeout(Jo(y,function(){Zn==Vr&&(xe.scroller.scrollTop+=Fi,nr(jr))}),50)}}function vr(jr){y.state.selectingText=!1,Zn=1/0,jr&&(It(jr),xe.input.focus()),Bt(xe.wrapper.ownerDocument,"mousemove",Ar),Bt(xe.wrapper.ownerDocument,"mouseup",_r),ze.history.lastSelOrigin=null}var Ar=Jo(y,function(jr){jr.buttons===0||!Ht(jr)?vr(jr):nr(jr)}),_r=Jo(y,vr);y.state.selectingText=_r,Pt(xe.wrapper.ownerDocument,"mousemove",Ar),Pt(xe.wrapper.ownerDocument,"mouseup",_r)}function js(y,b){var de=b.anchor,ce=b.head,xe=cn(y.doc,de.line);if(_t(de,ce)==0&&de.sticky==ce.sticky)return b;var ze=ut(xe);if(!ze)return b;var tt=lt(ze,de.ch,de.sticky),dt=ze[tt];if(dt.from!=de.ch&&dt.to!=de.ch)return b;var gt=tt+(dt.from==de.ch==(dt.level!=1)?0:1);if(gt==0||gt==ze.length)return b;var Ct;if(ce.line!=de.line)Ct=(ce.line-de.line)*(y.doc.direction=="ltr"?1:-1)>0;else{var Vt=lt(ze,ce.ch,ce.sticky),qt=Vt-tt||(ce.ch-de.ch)*(dt.level==1?-1:1);Vt==gt-1||Vt==gt?Ct=qt<0:Ct=qt>0}var xn=ze[gt+(Ct?-1:0)],pn=Ct==(xn.level==1),Zn=pn?xn.from:xn.to,nr=pn?"after":"before";return de.ch==Zn&&de.sticky==nr?b:new vn(new Tt(de.line,Zn,nr),ce)}function ls(y,b,de,ce){var xe,ze;if(b.touches)xe=b.touches[0].clientX,ze=b.touches[0].clientY;else try{xe=b.clientX,ze=b.clientY}catch(xn){return!1}if(xe>=Math.floor(y.display.gutters.getBoundingClientRect().right))return!1;ce&&It(b);var tt=y.display,dt=tt.lineDiv.getBoundingClientRect();if(ze>dt.bottom||!kt(y,de))return en(b);ze-=dt.top-tt.viewOffset;for(var gt=0;gt<y.display.gutterSpecs.length;++gt){var Ct=tt.gutters.childNodes[gt];if(Ct&&Ct.getBoundingClientRect().right>=xe){var Vt=Xt(y.doc,ze),qt=y.display.gutterSpecs[gt];return At(y,de,y,Vt,qt.className,b),en(b)}}}function Qa(y,b){return ls(y,b,"gutterClick",!0)}function Ds(y,b){Yo(y.display,b)||_l(y,b)||pt(y,b,"contextmenu")||je||y.display.input.onContextMenu(b)}function _l(y,b){return kt(y,"gutterContextMenu")?ls(y,b,"gutterContextMenu",!1):!1}function Mu(y){y.display.wrapper.className=y.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+y.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fs(y)}var fl={toString:function(){return"CodeMirror.Init"}},Ru={},eu={};function Zu(y){var b=y.optionHandlers;function de(ce,xe,ze,tt){y.defaults[ce]=xe,ze&&(b[ce]=tt?function(dt,gt,Ct){Ct!=fl&&ze(dt,gt,Ct)}:ze)}y.defineOption=de,y.Init=fl,de("value","",function(ce,xe){return ce.setValue(xe)},!0),de("mode",null,function(ce,xe){ce.doc.modeOption=xe,Rr(ce)},!0),de("indentUnit",2,Rr,!0),de("indentWithTabs",!1),de("smartIndent",!0),de("tabSize",4,function(ce){Dr(ce),fs(ce),la(ce)},!0),de("lineSeparator",null,function(ce,xe){if(ce.doc.lineSep=xe,!!xe){var ze=[],tt=ce.doc.first;ce.doc.iter(function(gt){for(var Ct=0;;){var Vt=gt.text.indexOf(xe,Ct);if(Vt==-1)break;Ct=Vt+xe.length,ze.push(Tt(tt,Vt))}tt++});for(var dt=ze.length-1;dt>=0;dt--)$i(ce.doc,xe,ze[dt],Tt(ze[dt].line,ze[dt].ch+xe.length))}}),de("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ce,xe,ze){ce.state.specialChars=new RegExp(xe.source+(xe.test(" ")?"":"| "),"g"),ze!=fl&&ce.refresh()}),de("specialCharPlaceholder",vo,function(ce){return ce.refresh()},!0),de("electricChars",!0),de("inputStyle",ae?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),de("spellcheck",!1,function(ce,xe){return ce.getInputField().spellcheck=xe},!0),de("autocorrect",!1,function(ce,xe){return ce.getInputField().autocorrect=xe},!0),de("autocapitalize",!1,function(ce,xe){return ce.getInputField().autocapitalize=xe},!0),de("rtlMoveVisually",!ve),de("wholeLineUpdateBefore",!0),de("theme","default",function(ce){Mu(ce),an(ce)},!0),de("keyMap","default",function(ce,xe,ze){var tt=ul(xe),dt=ze!=fl&&ul(ze);dt&&dt.detach&&dt.detach(ce,tt),tt.attach&&tt.attach(ce,dt||null)}),de("extraKeys",null),de("configureMouse",null),de("lineWrapping",!1,Uu,!0),de("gutters",[],function(ce,xe){ce.display.gutterSpecs=Gt(xe,ce.options.lineNumbers),an(ce)},!0),de("fixedGutter",!0,function(ce,xe){ce.display.gutters.style.left=xe?yl(ce.display)+"px":"0",ce.refresh()},!0),de("coverGutterNextToScrollbar",!1,function(ce){return zs(ce)},!0),de("scrollbarStyle","native",function(ce){Yl(ce),zs(ce),ce.display.scrollbars.setScrollTop(ce.doc.scrollTop),ce.display.scrollbars.setScrollLeft(ce.doc.scrollLeft)},!0),de("lineNumbers",!1,function(ce,xe){ce.display.gutterSpecs=Gt(ce.options.gutters,xe),an(ce)},!0),de("firstLineNumber",1,an,!0),de("lineNumberFormatter",function(ce){return ce},an,!0),de("showCursorWhenSelecting",!1,ps,!0),de("resetSelectionOnContextMenu",!0),de("lineWiseCopyCut",!0),de("pasteLinesPerSelection",!0),de("selectionsMayTouch",!1),de("readOnly",!1,function(ce,xe){xe=="nocursor"&&(Cs(ce),ce.display.input.blur()),ce.display.input.readOnlyChanged(xe)}),de("screenReaderLabel",null,function(ce,xe){xe=xe===""?null:xe,ce.display.input.screenReaderLabelChanged(xe)}),de("disableInput",!1,function(ce,xe){xe||ce.display.input.reset()},!0),de("dragDrop",!0,Hu),de("allowDropFileTypes",null),de("cursorBlinkRate",530),de("cursorScrollMargin",0),de("cursorHeight",1,ps,!0),de("singleCursorHeightPerLine",!0,ps,!0),de("workTime",100),de("workDelay",100),de("flattenSpans",!0,Dr,!0),de("addModeClass",!1,Dr,!0),de("pollInterval",100),de("undoDepth",200,function(ce,xe){return ce.doc.history.undoDepth=xe}),de("historyEventDelay",1250),de("viewportMargin",10,function(ce){return ce.refresh()},!0),de("maxHighlightLength",1e4,Dr,!0),de("moveInputWithCursor",!0,function(ce,xe){xe||ce.display.input.resetPosition()}),de("tabindex",null,function(ce,xe){return ce.display.input.getField().tabIndex=xe||""}),de("autofocus",null),de("direction","ltr",function(ce,xe){return ce.doc.setDirection(xe)},!0),de("phrases",null)}function Hu(y,b,de){var ce=de&&de!=fl;if(!b!=!ce){var xe=y.display.dragFunctions,ze=b?Pt:Bt;ze(y.display.scroller,"dragstart",xe.start),ze(y.display.scroller,"dragenter",xe.enter),ze(y.display.scroller,"dragover",xe.over),ze(y.display.scroller,"dragleave",xe.leave),ze(y.display.scroller,"drop",xe.drop)}}function Uu(y){y.options.lineWrapping?(Pe(y.display.wrapper,"CodeMirror-wrap"),y.display.sizer.style.minWidth="",y.display.sizerWidth=null):(Be(y.display.wrapper,"CodeMirror-wrap"),ci(y)),ws(y),la(y),fs(y),setTimeout(function(){return zs(y)},100)}function Po(y,b){var de=this;if(!(this instanceof Po))return new Po(y,b);this.options=b=b?st(b):{},st(Ru,b,!1);var ce=b.value;typeof ce=="string"?ce=new so(ce,b.mode,null,b.lineSeparator,b.direction):b.mode&&(ce.modeOption=b.mode),this.doc=ce;var xe=new Po.inputStyles[b.inputStyle](this),ze=this.display=new rn(y,ce,xe,b);ze.wrapper.CodeMirror=this,Mu(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 Ke,keySeq:null,specialChars:null},b.autofocus&&!ae&&ze.input.focus(),ge&&x<11&&setTimeout(function(){return de.display.input.reset(!0)},20),Ku(this),ll(),ms(this),this.curOp.forceUpdate=!0,ai(this,ce),b.autofocus&&!ae||this.hasFocus()?setTimeout(function(){de.hasFocus()&&!de.state.focused&&Ul(de)},20):Cs(this);for(var tt in eu)eu.hasOwnProperty(tt)&&eu[tt](this,b[tt],fl);Nt(this),b.finishInit&&b.finishInit(this);for(var dt=0;dt<Cu.length;++dt)Cu[dt](this);Is(this),z&&b.lineWrapping&&getComputedStyle(ze.lineDiv).textRendering=="optimizelegibility"&&(ze.lineDiv.style.textRendering="auto")}Po.defaults=Ru,Po.optionHandlers=eu;function Ku(y){var b=y.display;Pt(b.scroller,"mousedown",Jo(y,Fl)),ge&&x<11?Pt(b.scroller,"dblclick",Jo(y,function(gt){if(!pt(y,gt)){var Ct=Ja(y,gt);if(!(!Ct||Qa(y,gt)||Yo(y.display,gt))){It(gt);var Vt=y.findWordAt(Ct);Di(y.doc,Vt.anchor,Vt.head)}}})):Pt(b.scroller,"dblclick",function(gt){return pt(y,gt)||It(gt)}),Pt(b.scroller,"contextmenu",function(gt){return Ds(y,gt)}),Pt(b.input.getField(),"contextmenu",function(gt){b.scroller.contains(gt.target)||Ds(y,gt)});var de,ce={end:0};function xe(){b.activeTouch&&(de=setTimeout(function(){return b.activeTouch=null},1e3),ce=b.activeTouch,ce.end=+new Date)}function ze(gt){if(gt.touches.length!=1)return!1;var Ct=gt.touches[0];return Ct.radiusX<=1&&Ct.radiusY<=1}function tt(gt,Ct){if(Ct.left==null)return!0;var Vt=Ct.left-gt.left,qt=Ct.top-gt.top;return Vt*Vt+qt*qt>20*20}Pt(b.scroller,"touchstart",function(gt){if(!pt(y,gt)&&!ze(gt)&&!Qa(y,gt)){b.input.ensurePolled(),clearTimeout(de);var Ct=+new Date;b.activeTouch={start:Ct,moved:!1,prev:Ct-ce.end<=300?ce:null},gt.touches.length==1&&(b.activeTouch.left=gt.touches[0].pageX,b.activeTouch.top=gt.touches[0].pageY)}}),Pt(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),Pt(b.scroller,"touchend",function(gt){var Ct=b.activeTouch;if(Ct&&!Yo(b,gt)&&Ct.left!=null&&!Ct.moved&&new Date-Ct.start<300){var Vt=y.coordsChar(b.activeTouch,"page"),qt;!Ct.prev||tt(Ct,Ct.prev)?qt=new vn(Vt,Vt):!Ct.prev.prev||tt(Ct,Ct.prev.prev)?qt=y.findWordAt(Vt):qt=new vn(Tt(Vt.line,0),$t(y.doc,Tt(Vt.line+1,0))),y.setSelection(qt.anchor,qt.head),y.focus(),It(gt)}xe()}),Pt(b.scroller,"touchcancel",xe),Pt(b.scroller,"scroll",function(){b.scroller.clientHeight&&(rl(y,b.scroller.scrollTop),Ts(y,b.scroller.scrollLeft,!0),At(y,"scroll",y))}),Pt(b.scroller,"mousewheel",function(gt){return En(y,gt)}),Pt(b.scroller,"DOMMouseScroll",function(gt){return En(y,gt)}),Pt(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(gt){pt(y,gt)||St(gt)},over:function(gt){pt(y,gt)||(Xa(y,gt),St(gt))},start:function(gt){return Va(y,gt)},drop:Jo(y,as),leave:function(gt){pt(y,gt)||ol(y)}};var dt=b.input.getField();Pt(dt,"keyup",function(gt){return Nl.call(y,gt)}),Pt(dt,"keydown",Jo(y,Rl)),Pt(dt,"keypress",Jo(y,Bl)),Pt(dt,"focus",function(gt){return Ul(y,gt)}),Pt(dt,"blur",function(gt){return Cs(y,gt)})}var Cu=[];Po.defineInitHook=function(y){return Cu.push(y)};function $l(y,b,de,ce){var xe=y.doc,ze;de==null&&(de="add"),de=="smart"&&(xe.mode.indent?ze=ar(y,b).state:de="prev");var tt=y.options.tabSize,dt=cn(xe,b),gt=_e(dt.text,null,tt);dt.stateAfter&&(dt.stateAfter=null);var Ct=dt.text.match(/^\s*/)[0],Vt;if(!ce&&!/\S/.test(dt.text))Vt=0,de="not";else if(de=="smart"&&(Vt=xe.mode.indent(ze,dt.text.slice(Ct.length),dt.text),Vt==et||Vt>150)){if(!ce)return;de="prev"}de=="prev"?b>xe.first?Vt=_e(cn(xe,b-1).text,null,tt):Vt=0:de=="add"?Vt=gt+y.options.indentUnit:de=="subtract"?Vt=gt-y.options.indentUnit:typeof de=="number"&&(Vt=gt+de),Vt=Math.max(0,Vt);var qt="",xn=0;if(y.options.indentWithTabs)for(var pn=Math.floor(Vt/tt);pn;--pn)xn+=tt,qt+=" ";if(xn<Vt&&(qt+=vt(Vt-xn)),qt!=Ct)return $i(xe,qt,Tt(b,0),Tt(b,Ct.length),"+input"),dt.stateAfter=null,!0;for(var Zn=0;Zn<xe.sel.ranges.length;Zn++){var nr=xe.sel.ranges[Zn];if(nr.head.line==b&&nr.head.ch<Ct.length){var vr=Tt(b,Ct.length);Mo(xe,Zn,new vn(vr,vr));break}}}var qa=null;function tu(y){qa=y}function Su(y,b,de,ce,xe){var ze=y.doc;y.display.shift=!1,ce||(ce=ze.sel);var tt=+new Date-200,dt=xe=="paste"||y.state.pasteIncoming>tt,gt=gn(b),Ct=null;if(dt&&ce.ranges.length>1)if(qa&&qa.text.join(`
`)==b){if(ce.ranges.length%qa.text.length==0){Ct=[];for(var Vt=0;Vt<qa.text.length;Vt++)Ct.push(ze.splitLines(qa.text[Vt]))}}else gt.length==ce.ranges.length&&y.options.pasteLinesPerSelection&&(Ct=Qe(gt,function(Ar){return[Ar]}));for(var qt=y.curOp.updateInput,xn=ce.ranges.length-1;xn>=0;xn--){var pn=ce.ranges[xn],Zn=pn.from(),nr=pn.to();pn.empty()&&(de&&de>0?Zn=Tt(Zn.line,Zn.ch-de):y.state.overwrite&&!dt?nr=Tt(nr.line,Math.min(cn(ze,nr.line).text.length,nr.ch+ot(gt).length)):dt&&qa&&qa.lineWise&&qa.text.join(`
`)==gt.join(`
`)&&(Zn=nr=Tt(Zn.line,0)));var vr={from:Zn,to:nr,text:Ct?Ct[xn%Ct.length]:gt,origin:xe||(dt?"paste":y.state.cutIncoming>tt?"cut":"+input")};eo(y.doc,vr),Ri(y,"inputRead",y,vr)}b&&!dt&&Bu(y,b),Es(y),y.curOp.updateInput<2&&(y.curOp.updateInput=qt),y.curOp.typing=!0,y.state.pasteIncoming=y.state.cutIncoming=-1}function Nu(y,b){var de=y.clipboardData&&y.clipboardData.getData("Text");if(de)return y.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&ma(b,function(){return Su(b,de,0,null,"paste")}),!0}function Bu(y,b){if(!(!y.options.electricChars||!y.options.smartIndent))for(var de=y.doc.sel,ce=de.ranges.length-1;ce>=0;ce--){var xe=de.ranges[ce];if(!(xe.head.ch>100||ce&&de.ranges[ce-1].head.line==xe.head.line)){var ze=y.getModeAt(xe.head),tt=!1;if(ze.electricChars){for(var dt=0;dt<ze.electricChars.length;dt++)if(b.indexOf(ze.electricChars.charAt(dt))>-1){tt=$l(y,xe.head.line,"smart");break}}else ze.electricInput&&ze.electricInput.test(cn(y.doc,xe.head.line).text.slice(0,xe.head.ch))&&(tt=$l(y,xe.head.line,"smart"));tt&&Ri(y,"electricInput",y,xe.head.line)}}}function Lu(y){for(var b=[],de=[],ce=0;ce<y.doc.sel.ranges.length;ce++){var xe=y.doc.sel.ranges[ce].head.line,ze={anchor:Tt(xe,0),head:Tt(xe+1,0)};de.push(ze),b.push(y.getRange(ze.anchor,ze.head))}return{text:b,ranges:de}}function Fu(y,b,de,ce){y.setAttribute("autocorrect",de?"":"off"),y.setAttribute("autocapitalize",ce?"":"off"),y.setAttribute("spellcheck",!!b)}function _u(){var y=Ee("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=Ee("div",[y],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return z?y.style.width="1000px":y.setAttribute("wrap","off"),te&&(y.style.border="1px solid black"),Fu(y),b}function Gu(y){var b=y.optionHandlers,de=y.helpers={};y.prototype={constructor:y,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ce,xe){var ze=this.options,tt=ze[ce];ze[ce]==xe&&ce!="mode"||(ze[ce]=xe,b.hasOwnProperty(ce)&&Jo(this,b[ce])(this,xe,tt),At(this,"optionChange",this,ce))},getOption:function(ce){return this.options[ce]},getDoc:function(){return this.doc},addKeyMap:function(ce,xe){this.state.keyMaps[xe?"push":"unshift"](ul(ce))},removeKeyMap:function(ce){for(var xe=this.state.keyMaps,ze=0;ze<xe.length;++ze)if(xe[ze]==ce||xe[ze].name==ce)return xe.splice(ze,1),!0},addOverlay:ua(function(ce,xe){var ze=ce.token?ce:y.getMode(this.options,ce);if(ze.startState)throw new Error("Overlays may not be stateful.");Fe(this.state.overlays,{mode:ze,modeSpec:ce,opaque:xe&&xe.opaque,priority:xe&&xe.priority||0},function(tt){return tt.priority}),this.state.modeGen++,la(this)}),removeOverlay:ua(function(ce){for(var xe=this.state.overlays,ze=0;ze<xe.length;++ze){var tt=xe[ze].modeSpec;if(tt==ce||typeof ce=="string"&&tt.name==ce){xe.splice(ze,1),this.state.modeGen++,la(this);return}}}),indentLine:ua(function(ce,xe,ze){typeof xe!="string"&&typeof xe!="number"&&(xe==null?xe=this.options.smartIndent?"smart":"prev":xe=xe?"add":"subtract"),Et(this.doc,ce)&&$l(this,ce,xe,ze)}),indentSelection:ua(function(ce){for(var xe=this.doc.sel.ranges,ze=-1,tt=0;tt<xe.length;tt++){var dt=xe[tt];if(dt.empty())dt.head.line>ze&&($l(this,dt.head.line,ce,!0),ze=dt.head.line,tt==this.doc.sel.primIndex&&Es(this));else{var gt=dt.from(),Ct=dt.to(),Vt=Math.max(ze,gt.line);ze=Math.min(this.lastLine(),Ct.line-(Ct.ch?0:1))+1;for(var qt=Vt;qt<ze;++qt)$l(this,qt,ce);var xn=this.doc.sel.ranges;gt.ch==0&&xe.length==xn.length&&xn[tt].from().ch>0&&Mo(this.doc,tt,new vn(gt,xn[tt].to()),Ve)}}}),getTokenAt:function(ce,xe){return dr(this,ce,xe)},getLineTokens:function(ce,xe){return dr(this,Tt(ce),xe,!0)},getTokenTypeAt:function(ce){ce=$t(this.doc,ce);var xe=er(this,cn(this.doc,ce.line)),ze=0,tt=(xe.length-1)/2,dt=ce.ch,gt;if(dt==0)gt=xe[2];else for(;;){var Ct=ze+tt>>1;if((Ct?xe[Ct*2-1]:0)>=dt)tt=Ct;else if(xe[Ct*2+1]<dt)ze=Ct+1;else{gt=xe[Ct*2+2];break}}var Vt=gt?gt.indexOf("overlay "):-1;return Vt<0?gt:Vt==0?null:gt.slice(0,Vt-1)},getModeAt:function(ce){var xe=this.doc.mode;return xe.innerMode?y.innerMode(xe,this.getTokenAt(ce).state).mode:xe},getHelper:function(ce,xe){return this.getHelpers(ce,xe)[0]},getHelpers:function(ce,xe){var ze=[];if(!de.hasOwnProperty(xe))return ze;var tt=de[xe],dt=this.getModeAt(ce);if(typeof dt[xe]=="string")tt[dt[xe]]&&ze.push(tt[dt[xe]]);else if(dt[xe])for(var gt=0;gt<dt[xe].length;gt++){var Ct=tt[dt[xe][gt]];Ct&&ze.push(Ct)}else dt.helperType&&tt[dt.helperType]?ze.push(tt[dt.helperType]):tt[dt.name]&&ze.push(tt[dt.name]);for(var Vt=0;Vt<tt._global.length;Vt++){var qt=tt._global[Vt];qt.pred(dt,this)&&nt(ze,qt.val)==-1&&ze.push(qt.val)}return ze},getStateAfter:function(ce,xe){var ze=this.doc;return ce=Ft(ze,ce==null?ze.first+ze.size-1:ce),ar(this,ce+1,xe).state},cursorCoords:function(ce,xe){var ze,tt=this.doc.sel.primary();return ce==null?ze=tt.head:typeof ce=="object"?ze=$t(this.doc,ce):ze=ce?tt.from():tt.to(),aa(this,ze,xe||"page")},charCoords:function(ce,xe){return ns(this,$t(this.doc,ce),xe||"page")},coordsChar:function(ce,xe){return ce=tl(this,ce,xe||"page"),Ho(this,ce.left,ce.top)},lineAtHeight:function(ce,xe){return ce=tl(this,{top:ce,left:0},xe||"page").top,Xt(this.doc,ce+this.display.viewOffset)},heightAtLine:function(ce,xe,ze){var tt=!1,dt;if(typeof ce=="number"){var gt=this.doc.first+this.doc.size-1;ce<this.doc.first?ce=this.doc.first:ce>gt&&(ce=gt,tt=!0),dt=cn(this.doc,ce)}else dt=ce;return Bs(this,dt,{top:0,left:0},xe||"page",ze||tt).top+(tt?this.doc.height-Gr(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(ce,xe,ze,tt,dt){var gt=this.display;ce=aa(this,$t(this.doc,ce));var Ct=ce.bottom,Vt=ce.left;if(xe.style.position="absolute",xe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(xe),gt.sizer.appendChild(xe),tt=="over")Ct=ce.top;else if(tt=="above"||tt=="near"){var qt=Math.max(gt.wrapper.clientHeight,this.doc.height),xn=Math.max(gt.sizer.clientWidth,gt.lineSpace.clientWidth);(tt=="above"||ce.bottom+xe.offsetHeight>qt)&&ce.top>xe.offsetHeight?Ct=ce.top-xe.offsetHeight:ce.bottom+xe.offsetHeight<=qt&&(Ct=ce.bottom),Vt+xe.offsetWidth>xn&&(Vt=xn-xe.offsetWidth)}xe.style.top=Ct+"px",xe.style.left=xe.style.right="",dt=="right"?(Vt=gt.sizer.clientWidth-xe.offsetWidth,xe.style.right="0px"):(dt=="left"?Vt=0:dt=="middle"&&(Vt=(gt.sizer.clientWidth-xe.offsetWidth)/2),xe.style.left=Vt+"px"),ze&&Pu(this,{left:Vt,top:Ct,right:Vt+xe.offsetWidth,bottom:Ct+xe.offsetHeight})},triggerOnKeyDown:ua(Rl),triggerOnKeyPress:ua(Bl),triggerOnKeyUp:Nl,triggerOnMouseDown:ua(Fl),execCommand:function(ce){if(ss.hasOwnProperty(ce))return ss[ce].call(null,this)},triggerElectric:ua(function(ce){Bu(this,ce)}),findPosH:function(ce,xe,ze,tt){var dt=1;xe<0&&(dt=-1,xe=-xe);for(var gt=$t(this.doc,ce),Ct=0;Ct<xe&&(gt=Eu(this.doc,gt,dt,ze,tt),!gt.hitSide);++Ct);return gt},moveH:ua(function(ce,xe){var ze=this;this.extendSelectionsBy(function(tt){return ze.display.shift||ze.doc.extend||tt.empty()?Eu(ze.doc,tt.head,ce,xe,ze.options.rtlMoveVisually):ce<0?tt.from():tt.to()},Ge)}),deleteH:ua(function(ce,xe){var ze=this.doc.sel,tt=this.doc;ze.somethingSelected()?tt.replaceSelection("",null,"+delete"):gs(this,function(dt){var gt=Eu(tt,dt.head,ce,xe,!1);return ce<0?{from:gt,to:dt.head}:{from:dt.head,to:gt}})}),findPosV:function(ce,xe,ze,tt){var dt=1,gt=tt;xe<0&&(dt=-1,xe=-xe);for(var Ct=$t(this.doc,ce),Vt=0;Vt<xe;++Vt){var qt=aa(this,Ct,"div");if(gt==null?gt=qt.left:qt.left=gt,Ct=$u(this,qt,dt,ze),Ct.hitSide)break}return Ct},moveV:ua(function(ce,xe){var ze=this,tt=this.doc,dt=[],gt=!this.display.shift&&!tt.extend&&tt.sel.somethingSelected();if(tt.extendSelectionsBy(function(Vt){if(gt)return ce<0?Vt.from():Vt.to();var qt=aa(ze,Vt.head,"div");Vt.goalColumn!=null&&(qt.left=Vt.goalColumn),dt.push(qt.left);var xn=$u(ze,qt,ce,xe);return xe=="page"&&Vt==tt.sel.primary()&&Kl(ze,ns(ze,xn,"div").top-qt.top),xn},Ge),dt.length)for(var Ct=0;Ct<tt.sel.ranges.length;Ct++)tt.sel.ranges[Ct].goalColumn=dt[Ct]}),findWordAt:function(ce){var xe=this.doc,ze=cn(xe,ce.line).text,tt=ce.ch,dt=ce.ch;if(ze){var gt=this.getHelper(ce,"wordChars");(ce.sticky=="before"||dt==ze.length)&&tt?--tt:++dt;for(var Ct=ze.charAt(tt),Vt=We(Ct,gt)?function(qt){return We(qt,gt)}:/\s/.test(Ct)?function(qt){return/\s/.test(qt)}:function(qt){return!/\s/.test(qt)&&!We(qt)};tt>0&&Vt(ze.charAt(tt-1));)--tt;for(;dt<ze.length&&Vt(ze.charAt(dt));)++dt}return new vn(Tt(ce.line,tt),Tt(ce.line,dt))},toggleOverwrite:function(ce){ce!=null&&ce==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Pe(this.display.cursorDiv,"CodeMirror-overwrite"):Be(this.display.cursorDiv,"CodeMirror-overwrite"),At(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ae()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ua(function(ce,xe){nl(this,ce,xe)}),getScrollInfo:function(){var ce=this.display.scroller;return{left:ce.scrollLeft,top:ce.scrollTop,height:ce.scrollHeight-pa(this)-this.display.barHeight,width:ce.scrollWidth-pa(this)-this.display.barWidth,clientHeight:Ya(this),clientWidth:$a(this)}},scrollIntoView:ua(function(ce,xe){ce==null?(ce={from:this.doc.sel.primary().head,to:null},xe==null&&(xe=this.options.cursorScrollMargin)):typeof ce=="number"?ce={from:Tt(ce,0),to:null}:ce.from==null&&(ce={from:ce,to:null}),ce.to||(ce.to=ce.from),ce.margin=xe||0,ce.from.line!=null?lu(this,ce):Gl(this,ce.from,ce.to,ce.margin)}),setSize:ua(function(ce,xe){var ze=this,tt=function(gt){return typeof gt=="number"||/^\d+$/.test(String(gt))?gt+"px":gt};ce!=null&&(this.display.wrapper.style.width=tt(ce)),xe!=null&&(this.display.wrapper.style.height=tt(xe)),this.options.lineWrapping&&Wa(this);var dt=this.display.viewFrom;this.doc.iter(dt,this.display.viewTo,function(gt){if(gt.widgets){for(var Ct=0;Ct<gt.widgets.length;Ct++)if(gt.widgets[Ct].noHScroll){is(ze,dt,"widget");break}}++dt}),this.curOp.forceUpdate=!0,At(this,"refresh",this)}),operation:function(ce){return ma(this,ce)},startOperation:function(){return ms(this)},endOperation:function(){return Is(this)},refresh:ua(function(){var ce=this.display.cachedTextHeight;la(this),this.curOp.forceUpdate=!0,fs(this),nl(this,this.doc.scrollLeft,this.doc.scrollTop),ht(this.display),(ce==null||Math.abs(ce-wa(this.display))>.5||this.options.lineWrapping)&&ws(this),At(this,"refresh",this)}),swapDoc:ua(function(ce){var xe=this.doc;return xe.cm=null,this.state.selectingText&&this.state.selectingText(),ai(this,ce),fs(this),this.display.input.reset(),nl(this,ce.scrollLeft,ce.scrollTop),this.curOp.forceScroll=!0,Ri(this,"swapDoc",this,xe),xe}),phrase:function(ce){var xe=this.options.phrases;return xe&&Object.prototype.hasOwnProperty.call(xe,ce)?xe[ce]:ce},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}},xt(y),y.registerHelper=function(ce,xe,ze){de.hasOwnProperty(ce)||(de[ce]=y[ce]={_global:[]}),de[ce][xe]=ze},y.registerGlobalHelper=function(ce,xe,ze,tt){y.registerHelper(ce,xe,tt),de[ce]._global.push({pred:ze,val:tt})}}function Eu(y,b,de,ce,xe){var ze=b,tt=de,dt=cn(y,b.line),gt=xe&&y.direction=="rtl"?-de:de;function Ct(){var _r=b.line+gt;return _r<y.first||_r>=y.first+y.size?!1:(b=new Tt(_r,b.ch,b.sticky),dt=cn(y,_r))}function Vt(_r){var jr;if(ce=="codepoint"){var Vr=dt.text.charCodeAt(b.ch+(ce>0?0:-1));isNaN(Vr)?jr=null:jr=new Tt(b.line,Math.max(0,Math.min(dt.text.length,b.ch+de*(Vr>=55296&&Vr<56320?2:1))),-de)}else xe?jr=Ql(y.cm,dt,b,de):jr=cl(dt,b,de);if(jr==null)if(!_r&&Ct())b=Al(xe,y.cm,dt,b.line,gt);else return!1;else b=jr;return!0}if(ce=="char"||ce=="codepoint")Vt();else if(ce=="column")Vt(!0);else if(ce=="word"||ce=="group")for(var qt=null,xn=ce=="group",pn=y.cm&&y.cm.getHelper(b,"wordChars"),Zn=!0;!(de<0&&!Vt(!Zn));Zn=!1){var nr=dt.text.charAt(b.ch)||`
`,vr=We(nr,pn)?"w":xn&&nr==`
`?"n":!xn||/\s/.test(nr)?null:"p";if(xn&&!Zn&&!vr&&(vr="s"),qt&&qt!=vr){de<0&&(de=1,Vt(),b.sticky="after");break}if(vr&&(qt=vr),de>0&&!Vt(!Zn))break}var Ar=Bo(y,b,ze,tt,!0);return bt(ze,Ar)&&(Ar.hitSide=!0),Ar}function $u(y,b,de,ce){var xe=y.doc,ze=b.left,tt;if(ce=="page"){var dt=Math.min(y.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),gt=Math.max(dt-.5*wa(y.display),3);tt=(de>0?b.bottom:b.top)+de*gt}else ce=="line"&&(tt=de>0?b.bottom+3:b.top-3);for(var Ct;Ct=Ho(y,ze,tt),!!Ct.outside;){if(de<0?tt<=0:tt>=xe.height){Ct.hitSide=!0;break}tt+=de*5}return Ct}var co=function(y){this.cm=y,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ke,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};co.prototype.init=function(y){var b=this,de=this,ce=de.cm,xe=de.div=y.lineDiv;Fu(xe,ce.options.spellcheck,ce.options.autocorrect,ce.options.autocapitalize);function ze(dt){for(var gt=dt.target;gt;gt=gt.parentNode){if(gt==xe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(gt.className))break}return!1}Pt(xe,"paste",function(dt){!ze(dt)||pt(ce,dt)||Nu(dt,ce)||x<=11&&setTimeout(Jo(ce,function(){return b.updateFromDOM()}),20)}),Pt(xe,"compositionstart",function(dt){b.composing={data:dt.data,done:!1}}),Pt(xe,"compositionupdate",function(dt){b.composing||(b.composing={data:dt.data,done:!1})}),Pt(xe,"compositionend",function(dt){b.composing&&(dt.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),Pt(xe,"touchstart",function(){return de.forceCompositionEnd()}),Pt(xe,"input",function(){b.composing||b.readFromDOMSoon()});function tt(dt){if(!(!ze(dt)||pt(ce,dt))){if(ce.somethingSelected())tu({lineWise:!1,text:ce.getSelections()}),dt.type=="cut"&&ce.replaceSelection("",null,"cut");else if(ce.options.lineWiseCopyCut){var gt=Lu(ce);tu({lineWise:!0,text:gt.text}),dt.type=="cut"&&ce.operation(function(){ce.setSelections(gt.ranges,0,Ve),ce.replaceSelection("",null,"cut")})}else return;if(dt.clipboardData){dt.clipboardData.clearData();var Ct=qa.text.join(`
`);if(dt.clipboardData.setData("Text",Ct),dt.clipboardData.getData("Text")==Ct){dt.preventDefault();return}}var Vt=_u(),qt=Vt.firstChild;ce.display.lineSpace.insertBefore(Vt,ce.display.lineSpace.firstChild),qt.value=qa.text.join(`
`);var xn=document.activeElement;He(qt),setTimeout(function(){ce.display.lineSpace.removeChild(Vt),xn.focus(),xn==xe&&de.showPrimarySelection()},50)}}Pt(xe,"copy",tt),Pt(xe,"cut",tt)},co.prototype.screenReaderLabelChanged=function(y){y?this.div.setAttribute("aria-label",y):this.div.removeAttribute("aria-label")},co.prototype.prepareSelection=function(){var y=iu(this.cm,!1);return y.focus=document.activeElement==this.div,y},co.prototype.showSelection=function(y,b){!y||!this.cm.display.view.length||((y.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(y))},co.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},co.prototype.showPrimarySelection=function(){var y=this.getSelection(),b=this.cm,de=b.doc.sel.primary(),ce=de.from(),xe=de.to();if(b.display.viewTo==b.display.viewFrom||ce.line>=b.display.viewTo||xe.line<b.display.viewFrom){y.removeAllRanges();return}var ze=nu(b,y.anchorNode,y.anchorOffset),tt=nu(b,y.focusNode,y.focusOffset);if(!(ze&&!ze.bad&&tt&&!tt.bad&&_t(Yt(ze,tt),ce)==0&&_t(Kt(ze,tt),xe)==0)){var dt=b.display.view,gt=ce.line>=b.display.viewFrom&&zu(b,ce)||{node:dt[0].measure.map[2],offset:0},Ct=xe.line<b.display.viewTo&&zu(b,xe);if(!Ct){var Vt=dt[dt.length-1].measure,qt=Vt.maps?Vt.maps[Vt.maps.length-1]:Vt.map;Ct={node:qt[qt.length-1],offset:qt[qt.length-2]-qt[qt.length-3]}}if(!gt||!Ct){y.removeAllRanges();return}var xn=y.rangeCount&&y.getRangeAt(0),pn;try{pn=Me(gt.node,gt.offset,Ct.offset,Ct.node)}catch(Zn){}pn&&(!le&&b.state.focused?(y.collapse(gt.node,gt.offset),pn.collapsed||(y.removeAllRanges(),y.addRange(pn))):(y.removeAllRanges(),y.addRange(pn)),xn&&y.anchorNode==null?y.addRange(xn):le&&this.startGracePeriod()),this.rememberSelection()}},co.prototype.startGracePeriod=function(){var y=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){y.gracePeriod=!1,y.selectionChanged()&&y.cm.operation(function(){return y.cm.curOp.selectionChanged=!0})},20)},co.prototype.showMultipleSelections=function(y){Se(this.cm.display.cursorDiv,y.cursors),Se(this.cm.display.selectionDiv,y.selection)},co.prototype.rememberSelection=function(){var y=this.getSelection();this.lastAnchorNode=y.anchorNode,this.lastAnchorOffset=y.anchorOffset,this.lastFocusNode=y.focusNode,this.lastFocusOffset=y.focusOffset},co.prototype.selectionInEditor=function(){var y=this.getSelection();if(!y.rangeCount)return!1;var b=y.getRangeAt(0).commonAncestorContainer;return Le(this.div,b)},co.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},co.prototype.blur=function(){this.div.blur()},co.prototype.getField=function(){return this.div},co.prototype.supportsTouch=function(){return!0},co.prototype.receivedFocus=function(){var y=this;this.selectionInEditor()?this.pollSelection():ma(this.cm,function(){return y.cm.curOp.selectionChanged=!0});function b(){y.cm.state.focused&&(y.pollSelection(),y.polling.set(y.cm.options.pollInterval,b))}this.polling.set(this.cm.options.pollInterval,b)},co.prototype.selectionChanged=function(){var y=this.getSelection();return y.anchorNode!=this.lastAnchorNode||y.anchorOffset!=this.lastAnchorOffset||y.focusNode!=this.lastFocusNode||y.focusOffset!=this.lastFocusOffset},co.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var y=this.getSelection(),b=this.cm;if(se&&oe&&this.cm.display.gutterSpecs.length&&Vu(y.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var de=nu(b,y.anchorNode,y.anchorOffset),ce=nu(b,y.focusNode,y.focusOffset);de&&ce&&ma(b,function(){kr(b.doc,zn(de,ce),Ve),(de.bad||ce.bad)&&(b.curOp.selectionChanged=!0)})}}},co.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var y=this.cm,b=y.display,de=y.doc.sel.primary(),ce=de.from(),xe=de.to();if(ce.ch==0&&ce.line>y.firstLine()&&(ce=Tt(ce.line-1,cn(y.doc,ce.line-1).length)),xe.ch==cn(y.doc,xe.line).text.length&&xe.line<y.lastLine()&&(xe=Tt(xe.line+1,0)),ce.line<b.viewFrom||xe.line>b.viewTo-1)return!1;var ze,tt,dt;ce.line==b.viewFrom||(ze=Ha(y,ce.line))==0?(tt=Rt(b.view[0].line),dt=b.view[0].node):(tt=Rt(b.view[ze].line),dt=b.view[ze-1].node.nextSibling);var gt=Ha(y,xe.line),Ct,Vt;if(gt==b.view.length-1?(Ct=b.viewTo-1,Vt=b.lineDiv.lastChild):(Ct=Rt(b.view[gt+1].line)-1,Vt=b.view[gt+1].node.previousSibling),!dt)return!1;for(var qt=y.doc.splitLines(Xu(y,dt,Vt,tt,Ct)),xn=An(y.doc,Tt(tt,0),Tt(Ct,cn(y.doc,Ct).text.length));qt.length>1&&xn.length>1;)if(ot(qt)==ot(xn))qt.pop(),xn.pop(),Ct--;else if(qt[0]==xn[0])qt.shift(),xn.shift(),tt++;else break;for(var pn=0,Zn=0,nr=qt[0],vr=xn[0],Ar=Math.min(nr.length,vr.length);pn<Ar&&nr.charCodeAt(pn)==vr.charCodeAt(pn);)++pn;for(var _r=ot(qt),jr=ot(xn),Vr=Math.min(_r.length-(qt.length==1?pn:0),jr.length-(xn.length==1?pn:0));Zn<Vr&&_r.charCodeAt(_r.length-Zn-1)==jr.charCodeAt(jr.length-Zn-1);)++Zn;if(qt.length==1&&xn.length==1&&tt==ce.line)for(;pn&&pn>ce.ch&&_r.charCodeAt(_r.length-Zn-1)==jr.charCodeAt(jr.length-Zn-1);)pn--,Zn++;qt[qt.length-1]=_r.slice(0,_r.length-Zn).replace(/^\u200b+/,""),qt[0]=qt[0].slice(pn).replace(/\u200b+$/,"");var vi=Tt(tt,pn),li=Tt(Ct,xn.length?ot(xn).length-Zn:0);if(qt.length>1||qt[0]||_t(vi,li))return $i(y.doc,qt,vi,li,"+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 y=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(y.readDOMTimeout=null,y.composing)if(y.composing.done)y.composing=null;else return;y.updateFromDOM()},80))},co.prototype.updateFromDOM=function(){var y=this;(this.cm.isReadOnly()||!this.pollContent())&&ma(this.cm,function(){return la(y.cm)})},co.prototype.setUneditable=function(y){y.contentEditable="false"},co.prototype.onKeyPress=function(y){y.charCode==0||this.composing||(y.preventDefault(),this.cm.isReadOnly()||Jo(this.cm,Su)(this.cm,String.fromCharCode(y.charCode==null?y.keyCode:y.charCode),0))},co.prototype.readOnlyChanged=function(y){this.div.contentEditable=String(y!="nocursor")},co.prototype.onContextMenu=function(){},co.prototype.resetPosition=function(){},co.prototype.needsContentAttribute=!0;function zu(y,b){var de=za(y,b.line);if(!de||de.hidden)return null;var ce=cn(y.doc,b.line),xe=ds(de,ce,b.line),ze=ut(ce,y.doc.direction),tt="left";if(ze){var dt=lt(ze,b.ch);tt=dt%2?"right":"left"}var gt=Ms(xe.map,b.ch,tt);return gt.offset=gt.collapse=="right"?gt.end:gt.start,gt}function Vu(y){for(var b=y;b;b=b.parentNode)if(/CodeMirror-gutter-wrapper/.test(b.className))return!0;return!1}function hl(y,b){return b&&(y.bad=!0),y}function Xu(y,b,de,ce,xe){var ze="",tt=!1,dt=y.doc.lineSeparator(),gt=!1;function Ct(pn){return function(Zn){return Zn.id==pn}}function Vt(){tt&&(ze+=dt,gt&&(ze+=dt),tt=gt=!1)}function qt(pn){pn&&(Vt(),ze+=pn)}function xn(pn){if(pn.nodeType==1){var Zn=pn.getAttribute("cm-text");if(Zn){qt(Zn);return}var nr=pn.getAttribute("cm-marker"),vr;if(nr){var Ar=y.findMarks(Tt(ce,0),Tt(xe+1,0),Ct(+nr));Ar.length&&(vr=Ar[0].find(0))&&qt(An(y.doc,vr.from,vr.to).join(dt));return}if(pn.getAttribute("contenteditable")=="false")return;var _r=/^(pre|div|p|li|table|br)$/i.test(pn.nodeName);if(!/^br$/i.test(pn.nodeName)&&pn.textContent.length==0)return;_r&&Vt();for(var jr=0;jr<pn.childNodes.length;jr++)xn(pn.childNodes[jr]);/^(pre|p)$/i.test(pn.nodeName)&&(gt=!0),_r&&(tt=!0)}else pn.nodeType==3&&qt(pn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;xn(b),b!=de;)b=b.nextSibling,gt=!1;return ze}function nu(y,b,de){var ce;if(b==y.display.lineDiv){if(ce=y.display.lineDiv.childNodes[de],!ce)return hl(y.clipPos(Tt(y.display.viewTo-1)),!0);b=null,de=0}else for(ce=b;;ce=ce.parentNode){if(!ce||ce==y.display.lineDiv)return null;if(ce.parentNode&&ce.parentNode==y.display.lineDiv)break}for(var xe=0;xe<y.display.view.length;xe++){var ze=y.display.view[xe];if(ze.node==ce)return Yu(ze,b,de)}}function Yu(y,b,de){var ce=y.text.firstChild,xe=!1;if(!b||!Le(ce,b))return hl(Tt(Rt(y.line),0),!0);if(b==ce&&(xe=!0,b=ce.childNodes[de],de=0,!b)){var ze=y.rest?ot(y.rest):y.line;return hl(Tt(Rt(ze),ze.text.length),xe)}var tt=b.nodeType==3?b:null,dt=b;for(!tt&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(tt=b.firstChild,de&&(de=tt.nodeValue.length));dt.parentNode!=ce;)dt=dt.parentNode;var gt=y.measure,Ct=gt.maps;function Vt(vr,Ar,_r){for(var jr=-1;jr<(Ct?Ct.length:0);jr++)for(var Vr=jr<0?gt.map:Ct[jr],vi=0;vi<Vr.length;vi+=3){var li=Vr[vi+2];if(li==vr||li==Ar){var Fi=Rt(jr<0?y.line:y.rest[jr]),bo=Vr[vi]+_r;return(_r<0||li!=vr)&&(bo=Vr[vi+(_r?1:0)]),Tt(Fi,bo)}}}var qt=Vt(tt,dt,de);if(qt)return hl(qt,xe);for(var xn=dt.nextSibling,pn=tt?tt.nodeValue.length-de:0;xn;xn=xn.nextSibling){if(qt=Vt(xn,xn.firstChild,0),qt)return hl(Tt(qt.line,qt.ch-pn),xe);pn+=xn.textContent.length}for(var Zn=dt.previousSibling,nr=de;Zn;Zn=Zn.previousSibling){if(qt=Vt(Zn,Zn.firstChild,-1),qt)return hl(Tt(qt.line,qt.ch+nr),xe);nr+=Zn.textContent.length}}var Wo=function(y){this.cm=y,this.prevInput="",this.pollingFast=!1,this.polling=new Ke,this.hasSelection=!1,this.composing=null};Wo.prototype.init=function(y){var b=this,de=this,ce=this.cm;this.createField(y);var xe=this.textarea;y.wrapper.insertBefore(this.wrapper,y.wrapper.firstChild),te&&(xe.style.width="0px"),Pt(xe,"input",function(){ge&&x>=9&&b.hasSelection&&(b.hasSelection=null),de.poll()}),Pt(xe,"paste",function(tt){pt(ce,tt)||Nu(tt,ce)||(ce.state.pasteIncoming=+new Date,de.fastPoll())});function ze(tt){if(!pt(ce,tt)){if(ce.somethingSelected())tu({lineWise:!1,text:ce.getSelections()});else if(ce.options.lineWiseCopyCut){var dt=Lu(ce);tu({lineWise:!0,text:dt.text}),tt.type=="cut"?ce.setSelections(dt.ranges,null,Ve):(de.prevInput="",xe.value=dt.text.join(`
`),He(xe))}else return;tt.type=="cut"&&(ce.state.cutIncoming=+new Date)}}Pt(xe,"cut",ze),Pt(xe,"copy",ze),Pt(y.scroller,"paste",function(tt){if(!(Yo(y,tt)||pt(ce,tt))){if(!xe.dispatchEvent){ce.state.pasteIncoming=+new Date,de.focus();return}var dt=new Event("paste");dt.clipboardData=tt.clipboardData,xe.dispatchEvent(dt)}}),Pt(y.lineSpace,"selectstart",function(tt){Yo(y,tt)||It(tt)}),Pt(xe,"compositionstart",function(){var tt=ce.getCursor("from");de.composing&&de.composing.range.clear(),de.composing={start:tt,range:ce.markText(tt,ce.getCursor("to"),{className:"CodeMirror-composing"})}}),Pt(xe,"compositionend",function(){de.composing&&(de.poll(),de.composing.range.clear(),de.composing=null)})},Wo.prototype.createField=function(y){this.wrapper=_u(),this.textarea=this.wrapper.firstChild},Wo.prototype.screenReaderLabelChanged=function(y){y?this.textarea.setAttribute("aria-label",y):this.textarea.removeAttribute("aria-label")},Wo.prototype.prepareSelection=function(){var y=this.cm,b=y.display,de=y.doc,ce=iu(y);if(y.options.moveInputWithCursor){var xe=aa(y,de.sel.primary().head,"div"),ze=b.wrapper.getBoundingClientRect(),tt=b.lineDiv.getBoundingClientRect();ce.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,xe.top+tt.top-ze.top)),ce.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,xe.left+tt.left-ze.left))}return ce},Wo.prototype.showSelection=function(y){var b=this.cm,de=b.display;Se(de.cursorDiv,y.cursors),Se(de.selectionDiv,y.selection),y.teTop!=null&&(this.wrapper.style.top=y.teTop+"px",this.wrapper.style.left=y.teLeft+"px")},Wo.prototype.reset=function(y){if(!(this.contextMenuPending||this.composing)){var b=this.cm;if(b.somethingSelected()){this.prevInput="";var de=b.getSelection();this.textarea.value=de,b.state.focused&&He(this.textarea),ge&&x>=9&&(this.hasSelection=de)}else y||(this.prevInput=this.textarea.value="",ge&&x>=9&&(this.hasSelection=null))}},Wo.prototype.getField=function(){return this.textarea},Wo.prototype.supportsTouch=function(){return!1},Wo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ae||Ae()!=this.textarea))try{this.textarea.focus()}catch(y){}},Wo.prototype.blur=function(){this.textarea.blur()},Wo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wo.prototype.receivedFocus=function(){this.slowPoll()},Wo.prototype.slowPoll=function(){var y=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){y.poll(),y.cm.state.focused&&y.slowPoll()})},Wo.prototype.fastPoll=function(){var y=!1,b=this;b.pollingFast=!0;function de(){var ce=b.poll();!ce&&!y?(y=!0,b.polling.set(60,de)):(b.pollingFast=!1,b.slowPoll())}b.polling.set(20,de)},Wo.prototype.poll=function(){var y=this,b=this.cm,de=this.textarea,ce=this.prevInput;if(this.contextMenuPending||!b.state.focused||Dn(de)&&!ce&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var xe=de.value;if(xe==ce&&!b.somethingSelected())return!1;if(ge&&x>=9&&this.hasSelection===xe||he&&/[\uf700-\uf7ff]/.test(xe))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var ze=xe.charCodeAt(0);if(ze==8203&&!ce&&(ce="\u200B"),ze==8666)return this.reset(),this.cm.execCommand("undo")}for(var tt=0,dt=Math.min(ce.length,xe.length);tt<dt&&ce.charCodeAt(tt)==xe.charCodeAt(tt);)++tt;return ma(b,function(){Su(b,xe.slice(tt),ce.length-tt,null,y.composing?"*compose":null),xe.length>1e3||xe.indexOf(`
`)>-1?de.value=y.prevInput="":y.prevInput=xe,y.composing&&(y.composing.range.clear(),y.composing.range=b.markText(y.composing.start,b.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Wo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wo.prototype.onKeyPress=function(){ge&&x>=9&&(this.hasSelection=null),this.fastPoll()},Wo.prototype.onContextMenu=function(y){var b=this,de=b.cm,ce=de.display,xe=b.textarea;b.contextMenuPending&&b.contextMenuPending();var ze=Ja(de,y),tt=ce.scroller.scrollTop;if(!ze||ee)return;var dt=de.options.resetSelectionOnContextMenu;dt&&de.doc.sel.contains(ze)==-1&&Jo(de,kr)(de.doc,zn(ze),Ve);var gt=xe.style.cssText,Ct=b.wrapper.style.cssText,Vt=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",xe.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(y.clientY-Vt.top-5)+"px; left: "+(y.clientX-Vt.left-5)+`px;
z-index: 1000; background: `+(ge?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var qt;z&&(qt=window.scrollY),ce.input.focus(),z&&window.scrollTo(null,qt),ce.input.reset(),de.somethingSelected()||(xe.value=b.prevInput=" "),b.contextMenuPending=pn,ce.selForContextMenu=de.doc.sel,clearTimeout(ce.detectingSelectAll);function xn(){if(xe.selectionStart!=null){var nr=de.somethingSelected(),vr="\u200B"+(nr?xe.value:"");xe.value="\u21DA",xe.value=vr,b.prevInput=nr?"":"\u200B",xe.selectionStart=1,xe.selectionEnd=vr.length,ce.selForContextMenu=de.doc.sel}}function pn(){if(b.contextMenuPending==pn&&(b.contextMenuPending=!1,b.wrapper.style.cssText=Ct,xe.style.cssText=gt,ge&&x<9&&ce.scrollbars.setScrollTop(ce.scroller.scrollTop=tt),xe.selectionStart!=null)){(!ge||ge&&x<9)&&xn();var nr=0,vr=function(){ce.selForContextMenu==de.doc.sel&&xe.selectionStart==0&&xe.selectionEnd>0&&b.prevInput=="\u200B"?Jo(de,ni)(de):nr++<10?ce.detectingSelectAll=setTimeout(vr,500):(ce.selForContextMenu=null,ce.input.reset())};ce.detectingSelectAll=setTimeout(vr,200)}}if(ge&&x>=9&&xn(),je){St(y);var Zn=function(){Bt(window,"mouseup",Zn),setTimeout(pn,20)};Pt(window,"mouseup",Zn)}else setTimeout(pn,50)},Wo.prototype.readOnlyChanged=function(y){y||this.reset(),this.textarea.disabled=y=="nocursor",this.textarea.readOnly=!!y},Wo.prototype.setUneditable=function(){},Wo.prototype.needsContentAttribute=!1;function Ju(y,b){if(b=b?st(b):{},b.value=y.value,!b.tabindex&&y.tabIndex&&(b.tabindex=y.tabIndex),!b.placeholder&&y.placeholder&&(b.placeholder=y.placeholder),b.autofocus==null){var de=Ae();b.autofocus=de==y||y.getAttribute("autofocus")!=null&&de==document.body}function ce(){y.value=dt.getValue()}var xe;if(y.form&&(Pt(y.form,"submit",ce),!b.leaveSubmitMethodAlone)){var ze=y.form;xe=ze.submit;try{var tt=ze.submit=function(){ce(),ze.submit=xe,ze.submit(),ze.submit=tt}}catch(gt){}}b.finishInit=function(gt){gt.save=ce,gt.getTextArea=function(){return y},gt.toTextArea=function(){gt.toTextArea=isNaN,ce(),y.parentNode.removeChild(gt.getWrapperElement()),y.style.display="",y.form&&(Bt(y.form,"submit",ce),!b.leaveSubmitMethodAlone&&typeof y.form.submit=="function"&&(y.form.submit=xe))}},y.style.display="none";var dt=Po(function(gt){return y.parentNode.insertBefore(gt,y.nextSibling)},b);return dt}function Qu(y){y.off=Bt,y.on=Pt,y.wheelEventPixels=On,y.Doc=so,y.splitLines=gn,y.countColumn=_e,y.findColumn=it,y.isWordChar=Ne,y.Pass=et,y.signal=At,y.Line=ji,y.changeEnd=sr,y.scrollbarModel=uu,y.Pos=Tt,y.cmpPos=_t,y.modes=nn,y.mimeModes=tn,y.resolveMode=Pn,y.getMode=Hn,y.modeExtensions=Gn,y.extendMode=_n,y.copyState=Yn,y.startState=yr,y.innerMode=Wn,y.commands=ss,y.keyMap=zo,y.keyName=vs,y.isModifierKey=Il,y.lookupKey=Ps,y.normalizeKeyMap=ea,y.StringStream=cr,y.SharedTextMarker=ao,y.TextMarker=ga,y.LineWidget=Xi,y.e_preventDefault=It,y.e_stopPropagation=Ut,y.e_stop=St,y.addClass=Pe,y.contains=Le,y.rmClass=Be,y.keyNames=Bi}Zu(Po),Gu(Po);var qu="iter insert remove copy getEditor constructor".split(" ");for(var ru in so.prototype)so.prototype.hasOwnProperty(ru)&&nt(qu,ru)<0&&(Po.prototype[ru]=function(y){return function(){return y.apply(this.doc,arguments)}}(so.prototype[ru]));return xt(so),Po.inputStyles={textarea:Wo,contenteditable:co},Po.defineMode=function(y){!Po.defaults.mode&&y!="null"&&(Po.defaults.mode=y),dn.apply(this,arguments)},Po.defineMIME=Cn,Po.defineMode("null",function(){return{token:function(y){return y.skipToEnd()}}}),Po.defineMIME("text/plain","null"),Po.defineExtension=function(y,b){Po.prototype[y]=b},Po.defineDocExtension=function(y,b){so.prototype[y]=b},Po.fromTextArea=Ju,Qu(Po),Po.version="5.58.2",Po})},25419:function(on,Lt,Ce){(function(le){le(Ce(89780),Ce(15525),Ce(98101))})(function(le){"use strict";le.defineMode("markdown",function(yt,a){var Te=le.getMode(yt,"text/html"),ge=Te.name=="null";function x(_e){if(le.findModeByName){var Ke=le.findModeByName(_e);Ke&&(_e=Ke.mime||Ke.mimes[0])}var nt=le.getMode(yt,_e);return nt.name=="null"?null:nt}a.highlightFormatting===void 0&&(a.highlightFormatting=!1),a.maxBlockquoteDepth===void 0&&(a.maxBlockquoteDepth=0),a.taskLists===void 0&&(a.taskLists=!1),a.strikethrough===void 0&&(a.strikethrough=!1),a.emoji===void 0&&(a.emoji=!1),a.fencedCodeBlockHighlighting===void 0&&(a.fencedCodeBlockHighlighting=!0),a.fencedCodeBlockDefaultMode===void 0&&(a.fencedCodeBlockDefaultMode="text/plain"),a.xml===void 0&&(a.xml=!0),a.tokenTypeOverrides===void 0&&(a.tokenTypeOverrides={});var z={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var ie in z)z.hasOwnProperty(ie)&&a.tokenTypeOverrides[ie]&&(z[ie]=a.tokenTypeOverrides[ie]);var oe=/^([*\-_])(?:\s*\1){2,}\s*$/,ee=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,ue=/^\[(x| )\](?=\s)/i,E=a.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,re=/^ {0,3}(?:\={1,}|-{2,})\s*$/,te=/^[^#!\[\]*_\\<>` "'(~:]+/,se=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ae=/^\s*\[[^\]]+?\]:.*$/,he=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,me=" ";function ve(_e,Ke,nt){return Ke.f=Ke.inline=nt,nt(_e,Ke)}function pe(_e,Ke,nt){return Ke.f=Ke.block=nt,nt(_e,Ke)}function be(_e){return!_e||!/\S/.test(_e.string)}function je(_e){if(_e.linkTitle=!1,_e.linkHref=!1,_e.linkText=!1,_e.em=!1,_e.strong=!1,_e.strikethrough=!1,_e.quote=0,_e.indentedCode=!1,_e.f==Be){var Ke=ge;if(!Ke){var nt=le.innerMode(Te,_e.htmlState);Ke=nt.mode.name=="xml"&&nt.state.tagStart===null&&!nt.state.context&&nt.state.tokenize.isInText}Ke&&(_e.f=Ie,_e.block=ke,_e.htmlState=null)}return _e.trailingSpace=0,_e.trailingSpaceNewLine=!1,_e.prevLine=_e.thisLine,_e.thisLine={stream:null},null}function ke(_e,Ke){var nt=_e.column()===Ke.indentation,rt=be(Ke.prevLine.stream),et=Ke.indentedCode,Ve=Ke.prevLine.hr,Ye=Ke.list!==!1,Ge=(Ke.listStack[Ke.listStack.length-1]||0)+3;Ke.indentedCode=!1;var it=Ke.indentation;if(Ke.indentationDiff===null&&(Ke.indentationDiff=Ke.indentation,Ye)){for(Ke.list=null;it<Ke.listStack[Ke.listStack.length-1];)Ke.listStack.pop(),Ke.listStack.length?Ke.indentation=Ke.listStack[Ke.listStack.length-1]:Ke.list=!1;Ke.list!==!1&&(Ke.indentationDiff=it-Ke.listStack[Ke.listStack.length-1])}var qe=!rt&&!Ve&&!Ke.prevLine.header&&(!Ye||!et)&&!Ke.prevLine.fencedCodeEnd,vt=(Ke.list===!1||Ve||rt)&&Ke.indentation<=Ge&&_e.match(oe),ot=null;if(Ke.indentationDiff>=4&&(et||Ke.prevLine.fencedCodeEnd||Ke.prevLine.header||rt))return _e.skipToEnd(),Ke.indentedCode=!0,z.code;if(_e.eatSpace())return null;if(nt&&Ke.indentation<=Ge&&(ot=_e.match(E))&&ot[1].length<=6)return Ke.quote=0,Ke.header=ot[1].length,Ke.thisLine.header=!0,a.highlightFormatting&&(Ke.formatting="header"),Ke.f=Ke.inline,Se(Ke);if(Ke.indentation<=Ge&&_e.eat(">"))return Ke.quote=nt?1:Ke.quote+1,a.highlightFormatting&&(Ke.formatting="quote"),_e.eatSpace(),Se(Ke);if(!vt&&!Ke.setext&&nt&&Ke.indentation<=Ge&&(ot=_e.match(ee))){var Qe=ot[1]?"ol":"ul";return Ke.indentation=it+_e.current().length,Ke.list=!0,Ke.quote=0,Ke.listStack.push(Ke.indentation),Ke.em=!1,Ke.strong=!1,Ke.code=!1,Ke.strikethrough=!1,a.taskLists&&_e.match(ue,!1)&&(Ke.taskList=!0),Ke.f=Ke.inline,a.highlightFormatting&&(Ke.formatting=["list","list-"+Qe]),Se(Ke)}else{if(nt&&Ke.indentation<=Ge&&(ot=_e.match(se,!0)))return Ke.quote=0,Ke.fencedEndRE=new RegExp(ot[1]+"+ *$"),Ke.localMode=a.fencedCodeBlockHighlighting&&x(ot[2]||a.fencedCodeBlockDefaultMode),Ke.localMode&&(Ke.localState=le.startState(Ke.localMode)),Ke.f=Ke.block=De,a.highlightFormatting&&(Ke.formatting="code-block"),Ke.code=-1,Se(Ke);if(Ke.setext||(!qe||!Ye)&&!Ke.quote&&Ke.list===!1&&!Ke.code&&!vt&&!ae.test(_e.string)&&(ot=_e.lookAhead(1))&&(ot=ot.match(re)))return Ke.setext?(Ke.header=Ke.setext,Ke.setext=0,_e.skipToEnd(),a.highlightFormatting&&(Ke.formatting="header")):(Ke.header=ot[0].charAt(0)=="="?1:2,Ke.setext=Ke.header),Ke.thisLine.header=!0,Ke.f=Ke.inline,Se(Ke);if(vt)return _e.skipToEnd(),Ke.hr=!0,Ke.thisLine.hr=!0,z.hr;if(_e.peek()==="[")return ve(_e,Ke,Ue)}return ve(_e,Ke,Ke.inline)}function Be(_e,Ke){var nt=Te.token(_e,Ke.htmlState);if(!ge){var rt=le.innerMode(Te,Ke.htmlState);(rt.mode.name=="xml"&&rt.state.tagStart===null&&!rt.state.context&&rt.state.tokenize.isInText||Ke.md_inside&&_e.current().indexOf(">")>-1)&&(Ke.f=Ie,Ke.block=ke,Ke.htmlState=null)}return nt}function De(_e,Ke){var nt=Ke.listStack[Ke.listStack.length-1]||0,rt=Ke.indentation<nt,et=nt+3;if(Ke.fencedEndRE&&Ke.indentation<=et&&(rt||_e.match(Ke.fencedEndRE))){a.highlightFormatting&&(Ke.formatting="code-block");var Ve;return rt||(Ve=Se(Ke)),Ke.localMode=Ke.localState=null,Ke.block=ke,Ke.f=Ie,Ke.fencedEndRE=null,Ke.code=0,Ke.thisLine.fencedCodeEnd=!0,rt?pe(_e,Ke,Ke.block):Ve}else return Ke.localMode?Ke.localMode.token(_e,Ke.localState):(_e.skipToEnd(),z.code)}function Se(_e){var Ke=[];if(_e.formatting){Ke.push(z.formatting),typeof _e.formatting=="string"&&(_e.formatting=[_e.formatting]);for(var nt=0;nt<_e.formatting.length;nt++)Ke.push(z.formatting+"-"+_e.formatting[nt]),_e.formatting[nt]==="header"&&Ke.push(z.formatting+"-"+_e.formatting[nt]+"-"+_e.header),_e.formatting[nt]==="quote"&&(!a.maxBlockquoteDepth||a.maxBlockquoteDepth>=_e.quote?Ke.push(z.formatting+"-"+_e.formatting[nt]+"-"+_e.quote):Ke.push("error"))}if(_e.taskOpen)return Ke.push("meta"),Ke.length?Ke.join(" "):null;if(_e.taskClosed)return Ke.push("property"),Ke.length?Ke.join(" "):null;if(_e.linkHref?Ke.push(z.linkHref,"url"):(_e.strong&&Ke.push(z.strong),_e.em&&Ke.push(z.em),_e.strikethrough&&Ke.push(z.strikethrough),_e.emoji&&Ke.push(z.emoji),_e.linkText&&Ke.push(z.linkText),_e.code&&Ke.push(z.code),_e.image&&Ke.push(z.image),_e.imageAltText&&Ke.push(z.imageAltText,"link"),_e.imageMarker&&Ke.push(z.imageMarker)),_e.header&&Ke.push(z.header,z.header+"-"+_e.header),_e.quote&&(Ke.push(z.quote),!a.maxBlockquoteDepth||a.maxBlockquoteDepth>=_e.quote?Ke.push(z.quote+"-"+_e.quote):Ke.push(z.quote+"-"+a.maxBlockquoteDepth)),_e.list!==!1){var rt=(_e.listStack.length-1)%3;rt?rt===1?Ke.push(z.list2):Ke.push(z.list3):Ke.push(z.list1)}return _e.trailingSpaceNewLine?Ke.push("trailing-space-new-line"):_e.trailingSpace&&Ke.push("trailing-space-"+(_e.trailingSpace%2?"a":"b")),Ke.length?Ke.join(" "):null}function Ee(_e,Ke){if(_e.match(te,!0))return Se(Ke)}function Ie(_e,Ke){var nt=Ke.text(_e,Ke);if(typeof nt!="undefined")return nt;if(Ke.list)return Ke.list=null,Se(Ke);if(Ke.taskList){var rt=_e.match(ue,!0)[1]===" ";return rt?Ke.taskOpen=!0:Ke.taskClosed=!0,a.highlightFormatting&&(Ke.formatting="task"),Ke.taskList=!1,Se(Ke)}if(Ke.taskOpen=!1,Ke.taskClosed=!1,Ke.header&&_e.match(/^#+$/,!0))return a.highlightFormatting&&(Ke.formatting="header"),Se(Ke);var et=_e.next();if(Ke.linkTitle){Ke.linkTitle=!1;var Ve=et;et==="("&&(Ve=")"),Ve=(Ve+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ye="^\\s*(?:[^"+Ve+"\\\\]+|\\\\\\\\|\\\\.)"+Ve;if(_e.match(new RegExp(Ye),!0))return z.linkHref}if(et==="`"){var Ge=Ke.formatting;a.highlightFormatting&&(Ke.formatting="code"),_e.eatWhile("`");var it=_e.current().length;if(Ke.code==0&&(!Ke.quote||it==1))return Ke.code=it,Se(Ke);if(it==Ke.code){var qe=Se(Ke);return Ke.code=0,qe}else return Ke.formatting=Ge,Se(Ke)}else if(Ke.code)return Se(Ke);if(et==="\\"&&(_e.next(),a.highlightFormatting)){var vt=Se(Ke),ot=z.formatting+"-escape";return vt?vt+" "+ot:ot}if(et==="!"&&_e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ke.imageMarker=!0,Ke.image=!0,a.highlightFormatting&&(Ke.formatting="image"),Se(Ke);if(et==="["&&Ke.imageMarker&&_e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ke.imageMarker=!1,Ke.imageAltText=!0,a.highlightFormatting&&(Ke.formatting="image"),Se(Ke);if(et==="]"&&Ke.imageAltText){a.highlightFormatting&&(Ke.formatting="image");var vt=Se(Ke);return Ke.imageAltText=!1,Ke.image=!1,Ke.inline=Ke.f=Le,vt}if(et==="["&&!Ke.image)return Ke.linkText&&_e.match(/^.*?\]/)||(Ke.linkText=!0,a.highlightFormatting&&(Ke.formatting="link")),Se(Ke);if(et==="]"&&Ke.linkText){a.highlightFormatting&&(Ke.formatting="link");var vt=Se(Ke);return Ke.linkText=!1,Ke.inline=Ke.f=_e.match(/\(.*?\)| ?\[.*?\]/,!1)?Le:Ie,vt}if(et==="<"&&_e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ke.f=Ke.inline=Me,a.highlightFormatting&&(Ke.formatting="link");var vt=Se(Ke);return vt?vt+=" ":vt="",vt+z.linkInline}if(et==="<"&&_e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ke.f=Ke.inline=Me,a.highlightFormatting&&(Ke.formatting="link");var vt=Se(Ke);return vt?vt+=" ":vt="",vt+z.linkEmail}if(a.xml&&et==="<"&&_e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Qe=_e.string.indexOf(">",_e.pos);if(Qe!=-1){var Fe=_e.string.substring(_e.start,Qe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Fe)&&(Ke.md_inside=!0)}return _e.backUp(1),Ke.htmlState=le.startState(Te),pe(_e,Ke,Be)}if(a.xml&&et==="<"&&_e.match(/^\/\w*?>/))return Ke.md_inside=!1,"tag";if(et==="*"||et==="_"){for(var Re=1,ne=_e.pos==1?" ":_e.string.charAt(_e.pos-2);Re<3&&_e.eat(et);)Re++;var fe=_e.peek()||" ",Ne=!/\s/.test(fe)&&(!he.test(fe)||/\s/.test(ne)||he.test(ne)),We=!/\s/.test(ne)&&(!he.test(ne)||/\s/.test(fe)||he.test(fe)),we=null,ye=null;if(Re%2&&(!Ke.em&&Ne&&(et==="*"||!We||he.test(ne))?we=!0:Ke.em==et&&We&&(et==="*"||!Ne||he.test(fe))&&(we=!1)),Re>1&&(!Ke.strong&&Ne&&(et==="*"||!We||he.test(ne))?ye=!0:Ke.strong==et&&We&&(et==="*"||!Ne||he.test(fe))&&(ye=!1)),ye!=null||we!=null){a.highlightFormatting&&(Ke.formatting=we==null?"strong":ye==null?"em":"strong em"),we===!0&&(Ke.em=et),ye===!0&&(Ke.strong=et);var qe=Se(Ke);return we===!1&&(Ke.em=!1),ye===!1&&(Ke.strong=!1),qe}}else if(et===" "&&(_e.eat("*")||_e.eat("_"))){if(_e.peek()===" ")return Se(Ke);_e.backUp(1)}if(a.strikethrough){if(et==="~"&&_e.eatWhile(et)){if(Ke.strikethrough){a.highlightFormatting&&(Ke.formatting="strikethrough");var qe=Se(Ke);return Ke.strikethrough=!1,qe}else if(_e.match(/^[^\s]/,!1))return Ke.strikethrough=!0,a.highlightFormatting&&(Ke.formatting="strikethrough"),Se(Ke)}else if(et===" "&&_e.match(/^~~/,!0)){if(_e.peek()===" ")return Se(Ke);_e.backUp(2)}}if(a.emoji&&et===":"&&_e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ke.emoji=!0,a.highlightFormatting&&(Ke.formatting="emoji");var Oe=Se(Ke);return Ke.emoji=!1,Oe}return et===" "&&(_e.match(/^ +$/,!1)?Ke.trailingSpace++:Ke.trailingSpace&&(Ke.trailingSpaceNewLine=!0)),Se(Ke)}function Me(_e,Ke){var nt=_e.next();if(nt===">"){Ke.f=Ke.inline=Ie,a.highlightFormatting&&(Ke.formatting="link");var rt=Se(Ke);return rt?rt+=" ":rt="",rt+z.linkInline}return _e.match(/^[^>]+/,!0),z.linkInline}function Le(_e,Ke){if(_e.eatSpace())return null;var nt=_e.next();return nt==="("||nt==="["?(Ke.f=Ke.inline=Pe(nt==="("?")":"]"),a.highlightFormatting&&(Ke.formatting="link-string"),Ke.linkHref=!0,Se(Ke)):"error"}var Ae={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Pe(_e){return function(Ke,nt){var rt=Ke.next();if(rt===_e){nt.f=nt.inline=Ie,a.highlightFormatting&&(nt.formatting="link-string");var et=Se(nt);return nt.linkHref=!1,et}return Ke.match(Ae[_e]),nt.linkHref=!0,Se(nt)}}function Ue(_e,Ke){return _e.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ke.f=He,_e.next(),a.highlightFormatting&&(Ke.formatting="link"),Ke.linkText=!0,Se(Ke)):ve(_e,Ke,Ie)}function He(_e,Ke){if(_e.match(/^\]:/,!0)){Ke.f=Ke.inline=Je,a.highlightFormatting&&(Ke.formatting="link");var nt=Se(Ke);return Ke.linkText=!1,nt}return _e.match(/^([^\]\\]|\\.)+/,!0),z.linkText}function Je(_e,Ke){return _e.eatSpace()?null:(_e.match(/^[^\s]+/,!0),_e.peek()===void 0?Ke.linkTitle=!0:_e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ke.f=Ke.inline=Ie,z.linkHref+" url")}var st={startState:function(){return{f:ke,prevLine:{stream:null},thisLine:{stream:null},block:ke,htmlState:null,indentation:0,inline:Ie,text:Ee,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(_e){return{f:_e.f,prevLine:_e.prevLine,thisLine:_e.thisLine,block:_e.block,htmlState:_e.htmlState&&le.copyState(Te,_e.htmlState),indentation:_e.indentation,localMode:_e.localMode,localState:_e.localMode?le.copyState(_e.localMode,_e.localState):null,inline:_e.inline,text:_e.text,formatting:!1,linkText:_e.linkText,linkTitle:_e.linkTitle,linkHref:_e.linkHref,code:_e.code,em:_e.em,strong:_e.strong,strikethrough:_e.strikethrough,emoji:_e.emoji,header:_e.header,setext:_e.setext,hr:_e.hr,taskList:_e.taskList,list:_e.list,listStack:_e.listStack.slice(0),quote:_e.quote,indentedCode:_e.indentedCode,trailingSpace:_e.trailingSpace,trailingSpaceNewLine:_e.trailingSpaceNewLine,md_inside:_e.md_inside,fencedEndRE:_e.fencedEndRE}},token:function(_e,Ke){if(Ke.formatting=!1,_e!=Ke.thisLine.stream){if(Ke.header=0,Ke.hr=!1,_e.match(/^\s*$/,!0))return je(Ke),null;if(Ke.prevLine=Ke.thisLine,Ke.thisLine={stream:_e},Ke.taskList=!1,Ke.trailingSpace=0,Ke.trailingSpaceNewLine=!1,!Ke.localState&&(Ke.f=Ke.block,Ke.f!=Be)){var nt=_e.match(/^\s*/,!0)[0].replace(/\t/g,me).length;if(Ke.indentation=nt,Ke.indentationDiff=null,nt>0)return null}}return Ke.f(_e,Ke)},innerMode:function(_e){return _e.block==Be?{state:_e.htmlState,mode:Te}:_e.localState?{state:_e.localState,mode:_e.localMode}:{state:_e,mode:st}},indent:function(_e,Ke,nt){return _e.block==Be&&Te.indent?Te.indent(_e.htmlState,Ke,nt):_e.localState&&_e.localMode.indent?_e.localMode.indent(_e.localState,Ke,nt):le.Pass},blankLine:je,getType:Se,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return st},"xml"),le.defineMIME("text/markdown","markdown"),le.defineMIME("text/x-markdown","markdown")})},98101:function(on,Lt,Ce){(function(le){le(Ce(89780))})(function(le){"use strict";le.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 yt=0;yt<le.modeInfo.length;yt++){var a=le.modeInfo[yt];a.mimes&&(a.mime=a.mimes[0])}le.findModeByMIME=function(Te){Te=Te.toLowerCase();for(var ge=0;ge<le.modeInfo.length;ge++){var x=le.modeInfo[ge];if(x.mime==Te)return x;if(x.mimes){for(var z=0;z<x.mimes.length;z++)if(x.mimes[z]==Te)return x}}if(/\+xml$/.test(Te))return le.findModeByMIME("application/xml");if(/\+json$/.test(Te))return le.findModeByMIME("application/json")},le.findModeByExtension=function(Te){Te=Te.toLowerCase();for(var ge=0;ge<le.modeInfo.length;ge++){var x=le.modeInfo[ge];if(x.ext){for(var z=0;z<x.ext.length;z++)if(x.ext[z]==Te)return x}}},le.findModeByFileName=function(Te){for(var ge=0;ge<le.modeInfo.length;ge++){var x=le.modeInfo[ge];if(x.file&&x.file.test(Te))return x}var z=Te.lastIndexOf("."),ie=z>-1&&Te.substring(z+1,Te.length);if(ie)return le.findModeByExtension(ie)},le.findModeByName=function(Te){Te=Te.toLowerCase();for(var ge=0;ge<le.modeInfo.length;ge++){var x=le.modeInfo[ge];if(x.name.toLowerCase()==Te)return x;if(x.alias){for(var z=0;z<x.alias.length;z++)if(x.alias[z].toLowerCase()==Te)return x}}}})},67549:function(on,Lt,Ce){(function(le){le(Ce(89780))})(function(le){"use strict";le.defineMode("stex",function(yt,a){"use strict";function Te(te,se){te.cmdState.push(se)}function ge(te){return te.cmdState.length>0?te.cmdState[te.cmdState.length-1]:null}function x(te){var se=te.cmdState.pop();se&&se.closeBracket()}function z(te){for(var se=te.cmdState,ae=se.length-1;ae>=0;ae--){var he=se[ae];if(he.name!="DEFAULT")return he}return{styleIdentifier:function(){return null}}}function ie(te,se,ae){return function(){this.name=te,this.bracketNo=0,this.style=se,this.styles=ae,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var oe={};oe.importmodule=ie("importmodule","tag",["string","builtin"]),oe.documentclass=ie("documentclass","tag",["","atom"]),oe.usepackage=ie("usepackage","tag",["atom"]),oe.begin=ie("begin","tag",["atom"]),oe.end=ie("end","tag",["atom"]),oe.label=ie("label","tag",["atom"]),oe.ref=ie("ref","tag",["atom"]),oe.eqref=ie("eqref","tag",["atom"]),oe.cite=ie("cite","tag",["atom"]),oe.bibitem=ie("bibitem","tag",["atom"]),oe.Bibitem=ie("Bibitem","tag",["atom"]),oe.RBibitem=ie("RBibitem","tag",["atom"]),oe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ee(te,se){te.f=se}function ue(te,se){var ae;if(te.match(/^\\[a-zA-Z@]+/)){var he=te.current().slice(1);return ae=oe.hasOwnProperty(he)?oe[he]:oe.DEFAULT,ae=new ae,Te(se,ae),ee(se,re),ae.style}if(te.match(/^\\[$&%#{}_]/)||te.match(/^\\[,;!\/\\]/))return"tag";if(te.match("\\["))return ee(se,function(ve,pe){return E(ve,pe,"\\]")}),"keyword";if(te.match("\\("))return ee(se,function(ve,pe){return E(ve,pe,"\\)")}),"keyword";if(te.match("$$"))return ee(se,function(ve,pe){return E(ve,pe,"$$")}),"keyword";if(te.match("$"))return ee(se,function(ve,pe){return E(ve,pe,"$")}),"keyword";var me=te.next();if(me=="%")return te.skipToEnd(),"comment";if(me=="}"||me=="]"){if(ae=ge(se),ae)ae.closeBracket(me),ee(se,re);else return"error";return"bracket"}else return me=="{"||me=="["?(ae=oe.DEFAULT,ae=new ae,Te(se,ae),"bracket"):/\d/.test(me)?(te.eatWhile(/[\w.%]/),"atom"):(te.eatWhile(/[\w\-_]/),ae=z(se),ae.name=="begin"&&(ae.argument=te.current()),ae.styleIdentifier())}function E(te,se,ae){if(te.eatSpace())return null;if(ae&&te.match(ae))return ee(se,ue),"keyword";if(te.match(/^\\[a-zA-Z@]+/))return"tag";if(te.match(/^[a-zA-Z]+/))return"variable-2";if(te.match(/^\\[$&%#{}_]/)||te.match(/^\\[,;!\/]/)||te.match(/^[\^_&]/))return"tag";if(te.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(te.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var he=te.next();return he=="{"||he=="}"||he=="["||he=="]"||he=="("||he==")"?"bracket":he=="%"?(te.skipToEnd(),"comment"):"error"}function re(te,se){var ae=te.peek(),he;return ae=="{"||ae=="["?(he=ge(se),he.openBracket(ae),te.eat(ae),ee(se,ue),"bracket"):/[ \t\r]/.test(ae)?(te.eat(ae),null):(ee(se,ue),x(se),ue(te,se))}return{startState:function(){var te=a.inMathMode?function(se,ae){return E(se,ae)}:ue;return{cmdState:[],f:te}},copyState:function(te){return{cmdState:te.cmdState.slice(),f:te.f}},token:function(te,se){return se.f(te,se)},blankLine:function(te){te.f=ue,te.cmdState.length=0},lineComment:"%"}}),le.defineMIME("text/x-stex","stex"),le.defineMIME("text/x-latex","stex")})},15525:function(on,Lt,Ce){(function(le){le(Ce(89780))})(function(le){"use strict";var yt={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},a={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};le.defineMode("xml",function(Te,ge){var x=Te.indentUnit,z={},ie=ge.htmlMode?yt:a;for(var oe in ie)z[oe]=ie[oe];for(var oe in ge)z[oe]=ge[oe];var ee,ue;function E(Me,Le){function Ae(He){return Le.tokenize=He,He(Me,Le)}var Pe=Me.next();if(Pe=="<")return Me.eat("!")?Me.eat("[")?Me.match("CDATA[")?Ae(se("atom","]]>")):null:Me.match("--")?Ae(se("comment","-->")):Me.match("DOCTYPE",!0,!0)?(Me.eatWhile(/[\w\._\-]/),Ae(ae(1))):null:Me.eat("?")?(Me.eatWhile(/[\w\._\-]/),Le.tokenize=se("meta","?>"),"meta"):(ee=Me.eat("/")?"closeTag":"openTag",Le.tokenize=re,"tag bracket");if(Pe=="&"){var Ue;return Me.eat("#")?Me.eat("x")?Ue=Me.eatWhile(/[a-fA-F\d]/)&&Me.eat(";"):Ue=Me.eatWhile(/[\d]/)&&Me.eat(";"):Ue=Me.eatWhile(/[\w\.\-:]/)&&Me.eat(";"),Ue?"atom":"error"}else return Me.eatWhile(/[^&<]/),null}E.isInText=!0;function re(Me,Le){var Ae=Me.next();if(Ae==">"||Ae=="/"&&Me.eat(">"))return Le.tokenize=E,ee=Ae==">"?"endTag":"selfcloseTag","tag bracket";if(Ae=="=")return ee="equals",null;if(Ae=="<"){Le.tokenize=E,Le.state=pe,Le.tagName=Le.tagStart=null;var Pe=Le.tokenize(Me,Le);return Pe?Pe+" tag error":"tag error"}else return/[\'\"]/.test(Ae)?(Le.tokenize=te(Ae),Le.stringStartCol=Me.column(),Le.tokenize(Me,Le)):(Me.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function te(Me){var Le=function(Ae,Pe){for(;!Ae.eol();)if(Ae.next()==Me){Pe.tokenize=re;break}return"string"};return Le.isInAttribute=!0,Le}function se(Me,Le){return function(Ae,Pe){for(;!Ae.eol();){if(Ae.match(Le)){Pe.tokenize=E;break}Ae.next()}return Me}}function ae(Me){return function(Le,Ae){for(var Pe;(Pe=Le.next())!=null;){if(Pe=="<")return Ae.tokenize=ae(Me+1),Ae.tokenize(Le,Ae);if(Pe==">")if(Me==1){Ae.tokenize=E;break}else return Ae.tokenize=ae(Me-1),Ae.tokenize(Le,Ae)}return"meta"}}function he(Me,Le,Ae){this.prev=Me.context,this.tagName=Le,this.indent=Me.indented,this.startOfLine=Ae,(z.doNotIndent.hasOwnProperty(Le)||Me.context&&Me.context.noIndent)&&(this.noIndent=!0)}function me(Me){Me.context&&(Me.context=Me.context.prev)}function ve(Me,Le){for(var Ae;;){if(!Me.context||(Ae=Me.context.tagName,!z.contextGrabbers.hasOwnProperty(Ae)||!z.contextGrabbers[Ae].hasOwnProperty(Le)))return;me(Me)}}function pe(Me,Le,Ae){return Me=="openTag"?(Ae.tagStart=Le.column(),be):Me=="closeTag"?je:pe}function be(Me,Le,Ae){return Me=="word"?(Ae.tagName=Le.current(),ue="tag",De):z.allowMissingTagName&&Me=="endTag"?(ue="tag bracket",De(Me,Le,Ae)):(ue="error",be)}function je(Me,Le,Ae){if(Me=="word"){var Pe=Le.current();return Ae.context&&Ae.context.tagName!=Pe&&z.implicitlyClosed.hasOwnProperty(Ae.context.tagName)&&me(Ae),Ae.context&&Ae.context.tagName==Pe||z.matchClosing===!1?(ue="tag",ke):(ue="tag error",Be)}else return z.allowMissingTagName&&Me=="endTag"?(ue="tag bracket",ke(Me,Le,Ae)):(ue="error",Be)}function ke(Me,Le,Ae){return Me!="endTag"?(ue="error",ke):(me(Ae),pe)}function Be(Me,Le,Ae){return ue="error",ke(Me,Le,Ae)}function De(Me,Le,Ae){if(Me=="word")return ue="attribute",Se;if(Me=="endTag"||Me=="selfcloseTag"){var Pe=Ae.tagName,Ue=Ae.tagStart;return Ae.tagName=Ae.tagStart=null,Me=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(Pe)?ve(Ae,Pe):(ve(Ae,Pe),Ae.context=new he(Ae,Pe,Ue==Ae.indented)),pe}return ue="error",De}function Se(Me,Le,Ae){return Me=="equals"?Ee:(z.allowMissing||(ue="error"),De(Me,Le,Ae))}function Ee(Me,Le,Ae){return Me=="string"?Ie:Me=="word"&&z.allowUnquoted?(ue="string",De):(ue="error",De(Me,Le,Ae))}function Ie(Me,Le,Ae){return Me=="string"?Ie:De(Me,Le,Ae)}return{startState:function(Me){var Le={tokenize:E,state:pe,indented:Me||0,tagName:null,tagStart:null,context:null};return Me!=null&&(Le.baseIndent=Me),Le},token:function(Me,Le){if(!Le.tagName&&Me.sol()&&(Le.indented=Me.indentation()),Me.eatSpace())return null;ee=null;var Ae=Le.tokenize(Me,Le);return(Ae||ee)&&Ae!="comment"&&(ue=null,Le.state=Le.state(ee||Ae,Me,Le),ue&&(Ae=ue=="error"?Ae+" error":ue)),Ae},indent:function(Me,Le,Ae){var Pe=Me.context;if(Me.tokenize.isInAttribute)return Me.tagStart==Me.indented?Me.stringStartCol+1:Me.indented+x;if(Pe&&Pe.noIndent)return le.Pass;if(Me.tokenize!=re&&Me.tokenize!=E)return Ae?Ae.match(/^(\s*)/)[0].length:0;if(Me.tagName)return z.multilineTagIndentPastTag!==!1?Me.tagStart+Me.tagName.length+2:Me.tagStart+x*(z.multilineTagIndentFactor||1);if(z.alignCDATA&&/<!\[CDATA\[/.test(Le))return 0;var Ue=Le&&/^<(\/)?([\w_:\.-]*)/.exec(Le);if(Ue&&Ue[1])for(;Pe;)if(Pe.tagName==Ue[2]){Pe=Pe.prev;break}else if(z.implicitlyClosed.hasOwnProperty(Pe.tagName))Pe=Pe.prev;else break;else if(Ue)for(;Pe;){var He=z.contextGrabbers[Pe.tagName];if(He&&He.hasOwnProperty(Ue[2]))Pe=Pe.prev;else break}for(;Pe&&Pe.prev&&!Pe.startOfLine;)Pe=Pe.prev;return Pe?Pe.indent+x:Me.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(Me){Me.state==Ee&&(Me.state=De)},xmlCurrentTag:function(Me){return Me.tagName?{name:Me.tagName,close:Me.type=="closeTag"}:null},xmlCurrentContext:function(Me){for(var Le=[],Ae=Me.context;Ae;Ae=Ae.prev)Ae.tagName&&Le.push(Ae.tagName);return Le.reverse()}}}),le.defineMIME("text/xml","xml"),le.defineMIME("application/xml","xml"),le.mimeModes.hasOwnProperty("text/html")||le.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(on,Lt,Ce){var le,yt;(function(a,Te){on.exports=Te(a)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof Ce.g!="undefined"?Ce.g:this,function(a){"use strict";a=a||{};var Te=a.Base64,ge="2.6.4",x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=function(Ae){for(var Pe={},Ue=0,He=Ae.length;Ue<He;Ue++)Pe[Ae.charAt(Ue)]=Ue;return Pe}(x),ie=String.fromCharCode,oe=function(Ae){if(Ae.length<2){var Pe=Ae.charCodeAt(0);return Pe<128?Ae:Pe<2048?ie(192|Pe>>>6)+ie(128|Pe&63):ie(224|Pe>>>12&15)+ie(128|Pe>>>6&63)+ie(128|Pe&63)}else{var Pe=65536+(Ae.charCodeAt(0)-55296)*1024+(Ae.charCodeAt(1)-56320);return ie(240|Pe>>>18&7)+ie(128|Pe>>>12&63)+ie(128|Pe>>>6&63)+ie(128|Pe&63)}},ee=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ue=function(Ae){return Ae.replace(ee,oe)},E=function(Ae){var Pe=[0,2,1][Ae.length%3],Ue=Ae.charCodeAt(0)<<16|(Ae.length>1?Ae.charCodeAt(1):0)<<8|(Ae.length>2?Ae.charCodeAt(2):0),He=[x.charAt(Ue>>>18),x.charAt(Ue>>>12&63),Pe>=2?"=":x.charAt(Ue>>>6&63),Pe>=1?"=":x.charAt(Ue&63)];return He.join("")},re=a.btoa&&typeof a.btoa=="function"?function(Ae){return a.btoa(Ae)}:function(Ae){if(Ae.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ae.replace(/[\s\S]{1,3}/g,E)},te=function(Ae){return re(ue(String(Ae)))},se=function(Ae){return Ae.replace(/[+\/]/g,function(Pe){return Pe=="+"?"-":"_"}).replace(/=/g,"")},ae=function(Ae,Pe){return Pe?se(te(Ae)):te(Ae)},he=function(Ae){return ae(Ae,!0)},me;a.Uint8Array&&(me=function(Ae,Pe){for(var Ue="",He=0,Je=Ae.length;He<Je;He+=3){var st=Ae[He],_e=Ae[He+1],Ke=Ae[He+2],nt=st<<16|_e<<8|Ke;Ue+=x.charAt(nt>>>18)+x.charAt(nt>>>12&63)+(typeof _e!="undefined"?x.charAt(nt>>>6&63):"=")+(typeof Ke!="undefined"?x.charAt(nt&63):"=")}return Pe?se(Ue):Ue});var ve=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,pe=function(Ae){switch(Ae.length){case 4:var Pe=(7&Ae.charCodeAt(0))<<18|(63&Ae.charCodeAt(1))<<12|(63&Ae.charCodeAt(2))<<6|63&Ae.charCodeAt(3),Ue=Pe-65536;return ie((Ue>>>10)+55296)+ie((Ue&1023)+56320);case 3:return ie((15&Ae.charCodeAt(0))<<12|(63&Ae.charCodeAt(1))<<6|63&Ae.charCodeAt(2));default:return ie((31&Ae.charCodeAt(0))<<6|63&Ae.charCodeAt(1))}},be=function(Ae){return Ae.replace(ve,pe)},je=function(Ae){var Pe=Ae.length,Ue=Pe%4,He=(Pe>0?z[Ae.charAt(0)]<<18:0)|(Pe>1?z[Ae.charAt(1)]<<12:0)|(Pe>2?z[Ae.charAt(2)]<<6:0)|(Pe>3?z[Ae.charAt(3)]:0),Je=[ie(He>>>16),ie(He>>>8&255),ie(He&255)];return Je.length-=[0,0,2,1][Ue],Je.join("")},ke=a.atob&&typeof a.atob=="function"?function(Ae){return a.atob(Ae)}:function(Ae){return Ae.replace(/\S{1,4}/g,je)},Be=function(Ae){return ke(String(Ae).replace(/[^A-Za-z0-9\+\/]/g,""))},De=function(Ae){return be(ke(Ae))},Se=function(Ae){return String(Ae).replace(/[-_]/g,function(Pe){return Pe=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ee=function(Ae){return De(Se(Ae))},Ie;a.Uint8Array&&(Ie=function(Ae){return Uint8Array.from(Be(Se(Ae)),function(Pe){return Pe.charCodeAt(0)})});var Me=function(){var Ae=a.Base64;return a.Base64=Te,Ae};if(a.Base64={VERSION:ge,atob:Be,btoa:re,fromBase64:Ee,toBase64:ae,utob:ue,encode:ae,encodeURI:he,btou:be,decode:Ee,noConflict:Me,fromUint8Array:me,toUint8Array:Ie},typeof Object.defineProperty=="function"){var Le=function(Ae){return{value:Ae,enumerable:!1,writable:!0,configurable:!0}};a.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Le(function(){return Ee(this)})),Object.defineProperty(String.prototype,"toBase64",Le(function(Ae){return ae(this,Ae)})),Object.defineProperty(String.prototype,"toBase64URI",Le(function(){return ae(this,!0)}))}}return a.Meteor&&(Base64=a.Base64),on.exports?on.exports.Base64=a.Base64:(le=[],yt=function(){return a.Base64}.apply(Lt,le),yt!==void 0&&(on.exports=yt)),{Base64:a.Base64}})},2859:function(on,Lt,Ce){"use strict";Ce.d(Lt,{hP:function(){return Fe}});var le=function(Re,ne){return(le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,Ne){fe.__proto__=Ne}||function(fe,Ne){for(var We in Ne)Object.prototype.hasOwnProperty.call(Ne,We)&&(fe[We]=Ne[We])})(Re,ne)};function yt(Re,ne){function fe(){this.constructor=Re}le(Re,ne),Re.prototype=ne===null?Object.create(ne):(fe.prototype=ne.prototype,new fe)}function a(Re,ne,fe,Ne){return new(fe||(fe=Promise))(function(We,we){function ye(Ze){try{$e(Ne.next(Ze))}catch(Xe){we(Xe)}}function Oe(Ze){try{$e(Ne.throw(Ze))}catch(Xe){we(Xe)}}function $e(Ze){var Xe;Ze.done?We(Ze.value):(Xe=Ze.value,Xe instanceof fe?Xe:new fe(function(at){at(Xe)})).then(ye,Oe)}$e((Ne=Ne.apply(Re,ne||[])).next())})}function Te(Re,ne){var fe,Ne,We,we,ye={label:0,sent:function(){if(1&We[0])throw We[1];return We[1]},trys:[],ops:[]};return we={next:Oe(0),throw:Oe(1),return:Oe(2)},typeof Symbol=="function"&&(we[Symbol.iterator]=function(){return this}),we;function Oe($e){return function(Ze){return function(Xe){if(fe)throw new TypeError("Generator is already executing.");for(;ye;)try{if(fe=1,Ne&&(We=2&Xe[0]?Ne.return:Xe[0]?Ne.throw||((We=Ne.return)&&We.call(Ne),0):Ne.next)&&!(We=We.call(Ne,Xe[1])).done)return We;switch(Ne=0,We&&(Xe=[2&Xe[0],We.value]),Xe[0]){case 0:case 1:We=Xe;break;case 4:return ye.label++,{value:Xe[1],done:!1};case 5:ye.label++,Ne=Xe[1],Xe=[0];continue;case 7:Xe=ye.ops.pop(),ye.trys.pop();continue;default:if(We=ye.trys,!((We=We.length>0&&We[We.length-1])||Xe[0]!==6&&Xe[0]!==2)){ye=0;continue}if(Xe[0]===3&&(!We||Xe[1]>We[0]&&Xe[1]<We[3])){ye.label=Xe[1];break}if(Xe[0]===6&&ye.label<We[1]){ye.label=We[1],We=Xe;break}if(We&&ye.label<We[2]){ye.label=We[2],ye.ops.push(Xe);break}We[2]&&ye.ops.pop(),ye.trys.pop();continue}Xe=ne.call(Re,ye)}catch(at){Xe=[6,at],Ne=0}finally{fe=We=0}if(5&Xe[0])throw Xe[1];return{value:Xe[0]?Xe[1]:void 0,done:!0}}([$e,Ze])}}}function ge(){for(var Re=0,ne=0,fe=arguments.length;ne<fe;ne++)Re+=arguments[ne].length;var Ne=Array(Re),We=0;for(ne=0;ne<fe;ne++)for(var we=arguments[ne],ye=0,Oe=we.length;ye<Oe;ye++,We++)Ne[We]=we[ye];return Ne}var x=function(){function Re(){}return Re.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Re.setAttributes=function(ne,fe){for(var Ne=0,We=fe;Ne<We.length;Ne++){var we=We[Ne],ye=we[0],Oe=we[1];ne.setAttribute(ye,Oe)}},Re.createRect=function(ne,fe,Ne){var We=document.createElementNS("http://www.w3.org/2000/svg","rect");return We.setAttribute("width",ne.toString()),We.setAttribute("height",fe.toString()),Ne&&Re.setAttributes(We,Ne),We},Re.createLine=function(ne,fe,Ne,We,we){var ye=document.createElementNS("http://www.w3.org/2000/svg","line");return ye.setAttribute("x1",ne.toString()),ye.setAttribute("y1",fe.toString()),ye.setAttribute("x2",Ne.toString()),ye.setAttribute("y2",We.toString()),we&&Re.setAttributes(ye,we),ye},Re.createPolygon=function(ne,fe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ne.setAttribute("points",ne),fe&&Re.setAttributes(Ne,fe),Ne},Re.createCircle=function(ne,fe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ne.setAttribute("cx",(ne/2).toString()),Ne.setAttribute("cy",(ne/2).toString()),Ne.setAttribute("r",ne.toString()),fe&&Re.setAttributes(Ne,fe),Ne},Re.createEllipse=function(ne,fe,Ne){var We=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return We.setAttribute("cx",(ne/2).toString()),We.setAttribute("cy",(fe/2).toString()),We.setAttribute("rx",(ne/2).toString()),We.setAttribute("ry",(fe/2).toString()),Ne&&Re.setAttributes(We,Ne),We},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,Ne,We,we,ye,Oe){var $e=document.createElementNS("http://www.w3.org/2000/svg","marker");return Re.setAttributes($e,[["id",ne],["orient",fe],["markerWidth",Ne.toString()],["markerHeight",We.toString()],["refX",we.toString()],["refY",ye.toString()]]),$e.appendChild(Oe),$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 Ne=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ne.textContent=ne,fe&&Re.setAttributes(Ne,fe),Ne},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 Ne=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ne.x=ne,Ne.y=fe,Ne},Re.createPath=function(ne,fe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","path");return Ne.setAttribute("d",ne),fe&&Re.setAttributes(Ne,fe),Ne},Re}(),z=function(){function Re(){}return Re.addKey=function(ne){Re.key=ne},Object.defineProperty(Re,"isLicensed",{get:function(){return!!Re.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Re.key)},enumerable:!1,configurable:!0}),Re}(),ie=function(){function Re(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Re.prototype.rasterize=function(ne,fe,Ne){var We=this;return new Promise(function(we){var ye=Ne!==void 0?Ne:document.createElement("canvas");ne===null&&(We.markersOnly=!0,We.naturalSize=!1);var Oe=document.createElementNS("http://www.w3.org/2000/svg","svg");Oe.setAttribute("xmlns","http://www.w3.org/2000/svg"),Oe.setAttribute("width",fe.width.baseVal.valueAsString),Oe.setAttribute("height",fe.height.baseVal.valueAsString),Oe.setAttribute("viewBox","0 0 "+fe.viewBox.baseVal.width.toString()+" "+fe.viewBox.baseVal.height.toString()),Oe.innerHTML=fe.innerHTML,We.naturalSize===!0?(Oe.width.baseVal.value=ne.naturalWidth,Oe.height.baseVal.value=ne.naturalHeight):We.width!==void 0&&We.height!==void 0&&(Oe.width.baseVal.value=We.width,Oe.height.baseVal.value=We.height),ye.width=Oe.width.baseVal.value,ye.height=Oe.height.baseVal.value;var $e=Oe.outerHTML,Ze=ye.getContext("2d");We.markersOnly!==!0&&Ze.drawImage(ne,0,0,ye.width,ye.height);var Xe=window.URL,at=new Image(ye.width,ye.height);at.setAttribute("crossOrigin","anonymous");var lt=new Blob([$e],{type:"image/svg+xml"}),mt=Xe.createObjectURL(lt);at.onload=function(){Ze.drawImage(at,0,0),Xe.revokeObjectURL(mt);var ut=ye.toDataURL(We.imageType,We.imageQuality);we(ut)},at.src=mt})},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 ue("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ue("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new ue("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new E("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new E("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}(),ue=function(Re,ne){this.selector=Re,this.style=ne},E=function(Re,ne){this.localName=Re,this.style=ne},re=function(){function Re(ne,fe,Ne,We,we){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ne,this.displayMode=fe,this.markerItems=Ne,this.uiStyleSettings=We,this.styles=we,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Re.prototype.show=function(ne){var fe=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ne,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ne=document.createElement("div");Ne.className=this.toolbarBlockStyleClass.name,Ne.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ne),this.addActionButton(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(we){var ye=document.createElement("div");ye.className=""+fe.toolbarButtonStyleClass.name,ye.setAttribute("data-type-name",we.typeName),ye.innerHTML=we.icon,ye.addEventListener("click",function(){fe.markerToolbarButtonClicked(ye,we)}),fe.buttons.push(ye),fe.markerButtons.push(ye)}),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 We=document.createElement("div");We.className=this.toolbarBlockStyleClass.name,We.style.whiteSpace="nowrap",We.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(We),this.addActionButton(We,'<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(We,'<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,Ne){var We=this,we=document.createElement("div");switch(we.className=""+this.toolbarButtonStyleClass.name,we.innerHTML=fe,we.setAttribute("data-action",Ne),we.addEventListener("click",function(){We.actionToolbarButtonClicked(we,Ne)}),Ne){case"select":we.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":we.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":we.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":we.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":we.style.fill=this.uiStyleSettings.closeButtonColor}ne.appendChild(we),this.buttons.push(we)},Re.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new E("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 E("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new E("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new E("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 E("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var ne=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new E("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 E("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new E("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ue("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new ue("."+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(Ne){return Ne("marker",fe)}),this.markerButtonOverflowBlock.style.display="none"},Re.prototype.actionToolbarButtonClicked=function(ne,fe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ne){return Ne("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(Ne){return Ne.getAttribute("data-type-name")===ne});fe&&this.setActiveButton(fe)},Re.prototype.setCurrentMarker=function(ne){var fe=this;this.currentMarker=ne,this.buttons.filter(function(Ne){return/delete|notes/.test(Ne.getAttribute("data-action"))}).forEach(function(Ne){fe.currentMarker===void 0?(Ne.style.fillOpacity="0.4",Ne.style.pointerEvents="none"):(Ne.style.fillOpacity="1",Ne.style.pointerEvents="all")})},Re}(),te=function(){function Re(ne,fe,Ne,We){this.panels=[],this.panelButtons=[],this.markerjsContainer=ne,this.displayMode=fe,this.uiStyleSettings=Ne,this.styles=We,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Re.prototype.addStyles=function(){var ne;this.toolboxStyleClass=this.styles.addClass(new E("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 E("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var fe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new E("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new E("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new E("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 E("toolbox-panel-row_colors",`
background-color: `+((ne=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ne!==void 0?ne:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new E("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 E("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new E("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new ue("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ue("."+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,Ne,We=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+" "+((Ne=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ne!==void 0?Ne:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(we){var ye;we.uiStyleSettings=We.uiStyleSettings;var Oe=document.createElement("div");Oe.className=We.toolboxButtonStyleClass.name+" "+((ye=We.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ye!==void 0?ye:We.toolboxButtonStyleColorsClass.name),Oe.innerHTML=we.icon,Oe.title=we.title,Oe.addEventListener("click",function(){We.panelButtonClick(we)}),We.panelButtons.push(Oe),We.buttonRow.appendChild(Oe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Re.prototype.panelButtonClick=function(ne){var fe=this,Ne=-1;if(ne!==this.activePanel){Ne=this.panels.indexOf(ne),this.panelRow.innerHTML="";var We=ne.getUi();We.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(We),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=ne}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){fe.displayMode==="inline"?fe.panelRow.style.display="none":fe.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(we,ye){var Oe,$e;we.className=fe.toolboxButtonStyleClass.name+" "+(ye===Ne?""+((Oe=fe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Oe!==void 0?Oe: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},ae=function(Re){function ne(fe,Ne,We,we){var ye=Re.call(this,fe,we||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return ye.colors=[],ye.addTransparent=!1,ye.colorBoxes=[],ye.colors=Ne,ye.currentColor=We,ye.setCurrentColor=ye.setCurrentColor.bind(ye),ye.getColorBox=ye.getColorBox.bind(ye),ye}return yt(ne,Re),ne.prototype.getUi=function(){var fe=this,Ne=document.createElement("div");return Ne.style.overflow="hidden",Ne.style.whiteSpace="nowrap",this.colors.forEach(function(We){var we=fe.getColorBox(We);Ne.appendChild(we),fe.colorBoxes.push(we)}),Ne},ne.prototype.getColorBox=function(fe){var Ne=this,We=this.uiStyleSettings.toolbarHeight/4,we=this.uiStyleSettings.toolbarHeight-We,ye=document.createElement("div");ye.style.display="inline-block",ye.style.boxSizing="content-box",ye.style.width=we-2+"px",ye.style.height=we-2+"px",ye.style.padding="1px",ye.style.marginRight="2px",ye.style.marginBottom="2px",ye.style.borderWidth="2px",ye.style.borderStyle="solid",ye.style.borderRadius=(we+2)/2+"px",ye.style.borderColor=fe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ye.addEventListener("click",function(){Ne.setCurrentColor(fe,ye)});var Oe=document.createElement("div");return Oe.style.display="inline-block",Oe.style.width=we-2+"px",Oe.style.height=we-2+"px",Oe.style.backgroundColor=fe,Oe.style.borderRadius=we/2+"px",fe==="transparent"&&(Oe.style.fill=this.uiStyleSettings.toolboxAccentColor,Oe.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>`),ye.appendChild(Oe),ye},ne.prototype.setCurrentColor=function(fe,Ne){var We=this;this.currentColor=fe,this.colorBoxes.forEach(function(we){we.style.borderColor=we===Ne?We.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(fe)},ne}(se),he=function(){function Re(ne,fe,Ne){this._state="new",this._isSelected=!1,this._container=ne,this._overlayContainer=fe,this.globalSettings=Ne,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}(),me=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}(),ve=function(){function Re(){this.GRIP_SIZE=10,this.visual=x.createGroup(),this.visual.appendChild(x.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(x.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}(),pe=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}(),be=function(Re){function ne(fe,Ne,We){var we=Re.call(this,fe,Ne,We)||this;return we.left=0,we.top=0,we.width=0,we.height=0,we.defaultSize={x:50,y:20},we.offsetX=0,we.offsetY=0,we.rotationAngle=0,we.CB_DISTANCE=10,we._suppressMarkerCreateEvent=!1,we.container.transform.baseVal.appendItem(x.createTransform()),we.setupControlBox(),we}return yt(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 Ne=x.createTransform();this._visual.transform.baseVal.appendItem(Ne)},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,Ne){Re.prototype.pointerDown.call(this,fe,Ne),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 We=this.unrotatePoint(fe);if(this.manipulationStartX=We.x,this.manipulationStartY=We.y,this.offsetX=We.x-this.left,this.offsetY=We.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ne),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ne)){this.activeGrip=this.rotatorGrip;var we=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=we.x-this.width/2,this.top=we.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ye=this.container.transform.baseVal.getItem(0);ye.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ye,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ne.prototype.pointerUp=function(fe){var Ne=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",Ne==="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 Ne=this.unrotatePoint(fe);this.state==="creating"?this.resize(fe):this.state==="move"?(this.left=this.manipulationStartLeft+(Ne.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ne.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ne):this.state==="rotate"&&this.rotate(fe)},ne.prototype.resize=function(fe){var Ne=this.manipulationStartLeft,We=this.manipulationStartWidth,we=this.manipulationStartTop,ye=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ne=this.manipulationStartLeft+fe.x-this.manipulationStartX,We=this.manipulationStartWidth+this.manipulationStartLeft-Ne;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:We=this.manipulationStartWidth+fe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:we=this.manipulationStartTop+fe.y-this.manipulationStartY,ye=this.manipulationStartHeight+this.manipulationStartTop-we;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ye=this.manipulationStartHeight+fe.y-this.manipulationStartY}We>=0?(this.left=Ne,this.width=We):(this.left=Ne+We,this.width=-We),ye>=0?(this.top=we,this.height=ye):(this.top=we+ye,this.height=-ye),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 Ne=Math.sign(fe.x-this.centerX);this.rotationAngle=180*Math.atan((fe.y-this.centerY)/(fe.x-this.centerX))/Math.PI+90*Ne,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 Ne=this.container.getCTM(),We=x.createPoint(fe.x,fe.y);return{x:(We=We.matrixTransform(Ne)).x,y:We.y}},ne.prototype.unrotatePoint=function(fe){if(this.rotationAngle===0)return fe;var Ne=this.container.getCTM();Ne=Ne.inverse();var We=x.createPoint(fe.x,fe.y);return{x:(We=We.matrixTransform(Ne)).x,y:We.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=x.createGroup();var fe=x.createTransform();fe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(fe),this.container.appendChild(this.controlBox),this.controlRect=x.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=x.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 me,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 ve;return fe.visual.transform.baseVal.appendItem(x.createTransform()),this.controlBox.appendChild(fe.visual),fe},ne.prototype.positionGrips=function(){var fe=this.controlGrips.topLeft.GRIP_SIZE,Ne=-fe/2,We=Ne,we=(this.width+this.CB_DISTANCE)/2-fe/2,ye=(this.height+this.CB_DISTANCE)/2-fe/2,Oe=this.height+this.CB_DISTANCE-fe/2,$e=this.width+this.CB_DISTANCE-fe/2;this.positionGrip(this.controlGrips.topLeft.visual,Ne,We),this.positionGrip(this.controlGrips.topCenter.visual,we,We),this.positionGrip(this.controlGrips.topRight.visual,$e,We),this.positionGrip(this.controlGrips.centerLeft.visual,Ne,ye),this.positionGrip(this.controlGrips.centerRight.visual,$e,ye),this.positionGrip(this.controlGrips.bottomLeft.visual,Ne,Oe),this.positionGrip(this.controlGrips.bottomCenter.visual,we,Oe),this.positionGrip(this.controlGrips.bottomRight.visual,$e,Oe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,we,We-3*this.CB_DISTANCE)},ne.prototype.positionGrip=function(fe,Ne,We){var we=fe.transform.baseVal.getItem(0);we.setTranslate(Ne,We),fe.transform.baseVal.replaceItem(we,0)},ne.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ne.prototype.showControlBox=function(){this.controlBox.style.display=""},ne.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:pe.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:pe.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 Ne=fe;this.left=Ne.left,this.top=Ne.top,this.width=Ne.width,this.height=Ne.height,this.rotationAngle=Ne.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(pe.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ne.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(pe.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ne.containerTransformMatrix))},ne.prototype.scale=function(fe,Ne){Re.prototype.scale.call(this,fe,Ne);var We=this.rotatePoint({x:this.left,y:this.top}),we=this.unrotatePoint({x:We.x*fe,y:We.y*Ne});this.left=we.x,this.top=we.y,this.width=this.width*fe,this.height=this.height*Ne,this.adjustControlBox()},ne}(he),je=function(Re){function ne(fe,Ne,We){var we=Re.call(this,fe,Ne,We)||this;return we.fillColor="transparent",we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.opacity=1,we.setStrokeColor=we.setStrokeColor.bind(we),we.setFillColor=we.setFillColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.createVisual=we.createVisual.bind(we),we}return yt(ne,Re),ne.prototype.ownsTarget=function(fe){return!(!Re.prototype.ownsTarget.call(this,fe)&&fe!==this.visual)},ne.prototype.createVisual=function(){this.visual=x.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,Ne){Re.prototype.pointerDown.call(this,fe,Ne),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),x.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&&x.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(fe),this.stateChanged()},ne.prototype.setFillColor=function(fe){this.fillColor=fe,this.visual&&x.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ne.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.visual&&x.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.visual&&x.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 Ne=fe;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.opacity=Ne.opacity,this.createVisual(),Re.prototype.restoreState.call(this,fe),this.setSize()},ne.prototype.scale=function(fe,Ne){Re.prototype.scale.call(this,fe,Ne),this.setSize()},ne.title="Rectangle marker",ne}(be),ke=function(Re){function ne(fe,Ne,We,we){var ye=Re.call(this,fe,we||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ye.widths=[],ye.widthBoxes=[],ye.widths=Ne,ye.currentWidth=We,ye.setCurrentWidth=ye.setCurrentWidth.bind(ye),ye}return yt(ne,Re),ne.prototype.getUi=function(){var fe=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.widths.forEach(function(We){var we=document.createElement("div");we.style.display="flex",we.style.flexGrow="2",we.style.alignItems="center",we.style.justifyContent="space-between",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.borderColor=We===fe.currentWidth?fe.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){fe.setCurrentWidth(We,we)}),Ne.appendChild(we);var ye=document.createElement("div");ye.innerText=We.toString(),ye.style.marginRight="5px",we.appendChild(ye);var Oe=document.createElement("div");Oe.style.minHeight="20px",Oe.style.flexGrow="2",Oe.style.display="flex",Oe.style.alignItems="center";var $e=document.createElement("hr");$e.style.minWidth="20px",$e.style.border="0px",$e.style.borderTop=We+"px solid "+fe.uiStyleSettings.toolboxColor,$e.style.flexGrow="2",Oe.appendChild($e),we.appendChild(Oe),fe.widthBoxes.push(we)}),Ne},ne.prototype.setCurrentWidth=function(fe,Ne){var We=this;this.currentWidth=fe,this.widthBoxes.forEach(function(we){we.style.borderColor=we===Ne?We.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ne}(se),Be=function(Re){function ne(fe,Ne,We,we){var ye=Re.call(this,fe,we||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return ye.styles=[],ye.styleBoxes=[],ye.styles=Ne,ye.currentStyle=We,ye.setCurrentStyle=ye.setCurrentStyle.bind(ye),ye}return yt(ne,Re),ne.prototype.getUi=function(){var fe=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.styles.forEach(function(We){var we=document.createElement("div");we.style.display="flex",we.style.alignItems="center",we.style.justifyContent="space-between",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.overflow="hidden",we.style.maxWidth=100/fe.styles.length-5+"%",we.style.borderColor=We===fe.currentStyle?fe.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){fe.setCurrentStyle(We,we)}),Ne.appendChild(we);var ye=document.createElement("div");ye.style.minHeight="20px",ye.style.flexGrow="2",ye.style.overflow="hidden";var Oe=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+fe.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(We!==""?'stroke-dasharray="'+We+'"':"")+` />
</svg>`;ye.innerHTML=Oe,we.appendChild(ye),fe.styleBoxes.push(we)}),Ne},ne.prototype.setCurrentStyle=function(fe,Ne){var We=this;this.currentStyle=fe,this.styleBoxes.forEach(function(we){we.style.borderColor=we===Ne?We.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ne}(se),De=function(Re){function ne(fe,Ne,We){var we=Re.call(this,fe,Ne,We)||this;return we.strokeColor=We.defaultColor,we.strokeWidth=We.defaultStrokeWidth,we.strokeDasharray=We.defaultStrokeDasharray,we.strokePanel=new ae("Line color",We.defaultColorSet,We.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.strokeWidthPanel=new ke("Line width",We.defaultStrokeWidths,We.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Be("Line style",We.defaultStrokeDasharrays,We.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we}return yt(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}(je),Se=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Ee=function(Re){function ne(fe,Ne,We){var we=Re.call(this,fe,Ne,We)||this;return we.x1=0,we.y1=0,we.x2=0,we.y2=0,we.defaultLength=50,we.manipulationStartX=0,we.manipulationStartY=0,we.manipulationStartX1=0,we.manipulationStartY1=0,we.manipulationStartX2=0,we.manipulationStartY2=0,we.setupControlBox(),we}return yt(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,Ne){Re.prototype.pointerDown.call(this,fe,Ne),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(Ne)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ne)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ne.prototype.pointerUp=function(fe){var Ne=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",Ne==="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=x.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 ve;return fe.visual.transform.baseVal.appendItem(x.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,Ne,We){var we=fe.transform.baseVal.getItem(0);we.setTranslate(Ne,We),fe.transform.baseVal.replaceItem(we,0)},ne.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Re.prototype.getState.call(this))},ne.prototype.restoreState=function(fe){Re.prototype.restoreState.call(this,fe);var Ne=fe;this.x1=Ne.x1,this.y1=Ne.y1,this.x2=Ne.x2,this.y2=Ne.y2},ne.prototype.scale=function(fe,Ne){Re.prototype.scale.call(this,fe,Ne),this.x1=this.x1*fe,this.y1=this.y1*Ne,this.x2=this.x2*fe,this.y2=this.y2*Ne,this.adjustVisual(),this.adjustControlBox()},ne}(he),Ie=function(Re){function ne(fe,Ne,We){var we=Re.call(this,fe,Ne,We)||this;return we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.setStrokeColor=we.setStrokeColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.strokeColor=We.defaultColor,we.strokeWidth=We.defaultStrokeWidth,we.strokeDasharray=We.defaultStrokeDasharray,we.strokePanel=new ae("Line color",We.defaultColorSet,We.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.strokeWidthPanel=new ke("Line width",We.defaultStrokeWidths,We.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Be("Line style",We.defaultStrokeDasharrays,We.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we}return yt(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=x.createGroup(),this.selectorLine=x.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=x.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,Ne){Re.prototype.pointerDown.call(this,fe,Ne),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()),x.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),x.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),x.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 Ne=fe;this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.createVisual(),this.adjustVisual()},ne.typeName="LineMarker",ne.title="Line marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ne}(Ee),Me=function(Re){function ne(fe,Ne,We,we){var ye=Re.call(this,fe,we||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return ye.fonts=[],ye.fontBoxes=[],ye.fonts=Ne,ye.currentFont=We,ye.setCurrentFont=ye.setCurrentFont.bind(ye),ye}return yt(ne,Re),ne.prototype.getUi=function(){var fe=this,Ne=document.createElement("div");return Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.fonts.forEach(function(We){var we=document.createElement("div");we.style.display="inline-block",we.style.alignItems="center",we.style.justifyContent="space-between",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.overflow="hidden",we.style.maxWidth=100/fe.fonts.length-5+"%",we.style.borderColor=We===fe.currentFont?fe.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){fe.setCurrentFont(We,we)}),Ne.appendChild(we);var ye=document.createElement("div");ye.style.display="flex",ye.style.minHeight="20px",ye.style.flexGrow="2",ye.style.fontFamily=We,ye.style.overflow="hidden";var Oe=document.createElement("div");Oe.style.whiteSpace="nowrap",Oe.style.overflow="hidden",Oe.style.textOverflow="ellipsis",Oe.innerHTML="The quick brown fox jumps over the lazy dog",ye.appendChild(Oe),we.appendChild(ye),fe.fontBoxes.push(we)}),Ne},ne.prototype.setCurrentFont=function(fe,Ne){var We=this;this.currentFont=fe,this.fontBoxes.forEach(function(we){we.style.borderColor=we===Ne?We.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ne}(se),Le=function(Re){function ne(fe,Ne,We){var we=Re.call(this,fe,Ne,We)||this;return we.color="transparent",we.padding=5,we.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",we.text=we.DEFAULT_TEXT,we.isMoved=!1,we.color=We.defaultColor,we.fontFamily=We.defaultFontFamily,we.defaultSize={x:100,y:30},we.setColor=we.setColor.bind(we),we.setFont=we.setFont.bind(we),we.renderText=we.renderText.bind(we),we.sizeText=we.sizeText.bind(we),we.textEditDivClicked=we.textEditDivClicked.bind(we),we.showTextEditor=we.showTextEditor.bind(we),we.setSize=we.setSize.bind(we),we.positionTextEditor=we.positionTextEditor.bind(we),we.colorPanel=new ae("Color",We.defaultColorSet,We.defaultColor),we.colorPanel.onColorChanged=we.setColor,we.fontFamilyPanel=new Me("Font",We.defaultFontFamilies,We.defaultFontFamily),we.fontFamilyPanel.onFontChanged=we.setFont,we}return yt(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 Ne=!1;return this.textElement.childNodes.forEach(function(We){We===fe&&(Ne=!0)}),Ne},ne.prototype.createVisual=function(){this.visual=x.createGroup(),this.bgRectangle=x.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=x.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(x.createTransform()),this.textElement.transform.baseVal.appendItem(x.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ne.prototype.pointerDown=function(fe,Ne){Re.prototype.pointerDown.call(this,fe,Ne),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(Ne){fe.textElement.appendChild(x.createTSpan(Ne.trim()===""?" ":Ne.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ne.prototype.getTextScale=function(){var fe=this.textElement.getBBox(),Ne=1;if(fe.width>0&&fe.height>0){var We=(1*this.width-this.width*this.padding*2/100)/fe.width,we=(1*this.height-this.height*this.padding*2/100)/fe.height;Ne=Math.min(We,we)}return Ne},ne.prototype.getTextPosition=function(fe){var Ne=this.textElement.getBBox(),We=0,we=0;return Ne.width>0&&Ne.height>0&&(We=(this.width-Ne.width*fe)/2,we=this.height/2-Ne.height*fe/2),{x:We,y:we}},ne.prototype.sizeText=function(){var fe=this.textElement.getBBox(),Ne=this.getTextScale(),We=this.getTextPosition(Ne);We.y-=fe.y*Ne,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+We.x+"px, "+We.y+"px) scale("+Ne+", "+Ne+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(We.x,We.y),this.textElement.transform.baseVal.getItem(1).setScale(Ne,Ne))},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&&(x.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),x.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ne.prototype.pointerUp=function(fe){var Ne=this.state;Ne==="creating"&&(this._suppressMarkerCreateEvent=!0),Re.prototype.pointerUp.call(this,fe),this.setSize(),(Ne==="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(Ne){Ne.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ne=Number.parseFloat(fe.textEditor.style.fontSize);fe.textEditor.clientWidth>=Number.parseInt(fe.textEditor.style.maxWidth)&&Ne>.9;)Ne-=.1,fe.textEditor.style.fontSize=Math.max(Ne,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ne){Ne.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ne){if(Ne.clipboardData){var We=Ne.clipboardData.getData("text"),we=window.getSelection();if(!we.rangeCount)return!1;we.deleteFromDocument(),we.getRangeAt(0).insertNode(document.createTextNode(We)),Ne.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(),Ne=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),We=this.textElement.getBBox(),we={x:We.width*fe,y:We.height*fe};Ne.x-=we.x/2,Ne.y-=we.y/2,this.textEditor.style.top=Ne.y+"px",this.textEditor.style.left=Ne.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ne.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,Ne){Re.prototype.dblClick.call(this,fe,Ne),this.showTextEditor()},ne.prototype.setColor=function(fe){this.textElement&&x.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&&x.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 Ne=fe;this.color=Ne.color,this.fontFamily=Ne.fontFamily,this.padding=Ne.padding,this.text=Ne.text,this.createVisual(),Re.prototype.restoreState.call(this,fe),this.setSize()},ne.prototype.scale=function(fe,Ne){Re.prototype.scale.call(this,fe,Ne),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}(be),Ae=function(Re){function ne(fe,Ne,We){var we=Re.call(this,fe,Ne,We)||this;return we.color="transparent",we.lineWidth=3,we.drawing=!1,we.pixelRatio=1,we.color=We.defaultColor,we.lineWidth=We.defaultStrokeWidth,we.pixelRatio=We.freehandPixelRatio,we.setColor=we.setColor.bind(we),we.addCanvas=we.addCanvas.bind(we),we.finishCreation=we.finishCreation.bind(we),we.setLineWidth=we.setLineWidth.bind(we),we.colorPanel=new ae("Color",We.defaultColorSet,We.defaultColor),we.colorPanel.onColorChanged=we.setColor,we.lineWidthPanel=new ke("Line width",We.defaultStrokeWidths,We.defaultStrokeWidth),we.lineWidthPanel.onWidthChanged=we.setLineWidth,we}return yt(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=x.createGroup(),this.drawingImage=x.createImage(),this.visual.appendChild(this.drawingImage);var fe=x.createTransform();this.visual.transform.baseVal.appendItem(fe),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(fe,Ne){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,Ne)},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),x.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),x.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),Ne=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],We=Ne[0],we=Ne[1],ye=Ne[2],Oe=Ne[3],$e=!1,Ze=0;Ze<this.canvasElement.height;Ze++)for(var Xe=0;Xe<this.canvasElement.width;Xe++)fe.data[Ze*this.canvasElement.width*4+4*Xe+3]>0&&($e=!0,Ze<we&&(we=Ze),Xe<We&&(We=Xe),Ze>Oe&&(Oe=Ze),Xe>ye&&(ye=Xe));if($e){this.left=We/this.pixelRatio,this.top=we/this.pixelRatio,this.width=(ye-We)/this.pixelRatio,this.height=(Oe-we)/this.pixelRatio;var at=document.createElement("canvas");at.width=ye-We,at.height=Oe-we,at.getContext("2d").putImageData(this.canvasContext.getImageData(We,we,ye-We,Oe-we),0,0),this.drawingImgUrl=at.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ne.prototype.setDrawingImage=function(){x.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),x.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,Ne){Re.prototype.scale.call(this,fe,Ne),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}(be),Pe=function(Re){function ne(fe,Ne,We){var we=Re.call(this,fe,We||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return we.typeBoxes=[],we.currentType=Ne,we.setCurrentType=we.setCurrentType.bind(we),we}return yt(ne,Re),ne.prototype.getUi=function(){var fe=this,Ne=document.createElement("div");Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2";for(var We=function(Oe){var $e="both";switch(Oe){case 0:$e="both";break;case 1:$e="start";break;case 2:$e="end";break;case 3:$e="none"}var Ze=document.createElement("div");if(Ze.style.display="flex",Ze.style.flexGrow="2",Ze.style.alignItems="center",Ze.style.justifyContent="space-between",Ze.style.padding="5px",Ze.style.borderWidth="2px",Ze.style.borderStyle="solid",Ze.style.borderColor=$e===we.currentType?we.uiStyleSettings.toolboxAccentColor:"transparent",Ze.addEventListener("click",function(){fe.setCurrentType($e,Ze)}),Ne.appendChild(Ze),$e==="both"||$e==="start"){var Xe=document.createElement("div");Xe.style.display="flex",Xe.style.alignItems="center",Xe.style.minHeight="20px",Xe.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(we.uiStyleSettings!==void 0?we.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Xe.style.marginLeft="5px",Ze.appendChild(Xe)}var at=document.createElement("div");at.style.display="flex",at.style.alignItems="center",at.style.minHeight="20px",at.style.flexGrow="2";var lt=document.createElement("hr");if(lt.style.minWidth="20px",lt.style.border="0px",lt.style.borderTop="3px solid "+(we.uiStyleSettings!==void 0?we.uiStyleSettings.toolboxColor:"#eeeeee"),lt.style.flexGrow="2",at.appendChild(lt),Ze.appendChild(at),$e==="both"||$e==="end"){var mt=document.createElement("div");mt.style.display="flex",mt.style.alignItems="center",mt.style.minHeight="20px",mt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(we.uiStyleSettings!==void 0?we.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,mt.style.marginRight="5px",Ze.appendChild(mt)}we.typeBoxes.push(Ze)},we=this,ye=0;ye<4;ye++)We(ye);return Ne},ne.prototype.setCurrentType=function(fe,Ne){var We=this;this.currentType=fe,this.typeBoxes.forEach(function(we){we.style.borderColor=we===Ne?We.uiStyleSettings!==void 0?We.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ne}(se),Ue=function(Re){function ne(fe,Ne,We){var we=Re.call(this,fe,Ne,We)||this;return we.arrowType="end",we.arrowBaseHeight=10,we.arrowBaseWidth=10,we.getArrowPoints=we.getArrowPoints.bind(we),we.setArrowType=we.setArrowType.bind(we),we.arrowTypePanel=new Pe("Arrow type","end"),we.arrowTypePanel.onArrowTypeChanged=we.setArrowType,we}return yt(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,Ne){var We=this.arrowBaseWidth+2*this.strokeWidth,we=this.arrowBaseHeight+2*this.strokeWidth;return fe-We/2+","+(Ne+we/2)+" "+fe+","+(Ne-we/2)+" "+(fe+We/2)+","+(Ne+we/2)},ne.prototype.createTips=function(){this.arrow1=x.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(x.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=x.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(x.createTransform()),this.visual.appendChild(this.arrow2)},ne.prototype.pointerDown=function(fe,Ne){Re.prototype.pointerDown.call(this,fe,Ne),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",x.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),x.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 Ne=this.arrow1.transform.baseVal.getItem(0);Ne.setRotate(fe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ne,0);var We=this.arrow2.transform.baseVal.getItem(0);We.setRotate(fe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(We,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 Ne=fe;this.arrowType=Ne.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}(Ie),He=function(Re){function ne(fe,Ne,We){var we=Re.call(this,fe,Ne,We)||this;return we.fillColor=We.defaultFillColor,we.strokeWidth=0,we.fillPanel=new ae("Color",We.defaultColorSet,We.defaultFillColor),we.fillPanel.onColorChanged=we.setFillColor,we}return yt(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}(je),Je=function(Re){function ne(fe,Ne,We,we){var ye=Re.call(this,fe,we||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return ye.opacities=[],ye.opacityBoxes=[],ye.opacities=Ne,ye.currentOpacity=We,ye.setCurrentOpacity=ye.setCurrentOpacity.bind(ye),ye}return yt(ne,Re),ne.prototype.getUi=function(){var fe=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",Ne.style.justifyContent="space-between",this.opacities.forEach(function(We){var we=document.createElement("div");we.style.display="flex",we.style.alignItems="center",we.style.justifyContent="center",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.borderColor=We===fe.currentOpacity?fe.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){fe.setCurrentOpacity(We,we)}),Ne.appendChild(we);var ye=document.createElement("div");ye.innerText=100*We+"%",we.appendChild(ye),fe.opacityBoxes.push(we)}),Ne},ne.prototype.setCurrentOpacity=function(fe,Ne){var We=this;this.currentOpacity=fe,this.opacityBoxes.forEach(function(we){we.style.borderColor=we===Ne?We.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ne}(se),st=function(Re){function ne(fe,Ne,We){var we=Re.call(this,fe,Ne,We)||this;return we.setOpacity=we.setOpacity.bind(we),we.fillColor=We.defaultHighlightColor,we.strokeWidth=0,we.opacity=We.defaultHighlightOpacity,we.fillPanel=new ae("Color",We.defaultColorSet,we.fillColor),we.fillPanel.onColorChanged=we.setFillColor,we.opacityPanel=new Je("Opacity",We.defaultOpacitySteps,we.opacity),we.opacityPanel.onOpacityChanged=we.setOpacity,we}return yt(ne,Re),ne.prototype.setOpacity=function(fe){this.opacity=fe,this.visual&&x.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}(He),_e='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',Ke='<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>',nt=function(Re){function ne(fe,Ne,We){var we=Re.call(this,fe,Ne,We)||this;return we.bgColor="transparent",we.tipPosition={x:0,y:0},we.tipBase1Position={x:0,y:0},we.tipBase2Position={x:0,y:0},we.tipMoving=!1,we.color=We.defaultStrokeColor,we.bgColor=We.defaultFillColor,we.fontFamily=We.defaultFontFamily,we.defaultSize={x:100,y:30},we.setBgColor=we.setBgColor.bind(we),we.getTipPoints=we.getTipPoints.bind(we),we.positionTip=we.positionTip.bind(we),we.setTipPoints=we.setTipPoints.bind(we),we.colorPanel=new ae("Text color",We.defaultColorSet,we.color,_e),we.colorPanel.onColorChanged=we.setColor,we.bgColorPanel=new ae("Fill color",We.defaultColorSet,we.bgColor,Ke),we.bgColorPanel.onColorChanged=we.setBgColor,we.fontFamilyPanel=new Me("Font",We.defaultFontFamilies,We.defaultFontFamily),we.fontFamilyPanel.onFontChanged=we.setFont,we.tipGrip=new ve,we.tipGrip.visual.transform.baseVal.appendItem(x.createTransform()),we.controlBox.appendChild(we.tipGrip.visual),we}return yt(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(){x.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=x.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ne.prototype.pointerDown=function(fe,Ne){this.state==="new"&&Re.prototype.pointerDown.call(this,fe,Ne),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ne)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Re.prototype.pointerDown.call(this,fe,Ne)},ne.prototype.pointerUp=function(fe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Re.prototype.pointerUp.call(this,fe);else{var Ne=this.state==="creating";Re.prototype.pointerUp.call(this,fe),this.setTipPoints(Ne),this.positionTip()}},ne.prototype.manipulate=function(fe){if(this.tipMoving){var Ne=this.unrotatePoint(fe);this.tipPosition={x:Ne.x-this.manipulationStartLeft,y:Ne.y-this.manipulationStartTop},this.positionTip()}else Re.prototype.manipulate.call(this,fe)},ne.prototype.setBgColor=function(fe){this.bgRectangle&&this.tip&&(x.setAttributes(this.bgRectangle,[["fill",fe]]),x.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 Ne=Math.min(this.height/2,15),We=this.height/5;fe&&(this.tipPosition={x:Ne+We/2,y:this.height+20});var we=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?we<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(We=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:Ne,y:0},this.tipBase2Position={x:Ne+We,y:0}):(this.tipBase1Position={x:0,y:Ne},this.tipBase2Position={x:0,y:Ne+We}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?we<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(We=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ne-We,y:0},this.tipBase2Position={x:this.width-Ne,y:0}):(this.tipBase1Position={x:this.width,y:Ne},this.tipBase2Position={x:this.width,y:Ne+We}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?we<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(We=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ne-We,y:this.height},this.tipBase2Position={x:this.width-Ne,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ne-We},this.tipBase2Position={x:this.width,y:this.height-Ne}):we<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(We=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:Ne,y:this.height},this.tipBase2Position={x:Ne+We,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ne},this.tipBase2Position={x:0,y:this.height-Ne-We})},ne.prototype.resize=function(fe){Re.prototype.resize.call(this,fe),this.positionTip()},ne.prototype.positionTip=function(){x.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 Ne=fe;this.bgColor=Ne.bgColor,this.tipPosition=Ne.tipPosition,Re.prototype.restoreState.call(this,fe),this.createTip(),this.setTipPoints()},ne.prototype.scale=function(fe,Ne){Re.prototype.scale.call(this,fe,Ne),this.tipPosition={x:this.tipPosition.x*fe,y:this.tipPosition.y*Ne},this.positionTip()},ne.typeName="CalloutMarker",ne.title="Callout marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',ne}(Le),rt=function(Re){function ne(fe,Ne,We){var we=Re.call(this,fe,Ne,We)||this;return we.fillColor="transparent",we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.opacity=1,we.strokeColor=We.defaultColor,we.strokeWidth=We.defaultStrokeWidth,we.strokeDasharray=We.defaultStrokeDasharray,we.fillColor=We.defaultFillColor,we.setStrokeColor=we.setStrokeColor.bind(we),we.setFillColor=we.setFillColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.setOpacity=we.setOpacity.bind(we),we.createVisual=we.createVisual.bind(we),we.strokePanel=new ae("Line color",ge(We.defaultColorSet,["transparent"]),We.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.fillPanel=new ae("Fill color",ge(We.defaultColorSet,["transparent"]),we.fillColor,Ke),we.fillPanel.onColorChanged=we.setFillColor,we.strokeWidthPanel=new ke("Line width",We.defaultStrokeWidths,We.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Be("Line style",We.defaultStrokeDasharrays,We.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we.opacityPanel=new Je("Opacity",We.defaultOpacitySteps,we.opacity),we.opacityPanel.onOpacityChanged=we.setOpacity,we}return yt(ne,Re),ne.prototype.ownsTarget=function(fe){return!(!Re.prototype.ownsTarget.call(this,fe)&&fe!==this.visual)},ne.prototype.createVisual=function(){this.visual=x.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,Ne){Re.prototype.pointerDown.call(this,fe,Ne),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),x.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&&x.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(fe),this.stateChanged()},ne.prototype.setFillColor=function(fe){this.fillColor=fe,this.visual&&x.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(fe),this.stateChanged()},ne.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.visual&&x.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.visual&&x.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ne.prototype.setOpacity=function(fe){this.opacity=fe,this.visual&&x.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 Ne=fe;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.opacity=Ne.opacity,this.createVisual(),Re.prototype.restoreState.call(this,fe),this.setSize()},ne.prototype.scale=function(fe,Ne){Re.prototype.scale.call(this,fe,Ne),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}(be),et=function(Re){function ne(fe,Ne,We){return Re.call(this,fe,Ne,We)||this}return yt(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=x.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(x.createTransform()),this.visual.appendChild(this.tip1),this.tip2=x.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(x.createTransform()),this.visual.appendChild(this.tip2)},ne.prototype.pointerDown=function(fe,Ne){Re.prototype.pointerDown.call(this,fe,Ne),this.state==="creating"&&this.createTips()},ne.prototype.adjustVisual=function(){if(Re.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(x.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()]]),x.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),Ne=this.tip1.transform.baseVal.getItem(0);Ne.setRotate(fe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ne,0);var We=this.tip2.transform.baseVal.getItem(0);We.setRotate(fe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(We,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}(Ie),Ve=function(Re){function ne(fe,Ne,We){var we=Re.call(this,fe,Ne,We)||this;return we.strokePanel.colors=We.defaultColorSet,we.fillColor="transparent",we}return yt(ne,Re),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var fe=Re.prototype.getState.call(this);return fe.typeName=ne.typeName,fe},ne.typeName="EllipseFrameMarker",ne.title="Ellipse frame marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ne}(rt),Ye=function(){function Re(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Re.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Re.prototype.addUndoStep=function(ne){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ne)||(this.undoStack.push(ne),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ne)&&this.redoStack.splice(0,this.redoStack.length))},Re.prototype.replaceLastUndoStep=function(ne){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ne)},Re.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Re.prototype.undo=function(){if(this.undoStack.length>1){var ne=this.undoStack.pop();return ne!==void 0&&this.redoStack.push(ne),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Re.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Re}(),Ge=function(Re){function ne(fe,Ne,We){var we=Re.call(this,fe,Ne,We)||this;return we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.curveX=0,we.curveY=0,we.manipulationStartCurveX=0,we.manipulationStartCurveY=0,we.setStrokeColor=we.setStrokeColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.positionGrips=we.positionGrips.bind(we),we.addControlGrips=we.addControlGrips.bind(we),we.adjustVisual=we.adjustVisual.bind(we),we.setupControlBox=we.setupControlBox.bind(we),we.resize=we.resize.bind(we),we.strokeColor=We.defaultColor,we.strokeWidth=We.defaultStrokeWidth,we.strokeDasharray=We.defaultStrokeDasharray,we.strokePanel=new ae("Line color",We.defaultColorSet,We.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.strokeWidthPanel=new ke("Line width",We.defaultStrokeWidths,We.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Be("Line style",We.defaultStrokeDasharrays,We.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we}return yt(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=x.createGroup(),this.selectorCurve=x.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=x.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,Ne){Re.prototype.pointerDown.call(this,fe,Ne),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(Ne)&&(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()),x.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),x.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),x.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ne.prototype.setupControlBox=function(){Re.prototype.setupControlBox.call(this),this.curveControlLine1=x.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=x.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,Ne){this.curveX=this.curveX*fe,this.curveY=this.curveY*Ne,Re.prototype.scale.call(this,fe,Ne)},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 Ne=fe;this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.curveX=Ne.curveX,this.curveY=Ne.curveY,this.createVisual(),this.adjustVisual()},ne.typeName="CurveMarker",ne.title="Curve marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',ne}(Ee),it=function(Re){function ne(fe,Ne,We){var we=Re.call(this,fe,Ne,We)||this;return we.fillColor="transparent",we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.textColor="transparent",we.fontSize="1rem",we.isMoved=!1,we.captionText="Caption",we.PADDING=5,we.captionBoxWidth=0,we.captionBoxHeight=0,we.strokeColor=We.defaultColor,we.strokeWidth=We.defaultStrokeWidth,we.strokeDasharray=We.defaultStrokeDasharray,we.fillColor=We.defaultFillColor,we.textColor=We.defaultStrokeColor,we.fontFamily=We.defaultFontFamily,we.fontSize=We.defaultCaptionFontSize,we.captionText=We.defaultCaptionText,we.setStrokeColor=we.setStrokeColor.bind(we),we.setFillColor=we.setFillColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.createVisual=we.createVisual.bind(we),we.sizeCaption=we.sizeCaption.bind(we),we.setCaptionText=we.setCaptionText.bind(we),we.showTextEditor=we.showTextEditor.bind(we),we.positionTextEditor=we.positionTextEditor.bind(we),we.finishTextEditing=we.finishTextEditing.bind(we),we.setFont=we.setFont.bind(we),we.setTextColor=we.setTextColor.bind(we),we.strokePanel=new ae("Line color",ge(We.defaultColorSet,["transparent"]),we.strokeColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.fillPanel=new ae("Fill color",ge(We.defaultColorSet,["transparent"]),we.fillColor,Ke),we.fillPanel.onColorChanged=we.setFillColor,we.strokeWidthPanel=new ke("Line width",We.defaultStrokeWidths,We.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Be("Line style",We.defaultStrokeDasharrays,We.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we.fontFamilyPanel=new Me("Font",We.defaultFontFamilies,We.defaultFontFamily),we.fontFamilyPanel.onFontChanged=we.setFont,we.textColorPanel=new ae("Text color",We.defaultColorSet,we.textColor,_e),we.textColorPanel.onColorChanged=we.setTextColor,we}return yt(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=x.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=x.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=x.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=x.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,Ne){Re.prototype.pointerDown.call(this,fe,Ne),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),x.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')"]]),x.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(Ne){Ne.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ne){Ne.key==="Enter"&&fe.finishTextEditing(fe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ne){Ne.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&&x.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&&x.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),x.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,Ne){Re.prototype.dblClick.call(this,fe,Ne),this.showTextEditor()},ne.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.frame&&x.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(fe),this.stateChanged()},ne.prototype.setFillColor=function(fe){this.fillColor=fe,this.captionBg&&x.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(fe),this.stateChanged()},ne.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.frame&&x.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.frame&&x.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 Ne=fe;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.textColor=Ne.textColor,this.fontFamily=Ne.fontFamily,this.captionText=Ne.captionText,this.fontSize=Ne.fontSize,this.createVisual(),Re.prototype.restoreState.call(this,fe),this.setSize()},ne.prototype.scale=function(fe,Ne){Re.prototype.scale.call(this,fe,Ne),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}(be),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}(),vt=function(Re){function ne(fe,Ne,We){var we=Re.call(this,fe,!1)||this;return we.dataUrl=Ne,we.state=We,we}return yt(ne,Re),ne}(qe),ot=function(Re){function ne(fe,Ne,We){We===void 0&&(We=!1);var we=Re.call(this,fe,We)||this;return we.marker=Ne,we}return yt(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 Ne=this[ne].indexOf(fe);Ne>-1&&this[ne].splice(Ne,1)},Re}(),Fe=function(){function Re(ne){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Se,this._isOpen=!1,this.undoRedoManager=new Ye,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Qe,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Re.instanceCounter++,this.styles=new ee(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ne,this.targetRoot=document.body,this.width=ne.clientWidth,this.height=ne.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(Re.prototype,"ALL_MARKER_TYPES",{get:function(){return[De,Ae,Ue,Le,Ve,rt,st,nt,et,He,Ie,Ge,it]},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[De,Ae,Ue,Le,rt,st,nt]},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"BASIC_MARKER_TYPES",{get:function(){return[De,Ae,Ue,Le,st]},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(Ne){if(typeof Ne=="string"){var We=fe.ALL_MARKER_TYPES.find(function(we){return we.typeName===Ne});We!==void 0&&fe._availableMarkerTypes.push(We)}else fe._availableMarkerTypes.push(Ne)})},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(),z.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 a(this,void 0,void 0,function(){var ne;return Te(this,function(fe){switch(fe.label){case 0:return this.setCurrentMarker(),(ne=new ie).naturalSize=this.renderAtNaturalSize,ne.imageType=this.renderImageType,ne.imageQuality=this.renderImageQuality,ne.markersOnly=this.renderMarkersOnly,ne.width=this.renderWidth,ne.height=this.renderHeight,[4,ne.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return fe.sent(),[4,ne.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,fe.sent()]}})})},Re.prototype.close=function(ne){var fe=this;if(ne===void 0&&(ne=!1),this.isOpen){var Ne=!1;ne||this.eventListeners.beforeclose.forEach(function(We){var we=new qe(fe,!0);We(we),we.defaultPrevented&&(Ne=!0)}),Ne||(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(We){return We(new qe(fe))}),this.detachEvents(),this._isOpen=!1)}},Re.prototype.addMarkersToToolbar=function(){for(var ne,fe=[],Ne=0;Ne<arguments.length;Ne++)fe[Ne]=arguments[Ne];(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,Ne=fe<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ne;this.resize(fe,Ne)},Re.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Re.prototype.resize=function(ne,fe){this._isResizing=!0;var Ne=ne/this.imageWidth,We=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(Ne,We),this._isResizing=!1},Re.prototype.scaleMarkers=function(ne,fe){var Ne,We=this;this._currentMarker&&this._currentMarker instanceof Le?this._currentMarker.scale(ne,fe):(Ne=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(we){we!==We._currentMarker&&we.scale(ne,fe)}),Ne!==void 0&&this.setCurrentMarker(Ne)},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=[],Ne=0;Ne<arguments.length;Ne++)fe[Ne]=arguments[Ne];this.defs=x.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 re(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 te(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(We){var we=new ot(ne,ne._currentMarker,!0);We(we),we.defaultPrevented&&(fe=!0)}),!fe){var Ne=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(We){return We(new ot(ne,Ne))})}}},Re.prototype.clear=function(){var ne=this,fe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ye){var Oe=new ot(ne,void 0,!0);ye(Oe),Oe.defaultPrevented&&(fe=!0)}),!fe)){this.setCurrentMarker();for(var Ne=function(ye){var Oe=We.markers[ye];We.setCurrentMarker(We.markers[ye]),We._currentMarker.dispose(),We.markerImage.removeChild(We._currentMarker.container),We.markers.splice(We.markers.indexOf(We._currentMarker),1),We.eventListeners.markerdelete.forEach(function($e){return $e(new ot(ne,Oe))})},We=this,we=this.markers.length-1;we>=0;we--)Ne(we);this.addUndoStep()}},Object.defineProperty(Re.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Re.prototype.showNotesEditor=function(){var ne;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(ne=this._currentMarker.notes)!==null&&ne!==void 0?ne:"",this.overlayContainer.appendChild(this.notesArea))},Re.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},Re.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Re.prototype.addUndoStep=function(){var ne=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var fe=this.getState(),Ne=this.undoRedoManager.getLastUndoStep();if(!Ne||Ne.width===fe.width&&Ne.height===fe.height){var We=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(fe),We<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(we){return we(new qe(ne))})}else this.undoRedoManager.replaceLastUndoStep(fe),this.eventListeners.statechange.forEach(function(we){return we(new qe(ne))})}},Re.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Re.prototype.undoStep=function(){var ne=this,fe=this.undoRedoManager.undo();fe!==void 0&&(this.restoreState(fe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ne){return Ne(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(Ne){return Ne(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 a(this,void 0,void 0,function(){var ne,fe,Ne=this;return Te(this,function(We){switch(We.label){case 0:return[4,this.render()];case 1:return ne=We.sent(),fe=this.getState(),this.eventListeners.render.forEach(function(we){return we(new vt(Ne,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(Ne){return fe.markers.push(Ne.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(Ne){var We=fe._availableMarkerTypes.find(function(ye){return ye.typeName===Ne.typeName});if(We!==void 0){var we=fe.addNewMarker(We);we.restoreState(Ne),fe.markers.push(we)}}),ne.width&&ne.height&&(ne.width!==this.imageWidth||ne.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ne.width,this.imageHeight/ne.height),this.eventListeners.restorestate.forEach(function(Ne){return Ne(new qe(fe))})},Re.prototype.addNewMarker=function(ne){var fe=x.createGroup();return this.markerImage.appendChild(fe),new ne(fe,this.overlayContainer,this.settings)},Re.prototype.createNewMarker=function(ne){var fe,Ne=this;(fe=typeof ne=="string"?this._availableMarkerTypes.find(function(We){return We.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(We){return We(new ot(Ne,Ne._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 Ae&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ae):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ne){return Ne(new ot(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(Ne){return Ne(new ot(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(Ne){return Ne(new ot(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(Ne){return Ne(new ot(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(Ne){return Ne.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(Ne){return Ne.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 Ne=this.markerImage.getBoundingClientRect();return{x:(ne-Ne.left)/this.zoomLevel,y:(fe-Ne.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){z.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(on,Lt,Ce){"use strict";Ce.d(Lt,{ZP:function(){return z}});var le=Ce(72190),yt=Ce(59301),a=Ce(47273),Te=0,ge=(0,a.Z)();function x(){var ie;return ge?(ie=Te,Te+=1):ie="TEST_OR_SSR",ie}function z(ie){var oe=yt.useState(),ee=(0,le.Z)(oe,2),ue=ee[0],E=ee[1];return yt.useEffect(function(){E("rc_select_".concat(x()))},[]),ie||ue}},37463:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Ac:function(){return pt},Xo:function(){return kt},Wx:function(){return It},ZP:function(){return wr},lk:function(){return pe}});var le=Ce(60499),yt=Ce(77654),a=Ce(18642),Te=Ce(85899),ge=Ce(72190),x=Ce(42244),z=Ce(43749),ie=Ce(18929),oe=Ce(48736),ee=Ce(59301),ue=Ce(92310),E=Ce.n(ue),re=Ce(34280),te=Ce(49658),se=Ce(8654),ae=function(Xt){var Et=Xt.className,Dt=Xt.customizeIcon,Tt=Xt.customizeIconProps,_t=Xt.children,bt=Xt.onMouseDown,Zt=Xt.onClick,Kt=typeof Dt=="function"?Dt(Tt):Dt;return ee.createElement("span",{className:Et,onMouseDown:function(Ft){Ft.preventDefault(),bt==null||bt(Ft)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Zt,"aria-hidden":!0},Kt!==void 0?Kt:ee.createElement("span",{className:E()(Et.split(/\s+/).map(function(Yt){return"".concat(Yt,"-icon")}))},_t))},he=ae,me=function(Xt,Et,Dt,Tt,_t){var bt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Zt=arguments.length>6?arguments[6]:void 0,Kt=arguments.length>7?arguments[7]:void 0,Yt=ee.useMemo(function(){if((0,z.Z)(Tt)==="object")return Tt.clearIcon;if(_t)return _t},[Tt,_t]),Ft=ee.useMemo(function(){return!!(!bt&&Tt&&(Dt.length||Zt)&&!(Kt==="combobox"&&Zt===""))},[Tt,bt,Dt.length,Zt,Kt]);return{allowClear:Ft,clearIcon:ee.createElement(he,{className:"".concat(Xt,"-clear"),onMouseDown:Et,customizeIcon:Yt},"\xD7")}},ve=ee.createContext(null);function pe(){return ee.useContext(ve)}function be(){var Rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Xt=ee.useState(!1),Et=(0,ge.Z)(Xt,2),Dt=Et[0],Tt=Et[1],_t=ee.useRef(null),bt=function(){window.clearTimeout(_t.current)};ee.useEffect(function(){return bt},[]);var Zt=function(Yt,Ft){bt(),_t.current=window.setTimeout(function(){Tt(Yt),Ft&&Ft()},Rt)};return[Dt,Zt,bt]}function je(){var Rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Xt=ee.useRef(null),Et=ee.useRef(null);ee.useEffect(function(){return function(){window.clearTimeout(Et.current)}},[]);function Dt(Tt){(Tt||Xt.current===null)&&(Xt.current=Tt),window.clearTimeout(Et.current),Et.current=window.setTimeout(function(){Xt.current=null},Rt)}return[function(){return Xt.current},Dt]}function ke(Rt,Xt,Et,Dt){var Tt=ee.useRef(null);Tt.current={open:Xt,triggerOpen:Et,customizedTrigger:Dt},ee.useEffect(function(){function _t(bt){var Zt;if(!((Zt=Tt.current)!==null&&Zt!==void 0&&Zt.customizedTrigger)){var Kt=bt.target;Kt.shadowRoot&&bt.composed&&(Kt=bt.composedPath()[0]||Kt),Tt.current.open&&Rt().filter(function(Yt){return Yt}).every(function(Yt){return!Yt.contains(Kt)&&Yt!==Kt})&&Tt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",_t),function(){return window.removeEventListener("mousedown",_t)}},[])}var Be=Ce(10228);function De(Rt){return Rt&&![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(Rt)}var Se=Ce(26112),Ee=Ce(83836);function Ie(Rt,Xt,Et){var Dt=(0,Te.Z)((0,Te.Z)({},Rt),Et?Xt:{});return Object.keys(Xt).forEach(function(Tt){var _t=Xt[Tt];typeof _t=="function"&&(Dt[Tt]=function(){for(var bt,Zt=arguments.length,Kt=new Array(Zt),Yt=0;Yt<Zt;Yt++)Kt[Yt]=arguments[Yt];return _t.apply(void 0,Kt),(bt=Rt[Tt])===null||bt===void 0?void 0:bt.call.apply(bt,[Rt].concat(Kt))})}),Dt}var Me=Ie,Le=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Ae=function(Xt,Et){var Dt=Xt.prefixCls,Tt=Xt.id,_t=Xt.inputElement,bt=Xt.autoFocus,Zt=Xt.autoComplete,Kt=Xt.editable,Yt=Xt.activeDescendantId,Ft=Xt.value,$t=Xt.open,zt=Xt.attrs,Wt=(0,x.Z)(Xt,Le),hn=_t||ee.createElement("input",null),mn=hn,In=mn.ref,er=mn.props;return(0,oe.Kp)(!("maxLength"in hn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),hn=ee.cloneElement(hn,(0,Te.Z)((0,Te.Z)((0,Te.Z)({type:"search"},Me(Wt,er,!0)),{},{id:Tt,ref:(0,se.sQ)(Et,In),autoComplete:Zt||"off",autoFocus:bt,className:E()("".concat(Dt,"-selection-search-input"),er==null?void 0:er.className),role:"combobox","aria-expanded":$t||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Tt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Tt,"_list"),"aria-activedescendant":$t?Yt:void 0},zt),{},{value:Kt?Ft:"",readOnly:!Kt,unselectable:Kt?null:"on",style:(0,Te.Z)((0,Te.Z)({},er.style),{},{opacity:Kt?null:0})})),hn},Pe=ee.forwardRef(Ae),Ue=Pe;function He(Rt){return Array.isArray(Rt)?Rt:Rt!==void 0?[Rt]:[]}var Je=typeof window!="undefined"&&window.document&&window.document.documentElement,st=Je;function _e(Rt){return Rt!=null}function Ke(Rt){return!Rt&&Rt!==0}function nt(Rt){return["string","number"].includes((0,z.Z)(Rt))}function rt(Rt){var Xt=void 0;return Rt&&(nt(Rt.title)?Xt=Rt.title.toString():nt(Rt.label)&&(Xt=Rt.label.toString())),Xt}function et(Rt,Xt){st?ee.useLayoutEffect(Rt,Xt):ee.useEffect(Rt,Xt)}function Ve(Rt){var Xt;return(Xt=Rt.key)!==null&&Xt!==void 0?Xt:Rt.value}var Ye=function(Xt){Xt.preventDefault(),Xt.stopPropagation()},Ge=function(Xt){var Et=Xt.id,Dt=Xt.prefixCls,Tt=Xt.values,_t=Xt.open,bt=Xt.searchValue,Zt=Xt.autoClearSearchValue,Kt=Xt.inputRef,Yt=Xt.placeholder,Ft=Xt.disabled,$t=Xt.mode,zt=Xt.showSearch,Wt=Xt.autoFocus,hn=Xt.autoComplete,mn=Xt.activeDescendantId,In=Xt.tabIndex,er=Xt.removeIcon,ar=Xt.maxTagCount,fr=Xt.maxTagTextLength,Jn=Xt.maxTagPlaceholder,Kn=Jn===void 0?function(Ln){return"+ ".concat(Ln.length," ...")}:Jn,$n=Xt.tagRender,dr=Xt.onToggleOpen,Tr=Xt.onRemove,Cr=Xt.onInputChange,Or=Xt.onInputPaste,Vn=Xt.onInputKeyDown,xr=Xt.onInputMouseDown,hr=Xt.onInputCompositionStart,Hr=Xt.onInputCompositionEnd,Xr=Xt.onInputBlur,Ur=ee.useRef(null),Kr=(0,ee.useState)(0),ri=(0,ge.Z)(Kr,2),Fr=ri[0],qr=ri[1],Pr=(0,ee.useState)(!1),ei=(0,ge.Z)(Pr,2),ui=ei[0],ki=ei[1],mi="".concat(Dt,"-selection"),xi=_t||$t==="multiple"&&Zt===!1||$t==="tags"?bt:"",hi=$t==="tags"||$t==="multiple"&&Zt===!1||zt&&(_t||ui);et(function(){qr(Ur.current.scrollWidth)},[xi]);var ir=function(jn,tr,ur,Nn,Sn){return ee.createElement("span",{title:rt(jn),className:E()("".concat(mi,"-item"),(0,a.Z)({},"".concat(mi,"-item-disabled"),ur))},ee.createElement("span",{className:"".concat(mi,"-item-content")},tr),Nn&&ee.createElement(he,{className:"".concat(mi,"-item-remove"),onMouseDown:Ye,onClick:Sn,customizeIcon:er},"\xD7"))},Qn=function(jn,tr,ur,Nn,Sn,Un){var rr=function(wi){Ye(wi),dr(!_t)};return ee.createElement("span",{onMouseDown:rr},$n({label:tr,value:jn,disabled:ur,closable:Nn,onClose:Sn,isMaxTag:!!Un}))},gr=function(jn){var tr=jn.disabled,ur=jn.label,Nn=jn.value,Sn=!Ft&&!tr,Un=ur;if(typeof fr=="number"&&(typeof ur=="string"||typeof ur=="number")){var rr=String(Un);rr.length>fr&&(Un="".concat(rr.slice(0,fr),"..."))}var Gr=function(ci){ci&&ci.stopPropagation(),Tr(jn)};return typeof $n=="function"?Qn(Nn,Un,tr,Sn,Gr):ir(jn,Un,tr,Sn,Gr)},Xn=function(jn){if(!Tt.length)return null;var tr=typeof Kn=="function"?Kn(jn):Kn;return typeof $n=="function"?Qn(void 0,tr,!1,!1,void 0,!0):ir({title:tr},tr,!1)},bn=ee.createElement("div",{className:"".concat(mi,"-search"),style:{width:Fr},onFocus:function(){ki(!0)},onBlur:function(){ki(!1)}},ee.createElement(Ue,{ref:Kt,open:_t,prefixCls:Dt,id:Et,inputElement:null,disabled:Ft,autoFocus:Wt,autoComplete:hn,editable:hi,activeDescendantId:mn,value:xi,onKeyDown:Vn,onMouseDown:xr,onChange:Cr,onPaste:Or,onCompositionStart:hr,onCompositionEnd:Hr,onBlur:Xr,tabIndex:In,attrs:(0,Se.Z)(Xt,!0)}),ee.createElement("span",{ref:Ur,className:"".concat(mi,"-search-mirror"),"aria-hidden":!0},xi,"\xA0")),kn=ee.createElement(Ee.Z,{prefixCls:"".concat(mi,"-overflow"),data:Tt,renderItem:gr,renderRest:Xn,suffix:bn,itemKey:Ve,maxCount:ar});return ee.createElement("span",{className:"".concat(mi,"-wrap")},kn,!Tt.length&&!xi&&ee.createElement("span",{className:"".concat(mi,"-placeholder")},Yt))},it=Ge,qe=function(Xt){var Et=Xt.inputElement,Dt=Xt.prefixCls,Tt=Xt.id,_t=Xt.inputRef,bt=Xt.disabled,Zt=Xt.autoFocus,Kt=Xt.autoComplete,Yt=Xt.activeDescendantId,Ft=Xt.mode,$t=Xt.open,zt=Xt.values,Wt=Xt.placeholder,hn=Xt.tabIndex,mn=Xt.showSearch,In=Xt.searchValue,er=Xt.activeValue,ar=Xt.maxLength,fr=Xt.onInputKeyDown,Jn=Xt.onInputMouseDown,Kn=Xt.onInputChange,$n=Xt.onInputPaste,dr=Xt.onInputCompositionStart,Tr=Xt.onInputCompositionEnd,Cr=Xt.onInputBlur,Or=Xt.title,Vn=ee.useState(!1),xr=(0,ge.Z)(Vn,2),hr=xr[0],Hr=xr[1],Xr=Ft==="combobox",Ur=Xr||mn,Kr=zt[0],ri=In||"";Xr&&er&&!hr&&(ri=er),ee.useEffect(function(){Xr&&Hr(!1)},[Xr,er]);var Fr=Ft!=="combobox"&&!$t&&!mn?!1:!!ri,qr=Or===void 0?rt(Kr):Or,Pr=ee.useMemo(function(){return Kr?null:ee.createElement("span",{className:"".concat(Dt,"-selection-placeholder"),style:Fr?{visibility:"hidden"}:void 0},Wt)},[Kr,Fr,Wt,Dt]);return ee.createElement("span",{className:"".concat(Dt,"-selection-wrap")},ee.createElement("span",{className:"".concat(Dt,"-selection-search")},ee.createElement(Ue,{ref:_t,prefixCls:Dt,id:Tt,open:$t,inputElement:Et,disabled:bt,autoFocus:Zt,autoComplete:Kt,editable:Ur,activeDescendantId:Yt,value:ri,onKeyDown:fr,onMouseDown:Jn,onChange:function(ui){Hr(!0),Kn(ui)},onPaste:$n,onCompositionStart:dr,onCompositionEnd:Tr,onBlur:Cr,tabIndex:hn,attrs:(0,Se.Z)(Xt,!0),maxLength:Xr?ar:void 0})),!Xr&&Kr?ee.createElement("span",{className:"".concat(Dt,"-selection-item"),title:qr,style:Fr?{visibility:"hidden"}:void 0},Kr.label):null,Pr)},vt=qe,ot=function(Xt,Et){var Dt=(0,ee.useRef)(null),Tt=(0,ee.useRef)(!1),_t=Xt.prefixCls,bt=Xt.open,Zt=Xt.mode,Kt=Xt.showSearch,Yt=Xt.tokenWithEnter,Ft=Xt.disabled,$t=Xt.prefix,zt=Xt.autoClearSearchValue,Wt=Xt.onSearch,hn=Xt.onSearchSubmit,mn=Xt.onToggleOpen,In=Xt.onInputKeyDown,er=Xt.onInputBlur,ar=Xt.domRef;ee.useImperativeHandle(Et,function(){return{focus:function(qr){Dt.current.focus(qr)},blur:function(){Dt.current.blur()}}});var fr=je(0),Jn=(0,ge.Z)(fr,2),Kn=Jn[0],$n=Jn[1],dr=function(qr){var Pr=qr.which,ei=Dt.current instanceof HTMLTextAreaElement;!ei&&bt&&(Pr===Be.Z.UP||Pr===Be.Z.DOWN)&&qr.preventDefault(),In&&In(qr),Pr===Be.Z.ENTER&&Zt==="tags"&&!Tt.current&&!bt&&(hn==null||hn(qr.target.value)),!(ei&&!bt&&~[Be.Z.UP,Be.Z.DOWN,Be.Z.LEFT,Be.Z.RIGHT].indexOf(Pr))&&De(Pr)&&mn(!0)},Tr=function(){$n(!0)},Cr=(0,ee.useRef)(null),Or=function(qr){Wt(qr,!0,Tt.current)!==!1&&mn(!0)},Vn=function(){Tt.current=!0},xr=function(qr){Tt.current=!1,Zt!=="combobox"&&Or(qr.target.value)},hr=function(qr){var Pr=qr.target.value;if(Yt&&Cr.current&&/[\r\n]/.test(Cr.current)){var ei=Cr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Pr=Pr.replace(ei,Cr.current)}Cr.current=null,Or(Pr)},Hr=function(qr){var Pr=qr.clipboardData,ei=Pr==null?void 0:Pr.getData("text");Cr.current=ei||""},Xr=function(qr){var Pr=qr.target;if(Pr!==Dt.current){var ei=document.body.style.msTouchAction!==void 0;ei?setTimeout(function(){Dt.current.focus()}):Dt.current.focus()}},Ur=function(qr){var Pr=Kn();qr.target!==Dt.current&&!Pr&&!(Zt==="combobox"&&Ft)&&qr.preventDefault(),(Zt!=="combobox"&&(!Kt||!Pr)||!bt)&&(bt&&zt!==!1&&Wt("",!0,!1),mn())},Kr={inputRef:Dt,onInputKeyDown:dr,onInputMouseDown:Tr,onInputChange:hr,onInputPaste:Hr,onInputCompositionStart:Vn,onInputCompositionEnd:xr,onInputBlur:er},ri=Zt==="multiple"||Zt==="tags"?ee.createElement(it,(0,le.Z)({},Xt,Kr)):ee.createElement(vt,(0,le.Z)({},Xt,Kr));return ee.createElement("div",{ref:ar,className:"".concat(_t,"-selector"),onClick:Xr,onMouseDown:Ur},$t&&ee.createElement("div",{className:"".concat(_t,"-prefix")},$t),ri)},Qe=ee.forwardRef(ot),Fe=Qe,Re=Ce(68196),ne=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],fe=function(Xt){var Et=Xt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Et,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Et,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Et,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Et,adjustY:1},htmlRegion:"scroll"}}},Ne=function(Xt,Et){var Dt=Xt.prefixCls,Tt=Xt.disabled,_t=Xt.visible,bt=Xt.children,Zt=Xt.popupElement,Kt=Xt.animation,Yt=Xt.transitionName,Ft=Xt.dropdownStyle,$t=Xt.dropdownClassName,zt=Xt.direction,Wt=zt===void 0?"ltr":zt,hn=Xt.placement,mn=Xt.builtinPlacements,In=Xt.dropdownMatchSelectWidth,er=Xt.dropdownRender,ar=Xt.dropdownAlign,fr=Xt.getPopupContainer,Jn=Xt.empty,Kn=Xt.getTriggerDOMNode,$n=Xt.onPopupVisibleChange,dr=Xt.onPopupMouseEnter,Tr=(0,x.Z)(Xt,ne),Cr="".concat(Dt,"-dropdown"),Or=Zt;er&&(Or=er(Zt));var Vn=ee.useMemo(function(){return mn||fe(In)},[mn,In]),xr=Kt?"".concat(Cr,"-").concat(Kt):Yt,hr=typeof In=="number",Hr=ee.useMemo(function(){return hr?null:In===!1?"minWidth":"width"},[In,hr]),Xr=Ft;hr&&(Xr=(0,Te.Z)((0,Te.Z)({},Xr),{},{width:In}));var Ur=ee.useRef(null);return ee.useImperativeHandle(Et,function(){return{getPopupElement:function(){var ri;return(ri=Ur.current)===null||ri===void 0?void 0:ri.popupElement}}}),ee.createElement(Re.Z,(0,le.Z)({},Tr,{showAction:$n?["click"]:[],hideAction:$n?["click"]:[],popupPlacement:hn||(Wt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Vn,prefixCls:Cr,popupTransitionName:xr,popup:ee.createElement("div",{onMouseEnter:dr},Or),ref:Ur,stretch:Hr,popupAlign:ar,popupVisible:_t,getPopupContainer:fr,popupClassName:E()($t,(0,a.Z)({},"".concat(Cr,"-empty"),Jn)),popupStyle:Xr,getTriggerDOMNode:Kn,onPopupVisibleChange:$n}),bt)},We=ee.forwardRef(Ne),we=We,ye=Ce(48745);function Oe(Rt,Xt){var Et=Rt.key,Dt;return"value"in Rt&&(Dt=Rt.value),Et!=null?Et:Dt!==void 0?Dt:"rc-index-key-".concat(Xt)}function $e(Rt){return typeof Rt!="undefined"&&!Number.isNaN(Rt)}function Ze(Rt,Xt){var Et=Rt||{},Dt=Et.label,Tt=Et.value,_t=Et.options,bt=Et.groupLabel,Zt=Dt||(Xt?"children":"label");return{label:Zt,value:Tt||"value",options:_t||"options",groupLabel:bt||Zt}}function Xe(Rt){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Et=Xt.fieldNames,Dt=Xt.childrenAsData,Tt=[],_t=Ze(Et,!1),bt=_t.label,Zt=_t.value,Kt=_t.options,Yt=_t.groupLabel;function Ft($t,zt){Array.isArray($t)&&$t.forEach(function(Wt){if(zt||!(Kt in Wt)){var hn=Wt[Zt];Tt.push({key:Oe(Wt,Tt.length),groupOption:zt,data:Wt,label:Wt[bt],value:hn})}else{var mn=Wt[Yt];mn===void 0&&Dt&&(mn=Wt.label),Tt.push({key:Oe(Wt,Tt.length),group:!0,data:Wt,label:mn}),Ft(Wt[Kt],!0)}})}return Ft(Rt,!1),Tt}function at(Rt){var Xt=(0,Te.Z)({},Rt);return"props"in Xt||Object.defineProperty(Xt,"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`."),Xt}}),Xt}var lt=function(Xt,Et,Dt){if(!Et||!Et.length)return null;var Tt=!1,_t=function Zt(Kt,Yt){var Ft=(0,ye.Z)(Yt),$t=Ft[0],zt=Ft.slice(1);if(!$t)return[Kt];var Wt=Kt.split($t);return Tt=Tt||Wt.length>1,Wt.reduce(function(hn,mn){return[].concat((0,yt.Z)(hn),(0,yt.Z)(Zt(mn,zt)))},[]).filter(Boolean)},bt=_t(Xt,Et);return Tt?typeof Dt!="undefined"?bt.slice(0,Dt):bt:null},mt=ee.createContext(null),ut=mt;function ct(Rt){var Xt=Rt.visible,Et=Rt.values;if(!Xt)return null;var Dt=50;return ee.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Et.slice(0,Dt).map(function(Tt){var _t=Tt.label,bt=Tt.value;return["number","string"].includes((0,z.Z)(_t))?_t:bt}).join(", ")),Et.length>Dt?", ...":null)}var Pt=["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"],wt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Bt=function(Xt){return Xt==="tags"||Xt==="multiple"},At=ee.forwardRef(function(Rt,Xt){var Et,Dt=Rt.id,Tt=Rt.prefixCls,_t=Rt.className,bt=Rt.showSearch,Zt=Rt.tagRender,Kt=Rt.direction,Yt=Rt.omitDomProps,Ft=Rt.displayValues,$t=Rt.onDisplayValuesChange,zt=Rt.emptyOptions,Wt=Rt.notFoundContent,hn=Wt===void 0?"Not Found":Wt,mn=Rt.onClear,In=Rt.mode,er=Rt.disabled,ar=Rt.loading,fr=Rt.getInputElement,Jn=Rt.getRawInputElement,Kn=Rt.open,$n=Rt.defaultOpen,dr=Rt.onDropdownVisibleChange,Tr=Rt.activeValue,Cr=Rt.onActiveValueChange,Or=Rt.activeDescendantId,Vn=Rt.searchValue,xr=Rt.autoClearSearchValue,hr=Rt.onSearch,Hr=Rt.onSearchSplit,Xr=Rt.tokenSeparators,Ur=Rt.allowClear,Kr=Rt.prefix,ri=Rt.suffixIcon,Fr=Rt.clearIcon,qr=Rt.OptionList,Pr=Rt.animation,ei=Rt.transitionName,ui=Rt.dropdownStyle,ki=Rt.dropdownClassName,mi=Rt.dropdownMatchSelectWidth,xi=Rt.dropdownRender,hi=Rt.dropdownAlign,ir=Rt.placement,Qn=Rt.builtinPlacements,gr=Rt.getPopupContainer,Xn=Rt.showAction,bn=Xn===void 0?[]:Xn,kn=Rt.onFocus,Ln=Rt.onBlur,jn=Rt.onKeyUp,tr=Rt.onKeyDown,ur=Rt.onMouseDown,Nn=(0,x.Z)(Rt,Pt),Sn=Bt(In),Un=(bt!==void 0?bt:Sn)||In==="combobox",rr=(0,Te.Z)({},Nn);wt.forEach(function(Hi){delete rr[Hi]}),Yt==null||Yt.forEach(function(Hi){delete rr[Hi]});var Gr=ee.useState(!1),wi=(0,ge.Z)(Gr,2),ci=wi[0],ji=wi[1];ee.useEffect(function(){ji((0,te.Z)())},[]);var Ci=ee.useRef(null),Si=ee.useRef(null),Ni=ee.useRef(null),Mi=ee.useRef(null),Pi=ee.useRef(null),ro=ee.useRef(!1),vo=be(),go=(0,ge.Z)(vo,3),Ao=go[0],Co=go[1],ti=go[2];ee.useImperativeHandle(Xt,function(){var Hi,Ti;return{focus:(Hi=Mi.current)===null||Hi===void 0?void 0:Hi.focus,blur:(Ti=Mi.current)===null||Ti===void 0?void 0:Ti.blur,scrollTo:function(sa){var ko;return(ko=Pi.current)===null||ko===void 0?void 0:ko.scrollTo(sa)},nativeElement:Ci.current||Si.current}});var Wr=ee.useMemo(function(){var Hi;if(In!=="combobox")return Vn;var Ti=(Hi=Ft[0])===null||Hi===void 0?void 0:Hi.value;return typeof Ti=="string"||typeof Ti=="number"?String(Ti):""},[Vn,In,Ft]),Qi=In==="combobox"&&typeof fr=="function"&&fr()||null,qi=typeof Jn=="function"&&Jn(),si=(0,se.x1)(Si,qi==null||(Et=qi.props)===null||Et===void 0?void 0:Et.ref),Zi=ee.useState(!1),Yi=(0,ge.Z)(Zi,2),yi=Yi[0],_i=Yi[1];(0,re.Z)(function(){_i(!0)},[]);var Ri=(0,ie.Z)(!1,{defaultValue:$n,value:Kn}),_o=(0,ge.Z)(Ri,2),ha=_o[0],Zo=_o[1],jo=yi?ha:!1,cs=!hn&&zt;(er||cs&&jo&&In==="combobox")&&(jo=!1);var es=cs?!1:jo,di=ee.useCallback(function(Hi){var Ti=Hi!==void 0?Hi:!jo;er||(Zo(Ti),jo!==Ti&&(dr==null||dr(Ti)))},[er,jo,Zo,dr]),Ei=ee.useMemo(function(){return(Xr||[]).some(function(Hi){return[`
`,`\r
`].includes(Hi)})},[Xr]),ii=ee.useContext(ut)||{},fi=ii.maxCount,Ui=ii.rawValues,lo=function(Ti,Ho,sa){if(!(Sn&&$e(fi)&&(Ui==null?void 0:Ui.size)>=fi)){var ko=!0,Uo=Ti;Cr==null||Cr(null);var Ba=lt(Ti,Xr,$e(fi)?fi-Ui.size:void 0),ka=sa?null:Ba;return In!=="combobox"&&ka&&(Uo="",Hr==null||Hr(ka),di(!1),ko=!1),hr&&Wr!==Uo&&hr(Uo,{source:Ho?"typing":"effect"}),ko}},Na=function(Ti){!Ti||!Ti.trim()||hr(Ti,{source:"submit"})};ee.useEffect(function(){!jo&&!Sn&&In!=="combobox"&&lo("",!1,!1)},[jo]),ee.useEffect(function(){ha&&er&&Zo(!1),er&&!ro.current&&Co(!1)},[er]);var oa=je(),Yo=(0,ge.Z)(oa,2),Do=Yo[0],Aa=Yo[1],_a=ee.useRef(!1),pa=function(Ti){var Ho=Do(),sa=Ti.key,ko=sa==="Enter";if(ko&&(In!=="combobox"&&Ti.preventDefault(),jo||di(!0)),Aa(!!Wr),sa==="Backspace"&&!Ho&&Sn&&!Wr&&Ft.length){for(var Uo=(0,yt.Z)(Ft),Ba=null,ka=Uo.length-1;ka>=0;ka-=1){var Za=Uo[ka];if(!Za.disabled){Uo.splice(ka,1),Ba=Za;break}}Ba&&$t(Uo,{type:"remove",values:[Ba]})}for(var xa=arguments.length,wa=new Array(xa>1?xa-1:0),La=1;La<xa;La++)wa[La-1]=arguments[La];if(jo&&(!ko||!_a.current)){var rs;ko&&(_a.current=!0),(rs=Pi.current)===null||rs===void 0||rs.onKeyDown.apply(rs,[Ti].concat(wa))}tr==null||tr.apply(void 0,[Ti].concat(wa))},$a=function(Ti){for(var Ho=arguments.length,sa=new Array(Ho>1?Ho-1:0),ko=1;ko<Ho;ko++)sa[ko-1]=arguments[ko];if(jo){var Uo;(Uo=Pi.current)===null||Uo===void 0||Uo.onKeyUp.apply(Uo,[Ti].concat(sa))}Ti.key==="Enter"&&(_a.current=!1),jn==null||jn.apply(void 0,[Ti].concat(sa))},Ya=function(Ti){var Ho=Ft.filter(function(sa){return sa!==Ti});$t(Ho,{type:"remove",values:[Ti]})},ja=function(){_a.current=!1},ds=ee.useRef(!1),vl=function(){Co(!0),er||(kn&&!ds.current&&kn.apply(void 0,arguments),bn.includes("focus")&&di(!0)),ds.current=!0},Js=function(){ro.current=!0,Co(!1,function(){ds.current=!1,ro.current=!1,di(!1)}),!er&&(Wr&&(In==="tags"?hr(Wr,{source:"submit"}):In==="multiple"&&hr("",{source:"blur"})),Ln&&Ln.apply(void 0,arguments))},za=[];ee.useEffect(function(){return function(){za.forEach(function(Hi){return clearTimeout(Hi)}),za.splice(0,za.length)}},[]);var ts=function(Ti){var Ho,sa=Ti.target,ko=(Ho=Ni.current)===null||Ho===void 0?void 0:Ho.getPopupElement();if(ko&&ko.contains(sa)){var Uo=setTimeout(function(){var xa=za.indexOf(Uo);if(xa!==-1&&za.splice(xa,1),ti(),!ci&&!ko.contains(document.activeElement)){var wa;(wa=Mi.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];ur==null||ur.apply(void 0,[Ti].concat(ka))},Da=ee.useState({}),gl=(0,ge.Z)(Da,2),Ms=gl[1];function Qs(){Ms({})}var el;qi&&(el=function(Ti){di(Ti)}),ke(function(){var Hi;return[Ci.current,(Hi=Ni.current)===null||Hi===void 0?void 0:Hi.getPopupElement()]},es,di,!!qi);var zl=ee.useMemo(function(){return(0,Te.Z)((0,Te.Z)({},Rt),{},{notFoundContent:hn,open:jo,triggerOpen:es,id:Dt,showSearch:Un,multiple:Sn,toggleOpen:di})},[Rt,hn,es,jo,Dt,Un,Sn,di]),Rs=!!ri||ar,Wa;Rs&&(Wa=ee.createElement(he,{className:E()("".concat(Tt,"-arrow"),(0,a.Z)({},"".concat(Tt,"-arrow-loading"),ar)),customizeIcon:ri,customizeIconProps:{loading:ar,searchValue:Wr,open:jo,focused:Ao,showSearch:Un}}));var fs=function(){var Ti;mn==null||mn(),(Ti=Mi.current)===null||Ti===void 0||Ti.focus(),$t([],{type:"clear",values:Ft}),lo("",!1,!1)},xs=me(Tt,fs,Ft,Ur,Fr,er,Wr,In),Ns=xs.allowClear,hs=xs.clearIcon,Bs=ee.createElement(qr,{ref:Pi}),tl=E()(Tt,_t,(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(Tt,"-focused"),Ao),"".concat(Tt,"-multiple"),Sn),"".concat(Tt,"-single"),!Sn),"".concat(Tt,"-allow-clear"),Ur),"".concat(Tt,"-show-arrow"),Rs),"".concat(Tt,"-disabled"),er),"".concat(Tt,"-loading"),ar),"".concat(Tt,"-open"),jo),"".concat(Tt,"-customize-input"),Qi),"".concat(Tt,"-show-search"),Un)),ns=ee.createElement(we,{ref:Ni,disabled:er,prefixCls:Tt,visible:es,popupElement:Bs,animation:Pr,transitionName:ei,dropdownStyle:ui,dropdownClassName:ki,direction:Kt,dropdownMatchSelectWidth:mi,dropdownRender:xi,dropdownAlign:hi,placement:ir,builtinPlacements:Qn,getPopupContainer:gr,empty:zt,getTriggerDOMNode:function(Ti){return Si.current||Ti},onPopupVisibleChange:el,onPopupMouseEnter:Qs},qi?ee.cloneElement(qi,{ref:si}):ee.createElement(Fe,(0,le.Z)({},Rt,{domRef:Si,prefixCls:Tt,inputElement:Qi,ref:Mi,id:Dt,prefix:Kr,showSearch:Un,autoClearSearchValue:xr,mode:In,activeDescendantId:Or,tagRender:Zt,values:Ft,open:jo,onToggleOpen:di,activeValue:Tr,searchValue:Wr,onSearch:lo,onSearchSubmit:Na,onRemove:Ya,tokenWithEnter:Ei,onInputBlur:ja}))),aa;return qi?aa=ns:aa=ee.createElement("div",(0,le.Z)({className:tl},rr,{ref:Ci,onMouseDown:ts,onKeyDown:pa,onKeyUp:$a,onFocus:vl,onBlur:Js}),ee.createElement(ct,{visible:Ao&&!jo,values:Ft}),ns,Wa,Ns&&hs),ee.createElement(ve.Provider,{value:zl},aa)}),pt=At,Mt=function(){return null};Mt.isSelectOptGroup=!0;var kt=Mt,xt=function(){return null};xt.isSelectOption=!0;var It=xt,Ut=Ce(80547),en=Ce(2738),St=Ce(48911);function jt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ht=["disabled","title","children","style","className"];function Qt(Rt){return typeof Rt=="string"||typeof Rt=="number"}var sn=function(Xt,Et){var Dt=pe(),Tt=Dt.prefixCls,_t=Dt.id,bt=Dt.open,Zt=Dt.multiple,Kt=Dt.mode,Yt=Dt.searchValue,Ft=Dt.toggleOpen,$t=Dt.notFoundContent,zt=Dt.onPopupScroll,Wt=ee.useContext(ut),hn=Wt.maxCount,mn=Wt.flattenOptions,In=Wt.onActiveValue,er=Wt.defaultActiveFirstOption,ar=Wt.onSelect,fr=Wt.menuItemSelectedIcon,Jn=Wt.rawValues,Kn=Wt.fieldNames,$n=Wt.virtual,dr=Wt.direction,Tr=Wt.listHeight,Cr=Wt.listItemHeight,Or=Wt.optionRender,Vn="".concat(Tt,"-item"),xr=(0,Ut.Z)(function(){return mn},[bt,mn],function(Xn,bn){return bn[0]&&Xn[1]!==bn[1]}),hr=ee.useRef(null),Hr=ee.useMemo(function(){return Zt&&$e(hn)&&(Jn==null?void 0:Jn.size)>=hn},[Zt,hn,Jn==null?void 0:Jn.size]),Xr=function(bn){bn.preventDefault()},Ur=function(bn){var kn;(kn=hr.current)===null||kn===void 0||kn.scrollTo(typeof bn=="number"?{index:bn}:bn)},Kr=ee.useCallback(function(Xn){return Kt==="combobox"?!1:Jn.has(Xn)},[Kt,(0,yt.Z)(Jn).toString(),Jn.size]),ri=function(bn){for(var kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ln=xr.length,jn=0;jn<Ln;jn+=1){var tr=(bn+jn*kn+Ln)%Ln,ur=xr[tr]||{},Nn=ur.group,Sn=ur.data;if(!Nn&&!(Sn!=null&&Sn.disabled)&&(Kr(Sn.value)||!Hr))return tr}return-1},Fr=ee.useState(function(){return ri(0)}),qr=(0,ge.Z)(Fr,2),Pr=qr[0],ei=qr[1],ui=function(bn){var kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ei(bn);var Ln={source:kn?"keyboard":"mouse"},jn=xr[bn];if(!jn){In(null,-1,Ln);return}In(jn.value,bn,Ln)};(0,ee.useEffect)(function(){ui(er!==!1?ri(0):-1)},[xr.length,Yt]);var ki=ee.useCallback(function(Xn){return Kt==="combobox"?String(Xn).toLowerCase()===Yt.toLowerCase():Jn.has(Xn)},[Kt,Yt,(0,yt.Z)(Jn).toString(),Jn.size]);(0,ee.useEffect)(function(){var Xn=setTimeout(function(){if(!Zt&&bt&&Jn.size===1){var kn=Array.from(Jn)[0],Ln=xr.findIndex(function(jn){var tr=jn.data;return Yt?String(tr.value).startsWith(Yt):tr.value===kn});Ln!==-1&&(ui(Ln),Ur(Ln))}});if(bt){var bn;(bn=hr.current)===null||bn===void 0||bn.scrollTo(void 0)}return function(){return clearTimeout(Xn)}},[bt,Yt]);var mi=function(bn){bn!==void 0&&ar(bn,{selected:!Jn.has(bn)}),Zt||Ft(!1)};if(ee.useImperativeHandle(Et,function(){return{onKeyDown:function(bn){var kn=bn.which,Ln=bn.ctrlKey;switch(kn){case Be.Z.N:case Be.Z.P:case Be.Z.UP:case Be.Z.DOWN:{var jn=0;if(kn===Be.Z.UP?jn=-1:kn===Be.Z.DOWN?jn=1:jt()&&Ln&&(kn===Be.Z.N?jn=1:kn===Be.Z.P&&(jn=-1)),jn!==0){var tr=ri(Pr+jn,jn);Ur(tr),ui(tr,!0)}break}case Be.Z.TAB:case Be.Z.ENTER:{var ur,Nn=xr[Pr];Nn&&!(Nn!=null&&(ur=Nn.data)!==null&&ur!==void 0&&ur.disabled)&&!Hr?mi(Nn.value):mi(void 0),bt&&bn.preventDefault();break}case Be.Z.ESC:Ft(!1),bt&&bn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(bn){Ur(bn)}}}),xr.length===0)return ee.createElement("div",{role:"listbox",id:"".concat(_t,"_list"),className:"".concat(Vn,"-empty"),onMouseDown:Xr},$t);var xi=Object.keys(Kn).map(function(Xn){return Kn[Xn]}),hi=function(bn){return bn.label};function ir(Xn,bn){var kn=Xn.group;return{role:kn?"presentation":"option",id:"".concat(_t,"_list_").concat(bn)}}var Qn=function(bn){var kn=xr[bn];if(!kn)return null;var Ln=kn.data||{},jn=Ln.value,tr=kn.group,ur=(0,Se.Z)(Ln,!0),Nn=hi(kn);return kn?ee.createElement("div",(0,le.Z)({"aria-label":typeof Nn=="string"&&!tr?Nn:null},ur,{key:bn},ir(kn,bn),{"aria-selected":ki(jn)}),jn):null},gr={role:"listbox",id:"".concat(_t,"_list")};return ee.createElement(ee.Fragment,null,$n&&ee.createElement("div",(0,le.Z)({},gr,{style:{height:0,width:0,overflow:"hidden"}}),Qn(Pr-1),Qn(Pr),Qn(Pr+1)),ee.createElement(St.Z,{itemKey:"key",ref:hr,data:xr,height:Tr,itemHeight:Cr,fullHeight:!1,onMouseDown:Xr,onScroll:zt,virtual:$n,direction:dr,innerProps:$n?null:gr},function(Xn,bn){var kn=Xn.group,Ln=Xn.groupOption,jn=Xn.data,tr=Xn.label,ur=Xn.value,Nn=jn.key;if(kn){var Sn,Un=(Sn=jn.title)!==null&&Sn!==void 0?Sn:Qt(tr)?tr.toString():void 0;return ee.createElement("div",{className:E()(Vn,"".concat(Vn,"-group"),jn.className),title:Un},tr!==void 0?tr:Nn)}var rr=jn.disabled,Gr=jn.title,wi=jn.children,ci=jn.style,ji=jn.className,Ci=(0,x.Z)(jn,Ht),Si=(0,en.Z)(Ci,xi),Ni=Kr(ur),Mi=rr||!Ni&&Hr,Pi="".concat(Vn,"-option"),ro=E()(Vn,Pi,ji,(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(Pi,"-grouped"),Ln),"".concat(Pi,"-active"),Pr===bn&&!Mi),"".concat(Pi,"-disabled"),Mi),"".concat(Pi,"-selected"),Ni)),vo=hi(Xn),go=!fr||typeof fr=="function"||Ni,Ao=typeof vo=="number"?vo:vo||ur,Co=Qt(Ao)?Ao.toString():void 0;return Gr!==void 0&&(Co=Gr),ee.createElement("div",(0,le.Z)({},(0,Se.Z)(Si),$n?{}:ir(Xn,bn),{"aria-selected":ki(ur),className:ro,title:Co,onMouseMove:function(){Pr===bn||Mi||ui(bn)},onClick:function(){Mi||mi(ur)},style:ci}),ee.createElement("div",{className:"".concat(Pi,"-content")},typeof Or=="function"?Or(Xn,{index:bn}):Ao),ee.isValidElement(fr)||Ni,go&&ee.createElement(he,{className:"".concat(Vn,"-option-state"),customizeIcon:fr,customizeIconProps:{value:ur,disabled:Mi,isSelected:Ni}},Ni?"\u2713":null))}))},wn=ee.forwardRef(sn),Bn=wn,Fn=function(Rt,Xt){var Et=ee.useRef({values:new Map,options:new Map}),Dt=ee.useMemo(function(){var _t=Et.current,bt=_t.values,Zt=_t.options,Kt=Rt.map(function($t){if($t.label===void 0){var zt;return(0,Te.Z)((0,Te.Z)({},$t),{},{label:(zt=bt.get($t.value))===null||zt===void 0?void 0:zt.label})}return $t}),Yt=new Map,Ft=new Map;return Kt.forEach(function($t){Yt.set($t.value,$t),Ft.set($t.value,Xt.get($t.value)||Zt.get($t.value))}),Et.current.values=Yt,Et.current.options=Ft,Kt},[Rt,Xt]),Tt=ee.useCallback(function(_t){return Xt.get(_t)||Et.current.options.get(_t)},[Xt]);return[Dt,Tt]};function gn(Rt,Xt){return He(Rt).join("").toUpperCase().includes(Xt)}var Dn=function(Rt,Xt,Et,Dt,Tt){return ee.useMemo(function(){if(!Et||Dt===!1)return Rt;var _t=Xt.options,bt=Xt.label,Zt=Xt.value,Kt=[],Yt=typeof Dt=="function",Ft=Et.toUpperCase(),$t=Yt?Dt:function(Wt,hn){return Tt?gn(hn[Tt],Ft):hn[_t]?gn(hn[bt!=="children"?bt:"label"],Ft):gn(hn[Zt],Ft)},zt=Yt?function(Wt){return at(Wt)}:function(Wt){return Wt};return Rt.forEach(function(Wt){if(Wt[_t]){var hn=$t(Et,zt(Wt));if(hn)Kt.push(Wt);else{var mn=Wt[_t].filter(function(In){return $t(Et,zt(In))});mn.length&&Kt.push((0,Te.Z)((0,Te.Z)({},Wt),{},(0,a.Z)({},_t,mn)))}return}$t(Et,zt(Wt))&&Kt.push(Wt)}),Kt},[Rt,Dt,Tt,Et,Xt])},un=Ce(6551),Tn=Ce(11592),Mn=["children","value"],nn=["children"];function tn(Rt){var Xt=Rt,Et=Xt.key,Dt=Xt.props,Tt=Dt.children,_t=Dt.value,bt=(0,x.Z)(Dt,Mn);return(0,Te.Z)({key:Et,value:_t!==void 0?_t:Et,children:Tt},bt)}function dn(Rt){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Tn.Z)(Rt).map(function(Et,Dt){if(!ee.isValidElement(Et)||!Et.type)return null;var Tt=Et,_t=Tt.type.isSelectOptGroup,bt=Tt.key,Zt=Tt.props,Kt=Zt.children,Yt=(0,x.Z)(Zt,nn);return Xt||!_t?tn(Et):(0,Te.Z)((0,Te.Z)({key:"__RC_SELECT_GRP__".concat(bt===null?Dt:bt,"__"),label:bt},Yt),{},{options:dn(Kt)})}).filter(function(Et){return Et})}var Cn=function(Xt,Et,Dt,Tt,_t){return ee.useMemo(function(){var bt=Xt,Zt=!Xt;Zt&&(bt=dn(Et));var Kt=new Map,Yt=new Map,Ft=function(Wt,hn,mn){mn&&typeof mn=="string"&&Wt.set(hn[mn],hn)},$t=function zt(Wt){for(var hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mn=0;mn<Wt.length;mn+=1){var In=Wt[mn];!In[Dt.options]||hn?(Kt.set(In[Dt.value],In),Ft(Yt,In,Dt.label),Ft(Yt,In,Tt),Ft(Yt,In,_t)):zt(In[Dt.options],!0)}};return $t(bt),{options:bt,valueOptions:Kt,labelOptions:Yt}},[Xt,Et,Dt,Tt,_t])},Pn=Cn;function Hn(Rt){var Xt=ee.useRef();Xt.current=Rt;var Et=ee.useCallback(function(){return Xt.current.apply(Xt,arguments)},[]);return Et}function Gn(Rt){var Xt=Rt.mode,Et=Rt.options,Dt=Rt.children,Tt=Rt.backfill,_t=Rt.allowClear,bt=Rt.placeholder,Zt=Rt.getInputElement,Kt=Rt.showSearch,Yt=Rt.onSearch,Ft=Rt.defaultOpen,$t=Rt.autoFocus,zt=Rt.labelInValue,Wt=Rt.value,hn=Rt.inputValue,mn=Rt.optionLabelProp,In=isMultiple(Xt),er=Kt!==void 0?Kt:In||Xt==="combobox",ar=Et||convertChildrenToData(Dt);if(warning(Xt!=="tags"||ar.every(function($n){return!$n.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Xt==="tags"||Xt==="combobox"){var fr=ar.some(function($n){return $n.options?$n.options.some(function(dr){return typeof("value"in dr?dr.value:dr.key)=="number"}):typeof("value"in $n?$n.value:$n.key)=="number"});warning(!fr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Xt!=="combobox"||!mn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Xt==="combobox"||!Tt,"`backfill` only works with `combobox` mode."),warning(Xt==="combobox"||!Zt,"`getInputElement` only work with `combobox` mode."),noteOnce(Xt!=="combobox"||!Zt||!_t||!bt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Yt&&!er&&Xt!=="combobox"&&Xt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ft||$t,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Wt!=null){var Jn=toArray(Wt);warning(!zt||Jn.every(function($n){return _typeof($n)==="object"&&("key"in $n||"value"in $n)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!In||Array.isArray(Wt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Dt){var Kn=null;toNodeArray(Dt).some(function($n){if(!React.isValidElement($n)||!$n.type)return!1;var dr=$n,Tr=dr.type;if(Tr.isSelectOption)return!1;if(Tr.isSelectOptGroup){var Cr=toNodeArray($n.props.children).every(function(Or){return!React.isValidElement(Or)||!$n.type||Or.type.isSelectOption?!0:(Kn=Or.type,!1)});return!Cr}return Kn=Tr,!0}),Kn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Kn.displayName||Kn.name||Kn,"`.")),warning(hn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function _n(Rt,Xt){if(Rt){var Et=function Dt(Tt){for(var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,bt=0;bt<Tt.length;bt++){var Zt=Tt[bt];if(Zt[Xt==null?void 0:Xt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!_t&&Array.isArray(Zt[Xt==null?void 0:Xt.options])&&Dt(Zt[Xt==null?void 0:Xt.options],!0))break}};Et(Rt)}}var Yn=null,Wn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],yr=["inputValue"];function cr(Rt){return!Rt||(0,z.Z)(Rt)!=="object"}var cn=ee.forwardRef(function(Rt,Xt){var Et=Rt.id,Dt=Rt.mode,Tt=Rt.prefixCls,_t=Tt===void 0?"rc-select":Tt,bt=Rt.backfill,Zt=Rt.fieldNames,Kt=Rt.inputValue,Yt=Rt.searchValue,Ft=Rt.onSearch,$t=Rt.autoClearSearchValue,zt=$t===void 0?!0:$t,Wt=Rt.onSelect,hn=Rt.onDeselect,mn=Rt.dropdownMatchSelectWidth,In=mn===void 0?!0:mn,er=Rt.filterOption,ar=Rt.filterSort,fr=Rt.optionFilterProp,Jn=Rt.optionLabelProp,Kn=Rt.options,$n=Rt.optionRender,dr=Rt.children,Tr=Rt.defaultActiveFirstOption,Cr=Rt.menuItemSelectedIcon,Or=Rt.virtual,Vn=Rt.direction,xr=Rt.listHeight,hr=xr===void 0?200:xr,Hr=Rt.listItemHeight,Xr=Hr===void 0?20:Hr,Ur=Rt.labelRender,Kr=Rt.value,ri=Rt.defaultValue,Fr=Rt.labelInValue,qr=Rt.onChange,Pr=Rt.maxCount,ei=(0,x.Z)(Rt,Wn),ui=(0,un.ZP)(Et),ki=Bt(Dt),mi=!!(!Kn&&dr),xi=ee.useMemo(function(){return er===void 0&&Dt==="combobox"?!1:er},[er,Dt]),hi=ee.useMemo(function(){return Ze(Zt,mi)},[JSON.stringify(Zt),mi]),ir=(0,ie.Z)("",{value:Yt!==void 0?Yt:Kt,postState:function(Ei){return Ei||""}}),Qn=(0,ge.Z)(ir,2),gr=Qn[0],Xn=Qn[1],bn=Pn(Kn,dr,hi,fr,Jn),kn=bn.valueOptions,Ln=bn.labelOptions,jn=bn.options,tr=ee.useCallback(function(di){var Ei=He(di);return Ei.map(function(ii){var fi,Ui,lo,Na,oa;if(cr(ii))fi=ii;else{var Yo;lo=ii.key,Ui=ii.label,fi=(Yo=ii.value)!==null&&Yo!==void 0?Yo:lo}var Do=kn.get(fi);if(Do){var Aa;if(Ui===void 0&&(Ui=Do==null?void 0:Do[Jn||hi.label]),lo===void 0&&(lo=(Aa=Do==null?void 0:Do.key)!==null&&Aa!==void 0?Aa:fi),Na=Do==null?void 0:Do.disabled,oa=Do==null?void 0:Do.title,0)var _a}return{label:Ui,value:fi,key:lo,disabled:Na,title:oa}})},[hi,Jn,kn]),ur=(0,ie.Z)(ri,{value:Kr}),Nn=(0,ge.Z)(ur,2),Sn=Nn[0],Un=Nn[1],rr=ee.useMemo(function(){var di,Ei=ki&&Sn===null?[]:Sn,ii=tr(Ei);return Dt==="combobox"&&Ke((di=ii[0])===null||di===void 0?void 0:di.value)?[]:ii},[Sn,tr,Dt,ki]),Gr=Fn(rr,kn),wi=(0,ge.Z)(Gr,2),ci=wi[0],ji=wi[1],Ci=ee.useMemo(function(){if(!Dt&&ci.length===1){var di=ci[0];if(di.value===null&&(di.label===null||di.label===void 0))return[]}return ci.map(function(Ei){var ii;return(0,Te.Z)((0,Te.Z)({},Ei),{},{label:(ii=typeof Ur=="function"?Ur(Ei):Ei.label)!==null&&ii!==void 0?ii:Ei.value})})},[Dt,ci,Ur]),Si=ee.useMemo(function(){return new Set(ci.map(function(di){return di.value}))},[ci]);ee.useEffect(function(){if(Dt==="combobox"){var di,Ei=(di=ci[0])===null||di===void 0?void 0:di.value;Xn(_e(Ei)?String(Ei):"")}},[ci]);var Ni=Hn(function(di,Ei){var ii=Ei!=null?Ei:di;return(0,a.Z)((0,a.Z)({},hi.value,di),hi.label,ii)}),Mi=ee.useMemo(function(){if(Dt!=="tags")return jn;var di=(0,yt.Z)(jn),Ei=function(fi){return kn.has(fi)};return(0,yt.Z)(ci).sort(function(ii,fi){return ii.value<fi.value?-1:1}).forEach(function(ii){var fi=ii.value;Ei(fi)||di.push(Ni(fi,ii.label))}),di},[Ni,jn,kn,ci,Dt]),Pi=Dn(Mi,hi,gr,xi,fr),ro=ee.useMemo(function(){return Dt!=="tags"||!gr||Pi.some(function(di){return di[fr||"value"]===gr})||Pi.some(function(di){return di[hi.value]===gr})?Pi:[Ni(gr)].concat((0,yt.Z)(Pi))},[Ni,fr,Dt,Pi,gr,hi]),vo=function di(Ei){var ii=(0,yt.Z)(Ei).sort(function(fi,Ui){return ar(fi,Ui,{searchValue:gr})});return ii.map(function(fi){return Array.isArray(fi.options)?(0,Te.Z)((0,Te.Z)({},fi),{},{options:fi.options.length>0?di(fi.options):fi.options}):fi})},go=ee.useMemo(function(){return ar?vo(ro):ro},[ro,ar,gr]),Ao=ee.useMemo(function(){return Xe(go,{fieldNames:hi,childrenAsData:mi})},[go,hi,mi]),Co=function(Ei){var ii=tr(Ei);if(Un(ii),qr&&(ii.length!==ci.length||ii.some(function(lo,Na){var oa;return((oa=ci[Na])===null||oa===void 0?void 0:oa.value)!==(lo==null?void 0:lo.value)}))){var fi=Fr?ii:ii.map(function(lo){return lo.value}),Ui=ii.map(function(lo){return at(ji(lo.value))});qr(ki?fi:fi[0],ki?Ui:Ui[0])}},ti=ee.useState(null),Wr=(0,ge.Z)(ti,2),Qi=Wr[0],qi=Wr[1],si=ee.useState(0),Zi=(0,ge.Z)(si,2),Yi=Zi[0],yi=Zi[1],_i=Tr!==void 0?Tr:Dt!=="combobox",Ri=ee.useCallback(function(di,Ei){var ii=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},fi=ii.source,Ui=fi===void 0?"keyboard":fi;yi(Ei),bt&&Dt==="combobox"&&di!==null&&Ui==="keyboard"&&qi(String(di))},[bt,Dt]),_o=function(Ei,ii,fi){var Ui=function(){var Ya,ja=ji(Ei);return[Fr?{label:ja==null?void 0:ja[hi.label],value:Ei,key:(Ya=ja==null?void 0:ja.key)!==null&&Ya!==void 0?Ya:Ei}:Ei,at(ja)]};if(ii&&Wt){var lo=Ui(),Na=(0,ge.Z)(lo,2),oa=Na[0],Yo=Na[1];Wt(oa,Yo)}else if(!ii&&hn&&fi!=="clear"){var Do=Ui(),Aa=(0,ge.Z)(Do,2),_a=Aa[0],pa=Aa[1];hn(_a,pa)}},ha=Hn(function(di,Ei){var ii,fi=ki?Ei.selected:!0;fi?ii=ki?[].concat((0,yt.Z)(ci),[di]):[di]:ii=ci.filter(function(Ui){return Ui.value!==di}),Co(ii),_o(di,fi),Dt==="combobox"?qi(""):(!Bt||zt)&&(Xn(""),qi(""))}),Zo=function(Ei,ii){Co(Ei);var fi=ii.type,Ui=ii.values;(fi==="remove"||fi==="clear")&&Ui.forEach(function(lo){_o(lo.value,!1,fi)})},jo=function(Ei,ii){if(Xn(Ei),qi(null),ii.source==="submit"){var fi=(Ei||"").trim();if(fi){var Ui=Array.from(new Set([].concat((0,yt.Z)(Si),[fi])));Co(Ui),_o(fi,!0),Xn("")}return}ii.source!=="blur"&&(Dt==="combobox"&&Co(Ei),Ft==null||Ft(Ei))},cs=function(Ei){var ii=Ei;Dt!=="tags"&&(ii=Ei.map(function(Ui){var lo=Ln.get(Ui);return lo==null?void 0:lo.value}).filter(function(Ui){return Ui!==void 0}));var fi=Array.from(new Set([].concat((0,yt.Z)(Si),(0,yt.Z)(ii))));Co(fi),fi.forEach(function(Ui){_o(Ui,!0)})},es=ee.useMemo(function(){var di=Or!==!1&&In!==!1;return(0,Te.Z)((0,Te.Z)({},bn),{},{flattenOptions:Ao,onActiveValue:Ri,defaultActiveFirstOption:_i,onSelect:ha,menuItemSelectedIcon:Cr,rawValues:Si,fieldNames:hi,virtual:di,direction:Vn,listHeight:hr,listItemHeight:Xr,childrenAsData:mi,maxCount:Pr,optionRender:$n})},[Pr,bn,Ao,Ri,_i,ha,Cr,Si,hi,Or,In,Vn,hr,Xr,mi,$n]);return ee.createElement(ut.Provider,{value:es},ee.createElement(pt,(0,le.Z)({},ei,{id:ui,prefixCls:_t,ref:Xt,omitDomProps:yr,mode:Dt,displayValues:Ci,onDisplayValuesChange:Zo,direction:Vn,searchValue:gr,onSearch:jo,autoClearSearchValue:zt,onSearchSplit:cs,dropdownMatchSelectWidth:In,OptionList:Bn,emptyOptions:!Ao.length,activeValue:Qi,activeDescendantId:"".concat(ui,"_list_").concat(Yi)})))}),An=cn;An.Option=It,An.OptGroup=kt;var qn=An,wr=qn},22711:function(on,Lt,Ce){"use strict";Ce.r(Lt),Ce.d(Lt,{ResizableTextArea:function(){return Me},default:function(){return Ue}});var le=Ce(60499),yt=Ce(18642),a=Ce(85899),Te=Ce(77654),ge=Ce(72190),x=Ce(42244),z=Ce(92310),ie=Ce.n(z),oe=Ce(36901),ee=Ce(66003),ue=Ce(30292),E=Ce(18929),re=Ce(59301),te=Ce(43749),se=Ce(29301),ae=Ce(34280),he=Ce(16089),me=`
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;
`,ve=["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"],pe={},be;function je(He){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,st=He.getAttribute("id")||He.getAttribute("data-reactid")||He.getAttribute("name");if(Je&&pe[st])return pe[st];var _e=window.getComputedStyle(He),Ke=_e.getPropertyValue("box-sizing")||_e.getPropertyValue("-moz-box-sizing")||_e.getPropertyValue("-webkit-box-sizing"),nt=parseFloat(_e.getPropertyValue("padding-bottom"))+parseFloat(_e.getPropertyValue("padding-top")),rt=parseFloat(_e.getPropertyValue("border-bottom-width"))+parseFloat(_e.getPropertyValue("border-top-width")),et=ve.map(function(Ye){return"".concat(Ye,":").concat(_e.getPropertyValue(Ye))}).join(";"),Ve={sizingStyle:et,paddingSize:nt,borderSize:rt,boxSizing:Ke};return Je&&st&&(pe[st]=Ve),Ve}function ke(He){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,_e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;be||(be=document.createElement("textarea"),be.setAttribute("tab-index","-1"),be.setAttribute("aria-hidden","true"),be.setAttribute("name","hiddenTextarea"),document.body.appendChild(be)),He.getAttribute("wrap")?be.setAttribute("wrap",He.getAttribute("wrap")):be.removeAttribute("wrap");var Ke=je(He,Je),nt=Ke.paddingSize,rt=Ke.borderSize,et=Ke.boxSizing,Ve=Ke.sizingStyle;be.setAttribute("style","".concat(Ve,";").concat(me)),be.value=He.value||He.placeholder||"";var Ye=void 0,Ge=void 0,it,qe=be.scrollHeight;if(et==="border-box"?qe+=rt:et==="content-box"&&(qe-=nt),st!==null||_e!==null){be.value=" ";var vt=be.scrollHeight-nt;st!==null&&(Ye=vt*st,et==="border-box"&&(Ye=Ye+nt+rt),qe=Math.max(Ye,qe)),_e!==null&&(Ge=vt*_e,et==="border-box"&&(Ge=Ge+nt+rt),it=qe>Ge?"":"hidden",qe=Math.min(Ge,qe))}var ot={height:qe,overflowY:it,resize:"none"};return Ye&&(ot.minHeight=Ye),Ge&&(ot.maxHeight=Ge),ot}var Be=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],De=0,Se=1,Ee=2,Ie=re.forwardRef(function(He,Je){var st=He,_e=st.prefixCls,Ke=st.defaultValue,nt=st.value,rt=st.autoSize,et=st.onResize,Ve=st.className,Ye=st.style,Ge=st.disabled,it=st.onChange,qe=st.onInternalAutoSize,vt=(0,x.Z)(st,Be),ot=(0,E.Z)(Ke,{value:nt,postState:function(It){return It!=null?It:""}}),Qe=(0,ge.Z)(ot,2),Fe=Qe[0],Re=Qe[1],ne=function(It){Re(It.target.value),it==null||it(It)},fe=re.useRef();re.useImperativeHandle(Je,function(){return{textArea:fe.current}});var Ne=re.useMemo(function(){return rt&&(0,te.Z)(rt)==="object"?[rt.minRows,rt.maxRows]:[]},[rt]),We=(0,ge.Z)(Ne,2),we=We[0],ye=We[1],Oe=!!rt,$e=function(){try{if(document.activeElement===fe.current){var It=fe.current,Ut=It.selectionStart,en=It.selectionEnd,St=It.scrollTop;fe.current.setSelectionRange(Ut,en),fe.current.scrollTop=St}}catch(jt){}},Ze=re.useState(Ee),Xe=(0,ge.Z)(Ze,2),at=Xe[0],lt=Xe[1],mt=re.useState(),ut=(0,ge.Z)(mt,2),ct=ut[0],Pt=ut[1],wt=function(){lt(De)};(0,ae.Z)(function(){Oe&&wt()},[nt,we,ye,Oe]),(0,ae.Z)(function(){if(at===De)lt(Se);else if(at===Se){var xt=ke(fe.current,!1,we,ye);lt(Ee),Pt(xt)}else $e()},[at]);var Bt=re.useRef(),At=function(){he.Z.cancel(Bt.current)},pt=function(It){at===Ee&&(et==null||et(It),rt&&(At(),Bt.current=(0,he.Z)(function(){wt()})))};re.useEffect(function(){return At},[]);var Mt=Oe?ct:null,kt=(0,a.Z)((0,a.Z)({},Ye),Mt);return(at===De||at===Se)&&(kt.overflowY="hidden",kt.overflowX="hidden"),re.createElement(se.Z,{onResize:pt,disabled:!(rt||et)},re.createElement("textarea",(0,le.Z)({},vt,{ref:fe,style:kt,className:ie()(_e,Ve,(0,yt.Z)({},"".concat(_e,"-disabled"),Ge)),disabled:Ge,value:Fe,onChange:ne})))}),Me=Ie,Le=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Ae=re.forwardRef(function(He,Je){var st,_e=He.defaultValue,Ke=He.value,nt=He.onFocus,rt=He.onBlur,et=He.onChange,Ve=He.allowClear,Ye=He.maxLength,Ge=He.onCompositionStart,it=He.onCompositionEnd,qe=He.suffix,vt=He.prefixCls,ot=vt===void 0?"rc-textarea":vt,Qe=He.showCount,Fe=He.count,Re=He.className,ne=He.style,fe=He.disabled,Ne=He.hidden,We=He.classNames,we=He.styles,ye=He.onResize,Oe=He.onClear,$e=He.onPressEnter,Ze=He.readOnly,Xe=He.autoSize,at=He.onKeyDown,lt=(0,x.Z)(He,Le),mt=(0,E.Z)(_e,{value:Ke,defaultValue:_e}),ut=(0,ge.Z)(mt,2),ct=ut[0],Pt=ut[1],wt=ct==null?"":String(ct),Bt=re.useState(!1),At=(0,ge.Z)(Bt,2),pt=At[0],Mt=At[1],kt=re.useRef(!1),xt=re.useState(null),It=(0,ge.Z)(xt,2),Ut=It[0],en=It[1],St=(0,re.useRef)(null),jt=(0,re.useRef)(null),Ht=function(){var An;return(An=jt.current)===null||An===void 0?void 0:An.textArea},Qt=function(){Ht().focus()};(0,re.useImperativeHandle)(Je,function(){var cn;return{resizableTextArea:jt.current,focus:Qt,blur:function(){Ht().blur()},nativeElement:((cn=St.current)===null||cn===void 0?void 0:cn.nativeElement)||Ht()}}),(0,re.useEffect)(function(){Mt(function(cn){return!fe&&cn})},[fe]);var sn=re.useState(null),wn=(0,ge.Z)(sn,2),Bn=wn[0],Fn=wn[1];re.useEffect(function(){if(Bn){var cn;(cn=Ht()).setSelectionRange.apply(cn,(0,Te.Z)(Bn))}},[Bn]);var gn=(0,ee.Z)(Fe,Qe),Dn=(st=gn.max)!==null&&st!==void 0?st:Ye,un=Number(Dn)>0,Tn=gn.strategy(wt),Mn=!!Dn&&Tn>Dn,nn=function(An,qn){var wr=qn;!kt.current&&gn.exceedFormatter&&gn.max&&gn.strategy(qn)>gn.max&&(wr=gn.exceedFormatter(qn,{max:gn.max}),qn!==wr&&Fn([Ht().selectionStart||0,Ht().selectionEnd||0])),Pt(wr),(0,ue.rJ)(An.currentTarget,An,et,wr)},tn=function(An){kt.current=!0,Ge==null||Ge(An)},dn=function(An){kt.current=!1,nn(An,An.currentTarget.value),it==null||it(An)},Cn=function(An){nn(An,An.target.value)},Pn=function(An){An.key==="Enter"&&$e&&$e(An),at==null||at(An)},Hn=function(An){Mt(!0),nt==null||nt(An)},Gn=function(An){Mt(!1),rt==null||rt(An)},_n=function(An){Pt(""),Qt(),(0,ue.rJ)(Ht(),An,et)},Yn=qe,Wn;gn.show&&(gn.showFormatter?Wn=gn.showFormatter({value:wt,count:Tn,maxLength:Dn}):Wn="".concat(Tn).concat(un?" / ".concat(Dn):""),Yn=re.createElement(re.Fragment,null,Yn,re.createElement("span",{className:ie()("".concat(ot,"-data-count"),We==null?void 0:We.count),style:we==null?void 0:we.count},Wn)));var yr=function(An){var qn;ye==null||ye(An),(qn=Ht())!==null&&qn!==void 0&&qn.style.height&&en(!0)},cr=!Xe&&!Qe&&!Ve;return re.createElement(oe.BaseInput,{ref:St,value:wt,allowClear:Ve,handleReset:_n,suffix:Yn,prefixCls:ot,classNames:(0,a.Z)((0,a.Z)({},We),{},{affixWrapper:ie()(We==null?void 0:We.affixWrapper,(0,yt.Z)((0,yt.Z)({},"".concat(ot,"-show-count"),Qe),"".concat(ot,"-textarea-allow-clear"),Ve))}),disabled:fe,focused:pt,className:ie()(Re,Mn&&"".concat(ot,"-out-of-range")),style:(0,a.Z)((0,a.Z)({},ne),Ut&&!cr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Wn=="string"?Wn:void 0}},hidden:Ne,readOnly:Ze,onClear:Oe},re.createElement(Me,(0,le.Z)({},lt,{autoSize:Xe,maxLength:Ye,onKeyDown:Pn,onChange:Cn,onFocus:Hn,onBlur:Gn,onCompositionStart:tn,onCompositionEnd:dn,className:ie()(We==null?void 0:We.textarea),style:(0,a.Z)((0,a.Z)({},we==null?void 0:we.textarea),{},{resize:ne==null?void 0:ne.resize}),disabled:fe,prefixCls:ot,onResize:yr,ref:jt,readOnly:Ze})))}),Pe=Ae,Ue=Pe},639:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return pe}});var le=Ce(60499),yt=Ce(18642),a=Ce(85899),Te=Ce(72190),ge=Ce(42244),x=Ce(59301),z=Ce(92310),ie=Ce.n(z),oe=Ce(26112),ee=Ce(30699),ue=function(je){for(var ke=je.prefixCls,Be=je.level,De=je.isStart,Se=je.isEnd,Ee="".concat(ke,"-indent-unit"),Ie=[],Me=0;Me<Be;Me+=1)Ie.push(x.createElement("span",{key:Me,className:ie()(Ee,(0,yt.Z)((0,yt.Z)({},"".concat(Ee,"-start"),De[Me]),"".concat(Ee,"-end"),Se[Me]))}));return x.createElement("span",{"aria-hidden":"true",className:"".concat(ke,"-indent")},Ie)},E=x.memo(ue),re=Ce(65065),te=Ce(34061),se=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ae="open",he="close",me="---",ve=function(je){var ke,Be,De,Se=je.eventKey,Ee=je.className,Ie=je.style,Me=je.dragOver,Le=je.dragOverGapTop,Ae=je.dragOverGapBottom,Pe=je.isLeaf,Ue=je.isStart,He=je.isEnd,Je=je.expanded,st=je.selected,_e=je.checked,Ke=je.halfChecked,nt=je.loading,rt=je.domRef,et=je.active,Ve=je.data,Ye=je.onMouseMove,Ge=je.selectable,it=(0,ge.Z)(je,se),qe=x.useContext(ee.k),vt=x.useContext(ee.y),ot=x.useRef(null),Qe=x.useState(!1),Fe=(0,Te.Z)(Qe,2),Re=Fe[0],ne=Fe[1],fe=!!(qe.disabled||je.disabled||(ke=vt.nodeDisabled)!==null&&ke!==void 0&&ke.call(vt,Ve)),Ne=x.useMemo(function(){return!qe.checkable||je.checkable===!1?!1:qe.checkable},[qe.checkable,je.checkable]),We=function(Tn){fe||qe.onNodeSelect(Tn,(0,te.F)(je))},we=function(Tn){fe||!Ne||je.disableCheckbox||qe.onNodeCheck(Tn,(0,te.F)(je),!_e)},ye=x.useMemo(function(){return typeof Ge=="boolean"?Ge:qe.selectable},[Ge,qe.selectable]),Oe=function(Tn){qe.onNodeClick(Tn,(0,te.F)(je)),ye?We(Tn):we(Tn)},$e=function(Tn){qe.onNodeDoubleClick(Tn,(0,te.F)(je))},Ze=function(Tn){qe.onNodeMouseEnter(Tn,(0,te.F)(je))},Xe=function(Tn){qe.onNodeMouseLeave(Tn,(0,te.F)(je))},at=function(Tn){qe.onNodeContextMenu(Tn,(0,te.F)(je))},lt=x.useMemo(function(){return!!(qe.draggable&&(!qe.draggable.nodeDraggable||qe.draggable.nodeDraggable(Ve)))},[qe.draggable,Ve]),mt=function(Tn){Tn.stopPropagation(),ne(!0),qe.onNodeDragStart(Tn,je);try{Tn.dataTransfer.setData("text/plain","")}catch(Mn){}},ut=function(Tn){Tn.preventDefault(),Tn.stopPropagation(),qe.onNodeDragEnter(Tn,je)},ct=function(Tn){Tn.preventDefault(),Tn.stopPropagation(),qe.onNodeDragOver(Tn,je)},Pt=function(Tn){Tn.stopPropagation(),qe.onNodeDragLeave(Tn,je)},wt=function(Tn){Tn.stopPropagation(),ne(!1),qe.onNodeDragEnd(Tn,je)},Bt=function(Tn){Tn.preventDefault(),Tn.stopPropagation(),ne(!1),qe.onNodeDrop(Tn,je)},At=function(Tn){nt||qe.onNodeExpand(Tn,(0,te.F)(je))},pt=x.useMemo(function(){var un=(0,re.Z)(qe.keyEntities,Se)||{},Tn=un.children;return!!(Tn||[]).length},[qe.keyEntities,Se]),Mt=x.useMemo(function(){return Pe===!1?!1:Pe||!qe.loadData&&!pt||qe.loadData&&je.loaded&&!pt},[Pe,qe.loadData,pt,je.loaded]);x.useEffect(function(){nt||typeof qe.loadData=="function"&&Je&&!Mt&&!je.loaded&&qe.onNodeLoad((0,te.F)(je))},[nt,qe.loadData,qe.onNodeLoad,Je,Mt,je]);var kt=x.useMemo(function(){var un;return(un=qe.draggable)!==null&&un!==void 0&&un.icon?x.createElement("span",{className:"".concat(qe.prefixCls,"-draggable-icon")},qe.draggable.icon):null},[qe.draggable]),xt=function(Tn){var Mn=je.switcherIcon||qe.switcherIcon;return typeof Mn=="function"?Mn((0,a.Z)((0,a.Z)({},je),{},{isLeaf:Tn})):Mn},It=function(){if(Mt){var Tn=xt(!0);return Tn!==!1?x.createElement("span",{className:ie()("".concat(qe.prefixCls,"-switcher"),"".concat(qe.prefixCls,"-switcher-noop"))},Tn):null}var Mn=xt(!1);return Mn!==!1?x.createElement("span",{onClick:At,className:ie()("".concat(qe.prefixCls,"-switcher"),"".concat(qe.prefixCls,"-switcher_").concat(Je?ae:he))},Mn):null},Ut=x.useMemo(function(){if(!Ne)return null;var un=typeof Ne!="boolean"?Ne:null;return x.createElement("span",{className:ie()("".concat(qe.prefixCls,"-checkbox"),(0,yt.Z)((0,yt.Z)((0,yt.Z)({},"".concat(qe.prefixCls,"-checkbox-checked"),_e),"".concat(qe.prefixCls,"-checkbox-indeterminate"),!_e&&Ke),"".concat(qe.prefixCls,"-checkbox-disabled"),fe||je.disableCheckbox)),onClick:we,role:"checkbox","aria-checked":Ke?"mixed":_e,"aria-disabled":fe||je.disableCheckbox,"aria-label":"Select ".concat(typeof je.title=="string"?je.title:"tree node")},un)},[Ne,_e,Ke,fe,je.disableCheckbox,je.title]),en=x.useMemo(function(){return Mt?null:Je?ae:he},[Mt,Je]),St=x.useMemo(function(){return x.createElement("span",{className:ie()("".concat(qe.prefixCls,"-iconEle"),"".concat(qe.prefixCls,"-icon__").concat(en||"docu"),(0,yt.Z)({},"".concat(qe.prefixCls,"-icon_loading"),nt))})},[qe.prefixCls,en,nt]),jt=x.useMemo(function(){var un=!!qe.draggable,Tn=!je.disabled&&un&&qe.dragOverNodeKey===Se;return Tn?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]),Ht=x.useMemo(function(){var un=je.title,Tn=un===void 0?me:un,Mn="".concat(qe.prefixCls,"-node-content-wrapper"),nn;if(qe.showIcon){var tn=je.icon||qe.icon;nn=tn?x.createElement("span",{className:ie()("".concat(qe.prefixCls,"-iconEle"),"".concat(qe.prefixCls,"-icon__customize"))},typeof tn=="function"?tn(je):tn):St}else qe.loadData&&nt&&(nn=St);var dn;return typeof Tn=="function"?dn=Tn(Ve):qe.titleRender?dn=qe.titleRender(Ve):dn=Tn,x.createElement("span",{ref:ot,title:typeof Tn=="string"?Tn:"",className:ie()(Mn,"".concat(Mn,"-").concat(en||"normal"),(0,yt.Z)({},"".concat(qe.prefixCls,"-node-selected"),!fe&&(st||Re))),onMouseEnter:Ze,onMouseLeave:Xe,onContextMenu:at,onClick:Oe,onDoubleClick:$e},nn,x.createElement("span",{className:"".concat(qe.prefixCls,"-title")},dn),jt)},[qe.prefixCls,qe.showIcon,je,qe.icon,St,qe.titleRender,Ve,en,Ze,Xe,at,Oe,$e]),Qt=(0,oe.Z)(it,{aria:!0,data:!0}),sn=(0,re.Z)(qe.keyEntities,Se)||{},wn=sn.level,Bn=He[He.length-1],Fn=!fe&&lt,gn=qe.draggingNodeKey===Se,Dn=Ge!==void 0?{"aria-selected":!!Ge}:void 0;return x.createElement("div",(0,le.Z)({ref:rt,role:"treeitem","aria-expanded":Pe?void 0:Je,className:ie()(Ee,"".concat(qe.prefixCls,"-treenode"),(De={},(0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)(De,"".concat(qe.prefixCls,"-treenode-disabled"),fe),"".concat(qe.prefixCls,"-treenode-switcher-").concat(Je?"open":"close"),!Pe),"".concat(qe.prefixCls,"-treenode-checkbox-checked"),_e),"".concat(qe.prefixCls,"-treenode-checkbox-indeterminate"),Ke),"".concat(qe.prefixCls,"-treenode-selected"),st),"".concat(qe.prefixCls,"-treenode-loading"),nt),"".concat(qe.prefixCls,"-treenode-active"),et),"".concat(qe.prefixCls,"-treenode-leaf-last"),Bn),"".concat(qe.prefixCls,"-treenode-draggable"),lt),"dragging",gn),(0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)(De,"drop-target",qe.dropTargetKey===Se),"drop-container",qe.dropContainerKey===Se),"drag-over",!fe&&Me),"drag-over-gap-top",!fe&&Le),"drag-over-gap-bottom",!fe&&Ae),"filter-node",(Be=qe.filterTreeNode)===null||Be===void 0?void 0:Be.call(qe,(0,te.F)(je))),"".concat(qe.prefixCls,"-treenode-leaf"),Mt))),style:Ie,draggable:Fn,onDragStart:Fn?mt:void 0,onDragEnter:lt?ut:void 0,onDragOver:lt?ct:void 0,onDragLeave:lt?Pt:void 0,onDrop:lt?Bt:void 0,onDragEnd:lt?wt:void 0,onMouseMove:Ye},Dn,Qt),x.createElement(E,{prefixCls:qe.prefixCls,level:wn,isStart:Ue,isEnd:He}),kt,It(),Ut,Ht)};ve.isTreeNode=1;var pe=ve},30699:function(on,Lt,Ce){"use strict";Ce.d(Lt,{k:function(){return yt},y:function(){return a}});var le=Ce(59301),yt=le.createContext(null),a=le.createContext({})},87632:function(on,Lt,Ce){"use strict";Ce.d(Lt,{OF:function(){return Se.Z},y6:function(){return he.y},ZP:function(){return fe}});var le=Ce(60499),yt=Ce(43749),a=Ce(85899),Te=Ce(77654),ge=Ce(38705),x=Ce(17212),z=Ce(15793),ie=Ce(39153),oe=Ce(55401),ee=Ce(18642),ue=Ce(92310),E=Ce.n(ue),re=Ce(10228),te=Ce(26112),se=Ce(48736),ae=Ce(59301),he=Ce(30699),me=function(We){var we=We.dropPosition,ye=We.dropLevelOffset,Oe=We.indent,$e={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(we){case-1:$e.top=0,$e.left=-ye*Oe;break;case 1:$e.bottom=0,$e.left=-ye*Oe;break;case 0:$e.bottom=0,$e.left=Oe;break}return ae.createElement("div",{style:$e})},ve=me;function pe(Ne){if(Ne==null)throw new TypeError("Cannot destructure "+Ne)}var be=Ce(72190),je=Ce(42244),ke=Ce(34280),Be=Ce(48911),De=Ce(77900),Se=Ce(639);function Ee(Ne,We){var we=ae.useState(!1),ye=(0,be.Z)(we,2),Oe=ye[0],$e=ye[1];(0,ke.Z)(function(){if(Oe)return Ne(),function(){We()}},[Oe]),(0,ke.Z)(function(){return $e(!0),function(){$e(!1)}},[])}var Ie=Ee,Me=Ce(34061),Le=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ae=ae.forwardRef(function(Ne,We){var we=Ne.className,ye=Ne.style,Oe=Ne.motion,$e=Ne.motionNodes,Ze=Ne.motionType,Xe=Ne.onMotionStart,at=Ne.onMotionEnd,lt=Ne.active,mt=Ne.treeNodeRequiredProps,ut=(0,je.Z)(Ne,Le),ct=ae.useState(!0),Pt=(0,be.Z)(ct,2),wt=Pt[0],Bt=Pt[1],At=ae.useContext(he.k),pt=At.prefixCls,Mt=$e&&Ze!=="hide";(0,ke.Z)(function(){$e&&Mt!==wt&&Bt(Mt)},[$e]);var kt=function(){$e&&Xe()},xt=ae.useRef(!1),It=function(){$e&&!xt.current&&(xt.current=!0,at())};Ie(kt,It);var Ut=function(St){Mt===St&&It()};return $e?ae.createElement(De.default,(0,le.Z)({ref:We,visible:wt},Oe,{motionAppear:Ze==="show",onVisibleChanged:Ut}),function(en,St){var jt=en.className,Ht=en.style;return ae.createElement("div",{ref:St,className:E()("".concat(pt,"-treenode-motion"),jt),style:Ht},$e.map(function(Qt){var sn=Object.assign({},(pe(Qt.data),Qt.data)),wn=Qt.title,Bn=Qt.key,Fn=Qt.isStart,gn=Qt.isEnd;delete sn.children;var Dn=(0,Me.H8)(Bn,mt);return ae.createElement(Se.Z,(0,le.Z)({},sn,Dn,{title:wn,active:lt,data:Qt.data,key:Bn,isStart:Fn,isEnd:gn}))}))}):ae.createElement(Se.Z,(0,le.Z)({domRef:We,className:we,style:ye},ut,{active:lt}))}),Pe=Ae;function Ue(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],we=Ne.length,ye=We.length;if(Math.abs(we-ye)!==1)return{add:!1,key:null};function Oe($e,Ze){var Xe=new Map;$e.forEach(function(lt){Xe.set(lt,!0)});var at=Ze.filter(function(lt){return!Xe.has(lt)});return at.length===1?at[0]:null}return we<ye?{add:!0,key:Oe(Ne,We)}:{add:!1,key:Oe(We,Ne)}}function He(Ne,We,we){var ye=Ne.findIndex(function(Xe){return Xe.key===we}),Oe=Ne[ye+1],$e=We.findIndex(function(Xe){return Xe.key===we});if(Oe){var Ze=We.findIndex(function(Xe){return Xe.key===Oe.key});return We.slice($e+1,Ze)}return We.slice($e+1)}var Je=["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"],st={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},_e=function(){},Ke="RC_TREE_MOTION_".concat(Math.random()),nt={key:Ke},rt={key:Ke,level:0,index:0,pos:"0",node:nt,nodes:[nt]},et={parent:null,children:[],pos:rt.pos,data:nt,title:null,key:Ke,isStart:[],isEnd:[]};function Ve(Ne,We,we,ye){return We===!1||!we?Ne:Ne.slice(0,Math.ceil(we/ye)+1)}function Ye(Ne){var We=Ne.key,we=Ne.pos;return(0,Me.km)(We,we)}function Ge(Ne){for(var We=String(Ne.data.key),we=Ne;we.parent;)we=we.parent,We="".concat(we.data.key," > ").concat(We);return We}var it=ae.forwardRef(function(Ne,We){var we=Ne.prefixCls,ye=Ne.data,Oe=Ne.selectable,$e=Ne.checkable,Ze=Ne.expandedKeys,Xe=Ne.selectedKeys,at=Ne.checkedKeys,lt=Ne.loadedKeys,mt=Ne.loadingKeys,ut=Ne.halfCheckedKeys,ct=Ne.keyEntities,Pt=Ne.disabled,wt=Ne.dragging,Bt=Ne.dragOverNodeKey,At=Ne.dropPosition,pt=Ne.motion,Mt=Ne.height,kt=Ne.itemHeight,xt=Ne.virtual,It=Ne.scrollWidth,Ut=Ne.focusable,en=Ne.activeItem,St=Ne.focused,jt=Ne.tabIndex,Ht=Ne.onKeyDown,Qt=Ne.onFocus,sn=Ne.onBlur,wn=Ne.onActiveChange,Bn=Ne.onListChangeStart,Fn=Ne.onListChangeEnd,gn=(0,je.Z)(Ne,Je),Dn=ae.useRef(null),un=ae.useRef(null);ae.useImperativeHandle(We,function(){return{scrollTo:function(Zt){Dn.current.scrollTo(Zt)},getIndentWidth:function(){return un.current.offsetWidth}}});var Tn=ae.useState(Ze),Mn=(0,be.Z)(Tn,2),nn=Mn[0],tn=Mn[1],dn=ae.useState(ye),Cn=(0,be.Z)(dn,2),Pn=Cn[0],Hn=Cn[1],Gn=ae.useState(ye),_n=(0,be.Z)(Gn,2),Yn=_n[0],Wn=_n[1],yr=ae.useState([]),cr=(0,be.Z)(yr,2),cn=cr[0],An=cr[1],qn=ae.useState(null),wr=(0,be.Z)(qn,2),Rt=wr[0],Xt=wr[1],Et=ae.useRef(ye);Et.current=ye;function Dt(){var bt=Et.current;Hn(bt),Wn(bt),An([]),Xt(null),Fn()}(0,ke.Z)(function(){tn(Ze);var bt=Ue(nn,Ze);if(bt.key!==null)if(bt.add){var Zt=Pn.findIndex(function(Wt){var hn=Wt.key;return hn===bt.key}),Kt=Ve(He(Pn,ye,bt.key),xt,Mt,kt),Yt=Pn.slice();Yt.splice(Zt+1,0,et),Wn(Yt),An(Kt),Xt("show")}else{var Ft=ye.findIndex(function(Wt){var hn=Wt.key;return hn===bt.key}),$t=Ve(He(ye,Pn,bt.key),xt,Mt,kt),zt=ye.slice();zt.splice(Ft+1,0,et),Wn(zt),An($t),Xt("hide")}else Pn!==ye&&(Hn(ye),Wn(ye))},[Ze,ye]),ae.useEffect(function(){wt||Dt()},[wt]);var Tt=pt?Yn:ye,_t={expandedKeys:Ze,selectedKeys:Xe,loadedKeys:lt,loadingKeys:mt,checkedKeys:at,halfCheckedKeys:ut,dragOverNodeKey:Bt,dropPosition:At,keyEntities:ct};return ae.createElement(ae.Fragment,null,St&&en&&ae.createElement("span",{style:st,"aria-live":"assertive"},Ge(en)),ae.createElement("div",null,ae.createElement("input",{style:st,disabled:Ut===!1||Pt,tabIndex:Ut!==!1?jt:null,onKeyDown:Ht,onFocus:Qt,onBlur:sn,value:"",onChange:_e,"aria-label":"for screen reader"})),ae.createElement("div",{className:"".concat(we,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ae.createElement("div",{className:"".concat(we,"-indent")},ae.createElement("div",{ref:un,className:"".concat(we,"-indent-unit")}))),ae.createElement(Be.Z,(0,le.Z)({},gn,{data:Tt,itemKey:Ye,height:Mt,fullHeight:!1,virtual:xt,itemHeight:kt,scrollWidth:It,prefixCls:"".concat(we,"-list"),ref:Dn,role:"tree",onVisibleChange:function(Zt){Zt.every(function(Kt){return Ye(Kt)!==Ke})&&Dt()}}),function(bt){var Zt=bt.pos,Kt=Object.assign({},(pe(bt.data),bt.data)),Yt=bt.title,Ft=bt.key,$t=bt.isStart,zt=bt.isEnd,Wt=(0,Me.km)(Ft,Zt);delete Kt.key,delete Kt.children;var hn=(0,Me.H8)(Wt,_t);return ae.createElement(Pe,(0,le.Z)({},Kt,hn,{title:Yt,active:!!en&&Ft===en.key,pos:Zt,data:bt.data,isStart:$t,isEnd:zt,motion:pt,motionNodes:Ft===Ke?cn:null,motionType:Rt,onMotionStart:Bn,onMotionEnd:Dt,treeNodeRequiredProps:_t,onMouseMove:function(){wn(null)}}))}))}),qe=it,vt=Ce(82661),ot=Ce(34643),Qe=Ce(65065),Fe=10,Re=function(Ne){(0,ie.Z)(we,Ne);var We=(0,oe.Z)(we);function we(){var ye;(0,ge.Z)(this,we);for(var Oe=arguments.length,$e=new Array(Oe),Ze=0;Ze<Oe;Ze++)$e[Ze]=arguments[Ze];return ye=We.call.apply(We,[this].concat($e)),(0,ee.Z)((0,z.Z)(ye),"destroyed",!1),(0,ee.Z)((0,z.Z)(ye),"delayedDragEnterLogic",void 0),(0,ee.Z)((0,z.Z)(ye),"loadingRetryTimes",{}),(0,ee.Z)((0,z.Z)(ye),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Me.w$)()}),(0,ee.Z)((0,z.Z)(ye),"dragStartMousePosition",null),(0,ee.Z)((0,z.Z)(ye),"dragNodeProps",null),(0,ee.Z)((0,z.Z)(ye),"currentMouseOverDroppableNodeKey",null),(0,ee.Z)((0,z.Z)(ye),"listRef",ae.createRef()),(0,ee.Z)((0,z.Z)(ye),"onNodeDragStart",function(Xe,at){var lt=ye.state,mt=lt.expandedKeys,ut=lt.keyEntities,ct=ye.props.onDragStart,Pt=at.eventKey;ye.dragNodeProps=at,ye.dragStartMousePosition={x:Xe.clientX,y:Xe.clientY};var wt=(0,vt._5)(mt,Pt);ye.setState({draggingNodeKey:Pt,dragChildrenKeys:(0,vt.wA)(Pt,ut),indent:ye.listRef.current.getIndentWidth()}),ye.setExpandedKeys(wt),window.addEventListener("dragend",ye.onWindowDragEnd),ct==null||ct({event:Xe,node:(0,Me.F)(at)})}),(0,ee.Z)((0,z.Z)(ye),"onNodeDragEnter",function(Xe,at){var lt=ye.state,mt=lt.expandedKeys,ut=lt.keyEntities,ct=lt.dragChildrenKeys,Pt=lt.flattenNodes,wt=lt.indent,Bt=ye.props,At=Bt.onDragEnter,pt=Bt.onExpand,Mt=Bt.allowDrop,kt=Bt.direction,xt=at.pos,It=at.eventKey;if(ye.currentMouseOverDroppableNodeKey!==It&&(ye.currentMouseOverDroppableNodeKey=It),!ye.dragNodeProps){ye.resetDragState();return}var Ut=(0,vt.OM)(Xe,ye.dragNodeProps,at,wt,ye.dragStartMousePosition,Mt,Pt,ut,mt,kt),en=Ut.dropPosition,St=Ut.dropLevelOffset,jt=Ut.dropTargetKey,Ht=Ut.dropContainerKey,Qt=Ut.dropTargetPos,sn=Ut.dropAllowed,wn=Ut.dragOverNodeKey;if(ct.includes(jt)||!sn){ye.resetDragState();return}if(ye.delayedDragEnterLogic||(ye.delayedDragEnterLogic={}),Object.keys(ye.delayedDragEnterLogic).forEach(function(Bn){clearTimeout(ye.delayedDragEnterLogic[Bn])}),ye.dragNodeProps.eventKey!==at.eventKey&&(Xe.persist(),ye.delayedDragEnterLogic[xt]=window.setTimeout(function(){if(ye.state.draggingNodeKey!==null){var Bn=(0,Te.Z)(mt),Fn=(0,Qe.Z)(ut,at.eventKey);Fn&&(Fn.children||[]).length&&(Bn=(0,vt.L0)(mt,at.eventKey)),ye.props.hasOwnProperty("expandedKeys")||ye.setExpandedKeys(Bn),pt==null||pt(Bn,{node:(0,Me.F)(at),expanded:!0,nativeEvent:Xe.nativeEvent})}},800)),ye.dragNodeProps.eventKey===jt&&St===0){ye.resetDragState();return}ye.setState({dragOverNodeKey:wn,dropPosition:en,dropLevelOffset:St,dropTargetKey:jt,dropContainerKey:Ht,dropTargetPos:Qt,dropAllowed:sn}),At==null||At({event:Xe,node:(0,Me.F)(at),expandedKeys:mt})}),(0,ee.Z)((0,z.Z)(ye),"onNodeDragOver",function(Xe,at){var lt=ye.state,mt=lt.dragChildrenKeys,ut=lt.flattenNodes,ct=lt.keyEntities,Pt=lt.expandedKeys,wt=lt.indent,Bt=ye.props,At=Bt.onDragOver,pt=Bt.allowDrop,Mt=Bt.direction;if(ye.dragNodeProps){var kt=(0,vt.OM)(Xe,ye.dragNodeProps,at,wt,ye.dragStartMousePosition,pt,ut,ct,Pt,Mt),xt=kt.dropPosition,It=kt.dropLevelOffset,Ut=kt.dropTargetKey,en=kt.dropContainerKey,St=kt.dropTargetPos,jt=kt.dropAllowed,Ht=kt.dragOverNodeKey;mt.includes(Ut)||!jt||(ye.dragNodeProps.eventKey===Ut&&It===0?ye.state.dropPosition===null&&ye.state.dropLevelOffset===null&&ye.state.dropTargetKey===null&&ye.state.dropContainerKey===null&&ye.state.dropTargetPos===null&&ye.state.dropAllowed===!1&&ye.state.dragOverNodeKey===null||ye.resetDragState():xt===ye.state.dropPosition&&It===ye.state.dropLevelOffset&&Ut===ye.state.dropTargetKey&&en===ye.state.dropContainerKey&&St===ye.state.dropTargetPos&&jt===ye.state.dropAllowed&&Ht===ye.state.dragOverNodeKey||ye.setState({dropPosition:xt,dropLevelOffset:It,dropTargetKey:Ut,dropContainerKey:en,dropTargetPos:St,dropAllowed:jt,dragOverNodeKey:Ht}),At==null||At({event:Xe,node:(0,Me.F)(at)}))}}),(0,ee.Z)((0,z.Z)(ye),"onNodeDragLeave",function(Xe,at){ye.currentMouseOverDroppableNodeKey===at.eventKey&&!Xe.currentTarget.contains(Xe.relatedTarget)&&(ye.resetDragState(),ye.currentMouseOverDroppableNodeKey=null);var lt=ye.props.onDragLeave;lt==null||lt({event:Xe,node:(0,Me.F)(at)})}),(0,ee.Z)((0,z.Z)(ye),"onWindowDragEnd",function(Xe){ye.onNodeDragEnd(Xe,null,!0),window.removeEventListener("dragend",ye.onWindowDragEnd)}),(0,ee.Z)((0,z.Z)(ye),"onNodeDragEnd",function(Xe,at){var lt=ye.props.onDragEnd;ye.setState({dragOverNodeKey:null}),ye.cleanDragState(),lt==null||lt({event:Xe,node:(0,Me.F)(at)}),ye.dragNodeProps=null,window.removeEventListener("dragend",ye.onWindowDragEnd)}),(0,ee.Z)((0,z.Z)(ye),"onNodeDrop",function(Xe,at){var lt,mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ut=ye.state,ct=ut.dragChildrenKeys,Pt=ut.dropPosition,wt=ut.dropTargetKey,Bt=ut.dropTargetPos,At=ut.dropAllowed;if(At){var pt=ye.props.onDrop;if(ye.setState({dragOverNodeKey:null}),ye.cleanDragState(),wt!==null){var Mt=(0,a.Z)((0,a.Z)({},(0,Me.H8)(wt,ye.getTreeNodeRequiredProps())),{},{active:((lt=ye.getActiveItem())===null||lt===void 0?void 0:lt.key)===wt,data:(0,Qe.Z)(ye.state.keyEntities,wt).node}),kt=ct.includes(wt);(0,se.ZP)(!kt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var xt=(0,vt.yx)(Bt),It={event:Xe,node:(0,Me.F)(Mt),dragNode:ye.dragNodeProps?(0,Me.F)(ye.dragNodeProps):null,dragNodesKeys:[ye.dragNodeProps.eventKey].concat(ct),dropToGap:Pt!==0,dropPosition:Pt+Number(xt[xt.length-1])};mt||pt==null||pt(It),ye.dragNodeProps=null}}}),(0,ee.Z)((0,z.Z)(ye),"cleanDragState",function(){var Xe=ye.state.draggingNodeKey;Xe!==null&&ye.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ye.dragStartMousePosition=null,ye.currentMouseOverDroppableNodeKey=null}),(0,ee.Z)((0,z.Z)(ye),"triggerExpandActionExpand",function(Xe,at){var lt=ye.state,mt=lt.expandedKeys,ut=lt.flattenNodes,ct=at.expanded,Pt=at.key,wt=at.isLeaf;if(!(wt||Xe.shiftKey||Xe.metaKey||Xe.ctrlKey)){var Bt=ut.filter(function(pt){return pt.key===Pt})[0],At=(0,Me.F)((0,a.Z)((0,a.Z)({},(0,Me.H8)(Pt,ye.getTreeNodeRequiredProps())),{},{data:Bt.data}));ye.setExpandedKeys(ct?(0,vt._5)(mt,Pt):(0,vt.L0)(mt,Pt)),ye.onNodeExpand(Xe,At)}}),(0,ee.Z)((0,z.Z)(ye),"onNodeClick",function(Xe,at){var lt=ye.props,mt=lt.onClick,ut=lt.expandAction;ut==="click"&&ye.triggerExpandActionExpand(Xe,at),mt==null||mt(Xe,at)}),(0,ee.Z)((0,z.Z)(ye),"onNodeDoubleClick",function(Xe,at){var lt=ye.props,mt=lt.onDoubleClick,ut=lt.expandAction;ut==="doubleClick"&&ye.triggerExpandActionExpand(Xe,at),mt==null||mt(Xe,at)}),(0,ee.Z)((0,z.Z)(ye),"onNodeSelect",function(Xe,at){var lt=ye.state.selectedKeys,mt=ye.state,ut=mt.keyEntities,ct=mt.fieldNames,Pt=ye.props,wt=Pt.onSelect,Bt=Pt.multiple,At=at.selected,pt=at[ct.key],Mt=!At;Mt?Bt?lt=(0,vt.L0)(lt,pt):lt=[pt]:lt=(0,vt._5)(lt,pt);var kt=lt.map(function(xt){var It=(0,Qe.Z)(ut,xt);return It?It.node:null}).filter(Boolean);ye.setUncontrolledState({selectedKeys:lt}),wt==null||wt(lt,{event:"select",selected:Mt,node:at,selectedNodes:kt,nativeEvent:Xe.nativeEvent})}),(0,ee.Z)((0,z.Z)(ye),"onNodeCheck",function(Xe,at,lt){var mt=ye.state,ut=mt.keyEntities,ct=mt.checkedKeys,Pt=mt.halfCheckedKeys,wt=ye.props,Bt=wt.checkStrictly,At=wt.onCheck,pt=at.key,Mt,kt={event:"check",node:at,checked:lt,nativeEvent:Xe.nativeEvent};if(Bt){var xt=lt?(0,vt.L0)(ct,pt):(0,vt._5)(ct,pt),It=(0,vt._5)(Pt,pt);Mt={checked:xt,halfChecked:It},kt.checkedNodes=xt.map(function(Qt){return(0,Qe.Z)(ut,Qt)}).filter(Boolean).map(function(Qt){return Qt.node}),ye.setUncontrolledState({checkedKeys:xt})}else{var Ut=(0,ot.S)([].concat((0,Te.Z)(ct),[pt]),!0,ut),en=Ut.checkedKeys,St=Ut.halfCheckedKeys;if(!lt){var jt=new Set(en);jt.delete(pt);var Ht=(0,ot.S)(Array.from(jt),{checked:!1,halfCheckedKeys:St},ut);en=Ht.checkedKeys,St=Ht.halfCheckedKeys}Mt=en,kt.checkedNodes=[],kt.checkedNodesPositions=[],kt.halfCheckedKeys=St,en.forEach(function(Qt){var sn=(0,Qe.Z)(ut,Qt);if(sn){var wn=sn.node,Bn=sn.pos;kt.checkedNodes.push(wn),kt.checkedNodesPositions.push({node:wn,pos:Bn})}}),ye.setUncontrolledState({checkedKeys:en},!1,{halfCheckedKeys:St})}At==null||At(Mt,kt)}),(0,ee.Z)((0,z.Z)(ye),"onNodeLoad",function(Xe){var at,lt=Xe.key,mt=ye.state.keyEntities,ut=(0,Qe.Z)(mt,lt);if(!(ut!=null&&(at=ut.children)!==null&&at!==void 0&&at.length)){var ct=new Promise(function(Pt,wt){ye.setState(function(Bt){var At=Bt.loadedKeys,pt=At===void 0?[]:At,Mt=Bt.loadingKeys,kt=Mt===void 0?[]:Mt,xt=ye.props,It=xt.loadData,Ut=xt.onLoad;if(!It||pt.includes(lt)||kt.includes(lt))return null;var en=It(Xe);return en.then(function(){var St=ye.state.loadedKeys,jt=(0,vt.L0)(St,lt);Ut==null||Ut(jt,{event:"load",node:Xe}),ye.setUncontrolledState({loadedKeys:jt}),ye.setState(function(Ht){return{loadingKeys:(0,vt._5)(Ht.loadingKeys,lt)}}),Pt()}).catch(function(St){if(ye.setState(function(Ht){return{loadingKeys:(0,vt._5)(Ht.loadingKeys,lt)}}),ye.loadingRetryTimes[lt]=(ye.loadingRetryTimes[lt]||0)+1,ye.loadingRetryTimes[lt]>=Fe){var jt=ye.state.loadedKeys;(0,se.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ye.setUncontrolledState({loadedKeys:(0,vt.L0)(jt,lt)}),Pt()}wt(St)}),{loadingKeys:(0,vt.L0)(kt,lt)}})});return ct.catch(function(){}),ct}}),(0,ee.Z)((0,z.Z)(ye),"onNodeMouseEnter",function(Xe,at){var lt=ye.props.onMouseEnter;lt==null||lt({event:Xe,node:at})}),(0,ee.Z)((0,z.Z)(ye),"onNodeMouseLeave",function(Xe,at){var lt=ye.props.onMouseLeave;lt==null||lt({event:Xe,node:at})}),(0,ee.Z)((0,z.Z)(ye),"onNodeContextMenu",function(Xe,at){var lt=ye.props.onRightClick;lt&&(Xe.preventDefault(),lt({event:Xe,node:at}))}),(0,ee.Z)((0,z.Z)(ye),"onFocus",function(){var Xe=ye.props.onFocus;ye.setState({focused:!0});for(var at=arguments.length,lt=new Array(at),mt=0;mt<at;mt++)lt[mt]=arguments[mt];Xe==null||Xe.apply(void 0,lt)}),(0,ee.Z)((0,z.Z)(ye),"onBlur",function(){var Xe=ye.props.onBlur;ye.setState({focused:!1}),ye.onActiveChange(null);for(var at=arguments.length,lt=new Array(at),mt=0;mt<at;mt++)lt[mt]=arguments[mt];Xe==null||Xe.apply(void 0,lt)}),(0,ee.Z)((0,z.Z)(ye),"getTreeNodeRequiredProps",function(){var Xe=ye.state,at=Xe.expandedKeys,lt=Xe.selectedKeys,mt=Xe.loadedKeys,ut=Xe.loadingKeys,ct=Xe.checkedKeys,Pt=Xe.halfCheckedKeys,wt=Xe.dragOverNodeKey,Bt=Xe.dropPosition,At=Xe.keyEntities;return{expandedKeys:at||[],selectedKeys:lt||[],loadedKeys:mt||[],loadingKeys:ut||[],checkedKeys:ct||[],halfCheckedKeys:Pt||[],dragOverNodeKey:wt,dropPosition:Bt,keyEntities:At}}),(0,ee.Z)((0,z.Z)(ye),"setExpandedKeys",function(Xe){var at=ye.state,lt=at.treeData,mt=at.fieldNames,ut=(0,Me.oH)(lt,Xe,mt);ye.setUncontrolledState({expandedKeys:Xe,flattenNodes:ut},!0)}),(0,ee.Z)((0,z.Z)(ye),"onNodeExpand",function(Xe,at){var lt=ye.state.expandedKeys,mt=ye.state,ut=mt.listChanging,ct=mt.fieldNames,Pt=ye.props,wt=Pt.onExpand,Bt=Pt.loadData,At=at.expanded,pt=at[ct.key];if(!ut){var Mt=lt.includes(pt),kt=!At;if((0,se.ZP)(At&&Mt||!At&&!Mt,"Expand state not sync with index check"),lt=kt?(0,vt.L0)(lt,pt):(0,vt._5)(lt,pt),ye.setExpandedKeys(lt),wt==null||wt(lt,{node:at,expanded:kt,nativeEvent:Xe.nativeEvent}),kt&&Bt){var xt=ye.onNodeLoad(at);xt&&xt.then(function(){var It=(0,Me.oH)(ye.state.treeData,lt,ct);ye.setUncontrolledState({flattenNodes:It})}).catch(function(){var It=ye.state.expandedKeys,Ut=(0,vt._5)(It,pt);ye.setExpandedKeys(Ut)})}}}),(0,ee.Z)((0,z.Z)(ye),"onListChangeStart",function(){ye.setUncontrolledState({listChanging:!0})}),(0,ee.Z)((0,z.Z)(ye),"onListChangeEnd",function(){setTimeout(function(){ye.setUncontrolledState({listChanging:!1})})}),(0,ee.Z)((0,z.Z)(ye),"onActiveChange",function(Xe){var at=ye.state.activeKey,lt=ye.props,mt=lt.onActiveChange,ut=lt.itemScrollOffset,ct=ut===void 0?0:ut;at!==Xe&&(ye.setState({activeKey:Xe}),Xe!==null&&ye.scrollTo({key:Xe,offset:ct}),mt==null||mt(Xe))}),(0,ee.Z)((0,z.Z)(ye),"getActiveItem",function(){var Xe=ye.state,at=Xe.activeKey,lt=Xe.flattenNodes;return at===null?null:lt.find(function(mt){var ut=mt.key;return ut===at})||null}),(0,ee.Z)((0,z.Z)(ye),"offsetActiveKey",function(Xe){var at=ye.state,lt=at.flattenNodes,mt=at.activeKey,ut=lt.findIndex(function(wt){var Bt=wt.key;return Bt===mt});ut===-1&&Xe<0&&(ut=lt.length),ut=(ut+Xe+lt.length)%lt.length;var ct=lt[ut];if(ct){var Pt=ct.key;ye.onActiveChange(Pt)}else ye.onActiveChange(null)}),(0,ee.Z)((0,z.Z)(ye),"onKeyDown",function(Xe){var at=ye.state,lt=at.activeKey,mt=at.expandedKeys,ut=at.checkedKeys,ct=at.fieldNames,Pt=ye.props,wt=Pt.onKeyDown,Bt=Pt.checkable,At=Pt.selectable;switch(Xe.which){case re.Z.UP:{ye.offsetActiveKey(-1),Xe.preventDefault();break}case re.Z.DOWN:{ye.offsetActiveKey(1),Xe.preventDefault();break}}var pt=ye.getActiveItem();if(pt&&pt.data){var Mt=ye.getTreeNodeRequiredProps(),kt=pt.data.isLeaf===!1||!!(pt.data[ct.children]||[]).length,xt=(0,Me.F)((0,a.Z)((0,a.Z)({},(0,Me.H8)(lt,Mt)),{},{data:pt.data,active:!0}));switch(Xe.which){case re.Z.LEFT:{kt&&mt.includes(lt)?ye.onNodeExpand({},xt):pt.parent&&ye.onActiveChange(pt.parent.key),Xe.preventDefault();break}case re.Z.RIGHT:{kt&&!mt.includes(lt)?ye.onNodeExpand({},xt):pt.children&&pt.children.length&&ye.onActiveChange(pt.children[0].key),Xe.preventDefault();break}case re.Z.ENTER:case re.Z.SPACE:{Bt&&!xt.disabled&&xt.checkable!==!1&&!xt.disableCheckbox?ye.onNodeCheck({},xt,!ut.includes(lt)):!Bt&&At&&!xt.disabled&&xt.selectable!==!1&&ye.onNodeSelect({},xt);break}}}wt==null||wt(Xe)}),(0,ee.Z)((0,z.Z)(ye),"setUncontrolledState",function(Xe){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ye.destroyed){var mt=!1,ut=!0,ct={};Object.keys(Xe).forEach(function(Pt){if(ye.props.hasOwnProperty(Pt)){ut=!1;return}mt=!0,ct[Pt]=Xe[Pt]}),mt&&(!at||ut)&&ye.setState((0,a.Z)((0,a.Z)({},ct),lt))}}),(0,ee.Z)((0,z.Z)(ye),"scrollTo",function(Xe){ye.listRef.current.scrollTo(Xe)}),ye}return(0,x.Z)(we,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Oe=this.props,$e=Oe.activeKey,Ze=Oe.itemScrollOffset,Xe=Ze===void 0?0:Ze;$e!==void 0&&$e!==this.state.activeKey&&(this.setState({activeKey:$e}),$e!==null&&this.scrollTo({key:$e,offset:Xe}))}},{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 Oe=this.state,$e=Oe.focused,Ze=Oe.flattenNodes,Xe=Oe.keyEntities,at=Oe.draggingNodeKey,lt=Oe.activeKey,mt=Oe.dropLevelOffset,ut=Oe.dropContainerKey,ct=Oe.dropTargetKey,Pt=Oe.dropPosition,wt=Oe.dragOverNodeKey,Bt=Oe.indent,At=this.props,pt=At.prefixCls,Mt=At.className,kt=At.style,xt=At.showLine,It=At.focusable,Ut=At.tabIndex,en=Ut===void 0?0:Ut,St=At.selectable,jt=At.showIcon,Ht=At.icon,Qt=At.switcherIcon,sn=At.draggable,wn=At.checkable,Bn=At.checkStrictly,Fn=At.disabled,gn=At.motion,Dn=At.loadData,un=At.filterTreeNode,Tn=At.height,Mn=At.itemHeight,nn=At.scrollWidth,tn=At.virtual,dn=At.titleRender,Cn=At.dropIndicatorRender,Pn=At.onContextMenu,Hn=At.onScroll,Gn=At.direction,_n=At.rootClassName,Yn=At.rootStyle,Wn=(0,te.Z)(this.props,{aria:!0,data:!0}),yr;sn&&((0,yt.Z)(sn)==="object"?yr=sn:typeof sn=="function"?yr={nodeDraggable:sn}:yr={});var cr={prefixCls:pt,selectable:St,showIcon:jt,icon:Ht,switcherIcon:Qt,draggable:yr,draggingNodeKey:at,checkable:wn,checkStrictly:Bn,disabled:Fn,keyEntities:Xe,dropLevelOffset:mt,dropContainerKey:ut,dropTargetKey:ct,dropPosition:Pt,dragOverNodeKey:wt,indent:Bt,direction:Gn,dropIndicatorRender:Cn,loadData:Dn,filterTreeNode:un,titleRender:dn,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 ae.createElement(he.k.Provider,{value:cr},ae.createElement("div",{className:E()(pt,Mt,_n,(0,ee.Z)((0,ee.Z)((0,ee.Z)({},"".concat(pt,"-show-line"),xt),"".concat(pt,"-focused"),$e),"".concat(pt,"-active-focused"),lt!==null)),style:Yn},ae.createElement(qe,(0,le.Z)({ref:this.listRef,prefixCls:pt,style:kt,data:Ze,disabled:Fn,selectable:St,checkable:!!wn,motion:gn,dragging:at!==null,height:Tn,itemHeight:Mn,virtual:tn,focusable:It,focused:$e,tabIndex:en,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Pn,onScroll:Hn,scrollWidth:nn},this.getTreeNodeRequiredProps(),Wn))))}}],[{key:"getDerivedStateFromProps",value:function(Oe,$e){var Ze=$e.prevProps,Xe={prevProps:Oe};function at(en){return!Ze&&Oe.hasOwnProperty(en)||Ze&&Ze[en]!==Oe[en]}var lt,mt=$e.fieldNames;if(at("fieldNames")&&(mt=(0,Me.w$)(Oe.fieldNames),Xe.fieldNames=mt),at("treeData")?lt=Oe.treeData:at("children")&&((0,se.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),lt=(0,Me.zn)(Oe.children)),lt){Xe.treeData=lt;var ut=(0,Me.I8)(lt,{fieldNames:mt});Xe.keyEntities=(0,a.Z)((0,ee.Z)({},Ke,rt),ut.keyEntities)}var ct=Xe.keyEntities||$e.keyEntities;if(at("expandedKeys")||Ze&&at("autoExpandParent"))Xe.expandedKeys=Oe.autoExpandParent||!Ze&&Oe.defaultExpandParent?(0,vt.r7)(Oe.expandedKeys,ct):Oe.expandedKeys;else if(!Ze&&Oe.defaultExpandAll){var Pt=(0,a.Z)({},ct);delete Pt[Ke];var wt=[];Object.keys(Pt).forEach(function(en){var St=Pt[en];St.children&&St.children.length&&wt.push(St.key)}),Xe.expandedKeys=wt}else!Ze&&Oe.defaultExpandedKeys&&(Xe.expandedKeys=Oe.autoExpandParent||Oe.defaultExpandParent?(0,vt.r7)(Oe.defaultExpandedKeys,ct):Oe.defaultExpandedKeys);if(Xe.expandedKeys||delete Xe.expandedKeys,lt||Xe.expandedKeys){var Bt=(0,Me.oH)(lt||$e.treeData,Xe.expandedKeys||$e.expandedKeys,mt);Xe.flattenNodes=Bt}if(Oe.selectable&&(at("selectedKeys")?Xe.selectedKeys=(0,vt.BT)(Oe.selectedKeys,Oe):!Ze&&Oe.defaultSelectedKeys&&(Xe.selectedKeys=(0,vt.BT)(Oe.defaultSelectedKeys,Oe))),Oe.checkable){var At;if(at("checkedKeys")?At=(0,vt.E6)(Oe.checkedKeys)||{}:!Ze&&Oe.defaultCheckedKeys?At=(0,vt.E6)(Oe.defaultCheckedKeys)||{}:lt&&(At=(0,vt.E6)(Oe.checkedKeys)||{checkedKeys:$e.checkedKeys,halfCheckedKeys:$e.halfCheckedKeys}),At){var pt=At,Mt=pt.checkedKeys,kt=Mt===void 0?[]:Mt,xt=pt.halfCheckedKeys,It=xt===void 0?[]:xt;if(!Oe.checkStrictly){var Ut=(0,ot.S)(kt,!0,ct);kt=Ut.checkedKeys,It=Ut.halfCheckedKeys}Xe.checkedKeys=kt,Xe.halfCheckedKeys=It}}return at("loadedKeys")&&(Xe.loadedKeys=Oe.loadedKeys),Xe}}]),we}(ae.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:ve,allowDrop:function(){return!0},expandAction:!1}),(0,ee.Z)(Re,"TreeNode",Se.Z);var ne=Re,fe=ne},82661:function(on,Lt,Ce){"use strict";Ce.d(Lt,{BT:function(){return ae},E6:function(){return ve},L0:function(){return ee},OM:function(){return se},_5:function(){return oe},r7:function(){return pe},wA:function(){return E},yx:function(){return ue}});var le=Ce(77654),yt=Ce(43749),a=Ce(48736),Te=Ce(59301),ge=Ce(639),x=Ce(65065),z=Ce(34061),ie=null;function oe(be,je){if(!be)return[];var ke=be.slice(),Be=ke.indexOf(je);return Be>=0&&ke.splice(Be,1),ke}function ee(be,je){var ke=(be||[]).slice();return ke.indexOf(je)===-1&&ke.push(je),ke}function ue(be){return be.split("-")}function E(be,je){var ke=[],Be=(0,x.Z)(je,be);function De(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Se.forEach(function(Ee){var Ie=Ee.key,Me=Ee.children;ke.push(Ie),De(Me)})}return De(Be.children),ke}function re(be){if(be.parent){var je=ue(be.pos);return Number(je[je.length-1])===be.parent.children.length-1}return!1}function te(be){var je=ue(be.pos);return Number(je[je.length-1])===0}function se(be,je,ke,Be,De,Se,Ee,Ie,Me,Le){var Ae,Pe=be.clientX,Ue=be.clientY,He=be.target.getBoundingClientRect(),Je=He.top,st=He.height,_e=(Le==="rtl"?-1:1)*(((De==null?void 0:De.x)||0)-Pe),Ke=(_e-12)/Be,nt=Me.filter(function(fe){var Ne;return(Ne=Ie[fe])===null||Ne===void 0||(Ne=Ne.children)===null||Ne===void 0?void 0:Ne.length}),rt=(0,x.Z)(Ie,ke.eventKey);if(Ue<Je+st/2){var et=Ee.findIndex(function(fe){return fe.key===rt.key}),Ve=et<=0?0:et-1,Ye=Ee[Ve].key;rt=(0,x.Z)(Ie,Ye)}var Ge=rt.key,it=rt,qe=rt.key,vt=0,ot=0;if(!nt.includes(Ge))for(var Qe=0;Qe<Ke&&re(rt);Qe+=1)rt=rt.parent,ot+=1;var Fe=je.data,Re=rt.node,ne=!0;return te(rt)&&rt.level===0&&Ue<Je+st/2&&Se({dragNode:Fe,dropNode:Re,dropPosition:-1})&&rt.key===ke.eventKey?vt=-1:(it.children||[]).length&&nt.includes(qe)?Se({dragNode:Fe,dropNode:Re,dropPosition:0})?vt=0:ne=!1:ot===0?Ke>-1.5?Se({dragNode:Fe,dropNode:Re,dropPosition:1})?vt=1:ne=!1:Se({dragNode:Fe,dropNode:Re,dropPosition:0})?vt=0:Se({dragNode:Fe,dropNode:Re,dropPosition:1})?vt=1:ne=!1:Se({dragNode:Fe,dropNode:Re,dropPosition:1})?vt=1:ne=!1,{dropPosition:vt,dropLevelOffset:ot,dropTargetKey:rt.key,dropTargetPos:rt.pos,dragOverNodeKey:qe,dropContainerKey:vt===0?null:((Ae=rt.parent)===null||Ae===void 0?void 0:Ae.key)||null,dropAllowed:ne}}function ae(be,je){if(be){var ke=je.multiple;return ke?be.slice():be.length?[be[0]]:be}}var he=function(je){return je};function me(be,je){if(!be)return[];var ke=je||{},Be=ke.processProps,De=Be===void 0?he:Be,Se=Array.isArray(be)?be:[be];return Se.map(function(Ee){var Ie=Ee.children,Me=_objectWithoutProperties(Ee,ie),Le=me(Ie,je);return React.createElement(TreeNode,_extends({key:Me.key},De(Me)),Le)})}function ve(be){if(!be)return null;var je;if(Array.isArray(be))je={checkedKeys:be,halfCheckedKeys:void 0};else if((0,yt.Z)(be)==="object")je={checkedKeys:be.checked||void 0,halfCheckedKeys:be.halfChecked||void 0};else return(0,a.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return je}function pe(be,je){var ke=new Set;function Be(De){if(!ke.has(De)){var Se=(0,x.Z)(je,De);if(Se){ke.add(De);var Ee=Se.parent,Ie=Se.node;Ie.disabled||Ee&&Be(Ee.key)}}}return(be||[]).forEach(function(De){Be(De)}),(0,le.Z)(ke)}},34643:function(on,Lt,Ce){"use strict";Ce.d(Lt,{S:function(){return z}});var le=Ce(48736),yt=Ce(65065);function a(ie,oe){var ee=new Set;return ie.forEach(function(ue){oe.has(ue)||ee.add(ue)}),ee}function Te(ie){var oe=ie||{},ee=oe.disabled,ue=oe.disableCheckbox,E=oe.checkable;return!!(ee||ue)||E===!1}function ge(ie,oe,ee,ue){for(var E=new Set(ie),re=new Set,te=0;te<=ee;te+=1){var se=oe.get(te)||new Set;se.forEach(function(ve){var pe=ve.key,be=ve.node,je=ve.children,ke=je===void 0?[]:je;E.has(pe)&&!ue(be)&&ke.filter(function(Be){return!ue(Be.node)}).forEach(function(Be){E.add(Be.key)})})}for(var ae=new Set,he=ee;he>=0;he-=1){var me=oe.get(he)||new Set;me.forEach(function(ve){var pe=ve.parent,be=ve.node;if(!(ue(be)||!ve.parent||ae.has(ve.parent.key))){if(ue(ve.parent.node)){ae.add(pe.key);return}var je=!0,ke=!1;(pe.children||[]).filter(function(Be){return!ue(Be.node)}).forEach(function(Be){var De=Be.key,Se=E.has(De);je&&!Se&&(je=!1),!ke&&(Se||re.has(De))&&(ke=!0)}),je&&E.add(pe.key),ke&&re.add(pe.key),ae.add(pe.key)}})}return{checkedKeys:Array.from(E),halfCheckedKeys:Array.from(a(re,E))}}function x(ie,oe,ee,ue,E){for(var re=new Set(ie),te=new Set(oe),se=0;se<=ue;se+=1){var ae=ee.get(se)||new Set;ae.forEach(function(pe){var be=pe.key,je=pe.node,ke=pe.children,Be=ke===void 0?[]:ke;!re.has(be)&&!te.has(be)&&!E(je)&&Be.filter(function(De){return!E(De.node)}).forEach(function(De){re.delete(De.key)})})}te=new Set;for(var he=new Set,me=ue;me>=0;me-=1){var ve=ee.get(me)||new Set;ve.forEach(function(pe){var be=pe.parent,je=pe.node;if(!(E(je)||!pe.parent||he.has(pe.parent.key))){if(E(pe.parent.node)){he.add(be.key);return}var ke=!0,Be=!1;(be.children||[]).filter(function(De){return!E(De.node)}).forEach(function(De){var Se=De.key,Ee=re.has(Se);ke&&!Ee&&(ke=!1),!Be&&(Ee||te.has(Se))&&(Be=!0)}),ke||re.delete(be.key),Be&&te.add(be.key),he.add(be.key)}})}return{checkedKeys:Array.from(re),halfCheckedKeys:Array.from(a(te,re))}}function z(ie,oe,ee,ue){var E=[],re;ue?re=ue:re=Te;var te=new Set(ie.filter(function(me){var ve=!!(0,yt.Z)(ee,me);return ve||E.push(me),ve})),se=new Map,ae=0;Object.keys(ee).forEach(function(me){var ve=ee[me],pe=ve.level,be=se.get(pe);be||(be=new Set,se.set(pe,be)),be.add(ve),ae=Math.max(ae,pe)}),(0,le.ZP)(!E.length,"Tree missing follow keys: ".concat(E.slice(0,100).map(function(me){return"'".concat(me,"'")}).join(", ")));var he;return oe===!0?he=ge(te,se,ae,re):he=x(te,oe.halfCheckedKeys,se,ae,re),he}},65065:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return le}});function le(yt,a){return yt[a]}},34061:function(on,Lt,Ce){"use strict";Ce.d(Lt,{F:function(){return pe},H8:function(){return ve},I8:function(){return me},km:function(){return E},oH:function(){return ae},w$:function(){return re},zn:function(){return se}});var le=Ce(43749),yt=Ce(77654),a=Ce(85899),Te=Ce(42244),ge=Ce(11592),x=Ce(2738),z=Ce(48736),ie=Ce(65065),oe=["children"];function ee(be,je){return"".concat(be,"-").concat(je)}function ue(be){return be&&be.type&&be.type.isTreeNode}function E(be,je){return be!=null?be:je}function re(be){var je=be||{},ke=je.title,Be=je._title,De=je.key,Se=je.children,Ee=ke||"title";return{title:Ee,_title:Be||[Ee],key:De||"key",children:Se||"children"}}function te(be,je){var ke=new Map;function Be(De){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(De||[]).forEach(function(Ee){var Ie=Ee[je.key],Me=Ee[je.children];warning(Ie!=null,"Tree node must have a certain key: [".concat(Se).concat(Ie,"]"));var Le=String(Ie);warning(!ke.has(Le)||Ie===null||Ie===void 0,"Same 'key' exist in the Tree: ".concat(Le)),ke.set(Le,!0),Be(Me,"".concat(Se).concat(Le," > "))})}Be(be)}function se(be){function je(ke){var Be=(0,ge.Z)(ke);return Be.map(function(De){if(!ue(De))return(0,z.ZP)(!De,"Tree/TreeNode can only accept TreeNode as children."),null;var Se=De.key,Ee=De.props,Ie=Ee.children,Me=(0,Te.Z)(Ee,oe),Le=(0,a.Z)({key:Se},Me),Ae=je(Ie);return Ae.length&&(Le.children=Ae),Le}).filter(function(De){return De})}return je(be)}function ae(be,je,ke){var Be=re(ke),De=Be._title,Se=Be.key,Ee=Be.children,Ie=new Set(je===!0?[]:je),Me=[];function Le(Ae){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ae.map(function(Ue,He){for(var Je=ee(Pe?Pe.pos:"0",He),st=E(Ue[Se],Je),_e,Ke=0;Ke<De.length;Ke+=1){var nt=De[Ke];if(Ue[nt]!==void 0){_e=Ue[nt];break}}var rt=Object.assign((0,x.Z)(Ue,[].concat((0,yt.Z)(De),[Se,Ee])),{title:_e,key:st,parent:Pe,pos:Je,children:null,data:Ue,isStart:[].concat((0,yt.Z)(Pe?Pe.isStart:[]),[He===0]),isEnd:[].concat((0,yt.Z)(Pe?Pe.isEnd:[]),[He===Ae.length-1])});return Me.push(rt),je===!0||Ie.has(st)?rt.children=Le(Ue[Ee]||[],rt):rt.children=[],rt})}return Le(be),Me}function he(be,je,ke){var Be={};(0,le.Z)(ke)==="object"?Be=ke:Be={externalGetKey:ke},Be=Be||{};var De=Be,Se=De.childrenPropName,Ee=De.externalGetKey,Ie=De.fieldNames,Me=re(Ie),Le=Me.key,Ae=Me.children,Pe=Se||Ae,Ue;Ee?typeof Ee=="string"?Ue=function(st){return st[Ee]}:typeof Ee=="function"&&(Ue=function(st){return Ee(st)}):Ue=function(st,_e){return E(st[Le],_e)};function He(Je,st,_e,Ke){var nt=Je?Je[Pe]:be,rt=Je?ee(_e.pos,st):"0",et=Je?[].concat((0,yt.Z)(Ke),[Je]):[];if(Je){var Ve=Ue(Je,rt),Ye={node:Je,index:st,pos:rt,key:Ve,parentPos:_e.node?_e.pos:null,level:_e.level+1,nodes:et};je(Ye)}nt&&nt.forEach(function(Ge,it){He(Ge,it,{node:Je,pos:rt,level:_e?_e.level+1:-1},et)})}He(null)}function me(be){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ke=je.initWrapper,Be=je.processEntity,De=je.onProcessFinished,Se=je.externalGetKey,Ee=je.childrenPropName,Ie=je.fieldNames,Me=arguments.length>2?arguments[2]:void 0,Le=Se||Me,Ae={},Pe={},Ue={posEntities:Ae,keyEntities:Pe};return ke&&(Ue=ke(Ue)||Ue),he(be,function(He){var Je=He.node,st=He.index,_e=He.pos,Ke=He.key,nt=He.parentPos,rt=He.level,et=He.nodes,Ve={node:Je,nodes:et,index:st,key:Ke,pos:_e,level:rt},Ye=E(Ke,_e);Ae[_e]=Ve,Pe[Ye]=Ve,Ve.parent=Ae[nt],Ve.parent&&(Ve.parent.children=Ve.parent.children||[],Ve.parent.children.push(Ve)),Be&&Be(Ve,Ue)},{externalGetKey:Le,childrenPropName:Ee,fieldNames:Ie}),De&&De(Ue),Ue}function ve(be,je){var ke=je.expandedKeys,Be=je.selectedKeys,De=je.loadedKeys,Se=je.loadingKeys,Ee=je.checkedKeys,Ie=je.halfCheckedKeys,Me=je.dragOverNodeKey,Le=je.dropPosition,Ae=je.keyEntities,Pe=(0,ie.Z)(Ae,be),Ue={eventKey:be,expanded:ke.indexOf(be)!==-1,selected:Be.indexOf(be)!==-1,loaded:De.indexOf(be)!==-1,loading:Se.indexOf(be)!==-1,checked:Ee.indexOf(be)!==-1,halfChecked:Ie.indexOf(be)!==-1,pos:String(Pe?Pe.pos:""),dragOver:Me===be&&Le===0,dragOverGapTop:Me===be&&Le===-1,dragOverGapBottom:Me===be&&Le===1};return Ue}function pe(be){var je=be.data,ke=be.expanded,Be=be.selected,De=be.checked,Se=be.loaded,Ee=be.loading,Ie=be.halfChecked,Me=be.dragOver,Le=be.dragOverGapTop,Ae=be.dragOverGapBottom,Pe=be.pos,Ue=be.active,He=be.eventKey,Je=(0,a.Z)((0,a.Z)({},je),{},{expanded:ke,selected:Be,checked:De,loaded:Se,loading:Ee,halfChecked:Ie,dragOver:Me,dragOverGapTop:Le,dragOverGapBottom:Ae,pos:Pe,active:Ue,key:He});return"props"in Je||Object.defineProperty(Je,"props",{get:function(){return(0,z.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),be}}),Je}},8224:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return yt}});var le=Ce(4676);function yt(a,Te,ge,x){var z=le.unstable_batchedUpdates?function(oe){le.unstable_batchedUpdates(ge,oe)}:ge;return a!=null&&a.addEventListener&&a.addEventListener(Te,z,x),{remove:function(){a!=null&&a.removeEventListener&&a.removeEventListener(Te,z,x)}}}},24514:function(on,Lt,Ce){"use strict";Ce.d(Lt,{G:function(){return Te}});var le=Ce(47273),yt=function(x){if((0,le.Z)()&&window.document.documentElement){var z=Array.isArray(x)?x:[x],ie=window.document.documentElement;return z.some(function(oe){return oe in ie.style})}return!1},a=function(x,z){if(!yt(x))return!1;var ie=document.createElement("div"),oe=ie.style[x];return ie.style[x]=z,ie.style[x]!==oe};function Te(ge,x){return!Array.isArray(ge)&&x!==void 0?a(ge,x):yt(ge)}},48911:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return Fe}});var le=Ce(60499),yt=Ce(43749),a=Ce(85899),Te=Ce(18642),ge=Ce(72190),x=Ce(42244),z=Ce(92310),ie=Ce.n(z),oe=Ce(29301),ee=Ce(70425),ue=Ce(34280),E=Ce(59301),re=Ce(4676),te=E.forwardRef(function(Re,ne){var fe=Re.height,Ne=Re.offsetY,We=Re.offsetX,we=Re.children,ye=Re.prefixCls,Oe=Re.onInnerResize,$e=Re.innerProps,Ze=Re.rtl,Xe=Re.extra,at={},lt={display:"flex",flexDirection:"column"};return Ne!==void 0&&(at={height:fe,position:"relative",overflow:"hidden"},lt=(0,a.Z)((0,a.Z)({},lt),{},(0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)({transform:"translateY(".concat(Ne,"px)")},Ze?"marginRight":"marginLeft",-We),"position","absolute"),"left",0),"right",0),"top",0))),E.createElement("div",{style:at},E.createElement(oe.Z,{onResize:function(ut){var ct=ut.offsetHeight;ct&&Oe&&Oe()}},E.createElement("div",(0,le.Z)({style:lt,className:ie()((0,Te.Z)({},"".concat(ye,"-holder-inner"),ye)),ref:ne},$e),we,Xe)))});te.displayName="Filler";var se=te;function ae(Re){var ne=Re.children,fe=Re.setRef,Ne=E.useCallback(function(We){fe(We)},[]);return E.cloneElement(ne,{ref:Ne})}function he(Re,ne,fe,Ne,We,we,ye,Oe){var $e=Oe.getKey;return Re.slice(ne,fe+1).map(function(Ze,Xe){var at=ne+Xe,lt=ye(Ze,at,{style:{width:Ne},offsetX:We}),mt=$e(Ze);return E.createElement(ae,{key:mt,setRef:function(ct){return we(Ze,ct)}},lt)})}function me(Re,ne,fe,Ne){var We=fe-Re,we=ne-fe,ye=Math.min(We,we)*2;if(Ne<=ye){var Oe=Math.floor(Ne/2);return Ne%2?fe+Oe+1:fe-Oe}return We>we?fe-(Ne-we):fe+(Ne-We)}function ve(Re,ne,fe){var Ne=Re.length,We=ne.length,we,ye;if(Ne===0&&We===0)return null;Ne<We?(we=Re,ye=ne):(we=ne,ye=Re);var Oe={__EMPTY_ITEM__:!0};function $e(ut){return ut!==void 0?fe(ut):Oe}for(var Ze=null,Xe=Math.abs(Ne-We)!==1,at=0;at<ye.length;at+=1){var lt=$e(we[at]),mt=$e(ye[at]);if(lt!==mt){Ze=at,Xe=Xe||lt!==$e(ye[at+1]);break}}return Ze===null?null:{index:Ze,multiple:Xe}}function pe(Re,ne,fe){var Ne=E.useState(Re),We=(0,ge.Z)(Ne,2),we=We[0],ye=We[1],Oe=E.useState(null),$e=(0,ge.Z)(Oe,2),Ze=$e[0],Xe=$e[1];return E.useEffect(function(){var at=ve(we||[],Re||[],ne);(at==null?void 0:at.index)!==void 0&&(fe==null||fe(at.index),Xe(Re[at.index])),ye(Re)},[Re]),[Ze]}var be=Ce(16089),je=(typeof navigator=="undefined"?"undefined":(0,yt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),ke=je,Be=function(Re,ne,fe,Ne){var We=(0,E.useRef)(!1),we=(0,E.useRef)(null);function ye(){clearTimeout(we.current),We.current=!0,we.current=setTimeout(function(){We.current=!1},50)}var Oe=(0,E.useRef)({top:Re,bottom:ne,left:fe,right:Ne});return Oe.current.top=Re,Oe.current.bottom=ne,Oe.current.left=fe,Oe.current.right=Ne,function($e,Ze){var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,at=$e?Ze<0&&Oe.current.left||Ze>0&&Oe.current.right:Ze<0&&Oe.current.top||Ze>0&&Oe.current.bottom;return Xe&&at?(clearTimeout(we.current),We.current=!1):(!at||We.current)&&ye(),!We.current&&at}};function De(Re,ne,fe,Ne,We,we,ye){var Oe=(0,E.useRef)(0),$e=(0,E.useRef)(null),Ze=(0,E.useRef)(null),Xe=(0,E.useRef)(!1),at=Be(ne,fe,Ne,We);function lt(Bt,At){if(be.Z.cancel($e.current),!at(!1,At)){var pt=Bt;if(!pt._virtualHandled)pt._virtualHandled=!0;else return;Oe.current+=At,Ze.current=At,ke||pt.preventDefault(),$e.current=(0,be.Z)(function(){var Mt=Xe.current?10:1;ye(Oe.current*Mt,!1),Oe.current=0})}}function mt(Bt,At){ye(At,!0),ke||Bt.preventDefault()}var ut=(0,E.useRef)(null),ct=(0,E.useRef)(null);function Pt(Bt){if(Re){be.Z.cancel(ct.current),ct.current=(0,be.Z)(function(){ut.current=null},2);var At=Bt.deltaX,pt=Bt.deltaY,Mt=Bt.shiftKey,kt=At,xt=pt;(ut.current==="sx"||!ut.current&&Mt&&pt&&!At)&&(kt=pt,xt=0,ut.current="sx");var It=Math.abs(kt),Ut=Math.abs(xt);ut.current===null&&(ut.current=we&&It>Ut?"x":"y"),ut.current==="y"?lt(Bt,xt):mt(Bt,kt)}}function wt(Bt){Re&&(Xe.current=Bt.detail===Ze.current)}return[Pt,wt]}function Se(Re,ne,fe,Ne){var We=E.useMemo(function(){return[new Map,[]]},[Re,fe.id,Ne]),we=(0,ge.Z)(We,2),ye=we[0],Oe=we[1],$e=function(Xe){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xe,lt=ye.get(Xe),mt=ye.get(at);if(lt===void 0||mt===void 0)for(var ut=Re.length,ct=Oe.length;ct<ut;ct+=1){var Pt,wt=Re[ct],Bt=ne(wt);ye.set(Bt,ct);var At=(Pt=fe.get(Bt))!==null&&Pt!==void 0?Pt:Ne;if(Oe[ct]=(Oe[ct-1]||0)+At,Bt===Xe&&(lt=ct),Bt===at&&(mt=ct),lt!==void 0&&mt!==void 0)break}return{top:Oe[lt-1]||0,bottom:Oe[mt]}};return $e}var Ee=Ce(38705),Ie=Ce(17212),Me=function(){function Re(){(0,Ee.Z)(this,Re),(0,Te.Z)(this,"maps",void 0),(0,Te.Z)(this,"id",0),(0,Te.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Ie.Z)(Re,[{key:"set",value:function(fe,Ne){this.diffRecords.set(fe,this.maps[fe]),this.maps[fe]=Ne,this.id+=1}},{key:"get",value:function(fe){return this.maps[fe]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),Re}(),Le=Me;function Ae(Re){var ne=parseFloat(Re);return isNaN(ne)?0:ne}function Pe(Re,ne,fe){var Ne=E.useState(0),We=(0,ge.Z)(Ne,2),we=We[0],ye=We[1],Oe=(0,E.useRef)(new Map),$e=(0,E.useRef)(new Le),Ze=(0,E.useRef)(0);function Xe(){Ze.current+=1}function at(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Xe();var ut=function(){var wt=!1;Oe.current.forEach(function(Bt,At){if(Bt&&Bt.offsetParent){var pt=Bt.offsetHeight,Mt=getComputedStyle(Bt),kt=Mt.marginTop,xt=Mt.marginBottom,It=Ae(kt),Ut=Ae(xt),en=pt+It+Ut;$e.current.get(At)!==en&&($e.current.set(At,en),wt=!0)}}),wt&&ye(function(Bt){return Bt+1})};if(mt)ut();else{Ze.current+=1;var ct=Ze.current;Promise.resolve().then(function(){ct===Ze.current&&ut()})}}function lt(mt,ut){var ct=Re(mt),Pt=Oe.current.get(ct);ut?(Oe.current.set(ct,ut),at()):Oe.current.delete(ct),!Pt!=!ut&&(ut?ne==null||ne(mt):fe==null||fe(mt))}return(0,E.useEffect)(function(){return Xe},[]),[lt,at,$e.current,we]}var Ue=14/15;function He(Re,ne,fe){var Ne=(0,E.useRef)(!1),We=(0,E.useRef)(0),we=(0,E.useRef)(0),ye=(0,E.useRef)(null),Oe=(0,E.useRef)(null),$e,Ze=function(mt){if(Ne.current){var ut=Math.ceil(mt.touches[0].pageX),ct=Math.ceil(mt.touches[0].pageY),Pt=We.current-ut,wt=we.current-ct,Bt=Math.abs(Pt)>Math.abs(wt);Bt?We.current=ut:we.current=ct;var At=fe(Bt,Bt?Pt:wt,!1,mt);At&&mt.preventDefault(),clearInterval(Oe.current),At&&(Oe.current=setInterval(function(){Bt?Pt*=Ue:wt*=Ue;var pt=Math.floor(Bt?Pt:wt);(!fe(Bt,pt,!0)||Math.abs(pt)<=.1)&&clearInterval(Oe.current)},16))}},Xe=function(){Ne.current=!1,$e()},at=function(mt){$e(),mt.touches.length===1&&!Ne.current&&(Ne.current=!0,We.current=Math.ceil(mt.touches[0].pageX),we.current=Math.ceil(mt.touches[0].pageY),ye.current=mt.target,ye.current.addEventListener("touchmove",Ze,{passive:!1}),ye.current.addEventListener("touchend",Xe,{passive:!0}))};$e=function(){ye.current&&(ye.current.removeEventListener("touchmove",Ze),ye.current.removeEventListener("touchend",Xe))},(0,ue.Z)(function(){return Re&&ne.current.addEventListener("touchstart",at,{passive:!0}),function(){var lt;(lt=ne.current)===null||lt===void 0||lt.removeEventListener("touchstart",at),$e(),clearInterval(Oe.current)}},[Re])}function Je(Re){return Math.floor(Math.pow(Re,.5))}function st(Re,ne){var fe="touches"in Re?Re.touches[0]:Re;return fe[ne?"pageX":"pageY"]-window[ne?"scrollX":"scrollY"]}function _e(Re,ne,fe){E.useEffect(function(){var Ne=ne.current;if(Re&&Ne){var We=!1,we,ye,Oe=function(){be.Z.cancel(we)},$e=function lt(){Oe(),we=(0,be.Z)(function(){fe(ye),lt()})},Ze=function(){We=!1,Oe()},Xe=function(mt){if(!(mt.target.draggable||mt.button!==0)){var ut=mt;ut._virtualHandled||(ut._virtualHandled=!0,We=!0)}},at=function(mt){if(We){var ut=st(mt,!1),ct=Ne.getBoundingClientRect(),Pt=ct.top,wt=ct.bottom;if(ut<=Pt){var Bt=Pt-ut;ye=-Je(Bt),$e()}else if(ut>=wt){var At=ut-wt;ye=Je(At),$e()}else Oe()}};return Ne.addEventListener("mousedown",Xe),Ne.ownerDocument.addEventListener("mouseup",Ze),Ne.ownerDocument.addEventListener("mousemove",at),Ne.ownerDocument.addEventListener("dragend",Ze),function(){Ne.removeEventListener("mousedown",Xe),Ne.ownerDocument.removeEventListener("mouseup",Ze),Ne.ownerDocument.removeEventListener("mousemove",at),Ne.ownerDocument.removeEventListener("dragend",Ze),Oe()}}},[Re])}var Ke=10;function nt(Re,ne,fe,Ne,We,we,ye,Oe){var $e=E.useRef(),Ze=E.useState(null),Xe=(0,ge.Z)(Ze,2),at=Xe[0],lt=Xe[1];return(0,ue.Z)(function(){if(at&&at.times<Ke){if(!Re.current){lt(function(gn){return(0,a.Z)({},gn)});return}we();var mt=at.targetAlign,ut=at.originAlign,ct=at.index,Pt=at.offset,wt=Re.current.clientHeight,Bt=!1,At=mt,pt=null;if(wt){for(var Mt=mt||ut,kt=0,xt=0,It=0,Ut=Math.min(ne.length-1,ct),en=0;en<=Ut;en+=1){var St=We(ne[en]);xt=kt;var jt=fe.get(St);It=xt+(jt===void 0?Ne:jt),kt=It}for(var Ht=Mt==="top"?Pt:wt-Pt,Qt=Ut;Qt>=0;Qt-=1){var sn=We(ne[Qt]),wn=fe.get(sn);if(wn===void 0){Bt=!0;break}if(Ht-=wn,Ht<=0)break}switch(Mt){case"top":pt=xt-Pt;break;case"bottom":pt=It-wt+Pt;break;default:{var Bn=Re.current.scrollTop,Fn=Bn+wt;xt<Bn?At="top":It>Fn&&(At="bottom")}}pt!==null&&ye(pt),pt!==at.lastTop&&(Bt=!0)}Bt&&lt((0,a.Z)((0,a.Z)({},at),{},{times:at.times+1,targetAlign:At,lastTop:pt}))}},[at,Re.current]),function(mt){if(mt==null){Oe();return}if(be.Z.cancel($e.current),typeof mt=="number")ye(mt);else if(mt&&(0,yt.Z)(mt)==="object"){var ut,ct=mt.align;"index"in mt?ut=mt.index:ut=ne.findIndex(function(Bt){return We(Bt)===mt.key});var Pt=mt.offset,wt=Pt===void 0?0:Pt;lt({times:0,index:ut,offset:wt,originAlign:ct})}}}var rt=E.forwardRef(function(Re,ne){var fe=Re.prefixCls,Ne=Re.rtl,We=Re.scrollOffset,we=Re.scrollRange,ye=Re.onStartMove,Oe=Re.onStopMove,$e=Re.onScroll,Ze=Re.horizontal,Xe=Re.spinSize,at=Re.containerSize,lt=Re.style,mt=Re.thumbStyle,ut=Re.showScrollBar,ct=E.useState(!1),Pt=(0,ge.Z)(ct,2),wt=Pt[0],Bt=Pt[1],At=E.useState(null),pt=(0,ge.Z)(At,2),Mt=pt[0],kt=pt[1],xt=E.useState(null),It=(0,ge.Z)(xt,2),Ut=It[0],en=It[1],St=!Ne,jt=E.useRef(),Ht=E.useRef(),Qt=E.useState(ut),sn=(0,ge.Z)(Qt,2),wn=sn[0],Bn=sn[1],Fn=E.useRef(),gn=function(){ut===!0||ut===!1||(clearTimeout(Fn.current),Bn(!0),Fn.current=setTimeout(function(){Bn(!1)},3e3))},Dn=we-at||0,un=at-Xe||0,Tn=E.useMemo(function(){if(We===0||Dn===0)return 0;var _n=We/Dn;return _n*un},[We,Dn,un]),Mn=function(Yn){Yn.stopPropagation(),Yn.preventDefault()},nn=E.useRef({top:Tn,dragging:wt,pageY:Mt,startTop:Ut});nn.current={top:Tn,dragging:wt,pageY:Mt,startTop:Ut};var tn=function(Yn){Bt(!0),kt(st(Yn,Ze)),en(nn.current.top),ye(),Yn.stopPropagation(),Yn.preventDefault()};E.useEffect(function(){var _n=function(cr){cr.preventDefault()},Yn=jt.current,Wn=Ht.current;return Yn.addEventListener("touchstart",_n,{passive:!1}),Wn.addEventListener("touchstart",tn,{passive:!1}),function(){Yn.removeEventListener("touchstart",_n),Wn.removeEventListener("touchstart",tn)}},[]);var dn=E.useRef();dn.current=Dn;var Cn=E.useRef();Cn.current=un,E.useEffect(function(){if(wt){var _n,Yn=function(cr){var cn=nn.current,An=cn.dragging,qn=cn.pageY,wr=cn.startTop;be.Z.cancel(_n);var Rt=jt.current.getBoundingClientRect(),Xt=at/(Ze?Rt.width:Rt.height);if(An){var Et=(st(cr,Ze)-qn)*Xt,Dt=wr;!St&&Ze?Dt-=Et:Dt+=Et;var Tt=dn.current,_t=Cn.current,bt=_t?Dt/_t:0,Zt=Math.ceil(bt*Tt);Zt=Math.max(Zt,0),Zt=Math.min(Zt,Tt),_n=(0,be.Z)(function(){$e(Zt,Ze)})}},Wn=function(){Bt(!1),Oe()};return window.addEventListener("mousemove",Yn,{passive:!0}),window.addEventListener("touchmove",Yn,{passive:!0}),window.addEventListener("mouseup",Wn,{passive:!0}),window.addEventListener("touchend",Wn,{passive:!0}),function(){window.removeEventListener("mousemove",Yn),window.removeEventListener("touchmove",Yn),window.removeEventListener("mouseup",Wn),window.removeEventListener("touchend",Wn),be.Z.cancel(_n)}}},[wt]),E.useEffect(function(){return gn(),function(){clearTimeout(Fn.current)}},[We]),E.useImperativeHandle(ne,function(){return{delayHidden:gn}});var Pn="".concat(fe,"-scrollbar"),Hn={position:"absolute",visibility:wn?null:"hidden"},Gn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Ze?(Object.assign(Hn,{height:8,left:0,right:0,bottom:0}),Object.assign(Gn,(0,Te.Z)({height:"100%",width:Xe},St?"left":"right",Tn))):(Object.assign(Hn,(0,Te.Z)({width:8,top:0,bottom:0},St?"right":"left",0)),Object.assign(Gn,{width:"100%",height:Xe,top:Tn})),E.createElement("div",{ref:jt,className:ie()(Pn,(0,Te.Z)((0,Te.Z)((0,Te.Z)({},"".concat(Pn,"-horizontal"),Ze),"".concat(Pn,"-vertical"),!Ze),"".concat(Pn,"-visible"),wn)),style:(0,a.Z)((0,a.Z)({},Hn),lt),onMouseDown:Mn,onMouseMove:gn},E.createElement("div",{ref:Ht,className:ie()("".concat(Pn,"-thumb"),(0,Te.Z)({},"".concat(Pn,"-thumb-moving"),wt)),style:(0,a.Z)((0,a.Z)({},Gn),mt),onMouseDown:tn}))}),et=rt,Ve=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,Ve),Math.floor(fe)}var Ge=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],it=[],qe={overflowY:"auto",overflowAnchor:"none"};function vt(Re,ne){var fe=Re.prefixCls,Ne=fe===void 0?"rc-virtual-list":fe,We=Re.className,we=Re.height,ye=Re.itemHeight,Oe=Re.fullHeight,$e=Oe===void 0?!0:Oe,Ze=Re.style,Xe=Re.data,at=Re.children,lt=Re.itemKey,mt=Re.virtual,ut=Re.direction,ct=Re.scrollWidth,Pt=Re.component,wt=Pt===void 0?"div":Pt,Bt=Re.onScroll,At=Re.onVirtualScroll,pt=Re.onVisibleChange,Mt=Re.innerProps,kt=Re.extraRender,xt=Re.styles,It=Re.showScrollBar,Ut=It===void 0?"optional":It,en=(0,x.Z)(Re,Ge),St=E.useCallback(function(bn){return typeof lt=="function"?lt(bn):bn==null?void 0:bn[lt]},[lt]),jt=Pe(St,null,null),Ht=(0,ge.Z)(jt,4),Qt=Ht[0],sn=Ht[1],wn=Ht[2],Bn=Ht[3],Fn=!!(mt!==!1&&we&&ye),gn=E.useMemo(function(){return Object.values(wn.maps).reduce(function(bn,kn){return bn+kn},0)},[wn.id,wn.maps]),Dn=Fn&&Xe&&(Math.max(ye*Xe.length,gn)>we||!!ct),un=ut==="rtl",Tn=ie()(Ne,(0,Te.Z)({},"".concat(Ne,"-rtl"),un),We),Mn=Xe||it,nn=(0,E.useRef)(),tn=(0,E.useRef)(),dn=(0,E.useRef)(),Cn=(0,E.useState)(0),Pn=(0,ge.Z)(Cn,2),Hn=Pn[0],Gn=Pn[1],_n=(0,E.useState)(0),Yn=(0,ge.Z)(_n,2),Wn=Yn[0],yr=Yn[1],cr=(0,E.useState)(!1),cn=(0,ge.Z)(cr,2),An=cn[0],qn=cn[1],wr=function(){qn(!0)},Rt=function(){qn(!1)},Xt={getKey:St};function Et(bn){Gn(function(kn){var Ln;typeof bn=="function"?Ln=bn(kn):Ln=bn;var jn=Tr(Ln);return nn.current.scrollTop=jn,jn})}var Dt=(0,E.useRef)({start:0,end:Mn.length}),Tt=(0,E.useRef)(),_t=pe(Mn,St),bt=(0,ge.Z)(_t,1),Zt=bt[0];Tt.current=Zt;var Kt=E.useMemo(function(){if(!Fn)return{scrollHeight:void 0,start:0,end:Mn.length-1,offset:void 0};if(!Dn){var bn;return{scrollHeight:((bn=tn.current)===null||bn===void 0?void 0:bn.offsetHeight)||0,start:0,end:Mn.length-1,offset:void 0}}for(var kn=0,Ln,jn,tr,ur=Mn.length,Nn=0;Nn<ur;Nn+=1){var Sn=Mn[Nn],Un=St(Sn),rr=wn.get(Un),Gr=kn+(rr===void 0?ye:rr);Gr>=Hn&&Ln===void 0&&(Ln=Nn,jn=kn),Gr>Hn+we&&tr===void 0&&(tr=Nn),kn=Gr}return Ln===void 0&&(Ln=0,jn=0,tr=Math.ceil(we/ye)),tr===void 0&&(tr=Mn.length-1),tr=Math.min(tr+1,Mn.length-1),{scrollHeight:kn,start:Ln,end:tr,offset:jn}},[Dn,Fn,Hn,Mn,Bn,we]),Yt=Kt.scrollHeight,Ft=Kt.start,$t=Kt.end,zt=Kt.offset;Dt.current.start=Ft,Dt.current.end=$t,E.useLayoutEffect(function(){var bn=wn.getRecord();if(bn.size===1){var kn=Array.from(bn.keys())[0],Ln=bn.get(kn),jn=Mn[Ft];if(jn&&Ln===void 0){var tr=St(jn);if(tr===kn){var ur=wn.get(kn),Nn=ur-ye;Et(function(Sn){return Sn+Nn})}}}wn.resetRecord()},[Yt]);var Wt=E.useState({width:0,height:we}),hn=(0,ge.Z)(Wt,2),mn=hn[0],In=hn[1],er=function(kn){In({width:kn.offsetWidth,height:kn.offsetHeight})},ar=(0,E.useRef)(),fr=(0,E.useRef)(),Jn=E.useMemo(function(){return Ye(mn.width,ct)},[mn.width,ct]),Kn=E.useMemo(function(){return Ye(mn.height,Yt)},[mn.height,Yt]),$n=Yt-we,dr=(0,E.useRef)($n);dr.current=$n;function Tr(bn){var kn=bn;return Number.isNaN(dr.current)||(kn=Math.min(kn,dr.current)),kn=Math.max(kn,0),kn}var Cr=Hn<=0,Or=Hn>=$n,Vn=Wn<=0,xr=Wn>=ct,hr=Be(Cr,Or,Vn,xr),Hr=function(){return{x:un?-Wn:Wn,y:Hn}},Xr=(0,E.useRef)(Hr()),Ur=(0,ee.zX)(function(bn){if(At){var kn=(0,a.Z)((0,a.Z)({},Hr()),bn);(Xr.current.x!==kn.x||Xr.current.y!==kn.y)&&(At(kn),Xr.current=kn)}});function Kr(bn,kn){var Ln=bn;kn?((0,re.flushSync)(function(){yr(Ln)}),Ur()):Et(Ln)}function ri(bn){var kn=bn.currentTarget.scrollTop;kn!==Hn&&Et(kn),Bt==null||Bt(bn),Ur()}var Fr=function(kn){var Ln=kn,jn=ct?ct-mn.width:0;return Ln=Math.max(Ln,0),Ln=Math.min(Ln,jn),Ln},qr=(0,ee.zX)(function(bn,kn){kn?((0,re.flushSync)(function(){yr(function(Ln){var jn=Ln+(un?-bn:bn);return Fr(jn)})}),Ur()):Et(function(Ln){var jn=Ln+bn;return jn})}),Pr=De(Fn,Cr,Or,Vn,xr,!!ct,qr),ei=(0,ge.Z)(Pr,2),ui=ei[0],ki=ei[1];He(Fn,nn,function(bn,kn,Ln,jn){var tr=jn;return hr(bn,kn,Ln)?!1:!tr||!tr._virtualHandled?(tr&&(tr._virtualHandled=!0),ui({preventDefault:function(){},deltaX:bn?kn:0,deltaY:bn?0:kn}),!0):!1}),_e(Dn,nn,function(bn){Et(function(kn){return kn+bn})}),(0,ue.Z)(function(){function bn(Ln){var jn=Cr&&Ln.detail<0,tr=Or&&Ln.detail>0;Fn&&!jn&&!tr&&Ln.preventDefault()}var kn=nn.current;return kn.addEventListener("wheel",ui,{passive:!1}),kn.addEventListener("DOMMouseScroll",ki,{passive:!0}),kn.addEventListener("MozMousePixelScroll",bn,{passive:!1}),function(){kn.removeEventListener("wheel",ui),kn.removeEventListener("DOMMouseScroll",ki),kn.removeEventListener("MozMousePixelScroll",bn)}},[Fn,Cr,Or]),(0,ue.Z)(function(){if(ct){var bn=Fr(Wn);yr(bn),Ur({x:bn})}},[mn.width,ct]);var mi=function(){var kn,Ln;(kn=ar.current)===null||kn===void 0||kn.delayHidden(),(Ln=fr.current)===null||Ln===void 0||Ln.delayHidden()},xi=nt(nn,Mn,wn,ye,St,function(){return sn(!0)},Et,mi);E.useImperativeHandle(ne,function(){return{nativeElement:dn.current,getScrollInfo:Hr,scrollTo:function(kn){function Ln(jn){return jn&&(0,yt.Z)(jn)==="object"&&("left"in jn||"top"in jn)}Ln(kn)?(kn.left!==void 0&&yr(Fr(kn.left)),xi(kn.top)):xi(kn)}}}),(0,ue.Z)(function(){if(pt){var bn=Mn.slice(Ft,$t+1);pt(bn,Mn)}},[Ft,$t,Mn]);var hi=Se(Mn,St,wn,ye),ir=kt==null?void 0:kt({start:Ft,end:$t,virtual:Dn,offsetX:Wn,offsetY:zt,rtl:un,getSize:hi}),Qn=he(Mn,Ft,$t,ct,Wn,Qt,at,Xt),gr=null;we&&(gr=(0,a.Z)((0,Te.Z)({},$e?"height":"maxHeight",we),qe),Fn&&(gr.overflowY="hidden",ct&&(gr.overflowX="hidden"),An&&(gr.pointerEvents="none")));var Xn={};return un&&(Xn.dir="rtl"),E.createElement("div",(0,le.Z)({ref:dn,style:(0,a.Z)((0,a.Z)({},Ze),{},{position:"relative"}),className:Tn},Xn,en),E.createElement(oe.Z,{onResize:er},E.createElement(wt,{className:"".concat(Ne,"-holder"),style:gr,ref:nn,onScroll:ri,onMouseEnter:mi},E.createElement(se,{prefixCls:Ne,height:Yt,offsetX:Wn,offsetY:zt,scrollWidth:ct,onInnerResize:sn,ref:tn,innerProps:Mt,rtl:un,extra:ir},Qn))),Dn&&Yt>we&&E.createElement(et,{ref:ar,prefixCls:Ne,scrollOffset:Hn,scrollRange:Yt,rtl:un,onScroll:Kr,onStartMove:wr,onStopMove:Rt,spinSize:Kn,containerSize:mn.height,style:xt==null?void 0:xt.verticalScrollBar,thumbStyle:xt==null?void 0:xt.verticalScrollBarThumb,showScrollBar:Ut}),Dn&&ct>mn.width&&E.createElement(et,{ref:fr,prefixCls:Ne,scrollOffset:Wn,scrollRange:ct,rtl:un,onScroll:Kr,onStartMove:wr,onStopMove:Rt,spinSize:Jn,containerSize:mn.width,horizontal:!0,style:xt==null?void 0:xt.horizontalScrollBar,thumbStyle:xt==null?void 0:xt.horizontalScrollBarThumb,showScrollBar:Ut}))}var ot=E.forwardRef(vt);ot.displayName="List";var Qe=ot,Fe=Qe},7062:function(on,Lt,Ce){var le=Ce(19637),yt=Ce(97573),a=[Ce(96627)];on.exports=le.createStore(yt,a)},96627:function(on,Lt,Ce){on.exports=le;function le(){return Ce(42424),{}}},42424:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(on){return on<10?"0"+on:on}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(on){return rx_escapable.lastIndex=0,rx_escapable.test(on)?'"'+on.replace(rx_escapable,function(Lt){var Ce=meta[Lt];return typeof Ce=="string"?Ce:"\\u"+("0000"+Lt.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+on+'"'}function str(on,Lt){var Ce,le,yt,a,Te=gap,ge,x=Lt[on];switch(x&&typeof x=="object"&&typeof x.toJSON=="function"&&(x=x.toJSON(on)),typeof rep=="function"&&(x=rep.call(Lt,on,x)),typeof x){case"string":return quote(x);case"number":return isFinite(x)?String(x):"null";case"boolean":case"null":return String(x);case"object":if(!x)return"null";if(gap+=indent,ge=[],Object.prototype.toString.apply(x)==="[object Array]"){for(a=x.length,Ce=0;Ce<a;Ce+=1)ge[Ce]=str(Ce,x)||"null";return yt=ge.length===0?"[]":gap?`[
`+gap+ge.join(`,
`+gap)+`
`+Te+"]":"["+ge.join(",")+"]",gap=Te,yt}if(rep&&typeof rep=="object")for(a=rep.length,Ce=0;Ce<a;Ce+=1)typeof rep[Ce]=="string"&&(le=rep[Ce],yt=str(le,x),yt&&ge.push(quote(le)+(gap?": ":":")+yt));else for(le in x)Object.prototype.hasOwnProperty.call(x,le)&&(yt=str(le,x),yt&&ge.push(quote(le)+(gap?": ":":")+yt));return yt=ge.length===0?"{}":gap?`{
`+gap+ge.join(`,
`+gap)+`
`+Te+"}":"{"+ge.join(",")+"}",gap=Te,yt}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(on,Lt,Ce){var le;if(gap="",indent="",typeof Ce=="number")for(le=0;le<Ce;le+=1)indent+=" ";else typeof Ce=="string"&&(indent=Ce);if(rep=Lt,Lt&&typeof Lt!="function"&&(typeof Lt!="object"||typeof Lt.length!="number"))throw new Error("JSON.stringify");return str("",{"":on})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(on,Lt){var Ce,le,yt=on[Lt];if(yt&&typeof yt=="object")for(Ce in yt)Object.prototype.hasOwnProperty.call(yt,Ce)&&(le=walk(yt,Ce),le!==void 0?yt[Ce]=le:delete yt[Ce]);return reviver.call(on,Lt,yt)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(on){return"\\u"+("0000"+on.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},19637:function(on,Lt,Ce){var le=Ce(67039),yt=le.slice,a=le.pluck,Te=le.each,ge=le.bind,x=le.create,z=le.isList,ie=le.isFunction,oe=le.isObject;on.exports={createStore:E};var ee={version:"2.0.12",enabled:!1,get:function(re,te){var se=this.storage.read(this._namespacePrefix+re);return this._deserialize(se,te)},set:function(re,te){return te===void 0?this.remove(re):(this.storage.write(this._namespacePrefix+re,this._serialize(te)),te)},remove:function(re){this.storage.remove(this._namespacePrefix+re)},each:function(re){var te=this;this.storage.each(function(se,ae){re.call(te,te._deserialize(se),(ae||"").replace(te._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(re){return this._namespacePrefix=="__storejs_"+re+"_"},createStore:function(){return E.apply(this,arguments)},addPlugin:function(re){this._addPlugin(re)},namespace:function(re){return E(this.storage,this.plugins,re)}};function ue(){var re=typeof console=="undefined"?null:console;if(re){var te=re.warn?re.warn:re.log;te.apply(re,arguments)}}function E(re,te,se){se||(se=""),re&&!z(re)&&(re=[re]),te&&!z(te)&&(te=[te]);var ae=se?"__storejs_"+se+"_":"",he=se?new RegExp("^"+ae):null,me=/^[a-zA-Z0-9_\-]*$/;if(!me.test(se))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var ve={_namespacePrefix:ae,_namespaceRegexp:he,_testStorage:function(be){try{var je="__storejs__test__";be.write(je,je);var ke=be.read(je)===je;return be.remove(je),ke}catch(Be){return!1}},_assignPluginFnProp:function(be,je){var ke=this[je];this[je]=function(){var De=yt(arguments,0),Se=this;function Ee(){if(ke)return Te(arguments,function(Me,Le){De[Le]=Me}),ke.apply(Se,De)}var Ie=[Ee].concat(De);return be.apply(Se,Ie)}},_serialize:function(be){return JSON.stringify(be)},_deserialize:function(be,je){if(!be)return je;var ke="";try{ke=JSON.parse(be)}catch(Be){ke=be}return ke!==void 0?ke:je},_addStorage:function(be){this.enabled||this._testStorage(be)&&(this.storage=be,this.enabled=!0)},_addPlugin:function(be){var je=this;if(z(be)){Te(be,function(De){je._addPlugin(De)});return}var ke=a(this.plugins,function(De){return be===De});if(!ke){if(this.plugins.push(be),!ie(be))throw new Error("Plugins must be function values that return objects");var Be=be.call(this);if(!oe(Be))throw new Error("Plugins must return an object of function properties");Te(Be,function(De,Se){if(!ie(De))throw new Error("Bad plugin property: "+Se+" from plugin "+be.name+". Plugins should only return functions.");je._assignPluginFnProp(De,Se)})}},addStorage:function(be){ue("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(be)}},pe=x(ve,ee,{plugins:[]});return pe.raw={},Te(pe,function(be,je){ie(be)&&(pe.raw[je]=ge(pe,be))}),Te(re,function(be){pe._addStorage(be)}),Te(te,function(be){pe._addPlugin(be)}),pe}},67039:function(on,Lt,Ce){var le=ge(),yt=x(),a=z(),Te=typeof window!="undefined"?window:Ce.g;on.exports={assign:le,create:yt,trim:a,bind:ie,slice:oe,each:ee,map:ue,pluck:E,isList:re,isFunction:te,isObject:se,Global:Te};function ge(){return Object.assign?Object.assign:function(he,me,ve,pe){for(var be=1;be<arguments.length;be++)ee(Object(arguments[be]),function(je,ke){he[ke]=je});return he}}function x(){if(Object.create)return function(me,ve,pe,be){var je=oe(arguments,1);return le.apply(this,[Object.create(me)].concat(je))};{let he=function(){};var ae=he;return function(ve,pe,be,je){var ke=oe(arguments,1);return he.prototype=ve,le.apply(this,[new he].concat(ke))}}}function z(){return String.prototype.trim?function(he){return String.prototype.trim.call(he)}:function(he){return he.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function ie(ae,he){return function(){return he.apply(ae,Array.prototype.slice.call(arguments,0))}}function oe(ae,he){return Array.prototype.slice.call(ae,he||0)}function ee(ae,he){E(ae,function(me,ve){return he(me,ve),!1})}function ue(ae,he){var me=re(ae)?[]:{};return E(ae,function(ve,pe){return me[pe]=he(ve,pe),!1}),me}function E(ae,he){if(re(ae)){for(var me=0;me<ae.length;me++)if(he(ae[me],me))return ae[me]}else for(var ve in ae)if(ae.hasOwnProperty(ve)&&he(ae[ve],ve))return ae[ve]}function re(ae){return ae!=null&&typeof ae!="function"&&typeof ae.length=="number"}function te(ae){return ae&&{}.toString.call(ae)==="[object Function]"}function se(ae){return ae&&{}.toString.call(ae)==="[object Object]"}},97573:function(on,Lt,Ce){on.exports=[Ce(52496),Ce(16436),Ce(76673),Ce(35701),Ce(65578),Ce(65300)]},35701:function(on,Lt,Ce){var le=Ce(67039),yt=le.Global,a=le.trim;on.exports={name:"cookieStorage",read:ge,write:z,each:x,remove:ie,clearAll:oe};var Te=yt.document;function ge(ue){if(!ue||!ee(ue))return null;var E="(?:^|.*;\\s*)"+escape(ue).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(Te.cookie.replace(new RegExp(E),"$1"))}function x(ue){for(var E=Te.cookie.split(/; ?/g),re=E.length-1;re>=0;re--)if(a(E[re])){var te=E[re].split("="),se=unescape(te[0]),ae=unescape(te[1]);ue(ae,se)}}function z(ue,E){ue&&(Te.cookie=escape(ue)+"="+escape(E)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function ie(ue){!ue||!ee(ue)||(Te.cookie=escape(ue)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function oe(){x(function(ue,E){ie(E)})}function ee(ue){return new RegExp("(?:^|;\\s*)"+escape(ue).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(Te.cookie)}},52496:function(on,Lt,Ce){var le=Ce(67039),yt=le.Global;on.exports={name:"localStorage",read:Te,write:ge,each:x,remove:z,clearAll:ie};function a(){return yt.localStorage}function Te(oe){return a().getItem(oe)}function ge(oe,ee){return a().setItem(oe,ee)}function x(oe){for(var ee=a().length-1;ee>=0;ee--){var ue=a().key(ee);oe(Te(ue),ue)}}function z(oe){return a().removeItem(oe)}function ie(){return a().clear()}},65300:function(on){on.exports={name:"memoryStorage",read:Ce,write:le,each:yt,remove:a,clearAll:Te};var Lt={};function Ce(ge){return Lt[ge]}function le(ge,x){Lt[ge]=x}function yt(ge){for(var x in Lt)Lt.hasOwnProperty(x)&&ge(Lt[x],x)}function a(ge){delete Lt[ge]}function Te(ge){Lt={}}},16436:function(on,Lt,Ce){var le=Ce(67039),yt=le.Global;on.exports={name:"oldFF-globalStorage",read:Te,write:ge,each:x,remove:z,clearAll:ie};var a=yt.globalStorage;function Te(oe){return a[oe]}function ge(oe,ee){a[oe]=ee}function x(oe){for(var ee=a.length-1;ee>=0;ee--){var ue=a.key(ee);oe(a[ue],ue)}}function z(oe){return a.removeItem(oe)}function ie(){x(function(oe,ee){delete a[oe]})}},76673:function(on,Lt,Ce){var le=Ce(67039),yt=le.Global;on.exports={name:"oldIE-userDataStorage",write:z,read:ie,each:oe,remove:ee,clearAll:ue};var a="storejs",Te=yt.document,ge=te(),x=(yt.navigator?yt.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function z(se,ae){if(!x){var he=re(se);ge(function(me){me.setAttribute(he,ae),me.save(a)})}}function ie(se){if(!x){var ae=re(se),he=null;return ge(function(me){he=me.getAttribute(ae)}),he}}function oe(se){ge(function(ae){for(var he=ae.XMLDocument.documentElement.attributes,me=he.length-1;me>=0;me--){var ve=he[me];se(ae.getAttribute(ve.name),ve.name)}})}function ee(se){var ae=re(se);ge(function(he){he.removeAttribute(ae),he.save(a)})}function ue(){ge(function(se){var ae=se.XMLDocument.documentElement.attributes;se.load(a);for(var he=ae.length-1;he>=0;he--)se.removeAttribute(ae[he].name);se.save(a)})}var E=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function re(se){return se.replace(/^\d/,"___$&").replace(E,"___")}function te(){if(!Te||!Te.documentElement||!Te.documentElement.addBehavior)return null;var se="script",ae,he,me;try{he=new ActiveXObject("htmlfile"),he.open(),he.write("<"+se+">document.w=window</"+se+'><iframe src="/favicon.ico"></iframe>'),he.close(),ae=he.w.frames[0].document,me=ae.createElement("div")}catch(ve){me=Te.createElement("div"),ae=Te.body}return function(ve){var pe=[].slice.call(arguments,0);pe.unshift(me),ae.appendChild(me),me.addBehavior("#default#userData"),me.load(a),ve.apply(this,pe),ae.removeChild(me)}}},65578:function(on,Lt,Ce){var le=Ce(67039),yt=le.Global;on.exports={name:"sessionStorage",read:Te,write:ge,each:x,remove:z,clearAll:ie};function a(){return yt.sessionStorage}function Te(oe){return a().getItem(oe)}function ge(oe,ee){return a().setItem(oe,ee)}function x(oe){for(var ee=a().length-1;ee>=0;ee--){var ue=a().key(ee);oe(Te(ue),ue)}}function z(oe){return a().removeItem(oe)}function ie(){return a().clear()}},4977:function(on){"use strict";on.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(on,Lt,Ce){"use strict";Ce.d(Lt,{Z:function(){return ie}});const le=oe=>typeof oe=="object"&&oe!=null&&oe.nodeType===1,yt=(oe,ee)=>(!ee||oe!=="hidden")&&oe!=="visible"&&oe!=="clip",a=(oe,ee)=>{if(oe.clientHeight<oe.scrollHeight||oe.clientWidth<oe.scrollWidth){const ue=getComputedStyle(oe,null);return yt(ue.overflowY,ee)||yt(ue.overflowX,ee)||(E=>{const re=(te=>{if(!te.ownerDocument||!te.ownerDocument.defaultView)return null;try{return te.ownerDocument.defaultView.frameElement}catch(se){return null}})(E);return!!re&&(re.clientHeight<E.scrollHeight||re.clientWidth<E.scrollWidth)})(oe)}return!1},Te=(oe,ee,ue,E,re,te,se,ae)=>te<oe&&se>ee||te>oe&&se<ee?0:te<=oe&&ae<=ue||se>=ee&&ae>=ue?te-oe-E:se>ee&&ae<ue||te<oe&&ae>ue?se-ee+re:0,ge=oe=>{const ee=oe.parentElement;return ee==null?oe.getRootNode().host||null:ee},x=(oe,ee)=>{var ue,E,re,te;if(typeof document=="undefined")return[];const{scrollMode:se,block:ae,inline:he,boundary:me,skipOverflowHiddenElements:ve}=ee,pe=typeof me=="function"?me:et=>et!==me;if(!le(oe))throw new TypeError("Invalid target");const be=document.scrollingElement||document.documentElement,je=[];let ke=oe;for(;le(ke)&&pe(ke);){if(ke=ge(ke),ke===be){je.push(ke);break}ke!=null&&ke===document.body&&a(ke)&&!a(document.documentElement)||ke!=null&&a(ke,ve)&&je.push(ke)}const Be=(E=(ue=window.visualViewport)==null?void 0:ue.width)!=null?E:innerWidth,De=(te=(re=window.visualViewport)==null?void 0:re.height)!=null?te:innerHeight,{scrollX:Se,scrollY:Ee}=window,{height:Ie,width:Me,top:Le,right:Ae,bottom:Pe,left:Ue}=oe.getBoundingClientRect(),{top:He,right:Je,bottom:st,left:_e}=(et=>{const Ve=window.getComputedStyle(et);return{top:parseFloat(Ve.scrollMarginTop)||0,right:parseFloat(Ve.scrollMarginRight)||0,bottom:parseFloat(Ve.scrollMarginBottom)||0,left:parseFloat(Ve.scrollMarginLeft)||0}})(oe);let Ke=ae==="start"||ae==="nearest"?Le-He:ae==="end"?Pe+st:Le+Ie/2-He+st,nt=he==="center"?Ue+Me/2-_e+Je:he==="end"?Ae+Je:Ue-_e;const rt=[];for(let et=0;et<je.length;et++){const Ve=je[et],{height:Ye,width:Ge,top:it,right:qe,bottom:vt,left:ot}=Ve.getBoundingClientRect();if(se==="if-needed"&&Le>=0&&Ue>=0&&Pe<=De&&Ae<=Be&&(Ve===be&&!a(Ve)||Le>=it&&Pe<=vt&&Ue>=ot&&Ae<=qe))return rt;const Qe=getComputedStyle(Ve),Fe=parseInt(Qe.borderLeftWidth,10),Re=parseInt(Qe.borderTopWidth,10),ne=parseInt(Qe.borderRightWidth,10),fe=parseInt(Qe.borderBottomWidth,10);let Ne=0,We=0;const we="offsetWidth"in Ve?Ve.offsetWidth-Ve.clientWidth-Fe-ne:0,ye="offsetHeight"in Ve?Ve.offsetHeight-Ve.clientHeight-Re-fe:0,Oe="offsetWidth"in Ve?Ve.offsetWidth===0?0:Ge/Ve.offsetWidth:0,$e="offsetHeight"in Ve?Ve.offsetHeight===0?0:Ye/Ve.offsetHeight:0;if(be===Ve)Ne=ae==="start"?Ke:ae==="end"?Ke-De:ae==="nearest"?Te(Ee,Ee+De,De,Re,fe,Ee+Ke,Ee+Ke+Ie,Ie):Ke-De/2,We=he==="start"?nt:he==="center"?nt-Be/2:he==="end"?nt-Be:Te(Se,Se+Be,Be,Fe,ne,Se+nt,Se+nt+Me,Me),Ne=Math.max(0,Ne+Ee),We=Math.max(0,We+Se);else{Ne=ae==="start"?Ke-it-Re:ae==="end"?Ke-vt+fe+ye:ae==="nearest"?Te(it,vt,Ye,Re,fe+ye,Ke,Ke+Ie,Ie):Ke-(it+Ye/2)+ye/2,We=he==="start"?nt-ot-Fe:he==="center"?nt-(ot+Ge/2)+we/2:he==="end"?nt-qe+ne+we:Te(ot,qe,Ge,Fe,ne+we,nt,nt+Me,Me);const{scrollLeft:Ze,scrollTop:Xe}=Ve;Ne=$e===0?0:Math.max(0,Math.min(Xe+Ne/$e,Ve.scrollHeight-Ye/$e+ye)),We=Oe===0?0:Math.max(0,Math.min(Ze+We/Oe,Ve.scrollWidth-Ge/Oe+we)),Ke+=Xe-Ne,nt+=Ze-We}rt.push({el:Ve,top:Ne,left:We})}return rt},z=oe=>oe===!1?{block:"end",inline:"nearest"}:(ee=>ee===Object(ee)&&Object.keys(ee).length!==0)(oe)?oe:{block:"start",inline:"nearest"};function ie(oe,ee){if(!oe.isConnected||!(re=>{let te=re;for(;te&&te.parentNode;){if(te.parentNode===document)return!0;te=te.parentNode instanceof ShadowRoot?te.parentNode.host:te.parentNode}return!1})(oe))return;const ue=(re=>{const te=window.getComputedStyle(re);return{top:parseFloat(te.scrollMarginTop)||0,right:parseFloat(te.scrollMarginRight)||0,bottom:parseFloat(te.scrollMarginBottom)||0,left:parseFloat(te.scrollMarginLeft)||0}})(oe);if((re=>typeof re=="object"&&typeof re.behavior=="function")(ee))return ee.behavior(x(oe,ee));const E=typeof ee=="boolean"||ee==null?void 0:ee.behavior;for(const{el:re,top:te,left:se}of x(oe,z(ee))){const ae=te-ue.top+ue.bottom,he=se-ue.left+ue.right;re.scroll({top:ae,left:he,behavior:E})}}}}]);